@schukai/monster 3.60.0 → 3.62.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/package.json +1 -1
- package/source/components/datatable/datatable.mjs +723 -599
- 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.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/select-filter.mjs +1 -1
- package/source/components/datatable/stylesheet/status.mjs +1 -1
- package/source/components/datatable/util.mjs +10 -7
- package/source/components/events.mjs +17 -0
- package/source/components/form/api-button.mjs +4 -0
- package/source/components/form/button-bar.mjs +1 -1
- package/source/components/form/button.mjs +1 -3
- package/source/components/form/events.mjs +28 -4
- package/source/components/form/form-field.mjs +341 -0
- package/source/components/form/reload.mjs +4 -4
- package/source/components/form/shadow-reload.mjs +1 -1
- package/source/components/form/style/form-field.pcss +4 -0
- 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/button.mjs +1 -1
- package/source/components/form/stylesheet/confirm-button.mjs +1 -1
- package/source/components/form/stylesheet/form-field.mjs +27 -0
- package/source/components/form/stylesheet/form.mjs +1 -1
- package/source/components/form/stylesheet/popper-button.mjs +1 -1
- package/source/components/form/stylesheet/select.mjs +1 -1
- package/source/components/form/stylesheet/state-button.mjs +1 -1
- package/source/components/form/stylesheet/toggle-switch.mjs +1 -1
- package/source/components/form/tabs.mjs +1 -1
- package/source/components/form/template.mjs +4 -4
- package/source/components/host/stylesheet/call-button.mjs +1 -1
- package/source/components/host/stylesheet/collapse.mjs +1 -1
- package/source/components/host/stylesheet/details.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/layout/events.mjs +30 -0
- package/source/components/layout/split-screen.mjs +28 -2
- package/source/components/layout/style/tabs.pcss +16 -13
- package/source/components/layout/stylesheet/tabs.mjs +1 -1
- package/source/components/layout/tabs.mjs +58 -3
- package/source/components/notify/stylesheet/message.mjs +1 -1
- package/source/components/notify/stylesheet/notify.mjs +1 -1
- package/source/components/state/stylesheet/log.mjs +1 -1
- package/source/components/state/stylesheet/state.mjs +1 -1
- package/source/components/style/border.pcss +0 -4
- package/source/components/style/link.pcss +19 -34
- package/source/components/style/mixin/button.pcss +3 -0
- package/source/components/style/mixin/form.pcss +8 -12
- package/source/components/style/mixin/property.pcss +10 -12
- package/source/components/style/mixin/typography.pcss +10 -9
- package/source/components/stylesheet/border.mjs +1 -1
- package/source/components/stylesheet/button.mjs +1 -1
- package/source/components/stylesheet/data-grid.mjs +1 -1
- package/source/components/stylesheet/form.mjs +1 -1
- package/source/components/stylesheet/link.mjs +1 -1
- package/source/components/stylesheet/property.mjs +1 -1
- package/source/components/stylesheet/typography.mjs +1 -1
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +181 -88
@@ -3,6 +3,7 @@
|
|
3
3
|
* SPDX-License-Identifier: AGPL-3.0
|
4
4
|
*/
|
5
5
|
|
6
|
+
import {diff} from "../../data/diff.mjs";
|
6
7
|
import { Pathfinder } from "../../data/pathfinder.mjs";
|
7
8
|
import { isObject } from "../../types/is.mjs";
|
8
9
|
import { Observer } from "../../types/observer.mjs";
|
@@ -19,13 +20,15 @@ const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
|
|
19
20
|
* @private
|
20
21
|
*/
|
21
22
|
function handleDataSourceChanges() {
|
23
|
+
|
22
24
|
if (!this[datasourceLinkedElementSymbol]) {
|
23
25
|
return;
|
24
|
-
}
|
26
|
+
}
|
25
27
|
|
26
28
|
let data = this[datasourceLinkedElementSymbol].data;
|
27
29
|
|
28
30
|
const actualData = JSON.stringify(this.getOption("data"));
|
31
|
+
const actualDataAsObj = JSON.parse(actualData);
|
29
32
|
|
30
33
|
const path = this.getOption("mapping.data");
|
31
34
|
if (path) {
|
@@ -43,18 +46,18 @@ function handleDataSourceChanges() {
|
|
43
46
|
|
44
47
|
const index = this.getOption("mapping.index");
|
45
48
|
if (index !== undefined && index !== null) {
|
46
|
-
data = data[index];
|
49
|
+
data = data?.[index];
|
47
50
|
}
|
48
51
|
|
49
|
-
if (data === undefined) {
|
52
|
+
if (data === undefined|| data === null) {
|
50
53
|
data = [];
|
51
54
|
}
|
52
|
-
|
53
|
-
const
|
54
|
-
if (
|
55
|
+
|
56
|
+
const result = diff(data,actualDataAsObj);
|
57
|
+
if (result.length === 0) {
|
55
58
|
return;
|
56
59
|
}
|
57
|
-
|
60
|
+
|
58
61
|
setTimeout(() => {
|
59
62
|
this.setOption("data", data);
|
60
63
|
}, 0);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
|
+
* Node module: @schukai/monster
|
4
|
+
* This file is licensed under the AGPLv3 License.
|
5
|
+
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
6
|
+
*/
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
/**
|
11
|
+
* content fetched event
|
12
|
+
*
|
13
|
+
* @memberOf Monster.Components
|
14
|
+
* @event event:monster-fetched
|
15
|
+
* @type {object}
|
16
|
+
* @property {string} url loaded uri
|
17
|
+
*/
|
@@ -74,6 +74,10 @@ const containerElementSymbol = Symbol("containerElement");
|
|
74
74
|
* @copyright schukai GmbH
|
75
75
|
* @memberOf Monster.Components.Form
|
76
76
|
* @summary A button that opens a popper element with possible actions.
|
77
|
+
* @fires Monster.Components.Form.event:monster-button-set
|
78
|
+
* @fires Monster.Components.Form.event:monster-api-button-click
|
79
|
+
* @fires Monster.Components.Form.event:monster-api-button-successful
|
80
|
+
* @fires Monster.Components.Form.event:monster-api-button-failed
|
77
81
|
*/
|
78
82
|
class ApiButton extends ActionButton {
|
79
83
|
/**
|
@@ -148,7 +148,7 @@ const ATTRIBUTE_POPPER_POSITION = "data-monster-popper-position";
|
|
148
148
|
* @copyright schukai GmbH
|
149
149
|
* @memberOf Monster.Components.Form
|
150
150
|
* @summary A configurable tab control
|
151
|
-
* @fires Monster.Components.
|
151
|
+
* @fires Monster.Components.event:monster-fetched
|
152
152
|
*/
|
153
153
|
class ButtonBar extends CustomElement {
|
154
154
|
/**
|
@@ -36,8 +36,6 @@ export const buttonElementSymbol = Symbol("buttonElement");
|
|
36
36
|
*
|
37
37
|
* <img src="./images/button.png">
|
38
38
|
*
|
39
|
-
* Dependencies: the system uses functions of the [monsterjs](https://monsterjs.org/) library
|
40
|
-
*
|
41
39
|
* You can create this control either by specifying the HTML tag <monster-button />` directly in the HTML or using
|
42
40
|
* Javascript via the `document.createElement('monster-button');` method.
|
43
41
|
*
|
@@ -48,7 +46,7 @@ export const buttonElementSymbol = Symbol("buttonElement");
|
|
48
46
|
* Or you can create this CustomControl directly in Javascript:
|
49
47
|
*
|
50
48
|
* ```js
|
51
|
-
* import {Button} from '@schukai/
|
49
|
+
* import {Button} from '@schukai/monster/components/form/button.mjs';
|
52
50
|
* document.createElement('monster-button');
|
53
51
|
* ```
|
54
52
|
*
|
@@ -66,19 +66,43 @@
|
|
66
66
|
* @property {boolean} [checked] if it is a boolean value
|
67
67
|
**/
|
68
68
|
|
69
|
+
/**
|
70
|
+
* button clicked event
|
71
|
+
*
|
72
|
+
* @memberOf Monster.Components.Form
|
73
|
+
* @event event:monster-button-clicked
|
74
|
+
* @type {object}
|
75
|
+
*/
|
76
|
+
|
69
77
|
/**
|
70
78
|
* content fetched event
|
71
79
|
*
|
72
80
|
* @memberOf Monster.Components.Form
|
73
|
-
* @event event:monster-
|
81
|
+
* @event event:monster-button-set
|
74
82
|
* @type {object}
|
75
|
-
* @property {string} url loaded uri
|
76
83
|
*/
|
77
84
|
|
78
85
|
/**
|
79
|
-
*
|
86
|
+
* content fetched event
|
80
87
|
*
|
81
88
|
* @memberOf Monster.Components.Form
|
82
|
-
* @event event:monster-button-
|
89
|
+
* @event event:monster-api-button-click
|
90
|
+
* @type {object}
|
91
|
+
*/
|
92
|
+
|
93
|
+
/**
|
94
|
+
* content fetched event
|
95
|
+
*
|
96
|
+
* @memberOf Monster.Components.Form
|
97
|
+
* @event event:monster-api-button-successful
|
83
98
|
* @type {object}
|
84
99
|
*/
|
100
|
+
|
101
|
+
/**
|
102
|
+
* content fetched event
|
103
|
+
*
|
104
|
+
* @memberOf Monster.Components.Form
|
105
|
+
* @event event:monster-api-button-failed
|
106
|
+
* @type {object}
|
107
|
+
*/
|
108
|
+
|
@@ -0,0 +1,341 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
|
+
* Node module: @schukai/monster
|
4
|
+
* This file is licensed under the AGPLv3 License.
|
5
|
+
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
6
|
+
*/
|
7
|
+
import { instanceSymbol } from "../../constants.mjs";
|
8
|
+
import { addAttributeToken } from "../../dom/attributes.mjs";
|
9
|
+
import {
|
10
|
+
ATTRIBUTE_ERRORMESSAGE,
|
11
|
+
ATTRIBUTE_ROLE,
|
12
|
+
} from "../../dom/constants.mjs";
|
13
|
+
import { CustomControl } from "../../dom/customcontrol.mjs";
|
14
|
+
import {
|
15
|
+
assembleMethodSymbol,
|
16
|
+
attributeObserverSymbol,
|
17
|
+
registerCustomElement,
|
18
|
+
} from "../../dom/customelement.mjs";
|
19
|
+
import { findTargetElementFromEvent } from "../../dom/events.mjs";
|
20
|
+
import { isFunction } from "../../types/is.mjs";
|
21
|
+
import { ATTRIBUTE_BUTTON_CLASS } from "./constants.mjs";
|
22
|
+
import { ButtonStyleSheet } from "./stylesheet/button.mjs";
|
23
|
+
import { RippleStyleSheet } from "../stylesheet/ripple.mjs";
|
24
|
+
import { fireCustomEvent } from "../../dom/events.mjs";
|
25
|
+
|
26
|
+
export { FormField };
|
27
|
+
|
28
|
+
|
29
|
+
/**
|
30
|
+
* This CustomControl creates a container for form elements.
|
31
|
+
*
|
32
|
+
* <img src="./images/form-field.png">
|
33
|
+
*
|
34
|
+
* You can create this control either by specifying the HTML tag <monster-form-field />` directly in the HTML or using
|
35
|
+
* Javascript via the `document.createElement('monster-form-field');` method.
|
36
|
+
*
|
37
|
+
* ```html
|
38
|
+
* <monster-form-field></monster-form-field>
|
39
|
+
* ```
|
40
|
+
*
|
41
|
+
* Or you can create this CustomControl directly in Javascript:
|
42
|
+
*
|
43
|
+
* ```js
|
44
|
+
* import {Button} from '@schukai/monster/components/form/form-field.mjs';
|
45
|
+
* document.createElement('monster-form-field');
|
46
|
+
* ```
|
47
|
+
*
|
48
|
+
* The `data-monster-button-class` attribute can be used to change the CSS class of the button.
|
49
|
+
*
|
50
|
+
* @startuml form-field.png
|
51
|
+
* skinparam monochrome true
|
52
|
+
* skinparam shadowing false
|
53
|
+
* HTMLElement <|-- CustomElement
|
54
|
+
* CustomElement <|-- CustomControl
|
55
|
+
* CustomControl <|-- FormField
|
56
|
+
* @enduml
|
57
|
+
*
|
58
|
+
* @since 1.5.0
|
59
|
+
* @copyright schukai GmbH
|
60
|
+
* @memberOf Monster.Components.Form
|
61
|
+
* @summary A simple button
|
62
|
+
*/
|
63
|
+
class FormField extends CustomControl {
|
64
|
+
/**
|
65
|
+
* This method is called by the `instanceof` operator.
|
66
|
+
* @returns {symbol}
|
67
|
+
* @since 2.1.0
|
68
|
+
*/
|
69
|
+
static get [instanceSymbol]() {
|
70
|
+
return Symbol.for("@schukai/monster/components/form/button@@instance");
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
*
|
75
|
+
* @return {Monster.Components.Form.Button}
|
76
|
+
*/
|
77
|
+
[assembleMethodSymbol]() {
|
78
|
+
super[assembleMethodSymbol]();
|
79
|
+
initControlReferences.call(this);
|
80
|
+
initEventHandler.call(this);
|
81
|
+
return this;
|
82
|
+
}
|
83
|
+
|
84
|
+
/**
|
85
|
+
* The Button.click() method simulates a click on the internal button element.
|
86
|
+
*
|
87
|
+
* @since 3.27.0
|
88
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click}
|
89
|
+
*/
|
90
|
+
click() {
|
91
|
+
if (this.getOption("disabled") === true) {
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
|
95
|
+
if (
|
96
|
+
this[buttonElementSymbol] &&
|
97
|
+
isFunction(this[buttonElementSymbol].click)
|
98
|
+
) {
|
99
|
+
this[buttonElementSymbol].click();
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
/**
|
104
|
+
* The Button.focus() method sets focus on the internal button element.
|
105
|
+
*
|
106
|
+
* @since 3.27.0
|
107
|
+
* @param {Object} options
|
108
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus}
|
109
|
+
*/
|
110
|
+
focus(options) {
|
111
|
+
if (this.getOption("disabled") === true) {
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
|
115
|
+
if (
|
116
|
+
this[buttonElementSymbol] &&
|
117
|
+
isFunction(this[buttonElementSymbol].focus)
|
118
|
+
) {
|
119
|
+
this[buttonElementSymbol].focus(options);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* The Button.blur() method removes focus from the internal button element.
|
125
|
+
*/
|
126
|
+
blur() {
|
127
|
+
if (
|
128
|
+
this[buttonElementSymbol] &&
|
129
|
+
isFunction(this[buttonElementSymbol].blur)
|
130
|
+
) {
|
131
|
+
this[buttonElementSymbol].blur();
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* This method determines which attributes are to be monitored by `attributeChangedCallback()`.
|
137
|
+
*
|
138
|
+
* @return {string[]}
|
139
|
+
*/
|
140
|
+
static get observedAttributes() {
|
141
|
+
const attributes = super.observedAttributes;
|
142
|
+
attributes.push(ATTRIBUTE_BUTTON_CLASS);
|
143
|
+
return attributes;
|
144
|
+
}
|
145
|
+
|
146
|
+
/**
|
147
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals}
|
148
|
+
* @return {boolean}
|
149
|
+
*/
|
150
|
+
static get formAssociated() {
|
151
|
+
return true;
|
152
|
+
}
|
153
|
+
|
154
|
+
/**
|
155
|
+
* The current selection of the Select
|
156
|
+
*
|
157
|
+
* ```
|
158
|
+
* e = document.querySelector('monster-select');
|
159
|
+
* console.log(e.value)
|
160
|
+
* // ↦ 1
|
161
|
+
* // ↦ ['1','2']
|
162
|
+
* ```
|
163
|
+
*
|
164
|
+
* @property {string|array}
|
165
|
+
*/
|
166
|
+
get value() {
|
167
|
+
return this.getOption("value");
|
168
|
+
}
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Set selection
|
172
|
+
*
|
173
|
+
* ```
|
174
|
+
* e = document.querySelector('monster-select');
|
175
|
+
* e.value=1
|
176
|
+
* ```
|
177
|
+
*
|
178
|
+
* @property {string|array} value
|
179
|
+
* @since 1.2.0
|
180
|
+
* @throws {Error} unsupported type
|
181
|
+
*/
|
182
|
+
set value(value) {
|
183
|
+
this.setOption("value", value);
|
184
|
+
try {
|
185
|
+
this?.setFormValue(this.value);
|
186
|
+
} catch (e) {
|
187
|
+
addAttributeToken(this, ATTRIBUTE_ERRORMESSAGE, e.message);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* To set the options via the html tag the attribute `data-monster-options` must be used.
|
193
|
+
* @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control}
|
194
|
+
*
|
195
|
+
* The individual configuration values can be found in the table.
|
196
|
+
*
|
197
|
+
* @property {Object} templates Template definitions
|
198
|
+
* @property {string} templates.main Main template
|
199
|
+
* @property {Object} labels Labels
|
200
|
+
* @property {string} labels.button=<slot></slot> Button label
|
201
|
+
* @property {Object} actions Callbacks
|
202
|
+
* @property {string} actions.click="throw Error" Callback when clicked
|
203
|
+
* @property {Object} classes CSS classes
|
204
|
+
* @property {string} classes.button="monster-button-primary" CSS class for the button
|
205
|
+
* @property {boolean} disabled=false Disabled state
|
206
|
+
* @property {Object} effects Effects
|
207
|
+
* @property {boolean} effects.ripple=true Ripple effect
|
208
|
+
*/
|
209
|
+
get defaults() {
|
210
|
+
return Object.assign({}, super.defaults, {
|
211
|
+
templates: {
|
212
|
+
main: getTemplate(),
|
213
|
+
},
|
214
|
+
labels: {
|
215
|
+
button: "<slot></slot>",
|
216
|
+
},
|
217
|
+
classes: {
|
218
|
+
button: "monster-button-primary",
|
219
|
+
},
|
220
|
+
disabled: false,
|
221
|
+
actions: {
|
222
|
+
click: () => {
|
223
|
+
throw new Error("the click action is not defined");
|
224
|
+
},
|
225
|
+
},
|
226
|
+
effects: {
|
227
|
+
ripple: true,
|
228
|
+
},
|
229
|
+
value: null,
|
230
|
+
});
|
231
|
+
}
|
232
|
+
|
233
|
+
/**
|
234
|
+
*
|
235
|
+
* @return {string}
|
236
|
+
*/
|
237
|
+
static getTag() {
|
238
|
+
return "monster-form-field";
|
239
|
+
}
|
240
|
+
|
241
|
+
/**
|
242
|
+
*
|
243
|
+
* @return {Array<CSSStyleSheet>}
|
244
|
+
*/
|
245
|
+
static getCSSStyleSheet() {
|
246
|
+
return [FormFieldStyleSheet];
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
/**
|
251
|
+
* @private
|
252
|
+
* @return {initEventHandler}
|
253
|
+
* @fires Monster.Components.Form.event:monster-button-clicked
|
254
|
+
*/
|
255
|
+
function initEventHandler() {
|
256
|
+
const self = this;
|
257
|
+
const button = this[buttonElementSymbol];
|
258
|
+
|
259
|
+
const type = "click";
|
260
|
+
|
261
|
+
button.addEventListener(type, function (event) {
|
262
|
+
const callback = self.getOption("actions.click");
|
263
|
+
|
264
|
+
fireCustomEvent(self, "monster-button-clicked", {
|
265
|
+
button: self,
|
266
|
+
});
|
267
|
+
|
268
|
+
if (!isFunction(callback)) {
|
269
|
+
return;
|
270
|
+
}
|
271
|
+
|
272
|
+
const element = findTargetElementFromEvent(
|
273
|
+
event,
|
274
|
+
ATTRIBUTE_ROLE,
|
275
|
+
"control",
|
276
|
+
);
|
277
|
+
|
278
|
+
if (!(element instanceof Node && self.hasNode(element))) {
|
279
|
+
return;
|
280
|
+
}
|
281
|
+
|
282
|
+
callback.call(self, event);
|
283
|
+
});
|
284
|
+
|
285
|
+
if (self.getOption("effects.ripple")) {
|
286
|
+
button.addEventListener("click", createRipple.bind(self));
|
287
|
+
}
|
288
|
+
|
289
|
+
// data-monster-options
|
290
|
+
self[attributeObserverSymbol][ATTRIBUTE_BUTTON_CLASS] = function (value) {
|
291
|
+
self.setOption("classes.button", value);
|
292
|
+
};
|
293
|
+
|
294
|
+
return this;
|
295
|
+
}
|
296
|
+
|
297
|
+
/**
|
298
|
+
* @private
|
299
|
+
*/
|
300
|
+
function initControlReferences() {
|
301
|
+
this[buttonElementSymbol] = this.shadowRoot.querySelector(
|
302
|
+
`[${ATTRIBUTE_ROLE}=button]`,
|
303
|
+
);
|
304
|
+
}
|
305
|
+
|
306
|
+
/**
|
307
|
+
* @private
|
308
|
+
* @return {string}
|
309
|
+
*/
|
310
|
+
function getTemplate() {
|
311
|
+
// language=HTML
|
312
|
+
return `
|
313
|
+
<div data-monster-role="control" part="control">
|
314
|
+
<button data-monster-attributes="disabled path:disabled | if:true, class path:classes.button"
|
315
|
+
data-monster-role="button"
|
316
|
+
part="button"
|
317
|
+
data-monster-replace="path:labels.button"></button>
|
318
|
+
</div>`;
|
319
|
+
}
|
320
|
+
|
321
|
+
function createRipple(event) {
|
322
|
+
const button = this[buttonElementSymbol];
|
323
|
+
|
324
|
+
const circle = document.createElement("span");
|
325
|
+
const diameter = Math.max(button.clientWidth, button.clientHeight);
|
326
|
+
const radius = diameter / 2;
|
327
|
+
|
328
|
+
circle.style.width = circle.style.height = `${diameter}px`;
|
329
|
+
circle.style.left = `${event.clientX - button.offsetLeft - radius}px`;
|
330
|
+
circle.style.top = `${event.clientY - button.offsetTop - radius}px`;
|
331
|
+
circle.classList.add("monster-fx-ripple");
|
332
|
+
|
333
|
+
const ripples = button.getElementsByClassName("monster-fx-ripple");
|
334
|
+
for (const ripple of ripples) {
|
335
|
+
ripple.remove();
|
336
|
+
}
|
337
|
+
|
338
|
+
button.appendChild(circle);
|
339
|
+
}
|
340
|
+
|
341
|
+
registerCustomElement(FormField);
|
@@ -95,7 +95,7 @@ const intersectionObserverWasInitialized = Symbol("wasInitialized");
|
|
95
95
|
* @copyright schukai GmbH
|
96
96
|
* @memberOf Monster.Components.Form
|
97
97
|
* @summary A reload control
|
98
|
-
* @fires Monster.Components.
|
98
|
+
* @fires Monster.Components.event:monster-fetched
|
99
99
|
*/
|
100
100
|
class Reload extends CustomElement {
|
101
101
|
/**
|
@@ -188,7 +188,7 @@ class Reload extends CustomElement {
|
|
188
188
|
* @throws {Error} request failed
|
189
189
|
* @throws {Error} not found
|
190
190
|
* @throws {Error} undefined status or type
|
191
|
-
* @fires Monster.Components.
|
191
|
+
* @fires Monster.Components.event:monster-fetched
|
192
192
|
* @return {Monster.Components.Form.Form}
|
193
193
|
*/
|
194
194
|
[assembleMethodSymbol]() {
|
@@ -257,7 +257,7 @@ function initOptionsFromArguments() {
|
|
257
257
|
* @throws {Error} request failed
|
258
258
|
* @throws {Error} not found
|
259
259
|
* @throws {Error} undefined status or type
|
260
|
-
* @fires Monster.Components.
|
260
|
+
* @fires Monster.Components.event:monster-fetched
|
261
261
|
*/
|
262
262
|
function initIntersectionObserver() {
|
263
263
|
if (this[intersectionObserverWasInitialized] === true) {
|
@@ -306,7 +306,7 @@ function initIntersectionObserver() {
|
|
306
306
|
* @throws {Error} undefined status or type
|
307
307
|
* @throws {TypeError} value is not an instance of
|
308
308
|
* @throws {TypeError} value is not a string
|
309
|
-
* @fires Monster.Components.
|
309
|
+
* @fires Monster.Components.event:monster-fetched
|
310
310
|
* @return {Promise}
|
311
311
|
*/
|
312
312
|
function loadContent() {
|
@@ -77,7 +77,7 @@ export { ShadowReload };
|
|
77
77
|
* @copyright schukai GmbH
|
78
78
|
* @memberOf Monster.Components.Form
|
79
79
|
* @summary A shadow reload control
|
80
|
-
* @fires Monster.Components.
|
80
|
+
* @fires Monster.Components.event:monster-fetched
|
81
81
|
*/
|
82
82
|
class ShadowReload extends Reload {
|
83
83
|
/**
|
@@ -20,7 +20,7 @@ const ActionButtonStyleSheet = new CSSStyleSheet();
|
|
20
20
|
try {
|
21
21
|
ActionButtonStyleSheet.insertRule(`
|
22
22
|
@layer actionbutton {
|
23
|
-
: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-gray-6);--monster-color-primary-2:var(--monster-color-gray-6);--monster-color-primary-3:var(--monster-color-gray-1);--monster-color-primary-4:var(--monster-color-gray-1);--monster-bg-color-primary-1:var(--monster-color-gray-1);--monster-bg-color-primary-2:var(--monster-color-gray-2);--monster-bg-color-primary-3:var(--monster-color-gray-3);--monster-bg-color-primary-4:var(--monster-color-gray-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-3);--monster-color-primary-disabled-2:var(--monster-color-gray-1);--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-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)}}: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-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);border-shadow:var(--monster-box-shadow-1)}.monster-border-0{border-radius:0;border-style:none;border-width:0;border-shadow:none}.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);border-shadow:var(--monster-box-shadow-1)}.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);border-shadow:var(--monster-box-shadow-1)}.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)}[data-monster-role=control] div[data-monster-role=popper]{padding:2px}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons]{display:flex;flex-direction:column}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] button{background:transparent;border:0}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] monster-message-state-button:not(:last-child){border-bottom:var(--monster-border-width) var(--monster-border-style) var(--monster-color-primary-1)}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] monster-message-state-button:not(:last-child) ::part(button){border-bottom:var(--monster-border-width) var(--monster-border-style) var(--monster-color-primary-1)}
|
23
|
+
: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-3);--monster-color-primary-disabled-2:var(--monster-color-gray-1);--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-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)}}: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-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)}[data-monster-role=control] div[data-monster-role=popper]{padding:2px}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons]{display:flex;flex-direction:column}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] button{background:transparent;border:0}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] monster-message-state-button:not(:last-child){border-bottom:var(--monster-border-width) var(--monster-border-style) var(--monster-color-primary-1)}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] monster-message-state-button:not(:last-child) ::part(button){border-bottom:var(--monster-border-width) var(--monster-border-style) var(--monster-color-primary-1)}
|
24
24
|
}`, 0);
|
25
25
|
} catch (e) {
|
26
26
|
addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
|