impact-nova 1.7.25 → 1.7.26
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/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +45 -36
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +0 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +92 -75
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +52 -41
- package/dist/components/ui/ag-grid-react/hooks/useStopEditingOnClickOutside.d.ts +5 -0
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/calendar.js +3 -2
- package/dist/components/ui/data-table/data-table-column-list.js +119 -108
- package/dist/components/ui/nested-list/components/NestedListContent.d.ts +1 -0
- package/dist/components/ui/nested-list/components/NestedListContent.js +134 -63
- package/dist/components/ui/nested-list/components/SortableItem.js +65 -82
- package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +176 -153
- package/dist/components/ui/nested-list/nested-list.js +190 -203
- package/dist/components/ui/select/components/Submenu.js +7 -5
- package/dist/components/ui/select/select.js +390 -369
- package/dist/i18n/defaultMessages.d.ts +3 -0
- package/dist/i18n/defaultMessages.js +14 -11
- package/dist/i18n/locales/de.js +4 -1
- package/dist/i18n/locales/es.js +4 -1
- package/dist/i18n/locales/hi.js +4 -1
- package/dist/i18n/locales/kn.js +4 -1
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import re, { useMemo as
|
|
1
|
+
import { jsx as g, jsxs as se } from "react/jsx-runtime";
|
|
2
|
+
import re, { useMemo as A, useCallback as D } from "react";
|
|
3
3
|
import { SortableItem as He } from "./components/SortableItem.js";
|
|
4
|
-
import { SelectionMode as
|
|
5
|
-
import { useNestedListDragDrop as
|
|
6
|
-
import { useNestedListSelectAll as
|
|
7
|
-
import { useNestedListState as
|
|
8
|
-
import { useNestedListHandlers as
|
|
4
|
+
import { SelectionMode as b } from "../types/nested-list.types.js";
|
|
5
|
+
import { useNestedListDragDrop as We } from "./hooks/useNestedListDragDrop.js";
|
|
6
|
+
import { useNestedListSelectAll as je } from "./hooks/useNestedListSelectAll.js";
|
|
7
|
+
import { useNestedListState as Fe } from "./hooks/useNestedListState.js";
|
|
8
|
+
import { useNestedListHandlers as Je } from "./hooks/useNestedListHandlers.js";
|
|
9
9
|
import { NestedListHeader as qe } from "./components/NestedListHeader.js";
|
|
10
10
|
import { NestedListCategoryFilters as Ke } from "./components/NestedListCategoryFilters.js";
|
|
11
11
|
import { NestedListContent as Qe } from "./components/NestedListContent.js";
|
|
12
12
|
import { NestedListApplyDiscardButtons as Xe } from "./components/NestedListApplyDiscardButtons.js";
|
|
13
13
|
import { cn as Ye } from "../../../lib/utils.js";
|
|
14
14
|
import { useImpactNovaI18n as Ze } from "../../../i18n/ImpactNovaI18nContext.js";
|
|
15
|
-
const ne = (d,
|
|
16
|
-
if (!
|
|
17
|
-
const
|
|
18
|
-
return d.forEach((
|
|
19
|
-
const l =
|
|
20
|
-
(l || f && f.length > 0) &&
|
|
21
|
-
...
|
|
22
|
-
children: f ||
|
|
15
|
+
const ne = (d, t) => {
|
|
16
|
+
if (!t || typeof t != "string") return d;
|
|
17
|
+
const c = t.toLowerCase(), o = [];
|
|
18
|
+
return d.forEach((s) => {
|
|
19
|
+
const l = s.label.toLowerCase().includes(c), f = s.children ? ne(s.children, t) : void 0;
|
|
20
|
+
(l || f && f.length > 0) && o.push({
|
|
21
|
+
...s,
|
|
22
|
+
children: f || s.children
|
|
23
23
|
});
|
|
24
|
-
}),
|
|
25
|
-
}, le = (d) => d.map((
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
24
|
+
}), o;
|
|
25
|
+
}, le = (d) => d.map((t) => {
|
|
26
|
+
if (t.children && t.children.length > 0) {
|
|
27
|
+
const c = le(t.children), o = c.every((s) => s.checked);
|
|
28
28
|
return {
|
|
29
|
-
...
|
|
30
|
-
checked:
|
|
31
|
-
children:
|
|
29
|
+
...t,
|
|
30
|
+
checked: o,
|
|
31
|
+
children: c
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return
|
|
35
|
-
}), $e = (d,
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const f =
|
|
39
|
-
f &&
|
|
34
|
+
return t;
|
|
35
|
+
}), $e = (d, t) => {
|
|
36
|
+
const c = /* @__PURE__ */ new Set(), o = (s) => {
|
|
37
|
+
s.forEach((l) => {
|
|
38
|
+
const f = t ? t(l) : l.category;
|
|
39
|
+
f && c.add(f), l.children && o(l.children);
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
return
|
|
43
|
-
},
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
return d.forEach((
|
|
47
|
-
const l =
|
|
48
|
-
(f || m && m.length > 0) &&
|
|
49
|
-
...
|
|
42
|
+
return o(d), Array.from(c).sort();
|
|
43
|
+
}, ce = (d, t, c) => {
|
|
44
|
+
if (t.size === 0) return d;
|
|
45
|
+
const o = [];
|
|
46
|
+
return d.forEach((s) => {
|
|
47
|
+
const l = c ? c(s) : s.category, f = l && t.has(l), m = s.children ? ce(s.children, t, c) : void 0;
|
|
48
|
+
(f || m && m.length > 0) && o.push({
|
|
49
|
+
...s,
|
|
50
50
|
children: m
|
|
51
51
|
});
|
|
52
|
-
}),
|
|
53
|
-
},
|
|
54
|
-
const
|
|
52
|
+
}), o;
|
|
53
|
+
}, oe = (d, t, c, o = 0) => {
|
|
54
|
+
const s = [];
|
|
55
55
|
return d.forEach((l) => {
|
|
56
|
-
|
|
57
|
-
...
|
|
56
|
+
s.push({ item: l, level: o }), !t[l.id] && l.children && l.children.length > 0 && l.id !== c && s.push(
|
|
57
|
+
...oe(l.children, t, c, o + 1)
|
|
58
58
|
);
|
|
59
|
-
}),
|
|
59
|
+
}), s;
|
|
60
60
|
}, ut = ({
|
|
61
61
|
items: d,
|
|
62
|
-
onChange:
|
|
63
|
-
onSubmit:
|
|
64
|
-
onCancel:
|
|
65
|
-
onItemToggle:
|
|
62
|
+
onChange: t,
|
|
63
|
+
onSubmit: c,
|
|
64
|
+
onCancel: o,
|
|
65
|
+
onItemToggle: s,
|
|
66
66
|
onDragEnd: l,
|
|
67
67
|
enableSearch: f = !0,
|
|
68
68
|
enableDragDrop: m = !0,
|
|
@@ -73,133 +73,119 @@ const ne = (d, r) => {
|
|
|
73
73
|
className: ae = "",
|
|
74
74
|
groupLabel: he,
|
|
75
75
|
enableApplyDiscard: p = !1,
|
|
76
|
-
enableCollapse:
|
|
76
|
+
enableCollapse: F = !0,
|
|
77
77
|
enableGlobalCollapse: ue = !0,
|
|
78
78
|
submitButtonLabel: fe,
|
|
79
79
|
cancelButtonLabel: pe,
|
|
80
|
-
selectionMode:
|
|
80
|
+
selectionMode: I = b.CASCADE_DOWN
|
|
81
81
|
}) => {
|
|
82
|
-
const { t:
|
|
83
|
-
items:
|
|
84
|
-
setItems:
|
|
85
|
-
savedItems:
|
|
86
|
-
setSavedItems:
|
|
82
|
+
const { t: T } = Ze(), me = ie ?? T("nestedList.searchPlaceholder"), Ce = fe ?? T("nestedList.apply"), Ne = pe ?? T("nestedList.reset"), {
|
|
83
|
+
items: a,
|
|
84
|
+
setItems: v,
|
|
85
|
+
savedItems: w,
|
|
86
|
+
setSavedItems: J,
|
|
87
87
|
isUserChangeRef: P,
|
|
88
88
|
searchText: x,
|
|
89
|
-
setSearchText:
|
|
90
|
-
collapsedItems:
|
|
89
|
+
setSearchText: Se,
|
|
90
|
+
collapsedItems: z,
|
|
91
91
|
setCollapsedItems: Ie,
|
|
92
|
-
isListCollapsed:
|
|
93
|
-
setIsListCollapsed:
|
|
94
|
-
activeId:
|
|
95
|
-
setActiveId:
|
|
96
|
-
setOverId:
|
|
97
|
-
selectedCategories:
|
|
98
|
-
setSelectedCategories:
|
|
92
|
+
isListCollapsed: B,
|
|
93
|
+
setIsListCollapsed: ve,
|
|
94
|
+
activeId: C,
|
|
95
|
+
setActiveId: U,
|
|
96
|
+
setOverId: _,
|
|
97
|
+
selectedCategories: O,
|
|
98
|
+
setSelectedCategories: ge,
|
|
99
99
|
itemsToBlink: q,
|
|
100
|
-
setItemsToBlink:
|
|
100
|
+
setItemsToBlink: y,
|
|
101
101
|
// Normalized state helpers (for optimized operations)
|
|
102
102
|
isNormalized: Le,
|
|
103
103
|
normalizedState: ke,
|
|
104
104
|
batchUpdateItems: Ee
|
|
105
|
-
} =
|
|
105
|
+
} = Fe({
|
|
106
106
|
initialItems: d,
|
|
107
107
|
enableApplyDiscard: p,
|
|
108
108
|
// Enable normalized state for large datasets (can be made configurable via props)
|
|
109
109
|
enableNormalizedState: d.length > 1e3
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
id: t.id,
|
|
114
|
-
childIds: t.children?.map((s) => ({
|
|
115
|
-
id: s.id,
|
|
116
|
-
childIds: s.children?.map((a) => a.id)
|
|
117
|
-
}))
|
|
118
|
-
}));
|
|
119
|
-
console.log(
|
|
120
|
-
"[NL-internal] items state (post-render-time-block)",
|
|
121
|
-
JSON.stringify(e)
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
const [B, K] = re.useState(0), [R, we] = re.useState(0), {
|
|
125
|
-
sensors: Ae,
|
|
126
|
-
handleDragEnd: De,
|
|
110
|
+
}), [R, K] = re.useState(0), [V, Ae] = re.useState(0), {
|
|
111
|
+
sensors: De,
|
|
112
|
+
handleDragEnd: Te,
|
|
127
113
|
isValidDrop: Q
|
|
128
|
-
} =
|
|
129
|
-
items:
|
|
114
|
+
} = We({
|
|
115
|
+
items: a,
|
|
130
116
|
onDragEnd: l
|
|
131
|
-
}),
|
|
132
|
-
() => L ? $e(
|
|
133
|
-
[
|
|
134
|
-
), N =
|
|
135
|
-
let e =
|
|
136
|
-
return L &&
|
|
137
|
-
}, [
|
|
138
|
-
() =>
|
|
139
|
-
[N,
|
|
140
|
-
), { allChecked: k, someChecked: xe } =
|
|
141
|
-
let e = !0,
|
|
142
|
-
const
|
|
143
|
-
for (const
|
|
144
|
-
if (
|
|
117
|
+
}), we = A(
|
|
118
|
+
() => L ? $e(a, S) : [],
|
|
119
|
+
[a, L, S]
|
|
120
|
+
), N = A(() => {
|
|
121
|
+
let e = a;
|
|
122
|
+
return L && O.size > 0 && (e = ce(e, O, S)), x && (e = ne(e, x)), e;
|
|
123
|
+
}, [a, x, L, O, S]), Pe = A(
|
|
124
|
+
() => oe(N, z, C),
|
|
125
|
+
[N, z, C]
|
|
126
|
+
), { allChecked: k, someChecked: xe } = A(() => {
|
|
127
|
+
let e = !0, r = !1;
|
|
128
|
+
const n = (u) => {
|
|
129
|
+
for (const h of u)
|
|
130
|
+
if (h.children && h.children.length > 0 ? n(h.children) : h.checked ? r = !0 : e = !1, r && !e) return;
|
|
145
131
|
};
|
|
146
|
-
return
|
|
147
|
-
}, [N]),
|
|
148
|
-
for (const
|
|
149
|
-
if (
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
132
|
+
return n(N), { allChecked: e && r, someChecked: r };
|
|
133
|
+
}, [N]), ze = xe && !k, H = (e, r) => {
|
|
134
|
+
for (const n of e) {
|
|
135
|
+
if (n.id === r) return n;
|
|
136
|
+
if (n.children) {
|
|
137
|
+
const u = H(n.children, r);
|
|
138
|
+
if (u) return u;
|
|
153
139
|
}
|
|
154
140
|
}
|
|
155
141
|
return null;
|
|
156
|
-
},
|
|
157
|
-
(e,
|
|
158
|
-
if (
|
|
142
|
+
}, Be = D(
|
|
143
|
+
(e, r) => {
|
|
144
|
+
if (I === b.INDEPENDENT)
|
|
159
145
|
return e;
|
|
160
|
-
const
|
|
161
|
-
(E) =>
|
|
162
|
-
) : !1,
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
if (
|
|
166
|
-
const E =
|
|
167
|
-
let
|
|
168
|
-
return
|
|
169
|
-
...
|
|
170
|
-
checked:
|
|
146
|
+
const n = (h, i) => h.id === i ? !0 : h.children ? h.children.some(
|
|
147
|
+
(E) => n(E, i)
|
|
148
|
+
) : !1, u = (h) => h.map((i) => {
|
|
149
|
+
if (i.id === r)
|
|
150
|
+
return i;
|
|
151
|
+
if (i.children && n(i, r)) {
|
|
152
|
+
const E = u(i.children);
|
|
153
|
+
let W;
|
|
154
|
+
return I === b.CASCADE_UP_DOWN ? W = E.some((j) => j.checked) : W = E.every((j) => j.checked), {
|
|
155
|
+
...i,
|
|
156
|
+
checked: W,
|
|
171
157
|
children: E
|
|
172
158
|
};
|
|
173
159
|
}
|
|
174
|
-
return
|
|
160
|
+
return i;
|
|
175
161
|
});
|
|
176
|
-
return
|
|
162
|
+
return u(e);
|
|
177
163
|
},
|
|
178
|
-
[
|
|
164
|
+
[I]
|
|
179
165
|
), X = (e) => {
|
|
180
|
-
const
|
|
181
|
-
return e.forEach((
|
|
182
|
-
|
|
183
|
-
}),
|
|
166
|
+
const r = [];
|
|
167
|
+
return e.forEach((n) => {
|
|
168
|
+
n.children && n.children.length > 0 && (r.push(n.id), r.push(...X(n.children)));
|
|
169
|
+
}), r;
|
|
184
170
|
}, {
|
|
185
171
|
handleToggle: Y,
|
|
186
172
|
handleToggleCollapse: Z,
|
|
187
|
-
handleCollapseAll:
|
|
188
|
-
handleToggleCategory:
|
|
189
|
-
} =
|
|
190
|
-
setItems:
|
|
173
|
+
handleCollapseAll: Oe,
|
|
174
|
+
handleToggleCategory: Re
|
|
175
|
+
} = Je({
|
|
176
|
+
setItems: v,
|
|
191
177
|
findItemById: H,
|
|
192
|
-
updateParentsUpward:
|
|
178
|
+
updateParentsUpward: Be,
|
|
193
179
|
onChange: (e) => {
|
|
194
|
-
K((
|
|
180
|
+
K((r) => r + 1), t(e);
|
|
195
181
|
},
|
|
196
|
-
onItemToggle:
|
|
182
|
+
onItemToggle: s,
|
|
197
183
|
getCategory: S,
|
|
198
184
|
setCollapsedItems: Ie,
|
|
199
|
-
setIsListCollapsed:
|
|
200
|
-
setSelectedCategories:
|
|
185
|
+
setIsListCollapsed: ve,
|
|
186
|
+
setSelectedCategories: ge,
|
|
201
187
|
isUserChangeRef: P,
|
|
202
|
-
selectionMode:
|
|
188
|
+
selectionMode: I,
|
|
203
189
|
// Pass normalized state helpers for optimized operations
|
|
204
190
|
isNormalized: Le,
|
|
205
191
|
normalizedState: ke,
|
|
@@ -209,158 +195,159 @@ const ne = (d, r) => {
|
|
|
209
195
|
findItemsNotSelected: M,
|
|
210
196
|
collectVisibleItemsForCallback: G,
|
|
211
197
|
updateVisibleItems: ee
|
|
212
|
-
} =
|
|
198
|
+
} = je({
|
|
213
199
|
findItemById: H,
|
|
214
200
|
getCategory: S
|
|
215
|
-
}),
|
|
216
|
-
P.current = !0,
|
|
217
|
-
const
|
|
201
|
+
}), Ve = D(() => {
|
|
202
|
+
P.current = !0, v((e) => {
|
|
203
|
+
const r = $(N), n = M(
|
|
218
204
|
N,
|
|
219
205
|
e,
|
|
220
|
-
|
|
206
|
+
r
|
|
221
207
|
);
|
|
222
|
-
if (
|
|
223
|
-
const
|
|
224
|
-
|
|
208
|
+
if (n.size > 0) {
|
|
209
|
+
const i = new Set(n);
|
|
210
|
+
y(i), setTimeout(() => y(/* @__PURE__ */ new Set()), 600);
|
|
225
211
|
}
|
|
226
|
-
const
|
|
212
|
+
const u = ee(
|
|
227
213
|
e,
|
|
228
|
-
|
|
214
|
+
r,
|
|
229
215
|
!k
|
|
230
|
-
),
|
|
231
|
-
if (
|
|
232
|
-
const
|
|
216
|
+
), h = I === b.INDEPENDENT ? u : le(u);
|
|
217
|
+
if (t(h), s) {
|
|
218
|
+
const i = G(
|
|
233
219
|
e,
|
|
234
|
-
|
|
220
|
+
r,
|
|
235
221
|
!k
|
|
236
222
|
);
|
|
237
|
-
|
|
223
|
+
s(i);
|
|
238
224
|
}
|
|
239
|
-
return
|
|
225
|
+
return h;
|
|
240
226
|
});
|
|
241
227
|
}, [
|
|
242
228
|
k,
|
|
243
|
-
|
|
244
|
-
|
|
229
|
+
t,
|
|
230
|
+
s,
|
|
245
231
|
N,
|
|
246
232
|
$,
|
|
247
233
|
M,
|
|
248
234
|
G,
|
|
249
235
|
ee,
|
|
250
236
|
P,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
]),
|
|
255
|
-
(e,
|
|
256
|
-
const
|
|
257
|
-
return /* @__PURE__ */
|
|
237
|
+
v,
|
|
238
|
+
y,
|
|
239
|
+
I
|
|
240
|
+
]), be = D(
|
|
241
|
+
(e, r) => {
|
|
242
|
+
const n = C ? Q(C, e.id) : !1, u = q.has(e.id);
|
|
243
|
+
return /* @__PURE__ */ g(
|
|
258
244
|
He,
|
|
259
245
|
{
|
|
260
246
|
item: e,
|
|
261
|
-
level:
|
|
262
|
-
isCollapsed:
|
|
247
|
+
level: r,
|
|
248
|
+
isCollapsed: z[e.id] || !1,
|
|
263
249
|
onToggle: Y,
|
|
264
250
|
onToggleCollapse: Z,
|
|
265
|
-
isAnyDragging:
|
|
266
|
-
isValidDrop:
|
|
251
|
+
isAnyDragging: C !== null,
|
|
252
|
+
isValidDrop: n,
|
|
267
253
|
enableDragDrop: m,
|
|
268
|
-
enableCollapse:
|
|
269
|
-
shouldBlink:
|
|
254
|
+
enableCollapse: F,
|
|
255
|
+
shouldBlink: u
|
|
270
256
|
},
|
|
271
257
|
e.id
|
|
272
258
|
);
|
|
273
259
|
},
|
|
274
260
|
[
|
|
275
|
-
|
|
261
|
+
z,
|
|
276
262
|
Y,
|
|
277
263
|
Z,
|
|
278
|
-
|
|
264
|
+
C,
|
|
279
265
|
Q,
|
|
280
266
|
m,
|
|
281
267
|
q,
|
|
282
|
-
|
|
268
|
+
F
|
|
283
269
|
]
|
|
284
|
-
),
|
|
285
|
-
p && (
|
|
286
|
-
}, [p,
|
|
287
|
-
p && (
|
|
288
|
-
}, [p,
|
|
270
|
+
), Ue = X(a).length > 0, te = A(() => p ? a.length > 1e3 ? R !== V : JSON.stringify(a) !== JSON.stringify(w) : !1, [p, a, w, R, V]), _e = D(() => {
|
|
271
|
+
p && (J(a), Ae(R), c?.(a));
|
|
272
|
+
}, [p, a, c, J, R]), ye = D(() => {
|
|
273
|
+
p && (v(w), K(V), o?.());
|
|
274
|
+
}, [p, w, o, v, V]);
|
|
289
275
|
return /* @__PURE__ */ se(
|
|
290
276
|
"div",
|
|
291
277
|
{
|
|
292
278
|
className: Ye("flex flex-col", ae),
|
|
293
279
|
"data-component": "nested-list",
|
|
294
280
|
"data-has-changes": te ? "" : void 0,
|
|
295
|
-
"data-list-collapsed":
|
|
281
|
+
"data-list-collapsed": B ? "" : void 0,
|
|
296
282
|
children: [
|
|
297
283
|
/* @__PURE__ */ se("div", { className: "flex-shrink-0", children: [
|
|
298
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ g(
|
|
299
285
|
qe,
|
|
300
286
|
{
|
|
301
|
-
hasItemsWithChildren:
|
|
302
|
-
isListCollapsed:
|
|
303
|
-
onCollapseAll:
|
|
287
|
+
hasItemsWithChildren: Ue,
|
|
288
|
+
isListCollapsed: B,
|
|
289
|
+
onCollapseAll: Oe,
|
|
304
290
|
enableSearch: f,
|
|
305
291
|
enableSelectAll: de,
|
|
306
292
|
groupLabel: he,
|
|
307
293
|
allChecked: k,
|
|
308
|
-
isIndeterminate:
|
|
309
|
-
onSelectAll:
|
|
294
|
+
isIndeterminate: ze,
|
|
295
|
+
onSelectAll: Ve,
|
|
310
296
|
searchText: x,
|
|
311
297
|
onSearchChange: (e) => {
|
|
312
|
-
|
|
298
|
+
Se(e.target.value);
|
|
313
299
|
},
|
|
314
300
|
searchPlaceholder: me,
|
|
315
|
-
selectAllLabel:
|
|
301
|
+
selectAllLabel: T("nestedList.selectAll"),
|
|
316
302
|
enableCollapse: ue
|
|
317
303
|
}
|
|
318
304
|
),
|
|
319
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ g(
|
|
320
306
|
Ke,
|
|
321
307
|
{
|
|
322
|
-
isListCollapsed:
|
|
308
|
+
isListCollapsed: B,
|
|
323
309
|
enableGroupBy: L,
|
|
324
|
-
categories:
|
|
325
|
-
selectedCategories:
|
|
326
|
-
onToggleCategory:
|
|
310
|
+
categories: we,
|
|
311
|
+
selectedCategories: O,
|
|
312
|
+
onToggleCategory: Re
|
|
327
313
|
}
|
|
328
314
|
)
|
|
329
315
|
] }),
|
|
330
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ g("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ g(
|
|
331
317
|
Qe,
|
|
332
318
|
{
|
|
333
|
-
isListCollapsed:
|
|
319
|
+
isListCollapsed: B,
|
|
334
320
|
enableDragDrop: m,
|
|
335
|
-
sensors:
|
|
321
|
+
sensors: De,
|
|
336
322
|
items: Pe,
|
|
337
|
-
renderItem:
|
|
323
|
+
renderItem: be,
|
|
324
|
+
activeId: C,
|
|
338
325
|
onDragStart: (e) => {
|
|
339
|
-
|
|
326
|
+
U(e.active.id);
|
|
340
327
|
},
|
|
341
328
|
onDragOver: (e) => {
|
|
342
|
-
|
|
329
|
+
_(e.over?.id);
|
|
343
330
|
},
|
|
344
331
|
onDragEnd: (e) => {
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
|
|
332
|
+
U(null), _(null), P.current = !0, Te(e, (r) => {
|
|
333
|
+
const n = r(a);
|
|
334
|
+
v(n), t(n);
|
|
348
335
|
});
|
|
349
336
|
},
|
|
350
337
|
onDragCancel: () => {
|
|
351
|
-
|
|
338
|
+
U(null), _(null);
|
|
352
339
|
}
|
|
353
340
|
}
|
|
354
341
|
) }),
|
|
355
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ g(
|
|
356
343
|
Xe,
|
|
357
344
|
{
|
|
358
345
|
enableApplyDiscard: p,
|
|
359
346
|
hasChanges: te,
|
|
360
|
-
onDiscard:
|
|
361
|
-
onApply:
|
|
362
|
-
cancelButtonLabel:
|
|
363
|
-
submitButtonLabel:
|
|
347
|
+
onDiscard: ye,
|
|
348
|
+
onApply: _e,
|
|
349
|
+
cancelButtonLabel: Ne,
|
|
350
|
+
submitButtonLabel: Ce
|
|
364
351
|
}
|
|
365
352
|
)
|
|
366
353
|
]
|
|
@@ -3,12 +3,12 @@ import * as l from "@radix-ui/react-popover";
|
|
|
3
3
|
import { Checkbox as C } from "../../checkbox.js";
|
|
4
4
|
import { ChevronRight as N, Checkmark as w } from "../../../../icons/index.js";
|
|
5
5
|
import { cn as S } from "../../../../lib/utils.js";
|
|
6
|
-
const
|
|
6
|
+
const j = ({
|
|
7
7
|
parentOption: o,
|
|
8
8
|
isMulti: i,
|
|
9
9
|
isReadOnly: c,
|
|
10
|
-
isSelected:
|
|
11
|
-
getIndeterminateState:
|
|
10
|
+
isSelected: f,
|
|
11
|
+
getIndeterminateState: x,
|
|
12
12
|
getSelectedCount: h,
|
|
13
13
|
handleSelect: v,
|
|
14
14
|
id: y
|
|
@@ -27,10 +27,12 @@ const D = ({
|
|
|
27
27
|
avoidCollisions: !0,
|
|
28
28
|
collisionPadding: 8,
|
|
29
29
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
30
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
31
|
+
onFocusOutside: (e) => e.preventDefault(),
|
|
30
32
|
className: "select-submenu-container z-50 min-w-[180px] max-h-[300px] overflow-auto rounded-xl bg-canvas-elevated py-1 shadow-elevation-floating",
|
|
31
33
|
"data-component": "select-menu",
|
|
32
34
|
children: d.map((e) => {
|
|
33
|
-
const n =
|
|
35
|
+
const n = f(e), g = x(e), a = e.isDisabled, m = h(e), s = "children" in e && Array.isArray(e.children) && e.children.length > 0, p = e.isParentSelectable !== !1, b = String(e.value || "");
|
|
34
36
|
return /* @__PURE__ */ r(
|
|
35
37
|
"div",
|
|
36
38
|
{
|
|
@@ -85,5 +87,5 @@ const D = ({
|
|
|
85
87
|
] });
|
|
86
88
|
};
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
j as default
|
|
89
91
|
};
|