@uxf/data-grid 11.74.4 → 11.74.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/data-grid",
3
- "version": "11.74.4",
3
+ "version": "11.74.5",
4
4
  "description": "UXF DataGrid",
5
5
  "homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
6
6
  "main": "index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@uxf/core": "11.72.3",
35
35
  "@uxf/core-react": "11.74.4",
36
- "@uxf/ui": "11.74.4",
36
+ "@uxf/ui": "11.74.5",
37
37
  "dayjs": "1.11.13",
38
38
  "deepmerge": "4.3.1",
39
39
  "fast-glob": "3.3.2",
@@ -1,4 +0,0 @@
1
- import { FilterHandler } from "./types";
2
- type StateValue = 1 | 0 | null;
3
- declare const filterHandler: FilterHandler<StateValue>;
4
- export default filterHandler;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const translations_1 = require("@uxf/core-react/translations");
7
- const chip_1 = require("@uxf/ui/chip");
8
- const select_1 = require("@uxf/ui/select");
9
- const react_1 = __importDefault(require("react"));
10
- const filterHandler = {
11
- Input(props) {
12
- var _a;
13
- const t = (0, translations_1.useUxfTranslation)();
14
- return (react_1.default.createElement(select_1.Select, { isClearable: true, label: props.filter.label, name: props.filter.name, onChange: (value) => props.onChange(value), options: [
15
- { id: 1, label: t("uxf-data-grid-boolean-filter:yes") },
16
- { id: 0, label: t("uxf-data-grid-boolean-filter:no") },
17
- ], placeholder: (_a = props.filter.config) === null || _a === void 0 ? void 0 : _a.placeholder, value: props.value }));
18
- },
19
- ListItem(props) {
20
- const t = (0, translations_1.useUxfTranslation)();
21
- return (react_1.default.createElement(chip_1.Chip, { onClose: props.onClear },
22
- props.filter.label,
23
- ":\u00A0",
24
- props.value ? t("uxf-data-grid-boolean-filter:yes") : t("uxf-data-grid-boolean-filter:no")));
25
- },
26
- };
27
- exports.default = filterHandler;