impact-nova 3.0.0-alpha.1 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
- package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +0 -2
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +29 -31
- package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +6 -8
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +115 -111
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +6 -9
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +2 -4
- package/dist/components/feedback/popover/popover.js +1 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +6 -8
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +4 -7
- 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/flows/guidance/renderers/guidance-card-shared.js +1 -1
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +6 -6
- package/dist/components/flows/iris-chat/iris-chat-composer.js +9 -9
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +8 -8
- package/dist/components/flows/iris-chat/iris-chat-menu.js +1 -1
- package/dist/components/flows/iris-chat/iris-chat-thread.js +1 -1
- package/dist/components/flows/iris-chat/iris-chat.js +1 -1
- package/dist/components/forms/combobox/combobox.js +1 -1
- package/dist/components/forms/select/components/SelectTriggerValue.js +8 -9
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
- package/dist/impact-nova-components.css +85 -0
- package/dist/impact-nova.css +1 -1
- package/dist/lib/overflow/is-text-overflowing.js +24 -6
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/providers/app-providers.js +11 -13
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { AllEnterpriseModule as
|
|
5
|
-
import { AgGridReact as
|
|
6
|
-
import { customAgGridTheme as
|
|
7
|
-
import { AG_GRID_LIST_ROW_HEIGHT_PX as
|
|
8
|
-
import { syncAgGridThemeMode as
|
|
9
|
-
import { CustomHeader as
|
|
10
|
-
import { CustomHeaderGroup as
|
|
11
|
-
import { mergeColumnGroupDefsWithDefault as
|
|
12
|
-
import { DefaultTextCellRenderer as
|
|
13
|
-
import { GridHeaderContext as
|
|
14
|
-
import { convertToAgGridFilterModel as
|
|
15
|
-
import { AG_GRID_VALUE_FORMATTERS as
|
|
16
|
-
import { useGridAutoSizeStrategyOnResize as
|
|
17
|
-
import { subscribeGridApiEvent as
|
|
1
|
+
import { jsxs as Ee, jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as Ge, useRef as O, useState as _, useId as Re, useEffect as B, useCallback as m, useMemo as h, Suspense as we } from "react";
|
|
3
|
+
import { ModuleRegistry as Me, AllCommunityModule as Te } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as De } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as Ie } from "ag-grid-react";
|
|
6
|
+
import { customAgGridTheme as ke } from "./theme.js";
|
|
7
|
+
import { AG_GRID_LIST_ROW_HEIGHT_PX as je, customAgGridListTheme as He } from "./ag-grid-list.js";
|
|
8
|
+
import { syncAgGridThemeMode as Pe } from "./sync-ag-grid-theme-mode.js";
|
|
9
|
+
import { CustomHeader as Le } from "./headers/custom-header.js";
|
|
10
|
+
import { CustomHeaderGroup as Q } from "./headers/custom-inner-header-group.js";
|
|
11
|
+
import { mergeColumnGroupDefsWithDefault as Oe } from "./merge-column-group-defs.js";
|
|
12
|
+
import { DefaultTextCellRenderer as _e } from "./cell-renderers/default-text-cell-renderer.js";
|
|
13
|
+
import { GridHeaderContext as Ne } from "./headers/context/grid-header-context.js";
|
|
14
|
+
import { convertToAgGridFilterModel as Ve, getMultiFilterIndices as We, convertFromAgGridFilterModel as $e } from "./headers/utils/filter-utils.js";
|
|
15
|
+
import { AG_GRID_VALUE_FORMATTERS as Ke } from "./value-formatters.js";
|
|
16
|
+
import { useGridAutoSizeStrategyOnResize as Ue } from "./useGridAutoSizeStrategyOnResize.js";
|
|
17
|
+
import { subscribeGridApiEvent as Ct, subscribeGridApiEvents as vt } from "./grid-api-event-subscription.js";
|
|
18
18
|
import { notifyColumnIndicatorSync as R } from "./notify-column-indicator-sync.js";
|
|
19
|
-
import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as
|
|
19
|
+
import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as qe } from "./headers/header-search-active-state.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { useAgGridTruncationTooltip as
|
|
22
|
-
import { isAgGridHeaderLabelTooltipOverflowing as
|
|
23
|
-
const
|
|
21
|
+
import { useAgGridTruncationTooltip as bt } from "./use-ag-grid-truncation-tooltip.js";
|
|
22
|
+
import { isAgGridHeaderLabelTooltipOverflowing as Ft, isAgGridTextOverflowing as St } from "./ag-grid-tooltip-overflow.js";
|
|
23
|
+
const ze = Ge(
|
|
24
24
|
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
|
|
25
25
|
default: c.AdvancedFilterDialog
|
|
26
26
|
}))
|
|
27
27
|
);
|
|
28
|
-
|
|
29
|
-
const F = "", V = "",
|
|
28
|
+
Me.registerModules([Te, De]);
|
|
29
|
+
const F = "", V = "", Y = (c) => {
|
|
30
30
|
if (!c) return;
|
|
31
31
|
const n = c.cellRendererParams?.splits;
|
|
32
32
|
if (Array.isArray(n) && n.length > 0) return n;
|
|
33
33
|
const s = c.cellEditorParams?.splits;
|
|
34
34
|
if (Array.isArray(s) && s.length > 0) return s;
|
|
35
|
-
},
|
|
35
|
+
}, Z = (c, n) => {
|
|
36
36
|
const s = [];
|
|
37
37
|
for (const b of n) {
|
|
38
38
|
const C = b?.field?.split(".").pop();
|
|
@@ -57,13 +57,13 @@ const F = "", V = "", Q = (c) => {
|
|
|
57
57
|
s.push("");
|
|
58
58
|
}
|
|
59
59
|
return s;
|
|
60
|
-
},
|
|
60
|
+
}, ee = (c) => {
|
|
61
61
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
62
|
-
navigator.clipboard.writeText(c).catch(() =>
|
|
62
|
+
navigator.clipboard.writeText(c).catch(() => te(c));
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
},
|
|
65
|
+
te(c);
|
|
66
|
+
}, te = (c) => {
|
|
67
67
|
if (typeof document > "u") return;
|
|
68
68
|
const n = document.createElement("textarea");
|
|
69
69
|
n.value = c, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.top = "0", n.style.left = "0", n.style.opacity = "0", n.style.pointerEvents = "none", document.body.appendChild(n);
|
|
@@ -73,7 +73,7 @@ const F = "", V = "", Q = (c) => {
|
|
|
73
73
|
document.body.removeChild(n);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function ft({
|
|
77
77
|
children: c,
|
|
78
78
|
defaultColDef: n,
|
|
79
79
|
defaultColGroupDef: s,
|
|
@@ -84,26 +84,28 @@ function pt({
|
|
|
84
84
|
onFilterChanged: x,
|
|
85
85
|
onSelectionChanged: v,
|
|
86
86
|
onModelUpdated: A,
|
|
87
|
-
ensureDomOrder:
|
|
88
|
-
autoSizeStrategy:
|
|
89
|
-
tooltipShowMode:
|
|
87
|
+
ensureDomOrder: w = !1,
|
|
88
|
+
autoSizeStrategy: M,
|
|
89
|
+
tooltipShowMode: T = "whenTruncated",
|
|
90
90
|
tooltipShowDelay: D = 500,
|
|
91
|
-
tooltipHideDelay:
|
|
92
|
-
tooltipInteraction:
|
|
93
|
-
themeOverride:
|
|
91
|
+
tooltipHideDelay: re = 5e3,
|
|
92
|
+
tooltipInteraction: ne = !0,
|
|
93
|
+
themeOverride: oe,
|
|
94
94
|
variant: W = "table",
|
|
95
|
+
rowLoading: le = !1,
|
|
96
|
+
className: $,
|
|
95
97
|
...f
|
|
96
98
|
}) {
|
|
97
|
-
const a = O(null), I = O(null), [K, U] = _(null),
|
|
98
|
-
y.current =
|
|
99
|
+
const a = O(null), I = O(null), [K, U] = _(null), q = Re(), y = O(q);
|
|
100
|
+
y.current = q, Ue(K, I, M), B(() => {
|
|
99
101
|
const e = document.documentElement, t = () => {
|
|
100
|
-
|
|
102
|
+
Pe(e.classList.contains("dark") ? "dark" : "light", e);
|
|
101
103
|
};
|
|
102
104
|
t();
|
|
103
105
|
const o = new MutationObserver(t);
|
|
104
106
|
return o.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => o.disconnect();
|
|
105
107
|
}, []);
|
|
106
|
-
const [
|
|
108
|
+
const [ie, z] = _(!1), [se, X] = _(null), ce = m(() => [], []), ae = h(() => ({
|
|
107
109
|
numericColumn: {
|
|
108
110
|
cellClass: "ag-right-aligned-cell",
|
|
109
111
|
headerClass: "ag-right-aligned-header",
|
|
@@ -137,17 +139,17 @@ function pt({
|
|
|
137
139
|
a.current.setGridOption("context", { ...e, activeSearchColumnId: null }), N(y.current, null), R(a.current);
|
|
138
140
|
},
|
|
139
141
|
openAdvancedFilter: (e) => {
|
|
140
|
-
|
|
142
|
+
X(e || null), z(!0);
|
|
141
143
|
},
|
|
142
144
|
closeAdvancedFilter: () => {
|
|
143
|
-
|
|
145
|
+
z(!1), X(null);
|
|
144
146
|
},
|
|
145
147
|
applyAdvancedFilter: (e) => {
|
|
146
148
|
if (!a.current) return;
|
|
147
|
-
const t =
|
|
149
|
+
const t = Ve(e);
|
|
148
150
|
a.current.setFilterModel(t), a.current.onFilterChanged(), R(a.current);
|
|
149
151
|
}
|
|
150
|
-
}), []),
|
|
152
|
+
}), []), ue = m((e) => {
|
|
151
153
|
a.current = e.api, U(e.api);
|
|
152
154
|
const t = e.api.getGridOption("context") || {};
|
|
153
155
|
e.api.setGridOption("context", {
|
|
@@ -155,28 +157,28 @@ function pt({
|
|
|
155
157
|
activeSearchColumnId: null,
|
|
156
158
|
headerSearchScopeId: y.current
|
|
157
159
|
}), N(y.current, null), u && u(e);
|
|
158
|
-
}, [u]),
|
|
160
|
+
}, [u]), de = m(
|
|
159
161
|
(e) => {
|
|
160
|
-
|
|
162
|
+
qe(y.current), a.current = null, U(null), d?.(e);
|
|
161
163
|
},
|
|
162
164
|
[d]
|
|
163
|
-
),
|
|
165
|
+
), pe = m(
|
|
164
166
|
(e) => {
|
|
165
167
|
R(e.api), x?.(e);
|
|
166
168
|
},
|
|
167
169
|
[x]
|
|
168
|
-
),
|
|
170
|
+
), me = m(
|
|
169
171
|
(e) => {
|
|
170
172
|
v?.(e);
|
|
171
173
|
},
|
|
172
174
|
[v]
|
|
173
|
-
),
|
|
175
|
+
), fe = m(
|
|
174
176
|
(e) => {
|
|
175
177
|
A?.(e);
|
|
176
178
|
},
|
|
177
179
|
[A]
|
|
178
180
|
);
|
|
179
|
-
|
|
181
|
+
B(() => {
|
|
180
182
|
const e = I.current;
|
|
181
183
|
if (!e) return;
|
|
182
184
|
const t = (o) => {
|
|
@@ -190,12 +192,12 @@ function pt({
|
|
|
190
192
|
};
|
|
191
193
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
192
194
|
}, []);
|
|
193
|
-
const
|
|
194
|
-
headerComponent:
|
|
195
|
+
const ge = h(() => ({
|
|
196
|
+
headerComponent: Le,
|
|
195
197
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
196
198
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
197
199
|
// anonymous flex text nodes, but works on flex child elements).
|
|
198
|
-
cellRenderer:
|
|
200
|
+
cellRenderer: _e,
|
|
199
201
|
...n,
|
|
200
202
|
suppressHeaderKeyboardEvent: (e) => {
|
|
201
203
|
const { event: t } = e, o = t.target;
|
|
@@ -220,24 +222,24 @@ function pt({
|
|
|
220
222
|
...s?.headerGroupComponentParams,
|
|
221
223
|
innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
222
224
|
}
|
|
223
|
-
}), [s]),
|
|
224
|
-
() =>
|
|
225
|
+
}), [s]), he = h(
|
|
226
|
+
() => Oe(b ?? void 0, j),
|
|
225
227
|
[b, j]
|
|
226
|
-
),
|
|
227
|
-
...
|
|
228
|
+
), Ce = h(() => ({
|
|
229
|
+
...Ke,
|
|
228
230
|
// Always available - value formatters
|
|
229
|
-
CustomInnerHeaderGroup:
|
|
230
|
-
CustomHeaderGroup:
|
|
231
|
+
CustomInnerHeaderGroup: Q,
|
|
232
|
+
CustomHeaderGroup: Q,
|
|
231
233
|
...f.components,
|
|
232
234
|
// User components override
|
|
233
235
|
...C
|
|
234
236
|
// Optional custom formatters override defaults
|
|
235
|
-
}), [C, f.components]),
|
|
237
|
+
}), [C, f.components]), ve = m((e) => {
|
|
236
238
|
const t = e.value;
|
|
237
239
|
if (t != null && typeof t == "object") {
|
|
238
|
-
const i =
|
|
240
|
+
const i = Y(e.column?.getColDef());
|
|
239
241
|
if (i && i.length > 0) {
|
|
240
|
-
const l =
|
|
242
|
+
const l = Z(t, i);
|
|
241
243
|
if (i.length === 1) {
|
|
242
244
|
const P = i[0]?.field?.split(".").pop(), g = P ? t[P] : void 0;
|
|
243
245
|
return g && typeof g == "object" && "value" in g ? g.value ?? "" : l[0];
|
|
@@ -248,7 +250,7 @@ function pt({
|
|
|
248
250
|
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(F);
|
|
249
251
|
}
|
|
250
252
|
return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
|
|
251
|
-
}, []),
|
|
253
|
+
}, []), ye = m((e) => {
|
|
252
254
|
if (typeof e.value == "string") {
|
|
253
255
|
const t = e.value.trim();
|
|
254
256
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -259,10 +261,10 @@ function pt({
|
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
263
|
return e.value;
|
|
262
|
-
}, []),
|
|
264
|
+
}, []), be = m((e) => {
|
|
263
265
|
const t = e?.data ?? "";
|
|
264
266
|
if (!t.includes(F) && !t.includes(V)) {
|
|
265
|
-
|
|
267
|
+
ee(t);
|
|
266
268
|
return;
|
|
267
269
|
}
|
|
268
270
|
const o = [], i = t.split(`
|
|
@@ -279,20 +281,20 @@ function pt({
|
|
|
279
281
|
continue;
|
|
280
282
|
}
|
|
281
283
|
for (let p = 0; p < L; p++) {
|
|
282
|
-
const
|
|
283
|
-
o.push(
|
|
284
|
+
const Ae = g.map((G) => !G.isSplit && G.slots.length === 1 ? G.slots[0] : G.slots[p] ?? "");
|
|
285
|
+
o.push(Ae.join(" "));
|
|
284
286
|
}
|
|
285
287
|
}
|
|
286
|
-
|
|
288
|
+
ee(o.join(`
|
|
287
289
|
`));
|
|
288
290
|
}, []), E = m((e) => {
|
|
289
291
|
const t = e.value;
|
|
290
292
|
if (t == null) return "";
|
|
291
293
|
if (typeof t != "object")
|
|
292
294
|
return e.column?.getColDef()?.useValueFormatterForExport === !0 ? String(e.formatValue?.(t) ?? t) : String(t);
|
|
293
|
-
const o =
|
|
295
|
+
const o = Y(e.column?.getColDef());
|
|
294
296
|
if (o && o.length > 0) {
|
|
295
|
-
const r =
|
|
297
|
+
const r = Z(t, o);
|
|
296
298
|
return o.length === 1 ? r[0] : r.join(`
|
|
297
299
|
`);
|
|
298
300
|
}
|
|
@@ -308,69 +310,71 @@ function pt({
|
|
|
308
310
|
}
|
|
309
311
|
return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
|
|
310
312
|
`);
|
|
311
|
-
}, []),
|
|
313
|
+
}, []), xe = h(() => ({
|
|
312
314
|
processCellCallback: E,
|
|
313
315
|
...f.defaultCsvExportParams ?? {}
|
|
314
|
-
}), [E, f.defaultCsvExportParams]),
|
|
316
|
+
}), [E, f.defaultCsvExportParams]), Fe = h(() => ({
|
|
315
317
|
processCellCallback: E,
|
|
316
318
|
...f.defaultExcelExportParams ?? {}
|
|
317
|
-
}), [E, f.defaultExcelExportParams]), H = W === "list",
|
|
318
|
-
return /* @__PURE__ */
|
|
319
|
+
}), [E, f.defaultExcelExportParams]), H = W === "list", J = f.rowHeight ?? je, Se = oe ?? (H ? He : ke);
|
|
320
|
+
return /* @__PURE__ */ Ee(Ne.Provider, { value: k, children: [
|
|
319
321
|
/* @__PURE__ */ S(
|
|
320
322
|
"div",
|
|
321
323
|
{
|
|
322
324
|
ref: I,
|
|
323
325
|
"data-component": "ag-grid-react",
|
|
324
326
|
"data-variant": W,
|
|
327
|
+
"data-row-loading": le ? "true" : "false",
|
|
328
|
+
className: `table-with-loader${$ ? ` ${$}` : ""}`,
|
|
325
329
|
style: {
|
|
326
330
|
width: "100%",
|
|
327
331
|
height: "100%",
|
|
328
|
-
...H ? { "--ag-row-height": `${
|
|
332
|
+
...H ? { "--ag-row-height": `${J}px` } : null
|
|
329
333
|
},
|
|
330
334
|
children: /* @__PURE__ */ S(
|
|
331
|
-
|
|
335
|
+
Ie,
|
|
332
336
|
{
|
|
333
|
-
theme:
|
|
334
|
-
defaultColDef:
|
|
335
|
-
columnDefs:
|
|
337
|
+
theme: Se,
|
|
338
|
+
defaultColDef: ge,
|
|
339
|
+
columnDefs: he,
|
|
336
340
|
cellSelection: !0,
|
|
337
341
|
defaultColGroupDef: j,
|
|
338
|
-
onGridReady:
|
|
339
|
-
onGridPreDestroyed:
|
|
340
|
-
onFilterChanged:
|
|
341
|
-
onSelectionChanged:
|
|
342
|
-
onModelUpdated:
|
|
343
|
-
tooltipShowMode:
|
|
342
|
+
onGridReady: ue,
|
|
343
|
+
onGridPreDestroyed: de,
|
|
344
|
+
onFilterChanged: pe,
|
|
345
|
+
onSelectionChanged: me,
|
|
346
|
+
onModelUpdated: fe,
|
|
347
|
+
tooltipShowMode: T,
|
|
344
348
|
tooltipShowDelay: D,
|
|
345
|
-
tooltipHideDelay:
|
|
346
|
-
tooltipInteraction:
|
|
347
|
-
processCellForClipboard:
|
|
348
|
-
processCellFromClipboard:
|
|
349
|
-
sendToClipboard:
|
|
350
|
-
ensureDomOrder:
|
|
349
|
+
tooltipHideDelay: re,
|
|
350
|
+
tooltipInteraction: ne,
|
|
351
|
+
processCellForClipboard: ve,
|
|
352
|
+
processCellFromClipboard: ye,
|
|
353
|
+
sendToClipboard: be,
|
|
354
|
+
ensureDomOrder: w,
|
|
351
355
|
suppressHeaderFocus: !1,
|
|
352
356
|
suppressFocusAfterRefresh: !0,
|
|
353
357
|
suppressGroupRowsSticky: !0,
|
|
354
358
|
hidePaddedHeaderRows: !0,
|
|
355
359
|
suppressServerSideFullWidthLoadingRow: !0,
|
|
356
|
-
columnTypes:
|
|
357
|
-
autoSizeStrategy:
|
|
360
|
+
columnTypes: ae,
|
|
361
|
+
autoSizeStrategy: M,
|
|
358
362
|
...f,
|
|
359
|
-
...H ? { rowHeight:
|
|
360
|
-
components:
|
|
361
|
-
defaultCsvExportParams:
|
|
362
|
-
defaultExcelExportParams:
|
|
363
|
-
getMainMenuItems:
|
|
363
|
+
...H ? { rowHeight: J } : null,
|
|
364
|
+
components: Ce,
|
|
365
|
+
defaultCsvExportParams: xe,
|
|
366
|
+
defaultExcelExportParams: Fe,
|
|
367
|
+
getMainMenuItems: ce
|
|
364
368
|
}
|
|
365
369
|
)
|
|
366
370
|
}
|
|
367
371
|
),
|
|
368
372
|
c,
|
|
369
373
|
/* @__PURE__ */ S(
|
|
370
|
-
|
|
374
|
+
Xe,
|
|
371
375
|
{
|
|
372
|
-
isOpen:
|
|
373
|
-
columnId:
|
|
376
|
+
isOpen: ie,
|
|
377
|
+
columnId: se,
|
|
374
378
|
gridApi: K,
|
|
375
379
|
onClose: k.closeAdvancedFilter,
|
|
376
380
|
onApply: k.applyAdvancedFilter
|
|
@@ -378,7 +382,7 @@ function pt({
|
|
|
378
382
|
)
|
|
379
383
|
] });
|
|
380
384
|
}
|
|
381
|
-
function
|
|
385
|
+
function Xe({
|
|
382
386
|
isOpen: c,
|
|
383
387
|
columnId: n,
|
|
384
388
|
gridApi: s,
|
|
@@ -388,16 +392,16 @@ function qe({
|
|
|
388
392
|
if (!c || !n || !s) return null;
|
|
389
393
|
const u = s.getColumn(n);
|
|
390
394
|
if (!u) return null;
|
|
391
|
-
const d = u.getColDef(), x = d.headerComponentParams, v =
|
|
392
|
-
return /* @__PURE__ */ S(
|
|
393
|
-
|
|
395
|
+
const d = u.getColDef(), x = d.headerComponentParams, v = We(d), A = v.text !== -1 || v.number !== -1 || v.date !== -1, w = v.set !== -1, T = d.filter === "agMultiColumnFilter" && (A || w) ? "multi" : d.filter === "agNumberColumnFilter" ? "number" : d.filter === "agDateColumnFilter" ? "date" : d.filter === "agSetColumnFilter" || x?.selectOptions ? "select" : "text", D = $e(s.getFilterModel());
|
|
396
|
+
return /* @__PURE__ */ S(we, { fallback: null, children: /* @__PURE__ */ S(
|
|
397
|
+
ze,
|
|
394
398
|
{
|
|
395
399
|
isOpen: c,
|
|
396
400
|
onClose: b,
|
|
397
401
|
onApply: C,
|
|
398
402
|
columnId: n,
|
|
399
403
|
columnLabel: d.headerName || n,
|
|
400
|
-
columnType:
|
|
404
|
+
columnType: T,
|
|
401
405
|
selectOptions: x?.selectOptions,
|
|
402
406
|
isMultiSelect: x?.isMultiSelect,
|
|
403
407
|
initialModel: D,
|
|
@@ -406,10 +410,10 @@ function qe({
|
|
|
406
410
|
) });
|
|
407
411
|
}
|
|
408
412
|
export {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
ft as AgGridWrapper,
|
|
414
|
+
Ft as isAgGridHeaderLabelTooltipOverflowing,
|
|
415
|
+
St as isAgGridTextOverflowing,
|
|
416
|
+
Ct as subscribeGridApiEvent,
|
|
417
|
+
vt as subscribeGridApiEvents,
|
|
418
|
+
bt as useAgGridTruncationTooltip
|
|
415
419
|
};
|
|
@@ -3,17 +3,14 @@ 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
|
-
import "clsx";
|
|
8
|
-
import "tailwind-merge";
|
|
9
|
-
function j({
|
|
6
|
+
function w({
|
|
10
7
|
tags: o,
|
|
11
8
|
title: l = "Attributes",
|
|
12
9
|
maxVisibleTags: n = 4,
|
|
13
|
-
formatOverflow:
|
|
14
|
-
externalCopyFunction:
|
|
10
|
+
formatOverflow: c,
|
|
11
|
+
externalCopyFunction: m
|
|
15
12
|
}) {
|
|
16
|
-
const p = o.slice(0, n), t = o.slice(n), i = t.length, d =
|
|
13
|
+
const p = o.slice(0, n), t = o.slice(n), i = t.length, d = c?.(i) ?? (i > 0 ? `+${i}` : null);
|
|
17
14
|
return /* @__PURE__ */ r(
|
|
18
15
|
"div",
|
|
19
16
|
{
|
|
@@ -63,7 +60,7 @@ function j({
|
|
|
63
60
|
},
|
|
64
61
|
isRemovable: !1,
|
|
65
62
|
isCopyable: !0,
|
|
66
|
-
externalCopyFunction:
|
|
63
|
+
externalCopyFunction: m
|
|
67
64
|
}
|
|
68
65
|
)
|
|
69
66
|
] }) : null
|
|
@@ -73,5 +70,5 @@ function j({
|
|
|
73
70
|
);
|
|
74
71
|
}
|
|
75
72
|
export {
|
|
76
|
-
|
|
73
|
+
w as ExpandableListItemAttributes
|
|
77
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
|
};
|
|
@@ -2,10 +2,8 @@ import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { Select as C } from "../../forms/select/select.js";
|
|
4
4
|
import { Tooltip as O, TooltipTrigger as S, TooltipContent as b } from "../../feedback/tooltip/tooltip.js";
|
|
5
|
-
import "clsx";
|
|
6
|
-
import "tailwind-merge";
|
|
7
5
|
import { formatPeriodTooltip as g, formatPeriodOption as T, formatPeriodCell as x } from "./calendar-fiscal-labels.js";
|
|
8
|
-
function
|
|
6
|
+
function N({
|
|
9
7
|
periods: i,
|
|
10
8
|
selectedPeriod: o,
|
|
11
9
|
placeholder: m,
|
|
@@ -61,5 +59,5 @@ function w({
|
|
|
61
59
|
) : p;
|
|
62
60
|
}
|
|
63
61
|
export {
|
|
64
|
-
|
|
62
|
+
N as FiscalPeriodCaptionSelect
|
|
65
63
|
};
|
|
@@ -3,8 +3,8 @@ import * as p from "react";
|
|
|
3
3
|
import * as a from "@radix-ui/react-popover";
|
|
4
4
|
import { Cross as N } from "impact-nova-icons";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as u, TooltipContent as P } from "../tooltip/tooltip.js";
|
|
6
|
-
import { cn as n } from "../../../lib/utils.js";
|
|
7
6
|
import { wrapRadixPart as d, createCompoundPart as x } from "../../../lib/primitives/create-compound.js";
|
|
7
|
+
import { cn as n } from "../../../lib/utils.js";
|
|
8
8
|
import { useImpactNovaI18n as m } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
9
|
import { useOverlayNestedLayerDismiss as C, useOverlayPortalContainer as b } from "../../../lib/overlay/overlay-portal-context.js";
|
|
10
10
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as T } from "../../../lib/overlay/overlay-host.constants.js";
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Kbd as
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
|
|
6
|
-
import "tailwind-merge";
|
|
7
|
-
function h({
|
|
3
|
+
import { Kbd as s } from "../../primitives/kbd/kbd.js";
|
|
4
|
+
import { Tooltip as m, TooltipTrigger as a, TooltipContent as l } from "./tooltip.js";
|
|
5
|
+
function T({
|
|
8
6
|
children: o,
|
|
9
7
|
label: r,
|
|
10
8
|
side: e = "top",
|
|
11
9
|
keybinding: i,
|
|
12
10
|
disabled: p
|
|
13
11
|
}) {
|
|
14
|
-
return r ? /* @__PURE__ */ n(
|
|
12
|
+
return r ? /* @__PURE__ */ n(m, { children: [
|
|
15
13
|
/* @__PURE__ */ t(a, { asChild: !0, children: p ? /* @__PURE__ */ t("span", { tabIndex: -1, className: "inline-block outline-none", children: o }) : o }),
|
|
16
14
|
/* @__PURE__ */ t(l, { variant: "tertiary", side: e, children: i ? /* @__PURE__ */ n("span", { className: "flex items-center gap-2", children: [
|
|
17
15
|
r,
|
|
18
16
|
" ",
|
|
19
|
-
/* @__PURE__ */ t(
|
|
17
|
+
/* @__PURE__ */ t(s, { keybinding: i, size: "sm" })
|
|
20
18
|
] }) : r })
|
|
21
19
|
] }) : o;
|
|
22
20
|
}
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
T as ButtonIconTooltip
|
|
25
23
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
4
|
-
import "clsx";
|
|
5
|
-
import "tailwind-merge";
|
|
6
|
-
const m = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
3
|
+
const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
7
4
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
8
5
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
9
|
-
] }),
|
|
6
|
+
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
10
7
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center", children: i }) }),
|
|
11
8
|
/* @__PURE__ */ e(o, { side: "top", variant: "tertiary", children: r })
|
|
12
9
|
] });
|
|
13
10
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
h as defaultAccordionTooltipRender,
|
|
12
|
+
d as defaultTabTooltipRender
|
|
16
13
|
};
|
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Person as G, Monitor as U, PriorityAlert as q, Locked as O, Reset as B } from "impact-nova-icons";
|
|
4
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
-
import { Kbd as $ } from "../../primitives/kbd/kbd.js";
|
|
6
|
-
import { keybindingToString as H } from "../../primitives/kbd/keybinding-display.js";
|
|
7
5
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
8
|
-
import { ModuleRegistry as
|
|
9
|
-
import { AllEnterpriseModule as
|
|
10
|
-
import { DataTable as
|
|
6
|
+
import { ModuleRegistry as $, AllCommunityModule as H } from "ag-grid-community";
|
|
7
|
+
import { AllEnterpriseModule as V } from "ag-grid-enterprise";
|
|
8
|
+
import { DataTable as J, DataTableContent as Q } from "../../data/data-table/data-table.js";
|
|
11
9
|
import { AG_CELL_NO_PADDING as F } from "../../data/ag-grid-react/cell-renderers/index.js";
|
|
10
|
+
import { Kbd as X } from "../../primitives/kbd/kbd.js";
|
|
11
|
+
import { keybindingToString as Y } from "../../primitives/kbd/keybinding-display.js";
|
|
12
12
|
import { useCommandPalette as Z } from "./use-command-palette.js";
|
|
13
13
|
import { COMMAND_SOURCE_LABELS as m, keybindingFromEvent as W, isReservedShortcut as ee } from "./utils.js";
|
|
14
14
|
import { BadgeCellRenderer as te } from "../../data/ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
15
|
-
|
|
15
|
+
$.registerModules([H, V]);
|
|
16
16
|
function re(a) {
|
|
17
17
|
const t = a.data;
|
|
18
18
|
return t ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
@@ -69,7 +69,7 @@ function ne(a) {
|
|
|
69
69
|
"flex items-center justify-end h-full w-full text-end",
|
|
70
70
|
t.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r(X, { keybinding: t.keybinding, size: "sm" })
|
|
73
73
|
}
|
|
74
74
|
) : t.customisable ? /* @__PURE__ */ r(
|
|
75
75
|
"button",
|
|
@@ -133,7 +133,7 @@ function le({
|
|
|
133
133
|
description: e.description || "",
|
|
134
134
|
category: e.category || "General",
|
|
135
135
|
keybinding: i,
|
|
136
|
-
keybindingDisplay: i ?
|
|
136
|
+
keybindingDisplay: i ? Y(i) : "",
|
|
137
137
|
scope: e.scope,
|
|
138
138
|
source: D,
|
|
139
139
|
sourceColor: T ? "primary" : "neutral",
|
|
@@ -278,10 +278,10 @@ function le({
|
|
|
278
278
|
u?.type === "conflict" ? /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5 shrink-0" }) : u?.type === "reserved" ? /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5 shrink-0" }) : c ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
279
279
|
/* @__PURE__ */ r("span", { children: u ? u.text : L })
|
|
280
280
|
] }) : null;
|
|
281
|
-
return /* @__PURE__ */ h(
|
|
281
|
+
return /* @__PURE__ */ h(J, { className: p("flex flex-col w-full h-full border-t-0", a), children: [
|
|
282
282
|
s ? s(E) : E,
|
|
283
283
|
/* @__PURE__ */ r(
|
|
284
|
-
|
|
284
|
+
Q,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|
|
@@ -6,8 +6,8 @@ import { cn as o } from "../../../lib/utils.js";
|
|
|
6
6
|
import { MultiColorFilter as F, Cross as P, InfoBadge as u } from "impact-nova-icons";
|
|
7
7
|
import { Button as D } from "../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as c, TooltipTrigger as f, TooltipContent as h } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { OverflowTooltip as S } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
10
|
+
import { Kbd as j } from "../../primitives/kbd/kbd.js";
|
|
11
11
|
import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useOverlayHostDismissNestedLayersOnNavigation as I } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
13
|
import { preventDismissOnTooltipOutside as x } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
@@ -145,14 +145,14 @@ const O = ({
|
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
147
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
S,
|
|
149
149
|
{
|
|
150
150
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
151
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
152
|
t.label,
|
|
153
153
|
" ",
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
j,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|