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