impact-nova 3.0.0-alpha.4 → 3.0.0-alpha.6
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/cell-renderers/editors/list-select-cell-editor.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- 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/expandable-list-item/sku-picker-chrome.d.ts +2 -1
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +51 -40
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +4 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +14 -12
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- 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/iris-chat/iris-chat-menu.js +100 -73
- package/dist/components/forms/choice-card/choice-card-percent.js +68 -50
- package/dist/components/forms/choice-card/choice-card.js +23 -23
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +2 -1
- package/dist/components/primitives/iris/iris.js +57 -67
- package/dist/components/primitives/iris/iris.types.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +5 -5
- package/dist/form-react/Fields/VirtualizedListField.js +69 -64
- package/dist/impact-nova-components.css +35 -8
- package/dist/impact-nova.css +1 -1
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +2 -2
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CHART_PALETTE_CSS_VARS as
|
|
3
|
-
import { resolveDesignTokenColor as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import v from "highcharts";
|
|
2
|
+
import { CHART_PALETTE_CSS_VARS as A } from "./chart-palette.js";
|
|
3
|
+
import { resolveDesignTokenColor as S } from "../../../lib/resolve-design-token-color.js";
|
|
4
|
+
import { chartUsesScatter3d as O, getScatter3dHighchartsOptions as C, mergeScatter3dOptions3dFrame as L, mergeScatter3dChartLoadHandlers as T } from "./chart-scatter3d.js";
|
|
5
|
+
function D(o, { fadeTo: i = 0.1 } = {}) {
|
|
6
|
+
const a = typeof document > "u" ? o : S(o), n = v.color(a).setOpacity(Math.min(Math.max(i, 0), 1)).get("rgba");
|
|
6
7
|
return {
|
|
7
8
|
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
|
8
9
|
stops: [
|
|
9
|
-
[0,
|
|
10
|
-
[1,
|
|
10
|
+
[0, a],
|
|
11
|
+
[1, n]
|
|
11
12
|
]
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
16
|
-
const { series:
|
|
17
|
-
if (!i || !
|
|
18
|
-
const
|
|
15
|
+
const k = /* @__PURE__ */ new Set(["column", "bar"]);
|
|
16
|
+
function F(o, i) {
|
|
17
|
+
const { series: a, colors: n } = o;
|
|
18
|
+
if (!i || !a || !n?.length) return o;
|
|
19
|
+
const h = i === !0 ? {} : i, l = o.chart?.type ?? "column";
|
|
19
20
|
return {
|
|
20
21
|
...o,
|
|
21
|
-
series:
|
|
22
|
-
const u = "type" in
|
|
23
|
-
if (!
|
|
24
|
-
return
|
|
25
|
-
const
|
|
26
|
-
if (typeof
|
|
27
|
-
const
|
|
22
|
+
series: a.map((r, f) => {
|
|
23
|
+
const u = "type" in r && r.type || l;
|
|
24
|
+
if (!k.has(u) || "color" in r && r.color)
|
|
25
|
+
return r;
|
|
26
|
+
const t = "colorIndex" in r && typeof r.colorIndex == "number" ? r.colorIndex : f, c = n[t % n.length];
|
|
27
|
+
if (typeof c != "string") return r;
|
|
28
|
+
const p = D(c, h), g = "negativeColor" in r && r.negativeColor;
|
|
28
29
|
return {
|
|
29
|
-
...
|
|
30
|
-
color:
|
|
30
|
+
...r,
|
|
31
|
+
color: p,
|
|
31
32
|
// Points below the threshold grow away from the axis the other way; flip the fade.
|
|
32
|
-
...!
|
|
33
|
-
negativeColor: { ...
|
|
33
|
+
...!g && {
|
|
34
|
+
negativeColor: { ...p, linearGradient: { x1: 0, y1: 1, x2: 0, y2: 0 } }
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
})
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function z(o) {
|
|
40
41
|
return !o || Array.isArray(o) ? {} : o;
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function y(o) {
|
|
43
44
|
return {
|
|
44
45
|
...o,
|
|
45
46
|
style: {
|
|
@@ -48,51 +49,51 @@ function g(o) {
|
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
const
|
|
53
|
-
if (Array.isArray(
|
|
54
|
-
return
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
...a,
|
|
52
|
+
function E(o, i) {
|
|
53
|
+
const a = i?.dataLabels;
|
|
54
|
+
if (Array.isArray(a))
|
|
55
|
+
return a.map(y);
|
|
56
|
+
const n = z(o?.dataLabels);
|
|
57
|
+
return y({
|
|
58
58
|
...n,
|
|
59
|
+
...a,
|
|
59
60
|
style: {
|
|
60
|
-
...
|
|
61
|
-
...
|
|
61
|
+
...n.style,
|
|
62
|
+
...a?.style,
|
|
62
63
|
pointerEvents: "none"
|
|
63
64
|
}
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function W(o, i) {
|
|
67
68
|
return {
|
|
68
69
|
...o,
|
|
69
70
|
...i,
|
|
70
|
-
dataLabels:
|
|
71
|
+
dataLabels: E(o, i)
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
+
const I = (o) => {
|
|
74
75
|
const {
|
|
75
76
|
type: i = "column",
|
|
76
|
-
title:
|
|
77
|
-
subtitle:
|
|
78
|
-
xAxisCategories:
|
|
79
|
-
xAxisTitle:
|
|
80
|
-
yAxisCategories:
|
|
81
|
-
yAxisTitle:
|
|
77
|
+
title: a,
|
|
78
|
+
subtitle: n,
|
|
79
|
+
xAxisCategories: h,
|
|
80
|
+
xAxisTitle: l,
|
|
81
|
+
yAxisCategories: r,
|
|
82
|
+
yAxisTitle: f,
|
|
82
83
|
series: u,
|
|
83
|
-
options:
|
|
84
|
-
stacked:
|
|
85
|
-
is3D:
|
|
86
|
-
showLegend:
|
|
87
|
-
showTooltip:
|
|
88
|
-
} = o,
|
|
84
|
+
options: t,
|
|
85
|
+
stacked: c,
|
|
86
|
+
is3D: p,
|
|
87
|
+
showLegend: g = !0,
|
|
88
|
+
showTooltip: x = !0
|
|
89
|
+
} = o, d = O({ is3D: p, type: i, series: u }), s = d ? C({ xAxisTitle: l, yAxisTitle: f, options: t }) : void 0, e = {
|
|
89
90
|
chart: {
|
|
90
91
|
type: i,
|
|
91
92
|
backgroundColor: "transparent",
|
|
92
93
|
style: {
|
|
93
94
|
fontFamily: "Manrope, sans-serif"
|
|
94
95
|
},
|
|
95
|
-
options3d:
|
|
96
|
+
options3d: p ? {
|
|
96
97
|
enabled: !0,
|
|
97
98
|
alpha: 15,
|
|
98
99
|
beta: 15,
|
|
@@ -101,7 +102,7 @@ const E = (o) => {
|
|
|
101
102
|
} : void 0
|
|
102
103
|
},
|
|
103
104
|
title: {
|
|
104
|
-
text:
|
|
105
|
+
text: a ?? "",
|
|
105
106
|
align: "left",
|
|
106
107
|
style: {
|
|
107
108
|
fontSize: "18px",
|
|
@@ -110,7 +111,7 @@ const E = (o) => {
|
|
|
110
111
|
}
|
|
111
112
|
},
|
|
112
113
|
subtitle: {
|
|
113
|
-
text:
|
|
114
|
+
text: n,
|
|
114
115
|
align: "left"
|
|
115
116
|
},
|
|
116
117
|
credits: {
|
|
@@ -126,9 +127,9 @@ const E = (o) => {
|
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
129
|
xAxis: {
|
|
129
|
-
categories:
|
|
130
|
-
title:
|
|
131
|
-
text:
|
|
130
|
+
categories: h,
|
|
131
|
+
title: l ? {
|
|
132
|
+
text: l,
|
|
132
133
|
style: {
|
|
133
134
|
color: "var(--color-foreground-tertiary)",
|
|
134
135
|
fontFamily: '"Manrope", sans-serif',
|
|
@@ -151,9 +152,9 @@ const E = (o) => {
|
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
yAxis: {
|
|
154
|
-
categories:
|
|
155
|
+
categories: r,
|
|
155
156
|
title: {
|
|
156
|
-
text:
|
|
157
|
+
text: f,
|
|
157
158
|
margin: 30,
|
|
158
159
|
style: {
|
|
159
160
|
color: "var(--color-foreground-tertiary)",
|
|
@@ -178,7 +179,7 @@ const E = (o) => {
|
|
|
178
179
|
}
|
|
179
180
|
},
|
|
180
181
|
legend: {
|
|
181
|
-
enabled:
|
|
182
|
+
enabled: g,
|
|
182
183
|
symbolRadius: 2,
|
|
183
184
|
itemStyle: {
|
|
184
185
|
color: "var(--color-foreground-tertiary)",
|
|
@@ -190,7 +191,7 @@ const E = (o) => {
|
|
|
190
191
|
}
|
|
191
192
|
},
|
|
192
193
|
tooltip: {
|
|
193
|
-
enabled:
|
|
194
|
+
enabled: x,
|
|
194
195
|
backgroundColor: "var(--color-surface-floating)",
|
|
195
196
|
borderColor: "var(--color-border)",
|
|
196
197
|
borderRadius: 8,
|
|
@@ -199,16 +200,16 @@ const E = (o) => {
|
|
|
199
200
|
},
|
|
200
201
|
shadow: !0
|
|
201
202
|
},
|
|
202
|
-
colors: [...
|
|
203
|
+
colors: [...A],
|
|
203
204
|
plotOptions: {
|
|
204
205
|
column: {
|
|
205
206
|
borderRadius: 4,
|
|
206
|
-
stacking:
|
|
207
|
+
stacking: c ? "normal" : void 0,
|
|
207
208
|
borderWidth: 0
|
|
208
209
|
},
|
|
209
210
|
bar: {
|
|
210
211
|
borderRadius: 4,
|
|
211
|
-
stacking:
|
|
212
|
+
stacking: c ? "normal" : void 0,
|
|
212
213
|
borderWidth: 1,
|
|
213
214
|
borderColor: "var(--color-background)"
|
|
214
215
|
},
|
|
@@ -237,62 +238,91 @@ const E = (o) => {
|
|
|
237
238
|
}
|
|
238
239
|
},
|
|
239
240
|
series: u
|
|
241
|
+
}, m = d ? {
|
|
242
|
+
...e.chart?.options3d,
|
|
243
|
+
...s?.chart?.options3d,
|
|
244
|
+
...t?.chart?.options3d,
|
|
245
|
+
frame: L(
|
|
246
|
+
s?.chart?.options3d?.frame,
|
|
247
|
+
t?.chart?.options3d?.frame
|
|
248
|
+
)
|
|
249
|
+
} : {
|
|
250
|
+
...e.chart?.options3d,
|
|
251
|
+
...t?.chart?.options3d
|
|
240
252
|
};
|
|
241
253
|
return {
|
|
242
|
-
...r,
|
|
243
254
|
...e,
|
|
244
|
-
|
|
255
|
+
...t,
|
|
256
|
+
colors: t?.colors ?? e.colors,
|
|
245
257
|
chart: {
|
|
246
|
-
...
|
|
247
|
-
...
|
|
258
|
+
...e.chart,
|
|
259
|
+
...s?.chart,
|
|
260
|
+
...t?.chart,
|
|
261
|
+
...d ? { type: "scatter3d" } : {},
|
|
262
|
+
options3d: m,
|
|
263
|
+
events: d ? {
|
|
264
|
+
...t?.chart?.events,
|
|
265
|
+
load: T(t?.chart?.events?.load)
|
|
266
|
+
} : t?.chart?.events
|
|
248
267
|
},
|
|
249
268
|
xAxis: {
|
|
250
|
-
...
|
|
251
|
-
...
|
|
269
|
+
...e.xAxis,
|
|
270
|
+
...s?.xAxis,
|
|
271
|
+
...Array.isArray(t?.xAxis) ? {} : t?.xAxis
|
|
252
272
|
},
|
|
253
|
-
yAxis: Array.isArray(
|
|
254
|
-
...
|
|
273
|
+
yAxis: Array.isArray(t?.yAxis) ? t.yAxis.map((b) => ({
|
|
274
|
+
...e.yAxis,
|
|
275
|
+
...s?.yAxis,
|
|
255
276
|
...b
|
|
256
277
|
})) : {
|
|
257
|
-
...
|
|
258
|
-
...
|
|
278
|
+
...e.yAxis,
|
|
279
|
+
...s?.yAxis,
|
|
280
|
+
...t?.yAxis
|
|
259
281
|
},
|
|
282
|
+
zAxis: d ? {
|
|
283
|
+
...s?.zAxis,
|
|
284
|
+
...t?.zAxis
|
|
285
|
+
} : t?.zAxis,
|
|
260
286
|
plotOptions: {
|
|
261
|
-
...
|
|
262
|
-
...
|
|
287
|
+
...e.plotOptions,
|
|
288
|
+
...t?.plotOptions,
|
|
263
289
|
column: {
|
|
264
|
-
...
|
|
265
|
-
...
|
|
290
|
+
...e.plotOptions?.column,
|
|
291
|
+
...t?.plotOptions?.column
|
|
266
292
|
},
|
|
267
293
|
bar: {
|
|
268
|
-
...
|
|
269
|
-
...
|
|
294
|
+
...e.plotOptions?.bar,
|
|
295
|
+
...t?.plotOptions?.bar
|
|
270
296
|
},
|
|
271
297
|
pie: {
|
|
272
|
-
...
|
|
273
|
-
...
|
|
298
|
+
...e.plotOptions?.pie,
|
|
299
|
+
...t?.plotOptions?.pie
|
|
274
300
|
},
|
|
275
|
-
heatmap:
|
|
276
|
-
|
|
277
|
-
|
|
301
|
+
heatmap: W(
|
|
302
|
+
e.plotOptions?.heatmap,
|
|
303
|
+
t?.plotOptions?.heatmap
|
|
278
304
|
),
|
|
305
|
+
scatter3d: {
|
|
306
|
+
...s?.plotOptions?.scatter3d,
|
|
307
|
+
...t?.plotOptions?.scatter3d
|
|
308
|
+
},
|
|
279
309
|
series: {
|
|
280
|
-
...
|
|
281
|
-
...
|
|
310
|
+
...e.plotOptions?.series,
|
|
311
|
+
...t?.plotOptions?.series
|
|
282
312
|
}
|
|
283
313
|
},
|
|
284
314
|
tooltip: {
|
|
285
|
-
...
|
|
286
|
-
...
|
|
315
|
+
...e.tooltip,
|
|
316
|
+
...t?.tooltip
|
|
287
317
|
},
|
|
288
318
|
legend: {
|
|
289
|
-
...
|
|
290
|
-
...
|
|
319
|
+
...e.legend,
|
|
320
|
+
...t?.legend
|
|
291
321
|
}
|
|
292
322
|
};
|
|
293
323
|
};
|
|
294
324
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
325
|
+
F as applySeriesGradient,
|
|
326
|
+
D as chartGradient,
|
|
327
|
+
I as getBaseChartOptions
|
|
298
328
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { KeyBinding } from '../../primitives/kbd';
|
|
2
|
+
import { TooltipContentProps } from './tooltip.types';
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
export interface ButtonIconTooltipProps {
|
|
4
5
|
children: React.ReactElement;
|
|
5
6
|
label?: string;
|
|
6
7
|
side?: "top" | "bottom" | "left" | "right";
|
|
8
|
+
align?: TooltipContentProps["align"];
|
|
9
|
+
variant?: TooltipContentProps["variant"];
|
|
7
10
|
keybinding?: KeyBinding;
|
|
8
11
|
disabled?: boolean;
|
|
9
12
|
}
|
|
@@ -11,4 +14,4 @@ export interface ButtonIconTooltipProps {
|
|
|
11
14
|
* Wraps icon buttons with tooltip + optional Kbd badge.
|
|
12
15
|
* Use at app/feature layer — keeps Button free of feedback imports.
|
|
13
16
|
*/
|
|
14
|
-
export declare function ButtonIconTooltip({ children, label, side, keybinding, disabled, }: ButtonIconTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function ButtonIconTooltip({ children, label, side, align, variant, keybinding, disabled, }: ButtonIconTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Kbd as
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
function
|
|
3
|
+
import { Kbd as c } from "../../primitives/kbd/kbd.js";
|
|
4
|
+
import { Tooltip as l, TooltipTrigger as a, TooltipContent as f } from "./tooltip.js";
|
|
5
|
+
function h({
|
|
6
6
|
children: o,
|
|
7
7
|
label: r,
|
|
8
|
-
side:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
side: n = "top",
|
|
9
|
+
align: p = "center",
|
|
10
|
+
variant: s = "tertiary",
|
|
11
|
+
keybinding: e,
|
|
12
|
+
disabled: m
|
|
11
13
|
}) {
|
|
12
|
-
return r ? /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ t(a, { asChild: !0, children:
|
|
14
|
-
/* @__PURE__ */ t(
|
|
14
|
+
return r ? /* @__PURE__ */ i(l, { children: [
|
|
15
|
+
/* @__PURE__ */ t(a, { asChild: !0, children: m ? /* @__PURE__ */ t("span", { tabIndex: -1, className: "inline-block outline-none", children: o }) : o }),
|
|
16
|
+
/* @__PURE__ */ t(f, { variant: s, side: n, align: p, children: e ? /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
|
|
15
17
|
r,
|
|
16
18
|
" ",
|
|
17
|
-
/* @__PURE__ */ t(
|
|
19
|
+
/* @__PURE__ */ t(c, { keybinding: e, size: "sm" })
|
|
18
20
|
] }) : r })
|
|
19
21
|
] }) : o;
|
|
20
22
|
}
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
h as ButtonIconTooltip
|
|
23
25
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
-
|
|
3
|
+
import "react";
|
|
4
|
+
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
4
5
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
5
6
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
6
7
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -9,5 +10,5 @@ const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
9
10
|
] });
|
|
10
11
|
export {
|
|
11
12
|
h as defaultAccordionTooltipRender,
|
|
12
|
-
|
|
13
|
+
p as defaultTabTooltipRender
|
|
13
14
|
};
|
|
@@ -4,106 +4,114 @@ const H = 500;
|
|
|
4
4
|
function N(o, s) {
|
|
5
5
|
return o !== void 0 ? o : typeof s == "string" ? s : null;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function z(o, {
|
|
8
8
|
content: s,
|
|
9
|
-
overflowMode:
|
|
9
|
+
overflowMode: g = "ellipsis",
|
|
10
10
|
alwaysShow: i = !1,
|
|
11
|
-
disabled:
|
|
12
|
-
focusable:
|
|
11
|
+
disabled: a = !1,
|
|
12
|
+
focusable: E = !1,
|
|
13
13
|
contentDependency: h
|
|
14
14
|
} = {}) {
|
|
15
|
-
const
|
|
15
|
+
const m = t.useRef(null), T = t.useRef(!1), u = t.useRef(
|
|
16
16
|
null
|
|
17
|
-
),
|
|
17
|
+
), O = t.useRef(null), [D, r] = t.useState(!1), [I, n] = t.useState(!1), v = t.useRef(!1), P = t.useRef(!1), p = N(s, o), C = typeof p == "string" ? p.trim().length > 0 : p != null, l = () => {
|
|
18
18
|
u.current && (clearTimeout(u.current), u.current = null);
|
|
19
19
|
}, c = () => {
|
|
20
|
-
const e =
|
|
21
|
-
e && (document.removeEventListener("scroll", e, !0),
|
|
20
|
+
const e = O.current;
|
|
21
|
+
e && (document.removeEventListener("scroll", e, !0), O.current = null);
|
|
22
22
|
}, A = () => {
|
|
23
23
|
l(), n(!1), r(!1);
|
|
24
24
|
}, _ = () => {
|
|
25
25
|
c();
|
|
26
26
|
const e = () => {
|
|
27
|
-
|
|
27
|
+
T.current = !1, A(), c();
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
O.current = e, document.addEventListener("scroll", e, {
|
|
30
30
|
capture: !0,
|
|
31
31
|
passive: !0
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
t.useEffect(() => {
|
|
35
35
|
r(!1), n(!1), l(), c();
|
|
36
|
-
}, [h, s, o, i,
|
|
36
|
+
}, [h, s, o, i, a, g]), t.useEffect(
|
|
37
37
|
() => () => {
|
|
38
38
|
l(), c();
|
|
39
39
|
},
|
|
40
40
|
[]
|
|
41
41
|
);
|
|
42
42
|
const k = t.useCallback((e) => {
|
|
43
|
-
|
|
44
|
-
}, []),
|
|
45
|
-
if (!(
|
|
46
|
-
if (
|
|
43
|
+
m.current = e;
|
|
44
|
+
}, []), R = (e) => i || L(e, g), d = (e, f) => {
|
|
45
|
+
if (!(a || !C)) {
|
|
46
|
+
if (R(e)) {
|
|
47
47
|
r(!0), n(!0);
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
r(!1), n(!1);
|
|
51
51
|
}
|
|
52
52
|
}, F = (e) => {
|
|
53
|
-
l()
|
|
54
|
-
|
|
53
|
+
l();
|
|
54
|
+
const f = R(e);
|
|
55
|
+
u.current = setTimeout(() => {
|
|
56
|
+
if (u.current = null, !!T.current) {
|
|
57
|
+
if (f) {
|
|
58
|
+
r(!0), n(!0);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
d(e);
|
|
62
|
+
}
|
|
55
63
|
}, H);
|
|
56
64
|
};
|
|
57
65
|
return {
|
|
58
66
|
setTriggerRef: k,
|
|
59
67
|
onTriggerPointerEnter: (e) => {
|
|
60
|
-
if (!(
|
|
61
|
-
if (
|
|
62
|
-
|
|
68
|
+
if (!(a || !C)) {
|
|
69
|
+
if (T.current = !0, _(), i) {
|
|
70
|
+
d(e.currentTarget);
|
|
63
71
|
return;
|
|
64
72
|
}
|
|
65
73
|
F(e.currentTarget);
|
|
66
74
|
}
|
|
67
75
|
},
|
|
68
76
|
onTriggerPointerLeave: () => {
|
|
69
|
-
|
|
77
|
+
T.current = !1, l();
|
|
70
78
|
},
|
|
71
|
-
onTriggerFocus:
|
|
72
|
-
|
|
79
|
+
onTriggerFocus: E ? (e) => {
|
|
80
|
+
d(e.currentTarget);
|
|
73
81
|
} : void 0,
|
|
74
82
|
onContentPointerEnter: () => {
|
|
75
|
-
|
|
83
|
+
v.current = !0, n(!0);
|
|
76
84
|
},
|
|
77
85
|
onContentPointerDown: () => {
|
|
78
|
-
|
|
86
|
+
P.current = !0, n(!0);
|
|
79
87
|
},
|
|
80
88
|
onContentPointerLeave: () => {
|
|
81
|
-
|
|
89
|
+
v.current = !1;
|
|
82
90
|
},
|
|
83
91
|
onContentPointerUp: () => {
|
|
84
|
-
|
|
92
|
+
P.current = !1;
|
|
85
93
|
},
|
|
86
|
-
triggerTabIndex:
|
|
94
|
+
triggerTabIndex: E ? 0 : void 0,
|
|
87
95
|
isTooltipArmed: D,
|
|
88
96
|
isTooltipOpen: I,
|
|
89
|
-
tooltipContent:
|
|
97
|
+
tooltipContent: p,
|
|
90
98
|
recheckOverflow: () => {
|
|
91
|
-
const e =
|
|
92
|
-
return !e ||
|
|
99
|
+
const e = m.current;
|
|
100
|
+
return !e || a || !C ? !1 : R(e) ? (r(!0), !0) : (r(!1), n(!1), !1);
|
|
93
101
|
},
|
|
94
102
|
handleTooltipOpenChange: (e) => {
|
|
95
|
-
if (!e && (
|
|
103
|
+
if (!e && (v.current || P.current) || e && !D && !i || (n(e), e))
|
|
96
104
|
return;
|
|
97
105
|
c();
|
|
98
|
-
const
|
|
99
|
-
if (!
|
|
106
|
+
const f = m.current;
|
|
107
|
+
if (!f) {
|
|
100
108
|
r(!1);
|
|
101
109
|
return;
|
|
102
110
|
}
|
|
103
|
-
!i && !L(
|
|
111
|
+
!i && !L(f, g) && r(!1);
|
|
104
112
|
}
|
|
105
113
|
};
|
|
106
114
|
}
|
|
107
115
|
export {
|
|
108
|
-
|
|
116
|
+
z as useOverflowTooltip
|
|
109
117
|
};
|
|
@@ -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";
|
|
5
7
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
6
|
-
import { ModuleRegistry as
|
|
7
|
-
import { AllEnterpriseModule as
|
|
8
|
-
import { DataTable as
|
|
8
|
+
import { ModuleRegistry as V, AllCommunityModule as J } from "ag-grid-community";
|
|
9
|
+
import { AllEnterpriseModule as Q } from "ag-grid-enterprise";
|
|
10
|
+
import { DataTable as X, DataTableContent as Y } from "../../data/data-table/data-table.js";
|
|
9
11
|
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
|
+
V.registerModules([J, Q]);
|
|
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($, { 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 ? H(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(X, { 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
|
+
Y,
|
|
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 { Kbd as S } from "../../primitives/kbd/kbd.js";
|
|
10
|
+
import { OverflowTooltip as j } from "../../feedback/tooltip/overflow-tooltip.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
|
+
j,
|
|
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
|
+
S,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|