@progress/kendo-vue-dropdowns 8.0.0-develop.4 → 8.0.0-develop.6
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 +60 -59
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +268 -218
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +91 -90
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +35 -34
- package/common/DropDownBase.js +1 -1
- package/common/DropDownBase.mjs +117 -104
- package/common/List.js +1 -1
- package/common/List.mjs +127 -79
- package/common/ListGroupItem.js +1 -1
- package/common/ListGroupItem.mjs +36 -21
- package/common/ListItem.js +1 -1
- package/common/ListItem.mjs +65 -19
- package/common/ListItemIcon.js +8 -0
- package/common/ListItemIcon.mjs +34 -0
- package/common/utils.js +1 -1
- package/common/utils.mjs +53 -54
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/index.d.mts +37 -0
- package/index.d.ts +37 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
package/common/ListGroupItem.mjs
CHANGED
|
@@ -5,36 +5,51 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { getTemplate as
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { defineComponent as a, createVNode as i, h as u } from "vue";
|
|
9
|
+
import { getTemplate as c } from "@progress/kendo-vue-common";
|
|
10
|
+
import { ListItemIcon as g } from "./ListItemIcon.mjs";
|
|
11
|
+
const v = /* @__PURE__ */ a({
|
|
12
|
+
name: "ListGroupItem",
|
|
12
13
|
inheritAttrs: !1,
|
|
13
14
|
props: {
|
|
14
15
|
id: String,
|
|
15
16
|
group: String,
|
|
16
|
-
render: Object
|
|
17
|
+
render: Object,
|
|
18
|
+
iconField: String,
|
|
19
|
+
svgIconField: String,
|
|
20
|
+
groupItem: Object,
|
|
21
|
+
isMultiColumn: Boolean
|
|
17
22
|
},
|
|
18
23
|
render() {
|
|
19
24
|
const {
|
|
20
|
-
id:
|
|
21
|
-
group:
|
|
22
|
-
virtual:
|
|
23
|
-
render:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
id: o,
|
|
26
|
+
group: s,
|
|
27
|
+
virtual: t,
|
|
28
|
+
render: l,
|
|
29
|
+
iconField: n,
|
|
30
|
+
svgIconField: r,
|
|
31
|
+
groupItem: e,
|
|
32
|
+
isMultiColumn: d = !1
|
|
33
|
+
} = this.$props, p = i("li", {
|
|
34
|
+
id: o,
|
|
35
|
+
role: "presentation",
|
|
27
36
|
class: "k-list-group-item",
|
|
28
|
-
style: {
|
|
29
|
-
|
|
37
|
+
style: d ? {
|
|
38
|
+
boxSizing: "inherit",
|
|
39
|
+
position: t ? "relative" : "unset"
|
|
40
|
+
} : {
|
|
41
|
+
position: t ? "relative" : "unset"
|
|
30
42
|
}
|
|
31
|
-
}, [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
}, [(r || n) && i(g, {
|
|
44
|
+
icon: n ? e == null ? void 0 : e.groupIcon : void 0,
|
|
45
|
+
svgIcon: r ? e == null ? void 0 : e.groupSvgIcon : void 0
|
|
46
|
+
}, null), i("span", {
|
|
47
|
+
class: l ? void 0 : "k-list-item-text"
|
|
48
|
+
}, [s])]);
|
|
49
|
+
return c.call(this, {
|
|
50
|
+
h: u,
|
|
36
51
|
template: this.$props.render,
|
|
37
|
-
defaultRendering:
|
|
52
|
+
defaultRendering: p,
|
|
38
53
|
additionalProps: {
|
|
39
54
|
...this.$props
|
|
40
55
|
}
|
|
@@ -42,5 +57,5 @@ const m = /* @__PURE__ */ s({
|
|
|
42
57
|
}
|
|
43
58
|
});
|
|
44
59
|
export {
|
|
45
|
-
|
|
60
|
+
v as ListGroupItem
|
|
46
61
|
};
|
package/common/ListItem.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),p=require("@progress/kendo-vue-common"),i=require("./utils.js"),b=require("@progress/kendo-vue-inputs"),S=require("./ListItemIcon.js"),V=t.defineComponent({name:"KendoListItem",inheritAttrs:!1,props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,disabled:Boolean,group:String,virtual:Boolean,render:Object,onItemClick:Function,actionsField:String,descriptionField:String,iconField:String,svgIconField:String,checkboxField:String},computed:{itemClass(){return{"k-list-item":!0,"k-selected":this.$props.selected,"k-focus":this.$props.focused}}},methods:{handleClick(s){this.$emit("itemClick",this.$props.index,s)}},render(){var u;const{selected:s,disabled:l,virtual:h,actionsField:c,descriptionField:d,iconField:o,svgIconField:r,checkboxField:a,dataItem:e,textField:m}=this.$props,g=()=>{if(!a)return null;const n=i.getItemValue(e,a)||!1;return t.createVNode("span",{class:"k-checkbox-wrap"},[t.createVNode(b.Checkbox,{checked:n,onChange:C=>{e.onCheckboxChange&&e.onCheckboxChange(e,C.value)}},null)])},k=()=>c?i.getItemValue(e,c):null,I=()=>{if(!d)return null;const n=i.getItemValue(e,d);return n?t.createVNode("span",{class:"k-list-item-description"},[n]):null},f=t.createVNode("li",{id:this.$props.id,role:"option","aria-selected":s,"aria-disabled":l?!0:void 0,class:p.classNames("k-list-item",{"k-selected":s,"k-focus":this.$props.focused,"k-disabled":l,[this.$attrs.class]:this.$attrs.class}),onClick:this.handleClick,style:h?{position:"relative"}:this.$attrs.style||{position:"unset"}},[g(),(r||o)&&t.createVNode(S.ListItemIcon,{icon:o?i.getItemValue(e,o):void 0,svgIcon:r?i.getItemValue(e,r):void 0},null),t.createVNode("span",{class:"k-list-item-text"},[((u=i.getItemValue(e,m))==null?void 0:u.toString())||""]),k(),I()]);return p.getTemplate.call(this,{h:t.h,template:this.$props.render,defaultRendering:f,additionalProps:{...this.$props,itemClass:this.itemClass},additionalListeners:{click:this.handleClick}})}});exports.ListItem=V;
|
package/common/ListItem.mjs
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { classNames as
|
|
10
|
-
import { getItemValue as
|
|
11
|
-
|
|
8
|
+
import { defineComponent as b, createVNode as t, h as x } from "vue";
|
|
9
|
+
import { classNames as F, getTemplate as S } from "@progress/kendo-vue-common";
|
|
10
|
+
import { getItemValue as i } from "./utils.mjs";
|
|
11
|
+
import { Checkbox as $ } from "@progress/kendo-vue-inputs";
|
|
12
|
+
import { ListItemIcon as I } from "./ListItemIcon.mjs";
|
|
13
|
+
const y = /* @__PURE__ */ b({
|
|
12
14
|
name: "KendoListItem",
|
|
13
15
|
inheritAttrs: !1,
|
|
14
16
|
props: {
|
|
@@ -18,8 +20,16 @@ const c = /* @__PURE__ */ i({
|
|
|
18
20
|
textField: String,
|
|
19
21
|
focused: Boolean,
|
|
20
22
|
selected: Boolean,
|
|
23
|
+
disabled: Boolean,
|
|
24
|
+
group: String,
|
|
25
|
+
virtual: Boolean,
|
|
21
26
|
render: Object,
|
|
22
|
-
onItemClick: Function
|
|
27
|
+
onItemClick: Function,
|
|
28
|
+
actionsField: String,
|
|
29
|
+
descriptionField: String,
|
|
30
|
+
iconField: String,
|
|
31
|
+
svgIconField: String,
|
|
32
|
+
checkboxField: String
|
|
23
33
|
},
|
|
24
34
|
computed: {
|
|
25
35
|
itemClass() {
|
|
@@ -31,33 +41,69 @@ const c = /* @__PURE__ */ i({
|
|
|
31
41
|
}
|
|
32
42
|
},
|
|
33
43
|
methods: {
|
|
34
|
-
handleClick(
|
|
35
|
-
this.$emit("itemClick", this.$props.index,
|
|
44
|
+
handleClick(s) {
|
|
45
|
+
this.$emit("itemClick", this.$props.index, s);
|
|
36
46
|
}
|
|
37
47
|
},
|
|
38
48
|
render() {
|
|
49
|
+
var p;
|
|
39
50
|
const {
|
|
40
|
-
selected:
|
|
41
|
-
|
|
51
|
+
selected: s,
|
|
52
|
+
disabled: l,
|
|
53
|
+
virtual: u,
|
|
54
|
+
actionsField: c,
|
|
55
|
+
descriptionField: d,
|
|
56
|
+
iconField: o,
|
|
57
|
+
svgIconField: r,
|
|
58
|
+
checkboxField: a,
|
|
59
|
+
dataItem: e,
|
|
60
|
+
textField: h
|
|
61
|
+
} = this.$props, m = () => {
|
|
62
|
+
if (!a)
|
|
63
|
+
return null;
|
|
64
|
+
const n = i(e, a) || !1;
|
|
65
|
+
return t("span", {
|
|
66
|
+
class: "k-checkbox-wrap"
|
|
67
|
+
}, [t($, {
|
|
68
|
+
checked: n,
|
|
69
|
+
onChange: (C) => {
|
|
70
|
+
e.onCheckboxChange && e.onCheckboxChange(e, C.value);
|
|
71
|
+
}
|
|
72
|
+
}, null)]);
|
|
73
|
+
}, k = () => c ? i(e, c) : null, f = () => {
|
|
74
|
+
if (!d)
|
|
75
|
+
return null;
|
|
76
|
+
const n = i(e, d);
|
|
77
|
+
return n ? t("span", {
|
|
78
|
+
class: "k-list-item-description"
|
|
79
|
+
}, [n]) : null;
|
|
80
|
+
}, g = t("li", {
|
|
42
81
|
id: this.$props.id,
|
|
43
82
|
role: "option",
|
|
44
|
-
"aria-selected":
|
|
45
|
-
|
|
46
|
-
|
|
83
|
+
"aria-selected": s,
|
|
84
|
+
"aria-disabled": l ? !0 : void 0,
|
|
85
|
+
class: F("k-list-item", {
|
|
86
|
+
"k-selected": s,
|
|
47
87
|
"k-focus": this.$props.focused,
|
|
88
|
+
"k-disabled": l,
|
|
48
89
|
[this.$attrs.class]: this.$attrs.class
|
|
49
90
|
}),
|
|
50
91
|
onClick: this.handleClick,
|
|
51
|
-
style:
|
|
92
|
+
style: u ? {
|
|
93
|
+
position: "relative"
|
|
94
|
+
} : this.$attrs.style || {
|
|
52
95
|
position: "unset"
|
|
53
96
|
}
|
|
54
|
-
}, [
|
|
97
|
+
}, [m(), (r || o) && t(I, {
|
|
98
|
+
icon: o ? i(e, o) : void 0,
|
|
99
|
+
svgIcon: r ? i(e, r) : void 0
|
|
100
|
+
}, null), t("span", {
|
|
55
101
|
class: "k-list-item-text"
|
|
56
|
-
}, [
|
|
57
|
-
return
|
|
58
|
-
h:
|
|
102
|
+
}, [((p = i(e, h)) == null ? void 0 : p.toString()) || ""]), k(), f()]);
|
|
103
|
+
return S.call(this, {
|
|
104
|
+
h: x,
|
|
59
105
|
template: this.$props.render,
|
|
60
|
-
defaultRendering:
|
|
106
|
+
defaultRendering: g,
|
|
61
107
|
additionalProps: {
|
|
62
108
|
...this.$props,
|
|
63
109
|
itemClass: this.itemClass
|
|
@@ -69,5 +115,5 @@ const c = /* @__PURE__ */ i({
|
|
|
69
115
|
}
|
|
70
116
|
});
|
|
71
117
|
export {
|
|
72
|
-
|
|
118
|
+
y as ListItem
|
|
73
119
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),t=require("@progress/kendo-vue-common"),c=n.defineComponent({name:"ListItemIcon",props:{icon:String,svgIcon:Object},render(){const{icon:e,svgIcon:o}=this.$props;return o||e?n.createVNode("span",{class:"k-list-item-icon-wrapper",role:"presentation"},[n.createVNode(t.Icon,{class:"k-list-item-icon",name:e?t.getIconName(e):void 0,icon:o,"aria-hidden":"true"},null)]):null}});exports.ListItemIcon=c;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { defineComponent as t, createVNode as o } from "vue";
|
|
9
|
+
import { Icon as i, getIconName as r } from "@progress/kendo-vue-common";
|
|
10
|
+
const m = /* @__PURE__ */ t({
|
|
11
|
+
name: "ListItemIcon",
|
|
12
|
+
props: {
|
|
13
|
+
icon: String,
|
|
14
|
+
svgIcon: Object
|
|
15
|
+
},
|
|
16
|
+
render() {
|
|
17
|
+
const {
|
|
18
|
+
icon: n,
|
|
19
|
+
svgIcon: e
|
|
20
|
+
} = this.$props;
|
|
21
|
+
return e || n ? o("span", {
|
|
22
|
+
class: "k-list-item-icon-wrapper",
|
|
23
|
+
role: "presentation"
|
|
24
|
+
}, [o(i, {
|
|
25
|
+
class: "k-list-item-icon",
|
|
26
|
+
name: n ? r(n) : void 0,
|
|
27
|
+
icon: e,
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
}, null)]) : null;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
m as ListItemIcon
|
|
34
|
+
};
|
package/common/utils.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=e=>e!=null,I=(e,t)=>{for(let n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},T=(e,t,n)=>{let r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))},p=(e,t,n)=>{if(!c(e))return!1;let r=String(e);return n&&(r=r.toLowerCase()),r.indexOf(t)===0},x=(e,t,n,r,s)=>{const o=e.offsetHeight,i=t*n+(r-e.scrollTop);{let u=0;i+t>o?u=i+t-o:i<0&&(u=i),u!==0?e.scrollTop+=u:e.scrollTop===0&&r!==0&&(e.scrollTop=r)}},l=(e,t,n)=>{let r=-1;if(t){t=t.toLowerCase();for(let s=0;s<e.length;s++){const o=(f(e[s],n)||"")+"";if(o&&o.toLowerCase().startsWith(t)){r=s;break}}}return r},g=(e,t,n,r=!1)=>{const s=o=>r?o:o.toLowerCase();return e.findIndex(o=>n?s(f(o,n))===s(t):s(t)===s(o.toString()))},f=(e,t)=>{if(t&&c(e)){const n=t.split(".");let r=e;return n.forEach(s=>{r=r?r[s]:void 0}),r}return e},h=(e=[],t=[],n)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!a(e[r],t[r],n))return!1;return!0},m=(e,t,n)=>{t.forEach(r=>{const s=e.findIndex(o=>a(o,r,n));s!==-1&&e.splice(s,1)})},a=(e,t,n)=>e===t||c(e)===c(t)&&f(e,n)===f(t,n),d=(e,t,n)=>{if(t){const r=g(e,t,n,!0);return r!==-1?e[r]:e[l(e,t,n)]}return e[0]},w=(e,t=[],n)=>{let r="";if(e){const s=t[l(t,e,n)];if(s){const o=f(s,n);e.toLowerCase()!==o.toLowerCase()&&(r=o.substring(e.length))}}return r},C=e=>{e.target.nodeName!=="INPUT"&&e.preventDefault()},D=(e,t,n)=>!!e!=!!t||e.text!==t.text?!1:e===t||h(e.data,t.data,n),S=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),y=17895697;exports.areSame=a;exports.firefox=S;exports.firefoxMaxHeight=y;exports.getFocusedItem=d;exports.getItemIndexByText=g;exports.getItemValue=f;exports.isPresent=c;exports.itemIndexStartsWith=l;exports.matchDataCollections=h;exports.matchTags=D;exports.matchText=p;exports.preventDefaultNonInputs=C;exports.removeDataItems=m;exports.sameCharsOnly=I;exports.scrollToItem=x;exports.shuffleData=T;exports.suggestValue=w;
|
package/common/utils.mjs
CHANGED
|
@@ -5,100 +5,99 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const u = (e) => e != null,
|
|
9
|
-
for (let
|
|
10
|
-
if (e.charAt(
|
|
8
|
+
const u = (e) => e != null, p = (e, t) => {
|
|
9
|
+
for (let n = 0; n < e.length; n++)
|
|
10
|
+
if (e.charAt(n) !== t)
|
|
11
11
|
return !1;
|
|
12
12
|
return !0;
|
|
13
|
-
},
|
|
14
|
-
let
|
|
15
|
-
return
|
|
16
|
-
},
|
|
13
|
+
}, I = (e, t, n) => {
|
|
14
|
+
let r = e;
|
|
15
|
+
return n && (r = [n].concat(r)), r.slice(t).concat(r.slice(0, t));
|
|
16
|
+
}, T = (e, t, n) => {
|
|
17
17
|
if (!u(e))
|
|
18
18
|
return !1;
|
|
19
|
-
let
|
|
20
|
-
return
|
|
21
|
-
}, w = (e, t,
|
|
22
|
-
const s = e.offsetHeight,
|
|
23
|
-
|
|
19
|
+
let r = String(e);
|
|
20
|
+
return n && (r = r.toLowerCase()), r.indexOf(t) === 0;
|
|
21
|
+
}, w = (e, t, n, r, o) => {
|
|
22
|
+
const s = e.offsetHeight, c = t * n + (r - e.scrollTop);
|
|
23
|
+
{
|
|
24
24
|
let i = 0;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let n = -1;
|
|
25
|
+
c + t > s ? i = c + t - s : c < 0 && (i = c), i !== 0 ? e.scrollTop += i : e.scrollTop === 0 && r !== 0 && (e.scrollTop = r);
|
|
26
|
+
}
|
|
27
|
+
}, l = (e, t, n) => {
|
|
28
|
+
let r = -1;
|
|
30
29
|
if (t) {
|
|
31
30
|
t = t.toLowerCase();
|
|
32
31
|
for (let o = 0; o < e.length; o++) {
|
|
33
|
-
const s = (
|
|
32
|
+
const s = (f(e[o], n) || "") + "";
|
|
34
33
|
if (s && s.toLowerCase().startsWith(t)) {
|
|
35
|
-
|
|
34
|
+
r = o;
|
|
36
35
|
break;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
return
|
|
41
|
-
},
|
|
42
|
-
const o = (s) =>
|
|
43
|
-
return e.findIndex((s) =>
|
|
44
|
-
},
|
|
39
|
+
return r;
|
|
40
|
+
}, h = (e, t, n, r = !1) => {
|
|
41
|
+
const o = (s) => r ? s : s.toLowerCase();
|
|
42
|
+
return e.findIndex((s) => n ? o(f(s, n)) === o(t) : o(t) === o(s.toString()));
|
|
43
|
+
}, f = (e, t) => {
|
|
45
44
|
if (t && u(e)) {
|
|
46
|
-
const
|
|
47
|
-
let
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
}),
|
|
45
|
+
const n = t.split(".");
|
|
46
|
+
let r = e;
|
|
47
|
+
return n.forEach((o) => {
|
|
48
|
+
r = r ? r[o] : void 0;
|
|
49
|
+
}), r;
|
|
51
50
|
}
|
|
52
51
|
return e;
|
|
53
|
-
},
|
|
52
|
+
}, a = (e = [], t = [], n) => {
|
|
54
53
|
if (e === t)
|
|
55
54
|
return !0;
|
|
56
55
|
if (e.length !== t.length)
|
|
57
56
|
return !1;
|
|
58
|
-
for (let
|
|
59
|
-
if (!g(e[
|
|
57
|
+
for (let r = 0; r < e.length; r++)
|
|
58
|
+
if (!g(e[r], t[r], n))
|
|
60
59
|
return !1;
|
|
61
60
|
return !0;
|
|
62
|
-
}, x = (e, t,
|
|
63
|
-
t.forEach((
|
|
64
|
-
const o = e.findIndex((s) => g(s,
|
|
61
|
+
}, x = (e, t, n) => {
|
|
62
|
+
t.forEach((r) => {
|
|
63
|
+
const o = e.findIndex((s) => g(s, r, n));
|
|
65
64
|
o !== -1 && e.splice(o, 1);
|
|
66
65
|
});
|
|
67
|
-
}, g = (e, t,
|
|
66
|
+
}, g = (e, t, n) => e === t || u(e) === u(t) && f(e, n) === f(t, n), d = (e, t, n) => {
|
|
68
67
|
if (t) {
|
|
69
|
-
const
|
|
70
|
-
return
|
|
68
|
+
const r = h(e, t, n, !0);
|
|
69
|
+
return r !== -1 ? e[r] : e[l(e, t, n)];
|
|
71
70
|
}
|
|
72
71
|
return e[0];
|
|
73
|
-
}, C = (e, t = [],
|
|
74
|
-
let
|
|
72
|
+
}, C = (e, t = [], n) => {
|
|
73
|
+
let r = "";
|
|
75
74
|
if (e) {
|
|
76
|
-
const o = t[
|
|
75
|
+
const o = t[l(t, e, n)];
|
|
77
76
|
if (o) {
|
|
78
|
-
const s =
|
|
79
|
-
e.toLowerCase() !== s.toLowerCase() && (
|
|
77
|
+
const s = f(o, n);
|
|
78
|
+
e.toLowerCase() !== s.toLowerCase() && (r = s.substring(e.length));
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
|
-
return
|
|
81
|
+
return r;
|
|
83
82
|
}, L = (e) => {
|
|
84
83
|
e.target.nodeName !== "INPUT" && e.preventDefault();
|
|
85
|
-
}, D = (e, t,
|
|
84
|
+
}, D = (e, t, n) => !!e != !!t || e.text !== t.text ? !1 : e === t || a(e.data, t.data, n), S = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), N = 17895697;
|
|
86
85
|
export {
|
|
87
86
|
g as areSame,
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
S as firefox,
|
|
88
|
+
N as firefoxMaxHeight,
|
|
90
89
|
d as getFocusedItem,
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
h as getItemIndexByText,
|
|
91
|
+
f as getItemValue,
|
|
93
92
|
u as isPresent,
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
l as itemIndexStartsWith,
|
|
94
|
+
a as matchDataCollections,
|
|
96
95
|
D as matchTags,
|
|
97
|
-
|
|
96
|
+
T as matchText,
|
|
98
97
|
L as preventDefaultNonInputs,
|
|
99
98
|
x as removeDataItems,
|
|
100
|
-
|
|
99
|
+
p as sameCharsOnly,
|
|
101
100
|
w as scrollToItem,
|
|
102
|
-
|
|
101
|
+
I as shuffleData,
|
|
103
102
|
C as suggestValue
|
|
104
103
|
};
|