@progress/kendo-react-dropdowns 11.0.0-develop.3 → 11.0.0-develop.4
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/AutoComplete/AutoComplete.js +1 -1
- package/AutoComplete/AutoComplete.mjs +139 -136
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +425 -461
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +420 -442
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +158 -155
- package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +25 -24
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +173 -181
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +264 -269
- package/common/AdaptiveMode.js +1 -1
- package/common/AdaptiveMode.mjs +14 -13
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +22 -20
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +101 -15
- package/index.d.ts +101 -15
- package/messages/index.js +1 -1
- package/messages/index.mjs +16 -14
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
|
@@ -7,69 +7,68 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as f from "react";
|
|
9
9
|
import g from "prop-types";
|
|
10
|
-
import { Keys as u, classNames as I, IconWrap as
|
|
11
|
-
import { plusIcon as
|
|
12
|
-
import { FloatingLabel as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { ActiveDescendant as
|
|
20
|
-
import { getFilteredData as b, areSame as M, removeDataItems as
|
|
21
|
-
import { packageMetadata as
|
|
22
|
-
import
|
|
23
|
-
import { AdaptiveMode as
|
|
24
|
-
import { ActionSheetContent as
|
|
25
|
-
import { provideLocalizationService as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $ = (F) => F.preventDefault(), W = (F) => F === 2, y = class y extends f.Component {
|
|
10
|
+
import { Keys as u, classNames as I, IconWrap as L, WatermarkOverlay as Y, canUseDOM as B, validatePackage as J, createPropsContext as Q, withIdHOC as X, withPropsContext as Z, withAdaptiveModeContext as tt, kendoThemeMaps as et } from "@progress/kendo-react-common";
|
|
11
|
+
import { plusIcon as st } from "@progress/kendo-svg-icons";
|
|
12
|
+
import { FloatingLabel as it } from "@progress/kendo-react-labels";
|
|
13
|
+
import ot from "../common/ListContainer.mjs";
|
|
14
|
+
import at from "../common/List.mjs";
|
|
15
|
+
import nt from "../common/GroupStickyHeader.mjs";
|
|
16
|
+
import lt from "./TagList.mjs";
|
|
17
|
+
import dt from "../common/SearchBar.mjs";
|
|
18
|
+
import E from "../common/DropDownBase.mjs";
|
|
19
|
+
import { ActiveDescendant as w } from "../common/settings.mjs";
|
|
20
|
+
import { getFilteredData as b, areSame as M, removeDataItems as T, isPresent as O, getItemValue as P, preventDefaultNonInputs as rt, matchTags as V, itemIndexStartsWith as ht } from "../common/utils.mjs";
|
|
21
|
+
import { packageMetadata as pt } from "../package-metadata.mjs";
|
|
22
|
+
import ct from "../common/ClearButton.mjs";
|
|
23
|
+
import { AdaptiveMode as ut } from "../common/AdaptiveMode.mjs";
|
|
24
|
+
import { ActionSheetContent as ft } from "@progress/kendo-react-layout";
|
|
25
|
+
import { provideLocalizationService as mt } from "@progress/kendo-react-intl";
|
|
26
|
+
import gt from "../common/ListFilter.mjs";
|
|
27
|
+
import z from "../common/withCustomComponent.mjs";
|
|
28
|
+
const { sizeMap: D, roundedMap: vt } = et, bt = "Please enter a valid value!", A = (F) => F.preventDefault(), H = (F) => F === 2, y = class y extends f.Component {
|
|
30
29
|
constructor(n) {
|
|
31
30
|
super(n), this.state = {
|
|
32
|
-
activedescendant:
|
|
31
|
+
activedescendant: w.PopupList,
|
|
33
32
|
currentValue: []
|
|
34
|
-
}, this._element = null, this._valueItemsDuringOnChange = null, this.base = new
|
|
33
|
+
}, this._element = null, this._valueItemsDuringOnChange = null, this.base = new E(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.showLicenseWatermark = !1, this.focus = () => {
|
|
35
34
|
this._input && this._input.focus();
|
|
36
35
|
}, this.handleItemSelect = (t, e) => {
|
|
37
|
-
const { dataItemKey:
|
|
38
|
-
this._lastSelectedOrDeslectedItemIndex =
|
|
36
|
+
const { dataItemKey: a, virtual: s } = this.props, o = b(this.props), p = s ? s.skip : 0, c = o[t - p], r = this.value.findIndex((m) => M(m, c, a));
|
|
37
|
+
this._lastSelectedOrDeslectedItemIndex = o.findIndex((m) => M(m, c, a));
|
|
39
38
|
let i = [];
|
|
40
39
|
r !== -1 ? (i = this.value, i.splice(r, 1)) : i = [...this.value, c], (this.props.filter !== void 0 ? this.props.filter : this.state.text) && !this.mobileMode && (this.state.text && (e.data.text = ""), this.base.filterChanged("", e)), this._adaptiveInput && this._adaptiveInput.blur(), this.state.focusedIndex !== void 0 && (e.data.focusedIndex = void 0), this.triggerOnChange(i, e), this.base.triggerPageChangeCornerItems(c, e);
|
|
41
40
|
}, this.onTagDelete = (t, e) => {
|
|
42
|
-
const
|
|
43
|
-
|
|
41
|
+
const a = this.base.initState();
|
|
42
|
+
a.syntheticEvent = e, this.opened && this.base.togglePopup(a), !this.state.focused && !this.mobileMode && (a.data.focused = !0, this.focus());
|
|
44
43
|
const s = this.value;
|
|
45
|
-
|
|
44
|
+
T(s, t, this.props.dataItemKey), this.triggerOnChange(s, a), this.applyState(a);
|
|
46
45
|
}, this.itemFocus = (t, e) => {
|
|
47
|
-
const { allowCustom:
|
|
48
|
-
l && r !== t ? this.state.focusedIndex !== t && (e.data.focusedIndex = t, e.data.activedescendant =
|
|
46
|
+
const { allowCustom: a, virtual: s } = this.props, o = b(this.props), p = s ? s.skip : 0, c = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedIndex: r } = this.getFocusedState(), i = a && c, l = o[t - p];
|
|
47
|
+
l && r !== t ? this.state.focusedIndex !== t && (e.data.focusedIndex = t, e.data.activedescendant = w.PopupList) : i && t === -1 && this.state.focusedIndex !== void 0 && (e.data.focusedIndex = void 0), this.base.triggerPageChangeCornerItems(l, e);
|
|
49
48
|
}, this.componentRef = (t) => {
|
|
50
49
|
this._element = t, this.base.wrapper = t;
|
|
51
50
|
}, this.searchbarRef = (t) => {
|
|
52
51
|
const e = this._input = t && t.input;
|
|
53
52
|
e && this.state.focused && window.setTimeout(() => e.focus(), 0);
|
|
54
53
|
}, this.onChangeHandler = (t) => {
|
|
55
|
-
const e = this.base.initState(),
|
|
56
|
-
e.syntheticEvent = t, this.props.filter === void 0 && (e.data.text =
|
|
54
|
+
const e = this.base.initState(), a = t.target.value;
|
|
55
|
+
e.syntheticEvent = t, this.props.filter === void 0 && (e.data.text = a), e.data.focusedIndex = void 0, this.opened || (this.base.togglePopup(e), this.setState({ currentValue: this.value })), this.base.filterChanged(a, e), this.applyState(e), this.setState({ group: void 0 });
|
|
57
56
|
}, this.clearButtonClick = (t) => {
|
|
58
57
|
const e = this.base.initState();
|
|
59
58
|
e.syntheticEvent = t, t.stopPropagation(), this.value.length > 0 && this.triggerOnChange([], e), this.state.focusedIndex !== void 0 && (e.data.focusedIndex = void 0), this.opened && this.base.togglePopup(e);
|
|
60
|
-
const
|
|
61
|
-
|
|
59
|
+
const a = this.props.filter !== void 0 ? this.props.filter : this.state.text;
|
|
60
|
+
O(a) && a !== "" && this.base.filterChanged("", e), this.state.text && (e.data.text = ""), this._lastSelectedOrDeslectedItemIndex = null, this.applyState(e);
|
|
62
61
|
}, this.onInputKeyDown = (t) => {
|
|
63
|
-
const { textField: e, groupField:
|
|
64
|
-
if (l.syntheticEvent = t, !p && this.value.length > 0 && (
|
|
62
|
+
const { textField: e, groupField: a } = this.props, s = b(this.props), o = t.keyCode, p = this.props.filter !== void 0 ? this.props.filter : this.state.text, c = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { focusedItem: r, focusedIndex: i } = this.getFocusedState(), l = this.base.initState();
|
|
63
|
+
if (l.syntheticEvent = t, !p && this.value.length > 0 && (o === u.left || o === u.right || o === u.home || o === u.end || o === u.delete || o === u.backspace) && !t.shiftKey)
|
|
65
64
|
return this.onTagsNavigate(t, l);
|
|
66
65
|
const m = () => {
|
|
67
66
|
t.preventDefault(), this.base.togglePopup(l), this.applyState(l);
|
|
68
67
|
};
|
|
69
68
|
if (this.opened)
|
|
70
|
-
if (
|
|
69
|
+
if (o === u.pageUp)
|
|
71
70
|
t.preventDefault(), this.base.scrollPopupByPageSize(-1);
|
|
72
|
-
else if (
|
|
71
|
+
else if (o === u.pageDown)
|
|
73
72
|
t.preventDefault(), this.base.scrollPopupByPageSize(1);
|
|
74
73
|
else if ((t.ctrlKey || t.metaKey) && t.code === "KeyA") {
|
|
75
74
|
const h = (this.state.value && this.state.value.length) === s.length ? [] : s;
|
|
@@ -88,18 +87,18 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
88
87
|
let d;
|
|
89
88
|
const h = this.getLastSelectedOrDeselectedIndex(0, i);
|
|
90
89
|
h === null ? d = i !== s.length - 1 ? s.slice(i, i + 1) : [s[i]] : h === i ? d = s.slice(i, i + 2) : i >= 0 && (d = h > i ? s.slice(i + 1, h + 1) : s.slice(h, i + 2)), d && d.length >= 1 && (this.itemFocus(i + 1, l), this.updateStateOnKeyboardNavigation(d, l));
|
|
91
|
-
} else if (t.altKey &&
|
|
90
|
+
} else if (t.altKey && o === u.up)
|
|
92
91
|
m();
|
|
93
|
-
else if (
|
|
94
|
-
if (
|
|
92
|
+
else if (o === u.up || o === u.down) {
|
|
93
|
+
if (a !== "" && e)
|
|
95
94
|
if (!this.props.skipDisabledItems && c)
|
|
96
|
-
this.onNavigate(l,
|
|
95
|
+
this.onNavigate(l, o);
|
|
97
96
|
else {
|
|
98
97
|
let d = 0;
|
|
99
|
-
if (
|
|
98
|
+
if (o === u.down || o === u.right) {
|
|
100
99
|
const h = s.slice(i + 1).find((v) => !v.disabled && v[e]);
|
|
101
100
|
d = h && s.findIndex((v) => v[e] === h[e]);
|
|
102
|
-
} else if (
|
|
101
|
+
} else if (o === u.up || o === u.left) {
|
|
103
102
|
let h;
|
|
104
103
|
if (i === -1)
|
|
105
104
|
h = s, d = s.findIndex((v) => !v.disabled && v[e]);
|
|
@@ -113,66 +112,66 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
113
112
|
}
|
|
114
113
|
if (d) {
|
|
115
114
|
const h = d - i;
|
|
116
|
-
this.onNavigate(l,
|
|
117
|
-
} else d !== void 0 && this.onNavigate(l,
|
|
115
|
+
this.onNavigate(l, o, h);
|
|
116
|
+
} else d !== void 0 && this.onNavigate(l, o);
|
|
118
117
|
}
|
|
119
118
|
else if (!this.props.skipDisabledItems && c)
|
|
120
|
-
this.onNavigate(l,
|
|
119
|
+
this.onNavigate(l, o);
|
|
121
120
|
else {
|
|
122
121
|
let d = null;
|
|
123
|
-
if (
|
|
122
|
+
if (o === u.down || o === u.right)
|
|
124
123
|
d = s.slice(i + 1).find((h) => !h.disabled);
|
|
125
|
-
else if (
|
|
124
|
+
else if (o === u.up || o === u.left) {
|
|
126
125
|
const h = s.slice(0, i);
|
|
127
126
|
for (d = h.pop(); d && d.disabled; )
|
|
128
127
|
d = h.pop();
|
|
129
128
|
}
|
|
130
129
|
if (d) {
|
|
131
130
|
const h = d.id - i - 1;
|
|
132
|
-
this.onNavigate(l,
|
|
131
|
+
this.onNavigate(l, o, h);
|
|
133
132
|
} else
|
|
134
|
-
this.onNavigate(l,
|
|
133
|
+
this.onNavigate(l, o);
|
|
135
134
|
}
|
|
136
135
|
this.applyState(l), t.preventDefault();
|
|
137
|
-
} else
|
|
138
|
-
else t.altKey &&
|
|
136
|
+
} else o === u.enter ? (t.preventDefault(), this.props.allowCustom && p && r === null ? this.customItemSelect(t) : r && r.disabled ? m() : this.selectFocusedItem(t)) : o === u.esc && m();
|
|
137
|
+
else t.altKey && o === u.down ? m() : o === u.esc && this.clearButtonClick(t);
|
|
139
138
|
}, this.listContainerContent = () => {
|
|
140
|
-
const { header: t, footer: e, allowCustom:
|
|
139
|
+
const { header: t, footer: e, allowCustom: a, size: s, groupStickyHeaderItemRender: o, groupField: p, list: c } = this.props, r = b(this.props), i = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: l } = this.getFocusedState(), m = a && i && /* @__PURE__ */ f.createElement(
|
|
141
140
|
"div",
|
|
142
141
|
{
|
|
143
142
|
className: I("k-list", {
|
|
144
|
-
[`k-list-${
|
|
143
|
+
[`k-list-${D[s] || s}`]: s
|
|
145
144
|
}),
|
|
146
145
|
key: "customitem",
|
|
147
146
|
onClick: this.customItemSelect,
|
|
148
|
-
onMouseDown:
|
|
147
|
+
onMouseDown: A
|
|
149
148
|
},
|
|
150
149
|
/* @__PURE__ */ f.createElement(
|
|
151
150
|
"div",
|
|
152
151
|
{
|
|
153
|
-
className: I("k-list-item k-custom-item", { "k-focus":
|
|
152
|
+
className: I("k-list-item k-custom-item", { "k-focus": H(l) }),
|
|
154
153
|
style: { fontStyle: "italic" }
|
|
155
154
|
},
|
|
156
155
|
i,
|
|
157
|
-
/* @__PURE__ */ f.createElement(
|
|
156
|
+
/* @__PURE__ */ f.createElement(L, { name: "plus", icon: st, style: { position: "absolute", right: "0.5em" } })
|
|
158
157
|
)
|
|
159
158
|
);
|
|
160
159
|
let { group: d } = this.state;
|
|
161
|
-
return d === void 0 && p !== void 0 && (d =
|
|
160
|
+
return d === void 0 && p !== void 0 && (d = P(r[0], p)), /* @__PURE__ */ f.createElement(f.Fragment, null, t && /* @__PURE__ */ f.createElement("div", { className: "k-list-header" }, t), m, /* @__PURE__ */ f.createElement(
|
|
162
161
|
"div",
|
|
163
162
|
{
|
|
164
163
|
className: I("k-list", {
|
|
165
|
-
[`k-list-${this.mobileMode ? "lg" :
|
|
164
|
+
[`k-list-${this.mobileMode ? "lg" : D[s] || s}`]: s,
|
|
166
165
|
"k-virtual-list": this.base.vs.enabled
|
|
167
166
|
})
|
|
168
167
|
},
|
|
169
|
-
!c && d && r.length !== 0 && /* @__PURE__ */ f.createElement(
|
|
168
|
+
!c && d && r.length !== 0 && /* @__PURE__ */ f.createElement(nt, { group: d, groupMode: "modern", render: o }),
|
|
170
169
|
this.renderList()
|
|
171
|
-
), this.showLicenseWatermark && /* @__PURE__ */ f.createElement(
|
|
170
|
+
), this.showLicenseWatermark && /* @__PURE__ */ f.createElement(Y, null), e && /* @__PURE__ */ f.createElement("div", { className: "k-list-footer" }, e));
|
|
172
171
|
}, this.renderListContainer = () => {
|
|
173
|
-
const t = this.base, { dir: e } = this.props,
|
|
172
|
+
const t = this.base, { dir: e } = this.props, a = b(this.props), s = this.base.getPopupSettings(), o = s.width !== void 0 ? s.width : t.popupWidth, p = {
|
|
174
173
|
dir: e !== void 0 ? e : t.dirCalculated,
|
|
175
|
-
width:
|
|
174
|
+
width: o,
|
|
176
175
|
popupSettings: {
|
|
177
176
|
...s,
|
|
178
177
|
popupClass: I(s.popupClass, "k-list-container", "k-multiselect-popup"),
|
|
@@ -181,66 +180,56 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
181
180
|
onOpen: this.onPopupOpened,
|
|
182
181
|
onClose: this.onPopupClosed
|
|
183
182
|
},
|
|
184
|
-
itemsCount: [
|
|
183
|
+
itemsCount: [a.length, this.value.length]
|
|
185
184
|
};
|
|
186
|
-
return /* @__PURE__ */ f.createElement(
|
|
185
|
+
return /* @__PURE__ */ f.createElement(ot, { ...p }, this.listContainerContent());
|
|
187
186
|
}, this.renderAdaptiveListContainer = () => {
|
|
188
|
-
const { adaptiveTitle: t,
|
|
189
|
-
this.localization =
|
|
190
|
-
const
|
|
191
|
-
|
|
187
|
+
const { adaptiveTitle: t, adaptiveSubtitle: e, filterable: a, filter: s } = this.props, { windowWidth: o = 0 } = this.state, p = s !== void 0 ? s : this.state.text;
|
|
188
|
+
this.localization = mt(this);
|
|
189
|
+
const c = a ? /* @__PURE__ */ f.createElement(
|
|
190
|
+
gt,
|
|
192
191
|
{
|
|
193
|
-
value:
|
|
194
|
-
ref: (
|
|
195
|
-
this._adaptiveInput =
|
|
192
|
+
value: p,
|
|
193
|
+
ref: (i) => {
|
|
194
|
+
this._adaptiveInput = i && i.element;
|
|
196
195
|
},
|
|
197
196
|
onChange: this.onChangeHandler,
|
|
198
197
|
onKeyDown: this.onInputKeyDown,
|
|
199
|
-
size:
|
|
198
|
+
size: "large",
|
|
200
199
|
rounded: this.props.rounded,
|
|
201
|
-
fillMode: this.props.fillMode
|
|
200
|
+
fillMode: this.props.fillMode,
|
|
201
|
+
placeholder: this.props.placeholder
|
|
202
202
|
}
|
|
203
|
-
) : null,
|
|
204
|
-
title: t,
|
|
203
|
+
) : null, r = {
|
|
204
|
+
title: t || this.props.label,
|
|
205
|
+
subTitle: e,
|
|
205
206
|
expand: this.opened,
|
|
206
|
-
onClose: (
|
|
207
|
-
windowWidth:
|
|
208
|
-
mobileFilter:
|
|
209
|
-
footer: {
|
|
210
|
-
cancelText: this.localization.toLanguageString(
|
|
211
|
-
B,
|
|
212
|
-
V[B]
|
|
213
|
-
),
|
|
214
|
-
onCancel: this.onCancel,
|
|
215
|
-
applyText: this.localization.toLanguageString(
|
|
216
|
-
A,
|
|
217
|
-
V[A]
|
|
218
|
-
),
|
|
219
|
-
onApply: this.closePopup
|
|
220
|
-
}
|
|
207
|
+
onClose: (i) => this.closePopup(i),
|
|
208
|
+
windowWidth: o,
|
|
209
|
+
mobileFilter: c
|
|
221
210
|
};
|
|
222
|
-
return /* @__PURE__ */ f.createElement(
|
|
211
|
+
return /* @__PURE__ */ f.createElement(ut, { ...r }, /* @__PURE__ */ f.createElement(ft, null, /* @__PURE__ */ f.createElement("div", { className: "k-list-container" }, this.listContainerContent())));
|
|
223
212
|
}, this.closePopup = (t) => {
|
|
224
213
|
const e = this.base.initState();
|
|
225
214
|
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" });
|
|
226
|
-
const
|
|
227
|
-
|
|
215
|
+
const a = this.props.filter !== void 0 ? this.props.filter : this.state.text;
|
|
216
|
+
O(a) && a !== "" && this.base.filterChanged("", e), this.state.text && (e.data.text = ""), this.applyState(e);
|
|
228
217
|
}, this.onCancel = (t) => {
|
|
229
218
|
const e = this.base.initState();
|
|
230
219
|
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: "onCancel" });
|
|
231
|
-
const
|
|
232
|
-
|
|
220
|
+
const a = this.props.filter !== void 0 ? this.props.filter : this.state.text;
|
|
221
|
+
O(a) && a !== "" && this.base.filterChanged("", e), this.state.text && (e.data.text = ""), this.applyState(e);
|
|
233
222
|
}, this.renderList = () => {
|
|
234
223
|
const {
|
|
235
224
|
textField: t,
|
|
236
225
|
listNoDataRender: e,
|
|
237
|
-
itemRender:
|
|
226
|
+
itemRender: a,
|
|
238
227
|
groupHeaderItemRender: s,
|
|
239
|
-
dataItemKey:
|
|
228
|
+
dataItemKey: o,
|
|
240
229
|
virtual: p = { skip: 0, total: void 0 }
|
|
241
230
|
} = this.props, c = b(this.props), r = this.base.vs, { focusedIndex: i } = this.getFocusedState(), l = this.base.getPopupSettings(), m = `translateY(${r.translate}px)`;
|
|
242
231
|
return /* @__PURE__ */ f.createElement(
|
|
243
|
-
|
|
232
|
+
at,
|
|
244
233
|
{
|
|
245
234
|
id: this.base.listBoxId,
|
|
246
235
|
show: this.opened,
|
|
@@ -248,7 +237,7 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
248
237
|
focusedIndex: i - p.skip,
|
|
249
238
|
value: this.value,
|
|
250
239
|
textField: t,
|
|
251
|
-
valueField:
|
|
240
|
+
valueField: o,
|
|
252
241
|
optionsGuid: this.base.guid,
|
|
253
242
|
groupField: this.props.groupField,
|
|
254
243
|
groupMode: "modern",
|
|
@@ -261,10 +250,10 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
261
250
|
key: "listKey",
|
|
262
251
|
skip: p.skip,
|
|
263
252
|
onClick: this.handleItemClick,
|
|
264
|
-
itemRender:
|
|
253
|
+
itemRender: a,
|
|
265
254
|
groupHeaderItemRender: s,
|
|
266
255
|
noDataRender: e,
|
|
267
|
-
onMouseDown:
|
|
256
|
+
onMouseDown: A,
|
|
268
257
|
onBlur: this.handleBlur,
|
|
269
258
|
onScroll: this.onScroll,
|
|
270
259
|
wrapperRef: r.scrollerRef,
|
|
@@ -273,43 +262,43 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
273
262
|
}
|
|
274
263
|
);
|
|
275
264
|
}, this.onScroll = (t) => {
|
|
276
|
-
const { vs: e, list:
|
|
265
|
+
const { vs: e, list: a } = this.base;
|
|
277
266
|
e.scrollHandler(t);
|
|
278
267
|
const { groupField: s } = this.props;
|
|
279
|
-
let
|
|
280
|
-
if (!(!s || !
|
|
281
|
-
const p = this.itemHeight = this.itemHeight || (e.enabled ? e.itemHeight :
|
|
282
|
-
|
|
283
|
-
let i =
|
|
284
|
-
for (let l = 1; l <
|
|
285
|
-
|
|
268
|
+
let o = b(this.props);
|
|
269
|
+
if (!(!s || !o.length) && s) {
|
|
270
|
+
const p = this.itemHeight = this.itemHeight || (e.enabled ? e.itemHeight : a ? a.children[0].offsetHeight : 0), r = t.target.scrollTop - e.skip * p;
|
|
271
|
+
o = this.base.getGroupedDataModernMode(o, s);
|
|
272
|
+
let i = o[0][s];
|
|
273
|
+
for (let l = 1; l < o.length && !(p * l > r); l++)
|
|
274
|
+
o[l] && o[l][s] && (i = o[l][s]);
|
|
286
275
|
i !== this.state.group && this.setState({
|
|
287
276
|
group: i
|
|
288
277
|
});
|
|
289
278
|
}
|
|
290
279
|
}, this.customItemSelect = (t) => {
|
|
291
|
-
const e = this.props.filter !== void 0 ? this.props.filter : this.state.text, { textField:
|
|
280
|
+
const e = this.props.filter !== void 0 ? this.props.filter : this.state.text, { textField: a } = this.props;
|
|
292
281
|
if (!e)
|
|
293
282
|
return;
|
|
294
283
|
const s = this.base.initState();
|
|
295
284
|
s.syntheticEvent = t;
|
|
296
|
-
const
|
|
285
|
+
const o = a ? { [a]: e } : e;
|
|
297
286
|
this.state.text !== void 0 && (s.data.text = ""), s.data.focusedIndex = void 0, this.base.filterChanged("", s);
|
|
298
|
-
const p = [...this.value,
|
|
287
|
+
const p = [...this.value, o];
|
|
299
288
|
this.triggerOnChange(p, s), this.base.togglePopup(s), this.applyState(s);
|
|
300
289
|
}, this.handleWrapperClick = (t) => {
|
|
301
290
|
const e = this._input;
|
|
302
291
|
!this.opened && e && this.focusElement(e);
|
|
303
|
-
const
|
|
304
|
-
|
|
292
|
+
const a = this.base.initState();
|
|
293
|
+
a.syntheticEvent = t, !this.state.focused && !this.mobileMode && (a.events.push({ type: "onFocus" }), a.data.focused = !0), this.mobileMode && (this.setState({ currentValue: this.tagsToRender }), this.mobileMode && window.setTimeout(() => this._adaptiveInput && this._adaptiveInput.focus(), 300)), this.base.togglePopup(a), this.applyState(a);
|
|
305
294
|
}, this.handleItemClick = (t, e) => {
|
|
306
|
-
const
|
|
307
|
-
|
|
295
|
+
const a = this.base.initState();
|
|
296
|
+
a.syntheticEvent = e, this.handleItemSelect(t, a), this.props.autoClose && this.base.togglePopup(a), e.stopPropagation(), this.applyState(a);
|
|
308
297
|
}, this.handleBlur = (t) => {
|
|
309
298
|
if (!this.state.focused || this._skipFocusEvent)
|
|
310
299
|
return;
|
|
311
|
-
const e = this.base.initState(), { allowCustom:
|
|
312
|
-
e.syntheticEvent = t, e.data.focused = !1, e.events.push({ type: "onBlur" }), this.opened && !this.mobileMode && (this.state.opened && (e.data.opened = !1), e.events.push({ type: "onClose" })), !
|
|
300
|
+
const e = this.base.initState(), { allowCustom: a, filterable: s } = this.props;
|
|
301
|
+
e.syntheticEvent = t, e.data.focused = !1, e.events.push({ type: "onBlur" }), this.opened && !this.mobileMode && (this.state.opened && (e.data.opened = !1), e.events.push({ type: "onClose" })), !a && !s && this.state.text && (e.data.text = ""), this.applyState(e);
|
|
313
302
|
}, this.handleFocus = (t) => {
|
|
314
303
|
this._skipFocusEvent || this.base.handleFocus(t);
|
|
315
304
|
}, this.onPopupOpened = () => {
|
|
@@ -320,7 +309,7 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
320
309
|
}, 0);
|
|
321
310
|
}, this.setValidity = () => {
|
|
322
311
|
this._input && this._input.setCustomValidity && this._input.setCustomValidity(
|
|
323
|
-
this.validity.valid ? "" : this.props.validationMessage ||
|
|
312
|
+
this.validity.valid ? "" : this.props.validationMessage || bt
|
|
324
313
|
);
|
|
325
314
|
}, this.validate(n);
|
|
326
315
|
}
|
|
@@ -328,13 +317,13 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
328
317
|
return this.props.id;
|
|
329
318
|
}
|
|
330
319
|
get document() {
|
|
331
|
-
if (
|
|
320
|
+
if (B)
|
|
332
321
|
return this.element && this.element.ownerDocument || document;
|
|
333
322
|
}
|
|
334
323
|
validate(n) {
|
|
335
324
|
if (n.filterable || n.virtual) {
|
|
336
325
|
const t = [];
|
|
337
|
-
n.filterable && t.push("filterable"), n.virtual && t.push("virtualization"), this.showLicenseWatermark = !
|
|
326
|
+
n.filterable && t.push("filterable"), n.virtual && t.push("virtualization"), this.showLicenseWatermark = !J(pt, {
|
|
338
327
|
component: "MultiSelect",
|
|
339
328
|
features: t
|
|
340
329
|
});
|
|
@@ -351,8 +340,8 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
351
340
|
/** @hidden */
|
|
352
341
|
get tagsToRender() {
|
|
353
342
|
const { tags: n, textField: t } = this.props, e = [];
|
|
354
|
-
return n === void 0 ? this.value.forEach((
|
|
355
|
-
e.push({ text:
|
|
343
|
+
return n === void 0 ? this.value.forEach((a) => {
|
|
344
|
+
e.push({ text: P(a, t), data: [a] });
|
|
356
345
|
}) : e.push(...n), e;
|
|
357
346
|
}
|
|
358
347
|
/**
|
|
@@ -396,19 +385,19 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
396
385
|
/** @hidden */
|
|
397
386
|
componentDidUpdate(n, t) {
|
|
398
387
|
var m;
|
|
399
|
-
const { virtual: e, groupField:
|
|
388
|
+
const { virtual: e, groupField: a = "" } = this.props, s = b(this.props), o = e ? e.skip : 0, p = n.virtual ? n.virtual.total : 0, c = n.opened !== void 0 ? n.opened : t.opened, r = !c && this.opened, i = c && !this.opened, l = this.base.getPopupSettings();
|
|
400
389
|
if (this.validate(this.props), this.base.didUpdate(), !l.animate && i && this.onPopupClosed(), e && e.total !== p)
|
|
401
390
|
this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
|
|
402
391
|
else {
|
|
403
392
|
let { focusedItem: d, focusedIndex: h } = this.getFocusedState();
|
|
404
|
-
|
|
393
|
+
a !== "" && (h = (m = this.base.getGroupedDataModernMode(s, a)) == null ? void 0 : m.indexOf(d)), r && e ? this.base.scrollToVirtualItem(e, h - o) : r && !e ? (s && s.length !== 0 && this.base.resetGroupStickyHeader(s[0][a], this), this.base.scrollToItem(h)) : this.opened && c && d && this.scrollToFocused && this.base.scrollToItem(h - o);
|
|
405
394
|
}
|
|
406
395
|
this.scrollToFocused = !1, this.setValidity();
|
|
407
396
|
}
|
|
408
397
|
/** @hidden */
|
|
409
398
|
componentDidMount() {
|
|
410
399
|
var n;
|
|
411
|
-
this.observerResize =
|
|
400
|
+
this.observerResize = B && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this)), this.base.didMount(), this.setValidity(), (n = this.document) != null && n.body && this.observerResize && this.observerResize.observe(this.document.body);
|
|
412
401
|
}
|
|
413
402
|
/** @hidden */
|
|
414
403
|
componentWillUnmount() {
|
|
@@ -417,7 +406,7 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
417
406
|
}
|
|
418
407
|
/** @hidden */
|
|
419
408
|
onNavigate(n, t, e) {
|
|
420
|
-
const { allowCustom:
|
|
409
|
+
const { allowCustom: a } = this.props, s = b(this.props), o = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: p, focusedIndex: c } = this.getFocusedState(), r = a && o, i = H(p), l = this.base, m = l.vs;
|
|
421
410
|
if (this.opened && t === u.up && i)
|
|
422
411
|
this.state.focusedIndex !== void 0 && (n.data.focusedIndex = void 0);
|
|
423
412
|
else {
|
|
@@ -438,9 +427,9 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
438
427
|
style: n,
|
|
439
428
|
className: t,
|
|
440
429
|
label: e,
|
|
441
|
-
dir:
|
|
430
|
+
dir: a,
|
|
442
431
|
disabled: s,
|
|
443
|
-
textField:
|
|
432
|
+
textField: o,
|
|
444
433
|
dataItemKey: p,
|
|
445
434
|
virtual: c,
|
|
446
435
|
size: r,
|
|
@@ -448,76 +437,78 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
448
437
|
fillMode: l,
|
|
449
438
|
loading: m,
|
|
450
439
|
filter: d
|
|
451
|
-
} = this.props, { text: h, focused: v, focusedTag: x, currentValue:
|
|
440
|
+
} = this.props, { text: h, focused: v, focusedTag: x, currentValue: W } = this.state, C = this.base.vs, K = this.props.id || this._inputId;
|
|
452
441
|
C.enabled = c !== void 0, c !== void 0 && (C.skip = c.skip, C.total = c.total, C.pageSize = c.pageSize);
|
|
453
|
-
const S = this.mobileMode && this.opened ?
|
|
442
|
+
const S = this.mobileMode && this.opened ? W : this.tagsToRender;
|
|
454
443
|
this.setItems(this.tagsToRender, this._tags);
|
|
455
|
-
const
|
|
444
|
+
const N = !this.validityStyles || this.validity.valid, $ = !!(d !== void 0 ? d : h) || S && S.length > 0, [q, G] = z(this.props.prefix || f.Fragment), [U, j] = z(this.props.suffix || f.Fragment), R = /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
456
445
|
"div",
|
|
457
446
|
{
|
|
458
447
|
ref: this.componentRef,
|
|
459
448
|
className: I("k-multiselect k-input", t, {
|
|
460
|
-
[`k-input-${
|
|
461
|
-
[`k-rounded-${
|
|
449
|
+
[`k-input-${D[r] || r}`]: r,
|
|
450
|
+
[`k-rounded-${vt[i] || i}`]: i,
|
|
462
451
|
[`k-input-${l}`]: l,
|
|
463
452
|
"k-focus": v && !s,
|
|
464
|
-
"k-invalid": !
|
|
453
|
+
"k-invalid": !N,
|
|
465
454
|
"k-disabled": s,
|
|
466
455
|
"k-loading": m,
|
|
467
456
|
"k-required": this.required
|
|
468
457
|
}),
|
|
469
458
|
style: e ? { ...n, width: void 0 } : n,
|
|
470
|
-
dir:
|
|
471
|
-
onFocus:
|
|
459
|
+
dir: a,
|
|
460
|
+
onFocus: (k) => {
|
|
461
|
+
this.mobileMode ? this.handleWrapperClick(k) : this.handleFocus(k);
|
|
462
|
+
},
|
|
472
463
|
onBlur: this.handleBlur,
|
|
473
464
|
onClick: this.handleWrapperClick,
|
|
474
|
-
onMouseDown:
|
|
465
|
+
onMouseDown: rt
|
|
475
466
|
},
|
|
476
|
-
this.props.prefix && /* @__PURE__ */ f.createElement(
|
|
467
|
+
this.props.prefix && /* @__PURE__ */ f.createElement(q, { ...G }),
|
|
477
468
|
/* @__PURE__ */ f.createElement("div", { className: I("k-input-values") }, /* @__PURE__ */ f.createElement(
|
|
478
469
|
"div",
|
|
479
470
|
{
|
|
480
|
-
className: I("k-chip-list", { [`k-chip-list-${
|
|
471
|
+
className: I("k-chip-list", { [`k-chip-list-${D[r] || r}`]: r }),
|
|
481
472
|
role: "listbox",
|
|
482
473
|
id: "tagslist-" + this.base.guid
|
|
483
474
|
},
|
|
484
475
|
S && S.length > 0 && /* @__PURE__ */ f.createElement(
|
|
485
|
-
|
|
476
|
+
lt,
|
|
486
477
|
{
|
|
487
478
|
tagRender: this.props.tagRender,
|
|
488
479
|
onTagDelete: this.onTagDelete,
|
|
489
480
|
data: S,
|
|
490
481
|
guid: this.base.guid,
|
|
491
|
-
focused: x ? S.find((
|
|
482
|
+
focused: x ? S.find((k) => V(k, x, p)) : void 0,
|
|
492
483
|
size: r
|
|
493
484
|
}
|
|
494
485
|
)
|
|
495
|
-
), this.renderSearchBar(
|
|
496
|
-
m && /* @__PURE__ */ f.createElement(
|
|
497
|
-
this.props.suffix && /* @__PURE__ */ f.createElement(
|
|
498
|
-
|
|
486
|
+
), this.renderSearchBar(K)),
|
|
487
|
+
m && /* @__PURE__ */ f.createElement(L, { className: "k-input-loading-icon", name: "loading" }),
|
|
488
|
+
this.props.suffix && /* @__PURE__ */ f.createElement(U, { ...j }),
|
|
489
|
+
$ && /* @__PURE__ */ f.createElement(ct, { onClick: this.clearButtonClick }),
|
|
499
490
|
!this.mobileMode && this.renderListContainer()
|
|
500
491
|
), this.mobileMode && this.renderAdaptiveListContainer());
|
|
501
492
|
return e ? /* @__PURE__ */ f.createElement(
|
|
502
|
-
|
|
493
|
+
it,
|
|
503
494
|
{
|
|
504
495
|
label: e,
|
|
505
|
-
editorId:
|
|
506
|
-
editorValue: h ||
|
|
507
|
-
editorValid:
|
|
496
|
+
editorId: K,
|
|
497
|
+
editorValue: h || P(this.value[0], o),
|
|
498
|
+
editorValid: N,
|
|
508
499
|
editorDisabled: s,
|
|
509
500
|
style: { width: n ? n.width : void 0 },
|
|
510
|
-
children:
|
|
501
|
+
children: R
|
|
511
502
|
}
|
|
512
|
-
) :
|
|
503
|
+
) : R;
|
|
513
504
|
}
|
|
514
505
|
renderSearchBar(n) {
|
|
515
|
-
const { activedescendant: t, focusedTag: e, currentValue:
|
|
506
|
+
const { activedescendant: t, focusedTag: e, currentValue: a } = this.state, { disabled: s, placeholder: o, ariaDescribedBy: p, ariaLabelledBy: c, ariaLabel: r, inputAttributes: i } = this.props, l = !this.mobileMode && (this.props.filter !== void 0 ? this.props.filter : this.state.text) || "", { focusedIndex: m } = this.getFocusedState(), d = this.value.length === 0 && !l ? o : void 0, h = a && a.length > 0 ? void 0 : o, v = t === w.TagsList && e !== void 0 ? `tag-${this.base.guid}-${e.text.replace(/\s+/g, "-")}` : `option-${this.base.guid}-${m}`, x = {
|
|
516
507
|
accessKey: this.props.accessKey,
|
|
517
508
|
tabIndex: this.props.tabIndex
|
|
518
509
|
};
|
|
519
510
|
return /* @__PURE__ */ f.createElement(
|
|
520
|
-
|
|
511
|
+
dt,
|
|
521
512
|
{
|
|
522
513
|
id: n,
|
|
523
514
|
size: Math.max((d || "").length, l.length, 1),
|
|
@@ -541,8 +532,8 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
541
532
|
);
|
|
542
533
|
}
|
|
543
534
|
onTagsNavigate(n, t) {
|
|
544
|
-
const e = n.keyCode, { focusedTag:
|
|
545
|
-
let p =
|
|
535
|
+
const e = n.keyCode, { focusedTag: a } = this.state, s = this._tags, o = this.props.dataItemKey;
|
|
536
|
+
let p = a ? s.findIndex((i) => V(i, a, o)) : -1, c;
|
|
546
537
|
const r = p !== -1;
|
|
547
538
|
if (e === u.left)
|
|
548
539
|
r ? p = Math.max(0, p - 1) : p = s.length - 1, c = s[p];
|
|
@@ -555,25 +546,25 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
555
546
|
else if (e === u.delete) {
|
|
556
547
|
if (r) {
|
|
557
548
|
const i = this.value;
|
|
558
|
-
|
|
549
|
+
T(i, s[p].data, o), this.triggerOnChange(i, t);
|
|
559
550
|
}
|
|
560
551
|
} else if (e === u.backspace) {
|
|
561
552
|
const i = this.value;
|
|
562
553
|
if (r)
|
|
563
|
-
|
|
554
|
+
T(i, s[p].data, o), this.triggerOnChange(i, t);
|
|
564
555
|
else if (!r && s.length) {
|
|
565
556
|
const l = s.pop();
|
|
566
|
-
|
|
557
|
+
T(i, l.data, o), this.triggerOnChange(i, t);
|
|
567
558
|
}
|
|
568
559
|
}
|
|
569
|
-
c !==
|
|
560
|
+
c !== a && (t.data.focusedTag = c, t.data.activedescendant = w.TagsList), this.applyState(t);
|
|
570
561
|
}
|
|
571
562
|
triggerOnChange(n, t) {
|
|
572
563
|
this.props.value === void 0 && (t.data.value = [...n]), this._valueItemsDuringOnChange = [], this.setItems(n, this._valueItemsDuringOnChange), t.events.push({ type: "onChange" });
|
|
573
564
|
}
|
|
574
565
|
selectFocusedItem(n, t) {
|
|
575
|
-
const { virtual: e } = this.props,
|
|
576
|
-
|
|
566
|
+
const { virtual: e } = this.props, a = b(this.props), { focusedIndex: s } = t || this.getFocusedState(), o = e ? e.skip : 0;
|
|
567
|
+
a[s - o] !== void 0 && this.handleItemClick(s, n);
|
|
577
568
|
}
|
|
578
569
|
setItems(n, t) {
|
|
579
570
|
t.length = 0, t.push(...n);
|
|
@@ -581,10 +572,10 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
581
572
|
getFocusedState() {
|
|
582
573
|
const { focusedIndex: n } = this.state, t = this.props.filter !== void 0 ? this.props.filter : this.state.text, {
|
|
583
574
|
allowCustom: e,
|
|
584
|
-
dataItemKey:
|
|
575
|
+
dataItemKey: a,
|
|
585
576
|
virtual: s,
|
|
586
|
-
textField:
|
|
587
|
-
focusedItemIndex: p =
|
|
577
|
+
textField: o,
|
|
578
|
+
focusedItemIndex: p = ht,
|
|
588
579
|
skipDisabledItems: c
|
|
589
580
|
} = this.props, r = b(this.props), i = s && s.skip || 0;
|
|
590
581
|
let l;
|
|
@@ -604,7 +595,7 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
604
595
|
/* CustomItem */
|
|
605
596
|
};
|
|
606
597
|
if (t)
|
|
607
|
-
return l = p(r, t,
|
|
598
|
+
return l = p(r, t, o), {
|
|
608
599
|
focusedItem: r[l],
|
|
609
600
|
focusedIndex: l + i,
|
|
610
601
|
focusedType: 1
|
|
@@ -612,14 +603,14 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
612
603
|
};
|
|
613
604
|
if (m.length) {
|
|
614
605
|
const d = m[m.length - 1];
|
|
615
|
-
return l = r.findIndex((h) => M(h, d,
|
|
606
|
+
return l = r.findIndex((h) => M(h, d, a)), r[l] !== void 0 ? {
|
|
616
607
|
focusedIndex: l + i,
|
|
617
608
|
focusedItem: r[l],
|
|
618
609
|
focusedType: 1
|
|
619
610
|
/* ListItem */
|
|
620
611
|
} : { focusedType: 0, focusedIndex: -1 };
|
|
621
|
-
} else if (c &&
|
|
622
|
-
const d = r.findIndex((h) => !h.disabled && h[
|
|
612
|
+
} else if (c && o && !t && i === 0) {
|
|
613
|
+
const d = r.findIndex((h) => !h.disabled && h[o]);
|
|
623
614
|
return {
|
|
624
615
|
focusedIndex: d,
|
|
625
616
|
focusedItem: r[d - i],
|
|
@@ -664,7 +655,7 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
|
|
|
664
655
|
}
|
|
665
656
|
};
|
|
666
657
|
y.displayName = "MultiSelect", y.propTypes = {
|
|
667
|
-
...
|
|
658
|
+
...E.propTypes,
|
|
668
659
|
autoClose: g.bool,
|
|
669
660
|
value: g.arrayOf(g.any),
|
|
670
661
|
defaultValue: g.arrayOf(g.any),
|
|
@@ -684,11 +675,12 @@ y.displayName = "MultiSelect", y.propTypes = {
|
|
|
684
675
|
list: g.any,
|
|
685
676
|
adaptive: g.bool,
|
|
686
677
|
adaptiveTitle: g.string,
|
|
678
|
+
adaptiveSubtitle: g.string,
|
|
687
679
|
onCancel: g.func,
|
|
688
680
|
skipDisabledItems: g.bool,
|
|
689
681
|
inputAttributes: g.object
|
|
690
682
|
}, y.defaultProps = {
|
|
691
|
-
...
|
|
683
|
+
...E.defaultProps,
|
|
692
684
|
autoClose: !0,
|
|
693
685
|
required: !1,
|
|
694
686
|
size: "medium",
|
|
@@ -699,16 +691,16 @@ y.displayName = "MultiSelect", y.propTypes = {
|
|
|
699
691
|
prefix: void 0,
|
|
700
692
|
suffix: void 0
|
|
701
693
|
};
|
|
702
|
-
let
|
|
703
|
-
const
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
694
|
+
let _ = y;
|
|
695
|
+
const It = Q(), yt = X(
|
|
696
|
+
Z(
|
|
697
|
+
It,
|
|
698
|
+
tt(_)
|
|
707
699
|
)
|
|
708
700
|
);
|
|
709
|
-
|
|
701
|
+
yt.displayName = "KendoReactMultiSelect";
|
|
710
702
|
export {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
703
|
+
yt as MultiSelect,
|
|
704
|
+
It as MultiSelectPropsContext,
|
|
705
|
+
_ as MultiSelectWithoutContext
|
|
714
706
|
};
|