@progress/kendo-react-dropdowns 7.2.0-develop.7 → 7.2.0-develop.9
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/DropDownTree/useDropdownWidth.d.ts +2 -1
- package/common/settings.d.ts +3 -11
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.js +1 -1
- package/index.mjs +545 -552
- package/package.json +9 -9
package/index.mjs
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"use client";
|
|
6
6
|
import * as o from "react";
|
|
7
7
|
import l from "prop-types";
|
|
8
|
-
import { IconWrap as Ce, classNames as B, Keys as g, svgIconPropType as
|
|
8
|
+
import { IconWrap as Ce, classNames as B, Keys as g, svgIconPropType as fs, createPropsContext as Be, withIdHOC as Et, withPropsContext as Dt, validatePackage as $e, canUseDOM as Me, getTabIndex as Gt, kendoThemeMaps as Ge, getActiveElement as ws, useCustomComponent as Es, usePropsContext as Ut, getScrollbarWidth as Ds, getter as Ct, setScrollbarWidth as Fs, useId as gs, useRtl as ms, noop as Fe, mapTree as Ts, extendDataItem as Ms } from "@progress/kendo-react-common";
|
|
9
9
|
import { FloatingLabel as Ue } from "@progress/kendo-react-labels";
|
|
10
|
-
import { searchIcon as
|
|
11
|
-
import { Popup as Yt, PopupPropsContext as
|
|
12
|
-
import { TextBox as
|
|
13
|
-
import { provideLocalizationService as We, registerForLocalization as
|
|
14
|
-
import { Button as Te, Chip as
|
|
15
|
-
import { ActionSheet as Jt, ActionSheetHeader as Qt, ActionSheetContent as
|
|
10
|
+
import { searchIcon as Ns, caretAltDownIcon as jt, xIcon as at, plusIcon as Os } from "@progress/kendo-svg-icons";
|
|
11
|
+
import { Popup as Yt, PopupPropsContext as Ps } from "@progress/kendo-react-popup";
|
|
12
|
+
import { TextBox as _s, InputPrefix as Rs } from "@progress/kendo-react-inputs";
|
|
13
|
+
import { provideLocalizationService as We, registerForLocalization as vs, useLocalization as bs } from "@progress/kendo-react-intl";
|
|
14
|
+
import { Button as Te, Chip as Vs } from "@progress/kendo-react-buttons";
|
|
15
|
+
import { ActionSheet as Jt, ActionSheetHeader as Qt, ActionSheetContent as lt, ActionSheetFooter as Bs } from "@progress/kendo-react-layout";
|
|
16
16
|
import { TreeView as kt } from "@progress/kendo-react-treeview";
|
|
17
17
|
class Ft extends o.Component {
|
|
18
18
|
render() {
|
|
@@ -40,7 +40,7 @@ const Xt = o.forwardRef((i, t) => {
|
|
|
40
40
|
t,
|
|
41
41
|
() => e.current
|
|
42
42
|
), /* @__PURE__ */ o.createElement("div", { className: "k-list-filter" }, /* @__PURE__ */ o.createElement(
|
|
43
|
-
|
|
43
|
+
_s,
|
|
44
44
|
{
|
|
45
45
|
...i,
|
|
46
46
|
ref: e,
|
|
@@ -52,7 +52,7 @@ const Xt = o.forwardRef((i, t) => {
|
|
|
52
52
|
size: i.size,
|
|
53
53
|
fillMode: i.fillMode,
|
|
54
54
|
rounded: i.rounded,
|
|
55
|
-
prefix: () => /* @__PURE__ */ o.createElement(
|
|
55
|
+
prefix: () => /* @__PURE__ */ o.createElement(Rs, null, /* @__PURE__ */ o.createElement(Ce, { name: "search", icon: Ns }))
|
|
56
56
|
}
|
|
57
57
|
));
|
|
58
58
|
});
|
|
@@ -66,7 +66,7 @@ Xt.propTypes = {
|
|
|
66
66
|
fillMode: l.oneOf([null, "solid", "flat", "outline"])
|
|
67
67
|
};
|
|
68
68
|
Xt.displayName = "KendoReactListFilter";
|
|
69
|
-
const
|
|
69
|
+
const Re = Xt;
|
|
70
70
|
class qe extends o.Component {
|
|
71
71
|
render() {
|
|
72
72
|
const {
|
|
@@ -77,27 +77,27 @@ class qe extends o.Component {
|
|
|
77
77
|
return s !== void 0 ? s.call(void 0, n, this.props) : n;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
const U = (i) => i != null,
|
|
80
|
+
const U = (i) => i != null, Ks = (i, t) => {
|
|
81
81
|
for (let e = 0; e < i.length; e++)
|
|
82
82
|
if (i.charAt(e) !== t)
|
|
83
83
|
return !1;
|
|
84
84
|
return !0;
|
|
85
|
-
},
|
|
85
|
+
}, Ls = (i, t, e) => {
|
|
86
86
|
let s = i;
|
|
87
87
|
return e && (s = [e].concat(s)), s.slice(t).concat(s.slice(0, t));
|
|
88
|
-
},
|
|
88
|
+
}, os = (i, t, e) => {
|
|
89
89
|
if (!U(i))
|
|
90
90
|
return !1;
|
|
91
91
|
let s = String(i);
|
|
92
92
|
return e && (s = s.toLowerCase()), s.indexOf(t) === 0;
|
|
93
|
-
},
|
|
93
|
+
}, zs = (i, t, e, s, n) => {
|
|
94
94
|
const a = i.offsetHeight, p = t.children.item(e), c = p.offsetTop + (n ? s - i.scrollTop : 0), d = p.offsetHeight;
|
|
95
95
|
if (n) {
|
|
96
96
|
let r = 0;
|
|
97
97
|
c + d > a ? r = c + d - a : c < 0 && (r = c), r !== 0 ? i.scrollTop += r : i.scrollTop === 0 && s !== 0 && (i.scrollTop = s);
|
|
98
98
|
} else
|
|
99
99
|
c + d > a + i.scrollTop ? i.scrollTop = c + d - a : c < i.scrollTop && (i.scrollTop -= i.scrollTop - c);
|
|
100
|
-
},
|
|
100
|
+
}, Ve = (i, t, e) => {
|
|
101
101
|
let s = -1;
|
|
102
102
|
if (t) {
|
|
103
103
|
t = t.toLowerCase();
|
|
@@ -127,7 +127,7 @@ const U = (i) => i != null, Ls = (i, t) => {
|
|
|
127
127
|
return;
|
|
128
128
|
const s = i.findIndex((n) => V(n, t) === e);
|
|
129
129
|
return i[s];
|
|
130
|
-
},
|
|
130
|
+
}, Hs = (i = [], t = [], e) => {
|
|
131
131
|
if (i === t)
|
|
132
132
|
return !0;
|
|
133
133
|
if (i.length !== t.length)
|
|
@@ -141,26 +141,26 @@ const U = (i) => i != null, Ls = (i, t) => {
|
|
|
141
141
|
const n = i.findIndex((a) => R(a, s, e));
|
|
142
142
|
n !== -1 && i.splice(n, 1);
|
|
143
143
|
});
|
|
144
|
-
}, R = (i, t, e) => i === t || U(i) === U(t) && V(i, e) === V(t, e),
|
|
144
|
+
}, R = (i, t, e) => i === t || U(i) === U(t) && V(i, e) === V(t, e), as = (i, t, e) => {
|
|
145
145
|
if (t) {
|
|
146
146
|
const s = Lt(i, t, e, !0);
|
|
147
|
-
return s !== -1 ? i[s] : i[
|
|
147
|
+
return s !== -1 ? i[s] : i[Ve(i, t, e)];
|
|
148
148
|
}
|
|
149
149
|
return i[0];
|
|
150
|
-
},
|
|
150
|
+
}, As = (i, t = [], e) => {
|
|
151
151
|
let s = "";
|
|
152
152
|
if (i) {
|
|
153
|
-
const n = t[
|
|
153
|
+
const n = t[Ve(t, i, e)];
|
|
154
154
|
if (n) {
|
|
155
155
|
const a = V(n, e);
|
|
156
156
|
i.toLowerCase() !== a.toLowerCase() && (s = a.substring(i.length));
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
return s;
|
|
160
|
-
},
|
|
160
|
+
}, Ws = (i) => {
|
|
161
161
|
i.target.nodeName !== "INPUT" && i.preventDefault();
|
|
162
|
-
}, St = (i, t, e) => !!i != !!t || i.text !== t.text ? !1 : i === t ||
|
|
163
|
-
class
|
|
162
|
+
}, St = (i, t, e) => !!i != !!t || i.text !== t.text ? !1 : i === t || Hs(i.data, t.data, e), qs = (i) => i.preventDefault();
|
|
163
|
+
class $s extends o.Component {
|
|
164
164
|
render() {
|
|
165
165
|
const {
|
|
166
166
|
selected: t,
|
|
@@ -171,7 +171,7 @@ class Gs extends o.Component {
|
|
|
171
171
|
"div",
|
|
172
172
|
{
|
|
173
173
|
onClick: this.props.onClick,
|
|
174
|
-
onMouseDown:
|
|
174
|
+
onMouseDown: qs,
|
|
175
175
|
style: { position: "unset" },
|
|
176
176
|
className: B("k-list-optionlabel", {
|
|
177
177
|
"k-selected": t
|
|
@@ -181,7 +181,7 @@ class Gs extends o.Component {
|
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
class
|
|
184
|
+
class Gs extends o.Component {
|
|
185
185
|
constructor() {
|
|
186
186
|
super(...arguments), this.handleClick = (t) => this.props.onClick(this.props.index, t);
|
|
187
187
|
}
|
|
@@ -216,7 +216,7 @@ class Us extends o.Component {
|
|
|
216
216
|
return c !== void 0 ? c.call(void 0, d, this.props) : d;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
class
|
|
219
|
+
class Us extends o.Component {
|
|
220
220
|
render() {
|
|
221
221
|
const {
|
|
222
222
|
group: t,
|
|
@@ -236,14 +236,14 @@ class js extends o.Component {
|
|
|
236
236
|
return s !== void 0 ? s.call(void 0, a, this.props) : a;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
const ve = "dropdowns.nodata",
|
|
240
|
-
[
|
|
239
|
+
const ve = "dropdowns.nodata", it = "dropdowns.clear", zt = "dropdowns.comboArrowBtnAriaLabelExpand", Ht = "dropdowns.comboArrowBtnAriaLabelCollapse", At = "dropdowns.dropDownListArrowBtnAriaLabel", nt = "dropdowns.apply", ot = "dropdowns.cancel", ce = {
|
|
240
|
+
[it]: "clear",
|
|
241
241
|
[ve]: "NO DATA FOUND.",
|
|
242
242
|
[zt]: "expand combobox",
|
|
243
243
|
[Ht]: "collapse combobox",
|
|
244
244
|
[At]: "select",
|
|
245
|
-
[
|
|
246
|
-
[
|
|
245
|
+
[nt]: "Apply",
|
|
246
|
+
[ot]: "Cancel"
|
|
247
247
|
};
|
|
248
248
|
class je extends o.Component {
|
|
249
249
|
renderItems() {
|
|
@@ -266,10 +266,10 @@ class je extends o.Component {
|
|
|
266
266
|
let w = 0;
|
|
267
267
|
return f.map((k, D) => {
|
|
268
268
|
const O = c + D, N = c + D + w, _ = k.disabled ? !1 : h && (!b && R(k, u, e) || b && u.findIndex((E) => R(E, k, e)) !== -1);
|
|
269
|
-
let S,
|
|
270
|
-
return D > 0 && s !== void 0 && (
|
|
269
|
+
let S, F, C;
|
|
270
|
+
return D > 0 && s !== void 0 && (F = V(k, s), C = V(f[D - 1], s), F && C && F !== C && (S = F)), S !== void 0 && n === "modern" && (w += 1), [
|
|
271
271
|
S !== void 0 && n === "modern" && /* @__PURE__ */ o.createElement(
|
|
272
|
-
|
|
272
|
+
Us,
|
|
273
273
|
{
|
|
274
274
|
id: `option-${p}-${N}`,
|
|
275
275
|
virtual: d,
|
|
@@ -280,7 +280,7 @@ class je extends o.Component {
|
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
282
|
/* @__PURE__ */ o.createElement(
|
|
283
|
-
|
|
283
|
+
Gs,
|
|
284
284
|
{
|
|
285
285
|
id: `option-${p}-${S !== void 0 && n === "modern" ? N + 1 : N}`,
|
|
286
286
|
virtual: d,
|
|
@@ -344,9 +344,9 @@ class je extends o.Component {
|
|
|
344
344
|
) : this.renderNoValueElement(t);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
const
|
|
349
|
-
class
|
|
347
|
+
vs(je);
|
|
348
|
+
const js = 1533915;
|
|
349
|
+
class Ys {
|
|
350
350
|
constructor() {
|
|
351
351
|
this.container = null, this.scrollElement = null, this.list = null, this.containerHeight = 0, this.skip = 0, this.total = 0, this.enabled = !1, this.pageSize = 0, this.itemHeight = 0, this.PageChange = null, this.prevScrollPos = 0, this.listTranslate = 0, this.scrollSyncing = !1, this.scrollerRef = (t) => {
|
|
352
352
|
const e = this;
|
|
@@ -354,7 +354,7 @@ class Js {
|
|
|
354
354
|
}, this.calcScrollElementHeight = () => {
|
|
355
355
|
this.scrollSyncing = !0;
|
|
356
356
|
let t = !1;
|
|
357
|
-
this.itemHeight = this.list ? this.list.children[0].offsetHeight : this.itemHeight, this.containerHeight = Math.min(
|
|
357
|
+
this.itemHeight = this.list ? this.list.children[0].offsetHeight : this.itemHeight, this.containerHeight = Math.min(js, this.itemHeight * this.total);
|
|
358
358
|
const e = this.containerHeight;
|
|
359
359
|
return this.scrollElement && (t = this.scrollElement.style.height !== e + "px", t && (this.scrollElement.style.height = e + "px")), this.scrollSyncing = !1, t;
|
|
360
360
|
}, this.scrollHandler = this.scrollHandler.bind(this);
|
|
@@ -410,7 +410,7 @@ class Js {
|
|
|
410
410
|
return t = Math.max(0, t), t = Math.min(this.containerHeight, t), t;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
class
|
|
413
|
+
class Js {
|
|
414
414
|
navigate(t) {
|
|
415
415
|
const e = t.keyCode;
|
|
416
416
|
if (e === g.up || e === g.left)
|
|
@@ -428,7 +428,7 @@ class Qs {
|
|
|
428
428
|
}
|
|
429
429
|
const Zt = class {
|
|
430
430
|
constructor(i) {
|
|
431
|
-
this.wrapper = null, this.list = null, this.vs = new
|
|
431
|
+
this.wrapper = null, this.list = null, this.vs = new Ys(), this.navigation = new Js(), this.handleItemClick = (t, e) => {
|
|
432
432
|
const s = this.initState();
|
|
433
433
|
s.syntheticEvent = e, e.stopPropagation(), this.component.handleItemSelect(t, s), this.togglePopup(s), this.applyState(s);
|
|
434
434
|
}, this.handleFocus = (t) => {
|
|
@@ -499,7 +499,7 @@ const Zt = class {
|
|
|
499
499
|
this.scrollToItem(i, t, !0);
|
|
500
500
|
}, 10), s && i >= 0) {
|
|
501
501
|
const n = this.vs, a = n.container || s.parentNode, p = t !== void 0 ? t : n.enabled;
|
|
502
|
-
|
|
502
|
+
zs(a, s, i, n.translate, p);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
initState() {
|
|
@@ -610,10 +610,10 @@ const Ye = {
|
|
|
610
610
|
name: "@progress/kendo-react-dropdowns",
|
|
611
611
|
productName: "KendoReact",
|
|
612
612
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
613
|
-
publishDate:
|
|
613
|
+
publishDate: 1708420936,
|
|
614
614
|
version: "",
|
|
615
615
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
616
|
-
}, wt = 500,
|
|
616
|
+
}, wt = 500, Ee = 768, Qs = "Please select a value from the list!", { sizeMap: Kt, roundedMap: Xs } = Ge, Wt = class extends o.Component {
|
|
617
617
|
constructor(i) {
|
|
618
618
|
super(i), this.state = {}, this._element = null, this.base = new oe(this), this.searchState = { word: "", last: "" }, this._select = null, this._skipFocusEvent = !1, this._filterInput = null, this._navigated = !1, this._lastKeypressIsFilter = !1, this.itemHeight = 0, this.focus = () => {
|
|
619
619
|
this.base.wrapper && this.base.wrapper.focus();
|
|
@@ -645,18 +645,16 @@ const Ye = {
|
|
|
645
645
|
dir: s !== void 0 ? s : r.dirCalculated,
|
|
646
646
|
width: f,
|
|
647
647
|
popupSettings: {
|
|
648
|
+
...h,
|
|
648
649
|
popupClass: B(
|
|
649
650
|
h.popupClass,
|
|
650
651
|
"k-list-container",
|
|
651
652
|
"k-dropdownlist-popup"
|
|
652
653
|
),
|
|
653
|
-
|
|
654
|
-
animate: h.animate,
|
|
655
|
-
anchor: this.element,
|
|
654
|
+
anchor: h.anchor || this.element,
|
|
656
655
|
show: u,
|
|
657
656
|
onOpen: this.onPopupOpened,
|
|
658
|
-
onClose: this.onPopupClosed
|
|
659
|
-
appendTo: h.appendTo
|
|
657
|
+
onClose: this.onPopupClosed
|
|
660
658
|
},
|
|
661
659
|
itemsCount: [n.length]
|
|
662
660
|
};
|
|
@@ -733,7 +731,7 @@ const Ye = {
|
|
|
733
731
|
}, this.renderListFilter = () => {
|
|
734
732
|
const t = this.props.filter !== void 0 ? this.props.filter : this.state.text;
|
|
735
733
|
return this.props.filterable && /* @__PURE__ */ o.createElement(
|
|
736
|
-
|
|
734
|
+
Re,
|
|
737
735
|
{
|
|
738
736
|
value: t,
|
|
739
737
|
ref: (e) => this._filterInput = e && e.element,
|
|
@@ -747,7 +745,7 @@ const Ye = {
|
|
|
747
745
|
}, this.renderDefaultItem = () => {
|
|
748
746
|
const { textField: t, defaultItem: e, dataItemKey: s } = this.props;
|
|
749
747
|
return e !== void 0 && /* @__PURE__ */ o.createElement(
|
|
750
|
-
|
|
748
|
+
$s,
|
|
751
749
|
{
|
|
752
750
|
defaultItem: e,
|
|
753
751
|
textField: t,
|
|
@@ -761,13 +759,13 @@ const Ye = {
|
|
|
761
759
|
}, this.selectNext = (t) => {
|
|
762
760
|
const { data: e = [], dataItemKey: s } = this.props;
|
|
763
761
|
let n = e.map((k, D) => ({ item: k, itemIndex: D }));
|
|
764
|
-
const a = this.searchState.word, p = this.searchState.last, c =
|
|
762
|
+
const a = this.searchState.word, p = this.searchState.last, c = Ks(a, p);
|
|
765
763
|
let d = n.length, r = Math.max(0, e.findIndex((k) => R(k, this.value, s))), h;
|
|
766
|
-
this.props.defaultItem && (h = { item: this.props.defaultItem, itemIndex: -1 }, d += 1, r += 1), r += c ? 1 : 0, n =
|
|
764
|
+
this.props.defaultItem && (h = { item: this.props.defaultItem, itemIndex: -1 }, d += 1, r += 1), r += c ? 1 : 0, n = Ls(n, r, h);
|
|
767
765
|
let u, f, m, v = 0;
|
|
768
766
|
const { textField: b, ignoreCase: w } = this.props;
|
|
769
767
|
for (; v < d; v++)
|
|
770
|
-
if (u = V(n[v].item, b), f = c &&
|
|
768
|
+
if (u = V(n[v].item, b), f = c && os(u, p, w), m = os(u, a, w), f || m) {
|
|
771
769
|
v = n[v].itemIndex;
|
|
772
770
|
break;
|
|
773
771
|
}
|
|
@@ -788,7 +786,7 @@ const Ye = {
|
|
|
788
786
|
groupField: r = "",
|
|
789
787
|
textField: h,
|
|
790
788
|
skipDisabledItems: u = !0
|
|
791
|
-
} = this.props, f = this.value, m = e.findIndex((
|
|
789
|
+
} = this.props, f = this.value, m = e.findIndex((F) => R(F, f, d)), v = this.props.opened !== void 0 ? this.props.opened : this.state.opened, b = t.keyCode, w = b === g.home || b === g.end, k = b === g.up || b === g.down, D = !v && (t.altKey && b === g.down || b === g.enter || b === g.space), O = v && (t.altKey && b === g.up || b === g.esc), N = p && (b === g.left || b === g.right), _ = k || N && !s || w, S = this.base.initState();
|
|
792
790
|
if (S.syntheticEvent = t, !n) {
|
|
793
791
|
if (w && this.base.vs.enabled)
|
|
794
792
|
b === g.home ? c.skip !== 0 ? (this.base.triggerOnPageChange(S, 0, c.pageSize), this._navigated = !0) : this.triggerOnChange(e[0], S) : c.skip < c.total - c.pageSize ? (this.base.triggerOnPageChange(S, c.total - c.pageSize, c.pageSize), this._navigated = !0) : this.triggerOnChange(e[e.length - 1], S);
|
|
@@ -797,8 +795,8 @@ const Ye = {
|
|
|
797
795
|
else if (v && b === g.pageDown)
|
|
798
796
|
this.base.scrollPopupByPageSize(1);
|
|
799
797
|
else if (v && b === g.enter) {
|
|
800
|
-
const
|
|
801
|
-
this.haveFocusedItemAndDataNotEmpty(e,
|
|
798
|
+
const F = this.getFocusedIndex();
|
|
799
|
+
this.haveFocusedItemAndDataNotEmpty(e, F) ? (this.triggerOnChange(null, S), this.applyState(S)) : this.handleItemSelect(F, S), this.base.togglePopup(S), t.preventDefault();
|
|
802
800
|
} else if (D || O)
|
|
803
801
|
O && this.resetValueIfDisabledItem(), this.base.togglePopup(S), t.preventDefault();
|
|
804
802
|
else if (_) {
|
|
@@ -806,56 +804,56 @@ const Ye = {
|
|
|
806
804
|
if (!u && v)
|
|
807
805
|
this.onNavigate(S, b);
|
|
808
806
|
else {
|
|
809
|
-
let
|
|
807
|
+
let F;
|
|
810
808
|
if (b === g.down || b === g.right) {
|
|
811
809
|
const C = e.slice(m + 1).find((E) => !E.disabled && E[h]);
|
|
812
|
-
|
|
810
|
+
F = C && e.findIndex((E) => E[h] === C[h]);
|
|
813
811
|
} else if (b === g.up || b === g.left) {
|
|
814
812
|
let C;
|
|
815
813
|
if (m === 0 && a)
|
|
816
|
-
|
|
814
|
+
F = -1;
|
|
817
815
|
else if (m === -1)
|
|
818
|
-
C = e,
|
|
816
|
+
C = e, F = e.findIndex((E) => !E.disabled && E[h]);
|
|
819
817
|
else {
|
|
820
818
|
C = e.slice(0, m);
|
|
821
819
|
let E = C.pop();
|
|
822
820
|
for (; E && E.disabled; )
|
|
823
821
|
E = C.pop();
|
|
824
|
-
|
|
822
|
+
F = E && e.findIndex((M) => M[h] === E[h]);
|
|
825
823
|
}
|
|
826
824
|
}
|
|
827
|
-
if (
|
|
828
|
-
const C =
|
|
825
|
+
if (F !== void 0) {
|
|
826
|
+
const C = F - m;
|
|
829
827
|
this.onNavigate(S, b, C);
|
|
830
828
|
} else
|
|
831
|
-
|
|
829
|
+
F === void 0 && e.findIndex((C) => C[h] === f[h]) === e.length - 1 && this.onNavigate(S, b);
|
|
832
830
|
}
|
|
833
831
|
else if (!u && v || w)
|
|
834
832
|
this.onNavigate(S, b);
|
|
835
833
|
else if (h) {
|
|
836
|
-
let
|
|
834
|
+
let F;
|
|
837
835
|
if (b === g.down || b === g.right) {
|
|
838
836
|
const C = e.slice(m + 1).find((E) => !E.disabled && E[h]);
|
|
839
|
-
|
|
837
|
+
F = C && e.findIndex((E) => E[h] === C[h]);
|
|
840
838
|
} else if (b === g.up || b === g.left) {
|
|
841
839
|
let C;
|
|
842
840
|
if (m === 0 && a)
|
|
843
|
-
|
|
841
|
+
F = -1;
|
|
844
842
|
else if (m === -1)
|
|
845
|
-
C = e,
|
|
843
|
+
C = e, F = e.find((E) => !E.disabled && E[h]);
|
|
846
844
|
else {
|
|
847
845
|
C = e.slice(0, m);
|
|
848
846
|
let E = C.pop();
|
|
849
847
|
for (; E && E.disabled; )
|
|
850
848
|
E = C.pop();
|
|
851
|
-
|
|
849
|
+
F = E && e.findIndex((M) => M[h] === E[h]);
|
|
852
850
|
}
|
|
853
851
|
}
|
|
854
|
-
if (
|
|
855
|
-
const C =
|
|
852
|
+
if (F !== void 0) {
|
|
853
|
+
const C = F - m;
|
|
856
854
|
this.onNavigate(S, b, C);
|
|
857
855
|
} else
|
|
858
|
-
|
|
856
|
+
F === void 0 && e.findIndex((C) => C[h] === f[h]) === e.length - 1 && this.onNavigate(S, b);
|
|
859
857
|
} else
|
|
860
858
|
this.onNavigate(S, b);
|
|
861
859
|
t.preventDefault();
|
|
@@ -869,7 +867,7 @@ const Ye = {
|
|
|
869
867
|
}, this.handleBlur = (t) => {
|
|
870
868
|
if (this._skipFocusEvent || !this.state.focused)
|
|
871
869
|
return;
|
|
872
|
-
const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { adaptive: s } = this.props, { windowWidth: n = 0 } = this.state, a = n <=
|
|
870
|
+
const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { adaptive: s } = this.props, { windowWidth: n = 0 } = this.state, a = n <= Ee && s, p = this.base.initState();
|
|
873
871
|
p.syntheticEvent = t, p.data.focused = !1, p.events.push({ type: "onBlur" }), e && this.resetValueIfDisabledItem(), e && !a && this.base.togglePopup(p), this.applyState(p);
|
|
874
872
|
}, this.handleDefaultItemClick = (t) => {
|
|
875
873
|
const e = this.base.initState();
|
|
@@ -902,7 +900,7 @@ const Ye = {
|
|
|
902
900
|
);
|
|
903
901
|
}, this.setValidity = () => {
|
|
904
902
|
this._select && this._select.setCustomValidity && this._select.setCustomValidity(
|
|
905
|
-
this.validity.valid ? "" : this.props.validationMessage ||
|
|
903
|
+
this.validity.valid ? "" : this.props.validationMessage || Qs
|
|
906
904
|
);
|
|
907
905
|
}, $e(Ye);
|
|
908
906
|
}
|
|
@@ -970,9 +968,7 @@ const Ye = {
|
|
|
970
968
|
*/
|
|
971
969
|
componentDidUpdate(i, t) {
|
|
972
970
|
var u;
|
|
973
|
-
const { dataItemKey: e, virtual: s, groupField: n = "", textField: a } = this.props;
|
|
974
|
-
let { data: p = [] } = this.props;
|
|
975
|
-
const c = i.virtual ? i.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = i.opened !== void 0 ? i.opened : t.opened, h = !r && d;
|
|
971
|
+
const { dataItemKey: e, virtual: s, groupField: n = "", textField: a } = this.props, { data: p = [] } = this.props, c = i.virtual ? i.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = i.opened !== void 0 ? i.opened : t.opened, h = !r && d;
|
|
976
972
|
if (this.base.getPopupSettings().animate || h && this.onPopupOpened(), s && s.total !== c)
|
|
977
973
|
this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
|
|
978
974
|
else {
|
|
@@ -1000,7 +996,7 @@ const Ye = {
|
|
|
1000
996
|
* @hidden
|
|
1001
997
|
*/
|
|
1002
998
|
render() {
|
|
1003
|
-
const i = We(this).toLanguageString(At, ce[At]), { style: t, className: e, label: s, dir: n, virtual: a, size: p, rounded: c, fillMode: d, adaptive: r } = this.props, { windowWidth: h = 0 } = this.state, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.value, m = V(f, this.props.textField), v = !this.validityStyles || this.validity.valid, b = this.base, w = b.vs, k = h <=
|
|
999
|
+
const i = We(this).toLanguageString(At, ce[At]), { style: t, className: e, label: s, dir: n, virtual: a, size: p, rounded: c, fillMode: d, adaptive: r } = this.props, { windowWidth: h = 0 } = this.state, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.value, m = V(f, this.props.textField), v = !this.validityStyles || this.validity.valid, b = this.base, w = b.vs, k = h <= Ee && r;
|
|
1004
1000
|
w.enabled = a !== void 0, a !== void 0 && (b.vs.skip = a.skip, b.vs.total = a.total, b.vs.pageSize = a.pageSize);
|
|
1005
1001
|
const {
|
|
1006
1002
|
dataItemKey: D,
|
|
@@ -1008,9 +1004,10 @@ const Ye = {
|
|
|
1008
1004
|
disabled: N,
|
|
1009
1005
|
tabIndex: _,
|
|
1010
1006
|
loading: S,
|
|
1011
|
-
iconClassName:
|
|
1012
|
-
|
|
1013
|
-
|
|
1007
|
+
iconClassName: F,
|
|
1008
|
+
svgIcon: C,
|
|
1009
|
+
valueRender: E
|
|
1010
|
+
} = this.props, { focused: M } = this.state, A = O.findIndex((K) => R(K, f, D)), j = /* @__PURE__ */ o.createElement("span", { id: this._inputId, className: "k-input-inner" }, /* @__PURE__ */ o.createElement("span", { className: "k-input-value-text" }, m)), Y = E !== void 0 ? E.call(void 0, j, f) : j, Z = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
1014
1011
|
"span",
|
|
1015
1012
|
{
|
|
1016
1013
|
ref: this.componentRef,
|
|
@@ -1019,9 +1016,9 @@ const Ye = {
|
|
|
1019
1016
|
e,
|
|
1020
1017
|
{
|
|
1021
1018
|
[`k-picker-${Kt[p] || p}`]: p,
|
|
1022
|
-
[`k-rounded-${
|
|
1019
|
+
[`k-rounded-${Xs[c] || c}`]: c,
|
|
1023
1020
|
[`k-picker-${d}`]: d,
|
|
1024
|
-
"k-focus":
|
|
1021
|
+
"k-focus": M,
|
|
1025
1022
|
"k-disabled": N,
|
|
1026
1023
|
"k-invalid": !v,
|
|
1027
1024
|
"k-loading": S,
|
|
@@ -1030,8 +1027,8 @@ const Ye = {
|
|
|
1030
1027
|
),
|
|
1031
1028
|
style: s ? { ...t, width: void 0 } : t,
|
|
1032
1029
|
dir: n,
|
|
1033
|
-
onMouseDown: u ? (
|
|
1034
|
-
|
|
1030
|
+
onMouseDown: u ? (K) => {
|
|
1031
|
+
K.target.nodeName !== "INPUT" && (this.focusElement(this.base.wrapper), K.preventDefault());
|
|
1035
1032
|
} : void 0,
|
|
1036
1033
|
onFocus: this.handleFocus,
|
|
1037
1034
|
onBlur: this.handleBlur,
|
|
@@ -1046,14 +1043,14 @@ const Ye = {
|
|
|
1046
1043
|
"aria-haspopup": "listbox",
|
|
1047
1044
|
"aria-expanded": u || !1,
|
|
1048
1045
|
"aria-owns": this._listboxId,
|
|
1049
|
-
"aria-activedescendant": u ? "option-" + this._guid + "-" + (
|
|
1046
|
+
"aria-activedescendant": u ? "option-" + this._guid + "-" + (A + (a ? a.skip : 0)) : void 0,
|
|
1050
1047
|
"aria-label": this.props.ariaLabel || this.props.label,
|
|
1051
1048
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
1052
1049
|
"aria-describedby": this.props.ariaDescribedBy || this._inputId,
|
|
1053
1050
|
id: this.props.id,
|
|
1054
1051
|
title: this.props.title
|
|
1055
1052
|
},
|
|
1056
|
-
|
|
1053
|
+
Y,
|
|
1057
1054
|
S && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
|
|
1058
1055
|
/* @__PURE__ */ o.createElement(
|
|
1059
1056
|
Te,
|
|
@@ -1064,13 +1061,13 @@ const Ye = {
|
|
|
1064
1061
|
"aria-hidden": !0,
|
|
1065
1062
|
size: p,
|
|
1066
1063
|
fillMode: d,
|
|
1067
|
-
iconClass:
|
|
1064
|
+
iconClass: F,
|
|
1068
1065
|
className: "k-input-button",
|
|
1069
1066
|
rounded: null,
|
|
1070
1067
|
themeColor: "base",
|
|
1071
|
-
icon:
|
|
1072
|
-
svgIcon:
|
|
1073
|
-
onMouseDown: (
|
|
1068
|
+
icon: F ? void 0 : "caret-alt-down",
|
|
1069
|
+
svgIcon: C || jt,
|
|
1070
|
+
onMouseDown: (K) => this.state.focused && K.preventDefault()
|
|
1074
1071
|
}
|
|
1075
1072
|
),
|
|
1076
1073
|
this.dummySelect(f),
|
|
@@ -1084,9 +1081,9 @@ const Ye = {
|
|
|
1084
1081
|
editorValid: v,
|
|
1085
1082
|
editorDisabled: this.props.disabled,
|
|
1086
1083
|
style: { width: t ? t.width : void 0 },
|
|
1087
|
-
children:
|
|
1084
|
+
children: Z
|
|
1088
1085
|
}
|
|
1089
|
-
) :
|
|
1086
|
+
) : Z;
|
|
1090
1087
|
}
|
|
1091
1088
|
/**
|
|
1092
1089
|
* @hidden
|
|
@@ -1117,7 +1114,7 @@ const Ye = {
|
|
|
1117
1114
|
className: i <= wt ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
|
|
1118
1115
|
};
|
|
1119
1116
|
let { group: u } = this.state;
|
|
1120
|
-
return u === void 0 && a !== void 0 && (u = V(d[0], a)), /* @__PURE__ */ o.createElement(
|
|
1117
|
+
return u === void 0 && a !== void 0 && (u = V(d[0], a)), /* @__PURE__ */ o.createElement(Jt, { ...h }, /* @__PURE__ */ o.createElement(Qt, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, n)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
|
|
1121
1118
|
Te,
|
|
1122
1119
|
{
|
|
1123
1120
|
tabIndex: 0,
|
|
@@ -1127,9 +1124,9 @@ const Ye = {
|
|
|
1127
1124
|
fillMode: "flat",
|
|
1128
1125
|
onClick: this.handleWrapperClick,
|
|
1129
1126
|
icon: "x",
|
|
1130
|
-
svgIcon:
|
|
1127
|
+
svgIcon: at
|
|
1131
1128
|
}
|
|
1132
|
-
))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderListFilter())), /* @__PURE__ */ o.createElement(
|
|
1129
|
+
))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderListFilter())), /* @__PURE__ */ o.createElement(lt, { className: "!k-overflow-hidden" }, t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), /* @__PURE__ */ o.createElement(
|
|
1133
1130
|
"div",
|
|
1134
1131
|
{
|
|
1135
1132
|
className: B(
|
|
@@ -1143,7 +1140,7 @@ const Ye = {
|
|
|
1143
1140
|
this.renderDefaultItem(),
|
|
1144
1141
|
!c && u && d.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: u, groupMode: "modern", render: p }),
|
|
1145
1142
|
this.renderList()
|
|
1146
|
-
), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e)))
|
|
1143
|
+
), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e)));
|
|
1147
1144
|
}
|
|
1148
1145
|
getFocusedIndex() {
|
|
1149
1146
|
const i = this.value, {
|
|
@@ -1151,7 +1148,7 @@ const Ye = {
|
|
|
1151
1148
|
textField: e,
|
|
1152
1149
|
dataItemKey: s,
|
|
1153
1150
|
virtual: n = { skip: 0 },
|
|
1154
|
-
focusedItemIndex: a =
|
|
1151
|
+
focusedItemIndex: a = Ve,
|
|
1155
1152
|
filterable: p,
|
|
1156
1153
|
skipDisabledItems: c = !0
|
|
1157
1154
|
} = this.props, d = this.props.filter ? this.props.filter : this.state.text;
|
|
@@ -1167,7 +1164,7 @@ const Ye = {
|
|
|
1167
1164
|
this.base.applyState(i), this._valueDuringOnChange = void 0;
|
|
1168
1165
|
}
|
|
1169
1166
|
calculateMedia(i) {
|
|
1170
|
-
for (
|
|
1167
|
+
for (const t of i)
|
|
1171
1168
|
this.setState({ windowWidth: t.target.clientWidth });
|
|
1172
1169
|
}
|
|
1173
1170
|
resetValueIfDisabledItem() {
|
|
@@ -1184,7 +1181,7 @@ Tt.propTypes = {
|
|
|
1184
1181
|
delay: l.number,
|
|
1185
1182
|
ignoreCase: l.bool,
|
|
1186
1183
|
iconClassName: l.string,
|
|
1187
|
-
svgIcon:
|
|
1184
|
+
svgIcon: fs,
|
|
1188
1185
|
defaultItem: l.any,
|
|
1189
1186
|
valueRender: l.func,
|
|
1190
1187
|
valueMap: l.func,
|
|
@@ -1212,11 +1209,11 @@ Tt.defaultProps = {
|
|
|
1212
1209
|
fillMode: "solid",
|
|
1213
1210
|
groupMode: "modern"
|
|
1214
1211
|
};
|
|
1215
|
-
const
|
|
1216
|
-
|
|
1212
|
+
const Zs = Be(), ei = Et(Dt(
|
|
1213
|
+
Zs,
|
|
1217
1214
|
Tt
|
|
1218
1215
|
));
|
|
1219
|
-
|
|
1216
|
+
ei.displayName = "KendoReactDropDownList";
|
|
1220
1217
|
class es extends o.Component {
|
|
1221
1218
|
constructor() {
|
|
1222
1219
|
super(...arguments), this._input = null;
|
|
@@ -1228,7 +1225,7 @@ class es extends o.Component {
|
|
|
1228
1225
|
return this._input;
|
|
1229
1226
|
}
|
|
1230
1227
|
componentDidUpdate(t) {
|
|
1231
|
-
const e = t.value, s = t.suggestedText, { value: n, suggestedText: a, focused: p } = this.props, c = this.input, d = e !== n || a !== s, r = d && e.startsWith(n) && !(s && a && s.endsWith(a)), h =
|
|
1228
|
+
const e = t.value, s = t.suggestedText, { value: n, suggestedText: a, focused: p } = this.props, c = this.input, d = e !== n || a !== s, r = d && e.startsWith(n) && !(s && a && s.endsWith(a)), h = ws(document);
|
|
1232
1229
|
p && c && h !== c && c.focus(), a && d && !r && c && c.setSelectionRange(n.length - a.length, n.length);
|
|
1233
1230
|
}
|
|
1234
1231
|
render() {
|
|
@@ -1269,12 +1266,12 @@ class es extends o.Component {
|
|
|
1269
1266
|
return n ? n.call(void 0, a) : a;
|
|
1270
1267
|
}
|
|
1271
1268
|
}
|
|
1272
|
-
class
|
|
1269
|
+
class rt extends o.Component {
|
|
1273
1270
|
constructor() {
|
|
1274
1271
|
super(...arguments), this.onMouseDown = (t) => t.preventDefault();
|
|
1275
1272
|
}
|
|
1276
1273
|
render() {
|
|
1277
|
-
const t = We(this).toLanguageString(
|
|
1274
|
+
const t = We(this).toLanguageString(it, ce[it]);
|
|
1278
1275
|
return /* @__PURE__ */ o.createElement(
|
|
1279
1276
|
"span",
|
|
1280
1277
|
{
|
|
@@ -1286,12 +1283,12 @@ class dt extends o.Component {
|
|
|
1286
1283
|
title: t,
|
|
1287
1284
|
key: "clearbutton"
|
|
1288
1285
|
},
|
|
1289
|
-
/* @__PURE__ */ o.createElement(Ce, { name: "x", icon:
|
|
1286
|
+
/* @__PURE__ */ o.createElement(Ce, { name: "x", icon: at })
|
|
1290
1287
|
);
|
|
1291
1288
|
}
|
|
1292
1289
|
}
|
|
1293
|
-
|
|
1294
|
-
const
|
|
1290
|
+
vs(rt);
|
|
1291
|
+
const ti = Es, Ne = ti, si = "Please enter a valid value!", { sizeMap: yt, roundedMap: ii } = Ge, xt = class extends o.Component {
|
|
1295
1292
|
constructor(i) {
|
|
1296
1293
|
super(i), this.state = {}, this.base = new oe(this), this._element = null, this._suggested = "", this._skipBlur = !1, this._input = null, this._adaptiveFilterInput = null, this.itemHeight = 0, this.focus = () => {
|
|
1297
1294
|
this._input && this._input.focus();
|
|
@@ -1314,7 +1311,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1314
1311
|
}, this.renderMobileListFilter = () => {
|
|
1315
1312
|
const t = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, e = V(this.value, this.props.textField), s = U(t) ? t : e;
|
|
1316
1313
|
return /* @__PURE__ */ o.createElement(
|
|
1317
|
-
|
|
1314
|
+
Re,
|
|
1318
1315
|
{
|
|
1319
1316
|
value: s,
|
|
1320
1317
|
ref: (n) => this._adaptiveFilterInput = n && n.element,
|
|
@@ -1434,7 +1431,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1434
1431
|
e.syntheticEvent = t, t.stopPropagation(), this.clearValue();
|
|
1435
1432
|
}, this.setValidity = () => {
|
|
1436
1433
|
this._input && this._input.setCustomValidity && this._input.setCustomValidity(
|
|
1437
|
-
this.validity.valid ? "" : this.props.validationMessage ||
|
|
1434
|
+
this.validity.valid ? "" : this.props.validationMessage || si
|
|
1438
1435
|
);
|
|
1439
1436
|
}, $e(Ye);
|
|
1440
1437
|
}
|
|
@@ -1453,7 +1450,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1453
1450
|
* The mobile mode of the ComboBox.
|
|
1454
1451
|
*/
|
|
1455
1452
|
get mobileMode() {
|
|
1456
|
-
return !!(this.state.windowWidth && this.state.windowWidth <=
|
|
1453
|
+
return !!(this.state.windowWidth && this.state.windowWidth <= Ee && this.props.adaptive);
|
|
1457
1454
|
}
|
|
1458
1455
|
/**
|
|
1459
1456
|
* The value of the ComboBox.
|
|
@@ -1545,19 +1542,20 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1545
1542
|
rounded: v,
|
|
1546
1543
|
fillMode: b,
|
|
1547
1544
|
opened: w = this.state.opened,
|
|
1548
|
-
placeholder: k
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1545
|
+
placeholder: k,
|
|
1546
|
+
svgIcon: D
|
|
1547
|
+
} = this.props, { windowWidth: O = 0 } = this.state, N = !this.validityStyles || this.validity.valid, _ = this.props.filter !== void 0 ? this.props.filter : this.state.text, S = V(this.value, p), F = U(_) ? _ : S, C = n && (!!F || U(this.value)), M = this.base.vs, A = this.props.id || this._inputId, j = O <= Ee && c;
|
|
1548
|
+
M.enabled = f !== void 0, f !== void 0 && (M.skip = f.skip, M.total = f.total, M.pageSize = f.pageSize);
|
|
1549
|
+
const [Y, Z] = Ne(this.props.prefix || o.Fragment), [K, be] = Ne(this.props.suffix || o.Fragment), X = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
1552
1550
|
"span",
|
|
1553
1551
|
{
|
|
1554
1552
|
className: B(
|
|
1555
1553
|
"k-combobox k-input",
|
|
1556
1554
|
{
|
|
1557
1555
|
[`k-input-${yt[m] || m}`]: m,
|
|
1558
|
-
[`k-rounded-${
|
|
1556
|
+
[`k-rounded-${ii[v] || v}`]: v,
|
|
1559
1557
|
[`k-input-${b}`]: b,
|
|
1560
|
-
"k-invalid": !
|
|
1558
|
+
"k-invalid": !N,
|
|
1561
1559
|
"k-loading": h,
|
|
1562
1560
|
"k-required": this.required,
|
|
1563
1561
|
"k-disabled": s
|
|
@@ -1568,11 +1566,11 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1568
1566
|
style: a ? { ...r, width: void 0 } : r,
|
|
1569
1567
|
dir: e
|
|
1570
1568
|
},
|
|
1571
|
-
this.props.prefix && /* @__PURE__ */ o.createElement(
|
|
1572
|
-
this.renderSearchBar(
|
|
1573
|
-
|
|
1569
|
+
this.props.prefix && /* @__PURE__ */ o.createElement(Y, { ...Z }),
|
|
1570
|
+
this.renderSearchBar(F || "", A, k),
|
|
1571
|
+
C && !h && /* @__PURE__ */ o.createElement(rt, { onClick: this.clearButtonClick, key: "clearbutton" }),
|
|
1574
1572
|
h && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading", key: "loading" }),
|
|
1575
|
-
this.props.suffix && /* @__PURE__ */ o.createElement(
|
|
1573
|
+
this.props.suffix && /* @__PURE__ */ o.createElement(K, { ...be }),
|
|
1576
1574
|
/* @__PURE__ */ o.createElement(
|
|
1577
1575
|
Te,
|
|
1578
1576
|
{
|
|
@@ -1580,7 +1578,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1580
1578
|
type: "button",
|
|
1581
1579
|
"aria-label": w ? t : i,
|
|
1582
1580
|
icon: u ? void 0 : "caret-alt-down",
|
|
1583
|
-
svgIcon:
|
|
1581
|
+
svgIcon: D || jt,
|
|
1584
1582
|
iconClass: u,
|
|
1585
1583
|
size: m,
|
|
1586
1584
|
fillMode: b,
|
|
@@ -1588,23 +1586,23 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1588
1586
|
themeColor: "base",
|
|
1589
1587
|
className: "k-input-button",
|
|
1590
1588
|
onClick: this.toggleBtnClick,
|
|
1591
|
-
onMouseDown: (
|
|
1589
|
+
onMouseDown: (Q) => Q.preventDefault()
|
|
1592
1590
|
}
|
|
1593
1591
|
),
|
|
1594
|
-
!
|
|
1595
|
-
),
|
|
1592
|
+
!j && this.renderListContainer()
|
|
1593
|
+
), j && this.renderAdaptiveListContainer());
|
|
1596
1594
|
return a ? /* @__PURE__ */ o.createElement(
|
|
1597
1595
|
Ue,
|
|
1598
1596
|
{
|
|
1599
1597
|
label: a,
|
|
1600
|
-
editorId:
|
|
1601
|
-
editorValue:
|
|
1602
|
-
editorValid:
|
|
1598
|
+
editorId: A,
|
|
1599
|
+
editorValue: F,
|
|
1600
|
+
editorValid: N,
|
|
1603
1601
|
editorDisabled: s,
|
|
1604
1602
|
style: { width: r ? r.width : void 0 },
|
|
1605
|
-
children:
|
|
1603
|
+
children: X
|
|
1606
1604
|
}
|
|
1607
|
-
) :
|
|
1605
|
+
) : X;
|
|
1608
1606
|
}
|
|
1609
1607
|
/** @hidden */
|
|
1610
1608
|
onNavigate(i, t, e) {
|
|
@@ -1639,7 +1637,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1639
1637
|
this.triggerOnChange(r, t), a && this.base.togglePopup(t), this.props.filter === void 0 && this.state.text !== void 0 && (t.data.text = void 0), this.applyState(t);
|
|
1640
1638
|
}
|
|
1641
1639
|
applyValueOnRejectSuggestions(i, t) {
|
|
1642
|
-
const { data: e = [], textField: s, allowCustom: n } = this.props, a = this.props.opened !== void 0 ? this.props.opened : this.state.opened, p = V(this.value, s), c = this.state.windowWidth && this.state.windowWidth <=
|
|
1640
|
+
const { data: e = [], textField: s, allowCustom: n } = this.props, a = this.props.opened !== void 0 ? this.props.opened : this.state.opened, p = V(this.value, s), c = this.state.windowWidth && this.state.windowWidth <= Ee;
|
|
1643
1641
|
if (this._suggested = "", i === p || i === "" && !U(p))
|
|
1644
1642
|
return a && !c && this.base.togglePopup(t), this.applyState(t);
|
|
1645
1643
|
const d = Lt(e, i, s, !0), r = d !== -1;
|
|
@@ -1647,7 +1645,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1647
1645
|
r ? h = e[d] : n && (h = i ? s ? { [s]: i } : i : null), this.triggerOnChange(h, t), this.state.text !== void 0 && (t.data.text = void 0, this.base.filterChanged("", t)), a && !c && this.base.togglePopup(t), this.applyState(t);
|
|
1648
1646
|
}
|
|
1649
1647
|
selectFocusedItem(i, t) {
|
|
1650
|
-
const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { data: s = [], textField: n, virtual: a = { skip: 0 }, focusedItemIndex: p =
|
|
1648
|
+
const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { data: s = [], textField: n, virtual: a = { skip: 0 }, focusedItemIndex: p = Ve } = this.props, c = a.skip, d = i === "" && c === 0 ? 0 : p(s, i, n);
|
|
1651
1649
|
return d !== -1 ? this.handleItemSelect(d + c, t) : (this.triggerOnChange(null, t), this.state.text !== void 0 && (t.data.text = void 0)), e && this.base.togglePopup(t), this.applyState(t);
|
|
1652
1650
|
}
|
|
1653
1651
|
renderAdaptiveListContainer() {
|
|
@@ -1673,9 +1671,9 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1673
1671
|
fillMode: "flat",
|
|
1674
1672
|
onClick: this.toggleBtnClick,
|
|
1675
1673
|
icon: "x",
|
|
1676
|
-
svgIcon:
|
|
1674
|
+
svgIcon: at
|
|
1677
1675
|
}
|
|
1678
|
-
))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderMobileListFilter())), /* @__PURE__ */ o.createElement(
|
|
1676
|
+
))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderMobileListFilter())), /* @__PURE__ */ o.createElement(lt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: B(
|
|
1679
1677
|
{
|
|
1680
1678
|
"k-list": !c,
|
|
1681
1679
|
"k-list-lg": !0,
|
|
@@ -1693,16 +1691,14 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1693
1691
|
{
|
|
1694
1692
|
width: m,
|
|
1695
1693
|
popupSettings: {
|
|
1696
|
-
|
|
1697
|
-
anchor: this.element,
|
|
1694
|
+
...f,
|
|
1695
|
+
anchor: f.anchor || this.element,
|
|
1698
1696
|
show: u,
|
|
1699
1697
|
popupClass: B(
|
|
1700
1698
|
f.popupClass,
|
|
1701
1699
|
"k-list-container",
|
|
1702
1700
|
"k-combobox-popup"
|
|
1703
|
-
)
|
|
1704
|
-
className: f.className,
|
|
1705
|
-
appendTo: f.appendTo
|
|
1701
|
+
)
|
|
1706
1702
|
},
|
|
1707
1703
|
dir: t !== void 0 ? t : this.base.dirCalculated,
|
|
1708
1704
|
itemsCount: [n.length]
|
|
@@ -1751,7 +1747,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1751
1747
|
listRef: (D) => {
|
|
1752
1748
|
r.list = this.base.list = D, this.itemHeight = 0;
|
|
1753
1749
|
},
|
|
1754
|
-
wrapperStyle: this.state.windowWidth && this.state.windowWidth >
|
|
1750
|
+
wrapperStyle: this.state.windowWidth && this.state.windowWidth > Ee ? { maxHeight: d.height } : {},
|
|
1755
1751
|
wrapperCssClass: B(
|
|
1756
1752
|
"k-list-content",
|
|
1757
1753
|
{
|
|
@@ -1821,12 +1817,12 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1821
1817
|
!U(e) && !U(i) || R(e, i, this.props.dataItemKey) || (this.props.value === void 0 && (t.data.value = i), this._valueDuringOnChange = i, t.events.push({ type: "onChange" }));
|
|
1822
1818
|
}
|
|
1823
1819
|
getFocusedIndex() {
|
|
1824
|
-
const i = this.value, { data: t = [], textField: e, dataItemKey: s, virtual: n = { skip: 0 }, focusedItemIndex: a =
|
|
1820
|
+
const i = this.value, { data: t = [], textField: e, dataItemKey: s, virtual: n = { skip: 0 }, focusedItemIndex: a = Ve, skipDisabledItems: p } = this.props, c = this.props.filter ? this.props.filter : this.state.text;
|
|
1825
1821
|
return U(i) && c === void 0 ? t.findIndex((d) => R(d, i, s)) : c ? a(t, c, e) : p && e && !c && n.skip === 0 ? t.findIndex((d) => !d.disabled && d[e]) : n.skip === 0 ? 0 : -1;
|
|
1826
1822
|
}
|
|
1827
1823
|
suggestValue(i) {
|
|
1828
1824
|
const { data: t, textField: e } = this.props;
|
|
1829
|
-
this._suggested =
|
|
1825
|
+
this._suggested = As(i, t, e);
|
|
1830
1826
|
}
|
|
1831
1827
|
applyState(i) {
|
|
1832
1828
|
this.base.applyState(i), this._valueDuringOnChange = void 0;
|
|
@@ -1836,9 +1832,9 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
|
|
|
1836
1832
|
this.setState({ windowWidth: t.target.clientWidth });
|
|
1837
1833
|
}
|
|
1838
1834
|
};
|
|
1839
|
-
let
|
|
1840
|
-
|
|
1841
|
-
|
|
1835
|
+
let dt = xt;
|
|
1836
|
+
dt.displayName = "ComboBox";
|
|
1837
|
+
dt.propTypes = {
|
|
1842
1838
|
...oe.propTypes,
|
|
1843
1839
|
size: l.oneOf([null, "small", "medium", "large"]),
|
|
1844
1840
|
rounded: l.oneOf([null, "small", "medium", "large", "full"]),
|
|
@@ -1853,7 +1849,7 @@ ct.propTypes = {
|
|
|
1853
1849
|
allowCustom: l.bool,
|
|
1854
1850
|
clearButton: l.bool,
|
|
1855
1851
|
iconClassName: l.string,
|
|
1856
|
-
svgIcon:
|
|
1852
|
+
svgIcon: fs,
|
|
1857
1853
|
validationMessage: l.string,
|
|
1858
1854
|
required: l.bool,
|
|
1859
1855
|
id: l.string,
|
|
@@ -1863,7 +1859,7 @@ ct.propTypes = {
|
|
|
1863
1859
|
valueRender: l.func,
|
|
1864
1860
|
skipDisabledItems: l.bool
|
|
1865
1861
|
};
|
|
1866
|
-
|
|
1862
|
+
dt.defaultProps = {
|
|
1867
1863
|
...oe.defaultProps,
|
|
1868
1864
|
size: "medium",
|
|
1869
1865
|
rounded: "medium",
|
|
@@ -1877,9 +1873,9 @@ ct.defaultProps = {
|
|
|
1877
1873
|
prefix: void 0,
|
|
1878
1874
|
suffix: void 0
|
|
1879
1875
|
};
|
|
1880
|
-
const
|
|
1881
|
-
|
|
1882
|
-
const
|
|
1876
|
+
const ni = Be(), ys = Et(Dt(ni, dt));
|
|
1877
|
+
ys.displayName = "KendoReactComboBox";
|
|
1878
|
+
const oi = "Please enter a valid value!", { sizeMap: ls, roundedMap: ai } = Ge, qt = class extends o.Component {
|
|
1883
1879
|
constructor(i) {
|
|
1884
1880
|
super(i), this.state = {}, this.base = new oe(this), this._element = null, this._suggested = "", this._input = null, this._isScrolling = !1, this.itemHeight = 0, this.focus = () => {
|
|
1885
1881
|
this._input && this._input.focus();
|
|
@@ -1893,7 +1889,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
1893
1889
|
this.base.togglePopup(t);
|
|
1894
1890
|
}, this.setValidity = () => {
|
|
1895
1891
|
this._input && this._input.setCustomValidity && this._input.setCustomValidity(
|
|
1896
|
-
this.validity.valid ? "" : this.props.validationMessage ||
|
|
1892
|
+
this.validity.valid ? "" : this.props.validationMessage || oi
|
|
1897
1893
|
);
|
|
1898
1894
|
}, this.onScroll = (t) => {
|
|
1899
1895
|
this._isScrolling = !0;
|
|
@@ -2082,8 +2078,8 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2082
2078
|
"k-autocomplete k-input",
|
|
2083
2079
|
s,
|
|
2084
2080
|
{
|
|
2085
|
-
[`k-input-${
|
|
2086
|
-
[`k-rounded-${
|
|
2081
|
+
[`k-input-${ls[c] || c}`]: c,
|
|
2082
|
+
[`k-rounded-${ai[d] || d}`]: d,
|
|
2087
2083
|
[`k-input-${r}`]: r,
|
|
2088
2084
|
"k-invalid": !h,
|
|
2089
2085
|
"k-loading": a,
|
|
@@ -2100,7 +2096,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2100
2096
|
this.props.prefix && /* @__PURE__ */ o.createElement(b, { ...w }),
|
|
2101
2097
|
this.renderSearchBar(f || "", v),
|
|
2102
2098
|
a && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
|
|
2103
|
-
m && !a && /* @__PURE__ */ o.createElement(
|
|
2099
|
+
m && !a && /* @__PURE__ */ o.createElement(rt, { onClick: this.clearButtonClick, key: "clearbutton" }),
|
|
2104
2100
|
this.props.suffix && /* @__PURE__ */ o.createElement(k, { ...D }),
|
|
2105
2101
|
this.renderListContainer()
|
|
2106
2102
|
);
|
|
@@ -2121,7 +2117,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2121
2117
|
* @hidden
|
|
2122
2118
|
*/
|
|
2123
2119
|
onNavigate(i, t, e) {
|
|
2124
|
-
const s = this.value, { data: n = [], textField: a, focusedItemIndex: p } = this.props, c = this.state.focusedItem !== void 0 ? n.findIndex((r) => R(r, this.state.focusedItem, a)) : p ? p(n, s, a) : n.indexOf(
|
|
2120
|
+
const s = this.value, { data: n = [], textField: a, focusedItemIndex: p } = this.props, c = this.state.focusedItem !== void 0 ? n.findIndex((r) => R(r, this.state.focusedItem, a)) : p ? p(n, s, a) : n.indexOf(as(n, s, a)), d = this.base.navigation.navigate({
|
|
2125
2121
|
keyCode: t,
|
|
2126
2122
|
current: c,
|
|
2127
2123
|
max: n.length - 1,
|
|
@@ -2189,16 +2185,14 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2189
2185
|
{
|
|
2190
2186
|
width: u,
|
|
2191
2187
|
popupSettings: {
|
|
2192
|
-
|
|
2193
|
-
anchor: this.element,
|
|
2188
|
+
...r,
|
|
2189
|
+
anchor: r.anchor || this.element,
|
|
2194
2190
|
show: h,
|
|
2195
2191
|
popupClass: B(
|
|
2196
2192
|
r.popupClass,
|
|
2197
2193
|
"k-list-container",
|
|
2198
2194
|
"k-autocomplete-popup"
|
|
2199
|
-
)
|
|
2200
|
-
className: r.className,
|
|
2201
|
-
appendTo: r.appendTo
|
|
2195
|
+
)
|
|
2202
2196
|
},
|
|
2203
2197
|
dir: t !== void 0 ? t : this.base.dirCalculated,
|
|
2204
2198
|
itemsCount: [n.length]
|
|
@@ -2210,7 +2204,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2210
2204
|
className: B(
|
|
2211
2205
|
"k-list",
|
|
2212
2206
|
{
|
|
2213
|
-
[`k-list-${
|
|
2207
|
+
[`k-list-${ls[a] || a}`]: a
|
|
2214
2208
|
}
|
|
2215
2209
|
)
|
|
2216
2210
|
},
|
|
@@ -2262,7 +2256,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2262
2256
|
}
|
|
2263
2257
|
suggestValue(i) {
|
|
2264
2258
|
if (this._suggested = "", i) {
|
|
2265
|
-
const { data: t = [], textField: e } = this.props, s = t[
|
|
2259
|
+
const { data: t = [], textField: e } = this.props, s = t[Ve(t, i, e)];
|
|
2266
2260
|
if (s) {
|
|
2267
2261
|
const n = V(s, e);
|
|
2268
2262
|
i.toLowerCase() !== n.toLowerCase() && (this._suggested = n.substring(i.length));
|
|
@@ -2276,7 +2270,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
|
|
|
2276
2270
|
if (s)
|
|
2277
2271
|
return s(t, a, e);
|
|
2278
2272
|
{
|
|
2279
|
-
const p = t.indexOf(
|
|
2273
|
+
const p = t.indexOf(as(t, a, e));
|
|
2280
2274
|
return n && e && p === -1 ? t.findIndex((c) => !c.disabled && c[e]) : Math.max(0, p);
|
|
2281
2275
|
}
|
|
2282
2276
|
}
|
|
@@ -2313,10 +2307,10 @@ Mt.defaultProps = {
|
|
|
2313
2307
|
prefix: void 0,
|
|
2314
2308
|
suffix: void 0
|
|
2315
2309
|
};
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2318
|
-
const
|
|
2319
|
-
class
|
|
2310
|
+
const li = Be(), ri = Et(Dt(li, Mt));
|
|
2311
|
+
ri.displayName = "KendoReactAutoComplete";
|
|
2312
|
+
const di = (i) => i.syntheticEvent.preventDefault(), ci = (i) => i.syntheticEvent.stopPropagation();
|
|
2313
|
+
class Is extends o.Component {
|
|
2320
2314
|
render() {
|
|
2321
2315
|
const { data: t, guid: e, focused: s, tagRender: n, tag: a, onTagDelete: p, size: c } = this.props;
|
|
2322
2316
|
return /* @__PURE__ */ o.createElement(o.Fragment, null, t.map((d, r) => {
|
|
@@ -2330,7 +2324,7 @@ class xs extends o.Component {
|
|
|
2330
2324
|
onTagDelete: p
|
|
2331
2325
|
}
|
|
2332
2326
|
) : /* @__PURE__ */ o.createElement(
|
|
2333
|
-
|
|
2327
|
+
Vs,
|
|
2334
2328
|
{
|
|
2335
2329
|
id: `tag-${e}-${d.text.replace(/\s+/g, "-")}`,
|
|
2336
2330
|
"aria-selected": !0,
|
|
@@ -2340,8 +2334,8 @@ class xs extends o.Component {
|
|
|
2340
2334
|
text: d.text,
|
|
2341
2335
|
removable: !0,
|
|
2342
2336
|
onRemove: (u) => p.call(void 0, d.data, u.syntheticEvent),
|
|
2343
|
-
onMouseDown:
|
|
2344
|
-
onClick:
|
|
2337
|
+
onMouseDown: di,
|
|
2338
|
+
onClick: ci,
|
|
2345
2339
|
className: d === s ? "k-focus" : void 0,
|
|
2346
2340
|
size: c
|
|
2347
2341
|
}
|
|
@@ -2350,8 +2344,8 @@ class xs extends o.Component {
|
|
|
2350
2344
|
}), this.props.children);
|
|
2351
2345
|
}
|
|
2352
2346
|
}
|
|
2353
|
-
var
|
|
2354
|
-
const
|
|
2347
|
+
var st = /* @__PURE__ */ ((i) => (i[i.PopupList = 0] = "PopupList", i[i.TagsList = 1] = "TagsList", i))(st || {});
|
|
2348
|
+
const rs = 500, ts = (i) => {
|
|
2355
2349
|
const {
|
|
2356
2350
|
footer: t,
|
|
2357
2351
|
children: e,
|
|
@@ -2369,8 +2363,8 @@ const ds = 500, ts = (i) => {
|
|
|
2369
2363
|
expand: p,
|
|
2370
2364
|
animation: c !== !1,
|
|
2371
2365
|
onClose: d,
|
|
2372
|
-
animationStyles: s <=
|
|
2373
|
-
className: s <=
|
|
2366
|
+
animationStyles: s <= rs ? { top: 0, width: "100%", height: "100%" } : void 0,
|
|
2367
|
+
className: s <= rs ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
|
|
2374
2368
|
};
|
|
2375
2369
|
return /* @__PURE__ */ o.createElement(Jt, { ...u }, /* @__PURE__ */ o.createElement(Qt, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, r)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
|
|
2376
2370
|
Te,
|
|
@@ -2381,10 +2375,10 @@ const ds = 500, ts = (i) => {
|
|
|
2381
2375
|
type: "button",
|
|
2382
2376
|
fillMode: "flat",
|
|
2383
2377
|
icon: "x",
|
|
2384
|
-
svgIcon:
|
|
2378
|
+
svgIcon: at,
|
|
2385
2379
|
onClick: d
|
|
2386
2380
|
}
|
|
2387
|
-
))), h && /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, h)), e, t && /* @__PURE__ */ o.createElement(
|
|
2381
|
+
))), h && /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, h)), e, t && /* @__PURE__ */ o.createElement(Bs, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ o.createElement(
|
|
2388
2382
|
Te,
|
|
2389
2383
|
{
|
|
2390
2384
|
size: "large",
|
|
@@ -2408,10 +2402,10 @@ const ds = 500, ts = (i) => {
|
|
|
2408
2402
|
},
|
|
2409
2403
|
t.applyText
|
|
2410
2404
|
)));
|
|
2411
|
-
}, { sizeMap: It, roundedMap:
|
|
2405
|
+
}, { sizeMap: It, roundedMap: pi } = Ge, hi = "Please enter a valid value!", ds = (i) => i.preventDefault(), cs = (i) => i === 2, $t = class extends o.Component {
|
|
2412
2406
|
constructor(i) {
|
|
2413
2407
|
super(i), this.state = {
|
|
2414
|
-
activedescendant:
|
|
2408
|
+
activedescendant: st.PopupList,
|
|
2415
2409
|
currentValue: []
|
|
2416
2410
|
}, this._element = null, this._valueItemsDuringOnChange = null, this.base = new oe(this), this._tags = [], this._input = null, this._adaptiveInput = null, this._skipFocusEvent = !1, this._lastSelectedOrDeslectedItemIndex = null, this.itemHeight = 0, this.scrollToFocused = !1, this.localization = null, this.focus = () => {
|
|
2417
2411
|
this._input && this._input.focus();
|
|
@@ -2427,7 +2421,7 @@ const ds = 500, ts = (i) => {
|
|
|
2427
2421
|
bt(n, t, this.props.dataItemKey), this.triggerOnChange(n, s), this.applyState(s);
|
|
2428
2422
|
}, this.itemFocus = (t, e) => {
|
|
2429
2423
|
const { data: s = [], allowCustom: n, virtual: a } = this.props, p = a ? a.skip : 0, c = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedIndex: d } = this.getFocusedState(), r = n && c, h = s[t - p];
|
|
2430
|
-
h && d !== t ? this.state.focusedIndex !== t && (e.data.focusedIndex = t, e.data.activedescendant =
|
|
2424
|
+
h && d !== t ? this.state.focusedIndex !== t && (e.data.focusedIndex = t, e.data.activedescendant = st.PopupList) : r && t === -1 && this.state.focusedIndex !== void 0 && (e.data.focusedIndex = void 0), this.base.triggerPageChangeCornerItems(h, e);
|
|
2431
2425
|
}, this.componentRef = (t) => {
|
|
2432
2426
|
this._element = t, this.base.wrapper = t;
|
|
2433
2427
|
}, this.searchbarRef = (t) => {
|
|
@@ -2530,16 +2524,16 @@ const ds = 500, ts = (i) => {
|
|
|
2530
2524
|
}),
|
|
2531
2525
|
key: "customitem",
|
|
2532
2526
|
onClick: this.customItemSelect,
|
|
2533
|
-
onMouseDown:
|
|
2527
|
+
onMouseDown: ds
|
|
2534
2528
|
},
|
|
2535
2529
|
/* @__PURE__ */ o.createElement(
|
|
2536
2530
|
"div",
|
|
2537
2531
|
{
|
|
2538
|
-
className: B("k-list-item k-custom-item", { "k-focus":
|
|
2532
|
+
className: B("k-list-item k-custom-item", { "k-focus": cs(h) }),
|
|
2539
2533
|
style: { fontStyle: "italic" }
|
|
2540
2534
|
},
|
|
2541
2535
|
r,
|
|
2542
|
-
/* @__PURE__ */ o.createElement(Ce, { name: "plus", icon:
|
|
2536
|
+
/* @__PURE__ */ o.createElement(Ce, { name: "plus", icon: Os, style: { position: "absolute", right: "0.5em" } })
|
|
2543
2537
|
)
|
|
2544
2538
|
);
|
|
2545
2539
|
let { group: f } = this.state;
|
|
@@ -2562,18 +2556,16 @@ const ds = 500, ts = (i) => {
|
|
|
2562
2556
|
dir: e !== void 0 ? e : t.dirCalculated,
|
|
2563
2557
|
width: a,
|
|
2564
2558
|
popupSettings: {
|
|
2559
|
+
...n,
|
|
2565
2560
|
popupClass: B(
|
|
2566
2561
|
n.popupClass,
|
|
2567
2562
|
"k-list-container",
|
|
2568
2563
|
"k-multiselect-popup"
|
|
2569
2564
|
),
|
|
2570
|
-
|
|
2571
|
-
animate: n.animate,
|
|
2572
|
-
anchor: this.element,
|
|
2565
|
+
anchor: n.anchor || this.element,
|
|
2573
2566
|
show: this.opened,
|
|
2574
2567
|
onOpen: this.onPopupOpened,
|
|
2575
|
-
onClose: this.onPopupClosed
|
|
2576
|
-
appendTo: n.appendTo
|
|
2568
|
+
onClose: this.onPopupClosed
|
|
2577
2569
|
},
|
|
2578
2570
|
itemsCount: [s.length, this.value.length]
|
|
2579
2571
|
};
|
|
@@ -2582,7 +2574,7 @@ const ds = 500, ts = (i) => {
|
|
|
2582
2574
|
const { adaptiveTitle: t, filterable: e, filter: s } = this.props, { windowWidth: n = 0 } = this.state, a = s !== void 0 ? s : this.state.text;
|
|
2583
2575
|
this.localization = We(this);
|
|
2584
2576
|
const p = e ? /* @__PURE__ */ o.createElement(
|
|
2585
|
-
|
|
2577
|
+
Re,
|
|
2586
2578
|
{
|
|
2587
2579
|
value: a,
|
|
2588
2580
|
ref: (d) => this._adaptiveInput = d && d.element,
|
|
@@ -2599,13 +2591,13 @@ const ds = 500, ts = (i) => {
|
|
|
2599
2591
|
windowWidth: n,
|
|
2600
2592
|
mobileFilter: p,
|
|
2601
2593
|
footer: {
|
|
2602
|
-
cancelText: this.localization.toLanguageString(
|
|
2594
|
+
cancelText: this.localization.toLanguageString(ot, ce[ot]),
|
|
2603
2595
|
onCancel: this.onCancel,
|
|
2604
|
-
applyText: this.localization.toLanguageString(
|
|
2596
|
+
applyText: this.localization.toLanguageString(nt, ce[nt]),
|
|
2605
2597
|
onApply: this.closePopup
|
|
2606
2598
|
}
|
|
2607
2599
|
};
|
|
2608
|
-
return /* @__PURE__ */ o.createElement(ts, { ...c }, /* @__PURE__ */ o.createElement(
|
|
2600
|
+
return /* @__PURE__ */ o.createElement(ts, { ...c }, /* @__PURE__ */ o.createElement(lt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, this.listContainerContent())));
|
|
2609
2601
|
}, this.closePopup = (t) => {
|
|
2610
2602
|
const e = this.base.initState();
|
|
2611
2603
|
e.syntheticEvent = t, t.stopPropagation(), this.state.focusedIndex !== void 0 && (e.data.focusedIndex = void 0), this.opened && this.base.togglePopup(e), e.events.push({ type: "onClose" });
|
|
@@ -2651,7 +2643,7 @@ const ds = 500, ts = (i) => {
|
|
|
2651
2643
|
itemRender: n,
|
|
2652
2644
|
groupHeaderItemRender: a,
|
|
2653
2645
|
noDataRender: s,
|
|
2654
|
-
onMouseDown:
|
|
2646
|
+
onMouseDown: ds,
|
|
2655
2647
|
onBlur: this.handleBlur,
|
|
2656
2648
|
onScroll: this.onScroll,
|
|
2657
2649
|
wrapperRef: d.scrollerRef,
|
|
@@ -2707,7 +2699,7 @@ const ds = 500, ts = (i) => {
|
|
|
2707
2699
|
}, 0);
|
|
2708
2700
|
}, this.setValidity = () => {
|
|
2709
2701
|
this._input && this._input.setCustomValidity && this._input.setCustomValidity(
|
|
2710
|
-
this.validity.valid ? "" : this.props.validationMessage ||
|
|
2702
|
+
this.validity.valid ? "" : this.props.validationMessage || hi
|
|
2711
2703
|
);
|
|
2712
2704
|
}, $e(Ye);
|
|
2713
2705
|
}
|
|
@@ -2738,7 +2730,7 @@ const ds = 500, ts = (i) => {
|
|
|
2738
2730
|
* The mobile mode of the ComboBox.
|
|
2739
2731
|
*/
|
|
2740
2732
|
get mobileMode() {
|
|
2741
|
-
return !!(this.state.windowWidth && this.state.windowWidth <=
|
|
2733
|
+
return !!(this.state.windowWidth && this.state.windowWidth <= Ee && this.props.adaptive);
|
|
2742
2734
|
}
|
|
2743
2735
|
/**
|
|
2744
2736
|
* Represents the value of the MultiSelect.
|
|
@@ -2795,7 +2787,7 @@ const ds = 500, ts = (i) => {
|
|
|
2795
2787
|
}
|
|
2796
2788
|
/** @hidden */
|
|
2797
2789
|
onNavigate(i, t, e) {
|
|
2798
|
-
const { allowCustom: s, data: n = [] } = this.props, a = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: p, focusedIndex: c } = this.getFocusedState(), d = s && a, r =
|
|
2790
|
+
const { allowCustom: s, data: n = [] } = this.props, a = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: p, focusedIndex: c } = this.getFocusedState(), d = s && a, r = cs(p), h = this.base, u = h.vs;
|
|
2799
2791
|
if (this.opened && t === g.up && r)
|
|
2800
2792
|
this.state.focusedIndex !== void 0 && (i.data.focusedIndex = void 0);
|
|
2801
2793
|
else {
|
|
@@ -2830,13 +2822,13 @@ const ds = 500, ts = (i) => {
|
|
|
2830
2822
|
k.enabled = c !== void 0, c !== void 0 && (k.skip = c.skip, k.total = c.total, k.pageSize = c.pageSize);
|
|
2831
2823
|
const O = this.mobileMode && this.opened ? w : this.tagsToRender;
|
|
2832
2824
|
this.setItems(this.tagsToRender, this._tags);
|
|
2833
|
-
const N = !this.validityStyles || this.validity.valid, _ = !!(f !== void 0 ? f : m) || O && O.length > 0, [S,
|
|
2825
|
+
const N = !this.validityStyles || this.validity.valid, _ = !!(f !== void 0 ? f : m) || O && O.length > 0, [S, F] = Ne(this.props.prefix || o.Fragment), [C, E] = Ne(this.props.suffix || o.Fragment), M = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
2834
2826
|
"div",
|
|
2835
2827
|
{
|
|
2836
2828
|
ref: this.componentRef,
|
|
2837
2829
|
className: B("k-multiselect k-input", t, {
|
|
2838
2830
|
[`k-input-${It[d] || d}`]: d,
|
|
2839
|
-
[`k-rounded-${
|
|
2831
|
+
[`k-rounded-${pi[r] || r}`]: r,
|
|
2840
2832
|
[`k-input-${h}`]: h,
|
|
2841
2833
|
"k-focus": v && !n,
|
|
2842
2834
|
"k-invalid": !N,
|
|
@@ -2849,9 +2841,9 @@ const ds = 500, ts = (i) => {
|
|
|
2849
2841
|
onFocus: this.handleFocus,
|
|
2850
2842
|
onBlur: this.handleBlur,
|
|
2851
2843
|
onClick: this.handleWrapperClick,
|
|
2852
|
-
onMouseDown:
|
|
2844
|
+
onMouseDown: Ws
|
|
2853
2845
|
},
|
|
2854
|
-
this.props.prefix && /* @__PURE__ */ o.createElement(S, { ...
|
|
2846
|
+
this.props.prefix && /* @__PURE__ */ o.createElement(S, { ...F }),
|
|
2855
2847
|
/* @__PURE__ */ o.createElement("div", { className: B("k-input-values") }, /* @__PURE__ */ o.createElement(
|
|
2856
2848
|
"div",
|
|
2857
2849
|
{
|
|
@@ -2863,20 +2855,20 @@ const ds = 500, ts = (i) => {
|
|
|
2863
2855
|
id: "tagslist-" + this.base.guid
|
|
2864
2856
|
},
|
|
2865
2857
|
O && O.length > 0 && /* @__PURE__ */ o.createElement(
|
|
2866
|
-
|
|
2858
|
+
Is,
|
|
2867
2859
|
{
|
|
2868
2860
|
tagRender: this.props.tagRender,
|
|
2869
2861
|
onTagDelete: this.onTagDelete,
|
|
2870
2862
|
data: O,
|
|
2871
2863
|
guid: this.base.guid,
|
|
2872
|
-
focused: b ? O.find((
|
|
2864
|
+
focused: b ? O.find((A) => St(A, b, p)) : void 0,
|
|
2873
2865
|
size: d
|
|
2874
2866
|
}
|
|
2875
2867
|
)
|
|
2876
2868
|
), this.renderSearchBar(D)),
|
|
2877
2869
|
u && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
|
|
2878
2870
|
this.props.suffix && /* @__PURE__ */ o.createElement(C, { ...E }),
|
|
2879
|
-
_ && /* @__PURE__ */ o.createElement(
|
|
2871
|
+
_ && /* @__PURE__ */ o.createElement(rt, { onClick: this.clearButtonClick }),
|
|
2880
2872
|
!this.mobileMode && this.renderListContainer()
|
|
2881
2873
|
), this.mobileMode && this.renderAdaptiveListContainer());
|
|
2882
2874
|
return e ? /* @__PURE__ */ o.createElement(
|
|
@@ -2893,7 +2885,7 @@ const ds = 500, ts = (i) => {
|
|
|
2893
2885
|
) : M;
|
|
2894
2886
|
}
|
|
2895
2887
|
renderSearchBar(i) {
|
|
2896
|
-
const { activedescendant: t, focusedTag: e, currentValue: s } = this.state, { disabled: n, placeholder: a, ariaDescribedBy: p } = this.props, c = !this.mobileMode && (this.props.filter !== void 0 ? this.props.filter : this.state.text) || "", { focusedIndex: d } = this.getFocusedState(), r = this.value.length === 0 && !c ? a : void 0, h = s && s.length > 0 ? void 0 : a, u = t ===
|
|
2888
|
+
const { activedescendant: t, focusedTag: e, currentValue: s } = this.state, { disabled: n, placeholder: a, ariaDescribedBy: p } = this.props, c = !this.mobileMode && (this.props.filter !== void 0 ? this.props.filter : this.state.text) || "", { focusedIndex: d } = this.getFocusedState(), r = this.value.length === 0 && !c ? a : void 0, h = s && s.length > 0 ? void 0 : a, u = t === st.TagsList && e !== void 0 ? `tag-${this.base.guid}-${e.text.replace(/\s+/g, "-")}` : `option-${this.base.guid}-${d}`;
|
|
2897
2889
|
return /* @__PURE__ */ o.createElement(
|
|
2898
2890
|
es,
|
|
2899
2891
|
{
|
|
@@ -2943,7 +2935,7 @@ const ds = 500, ts = (i) => {
|
|
|
2943
2935
|
bt(r, h.data, a), this.triggerOnChange(r, t);
|
|
2944
2936
|
}
|
|
2945
2937
|
}
|
|
2946
|
-
c !== s && (t.data.focusedTag = c, t.data.activedescendant =
|
|
2938
|
+
c !== s && (t.data.focusedTag = c, t.data.activedescendant = st.TagsList), this.applyState(t);
|
|
2947
2939
|
}
|
|
2948
2940
|
triggerOnChange(i, t) {
|
|
2949
2941
|
this.props.value === void 0 && (t.data.value = [...i]), this._valueItemsDuringOnChange = [], this.setItems(i, this._valueItemsDuringOnChange), t.events.push({ type: "onChange" });
|
|
@@ -2956,7 +2948,7 @@ const ds = 500, ts = (i) => {
|
|
|
2956
2948
|
t.length = 0, t.push(...i);
|
|
2957
2949
|
}
|
|
2958
2950
|
getFocusedState() {
|
|
2959
|
-
const { focusedIndex: i } = this.state, t = this.props.filter !== void 0 ? this.props.filter : this.state.text, { allowCustom: e, data: s = [], dataItemKey: n, virtual: a, textField: p, focusedItemIndex: c =
|
|
2951
|
+
const { focusedIndex: i } = this.state, t = this.props.filter !== void 0 ? this.props.filter : this.state.text, { allowCustom: e, data: s = [], dataItemKey: n, virtual: a, textField: p, focusedItemIndex: c = Ve, skipDisabledItems: d } = this.props, r = a && a.skip || 0;
|
|
2960
2952
|
let h;
|
|
2961
2953
|
if (i !== void 0)
|
|
2962
2954
|
return {
|
|
@@ -3069,9 +3061,9 @@ Nt.defaultProps = {
|
|
|
3069
3061
|
prefix: void 0,
|
|
3070
3062
|
suffix: void 0
|
|
3071
3063
|
};
|
|
3072
|
-
const
|
|
3073
|
-
|
|
3074
|
-
const
|
|
3064
|
+
const ui = Be(), fi = Et(Dt(ui, Nt));
|
|
3065
|
+
fi.displayName = "KendoReactMultiSelect";
|
|
3066
|
+
const gi = (i) => /* @__PURE__ */ o.createElement(
|
|
3075
3067
|
je,
|
|
3076
3068
|
{
|
|
3077
3069
|
...i,
|
|
@@ -3084,8 +3076,8 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
|
|
|
3084
3076
|
),
|
|
3085
3077
|
listStyle: { ...i.listStyle }
|
|
3086
3078
|
}
|
|
3087
|
-
),
|
|
3088
|
-
const e = Ut(
|
|
3079
|
+
), mi = (i, t) => i ? typeof i == "number" ? i + "px" : i : t, vi = Be(), ss = o.forwardRef((i, t) => {
|
|
3080
|
+
const e = Ut(vi, i), s = o.useRef(null), n = o.useRef(null), a = Ds(), {
|
|
3089
3081
|
columns: p = Ae.columns,
|
|
3090
3082
|
popupSettings: c = Ae.popupSettings,
|
|
3091
3083
|
className: d,
|
|
@@ -3120,95 +3112,95 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
|
|
|
3120
3112
|
return V(e.data[0], e.groupField);
|
|
3121
3113
|
},
|
|
3122
3114
|
[e.data, e.groupField]
|
|
3123
|
-
), [_, S] = o.useState(N), [
|
|
3115
|
+
), [_, S] = o.useState(N), [F, C] = o.useState(!0), [E] = h ? Ne(e.prefix || o.Fragment) : [], [M] = u ? Ne(e.suffix || o.Fragment) : [], A = o.useMemo(
|
|
3124
3116
|
() => {
|
|
3125
3117
|
const P = /* @__PURE__ */ o.createElement("th", { className: "k-table-th", colSpan: p.length }, _);
|
|
3126
3118
|
return /* @__PURE__ */ o.createElement(o.Fragment, null, e.header, /* @__PURE__ */ o.createElement("div", { className: "k-table-header-wrap" }, /* @__PURE__ */ o.createElement("table", { className: "k-table", role: "presentation" }, /* @__PURE__ */ o.createElement("colgroup", null, p.map(
|
|
3127
|
-
(
|
|
3119
|
+
(W, ge) => /* @__PURE__ */ o.createElement(
|
|
3128
3120
|
"col",
|
|
3129
3121
|
{
|
|
3130
|
-
key:
|
|
3131
|
-
style: { width:
|
|
3122
|
+
key: W.uniqueKey ? W.uniqueKey : ge,
|
|
3123
|
+
style: { width: W.width ? W.width : Ae.width }
|
|
3132
3124
|
}
|
|
3133
3125
|
)
|
|
3134
|
-
)), /* @__PURE__ */ o.createElement("thead", { className: "k-table-thead" }, /* @__PURE__ */ o.createElement("tr", { className: "k-table-row" }, p.map((
|
|
3126
|
+
)), /* @__PURE__ */ o.createElement("thead", { className: "k-table-thead" }, /* @__PURE__ */ o.createElement("tr", { className: "k-table-row" }, p.map((W, ge) => /* @__PURE__ */ o.createElement("th", { className: "k-table-th", key: W.uniqueKey ? W.uniqueKey : ge }, W.header || " "))), _ && F && /* @__PURE__ */ o.createElement("tr", { className: "k-table-group-row" }, e.groupStickyHeaderItemRender ? e.groupStickyHeaderItemRender.call(void 0, P, {}) : P)))));
|
|
3135
3127
|
},
|
|
3136
|
-
[e.header, p, _,
|
|
3137
|
-
),
|
|
3128
|
+
[e.header, p, _, F]
|
|
3129
|
+
), j = o.useMemo(
|
|
3138
3130
|
() => (
|
|
3139
3131
|
// These additional 4px are coming from the child elements side borders (fixes horizontal scrollbar)
|
|
3140
|
-
`calc(${p.map((P) =>
|
|
3132
|
+
`calc(${p.map((P) => mi(P.width, Ae.width)).filter(Boolean).join(" + ")} + ${a}px + 4px)`
|
|
3141
3133
|
),
|
|
3142
3134
|
[p, a]
|
|
3143
|
-
),
|
|
3144
|
-
(P,
|
|
3145
|
-
const
|
|
3135
|
+
), Y = e.virtual ? e.virtual.skip : 0, Z = o.useCallback(
|
|
3136
|
+
(P, W) => {
|
|
3137
|
+
const ge = p.map((ee, ct) => /* @__PURE__ */ o.createElement(
|
|
3146
3138
|
"span",
|
|
3147
3139
|
{
|
|
3148
3140
|
className: e.itemRender ? void 0 : "k-table-td",
|
|
3149
|
-
style: e.itemRender ? void 0 : { width:
|
|
3150
|
-
key:
|
|
3141
|
+
style: e.itemRender ? void 0 : { width: ee.width ? ee.width : Ae.width },
|
|
3142
|
+
key: ee.uniqueKey ? ee.uniqueKey : ct
|
|
3151
3143
|
},
|
|
3152
|
-
|
|
3144
|
+
ee.field ? String(Ct(ee.field)(W.dataItem)) : ""
|
|
3153
3145
|
));
|
|
3154
|
-
let
|
|
3155
|
-
const
|
|
3156
|
-
e.groupField !== void 0 && (le = Ct(e.groupField),
|
|
3157
|
-
const
|
|
3146
|
+
let z, J, ke, le, q = e.data || [];
|
|
3147
|
+
const re = W.index - Y;
|
|
3148
|
+
e.groupField !== void 0 && (le = Ct(e.groupField), J = le(q[re]), ke = le(q[re - 1]), J && ke && J !== ke && (z = J)), z && e.groupMode === "classic" && ge.push(/* @__PURE__ */ o.createElement("div", { key: "group", className: "k-table-td k-table-group-td" }, /* @__PURE__ */ o.createElement("span", null, z)));
|
|
3149
|
+
const Se = o.cloneElement(P, {
|
|
3158
3150
|
...P.props,
|
|
3159
3151
|
className: B("k-table-row", {
|
|
3160
|
-
"k-table-alt-row":
|
|
3161
|
-
"k-focus":
|
|
3162
|
-
"k-selected":
|
|
3163
|
-
"k-first": !!
|
|
3164
|
-
"k-disabled":
|
|
3152
|
+
"k-table-alt-row": W.index % 2 !== 0,
|
|
3153
|
+
"k-focus": W.focused,
|
|
3154
|
+
"k-selected": W.selected,
|
|
3155
|
+
"k-first": !!z,
|
|
3156
|
+
"k-disabled": W.dataItem.disabled
|
|
3165
3157
|
})
|
|
3166
|
-
},
|
|
3167
|
-
return e.itemRender ? e.itemRender.call(void 0,
|
|
3158
|
+
}, ge);
|
|
3159
|
+
return e.itemRender ? e.itemRender.call(void 0, Se, W) : Se;
|
|
3168
3160
|
},
|
|
3169
|
-
[p, e.groupField, e.itemRender, e.data,
|
|
3170
|
-
),
|
|
3171
|
-
(P,
|
|
3161
|
+
[p, e.groupField, e.itemRender, e.data, Y]
|
|
3162
|
+
), K = o.useCallback(
|
|
3163
|
+
(P, W) => {
|
|
3172
3164
|
P && P.call(void 0, {
|
|
3173
|
-
...
|
|
3165
|
+
...W,
|
|
3174
3166
|
target: s.current
|
|
3175
3167
|
});
|
|
3176
3168
|
},
|
|
3177
3169
|
[]
|
|
3178
|
-
),
|
|
3170
|
+
), be = o.useCallback((P) => (e.virtual || S(N), K(f, P)), [K, f, e.virtual, N]), X = o.useCallback((P) => K(m, P), [m]), Q = o.useCallback((P) => K(v, P), [v]), ae = o.useCallback((P) => K(b, P), [b]), Ke = o.useCallback((P) => K(w, P), [w]), Oe = o.useCallback((P) => K(D, P), [D]), Le = o.useCallback((P) => (S(N), K(k, {
|
|
3179
3171
|
...P,
|
|
3180
3172
|
mobileMode: P.target.mobileMode
|
|
3181
|
-
})), [k]),
|
|
3173
|
+
})), [k]), H = o.useCallback(
|
|
3182
3174
|
(P) => {
|
|
3183
3175
|
S(P.group);
|
|
3184
3176
|
},
|
|
3185
3177
|
[]
|
|
3186
3178
|
);
|
|
3187
3179
|
o.useEffect(() => {
|
|
3188
|
-
|
|
3180
|
+
Fs();
|
|
3189
3181
|
}), o.useEffect(() => {
|
|
3190
3182
|
const P = e.data;
|
|
3191
3183
|
S(N), P && P.length !== 0 ? C(!0) : C(!1);
|
|
3192
3184
|
}, [e.data]);
|
|
3193
|
-
const
|
|
3185
|
+
const ze = o.useCallback((P) => /* @__PURE__ */ o.createElement(gi, { ...P }), []);
|
|
3194
3186
|
return /* @__PURE__ */ o.createElement(
|
|
3195
|
-
|
|
3187
|
+
Ps.Provider,
|
|
3196
3188
|
{
|
|
3197
3189
|
value: (P) => ({ ...P, popupClass: `k-dropdowngrid-popup ${c.popupClass}` })
|
|
3198
3190
|
},
|
|
3199
3191
|
/* @__PURE__ */ o.createElement(
|
|
3200
|
-
|
|
3192
|
+
ys,
|
|
3201
3193
|
{
|
|
3202
3194
|
...O,
|
|
3203
|
-
list:
|
|
3195
|
+
list: ze,
|
|
3204
3196
|
popupSettings: {
|
|
3205
|
-
width: J,
|
|
3206
3197
|
...c,
|
|
3198
|
+
width: c.width || j,
|
|
3207
3199
|
className: c.className
|
|
3208
3200
|
},
|
|
3209
3201
|
ref: n,
|
|
3210
|
-
header:
|
|
3211
|
-
itemRender:
|
|
3202
|
+
header: A,
|
|
3203
|
+
itemRender: Z,
|
|
3212
3204
|
groupHeaderItemRender: e.groupHeaderItemRender,
|
|
3213
3205
|
size: e.size,
|
|
3214
3206
|
rounded: e.rounded,
|
|
@@ -3216,14 +3208,14 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
|
|
|
3216
3208
|
groupMode: e.groupMode,
|
|
3217
3209
|
groupField: e.groupField,
|
|
3218
3210
|
isMultiColumn: !0,
|
|
3219
|
-
onOpen:
|
|
3220
|
-
onClose:
|
|
3221
|
-
onFocus:
|
|
3211
|
+
onOpen: be,
|
|
3212
|
+
onClose: X,
|
|
3213
|
+
onFocus: Q,
|
|
3222
3214
|
onBlur: ae,
|
|
3223
|
-
onChange:
|
|
3224
|
-
onFilterChange:
|
|
3215
|
+
onChange: Ke,
|
|
3216
|
+
onFilterChange: Le,
|
|
3225
3217
|
onPageChange: Oe,
|
|
3226
|
-
onGroupScroll:
|
|
3218
|
+
onGroupScroll: H,
|
|
3227
3219
|
className: B("k-dropdowngrid", d),
|
|
3228
3220
|
required: e.required,
|
|
3229
3221
|
adaptive: e.adaptive,
|
|
@@ -3236,8 +3228,8 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
|
|
|
3236
3228
|
}
|
|
3237
3229
|
)
|
|
3238
3230
|
);
|
|
3239
|
-
}),
|
|
3240
|
-
...
|
|
3231
|
+
}), bi = {
|
|
3232
|
+
...dt.propTypes,
|
|
3241
3233
|
columns: l.any.isRequired
|
|
3242
3234
|
}, Ae = {
|
|
3243
3235
|
columns: [],
|
|
@@ -3248,9 +3240,9 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
|
|
|
3248
3240
|
fillMode: "solid"
|
|
3249
3241
|
};
|
|
3250
3242
|
ss.displayName = "KendoMultiColumnComboBox";
|
|
3251
|
-
ss.propTypes =
|
|
3243
|
+
ss.propTypes = bi;
|
|
3252
3244
|
ss.defaultProps = Ae;
|
|
3253
|
-
function
|
|
3245
|
+
function yi(i, t, e) {
|
|
3254
3246
|
const [s, n] = o.useState(t);
|
|
3255
3247
|
return o.useEffect(
|
|
3256
3248
|
() => {
|
|
@@ -3259,14 +3251,18 @@ function Cs(i, t, e) {
|
|
|
3259
3251
|
e
|
|
3260
3252
|
), s;
|
|
3261
3253
|
}
|
|
3262
|
-
|
|
3254
|
+
function xs(i, t, e, s) {
|
|
3255
|
+
const n = e.width !== void 0 && e.width !== t.popupSettings.width, a = s.width !== void 0, p = n ? e.width : a ? s.width : t.popupSettings.width, c = yi(i, p);
|
|
3256
|
+
return n || a ? p : c && c > t.popupSettings.width ? c : t.popupSettings.width;
|
|
3257
|
+
}
|
|
3258
|
+
const Cs = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata" }, /* @__PURE__ */ o.createElement("div", null, i.children)), { sizeMap: Ii, roundedMap: xi } = Ge, Ci = "Please select a value from the list!", ki = (i) => /* @__PURE__ */ o.createElement("span", { className: "k-input-value-text" }, i.children), ps = (i) => i.split("_").map((t) => parseInt(t, 10)), Si = (i, t) => {
|
|
3263
3259
|
const { validationMessage: e, valid: s, required: n } = i;
|
|
3264
3260
|
return {
|
|
3265
3261
|
customError: e !== void 0,
|
|
3266
3262
|
valid: !!(s !== void 0 ? s : !n || t),
|
|
3267
3263
|
valueMissing: !t
|
|
3268
3264
|
};
|
|
3269
|
-
},
|
|
3265
|
+
}, hs = {
|
|
3270
3266
|
selectField: "selected",
|
|
3271
3267
|
subItemsField: "items",
|
|
3272
3268
|
popupSettings: {
|
|
@@ -3281,15 +3277,15 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3281
3277
|
size: "medium",
|
|
3282
3278
|
rounded: "medium",
|
|
3283
3279
|
fillMode: "solid"
|
|
3284
|
-
}, wi =
|
|
3280
|
+
}, wi = Be(), ks = o.forwardRef((i, t) => {
|
|
3285
3281
|
$e(Ye);
|
|
3286
3282
|
const e = Ut(wi, i), s = {
|
|
3287
|
-
...
|
|
3283
|
+
...hs,
|
|
3288
3284
|
...e
|
|
3289
|
-
}, n =
|
|
3285
|
+
}, n = gs(), a = s.id || n, {
|
|
3290
3286
|
data: p,
|
|
3291
3287
|
dataItemKey: c,
|
|
3292
|
-
popupSettings: d,
|
|
3288
|
+
popupSettings: d = {},
|
|
3293
3289
|
style: r,
|
|
3294
3290
|
opened: h,
|
|
3295
3291
|
disabled: u,
|
|
@@ -3304,27 +3300,27 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3304
3300
|
valid: N,
|
|
3305
3301
|
required: _,
|
|
3306
3302
|
validityStyles: S
|
|
3307
|
-
} = s,
|
|
3303
|
+
} = s, F = Gt(s.tabIndex, u), C = o.useRef(null), E = o.useRef(null), M = o.useRef(null), A = o.useRef(null), j = o.useRef(null), Y = o.useRef(null), Z = o.useRef(!1), [K, be] = o.useState(void 0), X = s.value !== void 0, Q = X ? s.value : K !== void 0 ? K : s.defaultValue, ae = U(Q), Ke = ae ? V(Q, s.textField) : "", Oe = Si({ validationMessage: O, valid: N, required: _ }, ae), Le = o.useCallback(() => E.current && E.current.focus(), []);
|
|
3308
3304
|
o.useImperativeHandle(
|
|
3309
3305
|
C,
|
|
3310
3306
|
() => ({
|
|
3311
3307
|
props: s,
|
|
3312
3308
|
element: E.current,
|
|
3313
|
-
focus:
|
|
3309
|
+
focus: Le
|
|
3314
3310
|
})
|
|
3315
3311
|
), o.useImperativeHandle(t, () => C.current);
|
|
3316
|
-
const
|
|
3317
|
-
width:
|
|
3318
|
-
...
|
|
3319
|
-
}, [
|
|
3312
|
+
const H = ms(E, s.dir), P = {
|
|
3313
|
+
width: xs(E, hs, d, r),
|
|
3314
|
+
...H !== void 0 ? { direction: H } : {}
|
|
3315
|
+
}, [W, ge] = o.useState(!1), z = h !== void 0 ? h : W, [J, ke] = o.useState(!1), [le, q] = o.useState(), re = !!(le && le <= Ee && s.adaptive), [Se, ee] = o.useState(""), ct = o.useCallback(
|
|
3320
3316
|
() => {
|
|
3321
|
-
|
|
3317
|
+
j.current && j.current.setCustomValidity && j.current.setCustomValidity(
|
|
3322
3318
|
Oe.valid ? "" : O === void 0 ? Ci : O
|
|
3323
3319
|
);
|
|
3324
3320
|
},
|
|
3325
3321
|
[O, Oe]
|
|
3326
3322
|
);
|
|
3327
|
-
o.useEffect(
|
|
3323
|
+
o.useEffect(ct), o.useEffect(() => {
|
|
3328
3324
|
const I = Me && window.ResizeObserver && new window.ResizeObserver(Vt.bind(void 0));
|
|
3329
3325
|
return document != null && document.body && I && I.observe(document.body), () => {
|
|
3330
3326
|
document != null && document.body && I && I.disconnect();
|
|
@@ -3332,51 +3328,51 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3332
3328
|
}, []);
|
|
3333
3329
|
const pt = o.useCallback(
|
|
3334
3330
|
(I) => {
|
|
3335
|
-
if (!
|
|
3331
|
+
if (!z) {
|
|
3336
3332
|
if (f) {
|
|
3337
|
-
const
|
|
3338
|
-
f.call(void 0,
|
|
3333
|
+
const T = { ...I };
|
|
3334
|
+
f.call(void 0, T);
|
|
3339
3335
|
}
|
|
3340
|
-
h === void 0 &&
|
|
3336
|
+
h === void 0 && ge(!0);
|
|
3341
3337
|
}
|
|
3342
3338
|
},
|
|
3343
|
-
[
|
|
3344
|
-
),
|
|
3339
|
+
[z, h, f]
|
|
3340
|
+
), we = o.useCallback(
|
|
3345
3341
|
(I) => {
|
|
3346
|
-
if (
|
|
3342
|
+
if (z) {
|
|
3347
3343
|
if (m) {
|
|
3348
|
-
const
|
|
3349
|
-
m.call(void 0,
|
|
3344
|
+
const T = { ...I };
|
|
3345
|
+
m.call(void 0, T);
|
|
3350
3346
|
}
|
|
3351
|
-
h === void 0 && (
|
|
3352
|
-
var
|
|
3353
|
-
$((
|
|
3347
|
+
h === void 0 && (ge(!1), re && setTimeout(() => {
|
|
3348
|
+
var T;
|
|
3349
|
+
$((T = A.current) == null ? void 0 : T.element);
|
|
3354
3350
|
}, 300));
|
|
3355
3351
|
}
|
|
3356
3352
|
},
|
|
3357
|
-
[
|
|
3353
|
+
[z, h, m, re]
|
|
3358
3354
|
), Ot = o.useCallback(
|
|
3359
3355
|
(I) => {
|
|
3360
3356
|
if (!I.isDefaultPrevented() && C.current) {
|
|
3361
|
-
|
|
3362
|
-
const
|
|
3357
|
+
ke(!0);
|
|
3358
|
+
const T = {
|
|
3363
3359
|
syntheticEvent: I,
|
|
3364
3360
|
nativeEvent: I.nativeEvent,
|
|
3365
3361
|
target: C.current
|
|
3366
3362
|
};
|
|
3367
|
-
(
|
|
3363
|
+
(z ? we : pt)(T);
|
|
3368
3364
|
}
|
|
3369
3365
|
},
|
|
3370
|
-
[
|
|
3366
|
+
[z, h, f, m]
|
|
3371
3367
|
), ne = o.useCallback(
|
|
3372
3368
|
(I) => {
|
|
3373
|
-
|
|
3369
|
+
Z.current = !0, I(), window.setTimeout(() => Z.current = !1, 0);
|
|
3374
3370
|
},
|
|
3375
3371
|
[]
|
|
3376
3372
|
), He = o.useCallback(
|
|
3377
3373
|
(I) => {
|
|
3378
|
-
var x,
|
|
3379
|
-
const { keyCode:
|
|
3374
|
+
var x, L;
|
|
3375
|
+
const { keyCode: T, altKey: G } = I, pe = Y.current && Y.current.element;
|
|
3380
3376
|
if (!C.current || I.isDefaultPrevented() && ((x = M.current) == null ? void 0 : x.element) === I.target)
|
|
3381
3377
|
return;
|
|
3382
3378
|
const y = {
|
|
@@ -3384,11 +3380,11 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3384
3380
|
nativeEvent: I.nativeEvent,
|
|
3385
3381
|
target: C.current
|
|
3386
3382
|
};
|
|
3387
|
-
if (
|
|
3388
|
-
if (
|
|
3389
|
-
I.preventDefault(),
|
|
3390
|
-
else if (pe && pe.querySelector(".k-focus") && (
|
|
3391
|
-
if (
|
|
3383
|
+
if (z)
|
|
3384
|
+
if (T === g.esc || G && T === g.up)
|
|
3385
|
+
I.preventDefault(), we(y);
|
|
3386
|
+
else if (pe && pe.querySelector(".k-focus") && (T === g.up || T === g.down || T === g.left || T === g.right || T === g.home || T === g.end)) {
|
|
3387
|
+
if (T === g.up && ((L = M.current) != null && L.element)) {
|
|
3392
3388
|
const se = Array.from(pe.querySelectorAll(".k-treeview-item")), Ie = [...se].reverse().find((xe) => !!(xe && xe.querySelector(".k-focus")));
|
|
3393
3389
|
if (Ie && se.indexOf(Ie) === 0)
|
|
3394
3390
|
return ne(() => {
|
|
@@ -3398,22 +3394,22 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3398
3394
|
}
|
|
3399
3395
|
ne(Fe);
|
|
3400
3396
|
} else
|
|
3401
|
-
|
|
3397
|
+
T === g.down && ne(() => {
|
|
3402
3398
|
var se;
|
|
3403
3399
|
$(((se = M.current) == null ? void 0 : se.element) || pe);
|
|
3404
3400
|
});
|
|
3405
3401
|
else
|
|
3406
|
-
G &&
|
|
3402
|
+
G && T === g.down ? (I.preventDefault(), pt(y)) : z || T === g.esc && ft(I);
|
|
3407
3403
|
},
|
|
3408
|
-
[
|
|
3409
|
-
),
|
|
3404
|
+
[z, h, f, m]
|
|
3405
|
+
), Pe = o.useCallback(
|
|
3410
3406
|
(I) => {
|
|
3411
|
-
const { keyCode:
|
|
3412
|
-
G ||
|
|
3413
|
-
|
|
3407
|
+
const { keyCode: T, altKey: G } = I;
|
|
3408
|
+
G || T !== g.up && T !== g.down || (I.preventDefault(), ne(
|
|
3409
|
+
T === g.up ? () => {
|
|
3414
3410
|
$(E.current);
|
|
3415
3411
|
} : () => {
|
|
3416
|
-
$(
|
|
3412
|
+
$(Y.current && Y.current.element);
|
|
3417
3413
|
}
|
|
3418
3414
|
));
|
|
3419
3415
|
},
|
|
@@ -3426,94 +3422,94 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3426
3422
|
), fe = o.useCallback(
|
|
3427
3423
|
() => {
|
|
3428
3424
|
var I;
|
|
3429
|
-
!
|
|
3425
|
+
!J && z && !h ? we({ target: C.current }) : e.filterable ? $((I = M.current) == null ? void 0 : I.element) : $(Y.current && Y.current.element);
|
|
3430
3426
|
},
|
|
3431
|
-
[m, e.filterable,
|
|
3427
|
+
[m, e.filterable, J, h, z]
|
|
3432
3428
|
), te = o.useCallback(
|
|
3433
3429
|
() => {
|
|
3434
|
-
|
|
3430
|
+
J && $(E.current);
|
|
3435
3431
|
},
|
|
3436
|
-
[
|
|
3432
|
+
[J]
|
|
3437
3433
|
), Pt = o.useCallback(
|
|
3438
3434
|
(I) => {
|
|
3439
|
-
if (!
|
|
3440
|
-
const
|
|
3435
|
+
if (!J && !Z.current && (ke(!0), e.onFocus && C.current)) {
|
|
3436
|
+
const T = {
|
|
3441
3437
|
syntheticEvent: I,
|
|
3442
3438
|
nativeEvent: I.nativeEvent,
|
|
3443
3439
|
target: C.current
|
|
3444
3440
|
};
|
|
3445
|
-
e.onFocus.call(void 0,
|
|
3441
|
+
e.onFocus.call(void 0, T);
|
|
3446
3442
|
}
|
|
3447
3443
|
},
|
|
3448
|
-
[
|
|
3444
|
+
[J, e.onFocus]
|
|
3449
3445
|
), _t = o.useCallback(
|
|
3450
3446
|
(I) => {
|
|
3451
|
-
if (
|
|
3452
|
-
|
|
3453
|
-
const
|
|
3447
|
+
if (J && !Z.current && C.current) {
|
|
3448
|
+
ke(!1);
|
|
3449
|
+
const T = {
|
|
3454
3450
|
syntheticEvent: I,
|
|
3455
3451
|
nativeEvent: I.nativeEvent,
|
|
3456
3452
|
target: C.current
|
|
3457
3453
|
};
|
|
3458
3454
|
if (e.onBlur) {
|
|
3459
|
-
const G = { ...
|
|
3455
|
+
const G = { ...T };
|
|
3460
3456
|
e.onBlur.call(void 0, G);
|
|
3461
3457
|
}
|
|
3462
|
-
re ||
|
|
3458
|
+
re || we(T);
|
|
3463
3459
|
}
|
|
3464
3460
|
},
|
|
3465
|
-
[
|
|
3461
|
+
[J, e.onBlur, z, h, m]
|
|
3466
3462
|
), Rt = o.useCallback(
|
|
3467
3463
|
() => {
|
|
3468
|
-
|
|
3464
|
+
J && ne(Fe), re && setTimeout(() => {
|
|
3469
3465
|
var I;
|
|
3470
|
-
$((I =
|
|
3466
|
+
$((I = A.current) == null ? void 0 : I.element);
|
|
3471
3467
|
}, 300);
|
|
3472
3468
|
},
|
|
3473
|
-
[
|
|
3469
|
+
[J, re]
|
|
3474
3470
|
), ht = o.useCallback(
|
|
3475
|
-
(I,
|
|
3471
|
+
(I, T, G) => {
|
|
3476
3472
|
if (e.onChange) {
|
|
3477
3473
|
const pe = {
|
|
3478
|
-
value:
|
|
3479
|
-
level: G ?
|
|
3474
|
+
value: T,
|
|
3475
|
+
level: G ? ps(G) : [],
|
|
3480
3476
|
...I
|
|
3481
3477
|
};
|
|
3482
3478
|
e.onChange.call(void 0, pe);
|
|
3483
3479
|
}
|
|
3484
|
-
|
|
3480
|
+
X || be(T);
|
|
3485
3481
|
},
|
|
3486
|
-
[e.onChange,
|
|
3482
|
+
[e.onChange, X]
|
|
3487
3483
|
), ut = o.useCallback(
|
|
3488
3484
|
(I) => {
|
|
3489
|
-
if (R(I.item,
|
|
3485
|
+
if (R(I.item, Q, c) || !C.current)
|
|
3490
3486
|
return;
|
|
3491
|
-
const { item:
|
|
3487
|
+
const { item: T, itemHierarchicalIndex: G, nativeEvent: pe, syntheticEvent: y } = I, x = {
|
|
3492
3488
|
syntheticEvent: y,
|
|
3493
3489
|
nativeEvent: pe,
|
|
3494
3490
|
target: C.current
|
|
3495
3491
|
};
|
|
3496
|
-
ht(x,
|
|
3492
|
+
ht(x, T, G), we(x);
|
|
3497
3493
|
},
|
|
3498
|
-
[
|
|
3494
|
+
[X, Q, e.onChange, c, z, h, m]
|
|
3499
3495
|
), ft = o.useCallback(
|
|
3500
3496
|
(I) => {
|
|
3501
3497
|
if (!C.current)
|
|
3502
3498
|
return;
|
|
3503
|
-
const
|
|
3499
|
+
const T = {
|
|
3504
3500
|
syntheticEvent: I,
|
|
3505
3501
|
nativeEvent: I.nativeEvent,
|
|
3506
3502
|
target: C.current
|
|
3507
3503
|
};
|
|
3508
|
-
ht(
|
|
3504
|
+
ht(T, null), we(T), I.preventDefault();
|
|
3509
3505
|
},
|
|
3510
|
-
[
|
|
3506
|
+
[X, e.onChange, z, h, m]
|
|
3511
3507
|
), gt = o.useCallback(
|
|
3512
3508
|
(I) => {
|
|
3513
3509
|
if (I.syntheticEvent.stopPropagation(), e.onExpandChange && C.current) {
|
|
3514
|
-
const { item:
|
|
3515
|
-
level:
|
|
3516
|
-
item:
|
|
3510
|
+
const { item: T, itemHierarchicalIndex: G, nativeEvent: pe, syntheticEvent: y } = I, x = {
|
|
3511
|
+
level: ps(G),
|
|
3512
|
+
item: T,
|
|
3517
3513
|
nativeEvent: pe,
|
|
3518
3514
|
syntheticEvent: y,
|
|
3519
3515
|
target: C.current
|
|
@@ -3522,7 +3518,7 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3522
3518
|
}
|
|
3523
3519
|
},
|
|
3524
3520
|
[e.onExpandChange]
|
|
3525
|
-
),
|
|
3521
|
+
), Je = o.useCallback(
|
|
3526
3522
|
(I) => {
|
|
3527
3523
|
if (e.onFilterChange && C.current) {
|
|
3528
3524
|
const G = {
|
|
@@ -3531,35 +3527,35 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3531
3527
|
nativeEvent: I.nativeEvent,
|
|
3532
3528
|
target: C.current
|
|
3533
3529
|
};
|
|
3534
|
-
e.onFilterChange.call(void 0, G), e.filter === void 0 &&
|
|
3530
|
+
e.onFilterChange.call(void 0, G), e.filter === void 0 && ee(I.target.value);
|
|
3535
3531
|
}
|
|
3536
3532
|
},
|
|
3537
3533
|
[e.onFilterChange, e.filter, e.textField]
|
|
3538
|
-
),
|
|
3534
|
+
), Qe = () => {
|
|
3539
3535
|
const I = s.filterable ? /* @__PURE__ */ o.createElement(
|
|
3540
|
-
|
|
3536
|
+
Re,
|
|
3541
3537
|
{
|
|
3542
|
-
value: s.filter === void 0 ?
|
|
3543
|
-
ref:
|
|
3544
|
-
onChange:
|
|
3545
|
-
onKeyDown:
|
|
3538
|
+
value: s.filter === void 0 ? Se : s.filter,
|
|
3539
|
+
ref: A,
|
|
3540
|
+
onChange: Je,
|
|
3541
|
+
onKeyDown: Pe,
|
|
3546
3542
|
size: me,
|
|
3547
3543
|
rounded: ye,
|
|
3548
3544
|
fillMode: De
|
|
3549
3545
|
}
|
|
3550
|
-
) : null,
|
|
3546
|
+
) : null, T = {
|
|
3551
3547
|
adaptiveTitle: s.adaptiveTitle,
|
|
3552
|
-
expand:
|
|
3553
|
-
onClose: (G) =>
|
|
3554
|
-
windowWidth:
|
|
3548
|
+
expand: z,
|
|
3549
|
+
onClose: (G) => we(G),
|
|
3550
|
+
windowWidth: le,
|
|
3555
3551
|
mobileFilter: I
|
|
3556
3552
|
};
|
|
3557
|
-
return /* @__PURE__ */ o.createElement(ts, { ...
|
|
3553
|
+
return /* @__PURE__ */ o.createElement(ts, { ...T }, /* @__PURE__ */ o.createElement(lt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: "k-list k-list-lg" }, p.length > 0 ? /* @__PURE__ */ o.createElement(
|
|
3558
3554
|
kt,
|
|
3559
3555
|
{
|
|
3560
|
-
ref:
|
|
3561
|
-
tabIndex:
|
|
3562
|
-
data:
|
|
3556
|
+
ref: Y,
|
|
3557
|
+
tabIndex: F,
|
|
3558
|
+
data: Xe,
|
|
3563
3559
|
focusIdField: c,
|
|
3564
3560
|
textField: s.textField,
|
|
3565
3561
|
selectField: k,
|
|
@@ -3570,44 +3566,44 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3570
3566
|
onExpandChange: gt,
|
|
3571
3567
|
size: me,
|
|
3572
3568
|
item: s.item,
|
|
3573
|
-
dir:
|
|
3569
|
+
dir: H
|
|
3574
3570
|
}
|
|
3575
|
-
) : /* @__PURE__ */ o.createElement(
|
|
3571
|
+
) : /* @__PURE__ */ o.createElement(Ze, null, et.toLanguageString(ve, ce[ve]))))));
|
|
3576
3572
|
}, Vt = o.useCallback(
|
|
3577
3573
|
(I) => {
|
|
3578
|
-
for (let
|
|
3579
|
-
|
|
3574
|
+
for (let T of I)
|
|
3575
|
+
q(T.target.clientWidth);
|
|
3580
3576
|
},
|
|
3581
3577
|
[]
|
|
3582
|
-
),
|
|
3583
|
-
() =>
|
|
3578
|
+
), Xe = o.useMemo(
|
|
3579
|
+
() => X || !ae ? p : Ts(
|
|
3584
3580
|
p,
|
|
3585
3581
|
D,
|
|
3586
|
-
(I) =>
|
|
3582
|
+
(I) => Ms(
|
|
3587
3583
|
I,
|
|
3588
3584
|
D,
|
|
3589
|
-
{ [k]: R(I,
|
|
3585
|
+
{ [k]: R(I, Q, c) }
|
|
3590
3586
|
)
|
|
3591
3587
|
),
|
|
3592
|
-
[p,
|
|
3593
|
-
),
|
|
3588
|
+
[p, Q, X, ae, k, D]
|
|
3589
|
+
), Ze = s.listNoData || Cs, mt = s.valueHolder || ki, et = bs(), vt = !S || Oe.valid, { size: me, rounded: ye, fillMode: De } = s, de = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
3594
3590
|
"span",
|
|
3595
3591
|
{
|
|
3596
3592
|
className: B("k-dropdowntree k-picker", s.className, {
|
|
3597
3593
|
[`k-picker-${Ii[me] || me}`]: me,
|
|
3598
3594
|
[`k-rounded-${xi[ye] || ye}`]: ye,
|
|
3599
3595
|
[`k-picker-${De}`]: De,
|
|
3600
|
-
"k-focus":
|
|
3596
|
+
"k-focus": J,
|
|
3601
3597
|
"k-invalid": !vt,
|
|
3602
3598
|
"k-loading": s.loading,
|
|
3603
3599
|
"k-required": _,
|
|
3604
3600
|
"k-disabled": s.disabled
|
|
3605
3601
|
}),
|
|
3606
|
-
tabIndex:
|
|
3602
|
+
tabIndex: F,
|
|
3607
3603
|
accessKey: s.accessKey,
|
|
3608
3604
|
id: a,
|
|
3609
3605
|
style: b ? { ...r, width: void 0 } : r,
|
|
3610
|
-
dir:
|
|
3606
|
+
dir: H,
|
|
3611
3607
|
ref: E,
|
|
3612
3608
|
onKeyDown: u ? void 0 : He,
|
|
3613
3609
|
onMouseDown: Rt,
|
|
@@ -3616,26 +3612,26 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3616
3612
|
onBlur: _t,
|
|
3617
3613
|
role: "combobox",
|
|
3618
3614
|
"aria-haspopup": "tree",
|
|
3619
|
-
"aria-expanded":
|
|
3615
|
+
"aria-expanded": z,
|
|
3620
3616
|
"aria-disabled": u,
|
|
3621
3617
|
"aria-label": b,
|
|
3622
3618
|
"aria-labelledby": s.ariaLabelledBy,
|
|
3623
3619
|
"aria-describedby": s.ariaDescribedBy,
|
|
3624
3620
|
"aria-required": _
|
|
3625
3621
|
},
|
|
3626
|
-
/* @__PURE__ */ o.createElement("span", { className: "k-input-inner" }, /* @__PURE__ */ o.createElement(mt, { item:
|
|
3622
|
+
/* @__PURE__ */ o.createElement("span", { className: "k-input-inner" }, /* @__PURE__ */ o.createElement(mt, { item: Q }, Ke || v)),
|
|
3627
3623
|
s.loading && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
|
|
3628
3624
|
ae && !u && /* @__PURE__ */ o.createElement(
|
|
3629
3625
|
"span",
|
|
3630
3626
|
{
|
|
3631
3627
|
onClick: ft,
|
|
3632
3628
|
className: "k-clear-value",
|
|
3633
|
-
title:
|
|
3629
|
+
title: et.toLanguageString(it, ce[it]),
|
|
3634
3630
|
role: "button",
|
|
3635
3631
|
tabIndex: -1,
|
|
3636
3632
|
onMouseDown: (I) => I.preventDefault()
|
|
3637
3633
|
},
|
|
3638
|
-
/* @__PURE__ */ o.createElement(Ce, { name: "x", icon:
|
|
3634
|
+
/* @__PURE__ */ o.createElement(Ce, { name: "x", icon: at })
|
|
3639
3635
|
),
|
|
3640
3636
|
/* @__PURE__ */ o.createElement(
|
|
3641
3637
|
Te,
|
|
@@ -3656,37 +3652,33 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3656
3652
|
"select",
|
|
3657
3653
|
{
|
|
3658
3654
|
name: w,
|
|
3659
|
-
ref:
|
|
3655
|
+
ref: j,
|
|
3660
3656
|
tabIndex: -1,
|
|
3661
3657
|
"aria-hidden": !0,
|
|
3662
3658
|
title: b,
|
|
3663
3659
|
style: { opacity: 0, width: 1, border: 0, zIndex: -1, position: "absolute", left: "50%" }
|
|
3664
3660
|
},
|
|
3665
|
-
/* @__PURE__ */ o.createElement("option", { value: s.valueMap ? s.valueMap.call(void 0,
|
|
3661
|
+
/* @__PURE__ */ o.createElement("option", { value: s.valueMap ? s.valueMap.call(void 0, Q) : Q })
|
|
3666
3662
|
),
|
|
3667
3663
|
!re && /* @__PURE__ */ o.createElement(
|
|
3668
3664
|
Yt,
|
|
3669
3665
|
{
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
animate: d.animate,
|
|
3677
|
-
anchor: E.current,
|
|
3678
|
-
show: L,
|
|
3666
|
+
...d,
|
|
3667
|
+
className: B(d.className, { "k-rtl": H === "rtl" }),
|
|
3668
|
+
popupClass: B(d.popupClass, "k-dropdowntree-popup"),
|
|
3669
|
+
style: P,
|
|
3670
|
+
anchor: d.anchor || E.current,
|
|
3671
|
+
show: z,
|
|
3679
3672
|
onOpen: fe,
|
|
3680
|
-
onClose: te
|
|
3681
|
-
appendTo: d.appendTo
|
|
3673
|
+
onClose: te
|
|
3682
3674
|
},
|
|
3683
3675
|
s.filterable && /* @__PURE__ */ o.createElement(
|
|
3684
|
-
|
|
3676
|
+
Re,
|
|
3685
3677
|
{
|
|
3686
|
-
value: s.filter === void 0 ?
|
|
3678
|
+
value: s.filter === void 0 ? Se : s.filter,
|
|
3687
3679
|
ref: M,
|
|
3688
|
-
onChange:
|
|
3689
|
-
onKeyDown:
|
|
3680
|
+
onChange: Je,
|
|
3681
|
+
onKeyDown: Pe,
|
|
3690
3682
|
size: me,
|
|
3691
3683
|
rounded: ye,
|
|
3692
3684
|
fillMode: De
|
|
@@ -3695,9 +3687,10 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3695
3687
|
p.length > 0 ? /* @__PURE__ */ o.createElement(
|
|
3696
3688
|
kt,
|
|
3697
3689
|
{
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3690
|
+
style: { height: d.height },
|
|
3691
|
+
ref: Y,
|
|
3692
|
+
tabIndex: F,
|
|
3693
|
+
data: Xe,
|
|
3701
3694
|
focusIdField: c,
|
|
3702
3695
|
textField: s.textField,
|
|
3703
3696
|
selectField: k,
|
|
@@ -3708,23 +3701,23 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3708
3701
|
onExpandChange: gt,
|
|
3709
3702
|
size: me,
|
|
3710
3703
|
item: s.item,
|
|
3711
|
-
dir:
|
|
3704
|
+
dir: H
|
|
3712
3705
|
}
|
|
3713
|
-
) : /* @__PURE__ */ o.createElement(
|
|
3706
|
+
) : /* @__PURE__ */ o.createElement(Ze, null, et.toLanguageString(ve, ce[ve]))
|
|
3714
3707
|
)
|
|
3715
|
-
), re &&
|
|
3708
|
+
), re && Qe());
|
|
3716
3709
|
return b ? /* @__PURE__ */ o.createElement(
|
|
3717
3710
|
Ue,
|
|
3718
3711
|
{
|
|
3719
3712
|
label: b,
|
|
3720
|
-
editorValue:
|
|
3713
|
+
editorValue: Ke,
|
|
3721
3714
|
editorPlaceholder: v,
|
|
3722
3715
|
editorValid: vt,
|
|
3723
3716
|
editorDisabled: u,
|
|
3724
3717
|
editorId: a,
|
|
3725
3718
|
style: { width: r ? r.width : void 0 },
|
|
3726
3719
|
children: de,
|
|
3727
|
-
dir:
|
|
3720
|
+
dir: H
|
|
3728
3721
|
}
|
|
3729
3722
|
) : de;
|
|
3730
3723
|
}), Ei = {
|
|
@@ -3780,16 +3773,16 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
|
|
|
3780
3773
|
adaptiveTitle: l.string,
|
|
3781
3774
|
adaptive: l.bool
|
|
3782
3775
|
};
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
const Di = "Please select a value from the list!", { sizeMap:
|
|
3776
|
+
ks.displayName = "KendoReactDropDownTree";
|
|
3777
|
+
ks.propTypes = Ei;
|
|
3778
|
+
const Di = "Please select a value from the list!", { sizeMap: us, roundedMap: Fi } = Ge, Ti = (i) => i.split("_").map((t) => parseInt(t, 10)), Mi = (i, t) => {
|
|
3786
3779
|
const { validationMessage: e, valid: s, required: n } = i;
|
|
3787
3780
|
return {
|
|
3788
3781
|
customError: e !== void 0,
|
|
3789
3782
|
valid: !!(s !== void 0 ? s : !n || t),
|
|
3790
3783
|
valueMissing: !t
|
|
3791
3784
|
};
|
|
3792
|
-
},
|
|
3785
|
+
}, _e = {
|
|
3793
3786
|
checkField: "checkField",
|
|
3794
3787
|
checkIndeterminateField: "checkIndeterminateField",
|
|
3795
3788
|
subItemsField: "items",
|
|
@@ -3803,10 +3796,10 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3803
3796
|
fillMode: "solid",
|
|
3804
3797
|
required: !1,
|
|
3805
3798
|
validityStyles: !0
|
|
3806
|
-
}, Ni =
|
|
3799
|
+
}, Ni = Be(), is = o.forwardRef((i, t) => {
|
|
3807
3800
|
const e = Ut(Ni, i);
|
|
3808
3801
|
$e(Ye);
|
|
3809
|
-
const s =
|
|
3802
|
+
const s = gs(), n = e.id || s, {
|
|
3810
3803
|
data: a = [],
|
|
3811
3804
|
dataItemKey: p,
|
|
3812
3805
|
popupSettings: c = {},
|
|
@@ -3818,34 +3811,34 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3818
3811
|
placeholder: m,
|
|
3819
3812
|
label: v,
|
|
3820
3813
|
name: b,
|
|
3821
|
-
checkField: w =
|
|
3822
|
-
checkIndeterminateField: k =
|
|
3823
|
-
subItemsField: D =
|
|
3814
|
+
checkField: w = _e.checkField,
|
|
3815
|
+
checkIndeterminateField: k = _e.checkIndeterminateField,
|
|
3816
|
+
subItemsField: D = _e.subItemsField,
|
|
3824
3817
|
validationMessage: O,
|
|
3825
3818
|
valid: N,
|
|
3826
3819
|
tags: _,
|
|
3827
3820
|
value: S,
|
|
3828
|
-
required:
|
|
3829
|
-
validityStyles: C =
|
|
3830
|
-
} = e, E = Gt(e.tabIndex, h), M = o.useRef(null),
|
|
3831
|
-
width:
|
|
3832
|
-
...
|
|
3833
|
-
},
|
|
3834
|
-
|
|
3821
|
+
required: F = _e.required,
|
|
3822
|
+
validityStyles: C = _e.validityStyles
|
|
3823
|
+
} = e, E = Gt(e.tabIndex, h), M = o.useRef(null), A = o.useRef(null), j = o.useRef(null), Y = o.useRef(null), Z = o.useRef(null), K = o.useRef(null), be = o.useRef(!1), X = o.useRef([]), Q = o.useRef(null), [ae, Ke] = o.useState(), [Oe, Le] = o.useState(!1), [H, ze] = o.useState(!1), [P, W] = o.useState(), [ge, z] = o.useState([]), [J, ke] = o.useState(""), le = !!(P && P <= Ee && e.adaptive), q = r !== void 0 ? r : Oe, re = !!(Array.isArray(S) && S.length), Se = Mi({ validationMessage: O, valid: N, required: F }, re), ee = ms(A, e.dir), pt = {
|
|
3824
|
+
width: xs(A, _e, c, d),
|
|
3825
|
+
...ee !== void 0 ? { direction: ee } : {}
|
|
3826
|
+
}, we = o.useCallback(() => A.current && A.current.focus(), []);
|
|
3827
|
+
X.current = _ === void 0 ? (S || []).map((y) => ({ text: V(y, e.textField), data: [y] })) : [..._], o.useImperativeHandle(
|
|
3835
3828
|
M,
|
|
3836
3829
|
() => ({
|
|
3837
3830
|
props: e,
|
|
3838
|
-
element:
|
|
3839
|
-
focus:
|
|
3831
|
+
element: A.current,
|
|
3832
|
+
focus: we
|
|
3840
3833
|
})
|
|
3841
3834
|
), o.useImperativeHandle(t, () => M.current);
|
|
3842
3835
|
const Ot = o.useCallback(
|
|
3843
3836
|
() => {
|
|
3844
|
-
|
|
3845
|
-
|
|
3837
|
+
Z.current && Z.current.setCustomValidity && Z.current.setCustomValidity(
|
|
3838
|
+
Se.valid ? "" : O === void 0 ? Di : O
|
|
3846
3839
|
);
|
|
3847
3840
|
},
|
|
3848
|
-
[O,
|
|
3841
|
+
[O, Se]
|
|
3849
3842
|
);
|
|
3850
3843
|
o.useEffect(Ot), o.useEffect(() => {
|
|
3851
3844
|
const y = Me && window.ResizeObserver && new window.ResizeObserver(vt.bind(void 0));
|
|
@@ -3854,16 +3847,16 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3854
3847
|
};
|
|
3855
3848
|
}, []), o.useEffect(
|
|
3856
3849
|
() => {
|
|
3857
|
-
|
|
3850
|
+
Q.current && q && Q.current.setPosition(Q.current._popup);
|
|
3858
3851
|
},
|
|
3859
|
-
[S,
|
|
3852
|
+
[S, q]
|
|
3860
3853
|
);
|
|
3861
3854
|
const ne = o.useCallback(
|
|
3862
|
-
(y, x,
|
|
3855
|
+
(y, x, L) => {
|
|
3863
3856
|
if (e.onChange) {
|
|
3864
3857
|
const se = {
|
|
3865
3858
|
items: x,
|
|
3866
|
-
operation:
|
|
3859
|
+
operation: L,
|
|
3867
3860
|
...y
|
|
3868
3861
|
};
|
|
3869
3862
|
e.onChange.call(void 0, se);
|
|
@@ -3874,42 +3867,42 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3874
3867
|
(y) => {
|
|
3875
3868
|
if (R(y.item, S, p) || !M.current)
|
|
3876
3869
|
return;
|
|
3877
|
-
const { item: x, nativeEvent:
|
|
3870
|
+
const { item: x, nativeEvent: L, syntheticEvent: se } = y, Ie = {
|
|
3878
3871
|
syntheticEvent: se,
|
|
3879
|
-
nativeEvent:
|
|
3872
|
+
nativeEvent: L,
|
|
3880
3873
|
target: M.current
|
|
3881
3874
|
};
|
|
3882
3875
|
ne(Ie, [x], "toggle");
|
|
3883
3876
|
},
|
|
3884
3877
|
[S, p, ne]
|
|
3885
|
-
),
|
|
3878
|
+
), Pe = o.useCallback(
|
|
3886
3879
|
(y) => {
|
|
3887
|
-
if (!
|
|
3880
|
+
if (!q) {
|
|
3888
3881
|
if (u) {
|
|
3889
3882
|
const x = { ...y };
|
|
3890
3883
|
u.call(void 0, x);
|
|
3891
3884
|
}
|
|
3892
|
-
r === void 0 && (
|
|
3885
|
+
r === void 0 && (Le(!0), z(S || []), le && setTimeout(() => {
|
|
3893
3886
|
var x;
|
|
3894
|
-
te((x =
|
|
3887
|
+
te((x = Y.current) == null ? void 0 : x.element);
|
|
3895
3888
|
}, 300));
|
|
3896
3889
|
}
|
|
3897
3890
|
},
|
|
3898
|
-
[
|
|
3891
|
+
[q, r, u, le, Y]
|
|
3899
3892
|
), $ = o.useCallback(
|
|
3900
3893
|
(y) => {
|
|
3901
|
-
if (
|
|
3894
|
+
if (q) {
|
|
3902
3895
|
if (f) {
|
|
3903
3896
|
const x = { ...y };
|
|
3904
3897
|
f.call(void 0, x);
|
|
3905
3898
|
}
|
|
3906
|
-
r === void 0 &&
|
|
3899
|
+
r === void 0 && Le(!1);
|
|
3907
3900
|
}
|
|
3908
3901
|
},
|
|
3909
|
-
[
|
|
3902
|
+
[q, r, f]
|
|
3910
3903
|
), fe = o.useCallback(
|
|
3911
3904
|
(y) => {
|
|
3912
|
-
|
|
3905
|
+
be.current = !0, y(), window.setTimeout(() => be.current = !1, 0);
|
|
3913
3906
|
},
|
|
3914
3907
|
[]
|
|
3915
3908
|
), te = o.useCallback(
|
|
@@ -3920,17 +3913,17 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3920
3913
|
), Pt = o.useCallback(
|
|
3921
3914
|
() => {
|
|
3922
3915
|
var y;
|
|
3923
|
-
!
|
|
3916
|
+
!H && q ? $({ target: M.current }) : e.filterable ? te((y = j.current) == null ? void 0 : y.element) : te(K.current && K.current.element);
|
|
3924
3917
|
},
|
|
3925
|
-
[
|
|
3918
|
+
[H, q, te, $, e.filterable]
|
|
3926
3919
|
), _t = o.useCallback(
|
|
3927
3920
|
() => {
|
|
3928
|
-
|
|
3921
|
+
H && te(A.current);
|
|
3929
3922
|
},
|
|
3930
|
-
[
|
|
3923
|
+
[H, te]
|
|
3931
3924
|
), Rt = o.useCallback(
|
|
3932
3925
|
(y) => {
|
|
3933
|
-
if (!
|
|
3926
|
+
if (!H && !be.current && (ze(!0), e.onFocus && M.current)) {
|
|
3934
3927
|
const x = {
|
|
3935
3928
|
syntheticEvent: y,
|
|
3936
3929
|
nativeEvent: y.nativeEvent,
|
|
@@ -3939,47 +3932,47 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3939
3932
|
e.onFocus.call(void 0, x);
|
|
3940
3933
|
}
|
|
3941
3934
|
},
|
|
3942
|
-
[
|
|
3935
|
+
[H, e.onFocus]
|
|
3943
3936
|
), ht = o.useCallback(
|
|
3944
3937
|
(y) => {
|
|
3945
|
-
if (
|
|
3946
|
-
|
|
3938
|
+
if (H && !be.current && M.current) {
|
|
3939
|
+
ze(!1);
|
|
3947
3940
|
const x = {
|
|
3948
3941
|
syntheticEvent: y,
|
|
3949
3942
|
nativeEvent: y.nativeEvent,
|
|
3950
3943
|
target: M.current
|
|
3951
3944
|
};
|
|
3952
3945
|
if (e.onBlur) {
|
|
3953
|
-
const
|
|
3954
|
-
e.onBlur.call(void 0,
|
|
3946
|
+
const L = { ...x };
|
|
3947
|
+
e.onBlur.call(void 0, L);
|
|
3955
3948
|
}
|
|
3956
3949
|
le || $(x);
|
|
3957
3950
|
}
|
|
3958
3951
|
},
|
|
3959
|
-
[
|
|
3952
|
+
[H, e.onBlur, q, r, f]
|
|
3960
3953
|
), ut = o.useCallback(
|
|
3961
3954
|
() => {
|
|
3962
|
-
|
|
3955
|
+
H && fe(Fe);
|
|
3963
3956
|
},
|
|
3964
|
-
[
|
|
3957
|
+
[H, fe]
|
|
3965
3958
|
), ft = o.useCallback(
|
|
3966
3959
|
(y) => {
|
|
3967
3960
|
if (!y.isDefaultPrevented() && M.current) {
|
|
3968
|
-
|
|
3961
|
+
ze(!0);
|
|
3969
3962
|
const x = {
|
|
3970
3963
|
syntheticEvent: y,
|
|
3971
3964
|
nativeEvent: y.nativeEvent,
|
|
3972
3965
|
target: M.current
|
|
3973
3966
|
};
|
|
3974
|
-
|
|
3967
|
+
q || Pe(x);
|
|
3975
3968
|
}
|
|
3976
3969
|
},
|
|
3977
|
-
[
|
|
3970
|
+
[q, Pe]
|
|
3978
3971
|
), gt = o.useCallback(
|
|
3979
3972
|
(y) => {
|
|
3980
|
-
var xe,
|
|
3981
|
-
const { keyCode: x, altKey:
|
|
3982
|
-
if (!M.current || y.isDefaultPrevented() && ((xe =
|
|
3973
|
+
var xe, ns;
|
|
3974
|
+
const { keyCode: x, altKey: L } = y, se = K.current && K.current.element;
|
|
3975
|
+
if (!M.current || y.isDefaultPrevented() && ((xe = j.current) == null ? void 0 : xe.element) === y.target)
|
|
3983
3976
|
return;
|
|
3984
3977
|
const Ie = {
|
|
3985
3978
|
syntheticEvent: y,
|
|
@@ -3987,46 +3980,46 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
3987
3980
|
target: M.current
|
|
3988
3981
|
};
|
|
3989
3982
|
if (S && S.length > 0 && (x === g.left || x === g.right || x === g.home || x === g.end || x === g.delete)) {
|
|
3990
|
-
const ie =
|
|
3991
|
-
let he = ae ? ie.findIndex((
|
|
3983
|
+
const ie = X.current;
|
|
3984
|
+
let he = ae ? ie.findIndex((Ss) => St(Ss, ae, p)) : -1, ue;
|
|
3992
3985
|
const Bt = he !== -1;
|
|
3993
|
-
x === g.left ? (Bt ? he = Math.max(0, he - 1) : he = ie.length - 1, ue = ie[he]) : x === g.right ? he === ie.length - 1 ? ue = void 0 : Bt && (he = Math.min(ie.length - 1, he + 1), ue = ie[he]) : x === g.home ? ue = ie[0] : x === g.end ? ue = ie[ie.length - 1] : x === g.delete && Bt && ne(Ie, ie[he].data, "delete"), ue !== ae &&
|
|
3986
|
+
x === g.left ? (Bt ? he = Math.max(0, he - 1) : he = ie.length - 1, ue = ie[he]) : x === g.right ? he === ie.length - 1 ? ue = void 0 : Bt && (he = Math.min(ie.length - 1, he + 1), ue = ie[he]) : x === g.home ? ue = ie[0] : x === g.end ? ue = ie[ie.length - 1] : x === g.delete && Bt && ne(Ie, ie[he].data, "delete"), ue !== ae && Ke(ue);
|
|
3994
3987
|
}
|
|
3995
|
-
if (
|
|
3996
|
-
if (x === g.esc ||
|
|
3988
|
+
if (q)
|
|
3989
|
+
if (x === g.esc || L && x === g.up)
|
|
3997
3990
|
y.preventDefault(), $(Ie);
|
|
3998
3991
|
else if (se && se.querySelector(".k-focus") && (x === g.up || x === g.down || x === g.left || x === g.right || x === g.home || x === g.end)) {
|
|
3999
|
-
if (x === g.up && ((
|
|
3992
|
+
if (x === g.up && ((ns = j.current) != null && ns.element)) {
|
|
4000
3993
|
const ie = Array.from(se.querySelectorAll(".k-treeview-item")), he = [...ie].reverse().find((ue) => !!(ue && ue.querySelector(".k-focus")));
|
|
4001
3994
|
if (he && ie.indexOf(he) === 0)
|
|
4002
3995
|
return fe(() => {
|
|
4003
3996
|
var ue;
|
|
4004
|
-
te((ue =
|
|
3997
|
+
te((ue = j.current) == null ? void 0 : ue.element);
|
|
4005
3998
|
});
|
|
4006
3999
|
}
|
|
4007
4000
|
fe(Fe);
|
|
4008
4001
|
} else
|
|
4009
4002
|
x === g.down && fe(() => {
|
|
4010
4003
|
var ie;
|
|
4011
|
-
te(((ie =
|
|
4004
|
+
te(((ie = j.current) == null ? void 0 : ie.element) || se);
|
|
4012
4005
|
});
|
|
4013
4006
|
else
|
|
4014
|
-
|
|
4007
|
+
L && x === g.down && (y.preventDefault(), Pe(Ie));
|
|
4015
4008
|
},
|
|
4016
|
-
[
|
|
4017
|
-
),
|
|
4009
|
+
[q, $, te, fe, Pe, ae, p, S, ne]
|
|
4010
|
+
), Je = o.useCallback(
|
|
4018
4011
|
(y) => {
|
|
4019
|
-
const { keyCode: x, altKey:
|
|
4020
|
-
|
|
4012
|
+
const { keyCode: x, altKey: L } = y;
|
|
4013
|
+
L || x !== g.up && x !== g.down || (y.preventDefault(), fe(
|
|
4021
4014
|
x === g.up ? () => {
|
|
4022
|
-
te(
|
|
4015
|
+
te(A.current);
|
|
4023
4016
|
} : () => {
|
|
4024
|
-
te(
|
|
4017
|
+
te(K.current && K.current.element);
|
|
4025
4018
|
}
|
|
4026
4019
|
));
|
|
4027
4020
|
},
|
|
4028
4021
|
[te, fe]
|
|
4029
|
-
),
|
|
4022
|
+
), Qe = o.useCallback(
|
|
4030
4023
|
(y) => {
|
|
4031
4024
|
if (!M.current)
|
|
4032
4025
|
return;
|
|
@@ -4040,19 +4033,19 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4040
4033
|
[ne, $]
|
|
4041
4034
|
), Vt = o.useCallback(
|
|
4042
4035
|
(y, x) => {
|
|
4043
|
-
var
|
|
4044
|
-
$({ target: M.current }),
|
|
4036
|
+
var L;
|
|
4037
|
+
$({ target: M.current }), H || te((L = j.current) == null ? void 0 : L.element), ne({
|
|
4045
4038
|
syntheticEvent: x,
|
|
4046
4039
|
nativeEvent: x.nativeEvent,
|
|
4047
4040
|
target: M.current
|
|
4048
4041
|
}, y, "delete");
|
|
4049
4042
|
},
|
|
4050
|
-
[ne, $, te,
|
|
4051
|
-
),
|
|
4043
|
+
[ne, $, te, H]
|
|
4044
|
+
), Xe = o.useCallback(
|
|
4052
4045
|
(y) => {
|
|
4053
4046
|
if (e.onExpandChange && M.current) {
|
|
4054
|
-
const { item: x, itemHierarchicalIndex:
|
|
4055
|
-
level: Ti(
|
|
4047
|
+
const { item: x, itemHierarchicalIndex: L, nativeEvent: se, syntheticEvent: Ie } = y, xe = {
|
|
4048
|
+
level: Ti(L),
|
|
4056
4049
|
item: x,
|
|
4057
4050
|
nativeEvent: se,
|
|
4058
4051
|
syntheticEvent: Ie,
|
|
@@ -4062,16 +4055,16 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4062
4055
|
}
|
|
4063
4056
|
},
|
|
4064
4057
|
[e.onExpandChange]
|
|
4065
|
-
),
|
|
4058
|
+
), Ze = o.useCallback(
|
|
4066
4059
|
(y) => {
|
|
4067
4060
|
if (e.onFilterChange && M.current) {
|
|
4068
|
-
const
|
|
4061
|
+
const L = {
|
|
4069
4062
|
filter: { field: e.textField, operator: "contains", value: y.target.value },
|
|
4070
4063
|
syntheticEvent: y.syntheticEvent,
|
|
4071
4064
|
nativeEvent: y.nativeEvent,
|
|
4072
4065
|
target: M.current
|
|
4073
4066
|
};
|
|
4074
|
-
e.onFilterChange.call(void 0,
|
|
4067
|
+
e.onFilterChange.call(void 0, L), e.filter === void 0 && ke(y.target.value);
|
|
4075
4068
|
}
|
|
4076
4069
|
},
|
|
4077
4070
|
[e.onFilterChange, e.filter, e.textField]
|
|
@@ -4087,35 +4080,35 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4087
4080
|
e.onCancel && e.onCancel.call(void 0, x), $(x), y.preventDefault();
|
|
4088
4081
|
},
|
|
4089
4082
|
[e.onCancel, $]
|
|
4090
|
-
),
|
|
4083
|
+
), et = () => {
|
|
4091
4084
|
const y = e.filterable ? /* @__PURE__ */ o.createElement(
|
|
4092
|
-
|
|
4085
|
+
Re,
|
|
4093
4086
|
{
|
|
4094
|
-
value: e.filter === void 0 ?
|
|
4095
|
-
ref:
|
|
4096
|
-
onChange:
|
|
4097
|
-
onKeyDown:
|
|
4087
|
+
value: e.filter === void 0 ? J : e.filter,
|
|
4088
|
+
ref: Y,
|
|
4089
|
+
onChange: Ze,
|
|
4090
|
+
onKeyDown: Je,
|
|
4098
4091
|
size: de,
|
|
4099
4092
|
rounded: I,
|
|
4100
|
-
fillMode:
|
|
4093
|
+
fillMode: T
|
|
4101
4094
|
}
|
|
4102
4095
|
) : null, x = {
|
|
4103
4096
|
adaptiveTitle: e.adaptiveTitle,
|
|
4104
|
-
expand:
|
|
4105
|
-
onClose: (
|
|
4097
|
+
expand: q,
|
|
4098
|
+
onClose: (L) => e.onCancel ? mt(L) : Qe(L),
|
|
4106
4099
|
windowWidth: P,
|
|
4107
4100
|
mobileFilter: y,
|
|
4108
4101
|
footer: {
|
|
4109
|
-
cancelText: ye.toLanguageString(
|
|
4110
|
-
onCancel: (
|
|
4111
|
-
applyText: ye.toLanguageString(
|
|
4112
|
-
onApply: (
|
|
4102
|
+
cancelText: ye.toLanguageString(ot, ce[ot]),
|
|
4103
|
+
onCancel: (L) => e.onCancel ? mt(L) : Qe(L),
|
|
4104
|
+
applyText: ye.toLanguageString(nt, ce[nt]),
|
|
4105
|
+
onApply: (L) => $(L)
|
|
4113
4106
|
}
|
|
4114
4107
|
};
|
|
4115
|
-
return /* @__PURE__ */ o.createElement(ts, { ...x }, /* @__PURE__ */ o.createElement(
|
|
4108
|
+
return /* @__PURE__ */ o.createElement(ts, { ...x }, /* @__PURE__ */ o.createElement(lt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: "k-list k-list-lg" }, a.length > 0 ? /* @__PURE__ */ o.createElement(
|
|
4116
4109
|
kt,
|
|
4117
4110
|
{
|
|
4118
|
-
ref:
|
|
4111
|
+
ref: K,
|
|
4119
4112
|
tabIndex: E,
|
|
4120
4113
|
data: a,
|
|
4121
4114
|
focusIdField: p,
|
|
@@ -4127,45 +4120,45 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4127
4120
|
expandIcons: !0,
|
|
4128
4121
|
onItemClick: He,
|
|
4129
4122
|
onCheckChange: He,
|
|
4130
|
-
onExpandChange:
|
|
4123
|
+
onExpandChange: Xe,
|
|
4131
4124
|
checkboxes: !0,
|
|
4132
4125
|
size: de,
|
|
4133
4126
|
item: e.item,
|
|
4134
|
-
dir:
|
|
4127
|
+
dir: ee
|
|
4135
4128
|
}
|
|
4136
4129
|
) : /* @__PURE__ */ o.createElement(me, null, ye.toLanguageString(ve, ce[ve]))))));
|
|
4137
4130
|
}, vt = o.useCallback(
|
|
4138
4131
|
(y) => {
|
|
4139
4132
|
for (let x of y)
|
|
4140
|
-
|
|
4133
|
+
W(x.target.clientWidth);
|
|
4141
4134
|
},
|
|
4142
4135
|
[]
|
|
4143
|
-
), me = e.listNoData ||
|
|
4136
|
+
), me = e.listNoData || Cs, ye = bs(), De = !C || Se.valid, { size: de, rounded: I, fillMode: T } = e, G = le && q ? ge : X.current, pe = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
4144
4137
|
"span",
|
|
4145
4138
|
{
|
|
4146
4139
|
className: B("k-multiselecttree k-input", e.className, {
|
|
4147
|
-
[`k-input-${
|
|
4140
|
+
[`k-input-${us[de] || de}`]: de,
|
|
4148
4141
|
[`k-rounded-${Fi[I] || I}`]: I,
|
|
4149
|
-
[`k-input-${
|
|
4150
|
-
"k-focus":
|
|
4142
|
+
[`k-input-${T}`]: T,
|
|
4143
|
+
"k-focus": H && !h,
|
|
4151
4144
|
"k-invalid": !De,
|
|
4152
4145
|
"k-disabled": h,
|
|
4153
4146
|
"k-loading": e.loading,
|
|
4154
|
-
"k-required":
|
|
4147
|
+
"k-required": F
|
|
4155
4148
|
}),
|
|
4156
4149
|
tabIndex: E,
|
|
4157
4150
|
accessKey: e.accessKey,
|
|
4158
4151
|
id: n,
|
|
4159
4152
|
style: v ? { ...d, width: void 0 } : d,
|
|
4160
|
-
dir:
|
|
4161
|
-
ref:
|
|
4153
|
+
dir: ee,
|
|
4154
|
+
ref: A,
|
|
4162
4155
|
onKeyDown: h ? void 0 : gt,
|
|
4163
4156
|
onMouseDown: ut,
|
|
4164
4157
|
onFocus: Rt,
|
|
4165
4158
|
onBlur: ht,
|
|
4166
4159
|
role: "combobox",
|
|
4167
4160
|
"aria-haspopup": "tree",
|
|
4168
|
-
"aria-expanded":
|
|
4161
|
+
"aria-expanded": q,
|
|
4169
4162
|
"aria-disabled": h,
|
|
4170
4163
|
"aria-label": v,
|
|
4171
4164
|
"aria-labelledby": e.ariaLabelledBy,
|
|
@@ -4178,29 +4171,29 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4178
4171
|
{
|
|
4179
4172
|
id: "tagslist-" + n,
|
|
4180
4173
|
className: B("k-input-values k-chip-list k-selection-multiple", {
|
|
4181
|
-
[`k-chip-list-${
|
|
4174
|
+
[`k-chip-list-${us[de] || de}`]: de
|
|
4182
4175
|
})
|
|
4183
4176
|
},
|
|
4184
4177
|
G.length > 0 && /* @__PURE__ */ o.createElement(
|
|
4185
|
-
|
|
4178
|
+
Is,
|
|
4186
4179
|
{
|
|
4187
4180
|
tag: e.tag,
|
|
4188
4181
|
onTagDelete: Vt,
|
|
4189
4182
|
data: G,
|
|
4190
4183
|
guid: n,
|
|
4191
|
-
focused: ae ?
|
|
4184
|
+
focused: ae ? X.current.find((y) => St(y, ae, p)) : void 0,
|
|
4192
4185
|
size: de
|
|
4193
4186
|
}
|
|
4194
4187
|
)
|
|
4195
4188
|
),
|
|
4196
4189
|
/* @__PURE__ */ o.createElement("span", { className: "k-input-inner" }, G.length === 0 && /* @__PURE__ */ o.createElement("span", { className: "k-input-value-text" }, m)),
|
|
4197
4190
|
e.loading && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
|
|
4198
|
-
|
|
4191
|
+
re && !h && G.length > 0 && /* @__PURE__ */ o.createElement(rt, { onClick: Qe }),
|
|
4199
4192
|
/* @__PURE__ */ o.createElement(
|
|
4200
4193
|
"select",
|
|
4201
4194
|
{
|
|
4202
4195
|
name: b,
|
|
4203
|
-
ref:
|
|
4196
|
+
ref: Z,
|
|
4204
4197
|
tabIndex: -1,
|
|
4205
4198
|
"aria-hidden": !0,
|
|
4206
4199
|
title: v,
|
|
@@ -4216,37 +4209,37 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4216
4209
|
!le && /* @__PURE__ */ o.createElement(
|
|
4217
4210
|
Yt,
|
|
4218
4211
|
{
|
|
4212
|
+
...c,
|
|
4219
4213
|
popupClass: B(
|
|
4220
4214
|
c.popupClass,
|
|
4221
4215
|
"k-multiselecttree-popup"
|
|
4222
4216
|
),
|
|
4223
|
-
className: B(c.className, { "k-rtl":
|
|
4217
|
+
className: B(c.className, { "k-rtl": ee === "rtl" }),
|
|
4224
4218
|
style: pt,
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
show: z,
|
|
4219
|
+
anchor: c.anchor || A.current,
|
|
4220
|
+
show: q,
|
|
4228
4221
|
onOpen: Pt,
|
|
4229
4222
|
onClose: _t,
|
|
4230
|
-
|
|
4231
|
-
ref: ee
|
|
4223
|
+
ref: Q
|
|
4232
4224
|
},
|
|
4233
4225
|
e.filterable && /* @__PURE__ */ o.createElement(
|
|
4234
|
-
|
|
4226
|
+
Re,
|
|
4235
4227
|
{
|
|
4236
|
-
value: e.filter === void 0 ?
|
|
4237
|
-
ref:
|
|
4238
|
-
onChange:
|
|
4239
|
-
onKeyDown:
|
|
4228
|
+
value: e.filter === void 0 ? J : e.filter,
|
|
4229
|
+
ref: j,
|
|
4230
|
+
onChange: Ze,
|
|
4231
|
+
onKeyDown: Je,
|
|
4240
4232
|
tabIndex: E,
|
|
4241
4233
|
size: de,
|
|
4242
4234
|
rounded: I,
|
|
4243
|
-
fillMode:
|
|
4235
|
+
fillMode: T
|
|
4244
4236
|
}
|
|
4245
4237
|
),
|
|
4246
4238
|
a.length > 0 ? /* @__PURE__ */ o.createElement(
|
|
4247
4239
|
kt,
|
|
4248
4240
|
{
|
|
4249
|
-
|
|
4241
|
+
style: { height: c.height },
|
|
4242
|
+
ref: K,
|
|
4250
4243
|
tabIndex: E,
|
|
4251
4244
|
data: a,
|
|
4252
4245
|
focusIdField: p,
|
|
@@ -4258,27 +4251,27 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4258
4251
|
expandIcons: !0,
|
|
4259
4252
|
onItemClick: He,
|
|
4260
4253
|
onCheckChange: He,
|
|
4261
|
-
onExpandChange:
|
|
4254
|
+
onExpandChange: Xe,
|
|
4262
4255
|
checkboxes: !0,
|
|
4263
4256
|
size: de,
|
|
4264
4257
|
item: e.item,
|
|
4265
|
-
dir:
|
|
4258
|
+
dir: ee
|
|
4266
4259
|
}
|
|
4267
4260
|
) : /* @__PURE__ */ o.createElement(me, null, ye.toLanguageString(ve, ce[ve]))
|
|
4268
4261
|
)
|
|
4269
|
-
), le &&
|
|
4262
|
+
), le && et());
|
|
4270
4263
|
return v ? /* @__PURE__ */ o.createElement(
|
|
4271
4264
|
Ue,
|
|
4272
4265
|
{
|
|
4273
4266
|
label: v,
|
|
4274
|
-
editorValue:
|
|
4267
|
+
editorValue: re,
|
|
4275
4268
|
editorPlaceholder: m,
|
|
4276
4269
|
editorValid: De,
|
|
4277
4270
|
editorDisabled: h,
|
|
4278
4271
|
editorId: n,
|
|
4279
4272
|
style: { width: d ? d.width : void 0 },
|
|
4280
4273
|
children: pe,
|
|
4281
|
-
dir:
|
|
4274
|
+
dir: ee
|
|
4282
4275
|
}
|
|
4283
4276
|
) : pe;
|
|
4284
4277
|
}), Oi = {
|
|
@@ -4340,9 +4333,9 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
|
|
|
4340
4333
|
adaptive: l.bool
|
|
4341
4334
|
};
|
|
4342
4335
|
is.displayName = "KendoReactMultiSelectTree";
|
|
4343
|
-
is.defaultProps =
|
|
4336
|
+
is.defaultProps = _e;
|
|
4344
4337
|
is.propTypes = Oi;
|
|
4345
|
-
const
|
|
4338
|
+
const tt = (i, t) => {
|
|
4346
4339
|
const e = {};
|
|
4347
4340
|
return i && i.length && i.forEach((s) => {
|
|
4348
4341
|
e[t(s)] = !0;
|
|
@@ -4354,11 +4347,11 @@ const st = (i, t) => {
|
|
|
4354
4347
|
value: n,
|
|
4355
4348
|
subItemsField: a = "items",
|
|
4356
4349
|
operation: p
|
|
4357
|
-
} = t, c = Ct(s), d =
|
|
4350
|
+
} = t, c = Ct(s), d = tt(n, c);
|
|
4358
4351
|
if (p === "clear")
|
|
4359
4352
|
return [];
|
|
4360
4353
|
if (p === "delete") {
|
|
4361
|
-
const N =
|
|
4354
|
+
const N = tt(e, c);
|
|
4362
4355
|
return n.filter((_) => !N[c(_)]);
|
|
4363
4356
|
}
|
|
4364
4357
|
const r = e[0], h = c(r), u = Ct(a), f = [...i], m = [];
|
|
@@ -4385,18 +4378,18 @@ const st = (i, t) => {
|
|
|
4385
4378
|
const D = !d[h], O = [];
|
|
4386
4379
|
if (D) {
|
|
4387
4380
|
O.push(...n), O.push(b), O.push(...k.filter((S) => !d[c(S)]));
|
|
4388
|
-
const N = v.filter((S) => !d[c(S)]), _ =
|
|
4381
|
+
const N = v.filter((S) => !d[c(S)]), _ = tt(O, c);
|
|
4389
4382
|
for (let S = N.length - 1; S > -1; S--) {
|
|
4390
|
-
const
|
|
4383
|
+
const F = N[S], C = u(F);
|
|
4391
4384
|
if (C.filter((M) => _[c(M)]).length < C.length)
|
|
4392
4385
|
break;
|
|
4393
|
-
O.push(
|
|
4386
|
+
O.push(F), _[c(F)] = !0;
|
|
4394
4387
|
}
|
|
4395
4388
|
} else {
|
|
4396
|
-
const N = c(b), _ =
|
|
4389
|
+
const N = c(b), _ = tt(k, c), S = tt(v, c);
|
|
4397
4390
|
O.push(
|
|
4398
|
-
...n.filter((
|
|
4399
|
-
const C = c(
|
|
4391
|
+
...n.filter((F) => {
|
|
4392
|
+
const C = c(F);
|
|
4400
4393
|
return !_[C] && N !== C && !S[C];
|
|
4401
4394
|
})
|
|
4402
4395
|
);
|
|
@@ -4404,36 +4397,36 @@ const st = (i, t) => {
|
|
|
4404
4397
|
return O;
|
|
4405
4398
|
};
|
|
4406
4399
|
export {
|
|
4407
|
-
|
|
4408
|
-
|
|
4400
|
+
ri as AutoComplete,
|
|
4401
|
+
li as AutoCompletePropsContext,
|
|
4409
4402
|
Mt as AutoCompleteWithoutContext,
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4403
|
+
ys as ComboBox,
|
|
4404
|
+
ni as ComboBoxPropsContext,
|
|
4405
|
+
dt as ComboBoxWithoutContext,
|
|
4406
|
+
ei as DropDownList,
|
|
4414
4407
|
Tt as DropDownListClassComponent,
|
|
4415
|
-
|
|
4408
|
+
Zs as DropDownListPropsContext,
|
|
4416
4409
|
Tt as DropDownListWithoutContext,
|
|
4417
|
-
|
|
4410
|
+
ks as DropDownTree,
|
|
4418
4411
|
wi as DropDownTreePropsContext,
|
|
4419
4412
|
je as List,
|
|
4420
4413
|
Ft as ListContainer,
|
|
4421
|
-
|
|
4422
|
-
|
|
4414
|
+
Re as ListFilter,
|
|
4415
|
+
Gs as ListItem,
|
|
4423
4416
|
ss as MultiColumnComboBox,
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4417
|
+
vi as MultiColumnComboBoxPropsContext,
|
|
4418
|
+
fi as MultiSelect,
|
|
4419
|
+
ui as MultiSelectPropsContext,
|
|
4427
4420
|
is as MultiSelectTree,
|
|
4428
4421
|
Ni as MultiSelectTreePropsContext,
|
|
4429
4422
|
Nt as MultiSelectWithoutContext,
|
|
4430
4423
|
es as SearchBar,
|
|
4431
|
-
|
|
4424
|
+
Is as TagList,
|
|
4432
4425
|
ce as dropdownsMessages,
|
|
4433
4426
|
Wi as findByFieldValue,
|
|
4434
4427
|
V as getItemValue,
|
|
4435
4428
|
qi as getMultiSelectTreeValue,
|
|
4436
|
-
|
|
4429
|
+
tt as getValueMap,
|
|
4437
4430
|
ve as nodata,
|
|
4438
|
-
|
|
4431
|
+
zs as scrollToItem
|
|
4439
4432
|
};
|