@progress/kendo-vue-dropdowns 8.0.0-develop.4 → 8.0.0-develop.5

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.
@@ -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 s, createVNode as e, h as p } from "vue";
9
- import { getTemplate as d } from "@progress/kendo-vue-common";
10
- const m = /* @__PURE__ */ s({
11
- name: "KendoListItem",
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: t,
21
- group: r,
22
- virtual: i,
23
- render: n
24
- } = this.$props, o = e("li", {
25
- id: t,
26
- role: "group",
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
- position: i ? "relative" : "unset"
37
+ style: d ? {
38
+ boxSizing: "inherit",
39
+ position: t ? "relative" : "unset"
40
+ } : {
41
+ position: t ? "relative" : "unset"
30
42
  }
31
- }, [e("span", {
32
- class: n ? void 0 : "k-list-item-text"
33
- }, [r])]);
34
- return d.call(this, {
35
- h: p,
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: o,
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
- m as ListGroupItem
60
+ v as ListGroupItem
46
61
  };
@@ -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"),s=require("@progress/kendo-vue-common"),o=require("./utils.js"),r=t.defineComponent({name:"KendoListItem",inheritAttrs:!1,props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object,onItemClick:Function},computed:{itemClass(){return{"k-list-item":!0,"k-selected":this.$props.selected,"k-focus":this.$props.focused}}},methods:{handleClick(e){this.$emit("itemClick",this.$props.index,e)}},render(){const{selected:e}=this.$props,i=t.createVNode("li",{id:this.$props.id,role:"option","aria-selected":e,class:s.classNames("k-list-item",{"k-selected":e,"k-focus":this.$props.focused,[this.$attrs.class]:this.$attrs.class}),onClick:this.handleClick,style:this.$attrs.style||{position:"unset"}},[t.createVNode("span",{class:"k-list-item-text"},[o.getItemValue(this.$props.dataItem,this.$props.textField).toString()])]);return s.getTemplate.call(this,{h:t.h,template:this.$props.render,defaultRendering:i,additionalProps:{...this.$props,itemClass:this.itemClass},additionalListeners:{click:this.handleClick}})}});exports.ListItem=r;
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;
@@ -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 i, createVNode as e, h as o } from "vue";
9
- import { classNames as r, getTemplate as l } from "@progress/kendo-vue-common";
10
- import { getItemValue as n } from "./utils.mjs";
11
- const c = /* @__PURE__ */ i({
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(t) {
35
- this.$emit("itemClick", this.$props.index, t);
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: t
41
- } = this.$props, s = e("li", {
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": t,
45
- class: r("k-list-item", {
46
- "k-selected": t,
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: this.$attrs.style || {
92
+ style: u ? {
93
+ position: "relative"
94
+ } : this.$attrs.style || {
52
95
  position: "unset"
53
96
  }
54
- }, [e("span", {
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
- }, [n(this.$props.dataItem, this.$props.textField).toString()])]);
57
- return l.call(this, {
58
- h: o,
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: s,
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
- c as ListItem
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 i=e=>e!=null,T=(e,t)=>{for(let s=0;s<e.length;s++)if(e.charAt(s)!==t)return!1;return!0},p=(e,t,s)=>{let n=e;return s&&(n=[s].concat(n)),n.slice(t).concat(n.slice(0,t))},I=(e,t,s)=>{if(!i(e))return!1;let n=String(e);return s&&(n=n.toLowerCase()),n.indexOf(t)===0},x=(e,t,s,n,r)=>{const o=e.offsetHeight,f=t*s+(r?n-e.scrollTop:0);if(r){let u=0;f+t>o?u=f+t-o:f<0&&(u=f),u!==0?e.scrollTop+=u:e.scrollTop===0&&n!==0&&(e.scrollTop=n)}else f+t>o+e.scrollTop?e.scrollTop=f+t-o:f<e.scrollTop&&(e.scrollTop-=e.scrollTop-f)},a=(e,t,s)=>{let n=-1;if(t){t=t.toLowerCase();for(let r=0;r<e.length;r++){const o=(c(e[r],s)||"")+"";if(o&&o.toLowerCase().startsWith(t)){n=r;break}}}return n},g=(e,t,s,n=!1)=>{const r=o=>n?o:o.toLowerCase();return e.findIndex(o=>s?r(c(o,s))===r(t):r(t)===r(o.toString()))},c=(e,t)=>{if(t&&i(e)){const s=t.split(".");let n=e;return s.forEach(r=>{n=n?n[r]:void 0}),n}return e},h=(e=[],t=[],s)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!l(e[n],t[n],s))return!1;return!0},d=(e,t,s)=>{t.forEach(n=>{const r=e.findIndex(o=>l(o,n,s));r!==-1&&e.splice(r,1)})},l=(e,t,s)=>e===t||i(e)===i(t)&&c(e,s)===c(t,s),w=(e,t,s)=>{if(t){const n=g(e,t,s,!0);return n!==-1?e[n]:e[a(e,t,s)]}return e[0]},C=(e,t=[],s)=>{let n="";if(e){const r=t[a(t,e,s)];if(r){const o=c(r,s);e.toLowerCase()!==o.toLowerCase()&&(n=o.substring(e.length))}}return n},D=e=>{e.target.nodeName!=="INPUT"&&e.preventDefault()},m=(e,t,s)=>!!e!=!!t||e.text!==t.text?!1:e===t||h(e.data,t.data,s),S=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),y=17895697;exports.areSame=l;exports.firefox=S;exports.firefoxMaxHeight=y;exports.getFocusedItem=w;exports.getItemIndexByText=g;exports.getItemValue=c;exports.isPresent=i;exports.itemIndexStartsWith=a;exports.matchDataCollections=h;exports.matchTags=m;exports.matchText=I;exports.preventDefaultNonInputs=D;exports.removeDataItems=d;exports.sameCharsOnly=T;exports.scrollToItem=x;exports.shuffleData=p;exports.suggestValue=C;
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, h = (e, t) => {
9
- for (let r = 0; r < e.length; r++)
10
- if (e.charAt(r) !== t)
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
- }, a = (e, t, r) => {
14
- let n = e;
15
- return r && (n = [r].concat(n)), n.slice(t).concat(n.slice(0, t));
16
- }, I = (e, t, r) => {
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 n = String(e);
20
- return r && (n = n.toLowerCase()), n.indexOf(t) === 0;
21
- }, w = (e, t, r, n, o) => {
22
- const s = e.offsetHeight, f = t * r + (o ? n - e.scrollTop : 0);
23
- if (o) {
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
- f + t > s ? i = f + t - s : f < 0 && (i = f), i !== 0 ? e.scrollTop += i : e.scrollTop === 0 && n !== 0 && (e.scrollTop = n);
26
- } else
27
- f + t > s + e.scrollTop ? e.scrollTop = f + t - s : f < e.scrollTop && (e.scrollTop -= e.scrollTop - f);
28
- }, p = (e, t, r) => {
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 = (c(e[o], r) || "") + "";
32
+ const s = (f(e[o], n) || "") + "";
34
33
  if (s && s.toLowerCase().startsWith(t)) {
35
- n = o;
34
+ r = o;
36
35
  break;
37
36
  }
38
37
  }
39
38
  }
40
- return n;
41
- }, l = (e, t, r, n = !1) => {
42
- const o = (s) => n ? s : s.toLowerCase();
43
- return e.findIndex((s) => r ? o(c(s, r)) === o(t) : o(t) === o(s.toString()));
44
- }, c = (e, t) => {
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 r = t.split(".");
47
- let n = e;
48
- return r.forEach((o) => {
49
- n = n ? n[o] : void 0;
50
- }), n;
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
- }, T = (e = [], t = [], r) => {
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 n = 0; n < e.length; n++)
59
- if (!g(e[n], t[n], r))
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, r) => {
63
- t.forEach((n) => {
64
- const o = e.findIndex((s) => g(s, n, r));
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, r) => e === t || u(e) === u(t) && c(e, r) === c(t, r), d = (e, t, r) => {
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 n = l(e, t, r, !0);
70
- return n !== -1 ? e[n] : e[p(e, t, r)];
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 = [], r) => {
74
- let n = "";
72
+ }, C = (e, t = [], n) => {
73
+ let r = "";
75
74
  if (e) {
76
- const o = t[p(t, e, r)];
75
+ const o = t[l(t, e, n)];
77
76
  if (o) {
78
- const s = c(o, r);
79
- e.toLowerCase() !== s.toLowerCase() && (n = s.substring(e.length));
77
+ const s = f(o, n);
78
+ e.toLowerCase() !== s.toLowerCase() && (r = s.substring(e.length));
80
79
  }
81
80
  }
82
- return n;
81
+ return r;
83
82
  }, L = (e) => {
84
83
  e.target.nodeName !== "INPUT" && e.preventDefault();
85
- }, D = (e, t, r) => !!e != !!t || e.text !== t.text ? !1 : e === t || T(e.data, t.data, r), N = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), O = 17895697;
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
- N as firefox,
89
- O as firefoxMaxHeight,
87
+ S as firefox,
88
+ N as firefoxMaxHeight,
90
89
  d as getFocusedItem,
91
- l as getItemIndexByText,
92
- c as getItemValue,
90
+ h as getItemIndexByText,
91
+ f as getItemValue,
93
92
  u as isPresent,
94
- p as itemIndexStartsWith,
95
- T as matchDataCollections,
93
+ l as itemIndexStartsWith,
94
+ a as matchDataCollections,
96
95
  D as matchTags,
97
- I as matchText,
96
+ T as matchText,
98
97
  L as preventDefaultNonInputs,
99
98
  x as removeDataItems,
100
- h as sameCharsOnly,
99
+ p as sameCharsOnly,
101
100
  w as scrollToItem,
102
- a as shuffleData,
101
+ I as shuffleData,
103
102
  C as suggestValue
104
103
  };