@schukai/monster 3.86.3 → 3.86.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/source/components/datatable/datasource/dom.mjs +3 -12
  4. package/source/components/datatable/datasource/rest.mjs +30 -31
  5. package/source/components/datatable/datatable.mjs +47 -7
  6. package/source/components/datatable/filter-button.mjs +3 -38
  7. package/source/components/datatable/filter.mjs +978 -950
  8. package/source/components/datatable/pagination.mjs +124 -10
  9. package/source/components/datatable/style/datatable.pcss +4 -11
  10. package/source/components/datatable/style/embedded-pagination.pcss +16 -61
  11. package/source/components/datatable/style/filter-button.pcss +10 -7
  12. package/source/components/datatable/style/filter.pcss +24 -25
  13. package/source/components/datatable/stylesheet/column-bar.mjs +13 -6
  14. package/source/components/datatable/stylesheet/datatable.mjs +14 -7
  15. package/source/components/datatable/stylesheet/embedded-pagination.mjs +1 -1
  16. package/source/components/datatable/stylesheet/filter-button.mjs +1 -1
  17. package/source/components/datatable/stylesheet/filter.mjs +7 -14
  18. package/source/components/datatable/stylesheet/pagination.mjs +13 -6
  19. package/source/components/form/action-button.mjs +2 -2
  20. package/source/components/form/api-button.mjs +7 -38
  21. package/source/components/form/style/action-button.pcss +2 -1
  22. package/source/components/form/style/button.pcss +1 -1
  23. package/source/components/form/style/confirm-button.pcss +1 -1
  24. package/source/components/form/style/popper-button.pcss +6 -5
  25. package/source/components/form/style/state-button.pcss +1 -1
  26. package/source/components/form/stylesheet/action-button.mjs +7 -14
  27. package/source/components/form/stylesheet/button.mjs +7 -14
  28. package/source/components/form/stylesheet/confirm-button.mjs +7 -14
  29. package/source/components/form/stylesheet/popper-button.mjs +7 -14
  30. package/source/components/form/stylesheet/state-button.mjs +7 -14
  31. package/source/types/version.mjs +1 -1
  32. package/test/cases/monster.mjs +1 -1
  33. package/test/web/test.html +2 -2
  34. package/test/web/tests.js +73 -24
@@ -17,7 +17,8 @@ import {
17
17
  CustomElement,
18
18
  registerCustomElement,
19
19
  } from "../../dom/customelement.mjs";
20
- import { findElementWithSelectorUpwards } from "../../dom/util.mjs";
20
+ import { findElementWithSelectorUpwards, getWindow } from "../../dom/util.mjs";
21
+ import { DeadMansSwitch } from "../../util/deadmansswitch.mjs";
21
22
  import { ThemeStyleSheet } from "../stylesheet/theme.mjs";
22
23
  import { ATTRIBUTE_DATASOURCE_SELECTOR } from "./constants.mjs";
23
24
  import { Datasource } from "./datasource.mjs";
@@ -51,6 +52,24 @@ const paginationElementSymbol = Symbol.for("paginationElement");
51
52
  */
52
53
  const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
53
54
 
55
+ /**
56
+ * @private
57
+ * @type {symbol}
58
+ */
59
+ const resizeObserverSymbol = Symbol("resizeObserver");
60
+
61
+ /**
62
+ * @private
63
+ * @type {symbol}
64
+ */
65
+ const sizeDataSymbol = Symbol("sizeData");
66
+
67
+ /**
68
+ * @private
69
+ * @type {symbol}
70
+ */
71
+ const debounceSizeSymbol = Symbol("debounceSize");
72
+
54
73
  /**
55
74
  * The Pagination component
56
75
  *
@@ -148,6 +167,77 @@ class Pagination extends CustomElement {
148
167
  return "monster-pagination";
149
168
  }
150
169
 
170
+ /**
171
+ * @return {void}
172
+ */
173
+ disconnectedCallback() {
174
+ super.disconnectedCallback();
175
+ if (this?.[resizeObserverSymbol] instanceof ResizeObserver) {
176
+ this[resizeObserverSymbol].disconnect();
177
+ }
178
+ }
179
+
180
+ /**
181
+ * @return {void}
182
+ */
183
+ connectedCallback() {
184
+ super.connectedCallback();
185
+
186
+ const parentNode = this.parentNode;
187
+ if (!parentNode) {
188
+ return;
189
+ }
190
+
191
+ const parentParentNode = parentNode?.parentNode || parentNode;
192
+
193
+ const parentWidth = parentParentNode.offsetWidth;
194
+ const ownWidth = this.offsetWidth;
195
+
196
+ this[sizeDataSymbol] = {
197
+ last: {
198
+ parentWidth: parentParentNode.offsetWidth || 0,
199
+ },
200
+ showNumbers: ownWidth < parentWidth,
201
+ };
202
+
203
+ handleDataSourceChanges.call(this);
204
+
205
+ setTimeout(() => {
206
+ this[resizeObserverSymbol] = new ResizeObserver((entries) => {
207
+ if (this[debounceSizeSymbol] instanceof DeadMansSwitch) {
208
+ try {
209
+ this[debounceSizeSymbol].touch();
210
+ return;
211
+ } catch (e) {
212
+ delete this[debounceSizeSymbol];
213
+ }
214
+ }
215
+
216
+ this[debounceSizeSymbol] = new DeadMansSwitch(250, () => {
217
+ queueMicrotask(() => {
218
+ const parentWidth = parentParentNode.offsetWidth;
219
+ const ownWidth = this.clientWidth;
220
+
221
+ if (
222
+ this[sizeDataSymbol]?.last?.parentWidth === parentWidth
223
+ ) {
224
+ return;
225
+ }
226
+
227
+ this[sizeDataSymbol].last = {
228
+ parentWidth: parentWidth,
229
+ };
230
+
231
+ this[sizeDataSymbol].showNumbers = ownWidth < parentWidth;
232
+ handleDataSourceChanges.call(this);
233
+ });
234
+ });
235
+ });
236
+
237
+ this[resizeObserverSymbol].observe(this?.parentNode?.parentNode);
238
+ }, 500);
239
+ }
240
+
151
241
  /**
152
242
  * @return {void}
153
243
  */
@@ -173,6 +263,7 @@ class Pagination extends CustomElement {
173
263
  element.datasource.attachObserver(
174
264
  new Observer(handleDataSourceChanges.bind(this)),
175
265
  );
266
+
176
267
  handleDataSourceChanges.call(this);
177
268
  }
178
269
  }
@@ -244,6 +335,10 @@ function initEventHandler() {
244
335
  }
245
336
  }
246
337
 
338
+ if (!(element instanceof HTMLElement)) {
339
+ return;
340
+ }
341
+
247
342
  let page = null;
248
343
 
249
344
  if (!element.hasAttribute("data-page-no")) {
@@ -264,7 +359,17 @@ function initEventHandler() {
264
359
  return;
265
360
  }
266
361
 
267
- datasource.setParameters({ page }).reload();
362
+ if (typeof datasource.setParameters !== "function") {
363
+ return;
364
+ }
365
+
366
+ datasource.setParameters({ page });
367
+
368
+ if (typeof datasource.reload !== "function") {
369
+ return;
370
+ }
371
+
372
+ datasource.reload();
268
373
  });
269
374
  }
270
375
 
@@ -320,11 +425,18 @@ function handleDataSourceChanges() {
320
425
  this.getOption("currentPage"),
321
426
  this.getOption("pages"),
322
427
  );
323
- this.setOption("pagination", pagination);
428
+
429
+ if (this?.[sizeDataSymbol]?.showNumbers !== true) {
430
+ pagination.items = [];
431
+ }
432
+
433
+ getWindow().requestAnimationFrame(() => {
434
+ this.setOption("pagination", pagination);
435
+ });
324
436
  }
325
437
 
326
438
  /**
327
- *
439
+ * @private
328
440
  * @param current
329
441
  * @param max
330
442
  * @return {object}
@@ -436,17 +548,19 @@ function getTemplate() {
436
548
  <nav data-monster-role="pagination" role="navigation" aria-label="pagination">
437
549
  <ul class="pagination-list" data-monster-insert="items path:pagination.items"
438
550
  data-monster-select-this="true">
439
- <li part="pagination-prev"><a data-monster-role="pagination-prev"
440
- data-monster-attributes="
551
+ <li part="pagination-prev" data-monster-role="pagination-prev"><a
552
+ data-monster-role="pagination-prev"
553
+ data-monster-attributes="
441
554
  class path:pagination.prevClass | prefix: previous,
442
555
  data-page-no path:pagination.prevNo,
443
556
  href path:pagination.prevHref | prefix: #"
444
- data-monster-replace="path:labels.previous">Previous</a></li>
445
- <li part="pagination-next"><a data-monster-role="pagination-next"
446
- data-monster-attributes="class path:pagination.nextClass | prefix: next,
557
+ data-monster-replace="path:labels.previous">Previous</a></li>
558
+ <li part="pagination-next" data-monster-role="pagination-next"><a
559
+ data-monster-role="pagination-next"
560
+ data-monster-attributes="class path:pagination.nextClass | prefix: next,
447
561
  data-page-no path:pagination.nextNo,
448
562
  href path:pagination.nextHref | prefix: #"
449
- data-monster-replace="path:labels.next">Next</a></li>
563
+ data-monster-replace="path:labels.next">Next</a></li>
450
564
  </ul>
451
565
  </nav>
452
566
  </div>
@@ -18,12 +18,6 @@
18
18
  @import "../../style/theme.pcss";
19
19
  @import "../../style/skeleton.pcss";
20
20
 
21
- [data-monster-role="control"] {
22
- container-type: inline-size ;
23
- container-name: datatable;
24
- @mixin text;
25
- }
26
-
27
21
  ::slotted(monster-collapse) {
28
22
  --monster-color-gradient-1: none;
29
23
  --monster-color-gradient-2: none;
@@ -252,15 +246,14 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
252
246
  padding: var(--monster-space-7) 0;
253
247
  }
254
248
 
255
-
256
- @container datatable (max-width: 900px) {
249
+ [data-monster-role="control"].small {
257
250
 
258
251
 
259
- [data-monster-role="datatable-headers"] {
252
+ & [data-monster-role="datatable-headers"] {
260
253
  display: none;
261
254
  }
262
255
 
263
- [data-monster-role="table-container"] {
256
+ & [data-monster-role="table-container"] {
264
257
 
265
258
  & .bar {
266
259
  display: flex;
@@ -285,7 +278,7 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
285
278
  }
286
279
  }
287
280
 
288
- ::slotted(.monster-button-group) {
281
+ & ::slotted(.monster-button-group) {
289
282
  display: flex;
290
283
  flex-direction: column !important;
291
284
  }
@@ -7,6 +7,8 @@
7
7
  @import "../../style/control.pcss";
8
8
  @import "../../style/property.pcss";
9
9
 
10
+
11
+
10
12
  [data-monster-role=pagination] {
11
13
  @mixin text;
12
14
  display: flex;
@@ -15,21 +17,27 @@
15
17
 
16
18
  & ul {
17
19
  display: flex;
18
- flex-wrap: wrap;
20
+ flex-wrap: nowrap;
19
21
  justify-content: center;
20
22
  align-items: center;
21
23
  list-style: none;
22
24
 
23
25
  padding-left: 0;
24
26
  margin: 20px 0;
27
+
25
28
 
26
29
  }
27
30
 
28
31
  & ul li {
29
32
 
30
33
  margin: 0;
31
- border-left: solid 1px black;
34
+ border-left: solid 1px var(--monster-theme-control-border-color);
32
35
  padding: 0 10px;
36
+
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+
33
41
 
34
42
  & a, & a:link, & a:visited, & a:hover, & a:active, & a:focus {
35
43
  width: max-content;
@@ -73,7 +81,7 @@
73
81
  }
74
82
  }
75
83
 
76
- @mixin viewport-7 {
84
+ @mixin viewport-7 {
77
85
 
78
86
  & ul li {
79
87
  padding: 0 2px;
@@ -92,67 +100,14 @@
92
100
  }
93
101
 
94
102
  }
95
- /*
96
- & [data-monster-error-state=hidden] {
97
- display: none;
98
- }
99
-
100
- & [data-monster-loading-state=hidden] {
101
- display: none;
102
- }
103
- */
104
- /** & .pagination-loading-state {
105
- align-items: center;
106
- display: flex;
107
103
 
108
- &.hidden {
109
- display: none;
110
- }
111
104
 
112
- }
105
+ }
113
106
 
114
- & .pagination-error-state {
115
- align-items: center;
116
- display: flex;
117
107
 
118
- &.hidden {
119
- display: none;
120
- }
121
- & .state-icon-container {
122
- width:2em;
123
- height:2em;
124
- margin:0 5px 0 2px;
108
+ @container (min-width: 800px) {
109
+ [data-monster-role=pagination] {
110
+ background-color: red;
111
+ color: red;
125
112
  }
126
- }*/
127
- /*
128
- & .pagination-state {
129
- display: flex !important;
130
- flex-wrap: nowrap;
131
- flex-direction: row;
132
- align-items: center;
133
- justify-content: center;
134
-
135
- & [data-monster-error-state] {
136
- width:2em;
137
- height:2em;
138
- margin:0 5px 0 2px;
139
-
140
- display: flex;
141
- align-items: center;
142
- justify-content: center;
143
- }
144
-
145
- & [data-monster-loading-state] {
146
- width:2em;
147
- height:2em;
148
- margin:0 5px 0 2px;
149
- }
150
-
151
-
152
- }*/
153
-
154
-
155
-
156
-
157
113
  }
158
-
@@ -5,18 +5,21 @@
5
5
 
6
6
 
7
7
  [data-monster-role="control"] {
8
-
9
8
  & a {
10
9
  display: flex;
11
10
  align-items: center;
12
-
13
- color: var(--monster-color-primary-1);
14
11
  background: none;
12
+ color: var(--monster-color-primary-1);
15
13
 
16
14
  &:after {
17
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-filter-square' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/%3E%3Cpath d='M6 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
18
- margin: 2px 3px 0 5px;
19
- padding-top: 4px;
15
+ content: "";
16
+ display: inline-block;
17
+ width: 16px;
18
+ height: 16px;
19
+ background-color: var(--monster-color-primary-1);
20
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-filter-square' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/%3E%3Cpath d='M6 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
21
+ mask-size: cover;
22
+ margin: 0 3px 0 5px;
20
23
  }
21
24
  }
22
- }
25
+ }
@@ -13,6 +13,11 @@
13
13
  width: 100%;
14
14
  }
15
15
 
16
+ [data-monster-role=container] {
17
+ container-name: filter;
18
+ container-type: inline-size;
19
+ }
20
+
16
21
  [data-monster-role=control] {
17
22
 
18
23
  & .hidden {
@@ -97,38 +102,21 @@
97
102
  }
98
103
 
99
104
  & monster-select {
100
- min-width: 350px;
105
+ min-width: 150px;
101
106
  }
102
-
107
+
103
108
  & [data-monster-visible=false] {
104
109
  display: none;
105
110
  }
106
111
  }
107
112
 
108
- @mixin viewport-12 {
109
- & [data-monster-role=select-and-search] {
110
- flex-flow: column nowrap;
111
- row-gap: 0.5rem;
112
- column-gap: 0;
113
- }
114
- }
115
-
116
113
  }
114
+
115
+ }
117
116
 
118
- @mixin viewport-7 {
119
- & [data-monster-role=layout] {
120
- flex-flow: column nowrap;
121
- row-gap: 0.5rem;
122
- column-gap: 0;
123
-
124
- & monster-select {
125
- width: 100%;
126
- }
127
-
128
- }
129
- }
130
117
 
131
- @mixin viewport-4 {
118
+ @container filter (width < 500px) {
119
+ & [data-monster-role=control] {
132
120
  & [data-monster-role=layout] {
133
121
 
134
122
  flex-flow: column nowrap;
@@ -143,10 +131,19 @@
143
131
  & ::slotted(label) {
144
132
  min-width: fit-content;
145
133
  }
146
-
134
+
147
135
  }
148
136
 
149
137
  & [data-monster-role=select-and-search] {
138
+
139
+ display: flex;
140
+ flex-direction: column;
141
+ row-gap: 0.5rem;
142
+ column-gap: 0;
143
+
144
+ & monster-message-state-button {
145
+ width: 100%;
146
+ }
150
147
 
151
148
  & monster-select {
152
149
  width: 100%;
@@ -156,4 +153,6 @@
156
153
  }
157
154
  }
158
155
  }
159
- }
156
+ }
157
+
158
+
@@ -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 {ColumnBarStyleSheet}
16
+ export { ColumnBarStyleSheet };
17
17
 
18
18
  /**
19
19
  * @private
@@ -22,10 +22,17 @@ export {ColumnBarStyleSheet}
22
22
  const ColumnBarStyleSheet = new CSSStyleSheet();
23
23
 
24
24
  try {
25
- ColumnBarStyleSheet.insertRule(`
25
+ ColumnBarStyleSheet.insertRule(
26
+ `
26
27
  @layer columnbar {
27
28
  :where(html){line-height:1.15;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}:where(h1){font-size:2em;margin-block-end:.67em;margin-block-start:.67em}:where(dl,ol,ul) :where(dl,ol,ul){margin-block-end:0;margin-block-start:0}:where(hr){box-sizing:content-box;color:inherit;height:0}:where(abbr[title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,pre,samp){font-family:monospace,monospace;font-size:1em}:where(small){font-size:80%}:where(table){border-color:currentColor;text-indent:0}:where(button,input,select){margin:0}:where(button){text-transform:none}:where(button,input:is([type=button i],[type=reset i],[type=submit i])){-webkit-appearance:button}:where(progress){vertical-align:baseline}:where(select){text-transform:none}:where(textarea){margin:0}:where(input[type=search i]){-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(button,input:is([type=button i],[type=color i],[type=reset i],[type=submit i]))::-moz-focus-inner{border-style:none;padding:0}:where(button,input:is([type=button i],[type=color i],[type=reset i],[type=submit i]))::-moz-focusring{outline:1px dotted ButtonText}:where(:-moz-ui-invalid){box-shadow:none}:where(dialog){background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:fit-content}:where(dialog:not([open])){display:none}:where(summary){display:list-item}html{height:100%}body,html{min-height:calc(100vh - 40px)}body{box-sizing:border-box;margin:0;padding:0;word-break:break-word}.monster-button-primary,button{align-items:center;background-color:var(--monster-bg-color-primary-1);background-position:50%;border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width);box-shadow:var(--monster-box-shadow-1);color:var(--monster-color-primary-1);cursor:pointer;display:flex;font-family:var(--monster-font-family);font-size:1rem;font-weight:400;gap:.4rem;justify-content:center;line-height:1.5;outline:none;overflow:hidden;padding:.375rem .75rem;position:relative;text-align:center;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:-webkit-fill-available;width:-moz-available;width:stretch}.monster-button-primary{background-color:var(--monster-bg-color-primary-4);border-color:var(--monster-bg-color-primary-4);color:var(--monster-color-primary-4)}.monster-button-secondary{background-color:var(--monster-bg-color-primary-1);background-color:var(--monster-bg-color-secondary-4);border-color:var(--monster-bg-color-secondary-4);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width);color:var(--monster-color-primary-1);color:var(--monster-color-secondary-4)}.monster-button-secondary,.monster-button-tertiary{align-items:center;background-position:50%;box-shadow:var(--monster-box-shadow-1);cursor:pointer;display:flex;font-family:var(--monster-font-family);font-size:1rem;font-weight:400;gap:.4rem;justify-content:center;line-height:1.5;outline:none;overflow:hidden;padding:.375rem .75rem;position:relative;text-align:center;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:-webkit-fill-available;width:-moz-available;width:stretch}.monster-button-tertiary{background-color:var(--monster-bg-color-primary-1);background-color:var(--monster-bg-color-tertiary-4);border-color:var(--monster-bg-color-tertiary-4);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width);color:var(--monster-color-primary-1);color:var(--monster-color-tertiary-4)}.monster-button-outline-primary{background-color:var(--monster-bg-color-primary-1);background-color:var(--monster-color-primary-4);border-color:var(--monster-bg-color-primary-4);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width);color:var(--monster-color-primary-1);color:var(--monster-bg-color-primary-4)}.monster-button-outline-primary,.monster-button-outline-secondary{align-items:center;background-position:50%;box-shadow:var(--monster-box-shadow-1);cursor:pointer;display:flex;font-family:var(--monster-font-family);font-size:1rem;font-weight:400;gap:.4rem;justify-content:center;line-height:1.5;outline:none;overflow:hidden;padding:.375rem .75rem;position:relative;text-align:center;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:-webkit-fill-available;width:-moz-available;width:stretch}.monster-button-outline-secondary{background-color:var(--monster-bg-color-primary-1);background-color:var(--monster-color-secondary-4);border-color:var(--monster-bg-color-secondary-4);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width);color:var(--monster-color-primary-1);color:var(--monster-bg-color-secondary-4)}.monster-button-outline-tertiary{align-items:center;background-color:var(--monster-bg-color-primary-1);background-color:var(--monster-color-tertiary-4);background-position:50%;border-color:var(--monster-bg-color-tertiary-4);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width);box-shadow:var(--monster-box-shadow-1);color:var(--monster-color-primary-1);color:var(--monster-bg-color-tertiary-4);cursor:pointer;display:flex;font-family:var(--monster-font-family);font-size:1rem;font-weight:400;gap:.4rem;justify-content:center;line-height:1.5;outline:none;overflow:hidden;padding:.375rem .75rem;position:relative;text-align:center;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:-webkit-fill-available;width:-moz-available;width:stretch}button:active,button:hover{box-shadow:var(--monster-box-shadow-2);transition:background .8s,color .25s .0833333333s}button:active{z-index:var(--monster-z-index-outline)}.monster-button-bar,.monster-button-group{align-content:center;align-items:stretch;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.monster-button-group{box-sizing:border-box;gap:0;margin:1rem 0}.monster-button-group>:not(:last-child){margin-right:calc(var(--monster-border-width)*-1)}.monster-button-group :hover{box-shadow:none}button:focus{outline:1px dashed var(--monster-color-selection-4);outline-offset:2px;z-index:var(--monster-z-index-outline)}@media (prefers-color-scheme:light){button:focus{outline:1px dashed var(--monster-color-selection-3);outline-offset:2px;z-index:var(--monster-z-index-outline)}}[data-monster-role=control]{box-sizing:border-box;outline:none;width:100%}[data-monster-role=control].flex{align-items:center;display:flex;flex-direction:row}:host{box-sizing:border-box;display:block}: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}a,a:active,a:focus,a:hover,a:link,a:visited{color:var(--monster-color-secondary-1);outline:none;text-decoration:none;transition:color .3s ease-in-out,text-decoration-color .3s ease-in-out}a:active,a:focus,a:hover{color:var(--monster-color-primary-2);text-decoration:underline;text-decoration-color:var(--monster-color-secondary-1 );text-decoration-thickness:1px;text-underline-offset:2px}a:focus{outline:1px dashed var(--monster-color-selection-1);outline-offset:2px}@media (prefers-color-scheme:dark){a,a:active,a:focus,a:hover,a:link,a:visited{color:var(--monster-color-amber-2)}a:focus{outline:1px dashed var(--monster-color-selection-4)}}[data-monster-role=control]{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}[data-monster-role=control] [data-monster-role=dots]{display:flex;flex-direction:row;justify-content:flex-start;margin:0 15px 0 0;padding:0}:is([data-monster-role=control] [data-monster-role=dots]) li{background-clip:border-box;display:flex;list-style:none;margin:0 5px 0 0;padding:0}:is(:is([data-monster-role=control] [data-monster-role=dots]) li) .is-visible{background-color:var(--monster-bg-color-primary-4);background-position:50%;background-repeat:no-repeat;background-size:cover;height:8px;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3C/svg%3E\");width:8px}:is(:is([data-monster-role=control] [data-monster-role=dots]) li) .is-hidden{background-color:var(--monster-bg-color-primary-4);background-position:50%;background-repeat:no-repeat;background-size:cover;height:8px;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E\");width:8px}:is(:is([data-monster-role=control] [data-monster-role=dots]) li) :focus,:is(:is([data-monster-role=control] [data-monster-role=dots]) li) :hover{background-clip:border-box}[data-monster-role=control] [data-monster-role=settings-layer]{background-color:var(--monster-bg-color-primary-4);border-radius:4px;color:var(--monster-color-primary-4);display:none;padding:1rem;z-index:var(--monster-z-index-popover)}.visible:is([data-monster-role=control] [data-monster-role=settings-layer]){display:block}:is([data-monster-role=control] [data-monster-role=settings-layer]) label{align-items:center;cursor:pointer;display:flex;justify-content:flex-start;margin:0;padding:0}:is(:is([data-monster-role=control] [data-monster-role=settings-layer]) label) input{accent-color:var(--monster-bg-color-primary-4);margin:0 .5rem 0 0}:is([data-monster-role=control] [data-monster-role=settings-layer]) [data-monster-role=settings-popup-list]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);grid-gap:.1rem 1rem}[data-monster-role=control] a[data-monster-role=settings-button]{align-items:center;background:none;color:var(--monster-color-primary-1);display:flex;white-space:nowrap}:is([data-monster-role=control] a[data-monster-role=settings-button]):after{background-color:var(--monster-color-primary-1);content:\"\";display:block;height:16px;margin:2px 3px 0 5px;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A1.5 1.5 0 0 1 1.5 0h13A1.5 1.5 0 0 1 16 1.5v13a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 14.5zM1.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5H5V1zM10 15V1H6v14zm1 0h3.5a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5H11z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A1.5 1.5 0 0 1 1.5 0h13A1.5 1.5 0 0 1 16 1.5v13a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 14.5zM1.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5H5V1zM10 15V1H6v14zm1 0h3.5a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5H11z'/%3E%3C/svg%3E\");-webkit-mask-size:cover;mask-size:cover;padding-top:4px;width:20px}[data-monster-role=control]:hover{color:var(--monster-color-primary-1)}.hidden[data-monster-role=control]{display:none}@container datatable (max-width: 300px){[data-monster-role=control]{align-items:flex-end;flex-direction:column;gap:.5rem}[data-monster-role=control] [data-monster-role=dots]{margin:0}}
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
  }