@progress/kendo-react-data-tools 7.1.0-develop.2 → 7.1.0-develop.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-datatools.js +1 -1
- package/index.js +1 -1
- package/index.mjs +382 -382
- package/package.json +9 -9
package/index.mjs
CHANGED
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
"use client";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import d from "prop-types";
|
|
8
|
-
import { classNames as _, kendoThemeMaps as
|
|
9
|
-
import { Button as K, Toolbar as
|
|
10
|
-
import { provideLocalizationService as q, provideIntlService as
|
|
11
|
-
import { NumericTextBox as Me, Input as
|
|
8
|
+
import { classNames as _, kendoThemeMaps as $t, validatePackage as ht, Draggable as gt, Keys as B, IconWrap as Re, canUseDOM as Wt, toIconName as sn, extendDataItem as ft, mapTree as ae, getItemPath as an, getNestedValue as $e, guid as ln, getActiveElement as cn, getter as Ht, hasRelativeStackingContext as un, useDocument as pn } from "@progress/kendo-react-common";
|
|
9
|
+
import { Button as K, Toolbar as Vt, ToolbarItem as We, ButtonGroup as dn } from "@progress/kendo-react-buttons";
|
|
10
|
+
import { provideLocalizationService as q, provideIntlService as Yt, registerForLocalization as $, registerForIntl as hn, useLocalization as Y } from "@progress/kendo-react-intl";
|
|
11
|
+
import { NumericTextBox as Me, Input as Xt, TextBox as gn, Checkbox as fn } from "@progress/kendo-react-inputs";
|
|
12
12
|
import { DropDownList as G } from "@progress/kendo-react-dropdowns";
|
|
13
|
-
import { caretAltToRightIcon as
|
|
14
|
-
import * as
|
|
13
|
+
import { caretAltToRightIcon as Dt, caretAltToLeftIcon as wt, caretAltRightIcon as Ot, caretAltLeftIcon as Nt, filterIcon as Ve, filterClearIcon as mn, sortAscSmallIcon as Ut, sortDescSmallIcon as jt, cancelIcon as vn, plusIcon as En, xIcon as Zt, filterAddExpressionIcon as Cn, filterAddGroupIcon as xn } from "@progress/kendo-svg-icons";
|
|
14
|
+
import * as bn from "react-dom";
|
|
15
15
|
import { createPortal as Jt } from "react-dom";
|
|
16
|
-
import { isCompositeFilterDescriptor as Qt, orderBy as er, filterBy as
|
|
17
|
-
import { DatePicker as
|
|
18
|
-
import { Popup as
|
|
19
|
-
import { Reveal as
|
|
20
|
-
const de = "pager.info", he = "pager.firstPage", ge = "pager.previousPage", fe = "pager.nextPage", me = "pager.lastPage", ve = "pager.itemsPerPage",
|
|
16
|
+
import { isCompositeFilterDescriptor as Qt, orderBy as er, filterBy as yn } from "@progress/kendo-data-query";
|
|
17
|
+
import { DatePicker as mt } from "@progress/kendo-react-dateinputs";
|
|
18
|
+
import { Popup as In } from "@progress/kendo-react-popup";
|
|
19
|
+
import { Reveal as kn } from "@progress/kendo-react-animation";
|
|
20
|
+
const de = "pager.info", he = "pager.firstPage", ge = "pager.previousPage", fe = "pager.nextPage", me = "pager.lastPage", ve = "pager.itemsPerPage", Sn = "pager.pageSelection", V = "pager.page", Ee = "pager.of", Ce = "pager.totalPages", Fn = "pager.pageLabel", xe = "pager.ariaKeyshortcuts", be = "pager.ariaLabel", ye = "pager.pageSizeAriaLabel", Ie = "pager.mobileSelect", ke = "pager.moreButtonLabel", ie = "filter.eqOperator", le = "filter.notEqOperator", Le = "filter.isNullOperator", De = "filter.isNotNullOperator", tr = "filter.isEmptyOperator", rr = "filter.isNotEmptyOperator", nr = "filter.startsWithOperator", or = "filter.containsOperator", sr = "filter.notContainsOperator", ar = "filter.endsWithOperator", ir = "filter.gteOperator", lr = "filter.gtOperator", cr = "filter.lteOperator", ur = "filter.ltOperator", pr = "filter.isTrue", dr = "filter.isFalse", hr = "filter.afterOrEqualOperator", gr = "filter.afterOperator", fr = "filter.beforeOperator", mr = "filter.beforeOrEqualOperator", Ye = "filter.andLogic", Xe = "filter.orLogic", te = "filter.addExpression", re = "filter.addGroup", oe = "filter.close", Ue = "filter.groupAriaLabel", je = "filter.expressionAriaLabel", Ze = "filter.expressionDropdownAriaLabel", Je = "filter.expressionOperatorDropdownAriaLabel", Qe = "filter.enumFilterDropdownAriaLabel", et = "filter.numericFilterAriaLabel", tt = "filter.textFilterAriaLabel", rt = "columnMenu.filterClearButton", nt = "columnMenu.filterSubmitButton", ot = "columnMenu.filterTitle", st = "columnMenu.sortAscending", at = "columnMenu.sortDescending", we = "columnMenu.filterEqOperator", Oe = "columnMenu.filterNotEqOperator", Ne = "columnMenu.filterIsNullOperator", Ae = "columnMenu.filterIsNotNullOperator", vr = "columnMenu.filterIsEmptyOperator", Er = "columnMenu.filterIsNotEmptyOperator", Cr = "columnMenu.filterStartsWithOperator", xr = "columnMenu.filterContainsOperator", br = "columnMenu.filterNotContainsOperator", yr = "columnMenu.filterEndsWithOperator", Ir = "columnMenu.filterGteOperator", kr = "columnMenu.filterGtOperator", Sr = "columnMenu.filterLteOperator", Fr = "columnMenu.filterLtOperator", Rr = "columnMenu.filterIsTrue", Mr = "columnMenu.filterAfterOrEqualOperator", Lr = "columnMenu.filterAfterOperator", Dr = "columnMenu.filterBeforeOperator", wr = "columnMenu.filterBeforeOrEqualOperator", Or = "columnMenu.filterAndLogic", Nr = "columnMenu.filterOrLogic", it = "sort.ariaLabel", lt = "filter.ariaLabel", v = {
|
|
21
21
|
[ve]: "items per page",
|
|
22
|
-
[
|
|
22
|
+
[Sn]: "Select page",
|
|
23
23
|
[de]: "{0} - {1} of {2} items",
|
|
24
24
|
[he]: "Go to the first page",
|
|
25
25
|
[ge]: "Go to the previous page",
|
|
@@ -28,14 +28,14 @@ const de = "pager.info", he = "pager.firstPage", ge = "pager.previousPage", fe =
|
|
|
28
28
|
[V]: "Page",
|
|
29
29
|
[Ee]: "of",
|
|
30
30
|
[Ce]: "{0}",
|
|
31
|
-
[
|
|
31
|
+
[Fn]: "Page",
|
|
32
32
|
[xe]: "Enter ArrowRight ArrowLeft",
|
|
33
33
|
[be]: "Pager",
|
|
34
34
|
[ye]: "Page size",
|
|
35
35
|
[Ie]: "Select",
|
|
36
36
|
[ke]: "More pages",
|
|
37
|
-
[
|
|
38
|
-
[
|
|
37
|
+
[it]: "Sortable",
|
|
38
|
+
[lt]: "Filter",
|
|
39
39
|
[ie]: "Is equal to",
|
|
40
40
|
[le]: "Is not equal to",
|
|
41
41
|
[Le]: "Is null",
|
|
@@ -56,23 +56,23 @@ const de = "pager.info", he = "pager.firstPage", ge = "pager.previousPage", fe =
|
|
|
56
56
|
[gr]: "Is after",
|
|
57
57
|
[fr]: "Is before",
|
|
58
58
|
[mr]: "Is before or equal to",
|
|
59
|
-
[
|
|
60
|
-
[
|
|
59
|
+
[Ye]: "And",
|
|
60
|
+
[Xe]: "Or",
|
|
61
61
|
[te]: "Add Expression",
|
|
62
62
|
[re]: "Add Group",
|
|
63
63
|
[oe]: "Close",
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[rt]: "Filter",
|
|
64
|
+
[Ue]: "Filter toolbar",
|
|
65
|
+
[je]: "Filter expression row",
|
|
66
|
+
[Ze]: "Filter dropdown",
|
|
67
|
+
[Je]: "Filter operator dropdown",
|
|
68
|
+
[Qe]: "Select True/False",
|
|
69
|
+
[et]: "Enter number",
|
|
70
|
+
[tt]: "Enter text",
|
|
71
|
+
[rt]: "Clear",
|
|
73
72
|
[nt]: "Filter",
|
|
74
|
-
[ot]: "
|
|
75
|
-
[st]: "Sort
|
|
73
|
+
[ot]: "Filter",
|
|
74
|
+
[st]: "Sort Ascending",
|
|
75
|
+
[at]: "Sort Descending",
|
|
76
76
|
[we]: "Is equal to",
|
|
77
77
|
[Oe]: "Is not equal to",
|
|
78
78
|
[Ne]: "Is null",
|
|
@@ -94,8 +94,8 @@ const de = "pager.info", he = "pager.firstPage", ge = "pager.previousPage", fe =
|
|
|
94
94
|
[wr]: "Is before or equal to",
|
|
95
95
|
[Or]: "And",
|
|
96
96
|
[Nr]: "Or"
|
|
97
|
-
},
|
|
98
|
-
class
|
|
97
|
+
}, At = "...";
|
|
98
|
+
class Rn extends a.Component {
|
|
99
99
|
constructor() {
|
|
100
100
|
super(...arguments), this.handlePageChange = (t, r) => {
|
|
101
101
|
t.preventDefault(), this.props.pageChange(r, t);
|
|
@@ -130,7 +130,7 @@ class Mn extends a.Component {
|
|
|
130
130
|
className: _(
|
|
131
131
|
"k-picker k-dropdown-list k-dropdown k-rounded-md",
|
|
132
132
|
{
|
|
133
|
-
[`k-picker-${
|
|
133
|
+
[`k-picker-${$t.sizeMap[this.props.size] || this.props.size}`]: this.props.size
|
|
134
134
|
}
|
|
135
135
|
),
|
|
136
136
|
"aria-label": t.toLanguageString(r.messageKey, r.defaultMessage),
|
|
@@ -174,11 +174,11 @@ class Mn extends a.Component {
|
|
|
174
174
|
"aria-label": r,
|
|
175
175
|
onClick: (n) => this.handlePageChange(n, t)
|
|
176
176
|
},
|
|
177
|
-
|
|
177
|
+
At
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
180
|
renderOptionDots(t) {
|
|
181
|
-
return /* @__PURE__ */ a.createElement("option", { value: t },
|
|
181
|
+
return /* @__PURE__ */ a.createElement("option", { value: t }, At);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
class Ar extends a.Component {
|
|
@@ -188,7 +188,7 @@ class Ar extends a.Component {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
|
-
const t =
|
|
191
|
+
const t = Yt(this), r = q(this), n = this.props.messagesMap ? this.props.messagesMap(V) : { messageKey: V, defaultMessage: v[V] }, o = this.props.messagesMap ? this.props.messagesMap(Ee) : { messageKey: Ee, defaultMessage: v[Ee] }, s = this.props.messagesMap ? this.props.messagesMap(Ce) : { messageKey: Ce, defaultMessage: v[Ce] };
|
|
192
192
|
return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("span", { className: "k-pager-input" }, /* @__PURE__ */ a.createElement("span", null, r.toLanguageString(n.messageKey, n.defaultMessage)), /* @__PURE__ */ a.createElement(
|
|
193
193
|
Me,
|
|
194
194
|
{
|
|
@@ -226,14 +226,14 @@ class Pr extends a.Component {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
$(Pr);
|
|
229
|
-
const
|
|
229
|
+
const vt = {
|
|
230
230
|
name: "@progress/kendo-react-data-tools",
|
|
231
231
|
productName: "KendoReact",
|
|
232
232
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
233
|
-
publishDate:
|
|
233
|
+
publishDate: 1705499452,
|
|
234
234
|
version: "",
|
|
235
235
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
236
|
-
},
|
|
236
|
+
}, Pt = 600, Mn = 768;
|
|
237
237
|
class Pe extends a.Component {
|
|
238
238
|
constructor(t) {
|
|
239
239
|
super(t), this._element = null, this.onPageChange = (r, n) => {
|
|
@@ -259,8 +259,8 @@ class Pe extends a.Component {
|
|
|
259
259
|
if (!r || !this.props.responsive)
|
|
260
260
|
return;
|
|
261
261
|
const n = r.offsetWidth;
|
|
262
|
-
n <
|
|
263
|
-
},
|
|
262
|
+
n < Pt ? this.setState({ showPagerSizes: !1 }) : n >= Pt && n < Mn ? this.setState({ showPagerInfo: !1, showPagerSizes: !0 }) : this.setState({ showPagerInfo: !0, showPagerSizes: !0 });
|
|
263
|
+
}, ht(vt), this.state = { showPagerSizes: !0, showPagerInfo: !0 };
|
|
264
264
|
}
|
|
265
265
|
get isRtl() {
|
|
266
266
|
return this.props.dir === "rtl";
|
|
@@ -287,8 +287,8 @@ class Pe extends a.Component {
|
|
|
287
287
|
* @hidden
|
|
288
288
|
*/
|
|
289
289
|
render() {
|
|
290
|
-
const { showPagerSizes: t, showPagerInfo: r } = this.state, { skip: n, take: o, total: s, pageSizes: i, size: l, responsive: c, messagesMap: u, pageSizeValue: p } = this.props, f = q(this), m =
|
|
291
|
-
|
|
290
|
+
const { showPagerSizes: t, showPagerInfo: r } = this.state, { skip: n, take: o, total: s, pageSizes: i, size: l, responsive: c, messagesMap: u, pageSizeValue: p } = this.props, f = q(this), m = Yt(this), h = Math.floor(n / o) + 1, C = this.props.type === "numeric" ? /* @__PURE__ */ a.createElement(
|
|
291
|
+
Rn,
|
|
292
292
|
{
|
|
293
293
|
type: c && !t ? "dropdown" : "numbers",
|
|
294
294
|
buttonCount: this.props.buttonCount || 0,
|
|
@@ -315,28 +315,28 @@ class Pe extends a.Component {
|
|
|
315
315
|
"k-pager-nav k-pager-first" + (h === 1 ? " k-disabled" : ""),
|
|
316
316
|
f.toLanguageString(b.messageKey, b.defaultMessage),
|
|
317
317
|
this.isRtl ? "caret-alt-to-right" : "caret-alt-to-left",
|
|
318
|
-
this.isRtl ?
|
|
318
|
+
this.isRtl ? Dt : wt,
|
|
319
319
|
h === 1 ? !0 : void 0
|
|
320
320
|
), S = this.renderButton(
|
|
321
321
|
h - 1,
|
|
322
322
|
"k-pager-nav" + (h === 1 ? " k-disabled" : ""),
|
|
323
323
|
f.toLanguageString(x.messageKey, x.defaultMessage),
|
|
324
324
|
this.isRtl ? "caret-alt-right" : "caret-alt-left",
|
|
325
|
-
this.isRtl ?
|
|
325
|
+
this.isRtl ? Ot : Nt,
|
|
326
326
|
h === 1 ? !0 : void 0
|
|
327
327
|
), w = this.renderButton(
|
|
328
328
|
h + 1,
|
|
329
329
|
"k-pager-nav" + (h >= this.totalPages ? " k-disabled" : ""),
|
|
330
330
|
f.toLanguageString(g.messageKey, g.defaultMessage),
|
|
331
331
|
this.isRtl ? "caret-alt-left" : "caret-alt-right",
|
|
332
|
-
this.isRtl ?
|
|
332
|
+
this.isRtl ? Nt : Ot,
|
|
333
333
|
h >= this.totalPages ? !0 : void 0
|
|
334
334
|
), P = this.renderButton(
|
|
335
335
|
this.totalPages,
|
|
336
336
|
"k-pager-nav k-pager-last" + (h >= this.totalPages ? " k-disabled" : ""),
|
|
337
337
|
f.toLanguageString(I.messageKey, I.defaultMessage),
|
|
338
338
|
this.isRtl ? "caret-alt-to-left" : "caret-alt-to-right",
|
|
339
|
-
this.isRtl ?
|
|
339
|
+
this.isRtl ? wt : Dt,
|
|
340
340
|
h >= this.totalPages ? !0 : void 0
|
|
341
341
|
));
|
|
342
342
|
const T = i && /* @__PURE__ */ a.createElement(
|
|
@@ -360,7 +360,7 @@ class Pe extends a.Component {
|
|
|
360
360
|
className: _(
|
|
361
361
|
"k-pager",
|
|
362
362
|
{
|
|
363
|
-
[`k-pager-${
|
|
363
|
+
[`k-pager-${$t.sizeMap[l] || l}`]: l
|
|
364
364
|
},
|
|
365
365
|
this.props.className
|
|
366
366
|
),
|
|
@@ -465,7 +465,7 @@ const Te = (e) => class extends a.Component {
|
|
|
465
465
|
onChange: this.operatorChange,
|
|
466
466
|
className: "k-dropdown-operator",
|
|
467
467
|
iconClassName: "k-i-filter",
|
|
468
|
-
svgIcon:
|
|
468
|
+
svgIcon: Ve,
|
|
469
469
|
data: o,
|
|
470
470
|
textField: "text",
|
|
471
471
|
popupSettings: { width: "" },
|
|
@@ -493,8 +493,8 @@ const Te = (e) => class extends a.Component {
|
|
|
493
493
|
}
|
|
494
494
|
))));
|
|
495
495
|
}
|
|
496
|
-
},
|
|
497
|
-
emptyFilter: { operator:
|
|
496
|
+
}, Tt = "eq", Ln = {
|
|
497
|
+
emptyFilter: { operator: Tt, value: "" },
|
|
498
498
|
inputComponent: (e) => null,
|
|
499
499
|
operatorComponent: function(e, t) {
|
|
500
500
|
const { filter: r = [], field: n } = t, o = r.find((s) => s.field === n);
|
|
@@ -515,7 +515,7 @@ const Te = (e) => class extends a.Component {
|
|
|
515
515
|
});
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
|
-
let l = o ? r.map((c) => c.field === n ? { ...o, value: i } : c) : [...r, { value: i, field: n, operator:
|
|
518
|
+
let l = o ? r.map((c) => c.field === n ? { ...o, value: i } : c) : [...r, { value: i, field: n, operator: Tt }];
|
|
519
519
|
t.onFilterChange.call(void 0, {
|
|
520
520
|
filter: l,
|
|
521
521
|
field: n,
|
|
@@ -526,37 +526,37 @@ const Te = (e) => class extends a.Component {
|
|
|
526
526
|
);
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
class
|
|
529
|
+
class ts extends Te(Ln) {
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
inputComponent: (e) => /* @__PURE__ */ a.createElement(
|
|
531
|
+
const Dn = {
|
|
532
|
+
inputComponent: (e) => /* @__PURE__ */ a.createElement(mt, { ...e }),
|
|
533
533
|
operatorComponent: (e) => /* @__PURE__ */ a.createElement(G, { ...e }),
|
|
534
534
|
emptyFilter: { operator: "eq", value: null }
|
|
535
535
|
};
|
|
536
|
-
class
|
|
536
|
+
class rs extends Te(Dn) {
|
|
537
537
|
}
|
|
538
|
-
const
|
|
538
|
+
const wn = {
|
|
539
539
|
inputComponent: (e) => /* @__PURE__ */ a.createElement(Me, { ...e }),
|
|
540
540
|
operatorComponent: (e) => /* @__PURE__ */ a.createElement(G, { ...e }),
|
|
541
541
|
emptyFilter: { operator: "eq", value: null }
|
|
542
542
|
};
|
|
543
|
-
class
|
|
543
|
+
class ns extends Te(wn) {
|
|
544
544
|
}
|
|
545
|
-
const
|
|
546
|
-
inputComponent: (e) => /* @__PURE__ */ a.createElement(
|
|
545
|
+
const On = {
|
|
546
|
+
inputComponent: (e) => /* @__PURE__ */ a.createElement(Xt, { ...e }),
|
|
547
547
|
operatorComponent: (e) => /* @__PURE__ */ a.createElement(G, { ...e }),
|
|
548
548
|
emptyFilter: { operator: "contains", value: "" }
|
|
549
549
|
};
|
|
550
|
-
class
|
|
550
|
+
class os extends Te(On) {
|
|
551
551
|
}
|
|
552
|
-
const
|
|
552
|
+
const Nn = {
|
|
553
553
|
filterable: !0,
|
|
554
554
|
editable: !0,
|
|
555
555
|
sortable: !0,
|
|
556
556
|
resizable: !0,
|
|
557
557
|
reorderable: !0,
|
|
558
558
|
groupable: !0
|
|
559
|
-
}, X = "data-keyboardnavlevel", Tr = "data-keyboardnavscope", Br = "data-keyboardnavheader", Kr = "data-keyboardnavbody", Be = "data-keyboardnavid",
|
|
559
|
+
}, X = "data-keyboardnavlevel", Tr = "data-keyboardnavscope", Br = "data-keyboardnavheader", Kr = "data-keyboardnavbody", Be = "data-keyboardnavid", ss = "data-keyboardnavzone", An = "_filter", qr = [
|
|
560
560
|
"input:not([disabled]):not([type=hidden])",
|
|
561
561
|
"select:not([disabled])",
|
|
562
562
|
"textarea:not([disabled])",
|
|
@@ -570,22 +570,22 @@ const An = {
|
|
|
570
570
|
"audio[controls]",
|
|
571
571
|
"video[controls]",
|
|
572
572
|
"[contenteditable]"
|
|
573
|
-
],
|
|
573
|
+
], Et = [...qr, "[tabindex]"], Pn = [...qr, "[tabindex]"].map((e) => e + ':not([tabindex="-1"])'), as = {
|
|
574
574
|
[Tr]: !0
|
|
575
|
-
},
|
|
575
|
+
}, Tn = {
|
|
576
576
|
[Br]: !0
|
|
577
|
-
},
|
|
577
|
+
}, is = {
|
|
578
578
|
[Kr]: !0
|
|
579
579
|
}, zr = a.createContext(void 0);
|
|
580
580
|
zr.displayName = "KendoReactTableKeyboardNavigationContext";
|
|
581
|
-
const
|
|
581
|
+
const Bn = (e, t) => {
|
|
582
582
|
const r = a.useContext(zr);
|
|
583
583
|
return !r || !e || t === !1 ? {} : {
|
|
584
584
|
tabIndex: r && r.activeId && r.activeId === e ? 0 : -1,
|
|
585
585
|
[X]: r.level,
|
|
586
586
|
[Be]: e
|
|
587
587
|
};
|
|
588
|
-
},
|
|
588
|
+
}, Ct = (e) => {
|
|
589
589
|
const {
|
|
590
590
|
ariaSort: t,
|
|
591
591
|
colSpan: r,
|
|
@@ -599,7 +599,7 @@ const Kn = (e, t) => {
|
|
|
599
599
|
ariaLabel: p,
|
|
600
600
|
role: f,
|
|
601
601
|
ariaSelected: m
|
|
602
|
-
} = e, h =
|
|
602
|
+
} = e, h = Bn(i, c);
|
|
603
603
|
return /* @__PURE__ */ a.createElement(
|
|
604
604
|
"th",
|
|
605
605
|
{
|
|
@@ -618,32 +618,32 @@ const Kn = (e, t) => {
|
|
|
618
618
|
e.children
|
|
619
619
|
);
|
|
620
620
|
};
|
|
621
|
-
|
|
622
|
-
const Gr = (e, t, r = "cell") => `${t}_${e}_${r}`,
|
|
621
|
+
Ct.displayName = "KendoReactHeaderThElement";
|
|
622
|
+
const Gr = (e, t, r = "cell") => `${t}_${e}_${r}`, Kn = (e) => {
|
|
623
623
|
if (e)
|
|
624
624
|
return parseInt(e.getAttribute(X) || "", 10);
|
|
625
|
-
},
|
|
625
|
+
}, xt = (e) => {
|
|
626
626
|
if (!e)
|
|
627
627
|
return;
|
|
628
628
|
const t = e.getAttribute(Be);
|
|
629
629
|
return t || void 0;
|
|
630
|
-
},
|
|
631
|
-
let r = t.focusable ?
|
|
630
|
+
}, ct = (e) => e ? !!e.getAttribute(Be) : !1, qn = (e, t = { level: 0 }) => e.querySelector(`[${X}='${t.level}']`), zn = (e) => e.parentElement && e.parentElement.closest(`[${X}]`), Gn = (e, t) => e.querySelector(`[${Be}='${t}']`), _n = (e) => e.parentElement && e.parentElement.closest(`[${Tr}]`), _r = (e) => e.querySelector(`[${Br}]`), $r = (e) => e.querySelector(`[${Kr}]`), $n = (e, t = { focusable: !1 }) => {
|
|
631
|
+
let r = t.focusable ? Et : Pn;
|
|
632
632
|
return Array.from(e.querySelectorAll(r.join(",")));
|
|
633
|
-
},
|
|
633
|
+
}, Wn = (e, t = { level: 0 }) => {
|
|
634
634
|
if (!e)
|
|
635
635
|
return [];
|
|
636
|
-
let r =
|
|
636
|
+
let r = Et.map((n) => n + `[${X}='${t.level}']`).join(",");
|
|
637
637
|
return Array.from(e.querySelectorAll(r));
|
|
638
|
-
},
|
|
639
|
-
let t =
|
|
638
|
+
}, Hn = (e = { level: 0 }) => {
|
|
639
|
+
let t = Et.map(
|
|
640
640
|
(r) => r + `[${X}='${e.level}']`
|
|
641
641
|
).join(",");
|
|
642
642
|
return (r) => r.matches(t);
|
|
643
|
-
},
|
|
643
|
+
}, Vn = (e) => {
|
|
644
644
|
const { elementForFocus: t, event: r, contextStateRef: n, prevElement: o } = e;
|
|
645
|
-
n.current && t && t.focus && (r.preventDefault(), t.focus(),
|
|
646
|
-
},
|
|
645
|
+
n.current && t && t.focus && (r.preventDefault(), t.focus(), ct(t) && (t.setAttribute("tabIndex", "0"), n.current.activeId = xt(t)), o && ct(o) && o.setAttribute("tabIndex", "-1"));
|
|
646
|
+
}, Yn = (e) => e.current ? e.current.idPrefix : "", Wr = (e, t, r, n, o) => {
|
|
647
647
|
if (!r)
|
|
648
648
|
return [];
|
|
649
649
|
let s = e + (o ? -1 : 1);
|
|
@@ -665,57 +665,57 @@ const Gr = (e, t, r = "cell") => `${t}_${e}_${r}`, qn = (e) => {
|
|
|
665
665
|
s = s + (o ? -1 : 1);
|
|
666
666
|
}
|
|
667
667
|
return [];
|
|
668
|
-
},
|
|
668
|
+
}, ut = (e, t) => {
|
|
669
669
|
if (t) {
|
|
670
670
|
for (let r = 0; r < e.length; r++)
|
|
671
671
|
for (let n = 0; n < e[r].length; n++)
|
|
672
672
|
if (e[r][n] === t)
|
|
673
673
|
return [r, n];
|
|
674
674
|
}
|
|
675
|
-
},
|
|
675
|
+
}, Xn = (e) => e.current ? e.current.navigationMatrix.length : 0, Vr = (e) => e ? `${e}${An}` : "", M = {
|
|
676
676
|
generateNavigatableId: Gr,
|
|
677
|
-
getNavigatableId:
|
|
678
|
-
getNavigatableLevel:
|
|
679
|
-
getNavigatableElement:
|
|
680
|
-
getClosestNavigatableElement:
|
|
681
|
-
getActiveElement:
|
|
682
|
-
getClosestScope:
|
|
677
|
+
getNavigatableId: xt,
|
|
678
|
+
getNavigatableLevel: Kn,
|
|
679
|
+
getNavigatableElement: qn,
|
|
680
|
+
getClosestNavigatableElement: zn,
|
|
681
|
+
getActiveElement: Gn,
|
|
682
|
+
getClosestScope: _n,
|
|
683
683
|
getHeaderElement: _r,
|
|
684
684
|
getBodyElement: $r,
|
|
685
|
-
getFocusableElements:
|
|
686
|
-
getNavigatableElements:
|
|
687
|
-
filterNavigatableElements:
|
|
688
|
-
focusElement:
|
|
689
|
-
getIdPrefix:
|
|
690
|
-
isNavigatable:
|
|
685
|
+
getFocusableElements: $n,
|
|
686
|
+
getNavigatableElements: Wn,
|
|
687
|
+
filterNavigatableElements: Hn,
|
|
688
|
+
focusElement: Vn,
|
|
689
|
+
getIdPrefix: Yn,
|
|
690
|
+
isNavigatable: ct,
|
|
691
691
|
findNextIdByRowIndex: Wr,
|
|
692
692
|
findNextIdByCellIndex: Hr,
|
|
693
|
-
findId:
|
|
694
|
-
getNextNavigationIndex:
|
|
693
|
+
findId: ut,
|
|
694
|
+
getNextNavigationIndex: Xn,
|
|
695
695
|
getFilterColumnId: Vr
|
|
696
|
-
},
|
|
696
|
+
}, Un = "k-table-row k-filter-row", jn = (e, t, r) => {
|
|
697
697
|
let n = `${r ? "k-grid-header-sticky" : ""}`;
|
|
698
698
|
return e.some((o) => o.field === t) && (n += " k-sorted"), n;
|
|
699
|
-
},
|
|
699
|
+
}, ls = function(e) {
|
|
700
700
|
const { columns: t, filter: r, filterChange: n, sort: o = [], ariaRowIndex: s } = e, i = Y();
|
|
701
|
-
return /* @__PURE__ */ a.createElement("tr", { className:
|
|
701
|
+
return /* @__PURE__ */ a.createElement("tr", { className: Un, "aria-rowindex": s, role: "row" }, t.map((l, c) => {
|
|
702
702
|
const u = l.locked !== void 0 ? {
|
|
703
703
|
left: l.left,
|
|
704
704
|
right: l.right,
|
|
705
705
|
borderRightWidth: l.rightBorder ? "1px" : ""
|
|
706
706
|
} : {}, p = l.filterCell || l.filter;
|
|
707
707
|
return /* @__PURE__ */ a.createElement(
|
|
708
|
-
|
|
708
|
+
Ct,
|
|
709
709
|
{
|
|
710
710
|
columnId: Vr(l.id),
|
|
711
711
|
navigatable: l.navigatable,
|
|
712
712
|
style: u,
|
|
713
713
|
key: c,
|
|
714
714
|
ariaColumnIndex: l.ariaColumnIndex,
|
|
715
|
-
ariaLabel: p ? i.toLanguageString(
|
|
715
|
+
ariaLabel: p ? i.toLanguageString(lt, v[lt]) : void 0,
|
|
716
716
|
className: _(
|
|
717
717
|
"k-table-th k-header",
|
|
718
|
-
|
|
718
|
+
jn(o, l.field, l.locked)
|
|
719
719
|
)
|
|
720
720
|
},
|
|
721
721
|
p && /* @__PURE__ */ a.createElement(
|
|
@@ -729,7 +729,7 @@ const Gr = (e, t, r = "cell") => `${t}_${e}_${r}`, qn = (e) => {
|
|
|
729
729
|
);
|
|
730
730
|
}));
|
|
731
731
|
};
|
|
732
|
-
function
|
|
732
|
+
function Zn(e, t) {
|
|
733
733
|
const r = e[t].depth;
|
|
734
734
|
let n = null;
|
|
735
735
|
for (let o = t + 1; o < e.length; o++)
|
|
@@ -739,11 +739,11 @@ function Jn(e, t) {
|
|
|
739
739
|
}
|
|
740
740
|
return n;
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const bt = (e) => {
|
|
743
743
|
let t = e.width ? parseFloat(e.width.toString()) : 0;
|
|
744
|
-
return !t && e.children && e.children.length && (t = e.children.reduce((r, n) =>
|
|
744
|
+
return !t && e.children && e.children.length && (t = e.children.reduce((r, n) => bt(n) + r, 0)), t;
|
|
745
745
|
};
|
|
746
|
-
function
|
|
746
|
+
function cs(e) {
|
|
747
747
|
const t = [[]];
|
|
748
748
|
let r = 0;
|
|
749
749
|
for (let s = e.length - 1; s >= 0; s--)
|
|
@@ -756,45 +756,45 @@ function us(e) {
|
|
|
756
756
|
t[s.depth].length === 0 && (o <= 1 ? o = 1 + (s.children.length > 0 ? 0 : r - s.depth) : (o--, l = !0)), s.rowSpan = 1 + (s.children.length > 0 ? 0 : r - s.depth), s.kFirst = l, s.index = t[s.depth].length, t[s.depth].push(i), s.ariaColumnIndex = n[s.depth] ? n[s.depth] + 1 : 1;
|
|
757
757
|
for (let c = s.depth; c < s.depth + s.rowSpan; c++)
|
|
758
758
|
n[c] = (n[c] || 0) + s.colSpan;
|
|
759
|
-
}),
|
|
759
|
+
}), Jn(t, e), Qn(t, e), t;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Jn(e, t, r) {
|
|
762
762
|
let n = new Array(e.length).fill(0), o = 0;
|
|
763
763
|
t.forEach((s) => {
|
|
764
764
|
if (s.locked && (!s.left || r))
|
|
765
|
-
if (s.left = n[s.depth], o =
|
|
765
|
+
if (s.left = n[s.depth], o = bt(s), s.children.length === 0)
|
|
766
766
|
for (let i = s.depth; i < n.length; i++)
|
|
767
767
|
n[i] += o;
|
|
768
768
|
else
|
|
769
769
|
n[s.depth] += o;
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Qn(e, t, r) {
|
|
773
773
|
let n = 0, o = new Array(e.length).fill(0);
|
|
774
774
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
775
775
|
const i = t[s];
|
|
776
776
|
if (i.locked && (!i.right || r)) {
|
|
777
|
-
if (i.right = o[i.depth], n =
|
|
777
|
+
if (i.right = o[i.depth], n = bt(i), i.children.length === 0)
|
|
778
778
|
for (let c = i.depth; c < o.length; c++)
|
|
779
779
|
o[c] += n;
|
|
780
780
|
else
|
|
781
781
|
o[i.depth] += n;
|
|
782
|
-
const l =
|
|
782
|
+
const l = Zn(t, s);
|
|
783
783
|
i.rightBorder = !(l && l.locked);
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function eo(e, t, r = 0) {
|
|
788
788
|
let n = [];
|
|
789
789
|
if (!e || !e.length)
|
|
790
790
|
return [];
|
|
791
791
|
e.forEach((s) => {
|
|
792
|
-
const i =
|
|
792
|
+
const i = eo(s.children || [], t, r + 1);
|
|
793
793
|
n.push(
|
|
794
794
|
Object.assign(
|
|
795
795
|
{},
|
|
796
796
|
{ depth: r },
|
|
797
|
-
|
|
797
|
+
Nn,
|
|
798
798
|
s,
|
|
799
799
|
{
|
|
800
800
|
id: s.id ? s.id : Gr(`${t.prevId++}`, t.idPrefix, "column"),
|
|
@@ -817,10 +817,10 @@ function to(e, t, r = 0) {
|
|
|
817
817
|
}
|
|
818
818
|
return n;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function to(e) {
|
|
821
821
|
return !!(e && getComputedStyle(e).direction === "rtl");
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Bt(e, t) {
|
|
824
824
|
if (!t || !e || !e.originalEvent)
|
|
825
825
|
return -1;
|
|
826
826
|
const r = { x: e.clientX, y: e.originalEvent.clientY };
|
|
@@ -840,13 +840,13 @@ function Tt(e, t) {
|
|
|
840
840
|
return s;
|
|
841
841
|
return -1;
|
|
842
842
|
}
|
|
843
|
-
class
|
|
843
|
+
class us extends a.Component {
|
|
844
844
|
constructor() {
|
|
845
845
|
super(...arguments), this.element = null;
|
|
846
846
|
}
|
|
847
847
|
componentDidMount() {
|
|
848
848
|
const { columnResize: t } = this.props;
|
|
849
|
-
t && t.resizable && t.setIsRtl(
|
|
849
|
+
t && t.resizable && t.setIsRtl(to(this.element));
|
|
850
850
|
}
|
|
851
851
|
render() {
|
|
852
852
|
return /* @__PURE__ */ a.createElement(
|
|
@@ -855,21 +855,21 @@ class ps extends a.Component {
|
|
|
855
855
|
className: "k-table-thead k-grid-header",
|
|
856
856
|
role: "presentation",
|
|
857
857
|
ref: (t) => this.element = t,
|
|
858
|
-
...
|
|
858
|
+
...Tn
|
|
859
859
|
},
|
|
860
860
|
this.props.headerRow,
|
|
861
861
|
this.props.filterRow
|
|
862
862
|
);
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function ro(e) {
|
|
866
866
|
const t = e.onClick ? {
|
|
867
867
|
onClick: e.onClick
|
|
868
868
|
} : {}, r = /* @__PURE__ */ a.createElement("span", { className: "k-link", ...t }, /* @__PURE__ */ a.createElement("span", { className: "k-column-title" }, e.title || e.field || " "), e.children);
|
|
869
869
|
return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, r, e) : r);
|
|
870
870
|
}
|
|
871
|
-
const
|
|
872
|
-
class
|
|
871
|
+
const no = (...e) => Object.assign({ allowUnsort: !0, mode: "single" }, ...e);
|
|
872
|
+
class oo extends a.Component {
|
|
873
873
|
constructor() {
|
|
874
874
|
super(...arguments), this.draggable = null, this.isDragged = !1, this.onDrag = (t) => {
|
|
875
875
|
this.isDragged = !0;
|
|
@@ -889,7 +889,7 @@ class so extends a.Component {
|
|
|
889
889
|
}
|
|
890
890
|
render() {
|
|
891
891
|
return /* @__PURE__ */ a.createElement(
|
|
892
|
-
|
|
892
|
+
gt,
|
|
893
893
|
{
|
|
894
894
|
onPress: (t) => {
|
|
895
895
|
t.event.originalEvent.stopPropagation();
|
|
@@ -912,7 +912,7 @@ class so extends a.Component {
|
|
|
912
912
|
);
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
class
|
|
915
|
+
class so extends a.PureComponent {
|
|
916
916
|
constructor() {
|
|
917
917
|
super(...arguments), this.draggable = null, this.onPress = (t) => {
|
|
918
918
|
const r = this.draggable && this.draggable.element;
|
|
@@ -926,7 +926,7 @@ class ao extends a.PureComponent {
|
|
|
926
926
|
}
|
|
927
927
|
render() {
|
|
928
928
|
return /* @__PURE__ */ a.createElement(
|
|
929
|
-
|
|
929
|
+
gt,
|
|
930
930
|
{
|
|
931
931
|
onPress: this.onPress,
|
|
932
932
|
onDrag: this.onDrag,
|
|
@@ -939,20 +939,20 @@ class ao extends a.PureComponent {
|
|
|
939
939
|
);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
const
|
|
942
|
+
const ao = {
|
|
943
943
|
true: { asc: "desc", desc: "", "": "asc" },
|
|
944
944
|
false: { asc: "desc", desc: "asc", "": "asc" }
|
|
945
|
-
},
|
|
945
|
+
}, io = {
|
|
946
946
|
none: "none",
|
|
947
947
|
asc: "ascending",
|
|
948
948
|
desc: "descending"
|
|
949
949
|
};
|
|
950
|
-
class
|
|
950
|
+
class lo extends a.Component {
|
|
951
951
|
constructor() {
|
|
952
952
|
super(...arguments), this.cellClick = (t, r) => {
|
|
953
953
|
if (t.preventDefault(), !this.props.sortChange)
|
|
954
954
|
return;
|
|
955
|
-
const { allowUnsort: n, mode: o } =
|
|
955
|
+
const { allowUnsort: n, mode: o } = no(this.props.sortable || !1, r.sortable || !1), s = (this.props.sort || []).filter((c) => c.field === r.field)[0], i = ao[n][s && s.dir || ""], l = o === "single" ? [] : (this.props.sort || []).filter((c) => c.field !== r.field);
|
|
956
956
|
i !== "" && r.field && l.push({ field: r.field, dir: i }), this.props.sortChange(t, l, r.field);
|
|
957
957
|
}, this.cellKeyDown = (t, r) => {
|
|
958
958
|
t.isDefaultPrevented() || t.keyCode === B.enter && this.cellClick(t, r);
|
|
@@ -991,9 +991,9 @@ class co extends a.Component {
|
|
|
991
991
|
left: o.left,
|
|
992
992
|
right: o.right,
|
|
993
993
|
borderRightWidth: o.rightBorder ? "1px" : ""
|
|
994
|
-
} : {}, b = q(this).toLanguageString(
|
|
994
|
+
} : {}, b = q(this).toLanguageString(it, v[it]);
|
|
995
995
|
let x = o.isAccessible ? {
|
|
996
|
-
ariaSort: l ?
|
|
996
|
+
ariaSort: l ? io[u] : void 0,
|
|
997
997
|
role: "columnheader",
|
|
998
998
|
ariaColumnIndex: o.ariaColumnIndex,
|
|
999
999
|
ariaSelected: !1,
|
|
@@ -1002,7 +1002,7 @@ class co extends a.Component {
|
|
|
1002
1002
|
role: "presentation"
|
|
1003
1003
|
};
|
|
1004
1004
|
return /* @__PURE__ */ a.createElement(
|
|
1005
|
-
|
|
1005
|
+
Ct,
|
|
1006
1006
|
{
|
|
1007
1007
|
key: n,
|
|
1008
1008
|
colSpan: o.colSpan,
|
|
@@ -1015,9 +1015,9 @@ class co extends a.Component {
|
|
|
1015
1015
|
...x
|
|
1016
1016
|
},
|
|
1017
1017
|
o.headerCell && /* @__PURE__ */ a.createElement(o.headerCell, { ...f }),
|
|
1018
|
-
!o.headerCell && /* @__PURE__ */ a.createElement("span", { className: "k-cell-inner" }, /* @__PURE__ */ a.createElement(
|
|
1018
|
+
!o.headerCell && /* @__PURE__ */ a.createElement("span", { className: "k-cell-inner" }, /* @__PURE__ */ a.createElement(ro, { ...f }), m && /* @__PURE__ */ a.createElement(m, { ...p })),
|
|
1019
1019
|
s && i && /* @__PURE__ */ a.createElement(
|
|
1020
|
-
|
|
1020
|
+
oo,
|
|
1021
1021
|
{
|
|
1022
1022
|
key: "ColumnResizer",
|
|
1023
1023
|
resize: (g, I, F) => s.dragHandler(g, o, I, F)
|
|
@@ -1037,7 +1037,7 @@ class co extends a.Component {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
render() {
|
|
1039
1039
|
return this.props.columnsMap.map((t, r) => this.props.pressHandler && /* @__PURE__ */ a.createElement(
|
|
1040
|
-
|
|
1040
|
+
so,
|
|
1041
1041
|
{
|
|
1042
1042
|
key: r,
|
|
1043
1043
|
pressHandler: this.props.pressHandler,
|
|
@@ -1049,8 +1049,8 @@ class co extends a.Component {
|
|
|
1049
1049
|
) || /* @__PURE__ */ a.createElement("tr", { className: "k-table-row", "aria-rowindex": r + 1, role: "row" }, this.cells(t)));
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
$(
|
|
1053
|
-
function
|
|
1052
|
+
$(lo);
|
|
1053
|
+
function ps(e) {
|
|
1054
1054
|
const t = [
|
|
1055
1055
|
/* @__PURE__ */ a.createElement(
|
|
1056
1056
|
"input",
|
|
@@ -1070,7 +1070,7 @@ function ds(e) {
|
|
|
1070
1070
|
];
|
|
1071
1071
|
return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, t, e) : t);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function ds(e) {
|
|
1074
1074
|
const { enabled: t, columns: r = [], tableViewPortWidth: n, scrollLeft: o } = e, s = r.map(() => 1), i = r.map(() => !1);
|
|
1075
1075
|
if (!t)
|
|
1076
1076
|
return { colSpans: s, hiddenColumns: i };
|
|
@@ -1102,7 +1102,7 @@ function hs(e) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
return { colSpans: s, hiddenColumns: i };
|
|
1104
1104
|
}
|
|
1105
|
-
class
|
|
1105
|
+
class hs {
|
|
1106
1106
|
constructor(t) {
|
|
1107
1107
|
this.columns = [], this.resizable = !1, this.isRtl = !1, this.setIsRtl = (r) => {
|
|
1108
1108
|
this.isRtl = r;
|
|
@@ -1149,7 +1149,7 @@ class gs {
|
|
|
1149
1149
|
t && (t.style.width = r + "px");
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
|
-
class
|
|
1152
|
+
class gs {
|
|
1153
1153
|
constructor(t, r, n) {
|
|
1154
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
1155
|
this.groupPanelDivElement = o;
|
|
@@ -1181,7 +1181,7 @@ class fs {
|
|
|
1181
1181
|
getColumnIndex(t, r) {
|
|
1182
1182
|
if (!r || r.parentElement === this.groupPanelDivElement)
|
|
1183
1183
|
return -1;
|
|
1184
|
-
const n =
|
|
1184
|
+
const n = Bt(t, r);
|
|
1185
1185
|
if (n === -1)
|
|
1186
1186
|
return -1;
|
|
1187
1187
|
for (let o = 0; o < r.parentNode.children.length; o++)
|
|
@@ -1190,7 +1190,7 @@ class fs {
|
|
|
1190
1190
|
return -1;
|
|
1191
1191
|
}
|
|
1192
1192
|
getGroupIndex(t) {
|
|
1193
|
-
return
|
|
1193
|
+
return Bt(t, this.groupPanelDivElement);
|
|
1194
1194
|
}
|
|
1195
1195
|
isValid() {
|
|
1196
1196
|
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;
|
|
@@ -1226,7 +1226,7 @@ class fs {
|
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
class
|
|
1229
|
+
class fs extends a.PureComponent {
|
|
1230
1230
|
constructor(t) {
|
|
1231
1231
|
super(t), this.elementRef = a.createRef(), this.state = {
|
|
1232
1232
|
visible: !1,
|
|
@@ -1240,7 +1240,7 @@ class ms extends a.PureComponent {
|
|
|
1240
1240
|
return this.elementRef.current;
|
|
1241
1241
|
}
|
|
1242
1242
|
render() {
|
|
1243
|
-
const t = this.hiddenElementRef.current, { status: r } = this.state, n = this.state.visible &&
|
|
1243
|
+
const t = this.hiddenElementRef.current, { status: r } = this.state, n = this.state.visible && Wt && Jt(
|
|
1244
1244
|
/* @__PURE__ */ a.createElement(
|
|
1245
1245
|
"div",
|
|
1246
1246
|
{
|
|
@@ -1263,7 +1263,7 @@ class ms extends a.PureComponent {
|
|
|
1263
1263
|
return /* @__PURE__ */ a.createElement(a.Fragment, null, n, /* @__PURE__ */ a.createElement("div", { ref: this.hiddenElementRef, style: { display: "none" } }));
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
class
|
|
1266
|
+
class ms extends a.PureComponent {
|
|
1267
1267
|
constructor(t) {
|
|
1268
1268
|
super(t), this.state = {
|
|
1269
1269
|
height: 0,
|
|
@@ -1273,7 +1273,7 @@ class vs extends a.PureComponent {
|
|
|
1273
1273
|
}, this.hiddenElementRef = a.createRef();
|
|
1274
1274
|
}
|
|
1275
1275
|
render() {
|
|
1276
|
-
const t = this.hiddenElementRef.current, r = this.state.visible &&
|
|
1276
|
+
const t = this.hiddenElementRef.current, r = this.state.visible && Wt && Jt(
|
|
1277
1277
|
/* @__PURE__ */ a.createElement(
|
|
1278
1278
|
"div",
|
|
1279
1279
|
{
|
|
@@ -1304,7 +1304,7 @@ class Yr extends a.Component {
|
|
|
1304
1304
|
* @hidden
|
|
1305
1305
|
*/
|
|
1306
1306
|
render() {
|
|
1307
|
-
const t = q(this), { ariaLabel: r = t.toLanguageString(
|
|
1307
|
+
const t = q(this), { ariaLabel: r = t.toLanguageString(tt, v[tt]) } = this.props;
|
|
1308
1308
|
return /* @__PURE__ */ a.createElement(
|
|
1309
1309
|
gn,
|
|
1310
1310
|
{
|
|
@@ -1337,7 +1337,7 @@ class Xr extends a.Component {
|
|
|
1337
1337
|
min: r,
|
|
1338
1338
|
max: n,
|
|
1339
1339
|
filter: o,
|
|
1340
|
-
ariaLabel: s = t.toLanguageString(
|
|
1340
|
+
ariaLabel: s = t.toLanguageString(et, v[et])
|
|
1341
1341
|
} = this.props;
|
|
1342
1342
|
return /* @__PURE__ */ a.createElement(
|
|
1343
1343
|
Me,
|
|
@@ -1358,7 +1358,7 @@ Xr.propTypes = {
|
|
|
1358
1358
|
onFilterChange: d.func.isRequired
|
|
1359
1359
|
};
|
|
1360
1360
|
$(Xr);
|
|
1361
|
-
class
|
|
1361
|
+
class co extends a.Component {
|
|
1362
1362
|
constructor() {
|
|
1363
1363
|
super(...arguments), this.onChange = (t) => {
|
|
1364
1364
|
this.props.onFilterChange.call(void 0, {
|
|
@@ -1372,7 +1372,7 @@ class uo extends a.Component {
|
|
|
1372
1372
|
render() {
|
|
1373
1373
|
const t = this.props.filter;
|
|
1374
1374
|
return /* @__PURE__ */ a.createElement(
|
|
1375
|
-
|
|
1375
|
+
mt,
|
|
1376
1376
|
{
|
|
1377
1377
|
value: t.value || null,
|
|
1378
1378
|
onChange: this.onChange,
|
|
@@ -1381,12 +1381,12 @@ class uo extends a.Component {
|
|
|
1381
1381
|
);
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
|
|
1384
|
+
co.propTypes = {
|
|
1385
1385
|
filter: d.object.isRequired,
|
|
1386
1386
|
onFilterChange: d.func.isRequired,
|
|
1387
1387
|
ariaLabel: d.string
|
|
1388
1388
|
};
|
|
1389
|
-
class
|
|
1389
|
+
class yt extends a.Component {
|
|
1390
1390
|
constructor() {
|
|
1391
1391
|
super(...arguments), this.onChange = (t) => {
|
|
1392
1392
|
this.props.onFilterChange.call(void 0, {
|
|
@@ -1402,7 +1402,7 @@ class bt extends a.Component {
|
|
|
1402
1402
|
filter: r,
|
|
1403
1403
|
data: n = [],
|
|
1404
1404
|
defaultItem: o,
|
|
1405
|
-
ariaLabel: s = t.toLanguageString(
|
|
1405
|
+
ariaLabel: s = t.toLanguageString(Qe, v[Qe])
|
|
1406
1406
|
} = this.props, i = n.map((l) => ({
|
|
1407
1407
|
...l,
|
|
1408
1408
|
text: t.toLanguageString(l.text, v[l.text] || l.text)
|
|
@@ -1420,15 +1420,15 @@ class bt extends a.Component {
|
|
|
1420
1420
|
);
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
|
|
1423
|
+
yt.propTypes = {
|
|
1424
1424
|
filter: d.object.isRequired,
|
|
1425
1425
|
onFilterChange: d.func.isRequired,
|
|
1426
1426
|
data: d.arrayOf(d.shape({ text: d.string, value: d.any })),
|
|
1427
1427
|
defaultItem: d.any,
|
|
1428
1428
|
ariaLabel: d.string
|
|
1429
1429
|
};
|
|
1430
|
-
$(
|
|
1431
|
-
class
|
|
1430
|
+
$(yt);
|
|
1431
|
+
class uo extends a.Component {
|
|
1432
1432
|
constructor() {
|
|
1433
1433
|
super(...arguments), this.data = [{ text: pr, value: !0 }, { text: dr, value: !1 }];
|
|
1434
1434
|
}
|
|
@@ -1437,7 +1437,7 @@ class po extends a.Component {
|
|
|
1437
1437
|
*/
|
|
1438
1438
|
render() {
|
|
1439
1439
|
return /* @__PURE__ */ a.createElement(
|
|
1440
|
-
|
|
1440
|
+
yt,
|
|
1441
1441
|
{
|
|
1442
1442
|
filter: this.props.filter,
|
|
1443
1443
|
onFilterChange: this.props.onFilterChange,
|
|
@@ -1448,14 +1448,14 @@ class po extends a.Component {
|
|
|
1448
1448
|
);
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
|
|
1451
|
+
uo.propTypes = {
|
|
1452
1452
|
filter: d.object.isRequired,
|
|
1453
1453
|
onFilterChange: d.func.isRequired,
|
|
1454
1454
|
data: d.arrayOf(d.shape({ text: d.string, value: d.any })),
|
|
1455
1455
|
ariaLabel: d.string,
|
|
1456
1456
|
defaultItem: d.any
|
|
1457
1457
|
};
|
|
1458
|
-
const
|
|
1458
|
+
const po = [
|
|
1459
1459
|
{ text: or, operator: "contains" },
|
|
1460
1460
|
{ text: sr, operator: "doesnotcontain" },
|
|
1461
1461
|
{ text: ie, operator: "eq" },
|
|
@@ -1466,7 +1466,7 @@ const ho = [
|
|
|
1466
1466
|
{ text: De, operator: "isnotnull" },
|
|
1467
1467
|
{ text: tr, operator: "isempty" },
|
|
1468
1468
|
{ text: rr, operator: "isnotempty" }
|
|
1469
|
-
],
|
|
1469
|
+
], ho = [
|
|
1470
1470
|
{ text: ie, operator: "eq" },
|
|
1471
1471
|
{ text: le, operator: "neq" },
|
|
1472
1472
|
{ text: ir, operator: "gte" },
|
|
@@ -1475,7 +1475,7 @@ const ho = [
|
|
|
1475
1475
|
{ text: ur, operator: "lt" },
|
|
1476
1476
|
{ text: Le, operator: "isnull" },
|
|
1477
1477
|
{ text: De, operator: "isnotnull" }
|
|
1478
|
-
],
|
|
1478
|
+
], go = [
|
|
1479
1479
|
{ text: ie, operator: "eq" },
|
|
1480
1480
|
{ text: le, operator: "neq" },
|
|
1481
1481
|
{ text: hr, operator: "gte" },
|
|
@@ -1484,11 +1484,11 @@ const ho = [
|
|
|
1484
1484
|
{ text: mr, operator: "lte" },
|
|
1485
1485
|
{ text: Le, operator: "isnull" },
|
|
1486
1486
|
{ text: De, operator: "isnotnull" }
|
|
1487
|
-
],
|
|
1487
|
+
], fo = [
|
|
1488
1488
|
{ text: ie, operator: "eq" },
|
|
1489
1489
|
{ text: le, operator: "neq" }
|
|
1490
1490
|
];
|
|
1491
|
-
class
|
|
1491
|
+
class vs {
|
|
1492
1492
|
/**
|
|
1493
1493
|
* An array containing the operators for the TextFilter component.
|
|
1494
1494
|
*
|
|
@@ -1506,7 +1506,7 @@ class Es {
|
|
|
1506
1506
|
* - { text: 'filter.isNotEmptyOperator', operator: 'isnotempty' }
|
|
1507
1507
|
*/
|
|
1508
1508
|
static get text() {
|
|
1509
|
-
return [...
|
|
1509
|
+
return [...po];
|
|
1510
1510
|
}
|
|
1511
1511
|
/**
|
|
1512
1512
|
* An array containing the operators for the NumericFilter component.
|
|
@@ -1523,7 +1523,7 @@ class Es {
|
|
|
1523
1523
|
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
1524
1524
|
*/
|
|
1525
1525
|
static get numeric() {
|
|
1526
|
-
return [...
|
|
1526
|
+
return [...ho];
|
|
1527
1527
|
}
|
|
1528
1528
|
/**
|
|
1529
1529
|
* An array containing the operators for the DateFilter component.
|
|
@@ -1540,7 +1540,7 @@ class Es {
|
|
|
1540
1540
|
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
1541
1541
|
*/
|
|
1542
1542
|
static get date() {
|
|
1543
|
-
return [...
|
|
1543
|
+
return [...go];
|
|
1544
1544
|
}
|
|
1545
1545
|
/**
|
|
1546
1546
|
* An array containing the operators for the BooleanFilter component.
|
|
@@ -1551,33 +1551,33 @@ class Es {
|
|
|
1551
1551
|
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
1552
1552
|
*/
|
|
1553
1553
|
static get boolean() {
|
|
1554
|
-
return [...
|
|
1554
|
+
return [...fo];
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
|
-
const Ur = (e) => e === "contains" || e === "doesnotcontain" || e === "startswith" || e === "endswith",
|
|
1558
|
-
e.value === void 0 && !
|
|
1557
|
+
const Ur = (e) => e === "contains" || e === "doesnotcontain" || e === "startswith" || e === "endswith", pt = (e) => e === "isnull" || e === "isnotnull" || e === "isempty" || e === "isnotempty", Kt = (e) => {
|
|
1558
|
+
e.value === void 0 && !pt(e.operator) && (e.value = Ur(e.operator) ? "" : null);
|
|
1559
1559
|
};
|
|
1560
|
-
class
|
|
1560
|
+
class It extends a.Component {
|
|
1561
1561
|
constructor() {
|
|
1562
1562
|
super(...arguments), this.onFieldChange = (t) => {
|
|
1563
1563
|
const r = t.value.name, n = this.props.fields.find((l) => l.name === r), o = this.props.filter, s = n && !n.operators.some((l) => l.operator === o.operator) ? n.operators[0].operator : o.operator, i = {
|
|
1564
1564
|
field: r,
|
|
1565
1565
|
operator: s
|
|
1566
1566
|
};
|
|
1567
|
-
|
|
1567
|
+
Kt(i), this.triggerOnFilterChange(o, i, t);
|
|
1568
1568
|
}, this.onOperatorChange = (t) => {
|
|
1569
1569
|
const r = t.value.operator, n = this.props.filter;
|
|
1570
1570
|
let o;
|
|
1571
|
-
if (
|
|
1571
|
+
if (pt(r)) {
|
|
1572
1572
|
let { value: s, ...i } = n;
|
|
1573
1573
|
o = { ...i, operator: r };
|
|
1574
1574
|
} else
|
|
1575
1575
|
o = { ...n, operator: r };
|
|
1576
|
-
|
|
1576
|
+
Kt(o), this.triggerOnFilterChange(n, o, t);
|
|
1577
1577
|
}, this.onInputChange = (t) => {
|
|
1578
1578
|
const r = this.props.filter;
|
|
1579
1579
|
let n = t.nextFilter;
|
|
1580
|
-
if (
|
|
1580
|
+
if (pt(n.operator)) {
|
|
1581
1581
|
const o = this.props.fields.find((s) => s.name === n.field);
|
|
1582
1582
|
n = { ...n, operator: o && o.operators[0].operator || n.operator };
|
|
1583
1583
|
}
|
|
@@ -1605,9 +1605,9 @@ class yt extends a.Component {
|
|
|
1605
1605
|
const t = q(this), {
|
|
1606
1606
|
fields: r,
|
|
1607
1607
|
filter: n,
|
|
1608
|
-
ariaLabel: o = t.toLanguageString(
|
|
1608
|
+
ariaLabel: o = t.toLanguageString(je, v[je])
|
|
1609
1609
|
} = this.props, s = r.find((l) => l.name === n.field), i = (s && s.operators || []).map((l) => ({ ...l, text: t.toLanguageString(l.text, v[l.text] || l.text) }));
|
|
1610
|
-
return /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(
|
|
1610
|
+
return /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Vt, { keyboardNavigation: !1, role: "toolbar", ariaLabel: o }, /* @__PURE__ */ a.createElement(We, { className: "k-filter-field" }, /* @__PURE__ */ a.createElement(
|
|
1611
1611
|
G,
|
|
1612
1612
|
{
|
|
1613
1613
|
className: "k-filter-dropdown",
|
|
@@ -1615,7 +1615,7 @@ class yt extends a.Component {
|
|
|
1615
1615
|
textField: "label",
|
|
1616
1616
|
value: r.find((l) => l.name === n.field),
|
|
1617
1617
|
onChange: this.onFieldChange,
|
|
1618
|
-
ariaLabel: t.toLanguageString(
|
|
1618
|
+
ariaLabel: t.toLanguageString(Ze, v[Ze])
|
|
1619
1619
|
}
|
|
1620
1620
|
)), /* @__PURE__ */ a.createElement(We, { className: "k-filter-operator" }, /* @__PURE__ */ a.createElement(
|
|
1621
1621
|
G,
|
|
@@ -1624,7 +1624,7 @@ class yt extends a.Component {
|
|
|
1624
1624
|
textField: "text",
|
|
1625
1625
|
value: i.find((l) => l.operator === n.operator),
|
|
1626
1626
|
onChange: this.onOperatorChange,
|
|
1627
|
-
ariaLabel: t.toLanguageString(
|
|
1627
|
+
ariaLabel: t.toLanguageString(Je, v[Je])
|
|
1628
1628
|
}
|
|
1629
1629
|
)), /* @__PURE__ */ a.createElement(We, { className: "k-filter-value" }, s && /* @__PURE__ */ a.createElement(s.filter, { filter: n, onFilterChange: this.onInputChange, min: s.min, max: s.max })), /* @__PURE__ */ a.createElement(
|
|
1630
1630
|
K,
|
|
@@ -1640,14 +1640,14 @@ class yt extends a.Component {
|
|
|
1640
1640
|
)));
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
|
-
|
|
1643
|
+
It.propTypes = {
|
|
1644
1644
|
filter: d.object.isRequired,
|
|
1645
1645
|
fields: d.array.isRequired,
|
|
1646
1646
|
ariaLabel: d.string,
|
|
1647
1647
|
onChange: d.func.isRequired,
|
|
1648
1648
|
onRemove: d.func.isRequired
|
|
1649
1649
|
};
|
|
1650
|
-
$(
|
|
1650
|
+
$(It);
|
|
1651
1651
|
const jr = class extends a.Component {
|
|
1652
1652
|
constructor() {
|
|
1653
1653
|
super(...arguments), this.onGroupRemove = (e) => {
|
|
@@ -1720,9 +1720,9 @@ const jr = class extends a.Component {
|
|
|
1720
1720
|
const e = q(this), {
|
|
1721
1721
|
fields: t,
|
|
1722
1722
|
filter: r,
|
|
1723
|
-
ariaLabel: n = e.toLanguageString(
|
|
1723
|
+
ariaLabel: n = e.toLanguageString(Ue, v[Ue])
|
|
1724
1724
|
} = this.props;
|
|
1725
|
-
return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(
|
|
1725
|
+
return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Vt, { keyboardNavigation: !1, role: "toolbar", ariaLabel: n }, /* @__PURE__ */ a.createElement(dn, { className: "k-toolbar-button-group" }, /* @__PURE__ */ a.createElement(K, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicAnd, selected: r.logic === "and", type: "button" }, e.toLanguageString(Ye, v[Ye])), /* @__PURE__ */ a.createElement(K, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicOr, selected: r.logic === "or", type: "button" }, e.toLanguageString(Xe, v[Xe]))), /* @__PURE__ */ a.createElement(
|
|
1726
1726
|
K,
|
|
1727
1727
|
{
|
|
1728
1728
|
className: "k-toolbar-button",
|
|
@@ -1768,7 +1768,7 @@ const jr = class extends a.Component {
|
|
|
1768
1768
|
ariaLabelExpression: this.props.ariaLabelExpression
|
|
1769
1769
|
}
|
|
1770
1770
|
) : /* @__PURE__ */ a.createElement(
|
|
1771
|
-
|
|
1771
|
+
It,
|
|
1772
1772
|
{
|
|
1773
1773
|
filter: o,
|
|
1774
1774
|
fields: t,
|
|
@@ -1780,8 +1780,8 @@ const jr = class extends a.Component {
|
|
|
1780
1780
|
)));
|
|
1781
1781
|
}
|
|
1782
1782
|
};
|
|
1783
|
-
let
|
|
1784
|
-
|
|
1783
|
+
let kt = jr;
|
|
1784
|
+
kt.propTypes = {
|
|
1785
1785
|
filter: d.object.isRequired,
|
|
1786
1786
|
fields: d.array.isRequired,
|
|
1787
1787
|
ariaLabel: d.string,
|
|
@@ -1790,8 +1790,8 @@ It.propTypes = {
|
|
|
1790
1790
|
onRemove: d.func.isRequired,
|
|
1791
1791
|
defaultGroupFilter: d.object.isRequired
|
|
1792
1792
|
};
|
|
1793
|
-
$(
|
|
1794
|
-
class
|
|
1793
|
+
$(kt);
|
|
1794
|
+
class mo extends a.Component {
|
|
1795
1795
|
constructor(t) {
|
|
1796
1796
|
super(t), this.onFilterChange = (r) => {
|
|
1797
1797
|
const n = {
|
|
@@ -1809,7 +1809,7 @@ class vo extends a.Component {
|
|
|
1809
1809
|
target: this
|
|
1810
1810
|
};
|
|
1811
1811
|
this.props.onChange.call(void 0, n);
|
|
1812
|
-
},
|
|
1812
|
+
}, ht(vt);
|
|
1813
1813
|
}
|
|
1814
1814
|
/**
|
|
1815
1815
|
* @hidden
|
|
@@ -1825,7 +1825,7 @@ class vo extends a.Component {
|
|
|
1825
1825
|
style: this.props.style
|
|
1826
1826
|
},
|
|
1827
1827
|
/* @__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
|
-
|
|
1828
|
+
kt,
|
|
1829
1829
|
{
|
|
1830
1830
|
filter: this.props.value,
|
|
1831
1831
|
fields: this.props.fields,
|
|
@@ -1839,7 +1839,7 @@ class vo extends a.Component {
|
|
|
1839
1839
|
);
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
|
-
|
|
1842
|
+
mo.propTypes = {
|
|
1843
1843
|
className: d.string,
|
|
1844
1844
|
style: d.object,
|
|
1845
1845
|
fields: function(e, t) {
|
|
@@ -1870,7 +1870,7 @@ const He = (e) => /* @__PURE__ */ a.createElement(
|
|
|
1870
1870
|
},
|
|
1871
1871
|
(e.iconClass || e.svgIcon) && /* @__PURE__ */ a.createElement(Re, { name: e.iconClass ? sn(e.iconClass) : void 0, icon: e.svgIcon }),
|
|
1872
1872
|
e.title
|
|
1873
|
-
),
|
|
1873
|
+
), vo = [
|
|
1874
1874
|
{ text: xr, operator: "contains" },
|
|
1875
1875
|
{ text: br, operator: "doesnotcontain" },
|
|
1876
1876
|
{ text: we, operator: "eq" },
|
|
@@ -1881,7 +1881,7 @@ const He = (e) => /* @__PURE__ */ a.createElement(
|
|
|
1881
1881
|
{ text: Ae, operator: "isnotnull" },
|
|
1882
1882
|
{ text: vr, operator: "isempty" },
|
|
1883
1883
|
{ text: Er, operator: "isnotempty" }
|
|
1884
|
-
],
|
|
1884
|
+
], Eo = [
|
|
1885
1885
|
{ text: we, operator: "eq" },
|
|
1886
1886
|
{ text: Oe, operator: "neq" },
|
|
1887
1887
|
{ text: Ir, operator: "gte" },
|
|
@@ -1890,7 +1890,7 @@ const He = (e) => /* @__PURE__ */ a.createElement(
|
|
|
1890
1890
|
{ text: Fr, operator: "lt" },
|
|
1891
1891
|
{ text: Ne, operator: "isnull" },
|
|
1892
1892
|
{ text: Ae, operator: "isnotnull" }
|
|
1893
|
-
],
|
|
1893
|
+
], Co = [
|
|
1894
1894
|
{ text: we, operator: "eq" },
|
|
1895
1895
|
{ text: Oe, operator: "neq" },
|
|
1896
1896
|
{ text: Mr, operator: "gte" },
|
|
@@ -1899,7 +1899,7 @@ const He = (e) => /* @__PURE__ */ a.createElement(
|
|
|
1899
1899
|
{ text: wr, operator: "lte" },
|
|
1900
1900
|
{ text: Ne, operator: "isnull" },
|
|
1901
1901
|
{ text: Ae, operator: "isnotnull" }
|
|
1902
|
-
],
|
|
1902
|
+
], xo = [
|
|
1903
1903
|
{ text: Rr, operator: "" }
|
|
1904
1904
|
];
|
|
1905
1905
|
class Ke {
|
|
@@ -1920,7 +1920,7 @@ class Ke {
|
|
|
1920
1920
|
* - { text: 'columnMenu.filterIsNotEmptyOperator', operator: 'isnotempty' }
|
|
1921
1921
|
*/
|
|
1922
1922
|
static get text() {
|
|
1923
|
-
return [...
|
|
1923
|
+
return [...vo];
|
|
1924
1924
|
}
|
|
1925
1925
|
/**
|
|
1926
1926
|
* An array containing the operators for the ColumnMenuNumericFilter component.
|
|
@@ -1937,7 +1937,7 @@ class Ke {
|
|
|
1937
1937
|
* - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
|
|
1938
1938
|
*/
|
|
1939
1939
|
static get numeric() {
|
|
1940
|
-
return [...
|
|
1940
|
+
return [...Eo];
|
|
1941
1941
|
}
|
|
1942
1942
|
/**
|
|
1943
1943
|
* An array containing the operators for the ColumnMenuDateFilter component.
|
|
@@ -1954,7 +1954,7 @@ class Ke {
|
|
|
1954
1954
|
* - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
|
|
1955
1955
|
*/
|
|
1956
1956
|
static get date() {
|
|
1957
|
-
return [...
|
|
1957
|
+
return [...Co];
|
|
1958
1958
|
}
|
|
1959
1959
|
/**
|
|
1960
1960
|
* An array containing the operators for the ColumnMenuBooleanFilter component.
|
|
@@ -1964,10 +1964,10 @@ class Ke {
|
|
|
1964
1964
|
* - { text: 'columnMenu.filterIsTrue', operator: '' }
|
|
1965
1965
|
*/
|
|
1966
1966
|
static get boolean() {
|
|
1967
|
-
return [...
|
|
1967
|
+
return [...xo];
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
const
|
|
1970
|
+
const St = (e) => {
|
|
1971
1971
|
const { filter: t, onFilterChange: r, operators: n, initialFilter: o } = e, s = a.useCallback(
|
|
1972
1972
|
(u) => {
|
|
1973
1973
|
const p = t, f = u.target.value.operator, m = p ? { ...p, operator: f } : { value: o.value, operator: f };
|
|
@@ -1996,7 +1996,7 @@ const kt = (e) => {
|
|
|
1996
1996
|
onChange: i
|
|
1997
1997
|
}
|
|
1998
1998
|
));
|
|
1999
|
-
},
|
|
1999
|
+
}, bo = (e) => {
|
|
2000
2000
|
const { filter: t, onFilterChange: r } = e, n = a.useCallback(
|
|
2001
2001
|
(s) => r.call(void 0, s.syntheticEvent, { ...t, value: s.value }, t),
|
|
2002
2002
|
[t, r]
|
|
@@ -2010,10 +2010,10 @@ const kt = (e) => {
|
|
|
2010
2010
|
labelPlacement: "after"
|
|
2011
2011
|
}
|
|
2012
2012
|
);
|
|
2013
|
-
},
|
|
2014
|
-
const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(
|
|
2013
|
+
}, qt = (e) => {
|
|
2014
|
+
const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(Xt, { ...o, value: o.value || "" }), []), r = a.useRef(Ke.text), n = a.useRef({ operator: "", value: "" });
|
|
2015
2015
|
return /* @__PURE__ */ a.createElement(
|
|
2016
|
-
|
|
2016
|
+
St,
|
|
2017
2017
|
{
|
|
2018
2018
|
initialFilter: n.current,
|
|
2019
2019
|
input: t,
|
|
@@ -2021,10 +2021,10 @@ const kt = (e) => {
|
|
|
2021
2021
|
...e
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
|
-
},
|
|
2024
|
+
}, zt = (e) => {
|
|
2025
2025
|
const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(Me, { ...o, value: o.value || null }), []), r = a.useRef(Ke.numeric), n = a.useRef({ operator: "", value: null });
|
|
2026
2026
|
return /* @__PURE__ */ a.createElement(
|
|
2027
|
-
|
|
2027
|
+
St,
|
|
2028
2028
|
{
|
|
2029
2029
|
initialFilter: n.current,
|
|
2030
2030
|
input: t,
|
|
@@ -2032,10 +2032,10 @@ const kt = (e) => {
|
|
|
2032
2032
|
...e
|
|
2033
2033
|
}
|
|
2034
2034
|
);
|
|
2035
|
-
},
|
|
2036
|
-
const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(
|
|
2035
|
+
}, Gt = (e) => {
|
|
2036
|
+
const t = a.useCallback((o) => /* @__PURE__ */ a.createElement(mt, { ...o, value: o.value || null }), []), r = a.useRef(Ke.date), n = a.useRef({ operator: "", value: null });
|
|
2037
2037
|
return /* @__PURE__ */ a.createElement(
|
|
2038
|
-
|
|
2038
|
+
St,
|
|
2039
2039
|
{
|
|
2040
2040
|
initialFilter: n.current,
|
|
2041
2041
|
input: t,
|
|
@@ -2043,8 +2043,8 @@ const kt = (e) => {
|
|
|
2043
2043
|
...e
|
|
2044
2044
|
}
|
|
2045
2045
|
);
|
|
2046
|
-
},
|
|
2047
|
-
const t = Y(), r = (e.data ||
|
|
2046
|
+
}, yo = [{ text: Or, logic: "and" }, { text: Nr, logic: "or" }], Ft = (e) => {
|
|
2047
|
+
const t = Y(), r = (e.data || yo).map((n) => ({ ...n, text: t.toLanguageString(n.text, v[n.text]) }));
|
|
2048
2048
|
return /* @__PURE__ */ a.createElement(
|
|
2049
2049
|
G,
|
|
2050
2050
|
{
|
|
@@ -2056,18 +2056,18 @@ const kt = (e) => {
|
|
|
2056
2056
|
value: r.find((n) => n.logic === e.value)
|
|
2057
2057
|
}
|
|
2058
2058
|
);
|
|
2059
|
-
},
|
|
2059
|
+
}, Io = (e) => /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-content" }, /* @__PURE__ */ a.createElement(kn, { style: { position: "relative", display: "block" } }, e.show && /* @__PURE__ */ a.createElement("div", { className: "kendo-grid-filter-menu-container" }, /* @__PURE__ */ a.createElement(
|
|
2060
2060
|
"form",
|
|
2061
2061
|
{
|
|
2062
|
-
className: "k-filter-menu
|
|
2062
|
+
className: "k-filter-menu",
|
|
2063
2063
|
onSubmit: e.onSubmit,
|
|
2064
2064
|
onReset: e.onReset
|
|
2065
2065
|
},
|
|
2066
2066
|
/* @__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
|
-
)))),
|
|
2067
|
+
)))), ko = (e) => {
|
|
2068
2068
|
const t = Y();
|
|
2069
2069
|
return /* @__PURE__ */ a.createElement(
|
|
2070
|
-
|
|
2070
|
+
Io,
|
|
2071
2071
|
{
|
|
2072
2072
|
...e,
|
|
2073
2073
|
actions: /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
@@ -2075,18 +2075,18 @@ const kt = (e) => {
|
|
|
2075
2075
|
{
|
|
2076
2076
|
type: "reset"
|
|
2077
2077
|
},
|
|
2078
|
-
t.toLanguageString(
|
|
2078
|
+
t.toLanguageString(rt, v[rt])
|
|
2079
2079
|
), /* @__PURE__ */ a.createElement(
|
|
2080
2080
|
K,
|
|
2081
2081
|
{
|
|
2082
2082
|
themeColor: "primary"
|
|
2083
2083
|
},
|
|
2084
|
-
t.toLanguageString(
|
|
2084
|
+
t.toLanguageString(nt, v[nt])
|
|
2085
2085
|
))
|
|
2086
2086
|
}
|
|
2087
2087
|
);
|
|
2088
2088
|
}, qe = (e) => {
|
|
2089
|
-
|
|
2089
|
+
ht(vt);
|
|
2090
2090
|
const t = a.useRef([]), {
|
|
2091
2091
|
field: r,
|
|
2092
2092
|
filter: n,
|
|
@@ -2172,7 +2172,7 @@ const kt = (e) => {
|
|
|
2172
2172
|
] = p, _e = Y(), en = c || u ? /* @__PURE__ */ a.createElement("div", { className: "k-columnmenu-item-wrapper", key: "sorting" }, c && /* @__PURE__ */ a.createElement(
|
|
2173
2173
|
He,
|
|
2174
2174
|
{
|
|
2175
|
-
title: _e.toLanguageString(
|
|
2175
|
+
title: _e.toLanguageString(st, v[st]),
|
|
2176
2176
|
iconClass: "k-i-sort-asc-small",
|
|
2177
2177
|
svgIcon: Ut,
|
|
2178
2178
|
selected: j.dir === "asc",
|
|
@@ -2181,7 +2181,7 @@ const kt = (e) => {
|
|
|
2181
2181
|
), u && /* @__PURE__ */ a.createElement(
|
|
2182
2182
|
He,
|
|
2183
2183
|
{
|
|
2184
|
-
title: _e.toLanguageString(
|
|
2184
|
+
title: _e.toLanguageString(at, v[at]),
|
|
2185
2185
|
iconClass: "k-i-sort-desc-small",
|
|
2186
2186
|
svgIcon: jt,
|
|
2187
2187
|
selected: j.dir === "desc",
|
|
@@ -2191,12 +2191,12 @@ const kt = (e) => {
|
|
|
2191
2191
|
He,
|
|
2192
2192
|
{
|
|
2193
2193
|
iconClass: "k-i-filter",
|
|
2194
|
-
svgIcon:
|
|
2195
|
-
title: _e.toLanguageString(
|
|
2194
|
+
svgIcon: Ve,
|
|
2195
|
+
title: _e.toLanguageString(ot, v[ot]),
|
|
2196
2196
|
onClick: L
|
|
2197
2197
|
}
|
|
2198
2198
|
), /* @__PURE__ */ a.createElement(
|
|
2199
|
-
|
|
2199
|
+
ko,
|
|
2200
2200
|
{
|
|
2201
2201
|
show: C,
|
|
2202
2202
|
onSubmit: ce,
|
|
@@ -2205,7 +2205,7 @@ const kt = (e) => {
|
|
|
2205
2205
|
Z && /* @__PURE__ */ a.createElement(Z, { filter: x.filters[0], onFilterChange: U }),
|
|
2206
2206
|
J && /* @__PURE__ */ a.createElement(J, { value: x.logic, onChange: Ge }),
|
|
2207
2207
|
Q && /* @__PURE__ */ a.createElement(Q, { filter: x.filters[1], onFilterChange: U })
|
|
2208
|
-
)) : null,
|
|
2208
|
+
)) : null, Mt = [en, tn], rn = /* @__PURE__ */ a.createElement(
|
|
2209
2209
|
"span",
|
|
2210
2210
|
{
|
|
2211
2211
|
ref: I,
|
|
@@ -2214,36 +2214,36 @@ const kt = (e) => {
|
|
|
2214
2214
|
className: "k-grid-header-menu k-grid-column-menu" + (y() ? " k-active" : ""),
|
|
2215
2215
|
key: "button"
|
|
2216
2216
|
},
|
|
2217
|
-
/* @__PURE__ */ a.createElement(Re, { name: "
|
|
2217
|
+
/* @__PURE__ */ a.createElement(Re, { name: "filter", icon: Ve })
|
|
2218
2218
|
), nn = /* @__PURE__ */ a.createElement(
|
|
2219
|
-
|
|
2219
|
+
In,
|
|
2220
2220
|
{
|
|
2221
2221
|
anchor: I.current,
|
|
2222
2222
|
show: m,
|
|
2223
|
-
key: "popup"
|
|
2223
|
+
key: "popup",
|
|
2224
|
+
popupClass: "k-column-menu k-column-menu-popup"
|
|
2224
2225
|
},
|
|
2225
2226
|
/* @__PURE__ */ a.createElement(
|
|
2226
2227
|
"div",
|
|
2227
2228
|
{
|
|
2228
|
-
className: "k-grid-columnmenu-popup",
|
|
2229
2229
|
ref: F,
|
|
2230
2230
|
tabIndex: 0,
|
|
2231
2231
|
onBlur: w,
|
|
2232
2232
|
onFocus: P,
|
|
2233
2233
|
style: { outline: "none" }
|
|
2234
2234
|
},
|
|
2235
|
-
e.itemsRender ? e.itemsRender.call(void 0,
|
|
2235
|
+
e.itemsRender ? e.itemsRender.call(void 0, Mt, { closeMenu: S, field: r }) : Mt
|
|
2236
2236
|
)
|
|
2237
|
-
),
|
|
2238
|
-
return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0,
|
|
2239
|
-
},
|
|
2237
|
+
), Lt = [rn, nn];
|
|
2238
|
+
return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, Lt) : Lt);
|
|
2239
|
+
}, Es = (e) => {
|
|
2240
2240
|
const { field: t, ...r } = e, n = a.useCallback(
|
|
2241
2241
|
(i) => ({ logic: "and", filters: [{ operator: "contains", field: i, value: "" }, { operator: "contains", field: i, value: "" }] }),
|
|
2242
2242
|
[]
|
|
2243
2243
|
), o = !!e.field, s = o ? [
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2244
|
+
qt,
|
|
2245
|
+
Ft,
|
|
2246
|
+
qt
|
|
2247
2247
|
] : [];
|
|
2248
2248
|
return /* @__PURE__ */ a.createElement(
|
|
2249
2249
|
qe,
|
|
@@ -2256,14 +2256,14 @@ const kt = (e) => {
|
|
|
2256
2256
|
...r
|
|
2257
2257
|
}
|
|
2258
2258
|
);
|
|
2259
|
-
},
|
|
2259
|
+
}, Cs = (e) => {
|
|
2260
2260
|
const { field: t, ...r } = e, n = a.useCallback(
|
|
2261
2261
|
(i) => ({ logic: "or", filters: [{ operator: "eq", field: i, value: null }, { operator: "eq", field: i, value: null }] }),
|
|
2262
2262
|
[]
|
|
2263
2263
|
), o = !!e.field, s = o ? [
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2264
|
+
zt,
|
|
2265
|
+
Ft,
|
|
2266
|
+
zt
|
|
2267
2267
|
] : [];
|
|
2268
2268
|
return /* @__PURE__ */ a.createElement(
|
|
2269
2269
|
qe,
|
|
@@ -2276,14 +2276,14 @@ const kt = (e) => {
|
|
|
2276
2276
|
...r
|
|
2277
2277
|
}
|
|
2278
2278
|
);
|
|
2279
|
-
},
|
|
2279
|
+
}, xs = (e) => {
|
|
2280
2280
|
const { field: t, ...r } = e, n = a.useCallback(
|
|
2281
2281
|
(i) => ({ logic: "or", filters: [{ operator: "eq", field: i, value: null }, { operator: "eq", field: i, value: null }] }),
|
|
2282
2282
|
[]
|
|
2283
2283
|
), o = !!e.field, s = o ? [
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2284
|
+
Gt,
|
|
2285
|
+
Ft,
|
|
2286
|
+
Gt
|
|
2287
2287
|
] : [];
|
|
2288
2288
|
return /* @__PURE__ */ a.createElement(
|
|
2289
2289
|
qe,
|
|
@@ -2296,12 +2296,12 @@ const kt = (e) => {
|
|
|
2296
2296
|
...r
|
|
2297
2297
|
}
|
|
2298
2298
|
);
|
|
2299
|
-
},
|
|
2299
|
+
}, bs = (e) => {
|
|
2300
2300
|
const { field: t, ...r } = e, n = a.useCallback(
|
|
2301
2301
|
(i) => ({ logic: "and", filters: [{ operator: "eq", field: i, value: !1 }] }),
|
|
2302
2302
|
[]
|
|
2303
2303
|
), o = !!e.field, s = o ? [
|
|
2304
|
-
|
|
2304
|
+
bo
|
|
2305
2305
|
] : [];
|
|
2306
2306
|
return /* @__PURE__ */ a.createElement(
|
|
2307
2307
|
qe,
|
|
@@ -2325,7 +2325,7 @@ function Zr(e, t, r) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
return e;
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function ys(e, t, r) {
|
|
2329
2329
|
let n = er(e, t);
|
|
2330
2330
|
return n = n.map((o) => Zr(o, t, r)), n;
|
|
2331
2331
|
}
|
|
@@ -2333,7 +2333,7 @@ function Jr(e, t, r) {
|
|
|
2333
2333
|
let n = ne(e, r);
|
|
2334
2334
|
if (n && n.length) {
|
|
2335
2335
|
n = n.map((l) => Jr(l, t, r));
|
|
2336
|
-
const i =
|
|
2336
|
+
const i = yn(n, {
|
|
2337
2337
|
filters: [
|
|
2338
2338
|
{ filters: t, logic: "and" },
|
|
2339
2339
|
{ operator: (l) => !!(l[r] || []).length }
|
|
@@ -2344,11 +2344,11 @@ function Jr(e, t, r) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
return e;
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function Is(e, t, r) {
|
|
2348
2348
|
let n = { [r]: [...e] };
|
|
2349
2349
|
return n = Jr(n, t, r), n[r] || [];
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function ks(e, t, r) {
|
|
2352
2352
|
let n = [];
|
|
2353
2353
|
const o = [];
|
|
2354
2354
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
@@ -2380,7 +2380,7 @@ function Ss(e, t, r) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
return o;
|
|
2382
2382
|
}
|
|
2383
|
-
const
|
|
2383
|
+
const Ss = (e, t, r) => {
|
|
2384
2384
|
const n = (c) => !!$e(t, c), o = (c) => !!$e(r, c), s = (c) => {
|
|
2385
2385
|
const u = [];
|
|
2386
2386
|
return n(c) && o(c) && u.push(...$e(r, c)), u;
|
|
@@ -2388,16 +2388,16 @@ const Fs = (e, t, r) => {
|
|
|
2388
2388
|
u.push({ ...c, level: p }), s(c).forEach((f) => i(f, u, p + 1));
|
|
2389
2389
|
}, l = [];
|
|
2390
2390
|
return e.forEach((c) => i(c, l, 0)), l;
|
|
2391
|
-
},
|
|
2391
|
+
}, Fs = (e, t, r, n) => {
|
|
2392
2392
|
let o = {}, s = [], i;
|
|
2393
2393
|
return e.forEach((l) => o[t(l)] = { ...l }), e.forEach((l) => {
|
|
2394
2394
|
i = o[r(l)], i ? (i[n] = i[n] || [], i[n].push(o[t(l)])) : s.push(o[t(l)]);
|
|
2395
2395
|
}), s;
|
|
2396
|
-
},
|
|
2396
|
+
}, Rs = (e, t, r) => ft(e, t, r), Ms = (e, t, r) => [...ae(
|
|
2397
2397
|
[{ [t]: [...e] }],
|
|
2398
2398
|
t,
|
|
2399
|
-
(o) =>
|
|
2400
|
-
)[0][t]],
|
|
2399
|
+
(o) => So(o, r, t)
|
|
2400
|
+
)[0][t]], So = (e, t, r) => {
|
|
2401
2401
|
const n = e[r] || [], o = n.findIndex(t);
|
|
2402
2402
|
if (o !== -1) {
|
|
2403
2403
|
const s = [...n];
|
|
@@ -2407,36 +2407,36 @@ const Fs = (e, t, r) => {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
2409
|
return e;
|
|
2410
|
-
},
|
|
2410
|
+
}, Ls = (e, t, r, n) => ae(
|
|
2411
2411
|
e,
|
|
2412
2412
|
t,
|
|
2413
2413
|
(o) => r(o) ? { ...o, [t]: n(o[t] || []) } : o
|
|
2414
|
-
),
|
|
2415
|
-
const o = [...e], s =
|
|
2414
|
+
), _t = (e, t, r) => an(e, t, r), Ds = (e, t, r, n) => {
|
|
2415
|
+
const o = [...e], s = _t(o, t, n), i = s.pop(), l = s.pop(), c = t[t.length - 1];
|
|
2416
2416
|
if (r) {
|
|
2417
|
-
const p =
|
|
2417
|
+
const p = _t(o, r, n).pop();
|
|
2418
2418
|
(l ? l[n] : o).splice(c, 1), p[n] = p[n] || [], p[n].push(i);
|
|
2419
2419
|
} else
|
|
2420
2420
|
(l ? l[n] : o).splice(c, 1), o.push(i);
|
|
2421
2421
|
return o;
|
|
2422
|
-
}, se = "groupId",
|
|
2422
|
+
}, se = "groupId", dt = "items", Qr = (e, t, r) => {
|
|
2423
2423
|
e.items && (e[se] = `${r}${r && "_"}${e.value}${e.field}`, t > 1 && e.items.forEach((n) => Qr(n, t - 1, e[se])));
|
|
2424
|
-
},
|
|
2424
|
+
}, ws = (e) => {
|
|
2425
2425
|
const { group: t } = e;
|
|
2426
2426
|
if (t && t.length && e.data)
|
|
2427
2427
|
return e.data.forEach((r) => Qr(r, t.length, ""));
|
|
2428
|
-
},
|
|
2428
|
+
}, Os = (e) => {
|
|
2429
2429
|
const t = [];
|
|
2430
|
-
return ae(e.data,
|
|
2430
|
+
return ae(e.data, dt, (r) => {
|
|
2431
2431
|
r[se] && t.push(r[se]);
|
|
2432
2432
|
}), t;
|
|
2433
|
-
},
|
|
2433
|
+
}, Ns = (e) => ae(
|
|
2434
2434
|
e.data,
|
|
2435
|
-
|
|
2436
|
-
(t) =>
|
|
2435
|
+
dt,
|
|
2436
|
+
(t) => ft(t, dt, {
|
|
2437
2437
|
expanded: !e.collapsedIds.some((r) => r === t[se])
|
|
2438
2438
|
})
|
|
2439
|
-
),
|
|
2439
|
+
), Fo = (e) => {
|
|
2440
2440
|
const { navigatable: t, contextStateRef: r, navigationStateRef: n, idPrefix: o } = e;
|
|
2441
2441
|
t && (r.current = {
|
|
2442
2442
|
activeId: "",
|
|
@@ -2448,29 +2448,29 @@ const Fs = (e, t, r) => {
|
|
|
2448
2448
|
navigationMatrix: [],
|
|
2449
2449
|
lastHeaderIndex: -1
|
|
2450
2450
|
});
|
|
2451
|
-
},
|
|
2451
|
+
}, Ro = (e) => {
|
|
2452
2452
|
const { scope: t, contextStateRef: r, navigationStateRef: n } = e;
|
|
2453
2453
|
if (r.current && n.current && t) {
|
|
2454
|
-
|
|
2454
|
+
Rt(e);
|
|
2455
2455
|
const o = n.current.navigationMatrix[0][0], s = M.getActiveElement(t, o);
|
|
2456
2456
|
o && s && (r.current.activeId = o, s.setAttribute("tabIndex", "0"));
|
|
2457
2457
|
}
|
|
2458
|
-
},
|
|
2458
|
+
}, Mo = (e) => {
|
|
2459
2459
|
const { contextStateRef: t, navigationStateRef: r, document: n } = e;
|
|
2460
2460
|
if (t.current && r.current && n) {
|
|
2461
2461
|
const o = cn(n), s = M.getNavigatableId(o);
|
|
2462
2462
|
s && s === t.current.activeId && (r.current.activeElementIsFocused = !0);
|
|
2463
2463
|
}
|
|
2464
|
-
},
|
|
2464
|
+
}, Lo = (e) => {
|
|
2465
2465
|
const { scope: t, contextStateRef: r, navigationStateRef: n } = e;
|
|
2466
|
-
if (
|
|
2466
|
+
if (Rt(e), r.current && n.current && t) {
|
|
2467
2467
|
if (!M.getActiveElement(t, r.current.activeId)) {
|
|
2468
2468
|
const s = n.current.navigationMatrix[0][0], i = M.getActiveElement(t, s);
|
|
2469
2469
|
s && i && (r.current.activeId = s, i.setAttribute("tabIndex", "0"), n.current.activeElementIsFocused && i.focus());
|
|
2470
2470
|
}
|
|
2471
2471
|
n.current.activeElementIsFocused = !1;
|
|
2472
2472
|
}
|
|
2473
|
-
},
|
|
2473
|
+
}, Do = (e, t) => {
|
|
2474
2474
|
const { contextStateRef: r } = t;
|
|
2475
2475
|
if (e.isDefaultPrevented() || !r.current)
|
|
2476
2476
|
return;
|
|
@@ -2482,7 +2482,7 @@ const Fs = (e, t, r) => {
|
|
|
2482
2482
|
const i = M.getActiveElement(s, r.current.activeId);
|
|
2483
2483
|
i && i.setAttribute("tabIndex", "-1"), n.setAttribute("tabIndex", "0"), r.current.activeId = o;
|
|
2484
2484
|
}
|
|
2485
|
-
},
|
|
2485
|
+
}, wo = (e, t) => {
|
|
2486
2486
|
const {
|
|
2487
2487
|
contextStateRef: r,
|
|
2488
2488
|
navigationStateRef: n,
|
|
@@ -2518,9 +2518,9 @@ const Fs = (e, t, r) => {
|
|
|
2518
2518
|
let m;
|
|
2519
2519
|
if (n.current && n.current.prevNavigationIndexes) {
|
|
2520
2520
|
const [h, C] = n.current.prevNavigationIndexes;
|
|
2521
|
-
u[h][C] === i ? m = n.current.prevNavigationIndexes : m =
|
|
2521
|
+
u[h][C] === i ? m = n.current.prevNavigationIndexes : m = ut(u, i);
|
|
2522
2522
|
} else
|
|
2523
|
-
m =
|
|
2523
|
+
m = ut(u, i);
|
|
2524
2524
|
if (m) {
|
|
2525
2525
|
const [h, C] = m, [b, x] = f ? Wr(h, C, i, u, p) : Hr(h, C, i, u, p);
|
|
2526
2526
|
if (b) {
|
|
@@ -2530,7 +2530,7 @@ const Fs = (e, t, r) => {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
|
-
},
|
|
2533
|
+
}, Rt = (e) => {
|
|
2534
2534
|
const { navigationStateRef: t, scope: r } = e;
|
|
2535
2535
|
if (!t.current || !r)
|
|
2536
2536
|
return;
|
|
@@ -2540,7 +2540,7 @@ const Fs = (e, t, r) => {
|
|
|
2540
2540
|
const i = Array.from(o.children), l = Array.from(s.children);
|
|
2541
2541
|
[...i, ...l].forEach((c, u) => {
|
|
2542
2542
|
Array.from(c.children).forEach((p) => {
|
|
2543
|
-
const f =
|
|
2543
|
+
const f = xt(p);
|
|
2544
2544
|
if (!f)
|
|
2545
2545
|
return;
|
|
2546
2546
|
const m = p.rowSpan || 1, h = p.colSpan || 1;
|
|
@@ -2556,15 +2556,15 @@ const Fs = (e, t, r) => {
|
|
|
2556
2556
|
n[u][b] = f || "";
|
|
2557
2557
|
});
|
|
2558
2558
|
}), t.current.navigationMatrix = n.filter((c) => !!c), t.current.lastHeaderIndex = i.length - 1;
|
|
2559
|
-
},
|
|
2560
|
-
onConstructor:
|
|
2561
|
-
onComponentDidMount:
|
|
2562
|
-
onGetSnapshotBeforeUpdate:
|
|
2563
|
-
onComponentDidUpdate:
|
|
2564
|
-
onFocus:
|
|
2565
|
-
onKeyDown:
|
|
2566
|
-
generateMatrix:
|
|
2567
|
-
},
|
|
2559
|
+
}, As = {
|
|
2560
|
+
onConstructor: Fo,
|
|
2561
|
+
onComponentDidMount: Ro,
|
|
2562
|
+
onGetSnapshotBeforeUpdate: Mo,
|
|
2563
|
+
onComponentDidUpdate: Lo,
|
|
2564
|
+
onFocus: Do,
|
|
2565
|
+
onKeyDown: wo,
|
|
2566
|
+
generateMatrix: Rt
|
|
2567
|
+
}, Oo = "data-grid-row-index", No = "data-grid-col-index", Ao = "data-prevent-selection", Po = "items", H = {}, To = (e, t) => !e || Array.isArray(e) && e.length === 0 ? [t] : e.findIndex((n) => n === t) > -1 ? e.filter((n) => n !== t) : [...e, t], W = (e, t) => {
|
|
2568
2568
|
let r = e;
|
|
2569
2569
|
for (; r; ) {
|
|
2570
2570
|
if (r.tagName === t)
|
|
@@ -2577,29 +2577,29 @@ const Fs = (e, t, r) => {
|
|
|
2577
2577
|
}, Se = (e) => {
|
|
2578
2578
|
if (!e)
|
|
2579
2579
|
return;
|
|
2580
|
-
const t = e.getAttribute(
|
|
2580
|
+
const t = e.getAttribute(Oo);
|
|
2581
2581
|
return t ? parseInt(t, 10) : void 0;
|
|
2582
2582
|
}, Fe = (e) => {
|
|
2583
2583
|
if (!e)
|
|
2584
2584
|
return;
|
|
2585
|
-
const t = e.getAttribute(
|
|
2585
|
+
const t = e.getAttribute(No);
|
|
2586
2586
|
return t ? parseInt(t, 10) : void 0;
|
|
2587
|
-
},
|
|
2588
|
-
const t = e.subItemsField ||
|
|
2587
|
+
}, Ps = (e) => {
|
|
2588
|
+
const t = e.subItemsField || Po, r = Ht(e.dataItemKey);
|
|
2589
2589
|
return ae(
|
|
2590
2590
|
e.data,
|
|
2591
2591
|
t,
|
|
2592
|
-
(n) =>
|
|
2592
|
+
(n) => ft(n, t, {
|
|
2593
2593
|
[e.selectedField]: e.selectedState[r(n)]
|
|
2594
2594
|
})
|
|
2595
2595
|
);
|
|
2596
|
-
},
|
|
2596
|
+
}, Ts = (e) => {
|
|
2597
2597
|
const { event: t, dataItemKey: r, selectedState: n } = e, { syntheticEvent: o, nativeEvent: s, dataItems: i, componentId: l, mode: c, cell: u, selectedField: p } = t, { target: f, ctrlKey: m, metaKey: h, altKey: C, shiftKey: b } = s;
|
|
2598
2598
|
if (o.isDefaultPrevented() || s.keyCode !== B.enter)
|
|
2599
2599
|
return n;
|
|
2600
2600
|
const x = W(f, "TD"), g = W(f, "TR"), I = Fe(x), F = Se(g);
|
|
2601
2601
|
let k = {};
|
|
2602
|
-
return x && g && F !== void 0 && I !== void 0 && (k =
|
|
2602
|
+
return x && g && F !== void 0 && I !== void 0 && (k = Bo({
|
|
2603
2603
|
selectedState: n,
|
|
2604
2604
|
dataItemKey: r,
|
|
2605
2605
|
event: {
|
|
@@ -2623,7 +2623,7 @@ const Fs = (e, t, r) => {
|
|
|
2623
2623
|
dataItem: null
|
|
2624
2624
|
}
|
|
2625
2625
|
})), k;
|
|
2626
|
-
},
|
|
2626
|
+
}, Bo = (e) => {
|
|
2627
2627
|
const { event: t, dataItemKey: r, selectedState: n } = e, {
|
|
2628
2628
|
dataItems: o,
|
|
2629
2629
|
startRowIndex: s,
|
|
@@ -2638,7 +2638,7 @@ const Fs = (e, t, r) => {
|
|
|
2638
2638
|
componentId: C,
|
|
2639
2639
|
mode: b,
|
|
2640
2640
|
dataItem: x
|
|
2641
|
-
} = t, g =
|
|
2641
|
+
} = t, g = Ht(r);
|
|
2642
2642
|
let I = {};
|
|
2643
2643
|
const F = x !== null;
|
|
2644
2644
|
if (b === "single") {
|
|
@@ -2665,7 +2665,7 @@ const Fs = (e, t, r) => {
|
|
|
2665
2665
|
colIndex: l
|
|
2666
2666
|
};
|
|
2667
2667
|
const E = o.slice(s, i + 1)[0], y = g(E);
|
|
2668
|
-
I = { ...n }, I[y] = u && !F ?
|
|
2668
|
+
I = { ...n }, I[y] = u && !F ? To(I[y], l) : !I[y];
|
|
2669
2669
|
} else if (m) {
|
|
2670
2670
|
const k = H[C] && H[C].rowIndex || 0, E = H[C] && H[C].colIndex || 0, y = Math.min(k, s, i), S = Math.max(k, s, i), w = Math.min(E, l, c), P = Math.max(E, l, c), T = [];
|
|
2671
2671
|
for (let L = w; L <= P; L++)
|
|
@@ -2676,8 +2676,8 @@ const Fs = (e, t, r) => {
|
|
|
2676
2676
|
});
|
|
2677
2677
|
}
|
|
2678
2678
|
return I;
|
|
2679
|
-
},
|
|
2680
|
-
if (!e || !
|
|
2679
|
+
}, Ko = un(), qo = (e) => {
|
|
2680
|
+
if (!e || !Ko)
|
|
2681
2681
|
return null;
|
|
2682
2682
|
let t = e.parentElement;
|
|
2683
2683
|
for (; t; ) {
|
|
@@ -2685,7 +2685,7 @@ const Fs = (e, t, r) => {
|
|
|
2685
2685
|
return t;
|
|
2686
2686
|
t = t.parentElement;
|
|
2687
2687
|
}
|
|
2688
|
-
},
|
|
2688
|
+
}, zo = (e) => {
|
|
2689
2689
|
if (e && e.ownerDocument && e !== e.ownerDocument.body) {
|
|
2690
2690
|
const t = e.getBoundingClientRect();
|
|
2691
2691
|
return {
|
|
@@ -2694,20 +2694,20 @@ const Fs = (e, t, r) => {
|
|
|
2694
2694
|
};
|
|
2695
2695
|
}
|
|
2696
2696
|
return { left: 0, top: 0 };
|
|
2697
|
-
},
|
|
2697
|
+
}, Go = (e) => {
|
|
2698
2698
|
const t = e ? typeof e.enabled == "boolean" ? e.enabled : !0 : !1, r = e ? !!e.drag : !1, n = e && e.mode ? e.mode : "multiple", o = !!(e && e.cell);
|
|
2699
2699
|
return { enabled: t, drag: r, mode: n, cell: o };
|
|
2700
|
-
},
|
|
2700
|
+
}, Bs = (e) => {
|
|
2701
2701
|
var F;
|
|
2702
2702
|
const { onRelease: t, childRef: r } = e, {
|
|
2703
2703
|
enabled: n,
|
|
2704
2704
|
drag: o,
|
|
2705
2705
|
mode: s,
|
|
2706
2706
|
cell: i
|
|
2707
|
-
} =
|
|
2707
|
+
} = Go(e.selectable), l = a.useRef(null), c = a.useRef(null), u = a.useRef({ clientX: 0, clientY: 0 }), [p, f] = a.useState(null), m = a.useRef(), h = a.useRef(!1), C = a.useRef(!1), b = a.useCallback(
|
|
2708
2708
|
(k) => {
|
|
2709
2709
|
const { event: E } = k;
|
|
2710
|
-
C.current = E.originalEvent.target.hasAttribute(
|
|
2710
|
+
C.current = E.originalEvent.target.hasAttribute(Ao), !(C.current || !l.current) && (m.current = qo(l.current.element), u.current = {
|
|
2711
2711
|
clientY: E.clientY,
|
|
2712
2712
|
clientX: E.clientX
|
|
2713
2713
|
});
|
|
@@ -2717,7 +2717,7 @@ const Fs = (e, t, r) => {
|
|
|
2717
2717
|
(k) => {
|
|
2718
2718
|
const { event: E } = k, { clientX: y, clientY: S } = u.current;
|
|
2719
2719
|
if (!C.current && !(!o || s === "single") && ((Math.abs(S - E.clientY) > 5 || Math.abs(y - E.clientX) > 5) && (h.current = !0), h.current)) {
|
|
2720
|
-
const w =
|
|
2720
|
+
const w = zo(m.current);
|
|
2721
2721
|
f({
|
|
2722
2722
|
top: Math.min(S, E.clientY) - w.top,
|
|
2723
2723
|
left: Math.min(y, E.clientX) - w.left,
|
|
@@ -2783,7 +2783,7 @@ const Fs = (e, t, r) => {
|
|
|
2783
2783
|
[f, s, i, t]
|
|
2784
2784
|
), I = pn(c);
|
|
2785
2785
|
return n ? /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
2786
|
-
|
|
2786
|
+
gt,
|
|
2787
2787
|
{
|
|
2788
2788
|
onPress: b,
|
|
2789
2789
|
onDrag: x,
|
|
@@ -2792,7 +2792,7 @@ const Fs = (e, t, r) => {
|
|
|
2792
2792
|
childRef: r
|
|
2793
2793
|
},
|
|
2794
2794
|
e.children
|
|
2795
|
-
), p &&
|
|
2795
|
+
), p && bn.createPortal(
|
|
2796
2796
|
/* @__PURE__ */ a.createElement(
|
|
2797
2797
|
"div",
|
|
2798
2798
|
{
|
|
@@ -2805,98 +2805,98 @@ const Fs = (e, t, r) => {
|
|
|
2805
2805
|
)) : a.cloneElement(a.Children.only(e.children), { ref: r });
|
|
2806
2806
|
};
|
|
2807
2807
|
export {
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2808
|
+
uo as BooleanFilter,
|
|
2809
|
+
ts as BooleanFilterCell,
|
|
2810
|
+
Nn as ColumnDefaultProps,
|
|
2811
|
+
bs as ColumnMenuBooleanColumn,
|
|
2812
|
+
bo as ColumnMenuBooleanFilter,
|
|
2813
|
+
xs as ColumnMenuDateColumn,
|
|
2814
|
+
Gt as ColumnMenuDateFilter,
|
|
2815
|
+
ko as ColumnMenuFilterForm,
|
|
2816
|
+
Ft as ColumnMenuFilterLogic,
|
|
2817
|
+
Io as ColumnMenuForm,
|
|
2818
2818
|
He as ColumnMenuItem,
|
|
2819
|
-
|
|
2820
|
-
|
|
2819
|
+
Cs as ColumnMenuNumericColumn,
|
|
2820
|
+
zt as ColumnMenuNumericFilter,
|
|
2821
2821
|
Ke as ColumnMenuOperators,
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2822
|
+
Es as ColumnMenuTextColumn,
|
|
2823
|
+
qt as ColumnMenuTextFilter,
|
|
2824
|
+
hs as ColumnResize,
|
|
2825
|
+
oo as ColumnResizer,
|
|
2826
|
+
gs as CommonDragLogic,
|
|
2827
|
+
co as DateFilter,
|
|
2828
|
+
rs as DateFilterCell,
|
|
2829
|
+
fs as DragClue,
|
|
2830
|
+
ms as DropClue,
|
|
2831
|
+
yt as EnumFilter,
|
|
2832
|
+
It as Expression,
|
|
2833
|
+
Un as FILTER_ROW_CLASS,
|
|
2834
|
+
Et as FOCUSABLE_ELEMENTS,
|
|
2835
|
+
mo as Filter,
|
|
2836
|
+
ls as FilterRow,
|
|
2837
|
+
kt as Group,
|
|
2838
|
+
us as Header,
|
|
2839
|
+
ro as HeaderCell,
|
|
2840
|
+
lo as HeaderRow,
|
|
2841
|
+
ps as HeaderSelectionCell,
|
|
2842
|
+
Ct as HeaderThElement,
|
|
2843
2843
|
Kr as KEYBOARD_NAV_DATA_BODY,
|
|
2844
2844
|
Br as KEYBOARD_NAV_DATA_HEADER,
|
|
2845
2845
|
Be as KEYBOARD_NAV_DATA_ID,
|
|
2846
2846
|
X as KEYBOARD_NAV_DATA_LEVEL,
|
|
2847
2847
|
Tr as KEYBOARD_NAV_DATA_SCOPE,
|
|
2848
|
-
|
|
2849
|
-
|
|
2848
|
+
ss as KEYBOARD_NAV_DATA_ZONE,
|
|
2849
|
+
An as KEYBOARD_NAV_FILTER_COL_SUFFIX,
|
|
2850
2850
|
Xr as NumericFilter,
|
|
2851
|
-
|
|
2852
|
-
|
|
2851
|
+
ns as NumericFilterCell,
|
|
2852
|
+
vs as Operators,
|
|
2853
2853
|
Pe as Pager,
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2854
|
+
Pn as TABBABLE_ELEMENTS,
|
|
2855
|
+
No as TABLE_COL_INDEX_ATTRIBUTE,
|
|
2856
|
+
Ao as TABLE_PREVENT_SELECTION_ELEMENT,
|
|
2857
|
+
Oo as TABLE_ROW_INDEX_ATTRIBUTE,
|
|
2858
2858
|
zr as TableKeyboardNavigationContext,
|
|
2859
|
-
|
|
2859
|
+
Bs as TableSelection,
|
|
2860
2860
|
Yr as TextFilter,
|
|
2861
|
-
|
|
2861
|
+
os as TextFilterCell,
|
|
2862
2862
|
W as closestTagName,
|
|
2863
|
-
|
|
2863
|
+
Fs as createDataTree,
|
|
2864
2864
|
Te as createFilterComponent,
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2865
|
+
Rs as extendDataItem,
|
|
2866
|
+
Is as filterBy,
|
|
2867
|
+
ks as flatData,
|
|
2868
2868
|
Fe as getColumnIndex,
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2869
|
+
Os as getGroupIds,
|
|
2870
|
+
Bt as getIndex,
|
|
2871
|
+
_t as getItemPath,
|
|
2872
|
+
zo as getOffset,
|
|
2873
2873
|
Se as getRowIndex,
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2874
|
+
Bo as getSelectedState,
|
|
2875
|
+
Ts as getSelectedStateFromKeyDown,
|
|
2876
|
+
Go as getSelectionOptions,
|
|
2877
|
+
to as isRtl,
|
|
2878
|
+
cs as mapColumns,
|
|
2879
|
+
Ls as modifySubItems,
|
|
2880
|
+
Ds as moveTreeItem,
|
|
2881
|
+
Zn as nextColumn,
|
|
2882
|
+
no as normalize,
|
|
2883
|
+
ys as orderBy,
|
|
2884
|
+
eo as readColumns,
|
|
2885
|
+
qo as relativeContextElement,
|
|
2886
|
+
Ms as removeItems,
|
|
2887
|
+
Ns as setExpandedState,
|
|
2888
|
+
ws as setGroupIds,
|
|
2889
|
+
Ps as setSelectedState,
|
|
2890
2890
|
Ur as stringOperator,
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2891
|
+
ds as tableColumnsVirtualization,
|
|
2892
|
+
As as tableKeyboardNavigation,
|
|
2893
|
+
is as tableKeyboardNavigationBodyAttributes,
|
|
2894
|
+
Tn as tableKeyboardNavigationHeaderAttributes,
|
|
2895
|
+
as as tableKeyboardNavigationScopeAttributes,
|
|
2896
2896
|
M as tableKeyboardNavigationTools,
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2897
|
+
Ss as treeToFlat,
|
|
2898
|
+
pt as unaryOperator,
|
|
2899
|
+
Jn as updateLeft,
|
|
2900
|
+
Qn as updateRight,
|
|
2901
|
+
Bn as useTableKeyboardNavigation
|
|
2902
2902
|
};
|