@schukai/monster 3.80.5 → 3.82.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/source/components/constants.mjs +0 -13
- package/source/components/datatable/change-button.mjs +0 -1
- package/source/components/datatable/columnbar.mjs +0 -1
- package/source/components/datatable/constants.mjs +0 -12
- package/source/components/datatable/dataset.mjs +0 -1
- package/source/components/datatable/datasource/dom.mjs +0 -1
- package/source/components/datatable/datasource/rest.mjs +0 -1
- package/source/components/datatable/datasource.mjs +0 -1
- package/source/components/datatable/datatable/header.mjs +0 -1
- package/source/components/datatable/datatable.mjs +0 -1
- package/source/components/datatable/embedded-pagination.mjs +0 -1
- package/source/components/datatable/filter/abstract-base.mjs +0 -1
- package/source/components/datatable/filter/date-range.mjs +0 -1
- package/source/components/datatable/filter/input.mjs +0 -1
- package/source/components/datatable/filter/range.mjs +0 -1
- package/source/components/datatable/filter/select.mjs +0 -1
- package/source/components/datatable/filter/settings.mjs +0 -2
- package/source/components/datatable/filter-button.mjs +0 -1
- package/source/components/datatable/filter.mjs +0 -1
- package/source/components/datatable/pagination.mjs +0 -1
- package/source/components/datatable/status.mjs +0 -1
- package/source/components/datatable/stylesheet/change-button.mjs +1 -1
- package/source/components/datatable/stylesheet/column-bar.mjs +1 -1
- package/source/components/datatable/stylesheet/dataset.mjs +1 -1
- package/source/components/datatable/stylesheet/datatable.mjs +1 -1
- package/source/components/datatable/stylesheet/embedded-pagination.mjs +1 -1
- package/source/components/datatable/stylesheet/filter-button.mjs +1 -1
- package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +1 -1
- package/source/components/datatable/stylesheet/filter-select.mjs +1 -1
- package/source/components/datatable/stylesheet/filter.mjs +1 -1
- package/source/components/datatable/stylesheet/pagination.mjs +1 -1
- package/source/components/datatable/stylesheet/save-button.mjs +1 -1
- package/source/components/datatable/stylesheet/status.mjs +1 -1
- package/source/components/form/action-button.mjs +0 -1
- package/source/components/form/api-button.mjs +0 -1
- package/source/components/form/button-bar.mjs +0 -1
- package/source/components/form/confirm-button.mjs +0 -2
- package/source/components/form/constants.mjs +0 -10
- package/source/components/form/context-error.mjs +0 -1
- package/source/components/form/message-state-button.mjs +0 -35
- package/source/components/form/popper-button.mjs +0 -2
- package/source/components/form/select.mjs +2 -4
- package/source/components/form/stylesheet/action-button.mjs +1 -1
- package/source/components/form/stylesheet/button-bar.mjs +1 -1
- package/source/components/form/stylesheet/context-error.mjs +1 -1
- package/source/components/form/stylesheet/context-help.mjs +1 -1
- package/source/components/form/stylesheet/select.mjs +1 -1
- package/source/components/form/template.mjs +0 -1
- package/source/components/form/tree-select.mjs +0 -2
- package/source/components/form/types/state.mjs +0 -2
- package/source/components/host/call-button.mjs +0 -3
- package/source/components/host/collapse.mjs +0 -1
- package/source/components/host/config-manager.mjs +0 -1
- package/source/components/host/constants.mjs +0 -1
- package/source/components/host/host.mjs +0 -1
- package/source/components/host/overlay.mjs +0 -1
- package/source/components/host/stylesheet/call-button.mjs +1 -1
- package/source/components/host/stylesheet/host.mjs +1 -1
- package/source/components/host/stylesheet/overlay.mjs +1 -1
- package/source/components/host/stylesheet/toggle-button.mjs +1 -1
- package/source/components/host/stylesheet/viewer.mjs +1 -1
- package/source/components/host/toggle-button.mjs +0 -1
- package/source/components/host/viewer.mjs +0 -1
- package/source/components/layout/iframe.mjs +264 -250
- package/source/components/layout/stylesheet/collapse.mjs +1 -1
- package/source/components/layout/stylesheet/details.mjs +1 -1
- package/source/components/layout/stylesheet/panel.mjs +1 -1
- package/source/components/layout/stylesheet/slider.mjs +1 -1
- package/source/components/layout/stylesheet/split-panel.mjs +1 -1
- package/source/components/layout/stylesheet/tabs.mjs +1 -1
- package/source/components/layout/stylesheet/width-toggle.mjs +1 -1
- package/source/components/navigation/stylesheet/table-of-content.mjs +1 -1
- package/source/components/notify/constants.mjs +0 -1
- package/source/components/notify/message.mjs +0 -1
- package/source/components/notify/notify.mjs +0 -1
- package/source/components/notify/stylesheet/message.mjs +1 -1
- package/source/components/state/log/entry.mjs +0 -1
- package/source/components/state/state.mjs +0 -6
- package/source/components/style/badge.css +2 -0
- package/source/components/style/border.css +2 -0
- package/source/components/style/button.css +2 -0
- package/source/components/style/card.css +2 -0
- package/source/components/style/color.css +2 -0
- package/source/components/style/common.css +2 -0
- package/source/components/style/control.css +2 -0
- package/source/components/style/data-grid.css +2 -0
- package/source/components/style/display.css +2 -0
- package/source/components/style/floating-ui.css +2 -0
- package/source/components/style/form.css +2 -0
- package/source/components/style/host.css +2 -0
- package/source/components/style/icons.css +2 -0
- package/source/components/style/link.css +2 -0
- package/source/components/style/normalize.css +2 -0
- package/source/components/style/popper.css +2 -0
- package/source/components/style/property.css +2 -0
- package/source/components/style/ripple.css +2 -0
- package/source/components/style/skeleton.css +2 -0
- package/source/components/style/space.css +2 -0
- package/source/components/style/spinner.css +2 -0
- package/source/components/style/table.css +2 -0
- package/source/components/style/theme.css +2 -0
- package/source/components/style/typography.css +2 -0
- package/source/components/stylesheet/card.mjs +1 -1
- package/source/components/stylesheet/icons.mjs +1 -1
- package/source/components/stylesheet/property.mjs +1 -1
- package/source/components/stylesheet/space.mjs +1 -1
- package/source/components/tree-menu/stylesheet/tree-menu.mjs +1 -1
- package/source/constants.mjs +0 -2
- package/source/constraints/abstract.mjs +0 -1
- package/source/constraints/abstractoperator.mjs +0 -1
- package/source/data/buildmap.mjs +0 -5
- package/source/data/buildtree.mjs +0 -1
- package/source/data/datasource/dom.mjs +0 -1
- package/source/data/datasource/server/restapi/data-fetch-error.mjs +0 -1
- package/source/data/datasource/server/restapi/writeerror.mjs +0 -1
- package/source/data/datasource/server/restapi.mjs +0 -2
- package/source/data/datasource/server/webconnect.mjs +0 -1
- package/source/data/datasource/server.mjs +0 -1
- package/source/data/datasource/storage/localstorage.mjs +0 -1
- package/source/data/datasource/storage/sessionstorage.mjs +0 -1
- package/source/data/datasource/storage.mjs +0 -1
- package/source/data/datasource.mjs +0 -2
- package/source/data/diff.mjs +0 -1
- package/source/data/extend.mjs +0 -1
- package/source/dom/assembler.mjs +0 -2
- package/source/dom/attributes.mjs +0 -13
- package/source/dom/constants.mjs +0 -59
- package/source/dom/customelement.mjs +0 -7
- package/source/dom/dimension.mjs +0 -2
- package/source/dom/events.mjs +0 -3
- package/source/dom/focusmanager.mjs +0 -1
- package/source/dom/locale.mjs +0 -1
- package/source/dom/ready.mjs +0 -2
- package/source/dom/resource/data.mjs +0 -1
- package/source/dom/resource/link/stylesheet.mjs +0 -1
- package/source/dom/resource/link.mjs +0 -1
- package/source/dom/resource/script.mjs +0 -1
- package/source/dom/resource.mjs +0 -1
- package/source/dom/resourcemanager.mjs +0 -1
- package/source/dom/template.mjs +0 -2
- package/source/dom/theme.mjs +0 -2
- package/source/dom/updater.mjs +0 -1
- package/source/dom/util.mjs +0 -7
- package/source/dom/worker/factory.mjs +0 -1
- package/source/i18n/locale.mjs +0 -3
- package/source/i18n/providers/fetch.mjs +0 -1
- package/source/logging/logentry.mjs +0 -1
- package/source/math/random.mjs +0 -1
- package/source/monster.mjs +0 -1
- package/source/net/webconnect.mjs +0 -1
- package/source/text/formatter.mjs +0 -1
- package/source/text/generate-range-comparison-expression.mjs +0 -1
- package/source/types/binary.mjs +0 -2
- package/source/types/global.mjs +0 -3
- package/source/types/id.mjs +0 -1
- package/source/types/internal.mjs +0 -1
- package/source/types/mediatype.mjs +0 -4
- package/source/types/node.mjs +0 -1
- package/source/types/validate.mjs +0 -10
- package/source/util/clone.mjs +0 -1
- package/source/util/comparator.mjs +0 -1
- package/source/util/freeze.mjs +0 -1
- package/source/util/runtime.mjs +0 -8
- package/source/util/trimspaces.mjs +0 -1
- package/source/components/stylesheet/mixin/form.mjs +0 -38
package/source/dom/ready.mjs
CHANGED
@@ -29,7 +29,6 @@ export { domReady, windowReady };
|
|
29
29
|
*
|
30
30
|
* @license AGPLv3
|
31
31
|
* @since 1.31.0
|
32
|
-
* @memberOf Monster.DOM
|
33
32
|
* @summary variable to check if dom is ready
|
34
33
|
* @type {Promise}
|
35
34
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event
|
@@ -54,7 +53,6 @@ const domReady = new Promise((resolve) => {
|
|
54
53
|
*
|
55
54
|
* @license AGPLv3
|
56
55
|
* @since 1.31.0
|
57
|
-
* @memberOf Monster.DOM
|
58
56
|
* @summary variable to check if window is ready
|
59
57
|
* @type {Promise}
|
60
58
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event
|
package/source/dom/resource.mjs
CHANGED
package/source/dom/template.mjs
CHANGED
@@ -28,7 +28,6 @@ export { Template };
|
|
28
28
|
* @license AGPLv3
|
29
29
|
* @since 1.6.0
|
30
30
|
* @copyright schukai GmbH
|
31
|
-
* @memberOf Monster.DOM
|
32
31
|
* @summary A template class
|
33
32
|
*/
|
34
33
|
class Template extends Base {
|
@@ -132,7 +131,6 @@ class Template extends Base {
|
|
132
131
|
* @license AGPLv3
|
133
132
|
* @since 1.7.0
|
134
133
|
* @copyright schukai GmbH
|
135
|
-
* @memberOf Monster.DOM
|
136
134
|
* @throws {Error} template id not found.
|
137
135
|
* @throws {TypeError} value is not a string
|
138
136
|
*/
|
package/source/dom/theme.mjs
CHANGED
@@ -26,7 +26,6 @@ export { Theme, getDocumentTheme };
|
|
26
26
|
* @license AGPLv3
|
27
27
|
* @since 1.7.0
|
28
28
|
* @copyright schukai GmbH
|
29
|
-
* @memberOf Monster.DOM
|
30
29
|
* @summary A theme class
|
31
30
|
*/
|
32
31
|
class Theme extends Base {
|
@@ -72,7 +71,6 @@ class Theme extends Base {
|
|
72
71
|
* the default theme name is `monster`.
|
73
72
|
*
|
74
73
|
* @return {Theme}
|
75
|
-
* @memberOf Monster.DOM
|
76
74
|
* @license AGPLv3
|
77
75
|
* @since 1.7.0
|
78
76
|
*/
|
package/source/dom/updater.mjs
CHANGED
@@ -911,7 +911,6 @@ function handleInputControlAttributeUpdate(element, name, value) {
|
|
911
911
|
* @return {Promise[]}
|
912
912
|
* @license AGPLv3
|
913
913
|
* @since 1.23.0
|
914
|
-
* @memberOf Monster.DOM
|
915
914
|
* @throws {TypeError} elements is not an instance of NodeList, HTMLElement or Set
|
916
915
|
* @throws {TypeError} the context of the function is not an instance of HTMLElement
|
917
916
|
* @throws {TypeError} symbol must be an instance of Symbol
|
package/source/dom/util.mjs
CHANGED
@@ -59,7 +59,6 @@ export {
|
|
59
59
|
* @license AGPLv3
|
60
60
|
* @since 1.6.0
|
61
61
|
* @copyright schukai GmbH
|
62
|
-
* @memberOf Monster.DOM
|
63
62
|
* @throws {Error} not supported environment
|
64
63
|
*/
|
65
64
|
function getDocument() {
|
@@ -107,7 +106,6 @@ function getDocument() {
|
|
107
106
|
* @license AGPLv3
|
108
107
|
* @since 1.6.0
|
109
108
|
* @copyright schukai GmbH
|
110
|
-
* @memberOf Monster.DOM
|
111
109
|
* @throws {Error} not supported environment
|
112
110
|
*/
|
113
111
|
function getWindow() {
|
@@ -153,7 +151,6 @@ function getWindow() {
|
|
153
151
|
* @license AGPLv3
|
154
152
|
* @since 1.6.0
|
155
153
|
* @copyright schukai GmbH
|
156
|
-
* @memberOf Monster.DOM
|
157
154
|
* @throws {Error} not supported environment
|
158
155
|
* @throws {TypeError} value is not a string
|
159
156
|
*/
|
@@ -174,7 +171,6 @@ function getDocumentFragmentFromString(html) {
|
|
174
171
|
* @param {HTMLElement|ShadowRoot} element - The starting element or shadow root to search from.
|
175
172
|
* @param {string} targetId - The ID of the target element to find.
|
176
173
|
* @return {HTMLElement|null} - The ancestor element with the specified ID, or null if not found.
|
177
|
-
* @memberOf Monster.DOM
|
178
174
|
* @since 3.29.0
|
179
175
|
* @license AGPLv3
|
180
176
|
* @copyright schukai GmbH
|
@@ -223,7 +219,6 @@ function findElementWithIdUpwards(element, targetId) {
|
|
223
219
|
* @param {HTMLElement|ShadowRoot} element - The starting element or shadow root to search from.
|
224
220
|
* @param {string} selector - The selector of the target element to find.
|
225
221
|
* @return {HTMLElement|null} - The ancestor element with the specified selector, or null if not found.
|
226
|
-
* @memberOf Monster.DOM
|
227
222
|
* @since 3.55.0
|
228
223
|
*/
|
229
224
|
function findElementWithSelectorUpwards(element, selector) {
|
@@ -298,7 +293,6 @@ function traverseShadowRoots(element) {
|
|
298
293
|
* @param {HTMLElement} element
|
299
294
|
* @return {*}
|
300
295
|
* @throws {Error} Invalid argument. Expected an HTMLElement.
|
301
|
-
* @memberOf Monster.DOM
|
302
296
|
* @since 3.36.0
|
303
297
|
*/
|
304
298
|
function getContainingDocument(element) {
|
@@ -320,7 +314,6 @@ function getContainingDocument(element) {
|
|
320
314
|
*
|
321
315
|
* @return {string[]}
|
322
316
|
* @since 4.0.0
|
323
|
-
* @memberOf Monster.DOM
|
324
317
|
* @return {string[]}
|
325
318
|
*/
|
326
319
|
function getRegisteredCustomElements() {
|
package/source/i18n/locale.mjs
CHANGED
@@ -66,7 +66,6 @@ const localeStringSymbol = Symbol("localeString");
|
|
66
66
|
* @license AGPLv3
|
67
67
|
* @since 1.13.0
|
68
68
|
* @copyright schukai GmbH
|
69
|
-
* @memberOf Monster.I18n
|
70
69
|
* @see https://datatracker.ietf.org/doc/html/rfc3066
|
71
70
|
*/
|
72
71
|
class Locale extends Base {
|
@@ -190,7 +189,6 @@ class Locale extends Base {
|
|
190
189
|
* @property {string} variants
|
191
190
|
* @property {string} extlang
|
192
191
|
* @property {string} privateUse
|
193
|
-
* @memberOf Monster.I18n
|
194
192
|
*/
|
195
193
|
|
196
194
|
/**
|
@@ -258,7 +256,6 @@ class Locale extends Base {
|
|
258
256
|
* @license AGPLv3
|
259
257
|
* @since 1.14.0
|
260
258
|
* @copyright schukai GmbH
|
261
|
-
* @memberOf Monster.I18n
|
262
259
|
* @throws {TypeError} value is not a string
|
263
260
|
* @throws {Error} unsupported locale
|
264
261
|
*/
|
package/source/math/random.mjs
CHANGED
@@ -22,7 +22,6 @@ export { random };
|
|
22
22
|
* @param {number} min starting value of the definition set (default is 0)
|
23
23
|
* @param {number} max end value of the definition set (default is 1000000000)
|
24
24
|
* @return {number}
|
25
|
-
* @memberOf Monster.Math
|
26
25
|
* @throws {Error} missing crypt
|
27
26
|
* @throws {Error} we cannot generate numbers larger than 53 bits.
|
28
27
|
* @throws {Error} the distance is too small to create a random number.
|
package/source/monster.mjs
CHANGED
@@ -183,7 +183,6 @@ function connectServer(resolve, reject) {
|
|
183
183
|
* @license AGPLv3
|
184
184
|
* @since 3.1.0
|
185
185
|
* @copyright schukai GmbH
|
186
|
-
* @memberOf Monster.Net
|
187
186
|
* @summary The LocalStorage class encapsulates the access to data objects.
|
188
187
|
*/
|
189
188
|
class WebConnect extends BaseWithOptions {
|
@@ -60,7 +60,6 @@ export { generateRangeComparisonExpression };
|
|
60
60
|
* @param {string} [options.leOp='<='] - The comparison operator for less than or equal to to use.
|
61
61
|
* @return {string} The generated comparison expression.
|
62
62
|
* @throws {Error} If the input is invalid.
|
63
|
-
* @memberOf Monster.Text
|
64
63
|
* @summary Generates a comparison expression based on a range of values.
|
65
64
|
*/
|
66
65
|
function generateRangeComparisonExpression(
|
package/source/types/binary.mjs
CHANGED
@@ -22,7 +22,6 @@ export { toBinary, fromBinary };
|
|
22
22
|
* @param {String} binary
|
23
23
|
* @return {String}
|
24
24
|
* @throws {TypeError} value is not a string
|
25
|
-
* @memberOf Monster.Types
|
26
25
|
* @license AGPLv3
|
27
26
|
* @since 1.18.0
|
28
27
|
*/
|
@@ -48,7 +47,6 @@ function toBinary(string) {
|
|
48
47
|
* @param {String} binary
|
49
48
|
* @return {String}
|
50
49
|
* @throws {TypeError} value is not a string
|
51
|
-
* @memberOf Monster.Types
|
52
50
|
* @license AGPLv3
|
53
51
|
* @since 1.18.0
|
54
52
|
*/
|
package/source/types/global.mjs
CHANGED
@@ -73,7 +73,6 @@ let globalReference;
|
|
73
73
|
*
|
74
74
|
* @license AGPLv3
|
75
75
|
* @since 1.6.0
|
76
|
-
* @memberOf Monster.Types
|
77
76
|
* @return {object} globalThis
|
78
77
|
*/
|
79
78
|
function getGlobal() {
|
@@ -105,7 +104,6 @@ function getGlobal() {
|
|
105
104
|
*
|
106
105
|
* @license AGPLv3
|
107
106
|
* @since 1.6.0
|
108
|
-
* @memberOf Monster.Types
|
109
107
|
* @param {string} name
|
110
108
|
* @return {object}
|
111
109
|
* @throws {Error} the object is not defined
|
@@ -144,7 +142,6 @@ function getGlobalObject(name) {
|
|
144
142
|
*
|
145
143
|
* @license AGPLv3
|
146
144
|
* @since 1.6.0
|
147
|
-
* @memberOf Monster.Types
|
148
145
|
* @param {string} name
|
149
146
|
* @return {object}
|
150
147
|
* @throws {TypeError} value is not a function
|
package/source/types/id.mjs
CHANGED
@@ -28,7 +28,6 @@ const internal = Symbol("internal");
|
|
28
28
|
* @typedef {Object} Parameter
|
29
29
|
* @property {string} key
|
30
30
|
* @property {string} value
|
31
|
-
* @memberOf Monster.Types
|
32
31
|
*/
|
33
32
|
|
34
33
|
/**
|
@@ -37,7 +36,6 @@ const internal = Symbol("internal");
|
|
37
36
|
* @license AGPLv3
|
38
37
|
* @since 1.8.0
|
39
38
|
* @copyright schukai GmbH
|
40
|
-
* @memberOf Monster.Types
|
41
39
|
*/
|
42
40
|
class MediaType extends Base {
|
43
41
|
/**
|
@@ -162,7 +160,6 @@ class MediaType extends Base {
|
|
162
160
|
* @throws {TypeError} the mimetype can not be parsed
|
163
161
|
* @throws {TypeError} blank value is not allowed
|
164
162
|
* @throws {TypeError} malformed data url
|
165
|
-
* @memberOf Monster.Types
|
166
163
|
*/
|
167
164
|
function parseMediaType(mediatype) {
|
168
165
|
const regex =
|
@@ -191,7 +188,6 @@ function parseMediaType(mediatype) {
|
|
191
188
|
* @since 1.18.0
|
192
189
|
* @param {String} parameter
|
193
190
|
* @return {Monster.Types.Parameter[]|undefined}
|
194
|
-
* @memberOf Monster.Types
|
195
191
|
*/
|
196
192
|
function parseParameter(parameter) {
|
197
193
|
if (!isString(parameter)) {
|
package/source/types/node.mjs
CHANGED
@@ -38,7 +38,6 @@ const treeStructureSymbol = Symbol("treeStructure");
|
|
38
38
|
* @license AGPLv3
|
39
39
|
* @since 1.26.0
|
40
40
|
* @copyright schukai GmbH
|
41
|
-
* @memberOf Monster.Types
|
42
41
|
* @summary A Node Class
|
43
42
|
* @see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Iteration_protocols
|
44
43
|
*/
|
@@ -54,7 +54,6 @@ export {
|
|
54
54
|
* @license AGPLv3
|
55
55
|
* @since 1.2.0
|
56
56
|
* @copyright schukai GmbH
|
57
|
-
* @memberOf Monster.Types
|
58
57
|
* @throws {TypeError} value is not a primitive
|
59
58
|
* @see {@link isPrimitive}
|
60
59
|
* @see {@link Monster.Types.isPrimitive}
|
@@ -83,7 +82,6 @@ function validateIterable(value) {
|
|
83
82
|
* @license AGPLv3
|
84
83
|
* @since 1.0.0
|
85
84
|
* @copyright schukai GmbH
|
86
|
-
* @memberOf Monster.Types
|
87
85
|
* @throws {TypeError} value is not a primitive
|
88
86
|
* @see {@link isPrimitive}
|
89
87
|
* @see {@link Monster.Types.isPrimitive}
|
@@ -113,7 +111,6 @@ function validatePrimitive(value) {
|
|
113
111
|
* @license AGPLv3
|
114
112
|
* @since 1.0.0
|
115
113
|
* @copyright schukai GmbH
|
116
|
-
* @memberOf Monster.Types
|
117
114
|
|
118
115
|
* @throws {TypeError} value is not primitive
|
119
116
|
*/
|
@@ -140,7 +137,6 @@ function validateBoolean(value) {
|
|
140
137
|
* @license AGPLv3
|
141
138
|
* @since 1.0.0
|
142
139
|
* @copyright schukai GmbH
|
143
|
-
* @memberOf Monster.Types
|
144
140
|
* @throws {TypeError} value is not a string
|
145
141
|
*/
|
146
142
|
function validateString(value) {
|
@@ -167,7 +163,6 @@ function validateString(value) {
|
|
167
163
|
* @license AGPLv3
|
168
164
|
* @since 1.0.0
|
169
165
|
* @copyright schukai GmbH
|
170
|
-
* @memberOf Monster.Types
|
171
166
|
* @throws {TypeError} value is not a object
|
172
167
|
*/
|
173
168
|
function validateObject(value) {
|
@@ -194,7 +189,6 @@ function validateObject(value) {
|
|
194
189
|
* @license AGPLv3
|
195
190
|
* @since 1.5.0
|
196
191
|
* @copyright schukai GmbH
|
197
|
-
* @memberOf Monster.Types
|
198
192
|
* @throws {TypeError} value is not an instance of
|
199
193
|
*/
|
200
194
|
function validateInstance(value, instance) {
|
@@ -229,7 +223,6 @@ function validateInstance(value, instance) {
|
|
229
223
|
* @license AGPLv3
|
230
224
|
* @since 1.0.0
|
231
225
|
* @copyright schukai GmbH
|
232
|
-
* @memberOf Monster.Types
|
233
226
|
* @throws {TypeError} value is not an array
|
234
227
|
*/
|
235
228
|
function validateArray(value) {
|
@@ -255,7 +248,6 @@ function validateArray(value) {
|
|
255
248
|
* @license AGPLv3
|
256
249
|
* @since 1.9.0
|
257
250
|
* @copyright schukai GmbH
|
258
|
-
* @memberOf Monster.Types
|
259
251
|
* @throws {TypeError} value is not an symbol
|
260
252
|
*/
|
261
253
|
function validateSymbol(value) {
|
@@ -282,7 +274,6 @@ function validateSymbol(value) {
|
|
282
274
|
* @license AGPLv3
|
283
275
|
* @since 1.0.0
|
284
276
|
* @copyright schukai GmbH
|
285
|
-
* @memberOf Monster.Types
|
286
277
|
* @throws {TypeError} value is not a function
|
287
278
|
*/
|
288
279
|
function validateFunction(value) {
|
@@ -309,7 +300,6 @@ function validateFunction(value) {
|
|
309
300
|
* @license AGPLv3
|
310
301
|
* @since 1.4.0
|
311
302
|
* @copyright schukai GmbH
|
312
|
-
* @memberOf Monster.Types
|
313
303
|
* @throws {TypeError} value is not an integer
|
314
304
|
*/
|
315
305
|
function validateInteger(value) {
|
package/source/util/clone.mjs
CHANGED
package/source/util/freeze.mjs
CHANGED
package/source/util/runtime.mjs
CHANGED
@@ -14,37 +14,30 @@
|
|
14
14
|
|
15
15
|
const ENV_AWS_LAMBDA = "aws-lambda";
|
16
16
|
/**
|
17
|
-
* @memberOf Monster.Util
|
18
17
|
* @type {string}
|
19
18
|
*/
|
20
19
|
const ENV_GOOGLE_FUNCTIONS = "google-functions";
|
21
20
|
/**
|
22
|
-
* @memberOf Monster.Util
|
23
21
|
* @type {string}
|
24
22
|
*/
|
25
23
|
const ENV_ELECTRON = "electron";
|
26
24
|
/**
|
27
|
-
* @memberOf Monster.Util
|
28
25
|
* @type {string}
|
29
26
|
*/
|
30
27
|
const ENV_NODE = "node";
|
31
28
|
/**
|
32
|
-
* @memberOf Monster.Util
|
33
29
|
* @type {string}
|
34
30
|
*/
|
35
31
|
const ENV_BROWSER = "browser";
|
36
32
|
/**
|
37
|
-
* @memberOf Monster.Util
|
38
33
|
* @type {string}
|
39
34
|
*/
|
40
35
|
const ENV_WEB_WORKER = "web-worker";
|
41
36
|
/**
|
42
|
-
* @memberOf Monster.Util
|
43
37
|
* @type {string}
|
44
38
|
*/
|
45
39
|
const ENV_DENO = "deno";
|
46
40
|
/**
|
47
|
-
* @memberOf Monster.Util
|
48
41
|
* @type {string}
|
49
42
|
*/
|
50
43
|
const ENV_UNKNOWN = "unknown";
|
@@ -63,7 +56,6 @@ const ENV_UNKNOWN = "unknown";
|
|
63
56
|
* - 'unknown': Unknown environment
|
64
57
|
*
|
65
58
|
* @since 3.34.0
|
66
|
-
* @memberOf Monster.Util
|
67
59
|
* @return {string} The detected runtime environment. Possible values are:
|
68
60
|
*/
|
69
61
|
function detectRuntimeEnvironment() {
|
@@ -1,38 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright © schukai GmbH and all contributing authors, 2024. All rights reserved.
|
3
|
-
* Node module: @schukai/monster
|
4
|
-
*
|
5
|
-
* This source code is licensed under the GNU Affero General Public License version 3 (AGPLv3).
|
6
|
-
* The full text of the license can be found at: https://www.gnu.org/licenses/agpl-3.0.en.html
|
7
|
-
*
|
8
|
-
* For those who do not wish to adhere to the AGPLv3, a commercial license is available.
|
9
|
-
* Acquiring a commercial license allows you to use this software without complying with the AGPLv3 terms.
|
10
|
-
* For more information about purchasing a commercial license, please contact schukai GmbH.
|
11
|
-
*/
|
12
|
-
|
13
|
-
import { addAttributeToken } from "../../../dom/attributes.mjs";
|
14
|
-
import { ATTRIBUTE_ERRORMESSAGE } from "../../../dom/constants.mjs";
|
15
|
-
|
16
|
-
export { FormStyleSheet };
|
17
|
-
|
18
|
-
/**
|
19
|
-
* @private
|
20
|
-
* @type {CSSStyleSheet}
|
21
|
-
*/
|
22
|
-
const FormStyleSheet = new CSSStyleSheet();
|
23
|
-
|
24
|
-
try {
|
25
|
-
FormStyleSheet.insertRule(
|
26
|
-
`
|
27
|
-
@layer form {
|
28
|
-
|
29
|
-
}`,
|
30
|
-
0,
|
31
|
-
);
|
32
|
-
} catch (e) {
|
33
|
-
addAttributeToken(
|
34
|
-
document.getRootNode().querySelector("html"),
|
35
|
-
ATTRIBUTE_ERRORMESSAGE,
|
36
|
-
e + "",
|
37
|
-
);
|
38
|
-
}
|