|
1 | 1 | {
|
2 | 2 | "name": "monoco",
|
3 |
| - "version": "0.7.7", |
| 3 | + "version": "0.8.0", |
4 | 4 | "description": "Design.Create.Compose",
|
5 | 5 | "_id": "e89c617b6b15d24",
|
6 | 6 | "schemas": {
|
|
764 | 764 | "core": true,
|
765 | 765 | "useCoreAPI": true
|
766 | 766 | },
|
767 |
| - "197751e3551e06f": { |
768 |
| - "_id": "197751e3551e06f", |
| 767 | + "17bb01c04c11348": { |
| 768 | + "_id": "17bb01c04c11348", |
769 | 769 | "component": "Monoco",
|
770 | 770 | "state": "error",
|
771 | 771 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
|
772 | 772 | "core": true
|
773 | 773 | },
|
774 |
| - "112711926518069": { |
775 |
| - "_id": "112711926518069", |
| 774 | + "17be61c1861a051": { |
| 775 | + "_id": "17be61c1861a051", |
776 | 776 | "component": "Monoco",
|
777 | 777 | "state": "system",
|
778 | 778 | "action": "function system(name) { var System = null, system = {}, systemId = '', result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = this.require('MonocoSystem'); system = new System(conf); } else { result = $db.MonocoSystem.find({ 'master': true }); if (result.length) { systemId = result[0]._id; system = $component.get(systemId); } } return system;}",
|
779 | 779 | "core": true,
|
780 | 780 | "useCoreAPI": true
|
781 | 781 | },
|
782 |
| - "1ef9a1a3271e595": { |
783 |
| - "_id": "1ef9a1a3271e595", |
| 782 | + "16ba6100991c6fd": { |
| 783 | + "_id": "16ba6100991c6fd", |
784 | 784 | "component": "Monoco",
|
785 | 785 | "state": "warning",
|
786 | 786 | "action": "function warning(message) { console.warn('monoco: ' + message); }",
|
787 | 787 | "core": true
|
788 | 788 | },
|
789 |
| - "17df2116b51f0b3": { |
790 |
| - "_id": "17df2116b51f0b3", |
| 789 | + "1910711c2213f52": { |
| 790 | + "_id": "1910711c2213f52", |
791 | 791 | "component": "MonocoClassInfo",
|
792 | 792 | "state": "collection",
|
793 | 793 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
|
794 | 794 | "core": true
|
795 | 795 | },
|
796 |
| - "1df271a1e318a3b": { |
797 |
| - "_id": "1df271a1e318a3b", |
| 796 | + "1c3ea1335111f51": { |
| 797 | + "_id": "1c3ea1335111f51", |
798 | 798 | "component": "MonocoClassInfo",
|
799 | 799 | "state": "collections",
|
800 | 800 | "action": "function collections() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'collection') { result.push(item); } } return result; }",
|
801 | 801 | "core": true
|
802 | 802 | },
|
803 |
| - "1ea7e1f248106a9": { |
804 |
| - "_id": "1ea7e1f248106a9", |
| 803 | + "1630018bbb1ea75": { |
| 804 | + "_id": "1630018bbb1ea75", |
805 | 805 | "component": "MonocoClassInfo",
|
806 | 806 | "state": "event",
|
807 | 807 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
|
808 | 808 | "core": true
|
809 | 809 | },
|
810 |
| - "1a8971c412177d3": { |
811 |
| - "_id": "1a8971c412177d3", |
| 810 | + "1704a153691d918": { |
| 811 | + "_id": "1704a153691d918", |
812 | 812 | "component": "MonocoClassInfo",
|
813 | 813 | "state": "events",
|
814 | 814 | "action": "function events() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'event') { result.push(item); } } return result; }",
|
815 | 815 | "core": true
|
816 | 816 | },
|
817 |
| - "1229e111471468e": { |
818 |
| - "_id": "1229e111471468e", |
| 817 | + "1015916e411ce01": { |
| 818 | + "_id": "1015916e411ce01", |
819 | 819 | "component": "MonocoClassInfo",
|
820 | 820 | "state": "method",
|
821 | 821 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
|
822 | 822 | "core": true
|
823 | 823 | },
|
824 |
| - "1229f14aeb199b2": { |
825 |
| - "_id": "1229f14aeb199b2", |
| 824 | + "1741e18ace1da6e": { |
| 825 | + "_id": "1741e18ace1da6e", |
826 | 826 | "component": "MonocoClassInfo",
|
827 | 827 | "state": "methods",
|
828 | 828 | "action": "function methods() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'method') { result.push(item); } } return result; }",
|
829 | 829 | "core": true
|
830 | 830 | },
|
831 |
| - "1af5512d0f16c92": { |
832 |
| - "_id": "1af5512d0f16c92", |
| 831 | + "16c61134a81a9e0": { |
| 832 | + "_id": "16c61134a81a9e0", |
833 | 833 | "component": "MonocoClassInfo",
|
834 | 834 | "state": "properties",
|
835 | 835 | "action": "function properties() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'property') { result.push(item); } } return result; }",
|
836 | 836 | "core": true
|
837 | 837 | },
|
838 |
| - "1ade21aee718702": { |
839 |
| - "_id": "1ade21aee718702", |
| 838 | + "18c8e1d32b1177b": { |
| 839 | + "_id": "18c8e1d32b1177b", |
840 | 840 | "component": "MonocoClassInfo",
|
841 | 841 | "state": "property",
|
842 | 842 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
|
843 | 843 | "core": true
|
844 | 844 | },
|
845 |
| - "1e6861a86a17670": { |
846 |
| - "_id": "1e6861a86a17670", |
| 845 | + "13d7c1b6881f2ac": { |
| 846 | + "_id": "13d7c1b6881f2ac", |
847 | 847 | "component": "MonocoComponent",
|
848 | 848 | "state": "destroy",
|
849 | 849 | "action": "function destroy() { $component.destroy(this.id()); }",
|
850 | 850 | "core": true,
|
851 | 851 | "useCoreAPI": true
|
852 | 852 | },
|
853 |
| - "11f651094b15b2c": { |
854 |
| - "_id": "11f651094b15b2c", |
| 853 | + "1da10153b9144e6": { |
| 854 | + "_id": "1da10153b9144e6", |
855 | 855 | "component": "MonocoComponent",
|
856 | 856 | "state": "off",
|
857 | 857 | "action": "function off(state, behaviorId) { var args = [], i = 0, length = 0; length = arguments.length; for (i = 0; i < length - 7; i++) { args.push(arguments[i]); } if ($workflow.checkParams({\"component\": this, \"methodName\": \"off\", \"args\": args})) { if ($metamodel.isValidState(state, this.constructor.name)) {$behavior.remove({\"behaviorId\": behaviorId, \"componentId\": this.id(), \"state\": state}); } else { $helper.getMonoco().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); } } }",
|
858 | 858 | "core": true,
|
859 | 859 | "useCoreAPI": true
|
860 | 860 | },
|
861 |
| - "1c243149ce14f38": { |
862 |
| - "_id": "1c243149ce14f38", |
| 861 | + "1fc7e1b0f31b779": { |
| 862 | + "_id": "1fc7e1b0f31b779", |
863 | 863 | "component": "MonocoComponent",
|
864 | 864 | "state": "require",
|
865 | 865 | "action": "function require(id) { return $component.get(id); }",
|
866 | 866 | "core": true,
|
867 | 867 | "useCoreAPI": true
|
868 | 868 | },
|
869 |
| - "1a0cc197621b6f7": { |
870 |
| - "_id": "1a0cc197621b6f7", |
| 869 | + "1452f172f7123e1": { |
| 870 | + "_id": "1452f172f7123e1", |
871 | 871 | "component": "MonocoDatabase",
|
872 | 872 | "state": "collections",
|
873 | 873 | "action": "function collections() { var result = {}, collectionName = ''; for (collectionName in $db.store) { if ($db.store.hasOwnProperty(collectionName) && collectionName.indexOf('Monoco') !== 0) { result[collectionName] = $db[collectionName]; } } return result;}",
|
874 | 874 | "core": true,
|
875 | 875 | "useCoreAPI": true
|
876 | 876 | },
|
877 |
| - "1fecc1524f15ffa": { |
878 |
| - "_id": "1fecc1524f15ffa", |
| 877 | + "11f4f1cff0162aa": { |
| 878 | + "_id": "11f4f1cff0162aa", |
879 | 879 | "component": "MonocoDatabase",
|
880 | 880 | "state": "subsystem",
|
881 | 881 | "action": "function subsystem(params) { return $db.subsystem(params); }",
|
882 | 882 | "core": true,
|
883 | 883 | "useCoreAPI": true
|
884 | 884 | },
|
885 |
| - "1caad1e14f18071": { |
886 |
| - "_id": "1caad1e14f18071", |
| 885 | + "1c26417f661c5d9": { |
| 886 | + "_id": "1c26417f661c5d9", |
887 | 887 | "component": "MonocoDatabase",
|
888 | 888 | "state": "system",
|
889 | 889 | "action": "function system(system) { return $db.system(system); }",
|
890 | 890 | "core": true,
|
891 | 891 | "useCoreAPI": true
|
892 | 892 | },
|
893 |
| - "140a31d693124b8": { |
894 |
| - "_id": "140a31d693124b8", |
| 893 | + "149be1da281d5b7": { |
| 894 | + "_id": "149be1da281d5b7", |
895 | 895 | "component": "MonocoMetamodel",
|
896 | 896 | "state": "create",
|
897 | 897 | "action": "function create() { $metamodel.create(); }",
|
898 | 898 | "core": true,
|
899 | 899 | "useCoreAPI": true
|
900 | 900 | },
|
901 |
| - "12d8c120491875c": { |
902 |
| - "_id": "12d8c120491875c", |
| 901 | + "1f82a1e98013eb1": { |
| 902 | + "_id": "1f82a1e98013eb1", |
903 | 903 | "component": "MonocoMetamodel",
|
904 | 904 | "state": "schema",
|
905 | 905 | "action": "function schema(schema) { $metamodel.schema(schema); }",
|
906 | 906 | "core": true,
|
907 | 907 | "useCoreAPI": true
|
908 | 908 | },
|
909 |
| - "1d6dc193191e761": { |
910 |
| - "_id": "1d6dc193191e761", |
| 909 | + "1192c1cf27155cb": { |
| 910 | + "_id": "1192c1cf27155cb", |
911 | 911 | "component": "MonocoMetamodel",
|
912 | 912 | "state": "type",
|
913 | 913 | "action": "function type(type) { $metamodel.type(type); }",
|
914 | 914 | "core": true,
|
915 | 915 | "useCoreAPI": true
|
916 | 916 | },
|
917 |
| - "1bbc41c1c71d1c1": { |
918 |
| - "_id": "1bbc41c1c71d1c1", |
| 917 | + "108ad15c7919b44": { |
| 918 | + "_id": "108ad15c7919b44", |
919 | 919 | "component": "MonocoSystem",
|
920 | 920 | "state": "sync",
|
921 | 921 | "action": "function sync() { var system = JSON.parse($db.system()); this.schemas(system.schemas); this.types(system.types); this.behaviors(system.behaviors); this.components(system.components); }",
|
|
927 | 927 | "Monoco": {
|
928 | 928 | "monoco": {
|
929 | 929 | "_id": "monoco",
|
930 |
| - "version": "0.7.7" |
| 930 | + "version": "0.8.0" |
931 | 931 | }
|
932 | 932 | },
|
933 | 933 | "MonocoDatabase": {
|
|
0 commit comments