@progress/kendo-react-dropdowns 8.3.0-develop.5 → 8.3.0-develop.7

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/common/List.mjs CHANGED
@@ -7,112 +7,108 @@
7
7
  */
8
8
  "use client";
9
9
  import * as t from "react";
10
- import z from "./ListItem.mjs";
11
- import x from "./ListGroupItem.mjs";
12
- import { areSame as C, getItemValue as N } from "./utils.mjs";
13
- import { provideLocalizationService as F, registerForLocalization as M } from "@progress/kendo-react-intl";
14
- import { nodata as R, messages as $ } from "../messages/index.mjs";
15
- class A extends t.Component {
16
- renderItems() {
10
+ import Q from "./ListItem.mjs";
11
+ import T from "./ListGroupItem.mjs";
12
+ import { areSame as R, getItemValue as L } from "./utils.mjs";
13
+ import { useLocalization as W } from "@progress/kendo-react-intl";
14
+ import { nodata as b, messages as X } from "../messages/index.mjs";
15
+ import { useUnstyled as Y, classNames as g, uDropDownsBase as p } from "@progress/kendo-react-common";
16
+ const Z = (e) => {
17
+ const k = W(), y = Y(), c = y && y.uDropDownsBase, {
18
+ id: B,
19
+ show: $,
20
+ wrapperCssClass: z,
21
+ wrapperStyle: M,
22
+ listStyle: x,
23
+ listRef: A,
24
+ wrapperRef: F,
25
+ listClassName: G,
26
+ ariaSetSize: V
27
+ } = e, D = (() => {
17
28
  const {
18
- textField: l,
19
- valueField: r,
20
- groupField: e,
21
- groupMode: o,
22
- isMultiColumn: f,
23
- optionsGuid: n,
24
- skip: d = 0,
25
- virtual: p,
26
- focusedIndex: c,
27
- hasDuplicates: v,
28
- highlightSelected: m = !0,
29
- value: u,
29
+ textField: n,
30
+ valueField: s,
31
+ groupField: u,
32
+ groupMode: l,
33
+ isMultiColumn: U,
34
+ optionsGuid: I,
35
+ skip: S = 0,
36
+ virtual: h,
37
+ focusedIndex: C,
38
+ hasDuplicates: j,
39
+ highlightSelected: q = !0,
40
+ value: i,
30
41
  data: E,
31
- itemRender: w,
32
- groupHeaderItemRender: D
33
- } = this.props, y = Array.isArray(u);
34
- let k = 0;
35
- return E.map((s, i) => {
36
- const g = d + i, I = d + i + k, L = v ? u ? c === i : !1 : s.disabled ? !1 : m && (!y && C(s, u, r) || y && u.findIndex((b) => C(b, s, r)) !== -1);
37
- let a, h, S;
38
- return i > 0 && e !== void 0 && (h = N(s, e), S = N(E[i - 1], e), h && S && h !== S && (a = h)), a !== void 0 && o === "modern" && (k += 1), [
39
- a !== void 0 && o === "modern" && /* @__PURE__ */ t.createElement(
40
- x,
42
+ itemRender: J,
43
+ groupHeaderItemRender: K
44
+ } = e, w = Array.isArray(i);
45
+ let N = 0;
46
+ return E.map((o, r) => {
47
+ const m = S + r, f = S + r + N, O = j ? i ? C === r : !1 : o.disabled ? !1 : q && (!w && R(o, i, s) || w && i.findIndex((P) => R(P, o, s)) !== -1);
48
+ let a, d, v;
49
+ return r > 0 && u !== void 0 && (d = L(o, u), v = L(E[r - 1], u), d && v && d !== v && (a = d)), a !== void 0 && l === "modern" && (N += 1), [
50
+ a !== void 0 && l === "modern" && /* @__PURE__ */ t.createElement(
51
+ T,
41
52
  {
42
- id: `option-${n}-${I}`,
43
- virtual: p,
44
- key: g + "-group-item",
53
+ id: `option-${I}-${f}`,
54
+ virtual: h,
55
+ key: m + "-group-item",
45
56
  group: a,
46
- isMultiColumn: f,
47
- render: D
57
+ isMultiColumn: U,
58
+ render: K
48
59
  }
49
60
  ),
50
61
  /* @__PURE__ */ t.createElement(
51
- z,
62
+ Q,
52
63
  {
53
- id: `option-${n}-${a !== void 0 && o === "modern" ? I + 1 : I}`,
54
- virtual: p,
55
- dataItem: s,
56
- groupMode: o,
57
- selected: L,
58
- focused: c === i,
59
- index: g,
60
- key: g,
61
- onClick: this.props.onClick,
62
- textField: l,
64
+ id: `option-${I}-${a !== void 0 && l === "modern" ? f + 1 : f}`,
65
+ virtual: h,
66
+ dataItem: o,
67
+ groupMode: l,
68
+ selected: O,
69
+ focused: C === r,
70
+ index: m,
71
+ key: m,
72
+ onClick: e.onClick,
73
+ textField: n,
63
74
  group: a,
64
- render: w,
65
- disabled: s.disabled
75
+ render: J,
76
+ disabled: o.disabled
66
77
  }
67
78
  )
68
79
  ];
69
80
  });
70
- }
71
- renderNoValueElement(l) {
72
- const r = this.props.noDataRender, e = /* @__PURE__ */ t.createElement("div", { className: "k-nodata" }, /* @__PURE__ */ t.createElement("div", null, l.toLanguageString(R, $[R])));
73
- return r ? r.call(void 0, e) : e;
74
- }
75
- render() {
76
- const l = F(this), {
77
- id: r,
78
- show: e,
79
- wrapperCssClass: o,
80
- wrapperStyle: f,
81
- listStyle: n,
82
- listRef: d,
83
- wrapperRef: p,
84
- listClassName: c = "k-list-ul",
85
- ariaSetSize: v
86
- } = this.props, m = this.renderItems();
87
- return m.length ? /* @__PURE__ */ t.createElement(
88
- "div",
81
+ })(), H = () => {
82
+ const n = e.noDataRender, s = /* @__PURE__ */ t.createElement("div", { className: g(p.noData({ c })) }, /* @__PURE__ */ t.createElement("div", null, k.toLanguageString(b, X[b])));
83
+ return n ? n.call(void 0, s) : s;
84
+ };
85
+ return D.length ? /* @__PURE__ */ t.createElement(
86
+ "div",
87
+ {
88
+ className: z,
89
+ style: M,
90
+ ref: F,
91
+ onMouseDown: e.onMouseDown,
92
+ onBlur: e.onBlur,
93
+ onScroll: e.onScroll,
94
+ unselectable: "on"
95
+ },
96
+ /* @__PURE__ */ t.createElement(
97
+ "ul",
89
98
  {
90
- className: o,
91
- style: f,
92
- ref: p,
93
- onMouseDown: this.props.onMouseDown,
94
- onBlur: this.props.onBlur,
95
- onScroll: this.props.onScroll,
96
- unselectable: "on"
99
+ id: B,
100
+ role: "listbox",
101
+ "aria-hidden": $ ? void 0 : !0,
102
+ "aria-setsize": V,
103
+ className: G || g(p.ul({ c })),
104
+ ref: A,
105
+ style: x
97
106
  },
98
- /* @__PURE__ */ t.createElement(
99
- "ul",
100
- {
101
- id: r,
102
- role: "listbox",
103
- "aria-hidden": e ? void 0 : !0,
104
- "aria-setsize": v,
105
- className: c,
106
- ref: d,
107
- style: n
108
- },
109
- m
110
- ),
111
- this.props.scroller && /* @__PURE__ */ t.createElement("div", { className: "k-height-container" }, this.props.scroller)
112
- ) : this.renderNoValueElement(l);
113
- }
114
- }
115
- M(A);
107
+ D
108
+ ),
109
+ e.scroller && /* @__PURE__ */ t.createElement("div", { className: g(p.heightContainer({ c })) }, e.scroller)
110
+ ) : H();
111
+ }, ne = Z;
116
112
  export {
117
- A as default
113
+ ne as default
118
114
  };
@@ -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 client";"use strict";const s=require("react"),u=require("@progress/kendo-react-popup");function a(e){const n=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(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=a(s);class p extends c.Component{render(){const{children:n,width:t,dir:r,itemsCount:o,popupSettings:i}=this.props;return c.createElement(u.Popup,{style:{width:t,direction:r},contentKey:o&&o.join(),...i},n)}}module.exports=p;
8
+ "use client";"use strict";const i=require("react"),s=require("@progress/kendo-react-popup");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=u(i),p=e=>{const{children:n,width:t,dir:o,itemsCount:r,popupSettings:c}=e;return a.createElement(s.Popup,{style:{width:t,direction:o},contentKey:r&&r.join(),...c},n)},l=p;module.exports=l;
@@ -6,28 +6,26 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as e from "react";
10
- import { Popup as s } from "@progress/kendo-react-popup";
11
- class a extends e.Component {
12
- render() {
13
- const {
14
- children: n,
15
- width: o,
16
- dir: r,
17
- itemsCount: t,
18
- popupSettings: i
19
- } = this.props;
20
- return /* @__PURE__ */ e.createElement(
21
- s,
22
- {
23
- style: { width: o, direction: r },
24
- contentKey: t && t.join(),
25
- ...i
26
- },
27
- n
28
- );
29
- }
30
- }
9
+ import * as s from "react";
10
+ import { Popup as c } from "@progress/kendo-react-popup";
11
+ const p = (e) => {
12
+ const {
13
+ children: n,
14
+ width: o,
15
+ dir: i,
16
+ itemsCount: t,
17
+ popupSettings: r
18
+ } = e;
19
+ return /* @__PURE__ */ s.createElement(
20
+ c,
21
+ {
22
+ style: { width: o, direction: i },
23
+ contentKey: t && t.join(),
24
+ ...r
25
+ },
26
+ n
27
+ );
28
+ }, m = p;
31
29
  export {
32
- a as default
30
+ m as default
33
31
  };
@@ -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 client";"use strict";const r=require("react"),c=require("@progress/kendo-react-common"),l=require("./utils.js");function a(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=a(r),i=e=>e.preventDefault();class u extends o.Component{render(){const{selected:n,defaultItem:t,textField:s}=this.props;return o.createElement("div",{onClick:this.props.onClick,onMouseDown:i,style:{position:"unset"},className:c.classNames("k-list-optionlabel",{"k-selected":n})},l.getItemValue(t,s)||"")}}module.exports=u;
8
+ "use client";"use strict";const a=require("react"),o=require("@progress/kendo-react-common"),r=require("./utils.js");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=u(a),d=e=>e.preventDefault(),f=e=>{const{selected:n,defaultItem:t,textField:s}=e,c=o.useUnstyled(),l=c&&c.uDropDownsBase;return i.createElement("div",{onClick:e.onClick,onMouseDown:d,style:{position:"unset"},className:o.classNames(o.uDropDownsBase.optionlabel({c:l,selected:n}))},r.getItemValue(t,s)||"")};module.exports=f;
@@ -6,31 +6,26 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
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
- }
9
+ import * as a from "react";
10
+ import { useUnstyled as c, classNames as u, uDropDownsBase as r } from "@progress/kendo-react-common";
11
+ import { getItemValue as i } from "./utils.mjs";
12
+ const m = (e) => e.preventDefault(), p = (e) => {
13
+ const {
14
+ selected: s,
15
+ defaultItem: o,
16
+ textField: l
17
+ } = e, t = c(), n = t && t.uDropDownsBase;
18
+ return /* @__PURE__ */ a.createElement(
19
+ "div",
20
+ {
21
+ onClick: e.onClick,
22
+ onMouseDown: m,
23
+ style: { position: "unset" },
24
+ className: u(r.optionlabel({ c: n, selected: s }))
25
+ },
26
+ i(o, l) || ""
27
+ );
28
+ };
34
29
  export {
35
30
  p as default
36
31
  };
@@ -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 client";"use strict";const m=require("react"),n=require("prop-types"),l=require("@progress/kendo-react-inputs"),p=require("@progress/kendo-svg-icons"),b=require("@progress/kendo-react-common");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const t=g(m),c=t.forwardRef((e,o)=>{const r=t.useRef(null),{renderListFilterWrapper:a=!1,renderPrefixSeparator:s=!1,...u}=e;t.useImperativeHandle(o,()=>r.current);const d=()=>t.createElement(t.Fragment,null,t.createElement(l.InputPrefix,null,t.createElement(b.IconWrap,{name:"search",icon:p.searchIcon,className:"k-input-icon"})),s&&t.createElement(l.InputSeparator,null)),i=t.createElement(l.TextBox,{...u,ref:r,className:"k-searchbox",value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:f=>f.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:d});return a?t.createElement("div",{className:"k-list-filter"}," ",i," "):i});c.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"]),renderListFilterWrapper:n.bool,renderPrefixSeparator:n.bool};c.displayName="KendoReactListFilter";const x=c;module.exports=x;
8
+ "use client";"use strict";const g=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),x=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common");function y(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const t=y(g),u=t.forwardRef((e,o)=>{const a=t.useRef(null),{renderListFilterWrapper:l=!1,renderPrefixSeparator:f=!1,...m}=e,i=r.useUnstyled(),s=i&&i.uDropDownsBase;t.useImperativeHandle(o,()=>a.current);const p=()=>t.createElement(t.Fragment,null,t.createElement(c.InputPrefix,null,t.createElement(r.IconWrap,{name:"search",icon:x.searchIcon,className:r.classNames(r.uDropDownsBase.inputIcon({c:s}))})),f&&t.createElement(c.InputSeparator,null)),d=t.createElement(c.TextBox,{...m,ref:a,className:r.classNames(r.uDropDownsBase.searchbox({c:s})),value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:b=>b.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:p});return l?t.createElement("div",{className:r.classNames(r.uDropDownsBase.listFilter({c:s}))}," ",d," "):d});u.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"]),renderListFilterWrapper:n.bool,renderPrefixSeparator:n.bool};u.displayName="KendoReactListFilter";const D=u;module.exports=D;
@@ -8,35 +8,35 @@
8
8
  "use client";
9
9
  import * as n from "react";
10
10
  import e from "prop-types";
11
- import { TextBox as f, InputPrefix as d, InputSeparator as p } from "@progress/kendo-react-inputs";
12
- import { searchIcon as x } from "@progress/kendo-svg-icons";
13
- import { IconWrap as b } from "@progress/kendo-react-common";
14
- const t = n.forwardRef((r, o) => {
15
- const l = n.useRef(null), { renderListFilterWrapper: i = !1, renderPrefixSeparator: s = !1, ...m } = r;
11
+ import { TextBox as y, InputPrefix as b, InputSeparator as I } from "@progress/kendo-react-inputs";
12
+ import { searchIcon as g } from "@progress/kendo-svg-icons";
13
+ import { useUnstyled as h, classNames as l, uDropDownsBase as a, IconWrap as D } from "@progress/kendo-react-common";
14
+ const o = n.forwardRef((r, u) => {
15
+ const s = n.useRef(null), { renderListFilterWrapper: m = !1, renderPrefixSeparator: d = !1, ...f } = r, i = h(), t = i && i.uDropDownsBase;
16
16
  n.useImperativeHandle(
17
- o,
18
- () => l.current
17
+ u,
18
+ () => s.current
19
19
  );
20
- const u = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(d, null, /* @__PURE__ */ n.createElement(b, { name: "search", icon: x, className: "k-input-icon" })), s && /* @__PURE__ */ n.createElement(p, null)), a = /* @__PURE__ */ n.createElement(
21
- f,
20
+ const p = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(b, null, /* @__PURE__ */ n.createElement(D, { name: "search", icon: g, className: l(a.inputIcon({ c: t })) })), d && /* @__PURE__ */ n.createElement(I, null)), c = /* @__PURE__ */ n.createElement(
21
+ y,
22
22
  {
23
- ...m,
24
- ref: l,
25
- className: "k-searchbox",
23
+ ...f,
24
+ ref: s,
25
+ className: l(a.searchbox({ c: t })),
26
26
  value: r.value || "",
27
27
  onChange: r.onChange,
28
28
  onKeyDown: r.onKeyDown,
29
29
  tabIndex: r.tabIndex,
30
- onClick: (c) => c.stopPropagation(),
30
+ onClick: (x) => x.stopPropagation(),
31
31
  size: r.size,
32
32
  fillMode: r.fillMode,
33
33
  rounded: r.rounded,
34
- prefix: u
34
+ prefix: p
35
35
  }
36
36
  );
37
- return i ? /* @__PURE__ */ n.createElement("div", { className: "k-list-filter" }, " ", a, " ") : a;
37
+ return m ? /* @__PURE__ */ n.createElement("div", { className: l(a.listFilter({ c: t })) }, " ", c, " ") : c;
38
38
  });
39
- t.propTypes = {
39
+ o.propTypes = {
40
40
  value: e.oneOfType([e.string, e.number, e.array]),
41
41
  tabIndex: e.number,
42
42
  onChange: e.func,
@@ -47,8 +47,8 @@ t.propTypes = {
47
47
  renderListFilterWrapper: e.bool,
48
48
  renderPrefixSeparator: e.bool
49
49
  };
50
- t.displayName = "KendoReactListFilter";
51
- const E = t;
50
+ o.displayName = "KendoReactListFilter";
51
+ const C = o;
52
52
  export {
53
- E as default
53
+ C as default
54
54
  };
@@ -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 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;
8
+ "use client";"use strict";const o=require("@progress/kendo-react-common"),d=require("react");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=m(d),p=e=>{const{group:n,virtual:t,render:s,isMultiColumn:r=!1,id:u}=e,a=o.useUnstyled(),c=a&&a.uDropDownsBase,i=l.createElement("li",{id:u,role:"group",className:o.classNames(o.uDropDownsBase.groupLi({c,isMultiColumn:r})),style:r?{boxSizing:"inherit"}:{position:t?"relative":"unset"}},l.createElement("span",{className:s?void 0:o.classNames(o.uDropDownsBase.groupItemText({c,isMultiColumn:r}))},n));return s!==void 0?s.call(void 0,i,e):i};module.exports=p;
@@ -6,27 +6,27 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
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
- }
9
+ import { useUnstyled as d, classNames as i, uDropDownsBase as l } from "@progress/kendo-react-common";
10
+ import * as n from "react";
11
+ const g = (t) => {
12
+ const {
13
+ group: u,
14
+ virtual: c,
15
+ render: e,
16
+ isMultiColumn: s = !1,
17
+ id: m
18
+ } = t, o = d(), r = o && o.uDropDownsBase, a = /* @__PURE__ */ n.createElement(
19
+ "li",
20
+ {
21
+ id: m,
22
+ role: "group",
23
+ className: i(l.groupLi({ c: r, isMultiColumn: s })),
24
+ style: s ? { boxSizing: "inherit" } : { position: c ? "relative" : "unset" }
25
+ },
26
+ /* @__PURE__ */ n.createElement("span", { className: e ? void 0 : i(l.groupItemText({ c: r, isMultiColumn: s })) }, u)
27
+ );
28
+ return e !== void 0 ? e.call(void 0, a, t) : a;
29
+ };
30
30
  export {
31
- a as default
31
+ g as default
32
32
  };
@@ -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 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;
8
+ "use client";"use strict";const p=require("react"),s=require("@progress/kendo-react-common"),v=require("./utils.js");function N(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const o=N(p),y=e=>{const{selected:a,group:t,dataItem:n,virtual:m,groupMode:l,disabled:i,id:f,focused:D,render:r}=e,u=s.useUnstyled(),c=u&&u.uDropDownsBase,b=g=>e.onClick(e.index,g),d=o.createElement("li",{id:f,role:"option","aria-selected":a,"aria-disabled":i?!0:void 0,className:s.classNames(s.uDropDownsBase.li({c,selected:a,focused:D,first:!!t&&l==="classic",disabled:i})),onClick:b,style:{position:m?"relative":"unset"}},o.createElement("span",{className:s.classNames(s.uDropDownsBase.itemText({c}))},v.getItemValue(n,e.textField).toString()),t!==void 0&&l==="classic"?o.createElement("div",{className:s.classNames(s.uDropDownsBase.itemGroupLabel({c}))},t):null);return r!==void 0?r.call(void 0,d,e):d},B=y;module.exports=B;
@@ -6,44 +6,42 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
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
- }
9
+ import * as a from "react";
10
+ import { useUnstyled as B, classNames as l, uDropDownsBase as i } from "@progress/kendo-react-common";
11
+ import { getItemValue as C } from "./utils.mjs";
12
+ const D = (e) => {
13
+ const {
14
+ selected: o,
15
+ group: t,
16
+ dataItem: u,
17
+ virtual: v,
18
+ groupMode: c,
19
+ disabled: n,
20
+ id: f,
21
+ focused: g,
22
+ render: r
23
+ } = e, d = B(), s = d && d.uDropDownsBase, p = (x) => e.onClick(e.index, x), m = /* @__PURE__ */ a.createElement(
24
+ "li",
25
+ {
26
+ id: f,
27
+ role: "option",
28
+ "aria-selected": o,
29
+ "aria-disabled": n ? !0 : void 0,
30
+ className: l(i.li({
31
+ c: s,
32
+ selected: o,
33
+ focused: g,
34
+ first: !!t && c === "classic",
35
+ disabled: n
36
+ })),
37
+ onClick: p,
38
+ style: { position: v ? "relative" : "unset" }
39
+ },
40
+ /* @__PURE__ */ a.createElement("span", { className: l(i.itemText({ c: s })) }, C(u, e.textField).toString()),
41
+ t !== void 0 && c === "classic" ? /* @__PURE__ */ a.createElement("div", { className: l(i.itemGroupLabel({ c: s })) }, t) : null
42
+ );
43
+ return r !== void 0 ? r.call(void 0, m, e) : m;
44
+ }, b = D;
47
45
  export {
48
- h as default
46
+ b as default
49
47
  };