@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/package.json +1 -1
  3. package/source/components/content/copy.mjs +1 -1
  4. package/source/components/datatable/dataset.mjs +29 -25
  5. package/source/components/datatable/datasource/dom.mjs +4 -6
  6. package/source/components/datatable/datasource/rest.mjs +472 -474
  7. package/source/components/datatable/datasource.mjs +0 -8
  8. package/source/components/datatable/pagination.mjs +434 -440
  9. package/source/components/datatable/status.mjs +1 -3
  10. package/source/components/datatable/stylesheet/pagination.mjs +13 -6
  11. package/source/components/datatable/util.mjs +1 -1
  12. package/source/components/form/api-bar.mjs +1 -1
  13. package/source/components/form/api-button.mjs +1 -1
  14. package/source/components/form/button-bar.mjs +1 -1
  15. package/source/components/form/button.mjs +2 -2
  16. package/source/components/form/confirm-button.mjs +1 -1
  17. package/source/components/form/form.mjs +7 -5
  18. package/source/components/form/select.mjs +2014 -2006
  19. package/source/components/form/style/field-set.pcss +9 -0
  20. package/source/components/form/style/toggle-switch.pcss +3 -0
  21. package/source/components/form/stylesheet/field-set.mjs +7 -14
  22. package/source/components/form/stylesheet/toggle-switch.mjs +7 -14
  23. package/source/components/form/toggle-switch.mjs +386 -334
  24. package/source/components/layout/tabs.mjs +900 -898
  25. package/source/components/layout/width-toggle.mjs +1 -1
  26. package/source/components/navigation/table-of-content.mjs +1 -1
  27. package/source/components/notify/message.mjs +11 -15
  28. package/source/components/notify/notify.mjs +11 -15
  29. package/source/components/notify/stylesheet/notify.mjs +13 -6
  30. package/source/components/state/log.mjs +185 -185
  31. package/source/components/state/state.mjs +1 -1
  32. package/source/components/state/stylesheet/log.mjs +13 -6
  33. package/source/components/style/theme.css +4 -4
  34. package/source/data/datasource/server/restapi.mjs +2 -3
  35. package/source/data/transformer.mjs +803 -806
  36. package/source/dom/constants.mjs +8 -5
  37. package/source/dom/customelement.mjs +0 -34
  38. package/source/dom/updater.mjs +764 -767
  39. package/source/i18n/time-ago.mjs +1352 -636
  40. package/source/monster.mjs +2 -0
  41. package/source/types/has.mjs +3 -6
  42. package/source/types/version.mjs +1 -1
  43. package/test/cases/components/form/form.mjs +166 -125
  44. package/test/cases/components/form/toggle-switch.mjs +80 -65
  45. package/test/cases/monster.mjs +1 -1
  46. package/test/web/import.js +1 -0
  47. package/test/web/test.html +2 -2
  48. package/test/web/tests.js +2080 -1433
@@ -196,23 +196,26 @@ const ATTRIBUTE_UPDATER_BIND = `${ATTRIBUTE_PREFIX}bind`;
196
196
  /**
197
197
  * @type {string}
198
198
  * @license AGPLv3
199
- * @since 3.73.0
199
+ * @since 1.9.0
200
200
  */
201
- const ATTRIBUTE_FORM_BIND = `${ATTRIBUTE_PREFIX}form-bind`;
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 ATTRIBUTE_FORM_BIND_TYPE = `${ATTRIBUTE_PREFIX}form-bind-type`;
209
+ const ATTRIBUTE_FORM_BIND = `${ATTRIBUTE_PREFIX}form-bind`;
209
210
 
210
211
  /**
211
212
  * @type {string}
212
213
  * @license AGPLv3
213
- * @since 1.9.0
214
+ * @since 3.73.0
215
+ * @deprecated since 2024-12-29
214
216
  */
215
- const ATTRIBUTE_UPDATER_BIND_TYPE = `${ATTRIBUTE_UPDATER_BIND}-type`;
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.