impact-nova 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/ag-grid-react/headers/custom-header.js +133 -110
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +23 -23
- package/dist/components/data/ag-grid-react/index.js +202 -206
- package/dist/components/data/data-table/build-column-tree-from-grid.js +65 -67
- package/dist/components/data/data-table/data-table-column-list-sync.js +5 -10
- package/dist/components/data/data-table/data-table-column-list.js +64 -61
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +29 -0
- package/dist/components/data/data-table/data-table-column-tree-cache.js +117 -0
- package/dist/components/data/data-table/data-table-constants.d.ts +2 -0
- package/dist/components/data/data-table/data-table-constants.js +3 -2
- package/dist/components/data/data-table/data-table-sheet.js +46 -49
- package/dist/components/data/data-table/data-table.js +137 -119
- package/dist/components/data/data-table/index.js +24 -23
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +3 -0
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +24 -0
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +2 -1
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +249 -150
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +2 -1
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +30 -27
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +1 -1
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +179 -118
- package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +30 -29
- package/dist/components/data/expandable-list-item/expandable-list-item.types.d.ts +8 -1
- package/dist/components/data/expandable-list-item/index.d.ts +1 -1
- package/dist/components/data/nested-list/components/NestedListContent.js +158 -96
- package/dist/components/data/nested-list/nested-list-constants.d.ts +4 -0
- package/dist/components/data/nested-list/nested-list-constants.js +6 -0
- package/dist/components/data/nested-list/nested-list-tree-utils.d.ts +3 -0
- package/dist/components/data/nested-list/nested-list-tree-utils.js +24 -0
- package/dist/components/data/nested-list/nested-list.js +214 -215
- package/dist/components/data-display/card/card.js +6 -5
- package/dist/components/feedback/dialog/dialog.js +7 -5
- package/dist/components/feedback/sheet/sheet.js +28 -27
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/filter-panel/filter-panel.js +36 -35
- package/dist/components/flows/filter-strip/filter-tag-list.js +44 -44
- package/dist/components/forms/combobox/combobox.js +110 -100
- package/dist/components/forms/date-picker/date-input-behavior.d.ts +9 -0
- package/dist/components/forms/date-picker/date-input-behavior.js +32 -19
- package/dist/components/forms/date-picker/date-picker.js +96 -90
- package/dist/components/forms/date-picker/date-range-picker.js +160 -152
- package/dist/components/forms/date-picker/month-picker.js +71 -65
- package/dist/components/forms/date-picker/month-range-picker.js +153 -145
- package/dist/components/forms/date-picker/multi-date-picker.js +127 -99
- package/dist/components/forms/date-picker/multi-month-picker.js +109 -97
- package/dist/components/forms/date-picker/multi-week-picker.js +98 -86
- package/dist/components/forms/date-picker/week-picker.js +82 -76
- package/dist/components/forms/date-picker/week-range-picker.js +127 -119
- package/dist/impact-nova-base.scss +10 -5
- package/dist/impact-nova-components.css +9 -5
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +189 -188
- package/dist/lib/overlay/overlay-portal-context.d.ts +11 -2
- package/dist/lib/overlay/overlay-portal-context.js +39 -28
- package/dist/lib/primitives/create-compound.d.ts +5 -0
- package/dist/lib/primitives/create-compound.js +17 -16
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as S, jsxs as de } from "react/jsx-runtime";
|
|
2
|
+
import Q, { useMemo as T, useCallback as w } from "react";
|
|
3
3
|
import { SortableItem as Je } from "./components/SortableItem.js";
|
|
4
4
|
import { SelectionMode as _ } from "./nested-list.types.js";
|
|
5
5
|
import { useNestedListDragDrop as Ke } from "./hooks/useNestedListDragDrop.js";
|
|
@@ -13,273 +13,272 @@ import { NestedListApplyDiscardButtons as Ge } from "./components/NestedListAppl
|
|
|
13
13
|
import { shouldUseNestedListRevisionTracking as et, computeNestedListHasChanges as tt } from "./nested-list-change-detection.js";
|
|
14
14
|
import { cn as st } from "../../../lib/utils.js";
|
|
15
15
|
import { useImpactNovaI18n as rt } from "../../../i18n/use-impact-nova-i18n.js";
|
|
16
|
-
const
|
|
17
|
-
if (!t || typeof t != "string") return
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
const i =
|
|
21
|
-
(i || l && l.length > 0) &&
|
|
22
|
-
...
|
|
23
|
-
children: l ||
|
|
16
|
+
const ie = (a, t) => {
|
|
17
|
+
if (!t || typeof t != "string") return a;
|
|
18
|
+
const o = t.toLowerCase(), c = [];
|
|
19
|
+
return a.forEach((n) => {
|
|
20
|
+
const i = n.label.toLowerCase().includes(o), l = n.children ? ie(n.children, t) : void 0;
|
|
21
|
+
(i || l && l.length > 0) && c.push({
|
|
22
|
+
...n,
|
|
23
|
+
children: l || n.children
|
|
24
24
|
});
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
25
|
+
}), c;
|
|
26
|
+
}, ae = (a) => a.map((t) => {
|
|
27
27
|
if (t.children && t.children.length > 0) {
|
|
28
|
-
const
|
|
28
|
+
const o = ae(t.children), c = o.every((n) => n.checked);
|
|
29
29
|
return {
|
|
30
30
|
...t,
|
|
31
|
-
checked:
|
|
32
|
-
children:
|
|
31
|
+
checked: c,
|
|
32
|
+
children: o
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
return t;
|
|
36
|
-
}), nt = (
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
}), nt = (a, t) => {
|
|
37
|
+
const o = /* @__PURE__ */ new Set(), c = (n) => {
|
|
38
|
+
n.forEach((i) => {
|
|
39
39
|
const l = t ? t(i) : i.category;
|
|
40
|
-
l &&
|
|
40
|
+
l && o.add(l), i.children && c(i.children);
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
if (t.size === 0) return
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
const i =
|
|
49
|
-
(l || m && m.length > 0) &&
|
|
50
|
-
...
|
|
43
|
+
return c(a), Array.from(o).sort();
|
|
44
|
+
}, he = (a, t, o) => {
|
|
45
|
+
if (t.size === 0) return a;
|
|
46
|
+
const c = [];
|
|
47
|
+
return a.forEach((n) => {
|
|
48
|
+
const i = o ? o(n) : n.category, l = i && t.has(i), m = n.children ? he(n.children, t, o) : void 0;
|
|
49
|
+
(l || m && m.length > 0) && c.push({
|
|
50
|
+
...n,
|
|
51
51
|
children: m
|
|
52
52
|
});
|
|
53
|
-
}),
|
|
54
|
-
},
|
|
53
|
+
}), c;
|
|
54
|
+
}, ue = (a, t, o, c = 0, n = 0) => {
|
|
55
55
|
const i = [];
|
|
56
|
-
return
|
|
56
|
+
return a.forEach((l) => {
|
|
57
57
|
if (i.push({
|
|
58
58
|
item: l,
|
|
59
|
-
level:
|
|
60
|
-
indentLevel: l.category === "structure" ? 0 :
|
|
61
|
-
}), !t[l.id] && l.children && l.children.length > 0 && l.id !==
|
|
62
|
-
const
|
|
59
|
+
level: c,
|
|
60
|
+
indentLevel: l.category === "structure" ? 0 : n
|
|
61
|
+
}), !t[l.id] && l.children && l.children.length > 0 && l.id !== o) {
|
|
62
|
+
const y = l.category === "structure" ? 0 : n + 1;
|
|
63
63
|
i.push(
|
|
64
|
-
...
|
|
64
|
+
...ue(
|
|
65
65
|
l.children,
|
|
66
66
|
t,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
o,
|
|
68
|
+
c + 1,
|
|
69
|
+
y
|
|
70
70
|
)
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
}), i;
|
|
74
|
-
},
|
|
75
|
-
items:
|
|
74
|
+
}, Lt = ({
|
|
75
|
+
items: a,
|
|
76
76
|
onChange: t,
|
|
77
|
-
onSubmit:
|
|
78
|
-
onCancel:
|
|
79
|
-
onItemToggle:
|
|
77
|
+
onSubmit: o,
|
|
78
|
+
onCancel: c,
|
|
79
|
+
onItemToggle: n,
|
|
80
80
|
onDragEnd: i,
|
|
81
81
|
renderLabelExtras: l,
|
|
82
82
|
renderActions: m,
|
|
83
|
-
enableSearch:
|
|
84
|
-
enableDragDrop:
|
|
85
|
-
enableSelectAll:
|
|
86
|
-
enableGroupBy:
|
|
87
|
-
getCategory:
|
|
88
|
-
searchPlaceholder:
|
|
89
|
-
className:
|
|
90
|
-
groupLabel:
|
|
83
|
+
enableSearch: y = !0,
|
|
84
|
+
enableDragDrop: H = !0,
|
|
85
|
+
enableSelectAll: fe = !0,
|
|
86
|
+
enableGroupBy: g = !1,
|
|
87
|
+
getCategory: N,
|
|
88
|
+
searchPlaceholder: pe,
|
|
89
|
+
className: me = "",
|
|
90
|
+
groupLabel: Ce,
|
|
91
91
|
enableApplyDiscard: p = !1,
|
|
92
|
-
enableCollapse:
|
|
93
|
-
enableGlobalCollapse:
|
|
94
|
-
submitButtonLabel:
|
|
95
|
-
cancelButtonLabel:
|
|
96
|
-
selectionMode:
|
|
97
|
-
initialCollapsedItems:
|
|
98
|
-
onCollapseChange:
|
|
92
|
+
enableCollapse: X = !0,
|
|
93
|
+
enableGlobalCollapse: Ie = !0,
|
|
94
|
+
submitButtonLabel: Ne,
|
|
95
|
+
cancelButtonLabel: ve,
|
|
96
|
+
selectionMode: v = _.CASCADE_DOWN,
|
|
97
|
+
initialCollapsedItems: Le,
|
|
98
|
+
onCollapseChange: Y,
|
|
99
99
|
canDrag: A
|
|
100
100
|
}) => {
|
|
101
|
-
const { t: P } = rt(), Se =
|
|
102
|
-
items:
|
|
101
|
+
const { t: P } = rt(), Se = pe ?? P("nestedList.searchPlaceholder"), ge = Ne ?? P("nestedList.apply"), ke = ve ?? P("nestedList.reset"), {
|
|
102
|
+
items: h,
|
|
103
103
|
setItems: L,
|
|
104
|
-
savedItems:
|
|
105
|
-
setSavedItems:
|
|
106
|
-
isUserChangeRef:
|
|
104
|
+
savedItems: b,
|
|
105
|
+
setSavedItems: Z,
|
|
106
|
+
isUserChangeRef: R,
|
|
107
107
|
searchText: x,
|
|
108
|
-
setSearchText:
|
|
109
|
-
collapsedItems:
|
|
110
|
-
setCollapsedItems:
|
|
108
|
+
setSearchText: Ee,
|
|
109
|
+
collapsedItems: C,
|
|
110
|
+
setCollapsedItems: De,
|
|
111
111
|
isListCollapsed: z,
|
|
112
|
-
setIsListCollapsed:
|
|
113
|
-
activeId:
|
|
114
|
-
setActiveId:
|
|
112
|
+
setIsListCollapsed: Te,
|
|
113
|
+
activeId: I,
|
|
114
|
+
setActiveId: O,
|
|
115
115
|
setOverId: W,
|
|
116
116
|
selectedCategories: B,
|
|
117
|
-
setSelectedCategories:
|
|
118
|
-
itemsToBlink:
|
|
117
|
+
setSelectedCategories: we,
|
|
118
|
+
itemsToBlink: $,
|
|
119
119
|
setItemsToBlink: j,
|
|
120
120
|
// Normalized state helpers (for optimized operations)
|
|
121
|
-
isNormalized:
|
|
122
|
-
normalizedState:
|
|
123
|
-
batchUpdateItems:
|
|
121
|
+
isNormalized: Ae,
|
|
122
|
+
normalizedState: Pe,
|
|
123
|
+
batchUpdateItems: be
|
|
124
124
|
} = Xe({
|
|
125
|
-
initialItems:
|
|
125
|
+
initialItems: a,
|
|
126
126
|
enableApplyDiscard: p,
|
|
127
127
|
// Enable normalized state for large datasets (can be made configurable via props)
|
|
128
|
-
enableNormalizedState: et(
|
|
129
|
-
initialCollapsedItems:
|
|
128
|
+
enableNormalizedState: et(a.length),
|
|
129
|
+
initialCollapsedItems: Le
|
|
130
130
|
});
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}, [
|
|
134
|
-
const [U,
|
|
135
|
-
sensors:
|
|
136
|
-
handleDragEnd:
|
|
137
|
-
isValidDrop:
|
|
131
|
+
Q.useEffect(() => {
|
|
132
|
+
Y?.(C);
|
|
133
|
+
}, [C, Y]);
|
|
134
|
+
const [U, M] = Q.useState(0), [V, Re] = Q.useState(0), {
|
|
135
|
+
sensors: xe,
|
|
136
|
+
handleDragEnd: ze,
|
|
137
|
+
isValidDrop: G
|
|
138
138
|
} = Ke({
|
|
139
|
-
items:
|
|
139
|
+
items: h,
|
|
140
140
|
onDragEnd: i,
|
|
141
|
-
collapsedItems:
|
|
141
|
+
collapsedItems: C,
|
|
142
142
|
canDrag: A
|
|
143
|
-
}),
|
|
144
|
-
() =>
|
|
145
|
-
[
|
|
146
|
-
),
|
|
147
|
-
let e =
|
|
148
|
-
return
|
|
149
|
-
}, [
|
|
150
|
-
() =>
|
|
151
|
-
[
|
|
143
|
+
}), Be = T(
|
|
144
|
+
() => g ? nt(h, N) : [],
|
|
145
|
+
[h, g, N]
|
|
146
|
+
), k = T(() => {
|
|
147
|
+
let e = h;
|
|
148
|
+
return g && B.size > 0 && (e = he(e, B, N)), x && (e = ie(e, x)), e;
|
|
149
|
+
}, [h, x, g, B, N]), F = T(
|
|
150
|
+
() => ue(k, C, I),
|
|
151
|
+
[k, C, I]
|
|
152
152
|
), { allChecked: E, someChecked: Ue } = T(() => {
|
|
153
153
|
let e = !0, s = !1;
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (f) return f;
|
|
154
|
+
for (const { item: r } of F)
|
|
155
|
+
if (!(!(!r.children || r.children.length === 0) || r.category === "structure") && (r.checked ? s = !0 : e = !1, s && !e))
|
|
156
|
+
break;
|
|
157
|
+
return { allChecked: e && s, someChecked: s };
|
|
158
|
+
}, [F]), Ve = Ue && !E, q = (e, s) => {
|
|
159
|
+
for (const r of e) {
|
|
160
|
+
if (r.id === s) return r;
|
|
161
|
+
if (r.children) {
|
|
162
|
+
const u = q(r.children, s);
|
|
163
|
+
if (u) return u;
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
166
|
return null;
|
|
168
167
|
}, _e = w(
|
|
169
168
|
(e, s) => {
|
|
170
|
-
if (
|
|
169
|
+
if (v === _.INDEPENDENT)
|
|
171
170
|
return e;
|
|
172
|
-
const
|
|
173
|
-
(D) =>
|
|
174
|
-
) : !1,
|
|
171
|
+
const r = (f, d) => f.id === d ? !0 : f.children ? f.children.some(
|
|
172
|
+
(D) => r(D, d)
|
|
173
|
+
) : !1, u = (f) => f.map((d) => {
|
|
175
174
|
if (d.id === s)
|
|
176
175
|
return d;
|
|
177
|
-
if (d.children &&
|
|
178
|
-
const D =
|
|
179
|
-
let
|
|
180
|
-
return
|
|
176
|
+
if (d.children && r(d, s)) {
|
|
177
|
+
const D = u(d.children);
|
|
178
|
+
let J;
|
|
179
|
+
return v === _.CASCADE_UP_DOWN ? J = D.some((K) => K.checked) : J = D.every((K) => K.checked), {
|
|
181
180
|
...d,
|
|
182
|
-
checked:
|
|
181
|
+
checked: J,
|
|
183
182
|
children: D
|
|
184
183
|
};
|
|
185
184
|
}
|
|
186
185
|
return d;
|
|
187
186
|
});
|
|
188
|
-
return
|
|
187
|
+
return u(e);
|
|
189
188
|
},
|
|
190
|
-
[
|
|
191
|
-
),
|
|
189
|
+
[v]
|
|
190
|
+
), ee = (e) => {
|
|
192
191
|
const s = [];
|
|
193
|
-
return e.forEach((
|
|
194
|
-
|
|
192
|
+
return e.forEach((r) => {
|
|
193
|
+
r.children && r.children.length > 0 && (s.push(r.id), s.push(...ee(r.children)));
|
|
195
194
|
}), s;
|
|
196
195
|
}, {
|
|
197
|
-
handleToggle:
|
|
198
|
-
handleToggleCollapse:
|
|
199
|
-
handleCollapseAll:
|
|
200
|
-
handleToggleCategory:
|
|
196
|
+
handleToggle: te,
|
|
197
|
+
handleToggleCollapse: se,
|
|
198
|
+
handleCollapseAll: ye,
|
|
199
|
+
handleToggleCategory: He
|
|
201
200
|
} = Ye({
|
|
202
201
|
setItems: L,
|
|
203
|
-
findItemById:
|
|
202
|
+
findItemById: q,
|
|
204
203
|
updateParentsUpward: _e,
|
|
205
204
|
onChange: (e) => {
|
|
206
|
-
|
|
205
|
+
M((s) => s + 1), t(e);
|
|
207
206
|
},
|
|
208
|
-
onItemToggle:
|
|
209
|
-
getCategory:
|
|
210
|
-
setCollapsedItems:
|
|
211
|
-
setIsListCollapsed:
|
|
212
|
-
setSelectedCategories:
|
|
213
|
-
isUserChangeRef:
|
|
214
|
-
selectionMode:
|
|
207
|
+
onItemToggle: n,
|
|
208
|
+
getCategory: N,
|
|
209
|
+
setCollapsedItems: De,
|
|
210
|
+
setIsListCollapsed: Te,
|
|
211
|
+
setSelectedCategories: we,
|
|
212
|
+
isUserChangeRef: R,
|
|
213
|
+
selectionMode: v,
|
|
215
214
|
// Pass normalized state helpers for optimized operations
|
|
216
|
-
isNormalized:
|
|
217
|
-
normalizedState:
|
|
218
|
-
batchUpdateItems:
|
|
215
|
+
isNormalized: Ae,
|
|
216
|
+
normalizedState: Pe,
|
|
217
|
+
batchUpdateItems: be
|
|
219
218
|
}), {
|
|
220
|
-
collectVisibleItemIds:
|
|
221
|
-
findItemsNotSelected:
|
|
222
|
-
collectVisibleItemsForCallback:
|
|
223
|
-
updateVisibleItems:
|
|
219
|
+
collectVisibleItemIds: re,
|
|
220
|
+
findItemsNotSelected: ne,
|
|
221
|
+
collectVisibleItemsForCallback: le,
|
|
222
|
+
updateVisibleItems: oe
|
|
224
223
|
} = Qe({
|
|
225
|
-
findItemById:
|
|
226
|
-
getCategory:
|
|
227
|
-
}),
|
|
228
|
-
|
|
229
|
-
const s =
|
|
230
|
-
|
|
224
|
+
findItemById: q,
|
|
225
|
+
getCategory: N
|
|
226
|
+
}), Oe = w(() => {
|
|
227
|
+
R.current = !0, L((e) => {
|
|
228
|
+
const s = re(k), r = ne(
|
|
229
|
+
k,
|
|
231
230
|
e,
|
|
232
231
|
s
|
|
233
232
|
);
|
|
234
|
-
if (
|
|
235
|
-
const d = new Set(
|
|
233
|
+
if (r.size > 0) {
|
|
234
|
+
const d = new Set(r);
|
|
236
235
|
j(d), setTimeout(() => j(/* @__PURE__ */ new Set()), 600);
|
|
237
236
|
}
|
|
238
|
-
const
|
|
237
|
+
const u = oe(
|
|
239
238
|
e,
|
|
240
239
|
s,
|
|
241
240
|
!E
|
|
242
|
-
),
|
|
243
|
-
if (t(
|
|
244
|
-
const d =
|
|
241
|
+
), f = v === _.INDEPENDENT ? u : ae(u);
|
|
242
|
+
if (t(f), n) {
|
|
243
|
+
const d = le(
|
|
245
244
|
e,
|
|
246
245
|
s,
|
|
247
246
|
!E
|
|
248
247
|
);
|
|
249
|
-
|
|
248
|
+
n(d);
|
|
250
249
|
}
|
|
251
|
-
return
|
|
250
|
+
return f;
|
|
252
251
|
});
|
|
253
252
|
}, [
|
|
254
253
|
E,
|
|
255
254
|
t,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
se,
|
|
255
|
+
n,
|
|
256
|
+
k,
|
|
259
257
|
re,
|
|
260
258
|
ne,
|
|
261
259
|
le,
|
|
262
|
-
|
|
260
|
+
oe,
|
|
261
|
+
R,
|
|
263
262
|
L,
|
|
264
263
|
j,
|
|
265
|
-
|
|
264
|
+
v
|
|
266
265
|
]), We = w(
|
|
267
|
-
(e, s,
|
|
268
|
-
const
|
|
269
|
-
return /* @__PURE__ */
|
|
266
|
+
(e, s, r) => {
|
|
267
|
+
const u = I ? G(I, e.id) : !1, f = $.has(e.id), d = A ? !A(e, s) : e.isDragDisabled ?? !1;
|
|
268
|
+
return /* @__PURE__ */ S(
|
|
270
269
|
Je,
|
|
271
270
|
{
|
|
272
271
|
item: e,
|
|
273
272
|
level: s,
|
|
274
|
-
indentLevel:
|
|
275
|
-
isCollapsed:
|
|
276
|
-
onToggle:
|
|
277
|
-
onToggleCollapse:
|
|
278
|
-
isAnyDragging:
|
|
279
|
-
isValidDrop:
|
|
280
|
-
enableDragDrop:
|
|
281
|
-
enableCollapse:
|
|
282
|
-
shouldBlink:
|
|
273
|
+
indentLevel: r,
|
|
274
|
+
isCollapsed: C[e.id] || !1,
|
|
275
|
+
onToggle: te,
|
|
276
|
+
onToggleCollapse: se,
|
|
277
|
+
isAnyDragging: I !== null,
|
|
278
|
+
isValidDrop: u,
|
|
279
|
+
enableDragDrop: H,
|
|
280
|
+
enableCollapse: X,
|
|
281
|
+
shouldBlink: f,
|
|
283
282
|
isDragDisabled: d,
|
|
284
283
|
renderLabelExtras: l,
|
|
285
284
|
renderActions: m
|
|
@@ -288,108 +287,108 @@ const de = (h, t) => {
|
|
|
288
287
|
);
|
|
289
288
|
},
|
|
290
289
|
[
|
|
291
|
-
N,
|
|
292
|
-
ee,
|
|
293
|
-
te,
|
|
294
290
|
C,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
291
|
+
te,
|
|
292
|
+
se,
|
|
293
|
+
I,
|
|
294
|
+
G,
|
|
295
|
+
H,
|
|
296
|
+
$,
|
|
297
|
+
X,
|
|
299
298
|
A,
|
|
300
299
|
l,
|
|
301
300
|
m
|
|
302
301
|
]
|
|
303
|
-
), je =
|
|
302
|
+
), je = ee(h).length > 0, ce = T(
|
|
304
303
|
() => tt({
|
|
305
304
|
enableApplyDiscard: p,
|
|
306
|
-
items:
|
|
307
|
-
savedItems:
|
|
305
|
+
items: h,
|
|
306
|
+
savedItems: b,
|
|
308
307
|
revision: U,
|
|
309
308
|
savedRevision: V
|
|
310
309
|
}),
|
|
311
|
-
[p,
|
|
310
|
+
[p, h, b, U, V]
|
|
312
311
|
), Fe = w(() => {
|
|
313
|
-
p && (
|
|
314
|
-
}, [p,
|
|
315
|
-
p && (L(
|
|
316
|
-
}, [p,
|
|
317
|
-
return /* @__PURE__ */
|
|
312
|
+
p && (Z(h), Re(U), o?.(h));
|
|
313
|
+
}, [p, h, o, Z, U]), qe = w(() => {
|
|
314
|
+
p && (L(b), M(V), c?.());
|
|
315
|
+
}, [p, b, c, L, V]);
|
|
316
|
+
return /* @__PURE__ */ de(
|
|
318
317
|
"div",
|
|
319
318
|
{
|
|
320
|
-
className: st("flex flex-col",
|
|
319
|
+
className: st("flex flex-col", me),
|
|
321
320
|
"data-component": "nested-list",
|
|
322
321
|
"data-has-changes": ce ? "" : void 0,
|
|
323
322
|
"data-list-collapsed": z ? "" : void 0,
|
|
324
323
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ de("div", { className: "flex-shrink-0", children: [
|
|
325
|
+
/* @__PURE__ */ S(
|
|
327
326
|
Ze,
|
|
328
327
|
{
|
|
329
328
|
hasItemsWithChildren: je,
|
|
330
329
|
isListCollapsed: z,
|
|
331
|
-
onCollapseAll:
|
|
332
|
-
enableSearch:
|
|
333
|
-
enableSelectAll:
|
|
334
|
-
groupLabel:
|
|
330
|
+
onCollapseAll: ye,
|
|
331
|
+
enableSearch: y,
|
|
332
|
+
enableSelectAll: fe,
|
|
333
|
+
groupLabel: Ce,
|
|
335
334
|
allChecked: E,
|
|
336
335
|
isIndeterminate: Ve,
|
|
337
|
-
onSelectAll:
|
|
336
|
+
onSelectAll: Oe,
|
|
338
337
|
searchText: x,
|
|
339
338
|
onSearchChange: (e) => {
|
|
340
|
-
|
|
339
|
+
Ee(e.target.value);
|
|
341
340
|
},
|
|
342
341
|
searchPlaceholder: Se,
|
|
343
342
|
selectAllLabel: P("nestedList.selectAll"),
|
|
344
|
-
enableCollapse:
|
|
343
|
+
enableCollapse: Ie
|
|
345
344
|
}
|
|
346
345
|
),
|
|
347
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ S(
|
|
348
347
|
$e,
|
|
349
348
|
{
|
|
350
349
|
isListCollapsed: z,
|
|
351
|
-
enableGroupBy:
|
|
352
|
-
categories:
|
|
350
|
+
enableGroupBy: g,
|
|
351
|
+
categories: Be,
|
|
353
352
|
selectedCategories: B,
|
|
354
|
-
onToggleCategory:
|
|
353
|
+
onToggleCategory: He
|
|
355
354
|
}
|
|
356
355
|
)
|
|
357
356
|
] }),
|
|
358
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ S("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ S(
|
|
359
358
|
Me,
|
|
360
359
|
{
|
|
361
360
|
isListCollapsed: z,
|
|
362
|
-
enableDragDrop:
|
|
363
|
-
sensors:
|
|
364
|
-
items:
|
|
361
|
+
enableDragDrop: H,
|
|
362
|
+
sensors: xe,
|
|
363
|
+
items: F,
|
|
365
364
|
renderItem: We,
|
|
366
|
-
activeId:
|
|
365
|
+
activeId: I,
|
|
367
366
|
onDragStart: (e) => {
|
|
368
|
-
|
|
367
|
+
O(e.active.id);
|
|
369
368
|
},
|
|
370
369
|
onDragOver: (e) => {
|
|
371
370
|
W(e.over?.id);
|
|
372
371
|
},
|
|
373
372
|
onDragEnd: (e) => {
|
|
374
|
-
|
|
375
|
-
const
|
|
376
|
-
L(
|
|
373
|
+
O(null), W(null), R.current = !0, ze(e, (s) => {
|
|
374
|
+
const r = s(h);
|
|
375
|
+
L(r), t(r);
|
|
377
376
|
});
|
|
378
377
|
},
|
|
379
378
|
onDragCancel: () => {
|
|
380
|
-
|
|
379
|
+
O(null), W(null);
|
|
381
380
|
}
|
|
382
381
|
}
|
|
383
382
|
) }),
|
|
384
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ S(
|
|
385
384
|
Ge,
|
|
386
385
|
{
|
|
387
386
|
enableApplyDiscard: p,
|
|
388
387
|
hasChanges: ce,
|
|
389
388
|
onDiscard: qe,
|
|
390
389
|
onApply: Fe,
|
|
391
|
-
cancelButtonLabel:
|
|
392
|
-
submitButtonLabel:
|
|
390
|
+
cancelButtonLabel: ke,
|
|
391
|
+
submitButtonLabel: ge
|
|
393
392
|
}
|
|
394
393
|
)
|
|
395
394
|
]
|
|
@@ -397,5 +396,5 @@ const de = (h, t) => {
|
|
|
397
396
|
);
|
|
398
397
|
};
|
|
399
398
|
export {
|
|
400
|
-
|
|
399
|
+
Lt as NestedList
|
|
401
400
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { createComponent as d } from "../../../lib/primitives/create-component.js";
|
|
3
3
|
import { createCompoundPart as a } from "../../../lib/primitives/create-compound.js";
|
|
4
4
|
import { cn as s } from "../../../lib/utils.js";
|
|
5
|
-
const
|
|
5
|
+
const m = d(
|
|
6
6
|
"Card",
|
|
7
7
|
({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
8
8
|
"div",
|
|
@@ -16,7 +16,7 @@ const i = d(
|
|
|
16
16
|
...r
|
|
17
17
|
}
|
|
18
18
|
)
|
|
19
|
-
),
|
|
19
|
+
), i = a("card", {
|
|
20
20
|
part: "header",
|
|
21
21
|
displayName: "CardHeader",
|
|
22
22
|
className: "flex flex-col space-y-1.5 p-6"
|
|
@@ -31,17 +31,18 @@ const i = d(
|
|
|
31
31
|
}), N = a("card", {
|
|
32
32
|
part: "content",
|
|
33
33
|
displayName: "CardContent",
|
|
34
|
-
className: "p-6 pt-0"
|
|
34
|
+
className: "p-6 pt-0",
|
|
35
|
+
scrollSurface: !0
|
|
35
36
|
}), x = a("card", {
|
|
36
37
|
part: "footer",
|
|
37
38
|
displayName: "CardFooter",
|
|
38
39
|
className: "flex items-center p-6 pt-0"
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
m as Card,
|
|
42
43
|
N as CardContent,
|
|
43
44
|
f as CardDescription,
|
|
44
45
|
x as CardFooter,
|
|
45
|
-
|
|
46
|
+
i as CardHeader,
|
|
46
47
|
C as CardTitle
|
|
47
48
|
};
|