|
317 | 317 | "_id": "MonocoComponentSchema", |
318 | 318 | "_name": "MonocoComponentSchema", |
319 | 319 | "_core": true, |
320 | | - "on": "method", |
321 | 320 | "classInfo": "property", |
| 321 | + "on": "method", |
322 | 322 | "off": "method", |
323 | 323 | "require": "method", |
324 | 324 | "destroy": "method", |
|
589 | 589 | "behaviors": "property", |
590 | 590 | "types": "property", |
591 | 591 | "components": "property", |
592 | | - "ready": "event", |
593 | 592 | "sync": "method", |
594 | | - "main": "method" |
| 593 | + "main": "method", |
| 594 | + "ready": "event" |
595 | 595 | } |
596 | 596 | }, |
597 | 597 | "types": { |
|
762 | 762 | "action": "function main() { var subsystems = [], systems = [], system = null, i = 0, length = 0; subsystems = $db.MonocoSystem.find({ 'subsystem': true }); subsystems.forEach(function (subsystem) { var subsystemId = subsystem._id; this.require(subsystemId).main(); }, this); 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') === 'false') { this.require('monoco').load(system.href, false); } else { this.require('monoco').load(system.href, true); } } if (length === 0) { this.require('monoco').ready(); } }}", |
763 | 763 | "core": true |
764 | 764 | }, |
765 | | - "11b7614f951821d": { |
766 | | - "_id": "11b7614f951821d", |
| 765 | + "1ad6416fb7145af": { |
| 766 | + "_id": "1ad6416fb7145af", |
767 | 767 | "component": "Monoco", |
768 | 768 | "state": "error", |
769 | 769 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
770 | 770 | "core": true |
771 | 771 | }, |
772 | | - "16e2d15e541288c": { |
773 | | - "_id": "16e2d15e541288c", |
| 772 | + "10f75161c312432": { |
| 773 | + "_id": "10f75161c312432", |
774 | 774 | "component": "Monoco", |
775 | 775 | "state": "system", |
776 | 776 | "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;}", |
777 | 777 | "core": true |
778 | 778 | }, |
779 | | - "14b59147071efa9": { |
780 | | - "_id": "14b59147071efa9", |
| 779 | + "1b034139cb1640c": { |
| 780 | + "_id": "1b034139cb1640c", |
781 | 781 | "component": "Monoco", |
782 | 782 | "state": "warning", |
783 | 783 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
784 | 784 | "core": true |
785 | 785 | }, |
786 | | - "1c1d610ee8133f4": { |
787 | | - "_id": "1c1d610ee8133f4", |
| 786 | + "14ca9106ee1b78e": { |
| 787 | + "_id": "14ca9106ee1b78e", |
788 | 788 | "component": "MonocoChannel", |
789 | 789 | "state": "listen", |
790 | 790 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
791 | 791 | "core": true, |
792 | 792 | "useCoreAPI": true |
793 | 793 | }, |
794 | | - "15f9c18c9818840": { |
795 | | - "_id": "15f9c18c9818840", |
| 794 | + "1f0bc18e69157e8": { |
| 795 | + "_id": "1f0bc18e69157e8", |
796 | 796 | "component": "MonocoChannel", |
797 | 797 | "state": "send", |
798 | 798 | "action": "function send(message) { return $channel.send(message); }", |
799 | 799 | "core": true, |
800 | 800 | "useCoreAPI": true |
801 | 801 | }, |
802 | | - "1877315d9018954": { |
803 | | - "_id": "1877315d9018954", |
| 802 | + "1ce9d1ecff1bf3a": { |
| 803 | + "_id": "1ce9d1ecff1bf3a", |
804 | 804 | "component": "MonocoClassInfo", |
805 | 805 | "state": "collection", |
806 | 806 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
807 | 807 | "core": true |
808 | 808 | }, |
809 | | - "16eea112f41f961": { |
810 | | - "_id": "16eea112f41f961", |
| 809 | + "1cd0e1c99f1b76b": { |
| 810 | + "_id": "1cd0e1c99f1b76b", |
811 | 811 | "component": "MonocoClassInfo", |
812 | 812 | "state": "collections", |
813 | 813 | "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; }", |
814 | 814 | "core": true |
815 | 815 | }, |
816 | | - "16a091f1f11a0e1": { |
817 | | - "_id": "16a091f1f11a0e1", |
| 816 | + "164c212ea61d2fe": { |
| 817 | + "_id": "164c212ea61d2fe", |
818 | 818 | "component": "MonocoClassInfo", |
819 | 819 | "state": "event", |
820 | 820 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
821 | 821 | "core": true |
822 | 822 | }, |
823 | | - "19fb612ad115cb9": { |
824 | | - "_id": "19fb612ad115cb9", |
| 823 | + "1713f19cb312466": { |
| 824 | + "_id": "1713f19cb312466", |
825 | 825 | "component": "MonocoClassInfo", |
826 | 826 | "state": "events", |
827 | 827 | "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; }", |
828 | 828 | "core": true |
829 | 829 | }, |
830 | | - "17d091f94312a3f": { |
831 | | - "_id": "17d091f94312a3f", |
| 830 | + "1405718c1d133ed": { |
| 831 | + "_id": "1405718c1d133ed", |
832 | 832 | "component": "MonocoClassInfo", |
833 | 833 | "state": "method", |
834 | 834 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
835 | 835 | "core": true |
836 | 836 | }, |
837 | | - "1c05f148c61b2a9": { |
838 | | - "_id": "1c05f148c61b2a9", |
| 837 | + "18ede1c29810b6d": { |
| 838 | + "_id": "18ede1c29810b6d", |
839 | 839 | "component": "MonocoClassInfo", |
840 | 840 | "state": "methods", |
841 | 841 | "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; }", |
842 | 842 | "core": true |
843 | 843 | }, |
844 | | - "1a5531db431d77b": { |
845 | | - "_id": "1a5531db431d77b", |
| 844 | + "1c58f1875e193b3": { |
| 845 | + "_id": "1c58f1875e193b3", |
846 | 846 | "component": "MonocoClassInfo", |
847 | 847 | "state": "properties", |
848 | 848 | "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; }", |
849 | 849 | "core": true |
850 | 850 | }, |
851 | | - "1ffbd18db110e5f": { |
852 | | - "_id": "1ffbd18db110e5f", |
| 851 | + "1c1911b81f192b7": { |
| 852 | + "_id": "1c1911b81f192b7", |
853 | 853 | "component": "MonocoClassInfo", |
854 | 854 | "state": "property", |
855 | 855 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
856 | 856 | "core": true |
857 | 857 | }, |
858 | | - "1f2811ade21d43f": { |
859 | | - "_id": "1f2811ade21d43f", |
| 858 | + "18bad110751d647": { |
| 859 | + "_id": "18bad110751d647", |
860 | 860 | "component": "MonocoComponent", |
861 | 861 | "state": "destroy", |
862 | 862 | "action": "function destroy() { $component.destroy(this.id()); }", |
863 | 863 | "core": true, |
864 | 864 | "useCoreAPI": true |
865 | 865 | }, |
866 | | - "1155a148481613c": { |
867 | | - "_id": "1155a148481613c", |
| 866 | + "1e67d13c1b1837f": { |
| 867 | + "_id": "1e67d13c1b1837f", |
868 | 868 | "component": "MonocoComponent", |
869 | 869 | "state": "off", |
870 | 870 | "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 + \"'\"}); } } }", |
871 | 871 | "core": true, |
872 | 872 | "useCoreAPI": true |
873 | 873 | }, |
874 | | - "18fe31951f141dd": { |
875 | | - "_id": "18fe31951f141dd", |
| 874 | + "11ce117ceb18a18": { |
| 875 | + "_id": "11ce117ceb18a18", |
876 | 876 | "component": "MonocoComponent", |
877 | 877 | "state": "require", |
878 | 878 | "action": "function require(id) { return $component.get(id); }", |
879 | 879 | "core": true, |
880 | 880 | "useCoreAPI": true |
881 | 881 | }, |
882 | | - "169511710e1d5ab": { |
883 | | - "_id": "169511710e1d5ab", |
| 882 | + "11dec1f0ed10d24": { |
| 883 | + "_id": "11dec1f0ed10d24", |
884 | 884 | "component": "MonocoDatabase", |
885 | 885 | "state": "subsystem", |
886 | 886 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
887 | 887 | "core": true, |
888 | 888 | "useCoreAPI": true |
889 | 889 | }, |
890 | | - "182501cbe315a58": { |
891 | | - "_id": "182501cbe315a58", |
| 890 | + "139d11e2db1c219": { |
| 891 | + "_id": "139d11e2db1c219", |
892 | 892 | "component": "MonocoDatabase", |
893 | 893 | "state": "system", |
894 | 894 | "action": "function system(system) { return $db.system(system); }", |
895 | 895 | "core": true, |
896 | 896 | "useCoreAPI": true |
897 | 897 | }, |
898 | | - "1dc3111ec116b86": { |
899 | | - "_id": "1dc3111ec116b86", |
| 898 | + "1b9b91e4371ed9f": { |
| 899 | + "_id": "1b9b91e4371ed9f", |
900 | 900 | "component": "MonocoMetamodel", |
901 | 901 | "state": "create", |
902 | 902 | "action": "function create() { $metamodel.create(); }", |
903 | 903 | "core": true, |
904 | 904 | "useCoreAPI": true |
905 | 905 | }, |
906 | | - "1f0591deb3149d6": { |
907 | | - "_id": "1f0591deb3149d6", |
| 906 | + "161e0178211c6cb": { |
| 907 | + "_id": "161e0178211c6cb", |
908 | 908 | "component": "MonocoMetamodel", |
909 | 909 | "state": "schema", |
910 | 910 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
911 | 911 | "core": true, |
912 | 912 | "useCoreAPI": true |
913 | 913 | }, |
914 | | - "1922e13a0414046": { |
915 | | - "_id": "1922e13a0414046", |
| 914 | + "1c16919f3618363": { |
| 915 | + "_id": "1c16919f3618363", |
916 | 916 | "component": "MonocoMetamodel", |
917 | 917 | "state": "type", |
918 | 918 | "action": "function type(type) { $metamodel.type(type); }", |
919 | 919 | "core": true, |
920 | 920 | "useCoreAPI": true |
921 | 921 | }, |
922 | | - "1d4b314ebe1c34c": { |
923 | | - "_id": "1d4b314ebe1c34c", |
| 922 | + "169e71562912210": { |
| 923 | + "_id": "169e71562912210", |
924 | 924 | "component": "MonocoSystem", |
925 | 925 | "state": "sync", |
926 | 926 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }", |
|
0 commit comments