@schukai/monster 3.54.0 → 3.55.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +25 -0
- package/package.json +1 -1
- package/source/components/datatable/datasource/rest.mjs +93 -57
- package/source/components/datatable/datatable/header.mjs +8 -0
- package/source/components/datatable/datatable.mjs +88 -44
- package/source/components/datatable/embedded-pagination.mjs +24 -43
- package/source/components/datatable/filter/util.mjs +138 -0
- package/source/components/datatable/filter.mjs +418 -174
- package/source/components/datatable/pagination.mjs +26 -2
- package/source/components/datatable/status.mjs +226 -0
- package/source/components/datatable/style/datatable.pcss +1 -0
- package/source/components/datatable/style/embedded-pagination.pcss +59 -2
- package/source/components/datatable/style/filter.pcss +4 -0
- package/source/components/datatable/style/pagination.pcss +28 -4
- package/source/components/datatable/style/status.pcss +42 -0
- package/source/components/datatable/stylesheet/column-bar.mjs +15 -9
- package/source/components/datatable/stylesheet/dataset.mjs +14 -8
- package/source/components/datatable/stylesheet/datasource.mjs +14 -8
- package/source/components/datatable/stylesheet/datatable.mjs +15 -9
- package/source/components/datatable/stylesheet/embedded-pagination.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-button.mjs +15 -9
- package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-date-range.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-range.mjs +14 -8
- package/source/components/datatable/stylesheet/filter.mjs +15 -9
- package/source/components/datatable/stylesheet/pagination.mjs +15 -9
- package/source/components/datatable/stylesheet/select-filter.mjs +14 -8
- package/source/components/datatable/stylesheet/status.mjs +33 -0
- package/source/components/form/action-button.mjs +3 -1
- package/source/components/form/api-button.mjs +1 -1
- package/source/components/form/button-bar.mjs +1 -1
- package/source/components/form/button.mjs +1 -1
- package/source/components/form/confirm-button.mjs +3 -1
- package/source/components/form/context-error.mjs +272 -0
- package/source/components/form/context-help.mjs +7 -5
- package/source/components/form/form.mjs +4 -2
- package/source/components/form/message-state-button.mjs +4 -2
- package/source/components/form/popper-button.mjs +9 -4
- package/source/components/form/popper.mjs +11 -3
- package/source/components/form/reload.mjs +1 -1
- package/source/components/form/select.mjs +3 -3
- package/source/components/form/shadow-reload.mjs +1 -1
- package/source/components/form/state-button.mjs +4 -1
- package/source/components/form/style/context-error.pcss +32 -0
- package/source/components/form/style/context-help.pcss +22 -5
- package/source/components/form/stylesheet/action-button.mjs +14 -8
- package/source/components/form/stylesheet/api-button.mjs +14 -8
- package/source/components/form/stylesheet/button-bar.mjs +14 -8
- package/source/components/form/stylesheet/button.mjs +14 -8
- package/source/components/form/stylesheet/confirm-button.mjs +14 -8
- package/source/components/form/stylesheet/context-error.mjs +33 -0
- package/source/components/form/stylesheet/context-help.mjs +15 -9
- package/source/components/form/stylesheet/form.mjs +14 -8
- package/source/components/form/stylesheet/message-state-button.mjs +14 -8
- package/source/components/form/stylesheet/popper-button.mjs +14 -8
- package/source/components/form/stylesheet/popper.mjs +14 -8
- package/source/components/form/stylesheet/select.mjs +15 -9
- package/source/components/form/stylesheet/state-button.mjs +14 -8
- package/source/components/form/stylesheet/tabs.mjs +15 -9
- package/source/components/form/stylesheet/tree-select.mjs +14 -8
- package/source/components/form/tabs.mjs +53 -7
- package/source/components/form/template.mjs +1 -1
- package/source/components/form/tree-select.mjs +1 -1
- package/source/components/host/collapse.mjs +20 -5
- package/source/components/host/config-manager.mjs +41 -2
- package/source/components/host/host.mjs +14 -0
- package/source/components/host/stylesheet/call-button.mjs +15 -9
- package/source/components/host/stylesheet/collapse.mjs +14 -8
- package/source/components/host/stylesheet/config-manager.mjs +14 -8
- package/source/components/host/stylesheet/details.mjs +14 -8
- package/source/components/host/stylesheet/host.mjs +14 -8
- package/source/components/host/stylesheet/overlay.mjs +15 -9
- package/source/components/host/stylesheet/toggle-button.mjs +15 -9
- package/source/components/host/stylesheet/viewer.mjs +14 -8
- package/source/components/host/util.mjs +6 -1
- package/source/components/notify/stylesheet/message.mjs +15 -9
- package/source/components/notify/stylesheet/notify.mjs +14 -8
- package/source/components/state/stylesheet/log.mjs +14 -8
- package/source/components/state/stylesheet/state.mjs +14 -8
- package/source/components/stylesheet/badge.mjs +14 -8
- package/source/components/stylesheet/border.mjs +14 -8
- package/source/components/stylesheet/button.mjs +14 -8
- package/source/components/stylesheet/card.mjs +14 -8
- package/source/components/stylesheet/color.mjs +14 -8
- package/source/components/stylesheet/common.mjs +14 -8
- package/source/components/stylesheet/control.mjs +14 -8
- package/source/components/stylesheet/data-grid.mjs +14 -8
- package/source/components/stylesheet/display.mjs +14 -8
- package/source/components/stylesheet/floating-ui.mjs +14 -8
- package/source/components/stylesheet/form.mjs +14 -8
- package/source/components/stylesheet/host.mjs +14 -8
- package/source/components/stylesheet/icons.mjs +15 -9
- package/source/components/stylesheet/link.mjs +14 -8
- package/source/components/stylesheet/normalize.mjs +14 -8
- package/source/components/stylesheet/popper.mjs +14 -8
- package/source/components/stylesheet/property.mjs +14 -8
- package/source/components/stylesheet/ripple.mjs +14 -8
- package/source/components/stylesheet/skeleton.mjs +14 -8
- package/source/components/stylesheet/space.mjs +14 -8
- package/source/components/stylesheet/spinner.mjs +14 -8
- package/source/components/stylesheet/table.mjs +14 -8
- package/source/components/stylesheet/theme.mjs +14 -8
- package/source/components/stylesheet/typography.mjs +14 -8
- package/source/components/tree-menu/stylesheet/tree-menu.mjs +14 -8
- package/source/data/transformer.mjs +38 -43
- package/source/dom/attributes.mjs +5 -5
- package/source/dom/customelement.mjs +1 -1
- package/source/dom/updater.mjs +14 -5
- package/source/dom/util.mjs +42 -0
- package/source/i18n/providers/embed.mjs +3 -3
- package/source/monster.mjs +5 -0
- package/source/text/formatter.mjs +2 -2
- package/source/types/noderecursiveiterator.mjs +9 -7
- package/source/types/observer.mjs +1 -1
- package/source/types/version.mjs +1 -1
- package/source/util/sleep.mjs +17 -0
- package/test/cases/components/form/button.mjs +2 -1
- package/test/cases/components/form/select.mjs +1 -1
- package/test/cases/components/form/tree-select.mjs +1 -1
- package/test/cases/data/transformer.mjs +2 -2
- package/test/cases/dom/updater.mjs +67 -46
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +18 -13
@@ -8,12 +8,16 @@ import {
|
|
8
8
|
CustomElement,
|
9
9
|
registerCustomElement,
|
10
10
|
} from "../../dom/customelement.mjs";
|
11
|
+
import { ThemeStyleSheet } from "../stylesheet/theme.mjs";
|
11
12
|
import { ATTRIBUTE_DATASOURCE_SELECTOR } from "./constants.mjs";
|
12
13
|
import { Datasource } from "./datasource.mjs";
|
13
14
|
import { Observer } from "../../types/observer.mjs";
|
14
15
|
import { ATTRIBUTE_ROLE } from "../../dom/constants.mjs";
|
15
16
|
import { findTargetElementFromEvent } from "../../dom/events.mjs";
|
17
|
+
import { EmbeddedPaginationStyleSheet } from "./stylesheet/embedded-pagination.mjs";
|
16
18
|
import { PaginationStyleSheet } from "./stylesheet/pagination.mjs";
|
19
|
+
//import {SpinnerStyleSheet} from "../stylesheet/spinner.mjs";
|
20
|
+
import { DisplayStyleSheet } from "../stylesheet/display.mjs";
|
17
21
|
import { isString } from "../../types/is.mjs";
|
18
22
|
import { Pathfinder } from "../../data/pathfinder.mjs";
|
19
23
|
import { instanceSymbol } from "../../constants.mjs";
|
@@ -136,6 +140,18 @@ class Pagination extends CustomElement {
|
|
136
140
|
currentPage: "sys.pagination.currentPage",
|
137
141
|
},
|
138
142
|
|
143
|
+
// classes: {
|
144
|
+
// // spinner: "monster-spinner monster-theme-primary-3",
|
145
|
+
// // spinnerContainer: "monster-theme-primary-1 ",
|
146
|
+
// // error: "monster-theme-error-2 monster-bg-color-primary-2",
|
147
|
+
// // errorContainer: "monster-theme-primary-1",
|
148
|
+
// },
|
149
|
+
|
150
|
+
// state: {
|
151
|
+
// // spinner: false,
|
152
|
+
// // error: false,
|
153
|
+
// },
|
154
|
+
|
139
155
|
pagination: {
|
140
156
|
items: [],
|
141
157
|
},
|
@@ -162,7 +178,7 @@ class Pagination extends CustomElement {
|
|
162
178
|
initControlReferences.call(this);
|
163
179
|
initEventHandler.call(this);
|
164
180
|
|
165
|
-
const selector = this.getOption("datasource.selector");
|
181
|
+
const selector = this.getOption("datasource.selector", "");
|
166
182
|
|
167
183
|
if (isString(selector)) {
|
168
184
|
const elements = document.querySelectorAll(selector);
|
@@ -182,12 +198,20 @@ class Pagination extends CustomElement {
|
|
182
198
|
}
|
183
199
|
}
|
184
200
|
|
201
|
+
/**
|
202
|
+
* @private
|
203
|
+
* @returns {CSSStyleSheet}
|
204
|
+
*/
|
205
|
+
static getControlCSSStyleSheet() {
|
206
|
+
return PaginationStyleSheet;
|
207
|
+
}
|
208
|
+
|
185
209
|
/**
|
186
210
|
*
|
187
211
|
* @return [CSSStyleSheet]
|
188
212
|
*/
|
189
213
|
static getCSSStyleSheet() {
|
190
|
-
return [
|
214
|
+
return [this.getControlCSSStyleSheet(), DisplayStyleSheet, ThemeStyleSheet];
|
191
215
|
}
|
192
216
|
}
|
193
217
|
|
@@ -0,0 +1,226 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright 2023 schukai GmbH
|
3
|
+
* SPDX-License-Identifier: AGPL-3.0
|
4
|
+
*/
|
5
|
+
|
6
|
+
import {
|
7
|
+
assembleMethodSymbol,
|
8
|
+
CustomElement,
|
9
|
+
registerCustomElement,
|
10
|
+
} from "../../dom/customelement.mjs";
|
11
|
+
import { ThemeStyleSheet } from "../stylesheet/theme.mjs";
|
12
|
+
import { Datasource } from "./datasource.mjs";
|
13
|
+
import { SpinnerStyleSheet } from "../stylesheet/spinner.mjs";
|
14
|
+
import { isString } from "../../types/is.mjs";
|
15
|
+
import { instanceSymbol } from "../../constants.mjs";
|
16
|
+
import "../form/select.mjs";
|
17
|
+
|
18
|
+
import "./datasource/dom.mjs";
|
19
|
+
import "./datasource/rest.mjs";
|
20
|
+
import "../form/popper.mjs";
|
21
|
+
import "../form/context-error.mjs";
|
22
|
+
import { StatusStyleSheet } from "./stylesheet/status.mjs";
|
23
|
+
|
24
|
+
export { DatasourceStatus };
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @private
|
28
|
+
* @type {symbol}
|
29
|
+
*/
|
30
|
+
const errorElementSymbol = Symbol.for("errorElement");
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @private
|
34
|
+
* @type {symbol}
|
35
|
+
*/
|
36
|
+
const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
|
37
|
+
|
38
|
+
/**
|
39
|
+
* The Status component is used to show the current status of a datasource.
|
40
|
+
*
|
41
|
+
* <img src="./images/datasource-status.png">
|
42
|
+
*
|
43
|
+
* Dependencies: the system uses functions of the [monsterjs](https://monsterjs.org/) library
|
44
|
+
*
|
45
|
+
* You can create this control either by specifying the HTML tag <monster-datatable-status />` directly in the HTML or using
|
46
|
+
* Javascript via the `document.createElement('monster-pagination');` method.
|
47
|
+
*
|
48
|
+
* ```html
|
49
|
+
* <monster-pagination></monster-pagination>
|
50
|
+
* ```
|
51
|
+
*
|
52
|
+
* Or you can create this CustomControl directly in Javascript:
|
53
|
+
*
|
54
|
+
* ```js
|
55
|
+
* import '@schukai/component-datatable/source/pagination.mjs';
|
56
|
+
* document.createElement('monster-pagination');
|
57
|
+
* ```
|
58
|
+
*
|
59
|
+
* @startuml datasource-status.png
|
60
|
+
* skinparam monochrome true
|
61
|
+
* skinparam shadowing false
|
62
|
+
* HTMLElement <|-- CustomElement
|
63
|
+
* CustomElement <|-- Pagination
|
64
|
+
* @enduml
|
65
|
+
*
|
66
|
+
* @copyright schukai GmbH
|
67
|
+
* @memberOf Monster.Components.Datatable
|
68
|
+
* @summary A datatable
|
69
|
+
*/
|
70
|
+
class DatasourceStatus extends CustomElement {
|
71
|
+
/**
|
72
|
+
*/
|
73
|
+
constructor() {
|
74
|
+
super();
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* This method is called by the `instanceof` operator.
|
79
|
+
* @returns {symbol}
|
80
|
+
*/
|
81
|
+
static get [instanceSymbol]() {
|
82
|
+
return Symbol.for("@schukai/monster/components/datatables/status");
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* To set the options via the html tag the attribute `data-monster-options` must be used.
|
87
|
+
* @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control}
|
88
|
+
*
|
89
|
+
* The individual configuration values can be found in the table.
|
90
|
+
*
|
91
|
+
* @property {Object} templates Template definitions
|
92
|
+
* @property {string} templates.main Main template
|
93
|
+
* @property {Object} datasource Datasource configuration
|
94
|
+
* @property {string} datasource.selector The selector of the datasource
|
95
|
+
*/
|
96
|
+
get defaults() {
|
97
|
+
return Object.assign({}, super.defaults, {
|
98
|
+
templates: {
|
99
|
+
main: getTemplate(),
|
100
|
+
},
|
101
|
+
|
102
|
+
datasource: {
|
103
|
+
selector: null,
|
104
|
+
},
|
105
|
+
|
106
|
+
timeouts: {
|
107
|
+
message: 4000,
|
108
|
+
},
|
109
|
+
|
110
|
+
state: {
|
111
|
+
spinner: "hide",
|
112
|
+
},
|
113
|
+
});
|
114
|
+
}
|
115
|
+
|
116
|
+
/**
|
117
|
+
*
|
118
|
+
* @return {string}
|
119
|
+
*/
|
120
|
+
static getTag() {
|
121
|
+
return "monster-datasource-status";
|
122
|
+
}
|
123
|
+
|
124
|
+
/**
|
125
|
+
* @private
|
126
|
+
*/
|
127
|
+
[assembleMethodSymbol]() {
|
128
|
+
super[assembleMethodSymbol]();
|
129
|
+
|
130
|
+
initControlReferences.call(this);
|
131
|
+
initEventHandler.call(this);
|
132
|
+
}
|
133
|
+
|
134
|
+
/**
|
135
|
+
*
|
136
|
+
* @return [CSSStyleSheet]
|
137
|
+
*/
|
138
|
+
static getCSSStyleSheet() {
|
139
|
+
return [StatusStyleSheet, SpinnerStyleSheet, ThemeStyleSheet];
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
/**
|
144
|
+
* @private
|
145
|
+
* @return {Select}
|
146
|
+
* @throws {Error} no shadow-root is defined
|
147
|
+
*/
|
148
|
+
function initControlReferences() {
|
149
|
+
if (!this.shadowRoot) {
|
150
|
+
throw new Error("no shadow-root is defined");
|
151
|
+
}
|
152
|
+
|
153
|
+
this[errorElementSymbol] = this.shadowRoot.querySelector(
|
154
|
+
"monster-context-error",
|
155
|
+
);
|
156
|
+
}
|
157
|
+
|
158
|
+
/**
|
159
|
+
* @private
|
160
|
+
*/
|
161
|
+
function initEventHandler() {
|
162
|
+
const selector = this.getOption("datasource.selector", "");
|
163
|
+
const self = this;
|
164
|
+
|
165
|
+
if (isString(selector)) {
|
166
|
+
const elements = document.querySelectorAll(selector);
|
167
|
+
if (elements.length !== 1) {
|
168
|
+
throw new Error("the selector must match exactly one element");
|
169
|
+
}
|
170
|
+
|
171
|
+
const element = elements[0];
|
172
|
+
if (!(element instanceof Datasource)) {
|
173
|
+
throw new TypeError("the element must be a datasource");
|
174
|
+
}
|
175
|
+
|
176
|
+
this[datasourceLinkedElementSymbol] = element;
|
177
|
+
element.addEventListener("monster-datasource-fetched", function () {
|
178
|
+
self.setOption("state.spinner", "hide");
|
179
|
+
});
|
180
|
+
|
181
|
+
element.addEventListener("monster-datasource-fetch", function () {
|
182
|
+
self.setOption("state.spinner", "show");
|
183
|
+
});
|
184
|
+
element.addEventListener("monster-datasource-error", function (event) {
|
185
|
+
self.setOption("state.spinner", "hide");
|
186
|
+
|
187
|
+
const timeout = self.getOption("timeouts.message", 4000);
|
188
|
+
let msg = "Cannot load data";
|
189
|
+
|
190
|
+
try {
|
191
|
+
if (event.detail.error instanceof Error) {
|
192
|
+
msg = event.detail.error.message;
|
193
|
+
} else if (event.detail.error instanceof Object) {
|
194
|
+
msg = JSON.stringify(event.detail.error);
|
195
|
+
} else if (event.detail.error instanceof String) {
|
196
|
+
msg = event.detail.error;
|
197
|
+
} else if (event.detail.error instanceof Number) {
|
198
|
+
msg = event.detail.error.toString();
|
199
|
+
} else {
|
200
|
+
msg = event.detail.error;
|
201
|
+
}
|
202
|
+
} catch (e) {
|
203
|
+
} finally {
|
204
|
+
self[errorElementSymbol].setErrorMessage(msg, timeout);
|
205
|
+
}
|
206
|
+
});
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
/**
|
211
|
+
* @private
|
212
|
+
* @return {string}
|
213
|
+
*/
|
214
|
+
function getTemplate() {
|
215
|
+
// language=HTML
|
216
|
+
return `
|
217
|
+
<div data-monster-role="control">
|
218
|
+
<monster-context-error
|
219
|
+
data-monster-option-classes-button="monster-theme-error-2 monster-bg-color-primary-2"></monster-context-error>
|
220
|
+
<div class="monster-spinner monster-theme-primary-4"
|
221
|
+
data-monster-attributes="data-monster-state-loader path:state.spinner"></div>
|
222
|
+
</div>
|
223
|
+
`;
|
224
|
+
}
|
225
|
+
|
226
|
+
registerCustomElement(DatasourceStatus);
|
@@ -50,12 +50,10 @@
|
|
50
50
|
}
|
51
51
|
|
52
52
|
@media (prefers-color-scheme: light) {
|
53
|
-
|
54
53
|
& a:focus {
|
55
54
|
outline: 1px dashed var(--monster-color-selection-3);
|
56
55
|
outline-offset: 2px;
|
57
56
|
}
|
58
|
-
|
59
57
|
}
|
60
58
|
|
61
59
|
& a.current {
|
@@ -93,9 +91,68 @@
|
|
93
91
|
border-left: none;
|
94
92
|
}
|
95
93
|
|
94
|
+
}
|
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
|
+
|
108
|
+
&.hidden {
|
109
|
+
display: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
}
|
113
|
+
|
114
|
+
& .pagination-error-state {
|
115
|
+
align-items: center;
|
116
|
+
display: flex;
|
96
117
|
|
118
|
+
&.hidden {
|
119
|
+
display: none;
|
120
|
+
}
|
121
|
+
& .state-icon-container {
|
122
|
+
width:2em;
|
123
|
+
height:2em;
|
124
|
+
margin:0 5px 0 2px;
|
97
125
|
}
|
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
|
+
|
98
154
|
|
155
|
+
|
99
156
|
|
100
157
|
}
|
101
158
|
|
@@ -37,23 +37,47 @@
|
|
37
37
|
color: var(--monster-color-primary-1);
|
38
38
|
border-color: var(--monster-bg-color-primary-4);
|
39
39
|
width: max-content;
|
40
|
-
|
40
|
+
|
41
41
|
&.current {
|
42
42
|
background-color: var(--monster-bg-color-primary-4);
|
43
43
|
color: var(--monster-color-primary-4);
|
44
44
|
border-color: var(--monster-bg-color-primary-4);
|
45
45
|
cursor: unset;
|
46
46
|
}
|
47
|
-
|
47
|
+
|
48
48
|
&.disabled {
|
49
49
|
background-color: var(--monster-bg-color-primary-disabled-1);
|
50
50
|
color: var(--monster-color-primary-disabled-1);
|
51
|
-
//border-color: var(--monster-bg-color-primary-4);
|
52
51
|
cursor: not-allowed;
|
53
52
|
}
|
54
53
|
}
|
55
|
-
|
54
|
+
/*
|
55
|
+
& .pagination-loading-state {
|
56
|
+
align-items: center;
|
57
|
+
display: flex;
|
58
|
+
|
59
|
+
&.hidden {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
56
64
|
|
57
65
|
|
66
|
+
& .pagination-error-state {
|
67
|
+
align-items: center;
|
68
|
+
display: flex;
|
69
|
+
|
70
|
+
&.hidden {
|
71
|
+
display: none;
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
& .state-icon-container {
|
77
|
+
width:2em;
|
78
|
+
height:2em;
|
79
|
+
margin:0 5px 0 2px;
|
80
|
+
}*/
|
81
|
+
|
58
82
|
}
|
59
83
|
|
@@ -0,0 +1,42 @@
|
|
1
|
+
@import "../../style/normalize.pcss";
|
2
|
+
@import "../../style/display.pcss";
|
3
|
+
@import "../../style/mixin/button.pcss";
|
4
|
+
@import "../../style/button.pcss";
|
5
|
+
@import "../../style/mixin/typography.pcss";
|
6
|
+
@import "../../style/mixin/hover.pcss";
|
7
|
+
@import "../../style/control.pcss";
|
8
|
+
@import "../../style/property.pcss";
|
9
|
+
@import "../../style/ripple.pcss";
|
10
|
+
|
11
|
+
|
12
|
+
[data-monster-role=control] {
|
13
|
+
align-items: center;
|
14
|
+
display: flex;
|
15
|
+
flex-direction: row;
|
16
|
+
justify-content: center;
|
17
|
+
flex-wrap: nowrap;
|
18
|
+
width: fit-content;
|
19
|
+
|
20
|
+
|
21
|
+
& .monster-spinner {
|
22
|
+
width: 1.5rem !important;
|
23
|
+
height: 1.5rem !important;
|
24
|
+
visibility: hidden;
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
& [data-monster-state-loader=show] {
|
29
|
+
visibility: visible;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
:host {
|
35
|
+
align-items: center;
|
36
|
+
display: flex;
|
37
|
+
flex-direction: row;
|
38
|
+
justify-content: center;
|
39
|
+
flex-wrap: nowrap;
|
40
|
+
width: fit-content;
|
41
|
+
align-self: center;
|
42
|
+
}
|
@@ -1,15 +1,14 @@
|
|
1
|
-
|
2
1
|
/**
|
3
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2024. All Rights Reserved.
|
4
3
|
* Node module: @schukai/monster
|
5
4
|
* This file is licensed under the AGPLv3 License.
|
6
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
7
6
|
*/
|
8
7
|
|
9
|
-
import {addAttributeToken} from "../../../dom/attributes.mjs";
|
10
|
-
import {ATTRIBUTE_ERRORMESSAGE} from "../../../dom/constants.mjs";
|
8
|
+
import { addAttributeToken } from "../../../dom/attributes.mjs";
|
9
|
+
import { ATTRIBUTE_ERRORMESSAGE } from "../../../dom/constants.mjs";
|
11
10
|
|
12
|
-
export {ColumnBarStyleSheet}
|
11
|
+
export { ColumnBarStyleSheet };
|
13
12
|
|
14
13
|
/**
|
15
14
|
* @private
|
@@ -18,10 +17,17 @@ export {ColumnBarStyleSheet}
|
|
18
17
|
const ColumnBarStyleSheet = new CSSStyleSheet();
|
19
18
|
|
20
19
|
try {
|
21
|
-
|
20
|
+
ColumnBarStyleSheet.insertRule(
|
21
|
+
`
|
22
22
|
@layer columnbar {
|
23
|
-
:where(html){line-height:1.15}: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(pre){font-family:monospace,monospace;font-size:1em}:where(abbr[title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,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%;min-height:100%}body{box-sizing:border-box;margin:0;min-height:99%;padding:0;word-break:break-word}.monster-button-primary,button{align-items:center;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);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-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-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-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-tertiary-4)}.monster-button-outline-primary{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-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-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-bg-color-secondary-4)}.monster-button-outline-tertiary{align-items:center;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-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]{outline:none;width:100%}[data-monster-role=control].flex{align-items:center;display:flex;flex-direction:row}: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}@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)}}a,a:active,a:focus,a:hover,a:link,a:visited{background-image:linear-gradient(to right,var(--monster-color-gradient-1),var(--monster-color-gradient-2),var(--monster-color-gradient-3));background-position:100% 100%,0 100%;background-repeat:no-repeat;background-size:100% 1px,0 3px;color:var(--monster-color-primary-1);outline:none;text-decoration:none;transition:background-size .4s}a:active,a:focus,a:hover{background:linear-gradient(to right,var(--monster-color-gradient-1),var(--monster-color-gradient-2),var(--monster-color-gradient-3));-webkit-background-clip:text;background-clip:text;color:transparent;outline:none}a:focus{outline:1px dashed var(--monster-color-selection-4);outline-offset:2px}@media (prefers-color-scheme:light){a:focus{outline:1px dashed var(--monster-color-selection-3);outline-offset:2px}}[data-monster-role=control]{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}[data-monster-role=control] [data-monster-role=dots]{//margin-left:10px;display:flex;flex-direction:row;justify-content:flex-start;margin:0 15px 0 0;padding:0}[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}[data-monster-role=control] [data-monster-role=dots] li .is-visible{background-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 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:cover;height:8px;width:8px}[data-monster-role=control] [data-monster-role=dots] li .is-hidden{background-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\");background-position:50%;background-repeat:no-repeat;background-size:cover;height:8px;width:8px}[data-monster-role=control] [data-monster-role=dots] li :focus,[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)}[data-monster-role=control] .visible[data-monster-role=settings-layer]{display:block}[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}[data-monster-role=control] [data-monster-role=settings-layer] label input{accent-color:var(--monster-bg-color-primary-4);margin:0 .5rem 0 0}[data-monster-role=control] [data-monster-role=settings-layer] [data-monster-role=settings-popup-list]{grid-gap:.1rem 1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}[data-monster-role=control] a[data-monster-role=settings-button]{align-items:center;background:none;color:var(--monster-color-primary-1);display:flex}[data-monster-role=control] a[data-monster-role=settings-button]:after{content:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor'%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.5v-13zM1.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5H5V1H1.5zM10 15V1H6v14h4zm1 0h3.5a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5H11v14z'/%3E%3C/svg%3E\");margin:2px 3px 0 5px;padding-top:4px}[data-monster-role=control]:hover{color:var(--monster-color-primary-1)}.hidden[data-monster-role=control]{display:none}
|
24
|
-
}`,
|
23
|
+
:where(html){line-height:1.15}: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(pre){font-family:monospace,monospace;font-size:1em}:where(abbr[title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,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%;min-height:100%}body{box-sizing:border-box;margin:0;min-height:99%;padding:0;word-break:break-word}.monster-button-primary,button{align-items:center;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);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-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-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-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-tertiary-4)}.monster-button-outline-primary{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-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-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-bg-color-secondary-4)}.monster-button-outline-tertiary{align-items:center;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-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]{outline:none;width:100%}[data-monster-role=control].flex{align-items:center;display:flex;flex-direction:row}: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}@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)}}a,a:active,a:focus,a:hover,a:link,a:visited{background-image:linear-gradient(to right,var(--monster-color-gradient-1),var(--monster-color-gradient-2),var(--monster-color-gradient-3));background-position:100% 100%,0 100%;background-repeat:no-repeat;background-size:100% 1px,0 3px;color:var(--monster-color-primary-1);outline:none;text-decoration:none;transition:background-size .4s}a:active,a:focus,a:hover{background:linear-gradient(to right,var(--monster-color-gradient-1),var(--monster-color-gradient-2),var(--monster-color-gradient-3));-webkit-background-clip:text;background-clip:text;color:transparent;outline:none}a:focus{outline:1px dashed var(--monster-color-selection-4);outline-offset:2px}@media (prefers-color-scheme:light){a:focus{outline:1px dashed var(--monster-color-selection-3);outline-offset:2px}}[data-monster-role=control]{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}[data-monster-role=control] [data-monster-role=dots]{//margin-left:10px;display:flex;flex-direction:row;justify-content:flex-start;margin:0 15px 0 0;padding:0}[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}[data-monster-role=control] [data-monster-role=dots] li .is-visible{background-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\");background-position:50%;background-repeat:no-repeat;background-size:cover;height:8px;width:8px}[data-monster-role=control] [data-monster-role=dots] li .is-hidden{background-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\");background-position:50%;background-repeat:no-repeat;background-size:cover;height:8px;width:8px}[data-monster-role=control] [data-monster-role=dots] li :focus,[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)}[data-monster-role=control] .visible[data-monster-role=settings-layer]{display:block}[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}[data-monster-role=control] [data-monster-role=settings-layer] label input{accent-color:var(--monster-bg-color-primary-4);margin:0 .5rem 0 0}[data-monster-role=control] [data-monster-role=settings-layer] [data-monster-role=settings-popup-list]{grid-gap:.1rem 1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}[data-monster-role=control] a[data-monster-role=settings-button]{align-items:center;background:none;color:var(--monster-color-primary-1);display:flex}[data-monster-role=control] a[data-monster-role=settings-button]:after{content:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor'%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\");margin:2px 3px 0 5px;padding-top:4px}[data-monster-role=control]:hover{color:var(--monster-color-primary-1)}.hidden[data-monster-role=control]{display:none}
|
24
|
+
}`,
|
25
|
+
0,
|
26
|
+
);
|
25
27
|
} catch (e) {
|
26
|
-
|
28
|
+
addAttributeToken(
|
29
|
+
document.getRootNode().querySelector("html"),
|
30
|
+
ATTRIBUTE_ERRORMESSAGE,
|
31
|
+
e + "",
|
32
|
+
);
|
27
33
|
}
|