@schukai/monster 3.54.0 → 3.55.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/source/components/datatable/datasource/rest.mjs +358 -309
- package/source/components/datatable/datatable/header.mjs +8 -0
- package/source/components/datatable/datatable.mjs +606 -557
- package/source/components/datatable/embedded-pagination.mjs +50 -62
- package/source/components/datatable/filter/util.mjs +122 -0
- package/source/components/datatable/filter.mjs +893 -708
- package/source/components/datatable/pagination.mjs +335 -310
- package/source/components/datatable/status.mjs +248 -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 +1 -1
- package/source/components/datatable/stylesheet/datatable.mjs +1 -1
- package/source/components/datatable/stylesheet/filter-button.mjs +1 -1
- package/source/components/datatable/stylesheet/filter.mjs +1 -1
- package/source/components/datatable/stylesheet/pagination.mjs +1 -1
- package/source/components/datatable/stylesheet/status.mjs +27 -0
- package/source/components/form/action-button.mjs +1 -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 +1 -1
- package/source/components/form/context-error.mjs +275 -0
- package/source/components/form/context-help.mjs +5 -5
- package/source/components/form/form.mjs +2 -2
- package/source/components/form/message-state-button.mjs +2 -2
- package/source/components/form/popper-button.mjs +7 -4
- package/source/components/form/popper.mjs +317 -309
- package/source/components/form/reload.mjs +1 -1
- package/source/components/form/select.mjs +1 -1
- package/source/components/form/shadow-reload.mjs +1 -1
- package/source/components/form/state-button.mjs +2 -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/context-error.mjs +27 -0
- package/source/components/form/stylesheet/context-help.mjs +1 -1
- package/source/components/form/stylesheet/select.mjs +1 -1
- package/source/components/form/stylesheet/tabs.mjs +1 -1
- package/source/components/form/tabs.mjs +757 -707
- package/source/components/form/template.mjs +1 -1
- package/source/components/form/tree-select.mjs +1 -1
- package/source/components/host/collapse.mjs +22 -5
- package/source/components/host/config-manager.mjs +39 -2
- package/source/components/host/host.mjs +14 -0
- package/source/components/host/stylesheet/call-button.mjs +1 -1
- package/source/components/host/stylesheet/overlay.mjs +1 -1
- package/source/components/host/stylesheet/toggle-button.mjs +1 -1
- package/source/components/host/util.mjs +6 -1
- package/source/components/notify/stylesheet/message.mjs +1 -1
- package/source/components/stylesheet/icons.mjs +1 -1
- package/source/data/transformer.mjs +39 -42
- package/source/dom/customelement.mjs +1 -1
- package/source/dom/updater.mjs +700 -688
- package/source/dom/util.mjs +42 -0
- package/source/i18n/providers/embed.mjs +3 -3
- package/source/monster.mjs +6 -0
- package/source/text/formatter.mjs +2 -2
- package/source/types/observer.mjs +1 -1
- package/source/types/version.mjs +1 -1
- package/source/util/sleep.mjs +18 -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
@@ -56,7 +56,7 @@ const ATTRIBUTE_FORM_DATASOURCE_ACTION = `${ATTRIBUTE_PREFIX}datasource-action`;
|
|
56
56
|
* @type {symbol}
|
57
57
|
* @since 1.7.0
|
58
58
|
*/
|
59
|
-
const formDataSymbol = Symbol.for("@schukai/
|
59
|
+
const formDataSymbol = Symbol.for("@schukai/monster/components/form/form@@formdata");
|
60
60
|
|
61
61
|
/**
|
62
62
|
* @private
|
@@ -141,7 +141,7 @@ class Form extends CustomElement {
|
|
141
141
|
* @since 2.1.0
|
142
142
|
*/
|
143
143
|
static get [instanceSymbol]() {
|
144
|
-
return Symbol.for("@schukai/
|
144
|
+
return Symbol.for("@schukai/monster/components/form/form");
|
145
145
|
}
|
146
146
|
|
147
147
|
/**
|
@@ -43,7 +43,7 @@ const buttonElementSymbol = Symbol("buttonElement");
|
|
43
43
|
* Or you can create this CustomControl directly in Javascript:
|
44
44
|
*
|
45
45
|
* ```js
|
46
|
-
* import
|
46
|
+
* import from '@schukai/monster/source/components/form/message-state-button.mjs';
|
47
47
|
* document.createElement('monster-state-button');
|
48
48
|
* ```
|
49
49
|
*
|
@@ -68,7 +68,7 @@ class MessageStateButton extends Popper {
|
|
68
68
|
* @since 2.1.0
|
69
69
|
*/
|
70
70
|
static get [instanceSymbol]() {
|
71
|
-
return Symbol.for("@schukai/
|
71
|
+
return Symbol.for("@schukai/monster/components/form/message-state-button@@instance");
|
72
72
|
}
|
73
73
|
|
74
74
|
/**
|
@@ -125,7 +125,7 @@ class PopperButton extends Popper {
|
|
125
125
|
* @since 2.1.0
|
126
126
|
*/
|
127
127
|
static get [instanceSymbol]() {
|
128
|
-
return Symbol.for("@schukai/
|
128
|
+
return Symbol.for("@schukai/monster/components/form/popper-button@@instance");
|
129
129
|
}
|
130
130
|
|
131
131
|
/**
|
@@ -170,7 +170,7 @@ class PopperButton extends Popper {
|
|
170
170
|
[assembleMethodSymbol]() {
|
171
171
|
super[assembleMethodSymbol]();
|
172
172
|
initControlReferences.call(this);
|
173
|
-
|
173
|
+
initEventHandler.call(this);
|
174
174
|
|
175
175
|
return this;
|
176
176
|
}
|
@@ -321,9 +321,9 @@ class PopperButton extends Popper {
|
|
321
321
|
|
322
322
|
/**
|
323
323
|
* @private
|
324
|
-
* @return {
|
324
|
+
* @return {initEventHandler}
|
325
325
|
*/
|
326
|
-
function
|
326
|
+
function initEventHandler() {
|
327
327
|
this[closeEventHandler] = (event) => {
|
328
328
|
const path = event.composedPath();
|
329
329
|
|
@@ -395,12 +395,15 @@ function initControlReferences() {
|
|
395
395
|
this[controlElementSymbol] = this.shadowRoot.querySelector(
|
396
396
|
`[${ATTRIBUTE_ROLE}=control]`,
|
397
397
|
);
|
398
|
+
|
398
399
|
this[buttonElementSymbol] = this.shadowRoot.querySelector(
|
399
400
|
`[${ATTRIBUTE_ROLE}=button]`,
|
400
401
|
);
|
402
|
+
|
401
403
|
this[popperElementSymbol] = this.shadowRoot.querySelector(
|
402
404
|
`[${ATTRIBUTE_ROLE}=popper]`,
|
403
405
|
);
|
406
|
+
|
404
407
|
this[arrowElementSymbol] = this.shadowRoot.querySelector(
|
405
408
|
`[${ATTRIBUTE_ROLE}=arrow]`,
|
406
409
|
);
|