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