@schukai/monster 1.29.3 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +13 -0
- package/README.md +3 -3
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constraints/abstract.js +1 -1
- package/dist/modules/constraints/abstractoperator.js +1 -1
- package/dist/modules/constraints/andoperator.js +1 -1
- package/dist/modules/constraints/invalid.js +1 -1
- package/dist/modules/constraints/isarray.js +1 -1
- package/dist/modules/constraints/isobject.js +1 -1
- package/dist/modules/constraints/namespace.js +1 -1
- package/dist/modules/constraints/oroperator.js +1 -1
- package/dist/modules/constraints/valid.js +1 -1
- package/dist/modules/data/buildmap.js +2 -2
- package/dist/modules/data/buildtree.js +2 -2
- package/dist/modules/data/datasource/namespace.js +1 -1
- package/dist/modules/data/datasource/restapi/writeerror.js +1 -1
- package/dist/modules/data/datasource/restapi.js +2 -2
- package/dist/modules/data/datasource/storage/localstorage.js +1 -1
- package/dist/modules/data/datasource/storage/namespace.js +1 -1
- package/dist/modules/data/datasource/storage/sessionstorage.js +1 -1
- package/dist/modules/data/datasource/storage.js +1 -1
- package/dist/modules/data/datasource.js +1 -1
- package/dist/modules/data/diff.js +2 -2
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +2 -2
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +2 -2
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +2 -2
- package/dist/modules/dom/constants.js +2 -2
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +2 -2
- package/dist/modules/dom/events.js +1 -1
- package/dist/modules/dom/focusmanager.js +1 -1
- package/dist/modules/dom/locale.js +1 -1
- package/dist/modules/dom/namespace.js +1 -1
- package/dist/modules/dom/resource/data.js +1 -1
- package/dist/modules/dom/resource/link/stylesheet.js +1 -1
- package/dist/modules/dom/resource/link.js +1 -1
- package/dist/modules/dom/resource/script.js +1 -1
- package/dist/modules/dom/resource.js +1 -1
- package/dist/modules/dom/resourcemanager.js +2 -2
- package/dist/modules/dom/template.js +2 -2
- package/dist/modules/dom/theme.js +1 -1
- package/dist/modules/dom/updater.js +2 -2
- package/dist/modules/dom/util.js +1 -1
- package/dist/modules/dom/worker/factory.js +2 -2
- package/dist/modules/i18n/formatter.js +2 -2
- package/dist/modules/i18n/locale.js +1 -1
- package/dist/modules/i18n/namespace.js +1 -1
- package/dist/modules/i18n/provider.js +1 -1
- package/dist/modules/i18n/providers/fetch.js +1 -1
- package/dist/modules/i18n/providers/namespace.js +1 -1
- package/dist/modules/i18n/translations.js +1 -1
- package/dist/modules/logging/handler/console.js +1 -1
- package/dist/modules/logging/handler/namespace.js +1 -1
- package/dist/modules/logging/handler.js +1 -1
- package/dist/modules/logging/logentry.js +1 -1
- package/dist/modules/logging/logger.js +1 -1
- package/dist/modules/logging/namespace.js +1 -1
- package/dist/modules/math/namespace.js +1 -1
- package/dist/modules/math/random.js +2 -2
- package/dist/modules/monster.js +1 -1
- package/dist/modules/namespace.js +1 -1
- package/dist/modules/text/formatter.js +2 -2
- package/dist/modules/text/namespace.js +1 -1
- package/dist/modules/types/base.js +1 -1
- package/dist/modules/types/basewithoptions.js +2 -2
- package/dist/modules/types/binary.js +1 -1
- package/dist/modules/types/dataurl.js +2 -2
- package/dist/modules/types/global.js +1 -1
- package/dist/modules/types/id.js +2 -2
- package/dist/modules/types/is.js +1 -1
- package/dist/modules/types/mediatype.js +2 -2
- package/dist/modules/types/namespace.js +1 -1
- package/dist/modules/types/node.js +1 -1
- package/dist/modules/types/nodelist.js +1 -1
- package/dist/modules/types/noderecursiveiterator.js +1 -1
- package/dist/modules/types/observer.js +1 -1
- package/dist/modules/types/observerlist.js +1 -1
- package/dist/modules/types/proxyobserver.js +2 -2
- package/dist/modules/types/queue.js +1 -1
- package/dist/modules/types/randomid.js +1 -1
- package/dist/modules/types/regex.js +1 -1
- package/dist/modules/types/stack.js +1 -1
- package/dist/modules/types/tokenlist.js +1 -1
- package/dist/modules/types/typeof.js +1 -1
- package/dist/modules/types/uniquequeue.js +2 -2
- package/dist/modules/types/uuid.js +2 -2
- package/dist/modules/types/validate.js +1 -1
- package/dist/modules/types/version.js +2 -2
- package/dist/modules/util/clone.js +1 -1
- package/dist/modules/util/comparator.js +1 -1
- package/dist/modules/util/deadmansswitch.js +1 -1
- package/dist/modules/util/freeze.js +1 -1
- package/dist/modules/util/namespace.js +1 -1
- package/dist/modules/util/processing.js +1 -1
- package/dist/modules/util/trimspaces.js +2 -2
- package/dist/monster.dev.js +313 -245
- package/dist/monster.dev.js.map +1 -1
- package/dist/monster.js +2 -2
- package/package.json +1 -1
- package/source/constraints/andoperator.js +5 -5
- package/source/constraints/invalid.js +3 -3
- package/source/constraints/isarray.js +3 -3
- package/source/constraints/isobject.js +3 -3
- package/source/constraints/oroperator.js +5 -5
- package/source/constraints/valid.js +3 -3
- package/source/data/buildmap.js +4 -4
- package/source/data/buildtree.js +2 -2
- package/source/data/datasource/restapi.js +3 -3
- package/source/data/datasource/storage/localstorage.js +2 -2
- package/source/data/datasource/storage/sessionstorage.js +2 -2
- package/source/data/datasource/storage.js +3 -3
- package/source/data/datasource.js +3 -3
- package/source/data/diff.js +3 -3
- package/source/data/extend.js +2 -2
- package/source/data/pathfinder.js +4 -4
- package/source/data/pipe.js +3 -3
- package/source/data/transformer.js +3 -3
- package/source/dom/assembler.js +2 -2
- package/source/dom/attributes.js +26 -26
- package/source/dom/constants.js +11 -1
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +75 -22
- package/source/dom/events.js +6 -6
- package/source/dom/focusmanager.js +2 -2
- package/source/dom/locale.js +2 -2
- package/source/dom/resource/data.js +2 -2
- package/source/dom/resource/link/stylesheet.js +2 -2
- package/source/dom/resource/link.js +2 -2
- package/source/dom/resource/script.js +2 -2
- package/source/dom/resource.js +2 -2
- package/source/dom/resourcemanager.js +2 -2
- package/source/dom/template.js +5 -5
- package/source/dom/theme.js +3 -3
- package/source/dom/updater.js +3 -3
- package/source/dom/util.js +6 -6
- package/source/dom/worker/factory.js +2 -2
- package/source/i18n/formatter.js +4 -4
- package/source/i18n/locale.js +4 -4
- package/source/i18n/provider.js +2 -2
- package/source/i18n/providers/fetch.js +3 -3
- package/source/i18n/translations.js +4 -4
- package/source/logging/handler/console.js +2 -2
- package/source/logging/handler.js +2 -2
- package/source/logging/logentry.js +2 -2
- package/source/logging/logger.js +2 -2
- package/source/math/random.js +2 -2
- package/source/namespace.js +1 -1
- package/source/text/formatter.js +3 -3
- package/source/types/base.js +2 -2
- package/source/types/basewithoptions.js +2 -2
- package/source/types/binary.js +4 -4
- package/source/types/dataurl.js +4 -4
- package/source/types/global.js +4 -4
- package/source/types/id.js +2 -2
- package/source/types/is.js +20 -20
- package/source/types/mediatype.js +4 -4
- package/source/types/node.js +2 -2
- package/source/types/nodelist.js +2 -2
- package/source/types/noderecursiveiterator.js +4 -4
- package/source/types/observer.js +3 -3
- package/source/types/observerlist.js +2 -2
- package/source/types/proxyobserver.js +5 -5
- package/source/types/queue.js +3 -3
- package/source/types/randomid.js +2 -2
- package/source/types/regex.js +2 -2
- package/source/types/stack.js +2 -2
- package/source/types/tokenlist.js +2 -2
- package/source/types/typeof.js +3 -3
- package/source/types/uniquequeue.js +2 -2
- package/source/types/uuid.js +2 -2
- package/source/types/validate.js +20 -20
- package/source/types/version.js +6 -6
- package/source/util/clone.js +2 -2
- package/source/util/comparator.js +3 -3
- package/source/util/deadmansswitch.js +3 -3
- package/source/util/freeze.js +2 -2
- package/source/util/processing.js +3 -3
- package/source/util/trimspaces.js +2 -2
- package/test/cases/dom/customelement.js +23 -0
- package/test/cases/monster.js +1 -1
- package/test/util/jsdom.js +1 -0
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +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.30.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.30.0/dist/monster.js';
|
144
144
|
* function hello() {
|
145
145
|
* console.log('Hello World!');
|
146
146
|
* }
|
@@ -387,7 +387,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
387
387
|
*
|
388
388
|
* ```
|
389
389
|
* <script type="module">
|
390
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
390
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.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.30.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.30.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.30.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.30.0/dist/modules/constraints/valid.js';
|
592
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/constraints/invalid.js';
|
593
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.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.30.0/dist/modules/constraints/valid.js';
|
1503
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/constraints/invalid.js';
|
1504
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.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.30.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.30.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.30.0/dist/modules/constraints/valid.js';
|
1642
1646
|
*
|
1643
1647
|
* new Valid().isValid()
|
1644
1648
|
* .then(()=>console.log(true))
|
@@ -1753,7 +1757,7 @@ var PARENT = '^';
|
|
1753
1757
|
*
|
1754
1758
|
* ```
|
1755
1759
|
* <script type="module">
|
1756
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1760
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
1757
1761
|
* console.log(Monster.Data.buildMap())
|
1758
1762
|
* </script>
|
1759
1763
|
* ```
|
@@ -1762,7 +1766,7 @@ var PARENT = '^';
|
|
1762
1766
|
*
|
1763
1767
|
* ```
|
1764
1768
|
* <script type="module">
|
1765
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1769
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/buildmap.js';
|
1766
1770
|
* console.log(buildMap())
|
1767
1771
|
* </script>
|
1768
1772
|
* ```
|
@@ -1773,7 +1777,7 @@ var PARENT = '^';
|
|
1773
1777
|
*
|
1774
1778
|
* @example
|
1775
1779
|
*
|
1776
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1780
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/buildmap.js';
|
1777
1781
|
* // a typical data structure as reported by an api
|
1778
1782
|
*
|
1779
1783
|
* let map;
|
@@ -2004,7 +2008,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
2004
2008
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
2005
2009
|
*
|
2006
2010
|
* @example
|
2007
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2011
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/buildmap.js';
|
2008
2012
|
*
|
2009
2013
|
* let obj = {
|
2010
2014
|
* "data": [
|
@@ -2145,7 +2149,7 @@ function build(subject, definition, defaultValue) {
|
|
2145
2149
|
if (definition === undefined) return defaultValue ? defaultValue : subject;
|
2146
2150
|
(0,_types_validate_js__WEBPACK_IMPORTED_MODULE_2__.validateString)(definition);
|
2147
2151
|
|
2148
|
-
var regexp = /*#__PURE__*/_wrapRegExp(/(\$\{([
|
2152
|
+
var regexp = /*#__PURE__*/_wrapRegExp(/(\$\{([a-z\^A-Z.\-_0-9]*)\})/gm, {
|
2149
2153
|
placeholder: 1,
|
2150
2154
|
path: 2
|
2151
2155
|
});
|
@@ -2207,7 +2211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2207
2211
|
*
|
2208
2212
|
* ```
|
2209
2213
|
* <script type="module">
|
2210
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2214
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2211
2215
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
2212
2216
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
2213
2217
|
* </script>
|
@@ -2217,7 +2221,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2217
2221
|
*
|
2218
2222
|
* ```
|
2219
2223
|
* <script type="module">
|
2220
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2224
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2221
2225
|
* console.log(validateIterable('2')) // ↦ TypeError
|
2222
2226
|
* console.log(validateIterable([])) // ↦ value
|
2223
2227
|
* </script>
|
@@ -2248,7 +2252,7 @@ function validateIterable(value) {
|
|
2248
2252
|
*
|
2249
2253
|
* ```
|
2250
2254
|
* <script type="module">
|
2251
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2255
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2252
2256
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
2253
2257
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
2254
2258
|
* </script>
|
@@ -2258,7 +2262,7 @@ function validateIterable(value) {
|
|
2258
2262
|
*
|
2259
2263
|
* ```
|
2260
2264
|
* <script type="module">
|
2261
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2265
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2262
2266
|
* console.log(validatePrimitive('2')) // ↦ value
|
2263
2267
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
2264
2268
|
* </script>
|
@@ -2290,7 +2294,7 @@ function validatePrimitive(value) {
|
|
2290
2294
|
*
|
2291
2295
|
* ```
|
2292
2296
|
* <script type="module">
|
2293
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2297
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2294
2298
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
2295
2299
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
2296
2300
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
@@ -2301,7 +2305,7 @@ function validatePrimitive(value) {
|
|
2301
2305
|
*
|
2302
2306
|
* ```
|
2303
2307
|
* <script type="module">
|
2304
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2308
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2305
2309
|
* console.log(validateBoolean(false)) // ↦ value
|
2306
2310
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
2307
2311
|
* console.log(validateBoolean([])) // ↦ TypeError
|
@@ -2332,7 +2336,7 @@ function validateBoolean(value) {
|
|
2332
2336
|
*
|
2333
2337
|
* ```
|
2334
2338
|
* <script type="module">
|
2335
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2339
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2336
2340
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
2337
2341
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
2338
2342
|
* </script>
|
@@ -2342,7 +2346,7 @@ function validateBoolean(value) {
|
|
2342
2346
|
*
|
2343
2347
|
* ```
|
2344
2348
|
* <script type="module">
|
2345
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2349
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2346
2350
|
* console.log(validateString('2')) // ↦ value
|
2347
2351
|
* console.log(validateString([])) // ↦ TypeError
|
2348
2352
|
* </script>
|
@@ -2371,7 +2375,7 @@ function validateString(value) {
|
|
2371
2375
|
*
|
2372
2376
|
* ```
|
2373
2377
|
* <script type="module">
|
2374
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2378
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2375
2379
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
2376
2380
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
2377
2381
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
@@ -2382,7 +2386,7 @@ function validateString(value) {
|
|
2382
2386
|
*
|
2383
2387
|
* ```
|
2384
2388
|
* <script type="module">
|
2385
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2389
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2386
2390
|
* console.log(validateObject({})) // ↦ value
|
2387
2391
|
* console.log(validateObject('2')) // ↦ TypeError
|
2388
2392
|
* console.log(validateObject([])) // ↦ TypeError
|
@@ -2412,7 +2416,7 @@ function validateObject(value) {
|
|
2412
2416
|
*
|
2413
2417
|
* ```
|
2414
2418
|
* <script type="module">
|
2415
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2419
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2416
2420
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
2417
2421
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
2418
2422
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
@@ -2423,7 +2427,7 @@ function validateObject(value) {
|
|
2423
2427
|
*
|
2424
2428
|
* ```
|
2425
2429
|
* <script type="module">
|
2426
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2430
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2427
2431
|
* console.log(validateInstance({}, Object)) // ↦ value
|
2428
2432
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
2429
2433
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
@@ -2463,7 +2467,7 @@ function validateInstance(value, instance) {
|
|
2463
2467
|
*
|
2464
2468
|
* ```
|
2465
2469
|
* <script type="module">
|
2466
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2470
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2467
2471
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
2468
2472
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
2469
2473
|
* </script>
|
@@ -2473,7 +2477,7 @@ function validateInstance(value, instance) {
|
|
2473
2477
|
*
|
2474
2478
|
* ```
|
2475
2479
|
* <script type="module">
|
2476
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2480
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2477
2481
|
* console.log(validateArray('2')) // ↦ TypeError
|
2478
2482
|
* console.log(validateArray([])) // ↦ value
|
2479
2483
|
* </script>
|
@@ -2502,7 +2506,7 @@ function validateArray(value) {
|
|
2502
2506
|
*
|
2503
2507
|
* ```
|
2504
2508
|
* <script type="module">
|
2505
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2509
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2506
2510
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
2507
2511
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
2508
2512
|
* </script>
|
@@ -2512,7 +2516,7 @@ function validateArray(value) {
|
|
2512
2516
|
*
|
2513
2517
|
* ```
|
2514
2518
|
* <script type="module">
|
2515
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2519
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2516
2520
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
2517
2521
|
* console.log(validateSymbol()) // ↦ value
|
2518
2522
|
* </script>
|
@@ -2541,7 +2545,7 @@ function validateSymbol(value) {
|
|
2541
2545
|
*
|
2542
2546
|
* ```
|
2543
2547
|
* <script type="module">
|
2544
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2548
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2545
2549
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
2546
2550
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
2547
2551
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
@@ -2552,7 +2556,7 @@ function validateSymbol(value) {
|
|
2552
2556
|
*
|
2553
2557
|
* ```
|
2554
2558
|
* <script type="module">
|
2555
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2559
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2556
2560
|
* console.log(validateFunction(()=>{})) // ↦ value
|
2557
2561
|
* console.log(validateFunction('2')) // ↦ TypeError
|
2558
2562
|
* console.log(validateFunction([])) // ↦ TypeError
|
@@ -2582,7 +2586,7 @@ function validateFunction(value) {
|
|
2582
2586
|
*
|
2583
2587
|
* ```
|
2584
2588
|
* <script type="module">
|
2585
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2589
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2586
2590
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
2587
2591
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
2588
2592
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
@@ -2593,7 +2597,7 @@ function validateFunction(value) {
|
|
2593
2597
|
*
|
2594
2598
|
* ```
|
2595
2599
|
* <script type="module">
|
2596
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2600
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/validate.js';
|
2597
2601
|
* console.log(validateInteger(true)) // ↦ TypeError
|
2598
2602
|
* console.log(validateInteger('2')) // ↦ TypeError
|
2599
2603
|
* console.log(validateInteger(2)) // ↦ value
|
@@ -2659,7 +2663,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2659
2663
|
*
|
2660
2664
|
* ```
|
2661
2665
|
* <script type="module">
|
2662
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2666
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2663
2667
|
* Monster.Util.clone({})
|
2664
2668
|
* </script>
|
2665
2669
|
* ```
|
@@ -2668,7 +2672,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2668
2672
|
*
|
2669
2673
|
* ```
|
2670
2674
|
* <script type="module">
|
2671
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2675
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/util/clone.js';
|
2672
2676
|
* clone({})
|
2673
2677
|
* </script>
|
2674
2678
|
* ```
|
@@ -2880,7 +2884,7 @@ function getGlobal() {
|
|
2880
2884
|
*
|
2881
2885
|
* ```
|
2882
2886
|
* <script type="module">
|
2883
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2887
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2884
2888
|
* Monster.Types.getGlobalObject('document')
|
2885
2889
|
* // ↦ { }
|
2886
2890
|
* </script>
|
@@ -2890,7 +2894,7 @@ function getGlobal() {
|
|
2890
2894
|
*
|
2891
2895
|
* ```
|
2892
2896
|
* <script type="module">
|
2893
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2897
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/global.js';
|
2894
2898
|
* getGlobalObject('document')
|
2895
2899
|
* // ↦ { }
|
2896
2900
|
* </script>
|
@@ -2922,7 +2926,7 @@ function getGlobalObject(name) {
|
|
2922
2926
|
*
|
2923
2927
|
* ```
|
2924
2928
|
* <script type="module">
|
2925
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2929
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2926
2930
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2927
2931
|
* </script>
|
2928
2932
|
* ```
|
@@ -2931,7 +2935,7 @@ function getGlobalObject(name) {
|
|
2931
2935
|
*
|
2932
2936
|
* ```
|
2933
2937
|
* <script type="module">
|
2934
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2938
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/global.js';
|
2935
2939
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2936
2940
|
* </script>
|
2937
2941
|
* ```
|
@@ -2982,7 +2986,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2982
2986
|
*
|
2983
2987
|
* ```
|
2984
2988
|
* <script type="module">
|
2985
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2989
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
2986
2990
|
* console.log(Monster.Types.typeOf())
|
2987
2991
|
* </script>
|
2988
2992
|
* ```
|
@@ -2991,14 +2995,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
2991
2995
|
*
|
2992
2996
|
* ```
|
2993
2997
|
* <script type="module">
|
2994
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2998
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/typeof.js';
|
2995
2999
|
* console.log(typeOf())
|
2996
3000
|
* </script>
|
2997
3001
|
* ```
|
2998
3002
|
*
|
2999
3003
|
* @example
|
3000
3004
|
*
|
3001
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3005
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/typeof.js';
|
3002
3006
|
*
|
3003
3007
|
* console.log(typeOf(undefined)); // ↦ undefined
|
3004
3008
|
* console.log(typeOf("")); // ↦ string
|
@@ -3117,7 +3121,7 @@ var WILDCARD = '*';
|
|
3117
3121
|
*
|
3118
3122
|
* ```
|
3119
3123
|
* <script type="module">
|
3120
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3124
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
3121
3125
|
* console.log(new Monster.Data.Pathfinder())
|
3122
3126
|
* </script>
|
3123
3127
|
* ```
|
@@ -3126,7 +3130,7 @@ var WILDCARD = '*';
|
|
3126
3130
|
*
|
3127
3131
|
* ```
|
3128
3132
|
* <script type="module">
|
3129
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3133
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/pathfinder.js';
|
3130
3134
|
* console.log(new Pathfinder())
|
3131
3135
|
* </script>
|
3132
3136
|
* ```
|
@@ -3168,7 +3172,7 @@ var WILDCARD = '*';
|
|
3168
3172
|
*
|
3169
3173
|
* @example
|
3170
3174
|
*
|
3171
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3175
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/pathfinder.js';
|
3172
3176
|
*
|
3173
3177
|
* let value = new Pathfinder({
|
3174
3178
|
* a: {
|
@@ -3194,7 +3198,7 @@ var WILDCARD = '*';
|
|
3194
3198
|
*
|
3195
3199
|
* @example
|
3196
3200
|
*
|
3197
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3201
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/pathfinder.js';
|
3198
3202
|
*
|
3199
3203
|
* let p = new Pathfinder({
|
3200
3204
|
* a: {
|
@@ -3609,7 +3613,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3609
3613
|
*
|
3610
3614
|
* ```
|
3611
3615
|
* <script type="module">
|
3612
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3616
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
3613
3617
|
* console.log(new Monster.Types.Stack())
|
3614
3618
|
* </script>
|
3615
3619
|
* ```
|
@@ -3618,7 +3622,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3618
3622
|
*
|
3619
3623
|
* ```
|
3620
3624
|
* <script type="module">
|
3621
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3625
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/stack.js';
|
3622
3626
|
* console.log(new Stack())
|
3623
3627
|
* </script>
|
3624
3628
|
* ```
|
@@ -3753,7 +3757,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3753
3757
|
*
|
3754
3758
|
* ```
|
3755
3759
|
* <script type="module">
|
3756
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3760
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
3757
3761
|
* Monster.Data.Diff(a, b)
|
3758
3762
|
* </script>
|
3759
3763
|
* ```
|
@@ -3762,14 +3766,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3762
3766
|
*
|
3763
3767
|
* ```
|
3764
3768
|
* <script type="module">
|
3765
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3769
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/diff.js';
|
3766
3770
|
* Diff(a, b)
|
3767
3771
|
* </script>
|
3768
3772
|
* ```
|
3769
3773
|
*
|
3770
3774
|
* @example
|
3771
3775
|
*
|
3772
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3776
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/diff.js';
|
3773
3777
|
*
|
3774
3778
|
* // given are two objects x and y.
|
3775
3779
|
*
|
@@ -4015,7 +4019,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4015
4019
|
*
|
4016
4020
|
* ```
|
4017
4021
|
* <script type="module">
|
4018
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4022
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
4019
4023
|
* Monster.Data.extend(a, b)
|
4020
4024
|
* </script>
|
4021
4025
|
* ```
|
@@ -4024,7 +4028,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4024
4028
|
*
|
4025
4029
|
* ```
|
4026
4030
|
* <script type="module">
|
4027
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4031
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/extend.js';
|
4028
4032
|
* extend(a, b)
|
4029
4033
|
* </script>
|
4030
4034
|
* ```
|
@@ -4153,7 +4157,7 @@ var DELIMITER = '|';
|
|
4153
4157
|
*
|
4154
4158
|
* ```
|
4155
4159
|
* <script type="module">
|
4156
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4160
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
4157
4161
|
* new Monster.Data.Pipe()
|
4158
4162
|
* </script>
|
4159
4163
|
* ```
|
@@ -4162,7 +4166,7 @@ var DELIMITER = '|';
|
|
4162
4166
|
*
|
4163
4167
|
* ```
|
4164
4168
|
* <script type="module">
|
4165
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4169
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/pipe.js';
|
4166
4170
|
* new Pipe()
|
4167
4171
|
* </script>
|
4168
4172
|
* ```
|
@@ -4173,7 +4177,7 @@ var DELIMITER = '|';
|
|
4173
4177
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
4174
4178
|
*
|
4175
4179
|
* @example
|
4176
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4180
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/pipe.js';
|
4177
4181
|
*
|
4178
4182
|
* let obj = {
|
4179
4183
|
* a: {
|
@@ -4335,7 +4339,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4335
4339
|
*
|
4336
4340
|
* ```
|
4337
4341
|
* <script type="module">
|
4338
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4342
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
4339
4343
|
* new Monster.Data.Transformer()
|
4340
4344
|
* </script>
|
4341
4345
|
* ```
|
@@ -4344,7 +4348,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4344
4348
|
*
|
4345
4349
|
* ```
|
4346
4350
|
* <script type="module">
|
4347
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4351
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/transformer.js';
|
4348
4352
|
* new Transformer()
|
4349
4353
|
* </script>
|
4350
4354
|
* ```
|
@@ -4430,7 +4434,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4430
4434
|
*
|
4431
4435
|
* @example
|
4432
4436
|
*
|
4433
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4437
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/data/transformer.js';
|
4434
4438
|
*
|
4435
4439
|
* const transformer = new Transformer("tolower")
|
4436
4440
|
*
|
@@ -4963,7 +4967,7 @@ var internalCounter = new Map();
|
|
4963
4967
|
*
|
4964
4968
|
* ```
|
4965
4969
|
* <script type="module">
|
4966
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4970
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
4967
4971
|
* console.log(new Monster.Types.ID())
|
4968
4972
|
* </script>
|
4969
4973
|
* ```
|
@@ -4972,7 +4976,7 @@ var internalCounter = new Map();
|
|
4972
4976
|
*
|
4973
4977
|
* ```
|
4974
4978
|
* <script type="module">
|
4975
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4979
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/id.js';
|
4976
4980
|
* console.log(new ID())
|
4977
4981
|
* </script>
|
4978
4982
|
* ```
|
@@ -5095,7 +5099,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5095
5099
|
*
|
5096
5100
|
* ```
|
5097
5101
|
* <script type="module">
|
5098
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5102
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
5099
5103
|
* console.log(new Monster.DOM.Assembler())
|
5100
5104
|
* </script>
|
5101
5105
|
* ```
|
@@ -5104,7 +5108,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5104
5108
|
*
|
5105
5109
|
* ```
|
5106
5110
|
* <script type="module">
|
5107
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5111
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/assembler.js';
|
5108
5112
|
* console.log(new Assembler())
|
5109
5113
|
* </script>
|
5110
5114
|
* ```
|
@@ -5245,7 +5249,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5245
5249
|
*
|
5246
5250
|
* ```
|
5247
5251
|
* <script type="module">
|
5248
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5252
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
5249
5253
|
* new Monster.Types.ProxyObserver()
|
5250
5254
|
* </script>
|
5251
5255
|
* ```
|
@@ -5254,7 +5258,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5254
5258
|
*
|
5255
5259
|
* ```
|
5256
5260
|
* <script type="module">
|
5257
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5261
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/proxyobserver.js';
|
5258
5262
|
* new ProxyObserver()
|
5259
5263
|
* </script>
|
5260
5264
|
* ```
|
@@ -5265,9 +5269,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5265
5269
|
*
|
5266
5270
|
* @example
|
5267
5271
|
*
|
5268
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5269
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5270
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5272
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/proxyobserver.js';
|
5273
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/observer.js';
|
5274
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/is.js';
|
5271
5275
|
*
|
5272
5276
|
* const o = new Observer(function () {
|
5273
5277
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
@@ -5592,14 +5596,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5592
5596
|
* You can call the method via the monster namespace `new Monster.Types.Observer()`.
|
5593
5597
|
*
|
5594
5598
|
* ```
|
5595
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5599
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
5596
5600
|
* new Monster.Types.Observer()
|
5597
5601
|
* ```
|
5598
5602
|
*
|
5599
5603
|
* Alternatively, you can also integrate this function individually.
|
5600
5604
|
*
|
5601
5605
|
* ```
|
5602
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5606
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/observer.js';
|
5603
5607
|
* new Observer()
|
5604
5608
|
* ```
|
5605
5609
|
*
|
@@ -5628,7 +5632,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5628
5632
|
*
|
5629
5633
|
* @example
|
5630
5634
|
*
|
5631
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5635
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/observer.js';
|
5632
5636
|
*
|
5633
5637
|
* const observer = new Observer(function(a, b, c) {
|
5634
5638
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
@@ -5828,7 +5832,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5828
5832
|
*
|
5829
5833
|
* ```
|
5830
5834
|
* <script type="module">
|
5831
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5835
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
5832
5836
|
* new Monster.Types.TokenList("myclass row")
|
5833
5837
|
* </script>
|
5834
5838
|
* ```
|
@@ -5837,7 +5841,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5837
5841
|
*
|
5838
5842
|
* ```
|
5839
5843
|
* <script type="module">
|
5840
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5844
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/tokenlist.js';
|
5841
5845
|
* new TokenList("myclass row")
|
5842
5846
|
* </script>
|
5843
5847
|
* ```
|
@@ -6260,7 +6264,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6260
6264
|
*
|
6261
6265
|
* ```
|
6262
6266
|
* <script type="module">
|
6263
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6267
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6264
6268
|
* new Monster.Types.UniqueQueue()
|
6265
6269
|
* </script>
|
6266
6270
|
* ```
|
@@ -6269,7 +6273,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6269
6273
|
*
|
6270
6274
|
* ```
|
6271
6275
|
* <script type="module">
|
6272
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6276
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/uniquequeue.js';
|
6273
6277
|
* new UniqueQueue()
|
6274
6278
|
* </script>
|
6275
6279
|
* ```
|
@@ -6404,7 +6408,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6404
6408
|
*
|
6405
6409
|
* ```
|
6406
6410
|
* <script type="module">
|
6407
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6411
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6408
6412
|
* new Monster.Types.Queue()
|
6409
6413
|
* </script>
|
6410
6414
|
* ```
|
@@ -6413,14 +6417,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6413
6417
|
*
|
6414
6418
|
* ```
|
6415
6419
|
* <script type="module">
|
6416
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6420
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/queue.js';
|
6417
6421
|
* new Queue()
|
6418
6422
|
* </script>
|
6419
6423
|
* ```
|
6420
6424
|
*
|
6421
6425
|
* @example
|
6422
6426
|
*
|
6423
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6427
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/queue.js';
|
6424
6428
|
*
|
6425
6429
|
* const queue = new Queue;
|
6426
6430
|
*
|
@@ -6589,7 +6593,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6589
6593
|
*
|
6590
6594
|
* ```
|
6591
6595
|
* <script type="module">
|
6592
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6596
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6593
6597
|
* console.log(new Monster.Types.ObserverList())
|
6594
6598
|
* console.log(new Monster.Types.ObserverList())
|
6595
6599
|
* </script>
|
@@ -6599,7 +6603,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6599
6603
|
*
|
6600
6604
|
* ```
|
6601
6605
|
* <script type="module">
|
6602
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6606
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/observerlist.js';
|
6603
6607
|
* console.log(ObserverList())
|
6604
6608
|
* console.log(ObserverList())
|
6605
6609
|
* </script>
|
@@ -6759,7 +6763,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6759
6763
|
*
|
6760
6764
|
* ```
|
6761
6765
|
* <script type="module">
|
6762
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6766
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6763
6767
|
* console.log(Monster.DOM.findClosestObjectLink())
|
6764
6768
|
* </script>
|
6765
6769
|
* ```
|
@@ -6768,7 +6772,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6768
6772
|
*
|
6769
6773
|
* ```
|
6770
6774
|
* <script type="module">
|
6771
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6775
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/updater.js';
|
6772
6776
|
* console.log(findClosestObjectLink())
|
6773
6777
|
* </script>
|
6774
6778
|
* ```
|
@@ -6789,7 +6793,7 @@ function findClosestObjectLink(element) {
|
|
6789
6793
|
*
|
6790
6794
|
* ```
|
6791
6795
|
* <script type="module">
|
6792
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6796
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6793
6797
|
* Monster.DOM.addToObjectLink();
|
6794
6798
|
* </script>
|
6795
6799
|
* ```
|
@@ -6798,7 +6802,7 @@ function findClosestObjectLink(element) {
|
|
6798
6802
|
*
|
6799
6803
|
* ```
|
6800
6804
|
* <script type="module">
|
6801
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6805
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
6802
6806
|
* addToObjectLink();
|
6803
6807
|
* </script>
|
6804
6808
|
* ```
|
@@ -6830,7 +6834,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6830
6834
|
*
|
6831
6835
|
* ```
|
6832
6836
|
* <script type="module">
|
6833
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6837
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6834
6838
|
* Monster.DOM.removeObjectLink();
|
6835
6839
|
* </script>
|
6836
6840
|
* ```
|
@@ -6839,7 +6843,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6839
6843
|
*
|
6840
6844
|
* ```
|
6841
6845
|
* <script type="module">
|
6842
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6846
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
6843
6847
|
* removeObjectLink();
|
6844
6848
|
* </script>
|
6845
6849
|
* ```
|
@@ -6870,7 +6874,7 @@ function removeObjectLink(element, symbol) {
|
|
6870
6874
|
*
|
6871
6875
|
* ```
|
6872
6876
|
* <script type="module">
|
6873
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6877
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6874
6878
|
* Monster.DOM.hasObjectLink();
|
6875
6879
|
* </script>
|
6876
6880
|
* ```
|
@@ -6879,7 +6883,7 @@ function removeObjectLink(element, symbol) {
|
|
6879
6883
|
*
|
6880
6884
|
* ```
|
6881
6885
|
* <script type="module">
|
6882
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6886
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
6883
6887
|
* hasObjectLink();
|
6884
6888
|
* </script>
|
6885
6889
|
* ```
|
@@ -6915,7 +6919,7 @@ function hasObjectLink(element, symbol) {
|
|
6915
6919
|
*
|
6916
6920
|
* ```
|
6917
6921
|
* <script type="module">
|
6918
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6922
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6919
6923
|
* Monster.DOM.getLinkedObjects();
|
6920
6924
|
* </script>
|
6921
6925
|
* ```
|
@@ -6924,7 +6928,7 @@ function hasObjectLink(element, symbol) {
|
|
6924
6928
|
*
|
6925
6929
|
* ```
|
6926
6930
|
* <script type="module">
|
6927
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6931
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
6928
6932
|
* getLinkedObjects();
|
6929
6933
|
* </script>
|
6930
6934
|
* ```
|
@@ -6958,7 +6962,7 @@ function getLinkedObjects(element, symbol) {
|
|
6958
6962
|
*
|
6959
6963
|
* ```
|
6960
6964
|
* <script type="module">
|
6961
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6965
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
6962
6966
|
* Monster.DOM.toggleAttributeToken();
|
6963
6967
|
* </script>
|
6964
6968
|
* ```
|
@@ -6967,7 +6971,7 @@ function getLinkedObjects(element, symbol) {
|
|
6967
6971
|
*
|
6968
6972
|
* ```
|
6969
6973
|
* <script type="module">
|
6970
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6974
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
6971
6975
|
* toggleAttributeToken();
|
6972
6976
|
* </script>
|
6973
6977
|
* ```
|
@@ -7002,7 +7006,7 @@ function toggleAttributeToken(element, key, token) {
|
|
7002
7006
|
*
|
7003
7007
|
* ```
|
7004
7008
|
* <script type="module">
|
7005
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7009
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7006
7010
|
* Monster.DOM.addAttributeToken();
|
7007
7011
|
* </script>
|
7008
7012
|
* ```
|
@@ -7011,7 +7015,7 @@ function toggleAttributeToken(element, key, token) {
|
|
7011
7015
|
*
|
7012
7016
|
* ```
|
7013
7017
|
* <script type="module">
|
7014
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7018
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7015
7019
|
* addAttributeToken();
|
7016
7020
|
* </script>
|
7017
7021
|
* ```
|
@@ -7048,7 +7052,7 @@ function addAttributeToken(element, key, token) {
|
|
7048
7052
|
*
|
7049
7053
|
* ```
|
7050
7054
|
* <script type="module">
|
7051
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7055
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7052
7056
|
* Monster.DOM.removeAttributeToken();
|
7053
7057
|
* </script>
|
7054
7058
|
* ```
|
@@ -7057,7 +7061,7 @@ function addAttributeToken(element, key, token) {
|
|
7057
7061
|
*
|
7058
7062
|
* ```
|
7059
7063
|
* <script type="module">
|
7060
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7064
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7061
7065
|
* removeAttributeToken();
|
7062
7066
|
* </script>
|
7063
7067
|
* ```
|
@@ -7093,7 +7097,7 @@ function removeAttributeToken(element, key, token) {
|
|
7093
7097
|
*
|
7094
7098
|
* ```
|
7095
7099
|
* <script type="module">
|
7096
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7100
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7097
7101
|
* Monster.DOM.containsAttributeToken();
|
7098
7102
|
* </script>
|
7099
7103
|
* ```
|
@@ -7102,7 +7106,7 @@ function removeAttributeToken(element, key, token) {
|
|
7102
7106
|
*
|
7103
7107
|
* ```
|
7104
7108
|
* <script type="module">
|
7105
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7109
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7106
7110
|
* containsAttributeToken();
|
7107
7111
|
* </script>
|
7108
7112
|
* ```
|
@@ -7135,7 +7139,7 @@ function containsAttributeToken(element, key, token) {
|
|
7135
7139
|
*
|
7136
7140
|
* ```
|
7137
7141
|
* <script type="module">
|
7138
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7142
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7139
7143
|
* Monster.DOM.replaceAttributeToken();
|
7140
7144
|
* </script>
|
7141
7145
|
* ```
|
@@ -7144,7 +7148,7 @@ function containsAttributeToken(element, key, token) {
|
|
7144
7148
|
*
|
7145
7149
|
* ```
|
7146
7150
|
* <script type="module">
|
7147
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7151
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7148
7152
|
* replaceAttributeToken();
|
7149
7153
|
* </script>
|
7150
7154
|
* ```
|
@@ -7180,7 +7184,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7180
7184
|
*
|
7181
7185
|
* ```
|
7182
7186
|
* <script type="module">
|
7183
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7187
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7184
7188
|
* Monster.DOM.clearAttributeTokens();
|
7185
7189
|
* </script>
|
7186
7190
|
* ```
|
@@ -7189,7 +7193,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7189
7193
|
*
|
7190
7194
|
* ```
|
7191
7195
|
* <script type="module">
|
7192
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7196
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7193
7197
|
* clearAttributeTokens();
|
7194
7198
|
* </script>
|
7195
7199
|
* ```
|
@@ -7237,7 +7241,7 @@ function clearAttributeTokens(element, key) {
|
|
7237
7241
|
*
|
7238
7242
|
* ```
|
7239
7243
|
* <script type="module">
|
7240
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7244
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7241
7245
|
* Monster.DOM.findClosestByAttribute();
|
7242
7246
|
* </script>
|
7243
7247
|
* ```
|
@@ -7246,7 +7250,7 @@ function clearAttributeTokens(element, key) {
|
|
7246
7250
|
*
|
7247
7251
|
* ```
|
7248
7252
|
* <script type="module">
|
7249
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7253
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7250
7254
|
* findClosestByAttribute();
|
7251
7255
|
* </script>
|
7252
7256
|
* ```
|
@@ -7304,7 +7308,7 @@ function findClosestByAttribute(element, key, value) {
|
|
7304
7308
|
*
|
7305
7309
|
* ```
|
7306
7310
|
* <script type="module">
|
7307
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7311
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7308
7312
|
* Monster.DOM.findClosestByClass();
|
7309
7313
|
* </script>
|
7310
7314
|
* ```
|
@@ -7313,7 +7317,7 @@ function findClosestByAttribute(element, key, value) {
|
|
7313
7317
|
*
|
7314
7318
|
* ```
|
7315
7319
|
* <script type="module">
|
7316
|
-
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7320
|
+
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/attributes.js';
|
7317
7321
|
* findClosestByClass();
|
7318
7322
|
* </script>
|
7319
7323
|
* ```
|
@@ -7407,7 +7411,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
7407
7411
|
/* harmony export */ "ATTRIBUTE_VALUE": function() { return /* binding */ ATTRIBUTE_VALUE; },
|
7408
7412
|
/* harmony export */ "objectUpdaterLinkSymbol": function() { return /* binding */ objectUpdaterLinkSymbol; },
|
7409
7413
|
/* harmony export */ "ATTRIBUTE_TEMPLATE_PREFIX": function() { return /* binding */ ATTRIBUTE_TEMPLATE_PREFIX; },
|
7410
|
-
/* 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; }
|
7411
7416
|
/* harmony export */ });
|
7412
7417
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
7413
7418
|
|
@@ -7440,6 +7445,15 @@ var ATTRIBUTE_PREFIX = 'data-monster-';
|
|
7440
7445
|
*/
|
7441
7446
|
|
7442
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';
|
7443
7457
|
/**
|
7444
7458
|
* @memberOf Monster.DOM
|
7445
7459
|
* @type {string}
|
@@ -7847,7 +7861,7 @@ var attachedInternalSymbol = Symbol('attachedInternal');
|
|
7847
7861
|
*
|
7848
7862
|
* ```
|
7849
7863
|
* <script type="module">
|
7850
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7864
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
7851
7865
|
* document.createElement('monster-')
|
7852
7866
|
* </script>
|
7853
7867
|
* ```
|
@@ -8383,7 +8397,7 @@ var attributeObserverSymbol = Symbol('attributeObserver');
|
|
8383
8397
|
*
|
8384
8398
|
* ```
|
8385
8399
|
* <script type="module">
|
8386
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8400
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
8387
8401
|
* document.createElement('monster-')
|
8388
8402
|
* </script>
|
8389
8403
|
* ```
|
@@ -8496,7 +8510,7 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8496
8510
|
|
8497
8511
|
_this = _super.call(this);
|
8498
8512
|
_this[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol] = new _types_proxyobserver_js__WEBPACK_IMPORTED_MODULE_8__.ProxyObserver({
|
8499
|
-
'options': (0,_data_extend_js__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _this.defaults, getOptionsFromAttributes.call(_assertThisInitialized(_this)))
|
8513
|
+
'options': (0,_data_extend_js__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _this.defaults, getOptionsFromAttributes.call(_assertThisInitialized(_this)), getOptionsFromScriptTag.call(_assertThisInitialized(_this)))
|
8500
8514
|
});
|
8501
8515
|
_this[attributeObserverSymbol] = {};
|
8502
8516
|
initOptionObserver.call(_assertThisInitialized(_this));
|
@@ -8541,6 +8555,19 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8541
8555
|
* }
|
8542
8556
|
* })),'application/json',true).toString()
|
8543
8557
|
* ```
|
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
|
+
*
|
8544
8571
|
*
|
8545
8572
|
* @property {boolean} disabled=false Object The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form.
|
8546
8573
|
* @property {string} shadowMode=open `open` Elements of the shadow root are accessible from JavaScript outside the root, for example using. `close` Denies access to the node(s) of a closed shadow root from JavaScript outside it
|
@@ -8653,7 +8680,7 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
8653
8680
|
key: "setOptions",
|
8654
8681
|
value: function setOptions(options) {
|
8655
8682
|
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(options)) {
|
8656
|
-
options = parseOptionsJSON(options);
|
8683
|
+
options = parseOptionsJSON.call(this, options);
|
8657
8684
|
}
|
8658
8685
|
|
8659
8686
|
var self = this;
|
@@ -9025,16 +9052,48 @@ function initOptionObserver() {
|
|
9025
9052
|
/**
|
9026
9053
|
* @private
|
9027
9054
|
* @return {object}
|
9028
|
-
* @throws {
|
9055
|
+
* @throws {TypeError} value is not a object
|
9056
|
+
*/
|
9057
|
+
|
9058
|
+
|
9059
|
+
function getOptionsFromScriptTag() {
|
9060
|
+
var self = this;
|
9061
|
+
|
9062
|
+
if (!self.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR)) {
|
9063
|
+
return {};
|
9064
|
+
}
|
9065
|
+
|
9066
|
+
var node = document.querySelector(self.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS_SELECTOR));
|
9067
|
+
|
9068
|
+
if (!(node instanceof HTMLScriptElement)) {
|
9069
|
+
(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.');
|
9070
|
+
return {};
|
9071
|
+
}
|
9072
|
+
|
9073
|
+
var obj = {};
|
9074
|
+
|
9075
|
+
try {
|
9076
|
+
obj = parseOptionsJSON.call(this, node.textContent.trim());
|
9077
|
+
} catch (e) {
|
9078
|
+
(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);
|
9079
|
+
}
|
9080
|
+
|
9081
|
+
return obj;
|
9082
|
+
}
|
9083
|
+
/**
|
9084
|
+
* @private
|
9085
|
+
* @return {object}
|
9029
9086
|
*/
|
9030
9087
|
|
9031
9088
|
|
9032
9089
|
function getOptionsFromAttributes() {
|
9090
|
+
var self = this;
|
9091
|
+
|
9033
9092
|
if (this.hasAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS)) {
|
9034
9093
|
try {
|
9035
|
-
return parseOptionsJSON(this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS));
|
9094
|
+
return parseOptionsJSON.call(self, this.getAttribute(_constants_js__WEBPACK_IMPORTED_MODULE_12__.ATTRIBUTE_OPTIONS));
|
9036
9095
|
} catch (e) {
|
9037
|
-
|
9096
|
+
(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);
|
9038
9097
|
}
|
9039
9098
|
}
|
9040
9099
|
|
@@ -9048,23 +9107,28 @@ function getOptionsFromAttributes() {
|
|
9048
9107
|
|
9049
9108
|
|
9050
9109
|
function parseOptionsJSON(data) {
|
9051
|
-
|
9052
|
-
|
9053
|
-
try {
|
9054
|
-
var dataUrl = (0,_types_dataurl_js__WEBPACK_IMPORTED_MODULE_4__.parseDataURL)(data);
|
9055
|
-
data = dataUrl.content;
|
9056
|
-
} catch (e) {}
|
9110
|
+
var self = this,
|
9111
|
+
obj = {};
|
9057
9112
|
|
9058
|
-
|
9059
|
-
|
9060
|
-
|
9061
|
-
|
9062
|
-
|
9063
|
-
|
9064
|
-
|
9113
|
+
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(data)) {
|
9114
|
+
return obj;
|
9115
|
+
} // the configuration can be specified as a data url.
|
9116
|
+
|
9117
|
+
|
9118
|
+
try {
|
9119
|
+
var dataUrl = (0,_types_dataurl_js__WEBPACK_IMPORTED_MODULE_4__.parseDataURL)(data);
|
9120
|
+
data = dataUrl.content;
|
9121
|
+
} catch (e) {}
|
9122
|
+
|
9123
|
+
try {
|
9124
|
+
var _obj = JSON.parse(data);
|
9125
|
+
|
9126
|
+
return (0,_types_validate_js__WEBPACK_IMPORTED_MODULE_9__.validateObject)(_obj);
|
9127
|
+
} catch (e) {
|
9128
|
+
throw e;
|
9065
9129
|
}
|
9066
9130
|
|
9067
|
-
return
|
9131
|
+
return obj;
|
9068
9132
|
}
|
9069
9133
|
/**
|
9070
9134
|
* @private
|
@@ -9308,7 +9372,7 @@ var internal = Symbol('internal');
|
|
9308
9372
|
*
|
9309
9373
|
* ```
|
9310
9374
|
* <script type="module">
|
9311
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9375
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
9312
9376
|
* new Monster.Types.DataUrl()
|
9313
9377
|
* </script>
|
9314
9378
|
* ```
|
@@ -9317,7 +9381,7 @@ var internal = Symbol('internal');
|
|
9317
9381
|
*
|
9318
9382
|
* ```
|
9319
9383
|
* <script type="module">
|
9320
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9384
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/dataurl.js';
|
9321
9385
|
* new DataUrl()
|
9322
9386
|
* </script>
|
9323
9387
|
* ```
|
@@ -9397,7 +9461,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9397
9461
|
*
|
9398
9462
|
* ```
|
9399
9463
|
* <script type="module">
|
9400
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9464
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
9401
9465
|
* console.log(Monster.Types.parseDataURL())
|
9402
9466
|
* </script>
|
9403
9467
|
* ```
|
@@ -9406,7 +9470,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
9406
9470
|
*
|
9407
9471
|
* ```
|
9408
9472
|
* <script type="module">
|
9409
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9473
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/dataurl.js';
|
9410
9474
|
* console.log(parseDataURL())
|
9411
9475
|
* </script>
|
9412
9476
|
* ```
|
@@ -9544,7 +9608,7 @@ var internal = Symbol('internal');
|
|
9544
9608
|
*
|
9545
9609
|
* ```
|
9546
9610
|
* <script type="module">
|
9547
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9611
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
9548
9612
|
* console.log(new Monster.Types.MediaType())
|
9549
9613
|
* </script>
|
9550
9614
|
* ```
|
@@ -9553,7 +9617,7 @@ var internal = Symbol('internal');
|
|
9553
9617
|
*
|
9554
9618
|
* ```
|
9555
9619
|
* <script type="module">
|
9556
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9620
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/mediatype.js';
|
9557
9621
|
* console.log(new MediaType())
|
9558
9622
|
* </script>
|
9559
9623
|
* ```
|
@@ -9671,7 +9735,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9671
9735
|
*
|
9672
9736
|
* ```
|
9673
9737
|
* <script type="module">
|
9674
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9738
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
9675
9739
|
* console.log(Monster.Types.parseMediaType())
|
9676
9740
|
* </script>
|
9677
9741
|
* ```
|
@@ -9680,7 +9744,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9680
9744
|
*
|
9681
9745
|
* ```
|
9682
9746
|
* <script type="module">
|
9683
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9747
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/dataurl.js';
|
9684
9748
|
* console.log(parseMediaType())
|
9685
9749
|
* </script>
|
9686
9750
|
* ```
|
@@ -9705,7 +9769,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9705
9769
|
|
9706
9770
|
|
9707
9771
|
function parseMediaType(mediatype) {
|
9708
|
-
var regex = /*#__PURE__*/_wrapRegExp(/([A-Za-z]+|\*)\/(([
|
9772
|
+
var regex = /*#__PURE__*/_wrapRegExp(/([A-Za-z]+|\*)\/(([a-zA-Z0-9.\+_\-]+)|\*|)(\s*;\s*([a-zA-Z0-9]+)\s*(=\s*("?[A-Za-z0-9_\-]+"?))?)*/g, {
|
9709
9773
|
type: 1,
|
9710
9774
|
subtype: 2,
|
9711
9775
|
parameter: 4
|
@@ -9819,7 +9883,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9819
9883
|
*
|
9820
9884
|
* ```
|
9821
9885
|
* <script type="module">
|
9822
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9886
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
9823
9887
|
* new Monster.DOM.Template()
|
9824
9888
|
* </script>
|
9825
9889
|
* ```
|
@@ -9828,7 +9892,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9828
9892
|
*
|
9829
9893
|
* ```
|
9830
9894
|
* <script type="module">
|
9831
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9895
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/template.js';
|
9832
9896
|
* new Template()
|
9833
9897
|
* </script>
|
9834
9898
|
* ```
|
@@ -9906,7 +9970,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9906
9970
|
*
|
9907
9971
|
* ```
|
9908
9972
|
* <script type="module">
|
9909
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9973
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
9910
9974
|
* Monster.DOM.findDocumentTemplate()
|
9911
9975
|
* </script>
|
9912
9976
|
* ```
|
@@ -9915,14 +9979,14 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9915
9979
|
*
|
9916
9980
|
* ```
|
9917
9981
|
* <script type="module">
|
9918
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9982
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/template.js';
|
9919
9983
|
* findDocumentTemplate()
|
9920
9984
|
* </script>
|
9921
9985
|
* ```
|
9922
9986
|
*
|
9923
9987
|
* @example
|
9924
9988
|
*
|
9925
|
-
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9989
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/template.js";
|
9926
9990
|
*
|
9927
9991
|
* const template = document.createElement("template");
|
9928
9992
|
* template.id = "myTemplate";
|
@@ -10094,7 +10158,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10094
10158
|
*
|
10095
10159
|
* ```
|
10096
10160
|
* <script type="module">
|
10097
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10161
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
10098
10162
|
* console.log(new Monster.DOM.Theme())
|
10099
10163
|
* </script>
|
10100
10164
|
* ```
|
@@ -10103,14 +10167,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10103
10167
|
*
|
10104
10168
|
* ```
|
10105
10169
|
* <script type="module">
|
10106
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10170
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/theme.js';
|
10107
10171
|
* console.log(new Theme())
|
10108
10172
|
* </script>
|
10109
10173
|
* ```
|
10110
10174
|
*
|
10111
10175
|
* @example
|
10112
10176
|
*
|
10113
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10177
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/theme.js';
|
10114
10178
|
*
|
10115
10179
|
* const theme = getDocumentTheme();
|
10116
10180
|
* console.log(theme.getName());
|
@@ -10297,7 +10361,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10297
10361
|
*
|
10298
10362
|
* ```
|
10299
10363
|
* <script type="module">
|
10300
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10364
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
10301
10365
|
* new Monster.DOM.Updater()
|
10302
10366
|
* </script>
|
10303
10367
|
* ```
|
@@ -10306,14 +10370,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10306
10370
|
*
|
10307
10371
|
* ```
|
10308
10372
|
* <script type="module">
|
10309
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10373
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/updater.js';
|
10310
10374
|
* new Updater()
|
10311
10375
|
* </script>
|
10312
10376
|
* ```
|
10313
10377
|
*
|
10314
10378
|
* @example
|
10315
10379
|
*
|
10316
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10380
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/updater.js';
|
10317
10381
|
*
|
10318
10382
|
* // First we prepare the html document.
|
10319
10383
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -11309,7 +11373,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11309
11373
|
*
|
11310
11374
|
* ```
|
11311
11375
|
* <script type="module">
|
11312
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11376
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11313
11377
|
* Monster.Util.trimSpaces(" hello ")
|
11314
11378
|
* </script>
|
11315
11379
|
* ```
|
@@ -11318,7 +11382,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
11318
11382
|
*
|
11319
11383
|
* ```
|
11320
11384
|
* <script type="module">
|
11321
|
-
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11385
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/util/trimspaces.js';
|
11322
11386
|
* trimSpaces(' hello \\ ')
|
11323
11387
|
* </script>
|
11324
11388
|
* ```
|
@@ -11423,7 +11487,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11423
11487
|
*
|
11424
11488
|
* ```
|
11425
11489
|
* <script type="module">
|
11426
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11490
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11427
11491
|
* new Monster.DOM.fireEvent()
|
11428
11492
|
* </script>
|
11429
11493
|
* ```
|
@@ -11432,7 +11496,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
11432
11496
|
*
|
11433
11497
|
* ```
|
11434
11498
|
* <script type="module">
|
11435
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11499
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/events.js';
|
11436
11500
|
* fireEvent()
|
11437
11501
|
* </script>
|
11438
11502
|
* ```
|
@@ -11484,7 +11548,7 @@ function fireEvent(element, type) {
|
|
11484
11548
|
*
|
11485
11549
|
* ```
|
11486
11550
|
* <script type="module">
|
11487
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11551
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11488
11552
|
* new Monster.DOM.fireCustomEvent()
|
11489
11553
|
* </script>
|
11490
11554
|
* ```
|
@@ -11493,7 +11557,7 @@ function fireEvent(element, type) {
|
|
11493
11557
|
*
|
11494
11558
|
* ```
|
11495
11559
|
* <script type="module">
|
11496
|
-
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11560
|
+
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/events.js';
|
11497
11561
|
* fireCustomEvent()
|
11498
11562
|
* </script>
|
11499
11563
|
* ```
|
@@ -11552,7 +11616,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11552
11616
|
*
|
11553
11617
|
* ```
|
11554
11618
|
* <script type="module">
|
11555
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11619
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11556
11620
|
* new Monster.DOM.findTargetElementFromEvent()
|
11557
11621
|
* </script>
|
11558
11622
|
* ```
|
@@ -11561,7 +11625,7 @@ function fireCustomEvent(element, type, detail) {
|
|
11561
11625
|
*
|
11562
11626
|
* ```
|
11563
11627
|
* <script type="module">
|
11564
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11628
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/events.js';
|
11565
11629
|
* findTargetElementFromEvent()
|
11566
11630
|
* </script>
|
11567
11631
|
* ```
|
@@ -11632,7 +11696,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11632
11696
|
*
|
11633
11697
|
* ```
|
11634
11698
|
* <script type="module">
|
11635
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11699
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11636
11700
|
* console.log(Monster.DOM.getDocument())
|
11637
11701
|
* </script>
|
11638
11702
|
* ```
|
@@ -11641,7 +11705,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
11641
11705
|
*
|
11642
11706
|
* ```
|
11643
11707
|
* <script type="module">
|
11644
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11708
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/util.js';
|
11645
11709
|
* console.log(getDocument())
|
11646
11710
|
* </script>
|
11647
11711
|
* ```
|
@@ -11696,7 +11760,7 @@ function getDocument() {
|
|
11696
11760
|
*
|
11697
11761
|
* ```
|
11698
11762
|
* <script type="module">
|
11699
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11763
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11700
11764
|
* console.log(Monster.DOM.getWindow())
|
11701
11765
|
* </script>
|
11702
11766
|
* ```
|
@@ -11705,7 +11769,7 @@ function getDocument() {
|
|
11705
11769
|
*
|
11706
11770
|
* ```
|
11707
11771
|
* <script type="module">
|
11708
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11772
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/util.js';
|
11709
11773
|
* console.log(getWindow(null))
|
11710
11774
|
* </script>
|
11711
11775
|
* ```
|
@@ -11765,7 +11829,7 @@ function getWindow() {
|
|
11765
11829
|
*
|
11766
11830
|
* ```
|
11767
11831
|
* <script type="module">
|
11768
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11832
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11769
11833
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
11770
11834
|
* </script>
|
11771
11835
|
* ```
|
@@ -11774,7 +11838,7 @@ function getWindow() {
|
|
11774
11838
|
*
|
11775
11839
|
* ```
|
11776
11840
|
* <script type="module">
|
11777
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11841
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/util.js';
|
11778
11842
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
11779
11843
|
* </script>
|
11780
11844
|
* ```
|
@@ -11864,7 +11928,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11864
11928
|
*
|
11865
11929
|
* ```
|
11866
11930
|
* <script type="module">
|
11867
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11931
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11868
11932
|
* new Monster.DOM.getLocaleOfDocument()
|
11869
11933
|
* </script>
|
11870
11934
|
* ```
|
@@ -11873,7 +11937,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11873
11937
|
*
|
11874
11938
|
* ```
|
11875
11939
|
* <script type="module">
|
11876
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11940
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/locale.js';
|
11877
11941
|
* new getLocaleOfDocument()
|
11878
11942
|
* </script>
|
11879
11943
|
* ```
|
@@ -11966,7 +12030,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11966
12030
|
*
|
11967
12031
|
* ```
|
11968
12032
|
* <script type="module">
|
11969
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12033
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
11970
12034
|
* new Monster.I18n.Locale()
|
11971
12035
|
* </script>
|
11972
12036
|
* ```
|
@@ -11975,7 +12039,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11975
12039
|
*
|
11976
12040
|
* ```
|
11977
12041
|
* <script type="module">
|
11978
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12042
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/locale.js';
|
11979
12043
|
* new Locale()
|
11980
12044
|
* </script>
|
11981
12045
|
* ```
|
@@ -12168,7 +12232,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12168
12232
|
*
|
12169
12233
|
* ```
|
12170
12234
|
* <script type="module">
|
12171
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12235
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
12172
12236
|
* new Monster.I18n.createLocale()
|
12173
12237
|
* </script>
|
12174
12238
|
* ```
|
@@ -12177,7 +12241,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
12177
12241
|
*
|
12178
12242
|
* ```
|
12179
12243
|
* <script type="module">
|
12180
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12244
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/locale.js';
|
12181
12245
|
* createLocale()
|
12182
12246
|
* </script>
|
12183
12247
|
* ```
|
@@ -12353,7 +12417,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12353
12417
|
*
|
12354
12418
|
* ```
|
12355
12419
|
* <script type="module">
|
12356
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12420
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
12357
12421
|
* new Monster.I18n.Provider()
|
12358
12422
|
* </script>
|
12359
12423
|
* ```
|
@@ -12362,7 +12426,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12362
12426
|
*
|
12363
12427
|
* ```
|
12364
12428
|
* <script type="module">
|
12365
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12429
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/provider.js';
|
12366
12430
|
* new Provider()
|
12367
12431
|
* </script>
|
12368
12432
|
* ```
|
@@ -12465,7 +12529,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12465
12529
|
*
|
12466
12530
|
* ```html
|
12467
12531
|
* <script type="module">
|
12468
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12532
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
12469
12533
|
* new Monster.Types.BaseWithOptions()
|
12470
12534
|
* </script>
|
12471
12535
|
* ```
|
@@ -12474,7 +12538,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12474
12538
|
*
|
12475
12539
|
* ```html
|
12476
12540
|
* <script type="module">
|
12477
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12541
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/basewithoptions.js';
|
12478
12542
|
* new BaseWithOptions()
|
12479
12543
|
* </script>
|
12480
12544
|
* ```
|
@@ -12639,7 +12703,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12639
12703
|
*
|
12640
12704
|
* ```
|
12641
12705
|
* <script type="module">
|
12642
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12706
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
12643
12707
|
* new Monster.I18n.Translations()
|
12644
12708
|
* </script>
|
12645
12709
|
* ```
|
@@ -12648,15 +12712,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12648
12712
|
*
|
12649
12713
|
* ```
|
12650
12714
|
* <script type="module">
|
12651
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12715
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/translations.js';
|
12652
12716
|
* new Translations()
|
12653
12717
|
* </script>
|
12654
12718
|
* ```
|
12655
12719
|
*
|
12656
12720
|
* @example
|
12657
12721
|
*
|
12658
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12659
|
-
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12722
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/translations.js';
|
12723
|
+
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/locale.js';
|
12660
12724
|
*
|
12661
12725
|
* const translation = new Translations(parseLocale('en-GB'));
|
12662
12726
|
*
|
@@ -12928,7 +12992,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12928
12992
|
*
|
12929
12993
|
* ```
|
12930
12994
|
* <script type="module">
|
12931
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12995
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
12932
12996
|
* new Monster.I18n.Providers.Fetch()
|
12933
12997
|
* </script>
|
12934
12998
|
* ```
|
@@ -12937,14 +13001,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12937
13001
|
*
|
12938
13002
|
* ```
|
12939
13003
|
* <script type="module">
|
12940
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13004
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/providers/fetch.js';
|
12941
13005
|
* new Fetch()
|
12942
13006
|
* </script>
|
12943
13007
|
* ```
|
12944
13008
|
*
|
12945
13009
|
* @example <caption>das ist ein test</caption>
|
12946
13010
|
*
|
12947
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13011
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/i18n/providers/fetch.js';
|
12948
13012
|
*
|
12949
13013
|
* // fetch from API
|
12950
13014
|
* const translation = new Fetch('https://example.com/${language}.json').getTranslation('en-GB');
|
@@ -13174,7 +13238,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13174
13238
|
*
|
13175
13239
|
* ```
|
13176
13240
|
* <script type="module">
|
13177
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13241
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
13178
13242
|
* new Monster.Text.Formatter()
|
13179
13243
|
* </script>
|
13180
13244
|
* ```
|
@@ -13183,7 +13247,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13183
13247
|
*
|
13184
13248
|
* ```
|
13185
13249
|
* <script type="module">
|
13186
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13250
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/text/formatter.js';
|
13187
13251
|
* new Formatter()
|
13188
13252
|
* </script>
|
13189
13253
|
* ```
|
@@ -13228,7 +13292,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
13228
13292
|
*
|
13229
13293
|
* @example
|
13230
13294
|
*
|
13231
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13295
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/text/formatter.js';
|
13232
13296
|
*
|
13233
13297
|
* new Formatter({
|
13234
13298
|
* a: {
|
@@ -13573,7 +13637,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13573
13637
|
*
|
13574
13638
|
* ```
|
13575
13639
|
* <script type="module">
|
13576
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13640
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
13577
13641
|
* console.log(new Monster.Logging.Handler())
|
13578
13642
|
* </script>
|
13579
13643
|
* ```
|
@@ -13582,7 +13646,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13582
13646
|
*
|
13583
13647
|
* ```
|
13584
13648
|
* <script type="module">
|
13585
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13649
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/logging/handler.js';
|
13586
13650
|
* console.log(new Handler())
|
13587
13651
|
* </script>
|
13588
13652
|
* ```
|
@@ -13820,7 +13884,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13820
13884
|
*
|
13821
13885
|
* ```
|
13822
13886
|
* <script type="module">
|
13823
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13887
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
13824
13888
|
* console.log(new Monster.Logging.LogEntry())
|
13825
13889
|
* </script>
|
13826
13890
|
* ```
|
@@ -13829,7 +13893,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13829
13893
|
*
|
13830
13894
|
* ```
|
13831
13895
|
* <script type="module">
|
13832
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13896
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/logging/logentry.js';
|
13833
13897
|
* console.log(new LogEntry())
|
13834
13898
|
* </script>
|
13835
13899
|
* ```
|
@@ -14015,7 +14079,7 @@ var OFF = 0;
|
|
14015
14079
|
*
|
14016
14080
|
* ```
|
14017
14081
|
* <script type="module">
|
14018
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14082
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14019
14083
|
* new Monster.Logging.Logger()
|
14020
14084
|
* </script>
|
14021
14085
|
* ```
|
@@ -14024,7 +14088,7 @@ var OFF = 0;
|
|
14024
14088
|
*
|
14025
14089
|
* ```
|
14026
14090
|
* <script type="module">
|
14027
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14091
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/logging/logger.js';
|
14028
14092
|
* new Logger()
|
14029
14093
|
* </script>
|
14030
14094
|
* ```
|
@@ -14324,7 +14388,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14324
14388
|
*
|
14325
14389
|
* ```
|
14326
14390
|
* <script type="module">
|
14327
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14391
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14328
14392
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
14329
14393
|
* </script>
|
14330
14394
|
* ```
|
@@ -14333,7 +14397,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14333
14397
|
*
|
14334
14398
|
* ```
|
14335
14399
|
* <script type="module">
|
14336
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14400
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/logging/handler/console.js';
|
14337
14401
|
* console.log(new ConsoleHandler())
|
14338
14402
|
* </script>
|
14339
14403
|
* ```
|
@@ -14409,7 +14473,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14409
14473
|
*
|
14410
14474
|
* ```
|
14411
14475
|
* <script type="module">
|
14412
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14476
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14413
14477
|
* Monster.Math.random(1,10)
|
14414
14478
|
* // ↦ 5
|
14415
14479
|
* </script>
|
@@ -14419,7 +14483,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
14419
14483
|
*
|
14420
14484
|
* ```
|
14421
14485
|
* <script type="module">
|
14422
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14486
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/math/random.js';
|
14423
14487
|
* random(1,10)
|
14424
14488
|
* // ↦ 5
|
14425
14489
|
* </script>
|
@@ -14541,6 +14605,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
14541
14605
|
|
14542
14606
|
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); }
|
14543
14607
|
|
14608
|
+
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); } }
|
14609
|
+
|
14610
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
14611
|
+
|
14544
14612
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14545
14613
|
|
14546
14614
|
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); }
|
@@ -14576,7 +14644,7 @@ var internalCounter = 0;
|
|
14576
14644
|
*
|
14577
14645
|
* ```
|
14578
14646
|
* <script type="module">
|
14579
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14647
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14580
14648
|
* console.log(new Monster.Types.RandomID())
|
14581
14649
|
* </script>
|
14582
14650
|
* ```
|
@@ -14585,7 +14653,7 @@ var internalCounter = 0;
|
|
14585
14653
|
*
|
14586
14654
|
* ```
|
14587
14655
|
* <script type="module">
|
14588
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14656
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/randomid.js';
|
14589
14657
|
* console.log(new RandomID())
|
14590
14658
|
* </script>
|
14591
14659
|
* ```
|
@@ -14617,7 +14685,7 @@ var RandomID = /*#__PURE__*/function (_ID) {
|
|
14617
14685
|
return _this;
|
14618
14686
|
}
|
14619
14687
|
|
14620
|
-
return RandomID;
|
14688
|
+
return _createClass(RandomID);
|
14621
14689
|
}(_id_js__WEBPACK_IMPORTED_MODULE_3__.ID);
|
14622
14690
|
|
14623
14691
|
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_1__.assignToNamespace)('Monster.Types', RandomID);
|
@@ -14668,7 +14736,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14668
14736
|
*
|
14669
14737
|
* ```
|
14670
14738
|
* <script type="module">
|
14671
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14739
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14672
14740
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
14673
14741
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
14674
14742
|
* </script>
|
@@ -14678,7 +14746,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14678
14746
|
*
|
14679
14747
|
* ```
|
14680
14748
|
* <script type="module">
|
14681
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14749
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/version.js';
|
14682
14750
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
14683
14751
|
* console.log(new Version('1')) // ↦ 1.0.0
|
14684
14752
|
* </script>
|
@@ -14686,7 +14754,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14686
14754
|
*
|
14687
14755
|
* @example
|
14688
14756
|
*
|
14689
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14757
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/version.js';
|
14690
14758
|
*
|
14691
14759
|
* new Version('1.0.0') // ↦ 1.0.0
|
14692
14760
|
* new Version(1) // ↦ 1.0.0
|
@@ -14820,7 +14888,7 @@ var monsterVersion;
|
|
14820
14888
|
*
|
14821
14889
|
* ```
|
14822
14890
|
* <script type="module">
|
14823
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14891
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14824
14892
|
* console.log(Monster.getVersion())
|
14825
14893
|
* </script>
|
14826
14894
|
* ```
|
@@ -14829,7 +14897,7 @@ var monsterVersion;
|
|
14829
14897
|
*
|
14830
14898
|
* ```
|
14831
14899
|
* <script type="module">
|
14832
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14900
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/version.js';
|
14833
14901
|
* console.log(getVersion())
|
14834
14902
|
* </script>
|
14835
14903
|
* ```
|
@@ -14848,7 +14916,7 @@ function getVersion() {
|
|
14848
14916
|
/**#@+ dont touch, replaced by make with package.json version */
|
14849
14917
|
|
14850
14918
|
|
14851
|
-
monsterVersion = new Version('1.
|
14919
|
+
monsterVersion = new Version('1.30.0');
|
14852
14920
|
/**#@-*/
|
14853
14921
|
|
14854
14922
|
return monsterVersion;
|
@@ -14904,7 +14972,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14904
14972
|
*
|
14905
14973
|
* ```
|
14906
14974
|
* <script type="module">
|
14907
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14975
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
14908
14976
|
* new Monster.Util.Comparator()
|
14909
14977
|
* </script>
|
14910
14978
|
* ```
|
@@ -14913,7 +14981,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14913
14981
|
*
|
14914
14982
|
* ```
|
14915
14983
|
* <script type="module">
|
14916
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14984
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/util/comparator.js';
|
14917
14985
|
* console.log(new Comparator())
|
14918
14986
|
* </script>
|
14919
14987
|
* ```
|
@@ -14938,7 +15006,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
14938
15006
|
*
|
14939
15007
|
* @example
|
14940
15008
|
*
|
14941
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15009
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/util/comparator.js';
|
14942
15010
|
*
|
14943
15011
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
14944
15012
|
* // ↦ true
|
@@ -15151,7 +15219,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15151
15219
|
*
|
15152
15220
|
* ```
|
15153
15221
|
* <script type="module">
|
15154
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15222
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
|
15155
15223
|
* Monster.Util.deepFreeze({})
|
15156
15224
|
* </script>
|
15157
15225
|
* ```
|
@@ -15160,7 +15228,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
15160
15228
|
*
|
15161
15229
|
* ```
|
15162
15230
|
* <script type="module">
|
15163
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
15231
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/util/freeze.js';
|
15164
15232
|
* deepFreeze({})
|
15165
15233
|
* </script>
|
15166
15234
|
* ```
|