@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/dist/cdn/js/kendo-react-datatools.js +5 -5
- package/index.js +4 -4
- package/index.mjs +971 -957
- package/messages/index.d.ts +6 -1
- package/package.json +9 -9
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
|
|
9
|
-
import { Button as B, Toolbar as Yt, ToolbarItem as
|
|
10
|
-
import { provideLocalizationService as q, provideIntlService as Ut, registerForLocalization as
|
|
11
|
-
import { NumericTextBox as
|
|
12
|
-
import { DropDownList as
|
|
13
|
-
import { caretAltToRightIcon as wt, caretAltToLeftIcon as Ot, caretAltRightIcon as Nt, caretAltLeftIcon as At, filterIcon as
|
|
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
|
|
19
|
-
import { Reveal as
|
|
20
|
-
const
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
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
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
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
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
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
|
-
[
|
|
46
|
-
[
|
|
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
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
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
|
-
[
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
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
|
-
[
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
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
|
|
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(
|
|
108
|
-
for (let
|
|
109
|
-
d.push(
|
|
110
|
-
const
|
|
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 ===
|
|
114
|
-
key:
|
|
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) + " " +
|
|
121
|
-
"aria-current": this.props.currentPage ===
|
|
122
|
-
onClick: (
|
|
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
|
-
|
|
125
|
-
)), m = d.map((
|
|
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-${
|
|
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: (
|
|
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
|
-
|
|
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(
|
|
192
|
-
return /* @__PURE__ */ a.createElement(
|
|
193
|
-
|
|
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(
|
|
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
|
-
|
|
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:
|
|
214
|
-
t === void 0 &&
|
|
215
|
-
const i =
|
|
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:
|
|
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
|
-
|
|
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:
|
|
235
|
+
publishDate: 1708617648,
|
|
234
236
|
version: "",
|
|
235
237
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
236
|
-
}, Tt = 600,
|
|
237
|
-
class
|
|
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
|
|
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,
|
|
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 <
|
|
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:
|
|
291
|
-
|
|
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:
|
|
298
|
+
currentPage: g,
|
|
297
299
|
pageChange: this.changePage,
|
|
298
300
|
messagesMap: this.props.messagesMap,
|
|
299
|
-
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:
|
|
308
|
+
currentPage: g,
|
|
307
309
|
pageChange: this.changePage,
|
|
308
310
|
messagesMap: u,
|
|
309
|
-
size:
|
|
311
|
+
size: l
|
|
310
312
|
}
|
|
311
|
-
), b = u ? u(
|
|
312
|
-
|
|
313
|
-
|
|
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" + (
|
|
316
|
-
|
|
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
|
-
|
|
320
|
-
),
|
|
321
|
-
|
|
322
|
-
"k-pager-nav" + (
|
|
323
|
-
|
|
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
|
-
|
|
327
|
-
),
|
|
328
|
-
|
|
329
|
-
"k-pager-nav" + (
|
|
330
|
-
|
|
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
|
-
|
|
334
|
-
),
|
|
347
|
+
g >= this.totalPages ? !0 : void 0
|
|
348
|
+
), D = this.renderButton(
|
|
335
349
|
this.totalPages,
|
|
336
|
-
"k-pager-nav k-pager-last" + (
|
|
337
|
-
|
|
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
|
-
|
|
354
|
+
g >= this.totalPages ? !0 : void 0
|
|
341
355
|
));
|
|
342
|
-
const
|
|
356
|
+
const L = i && /* @__PURE__ */ a.createElement(
|
|
343
357
|
Kn,
|
|
344
358
|
{
|
|
345
359
|
pageChange: this.onPageChange,
|
|
346
|
-
pageSize:
|
|
360
|
+
pageSize: s,
|
|
347
361
|
pageSizes: i,
|
|
348
362
|
value: d,
|
|
349
363
|
messagesMap: u,
|
|
350
|
-
size:
|
|
364
|
+
size: l
|
|
351
365
|
}
|
|
352
|
-
),
|
|
353
|
-
Math.min(r + 1,
|
|
354
|
-
Math.min(r +
|
|
355
|
-
|
|
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-${
|
|
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":
|
|
372
|
-
"aria-label":
|
|
373
|
-
ref: (
|
|
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") },
|
|
376
|
-
c ? t &&
|
|
377
|
-
c ? n &&
|
|
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,
|
|
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:
|
|
390
|
-
svgIcon:
|
|
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
|
-
|
|
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
|
-
|
|
437
|
+
Pe.defaultProps = {
|
|
424
438
|
buttonCount: 10,
|
|
425
439
|
info: !0,
|
|
426
440
|
type: "numeric",
|
|
427
441
|
size: "medium"
|
|
428
442
|
};
|
|
429
|
-
fr(
|
|
430
|
-
|
|
431
|
-
const
|
|
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
|
|
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:
|
|
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:
|
|
464
|
+
const { filter: s = [], field: o = "" } = this.props;
|
|
451
465
|
this.filterChange({
|
|
452
|
-
filter:
|
|
453
|
-
field:
|
|
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:
|
|
458
|
-
return r.find((
|
|
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:
|
|
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:
|
|
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:
|
|
469
|
-
data:
|
|
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",
|
|
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,
|
|
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((
|
|
506
|
-
onChange: (
|
|
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 =
|
|
523
|
+
const i = o.target.value.operator;
|
|
510
524
|
if (i === "") {
|
|
511
|
-
|
|
512
|
-
filter: n.filter((c) => c.field !==
|
|
525
|
+
s && t.onFilterChange.call(void 0, {
|
|
526
|
+
filter: n.filter((c) => c.field !== s.field),
|
|
513
527
|
field: r,
|
|
514
|
-
syntheticEvent:
|
|
528
|
+
syntheticEvent: o.syntheticEvent
|
|
515
529
|
});
|
|
516
530
|
return;
|
|
517
531
|
}
|
|
518
|
-
let l =
|
|
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:
|
|
536
|
+
syntheticEvent: o.syntheticEvent
|
|
523
537
|
});
|
|
524
538
|
}
|
|
525
539
|
}
|
|
526
540
|
);
|
|
527
541
|
}
|
|
528
542
|
};
|
|
529
|
-
class
|
|
543
|
+
class co extends Te(Or) {
|
|
530
544
|
}
|
|
531
|
-
const
|
|
545
|
+
const Nr = {
|
|
532
546
|
inputComponent: (e) => /* @__PURE__ */ a.createElement(vt, { ...e }),
|
|
533
|
-
operatorComponent: (e) => /* @__PURE__ */ a.createElement(
|
|
547
|
+
operatorComponent: (e) => /* @__PURE__ */ a.createElement($, { ...e }),
|
|
534
548
|
emptyFilter: { operator: "eq", value: null }
|
|
535
549
|
};
|
|
536
|
-
class
|
|
550
|
+
class uo extends Te(Nr) {
|
|
537
551
|
}
|
|
538
|
-
const
|
|
539
|
-
inputComponent: (e) => /* @__PURE__ */ a.createElement(
|
|
540
|
-
operatorComponent: (e) => /* @__PURE__ */ a.createElement(
|
|
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
|
|
557
|
+
class po extends Te(Ar) {
|
|
544
558
|
}
|
|
545
|
-
const
|
|
559
|
+
const Pr = {
|
|
546
560
|
inputComponent: (e) => /* @__PURE__ */ a.createElement(jt, { ...e }),
|
|
547
|
-
operatorComponent: (e) => /* @__PURE__ */ a.createElement(
|
|
561
|
+
operatorComponent: (e) => /* @__PURE__ */ a.createElement($, { ...e }),
|
|
548
562
|
emptyFilter: { operator: "contains", value: "" }
|
|
549
563
|
};
|
|
550
|
-
class
|
|
564
|
+
class ho extends Te(Pr) {
|
|
551
565
|
}
|
|
552
|
-
const
|
|
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
|
-
},
|
|
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 = [...
|
|
587
|
+
], Ct = [...zn, "[tabindex]"], Br = [...zn, "[tabindex]"].map((e) => e + ':not([tabindex="-1"])'), fo = {
|
|
574
588
|
[Bn]: !0
|
|
575
|
-
},
|
|
589
|
+
}, qr = {
|
|
576
590
|
[qn]: !0
|
|
577
|
-
},
|
|
578
|
-
[
|
|
591
|
+
}, mo = {
|
|
592
|
+
[Gn]: !0
|
|
579
593
|
}, _n = a.createContext(void 0);
|
|
580
594
|
_n.displayName = "KendoReactTableKeyboardNavigationContext";
|
|
581
|
-
const
|
|
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
|
-
[
|
|
586
|
-
[
|
|
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:
|
|
594
|
-
style:
|
|
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:
|
|
614
|
+
role: h,
|
|
601
615
|
ariaSelected: m
|
|
602
|
-
} = e,
|
|
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:
|
|
613
|
-
style:
|
|
626
|
+
className: s,
|
|
627
|
+
style: o,
|
|
614
628
|
onKeyDown: l,
|
|
615
|
-
role:
|
|
616
|
-
...
|
|
629
|
+
role: h,
|
|
630
|
+
...g
|
|
617
631
|
},
|
|
618
632
|
e.children
|
|
619
633
|
);
|
|
620
634
|
};
|
|
621
635
|
xt.displayName = "KendoReactHeaderThElement";
|
|
622
|
-
const
|
|
636
|
+
const $n = (e, t, n = "cell") => `${t}_${e}_${n}`, zr = (e) => {
|
|
623
637
|
if (e)
|
|
624
|
-
return parseInt(e.getAttribute(
|
|
638
|
+
return parseInt(e.getAttribute(ee) || "", 10);
|
|
625
639
|
}, bt = (e) => {
|
|
626
640
|
if (!e)
|
|
627
641
|
return;
|
|
628
|
-
const t = e.getAttribute(
|
|
642
|
+
const t = e.getAttribute(Ke);
|
|
629
643
|
return t || void 0;
|
|
630
|
-
}, ut = (e) => e ? !!e.getAttribute(
|
|
631
|
-
let n = t.focusable ? Ct :
|
|
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
|
-
},
|
|
647
|
+
}, Yr = (e, t = { level: 0 }) => {
|
|
634
648
|
if (!e)
|
|
635
649
|
return [];
|
|
636
|
-
let n = Ct.map((r) => r + `[${
|
|
650
|
+
let n = Ct.map((r) => r + `[${ee}='${t.level}']`).join(",");
|
|
637
651
|
return Array.from(e.querySelectorAll(n));
|
|
638
|
-
},
|
|
652
|
+
}, Ur = (e = { level: 0 }) => {
|
|
639
653
|
let t = Ct.map(
|
|
640
|
-
(n) => n + `[${
|
|
654
|
+
(n) => n + `[${ee}='${e.level}']`
|
|
641
655
|
).join(",");
|
|
642
656
|
return (n) => n.matches(t);
|
|
643
|
-
},
|
|
644
|
-
const { elementForFocus: t, event: n, contextStateRef: r, prevElement:
|
|
645
|
-
r.current && t && t.focus && (n.preventDefault(), t.focus(), ut(t) && (t.setAttribute("tabIndex", "0"), r.current.activeId = bt(t)),
|
|
646
|
-
},
|
|
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
|
|
650
|
-
for (;
|
|
651
|
-
const i = r[
|
|
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, [
|
|
654
|
-
|
|
667
|
+
return [i, [o, t]];
|
|
668
|
+
o = o + (s ? -1 : 1);
|
|
655
669
|
}
|
|
656
670
|
return [];
|
|
657
|
-
}, Yn = (e, t, n, r,
|
|
671
|
+
}, Yn = (e, t, n, r, s) => {
|
|
658
672
|
if (!n)
|
|
659
673
|
return [];
|
|
660
|
-
let
|
|
661
|
-
for (;
|
|
662
|
-
const i = r[e][
|
|
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,
|
|
665
|
-
|
|
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
|
-
},
|
|
676
|
-
generateNavigatableId:
|
|
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:
|
|
680
|
-
getClosestNavigatableElement:
|
|
693
|
+
getNavigatableElement: _r,
|
|
694
|
+
getClosestNavigatableElement: $r,
|
|
681
695
|
getActiveElement: Hr,
|
|
682
|
-
getClosestScope:
|
|
683
|
-
getHeaderElement:
|
|
696
|
+
getClosestScope: Wr,
|
|
697
|
+
getHeaderElement: Hn,
|
|
684
698
|
getBodyElement: Wn,
|
|
685
|
-
getFocusableElements:
|
|
686
|
-
getNavigatableElements:
|
|
687
|
-
filterNavigatableElements:
|
|
688
|
-
focusElement:
|
|
689
|
-
getIdPrefix:
|
|
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:
|
|
708
|
+
getNextNavigationIndex: Zr,
|
|
695
709
|
getFilterColumnId: Un
|
|
696
|
-
},
|
|
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((
|
|
699
|
-
},
|
|
700
|
-
const { columns: t, filter: n, filterChange: r, sort:
|
|
701
|
-
return /* @__PURE__ */ a.createElement("tr", { className:
|
|
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,
|
|
729
|
+
ariaLabel: d ? i.toLanguageString(ct, v[ct]) : void 0,
|
|
716
730
|
className: H(
|
|
717
731
|
"k-table-th k-header",
|
|
718
|
-
|
|
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
|
|
746
|
+
function es(e, t) {
|
|
733
747
|
const n = e[t].depth;
|
|
734
748
|
let r = null;
|
|
735
|
-
for (let
|
|
736
|
-
if (e[
|
|
737
|
-
r = e[
|
|
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
|
|
760
|
+
function Eo(e) {
|
|
747
761
|
const t = [[]];
|
|
748
762
|
let n = 0;
|
|
749
|
-
for (let
|
|
750
|
-
n = Math.max(n, e[
|
|
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
|
|
753
|
-
return e.forEach((
|
|
754
|
-
t[
|
|
766
|
+
let s = 1;
|
|
767
|
+
return e.forEach((o, i) => {
|
|
768
|
+
t[o.depth] = t[o.depth] || [];
|
|
755
769
|
let l = !1;
|
|
756
|
-
t[
|
|
757
|
-
for (let c =
|
|
758
|
-
r[c] = (r[c] || 0) +
|
|
759
|
-
}),
|
|
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
|
|
762
|
-
let r = new Array(e.length).fill(0),
|
|
763
|
-
t.forEach((
|
|
764
|
-
if (
|
|
765
|
-
if (
|
|
766
|
-
for (let i =
|
|
767
|
-
r[i] +=
|
|
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[
|
|
783
|
+
r[o.depth] += s;
|
|
770
784
|
});
|
|
771
785
|
}
|
|
772
|
-
function
|
|
773
|
-
let r = 0,
|
|
774
|
-
for (let
|
|
775
|
-
const i = t[
|
|
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 =
|
|
778
|
-
for (let c = i.depth; c <
|
|
779
|
-
|
|
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
|
-
|
|
782
|
-
const l =
|
|
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
|
|
801
|
+
function rs(e, t, n = 0) {
|
|
788
802
|
let r = [];
|
|
789
803
|
if (!e || !e.length)
|
|
790
804
|
return [];
|
|
791
|
-
e.forEach((
|
|
792
|
-
const i =
|
|
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
|
-
|
|
798
|
-
|
|
811
|
+
Tr,
|
|
812
|
+
o,
|
|
799
813
|
{
|
|
800
|
-
id:
|
|
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
|
|
811
|
-
if (r.sort(
|
|
812
|
-
let
|
|
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,
|
|
828
|
+
u.parentIndex = c, i(u.children, o.push(u) - 1);
|
|
815
829
|
});
|
|
816
|
-
return i(r, -1),
|
|
830
|
+
return i(r, -1), o;
|
|
817
831
|
}
|
|
818
832
|
return r;
|
|
819
833
|
}
|
|
820
|
-
function
|
|
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
|
|
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(
|
|
849
|
+
r = Array.from(t.children).find(o) || null;
|
|
836
850
|
}
|
|
837
|
-
const
|
|
838
|
-
for (let
|
|
839
|
-
if (o
|
|
840
|
-
return
|
|
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
|
|
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(
|
|
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
|
-
...
|
|
872
|
+
...qr
|
|
859
873
|
},
|
|
860
874
|
this.props.headerRow,
|
|
861
875
|
this.props.filterRow
|
|
862
876
|
);
|
|
863
877
|
}
|
|
864
878
|
}
|
|
865
|
-
function
|
|
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
|
|
872
|
-
class
|
|
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
|
|
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
|
|
956
|
+
const cs = {
|
|
943
957
|
true: { asc: "desc", desc: "", "": "asc" },
|
|
944
958
|
false: { asc: "desc", desc: "asc", "": "asc" }
|
|
945
|
-
},
|
|
959
|
+
}, us = {
|
|
946
960
|
none: "none",
|
|
947
961
|
asc: "ascending",
|
|
948
962
|
desc: "descending"
|
|
949
963
|
};
|
|
950
|
-
class
|
|
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:
|
|
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
|
|
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:
|
|
966
|
-
},
|
|
967
|
-
field:
|
|
968
|
-
onClick: l && ((f) => this.cellClick(f,
|
|
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:
|
|
971
|
-
selectionValue:
|
|
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 =
|
|
994
|
+
}, m = s.columnMenu || this.props.columnMenu, g = H(
|
|
981
995
|
"k-table-th",
|
|
982
996
|
{
|
|
983
|
-
"k-first":
|
|
997
|
+
"k-first": s.kFirst,
|
|
984
998
|
"k-filterable": !!m,
|
|
985
999
|
"k-header": !0,
|
|
986
|
-
"k-grid-header-sticky":
|
|
987
|
-
"k-sorted": this.props.sort && this.props.sort.some((f) => f.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
|
-
|
|
990
|
-
),
|
|
991
|
-
left:
|
|
992
|
-
right:
|
|
993
|
-
borderRightWidth:
|
|
994
|
-
} : {}, b = q(this).toLanguageString(lt,
|
|
995
|
-
let C =
|
|
996
|
-
ariaSort: l ?
|
|
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:
|
|
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:
|
|
1009
|
-
rowSpan:
|
|
1010
|
-
className:
|
|
1011
|
-
style:
|
|
1012
|
-
columnId:
|
|
1013
|
-
navigatable:
|
|
1014
|
-
onKeyDown: l && ((f) => this.cellKeyDown(f,
|
|
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
|
-
|
|
1018
|
-
!
|
|
1019
|
-
|
|
1020
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
1053
|
-
function
|
|
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
|
|
1074
|
-
const { enabled: t, columns: n = [], tableViewPortWidth: r, scrollLeft:
|
|
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:
|
|
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 <
|
|
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 -
|
|
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],
|
|
1097
|
-
let m = d.lastIndexOf(!1),
|
|
1098
|
-
for (;
|
|
1099
|
-
for (m < d.length - 1 && (b =
|
|
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),
|
|
1115
|
+
m = d.lastIndexOf(!1), g = d.some(h), E = d.every(h);
|
|
1102
1116
|
}
|
|
1103
|
-
return { colSpans:
|
|
1117
|
+
return { colSpans: o, hiddenColumns: i };
|
|
1104
1118
|
}
|
|
1105
|
-
class
|
|
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,
|
|
1112
|
-
const
|
|
1113
|
-
|
|
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, !
|
|
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,
|
|
1137
|
+
this.onResize(u, l, c, o, s);
|
|
1124
1138
|
}
|
|
1125
1139
|
setWidths(t, n) {
|
|
1126
|
-
const r = this.columns.indexOf(t),
|
|
1127
|
-
let
|
|
1128
|
-
for (let i = r + 1;
|
|
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 ?
|
|
1144
|
+
l.children.length ? o += l.children.length : s.push(l);
|
|
1131
1145
|
}
|
|
1132
|
-
|
|
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(
|
|
1150
|
+
}), this.updateColElements(s);
|
|
1137
1151
|
}
|
|
1138
1152
|
updateColElements(t) {
|
|
1139
|
-
const n = this.columns.filter((
|
|
1153
|
+
const n = this.columns.filter((s) => !s.children.length);
|
|
1140
1154
|
let r = 1e-10;
|
|
1141
|
-
for (let
|
|
1142
|
-
const
|
|
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[
|
|
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
|
|
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 = (
|
|
1155
|
-
this.groupPanelDivElement =
|
|
1156
|
-
}, this.refDropElementClue = (
|
|
1157
|
-
this.dropElementClue =
|
|
1158
|
-
}, this.refDragElementClue = (
|
|
1159
|
-
this.dragElementClue =
|
|
1160
|
-
}, this.pressHandler = (
|
|
1161
|
-
const i = this.getColumnIndex(
|
|
1162
|
-
if (this.startGroup = this.getGroupIndex(
|
|
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 = (
|
|
1167
|
-
if (
|
|
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(
|
|
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 ?
|
|
1173
|
-
this.updateDragElementClue(
|
|
1174
|
-
}, this.releaseHandler = (
|
|
1175
|
-
const
|
|
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 && (
|
|
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
|
|
1188
|
-
if (n.parentNode.children[
|
|
1189
|
-
return this.columns.findIndex((
|
|
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,
|
|
1212
|
+
updateDragElementClue(t, n, r, s) {
|
|
1199
1213
|
if (!this.dragElementClue)
|
|
1200
1214
|
return;
|
|
1201
|
-
const
|
|
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:
|
|
1207
|
-
status:
|
|
1220
|
+
innerText: o,
|
|
1221
|
+
status: s || !r ? "k-i-cancel" : "k-i-plus"
|
|
1208
1222
|
});
|
|
1209
1223
|
}
|
|
1210
|
-
updateDropElementClue(t, n, r,
|
|
1224
|
+
updateDropElementClue(t, n, r, s) {
|
|
1211
1225
|
if (!this.dropElementClue)
|
|
1212
1226
|
return;
|
|
1213
|
-
if (
|
|
1227
|
+
if (s || !r) {
|
|
1214
1228
|
this.dropElementClue.setState({ visible: !1 });
|
|
1215
1229
|
return;
|
|
1216
1230
|
}
|
|
1217
|
-
const
|
|
1218
|
-
let i =
|
|
1219
|
-
(this.currentColumn > this.startColumn || this.currentGroup > this.startGroup && this.startGroup !== -1) && (i +=
|
|
1220
|
-
const l =
|
|
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 :
|
|
1239
|
+
height: this.currentColumn >= 0 ? n.clientHeight : o.height
|
|
1226
1240
|
});
|
|
1227
1241
|
}
|
|
1228
1242
|
}
|
|
1229
|
-
class
|
|
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
|
|
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,
|
|
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
|
-
|
|
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:
|
|
1340
|
-
ariaLabel:
|
|
1353
|
+
filter: s,
|
|
1354
|
+
ariaLabel: o = t.toLanguageString(tt, v[tt])
|
|
1341
1355
|
} = this.props;
|
|
1342
1356
|
return /* @__PURE__ */ a.createElement(
|
|
1343
|
-
|
|
1357
|
+
Re,
|
|
1344
1358
|
{
|
|
1345
|
-
value: typeof
|
|
1359
|
+
value: typeof s.value == "number" ? s.value : null,
|
|
1346
1360
|
onChange: this.onChange,
|
|
1347
|
-
ariaLabel:
|
|
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
|
-
|
|
1361
|
-
class
|
|
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
|
-
|
|
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:
|
|
1405
|
-
ariaLabel:
|
|
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,
|
|
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:
|
|
1429
|
+
defaultItem: s,
|
|
1416
1430
|
data: i,
|
|
1417
1431
|
textField: "text",
|
|
1418
|
-
ariaLabel:
|
|
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
|
-
|
|
1431
|
-
class
|
|
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
|
-
|
|
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
|
|
1459
|
-
{ text:
|
|
1472
|
+
const gs = [
|
|
1473
|
+
{ text: on, operator: "contains" },
|
|
1460
1474
|
{ text: an, operator: "doesnotcontain" },
|
|
1461
|
-
{ text:
|
|
1462
|
-
{ text:
|
|
1463
|
-
{ text:
|
|
1475
|
+
{ text: de, operator: "eq" },
|
|
1476
|
+
{ text: pe, operator: "neq" },
|
|
1477
|
+
{ text: sn, operator: "startswith" },
|
|
1464
1478
|
{ text: ln, operator: "endswith" },
|
|
1465
|
-
{ text:
|
|
1466
|
-
{ text:
|
|
1479
|
+
{ text: Le, operator: "isnull" },
|
|
1480
|
+
{ text: De, operator: "isnotnull" },
|
|
1467
1481
|
{ text: nn, operator: "isempty" },
|
|
1468
1482
|
{ text: rn, operator: "isnotempty" }
|
|
1469
|
-
],
|
|
1470
|
-
{ text:
|
|
1471
|
-
{ text:
|
|
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:
|
|
1477
|
-
{ text:
|
|
1478
|
-
],
|
|
1479
|
-
{ text:
|
|
1480
|
-
{ text:
|
|
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:
|
|
1486
|
-
{ text:
|
|
1487
|
-
],
|
|
1488
|
-
{ text:
|
|
1489
|
-
{ text:
|
|
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
|
|
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 [...
|
|
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 [...
|
|
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 [...
|
|
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 [...
|
|
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),
|
|
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:
|
|
1579
|
+
operator: o
|
|
1566
1580
|
};
|
|
1567
|
-
qt(i), this.triggerOnFilterChange(
|
|
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
|
|
1584
|
+
let s;
|
|
1571
1585
|
if (pt(n)) {
|
|
1572
|
-
let { value:
|
|
1573
|
-
|
|
1586
|
+
let { value: o, ...i } = r;
|
|
1587
|
+
s = { ...i, operator: n };
|
|
1574
1588
|
} else
|
|
1575
|
-
|
|
1576
|
-
qt(
|
|
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
|
|
1582
|
-
r = { ...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
|
|
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,
|
|
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:
|
|
1609
|
-
} = this.props,
|
|
1610
|
-
return /* @__PURE__ */ a.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ a.createElement(Yt, { keyboardNavigation: !1, role: "toolbar", ariaLabel:
|
|
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,
|
|
1632
|
+
ariaLabel: t.toLanguageString(Je, v[Je])
|
|
1619
1633
|
}
|
|
1620
|
-
)), /* @__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,
|
|
1641
|
+
ariaLabel: t.toLanguageString(Qe, v[Qe])
|
|
1628
1642
|
}
|
|
1629
|
-
)), /* @__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(
|
|
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
|
-
|
|
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
|
|
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,
|
|
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((
|
|
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((
|
|
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,
|
|
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,
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
(
|
|
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:
|
|
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:
|
|
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
|
|
1784
|
-
|
|
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
|
-
|
|
1794
|
-
class
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
|
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
|
-
),
|
|
1887
|
+
), Cs = [
|
|
1874
1888
|
{ text: yn, operator: "contains" },
|
|
1875
1889
|
{ text: In, operator: "doesnotcontain" },
|
|
1876
|
-
{ text:
|
|
1877
|
-
{ text:
|
|
1890
|
+
{ text: we, operator: "eq" },
|
|
1891
|
+
{ text: Oe, operator: "neq" },
|
|
1878
1892
|
{ text: bn, operator: "startswith" },
|
|
1879
1893
|
{ text: kn, operator: "endswith" },
|
|
1880
|
-
{ text:
|
|
1881
|
-
{ text:
|
|
1894
|
+
{ text: Ne, operator: "isnull" },
|
|
1895
|
+
{ text: Ae, operator: "isnotnull" },
|
|
1882
1896
|
{ text: Cn, operator: "isempty" },
|
|
1883
1897
|
{ text: xn, operator: "isnotempty" }
|
|
1884
|
-
],
|
|
1885
|
-
{ text:
|
|
1886
|
-
{ text:
|
|
1887
|
-
{ text:
|
|
1888
|
-
{ text:
|
|
1889
|
-
{ text:
|
|
1890
|
-
{ text:
|
|
1891
|
-
{ text:
|
|
1892
|
-
{ text:
|
|
1893
|
-
],
|
|
1894
|
-
{ text:
|
|
1895
|
-
{ text:
|
|
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:
|
|
1901
|
-
{ text:
|
|
1902
|
-
],
|
|
1914
|
+
{ text: Ne, operator: "isnull" },
|
|
1915
|
+
{ text: Ae, operator: "isnotnull" }
|
|
1916
|
+
], ys = [
|
|
1903
1917
|
{ text: Ln, operator: "" }
|
|
1904
1918
|
];
|
|
1905
|
-
class
|
|
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 [...
|
|
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 [...
|
|
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 [...
|
|
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 [...
|
|
1981
|
+
return [...ys];
|
|
1968
1982
|
}
|
|
1969
1983
|
}
|
|
1970
|
-
const
|
|
1971
|
-
const { filter: t, onFilterChange: n, operators: r, initialFilter:
|
|
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,
|
|
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,
|
|
1990
|
+
[t, n, s]
|
|
1977
1991
|
), i = a.useCallback(
|
|
1978
1992
|
(u) => {
|
|
1979
|
-
const d = u.target.value,
|
|
1980
|
-
n.call(void 0, u, m,
|
|
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 =
|
|
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:
|
|
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
|
-
},
|
|
2013
|
+
}, Is = (e) => {
|
|
2000
2014
|
const { filter: t, onFilterChange: n } = e, r = a.useCallback(
|
|
2001
|
-
(
|
|
2015
|
+
(o) => n.call(void 0, o.syntheticEvent, { ...t, value: o.value }, t),
|
|
2002
2016
|
[t, n]
|
|
2003
|
-
),
|
|
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:
|
|
2023
|
+
label: Q().toLanguageString(s, v[s]),
|
|
2010
2024
|
labelPlacement: "after"
|
|
2011
2025
|
}
|
|
2012
2026
|
);
|
|
2013
|
-
},
|
|
2014
|
-
const t = a.useCallback((
|
|
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
|
-
|
|
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
|
-
},
|
|
2025
|
-
const t = a.useCallback((
|
|
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
|
-
|
|
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((
|
|
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
|
-
|
|
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
|
-
},
|
|
2047
|
-
const t =
|
|
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
|
-
},
|
|
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
|
-
)))),
|
|
2068
|
-
const t =
|
|
2081
|
+
)))), Fs = (e) => {
|
|
2082
|
+
const t = Q();
|
|
2069
2083
|
return /* @__PURE__ */ a.createElement(
|
|
2070
|
-
|
|
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,
|
|
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(
|
|
2098
|
+
t.toLanguageString(st, v[st])
|
|
2085
2099
|
))
|
|
2086
2100
|
}
|
|
2087
2101
|
);
|
|
2088
|
-
},
|
|
2102
|
+
}, qe = (e) => {
|
|
2089
2103
|
gt(Et);
|
|
2090
2104
|
const t = a.useRef([]), {
|
|
2091
2105
|
field: n,
|
|
2092
2106
|
filter: r,
|
|
2093
|
-
sort:
|
|
2094
|
-
onSortChange:
|
|
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:
|
|
2101
|
-
} = e, [m,
|
|
2102
|
-
() => (r || []).find((
|
|
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
|
-
),
|
|
2118
|
+
), S = a.useCallback(
|
|
2105
2119
|
() => {
|
|
2106
|
-
|
|
2120
|
+
g(!1);
|
|
2107
2121
|
},
|
|
2108
2122
|
[]
|
|
2109
|
-
),
|
|
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
|
-
|
|
2130
|
+
S();
|
|
2117
2131
|
});
|
|
2118
2132
|
},
|
|
2119
|
-
[
|
|
2133
|
+
[S]
|
|
2120
2134
|
), P = a.useCallback(
|
|
2121
2135
|
() => clearTimeout(k.current),
|
|
2122
2136
|
[]
|
|
2123
|
-
), T = a.useCallback((
|
|
2124
|
-
x.current = m &&
|
|
2125
|
-
}, [m]),
|
|
2137
|
+
), T = a.useCallback((M) => {
|
|
2138
|
+
x.current = m && M.currentTarget === I.current;
|
|
2139
|
+
}, [m]), G = a.useCallback(
|
|
2126
2140
|
() => {
|
|
2127
|
-
|
|
2141
|
+
g(!m), n && l && (b(m ? !1 : h), f(m ? C : y() || l(n)));
|
|
2128
2142
|
},
|
|
2129
|
-
[y, n, m, C, l,
|
|
2143
|
+
[y, n, m, C, l, h]
|
|
2130
2144
|
);
|
|
2131
2145
|
a.useEffect(
|
|
2132
2146
|
() => {
|
|
2133
|
-
m &&
|
|
2147
|
+
m && F.current && F.current.focus();
|
|
2134
2148
|
},
|
|
2135
2149
|
[m]
|
|
2136
2150
|
);
|
|
2137
|
-
const
|
|
2138
|
-
() => b(!
|
|
2139
|
-
[
|
|
2140
|
-
),
|
|
2141
|
-
(
|
|
2142
|
-
const
|
|
2143
|
-
|
|
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
|
-
[
|
|
2146
|
-
),
|
|
2147
|
-
(
|
|
2148
|
-
const
|
|
2149
|
-
|
|
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
|
-
),
|
|
2153
|
-
(
|
|
2154
|
-
|
|
2155
|
-
const
|
|
2156
|
-
|
|
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,
|
|
2159
|
-
),
|
|
2160
|
-
(
|
|
2161
|
-
const
|
|
2162
|
-
|
|
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,
|
|
2165
|
-
), Ge = a.useCallback((
|
|
2166
|
-
(
|
|
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
|
-
),
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
] = d,
|
|
2173
|
-
|
|
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:
|
|
2189
|
+
title: _e.toLanguageString(at, v[at]),
|
|
2176
2190
|
iconClass: "k-i-sort-asc-small",
|
|
2177
2191
|
svgIcon: Xt,
|
|
2178
|
-
selected:
|
|
2192
|
+
selected: te.dir === "asc",
|
|
2179
2193
|
onClick: Ge
|
|
2180
2194
|
}
|
|
2181
2195
|
), u && /* @__PURE__ */ a.createElement(
|
|
2182
|
-
|
|
2196
|
+
We,
|
|
2183
2197
|
{
|
|
2184
|
-
title:
|
|
2198
|
+
title: _e.toLanguageString(it, v[it]),
|
|
2185
2199
|
iconClass: "k-i-sort-desc-small",
|
|
2186
2200
|
svgIcon: Zt,
|
|
2187
|
-
selected:
|
|
2188
|
-
onClick:
|
|
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
|
-
|
|
2205
|
+
We,
|
|
2192
2206
|
{
|
|
2193
2207
|
iconClass: "k-i-filter",
|
|
2194
|
-
svgIcon:
|
|
2195
|
-
title:
|
|
2196
|
-
onClick:
|
|
2208
|
+
svgIcon: Ve,
|
|
2209
|
+
title: _e.toLanguageString(ot, v[ot]),
|
|
2210
|
+
onClick: D
|
|
2197
2211
|
}
|
|
2198
2212
|
), /* @__PURE__ */ a.createElement(
|
|
2199
|
-
|
|
2213
|
+
Fs,
|
|
2200
2214
|
{
|
|
2201
|
-
show:
|
|
2202
|
-
onSubmit:
|
|
2203
|
-
onReset:
|
|
2215
|
+
show: E,
|
|
2216
|
+
onSubmit: Z,
|
|
2217
|
+
onReset: he
|
|
2204
2218
|
},
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
)) : null, Lt = [nr, rr],
|
|
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:
|
|
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:
|
|
2218
|
-
),
|
|
2219
|
-
|
|
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:
|
|
2243
|
+
ref: F,
|
|
2230
2244
|
tabIndex: 0,
|
|
2231
|
-
onBlur:
|
|
2245
|
+
onBlur: A,
|
|
2232
2246
|
onFocus: P,
|
|
2233
2247
|
style: { outline: "none" }
|
|
2234
2248
|
},
|
|
2235
|
-
e.itemsRender ? e.itemsRender.call(void 0, Lt, { closeMenu:
|
|
2249
|
+
e.itemsRender ? e.itemsRender.call(void 0, Lt, { closeMenu: S, field: n }) : Lt
|
|
2236
2250
|
)
|
|
2237
|
-
), Dt = [
|
|
2251
|
+
), Dt = [sr, or];
|
|
2238
2252
|
return /* @__PURE__ */ a.createElement(a.Fragment, null, e.render ? e.render.call(void 0, Dt) : Dt);
|
|
2239
|
-
},
|
|
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
|
-
),
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2257
|
+
), s = !!e.field, o = s ? [
|
|
2258
|
+
Gt,
|
|
2259
|
+
Mt,
|
|
2260
|
+
Gt
|
|
2247
2261
|
] : [];
|
|
2248
2262
|
return /* @__PURE__ */ a.createElement(
|
|
2249
|
-
|
|
2263
|
+
qe,
|
|
2250
2264
|
{
|
|
2251
|
-
sortAsc:
|
|
2252
|
-
sortDesc:
|
|
2253
|
-
filterContent:
|
|
2254
|
-
initialFilter:
|
|
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
|
-
},
|
|
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
|
-
),
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2277
|
+
), s = !!e.field, o = s ? [
|
|
2278
|
+
zt,
|
|
2279
|
+
Mt,
|
|
2280
|
+
zt
|
|
2267
2281
|
] : [];
|
|
2268
2282
|
return /* @__PURE__ */ a.createElement(
|
|
2269
|
-
|
|
2283
|
+
qe,
|
|
2270
2284
|
{
|
|
2271
|
-
sortAsc:
|
|
2272
|
-
sortDesc:
|
|
2273
|
-
filterContent:
|
|
2274
|
-
initialFilter:
|
|
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
|
-
},
|
|
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
|
-
),
|
|
2297
|
+
), s = !!e.field, o = s ? [
|
|
2284
2298
|
_t,
|
|
2285
|
-
|
|
2299
|
+
Mt,
|
|
2286
2300
|
_t
|
|
2287
2301
|
] : [];
|
|
2288
2302
|
return /* @__PURE__ */ a.createElement(
|
|
2289
|
-
|
|
2303
|
+
qe,
|
|
2290
2304
|
{
|
|
2291
|
-
sortAsc:
|
|
2292
|
-
sortDesc:
|
|
2293
|
-
filterContent:
|
|
2294
|
-
initialFilter:
|
|
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
|
-
},
|
|
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
|
-
),
|
|
2304
|
-
|
|
2317
|
+
), s = !!e.field, o = s ? [
|
|
2318
|
+
Is
|
|
2305
2319
|
] : [];
|
|
2306
2320
|
return /* @__PURE__ */ a.createElement(
|
|
2307
|
-
|
|
2321
|
+
qe,
|
|
2308
2322
|
{
|
|
2309
|
-
sortAsc:
|
|
2310
|
-
sortDesc:
|
|
2311
|
-
filterContent:
|
|
2312
|
-
initialFilter:
|
|
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
|
|
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 =
|
|
2324
|
-
return { ...r, [n]:
|
|
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
|
|
2342
|
+
function wo(e, t, n) {
|
|
2329
2343
|
let r = tn(e, t);
|
|
2330
|
-
return r = r.map((
|
|
2344
|
+
return r = r.map((s) => Qn(s, t, n)), r;
|
|
2331
2345
|
}
|
|
2332
2346
|
function er(e, t, n) {
|
|
2333
|
-
let r =
|
|
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
|
|
2357
|
+
return le(e, n, i);
|
|
2344
2358
|
}
|
|
2345
2359
|
return e;
|
|
2346
2360
|
}
|
|
2347
|
-
function
|
|
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
|
|
2365
|
+
function No(e, t, n) {
|
|
2352
2366
|
let r = [];
|
|
2353
|
-
const
|
|
2354
|
-
for (let
|
|
2355
|
-
const i = e[
|
|
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: [
|
|
2373
|
+
level: [o],
|
|
2360
2374
|
levelCount: e.length
|
|
2361
2375
|
});
|
|
2362
2376
|
}
|
|
2363
2377
|
for (; r.length > 0; ) {
|
|
2364
|
-
let
|
|
2365
|
-
if (
|
|
2366
|
-
dataItem:
|
|
2367
|
-
level: [...
|
|
2368
|
-
...n(
|
|
2369
|
-
levelCount:
|
|
2370
|
-
}),
|
|
2371
|
-
for (let i =
|
|
2372
|
-
const l =
|
|
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: [...
|
|
2377
|
-
levelCount:
|
|
2390
|
+
level: [...o.level, i],
|
|
2391
|
+
levelCount: o.data.length
|
|
2378
2392
|
});
|
|
2379
2393
|
}
|
|
2380
2394
|
}
|
|
2381
|
-
return
|
|
2395
|
+
return s;
|
|
2382
2396
|
}
|
|
2383
|
-
const
|
|
2384
|
-
const r = (c) => !!$e(t, 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) &&
|
|
2400
|
+
return r(c) && s(c) && u.push(...$e(n, c)), u;
|
|
2387
2401
|
}, i = (c, u, d) => {
|
|
2388
|
-
u.push({ ...c, level: d }),
|
|
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
|
-
},
|
|
2392
|
-
let
|
|
2393
|
-
return e.forEach((l) =>
|
|
2394
|
-
i =
|
|
2395
|
-
}),
|
|
2396
|
-
},
|
|
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
|
-
(
|
|
2400
|
-
)[0][t]],
|
|
2401
|
-
const r = e[n] || [],
|
|
2402
|
-
if (
|
|
2403
|
-
const
|
|
2404
|
-
return
|
|
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]:
|
|
2420
|
+
[n]: o
|
|
2407
2421
|
};
|
|
2408
2422
|
}
|
|
2409
2423
|
return e;
|
|
2410
|
-
},
|
|
2424
|
+
}, Bo = (e, t, n, r) => J(
|
|
2411
2425
|
e,
|
|
2412
2426
|
t,
|
|
2413
|
-
(
|
|
2414
|
-
),
|
|
2415
|
-
const
|
|
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 =
|
|
2418
|
-
(l ? l[r] :
|
|
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] :
|
|
2421
|
-
return
|
|
2422
|
-
},
|
|
2423
|
-
e.items && (e[
|
|
2424
|
-
},
|
|
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
|
-
},
|
|
2442
|
+
}, zo = (e) => {
|
|
2429
2443
|
const t = [];
|
|
2430
|
-
return
|
|
2431
|
-
n[
|
|
2444
|
+
return J(e.data, ht, (n) => {
|
|
2445
|
+
n[ue] && t.push(n[ue]);
|
|
2432
2446
|
}), t;
|
|
2433
|
-
},
|
|
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[
|
|
2451
|
+
expanded: !e.collapsedIds.some((n) => n === t[ue])
|
|
2438
2452
|
})
|
|
2439
|
-
),
|
|
2440
|
-
const { navigatable: t, contextStateRef: n, navigationStateRef: r, idPrefix:
|
|
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:
|
|
2461
|
+
idPrefix: s || cr(),
|
|
2448
2462
|
navigationMatrix: [],
|
|
2449
2463
|
lastHeaderIndex: -1
|
|
2450
2464
|
});
|
|
2451
|
-
},
|
|
2465
|
+
}, Ls = (e) => {
|
|
2452
2466
|
const { scope: t, contextStateRef: n, navigationStateRef: r } = e;
|
|
2453
2467
|
if (n.current && r.current && t) {
|
|
2454
|
-
|
|
2455
|
-
const
|
|
2456
|
-
|
|
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
|
-
},
|
|
2472
|
+
}, Ds = (e) => {
|
|
2459
2473
|
const { contextStateRef: t, navigationStateRef: n, document: r } = e;
|
|
2460
2474
|
if (t.current && n.current && r) {
|
|
2461
|
-
const
|
|
2462
|
-
|
|
2475
|
+
const s = ur(r), o = R.getNavigatableId(s);
|
|
2476
|
+
o && o === t.current.activeId && (n.current.activeElementIsFocused = !0);
|
|
2463
2477
|
}
|
|
2464
|
-
},
|
|
2478
|
+
}, ws = (e) => {
|
|
2465
2479
|
const { scope: t, contextStateRef: n, navigationStateRef: r } = e;
|
|
2466
|
-
if (
|
|
2467
|
-
if (!
|
|
2468
|
-
const
|
|
2469
|
-
|
|
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
|
-
},
|
|
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,
|
|
2478
|
-
if (
|
|
2479
|
-
const
|
|
2480
|
-
if (!
|
|
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 =
|
|
2483
|
-
i && i.setAttribute("tabIndex", "-1"), r.setAttribute("tabIndex", "0"), n.current.activeId =
|
|
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
|
-
},
|
|
2499
|
+
}, Ns = (e, t) => {
|
|
2486
2500
|
const {
|
|
2487
2501
|
contextStateRef: n,
|
|
2488
2502
|
navigationStateRef: r,
|
|
2489
|
-
onNavigationAction:
|
|
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 =
|
|
2495
|
-
|
|
2508
|
+
const d = R.getClosestNavigatableElement(e.target);
|
|
2509
|
+
R.focusElement({ elementForFocus: d, event: e, contextStateRef: n });
|
|
2496
2510
|
return;
|
|
2497
2511
|
}
|
|
2498
|
-
const
|
|
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 =
|
|
2515
|
+
const d = R.getNavigatableElement(o, { level: l + 1 });
|
|
2502
2516
|
if (d) {
|
|
2503
|
-
|
|
2517
|
+
R.focusElement({
|
|
2504
2518
|
elementForFocus: d,
|
|
2505
2519
|
event: e,
|
|
2506
2520
|
contextStateRef: n,
|
|
2507
|
-
prevElement:
|
|
2521
|
+
prevElement: o
|
|
2508
2522
|
});
|
|
2509
2523
|
return;
|
|
2510
2524
|
} else {
|
|
2511
|
-
const
|
|
2512
|
-
|
|
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,
|
|
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 [
|
|
2521
|
-
u[
|
|
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 [
|
|
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 =
|
|
2528
|
-
|
|
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
|
-
},
|
|
2547
|
+
}, Rt = (e) => {
|
|
2534
2548
|
const { navigationStateRef: t, scope: n } = e;
|
|
2535
2549
|
if (!t.current || !n)
|
|
2536
2550
|
return;
|
|
2537
|
-
const r = [],
|
|
2538
|
-
if (!
|
|
2551
|
+
const r = [], s = Hn(n), o = Wn(n);
|
|
2552
|
+
if (!s || !o)
|
|
2539
2553
|
return;
|
|
2540
|
-
const i = Array.from(
|
|
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
|
|
2544
|
-
if (!
|
|
2557
|
+
const h = bt(d);
|
|
2558
|
+
if (!h)
|
|
2545
2559
|
return;
|
|
2546
|
-
const m = d.rowSpan || 1,
|
|
2547
|
-
let
|
|
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] = []),
|
|
2563
|
+
if (r[b] || (r[b] = []), E === void 0) {
|
|
2550
2564
|
const f = r[b].findIndex((I) => !I);
|
|
2551
|
-
|
|
2565
|
+
E = f > -1 ? f : r[b].length;
|
|
2552
2566
|
}
|
|
2553
|
-
r[b][
|
|
2567
|
+
r[b][E] = h || "";
|
|
2554
2568
|
}
|
|
2555
|
-
for (let b =
|
|
2556
|
-
r[u][b] =
|
|
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
|
-
},
|
|
2560
|
-
onConstructor:
|
|
2561
|
-
onComponentDidMount:
|
|
2562
|
-
onGetSnapshotBeforeUpdate:
|
|
2563
|
-
onComponentDidUpdate:
|
|
2564
|
-
onFocus:
|
|
2565
|
-
onKeyDown:
|
|
2566
|
-
generateMatrix:
|
|
2567
|
-
},
|
|
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(
|
|
2594
|
+
const t = e.getAttribute(As);
|
|
2581
2595
|
return t ? parseInt(t, 10) : void 0;
|
|
2582
|
-
},
|
|
2596
|
+
}, Fe = (e) => {
|
|
2583
2597
|
if (!e)
|
|
2584
2598
|
return;
|
|
2585
|
-
const t = e.getAttribute(
|
|
2599
|
+
const t = e.getAttribute(Ps);
|
|
2586
2600
|
return t ? parseInt(t, 10) : void 0;
|
|
2587
|
-
},
|
|
2588
|
-
const t = e.subItemsField ||
|
|
2589
|
-
return
|
|
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
|
-
},
|
|
2597
|
-
const { event: t, dataItemKey: n, selectedState: r } = e, { syntheticEvent:
|
|
2598
|
-
if (
|
|
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 =
|
|
2614
|
+
const C = Y(h, "TD"), f = Y(h, "TR"), I = Fe(C), F = Se(f);
|
|
2601
2615
|
let k = {};
|
|
2602
|
-
return C && f &&
|
|
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:
|
|
2608
|
-
altKey:
|
|
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:
|
|
2618
|
-
endRowIndex:
|
|
2631
|
+
startRowIndex: F,
|
|
2632
|
+
endRowIndex: F,
|
|
2619
2633
|
isDrag: !1,
|
|
2620
|
-
syntheticEvent:
|
|
2621
|
-
nativeEvent:
|
|
2634
|
+
syntheticEvent: s,
|
|
2635
|
+
nativeEvent: o,
|
|
2622
2636
|
target: t.target,
|
|
2623
2637
|
dataItem: null
|
|
2624
2638
|
}
|
|
2625
2639
|
})), k;
|
|
2626
|
-
},
|
|
2640
|
+
}, qs = (e) => {
|
|
2627
2641
|
const { event: t, dataItemKey: n, selectedState: r } = e, {
|
|
2628
|
-
dataItems:
|
|
2629
|
-
startRowIndex:
|
|
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:
|
|
2649
|
+
ctrlKey: h,
|
|
2636
2650
|
shiftKey: m,
|
|
2637
|
-
metaKey:
|
|
2638
|
-
componentId:
|
|
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
|
|
2657
|
+
const F = C !== null;
|
|
2644
2658
|
if (b === "single") {
|
|
2645
|
-
const k =
|
|
2646
|
-
|
|
2647
|
-
rowIndex:
|
|
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 && !
|
|
2651
|
-
d || (
|
|
2652
|
-
rowIndex:
|
|
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
|
-
|
|
2659
|
-
const
|
|
2660
|
-
I[
|
|
2672
|
+
s.slice(o, i + 1).forEach((y) => {
|
|
2673
|
+
const S = f(y);
|
|
2674
|
+
I[S] = u ? [...k] : !0;
|
|
2661
2675
|
});
|
|
2662
|
-
} else if (
|
|
2663
|
-
|
|
2664
|
-
rowIndex:
|
|
2676
|
+
} else if (h || g || F) {
|
|
2677
|
+
j[E] = {
|
|
2678
|
+
rowIndex: o,
|
|
2665
2679
|
colIndex: l
|
|
2666
2680
|
};
|
|
2667
|
-
const x =
|
|
2668
|
-
I = { ...r }, I[y] = u && !
|
|
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 =
|
|
2671
|
-
for (let
|
|
2672
|
-
T.push(
|
|
2673
|
-
|
|
2674
|
-
const
|
|
2675
|
-
I[
|
|
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
|
-
},
|
|
2680
|
-
if (!e || !
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2698
|
-
const t = e ? typeof e.enabled == "boolean" ? e.enabled : !0 : !1, n = e ? !!e.drag : !1, r = e && e.mode ? e.mode : "multiple",
|
|
2699
|
-
return { enabled: t, drag: n, mode: r, cell:
|
|
2700
|
-
},
|
|
2701
|
-
var
|
|
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:
|
|
2705
|
-
mode:
|
|
2718
|
+
drag: s,
|
|
2719
|
+
mode: o,
|
|
2706
2720
|
cell: i
|
|
2707
|
-
} =
|
|
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
|
-
|
|
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:
|
|
2719
|
-
if (!
|
|
2720
|
-
const
|
|
2721
|
-
|
|
2722
|
-
top: Math.min(
|
|
2723
|
-
left: Math.min(y, x.clientX) -
|
|
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 -
|
|
2739
|
+
height: Math.abs(x.clientY - S)
|
|
2726
2740
|
});
|
|
2727
2741
|
}
|
|
2728
2742
|
},
|
|
2729
|
-
[
|
|
2743
|
+
[h, s, o]
|
|
2730
2744
|
), f = a.useCallback(
|
|
2731
2745
|
(k) => {
|
|
2732
|
-
const { event: x } = k, { clientX: y, clientY:
|
|
2733
|
-
if (
|
|
2746
|
+
const { event: x } = k, { clientX: y, clientY: S } = u.current;
|
|
2747
|
+
if (E.current || !l.current)
|
|
2734
2748
|
return;
|
|
2735
|
-
const
|
|
2736
|
-
if (
|
|
2737
|
-
if (
|
|
2738
|
-
const P = Math.min(
|
|
2739
|
-
if (!
|
|
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
|
-
|
|
2742
|
-
const
|
|
2743
|
-
if (
|
|
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
|
|
2746
|
-
|
|
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:
|
|
2749
|
-
startColIndex:
|
|
2750
|
-
endRowIndex:
|
|
2751
|
-
endColIndex:
|
|
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:
|
|
2770
|
+
mode: o,
|
|
2757
2771
|
cell: i,
|
|
2758
2772
|
isDrag: !0
|
|
2759
2773
|
});
|
|
2760
2774
|
} else {
|
|
2761
|
-
const P =
|
|
2775
|
+
const P = A.elementFromPoint(y, S);
|
|
2762
2776
|
if (!P)
|
|
2763
2777
|
return;
|
|
2764
|
-
const T =
|
|
2765
|
-
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:
|
|
2768
|
-
startColIndex:
|
|
2769
|
-
endRowIndex:
|
|
2770
|
-
endColIndex:
|
|
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:
|
|
2789
|
+
mode: o,
|
|
2776
2790
|
cell: i,
|
|
2777
2791
|
isDrag: !1
|
|
2778
2792
|
});
|
|
2779
2793
|
}
|
|
2780
|
-
|
|
2794
|
+
h(null), g.current = !1, u.current = { clientX: 0, clientY: 0 };
|
|
2781
2795
|
}
|
|
2782
2796
|
},
|
|
2783
|
-
[
|
|
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
|
-
(
|
|
2818
|
+
(F = I()) == null ? void 0 : F.body
|
|
2805
2819
|
)) : a.cloneElement(a.Children.only(e.children), { ref: n });
|
|
2806
|
-
},
|
|
2807
|
-
var
|
|
2808
|
-
const
|
|
2809
|
-
const r = e.cellDelimiter || " ",
|
|
2810
|
-
`,
|
|
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 =
|
|
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],
|
|
2815
|
-
return
|
|
2816
|
-
dataItem:
|
|
2817
|
-
fields:
|
|
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
|
-
},
|
|
2834
|
+
}, Vs = (e, t) => {
|
|
2821
2835
|
if (!t.length)
|
|
2822
2836
|
return null;
|
|
2823
2837
|
let n = "";
|
|
2824
|
-
return t.forEach((r,
|
|
2825
|
-
},
|
|
2826
|
-
const r = n.cellDelimiter || " ",
|
|
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)}${
|
|
2829
|
-
},
|
|
2830
|
-
const { event: t, selectedState: n, data: r, dataItemKey:
|
|
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
|
-
|
|
2833
|
-
}),
|
|
2834
|
-
const u = c[
|
|
2835
|
-
return
|
|
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:
|
|
2851
|
+
fields: o[u].map((d) => d.field || "")
|
|
2838
2852
|
}), c;
|
|
2839
2853
|
}), i;
|
|
2840
|
-
},
|
|
2854
|
+
}, js = (e, t) => {
|
|
2841
2855
|
const n = t.newLineDelimiter || `\r
|
|
2842
|
-
`, r = e.copiedItems.map((
|
|
2843
|
-
let i =
|
|
2844
|
-
return t.copyHeaders &&
|
|
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
|
-
},
|
|
2848
|
-
const { event: t } = e, n =
|
|
2861
|
+
}, Yo = (e) => {
|
|
2862
|
+
const { event: t } = e, n = Us(e);
|
|
2849
2863
|
let r = "";
|
|
2850
2864
|
if (t.type === "paste") {
|
|
2851
|
-
const
|
|
2852
|
-
r =
|
|
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 =
|
|
2868
|
+
n.pastedItems = [], r = js(n, t);
|
|
2855
2869
|
return n.clipboardData = r, n;
|
|
2856
2870
|
};
|
|
2857
|
-
class
|
|
2871
|
+
class Uo {
|
|
2858
2872
|
constructor(t) {
|
|
2859
2873
|
this.copyHandler = (n) => {
|
|
2860
|
-
this.clipboardEvent(
|
|
2874
|
+
this.clipboardEvent(z.copy, n);
|
|
2861
2875
|
}, this.cutHandler = (n) => {
|
|
2862
|
-
this.clipboardEvent(
|
|
2876
|
+
this.clipboardEvent(z.cut, n);
|
|
2863
2877
|
}, this.pasteHandler = (n) => {
|
|
2864
|
-
this.clipboardEvent(
|
|
2878
|
+
this.clipboardEvent(z.paste, n);
|
|
2865
2879
|
}, this.addEventListeners = (n) => {
|
|
2866
|
-
n && (n.addEventListener(
|
|
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(
|
|
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
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
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
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
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
|
-
|
|
2914
|
+
Jr as FILTER_ROW_CLASS,
|
|
2901
2915
|
Ct as FOCUSABLE_ELEMENTS,
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
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
|
-
|
|
2924
|
+
Gn as KEYBOARD_NAV_DATA_BODY,
|
|
2911
2925
|
qn as KEYBOARD_NAV_DATA_HEADER,
|
|
2912
|
-
|
|
2913
|
-
|
|
2926
|
+
Ke as KEYBOARD_NAV_DATA_ID,
|
|
2927
|
+
ee as KEYBOARD_NAV_DATA_LEVEL,
|
|
2914
2928
|
Bn as KEYBOARD_NAV_DATA_SCOPE,
|
|
2915
|
-
|
|
2916
|
-
|
|
2929
|
+
go as KEYBOARD_NAV_DATA_ZONE,
|
|
2930
|
+
Kr as KEYBOARD_NAV_FILTER_COL_SUFFIX,
|
|
2917
2931
|
Xn as NumericFilter,
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
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
|
-
|
|
2940
|
+
Vo as TableSelection,
|
|
2927
2941
|
jn as TextFilter,
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
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
|
-
|
|
2939
|
-
|
|
2952
|
+
$t as getItemPath,
|
|
2953
|
+
_s as getOffset,
|
|
2940
2954
|
Se as getRowIndex,
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
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
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
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
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2981
|
+
ts as updateLeft,
|
|
2982
|
+
ns as updateRight,
|
|
2983
|
+
Gr as useTableKeyboardNavigation
|
|
2970
2984
|
};
|