|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.5.0", |
| 3 | + "version": "0.5.1", |
4 | 4 | "description": "A Model and a NoSQL Database for Components", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
|
608 | 608 | "types": { |
609 | 609 | "html": { |
610 | 610 | "name": "html", |
611 | | - "type": "string" |
| 611 | + "type": "string", |
| 612 | + "core": true |
612 | 613 | }, |
613 | 614 | "css": { |
614 | 615 | "name": "css", |
615 | | - "type": "string" |
| 616 | + "type": "string", |
| 617 | + "core": true |
616 | 618 | }, |
617 | 619 | "javascript": { |
618 | 620 | "name": "javascript", |
619 | | - "type": "string" |
| 621 | + "type": "string", |
| 622 | + "core": true |
620 | 623 | }, |
621 | 624 | "collection": { |
622 | 625 | "name": "collection", |
|
770 | 773 | "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]; if (system.getAttribute('async') === 'true') { this.load(system.href, true); } else { this.load(system.href, false); } } }}", |
771 | 774 | "core": true |
772 | 775 | }, |
773 | | - "10e1a1af4d1cb1b": { |
774 | | - "_id": "10e1a1af4d1cb1b", |
| 776 | + "1ab6c1120813cd4": { |
| 777 | + "_id": "1ab6c1120813cd4", |
775 | 778 | "component": "Monoco", |
776 | 779 | "state": "error", |
777 | 780 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
778 | 781 | "core": true |
779 | 782 | }, |
780 | | - "1a31b182dc1c6d6": { |
781 | | - "_id": "1a31b182dc1c6d6", |
| 783 | + "1dd5b12d7018528": { |
| 784 | + "_id": "1dd5b12d7018528", |
782 | 785 | "component": "Monoco", |
783 | 786 | "state": "find", |
784 | 787 | "action": "function find(Class, query) { return $component.find(Class, query);}", |
785 | 788 | "core": true, |
786 | 789 | "useCoreAPI": true |
787 | 790 | }, |
788 | | - "1d5921a1c21540e": { |
789 | | - "_id": "1d5921a1c21540e", |
| 791 | + "198d3192131c8cf": { |
| 792 | + "_id": "198d3192131c8cf", |
790 | 793 | "component": "Monoco", |
791 | 794 | "state": "system", |
792 | 795 | "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; }", |
793 | 796 | "core": true |
794 | 797 | }, |
795 | | - "1e8681fed717143": { |
796 | | - "_id": "1e8681fed717143", |
| 798 | + "1a82914e86119a9": { |
| 799 | + "_id": "1a82914e86119a9", |
797 | 800 | "component": "Monoco", |
798 | 801 | "state": "warning", |
799 | 802 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
800 | 803 | "core": true |
801 | 804 | }, |
802 | | - "1c6711a7651a799": { |
803 | | - "_id": "1c6711a7651a799", |
| 805 | + "1adee1f0551d3b3": { |
| 806 | + "_id": "1adee1f0551d3b3", |
804 | 807 | "component": "MonocoChannel", |
805 | 808 | "state": "listen", |
806 | 809 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
807 | 810 | "core": true, |
808 | 811 | "useCoreAPI": true |
809 | 812 | }, |
810 | | - "11ea518e401aecb": { |
811 | | - "_id": "11ea518e401aecb", |
| 813 | + "11ed51fcbc1efd4": { |
| 814 | + "_id": "11ed51fcbc1efd4", |
812 | 815 | "component": "MonocoChannel", |
813 | 816 | "state": "send", |
814 | 817 | "action": "function send(message) { return $channel.send(message); }", |
815 | 818 | "core": true, |
816 | 819 | "useCoreAPI": true |
817 | 820 | }, |
818 | | - "1af941c3d0112c4": { |
819 | | - "_id": "1af941c3d0112c4", |
| 821 | + "1f1cb12dc915b94": { |
| 822 | + "_id": "1f1cb12dc915b94", |
820 | 823 | "component": "MonocoClassInfo", |
821 | 824 | "state": "collection", |
822 | 825 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
823 | 826 | "core": true |
824 | 827 | }, |
825 | | - "1aedd191f8147b9": { |
826 | | - "_id": "1aedd191f8147b9", |
| 828 | + "1cbd813e6017b36": { |
| 829 | + "_id": "1cbd813e6017b36", |
827 | 830 | "component": "MonocoClassInfo", |
828 | 831 | "state": "collections", |
829 | 832 | "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; }", |
830 | 833 | "core": true |
831 | 834 | }, |
832 | | - "1a4cc1194b1905e": { |
833 | | - "_id": "1a4cc1194b1905e", |
| 835 | + "1bada164f41208d": { |
| 836 | + "_id": "1bada164f41208d", |
834 | 837 | "component": "MonocoClassInfo", |
835 | 838 | "state": "event", |
836 | 839 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
837 | 840 | "core": true |
838 | 841 | }, |
839 | | - "1ccab1220b12c3c": { |
840 | | - "_id": "1ccab1220b12c3c", |
| 842 | + "18c93111c61cd38": { |
| 843 | + "_id": "18c93111c61cd38", |
841 | 844 | "component": "MonocoClassInfo", |
842 | 845 | "state": "events", |
843 | 846 | "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; }", |
844 | 847 | "core": true |
845 | 848 | }, |
846 | | - "1703a1a84f1ce39": { |
847 | | - "_id": "1703a1a84f1ce39", |
| 849 | + "14f2c16ce419477": { |
| 850 | + "_id": "14f2c16ce419477", |
848 | 851 | "component": "MonocoClassInfo", |
849 | 852 | "state": "method", |
850 | 853 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
851 | 854 | "core": true |
852 | 855 | }, |
853 | | - "1218611746144df": { |
854 | | - "_id": "1218611746144df", |
| 856 | + "16073199f8139dc": { |
| 857 | + "_id": "16073199f8139dc", |
855 | 858 | "component": "MonocoClassInfo", |
856 | 859 | "state": "methods", |
857 | 860 | "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; }", |
858 | 861 | "core": true |
859 | 862 | }, |
860 | | - "1f7fc1edaf1dd73": { |
861 | | - "_id": "1f7fc1edaf1dd73", |
| 863 | + "11b4a1ed2c11947": { |
| 864 | + "_id": "11b4a1ed2c11947", |
862 | 865 | "component": "MonocoClassInfo", |
863 | 866 | "state": "properties", |
864 | 867 | "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; }", |
865 | 868 | "core": true |
866 | 869 | }, |
867 | | - "10fd812697184a2": { |
868 | | - "_id": "10fd812697184a2", |
| 870 | + "18708169141823a": { |
| 871 | + "_id": "18708169141823a", |
869 | 872 | "component": "MonocoClassInfo", |
870 | 873 | "state": "property", |
871 | 874 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
872 | 875 | "core": true |
873 | 876 | }, |
874 | | - "13a241289f18d75": { |
875 | | - "_id": "13a241289f18d75", |
| 877 | + "18b46153d51fd8a": { |
| 878 | + "_id": "18b46153d51fd8a", |
876 | 879 | "component": "MonocoComponent", |
877 | 880 | "state": "destroy", |
878 | 881 | "action": "function destroy() { $component.destroy(this.id()); }", |
879 | 882 | "core": true, |
880 | 883 | "useCoreAPI": true |
881 | 884 | }, |
882 | | - "117a81b6191f511": { |
883 | | - "_id": "117a81b6191f511", |
| 885 | + "16ea9113ba12e55": { |
| 886 | + "_id": "16ea9113ba12e55", |
884 | 887 | "component": "MonocoComponent", |
885 | 888 | "state": "off", |
886 | 889 | "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 + \"'\"}); } } }", |
887 | 890 | "core": true, |
888 | 891 | "useCoreAPI": true |
889 | 892 | }, |
890 | | - "1c5361f7ca12086": { |
891 | | - "_id": "1c5361f7ca12086", |
| 893 | + "126b51ea801654a": { |
| 894 | + "_id": "126b51ea801654a", |
892 | 895 | "component": "MonocoComponent", |
893 | 896 | "state": "require", |
894 | 897 | "action": "function require(id) { return $component.get(id); }", |
895 | 898 | "core": true, |
896 | 899 | "useCoreAPI": true |
897 | 900 | }, |
898 | | - "1c1dd1c8ce16e1b": { |
899 | | - "_id": "1c1dd1c8ce16e1b", |
| 901 | + "1286c1612a1822f": { |
| 902 | + "_id": "1286c1612a1822f", |
900 | 903 | "component": "MonocoDatabase", |
901 | 904 | "state": "subsystem", |
902 | 905 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
903 | 906 | "core": true, |
904 | 907 | "useCoreAPI": true |
905 | 908 | }, |
906 | | - "16d38108eb1ac7f": { |
907 | | - "_id": "16d38108eb1ac7f", |
| 909 | + "177e615c721c6a0": { |
| 910 | + "_id": "177e615c721c6a0", |
908 | 911 | "component": "MonocoDatabase", |
909 | 912 | "state": "system", |
910 | 913 | "action": "function system(system) { return $db.system(system); }", |
911 | 914 | "core": true, |
912 | 915 | "useCoreAPI": true |
913 | 916 | }, |
914 | | - "1979b19ed31dd38": { |
915 | | - "_id": "1979b19ed31dd38", |
| 917 | + "1bc661e40718c2e": { |
| 918 | + "_id": "1bc661e40718c2e", |
916 | 919 | "component": "MonocoMetamodel", |
917 | 920 | "state": "create", |
918 | 921 | "action": "function create() { $metamodel.create(); }", |
919 | 922 | "core": true, |
920 | 923 | "useCoreAPI": true |
921 | 924 | }, |
922 | | - "186801b42e12cee": { |
923 | | - "_id": "186801b42e12cee", |
| 925 | + "11f02174d81367d": { |
| 926 | + "_id": "11f02174d81367d", |
924 | 927 | "component": "MonocoMetamodel", |
925 | 928 | "state": "schema", |
926 | 929 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
927 | 930 | "core": true, |
928 | 931 | "useCoreAPI": true |
929 | 932 | }, |
930 | | - "13a6b1dc121711b": { |
931 | | - "_id": "13a6b1dc121711b", |
| 933 | + "170f11b18216fbf": { |
| 934 | + "_id": "170f11b18216fbf", |
932 | 935 | "component": "MonocoMetamodel", |
933 | 936 | "state": "type", |
934 | 937 | "action": "function type(type) { $metamodel.type(type); }", |
935 | 938 | "core": true, |
936 | 939 | "useCoreAPI": true |
937 | 940 | }, |
938 | | - "195971aec01a075": { |
939 | | - "_id": "195971aec01a075", |
| 941 | + "181dd19ee51dbfa": { |
| 942 | + "_id": "181dd19ee51dbfa", |
940 | 943 | "component": "MonocoSystem", |
941 | 944 | "state": "sync", |
942 | 945 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }", |
943 | 946 | "core": true, |
944 | 947 | "useCoreAPI": true |
945 | 948 | }, |
946 | | - "1700e1840b13469": { |
947 | | - "_id": "1700e1840b13469", |
| 949 | + "1dc0718cfc18cd5": { |
| 950 | + "_id": "1dc0718cfc18cd5", |
948 | 951 | "component": "e89c617b6b15d24", |
949 | 952 | "state": "main", |
950 | 953 | "action": "function main() { var monoco = $component.get('monoco'); monoco.ready(); }", |
|
956 | 959 | "Monoco": { |
957 | 960 | "monoco": { |
958 | 961 | "_id": "monoco", |
959 | | - "version": "0.5.0" |
| 962 | + "version": "0.5.1" |
960 | 963 | } |
961 | 964 | }, |
962 | 965 | "MonocoChannel": { |
|
0 commit comments