@uxf/data-grid 11.79.0 → 11.80.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/filter-handler/multi-select.js +3 -2
- package/package.json +4 -4
- package/translations.d.ts +14 -0
|
@@ -18,10 +18,11 @@ const filterHandler = {
|
|
|
18
18
|
},
|
|
19
19
|
ListItem(props) {
|
|
20
20
|
var _a;
|
|
21
|
+
const selectedOptions = (_a = props.filter.options) === null || _a === void 0 ? void 0 : _a.filter((o) => { var _a; return (_a = props.value) === null || _a === void 0 ? void 0 : _a.includes(o.id); });
|
|
21
22
|
return (react_1.default.createElement(chip_1.Chip, { onClose: props.onClear },
|
|
22
23
|
props.filter.label,
|
|
23
|
-
":\u00A0",
|
|
24
|
-
|
|
24
|
+
":\u00A0", selectedOptions === null || selectedOptions === void 0 ? void 0 :
|
|
25
|
+
selectedOptions.map((item) => item.label).join(", ")));
|
|
25
26
|
},
|
|
26
27
|
};
|
|
27
28
|
exports.default = filterHandler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/data-grid",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.80.0",
|
|
4
4
|
"description": "UXF DataGrid",
|
|
5
5
|
"homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit --skipLibCheck"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@uxf/core": "11.
|
|
35
|
-
"@uxf/core-react": "11.
|
|
36
|
-
"@uxf/ui": "11.
|
|
34
|
+
"@uxf/core": "11.80.0",
|
|
35
|
+
"@uxf/core-react": "11.80.0",
|
|
36
|
+
"@uxf/ui": "11.80.0",
|
|
37
37
|
"dayjs": "1.11.13",
|
|
38
38
|
"deepmerge": "4.3.1",
|
|
39
39
|
"fast-glob": "3.3.2",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TranslationsPaths } from "@uxf/core-react/translations/types";
|
|
2
|
+
import dataGridTranslations from "@uxf/data-grid/translations/translations";
|
|
3
|
+
import uiTranslations from "@uxf/ui/translations/translations";
|
|
4
|
+
|
|
5
|
+
type dataGridTypes = typeof dataGridTranslations;
|
|
6
|
+
type uiTypes = typeof uiTranslations;
|
|
7
|
+
|
|
8
|
+
type TranslationsKeys = TranslationsPaths<dataGridTypes & uiTypes>;
|
|
9
|
+
|
|
10
|
+
type TypeSafeTranslate = (key: TranslationsKeys, options?: Record<string, any>) => string;
|
|
11
|
+
|
|
12
|
+
declare module "@uxf/core-react/translations" {
|
|
13
|
+
export function useUxfTranslation(): TypeSafeTranslate;
|
|
14
|
+
}
|