@schukai/monster 3.80.2 → 3.80.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/source/components/content/copy.mjs +7 -4
- package/source/components/datatable/change-button.mjs +1 -1
- package/source/components/datatable/columnbar.mjs +1 -1
- package/source/components/datatable/dataset.mjs +3 -3
- package/source/components/datatable/datasource/dom.mjs +2 -2
- package/source/components/datatable/datasource/rest.mjs +7 -7
- package/source/components/datatable/datasource.mjs +3 -3
- package/source/components/datatable/datatable/header.mjs +11 -11
- package/source/components/datatable/datatable.mjs +15 -15
- package/source/components/datatable/embedded-pagination.mjs +2 -2
- package/source/components/datatable/filter/date-range.mjs +5 -5
- package/source/components/datatable/filter/input.mjs +2 -2
- package/source/components/datatable/filter/range.mjs +3 -3
- package/source/components/datatable/filter/settings.mjs +5 -5
- package/source/components/datatable/filter/util.mjs +3 -3
- package/source/components/datatable/filter-button.mjs +1 -1
- package/source/components/datatable/filter.mjs +11 -11
- package/source/components/datatable/pagination.mjs +3 -3
- package/source/components/datatable/save-button.mjs +1 -1
- package/source/components/datatable/status.mjs +1 -1
- package/source/components/form/action-button.mjs +2 -2
- package/source/components/form/api-button.mjs +1 -1
- package/source/components/form/button-bar.mjs +3 -3
- package/source/components/form/confirm-button.mjs +4 -4
- package/source/components/form/context-error.mjs +4 -4
- package/source/components/form/context-help.mjs +1 -1
- package/source/components/form/field-set.mjs +2 -2
- package/source/components/form/form.mjs +3 -3
- package/source/components/form/message-state-button.mjs +6 -6
- package/source/components/form/popper-button.mjs +1 -1
- package/source/components/form/reload.mjs +5 -22
- package/source/components/form/select.mjs +11 -10
- package/source/components/form/shadow-reload.mjs +1 -1
- package/source/components/form/state-button.mjs +1 -1
- package/source/components/form/template.mjs +4 -4
- package/source/components/form/toggle-switch.mjs +1 -1
- package/source/components/form/tree-select.mjs +1 -1
- package/source/components/form/util/floating-ui.mjs +1 -1
- package/source/components/host/call-button.mjs +1 -1
- package/source/components/host/config-manager.mjs +6 -6
- package/source/components/host/host.mjs +8 -8
- package/source/components/host/overlay.mjs +13 -13
- package/source/components/host/toggle-button.mjs +1 -1
- package/source/components/host/util.mjs +1 -1
- package/source/components/host/viewer.mjs +5 -5
- package/source/components/layout/collapse.mjs +20 -19
- package/source/components/layout/details.mjs +5 -5
- package/source/components/layout/iframe.mjs +2 -2
- package/source/components/layout/panel.mjs +3 -3
- package/source/components/layout/popper.mjs +1 -1
- package/source/components/layout/slider.mjs +6 -6
- package/source/components/layout/split-panel.mjs +3 -3
- package/source/components/layout/tabs.mjs +3 -9
- package/source/components/layout/width-toggle.mjs +4 -4
- package/source/components/navigation/table-of-content.mjs +3 -3
- package/source/components/notify/message.mjs +0 -1
- package/source/components/state/log/entry.mjs +6 -6
- package/source/components/state/log.mjs +3 -39
- package/source/components/state/state.mjs +1 -1
- package/source/components/tree-menu/dragable-tree-menu.mjs +2 -2
- package/source/components/tree-menu/tree-menu.mjs +1 -1
- package/source/constraints/abstract.mjs +2 -2
- package/source/constraints/abstractoperator.mjs +1 -1
- package/source/constraints/andoperator.mjs +5 -5
- package/source/constraints/invalid.mjs +5 -5
- package/source/constraints/isarray.mjs +5 -5
- package/source/constraints/isobject.mjs +5 -5
- package/source/constraints/oroperator.mjs +5 -5
- package/source/constraints/valid.mjs +4 -4
- package/source/data/buildmap.mjs +2 -1
- package/source/data/datasource/dom.mjs +1 -1
- package/source/data/datasource/server/restapi/data-fetch-error.mjs +1 -1
- package/source/data/datasource/server/restapi/writeerror.mjs +1 -1
- package/source/data/datasource/server/restapi.mjs +2 -2
- package/source/data/datasource/server/webconnect.mjs +4 -4
- package/source/data/datasource/server.mjs +5 -5
- package/source/data/datasource/storage/localstorage.mjs +1 -1
- package/source/data/datasource/storage/sessionstorage.mjs +1 -1
- package/source/data/datasource/storage.mjs +1 -1
- package/source/data/datasource.mjs +4 -5
- package/source/data/pathfinder.mjs +10 -9
- package/source/data/pipe.mjs +5 -4
- package/source/data/transformer.mjs +23 -11
- package/source/dom/assembler.mjs +2 -2
- package/source/dom/attributes.mjs +2 -2
- package/source/dom/customcontrol.mjs +1 -1
- package/source/dom/customelement.mjs +36 -67
- package/source/dom/dimension.mjs +3 -3
- package/source/dom/focusmanager.mjs +1 -1
- package/source/dom/locale.mjs +1 -1
- package/source/dom/resource/data.mjs +1 -1
- package/source/dom/resource/link/stylesheet.mjs +1 -1
- package/source/dom/resource/link.mjs +1 -1
- package/source/dom/resource/script.mjs +1 -1
- package/source/dom/template.mjs +2 -2
- package/source/dom/theme.mjs +2 -2
- package/source/dom/updater.mjs +5 -6
- package/source/dom/util/extract-keys.mjs +1 -1
- package/source/dom/util/init-options-from-attributes.mjs +1 -1
- package/source/dom/util/set-option-from-attribute.mjs +1 -1
- package/source/dom/util.mjs +9 -9
- package/source/i18n/formatter.mjs +1 -1
- package/source/i18n/locale.mjs +2 -2
- package/source/i18n/provider.mjs +1 -1
- package/source/i18n/providers/embed.mjs +1 -3
- package/source/i18n/translations.mjs +2 -2
- package/source/logging/handler/console.mjs +1 -1
- package/source/logging/handler.mjs +11 -11
- package/source/logging/logentry.mjs +2 -2
- package/source/logging/logger.mjs +11 -11
- package/source/math/random.mjs +2 -2
- package/source/monster.mjs +1 -0
- package/source/net/webconnect/message.mjs +3 -3
- package/source/net/webconnect.mjs +10 -10
- package/source/text/bracketed-key-value-hash.mjs +2 -2
- package/source/text/generate-range-comparison-expression.mjs +1 -1
- package/source/types/base.mjs +4 -4
- package/source/types/basewithoptions.mjs +3 -4
- package/source/types/dataurl.mjs +6 -8
- package/source/types/global.mjs +2 -2
- package/source/types/internal.mjs +3 -3
- package/source/types/is.mjs +10 -20
- package/source/types/mediatype.mjs +1 -1
- package/source/types/node.mjs +1 -1
- package/source/types/nodelist.mjs +7 -7
- package/source/types/observablequeue.mjs +7 -7
- package/source/types/observer.mjs +6 -6
- package/source/types/proxyobserver.mjs +8 -8
- package/source/types/queue.mjs +3 -3
- package/source/types/stack.mjs +3 -3
- package/source/types/tokenlist.mjs +12 -12
- package/source/types/uniquequeue.mjs +2 -2
- package/source/types/version.mjs +4 -4
- package/source/util/clone.mjs +2 -2
- package/source/util/comparator.mjs +1 -2
- package/source/util/deadmansswitch.mjs +7 -5
- package/source/util/freeze.mjs +1 -1
- package/source/util/processing.mjs +2 -2
- package/source/util/runtime.mjs +1 -1
|
@@ -90,7 +90,7 @@ const MODE_READ_WRITE = "readwrite";
|
|
|
90
90
|
class ConfigManager extends CustomElement {
|
|
91
91
|
/**
|
|
92
92
|
* This method is called by the `instanceof` operator.
|
|
93
|
-
* @
|
|
93
|
+
* @return {symbol}
|
|
94
94
|
*/
|
|
95
95
|
static get [instanceSymbol]() {
|
|
96
96
|
return Symbol.for("@schukai/component-host/config-manager@@instance");
|
|
@@ -109,7 +109,7 @@ class ConfigManager extends CustomElement {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* @
|
|
112
|
+
* @return {Promise}
|
|
113
113
|
*/
|
|
114
114
|
ready() {
|
|
115
115
|
return Promise.all(this[initializedPromiseSymbol]);
|
|
@@ -142,7 +142,7 @@ class ConfigManager extends CustomElement {
|
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* @param {string} key
|
|
145
|
-
* @
|
|
145
|
+
* @return {Promise<unknown>}
|
|
146
146
|
*/
|
|
147
147
|
getConfig(key) {
|
|
148
148
|
return this.ready().then(() => {
|
|
@@ -152,7 +152,7 @@ class ConfigManager extends CustomElement {
|
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* @param {string} key
|
|
155
|
-
* @
|
|
155
|
+
* @return {Promise<boolean>}
|
|
156
156
|
*/
|
|
157
157
|
hasConfig(key) {
|
|
158
158
|
return this.ready()
|
|
@@ -170,7 +170,7 @@ class ConfigManager extends CustomElement {
|
|
|
170
170
|
/**
|
|
171
171
|
* @param {string} key
|
|
172
172
|
* @param {*} value
|
|
173
|
-
* @
|
|
173
|
+
* @return {Promise<unknown>}
|
|
174
174
|
*/
|
|
175
175
|
setConfig(key, value) {
|
|
176
176
|
return this.ready().then(() => {
|
|
@@ -266,7 +266,7 @@ function getObjectStore(mode) {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
|
-
* @
|
|
269
|
+
* @return {Promise<unknown>}
|
|
270
270
|
*/
|
|
271
271
|
function clearObjectStore() {
|
|
272
272
|
const store = getObjectStore.call(this, "readwrite");
|
|
@@ -113,7 +113,7 @@ const resourceManagerSymbol = Symbol("resourceManager");
|
|
|
113
113
|
class Host extends CustomElement {
|
|
114
114
|
/**
|
|
115
115
|
* This method is called by the `instanceof` operator.
|
|
116
|
-
* @
|
|
116
|
+
* @return {symbol}
|
|
117
117
|
*/
|
|
118
118
|
static get [instanceSymbol]() {
|
|
119
119
|
return Symbol.for("@schukai/component-host/Host@@instance");
|
|
@@ -139,7 +139,7 @@ class Host extends CustomElement {
|
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* @param key
|
|
142
|
-
* @
|
|
142
|
+
* @return {Promise}
|
|
143
143
|
*/
|
|
144
144
|
getConfig(key) {
|
|
145
145
|
if (this[configManagerElementSymbol] instanceof HTMLElement === false) {
|
|
@@ -166,7 +166,7 @@ class Host extends CustomElement {
|
|
|
166
166
|
*
|
|
167
167
|
* @param {string} key
|
|
168
168
|
* @param {*} value
|
|
169
|
-
* @
|
|
169
|
+
* @return {Promise}
|
|
170
170
|
*/
|
|
171
171
|
setConfig(key, value) {
|
|
172
172
|
if (this[configManagerElementSymbol] instanceof HTMLElement === false) {
|
|
@@ -287,7 +287,7 @@ class Host extends CustomElement {
|
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* @see {@link https://monsterjs.org/en/doc/monster/Monster.DOM.FocusManager.html|Monster.DOM.FocusManager}
|
|
290
|
-
* @
|
|
290
|
+
* @return {*}
|
|
291
291
|
*/
|
|
292
292
|
get focusManager() {
|
|
293
293
|
return this[focusManagerSymbol];
|
|
@@ -295,7 +295,7 @@ class Host extends CustomElement {
|
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
297
|
* @see {@link https://monsterjs.org/en/doc/monster/Monster.DOM.ResourceManager.html|Monster.DOM.ResourceManager}
|
|
298
|
-
* @
|
|
298
|
+
* @return {*}
|
|
299
299
|
*/
|
|
300
300
|
get resourceManager() {
|
|
301
301
|
return this[resourceManagerSymbol];
|
|
@@ -303,7 +303,7 @@ class Host extends CustomElement {
|
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
*
|
|
306
|
-
* @
|
|
306
|
+
* @return {Monster.Components.Host.Host}
|
|
307
307
|
* @throws {Error} There is no overlay element defined.
|
|
308
308
|
*/
|
|
309
309
|
toggleOverlay() {
|
|
@@ -358,7 +358,7 @@ class Host extends CustomElement {
|
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
*
|
|
361
|
-
* @
|
|
361
|
+
* @return {Monster.I18n.Locale}
|
|
362
362
|
*/
|
|
363
363
|
get locale() {
|
|
364
364
|
return getLocaleOfDocument();
|
|
@@ -366,7 +366,7 @@ class Host extends CustomElement {
|
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
*
|
|
369
|
-
* @
|
|
369
|
+
* @return {Translations}
|
|
370
370
|
*/
|
|
371
371
|
get translations() {
|
|
372
372
|
return getDocumentTranslations();
|
|
@@ -104,15 +104,15 @@ const ATTRIBUTE_VALUE_OVERLAY_OPEN = "overlay-open";
|
|
|
104
104
|
* @copyright schukai GmbH
|
|
105
105
|
* @memberOf Monster.Components.Host
|
|
106
106
|
* @summary A simple overlay component
|
|
107
|
-
* @fires
|
|
108
|
-
* @fires
|
|
109
|
-
* @fires
|
|
110
|
-
* @fires
|
|
107
|
+
* @fires monster-overlay-before-open
|
|
108
|
+
* @fires monster-overlay-open
|
|
109
|
+
* @fires monster-overlay-before-close
|
|
110
|
+
* @fires monster-overlay-closed
|
|
111
111
|
*/
|
|
112
112
|
class Overlay extends CustomElement {
|
|
113
113
|
/**
|
|
114
114
|
* This method is called by the `instanceof` operator.
|
|
115
|
-
* @
|
|
115
|
+
* @return {symbol}
|
|
116
116
|
*/
|
|
117
117
|
static get [instanceSymbol]() {
|
|
118
118
|
return Symbol.for("@schukai/monster/components/host/overlay@@instance");
|
|
@@ -182,7 +182,7 @@ class Overlay extends CustomElement {
|
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
*
|
|
185
|
-
* @
|
|
185
|
+
* @return {Monster.Components.Host.Overlay}
|
|
186
186
|
*/
|
|
187
187
|
[assembleMethodSymbol]() {
|
|
188
188
|
super[assembleMethodSymbol]();
|
|
@@ -193,7 +193,7 @@ class Overlay extends CustomElement {
|
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
*
|
|
196
|
-
* @
|
|
196
|
+
* @return {Monster.Components.Host.Overlay}
|
|
197
197
|
*/
|
|
198
198
|
toggle() {
|
|
199
199
|
if (this[overlayElementSymbol].classList.contains("open")) {
|
|
@@ -205,11 +205,11 @@ class Overlay extends CustomElement {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
|
-
* @
|
|
209
|
-
* @fires
|
|
210
|
-
* @fires
|
|
211
|
-
* @fires
|
|
212
|
-
* @fires
|
|
208
|
+
* @return {Monster.Components.Host.Overlay}
|
|
209
|
+
* @fires monster-overlay-before-open
|
|
210
|
+
* @fires monster-overlay-open
|
|
211
|
+
* @fires monster-overlay-before-close
|
|
212
|
+
* @fires monster-overlay-closed
|
|
213
213
|
*/
|
|
214
214
|
open() {
|
|
215
215
|
fireCustomEvent(this, "monster-overlay-before-open", {});
|
|
@@ -227,7 +227,7 @@ class Overlay extends CustomElement {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* @
|
|
230
|
+
* @return {Monster.Components.Host.Overlay}
|
|
231
231
|
*/
|
|
232
232
|
close() {
|
|
233
233
|
fireCustomEvent(this, "monster-overlay-before-close", {});
|
|
@@ -62,7 +62,7 @@ export { ToggleButton };
|
|
|
62
62
|
class ToggleButton extends CallButton {
|
|
63
63
|
/**
|
|
64
64
|
* This method is called by the `instanceof` operator.
|
|
65
|
-
* @
|
|
65
|
+
* @return {symbol}
|
|
66
66
|
*/
|
|
67
67
|
static get [instanceSymbol]() {
|
|
68
68
|
return Symbol.for("@schukai/component-host/toggle-button@instance");
|
|
@@ -25,7 +25,7 @@ export { generateUniqueConfigKey };
|
|
|
25
25
|
* @param {string} componentName - The name of the component.
|
|
26
26
|
* @param {string} id - A unique identifier for the component.
|
|
27
27
|
* @param {string} prefix - A prefix to use in the unique key.
|
|
28
|
-
* @
|
|
28
|
+
* @return {string} The generated unique configuration key.
|
|
29
29
|
*/
|
|
30
30
|
function generateUniqueConfigKey(componentName, id, prefix) {
|
|
31
31
|
// Get the browser location without parameters
|
|
@@ -67,7 +67,7 @@ const viewerElementSymbol = Symbol("viewerElement");
|
|
|
67
67
|
class Viewer extends CustomElement {
|
|
68
68
|
/**
|
|
69
69
|
* This method is called by the `instanceof` operator.
|
|
70
|
-
* @
|
|
70
|
+
* @return {symbol}
|
|
71
71
|
*/
|
|
72
72
|
static get [instanceSymbol]() {
|
|
73
73
|
return Symbol.for("@schukai/monster/components/host/viewer@@instance");
|
|
@@ -209,7 +209,7 @@ class Viewer extends CustomElement {
|
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
*
|
|
212
|
-
* @
|
|
212
|
+
* @return {Monster.Components.Host.Viewer}
|
|
213
213
|
*/
|
|
214
214
|
[assembleMethodSymbol]() {
|
|
215
215
|
super[assembleMethodSymbol]();
|
|
@@ -237,7 +237,7 @@ class Viewer extends CustomElement {
|
|
|
237
237
|
/**
|
|
238
238
|
* @private
|
|
239
239
|
* @param variable
|
|
240
|
-
* @
|
|
240
|
+
* @return {boolean}
|
|
241
241
|
*/
|
|
242
242
|
function isURL(variable) {
|
|
243
243
|
try {
|
|
@@ -251,7 +251,7 @@ function isURL(variable) {
|
|
|
251
251
|
/**
|
|
252
252
|
* @private
|
|
253
253
|
* @param variable
|
|
254
|
-
* @
|
|
254
|
+
* @return {boolean}
|
|
255
255
|
*/
|
|
256
256
|
function isBlob(variable) {
|
|
257
257
|
return variable instanceof Blob;
|
|
@@ -260,7 +260,7 @@ function isBlob(variable) {
|
|
|
260
260
|
/**
|
|
261
261
|
* @private
|
|
262
262
|
* @param blob
|
|
263
|
-
* @
|
|
263
|
+
* @return {Promise<unknown>}
|
|
264
264
|
*/
|
|
265
265
|
function blobToText(blob) {
|
|
266
266
|
return new Promise((resolve, reject) => {
|
|
@@ -93,7 +93,7 @@ const nameSymbol = Symbol("name");
|
|
|
93
93
|
class Collapse extends CustomElement {
|
|
94
94
|
/**
|
|
95
95
|
* This method is called by the `instanceof` operator.
|
|
96
|
-
* @
|
|
96
|
+
* @return {symbol}
|
|
97
97
|
*/
|
|
98
98
|
static get [instanceSymbol]() {
|
|
99
99
|
return Symbol.for("@schukai/monster/components/layout/collapse@@instance");
|
|
@@ -143,7 +143,7 @@ class Collapse extends CustomElement {
|
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
*
|
|
146
|
-
* @
|
|
146
|
+
* @return {void}
|
|
147
147
|
*/
|
|
148
148
|
[assembleMethodSymbol]() {
|
|
149
149
|
super[assembleMethodSymbol]();
|
|
@@ -158,7 +158,7 @@ class Collapse extends CustomElement {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* @
|
|
161
|
+
* @return {void}
|
|
162
162
|
*/
|
|
163
163
|
connectedCallback() {
|
|
164
164
|
super.connectedCallback();
|
|
@@ -166,14 +166,14 @@ class Collapse extends CustomElement {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* @
|
|
169
|
+
* @return {void}
|
|
170
170
|
*/
|
|
171
171
|
disconnectedCallback() {
|
|
172
172
|
super.disconnectedCallback();
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* @
|
|
176
|
+
* @return {Collapse}
|
|
177
177
|
*/
|
|
178
178
|
toggle() {
|
|
179
179
|
if (this[detailsElementSymbol].classList.contains("active")) {
|
|
@@ -185,14 +185,14 @@ class Collapse extends CustomElement {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* @
|
|
188
|
+
* @return {boolean}
|
|
189
189
|
*/
|
|
190
190
|
isClosed() {
|
|
191
191
|
return !this[detailsElementSymbol].classList.contains("active");
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
* @
|
|
195
|
+
* @return {boolean}
|
|
196
196
|
*/
|
|
197
197
|
isOpen() {
|
|
198
198
|
return !this.isClosed();
|
|
@@ -200,9 +200,9 @@ class Collapse extends CustomElement {
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Open the collapse
|
|
203
|
-
* @
|
|
204
|
-
* @fires monster-collapse-before-open
|
|
205
|
-
* @fires monster-collapse-open
|
|
203
|
+
* @return {Collapse}
|
|
204
|
+
* @fires monster-collapse-before-open This event is fired before the collapse is opened.
|
|
205
|
+
* @fires monster-collapse-open This event is fired after the collapse is opened.
|
|
206
206
|
*/
|
|
207
207
|
open() {
|
|
208
208
|
let node;
|
|
@@ -244,9 +244,9 @@ class Collapse extends CustomElement {
|
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Close the collapse
|
|
247
|
-
* @
|
|
248
|
-
* @fires monster-collapse-before-close
|
|
249
|
-
* @fires monster-collapse-closed
|
|
247
|
+
* @return {Collapse}
|
|
248
|
+
* @fires monster-collapse-before-close This event is fired before the collapse is closed.
|
|
249
|
+
* @fires monster-collapse-closed This event is fired after the collapse is closed.
|
|
250
250
|
*/
|
|
251
251
|
close() {
|
|
252
252
|
if (!this[detailsElementSymbol].classList.contains("active")) {
|
|
@@ -284,7 +284,7 @@ class Collapse extends CustomElement {
|
|
|
284
284
|
/**
|
|
285
285
|
* This method is called when the element is inserted into a document, including into a shadow tree.
|
|
286
286
|
* @return {Collapse}
|
|
287
|
-
* @fires
|
|
287
|
+
* @fires monster-collapse-adjust-height This event is fired when the height is adjusted. As a detail, the height is passed.
|
|
288
288
|
*/
|
|
289
289
|
adjustHeight() {
|
|
290
290
|
adjustHeight.call(this);
|
|
@@ -294,8 +294,7 @@ class Collapse extends CustomElement {
|
|
|
294
294
|
|
|
295
295
|
/**
|
|
296
296
|
* @private
|
|
297
|
-
* @
|
|
298
|
-
* @fires event:monster-collapse-adjust-height
|
|
297
|
+
* @return {void}
|
|
299
298
|
*/
|
|
300
299
|
function adjustHeight() {
|
|
301
300
|
let height = 0;
|
|
@@ -336,7 +335,9 @@ function adjustHeight() {
|
|
|
336
335
|
"important",
|
|
337
336
|
);
|
|
338
337
|
|
|
339
|
-
fireCustomEvent(this, "monster-" + this[nameSymbol] + "-adjust-height", {
|
|
338
|
+
fireCustomEvent(this, "monster-" + this[nameSymbol] + "-adjust-height", {
|
|
339
|
+
height,
|
|
340
|
+
});
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
function updateResizeObserverObservation() {
|
|
@@ -399,7 +400,7 @@ function initControlReferences() {
|
|
|
399
400
|
|
|
400
401
|
/**
|
|
401
402
|
* @private
|
|
402
|
-
* @
|
|
403
|
+
* @return {string}
|
|
403
404
|
*/
|
|
404
405
|
function getConfigKey() {
|
|
405
406
|
return generateUniqueConfigKey(this[nameSymbol], this.id, "state");
|
|
@@ -434,7 +435,7 @@ function updateStateConfig() {
|
|
|
434
435
|
|
|
435
436
|
/**
|
|
436
437
|
* @private
|
|
437
|
-
* @
|
|
438
|
+
* @return {Promise}
|
|
438
439
|
*/
|
|
439
440
|
function initStateFromHostConfig() {
|
|
440
441
|
if (!this.getOption("features.persistState")) {
|
|
@@ -55,7 +55,7 @@ const buttonEventHandlerSymbol = Symbol("buttonEventHandler");
|
|
|
55
55
|
class Details extends Collapse {
|
|
56
56
|
/**
|
|
57
57
|
* This method is called by the `instanceof` operator.
|
|
58
|
-
* @
|
|
58
|
+
* @return {symbol}
|
|
59
59
|
*/
|
|
60
60
|
static get [instanceSymbol]() {
|
|
61
61
|
return Symbol.for("@schukai/monster/components/layout/details@@instance");
|
|
@@ -93,7 +93,7 @@ class Details extends Collapse {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* @
|
|
96
|
+
* @return {void}
|
|
97
97
|
*/
|
|
98
98
|
[assembleMethodSymbol]() {
|
|
99
99
|
super[assembleMethodSymbol]();
|
|
@@ -104,7 +104,7 @@ class Details extends Collapse {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* @
|
|
107
|
+
* @return {void}
|
|
108
108
|
*/
|
|
109
109
|
connectedCallback() {
|
|
110
110
|
super.connectedCallback();
|
|
@@ -127,7 +127,7 @@ class Details extends Collapse {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* @
|
|
130
|
+
* @return {Array<CSSStyleSheet>}
|
|
131
131
|
*/
|
|
132
132
|
static getCSSStyleSheet() {
|
|
133
133
|
const css = super.getCSSStyleSheet();
|
|
@@ -210,7 +210,7 @@ function initButtonLabel() {
|
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* @private
|
|
213
|
-
* @
|
|
213
|
+
* @return {string}
|
|
214
214
|
*/
|
|
215
215
|
function getConfigKey() {
|
|
216
216
|
return generateUniqueConfigKey("details", this.id, "state");
|
|
@@ -69,7 +69,7 @@ const timerCallbackSymbol = Symbol("timerCallback");
|
|
|
69
69
|
class Iframe extends CustomElement {
|
|
70
70
|
/**
|
|
71
71
|
* This method is called by the `instanceof` operator.
|
|
72
|
-
* @
|
|
72
|
+
* @return {symbol}
|
|
73
73
|
*/
|
|
74
74
|
static get [instanceSymbol]() {
|
|
75
75
|
return Symbol.for("@schukai/monster/components/layout/iframe@@instance");
|
|
@@ -191,7 +191,7 @@ function calcHeight() {
|
|
|
191
191
|
/**
|
|
192
192
|
* Calculate the maximum height of an element based on the window's inner height
|
|
193
193
|
* @param element
|
|
194
|
-
* @
|
|
194
|
+
* @return {*}
|
|
195
195
|
*/
|
|
196
196
|
function calculateMaximumHeight(element) {
|
|
197
197
|
let totalBottomBorder = 0;
|
|
@@ -57,7 +57,7 @@ const timerCallbackSymbol = Symbol("timerCallback");
|
|
|
57
57
|
class Panel extends CustomElement {
|
|
58
58
|
/**
|
|
59
59
|
* This method is called by the `instanceof` operator.
|
|
60
|
-
* @
|
|
60
|
+
* @return {symbol}
|
|
61
61
|
*/
|
|
62
62
|
static get [instanceSymbol]() {
|
|
63
63
|
return Symbol.for("@schukai/monster/components/layout/panel");
|
|
@@ -84,7 +84,7 @@ class Panel extends CustomElement {
|
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
|
-
* @
|
|
87
|
+
* @return {Monster.Components.Host.Viewer}
|
|
88
88
|
*/
|
|
89
89
|
[assembleMethodSymbol]() {
|
|
90
90
|
super[assembleMethodSymbol]();
|
|
@@ -152,7 +152,7 @@ function calcHeight() {
|
|
|
152
152
|
/**
|
|
153
153
|
* Calculate the maximum height of an element based on the window's inner height
|
|
154
154
|
* @param element
|
|
155
|
-
* @
|
|
155
|
+
* @return {*}
|
|
156
156
|
*/
|
|
157
157
|
function calculateMaximumHeight(element) {
|
|
158
158
|
let totalBottomBorder = 0;
|
|
@@ -98,7 +98,7 @@ const arrowElementSymbol = Symbol("arrowElement");
|
|
|
98
98
|
class Popper extends CustomElement {
|
|
99
99
|
/**
|
|
100
100
|
* This method is called by the `instanceof` operator.
|
|
101
|
-
* @
|
|
101
|
+
* @return {symbol}
|
|
102
102
|
*/
|
|
103
103
|
static get [instanceSymbol]() {
|
|
104
104
|
return Symbol.for("@schukai/monster/components/layout/popper@@instance");
|
|
@@ -74,7 +74,7 @@ const ATTRIBUTE_CLONE_FROM = ATTRIBUTE_PREFIX + "clone-from";
|
|
|
74
74
|
class Slider extends CustomElement {
|
|
75
75
|
/**
|
|
76
76
|
* This method is called by the `instanceof` operator.
|
|
77
|
-
* @
|
|
77
|
+
* @return {symbol}
|
|
78
78
|
*/
|
|
79
79
|
static get [instanceSymbol]() {
|
|
80
80
|
return Symbol.for("@schukai/monster/components/layout/slider@@instance");
|
|
@@ -170,7 +170,7 @@ class Slider extends CustomElement {
|
|
|
170
170
|
* moves the slider to the given index
|
|
171
171
|
*
|
|
172
172
|
* @param index
|
|
173
|
-
* @
|
|
173
|
+
* @return {void}
|
|
174
174
|
*/
|
|
175
175
|
moveTo(index) {
|
|
176
176
|
return moveTo.call(this, index);
|
|
@@ -366,7 +366,7 @@ function initCarousel() {
|
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
* @private
|
|
369
|
-
* @
|
|
369
|
+
* @return {{slides: unknown[], totalSlides: number}}
|
|
370
370
|
*/
|
|
371
371
|
function getSlidesAndTotal() {
|
|
372
372
|
const slides = Array.from(getSlottedElements.call(this, ":scope", null));
|
|
@@ -376,7 +376,7 @@ function getSlidesAndTotal() {
|
|
|
376
376
|
|
|
377
377
|
/**
|
|
378
378
|
* @private
|
|
379
|
-
* @
|
|
379
|
+
* @return {number}
|
|
380
380
|
*/
|
|
381
381
|
function next() {
|
|
382
382
|
const { slides, totalSlides } = getSlidesAndTotal.call(this);
|
|
@@ -399,7 +399,7 @@ function next() {
|
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
401
|
* @private
|
|
402
|
-
* @
|
|
402
|
+
* @return {number}
|
|
403
403
|
*/
|
|
404
404
|
function prev() {
|
|
405
405
|
const prevIndex = this[configSymbol].currentIndex - 1;
|
|
@@ -584,7 +584,7 @@ function startDragging(e, type) {
|
|
|
584
584
|
* @private
|
|
585
585
|
* @param e
|
|
586
586
|
* @param type
|
|
587
|
-
* @
|
|
587
|
+
* @return {*|number|number}
|
|
588
588
|
*/
|
|
589
589
|
function getPositionX(e, type) {
|
|
590
590
|
return type === "mouse" ? e.pageX : e.touches[0].clientX;
|
|
@@ -80,7 +80,7 @@ const TYPE_HORIZONTAL = "horizontal";
|
|
|
80
80
|
class SplitPanel extends CustomElement {
|
|
81
81
|
/**
|
|
82
82
|
* This method is called by the `instanceof` operator.
|
|
83
|
-
* @
|
|
83
|
+
* @return {symbol}
|
|
84
84
|
*/
|
|
85
85
|
static get [instanceSymbol]() {
|
|
86
86
|
return Symbol.for("@schukai/monster/components/layout/split-panel");
|
|
@@ -151,7 +151,7 @@ class SplitPanel extends CustomElement {
|
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
|
-
* @
|
|
154
|
+
* @return {Monster.Components.Host.Viewer}
|
|
155
155
|
*/
|
|
156
156
|
[assembleMethodSymbol]() {
|
|
157
157
|
super[assembleMethodSymbol]();
|
|
@@ -200,7 +200,7 @@ class SplitPanel extends CustomElement {
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Set the dimensions of the panel based on the split type.
|
|
203
|
-
* @fires
|
|
203
|
+
* @fires monster-dimension-changed
|
|
204
204
|
*/
|
|
205
205
|
function applyPanelDimensions() {
|
|
206
206
|
const splitType = this.getOption("splitType");
|
|
@@ -154,8 +154,7 @@ const resizeObserverSymbol = Symbol("resizeObserver");
|
|
|
154
154
|
class Tabs extends CustomElement {
|
|
155
155
|
/**
|
|
156
156
|
* This method is called by the `instanceof` operator.
|
|
157
|
-
* @
|
|
158
|
-
* @since 1.10.0
|
|
157
|
+
* @return {symbol}
|
|
159
158
|
*/
|
|
160
159
|
static get [instanceSymbol]() {
|
|
161
160
|
return Symbol.for("@schukai/monster/components/layout/tabs");
|
|
@@ -316,7 +315,7 @@ class Tabs extends CustomElement {
|
|
|
316
315
|
*
|
|
317
316
|
* The tabs have to be named with the `data-monster-name` attribute.
|
|
318
317
|
*
|
|
319
|
-
* @
|
|
318
|
+
* @return {string|null}
|
|
320
319
|
*/
|
|
321
320
|
getActiveTab() {
|
|
322
321
|
const nodes = getSlottedElements.call(this);
|
|
@@ -664,14 +663,9 @@ function initEventHandler() {
|
|
|
664
663
|
}
|
|
665
664
|
};
|
|
666
665
|
|
|
667
|
-
/**
|
|
668
|
-
* event:monster-tab-remove
|
|
669
|
-
* @event Monster.Components.Layout.event:monster-tab-remove
|
|
670
|
-
*/
|
|
671
|
-
|
|
672
666
|
/**
|
|
673
667
|
* @param {Event} event
|
|
674
|
-
* @fires
|
|
668
|
+
* @fires monster-tab-remove
|
|
675
669
|
*/
|
|
676
670
|
this[removeTabEventHandler] = (event) => {
|
|
677
671
|
const element = findTargetElementFromEvent(
|
|
@@ -70,7 +70,7 @@ const MODE_WIDE = "wide";
|
|
|
70
70
|
class WidthToggle extends CustomElement {
|
|
71
71
|
/**
|
|
72
72
|
* This method is called by the `instanceof` operator.
|
|
73
|
-
* @
|
|
73
|
+
* @return {symbol}
|
|
74
74
|
*/
|
|
75
75
|
static get [instanceSymbol]() {
|
|
76
76
|
return Symbol.for(
|
|
@@ -106,7 +106,7 @@ class WidthToggle extends CustomElement {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* @
|
|
109
|
+
* @return {void}
|
|
110
110
|
*/
|
|
111
111
|
[assembleMethodSymbol]() {
|
|
112
112
|
super[assembleMethodSymbol]();
|
|
@@ -126,7 +126,7 @@ class WidthToggle extends CustomElement {
|
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* @param {string} mode
|
|
129
|
-
* @
|
|
129
|
+
* @return {WidthToggle}
|
|
130
130
|
* @throws {Error} no shadow-root is defined
|
|
131
131
|
*/
|
|
132
132
|
setWidth(mode) {
|
|
@@ -143,7 +143,7 @@ class WidthToggle extends CustomElement {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* @
|
|
146
|
+
* @return {CSSStyleSheet[]}
|
|
147
147
|
*/
|
|
148
148
|
static getCSSStyleSheet() {
|
|
149
149
|
return [WidthToggleStyleSheet];
|
|
@@ -83,7 +83,7 @@ const scrollableEventHandlerSymbol = Symbol("scrollableEventHandler");
|
|
|
83
83
|
class TableOfContent extends CustomElement {
|
|
84
84
|
/**
|
|
85
85
|
* This method is called by the `instanceof` operator.
|
|
86
|
-
* @
|
|
86
|
+
* @return {symbol}
|
|
87
87
|
*/
|
|
88
88
|
static get [instanceSymbol]() {
|
|
89
89
|
return Symbol.for(
|
|
@@ -354,7 +354,7 @@ function initNavigation() {
|
|
|
354
354
|
* Recursively creates a nested list (UL) from a list of heading elements.
|
|
355
355
|
* @param {HTMLElement[]} nodeList - The list of heading elements.
|
|
356
356
|
* @param {number} currentLevel - The current heading level we are processing.
|
|
357
|
-
* @
|
|
357
|
+
* @return {{sublist: HTMLUListElement, lastIndex: number}} An object containing the sublist and the index of the last processed element.
|
|
358
358
|
*/
|
|
359
359
|
function createListFromHeadings(nodeList, currentLevel = 1) {
|
|
360
360
|
const self = this;
|
|
@@ -409,7 +409,7 @@ function createListFromHeadings(nodeList, currentLevel = 1) {
|
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
411
|
* @private
|
|
412
|
-
* @
|
|
412
|
+
* @return {*[]}
|
|
413
413
|
*/
|
|
414
414
|
function getHeadings() {
|
|
415
415
|
const allHeadings = [];
|
|
@@ -96,7 +96,6 @@ const removeEventHandlerSymbol = Symbol("removeEventHandler");
|
|
|
96
96
|
* @copyright schukai GmbH
|
|
97
97
|
* @memberOf Monster.Components.Notify
|
|
98
98
|
* @summary A highly configurable select control
|
|
99
|
-
* @fires Monster.Components.Notify.event:monster-xxxx
|
|
100
99
|
*/
|
|
101
100
|
class Message extends CustomElement {
|
|
102
101
|
/**
|