@schukai/monster 3.101.3 → 3.102.1
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 +23 -0
- package/package.json +1 -1
- package/source/components/accessibility/locale-picker.mjs +1 -1
- package/source/components/content/viewer.mjs +289 -0
- package/source/components/datatable/change-button.mjs +1 -1
- package/source/components/datatable/dataset.mjs +1 -1
- package/source/components/datatable/datasource/rest.mjs +1 -1
- package/source/components/datatable/datasource.mjs +1 -1
- package/source/components/datatable/datatable.mjs +1196 -1192
- package/source/components/datatable/filter.mjs +1 -1
- package/source/components/datatable/save-button.mjs +1 -1
- package/source/components/datatable/status.mjs +1 -1
- package/source/components/form/action-button.mjs +1 -1
- package/source/components/form/button.mjs +2 -2
- package/source/components/form/confirm-button.mjs +1 -1
- package/source/components/form/form.mjs +32 -28
- package/source/components/form/popper-button.mjs +1 -1
- package/source/components/form/select.mjs +2198 -2157
- package/source/components/host/viewer.mjs +3 -264
- package/source/components/layout/tabs.mjs +3 -3
- package/source/components/notify/message.mjs +1 -1
- package/source/components/notify/notify.mjs +1 -1
- package/source/dom/customelement.mjs +1 -1
- package/source/dom/updater.mjs +796 -768
- /package/source/components/{host → content}/style/viewer.pcss +0 -0
- /package/source/components/{host → content}/stylesheet/viewer.mjs +0 -0
@@ -157,7 +157,7 @@ const hashChangeSymbol = Symbol("hashChange");
|
|
157
157
|
* @example /examples/components/datatable/filter-advanced Advanced filter
|
158
158
|
* @example /examples/components/datatable/filter-store Store filter
|
159
159
|
*
|
160
|
-
* @issue https://localhost.alvine.dev:
|
160
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/272.html
|
161
161
|
*
|
162
162
|
* @copyright schukai GmbH
|
163
163
|
* @summary The Filter component is used to show and handle the filter values.
|
@@ -67,7 +67,7 @@ const badgeElementSymbol = Symbol("badgeElement");
|
|
67
67
|
*
|
68
68
|
* @example /examples/components/datatable/save-button-simple Simple example
|
69
69
|
*
|
70
|
-
* @issue https://localhost.alvine.dev:
|
70
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/274.html
|
71
71
|
*
|
72
72
|
* @copyright schukai GmbH
|
73
73
|
* @summary This is a save button component that can be used to save changes to a datasource.
|
@@ -52,7 +52,7 @@ const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
|
|
52
52
|
*
|
53
53
|
* @example /examples/components/datatable/datasource-status-simple Simple dataset status
|
54
54
|
*
|
55
|
-
* @issue https://localhost.alvine.dev:
|
55
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/274.html
|
56
56
|
*
|
57
57
|
* @copyright schukai GmbH
|
58
58
|
* @summary The Status component is used to show the current status of a datasource.
|
@@ -48,7 +48,7 @@ const containerElementSymbol = Symbol("containerElement");
|
|
48
48
|
*
|
49
49
|
* @example /examples/components/form/action-button
|
50
50
|
*
|
51
|
-
* @issue https://localhost.alvine.dev:
|
51
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/264.html
|
52
52
|
*
|
53
53
|
* @since 3.32.0
|
54
54
|
* @copyright schukai GmbH
|
@@ -48,8 +48,8 @@ export const buttonElementSymbol = Symbol("buttonElement");
|
|
48
48
|
* @example /examples/components/form/button-simple Simple Button
|
49
49
|
* @example /examples/components/form/button-with-click-event Button with event
|
50
50
|
*
|
51
|
-
* @issue https://localhost.alvine.dev:
|
52
|
-
* @issue https://localhost.alvine.dev:
|
51
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/282.html
|
52
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/283.html
|
53
53
|
*
|
54
54
|
* @copyright schukai GmbH
|
55
55
|
* @summary A beautiful button that can make your life easier and also looks good.
|
@@ -50,7 +50,7 @@ const cancelButtonElementSymbol = Symbol("cancelButtonElement");
|
|
50
50
|
*
|
51
51
|
* @example /examples/components/form/confirm-button-simple simple confirm button
|
52
52
|
*
|
53
|
-
* @issue https://localhost.alvine.dev:
|
53
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/283.html
|
54
54
|
*
|
55
55
|
* @since 1.5.0
|
56
56
|
* @copyright schukai GmbH
|
@@ -47,7 +47,8 @@ const debounceBindSymbol = Symbol("debounceBind");
|
|
47
47
|
*
|
48
48
|
* @example /examples/components/form/form-simple
|
49
49
|
*
|
50
|
-
* @issue https://localhost.alvine.dev:
|
50
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/281.html
|
51
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/217.html
|
51
52
|
*
|
52
53
|
* @since 1.0.0
|
53
54
|
* @copyright schukai GmbH
|
@@ -179,39 +180,42 @@ function initEventHandler() {
|
|
179
180
|
this[debounceBindSymbol] = {};
|
180
181
|
|
181
182
|
if (this.getOption("features.writeBack") === true) {
|
182
|
-
const events = this.getOption("writeBack.events");
|
183
|
-
for (const event of events) {
|
184
|
-
this.addEventListener(event, (e) => {
|
185
|
-
if (!this.reportValidity()) {
|
186
|
-
this.classList.add("invalid");
|
187
|
-
setTimeout(() => {
|
188
|
-
this.classList.remove("invalid");
|
189
|
-
}, 1000);
|
190
|
-
|
191
|
-
return;
|
192
|
-
}
|
193
183
|
|
194
|
-
|
195
|
-
|
196
|
-
|
184
|
+
setTimeout(() => {
|
185
|
+
const events = this.getOption("writeBack.events");
|
186
|
+
for (const event of events) {
|
187
|
+
this.addEventListener(event, (e) => {
|
188
|
+
if (!this.reportValidity()) {
|
189
|
+
this.classList.add("invalid");
|
190
|
+
setTimeout(() => {
|
191
|
+
this.classList.remove("invalid");
|
192
|
+
}, 1000);
|
193
|
+
|
197
194
|
return;
|
198
|
-
}
|
199
|
-
|
200
|
-
|
195
|
+
}
|
196
|
+
|
197
|
+
if (this[debounceWriteBackSymbol] instanceof DeadMansSwitch) {
|
198
|
+
try {
|
199
|
+
this[debounceWriteBackSymbol].touch();
|
200
|
+
return;
|
201
|
+
} catch (e) {
|
202
|
+
if (e.message !== "has already run") {
|
203
|
+
throw e;
|
204
|
+
}
|
205
|
+
delete this[debounceWriteBackSymbol];
|
201
206
|
}
|
202
|
-
delete this[debounceWriteBackSymbol];
|
203
207
|
}
|
204
|
-
}
|
205
208
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
209
|
+
this[debounceWriteBackSymbol] = new DeadMansSwitch(200, () => {
|
210
|
+
setTimeout(() => {
|
211
|
+
this.write().catch((e) => {
|
212
|
+
addAttributeToken(this, "error", e.message || `${e}`);
|
213
|
+
});
|
214
|
+
}, 0);
|
215
|
+
});
|
212
216
|
});
|
213
|
-
}
|
214
|
-
}
|
217
|
+
}
|
218
|
+
},0);
|
215
219
|
}
|
216
220
|
|
217
221
|
return this;
|
@@ -83,7 +83,7 @@ const arrowElementSymbol = Symbol("arrowElement");
|
|
83
83
|
*
|
84
84
|
* @example /examples/components/form/popper-button-simple
|
85
85
|
*
|
86
|
-
* @issue https://localhost.alvine.dev:
|
86
|
+
* @issue https://localhost.alvine.dev:8440/development/issues/closed/283.html
|
87
87
|
*
|
88
88
|
* @since 1.5.0
|
89
89
|
* @copyright schukai GmbH
|