@schukai/monster 3.97.0 → 3.98.0
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 +20 -0
- package/package.json +1 -1
- package/source/components/accessibility/locale-picker.mjs +553 -482
- package/source/components/accessibility/stylesheet/locale-picker.mjs +13 -6
- package/source/components/datatable/columnbar.mjs +50 -3
- package/source/components/datatable/constants.mjs +7 -0
- package/source/components/datatable/datatable/header.mjs +1 -0
- package/source/components/datatable/datatable.mjs +1168 -934
- package/source/components/datatable/filter/date-range.mjs +145 -14
- package/source/components/datatable/filter/input.mjs +50 -3
- package/source/components/datatable/filter/range.mjs +92 -7
- package/source/components/datatable/filter-button.mjs +46 -3
- package/source/components/datatable/filter.mjs +95 -10
- package/source/components/datatable/pagination.mjs +82 -7
- package/source/components/datatable/save-button.mjs +46 -3
- package/source/components/datatable/style/datatable.pcss +1 -0
- package/source/components/datatable/stylesheet/datatable.mjs +7 -14
- package/source/components/form/field-set.mjs +77 -6
- package/source/components/form/select.mjs +149 -30
- package/source/components/layout/details.mjs +50 -3
- package/source/components/layout/tabs.mjs +50 -3
- package/source/components/notify/monitor-attribute-errors.mjs +235 -0
- package/source/components/notify/style/monitor-attribute-errors.pcss +0 -0
- package/source/components/notify/stylesheet/monitor-attribute-errors.mjs +38 -0
- package/source/dom/customelement.mjs +3 -3
- package/source/i18n/locale.mjs +151 -151
- package/source/i18n/map/languages.mjs +88 -88
- package/source/i18n/util.mjs +122 -114
- package/source/monster.mjs +1 -0
- package/source/types/version.mjs +1 -1
- 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 +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}
|