@schukai/monster 3.64.1 → 3.65.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/example/components/form/button.mjs +1 -1
- package/example/components/form/field-set.mjs +4 -0
- package/example/components/form/select.mjs +1 -1
- package/package.json +2 -1
- package/source/components/datatable/datatable/header.mjs +228 -221
- package/source/components/datatable/style/dataset.pcss +1 -0
- package/source/components/datatable/style/datatable.pcss +1 -0
- package/source/components/datatable/stylesheet/dataset.mjs +1 -1
- package/source/components/datatable/stylesheet/datatable.mjs +1 -1
- package/source/components/form/button.mjs +263 -281
- package/source/components/form/field-set.mjs +300 -0
- package/source/components/form/popper.mjs +13 -480
- package/source/components/form/style/field-set.pcss +13 -0
- package/source/components/form/stylesheet/button-bar.mjs +1 -1
- package/source/components/form/stylesheet/confirm-button.mjs +1 -1
- package/source/components/form/stylesheet/field-set.mjs +31 -0
- package/source/components/form/stylesheet/form.mjs +1 -1
- package/source/components/host/collapse.mjs +14 -516
- package/source/components/host/config-manager.mjs +9 -2
- package/source/components/host/constants.mjs +9 -4
- package/source/components/host/details.mjs +14 -253
- package/source/components/host/stylesheet/host.mjs +1 -1
- package/source/components/host/stylesheet/overlay.mjs +1 -1
- package/source/components/layout/collapse.mjs +542 -0
- package/source/components/layout/details.mjs +271 -0
- package/source/components/layout/popper.mjs +476 -0
- package/source/components/layout/tabs.mjs +3 -3
- package/source/components/layout/width-toggle.mjs +3 -3
- package/source/components/navigation/style/table-of-content.pcss +84 -0
- package/source/components/navigation/stylesheet/table-of-content.mjs +31 -0
- package/source/components/navigation/table-of-content.mjs +418 -0
- package/source/components/state/stylesheet/state.mjs +1 -1
- package/source/components/style/link.pcss +0 -1
- package/source/components/style/mixin/typography.pcss +7 -7
- package/source/components/style/typography.pcss +1 -1
- package/source/components/stylesheet/typography.mjs +1 -1
- package/source/dom/ready.mjs +10 -4
- package/source/monster.mjs +5 -84
- package/source/types/proxyobserver.mjs +4 -2
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/tests.js +4 -4
- package/source/components/form/form-field.mjs +0 -341
- package/source/components/form/style/form-field.pcss +0 -4
- package/source/components/form/stylesheet/form-field.mjs +0 -31
- /package/source/components/{host → layout}/style/collapse.pcss +0 -0
- /package/source/components/{host → layout}/style/details.pcss +0 -0
- /package/source/components/{form → layout}/style/popper.pcss +0 -0
- /package/source/components/{host → layout}/stylesheet/collapse.mjs +0 -0
- /package/source/components/{host → layout}/stylesheet/details.mjs +0 -0
- /package/source/components/{form → layout}/stylesheet/popper.mjs +0 -0
@@ -0,0 +1,476 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright © schukai GmbH and all contributing authors, {{copyRightYear}}. 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
|
+
import {instanceSymbol} from "../../constants.mjs";
|
13
|
+
import {
|
14
|
+
addAttributeToken,
|
15
|
+
removeAttributeToken,
|
16
|
+
} from "../../dom/attributes.mjs";
|
17
|
+
import {ATTRIBUTE_ROLE} from "../../dom/constants.mjs";
|
18
|
+
import {
|
19
|
+
assembleMethodSymbol,
|
20
|
+
registerCustomElement,
|
21
|
+
} from "../../dom/customelement.mjs";
|
22
|
+
import {fireCustomEvent} from "../../dom/events.mjs";
|
23
|
+
import {getDocument} from "../../dom/util.mjs";
|
24
|
+
import {DeadMansSwitch} from "../../util/deadmansswitch.mjs";
|
25
|
+
import {Button} from "../form/button.mjs";
|
26
|
+
import {STYLE_DISPLAY_MODE_BLOCK} from "../form/constants.mjs";
|
27
|
+
import {positionPopper} from "../form/util/floating-ui.mjs";
|
28
|
+
import {CustomControl} from "../../dom/customcontrol.mjs";
|
29
|
+
import {PopperStyleSheet} from "./stylesheet/popper.mjs";
|
30
|
+
import {isArray} from "../../types/is.mjs";
|
31
|
+
|
32
|
+
export {Popper};
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @private
|
36
|
+
* @type {symbol}
|
37
|
+
*/
|
38
|
+
const timerCallbackSymbol = Symbol("timerCallback");
|
39
|
+
|
40
|
+
/**
|
41
|
+
* local symbol
|
42
|
+
* @private
|
43
|
+
* @type {symbol}
|
44
|
+
*/
|
45
|
+
const resizeObserverSymbol = Symbol("resizeObserver");
|
46
|
+
|
47
|
+
/**
|
48
|
+
* local symbol
|
49
|
+
* @private
|
50
|
+
* @type {symbol}
|
51
|
+
*/
|
52
|
+
const closeEventHandler = Symbol("closeEventHandler");
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @private
|
56
|
+
* @type {symbol}
|
57
|
+
*/
|
58
|
+
const controlElementSymbol = Symbol("controlElement");
|
59
|
+
|
60
|
+
/**
|
61
|
+
* @private
|
62
|
+
* @type {symbol}
|
63
|
+
*/
|
64
|
+
const buttonElementSymbol = Symbol("buttonElement");
|
65
|
+
|
66
|
+
/**
|
67
|
+
* local symbol
|
68
|
+
* @private
|
69
|
+
* @type {symbol}
|
70
|
+
*/
|
71
|
+
const popperElementSymbol = Symbol("popperElement");
|
72
|
+
|
73
|
+
/**
|
74
|
+
* local symbol
|
75
|
+
* @private
|
76
|
+
* @type {symbol}
|
77
|
+
*/
|
78
|
+
const arrowElementSymbol = Symbol("arrowElement");
|
79
|
+
|
80
|
+
/**
|
81
|
+
* This action callback executes the actions when a button is clicked.
|
82
|
+
*
|
83
|
+
* @callback Monster.Components.Form~exampleActionCallback
|
84
|
+
* @param {Event} e Event
|
85
|
+
* @memberOf Monster.Components.Form
|
86
|
+
* @this {CustomControl}
|
87
|
+
*/
|
88
|
+
|
89
|
+
/**
|
90
|
+
* A Popper is a floating UI element that can be shown or hidden.
|
91
|
+
*
|
92
|
+
* @fragments /fragments/components/layout/popper/
|
93
|
+
*
|
94
|
+
* @example /examples/components/layout/popper-simple
|
95
|
+
* @example /examples/components/layout/popper-click
|
96
|
+
*
|
97
|
+
* @since 1.66.0
|
98
|
+
* @copyright schukai GmbH
|
99
|
+
* @summary A beautiful popper that can make your life easier and also looks good.
|
100
|
+
* @fires monster-popper-hide fired when the popper is hide.
|
101
|
+
* @fires monster-popper-hidden fired when the popper is hidden.
|
102
|
+
* @fires monster-popper-open fired when the popper is open.
|
103
|
+
* @fires monster-popper-opened fired when the popper is opened.
|
104
|
+
*
|
105
|
+
*/
|
106
|
+
class Popper extends CustomControl {
|
107
|
+
/**
|
108
|
+
* This method is called by the `instanceof` operator.
|
109
|
+
* @returns {symbol}
|
110
|
+
*/
|
111
|
+
static get [instanceSymbol]() {
|
112
|
+
return Symbol.for("@schukai/monster/components/layout/popper@@instance");
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* To set the options via the html tag the attribute `data-monster-options` must be used.
|
117
|
+
* @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control}
|
118
|
+
*
|
119
|
+
* The individual configuration values can be found in the table.
|
120
|
+
*
|
121
|
+
* @property {Object} templates The templates for the control.
|
122
|
+
* @property {string} templates.main The main template.
|
123
|
+
* @property {string} mode The mode of the popper. Possible values are `click`, `enter`, `manual`, `focus`, "auto" or a combination of them.
|
124
|
+
* @property {string} content The content of the popper.
|
125
|
+
* @property {object} popper The popper options.
|
126
|
+
* @property {string} popper.placement The placement of the popper. Possible values are `top`, `bottom`, `left` and `right`.
|
127
|
+
* @property {function[]} popper.middleware The middleware functions of the popper.
|
128
|
+
* @property {function[]} popper.middlewareInit The middleware init functions of the popper.
|
129
|
+
* @property {Object} features The features of the popper.
|
130
|
+
* @property {boolean} features.preventPropagateOpenEvents Prevents the open event from being sent.
|
131
|
+
*/
|
132
|
+
get defaults() {
|
133
|
+
return Object.assign({}, super.defaults, {
|
134
|
+
templates: {
|
135
|
+
main: getTemplate(),
|
136
|
+
},
|
137
|
+
mode: "auto focus",
|
138
|
+
content: "<slot></slot>",
|
139
|
+
popper: {
|
140
|
+
placement: "top",
|
141
|
+
middleware: ["autoPlacement", "offset:10", "arrow"],
|
142
|
+
},
|
143
|
+
features: {
|
144
|
+
preventOpenEventSent: false,
|
145
|
+
},
|
146
|
+
});
|
147
|
+
}
|
148
|
+
|
149
|
+
/**
|
150
|
+
*
|
151
|
+
* @return {Popper}
|
152
|
+
*/
|
153
|
+
[assembleMethodSymbol]() {
|
154
|
+
super[assembleMethodSymbol]();
|
155
|
+
initControlReferences.call(this);
|
156
|
+
initEventHandler.call(this);
|
157
|
+
|
158
|
+
return this;
|
159
|
+
}
|
160
|
+
|
161
|
+
/**
|
162
|
+
* @return {string}
|
163
|
+
*/
|
164
|
+
static getTag() {
|
165
|
+
return "monster-popper";
|
166
|
+
}
|
167
|
+
|
168
|
+
/**
|
169
|
+
* @return {Array<CSSStyleSheet>}
|
170
|
+
*/
|
171
|
+
static getCSSStyleSheet() {
|
172
|
+
return [PopperStyleSheet];
|
173
|
+
}
|
174
|
+
|
175
|
+
/**
|
176
|
+
* @return {void}
|
177
|
+
*/
|
178
|
+
connectedCallback() {
|
179
|
+
super.connectedCallback();
|
180
|
+
|
181
|
+
const document = getDocument();
|
182
|
+
|
183
|
+
for (const [, type] of Object.entries(["click", "touch"])) {
|
184
|
+
// close on outside ui-events
|
185
|
+
document.addEventListener(type, this[closeEventHandler]);
|
186
|
+
}
|
187
|
+
|
188
|
+
updatePopper.call(this);
|
189
|
+
attachResizeObserver.call(this);
|
190
|
+
}
|
191
|
+
|
192
|
+
/**
|
193
|
+
* @return {void}
|
194
|
+
*/
|
195
|
+
disconnectedCallback() {
|
196
|
+
super.disconnectedCallback();
|
197
|
+
|
198
|
+
// close on outside ui-events
|
199
|
+
for (const [, type] of Object.entries(["click", "touch"])) {
|
200
|
+
document.removeEventListener(type, this[closeEventHandler]);
|
201
|
+
}
|
202
|
+
|
203
|
+
disconnectResizeObserver.call(this);
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* @return {Popper}
|
208
|
+
*/
|
209
|
+
showDialog() {
|
210
|
+
show.call(this);
|
211
|
+
return this;
|
212
|
+
}
|
213
|
+
|
214
|
+
/**
|
215
|
+
* @return {Popper}
|
216
|
+
*/
|
217
|
+
hideDialog() {
|
218
|
+
hide.call(this);
|
219
|
+
return this;
|
220
|
+
}
|
221
|
+
|
222
|
+
/**
|
223
|
+
* @return {Popper}
|
224
|
+
*/
|
225
|
+
toggleDialog() {
|
226
|
+
if (this[popperElementSymbol].style.display === STYLE_DISPLAY_MODE_BLOCK) {
|
227
|
+
this.hideDialog();
|
228
|
+
} else {
|
229
|
+
this.showDialog();
|
230
|
+
}
|
231
|
+
return this;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
/**
|
236
|
+
* @private
|
237
|
+
* @return {Popper}
|
238
|
+
*/
|
239
|
+
function initEventHandler() {
|
240
|
+
this[closeEventHandler] = (event) => {
|
241
|
+
const path = event.composedPath();
|
242
|
+
|
243
|
+
for (const [, element] of Object.entries(path)) {
|
244
|
+
if (element === this) {
|
245
|
+
return;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
hide.call(this);
|
249
|
+
};
|
250
|
+
|
251
|
+
let modes = null;
|
252
|
+
const modeOption = this.getOption("mode");
|
253
|
+
|
254
|
+
if (typeof modeOption === "string") {
|
255
|
+
modes = modeOption.split(" ");
|
256
|
+
}
|
257
|
+
|
258
|
+
if (
|
259
|
+
modes === null ||
|
260
|
+
modes === undefined ||
|
261
|
+
isArray(modes) === false ||
|
262
|
+
modes.length === 0
|
263
|
+
) {
|
264
|
+
modes = ["manual"];
|
265
|
+
}
|
266
|
+
|
267
|
+
for (const [, mode] of Object.entries(modes)) {
|
268
|
+
initEventHandlerByMode.call(this, mode);
|
269
|
+
}
|
270
|
+
|
271
|
+
return this;
|
272
|
+
}
|
273
|
+
|
274
|
+
/**
|
275
|
+
* @private
|
276
|
+
* @param mode
|
277
|
+
* @return {Popper}
|
278
|
+
* @throws Error
|
279
|
+
*/
|
280
|
+
function initEventHandlerByMode(mode) {
|
281
|
+
switch (mode) {
|
282
|
+
case "manual":
|
283
|
+
break;
|
284
|
+
|
285
|
+
case "focus":
|
286
|
+
this[buttonElementSymbol].addEventListener("focus", (event) => {
|
287
|
+
if (this.getOption("features.preventOpenEventSent") === true) {
|
288
|
+
event.preventDefault();
|
289
|
+
}
|
290
|
+
this.showDialog();
|
291
|
+
});
|
292
|
+
this[buttonElementSymbol].addEventListener("blur", (event) => {
|
293
|
+
if (this.getOption("features.preventOpenEventSent") === true) {
|
294
|
+
event.preventDefault();
|
295
|
+
}
|
296
|
+
this.hideDialog();
|
297
|
+
});
|
298
|
+
break;
|
299
|
+
|
300
|
+
case "click":
|
301
|
+
this[buttonElementSymbol].addEventListener("click", (event) => {
|
302
|
+
if (this.getOption("features.preventOpenEventSent") === true) {
|
303
|
+
event.preventDefault();
|
304
|
+
}
|
305
|
+
this.toggleDialog();
|
306
|
+
});
|
307
|
+
break;
|
308
|
+
case "enter":
|
309
|
+
this[buttonElementSymbol].addEventListener("mouseenter", (event) => {
|
310
|
+
if (this.getOption("features.preventOpenEventSent") === true) {
|
311
|
+
event.preventDefault();
|
312
|
+
}
|
313
|
+
this.showDialog();
|
314
|
+
});
|
315
|
+
break;
|
316
|
+
|
317
|
+
case "auto": // is hover
|
318
|
+
this[buttonElementSymbol].addEventListener("mouseenter", (event) => {
|
319
|
+
if (this.getOption("features.preventOpenEventSent") === true) {
|
320
|
+
event.preventDefault();
|
321
|
+
}
|
322
|
+
this.showDialog();
|
323
|
+
});
|
324
|
+
this[buttonElementSymbol].addEventListener("mouseleave", (event) => {
|
325
|
+
if (this.getOption("features.preventOpenEventSent") === true) {
|
326
|
+
event.preventDefault();
|
327
|
+
}
|
328
|
+
this.hideDialog();
|
329
|
+
});
|
330
|
+
break;
|
331
|
+
default:
|
332
|
+
throw new Error(`Unknown mode ${mode}`);
|
333
|
+
}
|
334
|
+
}
|
335
|
+
|
336
|
+
/**
|
337
|
+
* @private
|
338
|
+
*/
|
339
|
+
function attachResizeObserver() {
|
340
|
+
// against flickering
|
341
|
+
this[resizeObserverSymbol] = new ResizeObserver((entries) => {
|
342
|
+
if (this[timerCallbackSymbol] instanceof DeadMansSwitch) {
|
343
|
+
try {
|
344
|
+
this[timerCallbackSymbol].touch();
|
345
|
+
return;
|
346
|
+
} catch (e) {
|
347
|
+
delete this[timerCallbackSymbol];
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
this[timerCallbackSymbol] = new DeadMansSwitch(200, () => {
|
352
|
+
updatePopper.call(this);
|
353
|
+
});
|
354
|
+
});
|
355
|
+
|
356
|
+
this[resizeObserverSymbol].observe(this.parentElement);
|
357
|
+
}
|
358
|
+
|
359
|
+
function disconnectResizeObserver() {
|
360
|
+
if (this[resizeObserverSymbol] instanceof ResizeObserver) {
|
361
|
+
this[resizeObserverSymbol].disconnect();
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
/**
|
366
|
+
* @private
|
367
|
+
*/
|
368
|
+
function hide() {
|
369
|
+
const self = this;
|
370
|
+
|
371
|
+
fireCustomEvent(self, "monster-popper-hide", {
|
372
|
+
self,
|
373
|
+
});
|
374
|
+
|
375
|
+
self[popperElementSymbol].style.display = "none";
|
376
|
+
removeAttributeToken(self[controlElementSymbol], "class", "open");
|
377
|
+
|
378
|
+
setTimeout(() => {
|
379
|
+
fireCustomEvent(self, "monster-popper-hidden", {
|
380
|
+
self,
|
381
|
+
});
|
382
|
+
}, 0);
|
383
|
+
}
|
384
|
+
|
385
|
+
/**
|
386
|
+
* @private
|
387
|
+
* @this PopperButton
|
388
|
+
*/
|
389
|
+
function show() {
|
390
|
+
const self = this;
|
391
|
+
|
392
|
+
if (self.getOption("disabled", false) === true) {
|
393
|
+
return;
|
394
|
+
}
|
395
|
+
|
396
|
+
if (self[popperElementSymbol].style.display === STYLE_DISPLAY_MODE_BLOCK) {
|
397
|
+
return;
|
398
|
+
}
|
399
|
+
|
400
|
+
fireCustomEvent(self, "monster-popper-open", {
|
401
|
+
self,
|
402
|
+
});
|
403
|
+
|
404
|
+
self[popperElementSymbol].style.visibility = "hidden";
|
405
|
+
self[popperElementSymbol].style.display = STYLE_DISPLAY_MODE_BLOCK;
|
406
|
+
|
407
|
+
addAttributeToken(self[controlElementSymbol], "class", "open");
|
408
|
+
updatePopper.call(self);
|
409
|
+
|
410
|
+
setTimeout(() => {
|
411
|
+
fireCustomEvent(self, "monster-popper-opened", {
|
412
|
+
self,
|
413
|
+
});
|
414
|
+
}, 0);
|
415
|
+
}
|
416
|
+
|
417
|
+
/**
|
418
|
+
* @private
|
419
|
+
*/
|
420
|
+
function updatePopper() {
|
421
|
+
if (this[popperElementSymbol].style.display !== STYLE_DISPLAY_MODE_BLOCK) {
|
422
|
+
return;
|
423
|
+
}
|
424
|
+
|
425
|
+
if (this.getOption("disabled", false) === true) {
|
426
|
+
return;
|
427
|
+
}
|
428
|
+
|
429
|
+
positionPopper.call(
|
430
|
+
this,
|
431
|
+
this[controlElementSymbol],
|
432
|
+
this[popperElementSymbol],
|
433
|
+
this.getOption("popper", {}),
|
434
|
+
);
|
435
|
+
}
|
436
|
+
|
437
|
+
/**
|
438
|
+
* @private
|
439
|
+
* @return {Popper}
|
440
|
+
*/
|
441
|
+
function initControlReferences() {
|
442
|
+
this[controlElementSymbol] = this.shadowRoot.querySelector(
|
443
|
+
`[${ATTRIBUTE_ROLE}=control]`,
|
444
|
+
);
|
445
|
+
this[buttonElementSymbol] = this.shadowRoot.querySelector(
|
446
|
+
`[${ATTRIBUTE_ROLE}=button]`,
|
447
|
+
);
|
448
|
+
this[popperElementSymbol] = this.shadowRoot.querySelector(
|
449
|
+
`[${ATTRIBUTE_ROLE}=popper]`,
|
450
|
+
);
|
451
|
+
this[arrowElementSymbol] = this.shadowRoot.querySelector(
|
452
|
+
`[${ATTRIBUTE_ROLE}=arrow]`,
|
453
|
+
);
|
454
|
+
return this;
|
455
|
+
}
|
456
|
+
|
457
|
+
/**
|
458
|
+
* @private
|
459
|
+
* @return {string}
|
460
|
+
*/
|
461
|
+
function getTemplate() {
|
462
|
+
// language=HTML
|
463
|
+
return `
|
464
|
+
<div data-monster-role="control" part="control">
|
465
|
+
<slot name="button" data-monster-role="button"></slot>
|
466
|
+
|
467
|
+
<div data-monster-role="popper" part="popper" tabindex="-1" class="monster-color-primary-1">
|
468
|
+
<div data-monster-role="arrow"></div>
|
469
|
+
<div part="content" class="flex" data-monster-replace="path:content">
|
470
|
+
</div>
|
471
|
+
</div>
|
472
|
+
</div>
|
473
|
+
`;
|
474
|
+
}
|
475
|
+
|
476
|
+
registerCustomElement(Popper);
|
@@ -585,15 +585,15 @@ function show(element) {
|
|
585
585
|
node.classList.add("active");
|
586
586
|
|
587
587
|
const openDelay = parseInt(this.getOption("features.openDelay"), 10);
|
588
|
-
|
588
|
+
|
589
589
|
if(!isNaN(openDelay) && openDelay>0) {
|
590
590
|
node.style.visibility = "hidden";
|
591
591
|
|
592
592
|
setTimeout(() => {
|
593
593
|
node.style.visibility = "visible";
|
594
594
|
}, openDelay);
|
595
|
-
}
|
596
|
-
|
595
|
+
}
|
596
|
+
|
597
597
|
// get all data- from button and filter out data-monster-attributes and data-monster-insert
|
598
598
|
const data = {};
|
599
599
|
const mask = [
|
@@ -51,8 +51,8 @@ const MODE_WIDE = "wide";
|
|
51
51
|
*
|
52
52
|
* <img src="./images/widthToggle.png">
|
53
53
|
*
|
54
|
-
* You can create this control either by specifying the HTML tag <monster-
|
55
|
-
* Javascript via the `document.createElement('monster-
|
54
|
+
* You can create this control either by specifying the HTML tag <monster-width-toggle />` directly in the HTML or using
|
55
|
+
* Javascript via the `document.createElement('monster-width-toggle');` method.
|
56
56
|
*
|
57
57
|
* ```html
|
58
58
|
* <monster-width-toggle></monster-width-toggle>
|
@@ -85,7 +85,7 @@ class WidthToggle extends CustomElement {
|
|
85
85
|
* @returns {symbol}
|
86
86
|
*/
|
87
87
|
static get [instanceSymbol]() {
|
88
|
-
return Symbol.for("@schukai/monster/components/layout/
|
88
|
+
return Symbol.for("@schukai/monster/components/layout/width-toggle@@instance");
|
89
89
|
}
|
90
90
|
|
91
91
|
/**
|
@@ -0,0 +1,84 @@
|
|
1
|
+
@import "../../style/property.pcss";
|
2
|
+
@import "../../style/color.pcss";
|
3
|
+
@import "../../style/border.pcss";
|
4
|
+
@import "../../style/theme.pcss";
|
5
|
+
|
6
|
+
|
7
|
+
:host {
|
8
|
+
box-sizing: border-box;
|
9
|
+
}
|
10
|
+
|
11
|
+
.navigation {
|
12
|
+
|
13
|
+
box-sizing: border-box;
|
14
|
+
position: absolute;
|
15
|
+
top: 0;
|
16
|
+
display: block;
|
17
|
+
cursor: pointer;
|
18
|
+
width: 20px;
|
19
|
+
|
20
|
+
transition: top 0.2s ease, visibility 0.1s ease;
|
21
|
+
|
22
|
+
& [data-monster-role="navigation-list"] {
|
23
|
+
|
24
|
+
& ul {
|
25
|
+
margin: 0;
|
26
|
+
padding: 0 0 0 10px;
|
27
|
+
list-style-type: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
& ul li {
|
31
|
+
position: relative;
|
32
|
+
padding-left: 10px;
|
33
|
+
}
|
34
|
+
|
35
|
+
& ul li:before {
|
36
|
+
content: "";
|
37
|
+
position: absolute;
|
38
|
+
left: 0;
|
39
|
+
top: 0;
|
40
|
+
bottom: 0;
|
41
|
+
width: 10px;
|
42
|
+
border-left: 1px dotted var(--monster-color-primary-2);
|
43
|
+
margin-top: 0;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
& [data-monster-role=navigation-control] {
|
48
|
+
width: 20px;
|
49
|
+
}
|
50
|
+
|
51
|
+
& .heading-strip {
|
52
|
+
display: flex;
|
53
|
+
height: 0;
|
54
|
+
|
55
|
+
background-color: var(--monster-bg-color-primary-3);
|
56
|
+
margin-bottom: 10px;
|
57
|
+
|
58
|
+
&.level-h1 {
|
59
|
+
height: 6px;
|
60
|
+
}
|
61
|
+
|
62
|
+
&.level-h2 {
|
63
|
+
height: 4px;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.level-h3 {
|
67
|
+
height: 2px;
|
68
|
+
}
|
69
|
+
|
70
|
+
&.level-h4 {
|
71
|
+
height: 1px;
|
72
|
+
}
|
73
|
+
|
74
|
+
&.level-h5 {
|
75
|
+
height: 1px;
|
76
|
+
}
|
77
|
+
|
78
|
+
&.level-h6 {
|
79
|
+
height: 1px;
|
80
|
+
}
|
81
|
+
|
82
|
+
}
|
83
|
+
|
84
|
+
}
|
@@ -0,0 +1,31 @@
|
|
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 {TableOfContentStyleSheet}
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @private
|
20
|
+
* @type {CSSStyleSheet}
|
21
|
+
*/
|
22
|
+
const TableOfContentStyleSheet = new CSSStyleSheet();
|
23
|
+
|
24
|
+
try {
|
25
|
+
TableOfContentStyleSheet.insertRule(`
|
26
|
+
@layer tableofcontent {
|
27
|
+
:after,:before,:root{--monster-font-family:-apple-system,BlinkMacSystemFont,\"Quicksand\",\"Segoe UI\",\"Roboto\",\"Oxygen\",\"Ubuntu\",\"Cantarell\",\"Fira Sans\",\"Droid Sans\",\"Helvetica Neue\",Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\";--monster-color-primary-1:var(--monster-color-cinnamon-6);--monster-color-primary-2:var(--monster-color-cinnamon-6);--monster-color-primary-3:var(--monster-color-cinnamon-1);--monster-color-primary-4:var(--monster-color-cinnamon-1);--monster-bg-color-primary-1:var(--monster-color-cinnamon-1);--monster-bg-color-primary-2:var(--monster-color-cinnamon-2);--monster-bg-color-primary-3:var(--monster-color-cinnamon-3);--monster-bg-color-primary-4:var(--monster-color-cinnamon-6);--monster-color-secondary-1:var(--monster-color-red-4);--monster-color-secondary-2:var(--monster-color-red-4);--monster-color-secondary-3:var(--monster-color-red-1);--monster-color-secondary-4:var(--monster-color-red-1);--monster-bg-color-secondary-1:var(--monster-color-gray-1);--monster-bg-color-secondary-2:var(--monster-color-red-2);--monster-bg-color-secondary-3:var(--monster-color-red-3);--monster-bg-color-secondary-4:var(--monster-color-red-6);--monster-color-tertiary-1:var(--monster-color-magenta-4);--monster-color-tertiary-2:var(--monster-color-magenta-4);--monster-color-tertiary-3:var(--monster-color-magenta-6);--monster-color-tertiary-4:var(--monster-color-magenta-1);--monster-bg-color-tertiary-1:var(--monster-color-gray-1);--monster-bg-color-tertiary-2:var(--monster-color-magenta-1);--monster-bg-color-tertiary-3:var(--monster-color-magenta-2);--monster-bg-color-tertiary-4:var(--monster-color-magenta-6);--monster-color-destructive-1:var(--monster-color-red-1);--monster-color-destructive-2:var(--monster-color-red-4);--monster-color-destructive-3:var(--monster-color-red-6);--monster-color-destructive-4:var(--monster-color-red-1);--monster-bg-color-destructive-1:var(--monster-color-red-4);--monster-bg-color-destructive-2:var(--monster-color-gray-1);--monster-bg-color-destructive-3:var(--monster-color-red-2);--monster-bg-color-destructive-4:var(--monster-color-red-5);--monster-color-success-1:var(--monster-color-green-1);--monster-color-success-2:var(--monster-color-green-4);--monster-color-success-3:var(--monster-color-green-6);--monster-color-success-4:var(--monster-color-green-1);--monster-bg-color-success-1:var(--monster-color-green-3);--monster-bg-color-success-2:var(--monster-color-gray-1);--monster-bg-color-success-3:var(--monster-color-green-2);--monster-bg-color-success-4:var(--monster-color-green-5);--monster-color-warning-1:var(--monster-color-orange-1);--monster-color-warning-2:var(--monster-color-orange-4);--monster-color-warning-3:var(--monster-color-orange-6);--monster-color-warning-4:var(--monster-color-orange-1);--monster-bg-color-warning-1:var(--monster-color-orange-3);--monster-bg-color-warning-2:var(--monster-color-gray-1);--monster-bg-color-warning-3:var(--monster-color-orange-2);--monster-bg-color-warning-4:var(--monster-color-orange-5);--monster-color-error-1:var(--monster-color-red-1);--monster-color-error-2:var(--monster-color-red-4);--monster-color-error-3:var(--monster-color-red-6);--monster-color-error-4:var(--monster-color-red-1);--monster-bg-color-error-1:var(--monster-color-red-4);--monster-bg-color-error-2:var(--monster-color-gray-1);--monster-bg-color-error-3:var(--monster-color-red-2);--monster-bg-color-error-4:var(--monster-color-red-5);--monster-color-selection-1:var(--monster-color-gray-6);--monster-color-selection-2:var(--monster-color-gray-6);--monster-color-selection-3:var(--monster-color-gray-6);--monster-color-selection-4:var(--monster-color-gray-1);--monster-bg-color-selection-1:var(--monster-color-yellow-2);--monster-bg-color-selection-2:var(--monster-color-yellow-1);--monster-bg-color-selection-3:var(--monster-color-yellow-2);--monster-bg-color-selection-4:var(--monster-color-yellow-6);--monster-color-primary-disabled-1:var(--monster-color-gray-4);--monster-color-primary-disabled-2:var(--monster-color-gray-4);--monster-color-primary-disabled-3:var(--monster-color-gray-4);--monster-color-primary-disabled-4:var(--monster-color-gray-4);--monster-bg-color-primary-disabled-1:var(--monster-color-gray-1);--monster-bg-color-primary-disabled-2:var(--monster-color-gray-2);--monster-bg-color-primary-disabled-3:var(--monster-color-gray-3);--monster-bg-color-primary-disabled-4:var(--monster-color-gray-6);--monster-color-gradient-1:#833ab4;--monster-color-gradient-2:#fd1d1d;--monster-color-gradient-3:#fcb045;--monster-box-shadow-1:none;--monster-box-shadow-2:-1px 1px 10px 1px hsla(0,0%,76%,.61);--monster-text-shadow:none;--monster-theme-control-bg-color:var(--monster-gradient-tangerine-1);--monster-theme-control-color:var(--monster-gradient-tangerine-6);--monster-theme-control-border-color:var(--monster-gradient-tangerine-2);--monster-theme-control-hover-color:var(--monster-gradient-tangerine-6);--monster-theme-control-hover-bg-color:var(--monster-gradient-tangerine-2);--monster-theme-on-color:var(--monster-color-green-1);--monster-theme-on-bg-color:var(--monster-color-green-5);--monster-theme-off-color:var(--monster-color-gray-1);--monster-theme-off-bg-color:var(--monster-color-gray-4);--monster-border-style:solid;--monster-border-width:2px;--monster-border-radius:0;--monster-popper-witharrrow-distance:-4px;--monster-z-index-default:0;--monster-z-index-outline:10;--monster-z-index-dropdown:200;--monster-z-index-dropdown-overlay:210;--monster-z-index-sticky:300;--monster-z-index-sticky-overlay:310;--monster-z-index-fixed:400;--monster-z-index-fixed-overlay:410;--monster-z-index-modal-backdrop:500;--monster-z-index-modal-backdrop-overlay:510;--monster-z-index-offcanvas:600;--monster-z-index-offcanvas-overlay:610;--monster-z-index-modal:700;--monster-z-index-modal-overlay:710;--monster-z-index-popover:800;--monster-z-index-popover-overlay:810;--monster-z-index-tooltip:800;--monster-z-index-tooltip-overlay:910;--monster-space-0:0;--monster-space-1:2px;--monster-space-2:4px;--monster-space-3:6px;--monster-space-4:10px;--monster-space-5:16px;--monster-space-6:26px;--monster-space-7:42px;--monster-breakpoint-0:480px;--monster-breakpoint-4:480px;--monster-breakpoint-7:768px;--monster-breakpoint-9:992px;--monster-breakpoint-12:1200px;--monster-dragger-width:1px;--monster-dragger-handle-width:4px;--monster-dragger-handle-height:50px}@media (prefers-color-scheme:dark){:after,:before,:root{--monster-color-primary-1:var(--monster-color-gray-1);--monster-color-primary-2:var(--monster-color-gray-1);--monster-color-primary-3:var(--monster-color-gray-6);--monster-color-primary-4:var(--monster-color-gray-6);--monster-bg-color-primary-1:var(--monster-color-gray-6);--monster-bg-color-primary-2:var(--monster-color-gray-3);--monster-bg-color-primary-3:var(--monster-color-gray-2);--monster-bg-color-primary-4:var(--monster-color-gray-1);--monster-color-secondary-1:var(--monster-color-red-1);--monster-color-secondary-2:var(--monster-color-red-1);--monster-color-secondary-3:var(--monster-color-red-6);--monster-color-secondary-4:var(--monster-color-red-4);--monster-bg-color-secondary-1:var(--monster-color-gray-6);--monster-bg-color-secondary-2:var(--monster-color-red-3);--monster-bg-color-secondary-3:var(--monster-color-red-2);--monster-bg-color-secondary-4:var(--monster-color-red-1);--monster-color-tertiary-1:var(--monster-color-magenta-1);--monster-color-tertiary-2:var(--monster-color-magenta-6);--monster-color-tertiary-3:var(--monster-color-magenta-4);--monster-color-tertiary-4:var(--monster-color-magenta-4);--monster-bg-color-tertiary-1:var(--monster-color-gray-6);--monster-bg-color-tertiary-2:var(--monster-color-magenta-2);--monster-bg-color-tertiary-3:var(--monster-color-magenta-1);--monster-bg-color-tertiary-4:var(--monster-color-magenta-1);--monster-color-destructive-1:var(--monster-color-red-1);--monster-color-destructive-2:var(--monster-color-red-3);--monster-color-destructive-3:var(--monster-color-red-4);--monster-color-destructive-4:var(--monster-color-red-1);--monster-bg-color-destructive-1:var(--monster-color-red-5);--monster-bg-color-destructive-2:var(--monster-color-gray-6);--monster-bg-color-destructive-3:var(--monster-color-red-1);--monster-bg-color-destructive-4:var(--monster-color-red-4);--monster-color-success-1:var(--monster-color-green-1);--monster-color-success-2:var(--monster-color-green-2);--monster-color-success-3:var(--monster-color-green-4);--monster-color-success-4:var(--monster-color-green-1);--monster-bg-color-success-1:var(--monster-color-green-5);--monster-bg-color-success-2:var(--monster-color-gray-6);--monster-bg-color-success-3:var(--monster-color-green-1);--monster-bg-color-success-4:var(--monster-color-green-3);--monster-color-warning-1:var(--monster-color-orange-1);--monster-color-warning-2:var(--monster-color-orange-3);--monster-color-warning-3:var(--monster-color-orange-4);--monster-color-warning-4:var(--monster-color-orange-1);--monster-bg-color-warning-1:var(--monster-color-orange-5);--monster-bg-color-warning-2:var(--monster-color-gray-6);--monster-bg-color-warning-3:var(--monster-color-orange-1);--monster-bg-color-warning-4:var(--monster-color-orange-3);--monster-color-error-1:var(--monster-color-red-1);--monster-color-error-2:var(--monster-color-red-3);--monster-color-error-3:var(--monster-color-red-4);--monster-color-error-4:var(--monster-color-red-1);--monster-bg-color-error-1:var(--monster-color-red-5);--monster-bg-color-error-2:var(--monster-color-gray-6);--monster-bg-color-error-3:var(--monster-color-red-1);--monster-bg-color-error-4:var(--monster-color-red-4);--monster-color-selection-1:var(--monster-color-gray-6);--monster-color-selection-2:var(--monster-color-gray-6);--monster-color-selection-3:var(--monster-color-gray-6);--monster-color-selection-4:var(--monster-color-gray-1);--monster-bg-color-selection-1:var(--monster-color-yellow-2);--monster-bg-color-selection-2:var(--monster-color-yellow-1);--monster-bg-color-selection-3:var(--monster-color-yellow-2);--monster-bg-color-selection-4:var(--monster-color-yellow-6);--monster-color-primary-disabled-1:var(--monster-color-gray-4);--monster-color-primary-disabled-2:var(--monster-color-gray-4);--monster-color-primary-disabled-3:var(--monster-color-gray-3);--monster-color-primary-disabled-4:var(--monster-color-gray-3);--monster-bg-color-primary-disabled-1:var(--monster-color-gray-6);--monster-bg-color-primary-disabled-2:var(--monster-color-gray-3);--monster-bg-color-primary-disabled-3:var(--monster-color-gray-2);--monster-bg-color-primary-disabled-4:var(--monster-color-gray-1);--monster-theme-control-bg-color:var(--monster-color-gray-5);--monster-theme-control-color:var(--monster-color-gray-1);--monster-theme-control-border-color:var(--monster-color-gray-3);--monster-theme-control-hover-color:var(--monster-color-gray-1);--monster-theme-control-hover-bg-color:var(--monster-color-gray-6);--monster-theme-on-color:var(--monster-color-gray-6);--monster-theme-on-bg-color:var(--monster-color-gray-1);--monster-theme-off-color:var(--monster-color-gray-1);--monster-theme-off-bg-color:var(--monster-color-gray-5)}}:after,:before,:root{--monster-color-gray-1:#f6f6f6;--monster-color-gray-2:#e2e2e2;--monster-color-gray-3:#8b8b8b;--monster-color-gray-4:#6f6f6f;--monster-color-gray-5:#3e3e3e;--monster-color-gray-6:#222;--monster-color-rose-1:#fff7f9;--monster-color-rose-2:#ffdce5;--monster-color-rose-3:#ff3b8d;--monster-color-rose-4:#db0072;--monster-color-rose-5:#800040;--monster-color-rose-6:#4c0023;--monster-color-raspberry-1:#fff8f8;--monster-color-raspberry-2:#ffdddf;--monster-color-raspberry-3:#ff426c;--monster-color-raspberry-4:#de0051;--monster-color-raspberry-5:#82002c;--monster-color-raspberry-6:#510018;--monster-color-red-1:#fff8f6;--monster-color-red-2:#ffddd8;--monster-color-red-3:#ff4647;--monster-color-red-4:#e0002b;--monster-color-red-5:#830014;--monster-color-red-6:#530003;--monster-color-orange-1:#fff8f5;--monster-color-orange-2:#ffded1;--monster-color-orange-3:#fd4d00;--monster-color-orange-4:#cd3c00;--monster-color-orange-5:#752100;--monster-color-orange-6:#401600;--monster-color-cinnamon-1:#fff8f3;--monster-color-cinnamon-2:#ffdfc6;--monster-color-cinnamon-3:#d57300;--monster-color-cinnamon-4:#ac5c00;--monster-color-cinnamon-5:#633300;--monster-color-cinnamon-6:#371d00;--monster-color-amber-1:#fff8ef;--monster-color-amber-2:#ffe0b2;--monster-color-amber-3:#b98300;--monster-color-amber-4:#926700;--monster-color-amber-5:#523800;--monster-color-amber-6:#302100;--monster-color-yellow-1:#fff9e5;--monster-color-yellow-2:#ffe53e;--monster-color-yellow-3:#9c8b00;--monster-color-yellow-4:#7d6f00;--monster-color-yellow-5:#463d00;--monster-color-yellow-6:#292300;--monster-color-lime-1:#f7ffac;--monster-color-lime-2:#d5f200;--monster-color-lime-3:#819300;--monster-color-lime-4:#677600;--monster-color-lime-5:#394100;--monster-color-lime-6:#222600;--monster-color-chartreuse-1:#e5ffc3;--monster-color-chartreuse-2:#98fb00;--monster-color-chartreuse-3:#5c9b00;--monster-color-chartreuse-4:#497c00;--monster-color-chartreuse-5:#264500;--monster-color-chartreuse-6:#182600;--monster-color-green-1:#e0ffd9;--monster-color-green-2:#72ff6c;--monster-color-green-3:#00a21f;--monster-color-green-4:#008217;--monster-color-green-5:#004908;--monster-color-green-6:#062800;--monster-color-emerald-1:#dcffe6;--monster-color-emerald-2:#5dffa2;--monster-color-emerald-3:#00a05a;--monster-color-emerald-4:#008147;--monster-color-emerald-5:#004825;--monster-color-emerald-6:#002812;--monster-color-aquamarine-1:#daffef;--monster-color-aquamarine-2:#42ffc6;--monster-color-aquamarine-3:#009f78;--monster-color-aquamarine-4:#007f5f;--monster-color-aquamarine-5:#004734;--monster-color-aquamarine-6:#00281b;--monster-color-teal-1:#d7fff7;--monster-color-teal-2:#00ffe4;--monster-color-teal-3:#009e8c;--monster-color-teal-4:#007c6e;--monster-color-teal-5:#00443c;--monster-color-teal-6:#002722;--monster-color-cyan-1:#c4fffe;--monster-color-cyan-2:#00fafb;--monster-color-cyan-3:#00999a;--monster-color-cyan-4:#007a7b;--monster-color-cyan-5:#004344;--monster-color-cyan-6:#002525;--monster-color-powder-1:#dafaff;--monster-color-powder-2:#8df0ff;--monster-color-powder-3:#0098a9;--monster-color-powder-4:#007987;--monster-color-powder-5:#004048;--monster-color-powder-6:#002227;--monster-color-sky-1:#e3f7ff;--monster-color-sky-2:#aee9ff;--monster-color-sky-3:#0094b4;--monster-color-sky-4:#007590;--monster-color-sky-5:#00404f;--monster-color-sky-6:#001f28;--monster-color-cerulean-1:#e8f6ff;--monster-color-cerulean-2:#b9e3ff;--monster-color-cerulean-3:#0092c5;--monster-color-cerulean-4:#00749d;--monster-color-cerulean-5:#003c54;--monster-color-cerulean-6:#001d2a;--monster-color-azure-1:#e8f2ff;--monster-color-azure-2:#c6e0ff;--monster-color-azure-3:#008fdb;--monster-color-azure-4:#0071af;--monster-color-azure-5:#003b5e;--monster-color-azure-6:#001c30;--monster-color-blue-1:#f0f4ff;--monster-color-blue-2:#d4e0ff;--monster-color-blue-3:#0089fc;--monster-color-blue-4:#006dca;--monster-color-blue-5:#00386d;--monster-color-blue-6:#001a39;--monster-color-indigo-1:#f3f3ff;--monster-color-indigo-2:#deddff;--monster-color-indigo-3:#657eff;--monster-color-indigo-4:#0061fc;--monster-color-indigo-5:#00328a;--monster-color-indigo-6:#001649;--monster-color-violet-1:#f7f1ff;--monster-color-violet-2:#e8daff;--monster-color-violet-3:#9b70ff;--monster-color-violet-4:#794aff;--monster-color-violet-5:#2d0fbf;--monster-color-violet-6:#0b0074;--monster-color-purple-1:#fdf4ff;--monster-color-purple-2:#f7d9ff;--monster-color-purple-3:#d150ff;--monster-color-purple-4:#b01fe3;--monster-color-purple-5:#660087;--monster-color-purple-6:#3a004f;--monster-color-magenta-1:#fff3fc;--monster-color-magenta-2:#ffd7f6;--monster-color-magenta-3:#f911e0;--monster-color-magenta-4:#ca00b6;--monster-color-magenta-5:#740068;--monster-color-magenta-6:#44003c;--monster-color-pink-1:#fff7fb;--monster-color-pink-2:#ffdcec;--monster-color-pink-3:#ff2fb2;--monster-color-pink-4:#d2008f;--monster-color-pink-5:#790051;--monster-color-pink-6:#4b0030;--monster-gradient-tangerine-1:#e5b875;--monster-gradient-tangerine-2:#d9a362;--monster-gradient-tangerine-3:#c08a4e;--monster-gradient-tangerine-4:#a7713b;--monster-gradient-tangerine-5:#8f5a28;--monster-gradient-tangerine-6:#360505}.monster-border-primary-1,.monster-border-primary-2,.monster-border-primary-3,.monster-border-primary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-0{border-radius:0;border-style:none;border-width:0}.monster-border-primary-1{border-color:var(--monster-bg-color-primary-1)}.monster-border-primary-2{border-color:var(--monster-bg-color-primary-2)}.monster-border-primary-3{border-color:var(--monster-bg-color-primary-3)}.monster-border-primary-4{border-color:var(--monster-bg-color-primary-4)}.monster-border-secondary-1,.monster-border-secondary-2,.monster-border-secondary-3,.monster-border-secondary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-secondary-1{border-color:var(--monster-bg-color-secondary-1)}.monster-border-secondary-2{border-color:var(--monster-bg-color-secondary-2)}.monster-border-secondary-3{border-color:var(--monster-bg-color-secondary-3)}.monster-border-secondary-4{border-color:var(--monster-bg-color-secondary-4)}.monster-border-tertiary-1,.monster-border-tertiary-2,.monster-border-tertiary-3,.monster-border-tertiary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-tertiary-1{border-color:var(--monster-bg-color-tertiary-1)}.monster-border-tertiary-2{border-color:var(--monster-bg-color-tertiary-2)}.monster-border-tertiary-3{border-color:var(--monster-bg-color-tertiary-3)}.monster-border-tertiary-4{border-color:var(--monster-bg-color-tertiary-4)}.monster-theme-primary-1{background-color:var(--monster-bg-color-primary-1);color:var(--monster-color-primary-1)}.monster-theme-primary-disabled-1{background-color:var(--monster-bg-color-primary-disabled-1);color:var(--monster-color-primary-disabled-1)}.monster-theme-secondary-1{background-color:var(--monster-bg-color-secondary-1);color:var(--monster-color-secondary-1)}.monster-theme-tertiary-1{background-color:var(--monster-bg-color-tertiary-1);color:var(--monster-color-tertiary-1)}.monster-theme-destructive-1{background-color:var(--monster-bg-color-destructive-1);color:var(--monster-color-destructive-1)}.monster-theme-success-1{background-color:var(--monster-bg-color-success-1);color:var(--monster-color-success-1)}.monster-theme-warning-1{background-color:var(--monster-bg-color-warning-1);color:var(--monster-color-warning-1)}.monster-theme-error-1{background-color:var(--monster-bg-color-error-1);color:var(--monster-color-error-1)}.monster-theme-selection-1{background-color:var(--monster-bg-color-selection-1);color:var(--monster-color-selection-1)}.monster-border-color-1{border-color:var(--monster-color-border-1)}.monster-color-neutral-1{color:var(--monster-color-primary-1)}.monster-bg-color-primary-1{background-color:var(--monster-bg-color-primary-1)}.monster-bg-color-secondary-1{background-color:var(--monster-bg-color-secondary-1)}.monster-bg-color-tertiary-1{background-color:var(--monster-bg-color-tertiary-1)}.monster-color-primary-1{background-color:var(--monster-bg-color-primary-1);color:var(--monster-color-primary-1)}.monster-color-secondary-1{background-color:var(--monster-bg-color-secondary-1);color:var(--monster-color-secondary-1)}.monster-color-tertiary-1{background-color:var(--monster-bg-color-tertiary-1);color:var(--monster-color-tertiary-1)}.monster-color-destructive-1{background-color:var(--monster-bg-color-destructive-1);color:var(--monster-color-destructive-1)}.monster-color-success-1{background-color:var(--monster-bg-color-success-1);color:var(--monster-color-success-1)}.monster-color-warning-1{background-color:var(--monster-bg-color-warning-1);color:var(--monster-color-warning-1)}.monster-color-error-1{background-color:var(--monster-bg-color-error-1);color:var(--monster-color-error-1)}.monster-color-selection-1{background-color:var(--monster-bg-color-selection-1);color:var(--monster-color-selection-1)}.monster-theme-primary-2{background-color:var(--monster-bg-color-primary-2);color:var(--monster-color-primary-2)}.monster-theme-primary-disabled-2{background-color:var(--monster-bg-color-primary-disabled-2);color:var(--monster-color-primary-disabled-2)}.monster-theme-secondary-2{background-color:var(--monster-bg-color-secondary-2);color:var(--monster-color-secondary-2)}.monster-theme-tertiary-2{background-color:var(--monster-bg-color-tertiary-2);color:var(--monster-color-tertiary-2)}.monster-theme-destructive-2{background-color:var(--monster-bg-color-destructive-2);color:var(--monster-color-destructive-2)}.monster-theme-success-2{background-color:var(--monster-bg-color-success-2);color:var(--monster-color-success-2)}.monster-theme-warning-2{background-color:var(--monster-bg-color-warning-2);color:var(--monster-color-warning-2)}.monster-theme-error-2{background-color:var(--monster-bg-color-error-2);color:var(--monster-color-error-2)}.monster-theme-selection-2{background-color:var(--monster-bg-color-selection-2);color:var(--monster-color-selection-2)}.monster-border-color-2{border-color:var(--monster-color-border-2)}.monster-color-neutral-2{color:var(--monster-color-primary-2)}.monster-bg-color-primary-2{background-color:var(--monster-bg-color-primary-2)}.monster-bg-color-secondary-2{background-color:var(--monster-bg-color-secondary-2)}.monster-bg-color-tertiary-2{background-color:var(--monster-bg-color-tertiary-2)}.monster-color-primary-2{background-color:var(--monster-bg-color-primary-2);color:var(--monster-color-primary-2)}.monster-color-secondary-2{background-color:var(--monster-bg-color-secondary-2);color:var(--monster-color-secondary-2)}.monster-color-tertiary-2{background-color:var(--monster-bg-color-tertiary-2);color:var(--monster-color-tertiary-2)}.monster-color-destructive-2{background-color:var(--monster-bg-color-destructive-2);color:var(--monster-color-destructive-2)}.monster-color-success-2{background-color:var(--monster-bg-color-success-2);color:var(--monster-color-success-2)}.monster-color-warning-2{background-color:var(--monster-bg-color-warning-2);color:var(--monster-color-warning-2)}.monster-color-error-2{background-color:var(--monster-bg-color-error-2);color:var(--monster-color-error-2)}.monster-color-selection-2{background-color:var(--monster-bg-color-selection-2);color:var(--monster-color-selection-2)}.monster-theme-primary-3{background-color:var(--monster-bg-color-primary-3);color:var(--monster-color-primary-3)}.monster-theme-primary-disabled-3{background-color:var(--monster-bg-color-primary-disabled-3);color:var(--monster-color-primary-disabled-3)}.monster-theme-secondary-3{background-color:var(--monster-bg-color-secondary-3);color:var(--monster-color-secondary-3)}.monster-theme-tertiary-3{background-color:var(--monster-bg-color-tertiary-3);color:var(--monster-color-tertiary-3)}.monster-theme-destructive-3{background-color:var(--monster-bg-color-destructive-3);color:var(--monster-color-destructive-3)}.monster-theme-success-3{background-color:var(--monster-bg-color-success-3);color:var(--monster-color-success-3)}.monster-theme-warning-3{background-color:var(--monster-bg-color-warning-3);color:var(--monster-color-warning-3)}.monster-theme-error-3{background-color:var(--monster-bg-color-error-3);color:var(--monster-color-error-3)}.monster-theme-selection-3{background-color:var(--monster-bg-color-selection-3);color:var(--monster-color-selection-3)}.monster-border-color-3{border-color:var(--monster-color-border-3)}.monster-color-neutral-3{color:var(--monster-color-primary-3)}.monster-bg-color-primary-3{background-color:var(--monster-bg-color-primary-3)}.monster-bg-color-secondary-3{background-color:var(--monster-bg-color-secondary-3)}.monster-bg-color-tertiary-3{background-color:var(--monster-bg-color-tertiary-3)}.monster-color-primary-3{background-color:var(--monster-bg-color-primary-3);color:var(--monster-color-primary-3)}.monster-color-secondary-3{background-color:var(--monster-bg-color-secondary-3);color:var(--monster-color-secondary-3)}.monster-color-tertiary-3{background-color:var(--monster-bg-color-tertiary-3);color:var(--monster-color-tertiary-3)}.monster-color-destructive-3{background-color:var(--monster-bg-color-destructive-3);color:var(--monster-color-destructive-3)}.monster-color-success-3{background-color:var(--monster-bg-color-success-3);color:var(--monster-color-success-3)}.monster-color-warning-3{background-color:var(--monster-bg-color-warning-3);color:var(--monster-color-warning-3)}.monster-color-error-3{background-color:var(--monster-bg-color-error-3);color:var(--monster-color-error-3)}.monster-color-selection-3{background-color:var(--monster-bg-color-selection-3);color:var(--monster-color-selection-3)}.monster-theme-primary-4{background-color:var(--monster-bg-color-primary-4);color:var(--monster-color-primary-4)}.monster-theme-primary-disabled-4{background-color:var(--monster-bg-color-primary-disabled-4);color:var(--monster-color-primary-disabled-4)}.monster-theme-secondary-4{background-color:var(--monster-bg-color-secondary-4);color:var(--monster-color-secondary-4)}.monster-theme-tertiary-4{background-color:var(--monster-bg-color-tertiary-4);color:var(--monster-color-tertiary-4)}.monster-theme-destructive-4{background-color:var(--monster-bg-color-destructive-4);color:var(--monster-color-destructive-4)}.monster-theme-success-4{background-color:var(--monster-bg-color-success-4);color:var(--monster-color-success-4)}.monster-theme-warning-4{background-color:var(--monster-bg-color-warning-4);color:var(--monster-color-warning-4)}.monster-theme-error-4{background-color:var(--monster-bg-color-error-4);color:var(--monster-color-error-4)}.monster-theme-selection-4{background-color:var(--monster-bg-color-selection-4);color:var(--monster-color-selection-4)}.monster-border-color-4{border-color:var(--monster-color-border-4)}.monster-color-neutral-4{color:var(--monster-color-primary-4)}.monster-bg-color-primary-4{background-color:var(--monster-bg-color-primary-4)}.monster-bg-color-secondary-4{background-color:var(--monster-bg-color-secondary-4)}.monster-bg-color-tertiary-4{background-color:var(--monster-bg-color-tertiary-4)}.monster-color-primary-4{background-color:var(--monster-bg-color-primary-4);color:var(--monster-color-primary-4)}.monster-color-secondary-4{background-color:var(--monster-bg-color-secondary-4);color:var(--monster-color-secondary-4)}.monster-color-tertiary-4{background-color:var(--monster-bg-color-tertiary-4);color:var(--monster-color-tertiary-4)}.monster-color-destructive-4{background-color:var(--monster-bg-color-destructive-4);color:var(--monster-color-destructive-4)}.monster-color-success-4{background-color:var(--monster-bg-color-success-4);color:var(--monster-color-success-4)}.monster-color-warning-4{background-color:var(--monster-bg-color-warning-4);color:var(--monster-color-warning-4)}.monster-color-error-4{background-color:var(--monster-bg-color-error-4);color:var(--monster-color-error-4)}.monster-color-selection-4{background-color:var(--monster-bg-color-selection-4);color:var(--monster-color-selection-4)}.monster-theme-control-container-1,.monster-theme-control-row-1{border:1px solid var(--monster-theme-control-border-color)}.monster-theme-control-container-1,.monster-theme-control-element,.monster-theme-control-row-1{background-color:var(--monster-theme-control-bg-color);color:var(--monster-theme-control-color)}.monster-theme-control-background{background-color:var(--monster-theme-control-bg-color)}.monster-theme-background-inherit{background-color:inherit!important}.monster-theme-on{background-color:var(--monster-theme-on-bg-color);color:var(--monster-theme-on-color)}.monster-theme-off{background-color:var(--monster-theme-off-bg-color);color:var(--monster-theme-off-color)}:host{box-sizing:border-box}.navigation{box-sizing:border-box;cursor:pointer;display:block;position:absolute;top:0;transition:top .2s ease,visibility .1s ease;width:20px}.navigation [data-monster-role=navigation-list] ul{list-style-type:none;margin:0;padding:0 0 0 10px}.navigation [data-monster-role=navigation-list] ul li{padding-left:10px;position:relative}.navigation [data-monster-role=navigation-list] ul li:before{border-left:1px dotted var(--monster-color-primary-2);bottom:0;content:\"\";left:0;margin-top:0;position:absolute;top:0;width:10px}.navigation [data-monster-role=navigation-control]{width:20px}.navigation .heading-strip{background-color:var(--monster-bg-color-primary-3);display:flex;height:0;margin-bottom:10px}.navigation .heading-strip.level-h1{height:6px}.navigation .heading-strip.level-h2{height:4px}.navigation .heading-strip.level-h3{height:2px}.navigation .heading-strip.level-h4,.navigation .heading-strip.level-h5,.navigation .heading-strip.level-h6{height:1px}
|
28
|
+
}`, 0);
|
29
|
+
} catch (e) {
|
30
|
+
addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
|
31
|
+
}
|