@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
@@ -22,6 +22,7 @@ import { findTargetElementFromEvent } from "../../dom/events.mjs";
22
22
  import { clone } from "../../util/clone.mjs";
23
23
  import { ColumnBarStyleSheet } from "./stylesheet/column-bar.mjs";
24
24
  import { createPopper } from "@popperjs/core";
25
+ import {getLocaleOfDocument} from "../../dom/locale.mjs";
25
26
 
26
27
  export { ColumnBar };
27
28
 
@@ -90,9 +91,7 @@ class ColumnBar extends CustomElement {
90
91
  templates: {
91
92
  main: getTemplate(),
92
93
  },
93
- locale: {
94
- settings: "Settings",
95
- },
94
+ locale: getTranslations(),
96
95
 
97
96
  columns: [],
98
97
  });
@@ -127,6 +126,54 @@ class ColumnBar extends CustomElement {
127
126
  }
128
127
  }
129
128
 
129
+ /**
130
+ * @private
131
+ * @returns {{settings: string}}
132
+ */
133
+ function getTranslations() {
134
+ const locale = getLocaleOfDocument();
135
+ switch (locale.language) {
136
+ case 'de':
137
+ return {
138
+ settings: "Einstellungen"
139
+ };
140
+ case 'fr':
141
+ return {
142
+ settings: "Paramètres"
143
+ };
144
+ case 'sp':
145
+ return {
146
+ settings: "Configuración"
147
+ };
148
+ case 'it':
149
+ return {
150
+ settings: "Impostazioni"
151
+ };
152
+ case 'pl':
153
+ return {
154
+ settings: "Ustawienia"
155
+ };
156
+ case 'no':
157
+ return {
158
+ settings: "Innstillinger"
159
+ };
160
+ case 'dk':
161
+ return {
162
+ settings: "Indstillinger"
163
+ };
164
+ case 'sw':
165
+ return {
166
+ settings: "Inställningar"
167
+ };
168
+ default:
169
+ case 'en':
170
+ return {
171
+ settings: "Settings"
172
+ };
173
+ }
174
+ }
175
+
176
+
130
177
  /**
131
178
  * @private
132
179
  * @return {ColumnBar}
@@ -82,6 +82,12 @@ const ATTRIBUTE_DATASOURCE_ARGUMENTS = `${ATTRIBUTE_DATASOURCE}-arguments`;
82
82
  */
83
83
  const ATTRIBUTE_DATATABLE_MODE_FIXED = "fixed";
84
84
 
85
+ /**
86
+ *
87
+ * @type {string}
88
+ */
89
+ const ATTRIBUTE_DATATABLE_FEATURES = `${ATTRIBUTE_PREFIX}features`;
90
+
85
91
  /**
86
92
  * Column is hidden
87
93
  *
@@ -113,4 +119,5 @@ export {
113
119
  ATTRIBUTE_DATATABLE_MODE_VISIBLE,
114
120
  ATTRIBUTE_DATATABLE_MODE_HIDDEN,
115
121
  STYLE_DISPLAY_MODE_BLOCK,
122
+ ATTRIBUTE_DATATABLE_FEATURES,
116
123
  };
@@ -103,6 +103,7 @@ class Header extends Base {
103
103
  index: undefined,
104
104
  mode: undefined,
105
105
  grid: undefined,
106
+ features: undefined,
106
107
  };
107
108
  }
108
109