|
1 | 1 | {
|
2 | 2 | "name": "monoco",
|
3 |
| - "version": "0.3.4", |
| 3 | + "version": "0.3.5", |
4 | 4 | "description": "A Model and a NoSQL Database for Components",
|
5 | 5 | "_id": "e89c617b6b15d24",
|
6 | 6 | "schemas": {
|
|
737 | 737 | "action": "function ready() { 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]; this.load(system.href, false); } } }",
|
738 | 738 | "core": true
|
739 | 739 | },
|
740 |
| - "1f8c01c14415c1f": { |
741 |
| - "_id": "1f8c01c14415c1f", |
| 740 | + "1e9821b2a3125de": { |
| 741 | + "_id": "1e9821b2a3125de", |
742 | 742 | "component": "Monoco",
|
743 | 743 | "state": "error",
|
744 | 744 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
|
745 | 745 | "core": true
|
746 | 746 | },
|
747 |
| - "1b6a213b1114b5d": { |
748 |
| - "_id": "1b6a213b1114b5d", |
| 747 | + "11ced1bb5c189ec": { |
| 748 | + "_id": "11ced1bb5c189ec", |
749 | 749 | "component": "Monoco",
|
750 | 750 | "state": "find",
|
751 | 751 | "action": "function find(Class, query) { return $component.find(Class, query);}",
|
752 | 752 | "core": true,
|
753 | 753 | "useCoreAPI": true
|
754 | 754 | },
|
755 |
| - "169b5155981b411": { |
756 |
| - "_id": "169b5155981b411", |
| 755 | + "1eaa91ef7d1aaca": { |
| 756 | + "_id": "1eaa91ef7d1aaca", |
757 | 757 | "component": "Monoco",
|
758 | 758 | "state": "system",
|
759 | 759 | "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; }",
|
760 | 760 | "core": true
|
761 | 761 | },
|
762 |
| - "1094e15ac317b7b": { |
763 |
| - "_id": "1094e15ac317b7b", |
| 762 | + "1ff5011cee13f5e": { |
| 763 | + "_id": "1ff5011cee13f5e", |
764 | 764 | "component": "Monoco",
|
765 | 765 | "state": "warning",
|
766 | 766 | "action": "function warning(message) { console.warn('monoco: ' + message); }",
|
767 | 767 | "core": true
|
768 | 768 | },
|
769 |
| - "1ffe91b8b61be50": { |
770 |
| - "_id": "1ffe91b8b61be50", |
| 769 | + "11caf178fa134b9": { |
| 770 | + "_id": "11caf178fa134b9", |
771 | 771 | "component": "MonocoChannel",
|
772 | 772 | "state": "listen",
|
773 | 773 | "action": "function listen(event, action) { $channel.listen(event, action); }",
|
774 | 774 | "core": true,
|
775 | 775 | "useCoreAPI": true
|
776 | 776 | },
|
777 |
| - "17fd0152e01aa83": { |
778 |
| - "_id": "17fd0152e01aa83", |
| 777 | + "16ad41550714670": { |
| 778 | + "_id": "16ad41550714670", |
779 | 779 | "component": "MonocoChannel",
|
780 | 780 | "state": "send",
|
781 | 781 | "action": "function send(message) { return $channel.send(message); }",
|
782 | 782 | "core": true,
|
783 | 783 | "useCoreAPI": true
|
784 | 784 | },
|
785 |
| - "107be1d08910511": { |
786 |
| - "_id": "107be1d08910511", |
| 785 | + "1d82513ca81cfec": { |
| 786 | + "_id": "1d82513ca81cfec", |
787 | 787 | "component": "MonocoClassInfo",
|
788 | 788 | "state": "event",
|
789 | 789 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
|
790 | 790 | "core": true
|
791 | 791 | },
|
792 |
| - "1dc961303f1fe60": { |
793 |
| - "_id": "1dc961303f1fe60", |
| 792 | + "14d5511a2e1c2fe": { |
| 793 | + "_id": "14d5511a2e1c2fe", |
794 | 794 | "component": "MonocoClassInfo",
|
795 | 795 | "state": "events",
|
796 | 796 | "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; }",
|
797 | 797 | "core": true
|
798 | 798 | },
|
799 |
| - "10fd31cae010349": { |
800 |
| - "_id": "10fd31cae010349", |
| 799 | + "15b8a12ba813c2e": { |
| 800 | + "_id": "15b8a12ba813c2e", |
801 | 801 | "component": "MonocoClassInfo",
|
802 | 802 | "state": "method",
|
803 | 803 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
|
804 | 804 | "core": true
|
805 | 805 | },
|
806 |
| - "1b63a122e41a733": { |
807 |
| - "_id": "1b63a122e41a733", |
| 806 | + "19b9a1bc2119ae3": { |
| 807 | + "_id": "19b9a1bc2119ae3", |
808 | 808 | "component": "MonocoClassInfo",
|
809 | 809 | "state": "methods",
|
810 | 810 | "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; }",
|
811 | 811 | "core": true
|
812 | 812 | },
|
813 |
| - "1890d1b78b13ee1": { |
814 |
| - "_id": "1890d1b78b13ee1", |
| 813 | + "1d9771924611328": { |
| 814 | + "_id": "1d9771924611328", |
815 | 815 | "component": "MonocoClassInfo",
|
816 | 816 | "state": "properties",
|
817 | 817 | "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; }",
|
818 | 818 | "core": true
|
819 | 819 | },
|
820 |
| - "16d6e10a361f6f9": { |
821 |
| - "_id": "16d6e10a361f6f9", |
| 820 | + "182f1179a81d52a": { |
| 821 | + "_id": "182f1179a81d52a", |
822 | 822 | "component": "MonocoClassInfo",
|
823 | 823 | "state": "property",
|
824 | 824 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
|
825 | 825 | "core": true
|
826 | 826 | },
|
827 |
| - "1a6311d46d1e6a3": { |
828 |
| - "_id": "1a6311d46d1e6a3", |
| 827 | + "18cd51ab241fbe8": { |
| 828 | + "_id": "18cd51ab241fbe8", |
829 | 829 | "component": "MonocoComponent",
|
830 | 830 | "state": "destroy",
|
831 | 831 | "action": "function destroy() { $component.destroy(this.id()); }",
|
832 | 832 | "core": true,
|
833 | 833 | "useCoreAPI": true
|
834 | 834 | },
|
835 |
| - "1d3fd1be2b13666": { |
836 |
| - "_id": "1d3fd1be2b13666", |
| 835 | + "1fa9f1557b1c67c": { |
| 836 | + "_id": "1fa9f1557b1c67c", |
837 | 837 | "component": "MonocoComponent",
|
838 | 838 | "state": "off",
|
839 | 839 | "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 + \"'\"}); } } }",
|
840 | 840 | "core": true,
|
841 | 841 | "useCoreAPI": true
|
842 | 842 | },
|
843 |
| - "11bac13f57128ae": { |
844 |
| - "_id": "11bac13f57128ae", |
| 843 | + "1b0d112d88129d5": { |
| 844 | + "_id": "1b0d112d88129d5", |
845 | 845 | "component": "MonocoComponent",
|
846 | 846 | "state": "require",
|
847 | 847 | "action": "function require(id) { return $component.get(id); }",
|
848 | 848 | "core": true,
|
849 | 849 | "useCoreAPI": true
|
850 | 850 | },
|
851 |
| - "1bd971c28e14eaa": { |
852 |
| - "_id": "1bd971c28e14eaa", |
| 851 | + "1f96711cb01f43a": { |
| 852 | + "_id": "1f96711cb01f43a", |
853 | 853 | "component": "MonocoDatabase",
|
854 | 854 | "state": "subsystem",
|
855 | 855 | "action": "function subsystem(params) { return $db.subsystem(params); }",
|
856 | 856 | "core": true,
|
857 | 857 | "useCoreAPI": true
|
858 | 858 | },
|
859 |
| - "12aa911ef818fdd": { |
860 |
| - "_id": "12aa911ef818fdd", |
| 859 | + "1a7f91f8711a8a6": { |
| 860 | + "_id": "1a7f91f8711a8a6", |
861 | 861 | "component": "MonocoDatabase",
|
862 | 862 | "state": "system",
|
863 | 863 | "action": "function system(system) { return $db.system(system); }",
|
864 | 864 | "core": true,
|
865 | 865 | "useCoreAPI": true
|
866 | 866 | },
|
867 |
| - "1d65f1bb1b19e00": { |
868 |
| - "_id": "1d65f1bb1b19e00", |
| 867 | + "1362b1a251106cb": { |
| 868 | + "_id": "1362b1a251106cb", |
869 | 869 | "component": "MonocoMetamodel",
|
870 | 870 | "state": "create",
|
871 | 871 | "action": "function create() { $metamodel.create(); }",
|
872 | 872 | "core": true,
|
873 | 873 | "useCoreAPI": true
|
874 | 874 | },
|
875 |
| - "1122b1fb591f0c9": { |
876 |
| - "_id": "1122b1fb591f0c9", |
| 875 | + "10d2d17af21b75e": { |
| 876 | + "_id": "10d2d17af21b75e", |
877 | 877 | "component": "MonocoMetamodel",
|
878 | 878 | "state": "schema",
|
879 | 879 | "action": "function schema(schema) { $metamodel.schema(schema); }",
|
880 | 880 | "core": true,
|
881 | 881 | "useCoreAPI": true
|
882 | 882 | },
|
883 |
| - "1413d1e64011070": { |
884 |
| - "_id": "1413d1e64011070", |
| 883 | + "1aee51fae51c488": { |
| 884 | + "_id": "1aee51fae51c488", |
885 | 885 | "component": "MonocoMetamodel",
|
886 | 886 | "state": "type",
|
887 | 887 | "action": "function type(type) { $metamodel.type(type); }",
|
888 | 888 | "core": true,
|
889 | 889 | "useCoreAPI": true
|
890 | 890 | },
|
891 |
| - "18aa31c1581d0ff": { |
892 |
| - "_id": "18aa31c1581d0ff", |
| 891 | + "1757c11ec81428a": { |
| 892 | + "_id": "1757c11ec81428a", |
893 | 893 | "component": "MonocoSystem",
|
894 | 894 | "state": "sync",
|
895 | 895 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }",
|
896 | 896 | "core": true,
|
897 | 897 | "useCoreAPI": true
|
898 | 898 | },
|
899 |
| - "11f8719d6d1ea17": { |
900 |
| - "_id": "11f8719d6d1ea17", |
| 899 | + "184df1440c14198": { |
| 900 | + "_id": "184df1440c14198", |
901 | 901 | "component": "e89c617b6b15d24",
|
902 | 902 | "state": "main",
|
903 | 903 | "action": "function main() { var monoco = $component.get('monoco'); monoco.ready(); }",
|
|
909 | 909 | "Monoco": {
|
910 | 910 | "monoco": {
|
911 | 911 | "_id": "monoco",
|
912 |
| - "version": "0.3.4" |
| 912 | + "version": "0.3.5" |
913 | 913 | }
|
914 | 914 | },
|
915 | 915 | "MonocoChannel": {
|
|
0 commit comments