@schukai/monster 1.29.0 → 1.29.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +7 -2
- package/README.md +3 -3
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constraints/abstract.js +1 -1
- package/dist/modules/constraints/abstractoperator.js +1 -1
- package/dist/modules/constraints/andoperator.js +1 -1
- package/dist/modules/constraints/invalid.js +1 -1
- package/dist/modules/constraints/isarray.js +1 -1
- package/dist/modules/constraints/isobject.js +1 -1
- package/dist/modules/constraints/namespace.js +1 -1
- package/dist/modules/constraints/oroperator.js +1 -1
- package/dist/modules/constraints/valid.js +1 -1
- package/dist/modules/data/buildmap.js +1 -1
- package/dist/modules/data/buildtree.js +1 -1
- package/dist/modules/data/datasource/namespace.js +1 -1
- package/dist/modules/data/datasource/restapi/writeerror.js +1 -1
- package/dist/modules/data/datasource/restapi.js +1 -1
- package/dist/modules/data/datasource/storage/localstorage.js +1 -1
- package/dist/modules/data/datasource/storage/namespace.js +1 -1
- package/dist/modules/data/datasource/storage/sessionstorage.js +1 -1
- package/dist/modules/data/datasource/storage.js +1 -1
- package/dist/modules/data/datasource.js +1 -1
- package/dist/modules/data/diff.js +1 -1
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +1 -1
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +1 -1
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +1 -1
- package/dist/modules/dom/constants.js +1 -1
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +1 -1
- package/dist/modules/dom/events.js +1 -1
- package/dist/modules/dom/focusmanager.js +1 -1
- package/dist/modules/dom/locale.js +1 -1
- package/dist/modules/dom/namespace.js +1 -1
- package/dist/modules/dom/resource/data.js +1 -1
- package/dist/modules/dom/resource/link/stylesheet.js +1 -1
- package/dist/modules/dom/resource/link.js +1 -1
- package/dist/modules/dom/resource/script.js +1 -1
- package/dist/modules/dom/resource.js +1 -1
- package/dist/modules/dom/resourcemanager.js +1 -1
- package/dist/modules/dom/template.js +1 -1
- package/dist/modules/dom/theme.js +1 -1
- package/dist/modules/dom/updater.js +2 -2
- package/dist/modules/dom/util.js +1 -1
- package/dist/modules/dom/worker/factory.js +1 -1
- package/dist/modules/i18n/formatter.js +1 -1
- package/dist/modules/i18n/locale.js +1 -1
- package/dist/modules/i18n/namespace.js +1 -1
- package/dist/modules/i18n/provider.js +1 -1
- package/dist/modules/i18n/providers/fetch.js +1 -1
- package/dist/modules/i18n/providers/namespace.js +1 -1
- package/dist/modules/i18n/translations.js +1 -1
- package/dist/modules/logging/handler/console.js +1 -1
- package/dist/modules/logging/handler/namespace.js +1 -1
- package/dist/modules/logging/handler.js +1 -1
- package/dist/modules/logging/logentry.js +1 -1
- package/dist/modules/logging/logger.js +1 -1
- package/dist/modules/logging/namespace.js +1 -1
- package/dist/modules/math/namespace.js +1 -1
- package/dist/modules/math/random.js +1 -1
- package/dist/modules/monster.js +1 -1
- package/dist/modules/namespace.js +1 -1
- package/dist/modules/text/formatter.js +1 -1
- package/dist/modules/text/namespace.js +1 -1
- package/dist/modules/types/base.js +1 -1
- package/dist/modules/types/basewithoptions.js +1 -1
- package/dist/modules/types/binary.js +1 -1
- package/dist/modules/types/dataurl.js +1 -1
- package/dist/modules/types/global.js +1 -1
- package/dist/modules/types/id.js +1 -1
- package/dist/modules/types/is.js +1 -1
- package/dist/modules/types/mediatype.js +1 -1
- package/dist/modules/types/namespace.js +1 -1
- package/dist/modules/types/node.js +1 -1
- package/dist/modules/types/nodelist.js +1 -1
- package/dist/modules/types/noderecursiveiterator.js +1 -1
- package/dist/modules/types/observer.js +1 -1
- package/dist/modules/types/observerlist.js +1 -1
- package/dist/modules/types/proxyobserver.js +1 -1
- package/dist/modules/types/queue.js +1 -1
- package/dist/modules/types/randomid.js +1 -1
- package/dist/modules/types/regex.js +1 -1
- package/dist/modules/types/stack.js +1 -1
- package/dist/modules/types/tokenlist.js +1 -1
- package/dist/modules/types/typeof.js +1 -1
- package/dist/modules/types/uniquequeue.js +1 -1
- package/dist/modules/types/uuid.js +1 -1
- package/dist/modules/types/validate.js +1 -1
- package/dist/modules/types/version.js +2 -2
- package/dist/modules/util/clone.js +1 -1
- package/dist/modules/util/comparator.js +1 -1
- package/dist/modules/util/deadmansswitch.js +1 -1
- package/dist/modules/util/freeze.js +1 -1
- package/dist/modules/util/namespace.js +1 -1
- package/dist/modules/util/processing.js +1 -1
- package/dist/modules/util/trimspaces.js +1 -1
- package/dist/monster.dev.js +356 -280
- package/dist/monster.dev.js.map +1 -1
- package/dist/monster.js +2 -2
- package/package.json +1 -1
- package/source/constraints/andoperator.js +5 -5
- package/source/constraints/invalid.js +3 -3
- package/source/constraints/isarray.js +3 -3
- package/source/constraints/isobject.js +3 -3
- package/source/constraints/oroperator.js +5 -5
- package/source/constraints/valid.js +3 -3
- package/source/data/buildmap.js +4 -4
- package/source/data/buildtree.js +2 -2
- package/source/data/datasource/restapi.js +3 -3
- package/source/data/datasource/storage/localstorage.js +2 -2
- package/source/data/datasource/storage/sessionstorage.js +2 -2
- package/source/data/datasource/storage.js +3 -3
- package/source/data/datasource.js +3 -3
- package/source/data/diff.js +3 -3
- package/source/data/extend.js +2 -2
- package/source/data/pathfinder.js +4 -4
- package/source/data/pipe.js +3 -3
- package/source/data/transformer.js +3 -3
- package/source/dom/assembler.js +2 -2
- package/source/dom/attributes.js +26 -26
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +1 -1
- package/source/dom/events.js +6 -6
- package/source/dom/focusmanager.js +2 -2
- package/source/dom/locale.js +2 -2
- package/source/dom/resource/data.js +2 -2
- package/source/dom/resource/link/stylesheet.js +2 -2
- package/source/dom/resource/link.js +2 -2
- package/source/dom/resource/script.js +2 -2
- package/source/dom/resource.js +2 -2
- package/source/dom/resourcemanager.js +2 -2
- package/source/dom/template.js +5 -5
- package/source/dom/theme.js +3 -3
- package/source/dom/updater.js +25 -17
- package/source/dom/util.js +6 -6
- package/source/dom/worker/factory.js +2 -2
- package/source/i18n/formatter.js +4 -4
- package/source/i18n/locale.js +4 -4
- package/source/i18n/provider.js +2 -2
- package/source/i18n/providers/fetch.js +3 -3
- package/source/i18n/translations.js +4 -4
- package/source/logging/handler/console.js +2 -2
- package/source/logging/handler.js +2 -2
- package/source/logging/logentry.js +2 -2
- package/source/logging/logger.js +2 -2
- package/source/math/random.js +2 -2
- package/source/namespace.js +1 -1
- package/source/text/formatter.js +3 -3
- package/source/types/base.js +2 -2
- package/source/types/basewithoptions.js +32 -6
- package/source/types/binary.js +4 -4
- package/source/types/dataurl.js +4 -4
- package/source/types/global.js +4 -4
- package/source/types/id.js +2 -2
- package/source/types/is.js +20 -20
- package/source/types/mediatype.js +4 -4
- package/source/types/node.js +2 -2
- package/source/types/nodelist.js +2 -2
- package/source/types/noderecursiveiterator.js +4 -4
- package/source/types/observer.js +3 -3
- package/source/types/observerlist.js +2 -2
- package/source/types/proxyobserver.js +5 -5
- package/source/types/queue.js +3 -3
- package/source/types/randomid.js +2 -2
- package/source/types/regex.js +2 -2
- package/source/types/stack.js +2 -2
- package/source/types/tokenlist.js +2 -2
- package/source/types/typeof.js +3 -3
- package/source/types/uniquequeue.js +2 -2
- package/source/types/uuid.js +2 -2
- package/source/types/validate.js +20 -20
- package/source/types/version.js +6 -6
- package/source/util/clone.js +2 -2
- package/source/util/comparator.js +3 -3
- package/source/util/deadmansswitch.js +3 -3
- package/source/util/freeze.js +2 -2
- package/source/util/processing.js +3 -3
- package/source/util/trimspaces.js +2 -2
- package/test/cases/dom/updater.js +76 -3
- package/test/cases/monster.js +1 -1
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +2 -2
- package/test/web/tests.js +2 -2
package/dist/monster.dev.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** Monster 1.29.
|
1
|
+
/** Monster 1.29.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
4
4
|
module.exports = factory();
|
@@ -140,7 +140,7 @@ var Monster = new Namespace("Monster");
|
|
140
140
|
*
|
141
141
|
* ```
|
142
142
|
* <script type="module">
|
143
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
143
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
144
144
|
* function hello() {
|
145
145
|
* console.log('Hello World!');
|
146
146
|
* }
|
@@ -387,7 +387,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
387
387
|
*
|
388
388
|
* ```
|
389
389
|
* <script type="module">
|
390
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
390
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
391
391
|
* new Monster.Types.Base()
|
392
392
|
* </script>
|
393
393
|
* ```
|
@@ -396,7 +396,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
396
396
|
*
|
397
397
|
* ```
|
398
398
|
* <script type="module">
|
399
|
-
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
399
|
+
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/base.js';
|
400
400
|
* new Base()
|
401
401
|
* </script>
|
402
402
|
* ```
|
@@ -568,7 +568,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
568
568
|
*
|
569
569
|
* ```
|
570
570
|
* <script type="module">
|
571
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
571
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
572
572
|
* new Monster.Constraint.AndOperator();
|
573
573
|
* </script>
|
574
574
|
* ```
|
@@ -577,16 +577,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
577
577
|
*
|
578
578
|
* ```
|
579
579
|
* <script type="module">
|
580
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
580
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/andoperator.js';
|
581
581
|
* new AndOperator();
|
582
582
|
* </script>
|
583
583
|
* ```
|
584
584
|
*
|
585
585
|
* @example
|
586
586
|
*
|
587
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
588
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
589
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
587
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/valid.js';
|
588
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/invalid.js';
|
589
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/andoperator.js';
|
590
590
|
*
|
591
591
|
* new AndOperator(
|
592
592
|
* new Valid(), new Valid()).isValid()
|
@@ -688,7 +688,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
688
688
|
*
|
689
689
|
* ```
|
690
690
|
* <script type="module">
|
691
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
691
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
692
692
|
* new Monster.Constraint.Invalid();
|
693
693
|
* </script>
|
694
694
|
* ```
|
@@ -697,14 +697,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
697
697
|
*
|
698
698
|
* ```
|
699
699
|
* <script type="module">
|
700
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
700
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/invalid.js';
|
701
701
|
* new Invalid();
|
702
702
|
* </script>
|
703
703
|
* ```
|
704
704
|
*
|
705
705
|
* @example
|
706
706
|
*
|
707
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
707
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/invalid.js';
|
708
708
|
*
|
709
709
|
* new Invalid().isValid()
|
710
710
|
* .then(()=>console.log(true))
|
@@ -799,7 +799,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
799
799
|
*
|
800
800
|
* ```
|
801
801
|
* <script type="module">
|
802
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
802
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
803
803
|
* new Monster.Constraint.IsArray()
|
804
804
|
* </script>
|
805
805
|
* ```
|
@@ -808,14 +808,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
808
808
|
*
|
809
809
|
* ```
|
810
810
|
* <script type="module">
|
811
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
811
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/isarray.js';
|
812
812
|
* console.log(new IsArray())
|
813
813
|
* </script>
|
814
814
|
* ```
|
815
815
|
*
|
816
816
|
* @example
|
817
817
|
*
|
818
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
818
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/isarray.js';
|
819
819
|
*
|
820
820
|
* new IsArray()
|
821
821
|
* .isValid([])
|
@@ -904,7 +904,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
904
904
|
*
|
905
905
|
* ```
|
906
906
|
* <script type="module">
|
907
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
907
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
908
908
|
* Monster.Types.isIterable(null) // ↦ false
|
909
909
|
* Monster.Types.isIterable('hello') // ↦ true
|
910
910
|
* Monster.Types.isIterable([]) // ↦ true
|
@@ -915,7 +915,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
915
915
|
*
|
916
916
|
* ```
|
917
917
|
* <script type="module">
|
918
|
-
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
918
|
+
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
919
919
|
* isIterable(null) // ↦ false
|
920
920
|
* isIterable('hello') // ↦ true
|
921
921
|
* isIterable([]) // ↦ true
|
@@ -943,7 +943,7 @@ function isIterable(value) {
|
|
943
943
|
*
|
944
944
|
* ```
|
945
945
|
* <script type="module">
|
946
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
946
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
947
947
|
* Monster.Types.isPrimitive('2') // ↦ false
|
948
948
|
* Monster.Types.isPrimitive([]) // ↦ true
|
949
949
|
* </script>
|
@@ -953,7 +953,7 @@ function isIterable(value) {
|
|
953
953
|
*
|
954
954
|
* ```
|
955
955
|
* <script type="module">
|
956
|
-
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
956
|
+
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
957
957
|
* isPrimitive('2')) // ↦ true
|
958
958
|
* isPrimitive([])) // ↦ false
|
959
959
|
* </script>
|
@@ -991,7 +991,7 @@ function isPrimitive(value) {
|
|
991
991
|
*
|
992
992
|
* ```
|
993
993
|
* <script type="module">
|
994
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
994
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
995
995
|
* Monster.Types.isSymbol('2') // ↦ false
|
996
996
|
* Monster.Types.isSymbol(Symbol('test') // ↦ true
|
997
997
|
* </script>
|
@@ -1001,7 +1001,7 @@ function isPrimitive(value) {
|
|
1001
1001
|
*
|
1002
1002
|
* ```
|
1003
1003
|
* <script type="module">
|
1004
|
-
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1004
|
+
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1005
1005
|
* isSymbol(Symbol('a'))) // ↦ true
|
1006
1006
|
* isSymbol([]) // ↦ false
|
1007
1007
|
* </script>
|
@@ -1027,7 +1027,7 @@ function isSymbol(value) {
|
|
1027
1027
|
*
|
1028
1028
|
* ```
|
1029
1029
|
* <script type="module">
|
1030
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1030
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1031
1031
|
* Monster.Types.isBoolean('2') // ↦ false
|
1032
1032
|
* Monster.Types.isBoolean([]) // ↦ false
|
1033
1033
|
* Monster.Types.isBoolean(true) // ↦ true
|
@@ -1038,7 +1038,7 @@ function isSymbol(value) {
|
|
1038
1038
|
*
|
1039
1039
|
* ```
|
1040
1040
|
* <script type="module">
|
1041
|
-
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1041
|
+
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1042
1042
|
* isBoolean('2')) // ↦ false
|
1043
1043
|
* isBoolean([])) // ↦ false
|
1044
1044
|
* isBoolean(2>4)) // ↦ true
|
@@ -1069,7 +1069,7 @@ function isBoolean(value) {
|
|
1069
1069
|
*
|
1070
1070
|
* ```
|
1071
1071
|
* <script type="module">
|
1072
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1072
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1073
1073
|
* Monster.Types.isString('2') // ↦ true
|
1074
1074
|
* Monster.Types.isString([]) // ↦ false
|
1075
1075
|
* </script>
|
@@ -1079,7 +1079,7 @@ function isBoolean(value) {
|
|
1079
1079
|
*
|
1080
1080
|
* ```
|
1081
1081
|
* <script type="module">
|
1082
|
-
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1082
|
+
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1083
1083
|
* isString('2')) // ↦ true
|
1084
1084
|
* isString([])) // ↦ false
|
1085
1085
|
* </script>
|
@@ -1109,7 +1109,7 @@ function isString(value) {
|
|
1109
1109
|
*
|
1110
1110
|
* ```
|
1111
1111
|
* <script type="module">
|
1112
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1112
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1113
1113
|
* Monster.Types.isObject('2') // ↦ false
|
1114
1114
|
* Monster.Types.isObject([]) // ↦ false
|
1115
1115
|
* Monster.Types.isObject({}) // ↦ true
|
@@ -1120,7 +1120,7 @@ function isString(value) {
|
|
1120
1120
|
*
|
1121
1121
|
* ```
|
1122
1122
|
* <script type="module">
|
1123
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1123
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1124
1124
|
* isObject('2')) // ↦ false
|
1125
1125
|
* isObject([])) // ↦ false
|
1126
1126
|
* </script>
|
@@ -1153,7 +1153,7 @@ function isObject(value) {
|
|
1153
1153
|
*
|
1154
1154
|
* ```
|
1155
1155
|
* <script type="module">
|
1156
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1156
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1157
1157
|
* Monster.Types.isInstance('2') // ↦ false
|
1158
1158
|
* Monster.Types.isInstance([]) // ↦ false
|
1159
1159
|
* Monster.Types.isInstance({}) // ↦ true
|
@@ -1164,7 +1164,7 @@ function isObject(value) {
|
|
1164
1164
|
*
|
1165
1165
|
* ```
|
1166
1166
|
* <script type="module">
|
1167
|
-
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1167
|
+
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1168
1168
|
* isInstance('2')) // ↦ false
|
1169
1169
|
* isInstance([])) // ↦ false
|
1170
1170
|
* </script>
|
@@ -1194,7 +1194,7 @@ function isInstance(value, instance) {
|
|
1194
1194
|
*
|
1195
1195
|
* ```
|
1196
1196
|
* <script type="module">
|
1197
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1197
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1198
1198
|
* Monster.Types.isArray('2') // ↦ false
|
1199
1199
|
* Monster.Types.isArray([]) // ↦ true
|
1200
1200
|
* </script>
|
@@ -1204,7 +1204,7 @@ function isInstance(value, instance) {
|
|
1204
1204
|
*
|
1205
1205
|
* ```
|
1206
1206
|
* <script type="module">
|
1207
|
-
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1207
|
+
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1208
1208
|
* isArray('2')) // ↦ false
|
1209
1209
|
* isArray([])) // ↦ true
|
1210
1210
|
* </script>
|
@@ -1231,7 +1231,7 @@ function isArray(value) {
|
|
1231
1231
|
*
|
1232
1232
|
* ```
|
1233
1233
|
* <script type="module">
|
1234
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1234
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1235
1235
|
* Monster.Types.isFunction(()=>{}) // ↦ true
|
1236
1236
|
* Monster.Types.isFunction('2') // ↦ false
|
1237
1237
|
* Monster.Types.isFunction([]) // ↦ false
|
@@ -1242,7 +1242,7 @@ function isArray(value) {
|
|
1242
1242
|
*
|
1243
1243
|
* ```
|
1244
1244
|
* <script type="module">
|
1245
|
-
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1245
|
+
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1246
1246
|
* isFunction(()=>{}) // ↦ true
|
1247
1247
|
* isFunction('2')) // ↦ false
|
1248
1248
|
* isFunction([])) // ↦ false
|
@@ -1276,7 +1276,7 @@ function isFunction(value) {
|
|
1276
1276
|
*
|
1277
1277
|
* ```
|
1278
1278
|
* <script type="module">
|
1279
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1279
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1280
1280
|
* Monster.Types.isInteger(()=>{}) // ↦ true
|
1281
1281
|
* Monster.Types.isInteger('2') // ↦ false
|
1282
1282
|
* Monster.Types.isInteger(2) // ↦ true
|
@@ -1287,7 +1287,7 @@ function isFunction(value) {
|
|
1287
1287
|
*
|
1288
1288
|
* ```
|
1289
1289
|
* <script type="module">
|
1290
|
-
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1290
|
+
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
1291
1291
|
* isInteger(()=>{}) // ↦ true
|
1292
1292
|
* isInteger('2')) // ↦ false
|
1293
1293
|
* isInteger(2)) // ↦ true
|
@@ -1360,7 +1360,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1360
1360
|
*
|
1361
1361
|
* ```
|
1362
1362
|
* <script type="module">
|
1363
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1363
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1364
1364
|
* console.log(new Monster.Constraint.IsObject())
|
1365
1365
|
* </script>
|
1366
1366
|
* ```
|
@@ -1369,14 +1369,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1369
1369
|
*
|
1370
1370
|
* ```
|
1371
1371
|
* <script type="module">
|
1372
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1372
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/isobject.js';
|
1373
1373
|
* console.log(new IsObject())
|
1374
1374
|
* </script>
|
1375
1375
|
* ```
|
1376
1376
|
*
|
1377
1377
|
* @example
|
1378
1378
|
*
|
1379
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1379
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/isobject.js';
|
1380
1380
|
*
|
1381
1381
|
* new IsObject()
|
1382
1382
|
* .isValid({})
|
@@ -1479,7 +1479,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1479
1479
|
*
|
1480
1480
|
* ```
|
1481
1481
|
* <script type="module">
|
1482
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1482
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1483
1483
|
* new Monster.Constraint.OrOperator();
|
1484
1484
|
* </script>
|
1485
1485
|
* ```
|
@@ -1488,16 +1488,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1488
1488
|
*
|
1489
1489
|
* ```
|
1490
1490
|
* <script type="module">
|
1491
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1491
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraint/oroperator.js';
|
1492
1492
|
* new OrOperator();
|
1493
1493
|
* </script>
|
1494
1494
|
* ```
|
1495
1495
|
*
|
1496
1496
|
* @example
|
1497
1497
|
*
|
1498
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1499
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1500
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1498
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/valid.js';
|
1499
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/invalid.js';
|
1500
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/oroperator.js';
|
1501
1501
|
*
|
1502
1502
|
* new OrOperator(
|
1503
1503
|
* new Valid(), new Invalid()).isValid()
|
@@ -1622,7 +1622,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1622
1622
|
*
|
1623
1623
|
* ```
|
1624
1624
|
* <script type="module">
|
1625
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1625
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1626
1626
|
* new Monster.Constraint.Valid();
|
1627
1627
|
* </script>
|
1628
1628
|
* ```
|
@@ -1631,14 +1631,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1631
1631
|
*
|
1632
1632
|
* ```
|
1633
1633
|
* <script type="module">
|
1634
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1634
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/valid.js';
|
1635
1635
|
* new Valid();
|
1636
1636
|
* </script>
|
1637
1637
|
* ```
|
1638
1638
|
*
|
1639
1639
|
* @example
|
1640
1640
|
*
|
1641
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1641
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/constraints/valid.js';
|
1642
1642
|
*
|
1643
1643
|
* new Valid().isValid()
|
1644
1644
|
* .then(()=>console.log(true))
|
@@ -1747,7 +1747,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1747
1747
|
*
|
1748
1748
|
* ```
|
1749
1749
|
* <script type="module">
|
1750
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1750
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
1751
1751
|
* console.log(Monster.Data.buildMap())
|
1752
1752
|
* </script>
|
1753
1753
|
* ```
|
@@ -1756,7 +1756,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1756
1756
|
*
|
1757
1757
|
* ```
|
1758
1758
|
* <script type="module">
|
1759
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1759
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/buildmap.js';
|
1760
1760
|
* console.log(buildMap())
|
1761
1761
|
* </script>
|
1762
1762
|
* ```
|
@@ -1767,7 +1767,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1767
1767
|
*
|
1768
1768
|
* @example
|
1769
1769
|
*
|
1770
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
1770
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/buildmap.js';
|
1771
1771
|
* // a typical data structure as reported by an api
|
1772
1772
|
*
|
1773
1773
|
* let map;
|
@@ -1998,7 +1998,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1998
1998
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
1999
1999
|
*
|
2000
2000
|
* @example
|
2001
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2001
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/buildmap.js';
|
2002
2002
|
*
|
2003
2003
|
* let obj = {
|
2004
2004
|
* "data": [
|
@@ -2201,7 +2201,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2201
2201
|
*
|
2202
2202
|
* ```
|
2203
2203
|
* <script type="module">
|
2204
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2204
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2205
2205
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
2206
2206
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
2207
2207
|
* </script>
|
@@ -2211,7 +2211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2211
2211
|
*
|
2212
2212
|
* ```
|
2213
2213
|
* <script type="module">
|
2214
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2214
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2215
2215
|
* console.log(validateIterable('2')) // ↦ TypeError
|
2216
2216
|
* console.log(validateIterable([])) // ↦ value
|
2217
2217
|
* </script>
|
@@ -2242,7 +2242,7 @@ function validateIterable(value) {
|
|
2242
2242
|
*
|
2243
2243
|
* ```
|
2244
2244
|
* <script type="module">
|
2245
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2245
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2246
2246
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
2247
2247
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
2248
2248
|
* </script>
|
@@ -2252,7 +2252,7 @@ function validateIterable(value) {
|
|
2252
2252
|
*
|
2253
2253
|
* ```
|
2254
2254
|
* <script type="module">
|
2255
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2255
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2256
2256
|
* console.log(validatePrimitive('2')) // ↦ value
|
2257
2257
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
2258
2258
|
* </script>
|
@@ -2284,7 +2284,7 @@ function validatePrimitive(value) {
|
|
2284
2284
|
*
|
2285
2285
|
* ```
|
2286
2286
|
* <script type="module">
|
2287
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2287
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2288
2288
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
2289
2289
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
2290
2290
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
@@ -2295,7 +2295,7 @@ function validatePrimitive(value) {
|
|
2295
2295
|
*
|
2296
2296
|
* ```
|
2297
2297
|
* <script type="module">
|
2298
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2298
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2299
2299
|
* console.log(validateBoolean(false)) // ↦ value
|
2300
2300
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
2301
2301
|
* console.log(validateBoolean([])) // ↦ TypeError
|
@@ -2326,7 +2326,7 @@ function validateBoolean(value) {
|
|
2326
2326
|
*
|
2327
2327
|
* ```
|
2328
2328
|
* <script type="module">
|
2329
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2329
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2330
2330
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
2331
2331
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
2332
2332
|
* </script>
|
@@ -2336,7 +2336,7 @@ function validateBoolean(value) {
|
|
2336
2336
|
*
|
2337
2337
|
* ```
|
2338
2338
|
* <script type="module">
|
2339
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2339
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2340
2340
|
* console.log(validateString('2')) // ↦ value
|
2341
2341
|
* console.log(validateString([])) // ↦ TypeError
|
2342
2342
|
* </script>
|
@@ -2365,7 +2365,7 @@ function validateString(value) {
|
|
2365
2365
|
*
|
2366
2366
|
* ```
|
2367
2367
|
* <script type="module">
|
2368
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2368
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2369
2369
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
2370
2370
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
2371
2371
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
@@ -2376,7 +2376,7 @@ function validateString(value) {
|
|
2376
2376
|
*
|
2377
2377
|
* ```
|
2378
2378
|
* <script type="module">
|
2379
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2379
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2380
2380
|
* console.log(validateObject({})) // ↦ value
|
2381
2381
|
* console.log(validateObject('2')) // ↦ TypeError
|
2382
2382
|
* console.log(validateObject([])) // ↦ TypeError
|
@@ -2406,7 +2406,7 @@ function validateObject(value) {
|
|
2406
2406
|
*
|
2407
2407
|
* ```
|
2408
2408
|
* <script type="module">
|
2409
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2409
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2410
2410
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
2411
2411
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
2412
2412
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
@@ -2417,7 +2417,7 @@ function validateObject(value) {
|
|
2417
2417
|
*
|
2418
2418
|
* ```
|
2419
2419
|
* <script type="module">
|
2420
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2420
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2421
2421
|
* console.log(validateInstance({}, Object)) // ↦ value
|
2422
2422
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
2423
2423
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
@@ -2457,7 +2457,7 @@ function validateInstance(value, instance) {
|
|
2457
2457
|
*
|
2458
2458
|
* ```
|
2459
2459
|
* <script type="module">
|
2460
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2460
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2461
2461
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
2462
2462
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
2463
2463
|
* </script>
|
@@ -2467,7 +2467,7 @@ function validateInstance(value, instance) {
|
|
2467
2467
|
*
|
2468
2468
|
* ```
|
2469
2469
|
* <script type="module">
|
2470
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2470
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2471
2471
|
* console.log(validateArray('2')) // ↦ TypeError
|
2472
2472
|
* console.log(validateArray([])) // ↦ value
|
2473
2473
|
* </script>
|
@@ -2496,7 +2496,7 @@ function validateArray(value) {
|
|
2496
2496
|
*
|
2497
2497
|
* ```
|
2498
2498
|
* <script type="module">
|
2499
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2499
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2500
2500
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
2501
2501
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
2502
2502
|
* </script>
|
@@ -2506,7 +2506,7 @@ function validateArray(value) {
|
|
2506
2506
|
*
|
2507
2507
|
* ```
|
2508
2508
|
* <script type="module">
|
2509
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2509
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2510
2510
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
2511
2511
|
* console.log(validateSymbol()) // ↦ value
|
2512
2512
|
* </script>
|
@@ -2535,7 +2535,7 @@ function validateSymbol(value) {
|
|
2535
2535
|
*
|
2536
2536
|
* ```
|
2537
2537
|
* <script type="module">
|
2538
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2538
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2539
2539
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
2540
2540
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
2541
2541
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
@@ -2546,7 +2546,7 @@ function validateSymbol(value) {
|
|
2546
2546
|
*
|
2547
2547
|
* ```
|
2548
2548
|
* <script type="module">
|
2549
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2549
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2550
2550
|
* console.log(validateFunction(()=>{})) // ↦ value
|
2551
2551
|
* console.log(validateFunction('2')) // ↦ TypeError
|
2552
2552
|
* console.log(validateFunction([])) // ↦ TypeError
|
@@ -2576,7 +2576,7 @@ function validateFunction(value) {
|
|
2576
2576
|
*
|
2577
2577
|
* ```
|
2578
2578
|
* <script type="module">
|
2579
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2579
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2580
2580
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
2581
2581
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
2582
2582
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
@@ -2587,7 +2587,7 @@ function validateFunction(value) {
|
|
2587
2587
|
*
|
2588
2588
|
* ```
|
2589
2589
|
* <script type="module">
|
2590
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2590
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/validate.js';
|
2591
2591
|
* console.log(validateInteger(true)) // ↦ TypeError
|
2592
2592
|
* console.log(validateInteger('2')) // ↦ TypeError
|
2593
2593
|
* console.log(validateInteger(2)) // ↦ value
|
@@ -2653,7 +2653,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2653
2653
|
*
|
2654
2654
|
* ```
|
2655
2655
|
* <script type="module">
|
2656
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2656
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2657
2657
|
* Monster.Util.clone({})
|
2658
2658
|
* </script>
|
2659
2659
|
* ```
|
@@ -2662,7 +2662,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2662
2662
|
*
|
2663
2663
|
* ```
|
2664
2664
|
* <script type="module">
|
2665
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2665
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/util/clone.js';
|
2666
2666
|
* clone({})
|
2667
2667
|
* </script>
|
2668
2668
|
* ```
|
@@ -2874,7 +2874,7 @@ function getGlobal() {
|
|
2874
2874
|
*
|
2875
2875
|
* ```
|
2876
2876
|
* <script type="module">
|
2877
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2877
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2878
2878
|
* Monster.Types.getGlobalObject('document')
|
2879
2879
|
* // ↦ { }
|
2880
2880
|
* </script>
|
@@ -2884,7 +2884,7 @@ function getGlobal() {
|
|
2884
2884
|
*
|
2885
2885
|
* ```
|
2886
2886
|
* <script type="module">
|
2887
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2887
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/global.js';
|
2888
2888
|
* getGlobalObject('document')
|
2889
2889
|
* // ↦ { }
|
2890
2890
|
* </script>
|
@@ -2916,7 +2916,7 @@ function getGlobalObject(name) {
|
|
2916
2916
|
*
|
2917
2917
|
* ```
|
2918
2918
|
* <script type="module">
|
2919
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2919
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2920
2920
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2921
2921
|
* </script>
|
2922
2922
|
* ```
|
@@ -2925,7 +2925,7 @@ function getGlobalObject(name) {
|
|
2925
2925
|
*
|
2926
2926
|
* ```
|
2927
2927
|
* <script type="module">
|
2928
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2928
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/global.js';
|
2929
2929
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2930
2930
|
* </script>
|
2931
2931
|
* ```
|
@@ -2976,7 +2976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2976
2976
|
*
|
2977
2977
|
* ```
|
2978
2978
|
* <script type="module">
|
2979
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2979
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
2980
2980
|
* console.log(Monster.Types.typeOf())
|
2981
2981
|
* </script>
|
2982
2982
|
* ```
|
@@ -2985,14 +2985,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
2985
2985
|
*
|
2986
2986
|
* ```
|
2987
2987
|
* <script type="module">
|
2988
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2988
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/typeof.js';
|
2989
2989
|
* console.log(typeOf())
|
2990
2990
|
* </script>
|
2991
2991
|
* ```
|
2992
2992
|
*
|
2993
2993
|
* @example
|
2994
2994
|
*
|
2995
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
2995
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/typeof.js';
|
2996
2996
|
*
|
2997
2997
|
* console.log(typeOf(undefined)); // ↦ undefined
|
2998
2998
|
* console.log(typeOf("")); // ↦ string
|
@@ -3111,7 +3111,7 @@ var WILDCARD = '*';
|
|
3111
3111
|
*
|
3112
3112
|
* ```
|
3113
3113
|
* <script type="module">
|
3114
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3114
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
3115
3115
|
* console.log(new Monster.Data.Pathfinder())
|
3116
3116
|
* </script>
|
3117
3117
|
* ```
|
@@ -3120,7 +3120,7 @@ var WILDCARD = '*';
|
|
3120
3120
|
*
|
3121
3121
|
* ```
|
3122
3122
|
* <script type="module">
|
3123
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3123
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/pathfinder.js';
|
3124
3124
|
* console.log(new Pathfinder())
|
3125
3125
|
* </script>
|
3126
3126
|
* ```
|
@@ -3162,7 +3162,7 @@ var WILDCARD = '*';
|
|
3162
3162
|
*
|
3163
3163
|
* @example
|
3164
3164
|
*
|
3165
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3165
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/pathfinder.js';
|
3166
3166
|
*
|
3167
3167
|
* let value = new Pathfinder({
|
3168
3168
|
* a: {
|
@@ -3188,7 +3188,7 @@ var WILDCARD = '*';
|
|
3188
3188
|
*
|
3189
3189
|
* @example
|
3190
3190
|
*
|
3191
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3191
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/pathfinder.js';
|
3192
3192
|
*
|
3193
3193
|
* let p = new Pathfinder({
|
3194
3194
|
* a: {
|
@@ -3603,7 +3603,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3603
3603
|
*
|
3604
3604
|
* ```
|
3605
3605
|
* <script type="module">
|
3606
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3606
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
3607
3607
|
* console.log(new Monster.Types.Stack())
|
3608
3608
|
* </script>
|
3609
3609
|
* ```
|
@@ -3612,7 +3612,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3612
3612
|
*
|
3613
3613
|
* ```
|
3614
3614
|
* <script type="module">
|
3615
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3615
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/stack.js';
|
3616
3616
|
* console.log(new Stack())
|
3617
3617
|
* </script>
|
3618
3618
|
* ```
|
@@ -3747,7 +3747,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3747
3747
|
*
|
3748
3748
|
* ```
|
3749
3749
|
* <script type="module">
|
3750
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3750
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
3751
3751
|
* Monster.Data.Diff(a, b)
|
3752
3752
|
* </script>
|
3753
3753
|
* ```
|
@@ -3756,14 +3756,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3756
3756
|
*
|
3757
3757
|
* ```
|
3758
3758
|
* <script type="module">
|
3759
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3759
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/diff.js';
|
3760
3760
|
* Diff(a, b)
|
3761
3761
|
* </script>
|
3762
3762
|
* ```
|
3763
3763
|
*
|
3764
3764
|
* @example
|
3765
3765
|
*
|
3766
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
3766
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/diff.js';
|
3767
3767
|
*
|
3768
3768
|
* // given are two objects x and y.
|
3769
3769
|
*
|
@@ -4009,7 +4009,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4009
4009
|
*
|
4010
4010
|
* ```
|
4011
4011
|
* <script type="module">
|
4012
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4012
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
4013
4013
|
* Monster.Data.extend(a, b)
|
4014
4014
|
* </script>
|
4015
4015
|
* ```
|
@@ -4018,7 +4018,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4018
4018
|
*
|
4019
4019
|
* ```
|
4020
4020
|
* <script type="module">
|
4021
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4021
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/extend.js';
|
4022
4022
|
* extend(a, b)
|
4023
4023
|
* </script>
|
4024
4024
|
* ```
|
@@ -4147,7 +4147,7 @@ var DELIMITER = '|';
|
|
4147
4147
|
*
|
4148
4148
|
* ```
|
4149
4149
|
* <script type="module">
|
4150
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4150
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
4151
4151
|
* new Monster.Data.Pipe()
|
4152
4152
|
* </script>
|
4153
4153
|
* ```
|
@@ -4156,7 +4156,7 @@ var DELIMITER = '|';
|
|
4156
4156
|
*
|
4157
4157
|
* ```
|
4158
4158
|
* <script type="module">
|
4159
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4159
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/pipe.js';
|
4160
4160
|
* new Pipe()
|
4161
4161
|
* </script>
|
4162
4162
|
* ```
|
@@ -4167,7 +4167,7 @@ var DELIMITER = '|';
|
|
4167
4167
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
4168
4168
|
*
|
4169
4169
|
* @example
|
4170
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4170
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/pipe.js';
|
4171
4171
|
*
|
4172
4172
|
* let obj = {
|
4173
4173
|
* a: {
|
@@ -4329,7 +4329,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4329
4329
|
*
|
4330
4330
|
* ```
|
4331
4331
|
* <script type="module">
|
4332
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4332
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
4333
4333
|
* new Monster.Data.Transformer()
|
4334
4334
|
* </script>
|
4335
4335
|
* ```
|
@@ -4338,7 +4338,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4338
4338
|
*
|
4339
4339
|
* ```
|
4340
4340
|
* <script type="module">
|
4341
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4341
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/transformer.js';
|
4342
4342
|
* new Transformer()
|
4343
4343
|
* </script>
|
4344
4344
|
* ```
|
@@ -4424,7 +4424,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4424
4424
|
*
|
4425
4425
|
* @example
|
4426
4426
|
*
|
4427
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4427
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/data/transformer.js';
|
4428
4428
|
*
|
4429
4429
|
* const transformer = new Transformer("tolower")
|
4430
4430
|
*
|
@@ -4957,7 +4957,7 @@ var internalCounter = new Map();
|
|
4957
4957
|
*
|
4958
4958
|
* ```
|
4959
4959
|
* <script type="module">
|
4960
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4960
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
4961
4961
|
* console.log(new Monster.Types.ID())
|
4962
4962
|
* </script>
|
4963
4963
|
* ```
|
@@ -4966,7 +4966,7 @@ var internalCounter = new Map();
|
|
4966
4966
|
*
|
4967
4967
|
* ```
|
4968
4968
|
* <script type="module">
|
4969
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
4969
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/id.js';
|
4970
4970
|
* console.log(new ID())
|
4971
4971
|
* </script>
|
4972
4972
|
* ```
|
@@ -5089,7 +5089,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5089
5089
|
*
|
5090
5090
|
* ```
|
5091
5091
|
* <script type="module">
|
5092
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5092
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
5093
5093
|
* console.log(new Monster.DOM.Assembler())
|
5094
5094
|
* </script>
|
5095
5095
|
* ```
|
@@ -5098,7 +5098,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5098
5098
|
*
|
5099
5099
|
* ```
|
5100
5100
|
* <script type="module">
|
5101
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5101
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/assembler.js';
|
5102
5102
|
* console.log(new Assembler())
|
5103
5103
|
* </script>
|
5104
5104
|
* ```
|
@@ -5239,7 +5239,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5239
5239
|
*
|
5240
5240
|
* ```
|
5241
5241
|
* <script type="module">
|
5242
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5242
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
5243
5243
|
* new Monster.Types.ProxyObserver()
|
5244
5244
|
* </script>
|
5245
5245
|
* ```
|
@@ -5248,7 +5248,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5248
5248
|
*
|
5249
5249
|
* ```
|
5250
5250
|
* <script type="module">
|
5251
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5251
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/proxyobserver.js';
|
5252
5252
|
* new ProxyObserver()
|
5253
5253
|
* </script>
|
5254
5254
|
* ```
|
@@ -5259,9 +5259,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5259
5259
|
*
|
5260
5260
|
* @example
|
5261
5261
|
*
|
5262
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5263
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5264
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5262
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/proxyobserver.js';
|
5263
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/observer.js';
|
5264
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/is.js';
|
5265
5265
|
*
|
5266
5266
|
* const o = new Observer(function () {
|
5267
5267
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
@@ -5586,14 +5586,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5586
5586
|
* You can call the method via the monster namespace `new Monster.Types.Observer()`.
|
5587
5587
|
*
|
5588
5588
|
* ```
|
5589
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5589
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
5590
5590
|
* new Monster.Types.Observer()
|
5591
5591
|
* ```
|
5592
5592
|
*
|
5593
5593
|
* Alternatively, you can also integrate this function individually.
|
5594
5594
|
*
|
5595
5595
|
* ```
|
5596
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5596
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/observer.js';
|
5597
5597
|
* new Observer()
|
5598
5598
|
* ```
|
5599
5599
|
*
|
@@ -5622,7 +5622,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5622
5622
|
*
|
5623
5623
|
* @example
|
5624
5624
|
*
|
5625
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5625
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/observer.js';
|
5626
5626
|
*
|
5627
5627
|
* const observer = new Observer(function(a, b, c) {
|
5628
5628
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
@@ -5822,7 +5822,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5822
5822
|
*
|
5823
5823
|
* ```
|
5824
5824
|
* <script type="module">
|
5825
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5825
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
5826
5826
|
* new Monster.Types.TokenList("myclass row")
|
5827
5827
|
* </script>
|
5828
5828
|
* ```
|
@@ -5831,7 +5831,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5831
5831
|
*
|
5832
5832
|
* ```
|
5833
5833
|
* <script type="module">
|
5834
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
5834
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/tokenlist.js';
|
5835
5835
|
* new TokenList("myclass row")
|
5836
5836
|
* </script>
|
5837
5837
|
* ```
|
@@ -6254,7 +6254,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6254
6254
|
*
|
6255
6255
|
* ```
|
6256
6256
|
* <script type="module">
|
6257
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6257
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6258
6258
|
* new Monster.Types.UniqueQueue()
|
6259
6259
|
* </script>
|
6260
6260
|
* ```
|
@@ -6263,7 +6263,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6263
6263
|
*
|
6264
6264
|
* ```
|
6265
6265
|
* <script type="module">
|
6266
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6266
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/uniquequeue.js';
|
6267
6267
|
* new UniqueQueue()
|
6268
6268
|
* </script>
|
6269
6269
|
* ```
|
@@ -6398,7 +6398,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6398
6398
|
*
|
6399
6399
|
* ```
|
6400
6400
|
* <script type="module">
|
6401
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6401
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6402
6402
|
* new Monster.Types.Queue()
|
6403
6403
|
* </script>
|
6404
6404
|
* ```
|
@@ -6407,14 +6407,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6407
6407
|
*
|
6408
6408
|
* ```
|
6409
6409
|
* <script type="module">
|
6410
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6410
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/queue.js';
|
6411
6411
|
* new Queue()
|
6412
6412
|
* </script>
|
6413
6413
|
* ```
|
6414
6414
|
*
|
6415
6415
|
* @example
|
6416
6416
|
*
|
6417
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6417
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/queue.js';
|
6418
6418
|
*
|
6419
6419
|
* const queue = new Queue;
|
6420
6420
|
*
|
@@ -6583,7 +6583,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6583
6583
|
*
|
6584
6584
|
* ```
|
6585
6585
|
* <script type="module">
|
6586
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6586
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6587
6587
|
* console.log(new Monster.Types.ObserverList())
|
6588
6588
|
* console.log(new Monster.Types.ObserverList())
|
6589
6589
|
* </script>
|
@@ -6593,7 +6593,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6593
6593
|
*
|
6594
6594
|
* ```
|
6595
6595
|
* <script type="module">
|
6596
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6596
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/observerlist.js';
|
6597
6597
|
* console.log(ObserverList())
|
6598
6598
|
* console.log(ObserverList())
|
6599
6599
|
* </script>
|
@@ -6753,7 +6753,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6753
6753
|
*
|
6754
6754
|
* ```
|
6755
6755
|
* <script type="module">
|
6756
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6756
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6757
6757
|
* console.log(Monster.DOM.findClosestObjectLink())
|
6758
6758
|
* </script>
|
6759
6759
|
* ```
|
@@ -6762,7 +6762,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6762
6762
|
*
|
6763
6763
|
* ```
|
6764
6764
|
* <script type="module">
|
6765
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6765
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/updater.js';
|
6766
6766
|
* console.log(findClosestObjectLink())
|
6767
6767
|
* </script>
|
6768
6768
|
* ```
|
@@ -6783,7 +6783,7 @@ function findClosestObjectLink(element) {
|
|
6783
6783
|
*
|
6784
6784
|
* ```
|
6785
6785
|
* <script type="module">
|
6786
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6786
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6787
6787
|
* Monster.DOM.addToObjectLink();
|
6788
6788
|
* </script>
|
6789
6789
|
* ```
|
@@ -6792,7 +6792,7 @@ function findClosestObjectLink(element) {
|
|
6792
6792
|
*
|
6793
6793
|
* ```
|
6794
6794
|
* <script type="module">
|
6795
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6795
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
6796
6796
|
* addToObjectLink();
|
6797
6797
|
* </script>
|
6798
6798
|
* ```
|
@@ -6824,7 +6824,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6824
6824
|
*
|
6825
6825
|
* ```
|
6826
6826
|
* <script type="module">
|
6827
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6827
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6828
6828
|
* Monster.DOM.removeObjectLink();
|
6829
6829
|
* </script>
|
6830
6830
|
* ```
|
@@ -6833,7 +6833,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6833
6833
|
*
|
6834
6834
|
* ```
|
6835
6835
|
* <script type="module">
|
6836
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6836
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
6837
6837
|
* removeObjectLink();
|
6838
6838
|
* </script>
|
6839
6839
|
* ```
|
@@ -6864,7 +6864,7 @@ function removeObjectLink(element, symbol) {
|
|
6864
6864
|
*
|
6865
6865
|
* ```
|
6866
6866
|
* <script type="module">
|
6867
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6867
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6868
6868
|
* Monster.DOM.hasObjectLink();
|
6869
6869
|
* </script>
|
6870
6870
|
* ```
|
@@ -6873,7 +6873,7 @@ function removeObjectLink(element, symbol) {
|
|
6873
6873
|
*
|
6874
6874
|
* ```
|
6875
6875
|
* <script type="module">
|
6876
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6876
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
6877
6877
|
* hasObjectLink();
|
6878
6878
|
* </script>
|
6879
6879
|
* ```
|
@@ -6909,7 +6909,7 @@ function hasObjectLink(element, symbol) {
|
|
6909
6909
|
*
|
6910
6910
|
* ```
|
6911
6911
|
* <script type="module">
|
6912
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6912
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6913
6913
|
* Monster.DOM.getLinkedObjects();
|
6914
6914
|
* </script>
|
6915
6915
|
* ```
|
@@ -6918,7 +6918,7 @@ function hasObjectLink(element, symbol) {
|
|
6918
6918
|
*
|
6919
6919
|
* ```
|
6920
6920
|
* <script type="module">
|
6921
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6921
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
6922
6922
|
* getLinkedObjects();
|
6923
6923
|
* </script>
|
6924
6924
|
* ```
|
@@ -6952,7 +6952,7 @@ function getLinkedObjects(element, symbol) {
|
|
6952
6952
|
*
|
6953
6953
|
* ```
|
6954
6954
|
* <script type="module">
|
6955
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6955
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
6956
6956
|
* Monster.DOM.toggleAttributeToken();
|
6957
6957
|
* </script>
|
6958
6958
|
* ```
|
@@ -6961,7 +6961,7 @@ function getLinkedObjects(element, symbol) {
|
|
6961
6961
|
*
|
6962
6962
|
* ```
|
6963
6963
|
* <script type="module">
|
6964
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6964
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
6965
6965
|
* toggleAttributeToken();
|
6966
6966
|
* </script>
|
6967
6967
|
* ```
|
@@ -6996,7 +6996,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6996
6996
|
*
|
6997
6997
|
* ```
|
6998
6998
|
* <script type="module">
|
6999
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
6999
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7000
7000
|
* Monster.DOM.addAttributeToken();
|
7001
7001
|
* </script>
|
7002
7002
|
* ```
|
@@ -7005,7 +7005,7 @@ function toggleAttributeToken(element, key, token) {
|
|
7005
7005
|
*
|
7006
7006
|
* ```
|
7007
7007
|
* <script type="module">
|
7008
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7008
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7009
7009
|
* addAttributeToken();
|
7010
7010
|
* </script>
|
7011
7011
|
* ```
|
@@ -7042,7 +7042,7 @@ function addAttributeToken(element, key, token) {
|
|
7042
7042
|
*
|
7043
7043
|
* ```
|
7044
7044
|
* <script type="module">
|
7045
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7045
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7046
7046
|
* Monster.DOM.removeAttributeToken();
|
7047
7047
|
* </script>
|
7048
7048
|
* ```
|
@@ -7051,7 +7051,7 @@ function addAttributeToken(element, key, token) {
|
|
7051
7051
|
*
|
7052
7052
|
* ```
|
7053
7053
|
* <script type="module">
|
7054
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7054
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7055
7055
|
* removeAttributeToken();
|
7056
7056
|
* </script>
|
7057
7057
|
* ```
|
@@ -7087,7 +7087,7 @@ function removeAttributeToken(element, key, token) {
|
|
7087
7087
|
*
|
7088
7088
|
* ```
|
7089
7089
|
* <script type="module">
|
7090
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7090
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7091
7091
|
* Monster.DOM.containsAttributeToken();
|
7092
7092
|
* </script>
|
7093
7093
|
* ```
|
@@ -7096,7 +7096,7 @@ function removeAttributeToken(element, key, token) {
|
|
7096
7096
|
*
|
7097
7097
|
* ```
|
7098
7098
|
* <script type="module">
|
7099
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7099
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7100
7100
|
* containsAttributeToken();
|
7101
7101
|
* </script>
|
7102
7102
|
* ```
|
@@ -7129,7 +7129,7 @@ function containsAttributeToken(element, key, token) {
|
|
7129
7129
|
*
|
7130
7130
|
* ```
|
7131
7131
|
* <script type="module">
|
7132
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7132
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7133
7133
|
* Monster.DOM.replaceAttributeToken();
|
7134
7134
|
* </script>
|
7135
7135
|
* ```
|
@@ -7138,7 +7138,7 @@ function containsAttributeToken(element, key, token) {
|
|
7138
7138
|
*
|
7139
7139
|
* ```
|
7140
7140
|
* <script type="module">
|
7141
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7141
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7142
7142
|
* replaceAttributeToken();
|
7143
7143
|
* </script>
|
7144
7144
|
* ```
|
@@ -7174,7 +7174,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7174
7174
|
*
|
7175
7175
|
* ```
|
7176
7176
|
* <script type="module">
|
7177
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7177
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7178
7178
|
* Monster.DOM.clearAttributeTokens();
|
7179
7179
|
* </script>
|
7180
7180
|
* ```
|
@@ -7183,7 +7183,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7183
7183
|
*
|
7184
7184
|
* ```
|
7185
7185
|
* <script type="module">
|
7186
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7186
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7187
7187
|
* clearAttributeTokens();
|
7188
7188
|
* </script>
|
7189
7189
|
* ```
|
@@ -7231,7 +7231,7 @@ function clearAttributeTokens(element, key) {
|
|
7231
7231
|
*
|
7232
7232
|
* ```
|
7233
7233
|
* <script type="module">
|
7234
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7234
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7235
7235
|
* Monster.DOM.findClosestByAttribute();
|
7236
7236
|
* </script>
|
7237
7237
|
* ```
|
@@ -7240,7 +7240,7 @@ function clearAttributeTokens(element, key) {
|
|
7240
7240
|
*
|
7241
7241
|
* ```
|
7242
7242
|
* <script type="module">
|
7243
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7243
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7244
7244
|
* findClosestByAttribute();
|
7245
7245
|
* </script>
|
7246
7246
|
* ```
|
@@ -7298,7 +7298,7 @@ function findClosestByAttribute(element, key, value) {
|
|
7298
7298
|
*
|
7299
7299
|
* ```
|
7300
7300
|
* <script type="module">
|
7301
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7301
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7302
7302
|
* Monster.DOM.findClosestByClass();
|
7303
7303
|
* </script>
|
7304
7304
|
* ```
|
@@ -7307,7 +7307,7 @@ function findClosestByAttribute(element, key, value) {
|
|
7307
7307
|
*
|
7308
7308
|
* ```
|
7309
7309
|
* <script type="module">
|
7310
|
-
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7310
|
+
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/attributes.js';
|
7311
7311
|
* findClosestByClass();
|
7312
7312
|
* </script>
|
7313
7313
|
* ```
|
@@ -7841,7 +7841,7 @@ var attachedInternalSymbol = Symbol('attachedInternal');
|
|
7841
7841
|
*
|
7842
7842
|
* ```
|
7843
7843
|
* <script type="module">
|
7844
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
7844
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
7845
7845
|
* document.createElement('monster-')
|
7846
7846
|
* </script>
|
7847
7847
|
* ```
|
@@ -8377,7 +8377,7 @@ var attributeObserverSymbol = Symbol('attributeObserver');
|
|
8377
8377
|
*
|
8378
8378
|
* ```
|
8379
8379
|
* <script type="module">
|
8380
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
8380
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
8381
8381
|
* document.createElement('monster-')
|
8382
8382
|
* </script>
|
8383
8383
|
* ```
|
@@ -9257,7 +9257,7 @@ var internal = Symbol('internal');
|
|
9257
9257
|
*
|
9258
9258
|
* ```
|
9259
9259
|
* <script type="module">
|
9260
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9260
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
9261
9261
|
* new Monster.Types.DataUrl()
|
9262
9262
|
* </script>
|
9263
9263
|
* ```
|
@@ -9266,7 +9266,7 @@ var internal = Symbol('internal');
|
|
9266
9266
|
*
|
9267
9267
|
* ```
|
9268
9268
|
* <script type="module">
|
9269
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9269
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/dataurl.js';
|
9270
9270
|
* new DataUrl()
|
9271
9271
|
* </script>
|
9272
9272
|
* ```
|
@@ -9346,7 +9346,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9346
9346
|
*
|
9347
9347
|
* ```
|
9348
9348
|
* <script type="module">
|
9349
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9349
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
9350
9350
|
* console.log(Monster.Types.parseDataURL())
|
9351
9351
|
* </script>
|
9352
9352
|
* ```
|
@@ -9355,7 +9355,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9355
9355
|
*
|
9356
9356
|
* ```
|
9357
9357
|
* <script type="module">
|
9358
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9358
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/dataurl.js';
|
9359
9359
|
* console.log(parseDataURL())
|
9360
9360
|
* </script>
|
9361
9361
|
* ```
|
@@ -9493,7 +9493,7 @@ var internal = Symbol('internal');
|
|
9493
9493
|
*
|
9494
9494
|
* ```
|
9495
9495
|
* <script type="module">
|
9496
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9496
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
9497
9497
|
* console.log(new Monster.Types.MediaType())
|
9498
9498
|
* </script>
|
9499
9499
|
* ```
|
@@ -9502,7 +9502,7 @@ var internal = Symbol('internal');
|
|
9502
9502
|
*
|
9503
9503
|
* ```
|
9504
9504
|
* <script type="module">
|
9505
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9505
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/mediatype.js';
|
9506
9506
|
* console.log(new MediaType())
|
9507
9507
|
* </script>
|
9508
9508
|
* ```
|
@@ -9620,7 +9620,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9620
9620
|
*
|
9621
9621
|
* ```
|
9622
9622
|
* <script type="module">
|
9623
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9623
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
9624
9624
|
* console.log(Monster.Types.parseMediaType())
|
9625
9625
|
* </script>
|
9626
9626
|
* ```
|
@@ -9629,7 +9629,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9629
9629
|
*
|
9630
9630
|
* ```
|
9631
9631
|
* <script type="module">
|
9632
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9632
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/dataurl.js';
|
9633
9633
|
* console.log(parseMediaType())
|
9634
9634
|
* </script>
|
9635
9635
|
* ```
|
@@ -9768,7 +9768,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9768
9768
|
*
|
9769
9769
|
* ```
|
9770
9770
|
* <script type="module">
|
9771
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9771
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
9772
9772
|
* new Monster.DOM.Template()
|
9773
9773
|
* </script>
|
9774
9774
|
* ```
|
@@ -9777,7 +9777,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9777
9777
|
*
|
9778
9778
|
* ```
|
9779
9779
|
* <script type="module">
|
9780
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9780
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/template.js';
|
9781
9781
|
* new Template()
|
9782
9782
|
* </script>
|
9783
9783
|
* ```
|
@@ -9855,7 +9855,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9855
9855
|
*
|
9856
9856
|
* ```
|
9857
9857
|
* <script type="module">
|
9858
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9858
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
9859
9859
|
* Monster.DOM.findDocumentTemplate()
|
9860
9860
|
* </script>
|
9861
9861
|
* ```
|
@@ -9864,14 +9864,14 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9864
9864
|
*
|
9865
9865
|
* ```
|
9866
9866
|
* <script type="module">
|
9867
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9867
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/template.js';
|
9868
9868
|
* findDocumentTemplate()
|
9869
9869
|
* </script>
|
9870
9870
|
* ```
|
9871
9871
|
*
|
9872
9872
|
* @example
|
9873
9873
|
*
|
9874
|
-
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
9874
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/template.js";
|
9875
9875
|
*
|
9876
9876
|
* const template = document.createElement("template");
|
9877
9877
|
* template.id = "myTemplate";
|
@@ -10043,7 +10043,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10043
10043
|
*
|
10044
10044
|
* ```
|
10045
10045
|
* <script type="module">
|
10046
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
10046
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
10047
10047
|
* console.log(new Monster.DOM.Theme())
|
10048
10048
|
* </script>
|
10049
10049
|
* ```
|
@@ -10052,14 +10052,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10052
10052
|
*
|
10053
10053
|
* ```
|
10054
10054
|
* <script type="module">
|
10055
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
10055
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/theme.js';
|
10056
10056
|
* console.log(new Theme())
|
10057
10057
|
* </script>
|
10058
10058
|
* ```
|
10059
10059
|
*
|
10060
10060
|
* @example
|
10061
10061
|
*
|
10062
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
10062
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/theme.js';
|
10063
10063
|
*
|
10064
10064
|
* const theme = getDocumentTheme();
|
10065
10065
|
* console.log(theme.getName());
|
@@ -10246,7 +10246,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10246
10246
|
*
|
10247
10247
|
* ```
|
10248
10248
|
* <script type="module">
|
10249
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
10249
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
10250
10250
|
* new Monster.DOM.Updater()
|
10251
10251
|
* </script>
|
10252
10252
|
* ```
|
@@ -10255,14 +10255,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10255
10255
|
*
|
10256
10256
|
* ```
|
10257
10257
|
* <script type="module">
|
10258
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
10258
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/updater.js';
|
10259
10259
|
* new Updater()
|
10260
10260
|
* </script>
|
10261
10261
|
* ```
|
10262
10262
|
*
|
10263
10263
|
* @example
|
10264
10264
|
*
|
10265
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
10265
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/updater.js';
|
10266
10266
|
*
|
10267
10267
|
* // First we prepare the html document.
|
10268
10268
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -10813,7 +10813,9 @@ function insertElement(change) {
|
|
10813
10813
|
if (!available.has(node.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_INSERT_REFERENCE))) {
|
10814
10814
|
try {
|
10815
10815
|
containerElement.removeChild(node);
|
10816
|
-
} catch (e) {
|
10816
|
+
} catch (e) {
|
10817
|
+
containerElement.setAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE, (containerElement.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE) + ", " + e.message).trim());
|
10818
|
+
}
|
10817
10819
|
}
|
10818
10820
|
}
|
10819
10821
|
};
|
@@ -10957,37 +10959,65 @@ function runUpdateContent(container, parts, subject) {
|
|
10957
10959
|
if (container.matches(query)) {
|
10958
10960
|
iterator.add(container);
|
10959
10961
|
}
|
10962
|
+
/**
|
10963
|
+
* @type {HTMLElement} element
|
10964
|
+
*/
|
10960
10965
|
|
10961
|
-
iterator.forEach(function (key, element) {
|
10962
|
-
if (mem.has(element)) return;
|
10963
|
-
mem.add(element);
|
10964
|
-
var attributes = element.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_REPLACE);
|
10965
|
-
var cmd = (0,_util_trimspaces_js__WEBPACK_IMPORTED_MODULE_12__.trimSpaces)(attributes);
|
10966
|
-
var pipe = new _data_pipe_js__WEBPACK_IMPORTED_MODULE_3__.Pipe(cmd);
|
10967
10966
|
|
10968
|
-
|
10969
|
-
|
10970
|
-
});
|
10967
|
+
var _iterator6 = _createForOfIteratorHelper(iterator.entries()),
|
10968
|
+
_step6;
|
10971
10969
|
|
10972
|
-
|
10970
|
+
try {
|
10971
|
+
var _loop2 = function _loop2() {
|
10972
|
+
var _step6$value = _slicedToArray(_step6.value, 1),
|
10973
|
+
element = _step6$value[0];
|
10973
10974
|
|
10974
|
-
|
10975
|
-
|
10976
|
-
|
10977
|
-
|
10978
|
-
element.
|
10979
|
-
|
10975
|
+
if (mem.has(element)) return {
|
10976
|
+
v: void 0
|
10977
|
+
};
|
10978
|
+
mem.add(element);
|
10979
|
+
var attributes = element.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_REPLACE);
|
10980
|
+
var cmd = (0,_util_trimspaces_js__WEBPACK_IMPORTED_MODULE_12__.trimSpaces)(attributes);
|
10981
|
+
var pipe = new _data_pipe_js__WEBPACK_IMPORTED_MODULE_3__.Pipe(cmd);
|
10980
10982
|
|
10981
|
-
|
10982
|
-
|
10983
|
-
|
10983
|
+
_this2[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].callbacks.forEach(function (f, n) {
|
10984
|
+
pipe.setCallback(n, f);
|
10985
|
+
});
|
10986
|
+
|
10987
|
+
var value = void 0;
|
10988
|
+
|
10989
|
+
try {
|
10990
|
+
element.removeAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE);
|
10991
|
+
value = pipe.run(subject);
|
10992
|
+
} catch (e) {
|
10993
|
+
element.setAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE, e.message);
|
10984
10994
|
}
|
10985
10995
|
|
10986
|
-
|
10987
|
-
|
10988
|
-
|
10996
|
+
if (value instanceof HTMLElement) {
|
10997
|
+
while (element.firstChild) {
|
10998
|
+
element.removeChild(element.firstChild);
|
10999
|
+
}
|
11000
|
+
|
11001
|
+
try {
|
11002
|
+
element.appendChild(value);
|
11003
|
+
} catch (e) {
|
11004
|
+
element.setAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE, (element.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE) + ", " + e.message).trim());
|
11005
|
+
}
|
11006
|
+
} else {
|
11007
|
+
element.innerHTML = value;
|
11008
|
+
}
|
11009
|
+
};
|
11010
|
+
|
11011
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
11012
|
+
var _ret2 = _loop2();
|
11013
|
+
|
11014
|
+
if (_typeof(_ret2) === "object") return _ret2.v;
|
10989
11015
|
}
|
10990
|
-
})
|
11016
|
+
} catch (err) {
|
11017
|
+
_iterator6.e(err);
|
11018
|
+
} finally {
|
11019
|
+
_iterator6.f();
|
11020
|
+
}
|
10991
11021
|
}
|
10992
11022
|
}
|
10993
11023
|
/**
|
@@ -11037,45 +11067,65 @@ function runUpdateAttributes(container, parts, subject) {
|
|
11037
11067
|
iterator.add(container);
|
11038
11068
|
}
|
11039
11069
|
|
11040
|
-
iterator.
|
11041
|
-
|
11042
|
-
mem.add(element);
|
11043
|
-
var attributes = element.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_ATTRIBUTES);
|
11070
|
+
var _iterator7 = _createForOfIteratorHelper(iterator.entries()),
|
11071
|
+
_step7;
|
11044
11072
|
|
11045
|
-
|
11046
|
-
|
11047
|
-
|
11073
|
+
try {
|
11074
|
+
var _loop3 = function _loop3() {
|
11075
|
+
var _step7$value = _slicedToArray(_step7.value, 1),
|
11076
|
+
element = _step7$value[0];
|
11048
11077
|
|
11049
|
-
|
11050
|
-
|
11051
|
-
|
11052
|
-
|
11053
|
-
var
|
11054
|
-
self[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].callbacks.forEach(function (f, n) {
|
11055
|
-
pipe.setCallback(n, f, element);
|
11056
|
-
});
|
11057
|
-
var value = void 0;
|
11078
|
+
if (mem.has(element)) return {
|
11079
|
+
v: void 0
|
11080
|
+
};
|
11081
|
+
mem.add(element);
|
11082
|
+
var attributes = element.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_ATTRIBUTES);
|
11058
11083
|
|
11059
|
-
|
11060
|
-
|
11061
|
-
|
11062
|
-
} catch (e) {
|
11063
|
-
element.setAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE, e.message);
|
11064
|
-
}
|
11084
|
+
var _loop4 = function _loop4() {
|
11085
|
+
var _Object$entries8$_i = _slicedToArray(_Object$entries8[_i9], 2),
|
11086
|
+
def = _Object$entries8$_i[1];
|
11065
11087
|
|
11066
|
-
|
11067
|
-
|
11068
|
-
|
11069
|
-
|
11070
|
-
|
11088
|
+
def = (0,_util_trimspaces_js__WEBPACK_IMPORTED_MODULE_12__.trimSpaces)(def);
|
11089
|
+
var i = def.indexOf(' ');
|
11090
|
+
var name = (0,_util_trimspaces_js__WEBPACK_IMPORTED_MODULE_12__.trimSpaces)(def.substr(0, i));
|
11091
|
+
var cmd = (0,_util_trimspaces_js__WEBPACK_IMPORTED_MODULE_12__.trimSpaces)(def.substr(i));
|
11092
|
+
var pipe = new _data_pipe_js__WEBPACK_IMPORTED_MODULE_3__.Pipe(cmd);
|
11093
|
+
self[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].callbacks.forEach(function (f, n) {
|
11094
|
+
pipe.setCallback(n, f, element);
|
11095
|
+
});
|
11096
|
+
var value = void 0;
|
11097
|
+
|
11098
|
+
try {
|
11099
|
+
element.removeAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE);
|
11100
|
+
value = pipe.run(subject);
|
11101
|
+
} catch (e) {
|
11102
|
+
element.setAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_ERRORMESSAGE, e.message);
|
11103
|
+
}
|
11104
|
+
|
11105
|
+
if (value === undefined) {
|
11106
|
+
element.removeAttribute(name);
|
11107
|
+
} else if (element.getAttribute(name) !== value) {
|
11108
|
+
element.setAttribute(name, value);
|
11109
|
+
}
|
11110
|
+
|
11111
|
+
handleInputControlAttributeUpdate.call(_this3, element, name, value);
|
11112
|
+
};
|
11071
11113
|
|
11072
|
-
|
11114
|
+
for (var _i9 = 0, _Object$entries8 = Object.entries(attributes.split(',')); _i9 < _Object$entries8.length; _i9++) {
|
11115
|
+
_loop4();
|
11116
|
+
}
|
11073
11117
|
};
|
11074
11118
|
|
11075
|
-
for (
|
11076
|
-
|
11119
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
11120
|
+
var _ret3 = _loop3();
|
11121
|
+
|
11122
|
+
if (_typeof(_ret3) === "object") return _ret3.v;
|
11077
11123
|
}
|
11078
|
-
})
|
11124
|
+
} catch (err) {
|
11125
|
+
_iterator7.e(err);
|
11126
|
+
} finally {
|
11127
|
+
_iterator7.f();
|
11128
|
+
}
|
11079
11129
|
}
|
11080
11130
|
}
|
11081
11131
|
/**
|
@@ -11208,7 +11258,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11208
11258
|
*
|
11209
11259
|
* ```
|
11210
11260
|
* <script type="module">
|
11211
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11261
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11212
11262
|
* Monster.Util.trimSpaces(" hello ")
|
11213
11263
|
* </script>
|
11214
11264
|
* ```
|
@@ -11217,7 +11267,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11217
11267
|
*
|
11218
11268
|
* ```
|
11219
11269
|
* <script type="module">
|
11220
|
-
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11270
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/util/trimspaces.js';
|
11221
11271
|
* trimSpaces(' hello \\ ')
|
11222
11272
|
* </script>
|
11223
11273
|
* ```
|
@@ -11322,7 +11372,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11322
11372
|
*
|
11323
11373
|
* ```
|
11324
11374
|
* <script type="module">
|
11325
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11375
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11326
11376
|
* new Monster.DOM.fireEvent()
|
11327
11377
|
* </script>
|
11328
11378
|
* ```
|
@@ -11331,7 +11381,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11331
11381
|
*
|
11332
11382
|
* ```
|
11333
11383
|
* <script type="module">
|
11334
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11384
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/events.js';
|
11335
11385
|
* fireEvent()
|
11336
11386
|
* </script>
|
11337
11387
|
* ```
|
@@ -11383,7 +11433,7 @@ function fireEvent(element, type) {
|
|
11383
11433
|
*
|
11384
11434
|
* ```
|
11385
11435
|
* <script type="module">
|
11386
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11436
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11387
11437
|
* new Monster.DOM.fireCustomEvent()
|
11388
11438
|
* </script>
|
11389
11439
|
* ```
|
@@ -11392,7 +11442,7 @@ function fireEvent(element, type) {
|
|
11392
11442
|
*
|
11393
11443
|
* ```
|
11394
11444
|
* <script type="module">
|
11395
|
-
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11445
|
+
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/events.js';
|
11396
11446
|
* fireCustomEvent()
|
11397
11447
|
* </script>
|
11398
11448
|
* ```
|
@@ -11451,7 +11501,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11451
11501
|
*
|
11452
11502
|
* ```
|
11453
11503
|
* <script type="module">
|
11454
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11504
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11455
11505
|
* new Monster.DOM.findTargetElementFromEvent()
|
11456
11506
|
* </script>
|
11457
11507
|
* ```
|
@@ -11460,7 +11510,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11460
11510
|
*
|
11461
11511
|
* ```
|
11462
11512
|
* <script type="module">
|
11463
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11513
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/events.js';
|
11464
11514
|
* findTargetElementFromEvent()
|
11465
11515
|
* </script>
|
11466
11516
|
* ```
|
@@ -11531,7 +11581,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11531
11581
|
*
|
11532
11582
|
* ```
|
11533
11583
|
* <script type="module">
|
11534
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11584
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11535
11585
|
* console.log(Monster.DOM.getDocument())
|
11536
11586
|
* </script>
|
11537
11587
|
* ```
|
@@ -11540,7 +11590,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11540
11590
|
*
|
11541
11591
|
* ```
|
11542
11592
|
* <script type="module">
|
11543
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11593
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/util.js';
|
11544
11594
|
* console.log(getDocument())
|
11545
11595
|
* </script>
|
11546
11596
|
* ```
|
@@ -11595,7 +11645,7 @@ function getDocument() {
|
|
11595
11645
|
*
|
11596
11646
|
* ```
|
11597
11647
|
* <script type="module">
|
11598
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11648
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11599
11649
|
* console.log(Monster.DOM.getWindow())
|
11600
11650
|
* </script>
|
11601
11651
|
* ```
|
@@ -11604,7 +11654,7 @@ function getDocument() {
|
|
11604
11654
|
*
|
11605
11655
|
* ```
|
11606
11656
|
* <script type="module">
|
11607
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11657
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/util.js';
|
11608
11658
|
* console.log(getWindow(null))
|
11609
11659
|
* </script>
|
11610
11660
|
* ```
|
@@ -11664,7 +11714,7 @@ function getWindow() {
|
|
11664
11714
|
*
|
11665
11715
|
* ```
|
11666
11716
|
* <script type="module">
|
11667
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11717
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11668
11718
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
11669
11719
|
* </script>
|
11670
11720
|
* ```
|
@@ -11673,7 +11723,7 @@ function getWindow() {
|
|
11673
11723
|
*
|
11674
11724
|
* ```
|
11675
11725
|
* <script type="module">
|
11676
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11726
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/util.js';
|
11677
11727
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
11678
11728
|
* </script>
|
11679
11729
|
* ```
|
@@ -11763,7 +11813,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11763
11813
|
*
|
11764
11814
|
* ```
|
11765
11815
|
* <script type="module">
|
11766
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11816
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11767
11817
|
* new Monster.DOM.getLocaleOfDocument()
|
11768
11818
|
* </script>
|
11769
11819
|
* ```
|
@@ -11772,7 +11822,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11772
11822
|
*
|
11773
11823
|
* ```
|
11774
11824
|
* <script type="module">
|
11775
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11825
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/dom/locale.js';
|
11776
11826
|
* new getLocaleOfDocument()
|
11777
11827
|
* </script>
|
11778
11828
|
* ```
|
@@ -11865,7 +11915,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11865
11915
|
*
|
11866
11916
|
* ```
|
11867
11917
|
* <script type="module">
|
11868
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11918
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
11869
11919
|
* new Monster.I18n.Locale()
|
11870
11920
|
* </script>
|
11871
11921
|
* ```
|
@@ -11874,7 +11924,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11874
11924
|
*
|
11875
11925
|
* ```
|
11876
11926
|
* <script type="module">
|
11877
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
11927
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/locale.js';
|
11878
11928
|
* new Locale()
|
11879
11929
|
* </script>
|
11880
11930
|
* ```
|
@@ -12067,7 +12117,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12067
12117
|
*
|
12068
12118
|
* ```
|
12069
12119
|
* <script type="module">
|
12070
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12120
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
12071
12121
|
* new Monster.I18n.createLocale()
|
12072
12122
|
* </script>
|
12073
12123
|
* ```
|
@@ -12076,7 +12126,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12076
12126
|
*
|
12077
12127
|
* ```
|
12078
12128
|
* <script type="module">
|
12079
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12129
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/locale.js';
|
12080
12130
|
* createLocale()
|
12081
12131
|
* </script>
|
12082
12132
|
* ```
|
@@ -12252,7 +12302,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12252
12302
|
*
|
12253
12303
|
* ```
|
12254
12304
|
* <script type="module">
|
12255
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12305
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
12256
12306
|
* new Monster.I18n.Provider()
|
12257
12307
|
* </script>
|
12258
12308
|
* ```
|
@@ -12261,7 +12311,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12261
12311
|
*
|
12262
12312
|
* ```
|
12263
12313
|
* <script type="module">
|
12264
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12314
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/provider.js';
|
12265
12315
|
* new Provider()
|
12266
12316
|
* </script>
|
12267
12317
|
* ```
|
@@ -12358,24 +12408,39 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12358
12408
|
/**
|
12359
12409
|
* This is the base class with options from which some monster classes are derived.
|
12360
12410
|
*
|
12361
|
-
*
|
12411
|
+
* This class is actually only used as a base class.
|
12412
|
+
*
|
12413
|
+
* However, you can also create an instance directly via the monster namespace `new Monster.Types.BaseWithOptions()`.
|
12362
12414
|
*
|
12363
|
-
* ```
|
12415
|
+
* ```html
|
12364
12416
|
* <script type="module">
|
12365
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12417
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
12366
12418
|
* new Monster.Types.BaseWithOptions()
|
12367
12419
|
* </script>
|
12368
12420
|
* ```
|
12369
12421
|
*
|
12370
12422
|
* Alternatively, you can also integrate this function individually.
|
12371
12423
|
*
|
12372
|
-
* ```
|
12424
|
+
* ```html
|
12373
12425
|
* <script type="module">
|
12374
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12426
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/basewithoptions.js';
|
12375
12427
|
* new BaseWithOptions()
|
12376
12428
|
* </script>
|
12377
12429
|
* ```
|
12430
|
+
*
|
12431
|
+
* Classes that require the possibility of options can be derived directly from this class.
|
12432
|
+
* Derived classes almost always override the `defaul` getter with their own values.
|
12378
12433
|
*
|
12434
|
+
* ```javascript
|
12435
|
+
* class My extends BaseWithOptions {
|
12436
|
+
* get defaults() {
|
12437
|
+
* return Object.assign({}, super.defaults, {
|
12438
|
+
* mykey: true
|
12439
|
+
* });
|
12440
|
+
* }
|
12441
|
+
* }
|
12442
|
+
* ```
|
12443
|
+
*
|
12379
12444
|
* The class was formerly called Object.
|
12380
12445
|
*
|
12381
12446
|
* @since 1.13.0
|
@@ -12407,7 +12472,18 @@ var BaseWithOptions = /*#__PURE__*/function (_Base) {
|
|
12407
12472
|
return _this;
|
12408
12473
|
}
|
12409
12474
|
/**
|
12410
|
-
*
|
12475
|
+
* This getter provides the options. Derived classes overwrite
|
12476
|
+
* this getter with their own values. It is good karma to always include
|
12477
|
+
* the values from the parent class.
|
12478
|
+
*
|
12479
|
+
* ```javascript
|
12480
|
+
* get defaults() {
|
12481
|
+
* return Object.assign({}, super.defaults, {
|
12482
|
+
* mykey: true
|
12483
|
+
* });
|
12484
|
+
* }
|
12485
|
+
*
|
12486
|
+
* ```
|
12411
12487
|
*
|
12412
12488
|
* @return {object}
|
12413
12489
|
*/
|
@@ -12512,7 +12588,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12512
12588
|
*
|
12513
12589
|
* ```
|
12514
12590
|
* <script type="module">
|
12515
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12591
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
12516
12592
|
* new Monster.I18n.Translations()
|
12517
12593
|
* </script>
|
12518
12594
|
* ```
|
@@ -12521,15 +12597,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12521
12597
|
*
|
12522
12598
|
* ```
|
12523
12599
|
* <script type="module">
|
12524
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12600
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/translations.js';
|
12525
12601
|
* new Translations()
|
12526
12602
|
* </script>
|
12527
12603
|
* ```
|
12528
12604
|
*
|
12529
12605
|
* @example
|
12530
12606
|
*
|
12531
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12532
|
-
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12607
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/translations.js';
|
12608
|
+
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/locale.js';
|
12533
12609
|
*
|
12534
12610
|
* const translation = new Translations(parseLocale('en-GB'));
|
12535
12611
|
*
|
@@ -12801,7 +12877,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12801
12877
|
*
|
12802
12878
|
* ```
|
12803
12879
|
* <script type="module">
|
12804
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12880
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
12805
12881
|
* new Monster.I18n.Providers.Fetch()
|
12806
12882
|
* </script>
|
12807
12883
|
* ```
|
@@ -12810,14 +12886,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12810
12886
|
*
|
12811
12887
|
* ```
|
12812
12888
|
* <script type="module">
|
12813
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12889
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/providers/fetch.js';
|
12814
12890
|
* new Fetch()
|
12815
12891
|
* </script>
|
12816
12892
|
* ```
|
12817
12893
|
*
|
12818
12894
|
* @example <caption>das ist ein test</caption>
|
12819
12895
|
*
|
12820
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
12896
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/i18n/providers/fetch.js';
|
12821
12897
|
*
|
12822
12898
|
* // fetch from API
|
12823
12899
|
* const translation = new Fetch('https://example.com/${language}.json').getTranslation('en-GB');
|
@@ -13047,7 +13123,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13047
13123
|
*
|
13048
13124
|
* ```
|
13049
13125
|
* <script type="module">
|
13050
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13126
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
13051
13127
|
* new Monster.Text.Formatter()
|
13052
13128
|
* </script>
|
13053
13129
|
* ```
|
@@ -13056,7 +13132,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13056
13132
|
*
|
13057
13133
|
* ```
|
13058
13134
|
* <script type="module">
|
13059
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13135
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/text/formatter.js';
|
13060
13136
|
* new Formatter()
|
13061
13137
|
* </script>
|
13062
13138
|
* ```
|
@@ -13101,7 +13177,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13101
13177
|
*
|
13102
13178
|
* @example
|
13103
13179
|
*
|
13104
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13180
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/text/formatter.js';
|
13105
13181
|
*
|
13106
13182
|
* new Formatter({
|
13107
13183
|
* a: {
|
@@ -13446,7 +13522,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13446
13522
|
*
|
13447
13523
|
* ```
|
13448
13524
|
* <script type="module">
|
13449
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13525
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
13450
13526
|
* console.log(new Monster.Logging.Handler())
|
13451
13527
|
* </script>
|
13452
13528
|
* ```
|
@@ -13455,7 +13531,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13455
13531
|
*
|
13456
13532
|
* ```
|
13457
13533
|
* <script type="module">
|
13458
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13534
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/logging/handler.js';
|
13459
13535
|
* console.log(new Handler())
|
13460
13536
|
* </script>
|
13461
13537
|
* ```
|
@@ -13693,7 +13769,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13693
13769
|
*
|
13694
13770
|
* ```
|
13695
13771
|
* <script type="module">
|
13696
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13772
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
13697
13773
|
* console.log(new Monster.Logging.LogEntry())
|
13698
13774
|
* </script>
|
13699
13775
|
* ```
|
@@ -13702,7 +13778,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13702
13778
|
*
|
13703
13779
|
* ```
|
13704
13780
|
* <script type="module">
|
13705
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13781
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/logging/logentry.js';
|
13706
13782
|
* console.log(new LogEntry())
|
13707
13783
|
* </script>
|
13708
13784
|
* ```
|
@@ -13888,7 +13964,7 @@ var OFF = 0;
|
|
13888
13964
|
*
|
13889
13965
|
* ```
|
13890
13966
|
* <script type="module">
|
13891
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13967
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
13892
13968
|
* new Monster.Logging.Logger()
|
13893
13969
|
* </script>
|
13894
13970
|
* ```
|
@@ -13897,7 +13973,7 @@ var OFF = 0;
|
|
13897
13973
|
*
|
13898
13974
|
* ```
|
13899
13975
|
* <script type="module">
|
13900
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
13976
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/logging/logger.js';
|
13901
13977
|
* new Logger()
|
13902
13978
|
* </script>
|
13903
13979
|
* ```
|
@@ -14197,7 +14273,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14197
14273
|
*
|
14198
14274
|
* ```
|
14199
14275
|
* <script type="module">
|
14200
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14276
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
14201
14277
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
14202
14278
|
* </script>
|
14203
14279
|
* ```
|
@@ -14206,7 +14282,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14206
14282
|
*
|
14207
14283
|
* ```
|
14208
14284
|
* <script type="module">
|
14209
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14285
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/logging/handler/console.js';
|
14210
14286
|
* console.log(new ConsoleHandler())
|
14211
14287
|
* </script>
|
14212
14288
|
* ```
|
@@ -14282,7 +14358,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14282
14358
|
*
|
14283
14359
|
* ```
|
14284
14360
|
* <script type="module">
|
14285
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14361
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
14286
14362
|
* Monster.Math.random(1,10)
|
14287
14363
|
* // ↦ 5
|
14288
14364
|
* </script>
|
@@ -14292,7 +14368,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14292
14368
|
*
|
14293
14369
|
* ```
|
14294
14370
|
* <script type="module">
|
14295
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14371
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/math/random.js';
|
14296
14372
|
* random(1,10)
|
14297
14373
|
* // ↦ 5
|
14298
14374
|
* </script>
|
@@ -14449,7 +14525,7 @@ var internalCounter = 0;
|
|
14449
14525
|
*
|
14450
14526
|
* ```
|
14451
14527
|
* <script type="module">
|
14452
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14528
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
14453
14529
|
* console.log(new Monster.Types.RandomID())
|
14454
14530
|
* </script>
|
14455
14531
|
* ```
|
@@ -14458,7 +14534,7 @@ var internalCounter = 0;
|
|
14458
14534
|
*
|
14459
14535
|
* ```
|
14460
14536
|
* <script type="module">
|
14461
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14537
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/randomid.js';
|
14462
14538
|
* console.log(new RandomID())
|
14463
14539
|
* </script>
|
14464
14540
|
* ```
|
@@ -14541,7 +14617,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14541
14617
|
*
|
14542
14618
|
* ```
|
14543
14619
|
* <script type="module">
|
14544
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14620
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
14545
14621
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
14546
14622
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
14547
14623
|
* </script>
|
@@ -14551,7 +14627,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14551
14627
|
*
|
14552
14628
|
* ```
|
14553
14629
|
* <script type="module">
|
14554
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14630
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/version.js';
|
14555
14631
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
14556
14632
|
* console.log(new Version('1')) // ↦ 1.0.0
|
14557
14633
|
* </script>
|
@@ -14559,7 +14635,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14559
14635
|
*
|
14560
14636
|
* @example
|
14561
14637
|
*
|
14562
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14638
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/version.js';
|
14563
14639
|
*
|
14564
14640
|
* new Version('1.0.0') // ↦ 1.0.0
|
14565
14641
|
* new Version(1) // ↦ 1.0.0
|
@@ -14693,7 +14769,7 @@ var monsterVersion;
|
|
14693
14769
|
*
|
14694
14770
|
* ```
|
14695
14771
|
* <script type="module">
|
14696
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14772
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
14697
14773
|
* console.log(Monster.getVersion())
|
14698
14774
|
* </script>
|
14699
14775
|
* ```
|
@@ -14702,7 +14778,7 @@ var monsterVersion;
|
|
14702
14778
|
*
|
14703
14779
|
* ```
|
14704
14780
|
* <script type="module">
|
14705
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14781
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/types/version.js';
|
14706
14782
|
* console.log(getVersion())
|
14707
14783
|
* </script>
|
14708
14784
|
* ```
|
@@ -14721,7 +14797,7 @@ function getVersion() {
|
|
14721
14797
|
/**#@+ dont touch, replaced by make with package.json version */
|
14722
14798
|
|
14723
14799
|
|
14724
|
-
monsterVersion = new Version('1.29.
|
14800
|
+
monsterVersion = new Version('1.29.1');
|
14725
14801
|
/**#@-*/
|
14726
14802
|
|
14727
14803
|
return monsterVersion;
|
@@ -14777,7 +14853,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14777
14853
|
*
|
14778
14854
|
* ```
|
14779
14855
|
* <script type="module">
|
14780
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14856
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
14781
14857
|
* new Monster.Util.Comparator()
|
14782
14858
|
* </script>
|
14783
14859
|
* ```
|
@@ -14786,7 +14862,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14786
14862
|
*
|
14787
14863
|
* ```
|
14788
14864
|
* <script type="module">
|
14789
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14865
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/util/comparator.js';
|
14790
14866
|
* console.log(new Comparator())
|
14791
14867
|
* </script>
|
14792
14868
|
* ```
|
@@ -14811,7 +14887,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14811
14887
|
*
|
14812
14888
|
* @example
|
14813
14889
|
*
|
14814
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
14890
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/util/comparator.js';
|
14815
14891
|
*
|
14816
14892
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
14817
14893
|
* // ↦ true
|
@@ -15024,7 +15100,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15024
15100
|
*
|
15025
15101
|
* ```
|
15026
15102
|
* <script type="module">
|
15027
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
15103
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/monster.js';
|
15028
15104
|
* Monster.Util.deepFreeze({})
|
15029
15105
|
* </script>
|
15030
15106
|
* ```
|
@@ -15033,7 +15109,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15033
15109
|
*
|
15034
15110
|
* ```
|
15035
15111
|
* <script type="module">
|
15036
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.
|
15112
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.1/dist/modules/util/freeze.js';
|
15037
15113
|
* deepFreeze({})
|
15038
15114
|
* </script>
|
15039
15115
|
* ```
|