@schukai/monster 3.95.2 → 3.96.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 +26 -0
- package/package.json +1 -1
- package/source/components/content/copy.mjs +1 -1
- package/source/components/datatable/dataset.mjs +29 -25
- package/source/components/datatable/datasource/dom.mjs +4 -6
- package/source/components/datatable/datasource/rest.mjs +472 -474
- package/source/components/datatable/datasource.mjs +0 -8
- package/source/components/datatable/pagination.mjs +434 -440
- package/source/components/datatable/status.mjs +1 -3
- package/source/components/datatable/stylesheet/pagination.mjs +13 -6
- package/source/components/datatable/util.mjs +1 -1
- package/source/components/form/api-bar.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 +2 -2
- package/source/components/form/confirm-button.mjs +1 -1
- package/source/components/form/form.mjs +7 -5
- package/source/components/form/select.mjs +2014 -2006
- package/source/components/form/style/field-set.pcss +9 -0
- package/source/components/form/style/toggle-switch.pcss +3 -0
- package/source/components/form/stylesheet/field-set.mjs +7 -14
- package/source/components/form/stylesheet/toggle-switch.mjs +7 -14
- package/source/components/form/toggle-switch.mjs +386 -334
- package/source/components/layout/tabs.mjs +900 -898
- package/source/components/layout/width-toggle.mjs +1 -1
- package/source/components/navigation/table-of-content.mjs +1 -1
- package/source/components/notify/message.mjs +11 -15
- package/source/components/notify/notify.mjs +11 -15
- package/source/components/notify/stylesheet/notify.mjs +13 -6
- package/source/components/state/log.mjs +185 -185
- package/source/components/state/state.mjs +1 -1
- package/source/components/state/stylesheet/log.mjs +13 -6
- package/source/components/style/theme.css +4 -4
- package/source/data/datasource/server/restapi.mjs +2 -3
- package/source/data/transformer.mjs +803 -806
- package/source/dom/constants.mjs +8 -5
- package/source/dom/customelement.mjs +0 -34
- package/source/dom/updater.mjs +764 -767
- package/source/i18n/time-ago.mjs +1352 -636
- package/source/monster.mjs +2 -0
- package/source/types/has.mjs +3 -6
- package/source/types/version.mjs +1 -1
- package/test/cases/components/form/form.mjs +166 -125
- package/test/cases/components/form/toggle-switch.mjs +80 -65
- package/test/cases/monster.mjs +1 -1
- package/test/web/import.js +1 -0
- package/test/web/test.html +2 -2
- package/test/web/tests.js +2080 -1433
package/source/dom/constants.mjs
CHANGED
@@ -196,23 +196,26 @@ const ATTRIBUTE_UPDATER_BIND = `${ATTRIBUTE_PREFIX}bind`;
|
|
196
196
|
/**
|
197
197
|
* @type {string}
|
198
198
|
* @license AGPLv3
|
199
|
-
* @since
|
199
|
+
* @since 1.9.0
|
200
200
|
*/
|
201
|
-
const
|
201
|
+
const ATTRIBUTE_UPDATER_BIND_TYPE = `${ATTRIBUTE_UPDATER_BIND}-type`;
|
202
202
|
|
203
203
|
/**
|
204
204
|
* @type {string}
|
205
205
|
* @license AGPLv3
|
206
|
+
* @deprecated since 2024-12-29
|
206
207
|
* @since 3.73.0
|
207
208
|
*/
|
208
|
-
const
|
209
|
+
const ATTRIBUTE_FORM_BIND = `${ATTRIBUTE_PREFIX}form-bind`;
|
209
210
|
|
210
211
|
/**
|
211
212
|
* @type {string}
|
212
213
|
* @license AGPLv3
|
213
|
-
* @since
|
214
|
+
* @since 3.73.0
|
215
|
+
* @deprecated since 2024-12-29
|
214
216
|
*/
|
215
|
-
const
|
217
|
+
const ATTRIBUTE_FORM_BIND_TYPE = `${ATTRIBUTE_PREFIX}form-bind-type`;
|
218
|
+
|
216
219
|
|
217
220
|
/**
|
218
221
|
* @type {string}
|
@@ -219,40 +219,6 @@ class CustomElement extends HTMLElement {
|
|
219
219
|
return Symbol.for("@schukai/monster/dom/custom-element@@instance");
|
220
220
|
}
|
221
221
|
|
222
|
-
// /**
|
223
|
-
// * This method is called by the `instanceof` operator.
|
224
|
-
// *
|
225
|
-
// * @param instance
|
226
|
-
// * @returns {arg is any[]}
|
227
|
-
// */
|
228
|
-
// static [Symbol.hasInstance](instance) {
|
229
|
-
// if (!isObject(instance)) {
|
230
|
-
// return false;
|
231
|
-
// }
|
232
|
-
// debugger
|
233
|
-
// const instanceSym = instance?.[instanceSymbol];
|
234
|
-
// if (instanceSym === undefined) {
|
235
|
-
// return false;
|
236
|
-
// }
|
237
|
-
//
|
238
|
-
// // Direktes Matching des Symbols
|
239
|
-
// if (instanceSym === this[instanceSymbol]) {
|
240
|
-
// return true;
|
241
|
-
// }
|
242
|
-
//
|
243
|
-
// // Prüfe den Prototypenbaum des Objekts für eine Übereinstimmung
|
244
|
-
// let proto = Object.getPrototypeOf(instance);
|
245
|
-
// while (proto) {
|
246
|
-
// const protoSymbol = proto.constructor?.[instanceSymbol];
|
247
|
-
// if (protoSymbol === this[instanceSymbol]) {
|
248
|
-
// return true;
|
249
|
-
// }
|
250
|
-
// proto = Object.getPrototypeOf(proto); // Gehe weiter den Prototypenbaum entlang
|
251
|
-
// }
|
252
|
-
//
|
253
|
-
// return false;
|
254
|
-
// }
|
255
|
-
|
256
222
|
/**
|
257
223
|
* This method determines which attributes are to be
|
258
224
|
* monitored by `attributeChangedCallback()`. Unfortunately, this method is static.
|