@schukai/monster 3.88.0 → 3.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +76 -45
  2. package/package.json +1 -1
  3. package/source/components/content/stylesheet/copy.mjs +1 -1
  4. package/source/components/datatable/datatable.mjs +922 -914
  5. package/source/components/datatable/filter.mjs +914 -920
  6. package/source/components/datatable/pagination.mjs +1 -3
  7. package/source/components/datatable/stylesheet/change-button.mjs +1 -1
  8. package/source/components/datatable/stylesheet/column-bar.mjs +13 -6
  9. package/source/components/datatable/stylesheet/dataset.mjs +1 -1
  10. package/source/components/datatable/stylesheet/datatable.mjs +13 -6
  11. package/source/components/datatable/stylesheet/embedded-pagination.mjs +13 -6
  12. package/source/components/datatable/stylesheet/filter-select.mjs +1 -1
  13. package/source/components/datatable/stylesheet/filter.mjs +13 -6
  14. package/source/components/datatable/stylesheet/save-button.mjs +1 -1
  15. package/source/components/datatable/stylesheet/status.mjs +1 -1
  16. package/source/components/form/api-button.mjs +7 -2
  17. package/source/components/form/button-bar.mjs +36 -6
  18. package/source/components/form/input-group.mjs +105 -0
  19. package/source/components/form/password.mjs +274 -0
  20. package/source/components/form/popper.mjs +1 -1
  21. package/source/components/form/style/input-group.pcss +53 -0
  22. package/source/components/form/style/password.pcss +15 -0
  23. package/source/components/form/stylesheet/action-button.mjs +13 -6
  24. package/source/components/form/stylesheet/button.mjs +13 -6
  25. package/source/components/form/stylesheet/confirm-button.mjs +13 -6
  26. package/source/components/form/stylesheet/form.mjs +1 -1
  27. package/source/components/form/stylesheet/input-group.mjs +31 -0
  28. package/source/components/form/stylesheet/password.mjs +31 -0
  29. package/source/components/form/stylesheet/popper-button.mjs +13 -6
  30. package/source/components/form/stylesheet/select.mjs +13 -6
  31. package/source/components/form/stylesheet/state-button.mjs +13 -6
  32. package/source/components/form/tree-select.mjs +1 -1
  33. package/source/components/host/stylesheet/call-button.mjs +1 -1
  34. package/source/components/host/stylesheet/host.mjs +1 -1
  35. package/source/components/host/stylesheet/overlay.mjs +1 -1
  36. package/source/components/host/stylesheet/toggle-button.mjs +1 -1
  37. package/source/components/host/stylesheet/viewer.mjs +1 -1
  38. package/source/components/layout/stylesheet/collapse.mjs +1 -1
  39. package/source/components/layout/stylesheet/details.mjs +1 -1
  40. package/source/components/layout/stylesheet/slider.mjs +1 -1
  41. package/source/components/layout/stylesheet/tabs.mjs +1 -1
  42. package/source/components/navigation/stylesheet/table-of-content.mjs +1 -1
  43. package/source/components/navigation/table-of-content.mjs +20 -4
  44. package/source/components/style/common.css +1 -1
  45. package/source/components/style/common.pcss +7 -1
  46. package/source/components/style/form.pcss +1 -1
  47. package/source/components/style/mixin/property.pcss +1 -0
  48. package/source/components/style/normalize.css +1 -1
  49. package/source/components/style/normalize.pcss +8 -0
  50. package/source/components/style/property.css +1 -1
  51. package/source/components/stylesheet/common.mjs +1 -1
  52. package/source/components/stylesheet/normalize.mjs +1 -1
  53. package/source/components/stylesheet/property.mjs +1 -1
  54. package/source/components/tree-menu/style/tree-menu.pcss +0 -2
  55. package/source/components/tree-menu/stylesheet/tree-menu.mjs +1 -1
  56. package/source/monster.mjs +2 -0
  57. package/source/types/is.mjs +9 -1
  58. package/source/types/version.mjs +1 -1
  59. package/test/cases/monster.mjs +1 -1
  60. package/test/cases/types/is.mjs +59 -1
  61. package/test/util/jsdom.mjs +2 -0
  62. package/test/web/test.html +2 -2
  63. package/test/web/tests.js +83 -21
@@ -0,0 +1,105 @@
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
+
13
+ import { instanceSymbol } from "../../constants.mjs";
14
+ import { CustomElement } from "../../dom/customelement.mjs";
15
+ import {
16
+ assembleMethodSymbol,
17
+ registerCustomElement,
18
+ } from "../../dom/customelement.mjs";
19
+ import { InputGroupStyleSheet } from "./stylesheet/input-group.mjs";
20
+
21
+ export { InputGroup };
22
+
23
+ /**
24
+ * @private
25
+ * @type {symbol}
26
+ */
27
+ export const inputGroupElementSymbol = Symbol("inputGroupElement");
28
+
29
+ /**
30
+ * A InputGroup
31
+ *
32
+ * @fragments /fragments/components/form/input-group/
33
+ *
34
+ * @example /examples/components/form/input-group-simple
35
+ *
36
+ * @since 3.89.0
37
+ * @copyright schukai GmbH
38
+ * @summary A beautiful InputGroup that can make your life easier and also looks good.
39
+ */
40
+ class InputGroup extends CustomElement {
41
+ /**
42
+ * This method is called by the `instanceof` operator.
43
+ * @returns {symbol}
44
+ */
45
+ static get [instanceSymbol]() {
46
+ return Symbol.for("@schukai/monster/components/form/input-group@@instance");
47
+ }
48
+
49
+ /**
50
+ * @return {Components.Form.InputGroup
51
+ */
52
+ [assembleMethodSymbol]() {
53
+ super[assembleMethodSymbol]();
54
+ return this;
55
+ }
56
+
57
+ /**
58
+ * To set the options via the HTML Tag, the attribute `data-monster-options` must be used.
59
+ * @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control}
60
+ *
61
+ * The individual configuration values can be found in the table.
62
+ *
63
+ * @property {Object} templates Template definitions
64
+ * @property {string} templates.main Main template
65
+ * @property {boolean} disabled=false Disabled state
66
+ */
67
+ get defaults() {
68
+ return Object.assign({}, super.defaults, {
69
+ templates: {
70
+ main: getTemplate(),
71
+ },
72
+ disabled: false,
73
+ });
74
+ }
75
+
76
+ /**
77
+ * @return {string}
78
+ */
79
+ static getTag() {
80
+ return "monster-input-group";
81
+ }
82
+
83
+ /**
84
+ * @return {CSSStyleSheet[]}
85
+ */
86
+ static getCSSStyleSheet() {
87
+ return [InputGroupStyleSheet];
88
+ }
89
+ }
90
+
91
+ /**
92
+ * @private
93
+ * @return {string}
94
+ */
95
+ function getTemplate() {
96
+ // language=HTML
97
+ return `
98
+ <div data-monster-role="control" part="control">
99
+ <slot name="prefix" part="prefix"></slot>
100
+ <slot part="main"></slot>
101
+ <slot name="suffix" part="suffix"></slot>
102
+ </div>`;
103
+ }
104
+
105
+ registerCustomElement(InputGroup);
@@ -0,0 +1,274 @@
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
+
13
+ import {instanceSymbol} from "../../constants.mjs";
14
+ import {
15
+ ATTRIBUTE_ROLE,
16
+ } from "../../dom/constants.mjs";
17
+ import {CustomControl} from "../../dom/customcontrol.mjs";
18
+ import {
19
+ assembleMethodSymbol,
20
+ registerCustomElement,
21
+ } from "../../dom/customelement.mjs";
22
+ import {PasswordStyleSheet} from "./stylesheet/password.mjs";
23
+ import {fireCustomEvent} from "../../dom/events.mjs";
24
+
25
+ export {Password};
26
+
27
+ /**
28
+ * @private
29
+ * @type {symbol}
30
+ */
31
+ export const passwordElementSymbol = Symbol("passwordElement");
32
+
33
+ /**
34
+ * @private
35
+ * @type {symbol}
36
+ */
37
+ export const visibleIconElementSymbol = Symbol("visibleIconElement");
38
+
39
+ /**
40
+ * @private
41
+ * @type {symbol}
42
+ */
43
+ export const hiddenIconElementSymbol = Symbol("hiddenIconElement");
44
+
45
+ /**
46
+ * @private
47
+ * @type {symbol}
48
+ */
49
+ export const inputElementSymbol = Symbol("inputIconElement");
50
+
51
+ /**
52
+ * A password field
53
+ *
54
+ * @fragments /fragments/components/components/form/password/
55
+ *
56
+ * @example /examples/components/components/form/password-simple
57
+ *
58
+ * @since 3.89.0
59
+ * @copyright schukai GmbH
60
+ * @summary A beautiful Password field that can make your life easier and also looks good.
61
+ */
62
+ class Password extends CustomControl {
63
+ /**
64
+ * This method is called by the `instanceof` operator.
65
+ * @returns {symbol}
66
+ */
67
+ static get [instanceSymbol]() {
68
+ return Symbol.for("@schukai/monster/components/form/password@@instance");
69
+ }
70
+
71
+ /**
72
+ *
73
+ * @return {Components.Form.Password
74
+ */
75
+ [assembleMethodSymbol]() {
76
+ super[assembleMethodSymbol]();
77
+ initControlReferences.call(this);
78
+ initEventHandler.call(this);
79
+ initPasswordState.call(this);
80
+ return this;
81
+ }
82
+
83
+ get value() {
84
+ return this[inputElementSymbol].value;
85
+ }
86
+
87
+ /**
88
+ * Must be overridden by a derived class and set the value of the control.
89
+ *
90
+ * This is a method of [internal API](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals), which is a part of the web standard for custom elements.
91
+ *
92
+ * @param {*} value The value to set.
93
+ * @throws {Error} the value setter must be overwritten by the derived class
94
+ */
95
+ set value(value) {
96
+ this[inputElementSymbol].value = value;
97
+ }
98
+
99
+ /**
100
+ * To set the options via the HTML Tag, the attribute `data-monster-options` must be used.
101
+ * @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control}
102
+ *
103
+ * The individual configuration values can be found in the table.
104
+ *
105
+ * @property {Object} templates Template definitions
106
+ * @property {string} templates.main Main template
107
+ * @property {string} templateMapping.hidden-icon The hidden icon template (without svg tag)
108
+ * @property {string} templateMapping.visible-icon The visible icon template (without svg tag)
109
+ * @property {string} type="password" The type of the input field
110
+ * @property {string} placeholder="" The placeholder of the input field
111
+ * @property {boolean} required=false The required state of the input field
112
+ * @property {string} autocomplete="off" The autocomplete state of the input field
113
+ * @property {string} inputmode="text" The inputmode state of the input field
114
+ * @property {Object} aria Aria attributes
115
+ * @property {boolean} aria.required=false The required state of the input field
116
+ * @property {string} aria.placeholder="" The placeholder of the input field
117
+ * @property {boolean} disabled=false Disabled state
118
+ */
119
+ get defaults() {
120
+ return Object.assign({}, super.defaults, {
121
+ templates: {
122
+ main: getTemplate(),
123
+ },
124
+ templateMapping: {
125
+ "hidden-icon": `
126
+ <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7 7 0 0 0-2.79.588l.77.771A6 6 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755q-.247.248-.517.486z"/>
127
+ <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829"/>
128
+ <path d="M3.35 5.47q-.27.24-.518.487A13 13 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7 7 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12z"/>`,
129
+ "visible-icon": `
130
+ <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z"/>
131
+ <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0"/>`
132
+ },
133
+ type: "password",
134
+ placeholder: "",
135
+ required: false,
136
+ autocomplete: "off",
137
+ inputmode: "text",
138
+ aria: {
139
+ required: false,
140
+ placeholder: "",
141
+ },
142
+ disabled: false,
143
+ });
144
+ }
145
+
146
+ /**
147
+ * @return {string}
148
+ */
149
+ static getTag() {
150
+ return "monster-password";
151
+ }
152
+
153
+ /**
154
+ * @return {CSSStyleSheet[]}
155
+ */
156
+ static getCSSStyleSheet() {
157
+ return [PasswordStyleSheet];
158
+ }
159
+ }
160
+
161
+ /**
162
+ * @private
163
+ * @return {initEventHandler}
164
+ * @fires monster-password-hide
165
+ * @fires monster-password-show
166
+ */
167
+ function initEventHandler() {
168
+ const self = this;
169
+ const element = this[passwordElementSymbol];
170
+
171
+ const type = "click";
172
+
173
+ this[hiddenIconElementSymbol].addEventListener(type, function (event) {
174
+ fireCustomEvent(self, "monster-password-show", {
175
+ element: self,
176
+ });
177
+
178
+ requestAnimationFrame(() => {
179
+ self[visibleIconElementSymbol].classList.remove("hidden");
180
+ self[hiddenIconElementSymbol].classList.add("hidden");
181
+ self.setOption("type", "text");
182
+ });
183
+
184
+ });
185
+
186
+
187
+ this[visibleIconElementSymbol].addEventListener(type, function (event) {
188
+ fireCustomEvent(self, "monster-password-hide", {
189
+ element: self,
190
+ });
191
+
192
+ requestAnimationFrame(() => {
193
+ self[visibleIconElementSymbol].classList.add("hidden");
194
+ self[hiddenIconElementSymbol].classList.remove("hidden");
195
+ self.setOption("type", "password");
196
+ });
197
+
198
+ });
199
+
200
+ return this;
201
+ }
202
+
203
+ /**
204
+ * @private
205
+ */
206
+ function initPasswordState() {
207
+
208
+ if (this.getOption('type') === 'password') {
209
+ this[visibleIconElementSymbol].classList.add("hidden");
210
+ this[hiddenIconElementSymbol].classList.remove("hidden");
211
+
212
+ } else {
213
+ this[visibleIconElementSymbol].classList.remove("hidden");
214
+ this[hiddenIconElementSymbol].classList.add("hidden");
215
+ }
216
+ }
217
+
218
+ /**
219
+ * @private
220
+ * @return {void}
221
+ */
222
+ function initControlReferences() {
223
+ this[passwordElementSymbol] = this.shadowRoot.querySelector(
224
+ `[${ATTRIBUTE_ROLE}="control"]`,
225
+ );
226
+
227
+ this[visibleIconElementSymbol] = this.shadowRoot.querySelector(
228
+ `[${ATTRIBUTE_ROLE}="visible-icon"]`,
229
+ );
230
+
231
+ this[hiddenIconElementSymbol] = this.shadowRoot.querySelector(
232
+ `[${ATTRIBUTE_ROLE}="hidden-icon"]`,
233
+ );
234
+
235
+ this[inputElementSymbol] = this.shadowRoot.querySelector(
236
+ `[${ATTRIBUTE_ROLE}="input"]`,
237
+ );
238
+ }
239
+
240
+ /**
241
+ * @private
242
+ * @return {string}
243
+ */
244
+ function getTemplate() {
245
+ // language=HTML
246
+ return `
247
+ <div data-monster-role="control" part="control">
248
+ <monster-input-group>
249
+ <input data-monster-role="input"
250
+ style="border:0"
251
+ data-monster-attributes="
252
+ type path:type,
253
+ placeholder path:placeholder,
254
+ required path:required,
255
+ autocomplete path:autocomplete,
256
+ inputmode path:inputmode,
257
+ aria-required path:aria.required,
258
+ aria-placeholder path:aria.placeholder"
259
+ >
260
+
261
+ <svg viewBox="0 0 16 16" data-monster-role="visible-icon" class="hidden">
262
+ \${visible-icon}
263
+ </svg>
264
+ <svg viewBox="0 0 16 16" data-monster-role="hidden-icon" class="hidden">
265
+ \${hidden-icon}
266
+ </svg>
267
+ </monster-input-group>
268
+
269
+ </div>
270
+
271
+ `;
272
+ }
273
+
274
+ registerCustomElement(Password);
@@ -19,6 +19,6 @@ export { Popper };
19
19
  /**
20
20
  * @since 1.10.0
21
21
  * @copyright schukai GmbH
22
- * @deprecated since 3.65.0 use {@link Monster.Components.Layout.Popper}
22
+ * @deprecated since 3.65.0
23
23
  */
24
24
  class Popper extends NewPopper {}
@@ -0,0 +1,53 @@
1
+
2
+ @import "../../style/display.pcss";
3
+ @import "../../style/border.pcss";
4
+ @import "../../style/form.pcss";
5
+ @import "../../style/typography.pcss";
6
+ @import "../../style/control.pcss";
7
+
8
+ :host {
9
+ border-width: var(--monster-theme-control-border-width);
10
+ border-radius: var(--monster-theme-control-border-radius);
11
+ border-style: var(--monster-theme-control-border-style);
12
+ border-color: var(--monster-theme-control-border-color);
13
+ }
14
+
15
+ [data-monster-role="control"] {
16
+ display: flex;
17
+ align-items: center;
18
+ flex-wrap: nowrap;
19
+ position: relative;
20
+ box-sizing: border-box;
21
+ }
22
+
23
+
24
+ [data-monster-role="control"] {
25
+
26
+ position: relative;
27
+
28
+ ::slotted(*) {
29
+ height: auto;
30
+ border: none;
31
+ --monster-border-width: 0;
32
+ }
33
+
34
+ ::slotted(svg) {
35
+ width: 1.1rem;
36
+ padding: 0 0.5rem 0 0.5rem;
37
+ }
38
+
39
+ ::slotted(input:focus-visible),
40
+ ::slotted(input) {
41
+ outline: none;
42
+ position: relative;
43
+ flex: 1 1 auto;
44
+ width: 1%;
45
+ min-width: 0;
46
+ display: block;
47
+ appearance: none;
48
+ border: none !important;
49
+ padding: 0.5rem 0.5rem 0.5rem 0.5rem;
50
+ }
51
+
52
+ }
53
+
@@ -0,0 +1,15 @@
1
+ @import "../../style/display.pcss";
2
+ @import "../../style/control.pcss";
3
+ @import "../../style/border.pcss";
4
+ @import "../../style/typography.pcss";
5
+
6
+
7
+ input:focus-visible,
8
+ input {
9
+ outline: none;
10
+ }
11
+
12
+ svg {
13
+ cursor: pointer;
14
+ }
15
+
@@ -10,10 +10,10 @@
10
10
  * For more information about purchasing a commercial license, please contact schukai GmbH.
11
11
  */
12
12
 
13
- import {addAttributeToken} from "../../../dom/attributes.mjs";
14
- import {ATTRIBUTE_ERRORMESSAGE} from "../../../dom/constants.mjs";
13
+ import { addAttributeToken } from "../../../dom/attributes.mjs";
14
+ import { ATTRIBUTE_ERRORMESSAGE } from "../../../dom/constants.mjs";
15
15
 
16
- export {ActionButtonStyleSheet}
16
+ export { ActionButtonStyleSheet };
17
17
 
18
18
  /**
19
19
  * @private
@@ -22,10 +22,17 @@ export {ActionButtonStyleSheet}
22
22
  const ActionButtonStyleSheet = new CSSStyleSheet();
23
23
 
24
24
  try {
25
- ActionButtonStyleSheet.insertRule(`
25
+ ActionButtonStyleSheet.insertRule(
26
+ `
26
27
  @layer actionbutton {
27
28
  :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-font-family-monospace:\"Consolas\",\"Courier New\",\"Roboto Mono\",\"Source Code Pro\",\"Fira Mono\",monospace;--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-cinnamon-1);--monster-color-primary-4:var(--monster-color-cinnamon-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-6);--monster-bg-color-primary-4:var(--monster-color-gray-4)}@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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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-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-color-seashell-1);--monster-theme-control-color:var(--monster-color-seashell-6);--monster-theme-control-hover-color:var(--monster-color-seashell-6);--monster-theme-control-hover-bg-color:var(--monster-color-seashell-2);--monster-theme-control-border-width:2px;--monster-theme-control-border-style:solid;--monster-theme-control-border-radius:0;--monster-theme-control-border-color:var(--monster-color-primary-1)}@media (prefers-color-scheme:dark){:after,:before,:root{--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)}}:after,:before,:root{--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)}@media (prefers-color-scheme:dark){:after,:before,:root{--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-border-style:solid;--monster-border-width:3px;--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:2px;--monster-dragger-handle-width:4px;--monster-dragger-handle-height:50px;--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-color-seashell-1:#f7f5ef;--monster-color-seashell-2:#e5e2d9;--monster-color-seashell-3:#cbc6b3;--monster-color-seashell-4:#a19d8a;--monster-color-seashell-5:#7a7566;--monster-color-seashell-6:#514d3f}.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}:is([data-monster-role=control] [data-monster-role=container]) [data-monster-role=buttons]{display:flex;flex-direction:column}:is(:is([data-monster-role=control] [data-monster-role=container]) [data-monster-role=buttons]) button{background:transparent;border:0;width:100%}:is(:is([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)}:is(:is(:is([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)}
28
- }`, 0);
29
+ }`,
30
+ 0,
31
+ );
29
32
  } catch (e) {
30
- addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
33
+ addAttributeToken(
34
+ document.getRootNode().querySelector("html"),
35
+ ATTRIBUTE_ERRORMESSAGE,
36
+ e + "",
37
+ );
31
38
  }