@progress/kendo-vue-dropdowns 6.4.1 → 6.5.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoComplete/AutoComplete.mjs +5 -5
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +51 -48
- package/DropDownList/DropDownList.mjs +18 -18
- package/DropDownTree/DropDownTree.mjs +18 -18
- package/MultiSelect/MultiSelect.mjs +14 -14
- package/MultiSelect/TagList.mjs +5 -5
- package/MultiSelectTree/MultiSelectTree.mjs +15 -15
- package/common/ClearButton.mjs +1 -1
- package/common/List.mjs +5 -5
- package/common/ListFilter.mjs +4 -4
- package/common/SearchBar.mjs +6 -6
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/index.d.mts +1 -0
- package/index.d.ts +1 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as he, h as u, createVNode as i, isVNode as ce } from "vue";
|
|
9
|
-
import {
|
|
9
|
+
import { noop as T, Keys as a, getTabIndex as fe, templateRendering as h, getListeners as c, getTemplate as w, getRef as f, canUseDOM as me, kendoThemeMaps as ge, validatePackage as ve, guid as P, setRef as m, Icon as W, classNames as A } from "@progress/kendo-vue-common";
|
|
10
10
|
import { Popup as be } from "@progress/kendo-vue-popup";
|
|
11
11
|
import { provideLocalizationService as ye } from "@progress/kendo-vue-intl";
|
|
12
12
|
import { TreeView as K } from "@progress/kendo-vue-treeview";
|
|
13
13
|
import { packageMetadata as we } from "../package-metadata.mjs";
|
|
14
|
-
import {
|
|
14
|
+
import { areSame as ke, getItemValue as Se, isPresent as $e } from "../common/utils.mjs";
|
|
15
15
|
import { ListNoData as Fe } from "./ListNoData.mjs";
|
|
16
16
|
import { nodata as L, messages as N, clear as z } from "../messages/main.mjs";
|
|
17
17
|
import { FloatingLabel as Ve } from "@progress/kendo-vue-labels";
|
|
18
18
|
import { ListFilter as j } from "../common/ListFilter.mjs";
|
|
19
19
|
import { Button as q } from "@progress/kendo-vue-buttons";
|
|
20
20
|
import { xIcon as _, caretAltDownIcon as xe } from "@progress/kendo-svg-icons";
|
|
21
|
-
import {
|
|
21
|
+
import { MOBILE_MEDIUM_DEVICE as Re, MOBILE_SMALL_DEVICE as Ie } from "../common/constants.mjs";
|
|
22
22
|
import { ActionSheet as De } from "@progress/kendo-vue-layout";
|
|
23
23
|
import Ce from "../common/DropDownBase.mjs";
|
|
24
24
|
function G(e) {
|
|
@@ -27,7 +27,7 @@ function G(e) {
|
|
|
27
27
|
const {
|
|
28
28
|
sizeMap: Me,
|
|
29
29
|
roundedMap: Oe
|
|
30
|
-
} =
|
|
30
|
+
} = ge, Be = "Please select a value from the list!", H = (e) => e.split("_").map((t) => parseInt(t, 10)), V = (e, t) => {
|
|
31
31
|
const {
|
|
32
32
|
validationMessage: s,
|
|
33
33
|
valid: n,
|
|
@@ -172,13 +172,13 @@ const {
|
|
|
172
172
|
},
|
|
173
173
|
adaptiveModeBreakpoints: {
|
|
174
174
|
default: {
|
|
175
|
-
small:
|
|
176
|
-
medium:
|
|
175
|
+
small: Ie,
|
|
176
|
+
medium: Re
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
created() {
|
|
181
|
-
this.observer = null,
|
|
181
|
+
this.observer = null, ve(we), this.base = new Ce(this), this.componentGuid = P(), this.anchor = P();
|
|
182
182
|
},
|
|
183
183
|
data() {
|
|
184
184
|
return {
|
|
@@ -241,7 +241,7 @@ const {
|
|
|
241
241
|
return this.value !== void 0 ? this.value : this.$props.modelValue !== void 0 ? this.$props.modelValue : this.currentValue;
|
|
242
242
|
},
|
|
243
243
|
hasValue() {
|
|
244
|
-
return
|
|
244
|
+
return $e(this.computedValue);
|
|
245
245
|
},
|
|
246
246
|
currentValueText() {
|
|
247
247
|
return this.hasValue ? Se(this.computedValue, this.$props.textField) : "";
|
|
@@ -254,10 +254,10 @@ const {
|
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
mounted() {
|
|
257
|
-
this.observer = me && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.observer && this.observer.observe(document.body), this.elementRef =
|
|
257
|
+
this.observer = me && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.observer && this.observer.observe(document.body), this.elementRef = f(this, "kendoAnchor"), this.inputRef = f(this, "input"), this.selectRef = f(this, "select"), this.treeViewRef = f(this, "treeView"), this.skipFocusRef = !1, this.popupRef = f(this, "popup"), this.calculatePopupWidth();
|
|
258
258
|
},
|
|
259
259
|
updated() {
|
|
260
|
-
this.inputRef =
|
|
260
|
+
this.inputRef = f(this, "input"), this.treeViewRef = f(this, "treeView"), this.popupRef && this.isOpen && this.hasValue && this.popupRef.reposition(), this.setValidity(), this.calculatePopupWidth();
|
|
261
261
|
},
|
|
262
262
|
render() {
|
|
263
263
|
let e;
|
|
@@ -276,17 +276,17 @@ const {
|
|
|
276
276
|
required: I,
|
|
277
277
|
validityStyles: Q,
|
|
278
278
|
adaptiveTitle: X
|
|
279
|
-
} = this.$props, k =
|
|
279
|
+
} = this.$props, k = fe(this.$props.tabIndex, d), D = ye(this), Y = V({
|
|
280
280
|
validationMessage: U,
|
|
281
281
|
valid: J,
|
|
282
282
|
required: I
|
|
283
|
-
}, this.hasValue), C = this.adaptiveState, g = this.$props.dir, M =
|
|
283
|
+
}, this.hasValue), C = this.adaptiveState, g = this.$props.dir, M = h.call(this, this.item, c.call(this)), Z = h.call(this, this.valueRender, c.call(this)), ee = h.call(this, this.$props.header, c.call(this)), te = h.call(this, this.$props.footer, c.call(this)), S = w.call(this, {
|
|
284
284
|
h: u,
|
|
285
285
|
template: ee
|
|
286
286
|
}), $ = w.call(this, {
|
|
287
287
|
h: u,
|
|
288
288
|
template: te
|
|
289
|
-
}), ie =
|
|
289
|
+
}), ie = h.call(this, this.$props.listNoData, c.call(this)), se = i(Fe, null, G(e = D.toLanguageString(L, N[L])) ? e : {
|
|
290
290
|
default: () => [e]
|
|
291
291
|
}), O = w.call(this, {
|
|
292
292
|
h: u,
|
|
@@ -333,7 +333,7 @@ const {
|
|
|
333
333
|
fillMode: F,
|
|
334
334
|
onFocus: this.onFocus,
|
|
335
335
|
onBlur: this.onBlur
|
|
336
|
-
}, null)])], le =
|
|
336
|
+
}, null)])], le = h.call(this, ae, c.call(this)), re = () => {
|
|
337
337
|
const y = this.base.getTemplateDef.call(this, S, u), E = this.base.getTemplateDef.call(this, $, u);
|
|
338
338
|
return [y && i("div", {
|
|
339
339
|
class: "k-list-header"
|
|
@@ -357,7 +357,7 @@ const {
|
|
|
357
357
|
}, null) : O, E && i("div", {
|
|
358
358
|
class: "k-list-footer"
|
|
359
359
|
}, [E])];
|
|
360
|
-
}, de =
|
|
360
|
+
}, de = h.call(this, re, c.call(this)), pe = function() {
|
|
361
361
|
return i(De, {
|
|
362
362
|
expand: this.isOpen,
|
|
363
363
|
animation: !0,
|
|
@@ -590,7 +590,7 @@ const {
|
|
|
590
590
|
this.focusElement(o);
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
this.switchFocus(
|
|
593
|
+
this.switchFocus(T);
|
|
594
594
|
} else t === a.down && this.switchFocus(() => {
|
|
595
595
|
this.focusElement(o || n);
|
|
596
596
|
});
|
|
@@ -652,7 +652,7 @@ const {
|
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
654
|
onWrapperMouseDown() {
|
|
655
|
-
this.focused && this.switchFocus(
|
|
655
|
+
this.focused && this.switchFocus(T);
|
|
656
656
|
},
|
|
657
657
|
changeValue(e, t, s) {
|
|
658
658
|
const n = {
|
|
@@ -663,7 +663,7 @@ const {
|
|
|
663
663
|
this.$emit("changemodel", t), this.$emit("update:modelValue", t), this.$emit("change", n), this.currentValue = t;
|
|
664
664
|
},
|
|
665
665
|
onChange(e) {
|
|
666
|
-
if (
|
|
666
|
+
if (ke(e.item, this.computedValue, this.dataItemKey) || !this.$el)
|
|
667
667
|
return;
|
|
668
668
|
const {
|
|
669
669
|
item: t,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as $e,
|
|
9
|
-
import {
|
|
8
|
+
import { defineComponent as $e, h as _, createVNode as r, ref as Q, inject as Fe, isVNode as Te } from "vue";
|
|
9
|
+
import { templateRendering as b, getListeners as I, Keys as f, canUseDOM as Oe, getRef as X, guid as Z, classNames as R, kendoThemeMaps as Ve, setRef as we, Icon as Re } from "@progress/kendo-vue-common";
|
|
10
10
|
import { ListContainer as De } from "../common/ListContainer.mjs";
|
|
11
11
|
import { List as Be } from "../common/List.mjs";
|
|
12
12
|
import { TagList as Me } from "./TagList.mjs";
|
|
@@ -15,10 +15,10 @@ import Le from "../common/DropDownBase.mjs";
|
|
|
15
15
|
import { GroupStickyHeader as ee } from "../common/GroupStickyHeader.mjs";
|
|
16
16
|
import { ClearButton as He } from "../common/ClearButton.mjs";
|
|
17
17
|
import { ActiveDescendant as L } from "../common/settings.mjs";
|
|
18
|
-
import { getItemValue as x, areSame as te, removeDataItems as H, isPresent as
|
|
18
|
+
import { getItemValue as x, itemIndexStartsWith as Ee, areSame as te, removeDataItems as H, isPresent as Pe, preventDefaultNonInputs as Ne, matchDataCollections as Ke } from "../common/utils.mjs";
|
|
19
19
|
import { xIcon as _e, plusIcon as je } from "@progress/kendo-svg-icons";
|
|
20
20
|
import { Button as j } from "@progress/kendo-vue-buttons";
|
|
21
|
-
import {
|
|
21
|
+
import { MOBILE_MEDIUM_DEVICE as ze, MOBILE_SMALL_DEVICE as We } from "../common/constants.mjs";
|
|
22
22
|
import { ActionSheet as Ge } from "@progress/kendo-vue-layout";
|
|
23
23
|
import { ListFilter as qe } from "../common/ListFilter.mjs";
|
|
24
24
|
import { provideLocalizationService as Ue } from "@progress/kendo-vue-intl";
|
|
@@ -26,11 +26,11 @@ import { adaptiveModeFooterCancel as se, messages as ie, adaptiveModeFooterApply
|
|
|
26
26
|
const {
|
|
27
27
|
sizeMap: z,
|
|
28
28
|
roundedMap: Ye
|
|
29
|
-
} =
|
|
29
|
+
} = Ve;
|
|
30
30
|
function E(e) {
|
|
31
31
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
|
|
32
32
|
}
|
|
33
|
-
const Je = "Please enter a valid value!", Qe = (e) => e.preventDefault(), ae = (e, t, s) => !!e != !!t || e.text !== t.text ? !1 : e === t ||
|
|
33
|
+
const Je = "Please enter a valid value!", Qe = (e) => e.preventDefault(), ae = (e, t, s) => !!e != !!t || e.text !== t.text ? !1 : e === t || Ke(e.data, t.data, s), oe = (e) => e === S.CustomItem;
|
|
34
34
|
var S = /* @__PURE__ */ function(e) {
|
|
35
35
|
return e[e.None = 0] = "None", e[e.ListItem = 1] = "ListItem", e[e.CustomItem = 2] = "CustomItem", e;
|
|
36
36
|
}(S || {});
|
|
@@ -213,7 +213,7 @@ const vt = /* @__PURE__ */ $e({
|
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
created() {
|
|
216
|
-
this.observer = null, this.valuesItemsDuringOnChange = null, this._tags = [], this._skipFocusEvent = !1, this.scrollToFocused = !1, this.base = new Le(this), this.anchor =
|
|
216
|
+
this.observer = null, this.valuesItemsDuringOnChange = null, this._tags = [], this._skipFocusEvent = !1, this.scrollToFocused = !1, this.base = new Le(this), this.anchor = Z(), this.inputId = Z();
|
|
217
217
|
},
|
|
218
218
|
inject: {
|
|
219
219
|
kendoLocalizationService: {
|
|
@@ -221,8 +221,8 @@ const vt = /* @__PURE__ */ $e({
|
|
|
221
221
|
},
|
|
222
222
|
adaptiveModeBreakpoints: {
|
|
223
223
|
default: {
|
|
224
|
-
small:
|
|
225
|
-
medium:
|
|
224
|
+
small: We,
|
|
225
|
+
medium: ze
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
},
|
|
@@ -289,7 +289,7 @@ const vt = /* @__PURE__ */ $e({
|
|
|
289
289
|
this.scrollToFocused = !1, this.searchBarRef(), this.setValidity();
|
|
290
290
|
},
|
|
291
291
|
mounted() {
|
|
292
|
-
this.observer = Oe && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.observer && this.observer.observe(document.body), this.hasMounted = !0, this.input = this.inputRef.input, this.base.wrapper =
|
|
292
|
+
this.observer = Oe && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.observer && this.observer.observe(document.body), this.hasMounted = !0, this.input = this.inputRef.input, this.base.wrapper = X(this, "kendoAnchor"), this.element = X(this, "kendoAnchor"), this.base.didMount(), this.searchBarRef(), this.setValidity();
|
|
293
293
|
},
|
|
294
294
|
methods: {
|
|
295
295
|
clearFilter(e) {
|
|
@@ -374,7 +374,7 @@ const vt = /* @__PURE__ */ $e({
|
|
|
374
374
|
const t = this.isOpen, s = this.base.initState();
|
|
375
375
|
s.event = e, e.stopPropagation(), this.computedValue().length > 0 && this.triggerOnChange([], s), this.currentFocusedIndex !== void 0 && (s.data.currentFocusedIndex = void 0), t && this.base.togglePopup(s);
|
|
376
376
|
const i = this.$props.filter !== void 0 ? this.$props.filter : this.currentText;
|
|
377
|
-
|
|
377
|
+
Pe(i) && i !== "" && this.base.filterChanged("", s), this.currentText && (s.data.currentText = ""), this.applyState(s);
|
|
378
378
|
},
|
|
379
379
|
onInputKeyDown(e) {
|
|
380
380
|
this.isScrolling && (this.isScrolling = !1);
|
|
@@ -440,7 +440,7 @@ const vt = /* @__PURE__ */ $e({
|
|
|
440
440
|
dataItemKey: n,
|
|
441
441
|
virtual: o,
|
|
442
442
|
textField: l,
|
|
443
|
-
focusedItemIndex: d =
|
|
443
|
+
focusedItemIndex: d = Ee
|
|
444
444
|
} = this.$props, c = o && o.skip || 0;
|
|
445
445
|
let a;
|
|
446
446
|
if (e !== void 0)
|
|
@@ -826,7 +826,7 @@ const vt = /* @__PURE__ */ $e({
|
|
|
826
826
|
}, Y = [_(function() {
|
|
827
827
|
let u;
|
|
828
828
|
return r("span", {
|
|
829
|
-
ref:
|
|
829
|
+
ref: we(this, "kendoAnchor"),
|
|
830
830
|
class: R("k-multiselect", "k-input", {
|
|
831
831
|
[`k-input-${z[a] || a}`]: a,
|
|
832
832
|
[`k-rounded-${Ye[g] || g}`]: g,
|
|
@@ -844,7 +844,7 @@ const vt = /* @__PURE__ */ $e({
|
|
|
844
844
|
dir: s,
|
|
845
845
|
onFocusin: this.handleFocus,
|
|
846
846
|
onClick: this.handleWrapperClick,
|
|
847
|
-
onMousedown:
|
|
847
|
+
onMousedown: Ne
|
|
848
848
|
}, [r(Me, {
|
|
849
849
|
removeTagIcon: $,
|
|
850
850
|
tagsRounded: m,
|
package/MultiSelect/TagList.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as h, createVNode as i, h as v } from "vue";
|
|
9
|
-
import {
|
|
9
|
+
import { getDefaultSlots as S, classNames as T, getTemplate as $, kendoThemeMaps as b } from "@progress/kendo-vue-common";
|
|
10
10
|
import { Chip as k } from "@progress/kendo-vue-buttons";
|
|
11
11
|
const x = (e) => e.preventDefault(), y = (e) => e.event.stopPropagation(), C = /* @__PURE__ */ h({
|
|
12
12
|
name: "TagList",
|
|
@@ -50,7 +50,7 @@ const x = (e) => e.preventDefault(), y = (e) => e.event.stopPropagation(), C = /
|
|
|
50
50
|
} = this.$props;
|
|
51
51
|
return {
|
|
52
52
|
"k-chip-list": !0,
|
|
53
|
-
[`k-chip-list-${
|
|
53
|
+
[`k-chip-list-${b.sizeMap[e] || e}`]: e,
|
|
54
54
|
"k-disabled": t
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -61,7 +61,7 @@ const x = (e) => e.preventDefault(), y = (e) => e.event.stopPropagation(), C = /
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
render() {
|
|
64
|
-
const e =
|
|
64
|
+
const e = S(this), {
|
|
65
65
|
dataItems: t,
|
|
66
66
|
guid: n,
|
|
67
67
|
size: r,
|
|
@@ -72,7 +72,7 @@ const x = (e) => e.preventDefault(), y = (e) => e.event.stopPropagation(), C = /
|
|
|
72
72
|
className: c
|
|
73
73
|
} = this.$props;
|
|
74
74
|
return i("div", {
|
|
75
|
-
class:
|
|
75
|
+
class: T("k-input-values", c),
|
|
76
76
|
id: p,
|
|
77
77
|
style: this.$attrs.style
|
|
78
78
|
}, [i("div", {
|
|
@@ -98,7 +98,7 @@ const x = (e) => e.preventDefault(), y = (e) => e.event.stopPropagation(), C = /
|
|
|
98
98
|
rounded: d,
|
|
99
99
|
size: r
|
|
100
100
|
}, null);
|
|
101
|
-
return
|
|
101
|
+
return $.call(this, {
|
|
102
102
|
h: v,
|
|
103
103
|
template: this.$props.tagRender,
|
|
104
104
|
defaultRendering: g,
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as me, h as S, createVNode as s, isVNode as ge } from "vue";
|
|
9
|
-
import {
|
|
9
|
+
import { Keys as a, noop as N, getTabIndex as ve, templateRendering as u, getListeners as f, getTemplate as D, getRef as g, canUseDOM as be, validatePackage as ke, guid as z, setRef as v, classNames as V, kendoThemeMaps as Se, Icon as ye } from "@progress/kendo-vue-common";
|
|
10
10
|
import { Popup as Fe } from "@progress/kendo-vue-popup";
|
|
11
11
|
import { provideLocalizationService as we } from "@progress/kendo-vue-intl";
|
|
12
12
|
import { TreeView as q } from "@progress/kendo-vue-treeview";
|
|
13
13
|
import { packageMetadata as Re } from "../package-metadata.mjs";
|
|
14
|
-
import {
|
|
14
|
+
import { matchTags as j, areSame as xe, getItemValue as _ } from "../common/utils.mjs";
|
|
15
15
|
import { ListNoData as Ve } from "../DropDownTree/ListNoData.mjs";
|
|
16
16
|
import { nodata as G, messages as E, adaptiveModeFooterCancel as H, adaptiveModeFooterApply as U } from "../messages/main.mjs";
|
|
17
17
|
import { FloatingLabel as $e } from "@progress/kendo-vue-labels";
|
|
@@ -20,7 +20,7 @@ import { TagList as Ie } from "../MultiSelect/TagList.mjs";
|
|
|
20
20
|
import { ClearButton as Te } from "../common/ClearButton.mjs";
|
|
21
21
|
import { ListFilter as J } from "../common/ListFilter.mjs";
|
|
22
22
|
import { getMultiSelectTreeValue as Ce } from "./utils.mjs";
|
|
23
|
-
import {
|
|
23
|
+
import { MOBILE_MEDIUM_DEVICE as Me, MOBILE_SMALL_DEVICE as De } from "../common/constants.mjs";
|
|
24
24
|
import { ActionSheet as Ee } from "@progress/kendo-vue-layout";
|
|
25
25
|
import { xIcon as Be } from "@progress/kendo-svg-icons";
|
|
26
26
|
import Ae from "../common/DropDownBase.mjs";
|
|
@@ -30,7 +30,7 @@ function $(e) {
|
|
|
30
30
|
const Oe = "Please select a value from the list!", {
|
|
31
31
|
sizeMap: Q,
|
|
32
32
|
roundedMap: Pe
|
|
33
|
-
} =
|
|
33
|
+
} = Se, Ke = (e) => e.split("_").map((t) => parseInt(t, 10)), X = (e, t) => {
|
|
34
34
|
const {
|
|
35
35
|
validationMessage: i,
|
|
36
36
|
valid: n,
|
|
@@ -168,13 +168,13 @@ const Oe = "Please select a value from the list!", {
|
|
|
168
168
|
},
|
|
169
169
|
adaptiveModeBreakpoints: {
|
|
170
170
|
default: {
|
|
171
|
-
small:
|
|
172
|
-
medium:
|
|
171
|
+
small: De,
|
|
172
|
+
medium: Me
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
created() {
|
|
177
|
-
this.observer = null,
|
|
177
|
+
this.observer = null, ke(Re), this.base = new Ae(this), this.componentGuid = z(), this.anchor = z();
|
|
178
178
|
},
|
|
179
179
|
data() {
|
|
180
180
|
return {
|
|
@@ -214,13 +214,13 @@ const Oe = "Please select a value from the list!", {
|
|
|
214
214
|
tagsToRenderRef() {
|
|
215
215
|
if (this.initialAdaptiveRenderingValues === void 0)
|
|
216
216
|
return this.tags === void 0 ? this.computedValue.map((e) => ({
|
|
217
|
-
text:
|
|
217
|
+
text: _(e, this.$props.textField),
|
|
218
218
|
data: [e]
|
|
219
219
|
})) : [...this.tags];
|
|
220
220
|
{
|
|
221
221
|
const e = this.initialAdaptiveRenderingValues;
|
|
222
222
|
return e.length > 0 && e.map((t) => ({
|
|
223
|
-
text:
|
|
223
|
+
text: _(t, this.$props.textField),
|
|
224
224
|
data: [t]
|
|
225
225
|
}));
|
|
226
226
|
}
|
|
@@ -257,7 +257,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
257
257
|
required: I,
|
|
258
258
|
validityStyles: ee,
|
|
259
259
|
adaptiveTitle: te
|
|
260
|
-
} = this.$props, w =
|
|
260
|
+
} = this.$props, w = ve(this.$props.tabIndex, r), T = we(this), ie = X({
|
|
261
261
|
validationMessage: Y,
|
|
262
262
|
valid: Z,
|
|
263
263
|
required: I
|
|
@@ -410,7 +410,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
410
410
|
onTagdelete: this.onTagDelete,
|
|
411
411
|
dataItems: this.tagsToRenderRef,
|
|
412
412
|
guid: t,
|
|
413
|
-
focused: this.focusedTagState ? this.tagsToRenderRef.find((p) => this.focusedTagState &&
|
|
413
|
+
focused: this.focusedTagState ? this.tagsToRenderRef.find((p) => this.focusedTagState && j(p, this.focusedTagState, n)) : void 0,
|
|
414
414
|
tagsRounded: k,
|
|
415
415
|
size: c,
|
|
416
416
|
fillMode: y
|
|
@@ -425,7 +425,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
425
425
|
}, [this.tagsToRenderRef.length === 0 && s("span", {
|
|
426
426
|
class: "k-input-value-text"
|
|
427
427
|
}, [l])]),
|
|
428
|
-
this.$props.loading && s(
|
|
428
|
+
this.$props.loading && s(ye, {
|
|
429
429
|
class: "k-input-loading-icon",
|
|
430
430
|
name: "loading"
|
|
431
431
|
}, null),
|
|
@@ -657,7 +657,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
657
657
|
}
|
|
658
658
|
},
|
|
659
659
|
onWrapperMouseDown() {
|
|
660
|
-
this.focusedState && this.switchFocus(
|
|
660
|
+
this.focusedState && this.switchFocus(N);
|
|
661
661
|
},
|
|
662
662
|
onWrapperClick(e) {
|
|
663
663
|
if (!this.$props.disabled && !e.defaultPrevented) {
|
|
@@ -682,7 +682,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
682
682
|
};
|
|
683
683
|
if (this.computedValue && this.computedValue.length > 0 && (t === a.left || t === a.right || t === a.home || t === a.end || t === a.delete || t === a.backspace)) {
|
|
684
684
|
const l = this.tagsToRenderRef;
|
|
685
|
-
let d = this.focusedTagState ? l.findIndex((F) =>
|
|
685
|
+
let d = this.focusedTagState ? l.findIndex((F) => j(F, this.focusedTagState, this.dataItemKey)) : -1, h;
|
|
686
686
|
const b = d !== -1;
|
|
687
687
|
t === a.left ? (b ? d = Math.max(0, d - 1) : d = l.length - 1, h = l[d]) : t === a.right ? b ? (d = Math.min(l.length - 1, d + 1), h = l[d]) : h = l[0] : t === a.home ? h = l[0] : t === a.end ? h = l[l.length - 1] : (t === a.delete || t === a.backspace) && b && this.changeValue(r, l[d].data, "delete"), h !== this.focusedTagState && (this.focusedTagState = h);
|
|
688
688
|
}
|
|
@@ -699,7 +699,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
699
699
|
this.focusElement(o || this.elementRef);
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
this.switchFocus(
|
|
702
|
+
this.switchFocus(N);
|
|
703
703
|
} else t === a.down && this.switchFocus(() => {
|
|
704
704
|
this.focusElement(o || n);
|
|
705
705
|
});
|
package/common/ClearButton.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as t,
|
|
8
|
+
import { defineComponent as t, createVNode as o, inject as i } from "vue";
|
|
9
9
|
import { xIcon as r } from "@progress/kendo-svg-icons";
|
|
10
10
|
import { provideLocalizationService as c } from "@progress/kendo-vue-intl";
|
|
11
11
|
import { clear as n, messages as a } from "../messages/main.mjs";
|
package/common/List.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as D,
|
|
8
|
+
import { defineComponent as D, createVNode as i, ref as N, inject as B, h as G } from "vue";
|
|
9
9
|
import { ListItem as V } from "./ListItem.mjs";
|
|
10
10
|
import { ListGroupItem as E } from "./ListGroupItem.mjs";
|
|
11
11
|
import { areSame as k, getItemValue as y } from "./utils.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { getDefaultSlots as H, setRef as T, getRef as q, getTemplate as J } from "@progress/kendo-vue-common";
|
|
13
13
|
import { provideLocalizationService as K } from "@progress/kendo-vue-intl";
|
|
14
14
|
import { nodata as v, messages as M } from "../messages/main.mjs";
|
|
15
15
|
const te = /* @__PURE__ */ D({
|
|
@@ -55,7 +55,7 @@ const te = /* @__PURE__ */ D({
|
|
|
55
55
|
};
|
|
56
56
|
},
|
|
57
57
|
mounted() {
|
|
58
|
-
this.list =
|
|
58
|
+
this.list = q(this, "list");
|
|
59
59
|
},
|
|
60
60
|
methods: {
|
|
61
61
|
handleClick(e, r) {
|
|
@@ -66,7 +66,7 @@ const te = /* @__PURE__ */ D({
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
render() {
|
|
69
|
-
const e =
|
|
69
|
+
const e = H(this), r = K(this), {
|
|
70
70
|
id: I,
|
|
71
71
|
show: b,
|
|
72
72
|
wrapperCssClass: R,
|
|
@@ -129,7 +129,7 @@ const te = /* @__PURE__ */ D({
|
|
|
129
129
|
"aria-live": "polite",
|
|
130
130
|
"aria-hidden": b ? void 0 : !0,
|
|
131
131
|
class: "k-list-ul",
|
|
132
|
-
ref:
|
|
132
|
+
ref: T(this, "list"),
|
|
133
133
|
style: F
|
|
134
134
|
}, [f]), e]) : C.call(this);
|
|
135
135
|
}
|
package/common/ListFilter.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as c,
|
|
9
|
-
import {
|
|
8
|
+
import { defineComponent as c, createVNode as o, ref as p } from "vue";
|
|
9
|
+
import { getRef as f, Icon as m, kendoThemeMaps as h, setRef as g } from "@progress/kendo-vue-common";
|
|
10
10
|
import { searchIcon as v } from "@progress/kendo-svg-icons";
|
|
11
11
|
import { TextBox as b } from "@progress/kendo-vue-inputs";
|
|
12
12
|
import { provideLocalizationService as x } from "@progress/kendo-vue-intl";
|
|
@@ -95,7 +95,7 @@ const {
|
|
|
95
95
|
this.$emit("blur", e);
|
|
96
96
|
},
|
|
97
97
|
prefixRender(e) {
|
|
98
|
-
return e(
|
|
98
|
+
return e(m, {
|
|
99
99
|
...{
|
|
100
100
|
class: "k-input-icon",
|
|
101
101
|
name: "search",
|
|
@@ -105,7 +105,7 @@ const {
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
mounted() {
|
|
108
|
-
this.input =
|
|
108
|
+
this.input = f(this, "input")._input;
|
|
109
109
|
},
|
|
110
110
|
render() {
|
|
111
111
|
const {
|
package/common/SearchBar.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as r,
|
|
9
|
-
import {
|
|
8
|
+
import { defineComponent as r, createVNode as o, mergeProps as d, ref as p } from "vue";
|
|
9
|
+
import { setRef as u, getRef as l, canUseDOM as h } from "@progress/kendo-vue-common";
|
|
10
10
|
const b = /* @__PURE__ */ r({
|
|
11
11
|
name: "search-bar",
|
|
12
12
|
emits: {
|
|
@@ -65,11 +65,11 @@ const b = /* @__PURE__ */ r({
|
|
|
65
65
|
} = this.$props;
|
|
66
66
|
this.input || (this.input = this.$refs.input);
|
|
67
67
|
const i = this.input, s = this.$data.prevValue !== e || t !== this.prevSuggestedText, a = s && this.$data.prevValue && this.$data.prevValue.startsWith(e) && !(this.$data.prevSuggestedText && t && this.$data.prevSuggestedText.endsWith(t));
|
|
68
|
-
n && i &&
|
|
68
|
+
n && i && h && document.activeElement !== i && i.focus(), t && s && !a && i && i.setSelectionRange(e.length - t.length, e.length);
|
|
69
69
|
},
|
|
70
70
|
setup() {
|
|
71
71
|
return {
|
|
72
|
-
inputRef:
|
|
72
|
+
inputRef: p(null)
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
mounted() {
|
|
@@ -93,7 +93,7 @@ const b = /* @__PURE__ */ r({
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
render() {
|
|
96
|
-
return
|
|
96
|
+
return o("input", d({
|
|
97
97
|
autocomplete: "off",
|
|
98
98
|
id: this.$props.id,
|
|
99
99
|
type: "text",
|
|
@@ -107,7 +107,7 @@ const b = /* @__PURE__ */ r({
|
|
|
107
107
|
value: this.$props.value,
|
|
108
108
|
size: this.$props.size ? this.$props.size : 20,
|
|
109
109
|
onInput: this.onChange,
|
|
110
|
-
ref:
|
|
110
|
+
ref: u(this, "input"),
|
|
111
111
|
onKeydown: this.onKeyDown,
|
|
112
112
|
onFocusin: this.onFocus,
|
|
113
113
|
onBlur: this.onBlur,
|