@progress/kendo-react-data-tools 7.2.2 → 7.2.3-develop.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/index.mjs CHANGED
@@ -5,45 +5,46 @@
5
5
  "use client";
6
6
  import * as a from "react";
7
7
  import p from "prop-types";
8
- import { classNames as H, kendoThemeMaps as $t, validatePackage as gt, Draggable as ft, Keys as K, IconWrap as Me, canUseDOM as Wt, toIconName as ir, extendDataItem as mt, mapTree as U, getItemPath as lr, getNestedValue as $e, guid as cr, getActiveElement as ur, getter as Vt, hasRelativeStackingContext as dr, useDocument as pr, isArray as hr } from "@progress/kendo-react-common";
9
- import { Button as B, Toolbar as Yt, ToolbarItem as We, ButtonGroup as gr } from "@progress/kendo-react-buttons";
10
- import { provideLocalizationService as q, provideIntlService as Ut, registerForLocalization as $, registerForIntl as fr, useLocalization as j } from "@progress/kendo-react-intl";
11
- import { NumericTextBox as Le, Input as jt, TextBox as mr, Checkbox as vr } from "@progress/kendo-react-inputs";
12
- import { DropDownList as _ } from "@progress/kendo-react-dropdowns";
13
- import { caretAltToRightIcon as wt, caretAltToLeftIcon as Ot, caretAltRightIcon as Nt, caretAltLeftIcon as At, filterIcon as Ye, filterClearIcon as Er, sortAscSmallIcon as Xt, sortDescSmallIcon as Zt, cancelIcon as Cr, plusIcon as xr, xIcon as Jt, filterAddExpressionIcon as br, filterAddGroupIcon as yr } from "@progress/kendo-svg-icons";
8
+ import { classNames as H, kendoThemeMaps as Ht, validatePackage as gt, Draggable as ft, Keys as K, IconWrap as Me, canUseDOM as Wt, toIconName as ir, extendDataItem as mt, mapTree as J, getItemPath as lr, getNestedValue as $e, guid as cr, getActiveElement as ur, getter as Vt, hasRelativeStackingContext as dr, useDocument as pr, isArray as hr } from "@progress/kendo-react-common";
9
+ import { Button as B, Toolbar as Yt, ToolbarItem as He, ButtonGroup as gr } from "@progress/kendo-react-buttons";
10
+ import { provideLocalizationService as q, provideIntlService as Ut, registerForLocalization as W, registerForIntl as fr, useLocalization as Q } from "@progress/kendo-react-intl";
11
+ import { NumericTextBox as Re, Input as jt, TextBox as mr, Checkbox as vr } from "@progress/kendo-react-inputs";
12
+ import { DropDownList as $ } from "@progress/kendo-react-dropdowns";
13
+ import { caretAltToRightIcon as wt, caretAltToLeftIcon as Ot, caretAltRightIcon as Nt, caretAltLeftIcon as At, filterIcon as Ve, filterClearIcon as Er, sortAscSmallIcon as Xt, sortDescSmallIcon as Zt, cancelIcon as Cr, plusIcon as xr, xIcon as Jt, filterAddExpressionIcon as br, filterAddGroupIcon as yr } from "@progress/kendo-svg-icons";
14
14
  import * as Ir from "react-dom";
15
15
  import { createPortal as Qt } from "react-dom";
16
16
  import { isCompositeFilterDescriptor as en, orderBy as tn, filterBy as kr } from "@progress/kendo-data-query";
17
17
  import { DatePicker as vt } from "@progress/kendo-react-dateinputs";
18
- import { Popup as Fr } from "@progress/kendo-react-popup";
19
- import { Reveal as Sr } from "@progress/kendo-react-animation";
20
- const he = "pager.info", ge = "pager.firstPage", fe = "pager.previousPage", me = "pager.nextPage", ve = "pager.lastPage", Ee = "pager.itemsPerPage", Rr = "pager.pageSelection", Y = "pager.page", Ce = "pager.of", xe = "pager.totalPages", Mr = "pager.pageLabel", be = "pager.ariaKeyshortcuts", ye = "pager.ariaLabel", Ie = "pager.pageSizeAriaLabel", ke = "pager.mobileSelect", Fe = "pager.moreButtonLabel", le = "filter.eqOperator", ce = "filter.notEqOperator", De = "filter.isNullOperator", we = "filter.isNotNullOperator", nn = "filter.isEmptyOperator", rn = "filter.isNotEmptyOperator", on = "filter.startsWithOperator", sn = "filter.containsOperator", an = "filter.notContainsOperator", ln = "filter.endsWithOperator", cn = "filter.gteOperator", un = "filter.gtOperator", dn = "filter.lteOperator", pn = "filter.ltOperator", hn = "filter.isTrue", gn = "filter.isFalse", fn = "filter.afterOrEqualOperator", mn = "filter.afterOperator", vn = "filter.beforeOperator", En = "filter.beforeOrEqualOperator", Ue = "filter.andLogic", je = "filter.orLogic", re = "filter.addExpression", oe = "filter.addGroup", ae = "filter.close", Xe = "filter.groupAriaLabel", Ze = "filter.expressionAriaLabel", Je = "filter.expressionDropdownAriaLabel", Qe = "filter.expressionOperatorDropdownAriaLabel", et = "filter.enumFilterDropdownAriaLabel", tt = "filter.numericFilterAriaLabel", nt = "filter.textFilterAriaLabel", rt = "columnMenu.filterClearButton", ot = "columnMenu.filterSubmitButton", st = "columnMenu.filterTitle", at = "columnMenu.sortAscending", it = "columnMenu.sortDescending", Oe = "columnMenu.filterEqOperator", Ne = "columnMenu.filterNotEqOperator", Ae = "columnMenu.filterIsNullOperator", Pe = "columnMenu.filterIsNotNullOperator", Cn = "columnMenu.filterIsEmptyOperator", xn = "columnMenu.filterIsNotEmptyOperator", bn = "columnMenu.filterStartsWithOperator", yn = "columnMenu.filterContainsOperator", In = "columnMenu.filterNotContainsOperator", kn = "columnMenu.filterEndsWithOperator", Fn = "columnMenu.filterGteOperator", Sn = "columnMenu.filterGtOperator", Rn = "columnMenu.filterLteOperator", Mn = "columnMenu.filterLtOperator", Ln = "columnMenu.filterIsTrue", Dn = "columnMenu.filterAfterOrEqualOperator", wn = "columnMenu.filterAfterOperator", On = "columnMenu.filterBeforeOperator", Nn = "columnMenu.filterBeforeOrEqualOperator", An = "columnMenu.filterAndLogic", Pn = "columnMenu.filterOrLogic", lt = "sort.ariaLabel", ct = "filter.ariaLabel", E = {
21
- [Ee]: "items per page",
22
- [Rr]: "Select page",
23
- [he]: "{0} - {1} of {2} items",
24
- [ge]: "Go to the first page",
25
- [fe]: "Go to the previous page",
26
- [me]: "Go to the next page",
27
- [ve]: "Go to the last page",
28
- [Y]: "Page",
29
- [Ce]: "of",
30
- [xe]: "{0}",
31
- [Mr]: "Page",
18
+ import { Popup as Sr } from "@progress/kendo-react-popup";
19
+ import { Reveal as Fr } from "@progress/kendo-react-animation";
20
+ const fe = "pager.info", me = "pager.firstPage", ve = "pager.previousPage", Ee = "pager.nextPage", Ce = "pager.lastPage", xe = "pager.itemsPerPage", Mr = "pager.pageSelection", _ = "pager.page", X = "pager.of", U = "pager.totalPages", Ye = "pager.pageNumberLabel", Rr = "pager.pageLabel", be = "pager.ariaKeyshortcuts", Lr = "pager.ariaLabel", ye = "pager.pageSizeAriaLabel", Ie = "pager.mobileSelect", ke = "pager.moreButtonLabel", de = "filter.eqOperator", pe = "filter.notEqOperator", Le = "filter.isNullOperator", De = "filter.isNotNullOperator", nn = "filter.isEmptyOperator", rn = "filter.isNotEmptyOperator", sn = "filter.startsWithOperator", on = "filter.containsOperator", an = "filter.notContainsOperator", ln = "filter.endsWithOperator", cn = "filter.gteOperator", un = "filter.gtOperator", dn = "filter.lteOperator", pn = "filter.ltOperator", hn = "filter.isTrue", gn = "filter.isFalse", fn = "filter.afterOrEqualOperator", mn = "filter.afterOperator", vn = "filter.beforeOperator", En = "filter.beforeOrEqualOperator", Ue = "filter.andLogic", je = "filter.orLogic", ae = "filter.addExpression", ie = "filter.addGroup", ce = "filter.close", Xe = "filter.groupAriaLabel", Ze = "filter.expressionAriaLabel", Je = "filter.expressionDropdownAriaLabel", Qe = "filter.expressionOperatorDropdownAriaLabel", et = "filter.enumFilterDropdownAriaLabel", tt = "filter.numericFilterAriaLabel", nt = "filter.textFilterAriaLabel", rt = "columnMenu.filterClearButton", st = "columnMenu.filterSubmitButton", ot = "columnMenu.filterTitle", at = "columnMenu.sortAscending", it = "columnMenu.sortDescending", we = "columnMenu.filterEqOperator", Oe = "columnMenu.filterNotEqOperator", Ne = "columnMenu.filterIsNullOperator", Ae = "columnMenu.filterIsNotNullOperator", Cn = "columnMenu.filterIsEmptyOperator", xn = "columnMenu.filterIsNotEmptyOperator", bn = "columnMenu.filterStartsWithOperator", yn = "columnMenu.filterContainsOperator", In = "columnMenu.filterNotContainsOperator", kn = "columnMenu.filterEndsWithOperator", Sn = "columnMenu.filterGteOperator", Fn = "columnMenu.filterGtOperator", Mn = "columnMenu.filterLteOperator", Rn = "columnMenu.filterLtOperator", Ln = "columnMenu.filterIsTrue", Dn = "columnMenu.filterAfterOrEqualOperator", wn = "columnMenu.filterAfterOperator", On = "columnMenu.filterBeforeOperator", Nn = "columnMenu.filterBeforeOrEqualOperator", An = "columnMenu.filterAndLogic", Pn = "columnMenu.filterOrLogic", lt = "sort.ariaLabel", ct = "filter.ariaLabel", v = {
21
+ [xe]: "items per page",
22
+ [Mr]: "Select page",
23
+ [fe]: "{0} - {1} of {2} items",
24
+ [me]: "Go to the first page",
25
+ [ve]: "Go to the previous page",
26
+ [Ee]: "Go to the next page",
27
+ [Ce]: "Go to the last page",
28
+ [_]: "Page",
29
+ [X]: "of",
30
+ [U]: "{0}",
31
+ [Rr]: "Page",
32
32
  [be]: "Enter ArrowRight ArrowLeft",
33
- [ye]: "Pager",
34
- [Ie]: "Page size",
35
- [ke]: "Select",
36
- [Fe]: "More pages",
33
+ [Lr]: "Pager",
34
+ [ye]: "Page size",
35
+ [Ie]: "Select",
36
+ [ke]: "More pages",
37
+ [Ye]: "Type a page number",
37
38
  [lt]: "Sortable",
38
39
  [ct]: "Filter",
39
- [le]: "Is equal to",
40
- [ce]: "Is not equal to",
41
- [De]: "Is null",
42
- [we]: "Is not null",
40
+ [de]: "Is equal to",
41
+ [pe]: "Is not equal to",
42
+ [Le]: "Is null",
43
+ [De]: "Is not null",
43
44
  [nn]: "Is empty",
44
45
  [rn]: "Is not empty",
45
- [on]: "Starts with",
46
- [sn]: "Contains",
46
+ [sn]: "Starts with",
47
+ [on]: "Contains",
47
48
  [an]: "Does not contain",
48
49
  [ln]: "Ends with",
49
50
  [cn]: "Is greater than or equal to",
@@ -58,9 +59,9 @@ const he = "pager.info", ge = "pager.firstPage", fe = "pager.previousPage", me =
58
59
  [En]: "Is before or equal to",
59
60
  [Ue]: "And",
60
61
  [je]: "Or",
61
- [re]: "Add Expression",
62
- [oe]: "Add Group",
63
- [ae]: "Remove",
62
+ [ae]: "Add Expression",
63
+ [ie]: "Add Group",
64
+ [ce]: "Remove",
64
65
  [Xe]: "Filter toolbar",
65
66
  [Ze]: "Filter expression row",
66
67
  [Je]: "Filter dropdown",
@@ -69,24 +70,24 @@ const he = "pager.info", ge = "pager.firstPage", fe = "pager.previousPage", me =
69
70
  [tt]: "Enter number",
70
71
  [nt]: "Enter text",
71
72
  [rt]: "Clear",
72
- [ot]: "Filter",
73
73
  [st]: "Filter",
74
+ [ot]: "Filter",
74
75
  [at]: "Sort Ascending",
75
76
  [it]: "Sort Descending",
76
- [Oe]: "Is equal to",
77
- [Ne]: "Is not equal to",
78
- [Ae]: "Is null",
79
- [Pe]: "Is not null",
77
+ [we]: "Is equal to",
78
+ [Oe]: "Is not equal to",
79
+ [Ne]: "Is null",
80
+ [Ae]: "Is not null",
80
81
  [Cn]: "Is empty",
81
82
  [xn]: "Is not empty",
82
83
  [bn]: "Starts with",
83
84
  [yn]: "Contains",
84
85
  [In]: "Does not contain",
85
86
  [kn]: "Ends with",
86
- [Fn]: "Is greater than or equal to",
87
- [Sn]: "Is greater than",
88
- [Rn]: "Is less than or equal to",
89
- [Mn]: "Is less than",
87
+ [Sn]: "Is greater than or equal to",
88
+ [Fn]: "Is greater than",
89
+ [Mn]: "Is less than or equal to",
90
+ [Rn]: "Is less than",
90
91
  [Ln]: "Is true",
91
92
  [Dn]: "Is after or equal to",
92
93
  [wn]: "Is after",
@@ -95,7 +96,7 @@ const he = "pager.info", ge = "pager.firstPage", fe = "pager.previousPage", me =
95
96
  [An]: "And",
96
97
  [Pn]: "Or"
97
98
  }, Pt = "...";
98
- class Lr extends a.Component {
99
+ class Dr extends a.Component {
99
100
  constructor() {
100
101
  super(...arguments), this.handlePageChange = (t, n) => {
101
102
  t.preventDefault(), this.props.pageChange(n, t);
@@ -104,25 +105,25 @@ class Lr extends a.Component {
104
105
  };
105
106
  }
106
107
  render() {
107
- const t = q(this), n = this.props.messagesMap ? this.props.messagesMap(ke) : { messageKey: ke, defaultMessage: E[ke] }, r = this.props.messagesMap ? this.props.messagesMap(Y) : { messageKey: Y, defaultMessage: E[Y] }, o = this.props.messagesMap ? this.props.messagesMap(Fe) : { messageKey: Fe, defaultMessage: E[Fe] }, s = t.toLanguageString(o.messageKey, o.defaultMessage), i = this.start > 1 && this.renderDots(this.start - 1, s), l = this.end < this.props.totalPages && this.renderDots(this.end + 1, s), c = this.start > 1 && this.renderOptionDots(this.start - 1), u = this.end < this.props.totalPages && this.renderOptionDots(this.end + 1), d = [];
108
- for (let h = this.start; h <= this.end; h++)
109
- d.push(h);
110
- const g = d.map((h) => /* @__PURE__ */ a.createElement(
108
+ const t = q(this), n = this.props.messagesMap ? this.props.messagesMap(Ie) : { messageKey: Ie, defaultMessage: v[Ie] }, r = this.props.messagesMap ? this.props.messagesMap(_) : { messageKey: _, defaultMessage: v[_] }, s = this.props.messagesMap ? this.props.messagesMap(ke) : { messageKey: ke, defaultMessage: v[ke] }, o = t.toLanguageString(s.messageKey, s.defaultMessage), i = this.start > 1 && this.renderDots(this.start - 1, o), l = this.end < this.props.totalPages && this.renderDots(this.end + 1, o), c = this.start > 1 && this.renderOptionDots(this.start - 1), u = this.end < this.props.totalPages && this.renderOptionDots(this.end + 1), d = [];
109
+ for (let g = this.start; g <= this.end; g++)
110
+ d.push(g);
111
+ const h = d.map((g) => /* @__PURE__ */ a.createElement(
111
112
  B,
112
113
  {
113
- className: H({ "k-selected": this.props.currentPage === h }),
114
- key: h,
114
+ className: H({ "k-selected": this.props.currentPage === g }),
115
+ key: g,
115
116
  fillMode: "flat",
116
117
  themeColor: "primary",
117
118
  size: this.props.size,
118
119
  rounded: null,
119
120
  role: "button",
120
- "aria-label": t.toLanguageString(r.messageKey, r.defaultMessage) + " " + h,
121
- "aria-current": this.props.currentPage === h ? !0 : void 0,
122
- onClick: (v) => this.handlePageChange(v, h)
121
+ "aria-label": t.toLanguageString(r.messageKey, r.defaultMessage) + " " + g,
122
+ "aria-current": this.props.currentPage === g ? !0 : void 0,
123
+ onClick: (E) => this.handlePageChange(E, g)
123
124
  },
124
- h
125
- )), m = d.map((h) => /* @__PURE__ */ a.createElement("option", { key: h }, h));
125
+ g
126
+ )), m = d.map((g) => /* @__PURE__ */ a.createElement("option", { key: g }, g));
126
127
  return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
127
128
  "select",
128
129
  {
@@ -130,12 +131,12 @@ class Lr extends a.Component {
130
131
  className: H(
131
132
  "k-picker k-dropdown-list k-dropdown k-rounded-md",
132
133
  {
133
- [`k-picker-${$t.sizeMap[this.props.size] || this.props.size}`]: this.props.size
134
+ [`k-picker-${Ht.sizeMap[this.props.size] || this.props.size}`]: this.props.size
134
135
  }
135
136
  ),
136
137
  "aria-label": t.toLanguageString(n.messageKey, n.defaultMessage),
137
138
  value: this.props.currentPage,
138
- onChange: (h) => this.handleSelectPageChange(h)
139
+ onChange: (g) => this.handleSelectPageChange(g)
139
140
  },
140
141
  c,
141
142
  m,
@@ -147,7 +148,7 @@ class Lr extends a.Component {
147
148
  style: { display: this.props.type === "numbers" ? "" : "none" }
148
149
  },
149
150
  i,
150
- g,
151
+ h,
151
152
  l
152
153
  ));
153
154
  }
@@ -188,21 +189,22 @@ class Tn extends a.Component {
188
189
  };
189
190
  }
190
191
  render() {
191
- const t = Ut(this), n = q(this), r = this.props.messagesMap ? this.props.messagesMap(Y) : { messageKey: Y, defaultMessage: E[Y] }, o = this.props.messagesMap ? this.props.messagesMap(Ce) : { messageKey: Ce, defaultMessage: E[Ce] }, s = this.props.messagesMap ? this.props.messagesMap(xe) : { messageKey: xe, defaultMessage: E[xe] };
192
- return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("span", { className: "k-pager-input" }, /* @__PURE__ */ a.createElement("span", null, n.toLanguageString(r.messageKey, r.defaultMessage)), /* @__PURE__ */ a.createElement(
193
- Le,
192
+ const t = Ut(this), n = q(this), r = this.props.messagesMap ? this.props.messagesMap(_) : { messageKey: _, defaultMessage: v[_] }, s = this.props.messagesMap ? this.props.messagesMap(X) : { messageKey: X, defaultMessage: v[X] }, o = this.props.messagesMap ? this.props.messagesMap(U) : { messageKey: U, defaultMessage: v[U] }, i = this.props.messagesMap ? this.props.messagesMap(U) : { messageKey: Ye, defaultMessage: v[Ye] };
193
+ return /* @__PURE__ */ a.createElement("span", { className: "k-pager-input" }, /* @__PURE__ */ a.createElement("span", null, n.toLanguageString(r.messageKey, r.defaultMessage)), /* @__PURE__ */ a.createElement(
194
+ Re,
194
195
  {
195
196
  value: this.props.currentPage !== void 0 ? this.props.currentPage : this.state.page,
196
197
  onChange: this.handleOnChange,
197
198
  min: 1,
198
- spinners: !1
199
+ spinners: !1,
200
+ ariaLabel: n.toLanguageString(i.messageKey, i.defaultMessage)
199
201
  }
200
- ), /* @__PURE__ */ a.createElement("span", null, `${n.toLanguageString(o.messageKey, o.defaultMessage)} ${t.format(n.toLanguageString(s.messageKey, s.defaultMessage), [
202
+ ), /* @__PURE__ */ a.createElement("span", null, `${n.toLanguageString(s.messageKey, s.defaultMessage)} ${t.format(n.toLanguageString(o.messageKey, o.defaultMessage), [
201
203
  this.props.totalPages
202
- ])}`)));
204
+ ])}`));
203
205
  }
204
206
  }
205
- $(Tn);
207
+ W(Tn);
206
208
  class Kn extends a.Component {
207
209
  constructor() {
208
210
  super(...arguments), this.pageSizeChange = (t) => {
@@ -210,14 +212,14 @@ class Kn extends a.Component {
210
212
  };
211
213
  }
212
214
  render() {
213
- const { value: t, pageSizes: n, pageSize: r, messagesMap: o } = this.props, s = n.slice();
214
- t === void 0 && s.filter((c) => c === r).length === 0 && s.unshift(r);
215
- const i = o ? o(Ee) : { messageKey: Ee, defaultMessage: E[Ee] }, l = o ? o(Ie) : { messageKey: Ie, defaultMessage: E[Ie] };
215
+ const { value: t, pageSizes: n, pageSize: r, messagesMap: s } = this.props, o = n.slice();
216
+ t === void 0 && o.filter((c) => c === r).length === 0 && o.unshift(r);
217
+ const i = s ? s(xe) : { messageKey: xe, defaultMessage: v[xe] }, l = s ? s(ye) : { messageKey: ye, defaultMessage: v[ye] };
216
218
  return /* @__PURE__ */ a.createElement("span", { className: "k-pager-sizes" }, /* @__PURE__ */ a.createElement(
217
- _,
219
+ $,
218
220
  {
219
221
  value: t !== void 0 ? t : r,
220
- data: s,
222
+ data: o,
221
223
  onChange: this.pageSizeChange,
222
224
  ariaLabel: q(this).toLanguageString(l.messageKey, l.defaultMessage),
223
225
  size: this.props.size
@@ -225,26 +227,26 @@ class Kn extends a.Component {
225
227
  ), /* @__PURE__ */ a.createElement("span", null, q(this).toLanguageString(i.messageKey, i.defaultMessage)));
226
228
  }
227
229
  }
228
- $(Kn);
230
+ W(Kn);
229
231
  const Et = {
230
232
  name: "@progress/kendo-react-data-tools",
231
233
  productName: "KendoReact",
232
234
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
233
- publishDate: 1708613478,
235
+ publishDate: 1708617648,
234
236
  version: "",
235
237
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
236
- }, Tt = 600, Dr = 768;
237
- class Te extends a.Component {
238
+ }, Tt = 600, wr = 768;
239
+ class Pe extends a.Component {
238
240
  constructor(t) {
239
241
  super(t), this._element = null, this.onPageChange = (n, r) => {
240
- const o = {
242
+ const s = {
241
243
  target: this,
242
244
  syntheticEvent: r.syntheticEvent,
243
245
  nativeEvent: r.nativeEvent,
244
246
  targetEvent: r,
245
247
  ...n
246
248
  };
247
- this.props.onPageChange && this.props.onPageChange.call(void 0, o);
249
+ this.props.onPageChange && this.props.onPageChange.call(void 0, s);
248
250
  }, this.changePage = (n, r) => {
249
251
  this.props.onPageChange && n > 0 && n <= this.totalPages && this.props.onPageChange({
250
252
  target: this,
@@ -259,7 +261,7 @@ class Te extends a.Component {
259
261
  if (!n || !this.props.responsive)
260
262
  return;
261
263
  const r = n.offsetWidth;
262
- r < Tt ? this.setState({ showPagerSizes: !1 }) : r >= Tt && r < Dr ? this.setState({ showPagerInfo: !1, showPagerSizes: !0 }) : this.setState({ showPagerInfo: !0, showPagerSizes: !0 });
264
+ r < Tt ? this.setState({ showPagerSizes: !1 }) : r >= Tt && r < wr ? this.setState({ showPagerInfo: !1, showPagerSizes: !0 }) : this.setState({ showPagerInfo: !0, showPagerSizes: !0 });
263
265
  }, gt(Et), this.state = { showPagerSizes: !0, showPagerInfo: !0 };
264
266
  }
265
267
  get isRtl() {
@@ -287,72 +289,84 @@ class Te extends a.Component {
287
289
  * @hidden
288
290
  */
289
291
  render() {
290
- const { showPagerSizes: t, showPagerInfo: n } = this.state, { skip: r, take: o, total: s, pageSizes: i, size: l, responsive: c, messagesMap: u, pageSizeValue: d } = this.props, g = q(this), m = Ut(this), h = Math.floor(r / o) + 1, v = this.props.type === "numeric" ? /* @__PURE__ */ a.createElement(
291
- Lr,
292
+ const { showPagerSizes: t, showPagerInfo: n } = this.state, { skip: r, take: s, total: o, pageSizes: i, size: l, responsive: c, messagesMap: u, pageSizeValue: d } = this.props, h = q(this), m = Ut(this), g = Math.floor(r / s) + 1, E = this.props.type === "numeric" ? /* @__PURE__ */ a.createElement(
293
+ Dr,
292
294
  {
293
295
  type: c && !t ? "dropdown" : "numbers",
294
296
  buttonCount: this.props.buttonCount || 0,
295
297
  totalPages: this.totalPages,
296
- currentPage: h,
298
+ currentPage: g,
297
299
  pageChange: this.changePage,
298
300
  messagesMap: this.props.messagesMap,
299
- size: this.props.size
301
+ size: l
300
302
  }
301
303
  ) : /* @__PURE__ */ a.createElement(
302
304
  Tn,
303
305
  {
304
306
  buttonCount: this.props.buttonCount || 0,
305
307
  totalPages: this.totalPages,
306
- currentPage: h,
308
+ currentPage: g,
307
309
  pageChange: this.changePage,
308
310
  messagesMap: u,
309
- size: this.props.size
311
+ size: l
310
312
  }
311
- ), b = u ? u(ge) : { messageKey: ge, defaultMessage: E[ge] }, C = u ? u(fe) : { messageKey: fe, defaultMessage: E[fe] }, f = u ? u(me) : { messageKey: me, defaultMessage: E[me] }, I = u ? u(ve) : { messageKey: ve, defaultMessage: E[ve] }, S = u ? u(he) : { messageKey: he, defaultMessage: E[he] }, k = u ? u(be) : { messageKey: be, defaultMessage: E[be] }, x = u ? u(ye) : { messageKey: ye, defaultMessage: E[ye] };
312
- let y, F, w, P;
313
- this.props.previousNext && (y = this.renderButton(
313
+ ), b = u ? u(me) : { messageKey: me, defaultMessage: v[me] }, C = u ? u(ve) : { messageKey: ve, defaultMessage: v[ve] }, f = u ? u(Ee) : { messageKey: Ee, defaultMessage: v[Ee] }, I = u ? u(Ce) : { messageKey: Ce, defaultMessage: v[Ce] }, F = u ? u(fe) : { messageKey: fe, defaultMessage: v[fe] }, k = u ? u(be) : { messageKey: be, defaultMessage: v[be] }, x = u ? u(_) : { messageKey: _, defaultMessage: v[_] }, y = u ? u(X) : { messageKey: X, defaultMessage: v[X] }, S = u ? u(U) : { messageKey: U, defaultMessage: v[U] }, A = `${m.format(h.toLanguageString(
314
+ x.messageKey,
315
+ x.defaultMessage
316
+ ), [s])} ${h.toLanguageString(
317
+ y.messageKey,
318
+ y.defaultMessage
319
+ )} ${m.format(
320
+ h.toLanguageString(
321
+ S.messageKey,
322
+ S.defaultMessage
323
+ ),
324
+ [d]
325
+ )}`;
326
+ let P, T, G, D;
327
+ this.props.previousNext && (P = this.renderButton(
314
328
  1,
315
- "k-pager-nav k-pager-first" + (h === 1 ? " k-disabled" : ""),
316
- g.toLanguageString(b.messageKey, b.defaultMessage),
329
+ "k-pager-nav k-pager-first" + (g === 1 ? " k-disabled" : ""),
330
+ h.toLanguageString(b.messageKey, b.defaultMessage),
317
331
  this.isRtl ? "caret-alt-to-right" : "caret-alt-to-left",
318
332
  this.isRtl ? wt : Ot,
319
- h === 1 ? !0 : void 0
320
- ), F = this.renderButton(
321
- h - 1,
322
- "k-pager-nav" + (h === 1 ? " k-disabled" : ""),
323
- g.toLanguageString(C.messageKey, C.defaultMessage),
333
+ g === 1 ? !0 : void 0
334
+ ), T = this.renderButton(
335
+ g - 1,
336
+ "k-pager-nav" + (g === 1 ? " k-disabled" : ""),
337
+ h.toLanguageString(C.messageKey, C.defaultMessage),
324
338
  this.isRtl ? "caret-alt-right" : "caret-alt-left",
325
339
  this.isRtl ? Nt : At,
326
- h === 1 ? !0 : void 0
327
- ), w = this.renderButton(
328
- h + 1,
329
- "k-pager-nav" + (h >= this.totalPages ? " k-disabled" : ""),
330
- g.toLanguageString(f.messageKey, f.defaultMessage),
340
+ g === 1 ? !0 : void 0
341
+ ), G = this.renderButton(
342
+ g + 1,
343
+ "k-pager-nav" + (g >= this.totalPages ? " k-disabled" : ""),
344
+ h.toLanguageString(f.messageKey, f.defaultMessage),
331
345
  this.isRtl ? "caret-alt-left" : "caret-alt-right",
332
346
  this.isRtl ? At : Nt,
333
- h >= this.totalPages ? !0 : void 0
334
- ), P = this.renderButton(
347
+ g >= this.totalPages ? !0 : void 0
348
+ ), D = this.renderButton(
335
349
  this.totalPages,
336
- "k-pager-nav k-pager-last" + (h >= this.totalPages ? " k-disabled" : ""),
337
- g.toLanguageString(I.messageKey, I.defaultMessage),
350
+ "k-pager-nav k-pager-last" + (g >= this.totalPages ? " k-disabled" : ""),
351
+ h.toLanguageString(I.messageKey, I.defaultMessage),
338
352
  this.isRtl ? "caret-alt-to-left" : "caret-alt-to-right",
339
353
  this.isRtl ? Ot : wt,
340
- h >= this.totalPages ? !0 : void 0
354
+ g >= this.totalPages ? !0 : void 0
341
355
  ));
342
- const T = i && /* @__PURE__ */ a.createElement(
356
+ const L = i && /* @__PURE__ */ a.createElement(
343
357
  Kn,
344
358
  {
345
359
  pageChange: this.onPageChange,
346
- pageSize: o,
360
+ pageSize: s,
347
361
  pageSizes: i,
348
362
  value: d,
349
363
  messagesMap: u,
350
- size: this.props.size
364
+ size: l
351
365
  }
352
- ), z = this.props.info && /* @__PURE__ */ a.createElement("span", { className: "k-pager-info" }, m.format(g.toLanguageString(S.messageKey, S.defaultMessage), [
353
- Math.min(r + 1, s),
354
- Math.min(r + o, s),
355
- s
366
+ ), V = this.props.info && /* @__PURE__ */ a.createElement("span", { className: "k-pager-info" }, m.format(h.toLanguageString(F.messageKey, F.defaultMessage), [
367
+ Math.min(r + 1, o),
368
+ Math.min(r + s, o),
369
+ o
356
370
  ]));
357
371
  return /* @__PURE__ */ a.createElement(
358
372
  "div",
@@ -360,7 +374,7 @@ class Te extends a.Component {
360
374
  className: H(
361
375
  "k-pager",
362
376
  {
363
- [`k-pager-${$t.sizeMap[l] || l}`]: l
377
+ [`k-pager-${Ht.sizeMap[l] || l}`]: l
364
378
  },
365
379
  this.props.className
366
380
  ),
@@ -368,16 +382,16 @@ class Te extends a.Component {
368
382
  role: "application",
369
383
  "aria-roledescription": "pager",
370
384
  dir: this.props.dir,
371
- "aria-keyshortcuts": g.toLanguageString(k.messageKey, k.defaultMessage),
372
- "aria-label": g.toLanguageString(x.messageKey, x.defaultMessage),
373
- ref: (L) => this._element = L
385
+ "aria-keyshortcuts": h.toLanguageString(k.messageKey, k.defaultMessage),
386
+ "aria-label": A,
387
+ ref: (Z) => this._element = Z
374
388
  },
375
- /* @__PURE__ */ a.createElement("div", { className: H("k-pager-numbers-wrap") }, y, F, v, w, P),
376
- c ? t && T : T,
377
- c ? n && z : z
389
+ /* @__PURE__ */ a.createElement("div", { className: H("k-pager-numbers-wrap") }, P, T, E, G, D),
390
+ c ? t && L : L,
391
+ c ? n && V : V
378
392
  );
379
393
  }
380
- renderButton(t, n, r, o, s, i) {
394
+ renderButton(t, n, r, s, o, i) {
381
395
  return /* @__PURE__ */ a.createElement(
382
396
  B,
383
397
  {
@@ -386,8 +400,8 @@ class Te extends a.Component {
386
400
  size: this.props.size,
387
401
  rounded: null,
388
402
  className: n,
389
- icon: o,
390
- svgIcon: s,
403
+ icon: s,
404
+ svgIcon: o,
391
405
  title: r,
392
406
  role: "button",
393
407
  "aria-disabled": i,
@@ -401,7 +415,7 @@ class Te extends a.Component {
401
415
  return Math.ceil((this.props.total || 0) / this.props.take);
402
416
  }
403
417
  }
404
- Te.propTypes = {
418
+ Pe.propTypes = {
405
419
  className: p.string,
406
420
  style: p.object,
407
421
  total: p.number.isRequired,
@@ -420,53 +434,53 @@ Te.propTypes = {
420
434
  size: p.oneOf([null, "small", "medium", "large"]),
421
435
  dir: p.string
422
436
  };
423
- Te.defaultProps = {
437
+ Pe.defaultProps = {
424
438
  buttonCount: 10,
425
439
  info: !0,
426
440
  type: "numeric",
427
441
  size: "medium"
428
442
  };
429
- fr(Te);
430
- $(Te);
431
- const Ke = (e) => class extends a.Component {
443
+ fr(Pe);
444
+ W(Pe);
445
+ const Te = (e) => class extends a.Component {
432
446
  constructor() {
433
447
  super(...arguments), this.filterChange = (r) => {
434
448
  this.props.onFilterChange && this.props.onFilterChange(r);
435
449
  }, this.inputChange = (r) => {
436
- const o = r.target.value, { filter: s = [], field: i = "" } = this.props, l = this.findCellFilter(), c = l ? s.map((u) => u.field === i ? { ...l, value: o } : u) : [...s, { ...e.emptyFilter, value: o, field: i }];
450
+ const s = r.target.value, { filter: o = [], field: i = "" } = this.props, l = this.findCellFilter(), c = l ? o.map((u) => u.field === i ? { ...l, value: s } : u) : [...o, { ...e.emptyFilter, value: s, field: i }];
437
451
  this.filterChange({
438
452
  filter: c,
439
453
  field: i,
440
454
  syntheticEvent: r.syntheticEvent
441
455
  });
442
456
  }, this.operatorChange = (r) => {
443
- const { operator: o } = r.target.value, { filter: s = [], field: i = "" } = this.props, l = this.findCellFilter(), c = l ? s.map((u) => u.field === i ? { ...l, operator: o } : u) : [...s, { ...e.emptyFilter, field: i, operator: o }];
457
+ const { operator: s } = r.target.value, { filter: o = [], field: i = "" } = this.props, l = this.findCellFilter(), c = l ? o.map((u) => u.field === i ? { ...l, operator: s } : u) : [...o, { ...e.emptyFilter, field: i, operator: s }];
444
458
  this.filterChange({
445
459
  filter: c,
446
460
  field: i,
447
461
  syntheticEvent: r.syntheticEvent
448
462
  });
449
463
  }, this.clearButtonClick = (r) => {
450
- const { filter: o = [], field: s = "" } = this.props;
464
+ const { filter: s = [], field: o = "" } = this.props;
451
465
  this.filterChange({
452
- filter: o.filter((i) => i.field !== s),
453
- field: s,
466
+ filter: s.filter((i) => i.field !== o),
467
+ field: o,
454
468
  syntheticEvent: r
455
469
  });
456
470
  }, this.findCellFilter = () => {
457
- const { filter: r = [], field: o } = this.props;
458
- return r.find((s) => s.field === o);
471
+ const { filter: r = [], field: s } = this.props;
472
+ return r.find((o) => o.field === s);
459
473
  };
460
474
  }
461
475
  render() {
462
- const { clearButtonTitle: r = "", operators: o = [] } = this.props, s = this.findCellFilter() || { ...e.emptyFilter, operator: "" }, { operator: i, value: l } = s, c = {
476
+ const { clearButtonTitle: r = "", operators: s = [] } = this.props, o = this.findCellFilter() || { ...e.emptyFilter, operator: "" }, { operator: i, value: l } = o, c = {
463
477
  ariaLabel: "filter",
464
- value: o.find((u) => u.operator === i) || null,
478
+ value: s.find((u) => u.operator === i) || null,
465
479
  onChange: this.operatorChange,
466
480
  className: "k-dropdown-operator",
467
481
  iconClassName: "k-i-filter",
468
- svgIcon: Ye,
469
- data: o,
482
+ svgIcon: Ve,
483
+ data: s,
470
484
  textField: "text",
471
485
  popupSettings: { width: "" },
472
486
  components: this.props.components
@@ -493,70 +507,70 @@ const Ke = (e) => class extends a.Component {
493
507
  }
494
508
  ))));
495
509
  }
496
- }, Kt = "eq", wr = {
510
+ }, Kt = "eq", Or = {
497
511
  emptyFilter: { operator: Kt, value: "" },
498
512
  inputComponent: (e) => null,
499
513
  operatorComponent: function(e, t) {
500
- const { filter: n = [], field: r } = t, o = n.find((s) => s.field === r);
514
+ const { filter: n = [], field: r } = t, s = n.find((o) => o.field === r);
501
515
  return /* @__PURE__ */ a.createElement(
502
- _,
516
+ $,
503
517
  {
504
518
  ...e,
505
- value: e.data.find((s) => s.operator === (o ? o.value : "")),
506
- onChange: (s) => {
519
+ value: e.data.find((o) => o.operator === (s ? s.value : "")),
520
+ onChange: (o) => {
507
521
  if (!t.onFilterChange)
508
522
  return;
509
- const i = s.target.value.operator;
523
+ const i = o.target.value.operator;
510
524
  if (i === "") {
511
- o && t.onFilterChange.call(void 0, {
512
- filter: n.filter((c) => c.field !== o.field),
525
+ s && t.onFilterChange.call(void 0, {
526
+ filter: n.filter((c) => c.field !== s.field),
513
527
  field: r,
514
- syntheticEvent: s.syntheticEvent
528
+ syntheticEvent: o.syntheticEvent
515
529
  });
516
530
  return;
517
531
  }
518
- let l = o ? n.map((c) => c.field === r ? { ...o, value: i } : c) : [...n, { value: i, field: r, operator: Kt }];
532
+ let l = s ? n.map((c) => c.field === r ? { ...s, value: i } : c) : [...n, { value: i, field: r, operator: Kt }];
519
533
  t.onFilterChange.call(void 0, {
520
534
  filter: l,
521
535
  field: r,
522
- syntheticEvent: s.syntheticEvent
536
+ syntheticEvent: o.syntheticEvent
523
537
  });
524
538
  }
525
539
  }
526
540
  );
527
541
  }
528
542
  };
529
- class cs extends Ke(wr) {
543
+ class co extends Te(Or) {
530
544
  }
531
- const Or = {
545
+ const Nr = {
532
546
  inputComponent: (e) => /* @__PURE__ */ a.createElement(vt, { ...e }),
533
- operatorComponent: (e) => /* @__PURE__ */ a.createElement(_, { ...e }),
547
+ operatorComponent: (e) => /* @__PURE__ */ a.createElement($, { ...e }),
534
548
  emptyFilter: { operator: "eq", value: null }
535
549
  };
536
- class us extends Ke(Or) {
550
+ class uo extends Te(Nr) {
537
551
  }
538
- const Nr = {
539
- inputComponent: (e) => /* @__PURE__ */ a.createElement(Le, { ...e }),
540
- operatorComponent: (e) => /* @__PURE__ */ a.createElement(_, { ...e }),
552
+ const Ar = {
553
+ inputComponent: (e) => /* @__PURE__ */ a.createElement(Re, { ...e }),
554
+ operatorComponent: (e) => /* @__PURE__ */ a.createElement($, { ...e }),
541
555
  emptyFilter: { operator: "eq", value: null }
542
556
  };
543
- class ds extends Ke(Nr) {
557
+ class po extends Te(Ar) {
544
558
  }
545
- const Ar = {
559
+ const Pr = {
546
560
  inputComponent: (e) => /* @__PURE__ */ a.createElement(jt, { ...e }),
547
- operatorComponent: (e) => /* @__PURE__ */ a.createElement(_, { ...e }),
561
+ operatorComponent: (e) => /* @__PURE__ */ a.createElement($, { ...e }),
548
562
  emptyFilter: { operator: "contains", value: "" }
549
563
  };
550
- class ps extends Ke(Ar) {
564
+ class ho extends Te(Pr) {
551
565
  }
552
- const Pr = {
566
+ const Tr = {
553
567
  filterable: !0,
554
568
  editable: !0,
555
569
  sortable: !0,
556
570
  resizable: !0,
557
571
  reorderable: !0,
558
572
  groupable: !0
559
- }, X = "data-keyboardnavlevel", Bn = "data-keyboardnavscope", qn = "data-keyboardnavheader", zn = "data-keyboardnavbody", Be = "data-keyboardnavid", hs = "data-keyboardnavzone", Tr = "_filter", Gn = [
573
+ }, ee = "data-keyboardnavlevel", Bn = "data-keyboardnavscope", qn = "data-keyboardnavheader", Gn = "data-keyboardnavbody", Ke = "data-keyboardnavid", go = "data-keyboardnavzone", Kr = "_filter", zn = [
560
574
  "input:not([disabled]):not([type=hidden])",
561
575
  "select:not([disabled])",
562
576
  "textarea:not([disabled])",
@@ -570,36 +584,36 @@ const Pr = {
570
584
  "audio[controls]",
571
585
  "video[controls]",
572
586
  "[contenteditable]"
573
- ], Ct = [...Gn, "[tabindex]"], Kr = [...Gn, "[tabindex]"].map((e) => e + ':not([tabindex="-1"])'), gs = {
587
+ ], Ct = [...zn, "[tabindex]"], Br = [...zn, "[tabindex]"].map((e) => e + ':not([tabindex="-1"])'), fo = {
574
588
  [Bn]: !0
575
- }, Br = {
589
+ }, qr = {
576
590
  [qn]: !0
577
- }, fs = {
578
- [zn]: !0
591
+ }, mo = {
592
+ [Gn]: !0
579
593
  }, _n = a.createContext(void 0);
580
594
  _n.displayName = "KendoReactTableKeyboardNavigationContext";
581
- const qr = (e, t) => {
595
+ const Gr = (e, t) => {
582
596
  const n = a.useContext(_n);
583
597
  return !n || !e || t === !1 ? {} : {
584
598
  tabIndex: n && n.activeId && n.activeId === e ? 0 : -1,
585
- [X]: n.level,
586
- [Be]: e
599
+ [ee]: n.level,
600
+ [Ke]: e
587
601
  };
588
602
  }, xt = (e) => {
589
603
  const {
590
604
  ariaSort: t,
591
605
  colSpan: n,
592
606
  rowSpan: r,
593
- className: o,
594
- style: s,
607
+ className: s,
608
+ style: o,
595
609
  columnId: i,
596
610
  onKeyDown: l,
597
611
  navigatable: c,
598
612
  ariaColumnIndex: u,
599
613
  ariaLabel: d,
600
- role: g,
614
+ role: h,
601
615
  ariaSelected: m
602
- } = e, h = qr(i, c);
616
+ } = e, g = Gr(i, c);
603
617
  return /* @__PURE__ */ a.createElement(
604
618
  "th",
605
619
  {
@@ -609,60 +623,60 @@ const qr = (e, t) => {
609
623
  "aria-selected": m,
610
624
  colSpan: n,
611
625
  rowSpan: r,
612
- className: o,
613
- style: s,
626
+ className: s,
627
+ style: o,
614
628
  onKeyDown: l,
615
- role: g,
616
- ...h
629
+ role: h,
630
+ ...g
617
631
  },
618
632
  e.children
619
633
  );
620
634
  };
621
635
  xt.displayName = "KendoReactHeaderThElement";
622
- const Hn = (e, t, n = "cell") => `${t}_${e}_${n}`, zr = (e) => {
636
+ const $n = (e, t, n = "cell") => `${t}_${e}_${n}`, zr = (e) => {
623
637
  if (e)
624
- return parseInt(e.getAttribute(X) || "", 10);
638
+ return parseInt(e.getAttribute(ee) || "", 10);
625
639
  }, bt = (e) => {
626
640
  if (!e)
627
641
  return;
628
- const t = e.getAttribute(Be);
642
+ const t = e.getAttribute(Ke);
629
643
  return t || void 0;
630
- }, ut = (e) => e ? !!e.getAttribute(Be) : !1, Gr = (e, t = { level: 0 }) => e.querySelector(`[${X}='${t.level}']`), _r = (e) => e.parentElement && e.parentElement.closest(`[${X}]`), Hr = (e, t) => e.querySelector(`[${Be}='${t}']`), $r = (e) => e.parentElement && e.parentElement.closest(`[${Bn}]`), $n = (e) => e.querySelector(`[${qn}]`), Wn = (e) => e.querySelector(`[${zn}]`), Wr = (e, t = { focusable: !1 }) => {
631
- let n = t.focusable ? Ct : Kr;
644
+ }, ut = (e) => e ? !!e.getAttribute(Ke) : !1, _r = (e, t = { level: 0 }) => e.querySelector(`[${ee}='${t.level}']`), $r = (e) => e.parentElement && e.parentElement.closest(`[${ee}]`), Hr = (e, t) => e.querySelector(`[${Ke}='${t}']`), Wr = (e) => e.parentElement && e.parentElement.closest(`[${Bn}]`), Hn = (e) => e.querySelector(`[${qn}]`), Wn = (e) => e.querySelector(`[${Gn}]`), Vr = (e, t = { focusable: !1 }) => {
645
+ let n = t.focusable ? Ct : Br;
632
646
  return Array.from(e.querySelectorAll(n.join(",")));
633
- }, Vr = (e, t = { level: 0 }) => {
647
+ }, Yr = (e, t = { level: 0 }) => {
634
648
  if (!e)
635
649
  return [];
636
- let n = Ct.map((r) => r + `[${X}='${t.level}']`).join(",");
650
+ let n = Ct.map((r) => r + `[${ee}='${t.level}']`).join(",");
637
651
  return Array.from(e.querySelectorAll(n));
638
- }, Yr = (e = { level: 0 }) => {
652
+ }, Ur = (e = { level: 0 }) => {
639
653
  let t = Ct.map(
640
- (n) => n + `[${X}='${e.level}']`
654
+ (n) => n + `[${ee}='${e.level}']`
641
655
  ).join(",");
642
656
  return (n) => n.matches(t);
643
- }, Ur = (e) => {
644
- const { elementForFocus: t, event: n, contextStateRef: r, prevElement: o } = e;
645
- r.current && t && t.focus && (n.preventDefault(), t.focus(), ut(t) && (t.setAttribute("tabIndex", "0"), r.current.activeId = bt(t)), o && ut(o) && o.setAttribute("tabIndex", "-1"));
646
- }, jr = (e) => e.current ? e.current.idPrefix : "", Vn = (e, t, n, r, o) => {
657
+ }, jr = (e) => {
658
+ const { elementForFocus: t, event: n, contextStateRef: r, prevElement: s } = e;
659
+ r.current && t && t.focus && (n.preventDefault(), t.focus(), ut(t) && (t.setAttribute("tabIndex", "0"), r.current.activeId = bt(t)), s && ut(s) && s.setAttribute("tabIndex", "-1"));
660
+ }, Xr = (e) => e.current ? e.current.idPrefix : "", Vn = (e, t, n, r, s) => {
647
661
  if (!n)
648
662
  return [];
649
- let s = e + (o ? -1 : 1);
650
- for (; s >= 0 && s < r.length; ) {
651
- const i = r[s][t];
663
+ let o = e + (s ? -1 : 1);
664
+ for (; o >= 0 && o < r.length; ) {
665
+ const i = r[o][t];
652
666
  if (i !== n)
653
- return [i, [s, t]];
654
- s = s + (o ? -1 : 1);
667
+ return [i, [o, t]];
668
+ o = o + (s ? -1 : 1);
655
669
  }
656
670
  return [];
657
- }, Yn = (e, t, n, r, o) => {
671
+ }, Yn = (e, t, n, r, s) => {
658
672
  if (!n)
659
673
  return [];
660
- let s = t + (o ? -1 : 1);
661
- for (; s >= 0 && s < r[e].length; ) {
662
- const i = r[e][s];
674
+ let o = t + (s ? -1 : 1);
675
+ for (; o >= 0 && o < r[e].length; ) {
676
+ const i = r[e][o];
663
677
  if (i !== n)
664
- return [i, [e, s]];
665
- s = s + (o ? -1 : 1);
678
+ return [i, [e, o]];
679
+ o = o + (s ? -1 : 1);
666
680
  }
667
681
  return [];
668
682
  }, dt = (e, t) => {
@@ -672,33 +686,33 @@ const Hn = (e, t, n = "cell") => `${t}_${e}_${n}`, zr = (e) => {
672
686
  if (e[n][r] === t)
673
687
  return [n, r];
674
688
  }
675
- }, Xr = (e) => e.current ? e.current.navigationMatrix.length : 0, Un = (e) => e ? `${e}${Tr}` : "", M = {
676
- generateNavigatableId: Hn,
689
+ }, Zr = (e) => e.current ? e.current.navigationMatrix.length : 0, Un = (e) => e ? `${e}${Kr}` : "", R = {
690
+ generateNavigatableId: $n,
677
691
  getNavigatableId: bt,
678
692
  getNavigatableLevel: zr,
679
- getNavigatableElement: Gr,
680
- getClosestNavigatableElement: _r,
693
+ getNavigatableElement: _r,
694
+ getClosestNavigatableElement: $r,
681
695
  getActiveElement: Hr,
682
- getClosestScope: $r,
683
- getHeaderElement: $n,
696
+ getClosestScope: Wr,
697
+ getHeaderElement: Hn,
684
698
  getBodyElement: Wn,
685
- getFocusableElements: Wr,
686
- getNavigatableElements: Vr,
687
- filterNavigatableElements: Yr,
688
- focusElement: Ur,
689
- getIdPrefix: jr,
699
+ getFocusableElements: Vr,
700
+ getNavigatableElements: Yr,
701
+ filterNavigatableElements: Ur,
702
+ focusElement: jr,
703
+ getIdPrefix: Xr,
690
704
  isNavigatable: ut,
691
705
  findNextIdByRowIndex: Vn,
692
706
  findNextIdByCellIndex: Yn,
693
707
  findId: dt,
694
- getNextNavigationIndex: Xr,
708
+ getNextNavigationIndex: Zr,
695
709
  getFilterColumnId: Un
696
- }, Zr = "k-table-row k-filter-row", Jr = (e, t, n) => {
710
+ }, Jr = "k-table-row k-filter-row", Qr = (e, t, n) => {
697
711
  let r = `${n ? "k-grid-header-sticky" : ""}`;
698
- return e.some((o) => o.field === t) && (r += " k-sorted"), r;
699
- }, ms = function(e) {
700
- const { columns: t, filter: n, filterChange: r, sort: o = [], ariaRowIndex: s } = e, i = j();
701
- return /* @__PURE__ */ a.createElement("tr", { className: Zr, "aria-rowindex": s, role: "row" }, t.map((l, c) => {
712
+ return e.some((s) => s.field === t) && (r += " k-sorted"), r;
713
+ }, vo = function(e) {
714
+ const { columns: t, filter: n, filterChange: r, sort: s = [], ariaRowIndex: o } = e, i = Q();
715
+ return /* @__PURE__ */ a.createElement("tr", { className: Jr, "aria-rowindex": o, role: "row" }, t.map((l, c) => {
702
716
  const u = l.locked !== void 0 ? {
703
717
  left: l.left,
704
718
  right: l.right,
@@ -712,10 +726,10 @@ const Hn = (e, t, n = "cell") => `${t}_${e}_${n}`, zr = (e) => {
712
726
  style: u,
713
727
  key: c,
714
728
  ariaColumnIndex: l.ariaColumnIndex,
715
- ariaLabel: d ? i.toLanguageString(ct, E[ct]) : void 0,
729
+ ariaLabel: d ? i.toLanguageString(ct, v[ct]) : void 0,
716
730
  className: H(
717
731
  "k-table-th k-header",
718
- Jr(o, l.field, l.locked)
732
+ Qr(s, l.field, l.locked)
719
733
  )
720
734
  },
721
735
  d && /* @__PURE__ */ a.createElement(
@@ -729,12 +743,12 @@ const Hn = (e, t, n = "cell") => `${t}_${e}_${n}`, zr = (e) => {
729
743
  );
730
744
  }));
731
745
  };
732
- function Qr(e, t) {
746
+ function es(e, t) {
733
747
  const n = e[t].depth;
734
748
  let r = null;
735
- for (let o = t + 1; o < e.length; o++)
736
- if (e[o].depth === n) {
737
- r = e[o];
749
+ for (let s = t + 1; s < e.length; s++)
750
+ if (e[s].depth === n) {
751
+ r = e[s];
738
752
  break;
739
753
  }
740
754
  return r;
@@ -743,61 +757,61 @@ const yt = (e) => {
743
757
  let t = e.width ? parseFloat(e.width.toString()) : 0;
744
758
  return !t && e.children && e.children.length && (t = e.children.reduce((n, r) => yt(r) + n, 0)), t;
745
759
  };
746
- function vs(e) {
760
+ function Eo(e) {
747
761
  const t = [[]];
748
762
  let n = 0;
749
- for (let s = e.length - 1; s >= 0; s--)
750
- n = Math.max(n, e[s].depth), e[s].colSpan = e[s].colSpan || 1, e[s].parentIndex !== -1 && (e[e[s].parentIndex].colSpan = (e[e[s].parentIndex].colSpan || 0) + e[s].colSpan);
763
+ for (let o = e.length - 1; o >= 0; o--)
764
+ n = Math.max(n, e[o].depth), e[o].colSpan = e[o].colSpan || 1, e[o].parentIndex !== -1 && (e[e[o].parentIndex].colSpan = (e[e[o].parentIndex].colSpan || 0) + e[o].colSpan);
751
765
  const r = [];
752
- let o = 1;
753
- return e.forEach((s, i) => {
754
- t[s.depth] = t[s.depth] || [];
766
+ let s = 1;
767
+ return e.forEach((o, i) => {
768
+ t[o.depth] = t[o.depth] || [];
755
769
  let l = !1;
756
- t[s.depth].length === 0 && (o <= 1 ? o = 1 + (s.children.length > 0 ? 0 : n - s.depth) : (o--, l = !0)), s.rowSpan = 1 + (s.children.length > 0 ? 0 : n - s.depth), s.kFirst = l, s.index = t[s.depth].length, t[s.depth].push(i), s.ariaColumnIndex = r[s.depth] ? r[s.depth] + 1 : 1;
757
- for (let c = s.depth; c < s.depth + s.rowSpan; c++)
758
- r[c] = (r[c] || 0) + s.colSpan;
759
- }), eo(t, e), to(t, e), t;
770
+ t[o.depth].length === 0 && (s <= 1 ? s = 1 + (o.children.length > 0 ? 0 : n - o.depth) : (s--, l = !0)), o.rowSpan = 1 + (o.children.length > 0 ? 0 : n - o.depth), o.kFirst = l, o.index = t[o.depth].length, t[o.depth].push(i), o.ariaColumnIndex = r[o.depth] ? r[o.depth] + 1 : 1;
771
+ for (let c = o.depth; c < o.depth + o.rowSpan; c++)
772
+ r[c] = (r[c] || 0) + o.colSpan;
773
+ }), ts(t, e), ns(t, e), t;
760
774
  }
761
- function eo(e, t, n) {
762
- let r = new Array(e.length).fill(0), o = 0;
763
- t.forEach((s) => {
764
- if (s.locked && (!s.left || n))
765
- if (s.left = r[s.depth], o = yt(s), s.children.length === 0)
766
- for (let i = s.depth; i < r.length; i++)
767
- r[i] += o;
775
+ function ts(e, t, n) {
776
+ let r = new Array(e.length).fill(0), s = 0;
777
+ t.forEach((o) => {
778
+ if (o.locked && (!o.left || n))
779
+ if (o.left = r[o.depth], s = yt(o), o.children.length === 0)
780
+ for (let i = o.depth; i < r.length; i++)
781
+ r[i] += s;
768
782
  else
769
- r[s.depth] += o;
783
+ r[o.depth] += s;
770
784
  });
771
785
  }
772
- function to(e, t, n) {
773
- let r = 0, o = new Array(e.length).fill(0);
774
- for (let s = t.length - 1; s >= 0; s--) {
775
- const i = t[s];
786
+ function ns(e, t, n) {
787
+ let r = 0, s = new Array(e.length).fill(0);
788
+ for (let o = t.length - 1; o >= 0; o--) {
789
+ const i = t[o];
776
790
  if (i.locked && (!i.right || n)) {
777
- if (i.right = o[i.depth], r = yt(i), i.children.length === 0)
778
- for (let c = i.depth; c < o.length; c++)
779
- o[c] += r;
791
+ if (i.right = s[i.depth], r = yt(i), i.children.length === 0)
792
+ for (let c = i.depth; c < s.length; c++)
793
+ s[c] += r;
780
794
  else
781
- o[i.depth] += r;
782
- const l = Qr(t, s);
795
+ s[i.depth] += r;
796
+ const l = es(t, o);
783
797
  i.rightBorder = !(l && l.locked);
784
798
  }
785
799
  }
786
800
  }
787
- function no(e, t, n = 0) {
801
+ function rs(e, t, n = 0) {
788
802
  let r = [];
789
803
  if (!e || !e.length)
790
804
  return [];
791
- e.forEach((s) => {
792
- const i = no(s.children || [], t, n + 1);
805
+ e.forEach((o) => {
806
+ const i = rs(o.children || [], t, n + 1);
793
807
  r.push(
794
808
  Object.assign(
795
809
  {},
796
810
  { depth: n },
797
- Pr,
798
- s,
811
+ Tr,
812
+ o,
799
813
  {
800
- id: s.id ? s.id : Hn(`${t.prevId++}`, t.idPrefix, "column"),
814
+ id: o.id ? o.id : $n(`${t.prevId++}`, t.idPrefix, "column"),
801
815
  declarationIndex: r.length,
802
816
  children: i,
803
817
  rowSpan: 0,
@@ -807,17 +821,17 @@ function no(e, t, n = 0) {
807
821
  )
808
822
  );
809
823
  });
810
- const o = (s, i) => s.orderIndex === i.orderIndex ? s.declarationIndex - i.declarationIndex : (s.orderIndex || 0) - (i.orderIndex || 0);
811
- if (r.sort(o), n === 0) {
812
- let s = [];
824
+ const s = (o, i) => o.orderIndex === i.orderIndex ? o.declarationIndex - i.declarationIndex : (o.orderIndex || 0) - (i.orderIndex || 0);
825
+ if (r.sort(s), n === 0) {
826
+ let o = [];
813
827
  const i = (l, c) => l.forEach((u) => {
814
- u.parentIndex = c, i(u.children, s.push(u) - 1);
828
+ u.parentIndex = c, i(u.children, o.push(u) - 1);
815
829
  });
816
- return i(r, -1), s;
830
+ return i(r, -1), o;
817
831
  }
818
832
  return r;
819
833
  }
820
- function ro(e) {
834
+ function ss(e) {
821
835
  return !!(e && getComputedStyle(e).direction === "rtl");
822
836
  }
823
837
  function Bt(e, t) {
@@ -828,25 +842,25 @@ function Bt(e, t) {
828
842
  for (; r && r.parentElement !== t; )
829
843
  r = r.parentElement;
830
844
  if (!r && t.matches("tr")) {
831
- const s = (i) => {
845
+ const o = (i) => {
832
846
  const l = i.getBoundingClientRect();
833
847
  return n.x > l.left && n.x < l.left + l.width && n.y > l.top && n.y < l.top + l.height;
834
848
  };
835
- r = Array.from(t.children).find(s) || null;
849
+ r = Array.from(t.children).find(o) || null;
836
850
  }
837
- const o = t.children;
838
- for (let s = 0; s < o.length; s++)
839
- if (o[s] === r)
840
- return s;
851
+ const s = t.children;
852
+ for (let o = 0; o < s.length; o++)
853
+ if (s[o] === r)
854
+ return o;
841
855
  return -1;
842
856
  }
843
- class Es extends a.Component {
857
+ class Co extends a.Component {
844
858
  constructor() {
845
859
  super(...arguments), this.element = null;
846
860
  }
847
861
  componentDidMount() {
848
862
  const { columnResize: t } = this.props;
849
- t && t.resizable && t.setIsRtl(ro(this.element));
863
+ t && t.resizable && t.setIsRtl(ss(this.element));
850
864
  }
851
865
  render() {
852
866
  return /* @__PURE__ */ a.createElement(
@@ -855,21 +869,21 @@ class Es extends a.Component {
855
869
  className: "k-table-thead k-grid-header",
856
870
  role: "presentation",
857
871
  ref: (t) => this.element = t,
858
- ...Br
872
+ ...qr
859
873
  },
860
874
  this.props.headerRow,
861
875
  this.props.filterRow
862
876
  );
863
877
  }
864
878
  }
865
- function oo(e) {
879
+ function os(e) {
866
880
  const t = e.onClick ? {
867
881
  onClick: e.onClick
868
882
  } : {}, n = /* @__PURE__ */ a.createElement("span", { className: "k-link", ...t }, /* @__PURE__ */ a.createElement("span", { className: "k-column-title" }, e.title || e.field || " "), e.children);
869
883
  return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, n, e) : n);
870
884
  }
871
- const so = (...e) => Object.assign({ allowUnsort: !0, mode: "single" }, ...e);
872
- class ao extends a.Component {
885
+ const as = (...e) => Object.assign({ allowUnsort: !0, mode: "single" }, ...e);
886
+ class is extends a.Component {
873
887
  constructor() {
874
888
  super(...arguments), this.draggable = null, this.isDragged = !1, this.onDrag = (t) => {
875
889
  this.isDragged = !0;
@@ -912,7 +926,7 @@ class ao extends a.Component {
912
926
  );
913
927
  }
914
928
  }
915
- class io extends a.PureComponent {
929
+ class ls extends a.PureComponent {
916
930
  constructor() {
917
931
  super(...arguments), this.draggable = null, this.onPress = (t) => {
918
932
  const n = this.draggable && this.draggable.element;
@@ -939,36 +953,36 @@ class io extends a.PureComponent {
939
953
  );
940
954
  }
941
955
  }
942
- const lo = {
956
+ const cs = {
943
957
  true: { asc: "desc", desc: "", "": "asc" },
944
958
  false: { asc: "desc", desc: "asc", "": "asc" }
945
- }, co = {
959
+ }, us = {
946
960
  none: "none",
947
961
  asc: "ascending",
948
962
  desc: "descending"
949
963
  };
950
- class uo extends a.Component {
964
+ class ds extends a.Component {
951
965
  constructor() {
952
966
  super(...arguments), this.cellClick = (t, n) => {
953
967
  if (t.preventDefault(), !this.props.sortChange)
954
968
  return;
955
- const { allowUnsort: r, mode: o } = so(this.props.sortable || !1, n.sortable || !1), s = (this.props.sort || []).filter((c) => c.field === n.field)[0], i = lo[r][s && s.dir || ""], l = o === "single" ? [] : (this.props.sort || []).filter((c) => c.field !== n.field);
969
+ const { allowUnsort: r, mode: s } = as(this.props.sortable || !1, n.sortable || !1), o = (this.props.sort || []).filter((c) => c.field === n.field)[0], i = cs[r][o && o.dir || ""], l = s === "single" ? [] : (this.props.sort || []).filter((c) => c.field !== n.field);
956
970
  i !== "" && n.field && l.push({ field: n.field, dir: i }), this.props.sortChange(t, l, n.field);
957
971
  }, this.cellKeyDown = (t, n) => {
958
972
  t.isDefaultPrevented() || t.keyCode === K.enter && this.cellClick(t, n);
959
973
  }, this.cells = (t) => t.map((n, r) => {
960
- const o = this.props.columns[n], { columnResize: s } = this.props, i = s && s.resizable && o.resizable, l = this.props.sortable && o.sortable, c = this.props.sort ? this.props.sort.findIndex((f) => f.field === o.field) : -1, u = c >= 0 && this.props.sort[c].dir || "none", d = {
974
+ const s = this.props.columns[n], { columnResize: o } = this.props, i = o && o.resizable && s.resizable, l = this.props.sortable && s.sortable, c = this.props.sort ? this.props.sort.findIndex((f) => f.field === s.field) : -1, u = c >= 0 && this.props.sort[c].dir || "none", d = {
961
975
  sort: this.props.sort,
962
976
  onSortChange: this.props.sortChange,
963
977
  filter: this.props.columnMenuFilter,
964
978
  onFilterChange: this.props.columnMenuFilterChange,
965
- field: o.field
966
- }, g = {
967
- field: o.field,
968
- onClick: l && ((f) => this.cellClick(f, o)) || void 0,
979
+ field: s.field
980
+ }, h = {
981
+ field: s.field,
982
+ onClick: l && ((f) => this.cellClick(f, s)) || void 0,
969
983
  selectionChange: this.props.selectionChange,
970
- title: o.title,
971
- selectionValue: o.headerSelectionValue,
984
+ title: s.title,
985
+ selectionValue: s.headerSelectionValue,
972
986
  render: this.props.cellRender,
973
987
  children: this.sortIcon(c),
974
988
  sort: this.props.sort,
@@ -977,25 +991,25 @@ class uo extends a.Component {
977
991
  filterChange: this.props.filterChange,
978
992
  columns: this.props.columns,
979
993
  columnMenuWrapperProps: d
980
- }, m = o.columnMenu || this.props.columnMenu, h = H(
994
+ }, m = s.columnMenu || this.props.columnMenu, g = H(
981
995
  "k-table-th",
982
996
  {
983
- "k-first": o.kFirst,
997
+ "k-first": s.kFirst,
984
998
  "k-filterable": !!m,
985
999
  "k-header": !0,
986
- "k-grid-header-sticky": o.locked,
987
- "k-sorted": this.props.sort && this.props.sort.some((f) => f.field === o.field)
1000
+ "k-grid-header-sticky": s.locked,
1001
+ "k-sorted": this.props.sort && this.props.sort.some((f) => f.field === s.field)
988
1002
  },
989
- o.headerClassName
990
- ), v = o.locked !== void 0 ? {
991
- left: o.left,
992
- right: o.right,
993
- borderRightWidth: o.rightBorder ? "1px" : ""
994
- } : {}, b = q(this).toLanguageString(lt, E[lt]);
995
- let C = o.isAccessible ? {
996
- ariaSort: l ? co[u] : void 0,
1003
+ s.headerClassName
1004
+ ), E = s.locked !== void 0 ? {
1005
+ left: s.left,
1006
+ right: s.right,
1007
+ borderRightWidth: s.rightBorder ? "1px" : ""
1008
+ } : {}, b = q(this).toLanguageString(lt, v[lt]);
1009
+ let C = s.isAccessible ? {
1010
+ ariaSort: l ? us[u] : void 0,
997
1011
  role: "columnheader",
998
- ariaColumnIndex: o.ariaColumnIndex,
1012
+ ariaColumnIndex: s.ariaColumnIndex,
999
1013
  ariaSelected: !1,
1000
1014
  ariaDescription: l ? b : ""
1001
1015
  } : {
@@ -1005,22 +1019,22 @@ class uo extends a.Component {
1005
1019
  xt,
1006
1020
  {
1007
1021
  key: r,
1008
- colSpan: o.colSpan,
1009
- rowSpan: o.rowSpan,
1010
- className: h,
1011
- style: v,
1012
- columnId: o.id,
1013
- navigatable: o.navigatable,
1014
- onKeyDown: l && ((f) => this.cellKeyDown(f, o)) || void 0,
1022
+ colSpan: s.colSpan,
1023
+ rowSpan: s.rowSpan,
1024
+ className: g,
1025
+ style: E,
1026
+ columnId: s.id,
1027
+ navigatable: s.navigatable,
1028
+ onKeyDown: l && ((f) => this.cellKeyDown(f, s)) || void 0,
1015
1029
  ...C
1016
1030
  },
1017
- o.headerCell && /* @__PURE__ */ a.createElement(o.headerCell, { ...g }),
1018
- !o.headerCell && /* @__PURE__ */ a.createElement("span", { className: "k-cell-inner" }, /* @__PURE__ */ a.createElement(oo, { ...g }), m && /* @__PURE__ */ a.createElement(m, { ...d })),
1019
- s && i && /* @__PURE__ */ a.createElement(
1020
- ao,
1031
+ s.headerCell && /* @__PURE__ */ a.createElement(s.headerCell, { ...h }),
1032
+ !s.headerCell && /* @__PURE__ */ a.createElement("span", { className: "k-cell-inner" }, /* @__PURE__ */ a.createElement(os, { ...h }), m && /* @__PURE__ */ a.createElement(m, { ...d })),
1033
+ o && i && /* @__PURE__ */ a.createElement(
1034
+ is,
1021
1035
  {
1022
1036
  key: "ColumnResizer",
1023
- resize: (f, I, S) => s.dragHandler(f, o, I, S)
1037
+ resize: (f, I, F) => o.dragHandler(f, s, I, F)
1024
1038
  }
1025
1039
  )
1026
1040
  );
@@ -1037,7 +1051,7 @@ class uo extends a.Component {
1037
1051
  }
1038
1052
  render() {
1039
1053
  return this.props.columnsMap.map((t, n) => this.props.pressHandler && /* @__PURE__ */ a.createElement(
1040
- io,
1054
+ ls,
1041
1055
  {
1042
1056
  key: n,
1043
1057
  pressHandler: this.props.pressHandler,
@@ -1049,8 +1063,8 @@ class uo extends a.Component {
1049
1063
  ) || /* @__PURE__ */ a.createElement("tr", { className: "k-table-row", "aria-rowindex": n + 1, role: "row" }, this.cells(t)));
1050
1064
  }
1051
1065
  }
1052
- $(uo);
1053
- function Cs(e) {
1066
+ W(ds);
1067
+ function xo(e) {
1054
1068
  const t = [
1055
1069
  /* @__PURE__ */ a.createElement(
1056
1070
  "input",
@@ -1070,17 +1084,17 @@ function Cs(e) {
1070
1084
  ];
1071
1085
  return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, t, e) : t);
1072
1086
  }
1073
- function xs(e) {
1074
- const { enabled: t, columns: n = [], tableViewPortWidth: r, scrollLeft: o } = e, s = n.map(() => 1), i = n.map(() => !1);
1087
+ function bo(e) {
1088
+ const { enabled: t, columns: n = [], tableViewPortWidth: r, scrollLeft: s } = e, o = n.map(() => 1), i = n.map(() => !1);
1075
1089
  if (!t)
1076
- return { colSpans: s, hiddenColumns: i };
1090
+ return { colSpans: o, hiddenColumns: i };
1077
1091
  const l = n.map((f) => parseFloat((f.width || "").toString()) || 10);
1078
1092
  let c = 0;
1079
1093
  for (let f = 0; f < n.length; f++) {
1080
1094
  if (n[f].locked)
1081
1095
  continue;
1082
1096
  const I = f < l.length - 1 ? l[f + 1] : 0;
1083
- if (c + l[f] + I < o)
1097
+ if (c + l[f] + I < s)
1084
1098
  i[f] = !0, c += l[f];
1085
1099
  else
1086
1100
  break;
@@ -1089,93 +1103,93 @@ function xs(e) {
1089
1103
  c = 0;
1090
1104
  for (let f = n.length - 1; f >= 0; f--)
1091
1105
  if (!n[f].locked)
1092
- if (c + 2 * l[f] < u - r - o)
1106
+ if (c + 2 * l[f] < u - r - s)
1093
1107
  i[f] = !0, c += l[f];
1094
1108
  else
1095
1109
  break;
1096
- const d = [...i], g = (f) => f;
1097
- let m = d.lastIndexOf(!1), h = d.some(g), v = d.every(g), b, C;
1098
- for (; h && d.length && (m !== -1 || v); ) {
1099
- for (m < d.length - 1 && (b = v ? d.length : d.length - m - 1, C = d.length - b, C === 0 && (C = b - 1), i[C] = !1, s[C] = b, d.splice(m + 1, b)); d.length && !d[d.length - 1]; )
1110
+ const d = [...i], h = (f) => f;
1111
+ let m = d.lastIndexOf(!1), g = d.some(h), E = d.every(h), b, C;
1112
+ for (; g && d.length && (m !== -1 || E); ) {
1113
+ for (m < d.length - 1 && (b = E ? d.length : d.length - m - 1, C = d.length - b, C === 0 && (C = b - 1), i[C] = !1, o[C] = b, d.splice(m + 1, b)); d.length && !d[d.length - 1]; )
1100
1114
  d.pop();
1101
- m = d.lastIndexOf(!1), h = d.some(g), v = d.every(g);
1115
+ m = d.lastIndexOf(!1), g = d.some(h), E = d.every(h);
1102
1116
  }
1103
- return { colSpans: s, hiddenColumns: i };
1117
+ return { colSpans: o, hiddenColumns: i };
1104
1118
  }
1105
- class bs {
1119
+ class yo {
1106
1120
  constructor(t) {
1107
1121
  this.columns = [], this.resizable = !1, this.isRtl = !1, this.setIsRtl = (n) => {
1108
1122
  this.isRtl = n;
1109
1123
  }, this.onResize = t, this.dragHandler = this.dragHandler.bind(this);
1110
1124
  }
1111
- dragHandler(t, n, r, o) {
1112
- const s = t.originalEvent;
1113
- o || (s.preventDefault(), s.stopPropagation(), s.stopImmediatePropagation());
1125
+ dragHandler(t, n, r, s) {
1126
+ const o = t.originalEvent;
1127
+ s || (o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation());
1114
1128
  const i = r.parentElement;
1115
1129
  if (!i || !i.parentElement)
1116
1130
  return;
1117
1131
  const l = i.clientWidth;
1118
1132
  let c;
1119
- if (this.isRtl ? (c = r.getBoundingClientRect().right - r.offsetWidth / 2 - t.clientX, c += l) : c = l + t.clientX - r.getBoundingClientRect().left - r.offsetWidth / 2, !o && Math.abs(c - l) < 1)
1133
+ if (this.isRtl ? (c = r.getBoundingClientRect().right - r.offsetWidth / 2 - t.clientX, c += l) : c = l + t.clientX - r.getBoundingClientRect().left - r.offsetWidth / 2, !s && Math.abs(c - l) < 1)
1120
1134
  return;
1121
1135
  this.setWidths(n, Math.floor(c) / l);
1122
1136
  const u = this.columns.filter((d) => !d.children.length).indexOf(n);
1123
- this.onResize(u, l, c, s, o);
1137
+ this.onResize(u, l, c, o, s);
1124
1138
  }
1125
1139
  setWidths(t, n) {
1126
- const r = this.columns.indexOf(t), o = [];
1127
- let s = t.children.length;
1128
- for (let i = r + 1; s > 0 && i < this.columns.length; i++, s--) {
1140
+ const r = this.columns.indexOf(t), s = [];
1141
+ let o = t.children.length;
1142
+ for (let i = r + 1; o > 0 && i < this.columns.length; i++, o--) {
1129
1143
  const l = this.columns[i];
1130
- l.children.length ? s += l.children.length : o.push(l);
1144
+ l.children.length ? o += l.children.length : s.push(l);
1131
1145
  }
1132
- o.length === 0 && o.push(t), o.forEach((i) => {
1146
+ s.length === 0 && s.push(t), s.forEach((i) => {
1133
1147
  let l = i.width ? parseFloat(i.width.toString()) * n : 0;
1134
1148
  const c = i.minResizableWidth === void 0 ? 10 : i.minResizableWidth;
1135
1149
  l < c && (l = c), i.width = Math.floor(l);
1136
- }), this.updateColElements(o);
1150
+ }), this.updateColElements(s);
1137
1151
  }
1138
1152
  updateColElements(t) {
1139
- const n = this.columns.filter((o) => !o.children.length);
1153
+ const n = this.columns.filter((s) => !s.children.length);
1140
1154
  let r = 1e-10;
1141
- for (let o = 0; o < t.length; o++) {
1142
- const s = n.indexOf(t[o]), i = parseFloat((t[o].width || 0).toString());
1155
+ for (let s = 0; s < t.length; s++) {
1156
+ const o = n.indexOf(t[s]), i = parseFloat((t[s].width || 0).toString());
1143
1157
  r += i - Math.floor(i);
1144
1158
  const l = Math.floor(i) + Math.floor(r);
1145
- r -= Math.floor(r), this.setColWidth(this.colGroupMain && this.colGroupMain.children[s], l), this.setColWidth(this.colGroupHeader && this.colGroupHeader.children[s], l), this.setColWidth(this.colGroupFooter && this.colGroupFooter.children[s], l);
1159
+ r -= Math.floor(r), this.setColWidth(this.colGroupMain && this.colGroupMain.children[o], l), this.setColWidth(this.colGroupHeader && this.colGroupHeader.children[o], l), this.setColWidth(this.colGroupFooter && this.colGroupFooter.children[o], l);
1146
1160
  }
1147
1161
  }
1148
1162
  setColWidth(t, n) {
1149
1163
  t && (t.style.width = n + "px");
1150
1164
  }
1151
1165
  }
1152
- class ys {
1166
+ class Io {
1153
1167
  constructor(t, n, r) {
1154
- this.columns = [], this.reorderable = !1, this.groupable = !1, this.startColumn = -1, this.startGroup = -1, this.currentColumn = -1, this.currentGroup = -1, this.dropElementClue = null, this.dragElementClue = null, this.groupPanelDivElement = null, this.refGroupPanelDiv = (o) => {
1155
- this.groupPanelDivElement = o;
1156
- }, this.refDropElementClue = (o) => {
1157
- this.dropElementClue = o;
1158
- }, this.refDragElementClue = (o) => {
1159
- this.dragElementClue = o;
1160
- }, this.pressHandler = (o, s) => {
1161
- const i = this.getColumnIndex(o, s);
1162
- if (this.startGroup = this.getGroupIndex(o), i >= 0) {
1168
+ this.columns = [], this.reorderable = !1, this.groupable = !1, this.startColumn = -1, this.startGroup = -1, this.currentColumn = -1, this.currentGroup = -1, this.dropElementClue = null, this.dragElementClue = null, this.groupPanelDivElement = null, this.refGroupPanelDiv = (s) => {
1169
+ this.groupPanelDivElement = s;
1170
+ }, this.refDropElementClue = (s) => {
1171
+ this.dropElementClue = s;
1172
+ }, this.refDragElementClue = (s) => {
1173
+ this.dragElementClue = s;
1174
+ }, this.pressHandler = (s, o) => {
1175
+ const i = this.getColumnIndex(s, o);
1176
+ if (this.startGroup = this.getGroupIndex(s), i >= 0) {
1163
1177
  const l = this.columns[i];
1164
1178
  (l.reorderable && this.reorderable || l.groupable && this.groupable) && (this.startColumn = i);
1165
1179
  }
1166
- }, this.dragHandler = (o, s) => {
1167
- if (o.isTouch || o.originalEvent.preventDefault(), o.originalEvent.stopPropagation(), this.startColumn === -1 && this.startGroup === -1)
1180
+ }, this.dragHandler = (s, o) => {
1181
+ if (s.isTouch || s.originalEvent.preventDefault(), s.originalEvent.stopPropagation(), this.startColumn === -1 && this.startGroup === -1)
1168
1182
  return;
1169
- this.currentColumn = this.getColumnIndex(o, s), this.currentGroup = this.getGroupIndex(o), this.groupPanelDivElement && this.startGroup >= 0 && (this.currentGroup = Math.min(this.currentGroup, this.groupPanelDivElement.children.length - 2));
1183
+ this.currentColumn = this.getColumnIndex(s, o), this.currentGroup = this.getGroupIndex(s), this.groupPanelDivElement && this.startGroup >= 0 && (this.currentGroup = Math.min(this.currentGroup, this.groupPanelDivElement.children.length - 2));
1170
1184
  const i = !this.isValid();
1171
1185
  i && (this.currentColumn = -1, this.currentGroup = -1);
1172
- const l = this.currentColumn >= 0 ? s.children[this.columns[this.currentColumn].index] : this.groupPanelDivElement && this.groupPanelDivElement.children[this.currentGroup];
1173
- this.updateDragElementClue(o, s, l, i), this.updateDropElementClue(o, s, l, i);
1174
- }, this.releaseHandler = (o) => {
1175
- const s = this.startColumn, i = this.currentColumn, l = this.startGroup, c = this.currentGroup;
1186
+ const l = this.currentColumn >= 0 ? o.children[this.columns[this.currentColumn].index] : this.groupPanelDivElement && this.groupPanelDivElement.children[this.currentGroup];
1187
+ this.updateDragElementClue(s, o, l, i), this.updateDropElementClue(s, o, l, i);
1188
+ }, this.releaseHandler = (s) => {
1189
+ const o = this.startColumn, i = this.currentColumn, l = this.startGroup, c = this.currentGroup;
1176
1190
  this.dropElementClue && this.dropElementClue.setState({ visible: !1 }), this.dragElementClue && this.dragElementClue.setState({ visible: !1 });
1177
1191
  const u = this.isValid();
1178
- this.startColumn = this.startGroup = this.currentColumn = this.currentGroup = -1, u && (s >= 0 && i >= 0 ? this.columnReorder(s, i, o.originalEvent) : l >= 0 && c >= 0 ? this.groupReorder(l, c, o.originalEvent) : s >= 0 && c >= 0 && this.columnToGroup(s, c, o.originalEvent));
1192
+ this.startColumn = this.startGroup = this.currentColumn = this.currentGroup = -1, u && (o >= 0 && i >= 0 ? this.columnReorder(o, i, s.originalEvent) : l >= 0 && c >= 0 ? this.groupReorder(l, c, s.originalEvent) : o >= 0 && c >= 0 && this.columnToGroup(o, c, s.originalEvent));
1179
1193
  }, this.columnReorder = t, this.groupReorder = n, this.columnToGroup = r;
1180
1194
  }
1181
1195
  getColumnIndex(t, n) {
@@ -1184,9 +1198,9 @@ class ys {
1184
1198
  const r = Bt(t, n);
1185
1199
  if (r === -1)
1186
1200
  return -1;
1187
- for (let o = 0; o < n.parentNode.children.length; o++)
1188
- if (n.parentNode.children[o] === n)
1189
- return this.columns.findIndex((s) => s.index === r && s.depth === o);
1201
+ for (let s = 0; s < n.parentNode.children.length; s++)
1202
+ if (n.parentNode.children[s] === n)
1203
+ return this.columns.findIndex((o) => o.index === r && o.depth === s);
1190
1204
  return -1;
1191
1205
  }
1192
1206
  getGroupIndex(t) {
@@ -1195,38 +1209,38 @@ class ys {
1195
1209
  isValid() {
1196
1210
  return this.startGroup >= 0 ? this.currentGroup >= 0 && this.currentGroup !== this.startGroup : this.startColumn === -1 ? !1 : this.currentGroup >= 0 ? this.columns[this.startColumn].groupable === !0 && this.groupable === !0 : this.reorderable === !0 && this.currentColumn >= 0 && this.currentColumn !== this.startColumn && this.columns[this.startColumn].reorderable === !0 && this.columns[this.currentColumn].parentIndex === this.columns[this.startColumn].parentIndex;
1197
1211
  }
1198
- updateDragElementClue(t, n, r, o) {
1212
+ updateDragElementClue(t, n, r, s) {
1199
1213
  if (!this.dragElementClue)
1200
1214
  return;
1201
- const s = this.startColumn >= 0 ? n.children[this.columns[this.startColumn].index].innerText : n.innerText;
1215
+ const o = this.startColumn >= 0 ? n.children[this.columns[this.startColumn].index].innerText : n.innerText;
1202
1216
  this.dragElementClue.setState({
1203
1217
  visible: !0,
1204
1218
  top: t.pageY + 10,
1205
1219
  left: t.pageX,
1206
- innerText: s,
1207
- status: o || !r ? "k-i-cancel" : "k-i-plus"
1220
+ innerText: o,
1221
+ status: s || !r ? "k-i-cancel" : "k-i-plus"
1208
1222
  });
1209
1223
  }
1210
- updateDropElementClue(t, n, r, o) {
1224
+ updateDropElementClue(t, n, r, s) {
1211
1225
  if (!this.dropElementClue)
1212
1226
  return;
1213
- if (o || !r) {
1227
+ if (s || !r) {
1214
1228
  this.dropElementClue.setState({ visible: !1 });
1215
1229
  return;
1216
1230
  }
1217
- const s = r.getBoundingClientRect();
1218
- let i = s.left + t.pageX - t.clientX - 6;
1219
- (this.currentColumn > this.startColumn || this.currentGroup > this.startGroup && this.startGroup !== -1) && (i += s.width);
1220
- const l = s.top + t.pageY - t.clientY;
1231
+ const o = r.getBoundingClientRect();
1232
+ let i = o.left + t.pageX - t.clientX - 6;
1233
+ (this.currentColumn > this.startColumn || this.currentGroup > this.startGroup && this.startGroup !== -1) && (i += o.width);
1234
+ const l = o.top + t.pageY - t.clientY;
1221
1235
  this.dropElementClue.setState({
1222
1236
  visible: !0,
1223
1237
  top: l,
1224
1238
  left: i,
1225
- height: this.currentColumn >= 0 ? n.clientHeight : s.height
1239
+ height: this.currentColumn >= 0 ? n.clientHeight : o.height
1226
1240
  });
1227
1241
  }
1228
1242
  }
1229
- class Is extends a.PureComponent {
1243
+ class ko extends a.PureComponent {
1230
1244
  constructor(t) {
1231
1245
  super(t), this.elementRef = a.createRef(), this.state = {
1232
1246
  visible: !1,
@@ -1263,7 +1277,7 @@ class Is extends a.PureComponent {
1263
1277
  return /* @__PURE__ */ a.createElement(a.Fragment, null, r, /* @__PURE__ */ a.createElement("div", { ref: this.hiddenElementRef, style: { display: "none" } }));
1264
1278
  }
1265
1279
  }
1266
- class ks extends a.PureComponent {
1280
+ class So extends a.PureComponent {
1267
1281
  constructor(t) {
1268
1282
  super(t), this.state = {
1269
1283
  height: 0,
@@ -1304,7 +1318,7 @@ class jn extends a.Component {
1304
1318
  * @hidden
1305
1319
  */
1306
1320
  render() {
1307
- const t = q(this), { ariaLabel: n = t.toLanguageString(nt, E[nt]) } = this.props;
1321
+ const t = q(this), { ariaLabel: n = t.toLanguageString(nt, v[nt]) } = this.props;
1308
1322
  return /* @__PURE__ */ a.createElement(
1309
1323
  mr,
1310
1324
  {
@@ -1320,7 +1334,7 @@ jn.propTypes = {
1320
1334
  onFilterChange: p.func.isRequired,
1321
1335
  ariaLabel: p.string
1322
1336
  };
1323
- $(jn);
1337
+ W(jn);
1324
1338
  class Xn extends a.Component {
1325
1339
  constructor() {
1326
1340
  super(...arguments), this.onChange = (t) => {
@@ -1336,15 +1350,15 @@ class Xn extends a.Component {
1336
1350
  const t = q(this), {
1337
1351
  min: n,
1338
1352
  max: r,
1339
- filter: o,
1340
- ariaLabel: s = t.toLanguageString(tt, E[tt])
1353
+ filter: s,
1354
+ ariaLabel: o = t.toLanguageString(tt, v[tt])
1341
1355
  } = this.props;
1342
1356
  return /* @__PURE__ */ a.createElement(
1343
- Le,
1357
+ Re,
1344
1358
  {
1345
- value: typeof o.value == "number" ? o.value : null,
1359
+ value: typeof s.value == "number" ? s.value : null,
1346
1360
  onChange: this.onChange,
1347
- ariaLabel: s,
1361
+ ariaLabel: o,
1348
1362
  "aria-valuemin": n,
1349
1363
  "aria-valuemax": r,
1350
1364
  min: n,
@@ -1357,8 +1371,8 @@ Xn.propTypes = {
1357
1371
  filter: p.object.isRequired,
1358
1372
  onFilterChange: p.func.isRequired
1359
1373
  };
1360
- $(Xn);
1361
- class po extends a.Component {
1374
+ W(Xn);
1375
+ class ps extends a.Component {
1362
1376
  constructor() {
1363
1377
  super(...arguments), this.onChange = (t) => {
1364
1378
  this.props.onFilterChange.call(void 0, {
@@ -1381,7 +1395,7 @@ class po extends a.Component {
1381
1395
  );
1382
1396
  }
1383
1397
  }
1384
- po.propTypes = {
1398
+ ps.propTypes = {
1385
1399
  filter: p.object.isRequired,
1386
1400
  onFilterChange: p.func.isRequired,
1387
1401
  ariaLabel: p.string
@@ -1401,21 +1415,21 @@ class It extends a.Component {
1401
1415
  const t = q(this), {
1402
1416
  filter: n,
1403
1417
  data: r = [],
1404
- defaultItem: o,
1405
- ariaLabel: s = t.toLanguageString(et, E[et])
1418
+ defaultItem: s,
1419
+ ariaLabel: o = t.toLanguageString(et, v[et])
1406
1420
  } = this.props, i = r.map((l) => ({
1407
1421
  ...l,
1408
- text: t.toLanguageString(l.text, E[l.text] || l.text)
1422
+ text: t.toLanguageString(l.text, v[l.text] || l.text)
1409
1423
  }));
1410
1424
  return /* @__PURE__ */ a.createElement(
1411
- _,
1425
+ $,
1412
1426
  {
1413
1427
  value: i.find((l) => l.value === n.value) || null,
1414
1428
  onChange: this.onChange,
1415
- defaultItem: o,
1429
+ defaultItem: s,
1416
1430
  data: i,
1417
1431
  textField: "text",
1418
- ariaLabel: s
1432
+ ariaLabel: o
1419
1433
  }
1420
1434
  );
1421
1435
  }
@@ -1427,8 +1441,8 @@ It.propTypes = {
1427
1441
  defaultItem: p.any,
1428
1442
  ariaLabel: p.string
1429
1443
  };
1430
- $(It);
1431
- class ho extends a.Component {
1444
+ W(It);
1445
+ class hs extends a.Component {
1432
1446
  constructor() {
1433
1447
  super(...arguments), this.data = [{ text: hn, value: !0 }, { text: gn, value: !1 }];
1434
1448
  }
@@ -1448,47 +1462,47 @@ class ho extends a.Component {
1448
1462
  );
1449
1463
  }
1450
1464
  }
1451
- ho.propTypes = {
1465
+ hs.propTypes = {
1452
1466
  filter: p.object.isRequired,
1453
1467
  onFilterChange: p.func.isRequired,
1454
1468
  data: p.arrayOf(p.shape({ text: p.string, value: p.any })),
1455
1469
  ariaLabel: p.string,
1456
1470
  defaultItem: p.any
1457
1471
  };
1458
- const go = [
1459
- { text: sn, operator: "contains" },
1472
+ const gs = [
1473
+ { text: on, operator: "contains" },
1460
1474
  { text: an, operator: "doesnotcontain" },
1461
- { text: le, operator: "eq" },
1462
- { text: ce, operator: "neq" },
1463
- { text: on, operator: "startswith" },
1475
+ { text: de, operator: "eq" },
1476
+ { text: pe, operator: "neq" },
1477
+ { text: sn, operator: "startswith" },
1464
1478
  { text: ln, operator: "endswith" },
1465
- { text: De, operator: "isnull" },
1466
- { text: we, operator: "isnotnull" },
1479
+ { text: Le, operator: "isnull" },
1480
+ { text: De, operator: "isnotnull" },
1467
1481
  { text: nn, operator: "isempty" },
1468
1482
  { text: rn, operator: "isnotempty" }
1469
- ], fo = [
1470
- { text: le, operator: "eq" },
1471
- { text: ce, operator: "neq" },
1483
+ ], fs = [
1484
+ { text: de, operator: "eq" },
1485
+ { text: pe, operator: "neq" },
1472
1486
  { text: cn, operator: "gte" },
1473
1487
  { text: un, operator: "gt" },
1474
1488
  { text: dn, operator: "lte" },
1475
1489
  { text: pn, operator: "lt" },
1476
- { text: De, operator: "isnull" },
1477
- { text: we, operator: "isnotnull" }
1478
- ], mo = [
1479
- { text: le, operator: "eq" },
1480
- { text: ce, operator: "neq" },
1490
+ { text: Le, operator: "isnull" },
1491
+ { text: De, operator: "isnotnull" }
1492
+ ], ms = [
1493
+ { text: de, operator: "eq" },
1494
+ { text: pe, operator: "neq" },
1481
1495
  { text: fn, operator: "gte" },
1482
1496
  { text: mn, operator: "gt" },
1483
1497
  { text: vn, operator: "lt" },
1484
1498
  { text: En, operator: "lte" },
1485
- { text: De, operator: "isnull" },
1486
- { text: we, operator: "isnotnull" }
1487
- ], vo = [
1488
- { text: le, operator: "eq" },
1489
- { text: ce, operator: "neq" }
1499
+ { text: Le, operator: "isnull" },
1500
+ { text: De, operator: "isnotnull" }
1501
+ ], vs = [
1502
+ { text: de, operator: "eq" },
1503
+ { text: pe, operator: "neq" }
1490
1504
  ];
1491
- class Fs {
1505
+ class Fo {
1492
1506
  /**
1493
1507
  * An array containing the operators for the TextFilter component.
1494
1508
  *
@@ -1506,7 +1520,7 @@ class Fs {
1506
1520
  * - { text: 'filter.isNotEmptyOperator', operator: 'isnotempty' }
1507
1521
  */
1508
1522
  static get text() {
1509
- return [...go];
1523
+ return [...gs];
1510
1524
  }
1511
1525
  /**
1512
1526
  * An array containing the operators for the NumericFilter component.
@@ -1523,7 +1537,7 @@ class Fs {
1523
1537
  * - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
1524
1538
  */
1525
1539
  static get numeric() {
1526
- return [...fo];
1540
+ return [...fs];
1527
1541
  }
1528
1542
  /**
1529
1543
  * An array containing the operators for the DateFilter component.
@@ -1540,7 +1554,7 @@ class Fs {
1540
1554
  * - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
1541
1555
  */
1542
1556
  static get date() {
1543
- return [...mo];
1557
+ return [...ms];
1544
1558
  }
1545
1559
  /**
1546
1560
  * An array containing the operators for the BooleanFilter component.
@@ -1551,7 +1565,7 @@ class Fs {
1551
1565
  * - { text: 'filter.notEqOperator', operator: 'neq' }
1552
1566
  */
1553
1567
  static get boolean() {
1554
- return [...vo];
1568
+ return [...vs];
1555
1569
  }
1556
1570
  }
1557
1571
  const Zn = (e) => e === "contains" || e === "doesnotcontain" || e === "startswith" || e === "endswith", pt = (e) => e === "isnull" || e === "isnotnull" || e === "isempty" || e === "isnotempty", qt = (e) => {
@@ -1560,37 +1574,37 @@ const Zn = (e) => e === "contains" || e === "doesnotcontain" || e === "startswit
1560
1574
  class kt extends a.Component {
1561
1575
  constructor() {
1562
1576
  super(...arguments), this.onFieldChange = (t) => {
1563
- const n = t.value.name, r = this.props.fields.find((l) => l.name === n), o = this.props.filter, s = r && !r.operators.some((l) => l.operator === o.operator) ? r.operators[0].operator : o.operator, i = {
1577
+ const n = t.value.name, r = this.props.fields.find((l) => l.name === n), s = this.props.filter, o = r && !r.operators.some((l) => l.operator === s.operator) ? r.operators[0].operator : s.operator, i = {
1564
1578
  field: n,
1565
- operator: s
1579
+ operator: o
1566
1580
  };
1567
- qt(i), this.triggerOnFilterChange(o, i, t);
1581
+ qt(i), this.triggerOnFilterChange(s, i, t);
1568
1582
  }, this.onOperatorChange = (t) => {
1569
1583
  const n = t.value.operator, r = this.props.filter;
1570
- let o;
1584
+ let s;
1571
1585
  if (pt(n)) {
1572
- let { value: s, ...i } = r;
1573
- o = { ...i, operator: n };
1586
+ let { value: o, ...i } = r;
1587
+ s = { ...i, operator: n };
1574
1588
  } else
1575
- o = { ...r, operator: n };
1576
- qt(o), this.triggerOnFilterChange(r, o, t);
1589
+ s = { ...r, operator: n };
1590
+ qt(s), this.triggerOnFilterChange(r, s, t);
1577
1591
  }, this.onInputChange = (t) => {
1578
1592
  const n = this.props.filter;
1579
1593
  let r = t.nextFilter;
1580
1594
  if (pt(r.operator)) {
1581
- const o = this.props.fields.find((s) => s.name === r.field);
1582
- r = { ...r, operator: o && o.operators[0].operator || r.operator };
1595
+ const s = this.props.fields.find((o) => o.name === r.field);
1596
+ r = { ...r, operator: s && s.operators[0].operator || r.operator };
1583
1597
  }
1584
1598
  this.triggerOnFilterChange(n, r, t);
1585
1599
  }, this.triggerOnFilterChange = (t, n, r) => {
1586
- const o = {
1600
+ const s = {
1587
1601
  prevFilter: t,
1588
1602
  nextFilter: n,
1589
1603
  syntheticEvent: r.syntheticEvent,
1590
1604
  nativeEvent: r.nativeEvent,
1591
1605
  target: this
1592
1606
  };
1593
- this.props.onChange.call(void 0, o);
1607
+ this.props.onChange.call(void 0, s);
1594
1608
  }, this.onFilterRemove = (t) => {
1595
1609
  const n = {
1596
1610
  filter: this.props.filter,
@@ -1605,32 +1619,32 @@ class kt extends a.Component {
1605
1619
  const t = q(this), {
1606
1620
  fields: n,
1607
1621
  filter: r,
1608
- ariaLabel: o = t.toLanguageString(Ze, E[Ze])
1609
- } = this.props, s = n.find((l) => l.name === r.field), i = (s && s.operators || []).map((l) => ({ ...l, text: t.toLanguageString(l.text, E[l.text] || l.text) }));
1610
- return /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Yt, { keyboardNavigation: !1, role: "toolbar", ariaLabel: o }, /* @__PURE__ */ a.createElement(We, { className: "k-filter-field" }, /* @__PURE__ */ a.createElement(
1611
- _,
1622
+ ariaLabel: s = t.toLanguageString(Ze, v[Ze])
1623
+ } = this.props, o = n.find((l) => l.name === r.field), i = (o && o.operators || []).map((l) => ({ ...l, text: t.toLanguageString(l.text, v[l.text] || l.text) }));
1624
+ return /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Yt, { keyboardNavigation: !1, role: "toolbar", ariaLabel: s }, /* @__PURE__ */ a.createElement(He, { className: "k-filter-field" }, /* @__PURE__ */ a.createElement(
1625
+ $,
1612
1626
  {
1613
1627
  className: "k-filter-dropdown",
1614
1628
  data: n,
1615
1629
  textField: "label",
1616
1630
  value: n.find((l) => l.name === r.field),
1617
1631
  onChange: this.onFieldChange,
1618
- ariaLabel: t.toLanguageString(Je, E[Je])
1632
+ ariaLabel: t.toLanguageString(Je, v[Je])
1619
1633
  }
1620
- )), /* @__PURE__ */ a.createElement(We, { className: "k-filter-operator" }, /* @__PURE__ */ a.createElement(
1621
- _,
1634
+ )), /* @__PURE__ */ a.createElement(He, { className: "k-filter-operator" }, /* @__PURE__ */ a.createElement(
1635
+ $,
1622
1636
  {
1623
1637
  data: i,
1624
1638
  textField: "text",
1625
1639
  value: i.find((l) => l.operator === r.operator),
1626
1640
  onChange: this.onOperatorChange,
1627
- ariaLabel: t.toLanguageString(Qe, E[Qe])
1641
+ ariaLabel: t.toLanguageString(Qe, v[Qe])
1628
1642
  }
1629
- )), /* @__PURE__ */ a.createElement(We, { className: "k-filter-value" }, s && /* @__PURE__ */ a.createElement(s.filter, { filter: r, onFilterChange: this.onInputChange, min: s.min, max: s.max })), /* @__PURE__ */ a.createElement(
1643
+ )), /* @__PURE__ */ a.createElement(He, { className: "k-filter-value" }, o && /* @__PURE__ */ a.createElement(o.filter, { filter: r, onFilterChange: this.onInputChange, min: o.min, max: o.max })), /* @__PURE__ */ a.createElement(
1630
1644
  B,
1631
1645
  {
1632
1646
  className: "k-toolbar-button",
1633
- title: t.toLanguageString(ae, E[ae]),
1647
+ title: t.toLanguageString(ce, v[ce]),
1634
1648
  icon: "x",
1635
1649
  svgIcon: Jt,
1636
1650
  fillMode: "flat",
@@ -1647,7 +1661,7 @@ kt.propTypes = {
1647
1661
  onChange: p.func.isRequired,
1648
1662
  onRemove: p.func.isRequired
1649
1663
  };
1650
- $(kt);
1664
+ W(kt);
1651
1665
  const Jn = class extends a.Component {
1652
1666
  constructor() {
1653
1667
  super(...arguments), this.onGroupRemove = (e) => {
@@ -1661,7 +1675,7 @@ const Jn = class extends a.Component {
1661
1675
  }, this.onAddExpression = (e) => {
1662
1676
  const t = this.props.filter, n = this.props.fields[0], r = { field: n.name, operator: n.operators[0].operator };
1663
1677
  r.value = Zn(r.operator) ? "" : null;
1664
- const o = {
1678
+ const s = {
1665
1679
  nextFilter: {
1666
1680
  ...t,
1667
1681
  filters: [...t.filters, r]
@@ -1671,7 +1685,7 @@ const Jn = class extends a.Component {
1671
1685
  syntheticEvent: e,
1672
1686
  nativeEvent: e.nativeEvent
1673
1687
  };
1674
- this.props.onChange.call(void 0, o);
1688
+ this.props.onChange.call(void 0, s);
1675
1689
  }, this.onAddGroup = (e) => {
1676
1690
  const t = this.props.filter, n = {
1677
1691
  nextFilter: { ...t, filters: [...t.filters, { ...this.props.defaultGroupFilter }] },
@@ -1694,7 +1708,7 @@ const Jn = class extends a.Component {
1694
1708
  this.props.onChange.call(void 0, r);
1695
1709
  }
1696
1710
  }, this.replaceFilter = (e, t) => {
1697
- const n = this.props.filter, r = n.filters.map((o) => o === e ? t : o);
1711
+ const n = this.props.filter, r = n.filters.map((s) => s === e ? t : s);
1698
1712
  return { ...n, filters: r };
1699
1713
  }, this.onChange = (e) => {
1700
1714
  const n = {
@@ -1706,7 +1720,7 @@ const Jn = class extends a.Component {
1706
1720
  };
1707
1721
  this.props.onChange.call(void 0, n);
1708
1722
  }, this.onRemove = (e) => {
1709
- const t = this.props.filter, n = t.filters.filter((o) => o !== e.filter), r = {
1723
+ const t = this.props.filter, n = t.filters.filter((s) => s !== e.filter), r = {
1710
1724
  nextFilter: { ...t, filters: n },
1711
1725
  prevFilter: t,
1712
1726
  syntheticEvent: e.syntheticEvent,
@@ -1720,35 +1734,35 @@ const Jn = class extends a.Component {
1720
1734
  const e = q(this), {
1721
1735
  fields: t,
1722
1736
  filter: n,
1723
- ariaLabel: r = e.toLanguageString(Xe, E[Xe])
1737
+ ariaLabel: r = e.toLanguageString(Xe, v[Xe])
1724
1738
  } = this.props;
1725
- return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Yt, { keyboardNavigation: !1, role: "toolbar", ariaLabel: r }, /* @__PURE__ */ a.createElement(gr, { className: "k-toolbar-button-group" }, /* @__PURE__ */ a.createElement(B, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicAnd, selected: n.logic === "and", type: "button" }, e.toLanguageString(Ue, E[Ue])), /* @__PURE__ */ a.createElement(B, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicOr, selected: n.logic === "or", type: "button" }, e.toLanguageString(je, E[je]))), /* @__PURE__ */ a.createElement(
1739
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Yt, { keyboardNavigation: !1, role: "toolbar", ariaLabel: r }, /* @__PURE__ */ a.createElement(gr, { className: "k-toolbar-button-group" }, /* @__PURE__ */ a.createElement(B, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicAnd, selected: n.logic === "and", type: "button" }, e.toLanguageString(Ue, v[Ue])), /* @__PURE__ */ a.createElement(B, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicOr, selected: n.logic === "or", type: "button" }, e.toLanguageString(je, v[je]))), /* @__PURE__ */ a.createElement(
1726
1740
  B,
1727
1741
  {
1728
1742
  className: "k-toolbar-button",
1729
- title: e.toLanguageString(re, E[re]),
1743
+ title: e.toLanguageString(ae, v[ae]),
1730
1744
  icon: "filter-add-expression",
1731
1745
  svgIcon: br,
1732
1746
  type: "button",
1733
1747
  onClick: this.onAddExpression
1734
1748
  },
1735
- e.toLanguageString(re, E[re])
1749
+ e.toLanguageString(ae, v[ae])
1736
1750
  ), /* @__PURE__ */ a.createElement(
1737
1751
  B,
1738
1752
  {
1739
1753
  className: "k-toolbar-button",
1740
- title: e.toLanguageString(oe, E[oe]),
1754
+ title: e.toLanguageString(ie, v[ie]),
1741
1755
  icon: "filter-add-group",
1742
1756
  svgIcon: yr,
1743
1757
  type: "button",
1744
1758
  onClick: this.onAddGroup
1745
1759
  },
1746
- e.toLanguageString(oe, E[oe])
1760
+ e.toLanguageString(ie, v[ie])
1747
1761
  ), /* @__PURE__ */ a.createElement(
1748
1762
  B,
1749
1763
  {
1750
1764
  className: "k-toolbar-button",
1751
- title: e.toLanguageString(ae, E[ae]),
1765
+ title: e.toLanguageString(ce, v[ce]),
1752
1766
  icon: "x",
1753
1767
  svgIcon: Jt,
1754
1768
  fillMode: "flat",
@@ -1756,10 +1770,10 @@ const Jn = class extends a.Component {
1756
1770
  onClick: this.onGroupRemove
1757
1771
  }
1758
1772
  ))), n.filters.length > 0 && /* @__PURE__ */ a.createElement("ul", { role: "group", className: "k-filter-lines" }, n.filters.map(
1759
- (o, s) => /* @__PURE__ */ a.createElement("li", { role: "treeitem", key: s, className: "k-filter-item" }, en(o) ? /* @__PURE__ */ a.createElement(
1773
+ (s, o) => /* @__PURE__ */ a.createElement("li", { role: "treeitem", key: o, className: "k-filter-item" }, en(s) ? /* @__PURE__ */ a.createElement(
1760
1774
  Jn,
1761
1775
  {
1762
- filter: o,
1776
+ filter: s,
1763
1777
  fields: t,
1764
1778
  onChange: this.onChange,
1765
1779
  onRemove: this.onRemove,
@@ -1770,7 +1784,7 @@ const Jn = class extends a.Component {
1770
1784
  ) : /* @__PURE__ */ a.createElement(
1771
1785
  kt,
1772
1786
  {
1773
- filter: o,
1787
+ filter: s,
1774
1788
  fields: t,
1775
1789
  ariaLabel: this.props.ariaLabelExpression,
1776
1790
  onChange: this.onChange,
@@ -1780,8 +1794,8 @@ const Jn = class extends a.Component {
1780
1794
  )));
1781
1795
  }
1782
1796
  };
1783
- let Ft = Jn;
1784
- Ft.propTypes = {
1797
+ let St = Jn;
1798
+ St.propTypes = {
1785
1799
  filter: p.object.isRequired,
1786
1800
  fields: p.array.isRequired,
1787
1801
  ariaLabel: p.string,
@@ -1790,8 +1804,8 @@ Ft.propTypes = {
1790
1804
  onRemove: p.func.isRequired,
1791
1805
  defaultGroupFilter: p.object.isRequired
1792
1806
  };
1793
- $(Ft);
1794
- class Eo extends a.Component {
1807
+ W(St);
1808
+ class Es extends a.Component {
1795
1809
  constructor(t) {
1796
1810
  super(t), this.onFilterChange = (n) => {
1797
1811
  const r = {
@@ -1825,7 +1839,7 @@ class Eo extends a.Component {
1825
1839
  style: this.props.style
1826
1840
  },
1827
1841
  /* @__PURE__ */ a.createElement("ul", { role: "tree", className: "k-filter-container", "aria-label": this.props.ariaLabel }, /* @__PURE__ */ a.createElement("li", { role: "treeitem", className: "k-filter-group-main" }, /* @__PURE__ */ a.createElement(
1828
- Ft,
1842
+ St,
1829
1843
  {
1830
1844
  filter: this.props.value,
1831
1845
  fields: this.props.fields,
@@ -1839,7 +1853,7 @@ class Eo extends a.Component {
1839
1853
  );
1840
1854
  }
1841
1855
  }
1842
- Eo.propTypes = {
1856
+ Es.propTypes = {
1843
1857
  className: p.string,
1844
1858
  style: p.object,
1845
1859
  fields: function(e, t) {
@@ -1847,7 +1861,7 @@ Eo.propTypes = {
1847
1861
  if (n === void 0)
1848
1862
  return new Error(`Property '${t}' is missing.`);
1849
1863
  if (Array.isArray(n)) {
1850
- if (Object.keys(n.reduce((r, o) => ({ ...r, [o.name]: 1 }), {})).length !== n.length)
1864
+ if (Object.keys(n.reduce((r, s) => ({ ...r, [s.name]: 1 }), {})).length !== n.length)
1851
1865
  return new Error(`Property '${t}' needs to contain objects with unique 'name' field.`);
1852
1866
  } else
1853
1867
  return new Error(`Property '${t}' needs to be Array<FieldSettings>.`);
@@ -1858,7 +1872,7 @@ Eo.propTypes = {
1858
1872
  value: p.object.isRequired,
1859
1873
  onChange: p.func.isRequired
1860
1874
  };
1861
- const Ve = (e) => /* @__PURE__ */ a.createElement(
1875
+ const We = (e) => /* @__PURE__ */ a.createElement(
1862
1876
  "div",
1863
1877
  {
1864
1878
  onClick: e.onClick,
@@ -1870,39 +1884,39 @@ const Ve = (e) => /* @__PURE__ */ a.createElement(
1870
1884
  },
1871
1885
  (e.iconClass || e.svgIcon) && /* @__PURE__ */ a.createElement(Me, { name: e.iconClass ? ir(e.iconClass) : void 0, icon: e.svgIcon }),
1872
1886
  e.title
1873
- ), Co = [
1887
+ ), Cs = [
1874
1888
  { text: yn, operator: "contains" },
1875
1889
  { text: In, operator: "doesnotcontain" },
1876
- { text: Oe, operator: "eq" },
1877
- { text: Ne, operator: "neq" },
1890
+ { text: we, operator: "eq" },
1891
+ { text: Oe, operator: "neq" },
1878
1892
  { text: bn, operator: "startswith" },
1879
1893
  { text: kn, operator: "endswith" },
1880
- { text: Ae, operator: "isnull" },
1881
- { text: Pe, operator: "isnotnull" },
1894
+ { text: Ne, operator: "isnull" },
1895
+ { text: Ae, operator: "isnotnull" },
1882
1896
  { text: Cn, operator: "isempty" },
1883
1897
  { text: xn, operator: "isnotempty" }
1884
- ], xo = [
1885
- { text: Oe, operator: "eq" },
1886
- { text: Ne, operator: "neq" },
1887
- { text: Fn, operator: "gte" },
1888
- { text: Sn, operator: "gt" },
1889
- { text: Rn, operator: "lte" },
1890
- { text: Mn, operator: "lt" },
1891
- { text: Ae, operator: "isnull" },
1892
- { text: Pe, operator: "isnotnull" }
1893
- ], bo = [
1894
- { text: Oe, operator: "eq" },
1895
- { text: Ne, operator: "neq" },
1898
+ ], xs = [
1899
+ { text: we, operator: "eq" },
1900
+ { text: Oe, operator: "neq" },
1901
+ { text: Sn, operator: "gte" },
1902
+ { text: Fn, operator: "gt" },
1903
+ { text: Mn, operator: "lte" },
1904
+ { text: Rn, operator: "lt" },
1905
+ { text: Ne, operator: "isnull" },
1906
+ { text: Ae, operator: "isnotnull" }
1907
+ ], bs = [
1908
+ { text: we, operator: "eq" },
1909
+ { text: Oe, operator: "neq" },
1896
1910
  { text: Dn, operator: "gte" },
1897
1911
  { text: wn, operator: "gt" },
1898
1912
  { text: On, operator: "lt" },
1899
1913
  { text: Nn, operator: "lte" },
1900
- { text: Ae, operator: "isnull" },
1901
- { text: Pe, operator: "isnotnull" }
1902
- ], yo = [
1914
+ { text: Ne, operator: "isnull" },
1915
+ { text: Ae, operator: "isnotnull" }
1916
+ ], ys = [
1903
1917
  { text: Ln, operator: "" }
1904
1918
  ];
1905
- class qe {
1919
+ class Be {
1906
1920
  /**
1907
1921
  * An array containing the operators for the ColumnMenuTextFilter component.
1908
1922
  *
@@ -1920,7 +1934,7 @@ class qe {
1920
1934
  * - { text: 'columnMenu.filterIsNotEmptyOperator', operator: 'isnotempty' }
1921
1935
  */
1922
1936
  static get text() {
1923
- return [...Co];
1937
+ return [...Cs];
1924
1938
  }
1925
1939
  /**
1926
1940
  * An array containing the operators for the ColumnMenuNumericFilter component.
@@ -1937,7 +1951,7 @@ class qe {
1937
1951
  * - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
1938
1952
  */
1939
1953
  static get numeric() {
1940
- return [...xo];
1954
+ return [...xs];
1941
1955
  }
1942
1956
  /**
1943
1957
  * An array containing the operators for the ColumnMenuDateFilter component.
@@ -1954,7 +1968,7 @@ class qe {
1954
1968
  * - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
1955
1969
  */
1956
1970
  static get date() {
1957
- return [...bo];
1971
+ return [...bs];
1958
1972
  }
1959
1973
  /**
1960
1974
  * An array containing the operators for the ColumnMenuBooleanFilter component.
@@ -1964,28 +1978,28 @@ class qe {
1964
1978
  * - { text: 'columnMenu.filterIsTrue', operator: '' }
1965
1979
  */
1966
1980
  static get boolean() {
1967
- return [...yo];
1981
+ return [...ys];
1968
1982
  }
1969
1983
  }
1970
- const St = (e) => {
1971
- const { filter: t, onFilterChange: n, operators: r, initialFilter: o } = e, s = a.useCallback(
1984
+ const Ft = (e) => {
1985
+ const { filter: t, onFilterChange: n, operators: r, initialFilter: s } = e, o = a.useCallback(
1972
1986
  (u) => {
1973
- const d = t, g = u.target.value.operator, m = d ? { ...d, operator: g } : { value: o.value, operator: g };
1987
+ const d = t, h = u.target.value.operator, m = d ? { ...d, operator: h } : { value: s.value, operator: h };
1974
1988
  n.call(void 0, u.syntheticEvent, m, d);
1975
1989
  },
1976
- [t, n, o]
1990
+ [t, n, s]
1977
1991
  ), i = a.useCallback(
1978
1992
  (u) => {
1979
- const d = u.target.value, g = t, m = g ? { ...g, value: d } : { value: d, operator: r[0].operator };
1980
- n.call(void 0, u, m, g);
1993
+ const d = u.target.value, h = t, m = h ? { ...h, value: d } : { value: d, operator: r[0].operator };
1994
+ n.call(void 0, u, m, h);
1981
1995
  },
1982
1996
  [t, n, r]
1983
- ), l = j(), c = r.map((u) => ({ ...u, text: l.toLanguageString(u.text, E[u.text]) }));
1997
+ ), l = Q(), c = r.map((u) => ({ ...u, text: l.toLanguageString(u.text, v[u.text]) }));
1984
1998
  return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
1985
- _,
1999
+ $,
1986
2000
  {
1987
2001
  value: c.find((u) => u.operator === t.operator) || null,
1988
- onChange: s,
2002
+ onChange: o,
1989
2003
  data: c,
1990
2004
  textField: "text"
1991
2005
  }
@@ -1996,24 +2010,24 @@ const St = (e) => {
1996
2010
  onChange: i
1997
2011
  }
1998
2012
  ));
1999
- }, Io = (e) => {
2013
+ }, Is = (e) => {
2000
2014
  const { filter: t, onFilterChange: n } = e, r = a.useCallback(
2001
- (s) => n.call(void 0, s.syntheticEvent, { ...t, value: s.value }, t),
2015
+ (o) => n.call(void 0, o.syntheticEvent, { ...t, value: o.value }, t),
2002
2016
  [t, n]
2003
- ), o = qe.boolean[0].text;
2017
+ ), s = Be.boolean[0].text;
2004
2018
  return /* @__PURE__ */ a.createElement(
2005
2019
  vr,
2006
2020
  {
2007
2021
  onChange: r,
2008
2022
  checked: t.value,
2009
- label: j().toLanguageString(o, E[o]),
2023
+ label: Q().toLanguageString(s, v[s]),
2010
2024
  labelPlacement: "after"
2011
2025
  }
2012
2026
  );
2013
- }, zt = (e) => {
2014
- const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(jt, { ...o, value: o.value || "" }), []), n = a.useRef(qe.text), r = a.useRef({ operator: "", value: "" });
2027
+ }, Gt = (e) => {
2028
+ const t = a.useCallback((s) => /* @__PURE__ */ a.createElement(jt, { ...s, value: s.value || "" }), []), n = a.useRef(Be.text), r = a.useRef({ operator: "", value: "" });
2015
2029
  return /* @__PURE__ */ a.createElement(
2016
- St,
2030
+ Ft,
2017
2031
  {
2018
2032
  initialFilter: r.current,
2019
2033
  input: t,
@@ -2021,10 +2035,10 @@ const St = (e) => {
2021
2035
  ...e
2022
2036
  }
2023
2037
  );
2024
- }, Gt = (e) => {
2025
- const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(Le, { ...o, value: o.value || null }), []), n = a.useRef(qe.numeric), r = a.useRef({ operator: "", value: null });
2038
+ }, zt = (e) => {
2039
+ const t = a.useCallback((s) => /* @__PURE__ */ a.createElement(Re, { ...s, value: s.value || null }), []), n = a.useRef(Be.numeric), r = a.useRef({ operator: "", value: null });
2026
2040
  return /* @__PURE__ */ a.createElement(
2027
- St,
2041
+ Ft,
2028
2042
  {
2029
2043
  initialFilter: r.current,
2030
2044
  input: t,
@@ -2033,9 +2047,9 @@ const St = (e) => {
2033
2047
  }
2034
2048
  );
2035
2049
  }, _t = (e) => {
2036
- const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(vt, { ...o, value: o.value || null }), []), n = a.useRef(qe.date), r = a.useRef({ operator: "", value: null });
2050
+ const t = a.useCallback((s) => /* @__PURE__ */ a.createElement(vt, { ...s, value: s.value || null }), []), n = a.useRef(Be.date), r = a.useRef({ operator: "", value: null });
2037
2051
  return /* @__PURE__ */ a.createElement(
2038
- St,
2052
+ Ft,
2039
2053
  {
2040
2054
  initialFilter: r.current,
2041
2055
  input: t,
@@ -2043,10 +2057,10 @@ const St = (e) => {
2043
2057
  ...e
2044
2058
  }
2045
2059
  );
2046
- }, ko = [{ text: An, logic: "and" }, { text: Pn, logic: "or" }], Rt = (e) => {
2047
- const t = j(), n = (e.data || ko).map((r) => ({ ...r, text: t.toLanguageString(r.text, E[r.text]) }));
2060
+ }, ks = [{ text: An, logic: "and" }, { text: Pn, logic: "or" }], Mt = (e) => {
2061
+ const t = Q(), n = (e.data || ks).map((r) => ({ ...r, text: t.toLanguageString(r.text, v[r.text]) }));
2048
2062
  return /* @__PURE__ */ a.createElement(
2049
- _,
2063
+ $,
2050
2064
  {
2051
2065
  onChange: e.onChange,
2052
2066
  className: "k-filter-and",
@@ -2056,7 +2070,7 @@ const St = (e) => {
2056
2070
  value: n.find((r) => r.logic === e.value)
2057
2071
  }
2058
2072
  );
2059
- }, Fo = (e) => /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-content" }, /* @__PURE__ */ a.createElement(Sr, { style: { position: "relative", display: "block" } }, e.show && /* @__PURE__ */ a.createElement("div", { className: "kendo-grid-filter-menu-container" }, /* @__PURE__ */ a.createElement(
2073
+ }, Ss = (e) => /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-content" }, /* @__PURE__ */ a.createElement(Fr, { style: { position: "relative", display: "block" } }, e.show && /* @__PURE__ */ a.createElement("div", { className: "kendo-grid-filter-menu-container" }, /* @__PURE__ */ a.createElement(
2060
2074
  "form",
2061
2075
  {
2062
2076
  className: "k-filter-menu",
@@ -2064,10 +2078,10 @@ const St = (e) => {
2064
2078
  onReset: e.onReset
2065
2079
  },
2066
2080
  /* @__PURE__ */ a.createElement("div", { className: "k-filter-menu-container" }, e.children, /* @__PURE__ */ a.createElement("div", { className: "k-actions k-hstack k-justify-content-stretch" }, e.actions))
2067
- )))), So = (e) => {
2068
- const t = j();
2081
+ )))), Fs = (e) => {
2082
+ const t = Q();
2069
2083
  return /* @__PURE__ */ a.createElement(
2070
- Fo,
2084
+ Ss,
2071
2085
  {
2072
2086
  ...e,
2073
2087
  actions: /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
@@ -2075,148 +2089,148 @@ const St = (e) => {
2075
2089
  {
2076
2090
  type: "reset"
2077
2091
  },
2078
- t.toLanguageString(rt, E[rt])
2092
+ t.toLanguageString(rt, v[rt])
2079
2093
  ), /* @__PURE__ */ a.createElement(
2080
2094
  B,
2081
2095
  {
2082
2096
  themeColor: "primary"
2083
2097
  },
2084
- t.toLanguageString(ot, E[ot])
2098
+ t.toLanguageString(st, v[st])
2085
2099
  ))
2086
2100
  }
2087
2101
  );
2088
- }, ze = (e) => {
2102
+ }, qe = (e) => {
2089
2103
  gt(Et);
2090
2104
  const t = a.useRef([]), {
2091
2105
  field: n,
2092
2106
  filter: r,
2093
- sort: o = t.current,
2094
- onSortChange: s,
2107
+ sort: s = t.current,
2108
+ onSortChange: o,
2095
2109
  onFilterChange: i,
2096
2110
  initialFilter: l,
2097
2111
  sortAsc: c = !1,
2098
2112
  sortDesc: u = !1,
2099
2113
  filterContent: d = [],
2100
- expandFilters: g = !1
2101
- } = e, [m, h] = a.useState(!1), [v, b] = a.useState(g), [C, f] = a.useState(n && l ? l(n) : null), I = a.useRef(null), S = a.useRef(null), k = a.useRef(null), x = a.useRef(!1), y = a.useCallback(
2102
- () => (r || []).find((R) => R.filters.every((D) => !en(D) && D.field === n)),
2114
+ expandFilters: h = !1
2115
+ } = e, [m, g] = a.useState(!1), [E, b] = a.useState(h), [C, f] = a.useState(n && l ? l(n) : null), I = a.useRef(null), F = a.useRef(null), k = a.useRef(null), x = a.useRef(!1), y = a.useCallback(
2116
+ () => (r || []).find((M) => M.filters.every((w) => !en(w) && w.field === n)),
2103
2117
  [r, n]
2104
- ), F = a.useCallback(
2118
+ ), S = a.useCallback(
2105
2119
  () => {
2106
- h(!1);
2120
+ g(!1);
2107
2121
  },
2108
2122
  []
2109
- ), w = a.useCallback(
2123
+ ), A = a.useCallback(
2110
2124
  () => {
2111
2125
  if (x.current) {
2112
2126
  x.current = !1;
2113
2127
  return;
2114
2128
  }
2115
2129
  clearTimeout(k.current), k.current = window.setTimeout(() => {
2116
- F();
2130
+ S();
2117
2131
  });
2118
2132
  },
2119
- [F]
2133
+ [S]
2120
2134
  ), P = a.useCallback(
2121
2135
  () => clearTimeout(k.current),
2122
2136
  []
2123
- ), T = a.useCallback((R) => {
2124
- x.current = m && R.currentTarget === I.current;
2125
- }, [m]), z = a.useCallback(
2137
+ ), T = a.useCallback((M) => {
2138
+ x.current = m && M.currentTarget === I.current;
2139
+ }, [m]), G = a.useCallback(
2126
2140
  () => {
2127
- h(!m), n && l && (b(m ? !1 : g), f(m ? C : y() || l(n)));
2141
+ g(!m), n && l && (b(m ? !1 : h), f(m ? C : y() || l(n)));
2128
2142
  },
2129
- [y, n, m, C, l, g]
2143
+ [y, n, m, C, l, h]
2130
2144
  );
2131
2145
  a.useEffect(
2132
2146
  () => {
2133
- m && S.current && S.current.focus();
2147
+ m && F.current && F.current.focus();
2134
2148
  },
2135
2149
  [m]
2136
2150
  );
2137
- const L = a.useCallback(
2138
- () => b(!v),
2139
- [v]
2140
- ), O = a.useCallback(
2141
- (R, D) => {
2142
- const N = [...o], A = N.findIndex((ar) => ar.field === n), ne = { field: n, dir: D };
2143
- A >= 0 ? N[A].dir !== ne.dir ? N.splice(A, 1, ne) : N.splice(A, 1) : N.push(ne), F(), s && s.call(void 0, R, N, n);
2151
+ const D = a.useCallback(
2152
+ () => b(!E),
2153
+ [E]
2154
+ ), L = a.useCallback(
2155
+ (M, w) => {
2156
+ const O = [...s], N = O.findIndex((ar) => ar.field === n), oe = { field: n, dir: w };
2157
+ N >= 0 ? O[N].dir !== oe.dir ? O.splice(N, 1, oe) : O.splice(N, 1) : O.push(oe), S(), o && o.call(void 0, M, O, n);
2144
2158
  },
2145
- [o, n, s, F]
2146
- ), Z = a.useCallback(
2147
- (R, D, N) => {
2148
- const A = { ...C, filters: [...C.filters] }, ne = A.filters.indexOf(N);
2149
- A.filters.splice(ne, 1, D), f(A);
2159
+ [s, n, o, S]
2160
+ ), V = a.useCallback(
2161
+ (M, w, O) => {
2162
+ const N = { ...C, filters: [...C.filters] }, oe = N.filters.indexOf(O);
2163
+ N.filters.splice(oe, 1, w), f(N);
2150
2164
  },
2151
2165
  [C]
2152
- ), ue = a.useCallback(
2153
- (R) => {
2154
- R.preventDefault();
2155
- const D = (r || []).slice(), N = y(), A = N ? D.indexOf(N) : -1;
2156
- A >= 0 ? D.splice(A, 1, C) : D.push(C), F(), i && i.call(void 0, R, D, n);
2166
+ ), Z = a.useCallback(
2167
+ (M) => {
2168
+ M.preventDefault();
2169
+ const w = (r || []).slice(), O = y(), N = O ? w.indexOf(O) : -1;
2170
+ N >= 0 ? w.splice(N, 1, C) : w.push(C), S(), i && i.call(void 0, M, w, n);
2157
2171
  },
2158
- [r, C, n, i, F, y]
2159
- ), de = a.useCallback(
2160
- (R) => {
2161
- const D = (r || []).slice(), N = y(), A = N ? D.indexOf(N) : -1;
2162
- A >= 0 && D.splice(A, 1), l && f(l(n)), F(), i && i.call(void 0, R, D, n);
2172
+ [r, C, n, i, S, y]
2173
+ ), he = a.useCallback(
2174
+ (M) => {
2175
+ const w = (r || []).slice(), O = y(), N = O ? w.indexOf(O) : -1;
2176
+ N >= 0 && w.splice(N, 1), l && f(l(n)), S(), i && i.call(void 0, M, w, n);
2163
2177
  },
2164
- [r, n, i, l, F, y]
2165
- ), Ge = a.useCallback((R) => O(R, "asc"), [O]), pe = a.useCallback((R) => O(R, "desc"), [O]), _e = a.useCallback(
2166
- (R) => C && f({ ...C, logic: R.value.logic }),
2178
+ [r, n, i, l, S, y]
2179
+ ), Ge = a.useCallback((M) => L(M, "asc"), [L]), ge = a.useCallback((M) => L(M, "desc"), [L]), ze = a.useCallback(
2180
+ (M) => C && f({ ...C, logic: M.value.logic }),
2167
2181
  [C]
2168
- ), J = o.find((R) => R.field === n) || { dir: "" }, [
2169
- Q,
2170
- ee,
2171
- te
2172
- ] = d, He = j(), nr = c || u ? /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-wrapper", key: "sorting" }, c && /* @__PURE__ */ a.createElement(
2173
- Ve,
2182
+ ), te = s.find((M) => M.field === n) || { dir: "" }, [
2183
+ ne,
2184
+ re,
2185
+ se
2186
+ ] = d, _e = Q(), nr = c || u ? /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-wrapper", key: "sorting" }, c && /* @__PURE__ */ a.createElement(
2187
+ We,
2174
2188
  {
2175
- title: He.toLanguageString(at, E[at]),
2189
+ title: _e.toLanguageString(at, v[at]),
2176
2190
  iconClass: "k-i-sort-asc-small",
2177
2191
  svgIcon: Xt,
2178
- selected: J.dir === "asc",
2192
+ selected: te.dir === "asc",
2179
2193
  onClick: Ge
2180
2194
  }
2181
2195
  ), u && /* @__PURE__ */ a.createElement(
2182
- Ve,
2196
+ We,
2183
2197
  {
2184
- title: He.toLanguageString(it, E[it]),
2198
+ title: _e.toLanguageString(it, v[it]),
2185
2199
  iconClass: "k-i-sort-desc-small",
2186
2200
  svgIcon: Zt,
2187
- selected: J.dir === "desc",
2188
- onClick: pe
2201
+ selected: te.dir === "desc",
2202
+ onClick: ge
2189
2203
  }
2190
2204
  )) : null, rr = C && d.length > 0 ? /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-wrapper", key: "filtering" }, /* @__PURE__ */ a.createElement(
2191
- Ve,
2205
+ We,
2192
2206
  {
2193
2207
  iconClass: "k-i-filter",
2194
- svgIcon: Ye,
2195
- title: He.toLanguageString(st, E[st]),
2196
- onClick: L
2208
+ svgIcon: Ve,
2209
+ title: _e.toLanguageString(ot, v[ot]),
2210
+ onClick: D
2197
2211
  }
2198
2212
  ), /* @__PURE__ */ a.createElement(
2199
- So,
2213
+ Fs,
2200
2214
  {
2201
- show: v,
2202
- onSubmit: ue,
2203
- onReset: de
2215
+ show: E,
2216
+ onSubmit: Z,
2217
+ onReset: he
2204
2218
  },
2205
- Q && /* @__PURE__ */ a.createElement(Q, { filter: C.filters[0], onFilterChange: Z }),
2206
- ee && /* @__PURE__ */ a.createElement(ee, { value: C.logic, onChange: _e }),
2207
- te && /* @__PURE__ */ a.createElement(te, { filter: C.filters[1], onFilterChange: Z })
2208
- )) : null, Lt = [nr, rr], or = /* @__PURE__ */ a.createElement(
2219
+ ne && /* @__PURE__ */ a.createElement(ne, { filter: C.filters[0], onFilterChange: V }),
2220
+ re && /* @__PURE__ */ a.createElement(re, { value: C.logic, onChange: ze }),
2221
+ se && /* @__PURE__ */ a.createElement(se, { filter: C.filters[1], onFilterChange: V })
2222
+ )) : null, Lt = [nr, rr], sr = /* @__PURE__ */ a.createElement(
2209
2223
  "span",
2210
2224
  {
2211
2225
  ref: I,
2212
- onClick: z,
2226
+ onClick: G,
2213
2227
  onMouseDown: T,
2214
2228
  className: "k-grid-header-menu k-grid-column-menu" + (y() ? " k-active" : ""),
2215
2229
  key: "button"
2216
2230
  },
2217
- /* @__PURE__ */ a.createElement(Me, { name: "filter", icon: Ye })
2218
- ), sr = /* @__PURE__ */ a.createElement(
2219
- Fr,
2231
+ /* @__PURE__ */ a.createElement(Me, { name: "filter", icon: Ve })
2232
+ ), or = /* @__PURE__ */ a.createElement(
2233
+ Sr,
2220
2234
  {
2221
2235
  anchor: I.current,
2222
2236
  show: m,
@@ -2226,111 +2240,111 @@ const St = (e) => {
2226
2240
  /* @__PURE__ */ a.createElement(
2227
2241
  "div",
2228
2242
  {
2229
- ref: S,
2243
+ ref: F,
2230
2244
  tabIndex: 0,
2231
- onBlur: w,
2245
+ onBlur: A,
2232
2246
  onFocus: P,
2233
2247
  style: { outline: "none" }
2234
2248
  },
2235
- e.itemsRender ? e.itemsRender.call(void 0, Lt, { closeMenu: F, field: n }) : Lt
2249
+ e.itemsRender ? e.itemsRender.call(void 0, Lt, { closeMenu: S, field: n }) : Lt
2236
2250
  )
2237
- ), Dt = [or, sr];
2251
+ ), Dt = [sr, or];
2238
2252
  return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, Dt) : Dt);
2239
- }, Ss = (e) => {
2253
+ }, Mo = (e) => {
2240
2254
  const { field: t, ...n } = e, r = a.useCallback(
2241
2255
  (i) => ({ logic: "and", filters: [{ operator: "contains", field: i, value: "" }, { operator: "contains", field: i, value: "" }] }),
2242
2256
  []
2243
- ), o = !!e.field, s = o ? [
2244
- zt,
2245
- Rt,
2246
- zt
2257
+ ), s = !!e.field, o = s ? [
2258
+ Gt,
2259
+ Mt,
2260
+ Gt
2247
2261
  ] : [];
2248
2262
  return /* @__PURE__ */ a.createElement(
2249
- ze,
2263
+ qe,
2250
2264
  {
2251
- sortAsc: o,
2252
- sortDesc: o,
2253
- filterContent: s,
2254
- initialFilter: o ? r : void 0,
2265
+ sortAsc: s,
2266
+ sortDesc: s,
2267
+ filterContent: o,
2268
+ initialFilter: s ? r : void 0,
2255
2269
  field: t,
2256
2270
  ...n
2257
2271
  }
2258
2272
  );
2259
- }, Rs = (e) => {
2273
+ }, Ro = (e) => {
2260
2274
  const { field: t, ...n } = e, r = a.useCallback(
2261
2275
  (i) => ({ logic: "or", filters: [{ operator: "eq", field: i, value: null }, { operator: "eq", field: i, value: null }] }),
2262
2276
  []
2263
- ), o = !!e.field, s = o ? [
2264
- Gt,
2265
- Rt,
2266
- Gt
2277
+ ), s = !!e.field, o = s ? [
2278
+ zt,
2279
+ Mt,
2280
+ zt
2267
2281
  ] : [];
2268
2282
  return /* @__PURE__ */ a.createElement(
2269
- ze,
2283
+ qe,
2270
2284
  {
2271
- sortAsc: o,
2272
- sortDesc: o,
2273
- filterContent: s,
2274
- initialFilter: o ? r : void 0,
2285
+ sortAsc: s,
2286
+ sortDesc: s,
2287
+ filterContent: o,
2288
+ initialFilter: s ? r : void 0,
2275
2289
  field: t,
2276
2290
  ...n
2277
2291
  }
2278
2292
  );
2279
- }, Ms = (e) => {
2293
+ }, Lo = (e) => {
2280
2294
  const { field: t, ...n } = e, r = a.useCallback(
2281
2295
  (i) => ({ logic: "or", filters: [{ operator: "eq", field: i, value: null }, { operator: "eq", field: i, value: null }] }),
2282
2296
  []
2283
- ), o = !!e.field, s = o ? [
2297
+ ), s = !!e.field, o = s ? [
2284
2298
  _t,
2285
- Rt,
2299
+ Mt,
2286
2300
  _t
2287
2301
  ] : [];
2288
2302
  return /* @__PURE__ */ a.createElement(
2289
- ze,
2303
+ qe,
2290
2304
  {
2291
- sortAsc: o,
2292
- sortDesc: o,
2293
- filterContent: s,
2294
- initialFilter: o ? r : void 0,
2305
+ sortAsc: s,
2306
+ sortDesc: s,
2307
+ filterContent: o,
2308
+ initialFilter: s ? r : void 0,
2295
2309
  field: t,
2296
2310
  ...n
2297
2311
  }
2298
2312
  );
2299
- }, Ls = (e) => {
2313
+ }, Do = (e) => {
2300
2314
  const { field: t, ...n } = e, r = a.useCallback(
2301
2315
  (i) => ({ logic: "and", filters: [{ operator: "eq", field: i, value: !1 }] }),
2302
2316
  []
2303
- ), o = !!e.field, s = o ? [
2304
- Io
2317
+ ), s = !!e.field, o = s ? [
2318
+ Is
2305
2319
  ] : [];
2306
2320
  return /* @__PURE__ */ a.createElement(
2307
- ze,
2321
+ qe,
2308
2322
  {
2309
- sortAsc: o,
2310
- sortDesc: o,
2311
- filterContent: s,
2312
- initialFilter: o ? r : void 0,
2323
+ sortAsc: s,
2324
+ sortDesc: s,
2325
+ filterContent: o,
2326
+ initialFilter: s ? r : void 0,
2313
2327
  field: t,
2314
2328
  ...n
2315
2329
  }
2316
2330
  );
2317
2331
  };
2318
- function se(e, t, n) {
2332
+ function le(e, t, n) {
2319
2333
  return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
2320
2334
  }
2321
2335
  function Qn(e, t, n) {
2322
2336
  if (e[n]) {
2323
- let r = se(e, n, tn(se(e, n), t)), o = se(r, n).map((s) => Qn(s, t, n));
2324
- return { ...r, [n]: o };
2337
+ let r = le(e, n, tn(le(e, n), t)), s = le(r, n).map((o) => Qn(o, t, n));
2338
+ return { ...r, [n]: s };
2325
2339
  }
2326
2340
  return e;
2327
2341
  }
2328
- function Ds(e, t, n) {
2342
+ function wo(e, t, n) {
2329
2343
  let r = tn(e, t);
2330
- return r = r.map((o) => Qn(o, t, n)), r;
2344
+ return r = r.map((s) => Qn(s, t, n)), r;
2331
2345
  }
2332
2346
  function er(e, t, n) {
2333
- let r = se(e, n);
2347
+ let r = le(e, n);
2334
2348
  if (r && r.length) {
2335
2349
  r = r.map((l) => er(l, t, n));
2336
2350
  const i = kr(r, {
@@ -2340,231 +2354,231 @@ function er(e, t, n) {
2340
2354
  ],
2341
2355
  logic: "or"
2342
2356
  });
2343
- return se(e, n, i);
2357
+ return le(e, n, i);
2344
2358
  }
2345
2359
  return e;
2346
2360
  }
2347
- function ws(e, t, n) {
2361
+ function Oo(e, t, n) {
2348
2362
  let r = { [n]: [...e] };
2349
2363
  return r = er(r, t, n), r[n] || [];
2350
2364
  }
2351
- function Os(e, t, n) {
2365
+ function No(e, t, n) {
2352
2366
  let r = [];
2353
- const o = [];
2354
- for (let s = e.length - 1; s >= 0; s--) {
2355
- const i = e[s];
2367
+ const s = [];
2368
+ for (let o = e.length - 1; o >= 0; o--) {
2369
+ const i = e[o];
2356
2370
  r.push({
2357
2371
  root: i,
2358
2372
  data: t(i),
2359
- level: [s],
2373
+ level: [o],
2360
2374
  levelCount: e.length
2361
2375
  });
2362
2376
  }
2363
2377
  for (; r.length > 0; ) {
2364
- let s = r.pop();
2365
- if (o.push({
2366
- dataItem: s.root,
2367
- level: [...s.level],
2368
- ...n(s.root),
2369
- levelCount: s.levelCount
2370
- }), s.data.length)
2371
- for (let i = s.data.length - 1; i >= 0; i--) {
2372
- const l = s.data[i];
2378
+ let o = r.pop();
2379
+ if (s.push({
2380
+ dataItem: o.root,
2381
+ level: [...o.level],
2382
+ ...n(o.root),
2383
+ levelCount: o.levelCount
2384
+ }), o.data.length)
2385
+ for (let i = o.data.length - 1; i >= 0; i--) {
2386
+ const l = o.data[i];
2373
2387
  r.push({
2374
2388
  root: l,
2375
2389
  data: t(l),
2376
- level: [...s.level, i],
2377
- levelCount: s.data.length
2390
+ level: [...o.level, i],
2391
+ levelCount: o.data.length
2378
2392
  });
2379
2393
  }
2380
2394
  }
2381
- return o;
2395
+ return s;
2382
2396
  }
2383
- const Ns = (e, t, n) => {
2384
- const r = (c) => !!$e(t, c), o = (c) => !!$e(n, c), s = (c) => {
2397
+ const Ao = (e, t, n) => {
2398
+ const r = (c) => !!$e(t, c), s = (c) => !!$e(n, c), o = (c) => {
2385
2399
  const u = [];
2386
- return r(c) && o(c) && u.push(...$e(n, c)), u;
2400
+ return r(c) && s(c) && u.push(...$e(n, c)), u;
2387
2401
  }, i = (c, u, d) => {
2388
- u.push({ ...c, level: d }), s(c).forEach((g) => i(g, u, d + 1));
2402
+ u.push({ ...c, level: d }), o(c).forEach((h) => i(h, u, d + 1));
2389
2403
  }, l = [];
2390
2404
  return e.forEach((c) => i(c, l, 0)), l;
2391
- }, As = (e, t, n, r) => {
2392
- let o = {}, s = [], i;
2393
- return e.forEach((l) => o[t(l)] = { ...l }), e.forEach((l) => {
2394
- i = o[n(l)], i ? (i[r] = i[r] || [], i[r].push(o[t(l)])) : s.push(o[t(l)]);
2395
- }), s;
2396
- }, Ps = (e, t, n) => mt(e, t, n), Ts = (e, t, n) => [...U(
2405
+ }, Po = (e, t, n, r) => {
2406
+ let s = {}, o = [], i;
2407
+ return e.forEach((l) => s[t(l)] = { ...l }), e.forEach((l) => {
2408
+ i = s[n(l)], i ? (i[r] = i[r] || [], i[r].push(s[t(l)])) : o.push(s[t(l)]);
2409
+ }), o;
2410
+ }, To = (e, t, n) => mt(e, t, n), Ko = (e, t, n) => [...J(
2397
2411
  [{ [t]: [...e] }],
2398
2412
  t,
2399
- (o) => Ro(o, n, t)
2400
- )[0][t]], Ro = (e, t, n) => {
2401
- const r = e[n] || [], o = r.findIndex(t);
2402
- if (o !== -1) {
2403
- const s = [...r];
2404
- return s.splice(o, 1), {
2413
+ (s) => Ms(s, n, t)
2414
+ )[0][t]], Ms = (e, t, n) => {
2415
+ const r = e[n] || [], s = r.findIndex(t);
2416
+ if (s !== -1) {
2417
+ const o = [...r];
2418
+ return o.splice(s, 1), {
2405
2419
  ...e,
2406
- [n]: s
2420
+ [n]: o
2407
2421
  };
2408
2422
  }
2409
2423
  return e;
2410
- }, Ks = (e, t, n, r) => U(
2424
+ }, Bo = (e, t, n, r) => J(
2411
2425
  e,
2412
2426
  t,
2413
- (o) => n(o) ? { ...o, [t]: r(o[t] || []) } : o
2414
- ), Ht = (e, t, n) => lr(e, t, n), Bs = (e, t, n, r) => {
2415
- const o = [...e], s = Ht(o, t, r), i = s.pop(), l = s.pop(), c = t[t.length - 1];
2427
+ (s) => n(s) ? { ...s, [t]: r(s[t] || []) } : s
2428
+ ), $t = (e, t, n) => lr(e, t, n), qo = (e, t, n, r) => {
2429
+ const s = [...e], o = $t(s, t, r), i = o.pop(), l = o.pop(), c = t[t.length - 1];
2416
2430
  if (n) {
2417
- const d = Ht(o, n, r).pop();
2418
- (l ? l[r] : o).splice(c, 1), d[r] = d[r] || [], d[r].push(i);
2431
+ const d = $t(s, n, r).pop();
2432
+ (l ? l[r] : s).splice(c, 1), d[r] = d[r] || [], d[r].push(i);
2419
2433
  } else
2420
- (l ? l[r] : o).splice(c, 1), o.push(i);
2421
- return o;
2422
- }, ie = "groupId", ht = "items", tr = (e, t, n) => {
2423
- e.items && (e[ie] = `${n}${n && "_"}${e.value}${e.field}`, t > 1 && e.items.forEach((r) => tr(r, t - 1, e[ie])));
2424
- }, qs = (e) => {
2434
+ (l ? l[r] : s).splice(c, 1), s.push(i);
2435
+ return s;
2436
+ }, ue = "groupId", ht = "items", tr = (e, t, n) => {
2437
+ e.items && (e[ue] = `${n}${n && "_"}${e.value}${e.field}`, t > 1 && e.items.forEach((r) => tr(r, t - 1, e[ue])));
2438
+ }, Go = (e) => {
2425
2439
  const { group: t } = e;
2426
2440
  if (t && t.length && e.data)
2427
2441
  return e.data.forEach((n) => tr(n, t.length, ""));
2428
- }, zs = (e) => {
2442
+ }, zo = (e) => {
2429
2443
  const t = [];
2430
- return U(e.data, ht, (n) => {
2431
- n[ie] && t.push(n[ie]);
2444
+ return J(e.data, ht, (n) => {
2445
+ n[ue] && t.push(n[ue]);
2432
2446
  }), t;
2433
- }, Gs = (e) => U(
2447
+ }, _o = (e) => J(
2434
2448
  e.data,
2435
2449
  ht,
2436
2450
  (t) => mt(t, ht, {
2437
- expanded: !e.collapsedIds.some((n) => n === t[ie])
2451
+ expanded: !e.collapsedIds.some((n) => n === t[ue])
2438
2452
  })
2439
- ), Mo = (e) => {
2440
- const { navigatable: t, contextStateRef: n, navigationStateRef: r, idPrefix: o } = e;
2453
+ ), Rs = (e) => {
2454
+ const { navigatable: t, contextStateRef: n, navigationStateRef: r, idPrefix: s } = e;
2441
2455
  t && (n.current = {
2442
2456
  activeId: "",
2443
2457
  level: 0
2444
2458
  }, r.current = {
2445
2459
  activeElementIsFocused: !1,
2446
2460
  prevNavigationIndexes: void 0,
2447
- idPrefix: o || cr(),
2461
+ idPrefix: s || cr(),
2448
2462
  navigationMatrix: [],
2449
2463
  lastHeaderIndex: -1
2450
2464
  });
2451
- }, Lo = (e) => {
2465
+ }, Ls = (e) => {
2452
2466
  const { scope: t, contextStateRef: n, navigationStateRef: r } = e;
2453
2467
  if (n.current && r.current && t) {
2454
- Mt(e);
2455
- const o = r.current.navigationMatrix[0][0], s = M.getActiveElement(t, o);
2456
- o && s && (n.current.activeId = o, s.setAttribute("tabIndex", "0"));
2468
+ Rt(e);
2469
+ const s = r.current.navigationMatrix[0][0], o = R.getActiveElement(t, s);
2470
+ s && o && (n.current.activeId = s, o.setAttribute("tabIndex", "0"));
2457
2471
  }
2458
- }, Do = (e) => {
2472
+ }, Ds = (e) => {
2459
2473
  const { contextStateRef: t, navigationStateRef: n, document: r } = e;
2460
2474
  if (t.current && n.current && r) {
2461
- const o = ur(r), s = M.getNavigatableId(o);
2462
- s && s === t.current.activeId && (n.current.activeElementIsFocused = !0);
2475
+ const s = ur(r), o = R.getNavigatableId(s);
2476
+ o && o === t.current.activeId && (n.current.activeElementIsFocused = !0);
2463
2477
  }
2464
- }, wo = (e) => {
2478
+ }, ws = (e) => {
2465
2479
  const { scope: t, contextStateRef: n, navigationStateRef: r } = e;
2466
- if (Mt(e), n.current && r.current && t) {
2467
- if (!M.getActiveElement(t, n.current.activeId)) {
2468
- const s = r.current.navigationMatrix[0][0], i = M.getActiveElement(t, s);
2469
- s && i && (n.current.activeId = s, i.setAttribute("tabIndex", "0"), r.current.activeElementIsFocused && i.focus());
2480
+ if (Rt(e), n.current && r.current && t) {
2481
+ if (!R.getActiveElement(t, n.current.activeId)) {
2482
+ const o = r.current.navigationMatrix[0][0], i = R.getActiveElement(t, o);
2483
+ o && i && (n.current.activeId = o, i.setAttribute("tabIndex", "0"), r.current.activeElementIsFocused && i.focus());
2470
2484
  }
2471
2485
  r.current.activeElementIsFocused = !1;
2472
2486
  }
2473
- }, Oo = (e, t) => {
2487
+ }, Os = (e, t) => {
2474
2488
  const { contextStateRef: n } = t;
2475
2489
  if (e.isDefaultPrevented() || !n.current)
2476
2490
  return;
2477
- const r = e.target, o = M.getNavigatableId(r);
2478
- if (o && o !== n.current.activeId) {
2479
- const s = M.getClosestScope(r);
2480
- if (!s)
2491
+ const r = e.target, s = R.getNavigatableId(r);
2492
+ if (s && s !== n.current.activeId) {
2493
+ const o = R.getClosestScope(r);
2494
+ if (!o)
2481
2495
  return;
2482
- const i = M.getActiveElement(s, n.current.activeId);
2483
- i && i.setAttribute("tabIndex", "-1"), r.setAttribute("tabIndex", "0"), n.current.activeId = o;
2496
+ const i = R.getActiveElement(o, n.current.activeId);
2497
+ i && i.setAttribute("tabIndex", "-1"), r.setAttribute("tabIndex", "0"), n.current.activeId = s;
2484
2498
  }
2485
- }, No = (e, t) => {
2499
+ }, Ns = (e, t) => {
2486
2500
  const {
2487
2501
  contextStateRef: n,
2488
2502
  navigationStateRef: r,
2489
- onNavigationAction: o
2503
+ onNavigationAction: s
2490
2504
  } = t;
2491
2505
  if (e.isDefaultPrevented() || !n.current || !r.current)
2492
2506
  return;
2493
2507
  if (e.keyCode === K.esc) {
2494
- const d = M.getClosestNavigatableElement(e.target);
2495
- M.focusElement({ elementForFocus: d, event: e, contextStateRef: n });
2508
+ const d = R.getClosestNavigatableElement(e.target);
2509
+ R.focusElement({ elementForFocus: d, event: e, contextStateRef: n });
2496
2510
  return;
2497
2511
  }
2498
- const s = e.target, i = M.getNavigatableId(s), l = M.getNavigatableLevel(s), c = M.getClosestScope(s), u = r.current.navigationMatrix;
2512
+ const o = e.target, i = R.getNavigatableId(o), l = R.getNavigatableLevel(o), c = R.getClosestScope(o), u = r.current.navigationMatrix;
2499
2513
  if (l !== void 0 && c) {
2500
2514
  if (e.keyCode === K.enter) {
2501
- const d = M.getNavigatableElement(s, { level: l + 1 });
2515
+ const d = R.getNavigatableElement(o, { level: l + 1 });
2502
2516
  if (d) {
2503
- M.focusElement({
2517
+ R.focusElement({
2504
2518
  elementForFocus: d,
2505
2519
  event: e,
2506
2520
  contextStateRef: n,
2507
- prevElement: s
2521
+ prevElement: o
2508
2522
  });
2509
2523
  return;
2510
2524
  } else {
2511
- const g = M.getFocusableElements(s)[0];
2512
- M.focusElement({ elementForFocus: g, event: e, contextStateRef: n, prevElement: s });
2525
+ const h = R.getFocusableElements(o)[0];
2526
+ R.focusElement({ elementForFocus: h, event: e, contextStateRef: n, prevElement: o });
2513
2527
  return;
2514
2528
  }
2515
2529
  }
2516
2530
  if (e.keyCode === K.up || e.keyCode === K.down || e.keyCode === K.left || e.keyCode === K.right) {
2517
- const d = e.keyCode === K.up || e.keyCode === K.left, g = e.keyCode === K.up || e.keyCode === K.down;
2531
+ const d = e.keyCode === K.up || e.keyCode === K.left, h = e.keyCode === K.up || e.keyCode === K.down;
2518
2532
  let m;
2519
2533
  if (r.current && r.current.prevNavigationIndexes) {
2520
- const [h, v] = r.current.prevNavigationIndexes;
2521
- u[h][v] === i ? m = r.current.prevNavigationIndexes : m = dt(u, i);
2534
+ const [g, E] = r.current.prevNavigationIndexes;
2535
+ u[g][E] === i ? m = r.current.prevNavigationIndexes : m = dt(u, i);
2522
2536
  } else
2523
2537
  m = dt(u, i);
2524
2538
  if (m) {
2525
- const [h, v] = m, [b, C] = g ? Vn(h, v, i, u, d) : Yn(h, v, i, u, d);
2539
+ const [g, E] = m, [b, C] = h ? Vn(g, E, i, u, d) : Yn(g, E, i, u, d);
2526
2540
  if (b) {
2527
- const f = M.getActiveElement(c, b);
2528
- M.focusElement({ elementForFocus: f, event: e, contextStateRef: n, prevElement: s }), r.current.prevNavigationIndexes = C, o && o({ focusElement: f, event: e });
2541
+ const f = R.getActiveElement(c, b);
2542
+ R.focusElement({ elementForFocus: f, event: e, contextStateRef: n, prevElement: o }), r.current.prevNavigationIndexes = C, s && s({ focusElement: f, event: e });
2529
2543
  }
2530
2544
  }
2531
2545
  }
2532
2546
  }
2533
- }, Mt = (e) => {
2547
+ }, Rt = (e) => {
2534
2548
  const { navigationStateRef: t, scope: n } = e;
2535
2549
  if (!t.current || !n)
2536
2550
  return;
2537
- const r = [], o = $n(n), s = Wn(n);
2538
- if (!o || !s)
2551
+ const r = [], s = Hn(n), o = Wn(n);
2552
+ if (!s || !o)
2539
2553
  return;
2540
- const i = Array.from(o.children), l = Array.from(s.children);
2554
+ const i = Array.from(s.children), l = Array.from(o.children);
2541
2555
  [...i, ...l].forEach((c, u) => {
2542
2556
  Array.from(c.children).forEach((d) => {
2543
- const g = bt(d);
2544
- if (!g)
2557
+ const h = bt(d);
2558
+ if (!h)
2545
2559
  return;
2546
- const m = d.rowSpan || 1, h = d.colSpan || 1;
2547
- let v;
2560
+ const m = d.rowSpan || 1, g = d.colSpan || 1;
2561
+ let E;
2548
2562
  for (let b = u, C = u + m; b < C; b++) {
2549
- if (r[b] || (r[b] = []), v === void 0) {
2563
+ if (r[b] || (r[b] = []), E === void 0) {
2550
2564
  const f = r[b].findIndex((I) => !I);
2551
- v = f > -1 ? f : r[b].length;
2565
+ E = f > -1 ? f : r[b].length;
2552
2566
  }
2553
- r[b][v] = g || "";
2567
+ r[b][E] = h || "";
2554
2568
  }
2555
- for (let b = v + 1, C = v + h; b < C; b++)
2556
- r[u][b] = g || "";
2569
+ for (let b = E + 1, C = E + g; b < C; b++)
2570
+ r[u][b] = h || "";
2557
2571
  });
2558
2572
  }), t.current.navigationMatrix = r.filter((c) => !!c), t.current.lastHeaderIndex = i.length - 1;
2559
- }, _s = {
2560
- onConstructor: Mo,
2561
- onComponentDidMount: Lo,
2562
- onGetSnapshotBeforeUpdate: Do,
2563
- onComponentDidUpdate: wo,
2564
- onFocus: Oo,
2565
- onKeyDown: No,
2566
- generateMatrix: Mt
2567
- }, Ao = "data-grid-row-index", Po = "data-grid-col-index", To = "data-prevent-selection", Ko = "items", V = {}, Bo = (e, t) => !e || Array.isArray(e) && e.length === 0 ? [t] : e.findIndex((r) => r === t) > -1 ? e.filter((r) => r !== t) : [...e, t], W = (e, t) => {
2573
+ }, $o = {
2574
+ onConstructor: Rs,
2575
+ onComponentDidMount: Ls,
2576
+ onGetSnapshotBeforeUpdate: Ds,
2577
+ onComponentDidUpdate: ws,
2578
+ onFocus: Os,
2579
+ onKeyDown: Ns,
2580
+ generateMatrix: Rt
2581
+ }, As = "data-grid-row-index", Ps = "data-grid-col-index", Ts = "data-prevent-selection", Ks = "items", j = {}, Bs = (e, t) => !e || Array.isArray(e) && e.length === 0 ? [t] : e.findIndex((r) => r === t) > -1 ? e.filter((r) => r !== t) : [...e, t], Y = (e, t) => {
2568
2582
  let n = e;
2569
2583
  for (; n; ) {
2570
2584
  if (n.tagName === t)
@@ -2577,35 +2591,35 @@ const Ns = (e, t, n) => {
2577
2591
  }, Se = (e) => {
2578
2592
  if (!e)
2579
2593
  return;
2580
- const t = e.getAttribute(Ao);
2594
+ const t = e.getAttribute(As);
2581
2595
  return t ? parseInt(t, 10) : void 0;
2582
- }, Re = (e) => {
2596
+ }, Fe = (e) => {
2583
2597
  if (!e)
2584
2598
  return;
2585
- const t = e.getAttribute(Po);
2599
+ const t = e.getAttribute(Ps);
2586
2600
  return t ? parseInt(t, 10) : void 0;
2587
- }, Hs = (e) => {
2588
- const t = e.subItemsField || Ko, n = Vt(e.dataItemKey);
2589
- return U(
2601
+ }, Ho = (e) => {
2602
+ const t = e.subItemsField || Ks, n = Vt(e.dataItemKey);
2603
+ return J(
2590
2604
  e.data,
2591
2605
  t,
2592
2606
  (r) => mt(r, t, {
2593
2607
  [e.selectedField]: e.selectedState[n(r)]
2594
2608
  })
2595
2609
  );
2596
- }, $s = (e) => {
2597
- const { event: t, dataItemKey: n, selectedState: r } = e, { syntheticEvent: o, nativeEvent: s, dataItems: i, componentId: l, mode: c, cell: u, selectedField: d } = t, { target: g, ctrlKey: m, metaKey: h, altKey: v, shiftKey: b } = s;
2598
- if (o.isDefaultPrevented() || s.keyCode !== K.enter)
2610
+ }, Wo = (e) => {
2611
+ const { event: t, dataItemKey: n, selectedState: r } = e, { syntheticEvent: s, nativeEvent: o, dataItems: i, componentId: l, mode: c, cell: u, selectedField: d } = t, { target: h, ctrlKey: m, metaKey: g, altKey: E, shiftKey: b } = o;
2612
+ if (s.isDefaultPrevented() || o.keyCode !== K.enter)
2599
2613
  return r;
2600
- const C = W(g, "TD"), f = W(g, "TR"), I = Re(C), S = Se(f);
2614
+ const C = Y(h, "TD"), f = Y(h, "TR"), I = Fe(C), F = Se(f);
2601
2615
  let k = {};
2602
- return C && f && S !== void 0 && I !== void 0 && (k = qo({
2616
+ return C && f && F !== void 0 && I !== void 0 && (k = qs({
2603
2617
  selectedState: r,
2604
2618
  dataItemKey: n,
2605
2619
  event: {
2606
2620
  ctrlKey: m,
2607
- metaKey: h,
2608
- altKey: v,
2621
+ metaKey: g,
2622
+ altKey: E,
2609
2623
  shiftKey: b,
2610
2624
  dataItems: i,
2611
2625
  cell: u,
@@ -2614,70 +2628,70 @@ const Ns = (e, t, n) => {
2614
2628
  componentId: l,
2615
2629
  startColIndex: I,
2616
2630
  endColIndex: I,
2617
- startRowIndex: S,
2618
- endRowIndex: S,
2631
+ startRowIndex: F,
2632
+ endRowIndex: F,
2619
2633
  isDrag: !1,
2620
- syntheticEvent: o,
2621
- nativeEvent: s,
2634
+ syntheticEvent: s,
2635
+ nativeEvent: o,
2622
2636
  target: t.target,
2623
2637
  dataItem: null
2624
2638
  }
2625
2639
  })), k;
2626
- }, qo = (e) => {
2640
+ }, qs = (e) => {
2627
2641
  const { event: t, dataItemKey: n, selectedState: r } = e, {
2628
- dataItems: o,
2629
- startRowIndex: s,
2642
+ dataItems: s,
2643
+ startRowIndex: o,
2630
2644
  endRowIndex: i,
2631
2645
  startColIndex: l,
2632
2646
  endColIndex: c,
2633
2647
  cell: u,
2634
2648
  isDrag: d,
2635
- ctrlKey: g,
2649
+ ctrlKey: h,
2636
2650
  shiftKey: m,
2637
- metaKey: h,
2638
- componentId: v,
2651
+ metaKey: g,
2652
+ componentId: E,
2639
2653
  mode: b,
2640
2654
  dataItem: C
2641
2655
  } = t, f = Vt(n);
2642
2656
  let I = {};
2643
- const S = C !== null;
2657
+ const F = C !== null;
2644
2658
  if (b === "single") {
2645
- const k = o.slice(s, s + 1)[0], x = f(k);
2646
- V[v] = {
2647
- rowIndex: s,
2659
+ const k = s.slice(o, o + 1)[0], x = f(k);
2660
+ j[E] = {
2661
+ rowIndex: o,
2648
2662
  colIndex: l
2649
2663
  }, I[x] = u ? [l] : !0;
2650
- } else if (d || !m && !g && !h && !S) {
2651
- d || (V[v] = {
2652
- rowIndex: s,
2664
+ } else if (d || !m && !h && !g && !F) {
2665
+ d || (j[E] = {
2666
+ rowIndex: o,
2653
2667
  colIndex: l
2654
2668
  });
2655
2669
  const k = [];
2656
2670
  for (let y = l; y <= c; y++)
2657
2671
  k.push(y);
2658
- o.slice(s, i + 1).forEach((y) => {
2659
- const F = f(y);
2660
- I[F] = u ? [...k] : !0;
2672
+ s.slice(o, i + 1).forEach((y) => {
2673
+ const S = f(y);
2674
+ I[S] = u ? [...k] : !0;
2661
2675
  });
2662
- } else if (g || h || S) {
2663
- V[v] = {
2664
- rowIndex: s,
2676
+ } else if (h || g || F) {
2677
+ j[E] = {
2678
+ rowIndex: o,
2665
2679
  colIndex: l
2666
2680
  };
2667
- const x = o.slice(s, i + 1)[0], y = f(x);
2668
- I = { ...r }, I[y] = u && !S ? Bo(I[y], l) : !I[y];
2681
+ const x = s.slice(o, i + 1)[0], y = f(x);
2682
+ I = { ...r }, I[y] = u && !F ? Bs(I[y], l) : !I[y];
2669
2683
  } else if (m) {
2670
- const k = V[v] && V[v].rowIndex || 0, x = V[v] && V[v].colIndex || 0, y = Math.min(k, s, i), F = Math.max(k, s, i), w = Math.min(x, l, c), P = Math.max(x, l, c), T = [];
2671
- for (let L = w; L <= P; L++)
2672
- T.push(L);
2673
- o.slice(y, F + 1).forEach((L) => {
2674
- const O = f(L);
2675
- I[O] = u ? [...T] : !0;
2684
+ const k = j[E] && j[E].rowIndex || 0, x = j[E] && j[E].colIndex || 0, y = Math.min(k, o, i), S = Math.max(k, o, i), A = Math.min(x, l, c), P = Math.max(x, l, c), T = [];
2685
+ for (let D = A; D <= P; D++)
2686
+ T.push(D);
2687
+ s.slice(y, S + 1).forEach((D) => {
2688
+ const L = f(D);
2689
+ I[L] = u ? [...T] : !0;
2676
2690
  });
2677
2691
  }
2678
2692
  return I;
2679
- }, zo = dr(), Go = (e) => {
2680
- if (!e || !zo)
2693
+ }, Gs = dr(), zs = (e) => {
2694
+ if (!e || !Gs)
2681
2695
  return null;
2682
2696
  let t = e.parentElement;
2683
2697
  for (; t; ) {
@@ -2685,7 +2699,7 @@ const Ns = (e, t, n) => {
2685
2699
  return t;
2686
2700
  t = t.parentElement;
2687
2701
  }
2688
- }, _o = (e) => {
2702
+ }, _s = (e) => {
2689
2703
  if (e && e.ownerDocument && e !== e.ownerDocument.body) {
2690
2704
  const t = e.getBoundingClientRect();
2691
2705
  return {
@@ -2694,20 +2708,20 @@ const Ns = (e, t, n) => {
2694
2708
  };
2695
2709
  }
2696
2710
  return { left: 0, top: 0 };
2697
- }, Ho = (e) => {
2698
- const t = e ? typeof e.enabled == "boolean" ? e.enabled : !0 : !1, n = e ? !!e.drag : !1, r = e && e.mode ? e.mode : "multiple", o = !!(e && e.cell);
2699
- return { enabled: t, drag: n, mode: r, cell: o };
2700
- }, Ws = (e) => {
2701
- var S;
2711
+ }, $s = (e) => {
2712
+ const t = e ? typeof e.enabled == "boolean" ? e.enabled : !0 : !1, n = e ? !!e.drag : !1, r = e && e.mode ? e.mode : "multiple", s = !!(e && e.cell);
2713
+ return { enabled: t, drag: n, mode: r, cell: s };
2714
+ }, Vo = (e) => {
2715
+ var F;
2702
2716
  const { onRelease: t, childRef: n } = e, {
2703
2717
  enabled: r,
2704
- drag: o,
2705
- mode: s,
2718
+ drag: s,
2719
+ mode: o,
2706
2720
  cell: i
2707
- } = Ho(e.selectable), l = a.useRef(null), c = a.useRef(null), u = a.useRef({ clientX: 0, clientY: 0 }), [d, g] = a.useState(null), m = a.useRef(), h = a.useRef(!1), v = a.useRef(!1), b = a.useCallback(
2721
+ } = $s(e.selectable), l = a.useRef(null), c = a.useRef(null), u = a.useRef({ clientX: 0, clientY: 0 }), [d, h] = a.useState(null), m = a.useRef(), g = a.useRef(!1), E = a.useRef(!1), b = a.useCallback(
2708
2722
  (k) => {
2709
2723
  const { event: x } = k;
2710
- v.current = x.originalEvent.target.hasAttribute(To), !(v.current || !l.current) && (m.current = Go(l.current.element), u.current = {
2724
+ E.current = x.originalEvent.target.hasAttribute(Ts), !(E.current || !l.current) && (m.current = zs(l.current.element), u.current = {
2711
2725
  clientY: x.clientY,
2712
2726
  clientX: x.clientX
2713
2727
  });
@@ -2715,72 +2729,72 @@ const Ns = (e, t, n) => {
2715
2729
  []
2716
2730
  ), C = a.useCallback(
2717
2731
  (k) => {
2718
- const { event: x } = k, { clientX: y, clientY: F } = u.current;
2719
- if (!v.current && !(!o || s === "single") && ((Math.abs(F - x.clientY) > 5 || Math.abs(y - x.clientX) > 5) && (h.current = !0), h.current)) {
2720
- const w = _o(m.current);
2721
- g({
2722
- top: Math.min(F, x.clientY) - w.top,
2723
- left: Math.min(y, x.clientX) - w.left,
2732
+ const { event: x } = k, { clientX: y, clientY: S } = u.current;
2733
+ if (!E.current && !(!s || o === "single") && ((Math.abs(S - x.clientY) > 5 || Math.abs(y - x.clientX) > 5) && (g.current = !0), g.current)) {
2734
+ const A = _s(m.current);
2735
+ h({
2736
+ top: Math.min(S, x.clientY) - A.top,
2737
+ left: Math.min(y, x.clientX) - A.left,
2724
2738
  width: Math.abs(x.clientX - y),
2725
- height: Math.abs(x.clientY - F)
2739
+ height: Math.abs(x.clientY - S)
2726
2740
  });
2727
2741
  }
2728
2742
  },
2729
- [g, o, s]
2743
+ [h, s, o]
2730
2744
  ), f = a.useCallback(
2731
2745
  (k) => {
2732
- const { event: x } = k, { clientX: y, clientY: F } = u.current;
2733
- if (v.current || !l.current)
2746
+ const { event: x } = k, { clientX: y, clientY: S } = u.current;
2747
+ if (E.current || !l.current)
2734
2748
  return;
2735
- const w = l.current.element && l.current.element.ownerDocument;
2736
- if (w) {
2737
- if (h.current) {
2738
- const P = Math.min(F, x.clientY), T = Math.min(y, x.clientX), z = Math.max(F, x.clientY), L = Math.max(y, x.clientX), O = c.current;
2739
- if (!O)
2749
+ const A = l.current.element && l.current.element.ownerDocument;
2750
+ if (A) {
2751
+ if (g.current) {
2752
+ const P = Math.min(S, x.clientY), T = Math.min(y, x.clientX), G = Math.max(S, x.clientY), D = Math.max(y, x.clientX), L = c.current;
2753
+ if (!L)
2740
2754
  return;
2741
- O.style.visibility = "hidden";
2742
- const Z = w.elementFromPoint(T, P), ue = w.elementFromPoint(L, z);
2743
- if (O.style.visibility = "", !Z || !ue)
2755
+ L.style.visibility = "hidden";
2756
+ const V = A.elementFromPoint(T, P), Z = A.elementFromPoint(D, G);
2757
+ if (L.style.visibility = "", !V || !Z)
2744
2758
  return;
2745
- const de = W(Z, "TD"), Ge = W(de, "TR"), pe = W(ue, "TD"), _e = W(pe, "TR"), J = Re(de), Q = Se(Ge), ee = Re(pe), te = Se(_e);
2746
- J !== void 0 && Q !== void 0 && ee !== void 0 && te !== void 0 && t({
2759
+ const he = Y(V, "TD"), Ge = Y(he, "TR"), ge = Y(Z, "TD"), ze = Y(ge, "TR"), te = Fe(he), ne = Se(Ge), re = Fe(ge), se = Se(ze);
2760
+ te !== void 0 && ne !== void 0 && re !== void 0 && se !== void 0 && t({
2747
2761
  nativeEvent: x.originalEvent,
2748
- startRowIndex: Q,
2749
- startColIndex: J,
2750
- endRowIndex: te,
2751
- endColIndex: ee,
2762
+ startRowIndex: ne,
2763
+ startColIndex: te,
2764
+ endRowIndex: se,
2765
+ endColIndex: re,
2752
2766
  altKey: x.altKey,
2753
2767
  shiftKey: x.shiftKey,
2754
2768
  ctrlKey: x.ctrlKey,
2755
2769
  metaKey: x.metaKey,
2756
- mode: s,
2770
+ mode: o,
2757
2771
  cell: i,
2758
2772
  isDrag: !0
2759
2773
  });
2760
2774
  } else {
2761
- const P = w.elementFromPoint(y, F);
2775
+ const P = A.elementFromPoint(y, S);
2762
2776
  if (!P)
2763
2777
  return;
2764
- const T = W(P, "TD"), z = W(P, "TR"), L = Re(T), O = Se(z);
2765
- T && z && O !== void 0 && L !== void 0 && t({
2778
+ const T = Y(P, "TD"), G = Y(P, "TR"), D = Fe(T), L = Se(G);
2779
+ T && G && L !== void 0 && D !== void 0 && t({
2766
2780
  nativeEvent: x.originalEvent,
2767
- startRowIndex: O,
2768
- startColIndex: L,
2769
- endRowIndex: O,
2770
- endColIndex: L,
2781
+ startRowIndex: L,
2782
+ startColIndex: D,
2783
+ endRowIndex: L,
2784
+ endColIndex: D,
2771
2785
  altKey: x.altKey,
2772
2786
  shiftKey: x.shiftKey,
2773
2787
  ctrlKey: x.ctrlKey,
2774
2788
  metaKey: x.metaKey,
2775
- mode: s,
2789
+ mode: o,
2776
2790
  cell: i,
2777
2791
  isDrag: !1
2778
2792
  });
2779
2793
  }
2780
- g(null), h.current = !1, u.current = { clientX: 0, clientY: 0 };
2794
+ h(null), g.current = !1, u.current = { clientX: 0, clientY: 0 };
2781
2795
  }
2782
2796
  },
2783
- [g, s, i, t]
2797
+ [h, o, i, t]
2784
2798
  ), I = pr(c);
2785
2799
  return r ? /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
2786
2800
  ft,
@@ -2801,170 +2815,170 @@ const Ns = (e, t, n) => {
2801
2815
  className: "k-marquee k-marquee-color"
2802
2816
  }
2803
2817
  ),
2804
- (S = I()) == null ? void 0 : S.body
2818
+ (F = I()) == null ? void 0 : F.body
2805
2819
  )) : a.cloneElement(a.Children.only(e.children), { ref: n });
2806
- }, $o = "items";
2807
- var G = /* @__PURE__ */ ((e) => (e.copy = "copy", e.cut = "cut", e.paste = "paste", e))(G || {});
2808
- const Wo = (e, t, n) => {
2809
- const r = e.cellDelimiter || " ", o = e.newLineDelimiter || `\r
2810
- `, s = t.includes(o) ? o : t.includes(`
2820
+ }, Hs = "items";
2821
+ var z = /* @__PURE__ */ ((e) => (e.copy = "copy", e.cut = "cut", e.paste = "paste", e))(z || {});
2822
+ const Ws = (e, t, n) => {
2823
+ const r = e.cellDelimiter || " ", s = e.newLineDelimiter || `\r
2824
+ `, o = t.includes(s) ? s : t.includes(`
2811
2825
  `) ? `
2812
- ` : null, i = s ? t.split(s) : [t], l = n.copiedItems.length ? n.copiedItems[0].fields[0] : e.columns[0].field || "";
2826
+ ` : null, i = o ? t.split(o) : [t], l = n.copiedItems.length ? n.copiedItems[0].fields[0] : e.columns[0].field || "";
2813
2827
  return i.map((u) => {
2814
- const d = u.includes(r) ? u.split(r) : [u], g = e.columns.map((b) => b.field || ""), m = g.indexOf(l), h = g.slice(m, m + d.length), v = {};
2815
- return g.slice(m, m + d.length).forEach((b, C) => v[b] = d[C]), {
2816
- dataItem: v,
2817
- fields: h
2828
+ const d = u.includes(r) ? u.split(r) : [u], h = e.columns.map((b) => b.field || ""), m = h.indexOf(l), g = h.slice(m, m + d.length), E = {};
2829
+ return h.slice(m, m + d.length).forEach((b, C) => E[b] = d[C]), {
2830
+ dataItem: E,
2831
+ fields: g
2818
2832
  };
2819
2833
  });
2820
- }, Vo = (e, t) => {
2834
+ }, Vs = (e, t) => {
2821
2835
  if (!t.length)
2822
2836
  return null;
2823
2837
  let n = "";
2824
- return t.forEach((r, o, s) => n += `${e[r]}${o < s.length - 1 ? " " : ""}`), n;
2825
- }, Yo = (e, t, n) => {
2826
- const r = n.cellDelimiter || " ", o = n.newLineDelimiter || `\r
2838
+ return t.forEach((r, s, o) => n += `${e[r]}${s < o.length - 1 ? " " : ""}`), n;
2839
+ }, Ys = (e, t, n) => {
2840
+ const r = n.cellDelimiter || " ", s = n.newLineDelimiter || `\r
2827
2841
  `;
2828
- return `${t.join(r)}${o}${e}`;
2829
- }, Uo = (e) => {
2830
- const { event: t, selectedState: n, data: r, dataItemKey: o } = e, s = {}, i = { copiedItems: [], pastedItems: [], clipboardData: "" }, l = e.subItemsField || $o;
2842
+ return `${t.join(r)}${s}${e}`;
2843
+ }, Us = (e) => {
2844
+ const { event: t, selectedState: n, data: r, dataItemKey: s } = e, o = {}, i = { copiedItems: [], pastedItems: [], clipboardData: "" }, l = e.subItemsField || Hs;
2831
2845
  return Object.entries(n).forEach(([c, u]) => {
2832
- s[c] = hr(u) ? u.map((d) => t.columns[d]) : t.columns;
2833
- }), U(r, l, (c) => {
2834
- const u = c[o || t.dataItemKey || ""] || "";
2835
- return s[u] && i.copiedItems.push({
2846
+ o[c] = hr(u) ? u.map((d) => t.columns[d]) : t.columns;
2847
+ }), J(r, l, (c) => {
2848
+ const u = c[s || t.dataItemKey || ""] || "";
2849
+ return o[u] && i.copiedItems.push({
2836
2850
  dataItem: c,
2837
- fields: s[u].map((d) => d.field || "")
2851
+ fields: o[u].map((d) => d.field || "")
2838
2852
  }), c;
2839
2853
  }), i;
2840
- }, jo = (e, t) => {
2854
+ }, js = (e, t) => {
2841
2855
  const n = t.newLineDelimiter || `\r
2842
- `, r = e.copiedItems.map((o, s) => {
2843
- let i = Vo(o.dataItem, o.fields) || "";
2844
- return t.copyHeaders && s === 0 && (i = Yo(i, o.fields, t)), i ? [i] : [];
2856
+ `, r = e.copiedItems.map((s, o) => {
2857
+ let i = Vs(s.dataItem, s.fields) || "";
2858
+ return t.copyHeaders && o === 0 && (i = Ys(i, s.fields, t)), i ? [i] : [];
2845
2859
  }).join(n);
2846
2860
  return navigator.clipboard.writeText(r), r;
2847
- }, Vs = (e) => {
2848
- const { event: t } = e, n = Uo(e);
2861
+ }, Yo = (e) => {
2862
+ const { event: t } = e, n = Us(e);
2849
2863
  let r = "";
2850
2864
  if (t.type === "paste") {
2851
- const o = t.nativeEvent ? t.nativeEvent.clipboardData : "";
2852
- r = o ? o.getData("text").trim() : "", n.pastedItems = Wo(t, r, n);
2865
+ const s = t.nativeEvent ? t.nativeEvent.clipboardData : "";
2866
+ r = s ? s.getData("text").trim() : "", n.pastedItems = Ws(t, r, n);
2853
2867
  } else
2854
- n.pastedItems = [], r = jo(n, t);
2868
+ n.pastedItems = [], r = js(n, t);
2855
2869
  return n.clipboardData = r, n;
2856
2870
  };
2857
- class Ys {
2871
+ class Uo {
2858
2872
  constructor(t) {
2859
2873
  this.copyHandler = (n) => {
2860
- this.clipboardEvent(G.copy, n);
2874
+ this.clipboardEvent(z.copy, n);
2861
2875
  }, this.cutHandler = (n) => {
2862
- this.clipboardEvent(G.cut, n);
2876
+ this.clipboardEvent(z.cut, n);
2863
2877
  }, this.pasteHandler = (n) => {
2864
- this.clipboardEvent(G.paste, n);
2878
+ this.clipboardEvent(z.paste, n);
2865
2879
  }, this.addEventListeners = (n) => {
2866
- n && (n.addEventListener(G.copy, this.copyHandler), n.addEventListener(G.cut, this.cutHandler), n.addEventListener(G.paste, this.pasteHandler));
2880
+ n && (n.addEventListener(z.copy, this.copyHandler), n.addEventListener(z.cut, this.cutHandler), n.addEventListener(z.paste, this.pasteHandler));
2867
2881
  }, this.removeEventListeners = (n) => {
2868
- n && (n.removeEventListener(G.copy, this.copyHandler), n.removeEventListener(G.cut, this.cutHandler), n.removeEventListener(G.paste, this.pasteHandler));
2882
+ n && (n.removeEventListener(z.copy, this.copyHandler), n.removeEventListener(z.cut, this.cutHandler), n.removeEventListener(z.paste, this.pasteHandler));
2869
2883
  }, this.clipboardEvent = t;
2870
2884
  }
2871
2885
  }
2872
2886
  export {
2873
- ho as BooleanFilter,
2874
- cs as BooleanFilterCell,
2875
- G as ClipboardActionType,
2876
- Ys as ClipboardService,
2877
- Pr as ColumnDefaultProps,
2878
- Ls as ColumnMenuBooleanColumn,
2879
- Io as ColumnMenuBooleanFilter,
2880
- Ms as ColumnMenuDateColumn,
2887
+ hs as BooleanFilter,
2888
+ co as BooleanFilterCell,
2889
+ z as ClipboardActionType,
2890
+ Uo as ClipboardService,
2891
+ Tr as ColumnDefaultProps,
2892
+ Do as ColumnMenuBooleanColumn,
2893
+ Is as ColumnMenuBooleanFilter,
2894
+ Lo as ColumnMenuDateColumn,
2881
2895
  _t as ColumnMenuDateFilter,
2882
- So as ColumnMenuFilterForm,
2883
- Rt as ColumnMenuFilterLogic,
2884
- Fo as ColumnMenuForm,
2885
- Ve as ColumnMenuItem,
2886
- Rs as ColumnMenuNumericColumn,
2887
- Gt as ColumnMenuNumericFilter,
2888
- qe as ColumnMenuOperators,
2889
- Ss as ColumnMenuTextColumn,
2890
- zt as ColumnMenuTextFilter,
2891
- bs as ColumnResize,
2892
- ao as ColumnResizer,
2893
- ys as CommonDragLogic,
2894
- po as DateFilter,
2895
- us as DateFilterCell,
2896
- Is as DragClue,
2897
- ks as DropClue,
2896
+ Fs as ColumnMenuFilterForm,
2897
+ Mt as ColumnMenuFilterLogic,
2898
+ Ss as ColumnMenuForm,
2899
+ We as ColumnMenuItem,
2900
+ Ro as ColumnMenuNumericColumn,
2901
+ zt as ColumnMenuNumericFilter,
2902
+ Be as ColumnMenuOperators,
2903
+ Mo as ColumnMenuTextColumn,
2904
+ Gt as ColumnMenuTextFilter,
2905
+ yo as ColumnResize,
2906
+ is as ColumnResizer,
2907
+ Io as CommonDragLogic,
2908
+ ps as DateFilter,
2909
+ uo as DateFilterCell,
2910
+ ko as DragClue,
2911
+ So as DropClue,
2898
2912
  It as EnumFilter,
2899
2913
  kt as Expression,
2900
- Zr as FILTER_ROW_CLASS,
2914
+ Jr as FILTER_ROW_CLASS,
2901
2915
  Ct as FOCUSABLE_ELEMENTS,
2902
- Eo as Filter,
2903
- ms as FilterRow,
2904
- Ft as Group,
2905
- Es as Header,
2906
- oo as HeaderCell,
2907
- uo as HeaderRow,
2908
- Cs as HeaderSelectionCell,
2916
+ Es as Filter,
2917
+ vo as FilterRow,
2918
+ St as Group,
2919
+ Co as Header,
2920
+ os as HeaderCell,
2921
+ ds as HeaderRow,
2922
+ xo as HeaderSelectionCell,
2909
2923
  xt as HeaderThElement,
2910
- zn as KEYBOARD_NAV_DATA_BODY,
2924
+ Gn as KEYBOARD_NAV_DATA_BODY,
2911
2925
  qn as KEYBOARD_NAV_DATA_HEADER,
2912
- Be as KEYBOARD_NAV_DATA_ID,
2913
- X as KEYBOARD_NAV_DATA_LEVEL,
2926
+ Ke as KEYBOARD_NAV_DATA_ID,
2927
+ ee as KEYBOARD_NAV_DATA_LEVEL,
2914
2928
  Bn as KEYBOARD_NAV_DATA_SCOPE,
2915
- hs as KEYBOARD_NAV_DATA_ZONE,
2916
- Tr as KEYBOARD_NAV_FILTER_COL_SUFFIX,
2929
+ go as KEYBOARD_NAV_DATA_ZONE,
2930
+ Kr as KEYBOARD_NAV_FILTER_COL_SUFFIX,
2917
2931
  Xn as NumericFilter,
2918
- ds as NumericFilterCell,
2919
- Fs as Operators,
2920
- Te as Pager,
2921
- Kr as TABBABLE_ELEMENTS,
2922
- Po as TABLE_COL_INDEX_ATTRIBUTE,
2923
- To as TABLE_PREVENT_SELECTION_ELEMENT,
2924
- Ao as TABLE_ROW_INDEX_ATTRIBUTE,
2932
+ po as NumericFilterCell,
2933
+ Fo as Operators,
2934
+ Pe as Pager,
2935
+ Br as TABBABLE_ELEMENTS,
2936
+ Ps as TABLE_COL_INDEX_ATTRIBUTE,
2937
+ Ts as TABLE_PREVENT_SELECTION_ELEMENT,
2938
+ As as TABLE_ROW_INDEX_ATTRIBUTE,
2925
2939
  _n as TableKeyboardNavigationContext,
2926
- Ws as TableSelection,
2940
+ Vo as TableSelection,
2927
2941
  jn as TextFilter,
2928
- ps as TextFilterCell,
2929
- W as closestTagName,
2930
- As as createDataTree,
2931
- Ke as createFilterComponent,
2932
- Ps as extendDataItem,
2933
- ws as filterBy,
2934
- Os as flatData,
2935
- Re as getColumnIndex,
2936
- zs as getGroupIds,
2942
+ ho as TextFilterCell,
2943
+ Y as closestTagName,
2944
+ Po as createDataTree,
2945
+ Te as createFilterComponent,
2946
+ To as extendDataItem,
2947
+ Oo as filterBy,
2948
+ No as flatData,
2949
+ Fe as getColumnIndex,
2950
+ zo as getGroupIds,
2937
2951
  Bt as getIndex,
2938
- Ht as getItemPath,
2939
- _o as getOffset,
2952
+ $t as getItemPath,
2953
+ _s as getOffset,
2940
2954
  Se as getRowIndex,
2941
- qo as getSelectedState,
2942
- $s as getSelectedStateFromKeyDown,
2943
- Ho as getSelectionOptions,
2944
- ro as isRtl,
2945
- vs as mapColumns,
2946
- Ks as modifySubItems,
2947
- Bs as moveTreeItem,
2948
- Qr as nextColumn,
2949
- so as normalize,
2950
- Ds as orderBy,
2951
- Vs as populateClipboardData,
2952
- no as readColumns,
2953
- Go as relativeContextElement,
2954
- Ts as removeItems,
2955
- Gs as setExpandedState,
2956
- qs as setGroupIds,
2957
- Hs as setSelectedState,
2955
+ qs as getSelectedState,
2956
+ Wo as getSelectedStateFromKeyDown,
2957
+ $s as getSelectionOptions,
2958
+ ss as isRtl,
2959
+ Eo as mapColumns,
2960
+ Bo as modifySubItems,
2961
+ qo as moveTreeItem,
2962
+ es as nextColumn,
2963
+ as as normalize,
2964
+ wo as orderBy,
2965
+ Yo as populateClipboardData,
2966
+ rs as readColumns,
2967
+ zs as relativeContextElement,
2968
+ Ko as removeItems,
2969
+ _o as setExpandedState,
2970
+ Go as setGroupIds,
2971
+ Ho as setSelectedState,
2958
2972
  Zn as stringOperator,
2959
- xs as tableColumnsVirtualization,
2960
- _s as tableKeyboardNavigation,
2961
- fs as tableKeyboardNavigationBodyAttributes,
2962
- Br as tableKeyboardNavigationHeaderAttributes,
2963
- gs as tableKeyboardNavigationScopeAttributes,
2964
- M as tableKeyboardNavigationTools,
2965
- Ns as treeToFlat,
2973
+ bo as tableColumnsVirtualization,
2974
+ $o as tableKeyboardNavigation,
2975
+ mo as tableKeyboardNavigationBodyAttributes,
2976
+ qr as tableKeyboardNavigationHeaderAttributes,
2977
+ fo as tableKeyboardNavigationScopeAttributes,
2978
+ R as tableKeyboardNavigationTools,
2979
+ Ao as treeToFlat,
2966
2980
  pt as unaryOperator,
2967
- eo as updateLeft,
2968
- to as updateRight,
2969
- qr as useTableKeyboardNavigation
2981
+ ts as updateLeft,
2982
+ ns as updateRight,
2983
+ Gr as useTableKeyboardNavigation
2970
2984
  };