@schukai/monster 3.97.1 → 3.98.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 (30) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -1
  3. package/source/components/accessibility/locale-picker.mjs +549 -543
  4. package/source/components/datatable/columnbar.mjs +50 -3
  5. package/source/components/datatable/constants.mjs +7 -0
  6. package/source/components/datatable/datatable/header.mjs +1 -0
  7. package/source/components/datatable/datatable.mjs +1168 -942
  8. package/source/components/datatable/filter/date-range.mjs +145 -14
  9. package/source/components/datatable/filter/input.mjs +50 -3
  10. package/source/components/datatable/filter/range.mjs +92 -7
  11. package/source/components/datatable/filter-button.mjs +46 -3
  12. package/source/components/datatable/filter.mjs +95 -10
  13. package/source/components/datatable/pagination.mjs +82 -7
  14. package/source/components/datatable/save-button.mjs +46 -3
  15. package/source/components/datatable/style/datatable.pcss +1 -0
  16. package/source/components/datatable/stylesheet/datatable.mjs +7 -14
  17. package/source/components/form/field-set.mjs +77 -6
  18. package/source/components/form/select.mjs +149 -30
  19. package/source/components/layout/details.mjs +50 -3
  20. package/source/components/layout/tabs.mjs +50 -3
  21. package/source/components/notify/monitor-attribute-errors.mjs +235 -0
  22. package/source/components/notify/style/monitor-attribute-errors.pcss +0 -0
  23. package/source/components/notify/stylesheet/monitor-attribute-errors.mjs +38 -0
  24. package/source/dom/customelement.mjs +3 -3
  25. package/source/i18n/util.mjs +122 -122
  26. package/source/types/version.mjs +1 -1
  27. package/test/cases/monster.mjs +1 -1
  28. package/test/web/import.js +1 -0
  29. package/test/web/test.html +2 -2
  30. package/test/web/tests.js +432 -13
@@ -37,6 +37,7 @@ import {
37
37
  handleDataSourceChanges,
38
38
  datasourceLinkedElementSymbol,
39
39
  } from "./util.mjs";
40
+ import {getLocaleOfDocument} from "../../dom/locale.mjs";
40
41
 
41
42
  export { SaveButton };
42
43
 
@@ -105,9 +106,7 @@ class SaveButton extends CustomElement {
105
106
  main: getTemplate(),
106
107
  },
107
108
 
108
- labels: {
109
- button: "save",
110
- },
109
+ labels: getTranslations(),
111
110
 
112
111
  classes: {
113
112
  bar: "monster-button-primary",
@@ -260,6 +259,50 @@ class SaveButton extends CustomElement {
260
259
  }
261
260
  }
262
261
 
262
+ function getTranslations() {
263
+ const locale = getLocaleOfDocument();
264
+ switch (locale.language) {
265
+ case 'de':
266
+ return {
267
+ button: "Speichern"
268
+ };
269
+ case 'fr':
270
+ return {
271
+ button: "Enregistrer"
272
+ };
273
+ case 'sp':
274
+ return {
275
+ button: "Guardar"
276
+ };
277
+ case 'it':
278
+ return {
279
+ button: "Salva"
280
+ };
281
+ case 'pl':
282
+ return {
283
+ button: "Zapisz"
284
+ };
285
+ case 'no':
286
+ return {
287
+ button: "Lagre"
288
+ };
289
+ case 'dk':
290
+ return {
291
+ button: "Gem"
292
+ };
293
+ case 'sw':
294
+ return {
295
+ button: "Spara"
296
+ };
297
+ default:
298
+ case 'en':
299
+ return {
300
+ button: "Save"
301
+ };
302
+ }
303
+ }
304
+
305
+
263
306
  /**
264
307
  * @private
265
308
  * @return {SaveButton}
@@ -60,6 +60,7 @@
60
60
 
61
61
  ::slotted(.monster-button-group) {
62
62
  margin: 0 !important;
63
+ flex-grow: 2;
63
64
  }
64
65
 
65
66
  ::slotted(.monster-button-group) {