@schukai/monster 1.29.1 → 1.30.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +19 -0
- 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 +2 -2
- package/dist/modules/data/buildtree.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +2 -2
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +2 -2
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +2 -2
- package/dist/modules/dom/constants.js +2 -2
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +2 -2
- 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 +2 -2
- package/dist/modules/dom/template.js +2 -2
- 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 +2 -2
- package/dist/modules/i18n/formatter.js +2 -2
- 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 +2 -2
- package/dist/modules/monster.js +1 -1
- package/dist/modules/namespace.js +1 -1
- package/dist/modules/text/formatter.js +2 -2
- package/dist/modules/text/namespace.js +1 -1
- package/dist/modules/types/base.js +1 -1
- package/dist/modules/types/basewithoptions.js +2 -2
- package/dist/modules/types/binary.js +1 -1
- package/dist/modules/types/dataurl.js +2 -2
- package/dist/modules/types/global.js +1 -1
- package/dist/modules/types/id.js +2 -2
- package/dist/modules/types/is.js +1 -1
- package/dist/modules/types/mediatype.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/modules/types/uuid.js +2 -2
- 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 +2 -2
- package/dist/monster.dev.js +394 -255
- 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 +12 -5
- 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 +5 -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 +27 -27
- package/source/dom/constants.js +11 -1
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +137 -31
- 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 +3 -3
- 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 +2 -2
- 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/customelement.js +236 -3
- package/test/cases/dom/resource/link.js +3 -5
- package/test/cases/monster.js +1 -1
- package/test/util/jsdom.js +1 -0
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +3 -2
- package/test/web/tests.js +7 -13
package/dist/monster.dev.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** Monster 1.
|
1
|
+
/** Monster 1.30.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.
|
143
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.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.
|
390
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.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.
|
399
|
+
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/base.js';
|
400
400
|
* new Base()
|
401
401
|
* </script>
|
402
402
|
* ```
|
@@ -455,6 +455,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
455
455
|
|
456
456
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
457
457
|
|
458
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
459
|
+
|
460
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
461
|
+
|
458
462
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
459
463
|
|
460
464
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
@@ -513,7 +517,7 @@ var AbstractOperator = /*#__PURE__*/function (_AbstractConstraint) {
|
|
513
517
|
return _this;
|
514
518
|
}
|
515
519
|
|
516
|
-
return AbstractOperator;
|
520
|
+
return _createClass(AbstractOperator);
|
517
521
|
}(_abstract_js__WEBPACK_IMPORTED_MODULE_1__.AbstractConstraint);
|
518
522
|
|
519
523
|
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_0__.assignToNamespace)('Monster.Constraints', AbstractOperator);
|
@@ -568,7 +572,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
568
572
|
*
|
569
573
|
* ```
|
570
574
|
* <script type="module">
|
571
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
575
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
572
576
|
* new Monster.Constraint.AndOperator();
|
573
577
|
* </script>
|
574
578
|
* ```
|
@@ -577,16 +581,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
577
581
|
*
|
578
582
|
* ```
|
579
583
|
* <script type="module">
|
580
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
584
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/andoperator.js';
|
581
585
|
* new AndOperator();
|
582
586
|
* </script>
|
583
587
|
* ```
|
584
588
|
*
|
585
589
|
* @example
|
586
590
|
*
|
587
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
588
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
589
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
591
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/valid.js';
|
592
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/invalid.js';
|
593
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/andoperator.js';
|
590
594
|
*
|
591
595
|
* new AndOperator(
|
592
596
|
* new Valid(), new Valid()).isValid()
|
@@ -688,7 +692,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
688
692
|
*
|
689
693
|
* ```
|
690
694
|
* <script type="module">
|
691
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
695
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
692
696
|
* new Monster.Constraint.Invalid();
|
693
697
|
* </script>
|
694
698
|
* ```
|
@@ -697,14 +701,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
697
701
|
*
|
698
702
|
* ```
|
699
703
|
* <script type="module">
|
700
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
704
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/invalid.js';
|
701
705
|
* new Invalid();
|
702
706
|
* </script>
|
703
707
|
* ```
|
704
708
|
*
|
705
709
|
* @example
|
706
710
|
*
|
707
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
711
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/invalid.js';
|
708
712
|
*
|
709
713
|
* new Invalid().isValid()
|
710
714
|
* .then(()=>console.log(true))
|
@@ -799,7 +803,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
799
803
|
*
|
800
804
|
* ```
|
801
805
|
* <script type="module">
|
802
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
806
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
803
807
|
* new Monster.Constraint.IsArray()
|
804
808
|
* </script>
|
805
809
|
* ```
|
@@ -808,14 +812,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
808
812
|
*
|
809
813
|
* ```
|
810
814
|
* <script type="module">
|
811
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
815
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/isarray.js';
|
812
816
|
* console.log(new IsArray())
|
813
817
|
* </script>
|
814
818
|
* ```
|
815
819
|
*
|
816
820
|
* @example
|
817
821
|
*
|
818
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
822
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/isarray.js';
|
819
823
|
*
|
820
824
|
* new IsArray()
|
821
825
|
* .isValid([])
|
@@ -904,7 +908,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
904
908
|
*
|
905
909
|
* ```
|
906
910
|
* <script type="module">
|
907
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
911
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
908
912
|
* Monster.Types.isIterable(null) // ↦ false
|
909
913
|
* Monster.Types.isIterable('hello') // ↦ true
|
910
914
|
* Monster.Types.isIterable([]) // ↦ true
|
@@ -915,7 +919,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
915
919
|
*
|
916
920
|
* ```
|
917
921
|
* <script type="module">
|
918
|
-
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
922
|
+
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
919
923
|
* isIterable(null) // ↦ false
|
920
924
|
* isIterable('hello') // ↦ true
|
921
925
|
* isIterable([]) // ↦ true
|
@@ -943,7 +947,7 @@ function isIterable(value) {
|
|
943
947
|
*
|
944
948
|
* ```
|
945
949
|
* <script type="module">
|
946
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
950
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
947
951
|
* Monster.Types.isPrimitive('2') // ↦ false
|
948
952
|
* Monster.Types.isPrimitive([]) // ↦ true
|
949
953
|
* </script>
|
@@ -953,7 +957,7 @@ function isIterable(value) {
|
|
953
957
|
*
|
954
958
|
* ```
|
955
959
|
* <script type="module">
|
956
|
-
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
960
|
+
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
957
961
|
* isPrimitive('2')) // ↦ true
|
958
962
|
* isPrimitive([])) // ↦ false
|
959
963
|
* </script>
|
@@ -991,7 +995,7 @@ function isPrimitive(value) {
|
|
991
995
|
*
|
992
996
|
* ```
|
993
997
|
* <script type="module">
|
994
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
998
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
995
999
|
* Monster.Types.isSymbol('2') // ↦ false
|
996
1000
|
* Monster.Types.isSymbol(Symbol('test') // ↦ true
|
997
1001
|
* </script>
|
@@ -1001,7 +1005,7 @@ function isPrimitive(value) {
|
|
1001
1005
|
*
|
1002
1006
|
* ```
|
1003
1007
|
* <script type="module">
|
1004
|
-
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1008
|
+
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1005
1009
|
* isSymbol(Symbol('a'))) // ↦ true
|
1006
1010
|
* isSymbol([]) // ↦ false
|
1007
1011
|
* </script>
|
@@ -1027,7 +1031,7 @@ function isSymbol(value) {
|
|
1027
1031
|
*
|
1028
1032
|
* ```
|
1029
1033
|
* <script type="module">
|
1030
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1034
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1031
1035
|
* Monster.Types.isBoolean('2') // ↦ false
|
1032
1036
|
* Monster.Types.isBoolean([]) // ↦ false
|
1033
1037
|
* Monster.Types.isBoolean(true) // ↦ true
|
@@ -1038,7 +1042,7 @@ function isSymbol(value) {
|
|
1038
1042
|
*
|
1039
1043
|
* ```
|
1040
1044
|
* <script type="module">
|
1041
|
-
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1045
|
+
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1042
1046
|
* isBoolean('2')) // ↦ false
|
1043
1047
|
* isBoolean([])) // ↦ false
|
1044
1048
|
* isBoolean(2>4)) // ↦ true
|
@@ -1069,7 +1073,7 @@ function isBoolean(value) {
|
|
1069
1073
|
*
|
1070
1074
|
* ```
|
1071
1075
|
* <script type="module">
|
1072
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1076
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1073
1077
|
* Monster.Types.isString('2') // ↦ true
|
1074
1078
|
* Monster.Types.isString([]) // ↦ false
|
1075
1079
|
* </script>
|
@@ -1079,7 +1083,7 @@ function isBoolean(value) {
|
|
1079
1083
|
*
|
1080
1084
|
* ```
|
1081
1085
|
* <script type="module">
|
1082
|
-
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1086
|
+
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1083
1087
|
* isString('2')) // ↦ true
|
1084
1088
|
* isString([])) // ↦ false
|
1085
1089
|
* </script>
|
@@ -1109,7 +1113,7 @@ function isString(value) {
|
|
1109
1113
|
*
|
1110
1114
|
* ```
|
1111
1115
|
* <script type="module">
|
1112
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1116
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1113
1117
|
* Monster.Types.isObject('2') // ↦ false
|
1114
1118
|
* Monster.Types.isObject([]) // ↦ false
|
1115
1119
|
* Monster.Types.isObject({}) // ↦ true
|
@@ -1120,7 +1124,7 @@ function isString(value) {
|
|
1120
1124
|
*
|
1121
1125
|
* ```
|
1122
1126
|
* <script type="module">
|
1123
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1127
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1124
1128
|
* isObject('2')) // ↦ false
|
1125
1129
|
* isObject([])) // ↦ false
|
1126
1130
|
* </script>
|
@@ -1153,7 +1157,7 @@ function isObject(value) {
|
|
1153
1157
|
*
|
1154
1158
|
* ```
|
1155
1159
|
* <script type="module">
|
1156
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1160
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1157
1161
|
* Monster.Types.isInstance('2') // ↦ false
|
1158
1162
|
* Monster.Types.isInstance([]) // ↦ false
|
1159
1163
|
* Monster.Types.isInstance({}) // ↦ true
|
@@ -1164,7 +1168,7 @@ function isObject(value) {
|
|
1164
1168
|
*
|
1165
1169
|
* ```
|
1166
1170
|
* <script type="module">
|
1167
|
-
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1171
|
+
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1168
1172
|
* isInstance('2')) // ↦ false
|
1169
1173
|
* isInstance([])) // ↦ false
|
1170
1174
|
* </script>
|
@@ -1194,7 +1198,7 @@ function isInstance(value, instance) {
|
|
1194
1198
|
*
|
1195
1199
|
* ```
|
1196
1200
|
* <script type="module">
|
1197
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1201
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1198
1202
|
* Monster.Types.isArray('2') // ↦ false
|
1199
1203
|
* Monster.Types.isArray([]) // ↦ true
|
1200
1204
|
* </script>
|
@@ -1204,7 +1208,7 @@ function isInstance(value, instance) {
|
|
1204
1208
|
*
|
1205
1209
|
* ```
|
1206
1210
|
* <script type="module">
|
1207
|
-
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1211
|
+
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1208
1212
|
* isArray('2')) // ↦ false
|
1209
1213
|
* isArray([])) // ↦ true
|
1210
1214
|
* </script>
|
@@ -1231,7 +1235,7 @@ function isArray(value) {
|
|
1231
1235
|
*
|
1232
1236
|
* ```
|
1233
1237
|
* <script type="module">
|
1234
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1238
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1235
1239
|
* Monster.Types.isFunction(()=>{}) // ↦ true
|
1236
1240
|
* Monster.Types.isFunction('2') // ↦ false
|
1237
1241
|
* Monster.Types.isFunction([]) // ↦ false
|
@@ -1242,7 +1246,7 @@ function isArray(value) {
|
|
1242
1246
|
*
|
1243
1247
|
* ```
|
1244
1248
|
* <script type="module">
|
1245
|
-
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1249
|
+
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1246
1250
|
* isFunction(()=>{}) // ↦ true
|
1247
1251
|
* isFunction('2')) // ↦ false
|
1248
1252
|
* isFunction([])) // ↦ false
|
@@ -1276,7 +1280,7 @@ function isFunction(value) {
|
|
1276
1280
|
*
|
1277
1281
|
* ```
|
1278
1282
|
* <script type="module">
|
1279
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1283
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1280
1284
|
* Monster.Types.isInteger(()=>{}) // ↦ true
|
1281
1285
|
* Monster.Types.isInteger('2') // ↦ false
|
1282
1286
|
* Monster.Types.isInteger(2) // ↦ true
|
@@ -1287,7 +1291,7 @@ function isFunction(value) {
|
|
1287
1291
|
*
|
1288
1292
|
* ```
|
1289
1293
|
* <script type="module">
|
1290
|
-
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1294
|
+
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
1291
1295
|
* isInteger(()=>{}) // ↦ true
|
1292
1296
|
* isInteger('2')) // ↦ false
|
1293
1297
|
* isInteger(2)) // ↦ true
|
@@ -1360,7 +1364,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1360
1364
|
*
|
1361
1365
|
* ```
|
1362
1366
|
* <script type="module">
|
1363
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1367
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1364
1368
|
* console.log(new Monster.Constraint.IsObject())
|
1365
1369
|
* </script>
|
1366
1370
|
* ```
|
@@ -1369,14 +1373,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1369
1373
|
*
|
1370
1374
|
* ```
|
1371
1375
|
* <script type="module">
|
1372
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1376
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/isobject.js';
|
1373
1377
|
* console.log(new IsObject())
|
1374
1378
|
* </script>
|
1375
1379
|
* ```
|
1376
1380
|
*
|
1377
1381
|
* @example
|
1378
1382
|
*
|
1379
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1383
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/isobject.js';
|
1380
1384
|
*
|
1381
1385
|
* new IsObject()
|
1382
1386
|
* .isValid({})
|
@@ -1479,7 +1483,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1479
1483
|
*
|
1480
1484
|
* ```
|
1481
1485
|
* <script type="module">
|
1482
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1486
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1483
1487
|
* new Monster.Constraint.OrOperator();
|
1484
1488
|
* </script>
|
1485
1489
|
* ```
|
@@ -1488,16 +1492,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1488
1492
|
*
|
1489
1493
|
* ```
|
1490
1494
|
* <script type="module">
|
1491
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1495
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraint/oroperator.js';
|
1492
1496
|
* new OrOperator();
|
1493
1497
|
* </script>
|
1494
1498
|
* ```
|
1495
1499
|
*
|
1496
1500
|
* @example
|
1497
1501
|
*
|
1498
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1499
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1500
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1502
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/valid.js';
|
1503
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/invalid.js';
|
1504
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/oroperator.js';
|
1501
1505
|
*
|
1502
1506
|
* new OrOperator(
|
1503
1507
|
* new Valid(), new Invalid()).isValid()
|
@@ -1622,7 +1626,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1622
1626
|
*
|
1623
1627
|
* ```
|
1624
1628
|
* <script type="module">
|
1625
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1629
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1626
1630
|
* new Monster.Constraint.Valid();
|
1627
1631
|
* </script>
|
1628
1632
|
* ```
|
@@ -1631,14 +1635,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1631
1635
|
*
|
1632
1636
|
* ```
|
1633
1637
|
* <script type="module">
|
1634
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1638
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/valid.js';
|
1635
1639
|
* new Valid();
|
1636
1640
|
* </script>
|
1637
1641
|
* ```
|
1638
1642
|
*
|
1639
1643
|
* @example
|
1640
1644
|
*
|
1641
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1645
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/constraints/valid.js';
|
1642
1646
|
*
|
1643
1647
|
* new Valid().isValid()
|
1644
1648
|
* .then(()=>console.log(true))
|
@@ -1688,6 +1692,7 @@ var Valid = /*#__PURE__*/function (_AbstractConstraint) {
|
|
1688
1692
|
|
1689
1693
|
__webpack_require__.r(__webpack_exports__);
|
1690
1694
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1695
|
+
/* harmony export */ "PARENT": function() { return /* binding */ PARENT; },
|
1691
1696
|
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_0__.Monster; },
|
1692
1697
|
/* harmony export */ "buildMap": function() { return /* binding */ buildMap; },
|
1693
1698
|
/* harmony export */ "assembleParts": function() { return /* binding */ assembleParts; }
|
@@ -1737,6 +1742,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1737
1742
|
|
1738
1743
|
|
1739
1744
|
|
1745
|
+
/**
|
1746
|
+
* @type {string} parent symbol
|
1747
|
+
*/
|
1748
|
+
|
1749
|
+
var PARENT = '^';
|
1740
1750
|
/**
|
1741
1751
|
* With the help of the function `buildMap()`, maps can be easily created from data objects.
|
1742
1752
|
*
|
@@ -1747,7 +1757,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1747
1757
|
*
|
1748
1758
|
* ```
|
1749
1759
|
* <script type="module">
|
1750
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1760
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
1751
1761
|
* console.log(Monster.Data.buildMap())
|
1752
1762
|
* </script>
|
1753
1763
|
* ```
|
@@ -1756,7 +1766,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1756
1766
|
*
|
1757
1767
|
* ```
|
1758
1768
|
* <script type="module">
|
1759
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1769
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/buildmap.js';
|
1760
1770
|
* console.log(buildMap())
|
1761
1771
|
* </script>
|
1762
1772
|
* ```
|
@@ -1767,7 +1777,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1767
1777
|
*
|
1768
1778
|
* @example
|
1769
1779
|
*
|
1770
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1780
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/buildmap.js';
|
1771
1781
|
* // a typical data structure as reported by an api
|
1772
1782
|
*
|
1773
1783
|
* let map;
|
@@ -1945,7 +1955,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1945
1955
|
var sub = buildFlatMap.call(result, o, parts.join(_pathfinder_js__WEBPACK_IMPORTED_MODULE_4__.DELIMITER), copyKey, o);
|
1946
1956
|
|
1947
1957
|
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_1__.isObject)(sub) && parentMap !== undefined) {
|
1948
|
-
sub[
|
1958
|
+
sub[PARENT] = parentMap;
|
1949
1959
|
}
|
1950
1960
|
|
1951
1961
|
currentMap.set(kk, sub);
|
@@ -1998,7 +2008,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1998
2008
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
1999
2009
|
*
|
2000
2010
|
* @example
|
2001
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2011
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/buildmap.js';
|
2002
2012
|
*
|
2003
2013
|
* let obj = {
|
2004
2014
|
* "data": [
|
@@ -2139,7 +2149,7 @@ function build(subject, definition, defaultValue) {
|
|
2139
2149
|
if (definition === undefined) return defaultValue ? defaultValue : subject;
|
2140
2150
|
(0,_types_validate_js__WEBPACK_IMPORTED_MODULE_2__.validateString)(definition);
|
2141
2151
|
|
2142
|
-
var regexp = /*#__PURE__*/_wrapRegExp(/(\$\{([
|
2152
|
+
var regexp = /*#__PURE__*/_wrapRegExp(/(\$\{([a-z\^A-Z.\-_0-9]*)\})/gm, {
|
2143
2153
|
placeholder: 1,
|
2144
2154
|
path: 2
|
2145
2155
|
});
|
@@ -2201,7 +2211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2201
2211
|
*
|
2202
2212
|
* ```
|
2203
2213
|
* <script type="module">
|
2204
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2214
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2205
2215
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
2206
2216
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
2207
2217
|
* </script>
|
@@ -2211,7 +2221,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2211
2221
|
*
|
2212
2222
|
* ```
|
2213
2223
|
* <script type="module">
|
2214
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2224
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2215
2225
|
* console.log(validateIterable('2')) // ↦ TypeError
|
2216
2226
|
* console.log(validateIterable([])) // ↦ value
|
2217
2227
|
* </script>
|
@@ -2242,7 +2252,7 @@ function validateIterable(value) {
|
|
2242
2252
|
*
|
2243
2253
|
* ```
|
2244
2254
|
* <script type="module">
|
2245
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2255
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2246
2256
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
2247
2257
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
2248
2258
|
* </script>
|
@@ -2252,7 +2262,7 @@ function validateIterable(value) {
|
|
2252
2262
|
*
|
2253
2263
|
* ```
|
2254
2264
|
* <script type="module">
|
2255
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2265
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2256
2266
|
* console.log(validatePrimitive('2')) // ↦ value
|
2257
2267
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
2258
2268
|
* </script>
|
@@ -2284,7 +2294,7 @@ function validatePrimitive(value) {
|
|
2284
2294
|
*
|
2285
2295
|
* ```
|
2286
2296
|
* <script type="module">
|
2287
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2297
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2288
2298
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
2289
2299
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
2290
2300
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
@@ -2295,7 +2305,7 @@ function validatePrimitive(value) {
|
|
2295
2305
|
*
|
2296
2306
|
* ```
|
2297
2307
|
* <script type="module">
|
2298
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2308
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2299
2309
|
* console.log(validateBoolean(false)) // ↦ value
|
2300
2310
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
2301
2311
|
* console.log(validateBoolean([])) // ↦ TypeError
|
@@ -2326,7 +2336,7 @@ function validateBoolean(value) {
|
|
2326
2336
|
*
|
2327
2337
|
* ```
|
2328
2338
|
* <script type="module">
|
2329
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2339
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2330
2340
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
2331
2341
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
2332
2342
|
* </script>
|
@@ -2336,7 +2346,7 @@ function validateBoolean(value) {
|
|
2336
2346
|
*
|
2337
2347
|
* ```
|
2338
2348
|
* <script type="module">
|
2339
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2349
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2340
2350
|
* console.log(validateString('2')) // ↦ value
|
2341
2351
|
* console.log(validateString([])) // ↦ TypeError
|
2342
2352
|
* </script>
|
@@ -2365,7 +2375,7 @@ function validateString(value) {
|
|
2365
2375
|
*
|
2366
2376
|
* ```
|
2367
2377
|
* <script type="module">
|
2368
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2378
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2369
2379
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
2370
2380
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
2371
2381
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
@@ -2376,7 +2386,7 @@ function validateString(value) {
|
|
2376
2386
|
*
|
2377
2387
|
* ```
|
2378
2388
|
* <script type="module">
|
2379
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2389
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2380
2390
|
* console.log(validateObject({})) // ↦ value
|
2381
2391
|
* console.log(validateObject('2')) // ↦ TypeError
|
2382
2392
|
* console.log(validateObject([])) // ↦ TypeError
|
@@ -2406,7 +2416,7 @@ function validateObject(value) {
|
|
2406
2416
|
*
|
2407
2417
|
* ```
|
2408
2418
|
* <script type="module">
|
2409
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2419
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2410
2420
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
2411
2421
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
2412
2422
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
@@ -2417,7 +2427,7 @@ function validateObject(value) {
|
|
2417
2427
|
*
|
2418
2428
|
* ```
|
2419
2429
|
* <script type="module">
|
2420
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2430
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2421
2431
|
* console.log(validateInstance({}, Object)) // ↦ value
|
2422
2432
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
2423
2433
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
@@ -2457,7 +2467,7 @@ function validateInstance(value, instance) {
|
|
2457
2467
|
*
|
2458
2468
|
* ```
|
2459
2469
|
* <script type="module">
|
2460
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2470
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2461
2471
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
2462
2472
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
2463
2473
|
* </script>
|
@@ -2467,7 +2477,7 @@ function validateInstance(value, instance) {
|
|
2467
2477
|
*
|
2468
2478
|
* ```
|
2469
2479
|
* <script type="module">
|
2470
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2480
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2471
2481
|
* console.log(validateArray('2')) // ↦ TypeError
|
2472
2482
|
* console.log(validateArray([])) // ↦ value
|
2473
2483
|
* </script>
|
@@ -2496,7 +2506,7 @@ function validateArray(value) {
|
|
2496
2506
|
*
|
2497
2507
|
* ```
|
2498
2508
|
* <script type="module">
|
2499
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2509
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2500
2510
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
2501
2511
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
2502
2512
|
* </script>
|
@@ -2506,7 +2516,7 @@ function validateArray(value) {
|
|
2506
2516
|
*
|
2507
2517
|
* ```
|
2508
2518
|
* <script type="module">
|
2509
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2519
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2510
2520
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
2511
2521
|
* console.log(validateSymbol()) // ↦ value
|
2512
2522
|
* </script>
|
@@ -2535,7 +2545,7 @@ function validateSymbol(value) {
|
|
2535
2545
|
*
|
2536
2546
|
* ```
|
2537
2547
|
* <script type="module">
|
2538
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2548
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2539
2549
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
2540
2550
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
2541
2551
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
@@ -2546,7 +2556,7 @@ function validateSymbol(value) {
|
|
2546
2556
|
*
|
2547
2557
|
* ```
|
2548
2558
|
* <script type="module">
|
2549
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2559
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2550
2560
|
* console.log(validateFunction(()=>{})) // ↦ value
|
2551
2561
|
* console.log(validateFunction('2')) // ↦ TypeError
|
2552
2562
|
* console.log(validateFunction([])) // ↦ TypeError
|
@@ -2576,7 +2586,7 @@ function validateFunction(value) {
|
|
2576
2586
|
*
|
2577
2587
|
* ```
|
2578
2588
|
* <script type="module">
|
2579
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2589
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2580
2590
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
2581
2591
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
2582
2592
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
@@ -2587,7 +2597,7 @@ function validateFunction(value) {
|
|
2587
2597
|
*
|
2588
2598
|
* ```
|
2589
2599
|
* <script type="module">
|
2590
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2600
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/validate.js';
|
2591
2601
|
* console.log(validateInteger(true)) // ↦ TypeError
|
2592
2602
|
* console.log(validateInteger('2')) // ↦ TypeError
|
2593
2603
|
* console.log(validateInteger(2)) // ↦ value
|
@@ -2653,7 +2663,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2653
2663
|
*
|
2654
2664
|
* ```
|
2655
2665
|
* <script type="module">
|
2656
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2666
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2657
2667
|
* Monster.Util.clone({})
|
2658
2668
|
* </script>
|
2659
2669
|
* ```
|
@@ -2662,7 +2672,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2662
2672
|
*
|
2663
2673
|
* ```
|
2664
2674
|
* <script type="module">
|
2665
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2675
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/util/clone.js';
|
2666
2676
|
* clone({})
|
2667
2677
|
* </script>
|
2668
2678
|
* ```
|
@@ -2874,7 +2884,7 @@ function getGlobal() {
|
|
2874
2884
|
*
|
2875
2885
|
* ```
|
2876
2886
|
* <script type="module">
|
2877
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2887
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2878
2888
|
* Monster.Types.getGlobalObject('document')
|
2879
2889
|
* // ↦ { }
|
2880
2890
|
* </script>
|
@@ -2884,7 +2894,7 @@ function getGlobal() {
|
|
2884
2894
|
*
|
2885
2895
|
* ```
|
2886
2896
|
* <script type="module">
|
2887
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2897
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/global.js';
|
2888
2898
|
* getGlobalObject('document')
|
2889
2899
|
* // ↦ { }
|
2890
2900
|
* </script>
|
@@ -2916,7 +2926,7 @@ function getGlobalObject(name) {
|
|
2916
2926
|
*
|
2917
2927
|
* ```
|
2918
2928
|
* <script type="module">
|
2919
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2929
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2920
2930
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2921
2931
|
* </script>
|
2922
2932
|
* ```
|
@@ -2925,7 +2935,7 @@ function getGlobalObject(name) {
|
|
2925
2935
|
*
|
2926
2936
|
* ```
|
2927
2937
|
* <script type="module">
|
2928
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2938
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/global.js';
|
2929
2939
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2930
2940
|
* </script>
|
2931
2941
|
* ```
|
@@ -2976,7 +2986,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2976
2986
|
*
|
2977
2987
|
* ```
|
2978
2988
|
* <script type="module">
|
2979
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2989
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
2980
2990
|
* console.log(Monster.Types.typeOf())
|
2981
2991
|
* </script>
|
2982
2992
|
* ```
|
@@ -2985,14 +2995,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
2985
2995
|
*
|
2986
2996
|
* ```
|
2987
2997
|
* <script type="module">
|
2988
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2998
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/typeof.js';
|
2989
2999
|
* console.log(typeOf())
|
2990
3000
|
* </script>
|
2991
3001
|
* ```
|
2992
3002
|
*
|
2993
3003
|
* @example
|
2994
3004
|
*
|
2995
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3005
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/typeof.js';
|
2996
3006
|
*
|
2997
3007
|
* console.log(typeOf(undefined)); // ↦ undefined
|
2998
3008
|
* console.log(typeOf("")); // ↦ string
|
@@ -3111,7 +3121,7 @@ var WILDCARD = '*';
|
|
3111
3121
|
*
|
3112
3122
|
* ```
|
3113
3123
|
* <script type="module">
|
3114
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3124
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
3115
3125
|
* console.log(new Monster.Data.Pathfinder())
|
3116
3126
|
* </script>
|
3117
3127
|
* ```
|
@@ -3120,7 +3130,7 @@ var WILDCARD = '*';
|
|
3120
3130
|
*
|
3121
3131
|
* ```
|
3122
3132
|
* <script type="module">
|
3123
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3133
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/pathfinder.js';
|
3124
3134
|
* console.log(new Pathfinder())
|
3125
3135
|
* </script>
|
3126
3136
|
* ```
|
@@ -3162,7 +3172,7 @@ var WILDCARD = '*';
|
|
3162
3172
|
*
|
3163
3173
|
* @example
|
3164
3174
|
*
|
3165
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3175
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/pathfinder.js';
|
3166
3176
|
*
|
3167
3177
|
* let value = new Pathfinder({
|
3168
3178
|
* a: {
|
@@ -3188,7 +3198,7 @@ var WILDCARD = '*';
|
|
3188
3198
|
*
|
3189
3199
|
* @example
|
3190
3200
|
*
|
3191
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3201
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/pathfinder.js';
|
3192
3202
|
*
|
3193
3203
|
* let p = new Pathfinder({
|
3194
3204
|
* a: {
|
@@ -3603,7 +3613,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3603
3613
|
*
|
3604
3614
|
* ```
|
3605
3615
|
* <script type="module">
|
3606
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3616
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
3607
3617
|
* console.log(new Monster.Types.Stack())
|
3608
3618
|
* </script>
|
3609
3619
|
* ```
|
@@ -3612,7 +3622,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3612
3622
|
*
|
3613
3623
|
* ```
|
3614
3624
|
* <script type="module">
|
3615
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3625
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/stack.js';
|
3616
3626
|
* console.log(new Stack())
|
3617
3627
|
* </script>
|
3618
3628
|
* ```
|
@@ -3747,7 +3757,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3747
3757
|
*
|
3748
3758
|
* ```
|
3749
3759
|
* <script type="module">
|
3750
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3760
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
3751
3761
|
* Monster.Data.Diff(a, b)
|
3752
3762
|
* </script>
|
3753
3763
|
* ```
|
@@ -3756,14 +3766,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3756
3766
|
*
|
3757
3767
|
* ```
|
3758
3768
|
* <script type="module">
|
3759
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3769
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/diff.js';
|
3760
3770
|
* Diff(a, b)
|
3761
3771
|
* </script>
|
3762
3772
|
* ```
|
3763
3773
|
*
|
3764
3774
|
* @example
|
3765
3775
|
*
|
3766
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3776
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/diff.js';
|
3767
3777
|
*
|
3768
3778
|
* // given are two objects x and y.
|
3769
3779
|
*
|
@@ -4009,7 +4019,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4009
4019
|
*
|
4010
4020
|
* ```
|
4011
4021
|
* <script type="module">
|
4012
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4022
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
4013
4023
|
* Monster.Data.extend(a, b)
|
4014
4024
|
* </script>
|
4015
4025
|
* ```
|
@@ -4018,7 +4028,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4018
4028
|
*
|
4019
4029
|
* ```
|
4020
4030
|
* <script type="module">
|
4021
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4031
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/extend.js';
|
4022
4032
|
* extend(a, b)
|
4023
4033
|
* </script>
|
4024
4034
|
* ```
|
@@ -4147,7 +4157,7 @@ var DELIMITER = '|';
|
|
4147
4157
|
*
|
4148
4158
|
* ```
|
4149
4159
|
* <script type="module">
|
4150
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4160
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
4151
4161
|
* new Monster.Data.Pipe()
|
4152
4162
|
* </script>
|
4153
4163
|
* ```
|
@@ -4156,7 +4166,7 @@ var DELIMITER = '|';
|
|
4156
4166
|
*
|
4157
4167
|
* ```
|
4158
4168
|
* <script type="module">
|
4159
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4169
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/pipe.js';
|
4160
4170
|
* new Pipe()
|
4161
4171
|
* </script>
|
4162
4172
|
* ```
|
@@ -4167,7 +4177,7 @@ var DELIMITER = '|';
|
|
4167
4177
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
4168
4178
|
*
|
4169
4179
|
* @example
|
4170
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4180
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/pipe.js';
|
4171
4181
|
*
|
4172
4182
|
* let obj = {
|
4173
4183
|
* a: {
|
@@ -4329,7 +4339,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4329
4339
|
*
|
4330
4340
|
* ```
|
4331
4341
|
* <script type="module">
|
4332
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4342
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
4333
4343
|
* new Monster.Data.Transformer()
|
4334
4344
|
* </script>
|
4335
4345
|
* ```
|
@@ -4338,7 +4348,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4338
4348
|
*
|
4339
4349
|
* ```
|
4340
4350
|
* <script type="module">
|
4341
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4351
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/transformer.js';
|
4342
4352
|
* new Transformer()
|
4343
4353
|
* </script>
|
4344
4354
|
* ```
|
@@ -4424,7 +4434,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4424
4434
|
*
|
4425
4435
|
* @example
|
4426
4436
|
*
|
4427
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4437
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/data/transformer.js';
|
4428
4438
|
*
|
4429
4439
|
* const transformer = new Transformer("tolower")
|
4430
4440
|
*
|
@@ -4957,7 +4967,7 @@ var internalCounter = new Map();
|
|
4957
4967
|
*
|
4958
4968
|
* ```
|
4959
4969
|
* <script type="module">
|
4960
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4970
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
4961
4971
|
* console.log(new Monster.Types.ID())
|
4962
4972
|
* </script>
|
4963
4973
|
* ```
|
@@ -4966,7 +4976,7 @@ var internalCounter = new Map();
|
|
4966
4976
|
*
|
4967
4977
|
* ```
|
4968
4978
|
* <script type="module">
|
4969
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4979
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/id.js';
|
4970
4980
|
* console.log(new ID())
|
4971
4981
|
* </script>
|
4972
4982
|
* ```
|
@@ -5089,7 +5099,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5089
5099
|
*
|
5090
5100
|
* ```
|
5091
5101
|
* <script type="module">
|
5092
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5102
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
5093
5103
|
* console.log(new Monster.DOM.Assembler())
|
5094
5104
|
* </script>
|
5095
5105
|
* ```
|
@@ -5098,7 +5108,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5098
5108
|
*
|
5099
5109
|
* ```
|
5100
5110
|
* <script type="module">
|
5101
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5111
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/assembler.js';
|
5102
5112
|
* console.log(new Assembler())
|
5103
5113
|
* </script>
|
5104
5114
|
* ```
|
@@ -5239,7 +5249,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5239
5249
|
*
|
5240
5250
|
* ```
|
5241
5251
|
* <script type="module">
|
5242
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5252
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
5243
5253
|
* new Monster.Types.ProxyObserver()
|
5244
5254
|
* </script>
|
5245
5255
|
* ```
|
@@ -5248,7 +5258,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5248
5258
|
*
|
5249
5259
|
* ```
|
5250
5260
|
* <script type="module">
|
5251
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5261
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/proxyobserver.js';
|
5252
5262
|
* new ProxyObserver()
|
5253
5263
|
* </script>
|
5254
5264
|
* ```
|
@@ -5259,9 +5269,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5259
5269
|
*
|
5260
5270
|
* @example
|
5261
5271
|
*
|
5262
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5263
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5264
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5272
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/proxyobserver.js';
|
5273
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/observer.js';
|
5274
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/is.js';
|
5265
5275
|
*
|
5266
5276
|
* const o = new Observer(function () {
|
5267
5277
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
@@ -5586,14 +5596,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5586
5596
|
* You can call the method via the monster namespace `new Monster.Types.Observer()`.
|
5587
5597
|
*
|
5588
5598
|
* ```
|
5589
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5599
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
5590
5600
|
* new Monster.Types.Observer()
|
5591
5601
|
* ```
|
5592
5602
|
*
|
5593
5603
|
* Alternatively, you can also integrate this function individually.
|
5594
5604
|
*
|
5595
5605
|
* ```
|
5596
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5606
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/observer.js';
|
5597
5607
|
* new Observer()
|
5598
5608
|
* ```
|
5599
5609
|
*
|
@@ -5622,7 +5632,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5622
5632
|
*
|
5623
5633
|
* @example
|
5624
5634
|
*
|
5625
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5635
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/observer.js';
|
5626
5636
|
*
|
5627
5637
|
* const observer = new Observer(function(a, b, c) {
|
5628
5638
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
@@ -5822,7 +5832,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5822
5832
|
*
|
5823
5833
|
* ```
|
5824
5834
|
* <script type="module">
|
5825
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5835
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
5826
5836
|
* new Monster.Types.TokenList("myclass row")
|
5827
5837
|
* </script>
|
5828
5838
|
* ```
|
@@ -5831,7 +5841,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5831
5841
|
*
|
5832
5842
|
* ```
|
5833
5843
|
* <script type="module">
|
5834
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5844
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/tokenlist.js';
|
5835
5845
|
* new TokenList("myclass row")
|
5836
5846
|
* </script>
|
5837
5847
|
* ```
|
@@ -6254,7 +6264,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6254
6264
|
*
|
6255
6265
|
* ```
|
6256
6266
|
* <script type="module">
|
6257
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6267
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6258
6268
|
* new Monster.Types.UniqueQueue()
|
6259
6269
|
* </script>
|
6260
6270
|
* ```
|
@@ -6263,7 +6273,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6263
6273
|
*
|
6264
6274
|
* ```
|
6265
6275
|
* <script type="module">
|
6266
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6276
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/uniquequeue.js';
|
6267
6277
|
* new UniqueQueue()
|
6268
6278
|
* </script>
|
6269
6279
|
* ```
|
@@ -6398,7 +6408,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6398
6408
|
*
|
6399
6409
|
* ```
|
6400
6410
|
* <script type="module">
|
6401
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6411
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6402
6412
|
* new Monster.Types.Queue()
|
6403
6413
|
* </script>
|
6404
6414
|
* ```
|
@@ -6407,14 +6417,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6407
6417
|
*
|
6408
6418
|
* ```
|
6409
6419
|
* <script type="module">
|
6410
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6420
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/queue.js';
|
6411
6421
|
* new Queue()
|
6412
6422
|
* </script>
|
6413
6423
|
* ```
|
6414
6424
|
*
|
6415
6425
|
* @example
|
6416
6426
|
*
|
6417
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6427
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/queue.js';
|
6418
6428
|
*
|
6419
6429
|
* const queue = new Queue;
|
6420
6430
|
*
|
@@ -6583,7 +6593,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6583
6593
|
*
|
6584
6594
|
* ```
|
6585
6595
|
* <script type="module">
|
6586
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6596
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6587
6597
|
* console.log(new Monster.Types.ObserverList())
|
6588
6598
|
* console.log(new Monster.Types.ObserverList())
|
6589
6599
|
* </script>
|
@@ -6593,7 +6603,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6593
6603
|
*
|
6594
6604
|
* ```
|
6595
6605
|
* <script type="module">
|
6596
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6606
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/observerlist.js';
|
6597
6607
|
* console.log(ObserverList())
|
6598
6608
|
* console.log(ObserverList())
|
6599
6609
|
* </script>
|
@@ -6753,7 +6763,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6753
6763
|
*
|
6754
6764
|
* ```
|
6755
6765
|
* <script type="module">
|
6756
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6766
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6757
6767
|
* console.log(Monster.DOM.findClosestObjectLink())
|
6758
6768
|
* </script>
|
6759
6769
|
* ```
|
@@ -6762,7 +6772,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6762
6772
|
*
|
6763
6773
|
* ```
|
6764
6774
|
* <script type="module">
|
6765
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6775
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/updater.js';
|
6766
6776
|
* console.log(findClosestObjectLink())
|
6767
6777
|
* </script>
|
6768
6778
|
* ```
|
@@ -6783,7 +6793,7 @@ function findClosestObjectLink(element) {
|
|
6783
6793
|
*
|
6784
6794
|
* ```
|
6785
6795
|
* <script type="module">
|
6786
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6796
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6787
6797
|
* Monster.DOM.addToObjectLink();
|
6788
6798
|
* </script>
|
6789
6799
|
* ```
|
@@ -6792,7 +6802,7 @@ function findClosestObjectLink(element) {
|
|
6792
6802
|
*
|
6793
6803
|
* ```
|
6794
6804
|
* <script type="module">
|
6795
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6805
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
6796
6806
|
* addToObjectLink();
|
6797
6807
|
* </script>
|
6798
6808
|
* ```
|
@@ -6824,7 +6834,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6824
6834
|
*
|
6825
6835
|
* ```
|
6826
6836
|
* <script type="module">
|
6827
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6837
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6828
6838
|
* Monster.DOM.removeObjectLink();
|
6829
6839
|
* </script>
|
6830
6840
|
* ```
|
@@ -6833,7 +6843,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6833
6843
|
*
|
6834
6844
|
* ```
|
6835
6845
|
* <script type="module">
|
6836
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6846
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
6837
6847
|
* removeObjectLink();
|
6838
6848
|
* </script>
|
6839
6849
|
* ```
|
@@ -6864,7 +6874,7 @@ function removeObjectLink(element, symbol) {
|
|
6864
6874
|
*
|
6865
6875
|
* ```
|
6866
6876
|
* <script type="module">
|
6867
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6877
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6868
6878
|
* Monster.DOM.hasObjectLink();
|
6869
6879
|
* </script>
|
6870
6880
|
* ```
|
@@ -6873,7 +6883,7 @@ function removeObjectLink(element, symbol) {
|
|
6873
6883
|
*
|
6874
6884
|
* ```
|
6875
6885
|
* <script type="module">
|
6876
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6886
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
6877
6887
|
* hasObjectLink();
|
6878
6888
|
* </script>
|
6879
6889
|
* ```
|
@@ -6909,7 +6919,7 @@ function hasObjectLink(element, symbol) {
|
|
6909
6919
|
*
|
6910
6920
|
* ```
|
6911
6921
|
* <script type="module">
|
6912
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6922
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6913
6923
|
* Monster.DOM.getLinkedObjects();
|
6914
6924
|
* </script>
|
6915
6925
|
* ```
|
@@ -6918,7 +6928,7 @@ function hasObjectLink(element, symbol) {
|
|
6918
6928
|
*
|
6919
6929
|
* ```
|
6920
6930
|
* <script type="module">
|
6921
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6931
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
6922
6932
|
* getLinkedObjects();
|
6923
6933
|
* </script>
|
6924
6934
|
* ```
|
@@ -6952,7 +6962,7 @@ function getLinkedObjects(element, symbol) {
|
|
6952
6962
|
*
|
6953
6963
|
* ```
|
6954
6964
|
* <script type="module">
|
6955
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6965
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
6956
6966
|
* Monster.DOM.toggleAttributeToken();
|
6957
6967
|
* </script>
|
6958
6968
|
* ```
|
@@ -6961,7 +6971,7 @@ function getLinkedObjects(element, symbol) {
|
|
6961
6971
|
*
|
6962
6972
|
* ```
|
6963
6973
|
* <script type="module">
|
6964
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6974
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
6965
6975
|
* toggleAttributeToken();
|
6966
6976
|
* </script>
|
6967
6977
|
* ```
|
@@ -6990,13 +7000,13 @@ function toggleAttributeToken(element, key, token) {
|
|
6990
7000
|
return element;
|
6991
7001
|
}
|
6992
7002
|
/**
|
6993
|
-
*
|
7003
|
+
* This method can be used to add a token to an attribute. Tokens are always separated by a space.
|
6994
7004
|
*
|
6995
7005
|
* You can call the method via the monster namespace `new Monster.DOM.addAttributeToken()`.
|
6996
7006
|
*
|
6997
7007
|
* ```
|
6998
7008
|
* <script type="module">
|
6999
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7009
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7000
7010
|
* Monster.DOM.addAttributeToken();
|
7001
7011
|
* </script>
|
7002
7012
|
* ```
|
@@ -7005,7 +7015,7 @@ function toggleAttributeToken(element, key, token) {
|
|
7005
7015
|
*
|
7006
7016
|
* ```
|
7007
7017
|
* <script type="module">
|
7008
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7018
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7009
7019
|
* addAttributeToken();
|
7010
7020
|
* </script>
|
7011
7021
|
* ```
|
@@ -7042,7 +7052,7 @@ function addAttributeToken(element, key, token) {
|
|
7042
7052
|
*
|
7043
7053
|
* ```
|
7044
7054
|
* <script type="module">
|
7045
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7055
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7046
7056
|
* Monster.DOM.removeAttributeToken();
|
7047
7057
|
* </script>
|
7048
7058
|
* ```
|
@@ -7051,7 +7061,7 @@ function addAttributeToken(element, key, token) {
|
|
7051
7061
|
*
|
7052
7062
|
* ```
|
7053
7063
|
* <script type="module">
|
7054
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7064
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7055
7065
|
* removeAttributeToken();
|
7056
7066
|
* </script>
|
7057
7067
|
* ```
|
@@ -7087,7 +7097,7 @@ function removeAttributeToken(element, key, token) {
|
|
7087
7097
|
*
|
7088
7098
|
* ```
|
7089
7099
|
* <script type="module">
|
7090
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7100
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7091
7101
|
* Monster.DOM.containsAttributeToken();
|
7092
7102
|
* </script>
|
7093
7103
|
* ```
|
@@ -7096,7 +7106,7 @@ function removeAttributeToken(element, key, token) {
|
|
7096
7106
|
*
|
7097
7107
|
* ```
|
7098
7108
|
* <script type="module">
|
7099
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7109
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7100
7110
|
* containsAttributeToken();
|
7101
7111
|
* </script>
|
7102
7112
|
* ```
|
@@ -7129,7 +7139,7 @@ function containsAttributeToken(element, key, token) {
|
|
7129
7139
|
*
|
7130
7140
|
* ```
|
7131
7141
|
* <script type="module">
|
7132
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7142
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7133
7143
|
* Monster.DOM.replaceAttributeToken();
|
7134
7144
|
* </script>
|
7135
7145
|
* ```
|
@@ -7138,7 +7148,7 @@ function containsAttributeToken(element, key, token) {
|
|
7138
7148
|
*
|
7139
7149
|
* ```
|
7140
7150
|
* <script type="module">
|
7141
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7151
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7142
7152
|
* replaceAttributeToken();
|
7143
7153
|
* </script>
|
7144
7154
|
* ```
|
@@ -7174,7 +7184,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7174
7184
|
*
|
7175
7185
|
* ```
|
7176
7186
|
* <script type="module">
|
7177
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7187
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7178
7188
|
* Monster.DOM.clearAttributeTokens();
|
7179
7189
|
* </script>
|
7180
7190
|
* ```
|
@@ -7183,7 +7193,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7183
7193
|
*
|
7184
7194
|
* ```
|
7185
7195
|
* <script type="module">
|
7186
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7196
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7187
7197
|
* clearAttributeTokens();
|
7188
7198
|
* </script>
|
7189
7199
|
* ```
|
@@ -7231,7 +7241,7 @@ function clearAttributeTokens(element, key) {
|
|
7231
7241
|
*
|
7232
7242
|
* ```
|
7233
7243
|
* <script type="module">
|
7234
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7244
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7235
7245
|
* Monster.DOM.findClosestByAttribute();
|
7236
7246
|
* </script>
|
7237
7247
|
* ```
|
@@ -7240,7 +7250,7 @@ function clearAttributeTokens(element, key) {
|
|
7240
7250
|
*
|
7241
7251
|
* ```
|
7242
7252
|
* <script type="module">
|
7243
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7253
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7244
7254
|
* findClosestByAttribute();
|
7245
7255
|
* </script>
|
7246
7256
|
* ```
|
@@ -7298,7 +7308,7 @@ function findClosestByAttribute(element, key, value) {
|
|
7298
7308
|
*
|
7299
7309
|
* ```
|
7300
7310
|
* <script type="module">
|
7301
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7311
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7302
7312
|
* Monster.DOM.findClosestByClass();
|
7303
7313
|
* </script>
|
7304
7314
|
* ```
|
@@ -7307,7 +7317,7 @@ function findClosestByAttribute(element, key, value) {
|
|
7307
7317
|
*
|
7308
7318
|
* ```
|
7309
7319
|
* <script type="module">
|
7310
|
-
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7320
|
+
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/attributes.js';
|
7311
7321
|
* findClosestByClass();
|
7312
7322
|
* </script>
|
7313
7323
|
* ```
|
@@ -7401,7 +7411,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
7401
7411
|
/* harmony export */ "ATTRIBUTE_VALUE": function() { return /* binding */ ATTRIBUTE_VALUE; },
|
7402
7412
|
/* harmony export */ "objectUpdaterLinkSymbol": function() { return /* binding */ objectUpdaterLinkSymbol; },
|
7403
7413
|
/* harmony export */ "ATTRIBUTE_TEMPLATE_PREFIX": function() { return /* binding */ ATTRIBUTE_TEMPLATE_PREFIX; },
|
7404
|
-
/* harmony export */ "ATTRIBUTE_UPDATER_SELECT_THIS": function() { return /* binding */ ATTRIBUTE_UPDATER_SELECT_THIS; }
|
7414
|
+
/* harmony export */ "ATTRIBUTE_UPDATER_SELECT_THIS": function() { return /* binding */ ATTRIBUTE_UPDATER_SELECT_THIS; },
|
7415
|
+
/* harmony export */ "ATTRIBUTE_OPTIONS_SELECTOR": function() { return /* binding */ ATTRIBUTE_OPTIONS_SELECTOR; }
|
7405
7416
|
/* harmony export */ });
|
7406
7417
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
7407
7418
|
|
@@ -7434,6 +7445,15 @@ var ATTRIBUTE_PREFIX = 'data-monster-';
|
|
7434
7445
|
*/
|
7435
7446
|
|
7436
7447
|
var ATTRIBUTE_OPTIONS = ATTRIBUTE_PREFIX + 'options';
|
7448
|
+
/**
|
7449
|
+
* This is the name of the attribute to pass options to a control
|
7450
|
+
*
|
7451
|
+
* @memberOf Monster.DOM
|
7452
|
+
* @since 1.30.0
|
7453
|
+
* @type {string}
|
7454
|
+
*/
|
7455
|
+
|
7456
|
+
var ATTRIBUTE_OPTIONS_SELECTOR = ATTRIBUTE_PREFIX + 'options-selector';
|
7437
7457
|
/**
|
7438
7458
|
* @memberOf Monster.DOM
|
7439
7459
|
* @type {string}
|
@@ -7841,7 +7861,7 @@ var attachedInternalSymbol = Symbol('attachedInternal');
|
|
7841
7861
|
*
|
7842
7862
|
* ```
|
7843
7863
|
* <script type="module">
|
7844
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7864
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
7845
7865
|
* document.createElement('monster-')
|
7846
7866
|
* </script>
|
7847
7867
|
* ```
|
@@ -8377,7 +8397,7 @@ var attributeObserverSymbol = Symbol('attributeObserver');
|
|
8377
8397
|
*
|
8378
8398
|
* ```
|
8379
8399
|
* <script type="module">
|
8380
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8400
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
8381
8401
|
* document.createElement('monster-')
|
8382
8402
|
* </script>
|
8383
8403
|
* ```
|
@@ -8490,7 +8510,7 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8490
8510
|
|
8491
8511
|
_this = _super.call(this);
|
8492
8512
|
_this[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol] = new _types_proxyobserver_js__WEBPACK_IMPORTED_MODULE_8__.ProxyObserver({
|
8493
|
-
'options': (0,_data_extend_js__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _this.defaults
|
8513
|
+
'options': (0,_data_extend_js__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _this.defaults)
|
8494
8514
|
});
|
8495
8515
|
_this[attributeObserverSymbol] = {};
|
8496
8516
|
initOptionObserver.call(_assertThisInitialized(_this));
|
@@ -8536,6 +8556,19 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8536
8556
|
* })),'application/json',true).toString()
|
8537
8557
|
* ```
|
8538
8558
|
*
|
8559
|
+
* The attribute data-monster-options-selector can be used to access a script tag that contains additional configuration.
|
8560
|
+
*
|
8561
|
+
* As value a selector must be specified, which belongs to a script tag and contains the configuration as json.
|
8562
|
+
*
|
8563
|
+
* ```
|
8564
|
+
* <script id="id-for-this-config" type="application/json">
|
8565
|
+
* {
|
8566
|
+
* "config-key": "config-value"
|
8567
|
+
* }
|
8568
|
+
* </script>
|
8569
|
+
* ```
|
8570
|
+
*
|
8571
|
+
*
|
8539
8572
|
* @property {boolean} disabled=false Object The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form.
|
8540
8573
|
* @property {string} shadowMode=open `open` Elements of the shadow root are accessible from JavaScript outside the root, for example using. `close` Denies access to the node(s) of a closed shadow root from JavaScript outside it
|
8541
8574
|
* @property {Boolean} delegatesFocus=true A boolean that, when set to true, specifies behavior that mitigates custom element issues around focusability. When a non-focusable part of the shadow DOM is clicked, the first focusable part is given focus, and the shadow host is given any available :focus styling.
|
@@ -8647,7 +8680,7 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8647
8680
|
key: "setOptions",
|
8648
8681
|
value: function setOptions(options) {
|
8649
8682
|
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(options)) {
|
8650
|
-
options = parseOptionsJSON(options);
|
8683
|
+
options = parseOptionsJSON.call(this, options);
|
8651
8684
|
}
|
8652
8685
|
|
8653
8686
|
var self = this;
|
@@ -8678,6 +8711,17 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8678
8711
|
value: function value() {
|
8679
8712
|
var self = this;
|
8680
8713
|
var elements, nodeList;
|
8714
|
+
var AttributeOptions = getOptionsFromAttributes.call(self);
|
8715
|
+
|
8716
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(AttributeOptions) && Object.keys(AttributeOptions).length > 0) {
|
8717
|
+
self.setOptions(AttributeOptions);
|
8718
|
+
}
|
8719
|
+
|
8720
|
+
var ScriptOptions = getOptionsFromScriptTag.call(self);
|
8721
|
+
|
8722
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(ScriptOptions) && Object.keys(ScriptOptions).length > 0) {
|
8723
|
+
self.setOptions(ScriptOptions);
|
8724
|
+
}
|
8681
8725
|
|
8682
8726
|
if (self.getOption('shadowMode', false) !== false) {
|
8683
8727
|
try {
|
@@ -8687,7 +8731,9 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8687
8731
|
|
8688
8732
|
try {
|
8689
8733
|
initCSSStylesheet.call(this);
|
8690
|
-
} catch (e) {
|
8734
|
+
} catch (e) {
|
8735
|
+
(0,_attributes_js__WEBPACK_IMPORTED_MODULE_11__.addAttributeToken)(self, _constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_ERRORMESSAGE, e.toString());
|
8736
|
+
}
|
8691
8737
|
}
|
8692
8738
|
|
8693
8739
|
if (!(elements instanceof NodeList)) {
|
@@ -8997,7 +9043,7 @@ function initOptionObserver() {
|
|
8997
9043
|
}
|
8998
9044
|
})); // disabled
|
8999
9045
|
|
9000
|
-
self[attributeObserverSymbol][_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_DISABLED] = function (
|
9046
|
+
self[attributeObserverSymbol][_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_DISABLED] = function () {
|
9001
9047
|
if (self.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_DISABLED)) {
|
9002
9048
|
self.setOption(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_DISABLED, true);
|
9003
9049
|
} else {
|
@@ -9009,7 +9055,16 @@ function initOptionObserver() {
|
|
9009
9055
|
self[attributeObserverSymbol][_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS] = function () {
|
9010
9056
|
var options = getOptionsFromAttributes.call(self);
|
9011
9057
|
|
9012
|
-
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(options)) {
|
9058
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(options) && Object.keys(options).length > 0) {
|
9059
|
+
self.setOptions(options);
|
9060
|
+
}
|
9061
|
+
}; // data-monster-options-selector
|
9062
|
+
|
9063
|
+
|
9064
|
+
self[attributeObserverSymbol][_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR] = function () {
|
9065
|
+
var options = getOptionsFromScriptTag.call(self);
|
9066
|
+
|
9067
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(options) && Object.keys(options).length > 0) {
|
9013
9068
|
self.setOptions(options);
|
9014
9069
|
}
|
9015
9070
|
};
|
@@ -9017,16 +9072,48 @@ function initOptionObserver() {
|
|
9017
9072
|
/**
|
9018
9073
|
* @private
|
9019
9074
|
* @return {object}
|
9020
|
-
* @throws {
|
9075
|
+
* @throws {TypeError} value is not a object
|
9076
|
+
*/
|
9077
|
+
|
9078
|
+
|
9079
|
+
function getOptionsFromScriptTag() {
|
9080
|
+
var self = this;
|
9081
|
+
|
9082
|
+
if (!self.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR)) {
|
9083
|
+
return {};
|
9084
|
+
}
|
9085
|
+
|
9086
|
+
var node = document.querySelector(self.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR));
|
9087
|
+
|
9088
|
+
if (!(node instanceof HTMLScriptElement)) {
|
9089
|
+
(0,_attributes_js__WEBPACK_IMPORTED_MODULE_11__.addAttributeToken)(self, _constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_ERRORMESSAGE, 'the selector ' + _constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR + ' for options was specified (' + self.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR) + ') but not found.');
|
9090
|
+
return {};
|
9091
|
+
}
|
9092
|
+
|
9093
|
+
var obj = {};
|
9094
|
+
|
9095
|
+
try {
|
9096
|
+
obj = parseOptionsJSON.call(this, node.textContent.trim());
|
9097
|
+
} catch (e) {
|
9098
|
+
(0,_attributes_js__WEBPACK_IMPORTED_MODULE_11__.addAttributeToken)(self, _constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_ERRORMESSAGE, 'when analyzing the configuration from the script tag there was an error. ' + e);
|
9099
|
+
}
|
9100
|
+
|
9101
|
+
return obj;
|
9102
|
+
}
|
9103
|
+
/**
|
9104
|
+
* @private
|
9105
|
+
* @return {object}
|
9021
9106
|
*/
|
9022
9107
|
|
9023
9108
|
|
9024
9109
|
function getOptionsFromAttributes() {
|
9110
|
+
var self = this;
|
9111
|
+
|
9025
9112
|
if (this.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS)) {
|
9026
9113
|
try {
|
9027
|
-
return parseOptionsJSON(this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS));
|
9114
|
+
return parseOptionsJSON.call(self, this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS));
|
9028
9115
|
} catch (e) {
|
9029
|
-
|
9116
|
+
(0,_attributes_js__WEBPACK_IMPORTED_MODULE_11__.addAttributeToken)(self, _constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_ERRORMESSAGE, 'the options attribute ' + _constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS + ' does not contain a valid json definition (actual: ' + this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS) + ').' + e);
|
9030
9117
|
}
|
9031
9118
|
}
|
9032
9119
|
|
@@ -9040,23 +9127,28 @@ function getOptionsFromAttributes() {
|
|
9040
9127
|
|
9041
9128
|
|
9042
9129
|
function parseOptionsJSON(data) {
|
9043
|
-
|
9044
|
-
|
9045
|
-
try {
|
9046
|
-
var dataUrl = (0,_types_dataurl_js__WEBPACK_IMPORTED_MODULE_4__.parseDataURL)(data);
|
9047
|
-
data = dataUrl.content;
|
9048
|
-
} catch (e) {}
|
9130
|
+
var self = this,
|
9131
|
+
obj = {};
|
9049
9132
|
|
9050
|
-
|
9051
|
-
|
9052
|
-
|
9053
|
-
|
9054
|
-
|
9055
|
-
|
9056
|
-
|
9133
|
+
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(data)) {
|
9134
|
+
return obj;
|
9135
|
+
} // the configuration can be specified as a data url.
|
9136
|
+
|
9137
|
+
|
9138
|
+
try {
|
9139
|
+
var dataUrl = (0,_types_dataurl_js__WEBPACK_IMPORTED_MODULE_4__.parseDataURL)(data);
|
9140
|
+
data = dataUrl.content;
|
9141
|
+
} catch (e) {}
|
9142
|
+
|
9143
|
+
try {
|
9144
|
+
var _obj = JSON.parse(data);
|
9145
|
+
|
9146
|
+
return (0,_types_validate_js__WEBPACK_IMPORTED_MODULE_9__.validateObject)(_obj);
|
9147
|
+
} catch (e) {
|
9148
|
+
throw e;
|
9057
9149
|
}
|
9058
9150
|
|
9059
|
-
return
|
9151
|
+
return obj;
|
9060
9152
|
}
|
9061
9153
|
/**
|
9062
9154
|
* @private
|
@@ -9084,6 +9176,7 @@ function initHtmlContent() {
|
|
9084
9176
|
* @memberOf Monster.DOM
|
9085
9177
|
* @this CustomElement
|
9086
9178
|
* @since 1.16.0
|
9179
|
+
* @throws {TypeError} value is not an instance of
|
9087
9180
|
*/
|
9088
9181
|
|
9089
9182
|
|
@@ -9097,13 +9190,55 @@ function initCSSStylesheet() {
|
|
9097
9190
|
var styleSheet = this.constructor.getCSSStyleSheet();
|
9098
9191
|
|
9099
9192
|
if (styleSheet instanceof CSSStyleSheet) {
|
9100
|
-
|
9193
|
+
if (styleSheet.cssRules.length > 0) {
|
9194
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
9195
|
+
}
|
9101
9196
|
} else if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isArray)(styleSheet)) {
|
9102
|
-
|
9197
|
+
var assign = [];
|
9198
|
+
|
9199
|
+
var _iterator3 = _createForOfIteratorHelper(styleSheet),
|
9200
|
+
_step3;
|
9201
|
+
|
9202
|
+
try {
|
9203
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
9204
|
+
var s = _step3.value;
|
9205
|
+
|
9206
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(s)) {
|
9207
|
+
var trimedStyleSheet = s.trim();
|
9208
|
+
|
9209
|
+
if (trimedStyleSheet !== '') {
|
9210
|
+
var style = document.createElement('style');
|
9211
|
+
style.innerHTML = trimedStyleSheet;
|
9212
|
+
self.shadowRoot.prepend(style);
|
9213
|
+
}
|
9214
|
+
|
9215
|
+
continue;
|
9216
|
+
}
|
9217
|
+
|
9218
|
+
(0,_types_validate_js__WEBPACK_IMPORTED_MODULE_9__.validateInstance)(s, CSSStyleSheet);
|
9219
|
+
|
9220
|
+
if (s.cssRules.length > 0) {
|
9221
|
+
assign.push(s);
|
9222
|
+
}
|
9223
|
+
}
|
9224
|
+
} catch (err) {
|
9225
|
+
_iterator3.e(err);
|
9226
|
+
} finally {
|
9227
|
+
_iterator3.f();
|
9228
|
+
}
|
9229
|
+
|
9230
|
+
if (assign.length > 0) {
|
9231
|
+
this.shadowRoot.adoptedStyleSheets = assign;
|
9232
|
+
}
|
9103
9233
|
} else if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(styleSheet)) {
|
9104
|
-
var
|
9105
|
-
|
9106
|
-
|
9234
|
+
var _trimedStyleSheet = styleSheet.trim();
|
9235
|
+
|
9236
|
+
if (_trimedStyleSheet !== '') {
|
9237
|
+
var _style = document.createElement('style');
|
9238
|
+
|
9239
|
+
_style.innerHTML = styleSheet;
|
9240
|
+
self.shadowRoot.prepend(_style);
|
9241
|
+
}
|
9107
9242
|
}
|
9108
9243
|
|
9109
9244
|
return self;
|
@@ -9257,7 +9392,7 @@ var internal = Symbol('internal');
|
|
9257
9392
|
*
|
9258
9393
|
* ```
|
9259
9394
|
* <script type="module">
|
9260
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9395
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
9261
9396
|
* new Monster.Types.DataUrl()
|
9262
9397
|
* </script>
|
9263
9398
|
* ```
|
@@ -9266,7 +9401,7 @@ var internal = Symbol('internal');
|
|
9266
9401
|
*
|
9267
9402
|
* ```
|
9268
9403
|
* <script type="module">
|
9269
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9404
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/dataurl.js';
|
9270
9405
|
* new DataUrl()
|
9271
9406
|
* </script>
|
9272
9407
|
* ```
|
@@ -9346,7 +9481,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9346
9481
|
*
|
9347
9482
|
* ```
|
9348
9483
|
* <script type="module">
|
9349
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9484
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
9350
9485
|
* console.log(Monster.Types.parseDataURL())
|
9351
9486
|
* </script>
|
9352
9487
|
* ```
|
@@ -9355,7 +9490,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9355
9490
|
*
|
9356
9491
|
* ```
|
9357
9492
|
* <script type="module">
|
9358
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9493
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/dataurl.js';
|
9359
9494
|
* console.log(parseDataURL())
|
9360
9495
|
* </script>
|
9361
9496
|
* ```
|
@@ -9493,7 +9628,7 @@ var internal = Symbol('internal');
|
|
9493
9628
|
*
|
9494
9629
|
* ```
|
9495
9630
|
* <script type="module">
|
9496
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9631
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
9497
9632
|
* console.log(new Monster.Types.MediaType())
|
9498
9633
|
* </script>
|
9499
9634
|
* ```
|
@@ -9502,7 +9637,7 @@ var internal = Symbol('internal');
|
|
9502
9637
|
*
|
9503
9638
|
* ```
|
9504
9639
|
* <script type="module">
|
9505
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9640
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/mediatype.js';
|
9506
9641
|
* console.log(new MediaType())
|
9507
9642
|
* </script>
|
9508
9643
|
* ```
|
@@ -9620,7 +9755,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9620
9755
|
*
|
9621
9756
|
* ```
|
9622
9757
|
* <script type="module">
|
9623
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9758
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
9624
9759
|
* console.log(Monster.Types.parseMediaType())
|
9625
9760
|
* </script>
|
9626
9761
|
* ```
|
@@ -9629,7 +9764,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9629
9764
|
*
|
9630
9765
|
* ```
|
9631
9766
|
* <script type="module">
|
9632
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9767
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/dataurl.js';
|
9633
9768
|
* console.log(parseMediaType())
|
9634
9769
|
* </script>
|
9635
9770
|
* ```
|
@@ -9654,7 +9789,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9654
9789
|
|
9655
9790
|
|
9656
9791
|
function parseMediaType(mediatype) {
|
9657
|
-
var regex = /*#__PURE__*/_wrapRegExp(/([A-Za-z]+|\*)\/(([
|
9792
|
+
var regex = /*#__PURE__*/_wrapRegExp(/([A-Za-z]+|\*)\/(([a-zA-Z0-9.\+_\-]+)|\*|)(\s*;\s*([a-zA-Z0-9]+)\s*(=\s*("?[A-Za-z0-9_\-]+"?))?)*/g, {
|
9658
9793
|
type: 1,
|
9659
9794
|
subtype: 2,
|
9660
9795
|
parameter: 4
|
@@ -9768,7 +9903,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9768
9903
|
*
|
9769
9904
|
* ```
|
9770
9905
|
* <script type="module">
|
9771
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9906
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
9772
9907
|
* new Monster.DOM.Template()
|
9773
9908
|
* </script>
|
9774
9909
|
* ```
|
@@ -9777,7 +9912,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9777
9912
|
*
|
9778
9913
|
* ```
|
9779
9914
|
* <script type="module">
|
9780
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9915
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/template.js';
|
9781
9916
|
* new Template()
|
9782
9917
|
* </script>
|
9783
9918
|
* ```
|
@@ -9855,7 +9990,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9855
9990
|
*
|
9856
9991
|
* ```
|
9857
9992
|
* <script type="module">
|
9858
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9993
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
9859
9994
|
* Monster.DOM.findDocumentTemplate()
|
9860
9995
|
* </script>
|
9861
9996
|
* ```
|
@@ -9864,14 +9999,14 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9864
9999
|
*
|
9865
10000
|
* ```
|
9866
10001
|
* <script type="module">
|
9867
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10002
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/template.js';
|
9868
10003
|
* findDocumentTemplate()
|
9869
10004
|
* </script>
|
9870
10005
|
* ```
|
9871
10006
|
*
|
9872
10007
|
* @example
|
9873
10008
|
*
|
9874
|
-
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10009
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/template.js";
|
9875
10010
|
*
|
9876
10011
|
* const template = document.createElement("template");
|
9877
10012
|
* template.id = "myTemplate";
|
@@ -10043,7 +10178,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10043
10178
|
*
|
10044
10179
|
* ```
|
10045
10180
|
* <script type="module">
|
10046
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10181
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
10047
10182
|
* console.log(new Monster.DOM.Theme())
|
10048
10183
|
* </script>
|
10049
10184
|
* ```
|
@@ -10052,14 +10187,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10052
10187
|
*
|
10053
10188
|
* ```
|
10054
10189
|
* <script type="module">
|
10055
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10190
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/theme.js';
|
10056
10191
|
* console.log(new Theme())
|
10057
10192
|
* </script>
|
10058
10193
|
* ```
|
10059
10194
|
*
|
10060
10195
|
* @example
|
10061
10196
|
*
|
10062
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10197
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/theme.js';
|
10063
10198
|
*
|
10064
10199
|
* const theme = getDocumentTheme();
|
10065
10200
|
* console.log(theme.getName());
|
@@ -10246,7 +10381,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10246
10381
|
*
|
10247
10382
|
* ```
|
10248
10383
|
* <script type="module">
|
10249
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10384
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
10250
10385
|
* new Monster.DOM.Updater()
|
10251
10386
|
* </script>
|
10252
10387
|
* ```
|
@@ -10255,14 +10390,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10255
10390
|
*
|
10256
10391
|
* ```
|
10257
10392
|
* <script type="module">
|
10258
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10393
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/updater.js';
|
10259
10394
|
* new Updater()
|
10260
10395
|
* </script>
|
10261
10396
|
* ```
|
10262
10397
|
*
|
10263
10398
|
* @example
|
10264
10399
|
*
|
10265
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10400
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/updater.js';
|
10266
10401
|
*
|
10267
10402
|
* // First we prepare the html document.
|
10268
10403
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -11258,7 +11393,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11258
11393
|
*
|
11259
11394
|
* ```
|
11260
11395
|
* <script type="module">
|
11261
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11396
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11262
11397
|
* Monster.Util.trimSpaces(" hello ")
|
11263
11398
|
* </script>
|
11264
11399
|
* ```
|
@@ -11267,7 +11402,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11267
11402
|
*
|
11268
11403
|
* ```
|
11269
11404
|
* <script type="module">
|
11270
|
-
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11405
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/util/trimspaces.js';
|
11271
11406
|
* trimSpaces(' hello \\ ')
|
11272
11407
|
* </script>
|
11273
11408
|
* ```
|
@@ -11372,7 +11507,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11372
11507
|
*
|
11373
11508
|
* ```
|
11374
11509
|
* <script type="module">
|
11375
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11510
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11376
11511
|
* new Monster.DOM.fireEvent()
|
11377
11512
|
* </script>
|
11378
11513
|
* ```
|
@@ -11381,7 +11516,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11381
11516
|
*
|
11382
11517
|
* ```
|
11383
11518
|
* <script type="module">
|
11384
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11519
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/events.js';
|
11385
11520
|
* fireEvent()
|
11386
11521
|
* </script>
|
11387
11522
|
* ```
|
@@ -11433,7 +11568,7 @@ function fireEvent(element, type) {
|
|
11433
11568
|
*
|
11434
11569
|
* ```
|
11435
11570
|
* <script type="module">
|
11436
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11571
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11437
11572
|
* new Monster.DOM.fireCustomEvent()
|
11438
11573
|
* </script>
|
11439
11574
|
* ```
|
@@ -11442,7 +11577,7 @@ function fireEvent(element, type) {
|
|
11442
11577
|
*
|
11443
11578
|
* ```
|
11444
11579
|
* <script type="module">
|
11445
|
-
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11580
|
+
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/events.js';
|
11446
11581
|
* fireCustomEvent()
|
11447
11582
|
* </script>
|
11448
11583
|
* ```
|
@@ -11501,7 +11636,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11501
11636
|
*
|
11502
11637
|
* ```
|
11503
11638
|
* <script type="module">
|
11504
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11639
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11505
11640
|
* new Monster.DOM.findTargetElementFromEvent()
|
11506
11641
|
* </script>
|
11507
11642
|
* ```
|
@@ -11510,7 +11645,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11510
11645
|
*
|
11511
11646
|
* ```
|
11512
11647
|
* <script type="module">
|
11513
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11648
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/events.js';
|
11514
11649
|
* findTargetElementFromEvent()
|
11515
11650
|
* </script>
|
11516
11651
|
* ```
|
@@ -11581,7 +11716,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11581
11716
|
*
|
11582
11717
|
* ```
|
11583
11718
|
* <script type="module">
|
11584
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11719
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11585
11720
|
* console.log(Monster.DOM.getDocument())
|
11586
11721
|
* </script>
|
11587
11722
|
* ```
|
@@ -11590,7 +11725,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11590
11725
|
*
|
11591
11726
|
* ```
|
11592
11727
|
* <script type="module">
|
11593
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11728
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/util.js';
|
11594
11729
|
* console.log(getDocument())
|
11595
11730
|
* </script>
|
11596
11731
|
* ```
|
@@ -11645,7 +11780,7 @@ function getDocument() {
|
|
11645
11780
|
*
|
11646
11781
|
* ```
|
11647
11782
|
* <script type="module">
|
11648
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11783
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11649
11784
|
* console.log(Monster.DOM.getWindow())
|
11650
11785
|
* </script>
|
11651
11786
|
* ```
|
@@ -11654,7 +11789,7 @@ function getDocument() {
|
|
11654
11789
|
*
|
11655
11790
|
* ```
|
11656
11791
|
* <script type="module">
|
11657
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11792
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/util.js';
|
11658
11793
|
* console.log(getWindow(null))
|
11659
11794
|
* </script>
|
11660
11795
|
* ```
|
@@ -11714,7 +11849,7 @@ function getWindow() {
|
|
11714
11849
|
*
|
11715
11850
|
* ```
|
11716
11851
|
* <script type="module">
|
11717
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11852
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11718
11853
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
11719
11854
|
* </script>
|
11720
11855
|
* ```
|
@@ -11723,7 +11858,7 @@ function getWindow() {
|
|
11723
11858
|
*
|
11724
11859
|
* ```
|
11725
11860
|
* <script type="module">
|
11726
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11861
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/util.js';
|
11727
11862
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
11728
11863
|
* </script>
|
11729
11864
|
* ```
|
@@ -11813,7 +11948,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11813
11948
|
*
|
11814
11949
|
* ```
|
11815
11950
|
* <script type="module">
|
11816
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11951
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11817
11952
|
* new Monster.DOM.getLocaleOfDocument()
|
11818
11953
|
* </script>
|
11819
11954
|
* ```
|
@@ -11822,7 +11957,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11822
11957
|
*
|
11823
11958
|
* ```
|
11824
11959
|
* <script type="module">
|
11825
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11960
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/dom/locale.js';
|
11826
11961
|
* new getLocaleOfDocument()
|
11827
11962
|
* </script>
|
11828
11963
|
* ```
|
@@ -11915,7 +12050,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11915
12050
|
*
|
11916
12051
|
* ```
|
11917
12052
|
* <script type="module">
|
11918
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12053
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
11919
12054
|
* new Monster.I18n.Locale()
|
11920
12055
|
* </script>
|
11921
12056
|
* ```
|
@@ -11924,7 +12059,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11924
12059
|
*
|
11925
12060
|
* ```
|
11926
12061
|
* <script type="module">
|
11927
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12062
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/locale.js';
|
11928
12063
|
* new Locale()
|
11929
12064
|
* </script>
|
11930
12065
|
* ```
|
@@ -12117,7 +12252,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12117
12252
|
*
|
12118
12253
|
* ```
|
12119
12254
|
* <script type="module">
|
12120
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12255
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
12121
12256
|
* new Monster.I18n.createLocale()
|
12122
12257
|
* </script>
|
12123
12258
|
* ```
|
@@ -12126,7 +12261,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12126
12261
|
*
|
12127
12262
|
* ```
|
12128
12263
|
* <script type="module">
|
12129
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12264
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/locale.js';
|
12130
12265
|
* createLocale()
|
12131
12266
|
* </script>
|
12132
12267
|
* ```
|
@@ -12302,7 +12437,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12302
12437
|
*
|
12303
12438
|
* ```
|
12304
12439
|
* <script type="module">
|
12305
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12440
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
12306
12441
|
* new Monster.I18n.Provider()
|
12307
12442
|
* </script>
|
12308
12443
|
* ```
|
@@ -12311,7 +12446,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12311
12446
|
*
|
12312
12447
|
* ```
|
12313
12448
|
* <script type="module">
|
12314
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12449
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/provider.js';
|
12315
12450
|
* new Provider()
|
12316
12451
|
* </script>
|
12317
12452
|
* ```
|
@@ -12414,7 +12549,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12414
12549
|
*
|
12415
12550
|
* ```html
|
12416
12551
|
* <script type="module">
|
12417
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12552
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
12418
12553
|
* new Monster.Types.BaseWithOptions()
|
12419
12554
|
* </script>
|
12420
12555
|
* ```
|
@@ -12423,7 +12558,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12423
12558
|
*
|
12424
12559
|
* ```html
|
12425
12560
|
* <script type="module">
|
12426
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12561
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/basewithoptions.js';
|
12427
12562
|
* new BaseWithOptions()
|
12428
12563
|
* </script>
|
12429
12564
|
* ```
|
@@ -12588,7 +12723,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12588
12723
|
*
|
12589
12724
|
* ```
|
12590
12725
|
* <script type="module">
|
12591
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12726
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
12592
12727
|
* new Monster.I18n.Translations()
|
12593
12728
|
* </script>
|
12594
12729
|
* ```
|
@@ -12597,15 +12732,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12597
12732
|
*
|
12598
12733
|
* ```
|
12599
12734
|
* <script type="module">
|
12600
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12735
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/translations.js';
|
12601
12736
|
* new Translations()
|
12602
12737
|
* </script>
|
12603
12738
|
* ```
|
12604
12739
|
*
|
12605
12740
|
* @example
|
12606
12741
|
*
|
12607
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12608
|
-
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12742
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/translations.js';
|
12743
|
+
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/locale.js';
|
12609
12744
|
*
|
12610
12745
|
* const translation = new Translations(parseLocale('en-GB'));
|
12611
12746
|
*
|
@@ -12877,7 +13012,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12877
13012
|
*
|
12878
13013
|
* ```
|
12879
13014
|
* <script type="module">
|
12880
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13015
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
12881
13016
|
* new Monster.I18n.Providers.Fetch()
|
12882
13017
|
* </script>
|
12883
13018
|
* ```
|
@@ -12886,14 +13021,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12886
13021
|
*
|
12887
13022
|
* ```
|
12888
13023
|
* <script type="module">
|
12889
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13024
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/providers/fetch.js';
|
12890
13025
|
* new Fetch()
|
12891
13026
|
* </script>
|
12892
13027
|
* ```
|
12893
13028
|
*
|
12894
13029
|
* @example <caption>das ist ein test</caption>
|
12895
13030
|
*
|
12896
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13031
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/i18n/providers/fetch.js';
|
12897
13032
|
*
|
12898
13033
|
* // fetch from API
|
12899
13034
|
* const translation = new Fetch('https://example.com/${language}.json').getTranslation('en-GB');
|
@@ -13123,7 +13258,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13123
13258
|
*
|
13124
13259
|
* ```
|
13125
13260
|
* <script type="module">
|
13126
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13261
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
13127
13262
|
* new Monster.Text.Formatter()
|
13128
13263
|
* </script>
|
13129
13264
|
* ```
|
@@ -13132,7 +13267,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13132
13267
|
*
|
13133
13268
|
* ```
|
13134
13269
|
* <script type="module">
|
13135
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13270
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/text/formatter.js';
|
13136
13271
|
* new Formatter()
|
13137
13272
|
* </script>
|
13138
13273
|
* ```
|
@@ -13177,7 +13312,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13177
13312
|
*
|
13178
13313
|
* @example
|
13179
13314
|
*
|
13180
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13315
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/text/formatter.js';
|
13181
13316
|
*
|
13182
13317
|
* new Formatter({
|
13183
13318
|
* a: {
|
@@ -13522,7 +13657,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13522
13657
|
*
|
13523
13658
|
* ```
|
13524
13659
|
* <script type="module">
|
13525
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13660
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
13526
13661
|
* console.log(new Monster.Logging.Handler())
|
13527
13662
|
* </script>
|
13528
13663
|
* ```
|
@@ -13531,7 +13666,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13531
13666
|
*
|
13532
13667
|
* ```
|
13533
13668
|
* <script type="module">
|
13534
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13669
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/logging/handler.js';
|
13535
13670
|
* console.log(new Handler())
|
13536
13671
|
* </script>
|
13537
13672
|
* ```
|
@@ -13769,7 +13904,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13769
13904
|
*
|
13770
13905
|
* ```
|
13771
13906
|
* <script type="module">
|
13772
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13907
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
13773
13908
|
* console.log(new Monster.Logging.LogEntry())
|
13774
13909
|
* </script>
|
13775
13910
|
* ```
|
@@ -13778,7 +13913,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13778
13913
|
*
|
13779
13914
|
* ```
|
13780
13915
|
* <script type="module">
|
13781
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13916
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/logging/logentry.js';
|
13782
13917
|
* console.log(new LogEntry())
|
13783
13918
|
* </script>
|
13784
13919
|
* ```
|
@@ -13964,7 +14099,7 @@ var OFF = 0;
|
|
13964
14099
|
*
|
13965
14100
|
* ```
|
13966
14101
|
* <script type="module">
|
13967
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14102
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
13968
14103
|
* new Monster.Logging.Logger()
|
13969
14104
|
* </script>
|
13970
14105
|
* ```
|
@@ -13973,7 +14108,7 @@ var OFF = 0;
|
|
13973
14108
|
*
|
13974
14109
|
* ```
|
13975
14110
|
* <script type="module">
|
13976
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14111
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/logging/logger.js';
|
13977
14112
|
* new Logger()
|
13978
14113
|
* </script>
|
13979
14114
|
* ```
|
@@ -14273,7 +14408,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14273
14408
|
*
|
14274
14409
|
* ```
|
14275
14410
|
* <script type="module">
|
14276
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14411
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
14277
14412
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
14278
14413
|
* </script>
|
14279
14414
|
* ```
|
@@ -14282,7 +14417,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14282
14417
|
*
|
14283
14418
|
* ```
|
14284
14419
|
* <script type="module">
|
14285
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14420
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/logging/handler/console.js';
|
14286
14421
|
* console.log(new ConsoleHandler())
|
14287
14422
|
* </script>
|
14288
14423
|
* ```
|
@@ -14358,7 +14493,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14358
14493
|
*
|
14359
14494
|
* ```
|
14360
14495
|
* <script type="module">
|
14361
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14496
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
14362
14497
|
* Monster.Math.random(1,10)
|
14363
14498
|
* // ↦ 5
|
14364
14499
|
* </script>
|
@@ -14368,7 +14503,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14368
14503
|
*
|
14369
14504
|
* ```
|
14370
14505
|
* <script type="module">
|
14371
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14506
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/math/random.js';
|
14372
14507
|
* random(1,10)
|
14373
14508
|
* // ↦ 5
|
14374
14509
|
* </script>
|
@@ -14490,6 +14625,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
14490
14625
|
|
14491
14626
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
14492
14627
|
|
14628
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
14629
|
+
|
14630
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
14631
|
+
|
14493
14632
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14494
14633
|
|
14495
14634
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
@@ -14525,7 +14664,7 @@ var internalCounter = 0;
|
|
14525
14664
|
*
|
14526
14665
|
* ```
|
14527
14666
|
* <script type="module">
|
14528
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14667
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
14529
14668
|
* console.log(new Monster.Types.RandomID())
|
14530
14669
|
* </script>
|
14531
14670
|
* ```
|
@@ -14534,7 +14673,7 @@ var internalCounter = 0;
|
|
14534
14673
|
*
|
14535
14674
|
* ```
|
14536
14675
|
* <script type="module">
|
14537
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14676
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/randomid.js';
|
14538
14677
|
* console.log(new RandomID())
|
14539
14678
|
* </script>
|
14540
14679
|
* ```
|
@@ -14566,7 +14705,7 @@ var RandomID = /*#__PURE__*/function (_ID) {
|
|
14566
14705
|
return _this;
|
14567
14706
|
}
|
14568
14707
|
|
14569
|
-
return RandomID;
|
14708
|
+
return _createClass(RandomID);
|
14570
14709
|
}(_id_js__WEBPACK_IMPORTED_MODULE_3__.ID);
|
14571
14710
|
|
14572
14711
|
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_1__.assignToNamespace)('Monster.Types', RandomID);
|
@@ -14617,7 +14756,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14617
14756
|
*
|
14618
14757
|
* ```
|
14619
14758
|
* <script type="module">
|
14620
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14759
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
14621
14760
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
14622
14761
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
14623
14762
|
* </script>
|
@@ -14627,7 +14766,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14627
14766
|
*
|
14628
14767
|
* ```
|
14629
14768
|
* <script type="module">
|
14630
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14769
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/version.js';
|
14631
14770
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
14632
14771
|
* console.log(new Version('1')) // ↦ 1.0.0
|
14633
14772
|
* </script>
|
@@ -14635,7 +14774,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14635
14774
|
*
|
14636
14775
|
* @example
|
14637
14776
|
*
|
14638
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14777
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/version.js';
|
14639
14778
|
*
|
14640
14779
|
* new Version('1.0.0') // ↦ 1.0.0
|
14641
14780
|
* new Version(1) // ↦ 1.0.0
|
@@ -14769,7 +14908,7 @@ var monsterVersion;
|
|
14769
14908
|
*
|
14770
14909
|
* ```
|
14771
14910
|
* <script type="module">
|
14772
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14911
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
14773
14912
|
* console.log(Monster.getVersion())
|
14774
14913
|
* </script>
|
14775
14914
|
* ```
|
@@ -14778,7 +14917,7 @@ var monsterVersion;
|
|
14778
14917
|
*
|
14779
14918
|
* ```
|
14780
14919
|
* <script type="module">
|
14781
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14920
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/types/version.js';
|
14782
14921
|
* console.log(getVersion())
|
14783
14922
|
* </script>
|
14784
14923
|
* ```
|
@@ -14797,7 +14936,7 @@ function getVersion() {
|
|
14797
14936
|
/**#@+ dont touch, replaced by make with package.json version */
|
14798
14937
|
|
14799
14938
|
|
14800
|
-
monsterVersion = new Version('1.
|
14939
|
+
monsterVersion = new Version('1.30.1');
|
14801
14940
|
/**#@-*/
|
14802
14941
|
|
14803
14942
|
return monsterVersion;
|
@@ -14853,7 +14992,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14853
14992
|
*
|
14854
14993
|
* ```
|
14855
14994
|
* <script type="module">
|
14856
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14995
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
14857
14996
|
* new Monster.Util.Comparator()
|
14858
14997
|
* </script>
|
14859
14998
|
* ```
|
@@ -14862,7 +15001,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14862
15001
|
*
|
14863
15002
|
* ```
|
14864
15003
|
* <script type="module">
|
14865
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15004
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/util/comparator.js';
|
14866
15005
|
* console.log(new Comparator())
|
14867
15006
|
* </script>
|
14868
15007
|
* ```
|
@@ -14887,7 +15026,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14887
15026
|
*
|
14888
15027
|
* @example
|
14889
15028
|
*
|
14890
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15029
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/util/comparator.js';
|
14891
15030
|
*
|
14892
15031
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
14893
15032
|
* // ↦ true
|
@@ -15100,7 +15239,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15100
15239
|
*
|
15101
15240
|
* ```
|
15102
15241
|
* <script type="module">
|
15103
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15242
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/monster.js';
|
15104
15243
|
* Monster.Util.deepFreeze({})
|
15105
15244
|
* </script>
|
15106
15245
|
* ```
|
@@ -15109,7 +15248,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15109
15248
|
*
|
15110
15249
|
* ```
|
15111
15250
|
* <script type="module">
|
15112
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15251
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.1/dist/modules/util/freeze.js';
|
15113
15252
|
* deepFreeze({})
|
15114
15253
|
* </script>
|
15115
15254
|
* ```
|