@schukai/monster 1.29.2 → 1.31.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +24 -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/ready.js +2 -0
- 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 +378 -260
- 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 +26 -26
- package/source/dom/constants.js +11 -1
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +125 -30
- package/source/dom/events.js +6 -6
- package/source/dom/focusmanager.js +2 -2
- package/source/dom/locale.js +2 -2
- package/source/dom/ready.js +81 -0
- 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 +9 -8
- 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 +186 -5
- package/test/cases/dom/ready.js +42 -0
- 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/import.js +1 -0
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +2 -2
- package/test/web/tests.js +7 -13
package/dist/monster.dev.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** Monster 1.
|
1
|
+
/** Monster 1.31.0, © 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.31.0/dist/monster.js';
|
144
144
|
* function hello() {
|
145
145
|
* console.log('Hello World!');
|
146
146
|
* }
|
@@ -176,7 +176,7 @@ function assignToNamespace(ns) {
|
|
176
176
|
}
|
177
177
|
/**
|
178
178
|
*
|
179
|
-
* @param {class|function}
|
179
|
+
* @param {class|function|object} obj
|
180
180
|
* @returns {string}
|
181
181
|
* @private
|
182
182
|
* @throws {Error} the name of the class or function cannot be resolved.
|
@@ -185,18 +185,18 @@ function assignToNamespace(ns) {
|
|
185
185
|
*/
|
186
186
|
|
187
187
|
|
188
|
-
function objectName(
|
188
|
+
function objectName(obj) {
|
189
189
|
try {
|
190
|
-
if (typeof
|
190
|
+
if (typeof obj !== 'function') {
|
191
191
|
throw new Error("the first argument is not a function or class.");
|
192
192
|
}
|
193
193
|
|
194
|
-
if (
|
195
|
-
return
|
194
|
+
if (obj.hasOwnProperty('name')) {
|
195
|
+
return obj.name;
|
196
196
|
}
|
197
197
|
|
198
|
-
if ("function" === typeof
|
199
|
-
var s =
|
198
|
+
if ("function" === typeof obj.toString) {
|
199
|
+
var s = obj.toString();
|
200
200
|
var f = s.match(/^\s*function\s+([^\s(]+)/);
|
201
201
|
|
202
202
|
if (Array.isArray(f) && typeof f[1] === 'string') {
|
@@ -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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/dist/modules/constraints/valid.js';
|
592
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/constraints/invalid.js';
|
593
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/dist/modules/constraints/valid.js';
|
1503
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/constraints/invalid.js';
|
1504
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/dist/modules/types/proxyobserver.js';
|
5273
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/observer.js';
|
5274
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/dist/modules/dom/attributes.js';
|
6965
6975
|
* toggleAttributeToken();
|
6966
6976
|
* </script>
|
6967
6977
|
* ```
|
@@ -6996,7 +7006,7 @@ function toggleAttributeToken(element, key, token) {
|
|
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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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.31.0/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));
|
@@ -8521,7 +8541,7 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8521
8541
|
* }
|
8522
8542
|
* ```
|
8523
8543
|
*
|
8524
|
-
*
|
8544
|
+
* To set the options via the html tag the attribute data-monster-options must be set.
|
8525
8545
|
* As value a JSON object with the desired values must be defined.
|
8526
8546
|
*
|
8527
8547
|
* Since 1.18.0 the JSON can be specified as a DataURI.
|
@@ -8536,6 +8556,20 @@ 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
|
+
* The individual configuration values can be found in the table.
|
8572
|
+
*
|
8539
8573
|
* @property {boolean} disabled=false Object The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form.
|
8540
8574
|
* @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
8575
|
* @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 +8681,7 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8647
8681
|
key: "setOptions",
|
8648
8682
|
value: function setOptions(options) {
|
8649
8683
|
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(options)) {
|
8650
|
-
options = parseOptionsJSON(options);
|
8684
|
+
options = parseOptionsJSON.call(this, options);
|
8651
8685
|
}
|
8652
8686
|
|
8653
8687
|
var self = this;
|
@@ -8678,6 +8712,17 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8678
8712
|
value: function value() {
|
8679
8713
|
var self = this;
|
8680
8714
|
var elements, nodeList;
|
8715
|
+
var AttributeOptions = getOptionsFromAttributes.call(self);
|
8716
|
+
|
8717
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(AttributeOptions) && Object.keys(AttributeOptions).length > 0) {
|
8718
|
+
self.setOptions(AttributeOptions);
|
8719
|
+
}
|
8720
|
+
|
8721
|
+
var ScriptOptions = getOptionsFromScriptTag.call(self);
|
8722
|
+
|
8723
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(ScriptOptions) && Object.keys(ScriptOptions).length > 0) {
|
8724
|
+
self.setOptions(ScriptOptions);
|
8725
|
+
}
|
8681
8726
|
|
8682
8727
|
if (self.getOption('shadowMode', false) !== false) {
|
8683
8728
|
try {
|
@@ -9011,7 +9056,16 @@ function initOptionObserver() {
|
|
9011
9056
|
self[attributeObserverSymbol][_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS] = function () {
|
9012
9057
|
var options = getOptionsFromAttributes.call(self);
|
9013
9058
|
|
9014
|
-
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(options)) {
|
9059
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(options) && Object.keys(options).length > 0) {
|
9060
|
+
self.setOptions(options);
|
9061
|
+
}
|
9062
|
+
}; // data-monster-options-selector
|
9063
|
+
|
9064
|
+
|
9065
|
+
self[attributeObserverSymbol][_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR] = function () {
|
9066
|
+
var options = getOptionsFromScriptTag.call(self);
|
9067
|
+
|
9068
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isObject)(options) && Object.keys(options).length > 0) {
|
9015
9069
|
self.setOptions(options);
|
9016
9070
|
}
|
9017
9071
|
};
|
@@ -9019,16 +9073,48 @@ function initOptionObserver() {
|
|
9019
9073
|
/**
|
9020
9074
|
* @private
|
9021
9075
|
* @return {object}
|
9022
|
-
* @throws {
|
9076
|
+
* @throws {TypeError} value is not a object
|
9077
|
+
*/
|
9078
|
+
|
9079
|
+
|
9080
|
+
function getOptionsFromScriptTag() {
|
9081
|
+
var self = this;
|
9082
|
+
|
9083
|
+
if (!self.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR)) {
|
9084
|
+
return {};
|
9085
|
+
}
|
9086
|
+
|
9087
|
+
var node = document.querySelector(self.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR));
|
9088
|
+
|
9089
|
+
if (!(node instanceof HTMLScriptElement)) {
|
9090
|
+
(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.');
|
9091
|
+
return {};
|
9092
|
+
}
|
9093
|
+
|
9094
|
+
var obj = {};
|
9095
|
+
|
9096
|
+
try {
|
9097
|
+
obj = parseOptionsJSON.call(this, node.textContent.trim());
|
9098
|
+
} catch (e) {
|
9099
|
+
(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);
|
9100
|
+
}
|
9101
|
+
|
9102
|
+
return obj;
|
9103
|
+
}
|
9104
|
+
/**
|
9105
|
+
* @private
|
9106
|
+
* @return {object}
|
9023
9107
|
*/
|
9024
9108
|
|
9025
9109
|
|
9026
9110
|
function getOptionsFromAttributes() {
|
9111
|
+
var self = this;
|
9112
|
+
|
9027
9113
|
if (this.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS)) {
|
9028
9114
|
try {
|
9029
|
-
return parseOptionsJSON(this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS));
|
9115
|
+
return parseOptionsJSON.call(self, this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS));
|
9030
9116
|
} catch (e) {
|
9031
|
-
|
9117
|
+
(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);
|
9032
9118
|
}
|
9033
9119
|
}
|
9034
9120
|
|
@@ -9042,23 +9128,28 @@ function getOptionsFromAttributes() {
|
|
9042
9128
|
|
9043
9129
|
|
9044
9130
|
function parseOptionsJSON(data) {
|
9045
|
-
|
9046
|
-
|
9047
|
-
try {
|
9048
|
-
var dataUrl = (0,_types_dataurl_js__WEBPACK_IMPORTED_MODULE_4__.parseDataURL)(data);
|
9049
|
-
data = dataUrl.content;
|
9050
|
-
} catch (e) {}
|
9131
|
+
var self = this,
|
9132
|
+
obj = {};
|
9051
9133
|
|
9052
|
-
|
9053
|
-
|
9054
|
-
|
9055
|
-
|
9056
|
-
|
9057
|
-
|
9058
|
-
|
9134
|
+
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(data)) {
|
9135
|
+
return obj;
|
9136
|
+
} // the configuration can be specified as a data url.
|
9137
|
+
|
9138
|
+
|
9139
|
+
try {
|
9140
|
+
var dataUrl = (0,_types_dataurl_js__WEBPACK_IMPORTED_MODULE_4__.parseDataURL)(data);
|
9141
|
+
data = dataUrl.content;
|
9142
|
+
} catch (e) {}
|
9143
|
+
|
9144
|
+
try {
|
9145
|
+
var _obj = JSON.parse(data);
|
9146
|
+
|
9147
|
+
return (0,_types_validate_js__WEBPACK_IMPORTED_MODULE_9__.validateObject)(_obj);
|
9148
|
+
} catch (e) {
|
9149
|
+
throw e;
|
9059
9150
|
}
|
9060
9151
|
|
9061
|
-
return
|
9152
|
+
return obj;
|
9062
9153
|
}
|
9063
9154
|
/**
|
9064
9155
|
* @private
|
@@ -9100,7 +9191,9 @@ function initCSSStylesheet() {
|
|
9100
9191
|
var styleSheet = this.constructor.getCSSStyleSheet();
|
9101
9192
|
|
9102
9193
|
if (styleSheet instanceof CSSStyleSheet) {
|
9103
|
-
|
9194
|
+
if (styleSheet.cssRules.length > 0) {
|
9195
|
+
this.shadowRoot.adoptedStyleSheets = [styleSheet];
|
9196
|
+
}
|
9104
9197
|
} else if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isArray)(styleSheet)) {
|
9105
9198
|
var assign = [];
|
9106
9199
|
|
@@ -9110,8 +9203,24 @@ function initCSSStylesheet() {
|
|
9110
9203
|
try {
|
9111
9204
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
9112
9205
|
var s = _step3.value;
|
9206
|
+
|
9207
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(s)) {
|
9208
|
+
var trimedStyleSheet = s.trim();
|
9209
|
+
|
9210
|
+
if (trimedStyleSheet !== '') {
|
9211
|
+
var style = document.createElement('style');
|
9212
|
+
style.innerHTML = trimedStyleSheet;
|
9213
|
+
self.shadowRoot.prepend(style);
|
9214
|
+
}
|
9215
|
+
|
9216
|
+
continue;
|
9217
|
+
}
|
9218
|
+
|
9113
9219
|
(0,_types_validate_js__WEBPACK_IMPORTED_MODULE_9__.validateInstance)(s, CSSStyleSheet);
|
9114
|
-
|
9220
|
+
|
9221
|
+
if (s.cssRules.length > 0) {
|
9222
|
+
assign.push(s);
|
9223
|
+
}
|
9115
9224
|
}
|
9116
9225
|
} catch (err) {
|
9117
9226
|
_iterator3.e(err);
|
@@ -9123,9 +9232,14 @@ function initCSSStylesheet() {
|
|
9123
9232
|
this.shadowRoot.adoptedStyleSheets = assign;
|
9124
9233
|
}
|
9125
9234
|
} else if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(styleSheet)) {
|
9126
|
-
var
|
9127
|
-
|
9128
|
-
|
9235
|
+
var _trimedStyleSheet = styleSheet.trim();
|
9236
|
+
|
9237
|
+
if (_trimedStyleSheet !== '') {
|
9238
|
+
var _style = document.createElement('style');
|
9239
|
+
|
9240
|
+
_style.innerHTML = styleSheet;
|
9241
|
+
self.shadowRoot.prepend(_style);
|
9242
|
+
}
|
9129
9243
|
}
|
9130
9244
|
|
9131
9245
|
return self;
|
@@ -9279,7 +9393,7 @@ var internal = Symbol('internal');
|
|
9279
9393
|
*
|
9280
9394
|
* ```
|
9281
9395
|
* <script type="module">
|
9282
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9396
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
9283
9397
|
* new Monster.Types.DataUrl()
|
9284
9398
|
* </script>
|
9285
9399
|
* ```
|
@@ -9288,7 +9402,7 @@ var internal = Symbol('internal');
|
|
9288
9402
|
*
|
9289
9403
|
* ```
|
9290
9404
|
* <script type="module">
|
9291
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9405
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/dataurl.js';
|
9292
9406
|
* new DataUrl()
|
9293
9407
|
* </script>
|
9294
9408
|
* ```
|
@@ -9368,7 +9482,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9368
9482
|
*
|
9369
9483
|
* ```
|
9370
9484
|
* <script type="module">
|
9371
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9485
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
9372
9486
|
* console.log(Monster.Types.parseDataURL())
|
9373
9487
|
* </script>
|
9374
9488
|
* ```
|
@@ -9377,7 +9491,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9377
9491
|
*
|
9378
9492
|
* ```
|
9379
9493
|
* <script type="module">
|
9380
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9494
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/dataurl.js';
|
9381
9495
|
* console.log(parseDataURL())
|
9382
9496
|
* </script>
|
9383
9497
|
* ```
|
@@ -9515,7 +9629,7 @@ var internal = Symbol('internal');
|
|
9515
9629
|
*
|
9516
9630
|
* ```
|
9517
9631
|
* <script type="module">
|
9518
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9632
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
9519
9633
|
* console.log(new Monster.Types.MediaType())
|
9520
9634
|
* </script>
|
9521
9635
|
* ```
|
@@ -9524,7 +9638,7 @@ var internal = Symbol('internal');
|
|
9524
9638
|
*
|
9525
9639
|
* ```
|
9526
9640
|
* <script type="module">
|
9527
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9641
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/mediatype.js';
|
9528
9642
|
* console.log(new MediaType())
|
9529
9643
|
* </script>
|
9530
9644
|
* ```
|
@@ -9642,7 +9756,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9642
9756
|
*
|
9643
9757
|
* ```
|
9644
9758
|
* <script type="module">
|
9645
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9759
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
9646
9760
|
* console.log(Monster.Types.parseMediaType())
|
9647
9761
|
* </script>
|
9648
9762
|
* ```
|
@@ -9651,7 +9765,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9651
9765
|
*
|
9652
9766
|
* ```
|
9653
9767
|
* <script type="module">
|
9654
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9768
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/dataurl.js';
|
9655
9769
|
* console.log(parseMediaType())
|
9656
9770
|
* </script>
|
9657
9771
|
* ```
|
@@ -9676,7 +9790,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9676
9790
|
|
9677
9791
|
|
9678
9792
|
function parseMediaType(mediatype) {
|
9679
|
-
var regex = /*#__PURE__*/_wrapRegExp(/([A-Za-z]+|\*)\/(([
|
9793
|
+
var regex = /*#__PURE__*/_wrapRegExp(/([A-Za-z]+|\*)\/(([a-zA-Z0-9.\+_\-]+)|\*|)(\s*;\s*([a-zA-Z0-9]+)\s*(=\s*("?[A-Za-z0-9_\-]+"?))?)*/g, {
|
9680
9794
|
type: 1,
|
9681
9795
|
subtype: 2,
|
9682
9796
|
parameter: 4
|
@@ -9790,7 +9904,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9790
9904
|
*
|
9791
9905
|
* ```
|
9792
9906
|
* <script type="module">
|
9793
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9907
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
9794
9908
|
* new Monster.DOM.Template()
|
9795
9909
|
* </script>
|
9796
9910
|
* ```
|
@@ -9799,7 +9913,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9799
9913
|
*
|
9800
9914
|
* ```
|
9801
9915
|
* <script type="module">
|
9802
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9916
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/template.js';
|
9803
9917
|
* new Template()
|
9804
9918
|
* </script>
|
9805
9919
|
* ```
|
@@ -9877,7 +9991,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9877
9991
|
*
|
9878
9992
|
* ```
|
9879
9993
|
* <script type="module">
|
9880
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9994
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
9881
9995
|
* Monster.DOM.findDocumentTemplate()
|
9882
9996
|
* </script>
|
9883
9997
|
* ```
|
@@ -9886,14 +10000,14 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9886
10000
|
*
|
9887
10001
|
* ```
|
9888
10002
|
* <script type="module">
|
9889
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10003
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/template.js';
|
9890
10004
|
* findDocumentTemplate()
|
9891
10005
|
* </script>
|
9892
10006
|
* ```
|
9893
10007
|
*
|
9894
10008
|
* @example
|
9895
10009
|
*
|
9896
|
-
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10010
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/template.js";
|
9897
10011
|
*
|
9898
10012
|
* const template = document.createElement("template");
|
9899
10013
|
* template.id = "myTemplate";
|
@@ -10065,7 +10179,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10065
10179
|
*
|
10066
10180
|
* ```
|
10067
10181
|
* <script type="module">
|
10068
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10182
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
10069
10183
|
* console.log(new Monster.DOM.Theme())
|
10070
10184
|
* </script>
|
10071
10185
|
* ```
|
@@ -10074,14 +10188,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10074
10188
|
*
|
10075
10189
|
* ```
|
10076
10190
|
* <script type="module">
|
10077
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10191
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/theme.js';
|
10078
10192
|
* console.log(new Theme())
|
10079
10193
|
* </script>
|
10080
10194
|
* ```
|
10081
10195
|
*
|
10082
10196
|
* @example
|
10083
10197
|
*
|
10084
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10198
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/theme.js';
|
10085
10199
|
*
|
10086
10200
|
* const theme = getDocumentTheme();
|
10087
10201
|
* console.log(theme.getName());
|
@@ -10268,7 +10382,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10268
10382
|
*
|
10269
10383
|
* ```
|
10270
10384
|
* <script type="module">
|
10271
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10385
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
10272
10386
|
* new Monster.DOM.Updater()
|
10273
10387
|
* </script>
|
10274
10388
|
* ```
|
@@ -10277,14 +10391,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10277
10391
|
*
|
10278
10392
|
* ```
|
10279
10393
|
* <script type="module">
|
10280
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10394
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/updater.js';
|
10281
10395
|
* new Updater()
|
10282
10396
|
* </script>
|
10283
10397
|
* ```
|
10284
10398
|
*
|
10285
10399
|
* @example
|
10286
10400
|
*
|
10287
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10401
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/updater.js';
|
10288
10402
|
*
|
10289
10403
|
* // First we prepare the html document.
|
10290
10404
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -11280,7 +11394,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11280
11394
|
*
|
11281
11395
|
* ```
|
11282
11396
|
* <script type="module">
|
11283
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11397
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11284
11398
|
* Monster.Util.trimSpaces(" hello ")
|
11285
11399
|
* </script>
|
11286
11400
|
* ```
|
@@ -11289,7 +11403,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11289
11403
|
*
|
11290
11404
|
* ```
|
11291
11405
|
* <script type="module">
|
11292
|
-
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11406
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/util/trimspaces.js';
|
11293
11407
|
* trimSpaces(' hello \\ ')
|
11294
11408
|
* </script>
|
11295
11409
|
* ```
|
@@ -11394,7 +11508,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11394
11508
|
*
|
11395
11509
|
* ```
|
11396
11510
|
* <script type="module">
|
11397
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11511
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11398
11512
|
* new Monster.DOM.fireEvent()
|
11399
11513
|
* </script>
|
11400
11514
|
* ```
|
@@ -11403,7 +11517,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11403
11517
|
*
|
11404
11518
|
* ```
|
11405
11519
|
* <script type="module">
|
11406
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11520
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/events.js';
|
11407
11521
|
* fireEvent()
|
11408
11522
|
* </script>
|
11409
11523
|
* ```
|
@@ -11455,7 +11569,7 @@ function fireEvent(element, type) {
|
|
11455
11569
|
*
|
11456
11570
|
* ```
|
11457
11571
|
* <script type="module">
|
11458
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11572
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11459
11573
|
* new Monster.DOM.fireCustomEvent()
|
11460
11574
|
* </script>
|
11461
11575
|
* ```
|
@@ -11464,7 +11578,7 @@ function fireEvent(element, type) {
|
|
11464
11578
|
*
|
11465
11579
|
* ```
|
11466
11580
|
* <script type="module">
|
11467
|
-
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11581
|
+
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/events.js';
|
11468
11582
|
* fireCustomEvent()
|
11469
11583
|
* </script>
|
11470
11584
|
* ```
|
@@ -11523,7 +11637,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11523
11637
|
*
|
11524
11638
|
* ```
|
11525
11639
|
* <script type="module">
|
11526
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11640
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11527
11641
|
* new Monster.DOM.findTargetElementFromEvent()
|
11528
11642
|
* </script>
|
11529
11643
|
* ```
|
@@ -11532,7 +11646,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11532
11646
|
*
|
11533
11647
|
* ```
|
11534
11648
|
* <script type="module">
|
11535
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11649
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/events.js';
|
11536
11650
|
* findTargetElementFromEvent()
|
11537
11651
|
* </script>
|
11538
11652
|
* ```
|
@@ -11603,7 +11717,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11603
11717
|
*
|
11604
11718
|
* ```
|
11605
11719
|
* <script type="module">
|
11606
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11720
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11607
11721
|
* console.log(Monster.DOM.getDocument())
|
11608
11722
|
* </script>
|
11609
11723
|
* ```
|
@@ -11612,7 +11726,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11612
11726
|
*
|
11613
11727
|
* ```
|
11614
11728
|
* <script type="module">
|
11615
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11729
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/util.js';
|
11616
11730
|
* console.log(getDocument())
|
11617
11731
|
* </script>
|
11618
11732
|
* ```
|
@@ -11667,7 +11781,7 @@ function getDocument() {
|
|
11667
11781
|
*
|
11668
11782
|
* ```
|
11669
11783
|
* <script type="module">
|
11670
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11784
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11671
11785
|
* console.log(Monster.DOM.getWindow())
|
11672
11786
|
* </script>
|
11673
11787
|
* ```
|
@@ -11676,7 +11790,7 @@ function getDocument() {
|
|
11676
11790
|
*
|
11677
11791
|
* ```
|
11678
11792
|
* <script type="module">
|
11679
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11793
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/util.js';
|
11680
11794
|
* console.log(getWindow(null))
|
11681
11795
|
* </script>
|
11682
11796
|
* ```
|
@@ -11736,7 +11850,7 @@ function getWindow() {
|
|
11736
11850
|
*
|
11737
11851
|
* ```
|
11738
11852
|
* <script type="module">
|
11739
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11853
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11740
11854
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
11741
11855
|
* </script>
|
11742
11856
|
* ```
|
@@ -11745,7 +11859,7 @@ function getWindow() {
|
|
11745
11859
|
*
|
11746
11860
|
* ```
|
11747
11861
|
* <script type="module">
|
11748
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11862
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/util.js';
|
11749
11863
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
11750
11864
|
* </script>
|
11751
11865
|
* ```
|
@@ -11835,7 +11949,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11835
11949
|
*
|
11836
11950
|
* ```
|
11837
11951
|
* <script type="module">
|
11838
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11952
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11839
11953
|
* new Monster.DOM.getLocaleOfDocument()
|
11840
11954
|
* </script>
|
11841
11955
|
* ```
|
@@ -11844,7 +11958,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11844
11958
|
*
|
11845
11959
|
* ```
|
11846
11960
|
* <script type="module">
|
11847
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11961
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/locale.js';
|
11848
11962
|
* new getLocaleOfDocument()
|
11849
11963
|
* </script>
|
11850
11964
|
* ```
|
@@ -11937,7 +12051,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11937
12051
|
*
|
11938
12052
|
* ```
|
11939
12053
|
* <script type="module">
|
11940
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12054
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
11941
12055
|
* new Monster.I18n.Locale()
|
11942
12056
|
* </script>
|
11943
12057
|
* ```
|
@@ -11946,7 +12060,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11946
12060
|
*
|
11947
12061
|
* ```
|
11948
12062
|
* <script type="module">
|
11949
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12063
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/locale.js';
|
11950
12064
|
* new Locale()
|
11951
12065
|
* </script>
|
11952
12066
|
* ```
|
@@ -12139,7 +12253,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12139
12253
|
*
|
12140
12254
|
* ```
|
12141
12255
|
* <script type="module">
|
12142
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12256
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
12143
12257
|
* new Monster.I18n.createLocale()
|
12144
12258
|
* </script>
|
12145
12259
|
* ```
|
@@ -12148,7 +12262,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12148
12262
|
*
|
12149
12263
|
* ```
|
12150
12264
|
* <script type="module">
|
12151
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12265
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/locale.js';
|
12152
12266
|
* createLocale()
|
12153
12267
|
* </script>
|
12154
12268
|
* ```
|
@@ -12324,7 +12438,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12324
12438
|
*
|
12325
12439
|
* ```
|
12326
12440
|
* <script type="module">
|
12327
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12441
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
12328
12442
|
* new Monster.I18n.Provider()
|
12329
12443
|
* </script>
|
12330
12444
|
* ```
|
@@ -12333,7 +12447,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12333
12447
|
*
|
12334
12448
|
* ```
|
12335
12449
|
* <script type="module">
|
12336
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12450
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/provider.js';
|
12337
12451
|
* new Provider()
|
12338
12452
|
* </script>
|
12339
12453
|
* ```
|
@@ -12436,7 +12550,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12436
12550
|
*
|
12437
12551
|
* ```html
|
12438
12552
|
* <script type="module">
|
12439
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12553
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
12440
12554
|
* new Monster.Types.BaseWithOptions()
|
12441
12555
|
* </script>
|
12442
12556
|
* ```
|
@@ -12445,7 +12559,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12445
12559
|
*
|
12446
12560
|
* ```html
|
12447
12561
|
* <script type="module">
|
12448
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12562
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/basewithoptions.js';
|
12449
12563
|
* new BaseWithOptions()
|
12450
12564
|
* </script>
|
12451
12565
|
* ```
|
@@ -12610,7 +12724,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12610
12724
|
*
|
12611
12725
|
* ```
|
12612
12726
|
* <script type="module">
|
12613
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12727
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
12614
12728
|
* new Monster.I18n.Translations()
|
12615
12729
|
* </script>
|
12616
12730
|
* ```
|
@@ -12619,15 +12733,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12619
12733
|
*
|
12620
12734
|
* ```
|
12621
12735
|
* <script type="module">
|
12622
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12736
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/translations.js';
|
12623
12737
|
* new Translations()
|
12624
12738
|
* </script>
|
12625
12739
|
* ```
|
12626
12740
|
*
|
12627
12741
|
* @example
|
12628
12742
|
*
|
12629
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12630
|
-
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12743
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/translations.js';
|
12744
|
+
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/locale.js';
|
12631
12745
|
*
|
12632
12746
|
* const translation = new Translations(parseLocale('en-GB'));
|
12633
12747
|
*
|
@@ -12899,7 +13013,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12899
13013
|
*
|
12900
13014
|
* ```
|
12901
13015
|
* <script type="module">
|
12902
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13016
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
12903
13017
|
* new Monster.I18n.Providers.Fetch()
|
12904
13018
|
* </script>
|
12905
13019
|
* ```
|
@@ -12908,14 +13022,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12908
13022
|
*
|
12909
13023
|
* ```
|
12910
13024
|
* <script type="module">
|
12911
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13025
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/providers/fetch.js';
|
12912
13026
|
* new Fetch()
|
12913
13027
|
* </script>
|
12914
13028
|
* ```
|
12915
13029
|
*
|
12916
13030
|
* @example <caption>das ist ein test</caption>
|
12917
13031
|
*
|
12918
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13032
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/providers/fetch.js';
|
12919
13033
|
*
|
12920
13034
|
* // fetch from API
|
12921
13035
|
* const translation = new Fetch('https://example.com/${language}.json').getTranslation('en-GB');
|
@@ -13145,7 +13259,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13145
13259
|
*
|
13146
13260
|
* ```
|
13147
13261
|
* <script type="module">
|
13148
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13262
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
13149
13263
|
* new Monster.Text.Formatter()
|
13150
13264
|
* </script>
|
13151
13265
|
* ```
|
@@ -13154,7 +13268,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13154
13268
|
*
|
13155
13269
|
* ```
|
13156
13270
|
* <script type="module">
|
13157
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13271
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/text/formatter.js';
|
13158
13272
|
* new Formatter()
|
13159
13273
|
* </script>
|
13160
13274
|
* ```
|
@@ -13199,7 +13313,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13199
13313
|
*
|
13200
13314
|
* @example
|
13201
13315
|
*
|
13202
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13316
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/text/formatter.js';
|
13203
13317
|
*
|
13204
13318
|
* new Formatter({
|
13205
13319
|
* a: {
|
@@ -13544,7 +13658,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13544
13658
|
*
|
13545
13659
|
* ```
|
13546
13660
|
* <script type="module">
|
13547
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13661
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
13548
13662
|
* console.log(new Monster.Logging.Handler())
|
13549
13663
|
* </script>
|
13550
13664
|
* ```
|
@@ -13553,7 +13667,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13553
13667
|
*
|
13554
13668
|
* ```
|
13555
13669
|
* <script type="module">
|
13556
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13670
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/logging/handler.js';
|
13557
13671
|
* console.log(new Handler())
|
13558
13672
|
* </script>
|
13559
13673
|
* ```
|
@@ -13791,7 +13905,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13791
13905
|
*
|
13792
13906
|
* ```
|
13793
13907
|
* <script type="module">
|
13794
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13908
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
13795
13909
|
* console.log(new Monster.Logging.LogEntry())
|
13796
13910
|
* </script>
|
13797
13911
|
* ```
|
@@ -13800,7 +13914,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13800
13914
|
*
|
13801
13915
|
* ```
|
13802
13916
|
* <script type="module">
|
13803
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13917
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/logging/logentry.js';
|
13804
13918
|
* console.log(new LogEntry())
|
13805
13919
|
* </script>
|
13806
13920
|
* ```
|
@@ -13986,7 +14100,7 @@ var OFF = 0;
|
|
13986
14100
|
*
|
13987
14101
|
* ```
|
13988
14102
|
* <script type="module">
|
13989
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14103
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
13990
14104
|
* new Monster.Logging.Logger()
|
13991
14105
|
* </script>
|
13992
14106
|
* ```
|
@@ -13995,7 +14109,7 @@ var OFF = 0;
|
|
13995
14109
|
*
|
13996
14110
|
* ```
|
13997
14111
|
* <script type="module">
|
13998
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14112
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/logging/logger.js';
|
13999
14113
|
* new Logger()
|
14000
14114
|
* </script>
|
14001
14115
|
* ```
|
@@ -14295,7 +14409,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14295
14409
|
*
|
14296
14410
|
* ```
|
14297
14411
|
* <script type="module">
|
14298
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14412
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
14299
14413
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
14300
14414
|
* </script>
|
14301
14415
|
* ```
|
@@ -14304,7 +14418,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14304
14418
|
*
|
14305
14419
|
* ```
|
14306
14420
|
* <script type="module">
|
14307
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14421
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/logging/handler/console.js';
|
14308
14422
|
* console.log(new ConsoleHandler())
|
14309
14423
|
* </script>
|
14310
14424
|
* ```
|
@@ -14380,7 +14494,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14380
14494
|
*
|
14381
14495
|
* ```
|
14382
14496
|
* <script type="module">
|
14383
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14497
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
14384
14498
|
* Monster.Math.random(1,10)
|
14385
14499
|
* // ↦ 5
|
14386
14500
|
* </script>
|
@@ -14390,7 +14504,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14390
14504
|
*
|
14391
14505
|
* ```
|
14392
14506
|
* <script type="module">
|
14393
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14507
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/math/random.js';
|
14394
14508
|
* random(1,10)
|
14395
14509
|
* // ↦ 5
|
14396
14510
|
* </script>
|
@@ -14512,6 +14626,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
14512
14626
|
|
14513
14627
|
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); }
|
14514
14628
|
|
14629
|
+
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); } }
|
14630
|
+
|
14631
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
14632
|
+
|
14515
14633
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14516
14634
|
|
14517
14635
|
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); }
|
@@ -14547,7 +14665,7 @@ var internalCounter = 0;
|
|
14547
14665
|
*
|
14548
14666
|
* ```
|
14549
14667
|
* <script type="module">
|
14550
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14668
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
14551
14669
|
* console.log(new Monster.Types.RandomID())
|
14552
14670
|
* </script>
|
14553
14671
|
* ```
|
@@ -14556,7 +14674,7 @@ var internalCounter = 0;
|
|
14556
14674
|
*
|
14557
14675
|
* ```
|
14558
14676
|
* <script type="module">
|
14559
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14677
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/randomid.js';
|
14560
14678
|
* console.log(new RandomID())
|
14561
14679
|
* </script>
|
14562
14680
|
* ```
|
@@ -14588,7 +14706,7 @@ var RandomID = /*#__PURE__*/function (_ID) {
|
|
14588
14706
|
return _this;
|
14589
14707
|
}
|
14590
14708
|
|
14591
|
-
return RandomID;
|
14709
|
+
return _createClass(RandomID);
|
14592
14710
|
}(_id_js__WEBPACK_IMPORTED_MODULE_3__.ID);
|
14593
14711
|
|
14594
14712
|
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_1__.assignToNamespace)('Monster.Types', RandomID);
|
@@ -14639,7 +14757,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14639
14757
|
*
|
14640
14758
|
* ```
|
14641
14759
|
* <script type="module">
|
14642
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14760
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
14643
14761
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
14644
14762
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
14645
14763
|
* </script>
|
@@ -14649,7 +14767,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14649
14767
|
*
|
14650
14768
|
* ```
|
14651
14769
|
* <script type="module">
|
14652
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14770
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/version.js';
|
14653
14771
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
14654
14772
|
* console.log(new Version('1')) // ↦ 1.0.0
|
14655
14773
|
* </script>
|
@@ -14657,7 +14775,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14657
14775
|
*
|
14658
14776
|
* @example
|
14659
14777
|
*
|
14660
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14778
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/version.js';
|
14661
14779
|
*
|
14662
14780
|
* new Version('1.0.0') // ↦ 1.0.0
|
14663
14781
|
* new Version(1) // ↦ 1.0.0
|
@@ -14791,7 +14909,7 @@ var monsterVersion;
|
|
14791
14909
|
*
|
14792
14910
|
* ```
|
14793
14911
|
* <script type="module">
|
14794
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14912
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
14795
14913
|
* console.log(Monster.getVersion())
|
14796
14914
|
* </script>
|
14797
14915
|
* ```
|
@@ -14800,7 +14918,7 @@ var monsterVersion;
|
|
14800
14918
|
*
|
14801
14919
|
* ```
|
14802
14920
|
* <script type="module">
|
14803
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14921
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/version.js';
|
14804
14922
|
* console.log(getVersion())
|
14805
14923
|
* </script>
|
14806
14924
|
* ```
|
@@ -14819,7 +14937,7 @@ function getVersion() {
|
|
14819
14937
|
/**#@+ dont touch, replaced by make with package.json version */
|
14820
14938
|
|
14821
14939
|
|
14822
|
-
monsterVersion = new Version('1.
|
14940
|
+
monsterVersion = new Version('1.31.0');
|
14823
14941
|
/**#@-*/
|
14824
14942
|
|
14825
14943
|
return monsterVersion;
|
@@ -14875,7 +14993,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14875
14993
|
*
|
14876
14994
|
* ```
|
14877
14995
|
* <script type="module">
|
14878
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14996
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
14879
14997
|
* new Monster.Util.Comparator()
|
14880
14998
|
* </script>
|
14881
14999
|
* ```
|
@@ -14884,7 +15002,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14884
15002
|
*
|
14885
15003
|
* ```
|
14886
15004
|
* <script type="module">
|
14887
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15005
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/util/comparator.js';
|
14888
15006
|
* console.log(new Comparator())
|
14889
15007
|
* </script>
|
14890
15008
|
* ```
|
@@ -14909,7 +15027,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14909
15027
|
*
|
14910
15028
|
* @example
|
14911
15029
|
*
|
14912
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15030
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/util/comparator.js';
|
14913
15031
|
*
|
14914
15032
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
14915
15033
|
* // ↦ true
|
@@ -15122,7 +15240,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15122
15240
|
*
|
15123
15241
|
* ```
|
15124
15242
|
* <script type="module">
|
15125
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15243
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
15126
15244
|
* Monster.Util.deepFreeze({})
|
15127
15245
|
* </script>
|
15128
15246
|
* ```
|
@@ -15131,7 +15249,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15131
15249
|
*
|
15132
15250
|
* ```
|
15133
15251
|
* <script type="module">
|
15134
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15252
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/util/freeze.js';
|
15135
15253
|
* deepFreeze({})
|
15136
15254
|
* </script>
|
15137
15255
|
* ```
|