@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.
- package/CHANGELOG.md +20 -0
- package/package.json +1 -1
- package/source/components/accessibility/locale-picker.mjs +549 -543
- 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 -942
- 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/util.mjs +122 -122
- 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
@@ -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
|
};
|