@progress/kendo-react-treelist 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.
- package/TreeList.js +8 -0
- package/TreeList.mjs +580 -0
- package/TreeListNoRecords.js +8 -0
- package/TreeListNoRecords.mjs +23 -0
- package/TreeListToolbar.js +8 -0
- package/TreeListToolbar.mjs +26 -0
- package/cells/EditCells/TreeListBooleanEditor.js +8 -0
- package/cells/EditCells/TreeListBooleanEditor.mjs +55 -0
- package/cells/EditCells/TreeListDateEditor.js +8 -0
- package/cells/EditCells/TreeListDateEditor.mjs +54 -0
- package/cells/EditCells/TreeListNumericEditor.js +8 -0
- package/cells/EditCells/TreeListNumericEditor.mjs +53 -0
- package/cells/EditCells/TreeListTextEditor.js +8 -0
- package/cells/EditCells/TreeListTextEditor.mjs +53 -0
- package/cells/FilterCells/TreeListBooleanFilter.js +8 -0
- package/cells/FilterCells/TreeListBooleanFilter.mjs +26 -0
- package/cells/FilterCells/TreeListDateFilter.js +8 -0
- package/cells/FilterCells/TreeListDateFilter.mjs +26 -0
- package/cells/FilterCells/TreeListNumericFilter.js +8 -0
- package/cells/FilterCells/TreeListNumericFilter.mjs +26 -0
- package/cells/FilterCells/TreeListTextFilter.js +8 -0
- package/cells/FilterCells/TreeListTextFilter.mjs +26 -0
- package/cells/FilterCells/utils.js +8 -0
- package/cells/FilterCells/utils.mjs +59 -0
- package/cells/TreeListCell.js +8 -0
- package/cells/TreeListCell.mjs +71 -0
- package/cells/TreeListSelectionCell.js +8 -0
- package/cells/TreeListSelectionCell.mjs +47 -0
- package/constants/index.js +8 -0
- package/constants/index.mjs +15 -0
- package/dist/cdn/js/kendo-react-treelist.js +8 -5
- package/header/TreeListHeaderCell.js +8 -0
- package/header/TreeListHeaderCell.mjs +14 -0
- package/header/TreeListHeaderSelectionCell.js +8 -0
- package/header/TreeListHeaderSelectionCell.mjs +25 -0
- package/index.d.mts +1139 -5
- package/index.d.ts +1139 -38
- package/index.js +8 -5
- package/index.mjs +66 -1184
- package/messages/index.js +8 -0
- package/messages/index.mjs +59 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +8 -8
- package/rows/TreeListDraggableRow.js +8 -0
- package/rows/TreeListDraggableRow.mjs +130 -0
- package/rows/TreeListRow.js +8 -0
- package/rows/TreeListRow.mjs +47 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +46 -0
- package/ScrollMode.d.ts +0 -5
- package/TreeList.d.ts +0 -137
- package/TreeListNoRecords.d.ts +0 -16
- package/TreeListToolbar.d.ts +0 -15
- package/cells/EditCells/TreeListBooleanEditor.d.ts +0 -11
- package/cells/EditCells/TreeListDateEditor.d.ts +0 -11
- package/cells/EditCells/TreeListNumericEditor.d.ts +0 -12
- package/cells/EditCells/TreeListTextEditor.d.ts +0 -11
- package/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -14
- package/cells/FilterCells/TreeListDateFilter.d.ts +0 -14
- package/cells/FilterCells/TreeListNumericFilter.d.ts +0 -14
- package/cells/FilterCells/TreeListTextFilter.d.ts +0 -14
- package/cells/FilterCells/utils.d.ts +0 -42
- package/cells/TreeListCell.d.ts +0 -9
- package/cells/TreeListSelectionCell.d.ts +0 -11
- package/constants/index.d.ts +0 -10
- package/header/TreeListHeaderCell.d.ts +0 -7
- package/header/TreeListHeaderSelectionCell.d.ts +0 -15
- package/interfaces/DataItemWrapper.d.ts +0 -14
- package/interfaces/TreeListCellProps.d.ts +0 -45
- package/interfaces/TreeListColumnProps.d.ts +0 -45
- package/interfaces/TreeListFilterCellProps.d.ts +0 -10
- package/interfaces/TreeListFilterOperator.d.ts +0 -10
- package/interfaces/TreeListHeaderCellProps.d.ts +0 -10
- package/interfaces/TreeListNoRecordsProps.d.ts +0 -13
- package/interfaces/TreeListProps.d.ts +0 -241
- package/interfaces/TreeListRowProps.d.ts +0 -96
- package/interfaces/TreeListSelectableSettings.d.ts +0 -22
- package/interfaces/TreeListSortSettings.d.ts +0 -13
- package/interfaces/TreeListToolbarProps.d.ts +0 -13
- package/interfaces/events.d.ts +0 -269
- package/messages/index.d.ts +0 -124
- package/package-metadata.d.ts +0 -9
- package/rows/TreeListDraggableRow.d.ts +0 -36
- package/rows/TreeListRow.d.ts +0 -10
- package/utils/index.d.ts +0 -21
|
@@ -0,0 +1,26 @@
|
|
|
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 e from "react";
|
|
10
|
+
class o extends e.Component {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
render() {
|
|
15
|
+
return /* @__PURE__ */ e.createElement(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: "k-toolbar k-toolbar-md k-grid-toolbar"
|
|
19
|
+
},
|
|
20
|
+
this.props.children
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
o as TreeListToolbar
|
|
26
|
+
};
|
|
@@ -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 s=require("react"),c=require("@progress/kendo-react-common"),u=require("@progress/kendo-react-data-tools"),m=require("../../constants/index.js");function b(e){const a=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(a,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=b(s),o=e=>{const a=n.useCallback(i=>{e.onChange&&e.onChange({dataItem:e.dataItem,level:e.level,field:e.field,syntheticEvent:i,value:i.target.checked})},[e.onChange,e.dataItem,e.level,e.field]),t=c.useId(),l=u.useTableKeyboardNavigation(e.id),r=c.classNames({"k-selected":e.isSelected},e.className),d=n.createElement("td",{style:e.style,className:r,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,role:"gridcell",...l,[m.TREELIST_COL_INDEX_ATTRIBUTE]:e.colIndex},n.createElement("input",{checked:c.getNestedValue(e.field,e.dataItem)||!1,id:t,type:"checkbox",className:"k-checkbox k-checkbox-md k-rounded-md",onChange:a}),n.createElement("label",{className:"k-checkbox-label",htmlFor:t}));return e.render?e.render.call(void 0,d,e):d};o.displayName="KendoReactTreeListBooleanEditor";exports.TreeListBooleanEditor=o;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { useId as m, classNames as o, getNestedValue as s } from "@progress/kendo-react-common";
|
|
11
|
+
import { useTableKeyboardNavigation as r } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { TREELIST_COL_INDEX_ATTRIBUTE as u } from "../../constants/index.mjs";
|
|
13
|
+
const h = (e) => {
|
|
14
|
+
const d = t.useCallback(
|
|
15
|
+
(c) => {
|
|
16
|
+
e.onChange && e.onChange({
|
|
17
|
+
dataItem: e.dataItem,
|
|
18
|
+
level: e.level,
|
|
19
|
+
field: e.field,
|
|
20
|
+
syntheticEvent: c,
|
|
21
|
+
value: c.target.checked
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
[e.onChange, e.dataItem, e.level, e.field]
|
|
25
|
+
), a = m(), n = r(e.id), i = o({
|
|
26
|
+
"k-selected": e.isSelected
|
|
27
|
+
}, e.className), l = /* @__PURE__ */ t.createElement(
|
|
28
|
+
"td",
|
|
29
|
+
{
|
|
30
|
+
style: e.style,
|
|
31
|
+
className: i,
|
|
32
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
33
|
+
"aria-selected": e.isSelected,
|
|
34
|
+
role: "gridcell",
|
|
35
|
+
...n,
|
|
36
|
+
[u]: e.colIndex
|
|
37
|
+
},
|
|
38
|
+
/* @__PURE__ */ t.createElement(
|
|
39
|
+
"input",
|
|
40
|
+
{
|
|
41
|
+
checked: s(e.field, e.dataItem) || !1,
|
|
42
|
+
id: a,
|
|
43
|
+
type: "checkbox",
|
|
44
|
+
className: "k-checkbox k-checkbox-md k-rounded-md",
|
|
45
|
+
onChange: d
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ t.createElement("label", { className: "k-checkbox-label", htmlFor: a })
|
|
49
|
+
);
|
|
50
|
+
return e.render ? e.render.call(void 0, l, e) : l;
|
|
51
|
+
};
|
|
52
|
+
h.displayName = "KendoReactTreeListBooleanEditor";
|
|
53
|
+
export {
|
|
54
|
+
h as TreeListBooleanEditor
|
|
55
|
+
};
|
|
@@ -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 u=require("react"),o=require("@progress/kendo-react-dateinputs"),s=require("@progress/kendo-react-data-tools"),m=require("../../constants/index.js"),d=require("@progress/kendo-react-common");function f(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 l=f(u),r=e=>{const a=l.useCallback(c=>{e.onChange&&e.onChange({dataItem:e.dataItem,level:e.level,field:e.field,syntheticEvent:c.syntheticEvent,value:c.value})},[e.onChange,e.dataItem,e.level,e.field]),t=s.useTableKeyboardNavigation(e.id),n=d.classNames({"k-selected":e.isSelected},e.className);let i=l.createElement("td",{style:e.style,className:n,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,role:"gridcell",...t,[m.TREELIST_COL_INDEX_ATTRIBUTE]:e.colIndex},l.createElement(o.DatePicker,{width:"100%",value:d.getNestedValue(e.field,e.dataItem),onChange:a}));return e.render?e.render.call(void 0,i,e):i};r.displayName="KendoReactTreeListDateEditor";exports.TreeListDateEditor=r;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { DatePicker as c } from "@progress/kendo-react-dateinputs";
|
|
11
|
+
import { useTableKeyboardNavigation as m } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { TREELIST_COL_INDEX_ATTRIBUTE as r } from "../../constants/index.mjs";
|
|
13
|
+
import { classNames as f, getNestedValue as s } from "@progress/kendo-react-common";
|
|
14
|
+
const u = (e) => {
|
|
15
|
+
const i = t.useCallback(
|
|
16
|
+
(l) => {
|
|
17
|
+
e.onChange && e.onChange({
|
|
18
|
+
dataItem: e.dataItem,
|
|
19
|
+
level: e.level,
|
|
20
|
+
field: e.field,
|
|
21
|
+
syntheticEvent: l.syntheticEvent,
|
|
22
|
+
value: l.value
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
[e.onChange, e.dataItem, e.level, e.field]
|
|
26
|
+
), d = m(e.id), n = f({
|
|
27
|
+
"k-selected": e.isSelected
|
|
28
|
+
}, e.className);
|
|
29
|
+
let a = /* @__PURE__ */ t.createElement(
|
|
30
|
+
"td",
|
|
31
|
+
{
|
|
32
|
+
style: e.style,
|
|
33
|
+
className: n,
|
|
34
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
35
|
+
"aria-selected": e.isSelected,
|
|
36
|
+
role: "gridcell",
|
|
37
|
+
...d,
|
|
38
|
+
[r]: e.colIndex
|
|
39
|
+
},
|
|
40
|
+
/* @__PURE__ */ t.createElement(
|
|
41
|
+
c,
|
|
42
|
+
{
|
|
43
|
+
width: "100%",
|
|
44
|
+
value: s(e.field, e.dataItem),
|
|
45
|
+
onChange: i
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
return e.render ? e.render.call(void 0, a, e) : a;
|
|
50
|
+
};
|
|
51
|
+
u.displayName = "KendoReactTreeListDateEditor";
|
|
52
|
+
export {
|
|
53
|
+
u as TreeListDateEditor
|
|
54
|
+
};
|
|
@@ -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 o=require("react"),s=require("@progress/kendo-react-inputs"),m=require("@progress/kendo-react-data-tools"),f=require("../../constants/index.js"),d=require("@progress/kendo-react-common");function g(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 l=g(o),r=e=>{const a=l.useCallback(c=>{e.onChange&&e.onChange({dataItem:e.dataItem,level:e.level,field:e.field,syntheticEvent:c.syntheticEvent,value:c.value})},[e.onChange,e.dataItem,e.level,e.field]),t=d.getNestedValue(e.field,e.dataItem),n=m.useTableKeyboardNavigation(e.id),u=d.classNames({"k-selected":e.isSelected},e.className),i=l.createElement("td",{style:e.style,className:u,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,role:"gridcell",...n,[f.TREELIST_COL_INDEX_ATTRIBUTE]:e.colIndex},l.createElement(s.NumericTextBox,{width:"100%",value:t===void 0?null:t,onChange:a}));return e.render?e.render.call(void 0,i,e):i};r.displayName="KendoReactTreeListNumericEditor";exports.TreeListNumericEditor=r;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { NumericTextBox as m } from "@progress/kendo-react-inputs";
|
|
11
|
+
import { useTableKeyboardNavigation as u } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { TREELIST_COL_INDEX_ATTRIBUTE as o } from "../../constants/index.mjs";
|
|
13
|
+
import { getNestedValue as r, classNames as s } from "@progress/kendo-react-common";
|
|
14
|
+
const f = (e) => {
|
|
15
|
+
const n = t.useCallback(
|
|
16
|
+
(i) => {
|
|
17
|
+
e.onChange && e.onChange({
|
|
18
|
+
dataItem: e.dataItem,
|
|
19
|
+
level: e.level,
|
|
20
|
+
field: e.field,
|
|
21
|
+
syntheticEvent: i.syntheticEvent,
|
|
22
|
+
value: i.value
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
[e.onChange, e.dataItem, e.level, e.field]
|
|
26
|
+
), a = r(e.field, e.dataItem), d = u(e.id), c = s({
|
|
27
|
+
"k-selected": e.isSelected
|
|
28
|
+
}, e.className), l = /* @__PURE__ */ t.createElement(
|
|
29
|
+
"td",
|
|
30
|
+
{
|
|
31
|
+
style: e.style,
|
|
32
|
+
className: c,
|
|
33
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
34
|
+
"aria-selected": e.isSelected,
|
|
35
|
+
role: "gridcell",
|
|
36
|
+
...d,
|
|
37
|
+
[o]: e.colIndex
|
|
38
|
+
},
|
|
39
|
+
/* @__PURE__ */ t.createElement(
|
|
40
|
+
m,
|
|
41
|
+
{
|
|
42
|
+
width: "100%",
|
|
43
|
+
value: a === void 0 ? null : a,
|
|
44
|
+
onChange: n
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
return e.render ? e.render.call(void 0, l, e) : l;
|
|
49
|
+
};
|
|
50
|
+
f.displayName = "KendoReactTreeListNumericEditor";
|
|
51
|
+
export {
|
|
52
|
+
f as TreeListNumericEditor
|
|
53
|
+
};
|
|
@@ -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 u=require("react"),o=require("@progress/kendo-react-data-tools"),s=require("../../constants/index.js"),d=require("@progress/kendo-react-common");function m(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 l=m(u),r=e=>{const a=l.useCallback(c=>{e.onChange&&e.onChange({dataItem:e.dataItem,level:e.level,field:e.field,syntheticEvent:c,value:c.target.value})},[e.onChange,e.dataItem,e.level,e.field]),t=o.useTableKeyboardNavigation(e.id),n=d.classNames({"k-selected":e.isSelected},e.className),i=l.createElement("td",{style:e.style,className:n,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,role:"gridcell",...t,[s.TREELIST_COL_INDEX_ATTRIBUTE]:e.colIndex},l.createElement("input",{style:{width:"100%"},className:"k-input",value:d.getNestedValue(e.field,e.dataItem)||"",onChange:a}));return e.render?e.render.call(void 0,i,e):i};r.displayName="KendoReactTreeListTextEditor";exports.TreeListTextEditor=r;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { useTableKeyboardNavigation as c } from "@progress/kendo-react-data-tools";
|
|
11
|
+
import { TREELIST_COL_INDEX_ATTRIBUTE as m } from "../../constants/index.mjs";
|
|
12
|
+
import { classNames as s, getNestedValue as u } from "@progress/kendo-react-common";
|
|
13
|
+
const f = (e) => {
|
|
14
|
+
const i = t.useCallback(
|
|
15
|
+
(l) => {
|
|
16
|
+
e.onChange && e.onChange({
|
|
17
|
+
dataItem: e.dataItem,
|
|
18
|
+
level: e.level,
|
|
19
|
+
field: e.field,
|
|
20
|
+
syntheticEvent: l,
|
|
21
|
+
value: l.target.value
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
[e.onChange, e.dataItem, e.level, e.field]
|
|
25
|
+
), n = c(e.id), d = s({
|
|
26
|
+
"k-selected": e.isSelected
|
|
27
|
+
}, e.className), a = /* @__PURE__ */ t.createElement(
|
|
28
|
+
"td",
|
|
29
|
+
{
|
|
30
|
+
style: e.style,
|
|
31
|
+
className: d,
|
|
32
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
33
|
+
"aria-selected": e.isSelected,
|
|
34
|
+
role: "gridcell",
|
|
35
|
+
...n,
|
|
36
|
+
[m]: e.colIndex
|
|
37
|
+
},
|
|
38
|
+
/* @__PURE__ */ t.createElement(
|
|
39
|
+
"input",
|
|
40
|
+
{
|
|
41
|
+
style: { width: "100%" },
|
|
42
|
+
className: "k-input",
|
|
43
|
+
value: u(e.field, e.dataItem) || "",
|
|
44
|
+
onChange: i
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
return e.render ? e.render.call(void 0, a, e) : a;
|
|
49
|
+
};
|
|
50
|
+
f.displayName = "KendoReactTreeListTextEditor";
|
|
51
|
+
export {
|
|
52
|
+
f as TreeListTextEditor
|
|
53
|
+
};
|
|
@@ -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 l=require("react"),a=require("@progress/kendo-react-data-tools"),n=require("./utils.js"),c=require("@progress/kendo-react-intl");function i(e){const o=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(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=i(l),u=function(e){const{operators:o,...t}=e;return s.createElement(a.BooleanFilterCell,{ariaLabel:"boolean filter",...n.localizeFilter(c.useLocalization(),o||n.booleanFilterValues),...t})};exports.TreeListBooleanFilter=u;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { BooleanFilterCell as l } from "@progress/kendo-react-data-tools";
|
|
11
|
+
import { localizeFilter as i, booleanFilterValues as a } from "./utils.mjs";
|
|
12
|
+
import { useLocalization as n } from "@progress/kendo-react-intl";
|
|
13
|
+
const p = function(e) {
|
|
14
|
+
const { operators: o, ...r } = e;
|
|
15
|
+
return /* @__PURE__ */ t.createElement(
|
|
16
|
+
l,
|
|
17
|
+
{
|
|
18
|
+
ariaLabel: "boolean filter",
|
|
19
|
+
...i(n(), o || a),
|
|
20
|
+
...r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as TreeListBooleanFilter
|
|
26
|
+
};
|
|
@@ -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 n=require("react"),c=require("@progress/kendo-react-data-tools"),a=require("./utils.js"),i=require("@progress/kendo-react-intl");function l(e){const r=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(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=l(n),u=function(e){const{operators:r,...t}=e;return s.createElement(c.DateFilterCell,{ariaLabel:"date filter",...a.localizeFilter(i.useLocalization(),r||a.dateFilterOperators),...t})};exports.TreeListDateFilter=u;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 o from "react";
|
|
10
|
+
import { DateFilterCell as i } from "@progress/kendo-react-data-tools";
|
|
11
|
+
import { localizeFilter as a, dateFilterOperators as l } from "./utils.mjs";
|
|
12
|
+
import { useLocalization as s } from "@progress/kendo-react-intl";
|
|
13
|
+
const p = function(e) {
|
|
14
|
+
const { operators: t, ...r } = e;
|
|
15
|
+
return /* @__PURE__ */ o.createElement(
|
|
16
|
+
i,
|
|
17
|
+
{
|
|
18
|
+
ariaLabel: "date filter",
|
|
19
|
+
...a(s(), t || l),
|
|
20
|
+
...r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as TreeListDateFilter
|
|
26
|
+
};
|
|
@@ -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 n=require("react"),o=require("@progress/kendo-react-data-tools"),i=require("./utils.js"),l=require("@progress/kendo-react-intl");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=a(n),s=function(e){const{operators:r,...t}=e;return u.createElement(o.NumericFilterCell,{ariaLabel:"numeric filter",...i.localizeFilter(l.useLocalization(),r||i.numericFilterOperators),...t})};exports.TreeListNumericFilter=s;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import { NumericFilterCell as o } from "@progress/kendo-react-data-tools";
|
|
11
|
+
import { localizeFilter as l, numericFilterOperators as m } from "./utils.mjs";
|
|
12
|
+
import { useLocalization as c } from "@progress/kendo-react-intl";
|
|
13
|
+
const p = function(r) {
|
|
14
|
+
const { operators: e, ...t } = r;
|
|
15
|
+
return /* @__PURE__ */ i.createElement(
|
|
16
|
+
o,
|
|
17
|
+
{
|
|
18
|
+
ariaLabel: "numeric filter",
|
|
19
|
+
...l(c(), e || m),
|
|
20
|
+
...t
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as TreeListNumericFilter
|
|
26
|
+
};
|
|
@@ -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=require("react"),i=require("@progress/kendo-react-data-tools"),n=require("./utils.js"),l=require("@progress/kendo-react-intl");function a(e){const r=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(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=a(c),u=function(e){const{operators:r,...t}=e;return s.createElement(i.TextFilterCell,{ariaLabel:"text filter",...n.localizeFilter(l.useLocalization(),r||n.textFilterOperators),...t})};exports.TreeListTextFilter=u;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 o from "react";
|
|
10
|
+
import { TextFilterCell as i } from "@progress/kendo-react-data-tools";
|
|
11
|
+
import { localizeFilter as l, textFilterOperators as a } from "./utils.mjs";
|
|
12
|
+
import { useLocalization as s } from "@progress/kendo-react-intl";
|
|
13
|
+
const p = function(t) {
|
|
14
|
+
const { operators: e, ...r } = t;
|
|
15
|
+
return /* @__PURE__ */ o.createElement(
|
|
16
|
+
i,
|
|
17
|
+
{
|
|
18
|
+
ariaLabel: "text filter",
|
|
19
|
+
...l(s(), e || a),
|
|
20
|
+
...r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as TreeListTextFilter
|
|
26
|
+
};
|
|
@@ -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 t=require("../../messages/index.js"),a=[{text:t.filterContainsOperator,operator:"contains"},{text:t.filterNotContainsOperator,operator:"doesnotcontain"},{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"},{text:t.filterStartsWithOperator,operator:"startswith"},{text:t.filterEndsWithOperator,operator:"endswith"},{text:t.filterIsNullOperator,operator:"isnull"},{text:t.filterIsNotNullOperator,operator:"isnotnull"},{text:t.filterIsEmptyOperator,operator:"isempty"},{text:t.filterIsNotEmptyOperator,operator:"isnotempty"}],l=[{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"},{text:t.filterGteOperator,operator:"gte"},{text:t.filterGtOperator,operator:"gt"},{text:t.filterLteOperator,operator:"lte"},{text:t.filterLtOperator,operator:"lt"},{text:t.filterIsNullOperator,operator:"isnull"},{text:t.filterIsNotNullOperator,operator:"isnotnull"}],p=[{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"},{text:t.filterAfterOrEqualOperator,operator:"gte"},{text:t.filterAfterOperator,operator:"gt"},{text:t.filterBeforeOperator,operator:"lt"},{text:t.filterBeforeOrEqualOperator,operator:"lte"},{text:t.filterIsNullOperator,operator:"isnull"},{text:t.filterIsNotNullOperator,operator:"isnotnull"}],i=[{text:t.filterBooleanAll,operator:""},{text:t.filterIsTrue,operator:!0},{text:t.filterIsFalse,operator:!1}];function s(r,o){return{clearButtonTitle:r.toLanguageString(t.filterClearButton,t.messages[t.filterClearButton]),operators:o.map(e=>({text:r.toLanguageString(e.text,t.messages[e.text]),operator:e.operator}))}}exports.booleanFilterValues=i;exports.dateFilterOperators=p;exports.localizeFilter=s;exports.numericFilterOperators=l;exports.textFilterOperators=a;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { filterClearButton as p, messages as i, filterContainsOperator as s, filterNotContainsOperator as x, filterEqOperator as e, filterNotEqOperator as r, filterStartsWithOperator as f, filterEndsWithOperator as O, filterIsNullOperator as o, filterIsNotNullOperator as a, filterIsEmptyOperator as u, filterIsNotEmptyOperator as g, filterGteOperator as c, filterGtOperator as q, filterLteOperator as m, filterLtOperator as E, filterAfterOrEqualOperator as F, filterAfterOperator as I, filterBeforeOperator as N, filterBeforeOrEqualOperator as B, filterBooleanAll as d, filterIsTrue as h, filterIsFalse as y } from "../../messages/index.mjs";
|
|
10
|
+
const A = [
|
|
11
|
+
{ text: s, operator: "contains" },
|
|
12
|
+
{ text: x, operator: "doesnotcontain" },
|
|
13
|
+
{ text: e, operator: "eq" },
|
|
14
|
+
{ text: r, operator: "neq" },
|
|
15
|
+
{ text: f, operator: "startswith" },
|
|
16
|
+
{ text: O, operator: "endswith" },
|
|
17
|
+
{ text: o, operator: "isnull" },
|
|
18
|
+
{ text: a, operator: "isnotnull" },
|
|
19
|
+
{ text: u, operator: "isempty" },
|
|
20
|
+
{ text: g, operator: "isnotempty" }
|
|
21
|
+
], C = [
|
|
22
|
+
{ text: e, operator: "eq" },
|
|
23
|
+
{ text: r, operator: "neq" },
|
|
24
|
+
{ text: c, operator: "gte" },
|
|
25
|
+
{ text: q, operator: "gt" },
|
|
26
|
+
{ text: m, operator: "lte" },
|
|
27
|
+
{ text: E, operator: "lt" },
|
|
28
|
+
{ text: o, operator: "isnull" },
|
|
29
|
+
{ text: a, operator: "isnotnull" }
|
|
30
|
+
], S = [
|
|
31
|
+
{ text: e, operator: "eq" },
|
|
32
|
+
{ text: r, operator: "neq" },
|
|
33
|
+
{ text: F, operator: "gte" },
|
|
34
|
+
{ text: I, operator: "gt" },
|
|
35
|
+
{ text: N, operator: "lt" },
|
|
36
|
+
{ text: B, operator: "lte" },
|
|
37
|
+
{ text: o, operator: "isnull" },
|
|
38
|
+
{ text: a, operator: "isnotnull" }
|
|
39
|
+
], w = [
|
|
40
|
+
{ text: d, operator: "" },
|
|
41
|
+
{ text: h, operator: !0 },
|
|
42
|
+
{ text: y, operator: !1 }
|
|
43
|
+
];
|
|
44
|
+
function G(l, n) {
|
|
45
|
+
return {
|
|
46
|
+
clearButtonTitle: l.toLanguageString(p, i[p]),
|
|
47
|
+
operators: n.map((t) => ({
|
|
48
|
+
text: l.toLanguageString(t.text, i[t.text]),
|
|
49
|
+
operator: t.operator
|
|
50
|
+
}))
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
w as booleanFilterValues,
|
|
55
|
+
S as dateFilterOperators,
|
|
56
|
+
G as localizeFilter,
|
|
57
|
+
C as numericFilterOperators,
|
|
58
|
+
A as textFilterOperators
|
|
59
|
+
};
|
|
@@ -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 N=require("react"),S=require("@progress/kendo-react-intl"),d=require("@progress/kendo-react-common"),v=require("@progress/kendo-react-data-tools"),E=require("@progress/kendo-svg-icons"),b=require("../constants/index.js");function R(e){const a=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(a,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=R(N),x=e=>{const{hasChildren:a,level:t=[0],expanded:l,dataItem:r,format:u,id:T,ariaColumnIndex:k,isSelected:g}=e,s=d.getNestedValue(e.field,r),y=S.useInternationalization(),I=v.useTableKeyboardNavigation(T);let m="";const h=i.useCallback(n=>{n.isDefaultPrevented()||n.keyCode===d.Keys.enter&&e.expandable&&(n.preventDefault(),e.onExpandChange(n,r,t))},[e.expandable,r,t]);s!=null&&(m=u?y.format(u,s):s.toString());const c=[];if(e.expandable){const n=o=>i.createElement("span",{key:o,className:"k-treelist-toggle k-icon k-svg-icon"},i.createElement("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}));c.push(...t.slice(1).map((o,C)=>n(C))),a?c.push(i.createElement(d.IconWrap,{className:"k-treelist-toggle",name:l?"caret-alt-down":"caret-alt-right",icon:l?E.caretAltDownIcon:E.caretAltRightIcon,key:"expand-collapse",onClick:o=>e.onExpandChange(o.syntheticEvent||o,r,t),[b.TREELIST_PREVENT_SELECTION_ELEMENT]:!0})):c.push(n(c.length))}const f=i.createElement("td",{style:e.style,className:d.classNames("k-table-td",e.className,{"k-text-nowrap":e.expandable,"k-selected":g}),colSpan:e.colSpan,"aria-colindex":k,"aria-expanded":a?l:void 0,"aria-selected":g,role:"gridcell",onKeyDown:h,[b.TREELIST_COL_INDEX_ATTRIBUTE]:e.colIndex,...I},c,m);return e.render?e.render.call(void 0,f,e):f};x.displayName="KendoReactTreeListCell";exports.TreeListCell=x;
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { useInternationalization as N } from "@progress/kendo-react-intl";
|
|
11
|
+
import { getNestedValue as k, Keys as C, IconWrap as b, classNames as w } from "@progress/kendo-react-common";
|
|
12
|
+
import { useTableKeyboardNavigation as y } from "@progress/kendo-react-data-tools";
|
|
13
|
+
import { caretAltDownIcon as v, caretAltRightIcon as R } from "@progress/kendo-svg-icons";
|
|
14
|
+
import { TREELIST_PREVENT_SELECTION_ELEMENT as S, TREELIST_COL_INDEX_ATTRIBUTE as L } from "../constants/index.mjs";
|
|
15
|
+
const _ = (e) => {
|
|
16
|
+
const { hasChildren: d, level: i = [0], expanded: r, dataItem: o, format: s, id: f, ariaColumnIndex: u, isSelected: m } = e, c = k(e.field, o), x = N(), h = y(f);
|
|
17
|
+
let g = "";
|
|
18
|
+
const I = l.useCallback(
|
|
19
|
+
(t) => {
|
|
20
|
+
t.isDefaultPrevented() || t.keyCode === C.enter && e.expandable && (t.preventDefault(), e.onExpandChange(t, o, i));
|
|
21
|
+
},
|
|
22
|
+
[e.expandable, o, i]
|
|
23
|
+
);
|
|
24
|
+
c != null && (g = s ? x.format(s, c) : c.toString());
|
|
25
|
+
const a = [];
|
|
26
|
+
if (e.expandable) {
|
|
27
|
+
const t = (n) => /* @__PURE__ */ l.createElement("span", { key: n, className: "k-treelist-toggle k-icon k-svg-icon" }, /* @__PURE__ */ l.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }));
|
|
28
|
+
a.push(...i.slice(1).map((n, T) => t(T))), d ? a.push(
|
|
29
|
+
/* @__PURE__ */ l.createElement(
|
|
30
|
+
b,
|
|
31
|
+
{
|
|
32
|
+
className: "k-treelist-toggle",
|
|
33
|
+
name: r ? "caret-alt-down" : "caret-alt-right",
|
|
34
|
+
icon: r ? v : R,
|
|
35
|
+
key: "expand-collapse",
|
|
36
|
+
onClick: (n) => e.onExpandChange(n.syntheticEvent || n, o, i),
|
|
37
|
+
[S]: !0
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
) : a.push(t(a.length));
|
|
41
|
+
}
|
|
42
|
+
const E = /* @__PURE__ */ l.createElement(
|
|
43
|
+
"td",
|
|
44
|
+
{
|
|
45
|
+
style: e.style,
|
|
46
|
+
className: w(
|
|
47
|
+
"k-table-td",
|
|
48
|
+
e.className,
|
|
49
|
+
{
|
|
50
|
+
"k-text-nowrap": e.expandable,
|
|
51
|
+
"k-selected": m
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
colSpan: e.colSpan,
|
|
55
|
+
"aria-colindex": u,
|
|
56
|
+
"aria-expanded": d ? r : void 0,
|
|
57
|
+
"aria-selected": m,
|
|
58
|
+
role: "gridcell",
|
|
59
|
+
onKeyDown: I,
|
|
60
|
+
[L]: e.colIndex,
|
|
61
|
+
...h
|
|
62
|
+
},
|
|
63
|
+
a,
|
|
64
|
+
g
|
|
65
|
+
);
|
|
66
|
+
return e.render ? e.render.call(void 0, E, e) : E;
|
|
67
|
+
};
|
|
68
|
+
_.displayName = "KendoReactTreeListCell";
|
|
69
|
+
export {
|
|
70
|
+
_ as TreeListCell
|
|
71
|
+
};
|
|
@@ -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 s=require("react"),c=require("@progress/kendo-react-common"),u=require("@progress/kendo-react-data-tools");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=m(s),i=e=>{const n=l.useCallback(r=>{e.selectionChange&&e.selectionChange({syntheticEvent:r})},[e.selectionChange]),t=c.useId(),a=c.getNestedValue(e.field,e.dataItem),d=u.useTableKeyboardNavigation(e.id),o=l.createElement("td",{style:e.style,className:c.classNames("k-table-td",e.className),"aria-colindex":e.ariaColumnIndex,role:"gridcell",...d},l.createElement("input",{checked:typeof a=="boolean"&&a,id:t,type:"checkbox",className:"k-checkbox k-checkbox-md k-rounded-md",onChange:n}),l.createElement("label",{className:"k-checkbox-label",htmlFor:t}));return e.render?e.render.call(void 0,o,e):o};i.displayName="KendoReactTreeListSelectionCell";exports.TreeListSelectionCell=i;
|