@progress/kendo-react-grid 7.3.0-develop.4 → 7.3.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.
@@ -6,49 +6,65 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as t from "react";
10
- import { getNestedValue as k } from "../utils/index.mjs";
11
- import { selectRow as r, messages as f } from "../messages/index.mjs";
12
- import { useLocalization as C } from "@progress/kendo-react-intl";
13
- import { useTableKeyboardNavigation as b } from "@progress/kendo-react-data-tools";
14
- import { useId as y } from "@progress/kendo-react-common";
15
- const I = (e) => {
16
- const m = C(), u = t.useCallback(
17
- (n) => {
18
- e.selectionChange && e.selectionChange({ syntheticEvent: n });
9
+ import * as e from "react";
10
+ import { getNestedValue as v } from "../utils/index.mjs";
11
+ import { selectRow as g, messages as R } from "../messages/index.mjs";
12
+ import { useLocalization as T } from "@progress/kendo-react-intl";
13
+ import { useTableKeyboardNavigation as z } from "@progress/kendo-react-data-tools";
14
+ import { useId as L, classNames as V } from "@progress/kendo-react-common";
15
+ const P = (a) => {
16
+ const {
17
+ selectionChange: o,
18
+ field: p,
19
+ dataItem: k,
20
+ id: b,
21
+ className: f,
22
+ colSpan: h,
23
+ style: C,
24
+ ariaColumnIndex: x,
25
+ rowType: l,
26
+ cells: N,
27
+ render: n
28
+ } = a, y = T(), I = e.useCallback(
29
+ (c) => {
30
+ o && o({ syntheticEvent: c });
19
31
  },
20
- [e.selectionChange]
21
- ), g = y(), c = k(e.field, e.dataItem), h = b(e.id), l = {
22
- colSpan: e.colSpan,
23
- style: e.style,
24
- className: e.className,
25
- "aria-colindex": e.ariaColumnIndex,
32
+ [o]
33
+ ), S = L(), s = v(p, k), w = z(b), E = V(
34
+ "k-table-td",
35
+ f
36
+ ), r = {
37
+ colSpan: h,
38
+ style: C,
39
+ className: E,
40
+ "aria-colindex": x,
26
41
  role: "gridcell",
27
- ...h
28
- }, o = typeof c == "boolean" && c, i = /* @__PURE__ */ t.createElement("span", { key: 1, className: "k-checkbox-wrap" }, /* @__PURE__ */ t.createElement(
42
+ ...w
43
+ }, i = typeof s == "boolean" && s, d = /* @__PURE__ */ e.createElement("span", { key: 1, className: "k-checkbox-wrap" }, /* @__PURE__ */ e.createElement(
29
44
  "input",
30
45
  {
31
- id: g,
46
+ id: S,
47
+ tabIndex: -1,
32
48
  type: "checkbox",
33
49
  className: "k-checkbox k-checkbox-md k-rounded-md",
34
- "aria-label": m.toLanguageString(r, f[r]),
35
- "aria-checked": o,
36
- checked: o,
37
- onChange: u
50
+ "aria-label": y.toLanguageString(g, R[g]),
51
+ "aria-checked": i,
52
+ checked: i,
53
+ onChange: I
38
54
  }
39
- )), s = e.rowType !== "groupHeader" ? /* @__PURE__ */ t.createElement(
55
+ )), m = l !== "groupHeader" ? /* @__PURE__ */ e.createElement(
40
56
  "td",
41
57
  {
42
- ...l
58
+ ...r
43
59
  },
44
- i
45
- ) : null, d = e.rowType || "data", a = e.cells;
46
- if (a && a.select && a.select[d]) {
47
- const n = a.select[d];
48
- return /* @__PURE__ */ t.createElement(n, { ...e, tdProps: l }, i);
60
+ d
61
+ ) : null, u = l || "data", t = N;
62
+ if (t && t.select && t.select[u]) {
63
+ const c = t.select[u];
64
+ return /* @__PURE__ */ e.createElement(c, { ...a, tdProps: r }, d);
49
65
  }
50
- return e.render ? e.render.call(void 0, s, e) : s;
66
+ return n ? n.call(void 0, m, a) : m;
51
67
  };
52
68
  export {
53
- I as GridSelectionCell
69
+ P as GridSelectionCell
54
70
  };