@progress/kendo-react-dropdowns 8.2.1-develop.5 → 8.3.0-develop.2
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/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +185 -176
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +1 -0
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +130 -127
- package/common/SearchBar.js +1 -1
- package/common/SearchBar.mjs +20 -17
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +5 -0
- package/index.d.ts +5 -0
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
package/ComboBox/ComboBox.mjs
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
9
|
+
import * as p from "react";
|
|
10
|
+
import b from "prop-types";
|
|
11
11
|
import B from "../common/DropDownBase.mjs";
|
|
12
|
-
import { Keys as I, validatePackage as ie, svgIconPropType as oe, canUseDOM as
|
|
13
|
-
import { FloatingLabel as
|
|
14
|
-
import { getPlainDataDuplicates as he, getFilteredData as
|
|
12
|
+
import { Keys as I, validatePackage as ie, svgIconPropType as oe, canUseDOM as A, classNames as w, IconWrap as ae, createPropsContext as ne, withIdHOC as le, withPropsContext as re, kendoThemeMaps as de } from "@progress/kendo-react-common";
|
|
13
|
+
import { FloatingLabel as pe } from "@progress/kendo-react-labels";
|
|
14
|
+
import { getPlainDataDuplicates as he, getFilteredData as k, areSame as S, getItemValue as D, isPresent as C, getItemIndexByText as R, suggestValue as ce, itemIndexStartsWith as K } from "../common/utils.mjs";
|
|
15
15
|
import ue from "../common/SearchBar.mjs";
|
|
16
16
|
import ge from "../common/ListContainer.mjs";
|
|
17
17
|
import me from "../common/List.mjs";
|
|
@@ -23,10 +23,10 @@ import { Button as H } from "@progress/kendo-react-buttons";
|
|
|
23
23
|
import { caretAltDownIcon as xe, xIcon as Ie } from "@progress/kendo-svg-icons";
|
|
24
24
|
import { comboArrowBtnAriaLabelExpand as q, messages as $, comboArrowBtnAriaLabelCollapse as G } from "../messages/index.mjs";
|
|
25
25
|
import { provideLocalizationService as U } from "@progress/kendo-react-intl";
|
|
26
|
-
import { ActionSheet as
|
|
26
|
+
import { ActionSheet as ke, ActionSheetHeader as ye, ActionSheetContent as Ce } from "@progress/kendo-react-layout";
|
|
27
27
|
import { MOBILE_MEDIUM_DEVISE as W, MOBILE_SMALL_DEVISE as j } from "../common/constants.mjs";
|
|
28
28
|
import Y from "../common/withCustomComponent.mjs";
|
|
29
|
-
const
|
|
29
|
+
const Se = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = de, E = class E extends p.Component {
|
|
30
30
|
constructor(s) {
|
|
31
31
|
super(s), this.state = {}, this.base = new B(this), this._element = null, this._suggested = "", this._skipBlur = !1, this._input = null, this._adaptiveFilterInput = null, this.itemHeight = 0, this.duplicates = [], this.hasDuplicates = !1, this.focus = () => {
|
|
32
32
|
this._input && this._input.focus();
|
|
@@ -37,8 +37,8 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
37
37
|
this.duplicates = he(o), this.hasDuplicates = this.duplicates.length > 0;
|
|
38
38
|
}
|
|
39
39
|
}, this.handleItemSelect = (e, t) => {
|
|
40
|
-
const { virtual: o, dataItemKey: n } = this.props, l =
|
|
41
|
-
this.triggerOnChange(r, t), this.state.text !== void 0 && (t.data.text = void 0),
|
|
40
|
+
const { virtual: o, dataItemKey: n } = this.props, l = k(this.props), a = o ? o.skip : 0, r = l[e - a], d = this.hasDuplicates || !S(r, this.value, n);
|
|
41
|
+
this.triggerOnChange(r, t), this.state.text !== void 0 && (t.data.text = void 0), d && this.base.triggerPageChangeCornerItems(r, t);
|
|
42
42
|
}, this.onPopupOpened = () => {
|
|
43
43
|
setTimeout(() => {
|
|
44
44
|
this.mobileMode && this._adaptiveFilterInput && (this._skipBlur = !0, this._adaptiveFilterInput.focus(), this._skipBlur = !1);
|
|
@@ -46,17 +46,17 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
46
46
|
}, this.componentRef = (e) => {
|
|
47
47
|
this._element = e, this.base.wrapper = e;
|
|
48
48
|
}, this.toggleBtnClick = (e) => {
|
|
49
|
-
const { skipDisabledItems: t, textField: o } = this.props, n =
|
|
50
|
-
if (
|
|
49
|
+
const { skipDisabledItems: t, textField: o } = this.props, n = k(this.props), l = this.getFocusedIndex(), a = this.getCurrentValueDisabledStatus(o, n, l), r = this.props.opened !== void 0 ? this.props.opened : this.state.opened, d = this.base.initState();
|
|
50
|
+
if (d.syntheticEvent = e, !t && o && a && this.clearValueOnToggleBtnClick(e), this.base.togglePopup(d), !r && this.mobileMode) {
|
|
51
51
|
const i = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text || null;
|
|
52
|
-
this.base.filterChanged(i,
|
|
52
|
+
this.base.filterChanged(i, d);
|
|
53
53
|
}
|
|
54
|
-
this.applyState(
|
|
54
|
+
this.applyState(d);
|
|
55
55
|
}, this.closeOpenedApplyStateNonMobileMode = (e, t) => {
|
|
56
56
|
t && !this.mobileMode && this.base.togglePopup(e);
|
|
57
57
|
}, this.renderMobileListFilter = () => {
|
|
58
|
-
const e = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, t = D(this.value, this.props.textField), o =
|
|
59
|
-
return /* @__PURE__ */
|
|
58
|
+
const e = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, t = D(this.value, this.props.textField), o = C(e) ? e : t;
|
|
59
|
+
return /* @__PURE__ */ p.createElement(
|
|
60
60
|
ve,
|
|
61
61
|
{
|
|
62
62
|
value: o,
|
|
@@ -75,13 +75,13 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
75
75
|
const { vs: t, list: o } = this.base;
|
|
76
76
|
t.scrollHandler(e);
|
|
77
77
|
const { groupField: n } = this.props;
|
|
78
|
-
let l =
|
|
78
|
+
let l = k(this.props);
|
|
79
79
|
if (!n || !l.length)
|
|
80
80
|
return;
|
|
81
|
-
const a = this.itemHeight = this.itemHeight || (t.enabled ? t.itemHeight : o ? o.children[0].offsetHeight : 0),
|
|
81
|
+
const a = this.itemHeight = this.itemHeight || (t.enabled ? t.itemHeight : o ? o.children[0].offsetHeight : 0), d = e.target.scrollTop - t.skip * a;
|
|
82
82
|
this.props.groupMode === "modern" && (l = this.base.getGroupedDataModernMode(l, n));
|
|
83
83
|
let i = l[0][n];
|
|
84
|
-
for (let c = 1; c < l.length && !(a * c >
|
|
84
|
+
for (let c = 1; c < l.length && !(a * c > d); c++)
|
|
85
85
|
l[c] && l[c][n] && (i = l[c][n]);
|
|
86
86
|
i !== this.state.group && (this.setState({
|
|
87
87
|
group: i
|
|
@@ -90,7 +90,7 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
90
90
|
this.navigationIndex = e, this.base.handleItemClick(e, t), this._valueDuringOnChange = void 0;
|
|
91
91
|
}, this.handleBlur = (e) => {
|
|
92
92
|
if (this.state.focused && !this._skipBlur) {
|
|
93
|
-
const t = this.base.initState(), { textField: o } = this.props, n =
|
|
93
|
+
const t = this.base.initState(), { textField: o } = this.props, n = k(this.props), l = this.getFocusedIndex(), r = !(l === -1) && this.getCurrentValueDisabledStatus(o, n, l);
|
|
94
94
|
t.data.focused = !1, t.events.push({ type: "onBlur" }), t.syntheticEvent = e, o && r && this.clearValueOnBlur(e), this.applyValueOnRejectSuggestions(e.currentTarget.value, t);
|
|
95
95
|
}
|
|
96
96
|
}, this.onInputClick = (e) => {
|
|
@@ -100,57 +100,57 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
100
100
|
n.syntheticEvent = e, this.base.togglePopup(n), this.base.filterChanged(o, n), this.applyState(n);
|
|
101
101
|
}
|
|
102
102
|
}, this.onInputKeyDown = (e) => {
|
|
103
|
-
const { skipDisabledItems: t, textField: o, dataItemKey: n, groupField: l } = this.props, a =
|
|
104
|
-
if (
|
|
103
|
+
const { skipDisabledItems: t, textField: o, dataItemKey: n, groupField: l } = this.props, a = k(this.props), r = this.value, d = Math.max(0, a.findIndex((u) => S(u, r, n))), i = e.keyCode, c = this.props.opened !== void 0 ? this.props.opened : this.state.opened, h = this.base.initState();
|
|
104
|
+
if (h.syntheticEvent = e, !e.altKey && (i === I.up || i === I.down)) {
|
|
105
105
|
if (e.preventDefault(), l !== "" && o)
|
|
106
106
|
if (!this.props.skipDisabledItems && c)
|
|
107
|
-
this.onNavigate(
|
|
107
|
+
this.onNavigate(h, i);
|
|
108
108
|
else {
|
|
109
109
|
let u = 0;
|
|
110
110
|
if (i === I.down || i === I.right) {
|
|
111
|
-
const
|
|
112
|
-
u =
|
|
111
|
+
const f = a.slice(d + 1 < a.length ? d + 1 : d).find((x) => !x.disabled && x[o]);
|
|
112
|
+
u = f && a.findIndex((x) => x[o] === f[o]);
|
|
113
113
|
} else if (i === I.up || i === I.left) {
|
|
114
|
-
let
|
|
115
|
-
if (
|
|
116
|
-
|
|
114
|
+
let f;
|
|
115
|
+
if (d === 0)
|
|
116
|
+
f = a, u = a.findIndex((x) => !x.disabled && x[o]);
|
|
117
117
|
else {
|
|
118
|
-
|
|
119
|
-
let
|
|
120
|
-
for (;
|
|
121
|
-
|
|
122
|
-
u =
|
|
118
|
+
f = a.slice(0, d);
|
|
119
|
+
let x = f.pop();
|
|
120
|
+
for (; x && x.disabled; )
|
|
121
|
+
x = f.pop();
|
|
122
|
+
u = x && a.findIndex((M) => M[o] === x[o]);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
if (u !== void 0) {
|
|
126
|
-
const
|
|
127
|
-
this.onNavigate(
|
|
126
|
+
const f = u - d;
|
|
127
|
+
this.onNavigate(h, i, f);
|
|
128
128
|
} else
|
|
129
|
-
u === void 0 && a.findIndex((
|
|
129
|
+
u === void 0 && a.findIndex((f) => f[o] === r[o]) === a.length - 1 && this.onNavigate(h, i);
|
|
130
130
|
}
|
|
131
131
|
else if (!this.props.skipDisabledItems && c)
|
|
132
|
-
this.onNavigate(
|
|
132
|
+
this.onNavigate(h, i);
|
|
133
133
|
else {
|
|
134
134
|
let u = null;
|
|
135
135
|
if (i === I.down || i === I.right)
|
|
136
|
-
u = a.slice(
|
|
136
|
+
u = a.slice(d + 1).find((f) => !f.disabled);
|
|
137
137
|
else if (i === I.up || i === I.left) {
|
|
138
|
-
const
|
|
139
|
-
for (u =
|
|
140
|
-
u =
|
|
138
|
+
const f = a.slice(0, d);
|
|
139
|
+
for (u = f.pop(); u && u.disabled; )
|
|
140
|
+
u = f.pop();
|
|
141
141
|
}
|
|
142
142
|
if (u) {
|
|
143
|
-
const
|
|
144
|
-
this.onNavigate(
|
|
143
|
+
const f = u.id - d - 1;
|
|
144
|
+
this.onNavigate(h, i, f);
|
|
145
145
|
} else
|
|
146
|
-
this.onNavigate(
|
|
146
|
+
this.onNavigate(h, i);
|
|
147
147
|
}
|
|
148
|
-
this.applyState(
|
|
148
|
+
this.applyState(h);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
e.preventDefault(), this.base.togglePopup(
|
|
152
|
-
},
|
|
153
|
-
c ? i === I.pageUp ? (e.preventDefault(), this.base.scrollPopupByPageSize(-1)) : i === I.pageDown ? (e.preventDefault(), this.base.scrollPopupByPageSize(1)) : e.altKey && i === I.up ?
|
|
150
|
+
const g = () => {
|
|
151
|
+
e.preventDefault(), this.base.togglePopup(h), this.applyState(h);
|
|
152
|
+
}, v = this.getFocusedIndex(), m = v === -1, y = !m && this.getCurrentValueDisabledStatus(o, a, v);
|
|
153
|
+
c ? i === I.pageUp ? (e.preventDefault(), this.base.scrollPopupByPageSize(-1)) : i === I.pageDown ? (e.preventDefault(), this.base.scrollPopupByPageSize(1)) : e.altKey && i === I.up ? g() : i === I.enter ? (e.preventDefault(), (o && !m && e.currentTarget.value ? a[v][o] : void 0) ? !t && o && y ? this.clearValueOnEnterOrEsc(e) : y || this.applyValueOnEnter(e.currentTarget.value, h) : this.applyValueOnEnter(e.currentTarget.value, h)) : i === I.esc && (!t && o && y && this.clearValueOnEnterOrEsc(e), this.applyValueOnRejectSuggestions(e.currentTarget.value, h)) : !c && i === I.esc ? this.clearValueOnEnterOrEsc(e) : e.altKey && i === I.down && g();
|
|
154
154
|
}, this.inputOnChange = (e) => {
|
|
155
155
|
const t = this.base.initState();
|
|
156
156
|
t.syntheticEvent = e;
|
|
@@ -158,9 +158,9 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
158
158
|
if (this.props.suggest) {
|
|
159
159
|
const a = n.selectionEnd === l.length;
|
|
160
160
|
let r = this.props.filter !== void 0 ? this.props.filter : this.state.text;
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
|
|
161
|
+
C(r) || (r = D(this.value, this.props.textField) || "");
|
|
162
|
+
const d = r && r === l, i = r && r.length > l.length;
|
|
163
|
+
d || i || !a ? this._suggested = "" : this.suggestValue(l);
|
|
164
164
|
}
|
|
165
165
|
this.props.filter === void 0 && (t.data.text = l), this.state.focusedItem !== void 0 && (t.data.focusedItem = void 0), o || this.base.togglePopup(t), this.base.filterChanged(l, t), this.applyState(t), this.setState({ group: void 0 });
|
|
166
166
|
}, this.clearButtonClick = (e) => {
|
|
@@ -177,7 +177,7 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
177
177
|
t.syntheticEvent = e, e.stopPropagation(), this.clearValue();
|
|
178
178
|
}, this.setValidity = () => {
|
|
179
179
|
this._input && this._input.setCustomValidity && this._input.setCustomValidity(
|
|
180
|
-
this.validity.valid ? "" : this.props.validationMessage ||
|
|
180
|
+
this.validity.valid ? "" : this.props.validationMessage || Se
|
|
181
181
|
);
|
|
182
182
|
}, ie(fe);
|
|
183
183
|
}
|
|
@@ -185,7 +185,7 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
185
185
|
return this.props.id;
|
|
186
186
|
}
|
|
187
187
|
get document() {
|
|
188
|
-
if (
|
|
188
|
+
if (A)
|
|
189
189
|
return this.element && this.element.ownerDocument || document;
|
|
190
190
|
}
|
|
191
191
|
/** @hidden */
|
|
@@ -215,8 +215,8 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
215
215
|
* The index of the selected item.
|
|
216
216
|
*/
|
|
217
217
|
get index() {
|
|
218
|
-
const { dataItemKey: s } = this.props, e =
|
|
219
|
-
return e.findIndex((o) =>
|
|
218
|
+
const { dataItemKey: s } = this.props, e = k(this.props), t = this.value;
|
|
219
|
+
return e.findIndex((o) => S(o, t, s));
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
222
|
* Gets the `name` property of the ComboBox.
|
|
@@ -244,25 +244,25 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
244
244
|
}
|
|
245
245
|
/** @hidden */
|
|
246
246
|
componentDidUpdate(s, e) {
|
|
247
|
-
var
|
|
248
|
-
const { dataItemKey: t, virtual: o, groupField: n = "", textField: l } = this.props, a =
|
|
247
|
+
var g;
|
|
248
|
+
const { dataItemKey: t, virtual: o, groupField: n = "", textField: l } = this.props, a = k(this.props), r = s.virtual ? s.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, i = s.opened !== void 0 ? s.opened : e.opened;
|
|
249
249
|
s.data !== a && this.checkForDuplicatePlainTextRecords();
|
|
250
|
-
const c = !i &&
|
|
251
|
-
if (this._valueOnDidUpdate =
|
|
250
|
+
const c = !i && d, h = this.value;
|
|
251
|
+
if (this._valueOnDidUpdate = h, this.base.didUpdate(), o && o.total !== r)
|
|
252
252
|
this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
|
|
253
253
|
else {
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
this.props.groupMode === "modern" && l &&
|
|
257
|
-
const
|
|
258
|
-
c && o ? this.base.scrollToVirtualItem(o,
|
|
254
|
+
const v = s.value !== void 0 ? s.value : e.value;
|
|
255
|
+
let m = this.hasDuplicates ? this.navigationIndex || 0 : a.findIndex((u) => S(u, h, t));
|
|
256
|
+
this.props.groupMode === "modern" && l && h && (m = (g = this.base.getGroupedDataModernMode(a, n)) == null ? void 0 : g.map((u) => u[l]).indexOf(h[l]));
|
|
257
|
+
const y = !S(v, h, t);
|
|
258
|
+
c && o ? this.base.scrollToVirtualItem(o, m) : c && !o ? (this.onPopupOpened(), a && a.length !== 0 && this.base.resetGroupStickyHeader(a[0][n], this), this.base.scrollToItem(m)) : (this.hasDuplicates || d && i && h && y) && this.base.scrollToItem(m);
|
|
259
259
|
}
|
|
260
260
|
c && this._input && this._input.focus(), this.setValidity();
|
|
261
261
|
}
|
|
262
262
|
/** @hidden */
|
|
263
263
|
componentDidMount() {
|
|
264
264
|
var s;
|
|
265
|
-
this.observerResize =
|
|
265
|
+
this.observerResize = A && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this)), this.base.didMount(), this.setValidity(), (s = this.document) != null && s.body && this.observerResize && this.observerResize.observe(this.document.body), this.checkForDuplicatePlainTextRecords();
|
|
266
266
|
}
|
|
267
267
|
/** @hidden */
|
|
268
268
|
componentWillUnmount() {
|
|
@@ -281,55 +281,55 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
281
281
|
label: l,
|
|
282
282
|
textField: a,
|
|
283
283
|
adaptive: r,
|
|
284
|
-
className:
|
|
284
|
+
className: d,
|
|
285
285
|
style: i,
|
|
286
286
|
loading: c,
|
|
287
|
-
iconClassName:
|
|
288
|
-
virtual:
|
|
289
|
-
size:
|
|
290
|
-
rounded:
|
|
291
|
-
fillMode:
|
|
287
|
+
iconClassName: h,
|
|
288
|
+
virtual: g,
|
|
289
|
+
size: v,
|
|
290
|
+
rounded: m,
|
|
291
|
+
fillMode: y,
|
|
292
292
|
opened: u = this.state.opened,
|
|
293
|
-
placeholder:
|
|
294
|
-
svgIcon:
|
|
295
|
-
} = this.props, M = !this.validityStyles || this.validity.valid, _ = this.props.filter !== void 0 ? this.props.filter : this.state.text, J = D(this.value, a), V =
|
|
296
|
-
F.enabled =
|
|
297
|
-
const [X, Z] = Y(this.props.prefix ||
|
|
293
|
+
placeholder: f,
|
|
294
|
+
svgIcon: x
|
|
295
|
+
} = this.props, M = !this.validityStyles || this.validity.valid, _ = this.props.filter !== void 0 ? this.props.filter : this.state.text, J = D(this.value, a), V = C(_) ? _ : J, Q = n && (!!V || C(this.value)), F = this.base.vs, N = this.props.id || this._inputId, P = this.mobileMode;
|
|
296
|
+
F.enabled = g !== void 0, g !== void 0 && (F.skip = g.skip, F.total = g.total, F.pageSize = g.pageSize);
|
|
297
|
+
const [X, Z] = Y(this.props.prefix || p.Fragment), [ee, te] = Y(this.props.suffix || p.Fragment), L = /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(
|
|
298
298
|
"span",
|
|
299
299
|
{
|
|
300
300
|
className: w(
|
|
301
301
|
"k-combobox k-input",
|
|
302
302
|
{
|
|
303
|
-
[`k-input-${O[
|
|
304
|
-
[`k-rounded-${De[
|
|
305
|
-
[`k-input-${
|
|
303
|
+
[`k-input-${O[v] || v}`]: v,
|
|
304
|
+
[`k-rounded-${De[m] || m}`]: m,
|
|
305
|
+
[`k-input-${y}`]: y,
|
|
306
306
|
"k-invalid": !M,
|
|
307
307
|
"k-loading": c,
|
|
308
308
|
"k-required": this.required,
|
|
309
309
|
"k-disabled": o
|
|
310
310
|
},
|
|
311
|
-
|
|
311
|
+
d
|
|
312
312
|
),
|
|
313
313
|
ref: this.componentRef,
|
|
314
314
|
style: l ? { ...i, width: void 0 } : i,
|
|
315
315
|
dir: t
|
|
316
316
|
},
|
|
317
|
-
this.props.prefix && /* @__PURE__ */
|
|
318
|
-
this.renderSearchBar(V || "", N,
|
|
319
|
-
Q && !c && /* @__PURE__ */
|
|
320
|
-
c && /* @__PURE__ */
|
|
321
|
-
this.props.suffix && /* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */
|
|
317
|
+
this.props.prefix && /* @__PURE__ */ p.createElement(X, { ...Z }),
|
|
318
|
+
this.renderSearchBar(V || "", N, f),
|
|
319
|
+
Q && !c && /* @__PURE__ */ p.createElement(be, { onClick: this.clearButtonClick, key: "clearbutton" }),
|
|
320
|
+
c && /* @__PURE__ */ p.createElement(ae, { className: "k-input-loading-icon", name: "loading", key: "loading" }),
|
|
321
|
+
this.props.suffix && /* @__PURE__ */ p.createElement(ee, { ...te }),
|
|
322
|
+
/* @__PURE__ */ p.createElement(
|
|
323
323
|
H,
|
|
324
324
|
{
|
|
325
325
|
tabIndex: -1,
|
|
326
326
|
type: "button",
|
|
327
327
|
"aria-label": u ? e : s,
|
|
328
|
-
icon:
|
|
329
|
-
svgIcon:
|
|
330
|
-
iconClass:
|
|
331
|
-
size:
|
|
332
|
-
fillMode:
|
|
328
|
+
icon: h ? void 0 : "caret-alt-down",
|
|
329
|
+
svgIcon: x || xe,
|
|
330
|
+
iconClass: h,
|
|
331
|
+
size: v,
|
|
332
|
+
fillMode: y,
|
|
333
333
|
rounded: null,
|
|
334
334
|
themeColor: "base",
|
|
335
335
|
className: "k-input-button",
|
|
@@ -339,8 +339,8 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
339
339
|
),
|
|
340
340
|
!P && this.renderListContainer()
|
|
341
341
|
), P && this.renderAdaptiveListContainer());
|
|
342
|
-
return l ? /* @__PURE__ */
|
|
343
|
-
|
|
342
|
+
return l ? /* @__PURE__ */ p.createElement(
|
|
343
|
+
pe,
|
|
344
344
|
{
|
|
345
345
|
label: l,
|
|
346
346
|
editorId: N,
|
|
@@ -354,21 +354,21 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
354
354
|
}
|
|
355
355
|
/** @hidden */
|
|
356
356
|
onNavigate(s, e, t) {
|
|
357
|
-
const { virtual: o = { skip: 0 } } = this.props, n =
|
|
357
|
+
const { virtual: o = { skip: 0 } } = this.props, n = k(this.props), l = this.props.filter ? this.props.filter : this.state.text;
|
|
358
358
|
let a = -1, r;
|
|
359
|
-
const
|
|
359
|
+
const d = this.base.vs, i = this.value;
|
|
360
360
|
this._suggested = "";
|
|
361
361
|
const c = this.hasDuplicates && this.duplicates.indexOf(i) !== -1;
|
|
362
|
-
if (a = this.getFocusedIndex(c), a !== -1 && !
|
|
362
|
+
if (a = this.getFocusedIndex(c), a !== -1 && !C(i))
|
|
363
363
|
this.handleItemSelect(a, s);
|
|
364
364
|
else if (l === "")
|
|
365
365
|
this.handleItemSelect(0, s);
|
|
366
366
|
else {
|
|
367
|
-
const
|
|
367
|
+
const h = o.skip + a;
|
|
368
368
|
r = this.base.navigation.navigate({
|
|
369
369
|
keyCode: e,
|
|
370
|
-
current:
|
|
371
|
-
max: (
|
|
370
|
+
current: h,
|
|
371
|
+
max: (d.enabled ? d.total : n.length) - 1,
|
|
372
372
|
min: 0,
|
|
373
373
|
skipItems: t || void 0
|
|
374
374
|
}), r !== void 0 && this.handleItemSelect(r, s);
|
|
@@ -379,9 +379,9 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
379
379
|
return s && e && e[t] && e[t].disabled;
|
|
380
380
|
}
|
|
381
381
|
applyValueOnEnter(s, e) {
|
|
382
|
-
const { textField: t, allowCustom: o } = this.props, n =
|
|
382
|
+
const { textField: t, allowCustom: o } = this.props, n = k(this.props), l = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = D(this.value, t) === s ? this.index : R(n, s, t), d = r !== -1;
|
|
383
383
|
let i;
|
|
384
|
-
if (this._suggested = "",
|
|
384
|
+
if (this._suggested = "", d)
|
|
385
385
|
i = n[r];
|
|
386
386
|
else if (o)
|
|
387
387
|
i = t !== void 0 ? { [t]: s } : s;
|
|
@@ -390,31 +390,31 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
390
390
|
this.triggerOnChange(i, e), l && this.base.togglePopup(e), this.props.filter === void 0 && this.state.text !== void 0 && (e.data.text = void 0), this.applyState(e);
|
|
391
391
|
}
|
|
392
392
|
applyValueOnRejectSuggestions(s, e) {
|
|
393
|
-
const { textField: t, allowCustom: o } = this.props, n =
|
|
394
|
-
if (this._suggested = "", s === a || s === "" && !
|
|
393
|
+
const { textField: t, allowCustom: o } = this.props, n = k(this.props), l = this.props.opened !== void 0 ? this.props.opened : this.state.opened, a = D(this.value, t);
|
|
394
|
+
if (this._suggested = "", s === a || s === "" && !C(a))
|
|
395
395
|
return this.closeOpenedApplyStateNonMobileMode(e, l), this.applyState(e);
|
|
396
|
-
const r =
|
|
396
|
+
const r = R(n, s, t, !0), d = r !== -1;
|
|
397
397
|
let i = null;
|
|
398
|
-
|
|
398
|
+
d ? i = n[r] : o && (i = s ? t ? { [t]: s } : s : null), this.triggerOnChange(i, e), this.state.text !== void 0 && (e.data.text = void 0, this.base.filterChanged("", e)), this.closeOpenedApplyStateNonMobileMode(e, l), this.applyState(e);
|
|
399
399
|
}
|
|
400
400
|
selectFocusedItem(s, e) {
|
|
401
|
-
const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { textField: o, virtual: n = { skip: 0 }, focusedItemIndex: l = K } = this.props, a =
|
|
402
|
-
return
|
|
401
|
+
const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { textField: o, virtual: n = { skip: 0 }, focusedItemIndex: l = K } = this.props, a = k(this.props), r = n.skip, d = s === "" && r === 0 ? 0 : l(a, s, o);
|
|
402
|
+
return d !== -1 ? this.handleItemSelect(d + r, e) : (this.triggerOnChange(null, e), this.state.text !== void 0 && (e.data.text = void 0)), t && this.base.togglePopup(e), this.applyState(e);
|
|
403
403
|
}
|
|
404
404
|
renderAdaptiveListContainer() {
|
|
405
|
-
const { windowWidth: s = 0 } = this.state, { header: e, footer: t, size: o, groupField: n, groupMode: l, list: a, virtual: r, adaptiveTitle:
|
|
406
|
-
let { group:
|
|
407
|
-
|
|
408
|
-
const
|
|
405
|
+
const { windowWidth: s = 0 } = this.state, { header: e, footer: t, size: o, groupField: n, groupMode: l, list: a, virtual: r, adaptiveTitle: d, groupStickyHeaderItemRender: i } = this.props, c = k(this.props), h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = this.base.getAdaptiveAnimation();
|
|
406
|
+
let { group: v } = this.state;
|
|
407
|
+
v === void 0 && n !== void 0 && (v = D(c[0], n));
|
|
408
|
+
const m = {
|
|
409
409
|
navigatable: !1,
|
|
410
410
|
navigatableElements: [],
|
|
411
|
-
expand:
|
|
412
|
-
animation:
|
|
413
|
-
onClose: (
|
|
411
|
+
expand: h,
|
|
412
|
+
animation: g,
|
|
413
|
+
onClose: (y) => this.toggleBtnClick(y),
|
|
414
414
|
animationStyles: s <= j ? { top: 0, width: "100%", height: "100%" } : void 0,
|
|
415
415
|
className: s <= j ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom k-actionsheet"
|
|
416
416
|
};
|
|
417
|
-
return /* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ p.createElement(ke, { ...m }, /* @__PURE__ */ p.createElement(ye, null, /* @__PURE__ */ p.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ p.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ p.createElement("div", { className: "k-text-center" }, d), /* @__PURE__ */ p.createElement("div", { className: "k-actionsheet-subtitle k-text-center" })), /* @__PURE__ */ p.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ p.createElement(
|
|
418
418
|
H,
|
|
419
419
|
{
|
|
420
420
|
tabIndex: 0,
|
|
@@ -428,7 +428,7 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
428
428
|
icon: "x",
|
|
429
429
|
svgIcon: Ie
|
|
430
430
|
}
|
|
431
|
-
))), /* @__PURE__ */
|
|
431
|
+
))), /* @__PURE__ */ p.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderMobileListFilter())), /* @__PURE__ */ p.createElement(Ce, { className: "!k-overflow-hidden" }, /* @__PURE__ */ p.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ p.createElement("div", { className: w(
|
|
432
432
|
{
|
|
433
433
|
"k-list": !a,
|
|
434
434
|
"k-list-lg": !0,
|
|
@@ -436,21 +436,21 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
436
436
|
"k-data-table": a,
|
|
437
437
|
[`k-table-${O[o] || o}`]: a && o
|
|
438
438
|
}
|
|
439
|
-
) }, e && /* @__PURE__ */
|
|
439
|
+
) }, e && /* @__PURE__ */ p.createElement("div", { className: "k-table-header" }, e), !a && v && c.length !== 0 && /* @__PURE__ */ p.createElement(z, { group: v, groupMode: l, render: i }), this.renderList(), t && /* @__PURE__ */ p.createElement("div", { className: "k-list-footer" }, t)))));
|
|
440
440
|
}
|
|
441
441
|
renderListContainer() {
|
|
442
|
-
const s = this.base, { dir: e, header: t, footer: o, groupField: n, groupMode: l, size: a, list: r, virtual:
|
|
443
|
-
let { group:
|
|
444
|
-
return
|
|
442
|
+
const s = this.base, { dir: e, header: t, footer: o, groupField: n, groupMode: l, size: a, list: r, virtual: d, groupStickyHeaderItemRender: i } = this.props, c = k(this.props), h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = s.getPopupSettings(), v = g.width !== void 0 ? g.width : s.popupWidth;
|
|
443
|
+
let { group: m } = this.state;
|
|
444
|
+
return m === void 0 && n !== void 0 && (m = D(c[0], n)), /* @__PURE__ */ p.createElement(
|
|
445
445
|
ge,
|
|
446
446
|
{
|
|
447
|
-
width:
|
|
447
|
+
width: v,
|
|
448
448
|
popupSettings: {
|
|
449
|
-
...
|
|
450
|
-
anchor:
|
|
451
|
-
show:
|
|
449
|
+
...g,
|
|
450
|
+
anchor: g.anchor || this.element,
|
|
451
|
+
show: h,
|
|
452
452
|
popupClass: w(
|
|
453
|
-
|
|
453
|
+
g.popupClass,
|
|
454
454
|
"k-list-container",
|
|
455
455
|
"k-combobox-popup"
|
|
456
456
|
)
|
|
@@ -458,15 +458,15 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
458
458
|
dir: e !== void 0 ? e : this.base.dirCalculated,
|
|
459
459
|
itemsCount: [c.length]
|
|
460
460
|
},
|
|
461
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ p.createElement("div", { className: w(
|
|
462
462
|
{
|
|
463
463
|
"k-list": !r,
|
|
464
464
|
[`k-list-${O[a] || a}`]: !r && a,
|
|
465
|
-
"k-virtual-list":
|
|
465
|
+
"k-virtual-list": d,
|
|
466
466
|
"k-data-table": r,
|
|
467
467
|
[`k-table-${O[a] || a}`]: r && a
|
|
468
468
|
}
|
|
469
|
-
) }, t && /* @__PURE__ */
|
|
469
|
+
) }, t && /* @__PURE__ */ p.createElement("div", { className: "k-table-header" }, t), !r && m && c.length !== 0 && /* @__PURE__ */ p.createElement(z, { group: m, groupMode: l, render: i }), this.renderList(), o && /* @__PURE__ */ p.createElement("div", { className: w(
|
|
470
470
|
{
|
|
471
471
|
"k-list-footer": !this.props.footerClassName
|
|
472
472
|
},
|
|
@@ -482,15 +482,15 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
482
482
|
itemRender: n,
|
|
483
483
|
groupHeaderItemRender: l,
|
|
484
484
|
virtual: a = { skip: 0, total: void 0 }
|
|
485
|
-
} = this.props, r =
|
|
486
|
-
return /* @__PURE__ */
|
|
487
|
-
|
|
485
|
+
} = this.props, r = k(this.props), d = s.getPopupSettings(), i = s.vs, c = a.skip, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = `translateY(${i.translate}px)`, v = h ? this.getFocusedIndex(this.hasDuplicates) : void 0, m = this.props.filter !== void 0 ? this.props.filter : this.state.text, y = D(this.value, e), u = C(m) && m !== y ? null : this.value, f = this.props.list || me;
|
|
486
|
+
return /* @__PURE__ */ p.createElement(
|
|
487
|
+
f,
|
|
488
488
|
{
|
|
489
489
|
id: s.listBoxId,
|
|
490
490
|
virtual: !!a,
|
|
491
|
-
show:
|
|
491
|
+
show: h,
|
|
492
492
|
data: r,
|
|
493
|
-
focusedIndex:
|
|
493
|
+
focusedIndex: v,
|
|
494
494
|
value: u,
|
|
495
495
|
textField: e,
|
|
496
496
|
valueField: t,
|
|
@@ -499,24 +499,24 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
499
499
|
isMultiColumn: this.props.isMultiColumn,
|
|
500
500
|
optionsGuid: s.guid,
|
|
501
501
|
hasDuplicates: this.hasDuplicates,
|
|
502
|
-
listRef: (
|
|
503
|
-
i.list = this.base.list =
|
|
502
|
+
listRef: (x) => {
|
|
503
|
+
i.list = this.base.list = x, this.itemHeight = 0;
|
|
504
504
|
},
|
|
505
|
-
wrapperStyle: this.state.windowWidth && this.state.windowWidth > W ? { maxHeight:
|
|
505
|
+
wrapperStyle: this.state.windowWidth && this.state.windowWidth > W ? { maxHeight: d.height } : {},
|
|
506
506
|
wrapperCssClass: w(
|
|
507
507
|
"k-list-content",
|
|
508
508
|
{
|
|
509
509
|
"k-list-scroller": !a
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
|
-
listStyle: i.enabled ? { transform:
|
|
512
|
+
listStyle: i.enabled ? { transform: g } : void 0,
|
|
513
513
|
key: "listkey",
|
|
514
514
|
skip: c,
|
|
515
515
|
onClick: this.handleItemClick,
|
|
516
516
|
itemRender: n,
|
|
517
517
|
groupHeaderItemRender: l,
|
|
518
518
|
noDataRender: o,
|
|
519
|
-
onMouseDown: (
|
|
519
|
+
onMouseDown: (x) => x.preventDefault(),
|
|
520
520
|
onScroll: this.onScroll,
|
|
521
521
|
wrapperRef: i.scrollerRef,
|
|
522
522
|
scroller: this.base.renderScrollElement(),
|
|
@@ -528,36 +528,45 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
528
528
|
const {
|
|
529
529
|
tabIndex: o,
|
|
530
530
|
disabled: n,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
531
|
+
title: l,
|
|
532
|
+
ariaLabelledBy: a,
|
|
533
|
+
ariaDescribedBy: r,
|
|
534
|
+
dataItemKey: d,
|
|
535
|
+
virtual: i = { skip: 0 },
|
|
536
|
+
accessKey: c
|
|
537
|
+
} = this.props, h = k(this.props), g = this.props.opened !== void 0 ? this.props.opened : this.state.opened, v = this.value, m = Math.max(0, h.findIndex((u) => S(u, v, d)));
|
|
538
|
+
this._suggested && !S(this._valueOnDidUpdate, v, d) && (this._suggested = "");
|
|
539
|
+
const y = {
|
|
540
|
+
accessKey: c
|
|
541
|
+
};
|
|
542
|
+
return /* @__PURE__ */ p.createElement(
|
|
535
543
|
ue,
|
|
536
544
|
{
|
|
537
545
|
id: e,
|
|
538
|
-
readOnly:
|
|
546
|
+
readOnly: g && this.mobileMode,
|
|
539
547
|
placeholder: t,
|
|
540
548
|
tabIndex: o,
|
|
541
|
-
title:
|
|
542
|
-
accessKey: this.props.accessKey,
|
|
549
|
+
title: l,
|
|
543
550
|
value: s + this._suggested,
|
|
544
551
|
suggestedText: this._suggested,
|
|
545
|
-
ref: (
|
|
552
|
+
ref: (u) => this._input = u && u.input,
|
|
546
553
|
onClick: this.onInputClick,
|
|
547
554
|
onKeyDown: this.onInputKeyDown,
|
|
548
555
|
onChange: this.inputOnChange,
|
|
549
556
|
onFocus: this.base.handleFocus,
|
|
550
557
|
onBlur: this.handleBlur,
|
|
551
558
|
disabled: n,
|
|
552
|
-
expanded:
|
|
559
|
+
expanded: g,
|
|
553
560
|
owns: this.base.listBoxId,
|
|
554
|
-
activedescendant: `option-${this.base.guid}-${
|
|
561
|
+
activedescendant: `option-${this.base.guid}-${m + i.skip}`,
|
|
555
562
|
role: "combobox",
|
|
556
|
-
ariaLabelledBy:
|
|
563
|
+
ariaLabelledBy: a,
|
|
557
564
|
ariaLabel: this.props.ariaLabel,
|
|
558
|
-
ariaDescribedBy:
|
|
565
|
+
ariaDescribedBy: r,
|
|
559
566
|
ariaRequired: this.required,
|
|
560
|
-
render: this.props.valueRender
|
|
567
|
+
render: this.props.valueRender,
|
|
568
|
+
ariaControls: this.base.listBoxId,
|
|
569
|
+
...y
|
|
561
570
|
}
|
|
562
571
|
);
|
|
563
572
|
}
|
|
@@ -569,11 +578,11 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
569
578
|
}
|
|
570
579
|
triggerOnChange(s, e) {
|
|
571
580
|
const t = this.value;
|
|
572
|
-
!this.hasDuplicates && (!
|
|
581
|
+
!this.hasDuplicates && (!C(t) && !C(s) || S(t, s, this.props.dataItemKey)) || (this.props.value === void 0 && (e.data.value = s), this._valueDuringOnChange = s, e.events.push({ type: "onChange" }));
|
|
573
582
|
}
|
|
574
583
|
getFocusedIndex(s) {
|
|
575
|
-
const e = this.value, { textField: t, dataItemKey: o, virtual: n = { skip: 0 }, focusedItemIndex: l = K, skipDisabledItems: a } = this.props, r =
|
|
576
|
-
return s && this.navigationIndex !== void 0 ? this.navigationIndex :
|
|
584
|
+
const e = this.value, { textField: t, dataItemKey: o, virtual: n = { skip: 0 }, focusedItemIndex: l = K, skipDisabledItems: a } = this.props, r = k(this.props), d = this.props.filter ? this.props.filter : this.state.text;
|
|
585
|
+
return s && this.navigationIndex !== void 0 ? this.navigationIndex : C(e) && d === void 0 ? r.findIndex((i) => S(i, e, o)) : d ? l(r, d, t) : a && t && !d && n.skip === 0 ? r.findIndex((i) => !i.disabled && i[t]) : n.skip === 0 ? 0 : -1;
|
|
577
586
|
}
|
|
578
587
|
suggestValue(s) {
|
|
579
588
|
const { data: e, textField: t } = this.props;
|
|
@@ -589,29 +598,29 @@ const Ce = "Please enter a valid value!", { sizeMap: O, roundedMap: De } = pe, E
|
|
|
589
598
|
};
|
|
590
599
|
E.displayName = "ComboBox", E.propTypes = {
|
|
591
600
|
...B.propTypes,
|
|
592
|
-
size:
|
|
593
|
-
rounded:
|
|
594
|
-
fillMode:
|
|
595
|
-
dataItemKey:
|
|
596
|
-
groupField:
|
|
597
|
-
groupMode:
|
|
598
|
-
isMultiColumn:
|
|
599
|
-
suggest:
|
|
600
|
-
placeholder:
|
|
601
|
-
title:
|
|
602
|
-
allowCustom:
|
|
603
|
-
clearButton:
|
|
604
|
-
iconClassName:
|
|
601
|
+
size: b.oneOf([null, "small", "medium", "large"]),
|
|
602
|
+
rounded: b.oneOf([null, "small", "medium", "large", "full"]),
|
|
603
|
+
fillMode: b.oneOf([null, "solid", "flat", "outline"]),
|
|
604
|
+
dataItemKey: b.string,
|
|
605
|
+
groupField: b.string,
|
|
606
|
+
groupMode: b.oneOf([void 0, "classic", "modern"]),
|
|
607
|
+
isMultiColumn: b.bool,
|
|
608
|
+
suggest: b.bool,
|
|
609
|
+
placeholder: b.string,
|
|
610
|
+
title: b.string,
|
|
611
|
+
allowCustom: b.bool,
|
|
612
|
+
clearButton: b.bool,
|
|
613
|
+
iconClassName: b.string,
|
|
605
614
|
svgIcon: oe,
|
|
606
|
-
validationMessage:
|
|
607
|
-
required:
|
|
608
|
-
id:
|
|
609
|
-
ariaLabelledBy:
|
|
610
|
-
ariaLabel:
|
|
611
|
-
ariaDescribedBy:
|
|
612
|
-
list:
|
|
613
|
-
valueRender:
|
|
614
|
-
skipDisabledItems:
|
|
615
|
+
validationMessage: b.string,
|
|
616
|
+
required: b.bool,
|
|
617
|
+
id: b.string,
|
|
618
|
+
ariaLabelledBy: b.string,
|
|
619
|
+
ariaLabel: b.string,
|
|
620
|
+
ariaDescribedBy: b.string,
|
|
621
|
+
list: b.any,
|
|
622
|
+
valueRender: b.func,
|
|
623
|
+
skipDisabledItems: b.bool
|
|
615
624
|
}, E.defaultProps = {
|
|
616
625
|
...B.defaultProps,
|
|
617
626
|
size: "medium",
|