@progress/kendo-react-dropdowns 7.2.4-develop.3 → 7.3.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.
Files changed (107) hide show
  1. package/AutoComplete/AutoComplete.js +8 -0
  2. package/AutoComplete/AutoComplete.mjs +458 -0
  3. package/ComboBox/ComboBox.js +8 -0
  4. package/ComboBox/ComboBox.mjs +618 -0
  5. package/DropDownList/DropDownList.js +8 -0
  6. package/DropDownList/DropDownList.mjs +630 -0
  7. package/DropDownTree/DropDownTree.js +8 -0
  8. package/DropDownTree/DropDownTree.mjs +550 -0
  9. package/DropDownTree/ListNoData.js +8 -0
  10. package/DropDownTree/ListNoData.mjs +13 -0
  11. package/DropDownTree/useDropdownWidth.js +8 -0
  12. package/DropDownTree/useDropdownWidth.mjs +25 -0
  13. package/MultiColumnComboBox/MultiColumnComboBox.js +8 -0
  14. package/MultiColumnComboBox/MultiColumnComboBox.mjs +186 -0
  15. package/MultiSelect/MultiSelect.js +8 -0
  16. package/MultiSelect/MultiSelect.mjs +694 -0
  17. package/MultiSelect/TagList.js +8 -0
  18. package/MultiSelect/TagList.mjs +48 -0
  19. package/MultiSelectTree/MultiSelectTree.js +8 -0
  20. package/MultiSelectTree/MultiSelectTree.mjs +590 -0
  21. package/MultiSelectTree/utils.js +8 -0
  22. package/MultiSelectTree/utils.mjs +74 -0
  23. package/common/AdaptiveMode.js +8 -0
  24. package/common/AdaptiveMode.mjs +73 -0
  25. package/common/ClearButton.js +8 -0
  26. package/common/ClearButton.mjs +38 -0
  27. package/common/DropDownBase.js +8 -0
  28. package/common/DropDownBase.mjs +194 -0
  29. package/common/GroupStickyHeader.js +8 -0
  30. package/common/GroupStickyHeader.mjs +22 -0
  31. package/common/List.js +8 -0
  32. package/common/List.mjs +117 -0
  33. package/common/ListContainer.js +8 -0
  34. package/common/ListContainer.mjs +33 -0
  35. package/common/ListDefaultItem.js +8 -0
  36. package/common/ListDefaultItem.mjs +36 -0
  37. package/common/ListFilter.js +8 -0
  38. package/common/ListFilter.mjs +49 -0
  39. package/common/ListGroupItem.js +8 -0
  40. package/common/ListGroupItem.mjs +32 -0
  41. package/common/ListItem.js +8 -0
  42. package/common/ListItem.mjs +49 -0
  43. package/common/MultiColumnList.js +8 -0
  44. package/common/MultiColumnList.mjs +28 -0
  45. package/common/Navigation.js +8 -0
  46. package/common/Navigation.mjs +29 -0
  47. package/common/SearchBar.js +8 -0
  48. package/common/SearchBar.mjs +65 -0
  49. package/common/VirtualScroll.js +8 -0
  50. package/common/VirtualScroll.mjs +75 -0
  51. package/common/constants.js +8 -0
  52. package/common/constants.mjs +13 -0
  53. package/common/settings.js +8 -0
  54. package/common/settings.mjs +12 -0
  55. package/common/utils.js +8 -0
  56. package/common/utils.mjs +109 -0
  57. package/common/withCustomComponent.js +8 -0
  58. package/common/withCustomComponent.mjs +13 -0
  59. package/dist/cdn/js/kendo-react-dropdowns.js +8 -5
  60. package/index.d.mts +4098 -5
  61. package/index.d.ts +4098 -31
  62. package/index.js +8 -5
  63. package/index.mjs +55 -4429
  64. package/messages/index.js +8 -0
  65. package/messages/index.mjs +27 -0
  66. package/package-metadata.js +8 -0
  67. package/package-metadata.mjs +19 -0
  68. package/package.json +9 -9
  69. package/AutoComplete/AutoComplete.d.ts +0 -236
  70. package/AutoComplete/AutoCompleteProps.d.ts +0 -254
  71. package/ComboBox/ComboBox.d.ts +0 -254
  72. package/ComboBox/ComboBoxProps.d.ts +0 -324
  73. package/DropDownList/DropDownList.d.ts +0 -264
  74. package/DropDownList/DropDownListProps.d.ts +0 -329
  75. package/DropDownTree/DropDownTree.d.ts +0 -74
  76. package/DropDownTree/DropDownTreeProps.d.ts +0 -297
  77. package/DropDownTree/ListNoData.d.ts +0 -10
  78. package/DropDownTree/useDropdownWidth.d.ts +0 -10
  79. package/MultiColumnComboBox/MultiColumnComboBox.d.ts +0 -300
  80. package/MultiSelect/MultiSelect.d.ts +0 -262
  81. package/MultiSelect/MultiSelectProps.d.ts +0 -325
  82. package/MultiSelect/TagList.d.ts +0 -42
  83. package/MultiSelectTree/MultiSelectTree.d.ts +0 -85
  84. package/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -324
  85. package/MultiSelectTree/utils.d.ts +0 -21
  86. package/common/AdaptiveMode.d.ts +0 -25
  87. package/common/ClearButton.d.ts +0 -18
  88. package/common/DropDownBase.d.ts +0 -180
  89. package/common/GroupStickyHeader.d.ts +0 -28
  90. package/common/List.d.ts +0 -50
  91. package/common/ListContainer.d.ts +0 -22
  92. package/common/ListDefaultItem.d.ts +0 -20
  93. package/common/ListFilter.d.ts +0 -23
  94. package/common/ListGroupItem.d.ts +0 -37
  95. package/common/ListItem.d.ts +0 -65
  96. package/common/MultiColumnList.d.ts +0 -9
  97. package/common/Navigation.d.ts +0 -17
  98. package/common/SearchBar.d.ts +0 -47
  99. package/common/VirtualScroll.d.ts +0 -45
  100. package/common/constants.d.ts +0 -8
  101. package/common/events.d.ts +0 -76
  102. package/common/filterDescriptor.d.ts +0 -45
  103. package/common/settings.d.ts +0 -109
  104. package/common/utils.d.ts +0 -70
  105. package/common/withCustomComponent.d.ts +0 -11
  106. package/messages/index.d.ts +0 -44
  107. package/package-metadata.d.ts +0 -9
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as t from "react";
10
+ import { classNames as n } from "@progress/kendo-react-common";
11
+ import { getItemValue as a } from "./utils.mjs";
12
+ const r = (e) => e.preventDefault();
13
+ class p extends t.Component {
14
+ render() {
15
+ const {
16
+ selected: s,
17
+ defaultItem: o,
18
+ textField: l
19
+ } = this.props;
20
+ return /* @__PURE__ */ t.createElement(
21
+ "div",
22
+ {
23
+ onClick: this.props.onClick,
24
+ onMouseDown: r,
25
+ style: { position: "unset" },
26
+ className: n("k-list-optionlabel", {
27
+ "k-selected": s
28
+ })
29
+ },
30
+ a(o, l) || ""
31
+ );
32
+ }
33
+ }
34
+ export {
35
+ p as default
36
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";const i=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),u=require("@progress/kendo-svg-icons"),s=require("@progress/kendo-react-common");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=d(i),a=o.forwardRef((e,r)=>{const t=o.useRef(null);return o.useImperativeHandle(r,()=>t.current),o.createElement("div",{className:"k-list-filter"},o.createElement(c.TextBox,{...e,ref:t,value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:l=>l.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:()=>o.createElement(c.InputPrefix,null,o.createElement(s.IconWrap,{name:"search",icon:u.searchIcon}))}))});a.propTypes={value:n.oneOfType([n.string,n.number,n.array]),tabIndex:n.number,onChange:n.func,onKeyDown:n.func,size:n.oneOf([null,"small","medium","large"]),rounded:n.oneOf([null,"small","medium","large","full"]),fillMode:n.oneOf([null,"solid","flat","outline"])};a.displayName="KendoReactListFilter";const f=a;module.exports=f;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as l from "react";
10
+ import e from "prop-types";
11
+ import { TextBox as i, InputPrefix as u } from "@progress/kendo-react-inputs";
12
+ import { searchIcon as m } from "@progress/kendo-svg-icons";
13
+ import { IconWrap as f } from "@progress/kendo-react-common";
14
+ const t = l.forwardRef((n, a) => {
15
+ const o = l.useRef(null);
16
+ return l.useImperativeHandle(
17
+ a,
18
+ () => o.current
19
+ ), /* @__PURE__ */ l.createElement("div", { className: "k-list-filter" }, /* @__PURE__ */ l.createElement(
20
+ i,
21
+ {
22
+ ...n,
23
+ ref: o,
24
+ value: n.value || "",
25
+ onChange: n.onChange,
26
+ onKeyDown: n.onKeyDown,
27
+ tabIndex: n.tabIndex,
28
+ onClick: (r) => r.stopPropagation(),
29
+ size: n.size,
30
+ fillMode: n.fillMode,
31
+ rounded: n.rounded,
32
+ prefix: () => /* @__PURE__ */ l.createElement(u, null, /* @__PURE__ */ l.createElement(f, { name: "search", icon: m }))
33
+ }
34
+ ));
35
+ });
36
+ t.propTypes = {
37
+ value: e.oneOfType([e.string, e.number, e.array]),
38
+ tabIndex: e.number,
39
+ onChange: e.func,
40
+ onKeyDown: e.func,
41
+ size: e.oneOf([null, "small", "medium", "large"]),
42
+ rounded: e.oneOf([null, "small", "medium", "large", "full"]),
43
+ fillMode: e.oneOf([null, "solid", "flat", "outline"])
44
+ };
45
+ t.displayName = "KendoReactListFilter";
46
+ const y = t;
47
+ export {
48
+ y as default
49
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";const l=require("react");function a(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const s=a(l);class c extends s.Component{render(){const{group:i,virtual:t,render:r,isMultiColumn:o=!1}=this.props,n=s.createElement("li",{id:this.props.id,role:"group",className:o?"k-table-group-row":"k-list-group-item",style:o?{boxSizing:"inherit"}:{position:t?"relative":"unset"}},s.createElement("span",{className:r?void 0:o?"k-table-th":"k-list-item-text"},i));return r!==void 0?r.call(void 0,n,this.props):n}}module.exports=c;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as i from "react";
10
+ class a extends i.Component {
11
+ render() {
12
+ const {
13
+ group: s,
14
+ virtual: o,
15
+ render: e,
16
+ isMultiColumn: t = !1
17
+ } = this.props, r = /* @__PURE__ */ i.createElement(
18
+ "li",
19
+ {
20
+ id: this.props.id,
21
+ role: "group",
22
+ className: t ? "k-table-group-row" : "k-list-group-item",
23
+ style: t ? { boxSizing: "inherit" } : { position: o ? "relative" : "unset" }
24
+ },
25
+ /* @__PURE__ */ i.createElement("span", { className: e ? void 0 : t ? "k-table-th" : "k-list-item-text" }, s)
26
+ );
27
+ return e !== void 0 ? e.call(void 0, r, this.props) : r;
28
+ }
29
+ }
30
+ export {
31
+ a as default
32
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";const d=require("react"),u=require("@progress/kendo-react-common"),p=require("./utils.js");function m(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const r=m(d);class k extends r.Component{constructor(){super(...arguments),this.handleClick=e=>this.props.onClick(this.props.index,e)}render(){const{selected:e,group:t,dataItem:i,virtual:c,groupMode:o,disabled:l,render:n}=this.props,a=r.createElement("li",{id:this.props.id,role:"option","aria-selected":e,"aria-disabled":l?!0:void 0,className:u.classNames("k-list-item",{"k-selected":e,"k-focus":this.props.focused,"k-first":!!t&&o==="classic","k-disabled":l}),onClick:this.handleClick,style:{position:c?"relative":"unset"}},r.createElement("span",{className:"k-list-item-text"},p.getItemValue(i,this.props.textField).toString()),t!==void 0&&o==="classic"?r.createElement("div",{className:"k-list-item-group-label"},t):null);return n!==void 0?n.call(void 0,a,this.props):a}}module.exports=k;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as t from "react";
10
+ import { classNames as d } from "@progress/kendo-react-common";
11
+ import { getItemValue as n } from "./utils.mjs";
12
+ class h extends t.Component {
13
+ constructor() {
14
+ super(...arguments), this.handleClick = (e) => this.props.onClick(this.props.index, e);
15
+ }
16
+ render() {
17
+ const {
18
+ selected: e,
19
+ group: s,
20
+ dataItem: a,
21
+ virtual: c,
22
+ groupMode: i,
23
+ disabled: l,
24
+ render: r
25
+ } = this.props, o = /* @__PURE__ */ t.createElement(
26
+ "li",
27
+ {
28
+ id: this.props.id,
29
+ role: "option",
30
+ "aria-selected": e,
31
+ "aria-disabled": l ? !0 : void 0,
32
+ className: d("k-list-item", {
33
+ "k-selected": e,
34
+ "k-focus": this.props.focused,
35
+ "k-first": !!s && i === "classic",
36
+ "k-disabled": l
37
+ }),
38
+ onClick: this.handleClick,
39
+ style: { position: c ? "relative" : "unset" }
40
+ },
41
+ /* @__PURE__ */ t.createElement("span", { className: "k-list-item-text" }, n(a, this.props.textField).toString()),
42
+ s !== void 0 && i === "classic" ? /* @__PURE__ */ t.createElement("div", { className: "k-list-item-group-label" }, s) : null
43
+ );
44
+ return r !== void 0 ? r.call(void 0, o, this.props) : o;
45
+ }
46
+ }
47
+ export {
48
+ h as default
49
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=require("./List.js"),s=require("@progress/kendo-react-common");function i(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const o=i(a),c=e=>o.createElement(n,{...e,wrapperCssClass:"k-table-body k-table-scroller",listClassName:s.classNames("k-table k-table-list",{"k-virtual-table":e.virtual!==void 0}),listStyle:{...e.listStyle}});exports.MultiColumnList=c;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as l from "react";
10
+ import e from "./List.mjs";
11
+ import { classNames as s } from "@progress/kendo-react-common";
12
+ const r = (t) => /* @__PURE__ */ l.createElement(
13
+ e,
14
+ {
15
+ ...t,
16
+ wrapperCssClass: "k-table-body k-table-scroller",
17
+ listClassName: s(
18
+ "k-table k-table-list",
19
+ {
20
+ "k-virtual-table": t.virtual !== void 0
21
+ }
22
+ ),
23
+ listStyle: { ...t.listStyle }
24
+ }
25
+ );
26
+ export {
27
+ r as MultiColumnList
28
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./utils.js"),n=require("@progress/kendo-react-common");class m{navigate(e){const t=e.keyCode;if(t===n.Keys.up||t===n.Keys.left)return this.next({current:e.current,min:e.min,max:e.max,step:e.skipItems?e.skipItems:-1});if(t===n.Keys.down||t===n.Keys.right)return this.next({current:e.current,min:e.min,max:e.max,step:e.skipItems?e.skipItems:1});if(t===n.Keys.home)return 0;if(t===n.Keys.end)return e.max}next(e){return i.isPresent(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min}}exports.Navigation=m;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import { isPresent as i } from "./utils.mjs";
10
+ import { Keys as n } from "@progress/kendo-react-common";
11
+ class o {
12
+ navigate(e) {
13
+ const t = e.keyCode;
14
+ if (t === n.up || t === n.left)
15
+ return this.next({ current: e.current, min: e.min, max: e.max, step: e.skipItems ? e.skipItems : -1 });
16
+ if (t === n.down || t === n.right)
17
+ return this.next({ current: e.current, min: e.min, max: e.max, step: e.skipItems ? e.skipItems : 1 });
18
+ if (t === n.home)
19
+ return 0;
20
+ if (t === n.end)
21
+ return e.max;
22
+ }
23
+ next(e) {
24
+ return i(e.current) ? Math.min(e.max, Math.max(e.current + e.step, e.min)) : e.min;
25
+ }
26
+ }
27
+ export {
28
+ o as Navigation
29
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";const u=require("@progress/kendo-react-common"),h=require("react");function g(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const c=g(h);class b extends c.Component{constructor(){super(...arguments),this._input=null}get input(){return this._input}componentDidUpdate(t){const e=t.value,s=t.suggestedText,{value:i,suggestedText:n,focused:a}=this.props,r=this.input,p=e!==i||n!==s,l=p&&e.startsWith(i)&&!(s&&n&&s.endsWith(n)),d=u.getActiveElement(document);a&&r&&d!==r&&r.focus(),n&&p&&!l&&r&&r.setSelectionRange(i.length-n.length,i.length)}render(){const{expanded:t=!1,disabled:e,role:s="listbox",render:i}=this.props,n=c.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",key:"searchbar",size:this.props.size,placeholder:this.props.placeholder,className:"k-input-inner",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:a=>this._input=a,onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onClick:this.props.onClick,"aria-disabled":e||void 0,disabled:e||void 0,readOnly:this.props.readOnly||void 0,title:this.props.title,"aria-haspopup":"listbox","aria-expanded":t,"aria-owns":this.props.owns,"aria-activedescendant":t?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy,"aria-required":this.props.ariaRequired});return i?i.call(void 0,n):n}}module.exports=b;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import { getActiveElement as c } from "@progress/kendo-react-common";
10
+ import * as p from "react";
11
+ class g extends p.Component {
12
+ constructor() {
13
+ super(...arguments), this._input = null;
14
+ }
15
+ /**
16
+ * @hidden
17
+ */
18
+ get input() {
19
+ return this._input;
20
+ }
21
+ componentDidUpdate(t) {
22
+ const i = t.value, a = t.suggestedText, { value: s, suggestedText: e, focused: n } = this.props, o = this.input, r = i !== s || e !== a, d = r && i.startsWith(s) && !(a && e && a.endsWith(e)), l = c(document);
23
+ n && o && l !== o && o.focus(), e && r && !d && o && o.setSelectionRange(s.length - e.length, s.length);
24
+ }
25
+ render() {
26
+ const { expanded: t = !1, disabled: i, role: a = "listbox", render: s } = this.props, e = /* @__PURE__ */ p.createElement(
27
+ "input",
28
+ {
29
+ autoComplete: "off",
30
+ id: this.props.id,
31
+ type: "text",
32
+ key: "searchbar",
33
+ size: this.props.size,
34
+ placeholder: this.props.placeholder,
35
+ className: "k-input-inner",
36
+ tabIndex: this.props.tabIndex,
37
+ accessKey: this.props.accessKey,
38
+ role: a,
39
+ name: this.props.name,
40
+ value: this.props.value,
41
+ onChange: this.props.onChange,
42
+ ref: (n) => this._input = n,
43
+ onKeyDown: this.props.onKeyDown,
44
+ onFocus: this.props.onFocus,
45
+ onBlur: this.props.onBlur,
46
+ onClick: this.props.onClick,
47
+ "aria-disabled": i || void 0,
48
+ disabled: i || void 0,
49
+ readOnly: this.props.readOnly || void 0,
50
+ title: this.props.title,
51
+ "aria-haspopup": "listbox",
52
+ "aria-expanded": t,
53
+ "aria-owns": this.props.owns,
54
+ "aria-activedescendant": t ? this.props.activedescendant : void 0,
55
+ "aria-describedby": this.props.ariaDescribedBy,
56
+ "aria-labelledby": this.props.ariaLabelledBy,
57
+ "aria-required": this.props.ariaRequired
58
+ }
59
+ );
60
+ return s ? s.call(void 0, e) : e;
61
+ }
62
+ }
63
+ export {
64
+ g as default
65
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";class a{constructor(){this.container=null,this.scrollElement=null,this.list=null,this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.PageChange=null,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=t=>{const i=this;i.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(i.calcScrollElementHeight.bind(i),0))},this.calcScrollElementHeight=()=>{this.scrollSyncing=!0;let t=!1;this.itemHeight=this.list?this.list.children[0].offsetHeight:this.itemHeight,this.containerHeight=Math.min(1533915,this.itemHeight*this.total);const i=this.containerHeight;return this.scrollElement&&(t=this.scrollElement.style.height!==i+"px",t&&(this.scrollElement.style.height=i+"px")),this.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}get translate(){return this.listTranslate}changePage(t,i){const l=Math.min(Math.max(0,t),this.total-this.pageSize);l!==this.skip&&this.PageChange&&this.PageChange({skip:l,take:this.pageSize},i)}translateTo(t){this.listTranslate=t,this.list&&(this.list.style.transform="translateY("+t+"px)")}reset(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))}scrollToEnd(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))}localScrollUp(t){const i=this.itemHeight,l=this.container.scrollTop;let s=this.listTranslate,h,e=l-s;if(!(e>i)){for(h=0;h<this.skip&&!(s+i+e<=l);h++)s-=i;if(s=this.validateTranslate(s),this.skip-h<=0&&s>=l){this.translateTo(0),this.changePage(0,t),this.container.scrollTop=0;return}s!==this.listTranslate&&(this.translateTo(s),this.changePage(this.skip-h,t))}}localScrollDown(t){const i=this.itemHeight;let l=this.container.scrollTop,s=this.listTranslate;const h=this.list.children.length;let e;for(e=0;e<h&&!(s+i>=l);e++)s+=i;s=this.validateTranslate(s),e>=h&&this.skip+e>=this.total?(this.translateTo(s),this.changePage(this.total-1,t)):s!==this.listTranslate&&(this.translateTo(s),this.changePage(this.skip+e,t))}scrollNonStrict(t){const i=this.total*this.prevScrollPos/this.containerHeight,l=Math.min(Math.floor(i),this.total-1);let s=this.containerHeight*i/this.total;s=this.validateTranslate(s),this.translateTo(s),this.changePage(l,t)}scrollHandler(t){const i=this.container?this.container.scrollTop:0,l=this.prevScrollPos;this.prevScrollPos=i,!(!this.enabled||!this.list||!this.container||this.scrollSyncing)&&(i-l<=0&&i>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(t):i-l>0&&i<this.listTranslate+this.list.scrollHeight*2/3?this.localScrollDown(t):this.scrollNonStrict(t))}validateTranslate(t){return t=Math.max(0,t),t=Math.min(this.containerHeight,t),t}}module.exports=a;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ class n {
10
+ constructor() {
11
+ this.container = null, this.scrollElement = null, this.list = null, this.containerHeight = 0, this.skip = 0, this.total = 0, this.enabled = !1, this.pageSize = 0, this.itemHeight = 0, this.PageChange = null, this.prevScrollPos = 0, this.listTranslate = 0, this.scrollSyncing = !1, this.scrollerRef = (t) => {
12
+ const i = this;
13
+ i.container = t, t && (t.setAttribute("unselectable", "on"), window.setTimeout(i.calcScrollElementHeight.bind(i), 0));
14
+ }, this.calcScrollElementHeight = () => {
15
+ this.scrollSyncing = !0;
16
+ let t = !1;
17
+ this.itemHeight = this.list ? this.list.children[0].offsetHeight : this.itemHeight, this.containerHeight = Math.min(1533915, this.itemHeight * this.total);
18
+ const i = this.containerHeight;
19
+ return this.scrollElement && (t = this.scrollElement.style.height !== i + "px", t && (this.scrollElement.style.height = i + "px")), this.scrollSyncing = !1, t;
20
+ }, this.scrollHandler = this.scrollHandler.bind(this);
21
+ }
22
+ get translate() {
23
+ return this.listTranslate;
24
+ }
25
+ changePage(t, i) {
26
+ const l = Math.min(Math.max(0, t), this.total - this.pageSize);
27
+ l !== this.skip && this.PageChange && this.PageChange({ skip: l, take: this.pageSize }, i);
28
+ }
29
+ translateTo(t) {
30
+ this.listTranslate = t, this.list && (this.list.style.transform = "translateY(" + t + "px)");
31
+ }
32
+ reset() {
33
+ this.container && (this.calcScrollElementHeight(), this.container.scrollTop = 0, this.translateTo(0));
34
+ }
35
+ scrollToEnd() {
36
+ this.container && this.list && (this.calcScrollElementHeight(), this.container.scrollTop = this.container.scrollHeight - this.container.offsetHeight, this.translateTo(this.container.scrollHeight));
37
+ }
38
+ localScrollUp(t) {
39
+ const i = this.itemHeight, l = this.container.scrollTop;
40
+ let s = this.listTranslate, h, e = l - s;
41
+ if (!(e > i)) {
42
+ for (h = 0; h < this.skip && !(s + i + e <= l); h++)
43
+ s -= i;
44
+ if (s = this.validateTranslate(s), this.skip - h <= 0 && s >= l) {
45
+ this.translateTo(0), this.changePage(0, t), this.container.scrollTop = 0;
46
+ return;
47
+ }
48
+ s !== this.listTranslate && (this.translateTo(s), this.changePage(this.skip - h, t));
49
+ }
50
+ }
51
+ localScrollDown(t) {
52
+ const i = this.itemHeight;
53
+ let l = this.container.scrollTop, s = this.listTranslate;
54
+ const h = this.list.children.length;
55
+ let e;
56
+ for (e = 0; e < h && !(s + i >= l); e++)
57
+ s += i;
58
+ s = this.validateTranslate(s), e >= h && this.skip + e >= this.total ? (this.translateTo(s), this.changePage(this.total - 1, t)) : s !== this.listTranslate && (this.translateTo(s), this.changePage(this.skip + e, t));
59
+ }
60
+ scrollNonStrict(t) {
61
+ const i = this.total * this.prevScrollPos / this.containerHeight, l = Math.min(Math.floor(i), this.total - 1);
62
+ let s = this.containerHeight * i / this.total;
63
+ s = this.validateTranslate(s), this.translateTo(s), this.changePage(l, t);
64
+ }
65
+ scrollHandler(t) {
66
+ const i = this.container ? this.container.scrollTop : 0, l = this.prevScrollPos;
67
+ this.prevScrollPos = i, !(!this.enabled || !this.list || !this.container || this.scrollSyncing) && (i - l <= 0 && i > this.listTranslate - this.list.scrollHeight / 10 ? this.localScrollUp(t) : i - l > 0 && i < this.listTranslate + this.list.scrollHeight * 2 / 3 ? this.localScrollDown(t) : this.scrollNonStrict(t));
68
+ }
69
+ validateTranslate(t) {
70
+ return t = Math.max(0, t), t = Math.min(this.containerHeight, t), t;
71
+ }
72
+ }
73
+ export {
74
+ n as default
75
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=500,M=768;exports.MOBILE_MEDIUM_DEVISE=M;exports.MOBILE_SMALL_DEVISE=E;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ const E = 500, I = 768;
10
+ export {
11
+ I as MOBILE_MEDIUM_DEVISE,
12
+ E as MOBILE_SMALL_DEVISE
13
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(t=>(t[t.PopupList=0]="PopupList",t[t.TagsList=1]="TagsList",t))(r||{});exports.ActiveDescendant=r;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ var r = /* @__PURE__ */ ((p) => (p[p.PopupList = 0] = "PopupList", p[p.TagsList = 1] = "TagsList", p))(r || {});
10
+ export {
11
+ r as ActiveDescendant
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=e=>e!=null,I=(e,t)=>{for(let s=0;s<e.length;s++)if(e.charAt(s)!==t)return!1;return!0},d=(e,t,s)=>{let n=e;return s&&(n=[s].concat(n)),n.slice(t).concat(n.slice(0,t))},m=(e,t,s)=>{if(!c(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,a=t.children.item(s),f=a.offsetTop+(r?n-e.scrollTop:0),u=a.offsetHeight;if(r){let l=0;f+u>o?l=f+u-o:f<0&&(l=f),l!==0?e.scrollTop+=l:e.scrollTop===0&&n!==0&&(e.scrollTop=n)}else f+u>o+e.scrollTop?e.scrollTop=f+u-o:f<e.scrollTop&&(e.scrollTop-=e.scrollTop-f)},g=(e,t,s)=>{let n=-1;if(t){t=t.toLowerCase();for(let r=0;r<e.length;r++){const o=(i(e[r],s)||"")+"";if(o&&o.toLowerCase().startsWith(t)){n=r;break}}}return n},T=(e,t,s,n=!1)=>{const r=o=>n?o:o.toLowerCase();return e.findIndex(o=>s?r(i(o,s))===r(t):r(t)===r(o.toString()))},i=(e,t)=>{if(t&&c(e)){const s=t.split(".");let n=e;return s.forEach(r=>{n=n?n[r]:void 0}),n}return e},C=(e,t,s)=>{if(!e)return;const n=e.findIndex(r=>i(r,t)===s);return e[n]},p=(e=[],t=[],s)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!h(e[n],t[n],s))return!1;return!0},D=(e,t,s)=>{t.forEach(n=>{const r=e.findIndex(o=>h(o,n,s));r!==-1&&e.splice(r,1)})},h=(e,t,s)=>e===t||c(e)===c(t)&&i(e,s)===i(t,s),y=(e,t,s)=>{if(t){const n=T(e,t,s,!0);return n!==-1?e[n]:e[g(e,t,s)]}return e[0]},S=(e,t=[],s)=>{let n="";if(e){const r=t[g(t,e,s)];if(r){const o=i(r,s);e.toLowerCase()!==o.toLowerCase()&&(n=o.substring(e.length))}}return n},w=e=>{e.target.nodeName!=="INPUT"&&e.preventDefault()},L=(e,t,s)=>!!e!=!!t||e.text!==t.text?!1:e===t||p(e.data,t.data,s);exports.areSame=h;exports.findByFieldValue=C;exports.getFocusedItem=y;exports.getItemIndexByText=T;exports.getItemValue=i;exports.isPresent=c;exports.itemIndexStartsWith=g;exports.matchDataCollections=p;exports.matchTags=L;exports.matchText=m;exports.preventDefaultNonInputs=w;exports.removeDataItems=D;exports.sameCharsOnly=I;exports.scrollToItem=x;exports.shuffleData=d;exports.suggestValue=S;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ const h = (e) => e != null, d = (e, t) => {
10
+ for (let r = 0; r < e.length; r++)
11
+ if (e.charAt(r) !== t)
12
+ return !1;
13
+ return !0;
14
+ }, x = (e, t, r) => {
15
+ let n = e;
16
+ return r && (n = [r].concat(n)), n.slice(t).concat(n.slice(0, t));
17
+ }, C = (e, t, r) => {
18
+ if (!h(e))
19
+ return !1;
20
+ let n = String(e);
21
+ return r && (n = n.toLowerCase()), n.indexOf(t) === 0;
22
+ }, a = (e, t, r, n, s) => {
23
+ const o = e.offsetHeight, l = t.children.item(r), f = l.offsetTop + (s ? n - e.scrollTop : 0), c = l.offsetHeight;
24
+ if (s) {
25
+ let u = 0;
26
+ f + c > o ? u = f + c - o : f < 0 && (u = f), u !== 0 ? e.scrollTop += u : e.scrollTop === 0 && n !== 0 && (e.scrollTop = n);
27
+ } else
28
+ f + c > o + e.scrollTop ? e.scrollTop = f + c - o : f < e.scrollTop && (e.scrollTop -= e.scrollTop - f);
29
+ }, g = (e, t, r) => {
30
+ let n = -1;
31
+ if (t) {
32
+ t = t.toLowerCase();
33
+ for (let s = 0; s < e.length; s++) {
34
+ const o = (i(e[s], r) || "") + "";
35
+ if (o && o.toLowerCase().startsWith(t)) {
36
+ n = s;
37
+ break;
38
+ }
39
+ }
40
+ }
41
+ return n;
42
+ }, T = (e, t, r, n = !1) => {
43
+ const s = (o) => n ? o : o.toLowerCase();
44
+ return e.findIndex((o) => r ? s(i(o, r)) === s(t) : s(t) === s(o.toString()));
45
+ }, i = (e, t) => {
46
+ if (t && h(e)) {
47
+ const r = t.split(".");
48
+ let n = e;
49
+ return r.forEach((s) => {
50
+ n = n ? n[s] : void 0;
51
+ }), n;
52
+ }
53
+ return e;
54
+ }, w = (e, t, r) => {
55
+ if (!e)
56
+ return;
57
+ const n = e.findIndex((s) => i(s, t) === r);
58
+ return e[n];
59
+ }, I = (e = [], t = [], r) => {
60
+ if (e === t)
61
+ return !0;
62
+ if (e.length !== t.length)
63
+ return !1;
64
+ for (let n = 0; n < e.length; n++)
65
+ if (!p(e[n], t[n], r))
66
+ return !1;
67
+ return !0;
68
+ }, L = (e, t, r) => {
69
+ t.forEach((n) => {
70
+ const s = e.findIndex((o) => p(o, n, r));
71
+ s !== -1 && e.splice(s, 1);
72
+ });
73
+ }, p = (e, t, r) => e === t || h(e) === h(t) && i(e, r) === i(t, r), D = (e, t, r) => {
74
+ if (t) {
75
+ const n = T(e, t, r, !0);
76
+ return n !== -1 ? e[n] : e[g(e, t, r)];
77
+ }
78
+ return e[0];
79
+ }, H = (e, t = [], r) => {
80
+ let n = "";
81
+ if (e) {
82
+ const s = t[g(t, e, r)];
83
+ if (s) {
84
+ const o = i(s, r);
85
+ e.toLowerCase() !== o.toLowerCase() && (n = o.substring(e.length));
86
+ }
87
+ }
88
+ return n;
89
+ }, N = (e) => {
90
+ e.target.nodeName !== "INPUT" && e.preventDefault();
91
+ }, O = (e, t, r) => !!e != !!t || e.text !== t.text ? !1 : e === t || I(e.data, t.data, r);
92
+ export {
93
+ p as areSame,
94
+ w as findByFieldValue,
95
+ D as getFocusedItem,
96
+ T as getItemIndexByText,
97
+ i as getItemValue,
98
+ h as isPresent,
99
+ g as itemIndexStartsWith,
100
+ I as matchDataCollections,
101
+ O as matchTags,
102
+ C as matchText,
103
+ N as preventDefaultNonInputs,
104
+ L as removeDataItems,
105
+ d as sameCharsOnly,
106
+ a as scrollToItem,
107
+ x as shuffleData,
108
+ H as suggestValue
109
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";const o=require("@progress/kendo-react-common"),t=o.useCustomComponent;module.exports=t;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import { useCustomComponent as o } from "@progress/kendo-react-common";
10
+ const e = o;
11
+ export {
12
+ e as default
13
+ };