|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.7.2", |
4 | | - "description": "A Model and a NoSQL Database for Components", |
| 3 | + "version": "0.7.5", |
| 4 | + "description": "Design.Create.Compose", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
7 | 7 | "MonocoSchema": { |
|
767 | 767 | "core": true, |
768 | 768 | "useCoreAPI": true |
769 | 769 | }, |
770 | | - "1302e13eed1a03c": { |
771 | | - "_id": "1302e13eed1a03c", |
| 770 | + "1f65512ec013b6f": { |
| 771 | + "_id": "1f65512ec013b6f", |
772 | 772 | "component": "Monoco", |
773 | 773 | "state": "error", |
774 | 774 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
775 | 775 | "core": true |
776 | 776 | }, |
777 | | - "16c471e4941c644": { |
778 | | - "_id": "16c471e4941c644", |
| 777 | + "15b1813caa13bd0": { |
| 778 | + "_id": "15b1813caa13bd0", |
779 | 779 | "component": "Monoco", |
780 | 780 | "state": "system", |
781 | 781 | "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;}", |
782 | 782 | "core": true, |
783 | 783 | "useCoreAPI": true |
784 | 784 | }, |
785 | | - "13b7f1fb671e39d": { |
786 | | - "_id": "13b7f1fb671e39d", |
| 785 | + "16aba117271b489": { |
| 786 | + "_id": "16aba117271b489", |
787 | 787 | "component": "Monoco", |
788 | 788 | "state": "warning", |
789 | 789 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
790 | 790 | "core": true |
791 | 791 | }, |
792 | | - "10f95179ec1aac4": { |
793 | | - "_id": "10f95179ec1aac4", |
| 792 | + "16d5d16d9316831": { |
| 793 | + "_id": "16d5d16d9316831", |
794 | 794 | "component": "MonocoChannel", |
795 | 795 | "state": "listen", |
796 | 796 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
797 | 797 | "core": true, |
798 | 798 | "useCoreAPI": true |
799 | 799 | }, |
800 | | - "132421889f1eb42": { |
801 | | - "_id": "132421889f1eb42", |
| 800 | + "1301e1aa6b14cf5": { |
| 801 | + "_id": "1301e1aa6b14cf5", |
802 | 802 | "component": "MonocoChannel", |
803 | 803 | "state": "send", |
804 | 804 | "action": "function send(message) { return $channel.send(message); }", |
805 | 805 | "core": true, |
806 | 806 | "useCoreAPI": true |
807 | 807 | }, |
808 | | - "198191d211179d9": { |
809 | | - "_id": "198191d211179d9", |
| 808 | + "14b591512e19970": { |
| 809 | + "_id": "14b591512e19970", |
810 | 810 | "component": "MonocoClassInfo", |
811 | 811 | "state": "collection", |
812 | 812 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
813 | 813 | "core": true |
814 | 814 | }, |
815 | | - "194cb1cfe412ae0": { |
816 | | - "_id": "194cb1cfe412ae0", |
| 815 | + "14a121399a19e01": { |
| 816 | + "_id": "14a121399a19e01", |
817 | 817 | "component": "MonocoClassInfo", |
818 | 818 | "state": "collections", |
819 | 819 | "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; }", |
820 | 820 | "core": true |
821 | 821 | }, |
822 | | - "198d71966b1d628": { |
823 | | - "_id": "198d71966b1d628", |
| 822 | + "1357017b7e1cba4": { |
| 823 | + "_id": "1357017b7e1cba4", |
824 | 824 | "component": "MonocoClassInfo", |
825 | 825 | "state": "event", |
826 | 826 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
827 | 827 | "core": true |
828 | 828 | }, |
829 | | - "167181f3ce19fcc": { |
830 | | - "_id": "167181f3ce19fcc", |
| 829 | + "1c792155191651e": { |
| 830 | + "_id": "1c792155191651e", |
831 | 831 | "component": "MonocoClassInfo", |
832 | 832 | "state": "events", |
833 | 833 | "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; }", |
834 | 834 | "core": true |
835 | 835 | }, |
836 | | - "164461951412489": { |
837 | | - "_id": "164461951412489", |
| 836 | + "1ba18147491758c": { |
| 837 | + "_id": "1ba18147491758c", |
838 | 838 | "component": "MonocoClassInfo", |
839 | 839 | "state": "method", |
840 | 840 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
841 | 841 | "core": true |
842 | 842 | }, |
843 | | - "1007a10e6a1dc4c": { |
844 | | - "_id": "1007a10e6a1dc4c", |
| 843 | + "171ec1bf3216fb5": { |
| 844 | + "_id": "171ec1bf3216fb5", |
845 | 845 | "component": "MonocoClassInfo", |
846 | 846 | "state": "methods", |
847 | 847 | "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; }", |
848 | 848 | "core": true |
849 | 849 | }, |
850 | | - "190d01cc3c12f1c": { |
851 | | - "_id": "190d01cc3c12f1c", |
| 850 | + "1bbe418c891734c": { |
| 851 | + "_id": "1bbe418c891734c", |
852 | 852 | "component": "MonocoClassInfo", |
853 | 853 | "state": "properties", |
854 | 854 | "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; }", |
855 | 855 | "core": true |
856 | 856 | }, |
857 | | - "1d68e1baf01a0c2": { |
858 | | - "_id": "1d68e1baf01a0c2", |
| 857 | + "1eafb1c64011fc4": { |
| 858 | + "_id": "1eafb1c64011fc4", |
859 | 859 | "component": "MonocoClassInfo", |
860 | 860 | "state": "property", |
861 | 861 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
862 | 862 | "core": true |
863 | 863 | }, |
864 | | - "1eba111bd3151a6": { |
865 | | - "_id": "1eba111bd3151a6", |
| 864 | + "19c8b1e6861ae6b": { |
| 865 | + "_id": "19c8b1e6861ae6b", |
866 | 866 | "component": "MonocoComponent", |
867 | 867 | "state": "destroy", |
868 | 868 | "action": "function destroy() { $component.destroy(this.id()); }", |
869 | 869 | "core": true, |
870 | 870 | "useCoreAPI": true |
871 | 871 | }, |
872 | | - "101a814f6c10c62": { |
873 | | - "_id": "101a814f6c10c62", |
| 872 | + "103d1199d31cf03": { |
| 873 | + "_id": "103d1199d31cf03", |
874 | 874 | "component": "MonocoComponent", |
875 | 875 | "state": "off", |
876 | 876 | "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 + \"'\"}); } } }", |
877 | 877 | "core": true, |
878 | 878 | "useCoreAPI": true |
879 | 879 | }, |
880 | | - "1f5471a45a1807d": { |
881 | | - "_id": "1f5471a45a1807d", |
| 880 | + "17006155fe1267a": { |
| 881 | + "_id": "17006155fe1267a", |
882 | 882 | "component": "MonocoComponent", |
883 | 883 | "state": "require", |
884 | 884 | "action": "function require(id) { return $component.get(id); }", |
885 | 885 | "core": true, |
886 | 886 | "useCoreAPI": true |
887 | 887 | }, |
888 | | - "1883010e0314a1c": { |
889 | | - "_id": "1883010e0314a1c", |
| 888 | + "182341cc6e11bfb": { |
| 889 | + "_id": "182341cc6e11bfb", |
890 | 890 | "component": "MonocoDatabase", |
891 | 891 | "state": "collections", |
892 | 892 | "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;}", |
893 | 893 | "core": true, |
894 | 894 | "useCoreAPI": true |
895 | 895 | }, |
896 | | - "1dc8413ead1f809": { |
897 | | - "_id": "1dc8413ead1f809", |
| 896 | + "1701b1ff081f949": { |
| 897 | + "_id": "1701b1ff081f949", |
898 | 898 | "component": "MonocoDatabase", |
899 | 899 | "state": "subsystem", |
900 | 900 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
901 | 901 | "core": true, |
902 | 902 | "useCoreAPI": true |
903 | 903 | }, |
904 | | - "18be21f3ca18c8a": { |
905 | | - "_id": "18be21f3ca18c8a", |
| 904 | + "1fac41a5c51b890": { |
| 905 | + "_id": "1fac41a5c51b890", |
906 | 906 | "component": "MonocoDatabase", |
907 | 907 | "state": "system", |
908 | 908 | "action": "function system(system) { return $db.system(system); }", |
909 | 909 | "core": true, |
910 | 910 | "useCoreAPI": true |
911 | 911 | }, |
912 | | - "1ca4315f921ecb7": { |
913 | | - "_id": "1ca4315f921ecb7", |
| 912 | + "10cc81833e1f00e": { |
| 913 | + "_id": "10cc81833e1f00e", |
914 | 914 | "component": "MonocoMetamodel", |
915 | 915 | "state": "create", |
916 | 916 | "action": "function create() { $metamodel.create(); }", |
917 | 917 | "core": true, |
918 | 918 | "useCoreAPI": true |
919 | 919 | }, |
920 | | - "18cfc1917c1ab4b": { |
921 | | - "_id": "18cfc1917c1ab4b", |
| 920 | + "1fbe5137b31060f": { |
| 921 | + "_id": "1fbe5137b31060f", |
922 | 922 | "component": "MonocoMetamodel", |
923 | 923 | "state": "schema", |
924 | 924 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
925 | 925 | "core": true, |
926 | 926 | "useCoreAPI": true |
927 | 927 | }, |
928 | | - "1dcfb187dd1035a": { |
929 | | - "_id": "1dcfb187dd1035a", |
| 928 | + "1843715b8714404": { |
| 929 | + "_id": "1843715b8714404", |
930 | 930 | "component": "MonocoMetamodel", |
931 | 931 | "state": "type", |
932 | 932 | "action": "function type(type) { $metamodel.type(type); }", |
933 | 933 | "core": true, |
934 | 934 | "useCoreAPI": true |
935 | 935 | }, |
936 | | - "160fc1a46b11495": { |
937 | | - "_id": "160fc1a46b11495", |
| 936 | + "1fb091b05f172fd": { |
| 937 | + "_id": "1fb091b05f172fd", |
938 | 938 | "component": "MonocoSystem", |
939 | 939 | "state": "sync", |
940 | 940 | "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); }", |
|
946 | 946 | "Monoco": { |
947 | 947 | "monoco": { |
948 | 948 | "_id": "monoco", |
949 | | - "version": "0.7.2" |
| 949 | + "version": "0.7.5" |
950 | 950 | } |
951 | 951 | }, |
952 | 952 | "MonocoChannel": { |
|
0 commit comments