@schukai/monster 3.92.1 → 3.92.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/package.json +1 -1
- package/source/components/form/action-button.mjs +2 -0
- package/source/components/form/select.mjs +5 -2
- package/source/components/form/toggle-switch.mjs +2 -2
- package/source/components/navigation/table-of-content.mjs +1 -1
- package/source/components/notify/message.mjs +12 -56
- package/source/components/notify/notify.mjs +22 -76
- package/source/components/notify/style/notify.pcss +11 -6
- package/source/components/notify/stylesheet/notify.mjs +7 -14
- package/source/dom/updater.mjs +767 -767
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [3.92.3] - 2024-12-20
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- **notify:** update small issues [#269](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/269)
|
10
|
+
- **select:** update value() to return only value
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [3.92.2] - 2024-12-20
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
- **toggle-switch:** remove throw
|
19
|
+
### Changes
|
20
|
+
|
21
|
+
- update issues
|
22
|
+
|
23
|
+
|
24
|
+
|
5
25
|
## [3.92.1] - 2024-12-18
|
6
26
|
|
7
27
|
### Bug Fixes
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.12","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.92.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.12","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.92.3"}
|
@@ -47,6 +47,8 @@ const containerElementSymbol = Symbol("containerElement");
|
|
47
47
|
*
|
48
48
|
* @example /examples/components/form/action-button
|
49
49
|
*
|
50
|
+
* @issue https://localhost.alvine.dev:8443/development/issues/closed/264.html
|
51
|
+
*
|
50
52
|
* @since 3.32.0
|
51
53
|
* @copyright schukai GmbH
|
52
54
|
* @summary The ActionButton is a button that opens a popper element with possible actions
|
@@ -2046,14 +2046,17 @@ function convertSelectionToValue(selection) {
|
|
2046
2046
|
if (isArray(selection)) {
|
2047
2047
|
for (const obj of selection) {
|
2048
2048
|
const v = obj?.["value"];
|
2049
|
-
if (v !== undefined) value.push(v);
|
2049
|
+
if (v !== undefined) value.push(`${v}`);
|
2050
2050
|
}
|
2051
2051
|
}
|
2052
2052
|
|
2053
2053
|
if (value.length === 0) {
|
2054
2054
|
return "";
|
2055
2055
|
} else if (value.length === 1) {
|
2056
|
-
|
2056
|
+
const v= value.pop();
|
2057
|
+
if (v === undefined) return "";
|
2058
|
+
if (v === null) return "";
|
2059
|
+
return `${v}`;
|
2057
2060
|
}
|
2058
2061
|
|
2059
2062
|
return value.join(",");
|
@@ -109,10 +109,10 @@ class ToggleSwitch extends CustomControl {
|
|
109
109
|
},
|
110
110
|
actions: {
|
111
111
|
on: () => {
|
112
|
-
|
112
|
+
|
113
113
|
},
|
114
114
|
off: () => {
|
115
|
-
|
115
|
+
|
116
116
|
},
|
117
117
|
},
|
118
118
|
});
|
@@ -71,7 +71,7 @@ const scrollableEventHandlerSymbol = Symbol("scrollableEventHandler");
|
|
71
71
|
/**
|
72
72
|
* A TableOfContent
|
73
73
|
*
|
74
|
-
* @fragments /fragments/components/form/table-of-content
|
74
|
+
* @fragments /fragments/components/form/table-of-content
|
75
75
|
*
|
76
76
|
* @example /examples/components/form/table-of-content-simple
|
77
77
|
*
|
@@ -66,35 +66,17 @@ const mouseleaveEventHandlerSymbol = Symbol("mouseleaveEventHandler");
|
|
66
66
|
const removeEventHandlerSymbol = Symbol("removeEventHandler");
|
67
67
|
|
68
68
|
/**
|
69
|
-
*
|
69
|
+
* A Message is a notification element that can be used to display messages to the user.
|
70
70
|
*
|
71
|
-
*
|
71
|
+
* @fragments /fragments/components/notify/message
|
72
72
|
*
|
73
|
-
*
|
73
|
+
* @example /examples/components/notify/message-simple
|
74
74
|
*
|
75
|
-
*
|
75
|
+
* @issue https://localhost.alvine.dev:8443/development/issues/closed/269.html
|
76
76
|
*
|
77
|
-
* ```html
|
78
|
-
* <monster-notify-message></monster-notify-message>
|
79
|
-
* ```
|
80
|
-
*
|
81
|
-
* or using Javascript via the `document.createElement('monster-notify');` method.
|
82
|
-
*
|
83
|
-
* ```javascript
|
84
|
-
* import '@schukai/monster/source/components/notify/message.js';
|
85
|
-
* document.createElement('monster-notify-message');
|
86
|
-
* ```
|
87
|
-
*
|
88
|
-
* @externalExample ../../../example/components/notify/message.mjs
|
89
|
-
* @startuml message.png
|
90
|
-
* skinparam monochrome true
|
91
|
-
* skinparam shadowing false
|
92
|
-
* HTMLElement <|-- CustomElement
|
93
|
-
* CustomElement <|-- Message
|
94
|
-
* @enduml
|
95
77
|
* @since 1.0.0
|
96
78
|
* @copyright schukai GmbH
|
97
|
-
* @summary
|
79
|
+
* @summary The message is a notification element that can be used to display messages to the user. Typically, it is only used in conjunction with the notify container.
|
98
80
|
*/
|
99
81
|
class Message extends CustomElement {
|
100
82
|
/**
|
@@ -117,14 +99,13 @@ class Message extends CustomElement {
|
|
117
99
|
* })),'application/json',true).toString()
|
118
100
|
* ```
|
119
101
|
*
|
120
|
-
* @property {string} templates Template definitions
|
121
102
|
* @property {Object} templates Template definitions
|
122
|
-
* @property {integer} timeout time in milliseconds until the message should be removed. The timeout can be disabled via the feature `disappear`.
|
123
|
-
* @property {Object} features
|
124
|
-
* @property {boolean} features.close show close button
|
125
|
-
* @property {boolean} features.disappear automatically remove the message after the timeout
|
126
103
|
* @property {string} templates.main Main template
|
127
|
-
*
|
104
|
+
* @property {number} timeout The time in milliseconds after which the message disappears
|
105
|
+
* @property {Object} features The features of the message
|
106
|
+
* @property {boolean} features.close Whether the message can be closed
|
107
|
+
* @property {boolean} features.disappear Whether the message disappears after a certain time
|
108
|
+
* @property {string} content The content of the message
|
128
109
|
*/
|
129
110
|
get defaults() {
|
130
111
|
return Object.assign(
|
@@ -141,7 +122,6 @@ class Message extends CustomElement {
|
|
141
122
|
main: getTemplate(),
|
142
123
|
},
|
143
124
|
},
|
144
|
-
initOptionsFromArguments.call(this),
|
145
125
|
);
|
146
126
|
}
|
147
127
|
|
@@ -152,7 +132,7 @@ class Message extends CustomElement {
|
|
152
132
|
[assembleMethodSymbol]() {
|
153
133
|
super[assembleMethodSymbol]();
|
154
134
|
initControlReferences.call(this);
|
155
|
-
|
135
|
+
initEventHandler.call(this);
|
156
136
|
return this;
|
157
137
|
}
|
158
138
|
|
@@ -244,30 +224,6 @@ function stopFadeout() {
|
|
244
224
|
}
|
245
225
|
}
|
246
226
|
|
247
|
-
/**
|
248
|
-
* This attribute can be used to pass a URL to this select.
|
249
|
-
*
|
250
|
-
* @private
|
251
|
-
* @return {object}
|
252
|
-
*/
|
253
|
-
function initOptionsFromArguments() {
|
254
|
-
const options = {};
|
255
|
-
|
256
|
-
const timeout = this.getAttribute(ATTRIBUTE_PREFIX + "timeout");
|
257
|
-
if (isString(timeout)) {
|
258
|
-
try {
|
259
|
-
options["timeout"] = parseInt(timeout, 10);
|
260
|
-
} catch (e) {
|
261
|
-
this.setAttribute(
|
262
|
-
ATTRIBUTE_ERRORMESSAGE,
|
263
|
-
this.getAttribute(ATTRIBUTE_ERRORMESSAGE + ", " + e.toString()),
|
264
|
-
);
|
265
|
-
}
|
266
|
-
}
|
267
|
-
|
268
|
-
return options;
|
269
|
-
}
|
270
|
-
|
271
227
|
/**
|
272
228
|
* @private
|
273
229
|
* @return {Message}
|
@@ -289,7 +245,7 @@ function initControlReferences() {
|
|
289
245
|
/**
|
290
246
|
* @private
|
291
247
|
*/
|
292
|
-
function
|
248
|
+
function initEventHandler() {
|
293
249
|
/**
|
294
250
|
* @param {Event} event
|
295
251
|
*/
|
@@ -45,44 +45,18 @@ const containerElementSymbol = Symbol("containerElement");
|
|
45
45
|
const queueSymbol = Symbol("queue");
|
46
46
|
|
47
47
|
/**
|
48
|
-
*
|
48
|
+
* The Notify control
|
49
49
|
*
|
50
|
-
*
|
50
|
+
* @fragments /fragments/components/notify/notify
|
51
51
|
*
|
52
|
-
*
|
52
|
+
* @example /examples/components/notify/notify-simple
|
53
|
+
* @example /examples/components/notify/notify-inline
|
53
54
|
*
|
54
|
-
*
|
55
|
-
*
|
56
|
-
* ```html
|
57
|
-
* <monster-notify></monster-notify>
|
58
|
-
* ```
|
59
|
-
*
|
60
|
-
* or using Javascript via the `document.createElement('monster-notify');` method.
|
61
|
-
*
|
62
|
-
* ```js
|
63
|
-
* import '@schukai/monster/source/components/notify/notify.js';
|
64
|
-
* document.createElement('monster-notify');
|
65
|
-
* ```
|
66
|
-
*
|
67
|
-
* ## Events
|
68
|
-
*
|
69
|
-
* The CustomEvent has the property [`detail`](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail).
|
70
|
-
*
|
71
|
-
* ```
|
72
|
-
* node.addEventListener('monster-notify-message',(e)=>console.log(e.detail))
|
73
|
-
* ```
|
74
|
-
*
|
75
|
-
* @externalExample ../../../example/components/notify/notify.mjs
|
76
|
-
* @startuml notify.png
|
77
|
-
* skinparam monochrome true
|
78
|
-
* skinparam shadowing false
|
79
|
-
* HTMLElement <|-- CustomElement
|
80
|
-
* CustomElement <|-- Notify
|
81
|
-
* @enduml
|
55
|
+
* @issue https://localhost.alvine.dev:8443/development/issues/closed/269.html
|
82
56
|
*
|
83
57
|
* @since 1.0.0
|
84
58
|
* @copyright schukai GmbH
|
85
|
-
* @summary
|
59
|
+
* @summary The Notify control is a notification container that can be used to display messages to the user.
|
86
60
|
*/
|
87
61
|
class Notify extends CustomElement {
|
88
62
|
constructor() {
|
@@ -91,24 +65,12 @@ class Notify extends CustomElement {
|
|
91
65
|
}
|
92
66
|
|
93
67
|
/**
|
94
|
-
* The
|
95
|
-
*
|
96
|
-
*
|
97
|
-
*
|
98
|
-
*
|
99
|
-
*
|
100
|
-
*
|
101
|
-
* Since 1.18.0 the JSON can be specified as a DataURI.
|
102
|
-
*
|
103
|
-
* ```
|
104
|
-
* new Monster.Types.DataUrl(btoa(JSON.stringify({
|
105
|
-
* orientation: 'right top'
|
106
|
-
* })),'application/json',true).toString()
|
107
|
-
* ```
|
108
|
-
*
|
109
|
-
* @property {string} templates Template definitions
|
110
|
-
* @property {Object} templates Template definitions
|
111
|
-
* @property {string} templates.main Main template
|
68
|
+
* @property {string} orientation The orientation of the notify element. Allowed values for horizontal orientation are "left", "center", "right". Allowed values for vertical orientation are "top" and "bottom".
|
69
|
+
* @property {object} templates The templates of the notify element.
|
70
|
+
* @property {string} templates.main The main template of the notify element.
|
71
|
+
* @property {object} classes The classes of the notify element.
|
72
|
+
* @property {string} classes.container The container class of the notify element.
|
73
|
+
* @property {string} classes.control The control class of the notify element.
|
112
74
|
*/
|
113
75
|
get defaults() {
|
114
76
|
return Object.assign(
|
@@ -119,13 +81,15 @@ class Notify extends CustomElement {
|
|
119
81
|
templates: {
|
120
82
|
main: getTemplate(),
|
121
83
|
},
|
84
|
+
classes: {
|
85
|
+
container: "",
|
86
|
+
control: "center"
|
87
|
+
}
|
122
88
|
},
|
123
|
-
initOptionsFromArguments.call(this),
|
124
89
|
);
|
125
90
|
}
|
126
91
|
|
127
92
|
/**
|
128
|
-
*
|
129
93
|
* @return {Notify}
|
130
94
|
*/
|
131
95
|
[assembleMethodSymbol]() {
|
@@ -142,7 +106,6 @@ class Notify extends CustomElement {
|
|
142
106
|
}
|
143
107
|
|
144
108
|
/**
|
145
|
-
*
|
146
109
|
* @return {string}
|
147
110
|
*/
|
148
111
|
static getTag() {
|
@@ -158,9 +121,8 @@ class Notify extends CustomElement {
|
|
158
121
|
}
|
159
122
|
|
160
123
|
/**
|
161
|
-
*
|
162
|
-
* @
|
163
|
-
* @return {Monster.Components.Notify.Notify}
|
124
|
+
* @param {Massage|String} message
|
125
|
+
* @return {Notify}
|
164
126
|
*/
|
165
127
|
push(message) {
|
166
128
|
let messageElement = message;
|
@@ -188,22 +150,6 @@ class Notify extends CustomElement {
|
|
188
150
|
}
|
189
151
|
}
|
190
152
|
|
191
|
-
/**
|
192
|
-
* This attribute can be used to pass a URL to this select.
|
193
|
-
*
|
194
|
-
* ```
|
195
|
-
* <monster-select data-monster-url="https://example.com/"></monster-select>
|
196
|
-
* ```
|
197
|
-
*
|
198
|
-
* @private
|
199
|
-
* @return {object}
|
200
|
-
*/
|
201
|
-
function initOptionsFromArguments() {
|
202
|
-
const options = {};
|
203
|
-
|
204
|
-
return options;
|
205
|
-
}
|
206
|
-
|
207
153
|
/**
|
208
154
|
* @private
|
209
155
|
* @return {Select}
|
@@ -229,10 +175,10 @@ function initControlReferences() {
|
|
229
175
|
function getTemplate() {
|
230
176
|
// language=HTML
|
231
177
|
return `
|
232
|
-
<div data-monster-role="control" part="control"
|
233
|
-
data-monster-attributes="data-monster-orientation path:orientation">
|
234
|
-
|
235
|
-
|
178
|
+
<div data-monster-role="control" part="control"
|
179
|
+
data-monster-attributes="data-monster-orientation path:orientation, class path:classes.control">
|
180
|
+
<div data-monster-attributes="class path:classes.container" part="container"
|
181
|
+
data-monster-role="container"></div>
|
236
182
|
</div>
|
237
183
|
`;
|
238
184
|
}
|
@@ -19,7 +19,6 @@ div[data-monster-role=control] {
|
|
19
19
|
max-height: 100vH;
|
20
20
|
margin: 0;
|
21
21
|
|
22
|
-
position: absolute;
|
23
22
|
top: 0;
|
24
23
|
right: 0;
|
25
24
|
|
@@ -31,6 +30,14 @@ div[data-monster-role=control] {
|
|
31
30
|
}
|
32
31
|
|
33
32
|
|
33
|
+
div[data-monster-role=control]:not(.inline) {
|
34
|
+
position: absolute;
|
35
|
+
}
|
36
|
+
|
37
|
+
div[data-monster-role=control].inline {
|
38
|
+
--monster-message-border-shadow: none;
|
39
|
+
}
|
40
|
+
|
34
41
|
[data-monster-role=control][data-monster-orientation*=left] {
|
35
42
|
left: 0;
|
36
43
|
right: auto;
|
@@ -65,11 +72,9 @@ div[data-monster-role=control] {
|
|
65
72
|
width: 100%;
|
66
73
|
}
|
67
74
|
|
68
|
-
|
69
75
|
[data-monster-role=message] {
|
70
76
|
|
71
77
|
display: flex;
|
72
|
-
pointer-events: auto;
|
73
78
|
user-select: text;
|
74
79
|
width: 100%;
|
75
80
|
max-height: 200px;
|
@@ -98,7 +103,7 @@ div[data-monster-role=control] {
|
|
98
103
|
font-size: .875rem;
|
99
104
|
pointer-events: auto;
|
100
105
|
|
101
|
-
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
|
106
|
+
box-shadow: var(--monster-message-border-shadow, 0 0.5rem 1rem rgb(0 0 0 / 15%));
|
102
107
|
|
103
108
|
}
|
104
109
|
|
@@ -109,8 +114,8 @@ div[data-monster-role=control] {
|
|
109
114
|
[data-monster-role=message].fadeout {
|
110
115
|
transition: all 0.2s cubic-bezier(1, -0.04, 0, 1.03);
|
111
116
|
max-height: 0;
|
112
|
-
margin-top:
|
113
|
-
margin-bottom:
|
117
|
+
margin-top: 0;
|
118
|
+
margin-bottom: 0;
|
114
119
|
padding-top: 0;
|
115
120
|
padding-bottom: 0;
|
116
121
|
border: 0;
|
@@ -10,10 +10,10 @@
|
|
10
10
|
* For more information about purchasing a commercial license, please contact schukai GmbH.
|
11
11
|
*/
|
12
12
|
|
13
|
-
import {
|
14
|
-
import {
|
13
|
+
import {addAttributeToken} from "../../../dom/attributes.mjs";
|
14
|
+
import {ATTRIBUTE_ERRORMESSAGE} from "../../../dom/constants.mjs";
|
15
15
|
|
16
|
-
export {
|
16
|
+
export {NotifyStyleSheet}
|
17
17
|
|
18
18
|
/**
|
19
19
|
* @private
|
@@ -22,17 +22,10 @@ export { NotifyStyleSheet };
|
|
22
22
|
const NotifyStyleSheet = new CSSStyleSheet();
|
23
23
|
|
24
24
|
try {
|
25
|
-
|
26
|
-
`
|
25
|
+
NotifyStyleSheet.insertRule(`
|
27
26
|
@layer notify {
|
28
|
-
.block{display:block}.inline{display:inline}.inline-block{display:inline-block}.grid{display:grid}.inline-grid{display:inline-grid}.flex{display:flex}.inline-flex{display:inline-flex}.hidden,.hide,.none{display:none}.visible{visibility:visible}.invisible{visibility:hidden}.monster-border-primary-1,.monster-border-primary-2,.monster-border-primary-3,.monster-border-primary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-0{border-radius:0;border-style:none;border-width:0}.monster-border-primary-1{border-color:var(--monster-bg-color-primary-1)}.monster-border-primary-2{border-color:var(--monster-bg-color-primary-2)}.monster-border-primary-3{border-color:var(--monster-bg-color-primary-3)}.monster-border-primary-4{border-color:var(--monster-bg-color-primary-4)}.monster-border-secondary-1,.monster-border-secondary-2,.monster-border-secondary-3,.monster-border-secondary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-secondary-1{border-color:var(--monster-bg-color-secondary-1)}.monster-border-secondary-2{border-color:var(--monster-bg-color-secondary-2)}.monster-border-secondary-3{border-color:var(--monster-bg-color-secondary-3)}.monster-border-secondary-4{border-color:var(--monster-bg-color-secondary-4)}.monster-border-tertiary-1,.monster-border-tertiary-2,.monster-border-tertiary-3,.monster-border-tertiary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-tertiary-1{border-color:var(--monster-bg-color-tertiary-1)}.monster-border-tertiary-2{border-color:var(--monster-bg-color-tertiary-2)}.monster-border-tertiary-3{border-color:var(--monster-bg-color-tertiary-3)}.monster-border-tertiary-4{border-color:var(--monster-bg-color-tertiary-4)}[data-monster-role=control]{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}div[data-monster-role=control]{align-items:flex-start;border:0;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;margin:0;max-height:100vH;pointer-events:none;
|
29
|
-
}`,
|
30
|
-
0,
|
31
|
-
);
|
27
|
+
.block{display:block}.inline{display:inline}.inline-block{display:inline-block}.grid{display:grid}.inline-grid{display:inline-grid}.flex{display:flex}.inline-flex{display:inline-flex}.hidden,.hide,.none{display:none}.visible{visibility:visible}.invisible{visibility:hidden}.monster-border-primary-1,.monster-border-primary-2,.monster-border-primary-3,.monster-border-primary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-0{border-radius:0;border-style:none;border-width:0}.monster-border-primary-1{border-color:var(--monster-bg-color-primary-1)}.monster-border-primary-2{border-color:var(--monster-bg-color-primary-2)}.monster-border-primary-3{border-color:var(--monster-bg-color-primary-3)}.monster-border-primary-4{border-color:var(--monster-bg-color-primary-4)}.monster-border-secondary-1,.monster-border-secondary-2,.monster-border-secondary-3,.monster-border-secondary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-secondary-1{border-color:var(--monster-bg-color-secondary-1)}.monster-border-secondary-2{border-color:var(--monster-bg-color-secondary-2)}.monster-border-secondary-3{border-color:var(--monster-bg-color-secondary-3)}.monster-border-secondary-4{border-color:var(--monster-bg-color-secondary-4)}.monster-border-tertiary-1,.monster-border-tertiary-2,.monster-border-tertiary-3,.monster-border-tertiary-4{border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-tertiary-1{border-color:var(--monster-bg-color-tertiary-1)}.monster-border-tertiary-2{border-color:var(--monster-bg-color-tertiary-2)}.monster-border-tertiary-3{border-color:var(--monster-bg-color-tertiary-3)}.monster-border-tertiary-4{border-color:var(--monster-bg-color-tertiary-4)}[data-monster-role=control]{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}div[data-monster-role=control]{align-items:flex-start;border:0;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;margin:0;max-height:100vH;pointer-events:none;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:25rem;z-index:var(--monster-z-index-modal-overlay)}div[data-monster-role=control]:not(.inline){position:absolute}div[data-monster-role=control].inline{--monster-message-border-shadow:none}[data-monster-role=control][data-monster-orientation*=left]{left:0;right:auto}[data-monster-role=control][data-monster-orientation*=right]{left:auto;right:0}[data-monster-role=control][data-monster-orientation*=center]{left:50%;transform:translate(-50%)}[data-monster-role=control][data-monster-orientation*=bottom]{align-items:flex-end;bottom:0}[data-monster-role=control][data-monster-orientation*=top]{align-items:flex-start;top:0}[data-monster-role=container]{width:100%}[data-monster-role=message]{background-clip:padding-box;background-color:var(--monster-bg-color-primary-1);border-color:var(--monster-message-border-color,rgba(0,0,0,.1));border-radius:var(--monster-message-border-radius,.25rem);border-style:var(--monster-message-border-style,solid);border-width:var(--monster-message-border-width,1px);box-shadow:var(--monster-message-border-shadow,0 .5rem 1rem rgba(0,0,0,.15));color:var(--monster-color-primary-1);display:flex;font-size:.875rem;margin:var(--monster-message-margin-top,15px) var(--monster-message-margin-right,5px) var(--monster-message-margin-bottom,0) var(--monster-message-margin-left,0);max-height:200px;max-width:100%;overflow:hidden;padding:var(--monster-message-padding-top,5px) var(--monster-message-padding-right,5px) var(--monster-message-padding-bottom,5px) var(--monster-message-padding-left,5px);pointer-events:auto;position:relative;text-overflow:ellipsis;-webkit-user-select:text;-moz-user-select:text;user-select:text;width:100%}[data-monster-role=message]:first-child{margin-top:0}[data-monster-role=message].fadeout{border:0;margin-bottom:0;margin-top:0;max-height:0;padding-bottom:0;padding-top:0;transition:all .2s cubic-bezier(1,-.04,0,1.03)}
|
28
|
+
}`, 0);
|
32
29
|
} catch (e) {
|
33
|
-
|
34
|
-
document.getRootNode().querySelector("html"),
|
35
|
-
ATTRIBUTE_ERRORMESSAGE,
|
36
|
-
e + "",
|
37
|
-
);
|
30
|
+
addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
|
38
31
|
}
|