impact-nova 2.5.11 → 2.5.13
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 +1 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +55 -50
- package/dist/components/data/data-table/column-picker-authority.d.ts +34 -0
- package/dist/components/data/data-table/column-picker-authority.js +116 -0
- package/dist/components/data/data-table/column-picker-drop-validation.d.ts +7 -0
- package/dist/components/data/data-table/column-picker-drop-validation.js +37 -0
- package/dist/components/data/data-table/data-table-column-apply.d.ts +2 -0
- package/dist/components/data/data-table/data-table-column-apply.js +84 -73
- package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +10 -0
- package/dist/components/data/data-table/data-table-column-list-tree-apply.js +79 -0
- package/dist/components/data/data-table/data-table-column-list.js +94 -64
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +12 -6
- package/dist/components/data/data-table/data-table-column-tree-cache.js +250 -131
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +26 -0
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +195 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +1 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +7 -0
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +5 -0
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +28 -11
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +12 -0
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +12 -0
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +250 -196
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/nested-list/components/NestedListContent.d.ts +10 -2
- package/dist/components/data/nested-list/components/NestedListContent.js +253 -138
- package/dist/components/data/nested-list/components/SortableItem.d.ts +2 -1
- package/dist/components/data/nested-list/components/SortableItem.js +62 -60
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +10 -20
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +44 -233
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +24 -0
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +128 -0
- package/dist/components/data/nested-list/nested-list-constants.d.ts +4 -1
- package/dist/components/data/nested-list/nested-list-constants.js +10 -4
- package/dist/components/data/nested-list/nested-list-display-utils.d.ts +11 -0
- package/dist/components/data/nested-list/nested-list-display-utils.js +74 -0
- package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +31 -0
- package/dist/components/data/nested-list/nested-list-drop-engine.js +209 -0
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +26 -0
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +67 -0
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +4 -0
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +43 -0
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +3 -0
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +34 -0
- package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +9 -0
- package/dist/components/data/nested-list/nested-list-row-estimates.js +14 -0
- package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +36 -0
- package/dist/components/data/nested-list/nested-list-scroll-anchor.js +47 -0
- package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +59 -0
- package/dist/components/data/nested-list/nested-list-virtual-drop.js +341 -0
- package/dist/components/data/nested-list/nested-list.js +322 -336
- package/dist/components/data/nested-list/nested-list.types.d.ts +17 -0
- package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +0 -2
- package/dist/components/data-display/calendar/calendar-apply-validation.js +67 -64
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +2 -4
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +152 -163
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +76 -77
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +0 -6
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +18 -34
- package/dist/components/data-display/calendar/calendar-month-utils.d.ts +0 -5
- package/dist/components/data-display/calendar/calendar-month-utils.js +64 -85
- package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +0 -1
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +30 -31
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +1 -2
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +41 -55
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +0 -2
- package/dist/components/data-display/calendar/calendar-year-panes.js +1 -3
- package/dist/components/data-display/calendar/calendar.js +143 -146
- package/dist/components/data-display/calendar/calendar.types.d.ts +0 -5
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +1 -2
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +74 -79
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +1 -3
- package/dist/components/data-display/calendar/use-calendar-state.js +325 -403
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- 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 +58 -60
- package/dist/components/forms/date-picker/date-picker.types.d.ts +0 -5
- package/dist/components/forms/date-picker/date-range-picker.js +64 -66
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +0 -1
- package/dist/components/forms/date-picker/fiscal-pass-through.js +2 -3
- package/dist/components/forms/date-picker/month-picker.js +59 -61
- package/dist/components/forms/date-picker/month-range-picker.js +61 -63
- package/dist/components/forms/date-picker/multi-date-picker.js +49 -51
- package/dist/components/forms/date-picker/multi-month-picker.js +47 -49
- package/dist/components/forms/date-picker/multi-quarter-picker.js +44 -46
- package/dist/components/forms/date-picker/multi-week-picker.js +51 -53
- package/dist/components/forms/date-picker/multi-year-picker.js +46 -48
- package/dist/components/forms/date-picker/quarter-picker.js +44 -46
- package/dist/components/forms/date-picker/quarter-range-picker.js +43 -45
- package/dist/components/forms/date-picker/week-picker.js +66 -68
- package/dist/components/forms/date-picker/week-range-picker.js +80 -82
- package/dist/components/forms/date-picker/year-picker.js +45 -47
- package/dist/components/forms/date-picker/year-range-picker.js +45 -47
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/form-react/Fields/DateInputField.js +50 -51
- package/dist/form-react/Fields/DateRangeField.js +13 -14
- package/dist/form-react/Fields/MonthRangeField.js +28 -29
- package/dist/form-react/Fields/MultiMonthPickerField.js +12 -13
- package/dist/form-react/Fields/MultiWeekPickerField.js +17 -18
- package/dist/form-react/Fields/WeekRangePicker.js +21 -22
- package/dist/form-react/types/fields.types.d.ts +0 -12
- package/dist/impact-nova.css +1 -1
- package/dist/lib/hash/fnv1a128.d.ts +16 -0
- package/dist/lib/hash/fnv1a128.js +21 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/package.json +1 -1
- package/dist/components/data-display/calendar/calendar-available-view.d.ts +0 -27
- package/dist/components/data-display/calendar/calendar-available-view.js +0 -85
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { GridApi } from 'ag-grid-community';
|
|
2
2
|
import { NestedListItem } from '../nested-list/nested-list.types';
|
|
3
|
+
export interface ColumnIndicatorMaps {
|
|
4
|
+
sortAppliedByColumnId: Map<string, boolean>;
|
|
5
|
+
filterAppliedByColumnId: Map<string, boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildColumnIndicatorMapsFromGrid(gridApi: GridApi): ColumnIndicatorMaps;
|
|
3
8
|
export declare function patchColumnTreeIndicatorsFromGrid(rootItems: NestedListItem[], gridApi: GridApi): NestedListItem[];
|
|
@@ -1,24 +1,41 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
function p(l) {
|
|
2
|
+
const o = l.getGridOption("context"), r = typeof o?.activeSearchColumnId == "string" ? o.activeSearchColumnId : null, s = /* @__PURE__ */ new Map();
|
|
3
|
+
for (const n of l.getColumnState())
|
|
4
|
+
s.set(n.colId, !!n.sort);
|
|
5
|
+
const a = /* @__PURE__ */ new Map(), u = l.getAllGridColumns?.() ?? l.getColumns?.() ?? [];
|
|
6
|
+
for (const n of u) {
|
|
7
|
+
const c = n.getColId();
|
|
8
|
+
a.set(
|
|
9
|
+
c,
|
|
10
|
+
n.isFilterActive() === !0 || r === c
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
return { sortAppliedByColumnId: s, filterAppliedByColumnId: a };
|
|
14
|
+
}
|
|
15
|
+
function I(l, o) {
|
|
16
|
+
const r = o.getGridOption("context"), s = typeof r?.activeSearchColumnId == "string" ? r.activeSearchColumnId : null, a = new Map(
|
|
17
|
+
o.getColumnState().map((e) => [e.colId, e])
|
|
18
|
+
), u = o.getAllGridColumns?.() ?? o.getColumns?.() ?? [], n = new Map(
|
|
19
|
+
u.map((e) => [e.getColId(), e])
|
|
20
|
+
), c = (e) => e.map((t) => {
|
|
5
21
|
if ((t.category === "group" || t.children && t.children.length > 0) && t.children)
|
|
6
22
|
return {
|
|
7
23
|
...t,
|
|
8
|
-
children:
|
|
24
|
+
children: c(t.children)
|
|
9
25
|
};
|
|
10
|
-
const
|
|
26
|
+
const i = n.get(t.id), m = a.get(t.id), d = t.data;
|
|
11
27
|
return {
|
|
12
28
|
...t,
|
|
13
29
|
data: {
|
|
14
|
-
...
|
|
15
|
-
hasSortApplied: !!
|
|
16
|
-
hasFilterApplied:
|
|
30
|
+
...d,
|
|
31
|
+
hasSortApplied: !!m?.sort,
|
|
32
|
+
hasFilterApplied: i?.isFilterActive() === !0 || s === t.id
|
|
17
33
|
}
|
|
18
34
|
};
|
|
19
35
|
});
|
|
20
|
-
return
|
|
36
|
+
return c(l);
|
|
21
37
|
}
|
|
22
38
|
export {
|
|
23
|
-
|
|
39
|
+
p as buildColumnIndicatorMapsFromGrid,
|
|
40
|
+
I as patchColumnTreeIndicatorsFromGrid
|
|
24
41
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GridApi } from 'ag-grid-community';
|
|
2
|
+
import { NestedListItem } from '../nested-list/nested-list.types';
|
|
3
|
+
import { ColumnListSyncFingerprints } from './data-table-column-list-sync';
|
|
4
|
+
import { BuildColumnTreeLabels } from './build-column-tree-from-grid';
|
|
5
|
+
export declare function rebuildColumnTreeFromGrid(gridApi: GridApi, labels: BuildColumnTreeLabels): NestedListItem[] | null;
|
|
6
|
+
export declare function commitRebuiltColumnTreeFromGrid(options: {
|
|
7
|
+
gridApi: GridApi;
|
|
8
|
+
labels: BuildColumnTreeLabels;
|
|
9
|
+
}): {
|
|
10
|
+
tree: NestedListItem[];
|
|
11
|
+
fingerprints: ColumnListSyncFingerprints;
|
|
12
|
+
} | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { buildColumnTreeFromGrid as m } from "./build-column-tree-from-grid.js";
|
|
2
|
+
import { writeColumnTreeCache as t } from "./data-table-column-tree-cache.js";
|
|
3
|
+
function l(r) {
|
|
4
|
+
const e = m(r.gridApi, r.labels);
|
|
5
|
+
if (!e)
|
|
6
|
+
return null;
|
|
7
|
+
const i = t(r.gridApi, e);
|
|
8
|
+
return { tree: e, fingerprints: i };
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
l as commitRebuiltColumnTreeFromGrid
|
|
12
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { GridApi } from 'ag-grid-community';
|
|
2
2
|
import { NestedListItem } from '../nested-list/nested-list.types';
|
|
3
|
+
import { ColumnPickerMode } from './data-table-column-tree-cache';
|
|
4
|
+
import { ColumnPickerAuthority } from './column-picker-authority';
|
|
3
5
|
export interface UseDataTableColumnListSyncOptions {
|
|
4
6
|
gridApi: GridApi | null;
|
|
5
7
|
frozenColumnsLabel: string;
|
|
@@ -8,9 +10,17 @@ export interface UseDataTableColumnListSyncOptions {
|
|
|
8
10
|
}
|
|
9
11
|
export declare function useDataTableColumnListSync({ gridApi, frozenColumnsLabel, scrollableColumnsLabel, isSyncActive, }: UseDataTableColumnListSyncOptions): {
|
|
10
12
|
items: NestedListItem[];
|
|
13
|
+
columnPickerAuthority: ColumnPickerAuthority | null;
|
|
14
|
+
pickerMode: ColumnPickerMode;
|
|
11
15
|
isReady: boolean;
|
|
12
16
|
listWrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
13
17
|
handleChange: (currentItems: NestedListItem[], enableApplyDiscard: boolean) => void;
|
|
14
18
|
handleSubmit: (finalItems: NestedListItem[]) => void;
|
|
15
19
|
handlePinChange: (itemId: string, newPinned: "left" | "right" | null) => void;
|
|
20
|
+
handleAuthorityItemToggle: (toggleChanges: Array<{
|
|
21
|
+
itemId: string;
|
|
22
|
+
checked: boolean;
|
|
23
|
+
}>) => void;
|
|
24
|
+
handleAuthorityVirtualDrop: (activeId: string, overId: string, insertAfter: boolean) => void;
|
|
25
|
+
handleAuthoritySelectAll: (shouldSelectAll: boolean) => void;
|
|
16
26
|
};
|
|
@@ -1,129 +1,128 @@
|
|
|
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
|
-
|
|
1
|
+
import { useState as M, useRef as h, useEffect as v, useCallback as c, useLayoutEffect as A } from "react";
|
|
2
|
+
import { mergePartialOrderedColumnState as B } from "./data-table-column-state.js";
|
|
3
|
+
import { afterSynchronousColumnApply as U, alignColumnTreePinMetadata as w, readGridColumnPinned as W, EXTERNAL_SYNC_DEBOUNCE_MS as tt } from "./data-table-column-apply.js";
|
|
4
|
+
import { isColumnRuntimeStateGuardUpdating as D } from "./column-runtime-state-guard.js";
|
|
5
|
+
import { resolveColumnTreeFromCacheOrGrid as et, peekColumnListSyncWouldSkip as rt, writeColumnTreeAuthorityCache as nt } from "./data-table-column-tree-cache.js";
|
|
6
|
+
import { buildColumnStateFromAuthority as ot, toggleColumnsVisibility as ut, toggleColumnVisibility as lt, updateColumnPin as ct, toggleAllColumnsVisibility as st } from "./column-picker-authority.js";
|
|
7
|
+
import { NESTED_LIST_ROOT_FROZEN_ID as q, NESTED_LIST_ROOT_SCROLLABLE_ID as at } from "../nested-list/nested-list-constants.js";
|
|
8
|
+
import { buildAuthorityFlatShellItems as V, buildFlatColumnVirtualRowModel as it, applyFlatVirtualDropToAuthority as mt } from "./data-table-flat-column-virtual-rows.js";
|
|
9
|
+
import { subscribeGridApiEvent as ft } from "../ag-grid-react/grid-api-event-subscription.js";
|
|
10
|
+
import { subscribeColumnIndicatorSync as dt } from "../ag-grid-react/column-indicator-sync-bus.js";
|
|
11
|
+
import { commitRebuiltColumnTreeFromGrid as ht } from "./reconcile-column-tree-from-grid.js";
|
|
12
|
+
import { applyTreeColumnChanges as yt } from "./data-table-column-list-tree-apply.js";
|
|
13
|
+
function z(e, p, b) {
|
|
12
14
|
return {
|
|
13
15
|
layout: e.current,
|
|
14
|
-
visibility:
|
|
15
|
-
indicators:
|
|
16
|
+
visibility: p.current,
|
|
17
|
+
indicators: b.current
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
+
function Ct(e, p, b, a) {
|
|
21
|
+
p.current = e.layout, b.current = e.visibility, a.current = e.indicators;
|
|
20
22
|
}
|
|
21
|
-
function
|
|
23
|
+
function Gt({
|
|
22
24
|
gridApi: e,
|
|
23
|
-
frozenColumnsLabel:
|
|
24
|
-
scrollableColumnsLabel:
|
|
25
|
-
isSyncActive:
|
|
25
|
+
frozenColumnsLabel: p,
|
|
26
|
+
scrollableColumnsLabel: b,
|
|
27
|
+
isSyncActive: a = !0
|
|
26
28
|
}) {
|
|
27
|
-
const [
|
|
28
|
-
|
|
29
|
-
x.current =
|
|
30
|
-
}, [
|
|
31
|
-
|
|
29
|
+
const [T, y] = M([]), [I, E] = M(null), [O, X] = M("tree"), [Y, F] = M(!1), o = h(!1), Z = h(null), x = h(T), S = h(I), G = h(""), _ = h(""), L = h(""), P = h(a);
|
|
30
|
+
v(() => {
|
|
31
|
+
x.current = T;
|
|
32
|
+
}, [T]), v(() => {
|
|
33
|
+
S.current = I;
|
|
34
|
+
}, [I]);
|
|
35
|
+
const l = c(
|
|
32
36
|
() => ({
|
|
33
|
-
frozenColumns:
|
|
34
|
-
scrollableColumns:
|
|
37
|
+
frozenColumns: p,
|
|
38
|
+
scrollableColumns: b
|
|
35
39
|
}),
|
|
36
|
-
[
|
|
37
|
-
),
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
[]
|
|
47
|
-
), T = f(
|
|
48
|
-
(n) => {
|
|
40
|
+
[p, b]
|
|
41
|
+
), f = c((t) => {
|
|
42
|
+
Ct(
|
|
43
|
+
t,
|
|
44
|
+
G,
|
|
45
|
+
_,
|
|
46
|
+
L
|
|
47
|
+
);
|
|
48
|
+
}, []), d = c(
|
|
49
|
+
(t, r) => {
|
|
49
50
|
if (!e) {
|
|
50
|
-
|
|
51
|
+
r?.();
|
|
51
52
|
return;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
+
const n = ot(t), u = B(
|
|
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
|
+
});
|
|
54
62
|
},
|
|
55
|
-
[e,
|
|
56
|
-
),
|
|
57
|
-
if (!e
|
|
63
|
+
[e, l, f]
|
|
64
|
+
), k = c(() => {
|
|
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))
|
|
58
77
|
return;
|
|
59
|
-
const
|
|
78
|
+
const t = et({
|
|
60
79
|
gridApi: e,
|
|
61
|
-
labels:
|
|
62
|
-
previousFingerprints:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
80
|
+
labels: l(),
|
|
81
|
+
previousFingerprints: z(
|
|
82
|
+
G,
|
|
83
|
+
_,
|
|
84
|
+
L
|
|
66
85
|
)
|
|
67
86
|
});
|
|
68
|
-
if (
|
|
69
|
-
|
|
87
|
+
if (X(t.pickerMode), t.syncMode === "skip") {
|
|
88
|
+
f(t.fingerprints), t.pickerMode === "authority-flat" && t.authority && (E(t.authority), y(V(t.authority, l()))), F(!0);
|
|
70
89
|
return;
|
|
71
90
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
if (t.pickerMode === "authority-flat" && t.authority) {
|
|
92
|
+
f(t.fingerprints), E(t.authority), y(
|
|
93
|
+
t.rootItems ?? V(t.authority, l())
|
|
94
|
+
), F(!0);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (E(null), !t.rootItems) {
|
|
98
|
+
F(!0);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
f(t.fingerprints), y(t.rootItems), F(!0);
|
|
102
|
+
}, [e, l, f]);
|
|
103
|
+
A(() => {
|
|
104
|
+
const t = a && !P.current;
|
|
105
|
+
if (P.current = a, !e || !a) return;
|
|
106
|
+
const r = l(), n = z(
|
|
107
|
+
G,
|
|
108
|
+
_,
|
|
109
|
+
L
|
|
86
110
|
);
|
|
87
|
-
|
|
111
|
+
!t && n.layout !== "" && rt({
|
|
88
112
|
gridApi: e,
|
|
89
|
-
labels:
|
|
90
|
-
previousFingerprints:
|
|
91
|
-
}))
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
}
|
|
113
|
+
labels: r,
|
|
114
|
+
previousFingerprints: n
|
|
115
|
+
}) || queueMicrotask(() => {
|
|
116
|
+
i();
|
|
117
|
+
});
|
|
119
118
|
}, [
|
|
120
119
|
e,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
]),
|
|
125
|
-
if (!e || !
|
|
126
|
-
const
|
|
120
|
+
a,
|
|
121
|
+
l,
|
|
122
|
+
i
|
|
123
|
+
]), v(() => {
|
|
124
|
+
if (!e || !a) return;
|
|
125
|
+
const t = [
|
|
127
126
|
"columnVisible",
|
|
128
127
|
"columnPinned",
|
|
129
128
|
"columnMoved",
|
|
@@ -139,120 +138,175 @@ function Re({
|
|
|
139
138
|
"filterChanged",
|
|
140
139
|
"newColumnsLoaded"
|
|
141
140
|
];
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
(
|
|
149
|
-
|
|
141
|
+
let r = null;
|
|
142
|
+
const n = () => {
|
|
143
|
+
o.current || D(e) || (r && clearTimeout(r), r = setTimeout(() => {
|
|
144
|
+
r = null, !(o.current || D(e) || e.isDestroyed()) && i();
|
|
145
|
+
}, tt));
|
|
146
|
+
}, u = t.map(
|
|
147
|
+
(s) => ft(e, s, () => {
|
|
148
|
+
n();
|
|
150
149
|
})
|
|
151
|
-
),
|
|
152
|
-
|
|
150
|
+
), m = dt(() => {
|
|
151
|
+
n();
|
|
153
152
|
});
|
|
154
153
|
return () => {
|
|
155
|
-
|
|
154
|
+
r && clearTimeout(r), u.forEach((s) => s()), m();
|
|
156
155
|
};
|
|
157
|
-
}, [e,
|
|
158
|
-
const
|
|
159
|
-
(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
const t = te(n);
|
|
163
|
-
if (t.length === 0) {
|
|
164
|
-
k(() => {
|
|
165
|
-
T(n);
|
|
166
|
-
});
|
|
156
|
+
}, [e, a, i]);
|
|
157
|
+
const j = c(
|
|
158
|
+
(t) => {
|
|
159
|
+
const r = S.current;
|
|
160
|
+
if (!e || !r || t.length === 0)
|
|
167
161
|
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
|
+
);
|
|
168
182
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (P.size === 0) {
|
|
179
|
-
k(u);
|
|
183
|
+
d(n, () => {
|
|
184
|
+
o.current = !1;
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
[e, d]
|
|
188
|
+
), H = c(
|
|
189
|
+
(t, r, n) => {
|
|
190
|
+
const u = S.current;
|
|
191
|
+
if (!e || !u)
|
|
180
192
|
return;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
193
|
+
const m = it(
|
|
194
|
+
u,
|
|
195
|
+
l()
|
|
196
|
+
), s = mt(
|
|
197
|
+
u,
|
|
198
|
+
m,
|
|
199
|
+
{
|
|
200
|
+
draggedColumnId: t,
|
|
201
|
+
overId: r,
|
|
202
|
+
insertAfter: n
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
s && (o.current = !0, d(s, () => {
|
|
206
|
+
o.current = !1;
|
|
207
|
+
}));
|
|
208
|
+
},
|
|
209
|
+
[e, l, d]
|
|
210
|
+
), g = c(
|
|
211
|
+
(t) => {
|
|
212
|
+
e && yt({
|
|
213
|
+
gridApi: e,
|
|
214
|
+
newItems: t,
|
|
215
|
+
releaseLockAndRebuildTreeFromGrid: k,
|
|
216
|
+
applyExternalGridSync: i,
|
|
217
|
+
setIsUpdating: (r) => {
|
|
218
|
+
o.current = r;
|
|
203
219
|
}
|
|
204
|
-
})
|
|
205
|
-
L?.(), O || u();
|
|
206
|
-
}, A);
|
|
220
|
+
});
|
|
207
221
|
},
|
|
208
|
-
[e,
|
|
209
|
-
),
|
|
210
|
-
(
|
|
211
|
-
|
|
222
|
+
[e, k, i]
|
|
223
|
+
), J = c(
|
|
224
|
+
(t) => {
|
|
225
|
+
g(w(t));
|
|
212
226
|
},
|
|
213
|
-
[
|
|
214
|
-
),
|
|
215
|
-
(
|
|
216
|
-
const
|
|
217
|
-
|
|
227
|
+
[g]
|
|
228
|
+
), K = c(
|
|
229
|
+
(t, r) => {
|
|
230
|
+
const n = w(t);
|
|
231
|
+
if (!r) {
|
|
232
|
+
g(n);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
y(n);
|
|
218
236
|
},
|
|
219
|
-
[
|
|
220
|
-
),
|
|
221
|
-
(
|
|
222
|
-
const
|
|
223
|
-
|
|
237
|
+
[g]
|
|
238
|
+
), Q = c(
|
|
239
|
+
(t, r) => {
|
|
240
|
+
const n = S.current;
|
|
241
|
+
if (O === "authority-flat" && n && e) {
|
|
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,
|
|
224
255
|
data: {
|
|
225
|
-
...
|
|
226
|
-
pinned:
|
|
256
|
+
...C.data,
|
|
257
|
+
pinned: r
|
|
227
258
|
}
|
|
228
|
-
} :
|
|
229
|
-
...
|
|
230
|
-
children:
|
|
231
|
-
} :
|
|
232
|
-
if (
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
{ colId:
|
|
259
|
+
} : C.children ? {
|
|
260
|
+
...C,
|
|
261
|
+
children: u(C.children)
|
|
262
|
+
} : C), m = u(x.current);
|
|
263
|
+
if (y(m), !e) return;
|
|
264
|
+
o.current = !0;
|
|
265
|
+
const s = e.getColumnState(), N = B(s, [
|
|
266
|
+
{ colId: t, pinned: r }
|
|
236
267
|
]);
|
|
237
|
-
e.applyColumnState({ state:
|
|
238
|
-
if (
|
|
239
|
-
|
|
268
|
+
e.applyColumnState({ state: N, applyOrder: !0 }), U(() => {
|
|
269
|
+
if (W(e, t) !== r) {
|
|
270
|
+
o.current = !1, i();
|
|
240
271
|
return;
|
|
241
272
|
}
|
|
242
|
-
|
|
273
|
+
k();
|
|
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;
|
|
243
292
|
});
|
|
244
293
|
},
|
|
245
|
-
[e,
|
|
294
|
+
[e, d]
|
|
246
295
|
);
|
|
247
296
|
return {
|
|
248
|
-
items:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
297
|
+
items: T,
|
|
298
|
+
columnPickerAuthority: I,
|
|
299
|
+
pickerMode: O,
|
|
300
|
+
isReady: Y,
|
|
301
|
+
listWrapperRef: Z,
|
|
302
|
+
handleChange: K,
|
|
303
|
+
handleSubmit: J,
|
|
304
|
+
handlePinChange: Q,
|
|
305
|
+
handleAuthorityItemToggle: j,
|
|
306
|
+
handleAuthorityVirtualDrop: H,
|
|
307
|
+
handleAuthoritySelectAll: $
|
|
254
308
|
};
|
|
255
309
|
}
|
|
256
310
|
export {
|
|
257
|
-
|
|
311
|
+
Gt as useDataTableColumnListSync
|
|
258
312
|
};
|
|
@@ -3,8 +3,7 @@ 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
|
-
|
|
7
|
-
function I({
|
|
6
|
+
function w({
|
|
8
7
|
tags: o,
|
|
9
8
|
title: l = "Attributes",
|
|
10
9
|
maxVisibleTags: n = 4,
|
|
@@ -71,5 +70,5 @@ function I({
|
|
|
71
70
|
);
|
|
72
71
|
}
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
w as ExpandableListItemAttributes
|
|
75
74
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
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";
|
|
4
3
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
5
4
|
const m = 128;
|
|
6
|
-
function
|
|
5
|
+
function x({
|
|
7
6
|
columns: i,
|
|
8
7
|
sectionId: l = "metrics"
|
|
9
8
|
}) {
|
|
@@ -51,5 +50,5 @@ function f({
|
|
|
51
50
|
);
|
|
52
51
|
}
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
x as ExpandableListItemMetrics
|
|
55
54
|
};
|