impact-nova 2.5.13 → 2.5.14
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/data-table/build-column-tree-from-grid.d.ts +0 -1
- package/dist/components/data/data-table/build-column-tree-from-grid.js +50 -55
- package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
- package/dist/components/data/data-table/data-table-column-apply.js +73 -84
- package/dist/components/data/data-table/data-table-column-list.js +64 -94
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
- package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
- package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
- package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
- package/dist/components/data/nested-list/components/SortableItem.js +60 -62
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
- package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
- package/dist/components/data/nested-list/nested-list-constants.js +4 -10
- package/dist/components/data/nested-list/nested-list.js +336 -322
- package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
- package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-apply-validation.js +64 -67
- package/dist/components/data-display/calendar/calendar-available-view.d.ts +27 -0
- package/dist/components/data-display/calendar/calendar-available-view.js +85 -0
- package/dist/components/data-display/calendar/calendar-config.js +1 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +4 -2
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +234 -164
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +77 -76
- package/dist/components/data-display/calendar/calendar-fiscal-day-cell.d.ts +9 -0
- package/dist/components/data-display/calendar/calendar-fiscal-day-cell.js +45 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +34 -18
- package/dist/components/data-display/calendar/calendar-footer.js +21 -21
- package/dist/components/data-display/calendar/calendar-injected-week-row.d.ts +5 -0
- package/dist/components/data-display/calendar/calendar-injected-week-row.js +92 -0
- package/dist/components/data-display/calendar/calendar-leading-week.utils.d.ts +16 -0
- package/dist/components/data-display/calendar/calendar-leading-week.utils.js +51 -0
- package/dist/components/data-display/calendar/calendar-month-picker-panel.js +50 -49
- package/dist/components/data-display/calendar/calendar-month-utils.d.ts +5 -0
- package/dist/components/data-display/calendar/calendar-month-utils.js +85 -64
- package/dist/components/data-display/calendar/calendar-orphan-week.d.ts +23 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +3 -1
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +7 -5
- package/dist/components/data-display/calendar/calendar-period-cell.js +45 -46
- package/dist/components/data-display/calendar/calendar-quarter-panes.js +33 -31
- package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +10 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +53 -39
- package/dist/components/data-display/calendar/calendar-selection.d.ts +25 -0
- package/dist/components/data-display/calendar/calendar-selection.js +52 -23
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +2 -1
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +59 -45
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +15 -4
- package/dist/components/data-display/calendar/calendar-week-utils.js +59 -50
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +3 -0
- package/dist/components/data-display/calendar/calendar-year-panes.js +53 -49
- package/dist/components/data-display/calendar/calendar.js +146 -143
- package/dist/components/data-display/calendar/calendar.types.d.ts +5 -0
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +2 -1
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +79 -74
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +3 -1
- package/dist/components/data-display/calendar/use-calendar-state.js +394 -314
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/date-picker/date-picker.js +60 -58
- package/dist/components/forms/date-picker/date-picker.types.d.ts +5 -0
- package/dist/components/forms/date-picker/date-range-picker.js +66 -64
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +3 -2
- package/dist/components/forms/date-picker/fiscal-picker-fixtures.d.ts +17 -0
- package/dist/components/forms/date-picker/month-picker.js +61 -59
- package/dist/components/forms/date-picker/month-range-picker.js +63 -61
- package/dist/components/forms/date-picker/multi-date-picker.js +51 -49
- package/dist/components/forms/date-picker/multi-month-picker.js +49 -47
- package/dist/components/forms/date-picker/multi-quarter-picker.js +51 -47
- package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
- package/dist/components/forms/date-picker/multi-year-picker.js +53 -49
- package/dist/components/forms/date-picker/quarter-picker.js +51 -47
- package/dist/components/forms/date-picker/quarter-range-picker.js +50 -46
- package/dist/components/forms/date-picker/week-picker.js +130 -126
- package/dist/components/forms/date-picker/week-range-picker.js +159 -155
- package/dist/components/forms/date-picker/year-picker.js +52 -48
- package/dist/components/forms/date-picker/year-range-picker.js +52 -48
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/form-react/Fields/DateInputField.js +51 -50
- package/dist/form-react/Fields/DateRangeField.js +14 -13
- package/dist/form-react/Fields/MonthRangeField.js +29 -28
- package/dist/form-react/Fields/MultiMonthPickerField.js +13 -12
- package/dist/form-react/Fields/MultiWeekPickerField.js +35 -27
- package/dist/form-react/Fields/MultiYearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/MultiYearPickerField.js +57 -0
- package/dist/form-react/Fields/WeekRangePicker.js +33 -32
- package/dist/form-react/Fields/YearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearPickerField.js +57 -0
- package/dist/form-react/Fields/YearRangePickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearRangePickerField.js +57 -0
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +16 -13
- package/dist/form-react/types/fields.types.d.ts +69 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +8 -2
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/impact-nova-components.css +13 -6
- package/dist/impact-nova.css +1 -1
- package/dist/lib/fiscal-calendar/index.d.ts +2 -2
- package/dist/lib/fiscal-calendar/index.js +26 -28
- package/dist/lib/fiscal-calendar/types.d.ts +0 -7
- package/dist/lib/fiscal-calendar/week-selection.d.ts +3 -4
- package/dist/lib/fiscal-calendar/week-selection.js +52 -79
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
- package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
- package/dist/components/data/data-table/column-picker-authority.js +0 -116
- package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
- package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
- package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
- package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
- package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
- package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
- package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
- package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
- package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
- package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
- package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
- package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
- package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
- package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
- package/dist/lib/hash/fnv1a128.d.ts +0 -16
- package/dist/lib/hash/fnv1a128.js +0 -21
|
@@ -1,128 +1,129 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { mergePartialOrderedColumnState as
|
|
3
|
-
import { afterSynchronousColumnApply as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { subscribeGridApiEvent as
|
|
10
|
-
import { subscribeColumnIndicatorSync as
|
|
11
|
-
|
|
12
|
-
import { applyTreeColumnChanges as yt } from "./data-table-column-list-tree-apply.js";
|
|
13
|
-
function z(e, p, b) {
|
|
1
|
+
import { useState as W, useRef as p, useEffect as j, useCallback as f, useLayoutEffect as $ } from "react";
|
|
2
|
+
import { mergePartialOrderedColumnState as q } from "./data-table-column-state.js";
|
|
3
|
+
import { afterSynchronousColumnApply as k, normalizeColumnPinned as z, GRID_AUTO_UNPIN_WAIT_MS as A, alignColumnTreePinMetadata as V, EXTERNAL_SYNC_DEBOUNCE_MS as ee, readGridColumnPinned as ne } from "./data-table-column-apply.js";
|
|
4
|
+
import { buildColumnStateFromTree as te } from "./build-column-state-from-tree.js";
|
|
5
|
+
import { isColumnRuntimeStateGuardUpdating as g } from "./column-runtime-state-guard.js";
|
|
6
|
+
import { computeColumnListSyncFingerprints as re } from "./data-table-column-list-sync.js";
|
|
7
|
+
import { writeColumnTreeCache as B, resolveColumnTreeFromCacheOrGrid as oe, peekColumnListSyncWouldSkip as ue, readColumnTreeCache as se, isGridColumnSetDifferentFromCachedLeaves as ce } from "./data-table-column-tree-cache.js";
|
|
8
|
+
import { patchColumnTreeIndicatorsFromGrid as le } from "./patch-column-tree-indicators-from-grid.js";
|
|
9
|
+
import { subscribeGridApiEvent as X } from "../ag-grid-react/grid-api-event-subscription.js";
|
|
10
|
+
import { subscribeColumnIndicatorSync as ae } from "../ag-grid-react/column-indicator-sync-bus.js";
|
|
11
|
+
function Y(e, C, h) {
|
|
14
12
|
return {
|
|
15
13
|
layout: e.current,
|
|
16
|
-
visibility:
|
|
17
|
-
indicators:
|
|
14
|
+
visibility: C.current,
|
|
15
|
+
indicators: h.current
|
|
18
16
|
};
|
|
19
17
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
18
|
+
function w(e, C, h, c) {
|
|
19
|
+
C.current = e.layout, h.current = e.visibility, c.current = e.indicators;
|
|
22
20
|
}
|
|
23
|
-
function
|
|
21
|
+
function Re({
|
|
24
22
|
gridApi: e,
|
|
25
|
-
frozenColumnsLabel:
|
|
26
|
-
scrollableColumnsLabel:
|
|
27
|
-
isSyncActive:
|
|
23
|
+
frozenColumnsLabel: C,
|
|
24
|
+
scrollableColumnsLabel: h,
|
|
25
|
+
isSyncActive: c = !0
|
|
28
26
|
}) {
|
|
29
|
-
const [
|
|
30
|
-
|
|
31
|
-
x.current =
|
|
32
|
-
}, [
|
|
33
|
-
|
|
34
|
-
}, [I]);
|
|
35
|
-
const l = c(
|
|
27
|
+
const [R, F] = W([]), [H, M] = W(!1), l = p(!1), J = p(null), x = p(R), S = p(""), I = p(""), b = p(""), N = p(c);
|
|
28
|
+
j(() => {
|
|
29
|
+
x.current = R;
|
|
30
|
+
}, [R]);
|
|
31
|
+
const E = f(
|
|
36
32
|
() => ({
|
|
37
|
-
frozenColumns:
|
|
38
|
-
scrollableColumns:
|
|
33
|
+
frozenColumns: C,
|
|
34
|
+
scrollableColumns: h
|
|
39
35
|
}),
|
|
40
|
-
[
|
|
41
|
-
),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
[C, h]
|
|
37
|
+
), y = f(
|
|
38
|
+
(n) => {
|
|
39
|
+
w(
|
|
40
|
+
re(n),
|
|
41
|
+
S,
|
|
42
|
+
I,
|
|
43
|
+
b
|
|
44
|
+
);
|
|
45
|
+
},
|
|
46
|
+
[]
|
|
47
|
+
), T = f(
|
|
48
|
+
(n) => {
|
|
50
49
|
if (!e) {
|
|
51
|
-
|
|
50
|
+
l.current = !1;
|
|
52
51
|
return;
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
e.getColumnState(),
|
|
56
|
-
n
|
|
57
|
-
);
|
|
58
|
-
e.applyColumnState({ state: u, applyOrder: !0 }), U(() => {
|
|
59
|
-
const m = nt(e, t);
|
|
60
|
-
f(m), E(t), y(V(t, l())), r?.();
|
|
61
|
-
});
|
|
53
|
+
l.current = !1, B(e, n), y(n);
|
|
62
54
|
},
|
|
63
|
-
[e,
|
|
64
|
-
),
|
|
65
|
-
if (!e)
|
|
66
|
-
o.current = !1;
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
o.current = !1;
|
|
70
|
-
const t = ht({
|
|
71
|
-
gridApi: e,
|
|
72
|
-
labels: l()
|
|
73
|
-
});
|
|
74
|
-
t && (y(t.tree), f(t.fingerprints));
|
|
75
|
-
}, [e, l, f]), i = c(() => {
|
|
76
|
-
if (!e || o.current || D(e))
|
|
55
|
+
[e, y]
|
|
56
|
+
), a = f(() => {
|
|
57
|
+
if (!e || l.current || g(e))
|
|
77
58
|
return;
|
|
78
|
-
const
|
|
59
|
+
const n = oe({
|
|
79
60
|
gridApi: e,
|
|
80
|
-
labels:
|
|
81
|
-
previousFingerprints:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
61
|
+
labels: E(),
|
|
62
|
+
previousFingerprints: Y(
|
|
63
|
+
S,
|
|
64
|
+
I,
|
|
65
|
+
b
|
|
85
66
|
)
|
|
86
67
|
});
|
|
87
|
-
if (
|
|
88
|
-
|
|
68
|
+
if (n.syncMode === "skip" || !n.rootItems) {
|
|
69
|
+
n.syncMode !== "skip" && M(!0);
|
|
89
70
|
return;
|
|
90
71
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (P.current = a, !e || !a) return;
|
|
106
|
-
const r = l(), n = z(
|
|
107
|
-
G,
|
|
108
|
-
_,
|
|
109
|
-
L
|
|
72
|
+
w(
|
|
73
|
+
n.fingerprints,
|
|
74
|
+
S,
|
|
75
|
+
I,
|
|
76
|
+
b
|
|
77
|
+
), F(n.rootItems), M(!0);
|
|
78
|
+
}, [e, E]);
|
|
79
|
+
$(() => {
|
|
80
|
+
const n = c && !N.current;
|
|
81
|
+
if (N.current = c, !e || !c) return;
|
|
82
|
+
const t = E(), r = Y(
|
|
83
|
+
S,
|
|
84
|
+
I,
|
|
85
|
+
b
|
|
110
86
|
);
|
|
111
|
-
!
|
|
87
|
+
if (!(!n && r.layout !== "" && ue({
|
|
112
88
|
gridApi: e,
|
|
113
|
-
labels:
|
|
114
|
-
previousFingerprints:
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
|
|
89
|
+
labels: t,
|
|
90
|
+
previousFingerprints: r
|
|
91
|
+
}))) {
|
|
92
|
+
if (n) {
|
|
93
|
+
queueMicrotask(() => {
|
|
94
|
+
const o = se(e, t);
|
|
95
|
+
if (o && !ce(
|
|
96
|
+
e,
|
|
97
|
+
o.leafColumnIds
|
|
98
|
+
)) {
|
|
99
|
+
const i = le(
|
|
100
|
+
o.items,
|
|
101
|
+
e
|
|
102
|
+
);
|
|
103
|
+
w(
|
|
104
|
+
B(e, i),
|
|
105
|
+
S,
|
|
106
|
+
I,
|
|
107
|
+
b
|
|
108
|
+
), F(i), M(!0);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
a();
|
|
112
|
+
});
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
queueMicrotask(() => {
|
|
116
|
+
a();
|
|
117
|
+
});
|
|
118
|
+
}
|
|
118
119
|
}, [
|
|
119
120
|
e,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
]),
|
|
124
|
-
if (!e || !
|
|
125
|
-
const
|
|
121
|
+
c,
|
|
122
|
+
E,
|
|
123
|
+
a
|
|
124
|
+
]), j(() => {
|
|
125
|
+
if (!e || !c) return;
|
|
126
|
+
const n = [
|
|
126
127
|
"columnVisible",
|
|
127
128
|
"columnPinned",
|
|
128
129
|
"columnMoved",
|
|
@@ -138,175 +139,120 @@ function Gt({
|
|
|
138
139
|
"filterChanged",
|
|
139
140
|
"newColumnsLoaded"
|
|
140
141
|
];
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
(
|
|
148
|
-
|
|
142
|
+
let t = null;
|
|
143
|
+
const r = () => {
|
|
144
|
+
l.current || g(e) || (t && clearTimeout(t), t = setTimeout(() => {
|
|
145
|
+
t = null, !(l.current || g(e) || e.isDestroyed()) && a();
|
|
146
|
+
}, ee));
|
|
147
|
+
}, o = n.map(
|
|
148
|
+
(m) => X(e, m, () => {
|
|
149
|
+
r();
|
|
149
150
|
})
|
|
150
|
-
),
|
|
151
|
-
|
|
151
|
+
), i = ae(() => {
|
|
152
|
+
r();
|
|
152
153
|
});
|
|
153
154
|
return () => {
|
|
154
|
-
|
|
155
|
+
t && clearTimeout(t), o.forEach((m) => m()), i();
|
|
155
156
|
};
|
|
156
|
-
}, [e,
|
|
157
|
-
const
|
|
158
|
-
(
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
}, [e, c, a]);
|
|
158
|
+
const v = f(
|
|
159
|
+
(n) => {
|
|
160
|
+
if (!e) return;
|
|
161
|
+
l.current = !0;
|
|
162
|
+
const t = te(n);
|
|
163
|
+
if (t.length === 0) {
|
|
164
|
+
k(() => {
|
|
165
|
+
T(n);
|
|
166
|
+
});
|
|
161
167
|
return;
|
|
162
|
-
o.current = !0;
|
|
163
|
-
let n = r;
|
|
164
|
-
for (const u of t) {
|
|
165
|
-
if (u.itemId === q || u.itemId === at) {
|
|
166
|
-
const m = n.orderedColumnIds.filter((s) => {
|
|
167
|
-
const R = !!n.pinByColumnId.get(s);
|
|
168
|
-
return u.itemId === q ? R : !R;
|
|
169
|
-
});
|
|
170
|
-
n = ut(
|
|
171
|
-
n,
|
|
172
|
-
m,
|
|
173
|
-
u.checked
|
|
174
|
-
);
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
n = lt(
|
|
178
|
-
n,
|
|
179
|
-
u.itemId,
|
|
180
|
-
u.checked
|
|
181
|
-
);
|
|
182
168
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
169
|
+
const r = e.getColumnState(), o = q(r, t), i = new Set(
|
|
170
|
+
r.filter((s) => z(s.pinned)).map((s) => s.colId)
|
|
171
|
+
), m = o.filter(
|
|
172
|
+
(s) => z(s.pinned) && !i.has(s.colId)
|
|
173
|
+
), P = new Set(m.map((s) => s.colId));
|
|
174
|
+
e.applyColumnState({ state: o, applyOrder: !0 });
|
|
175
|
+
const u = () => {
|
|
176
|
+
T(n);
|
|
177
|
+
};
|
|
178
|
+
if (P.size === 0) {
|
|
179
|
+
k(u);
|
|
192
180
|
return;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
m
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
releaseLockAndRebuildTreeFromGrid: k,
|
|
216
|
-
applyExternalGridSync: i,
|
|
217
|
-
setIsUpdating: (r) => {
|
|
218
|
-
o.current = r;
|
|
181
|
+
}
|
|
182
|
+
let O = !1, U = null, L = null;
|
|
183
|
+
L = X(e, "columnPinned", () => {
|
|
184
|
+
if (O || e.isDestroyed()) return;
|
|
185
|
+
const s = e.getColumnState();
|
|
186
|
+
if (m.filter((G) => {
|
|
187
|
+
const d = s.find((_) => _.colId === G.colId);
|
|
188
|
+
return d && !d.pinned;
|
|
189
|
+
}).length > 0) {
|
|
190
|
+
O = !0, U && clearTimeout(U), L?.();
|
|
191
|
+
const G = o.filter(
|
|
192
|
+
(d) => d.pinned && !P.has(d.colId)
|
|
193
|
+
);
|
|
194
|
+
if (G.length > 0) {
|
|
195
|
+
const d = G[0], _ = o.map(
|
|
196
|
+
(D) => D.colId === d.colId ? { ...D, pinned: null } : D
|
|
197
|
+
);
|
|
198
|
+
e.applyColumnState({ state: _, applyOrder: !0 });
|
|
199
|
+
}
|
|
200
|
+
k(() => {
|
|
201
|
+
l.current = !1, a();
|
|
202
|
+
});
|
|
219
203
|
}
|
|
220
|
-
})
|
|
204
|
+
}), U = setTimeout(() => {
|
|
205
|
+
L?.(), O || u();
|
|
206
|
+
}, A);
|
|
221
207
|
},
|
|
222
|
-
[e,
|
|
223
|
-
),
|
|
224
|
-
(
|
|
225
|
-
|
|
208
|
+
[e, T, a]
|
|
209
|
+
), K = f(
|
|
210
|
+
(n) => {
|
|
211
|
+
v(V(n));
|
|
226
212
|
},
|
|
227
|
-
[
|
|
228
|
-
),
|
|
229
|
-
(
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
g(n);
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
y(n);
|
|
213
|
+
[v]
|
|
214
|
+
), Q = f(
|
|
215
|
+
(n, t) => {
|
|
216
|
+
const r = V(n);
|
|
217
|
+
t || v(r), F(r), y(r);
|
|
236
218
|
},
|
|
237
|
-
[
|
|
238
|
-
),
|
|
239
|
-
(
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
o.current = !0;
|
|
243
|
-
const R = ct(n, t, r);
|
|
244
|
-
d(R, () => {
|
|
245
|
-
if (W(e, t) !== r) {
|
|
246
|
-
o.current = !1, i();
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
o.current = !1;
|
|
250
|
-
});
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
const u = (R) => R.map((C) => C.id === t ? {
|
|
254
|
-
...C,
|
|
219
|
+
[v, y]
|
|
220
|
+
), Z = f(
|
|
221
|
+
(n, t) => {
|
|
222
|
+
const r = (P) => P.map((u) => u.id === n ? {
|
|
223
|
+
...u,
|
|
255
224
|
data: {
|
|
256
|
-
...
|
|
257
|
-
pinned:
|
|
225
|
+
...u.data,
|
|
226
|
+
pinned: t
|
|
258
227
|
}
|
|
259
|
-
} :
|
|
260
|
-
...
|
|
261
|
-
children: u
|
|
262
|
-
} :
|
|
263
|
-
if (y(
|
|
264
|
-
|
|
265
|
-
const
|
|
266
|
-
{ colId:
|
|
228
|
+
} : u.children ? {
|
|
229
|
+
...u,
|
|
230
|
+
children: r(u.children)
|
|
231
|
+
} : u), o = r(x.current);
|
|
232
|
+
if (F(o), y(o), !e) return;
|
|
233
|
+
l.current = !0;
|
|
234
|
+
const i = e.getColumnState(), m = q(i, [
|
|
235
|
+
{ colId: n, pinned: t }
|
|
267
236
|
]);
|
|
268
|
-
e.applyColumnState({ state:
|
|
269
|
-
if (
|
|
270
|
-
|
|
237
|
+
e.applyColumnState({ state: m, applyOrder: !0 }), k(() => {
|
|
238
|
+
if (ne(e, n) !== t) {
|
|
239
|
+
l.current = !1, a();
|
|
271
240
|
return;
|
|
272
241
|
}
|
|
273
|
-
|
|
274
|
-
});
|
|
275
|
-
},
|
|
276
|
-
[
|
|
277
|
-
e,
|
|
278
|
-
O,
|
|
279
|
-
d,
|
|
280
|
-
k,
|
|
281
|
-
i
|
|
282
|
-
]
|
|
283
|
-
), $ = c(
|
|
284
|
-
(t) => {
|
|
285
|
-
const r = S.current;
|
|
286
|
-
if (!e || !r)
|
|
287
|
-
return;
|
|
288
|
-
o.current = !0;
|
|
289
|
-
const n = st(r, t);
|
|
290
|
-
d(n, () => {
|
|
291
|
-
o.current = !1;
|
|
242
|
+
T(o);
|
|
292
243
|
});
|
|
293
244
|
},
|
|
294
|
-
[e,
|
|
245
|
+
[e, y, T, a]
|
|
295
246
|
);
|
|
296
247
|
return {
|
|
297
|
-
items:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
handleSubmit: J,
|
|
304
|
-
handlePinChange: Q,
|
|
305
|
-
handleAuthorityItemToggle: j,
|
|
306
|
-
handleAuthorityVirtualDrop: H,
|
|
307
|
-
handleAuthoritySelectAll: $
|
|
248
|
+
items: R,
|
|
249
|
+
isReady: H,
|
|
250
|
+
listWrapperRef: J,
|
|
251
|
+
handleChange: Q,
|
|
252
|
+
handleSubmit: K,
|
|
253
|
+
handlePinChange: Z
|
|
308
254
|
};
|
|
309
255
|
}
|
|
310
256
|
export {
|
|
311
|
-
|
|
257
|
+
Re as useDataTableColumnListSync
|
|
312
258
|
};
|
|
@@ -3,7 +3,8 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
function I({
|
|
7
8
|
tags: o,
|
|
8
9
|
title: l = "Attributes",
|
|
9
10
|
maxVisibleTags: n = 4,
|
|
@@ -70,5 +71,5 @@ function w({
|
|
|
70
71
|
);
|
|
71
72
|
}
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
I as ExpandableListItemAttributes
|
|
74
75
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
const m = 128;
|
|
5
|
-
function
|
|
6
|
+
function f({
|
|
6
7
|
columns: i,
|
|
7
8
|
sectionId: l = "metrics"
|
|
8
9
|
}) {
|
|
@@ -50,5 +51,5 @@ function x({
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
f as ExpandableListItemMetrics
|
|
54
55
|
};
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { useSensors, DragStartEvent, DragOverEvent, DragEndEvent } from '@dnd-kit/core';
|
|
3
|
-
import { NestedListItem
|
|
3
|
+
import { NestedListItem } from '../nested-list.types';
|
|
4
4
|
interface NestedListContentProps {
|
|
5
5
|
isListCollapsed: boolean;
|
|
6
6
|
enableDragDrop: boolean;
|
|
7
|
-
dragMode?: NestedListDragMode;
|
|
8
7
|
sensors: ReturnType<typeof useSensors>;
|
|
9
8
|
items: {
|
|
10
9
|
item: NestedListItem;
|
|
11
10
|
level: number;
|
|
12
11
|
indentLevel: number;
|
|
13
12
|
}[];
|
|
14
|
-
|
|
15
|
-
renderItem: (item: NestedListItem, level: number, indentLevel: number, context?: {
|
|
16
|
-
isAnyDragging?: boolean;
|
|
17
|
-
}) => React.ReactNode;
|
|
13
|
+
renderItem: (item: NestedListItem, level: number, indentLevel: number) => React.ReactNode;
|
|
18
14
|
onDragStart: (event: DragStartEvent) => void;
|
|
19
15
|
onDragOver: (event: DragOverEvent) => void;
|
|
20
16
|
onDragEnd: (event: DragEndEvent) => void;
|
|
21
17
|
onDragCancel: () => void;
|
|
22
18
|
activeId: string | null;
|
|
23
|
-
onToggleCollapse: (itemId: string) => void;
|
|
24
|
-
toggleCollapseHandlerRef: React.MutableRefObject<(itemId: string) => void>;
|
|
25
|
-
collapsedItems?: Record<string, boolean>;
|
|
26
|
-
onVirtualDrop?: (activeId: string, overId: string, insertAfter: boolean) => void;
|
|
27
19
|
}
|
|
28
20
|
export declare const NestedListContent: React.FC<NestedListContentProps>;
|
|
29
21
|
export {};
|