|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.6.0", |
| 3 | + "version": "0.7.0", |
4 | 4 | "description": "A Model and a NoSQL Database for Components", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
|
778 | 778 | "action": "function main() { var systems = [], system = null, i = 0, length = 0; if (typeof document !== 'undefined') { systems = document.querySelectorAll('link[rel=system]'); length = systems.length; for (i = 0; i < length; i++) { system = systems[i]; if (system.getAttribute('async') === 'true') { this.require('monoco').load(system.href, true); } else { this.require('monoco').load(system.href, false); } } if (length === 0) { this.require('monoco').ready(); } }}", |
779 | 779 | "core": true |
780 | 780 | }, |
781 | | - "1a4f816ae5131c4": { |
782 | | - "_id": "1a4f816ae5131c4", |
| 781 | + "1a353110ae1c178": { |
| 782 | + "_id": "1a353110ae1c178", |
783 | 783 | "component": "Monoco", |
784 | 784 | "state": "error", |
785 | 785 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
786 | 786 | "core": true |
787 | 787 | }, |
788 | | - "15512147b21a02a": { |
789 | | - "_id": "15512147b21a02a", |
| 788 | + "19b1e14e4f1c02f": { |
| 789 | + "_id": "19b1e14e4f1c02f", |
790 | 790 | "component": "Monoco", |
791 | 791 | "state": "find", |
792 | 792 | "action": "function find(Class, query) { return $component.find(Class, query);}", |
793 | 793 | "core": true, |
794 | 794 | "useCoreAPI": true |
795 | 795 | }, |
796 | | - "169e715e2f1d656": { |
797 | | - "_id": "169e715e2f1d656", |
| 796 | + "1f0a41dfb915731": { |
| 797 | + "_id": "1f0a41dfb915731", |
798 | 798 | "component": "Monoco", |
799 | 799 | "state": "system", |
800 | 800 | "action": "function system(name) { var System = null, system = {}, result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = this.require('MonocoSystem'); system = new System(conf); } else { result = this.find('MonocoSystem', {'master': true}); if (result.length) { system = result[0]; } } return system; }", |
801 | 801 | "core": true |
802 | 802 | }, |
803 | | - "12ad815f9b142ad": { |
804 | | - "_id": "12ad815f9b142ad", |
| 803 | + "1def21b0011358a": { |
| 804 | + "_id": "1def21b0011358a", |
805 | 805 | "component": "Monoco", |
806 | 806 | "state": "warning", |
807 | 807 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
808 | 808 | "core": true |
809 | 809 | }, |
810 | | - "15935192ac1600b": { |
811 | | - "_id": "15935192ac1600b", |
| 810 | + "1c05d1bd2a1888c": { |
| 811 | + "_id": "1c05d1bd2a1888c", |
812 | 812 | "component": "MonocoChannel", |
813 | 813 | "state": "listen", |
814 | 814 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
815 | 815 | "core": true, |
816 | 816 | "useCoreAPI": true |
817 | 817 | }, |
818 | | - "19a101ead71c76b": { |
819 | | - "_id": "19a101ead71c76b", |
| 818 | + "1c5ca11d9c1b342": { |
| 819 | + "_id": "1c5ca11d9c1b342", |
820 | 820 | "component": "MonocoChannel", |
821 | 821 | "state": "send", |
822 | 822 | "action": "function send(message) { return $channel.send(message); }", |
823 | 823 | "core": true, |
824 | 824 | "useCoreAPI": true |
825 | 825 | }, |
826 | | - "17e0515a7f1a642": { |
827 | | - "_id": "17e0515a7f1a642", |
| 826 | + "142431e25e1ea17": { |
| 827 | + "_id": "142431e25e1ea17", |
828 | 828 | "component": "MonocoClassInfo", |
829 | 829 | "state": "collection", |
830 | 830 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
831 | 831 | "core": true |
832 | 832 | }, |
833 | | - "1663d1d6781a7f9": { |
834 | | - "_id": "1663d1d6781a7f9", |
| 833 | + "152d416f991cf11": { |
| 834 | + "_id": "152d416f991cf11", |
835 | 835 | "component": "MonocoClassInfo", |
836 | 836 | "state": "collections", |
837 | 837 | "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; }", |
838 | 838 | "core": true |
839 | 839 | }, |
840 | | - "1f02516fda11a8f": { |
841 | | - "_id": "1f02516fda11a8f", |
| 840 | + "14b8e13c8a14b5b": { |
| 841 | + "_id": "14b8e13c8a14b5b", |
842 | 842 | "component": "MonocoClassInfo", |
843 | 843 | "state": "event", |
844 | 844 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
845 | 845 | "core": true |
846 | 846 | }, |
847 | | - "1d85f15c66188fa": { |
848 | | - "_id": "1d85f15c66188fa", |
| 847 | + "1db5c1b6de11947": { |
| 848 | + "_id": "1db5c1b6de11947", |
849 | 849 | "component": "MonocoClassInfo", |
850 | 850 | "state": "events", |
851 | 851 | "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; }", |
852 | 852 | "core": true |
853 | 853 | }, |
854 | | - "1567d1968e185eb": { |
855 | | - "_id": "1567d1968e185eb", |
| 854 | + "177e41b07010bdd": { |
| 855 | + "_id": "177e41b07010bdd", |
856 | 856 | "component": "MonocoClassInfo", |
857 | 857 | "state": "method", |
858 | 858 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
859 | 859 | "core": true |
860 | 860 | }, |
861 | | - "1150517f3c1df98": { |
862 | | - "_id": "1150517f3c1df98", |
| 861 | + "1faef160dd144b4": { |
| 862 | + "_id": "1faef160dd144b4", |
863 | 863 | "component": "MonocoClassInfo", |
864 | 864 | "state": "methods", |
865 | 865 | "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; }", |
866 | 866 | "core": true |
867 | 867 | }, |
868 | | - "1041117fc912b4b": { |
869 | | - "_id": "1041117fc912b4b", |
| 868 | + "10f361d09e1e21b": { |
| 869 | + "_id": "10f361d09e1e21b", |
870 | 870 | "component": "MonocoClassInfo", |
871 | 871 | "state": "properties", |
872 | 872 | "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; }", |
873 | 873 | "core": true |
874 | 874 | }, |
875 | | - "1580c1bc9e1626a": { |
876 | | - "_id": "1580c1bc9e1626a", |
| 875 | + "163651eb5017506": { |
| 876 | + "_id": "163651eb5017506", |
877 | 877 | "component": "MonocoClassInfo", |
878 | 878 | "state": "property", |
879 | 879 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
880 | 880 | "core": true |
881 | 881 | }, |
882 | | - "1e4c114f9119cb9": { |
883 | | - "_id": "1e4c114f9119cb9", |
| 882 | + "142e21264312709": { |
| 883 | + "_id": "142e21264312709", |
884 | 884 | "component": "MonocoComponent", |
885 | 885 | "state": "destroy", |
886 | 886 | "action": "function destroy() { $component.destroy(this.id()); }", |
887 | 887 | "core": true, |
888 | 888 | "useCoreAPI": true |
889 | 889 | }, |
890 | | - "1c7481a5fa1714a": { |
891 | | - "_id": "1c7481a5fa1714a", |
| 890 | + "154141727613027": { |
| 891 | + "_id": "154141727613027", |
892 | 892 | "component": "MonocoComponent", |
893 | 893 | "state": "off", |
894 | 894 | "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 + \"'\"}); } } }", |
895 | 895 | "core": true, |
896 | 896 | "useCoreAPI": true |
897 | 897 | }, |
898 | | - "1a1511b6471eee1": { |
899 | | - "_id": "1a1511b6471eee1", |
| 898 | + "12fb11367e1a50a": { |
| 899 | + "_id": "12fb11367e1a50a", |
900 | 900 | "component": "MonocoComponent", |
901 | 901 | "state": "require", |
902 | 902 | "action": "function require(id) { return $component.get(id); }", |
903 | 903 | "core": true, |
904 | 904 | "useCoreAPI": true |
905 | 905 | }, |
906 | | - "11d1318bce12329": { |
907 | | - "_id": "11d1318bce12329", |
| 906 | + "15dfb1671f1c5f3": { |
| 907 | + "_id": "15dfb1671f1c5f3", |
908 | 908 | "component": "MonocoDatabase", |
909 | 909 | "state": "subsystem", |
910 | 910 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
911 | 911 | "core": true, |
912 | 912 | "useCoreAPI": true |
913 | 913 | }, |
914 | | - "1d8841afd11d18f": { |
915 | | - "_id": "1d8841afd11d18f", |
| 914 | + "182d314e241bc1e": { |
| 915 | + "_id": "182d314e241bc1e", |
916 | 916 | "component": "MonocoDatabase", |
917 | 917 | "state": "system", |
918 | 918 | "action": "function system(system) { return $db.system(system); }", |
919 | 919 | "core": true, |
920 | 920 | "useCoreAPI": true |
921 | 921 | }, |
922 | | - "1413415b2210810": { |
923 | | - "_id": "1413415b2210810", |
| 922 | + "1af271633a1dfd0": { |
| 923 | + "_id": "1af271633a1dfd0", |
924 | 924 | "component": "MonocoMetamodel", |
925 | 925 | "state": "create", |
926 | 926 | "action": "function create() { $metamodel.create(); }", |
927 | 927 | "core": true, |
928 | 928 | "useCoreAPI": true |
929 | 929 | }, |
930 | | - "197791f61811153": { |
931 | | - "_id": "197791f61811153", |
| 930 | + "1997a13ba1169cc": { |
| 931 | + "_id": "1997a13ba1169cc", |
932 | 932 | "component": "MonocoMetamodel", |
933 | 933 | "state": "schema", |
934 | 934 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
935 | 935 | "core": true, |
936 | 936 | "useCoreAPI": true |
937 | 937 | }, |
938 | | - "1da1115c45155f2": { |
939 | | - "_id": "1da1115c45155f2", |
| 938 | + "1baec164eb19e29": { |
| 939 | + "_id": "1baec164eb19e29", |
940 | 940 | "component": "MonocoMetamodel", |
941 | 941 | "state": "type", |
942 | 942 | "action": "function type(type) { $metamodel.type(type); }", |
943 | 943 | "core": true, |
944 | 944 | "useCoreAPI": true |
945 | 945 | }, |
946 | | - "1c86c1fce21b783": { |
947 | | - "_id": "1c86c1fce21b783", |
| 946 | + "168ac1894514354": { |
| 947 | + "_id": "168ac1894514354", |
948 | 948 | "component": "MonocoSystem", |
949 | 949 | "state": "sync", |
950 | 950 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }", |
|
956 | 956 | "Monoco": { |
957 | 957 | "monoco": { |
958 | 958 | "_id": "monoco", |
959 | | - "version": "0.6.0" |
| 959 | + "version": "0.7.0" |
960 | 960 | } |
961 | 961 | }, |
962 | 962 | "MonocoChannel": { |
|
0 commit comments