impact-nova 3.0.0-alpha.1 → 3.0.0-alpha.3
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/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- 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 -8
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +35 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +142 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- 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 -6
- 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 +6 -6
- package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +169 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +21 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/impact-nova-components.css +85 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +356 -352
- 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/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/providers/app-providers.js +11 -13
- package/package.json +3 -1
package/dist/_virtual/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
3
|
+
var t = r();
|
|
4
|
+
const a = /* @__PURE__ */ e(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/style-to-js/cjs/index.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -157,6 +157,11 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
|
|
|
157
157
|
* column model (sort, filter, search, pagination, SSRM) with card-row styling.
|
|
158
158
|
*/
|
|
159
159
|
variant?: AgGridVisualVariant;
|
|
160
|
+
/**
|
|
161
|
+
* Viewport row shimmer while more pages load. Does **not** show AG Grid's
|
|
162
|
+
* centered overlay — use `loading` only when the grid has no rows yet.
|
|
163
|
+
*/
|
|
164
|
+
rowLoading?: boolean;
|
|
160
165
|
}
|
|
161
166
|
/**
|
|
162
167
|
* Filter operators for advanced filtering.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const l = (r) => {
|
|
2
2
|
switch (r) {
|
|
3
3
|
case "filled":
|
|
4
4
|
return "solid";
|
|
@@ -42,7 +42,7 @@ const a = (r) => {
|
|
|
42
42
|
return u;
|
|
43
43
|
}, o = (r, u) => {
|
|
44
44
|
if (!r?.disabled || !u) return !1;
|
|
45
|
-
const { operator: e, conditions: n } = r.disabled,
|
|
45
|
+
const { operator: e, conditions: n } = r.disabled, a = n.map((t) => {
|
|
46
46
|
const s = u[t.field];
|
|
47
47
|
if (s == null) return !1;
|
|
48
48
|
switch (t.condition) {
|
|
@@ -64,10 +64,10 @@ const a = (r) => {
|
|
|
64
64
|
return !1;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
return e === "AND" ?
|
|
67
|
+
return e === "AND" ? a.every((t) => t === !0) : e === "OR" ? a.some((t) => t === !0) : !1;
|
|
68
68
|
}, f = (r, u, e, n) => {
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
69
|
+
const a = r?.cellMetadata?.valueFormatter;
|
|
70
|
+
if (a) return a;
|
|
71
71
|
const t = u != null && typeof u == "object" ? u.rowMetadata : void 0;
|
|
72
72
|
return t?.valueFormatter ? t.valueFormatter : e || n || null;
|
|
73
73
|
}, d = (r, u) => {
|
|
@@ -87,10 +87,12 @@ const a = (r) => {
|
|
|
87
87
|
return e;
|
|
88
88
|
}
|
|
89
89
|
}, b = (r, u, e, n) => {
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
if (
|
|
93
|
-
const
|
|
90
|
+
const a = n?.cellMetadata?._isDisabled;
|
|
91
|
+
if (n?.cellMetadata?.isLoading === !0 || a === !0) return !1;
|
|
92
|
+
if (a === !1) return !0;
|
|
93
|
+
const t = e != null && typeof e == "object" ? e.rowMetadata : void 0;
|
|
94
|
+
if (t?.isLoading === !0) return !1;
|
|
95
|
+
const s = t?._isDisabled;
|
|
94
96
|
return s === !0 ? !1 : s === !1 ? !0 : u === !1 ? !1 : u === !0 ? !0 : r === !0;
|
|
95
97
|
};
|
|
96
98
|
export {
|
|
@@ -98,7 +100,7 @@ export {
|
|
|
98
100
|
o as evaluateValidationRules,
|
|
99
101
|
c as getFieldValue,
|
|
100
102
|
i as mapBadgeColor,
|
|
101
|
-
|
|
103
|
+
l as mapBadgeVariant,
|
|
102
104
|
b as resolveCellEditable,
|
|
103
105
|
f as resolveValueFormatter
|
|
104
106
|
};
|
|
@@ -4,8 +4,6 @@ import { Badge as V } from "../../../data-display/badge/badge.js";
|
|
|
4
4
|
import { evaluateValidationRules as I, getFieldValue as m, mapBadgeVariant as L, mapBadgeColor as U } from "./cell-renderer-utils.js";
|
|
5
5
|
import { resolveGridIcon as H } from "./gridIconResolver.js";
|
|
6
6
|
import { Tooltip as _, TooltipTrigger as z, TooltipContent as G } from "../../../feedback/tooltip/tooltip.js";
|
|
7
|
-
import "clsx";
|
|
8
|
-
import "tailwind-merge";
|
|
9
7
|
const M = (e, n, r, a) => {
|
|
10
8
|
if (!n) return e;
|
|
11
9
|
let t = e;
|
|
@@ -9,6 +9,12 @@ export interface SelectDisplayRendererProps extends ICellRendererParams {
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
/** Whether the field is disabled */
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* In-flight persist / async load. Replaces the chevron with the same spinner
|
|
14
|
+
* Select uses for `isLoading`. Also resolved from `cellMetadata.isLoading`
|
|
15
|
+
* or `rowMetadata.isLoading`.
|
|
16
|
+
*/
|
|
17
|
+
isLoading?: boolean;
|
|
12
18
|
/**
|
|
13
19
|
* Force-show the AI sparkle when insight metadata is absent.
|
|
14
20
|
* Prefer `cellMetadata.aiInsight` / `aiInsightField` for per-row control.
|
|
@@ -55,6 +61,8 @@ export interface SelectDisplayRendererProps extends ICellRendererParams {
|
|
|
55
61
|
* placeholder: 'Select...',
|
|
56
62
|
* },
|
|
57
63
|
* }
|
|
64
|
+
* // In-flight persist: `{ value: 'keep', cellMetadata: { isLoading: true } }`
|
|
65
|
+
* // or `rowMetadata: { isLoading: true }` — spinner replaces the chevron.
|
|
58
66
|
* // Cell value with AI insight:
|
|
59
67
|
* // { value: 'keep', cellMetadata: { aiInsight: true, confidenceScore: 98, confidenceReason: '...' } }
|
|
60
68
|
* ```
|
|
@@ -1,79 +1,93 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ChevronRight as
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { LoadingSpinner as N, ChevronRight as R } from "impact-nova-icons";
|
|
3
3
|
import { cn as f } from "../../../../lib/utils.js";
|
|
4
|
-
import { SelectAiInsightAffordance as
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const a = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, n = t && typeof t == "object" && "rowMetadata" in t ? t.rowMetadata?._isDisabled : void 0, r = l?._originalEditable;
|
|
9
|
-
return l?.editable === !1 ? !1 : a === !1 ? !0 : a === !0 ? !1 : n === !1 ? !0 : n === !0 ? !1 : r === !0 || l?.editable === !0;
|
|
4
|
+
import { SelectAiInsightAffordance as E } from "./select-ai-insight-affordance.js";
|
|
5
|
+
function F(e) {
|
|
6
|
+
if (e && typeof e == "object" && "cellMetadata" in e)
|
|
7
|
+
return e.cellMetadata;
|
|
10
8
|
}
|
|
11
|
-
|
|
9
|
+
function A(e) {
|
|
10
|
+
if (e && typeof e == "object" && "rowMetadata" in e)
|
|
11
|
+
return e.rowMetadata;
|
|
12
|
+
}
|
|
13
|
+
function h(e) {
|
|
14
|
+
return e.isLoading === !0 || F(e.value)?.isLoading === !0 ? !0 : A(e.data)?.isLoading === !0;
|
|
15
|
+
}
|
|
16
|
+
function C(e) {
|
|
17
|
+
const { value: t, data: a, disabled: d, colDef: i } = e;
|
|
18
|
+
if (d || h(e)) return !1;
|
|
19
|
+
const n = t && typeof t == "object" && "cellMetadata" in t ? t.cellMetadata?._isDisabled : void 0, l = a && typeof a == "object" && "rowMetadata" in a ? a.rowMetadata?._isDisabled : void 0, u = i?._originalEditable;
|
|
20
|
+
return i?.editable === !1 ? !1 : n === !1 ? !0 : n === !0 ? !1 : l === !1 ? !0 : l === !0 ? !1 : u === !0 || i?.editable === !0;
|
|
21
|
+
}
|
|
22
|
+
const I = (e) => {
|
|
12
23
|
const {
|
|
13
|
-
value:
|
|
14
|
-
options:
|
|
15
|
-
placeholder:
|
|
16
|
-
disabled:
|
|
17
|
-
data:
|
|
18
|
-
showAiInsight:
|
|
19
|
-
aiInsightField:
|
|
20
|
-
confidenceScore:
|
|
21
|
-
confidenceScoreField:
|
|
22
|
-
confidenceReason:
|
|
24
|
+
value: t,
|
|
25
|
+
options: a = [],
|
|
26
|
+
placeholder: d = "Select...",
|
|
27
|
+
disabled: i,
|
|
28
|
+
data: n,
|
|
29
|
+
showAiInsight: l,
|
|
30
|
+
aiInsightField: u,
|
|
31
|
+
confidenceScore: v,
|
|
32
|
+
confidenceScoreField: y,
|
|
33
|
+
confidenceReason: w,
|
|
23
34
|
confidenceReasonField: x,
|
|
24
|
-
confidenceLabel:
|
|
25
|
-
} =
|
|
26
|
-
return /* @__PURE__ */
|
|
35
|
+
confidenceLabel: S
|
|
36
|
+
} = e, o = h(e), r = C(e), M = r || o, b = t && typeof t == "object" && "value" in t, j = b ? t.cellMetadata : void 0, c = b ? t.value : t, m = a.find((L) => L.value === String(c ?? ""))?.label ?? (c != null && c !== "" ? String(c) : ""), g = !m, D = n && typeof n == "object" ? n : null;
|
|
37
|
+
return /* @__PURE__ */ p(
|
|
27
38
|
"div",
|
|
28
39
|
{
|
|
29
40
|
className: f(
|
|
30
41
|
"box-border flex h-full w-full min-w-0 items-center gap-2 ps-2 pe-2.5",
|
|
31
|
-
|
|
32
|
-
|
|
42
|
+
i && "opacity-60 cursor-not-allowed",
|
|
43
|
+
r && "in-ag-editable-cell-highlight"
|
|
33
44
|
),
|
|
34
45
|
"data-component": "select-display-renderer",
|
|
46
|
+
"data-loading": o ? "true" : void 0,
|
|
47
|
+
"aria-busy": o || void 0,
|
|
35
48
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ p(
|
|
37
50
|
"div",
|
|
38
51
|
{
|
|
39
52
|
className: f(
|
|
40
53
|
"flex h-7 min-w-0 flex-1 items-center justify-between rounded-[8px] px-1.5",
|
|
41
|
-
|
|
54
|
+
M ? "bg-canvas-elevated" : "bg-inherit",
|
|
55
|
+
r && "cursor-pointer"
|
|
42
56
|
),
|
|
43
57
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ s(
|
|
45
59
|
"span",
|
|
46
60
|
{
|
|
47
61
|
className: f(
|
|
48
62
|
"truncate text-sm font-medium text-content",
|
|
49
|
-
|
|
63
|
+
g && "text-content-empty"
|
|
50
64
|
),
|
|
51
|
-
children:
|
|
65
|
+
children: g ? d : m
|
|
52
66
|
}
|
|
53
67
|
),
|
|
54
|
-
s
|
|
68
|
+
o ? /* @__PURE__ */ s(N, { size: "14px", className: "shrink-0 text-content-icon" }) : r ? /* @__PURE__ */ s(R, { className: "h-3.5 w-3.5 shrink-0 rotate-90 text-content-icon" }) : null
|
|
55
69
|
]
|
|
56
70
|
}
|
|
57
71
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
72
|
+
/* @__PURE__ */ s(
|
|
73
|
+
E,
|
|
60
74
|
{
|
|
61
|
-
showAiInsight:
|
|
62
|
-
aiInsightField:
|
|
63
|
-
confidenceScore:
|
|
64
|
-
confidenceScoreField:
|
|
65
|
-
confidenceReason:
|
|
75
|
+
showAiInsight: l,
|
|
76
|
+
aiInsightField: u,
|
|
77
|
+
confidenceScore: v,
|
|
78
|
+
confidenceScoreField: y,
|
|
79
|
+
confidenceReason: w,
|
|
66
80
|
confidenceReasonField: x,
|
|
67
|
-
confidenceLabel:
|
|
68
|
-
data:
|
|
69
|
-
cellMetadata:
|
|
81
|
+
confidenceLabel: S,
|
|
82
|
+
data: D,
|
|
83
|
+
cellMetadata: j
|
|
70
84
|
}
|
|
71
85
|
)
|
|
72
86
|
]
|
|
73
87
|
}
|
|
74
88
|
);
|
|
75
89
|
};
|
|
76
|
-
|
|
90
|
+
I.displayName = "SelectDisplayRenderer";
|
|
77
91
|
export {
|
|
78
|
-
|
|
92
|
+
I as SelectDisplayRenderer
|
|
79
93
|
};
|
|
@@ -113,6 +113,8 @@ export interface SplitConfig {
|
|
|
113
113
|
*/
|
|
114
114
|
export interface CellMetadata {
|
|
115
115
|
_isDisabled?: boolean;
|
|
116
|
+
/** Persist / async in-flight — display spinner and block the editor. */
|
|
117
|
+
isLoading?: boolean;
|
|
116
118
|
valueFormatter?: ValueFormatter;
|
|
117
119
|
}
|
|
118
120
|
/**
|
|
@@ -121,6 +123,8 @@ export interface CellMetadata {
|
|
|
121
123
|
*/
|
|
122
124
|
export interface RowMetadata {
|
|
123
125
|
_isDisabled?: boolean;
|
|
126
|
+
/** Persist / async in-flight — display spinner and block editors on the row. */
|
|
127
|
+
isLoading?: boolean;
|
|
124
128
|
valueFormatter?: ValueFormatter;
|
|
125
129
|
[key: string]: unknown;
|
|
126
130
|
}
|
package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js
CHANGED
|
@@ -2,9 +2,7 @@ import { jsx as r, jsxs as g, Fragment as Z } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as w } from "react";
|
|
3
3
|
import { Dialog as I, DialogContent as ee, DialogHeader as te, DialogTitle as le, DialogClose as oe, DialogBody as ne, DialogFooter as re } from "../../../../feedback/dialog/dialog.js";
|
|
4
4
|
import { Button as y } from "../../../../primitives/button/button.js";
|
|
5
|
-
import { Tooltip as ae, TooltipTrigger as
|
|
6
|
-
import "clsx";
|
|
7
|
-
import "tailwind-merge";
|
|
5
|
+
import { Tooltip as ae, TooltipTrigger as se, TooltipContent as ie } from "../../../../feedback/tooltip/tooltip.js";
|
|
8
6
|
import { Cross as ce } from "impact-nova-icons";
|
|
9
7
|
import { useImpactNovaI18n as ue } from "../../../../../i18n/use-impact-nova-i18n.js";
|
|
10
8
|
import { ColumnFilterSection as $ } from "./column-filter-section.js";
|
|
@@ -15,7 +13,7 @@ const M = (k) => {
|
|
|
15
13
|
return k.forEach((p) => {
|
|
16
14
|
p.columnId && (m[p.columnId] || (m[p.columnId] = []), m[p.columnId].push(p));
|
|
17
15
|
}), m;
|
|
18
|
-
},
|
|
16
|
+
}, Fe = ({
|
|
19
17
|
isOpen: k,
|
|
20
18
|
onClose: m,
|
|
21
19
|
onApply: p,
|
|
@@ -39,19 +37,19 @@ const M = (k) => {
|
|
|
39
37
|
l && Object.keys(l).forEach((n) => {
|
|
40
38
|
if (!e.some((t) => t.columnId === n)) {
|
|
41
39
|
const t = l[n];
|
|
42
|
-
let
|
|
40
|
+
let s = null;
|
|
43
41
|
if (t.filterType === "date") {
|
|
44
|
-
const
|
|
45
|
-
|
|
42
|
+
const i = t, T = u.getColumn(n)?.getColDef()?.headerComponentParams?.datePickerVariant, f = T === "week" || T === "month", X = i.type === "inRange" && f ? "equals" : i.type || "equals";
|
|
43
|
+
s = {
|
|
46
44
|
id: F(),
|
|
47
45
|
columnId: n,
|
|
48
46
|
columnType: "date",
|
|
49
47
|
operator: X,
|
|
50
|
-
value:
|
|
51
|
-
valueTo:
|
|
48
|
+
value: i.dateFrom || "",
|
|
49
|
+
valueTo: i.dateTo || ""
|
|
52
50
|
};
|
|
53
51
|
} else if (t.filterType === "text")
|
|
54
|
-
|
|
52
|
+
s = {
|
|
55
53
|
id: F(),
|
|
56
54
|
columnId: n,
|
|
57
55
|
columnType: "text",
|
|
@@ -59,7 +57,7 @@ const M = (k) => {
|
|
|
59
57
|
value: t.filter ?? ""
|
|
60
58
|
};
|
|
61
59
|
else if (t.filterType === "number")
|
|
62
|
-
|
|
60
|
+
s = {
|
|
63
61
|
id: F(),
|
|
64
62
|
columnId: n,
|
|
65
63
|
columnType: "number",
|
|
@@ -67,29 +65,29 @@ const M = (k) => {
|
|
|
67
65
|
value: String(t.filter)
|
|
68
66
|
};
|
|
69
67
|
else if (t.filterType === "set")
|
|
70
|
-
|
|
68
|
+
s = {
|
|
71
69
|
id: F(),
|
|
72
70
|
columnId: n,
|
|
73
71
|
columnType: "select",
|
|
74
72
|
operator: "equals",
|
|
75
73
|
value: (t.values ?? []).filter(
|
|
76
|
-
(
|
|
74
|
+
(i) => i != null
|
|
77
75
|
)
|
|
78
76
|
};
|
|
79
77
|
else if (t.filterType === "multi") {
|
|
80
|
-
const
|
|
81
|
-
|
|
78
|
+
const i = t.filterModels?.find((h) => h && h.filterType === "set");
|
|
79
|
+
i && (s = {
|
|
82
80
|
id: F(),
|
|
83
81
|
columnId: n,
|
|
84
82
|
columnType: "multi",
|
|
85
83
|
// or select?
|
|
86
84
|
operator: "equals",
|
|
87
|
-
value: (
|
|
85
|
+
value: (i.values ?? []).filter(
|
|
88
86
|
(h) => h != null
|
|
89
87
|
)
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
|
-
|
|
90
|
+
s && e.push(s);
|
|
93
91
|
}
|
|
94
92
|
});
|
|
95
93
|
}
|
|
@@ -101,12 +99,12 @@ const M = (k) => {
|
|
|
101
99
|
})), U = JSON.stringify({ allRules: v, columnLogic: D }) !== JSON.stringify(R), B = (e) => v.filter((o) => o.columnId === e), N = (e, o) => {
|
|
102
100
|
S((l) => {
|
|
103
101
|
const c = /* @__PURE__ */ new Set(), n = [];
|
|
104
|
-
l.forEach((
|
|
105
|
-
c.has(
|
|
102
|
+
l.forEach((s) => {
|
|
103
|
+
c.has(s.columnId) || (c.add(s.columnId), n.push(s.columnId));
|
|
106
104
|
}), c.has(e) || n.push(e);
|
|
107
105
|
const t = [];
|
|
108
|
-
return n.forEach((
|
|
109
|
-
|
|
106
|
+
return n.forEach((s) => {
|
|
107
|
+
s === e ? t.push(...o) : t.push(...l.filter((i) => i.columnId === s));
|
|
110
108
|
}), t;
|
|
111
109
|
});
|
|
112
110
|
}, _ = (e) => D[e] || "OR", E = (e, o) => {
|
|
@@ -127,11 +125,11 @@ const M = (k) => {
|
|
|
127
125
|
const c = l.getColDef(), n = [];
|
|
128
126
|
let t = l.getParent();
|
|
129
127
|
for (; t; ) {
|
|
130
|
-
const
|
|
131
|
-
|
|
128
|
+
const i = t.getColGroupDef();
|
|
129
|
+
i && i.headerName && n.unshift(i.headerName), t = t.getParent();
|
|
132
130
|
}
|
|
133
|
-
const
|
|
134
|
-
return n.push(
|
|
131
|
+
const s = c?.headerName || e;
|
|
132
|
+
return n.push(s), n.join(" > ");
|
|
135
133
|
};
|
|
136
134
|
return /* @__PURE__ */ r(I, { open: k, onOpenChange: m, children: /* @__PURE__ */ g(ee, { className: "w-[800px] max-w-[95vw] max-h-[90vh] flex flex-col p-0", hideClose: !0, children: [
|
|
137
135
|
/* @__PURE__ */ g(te, { className: "flex flex-row items-center justify-between px-4 py-3 pe-4", children: [
|
|
@@ -153,7 +151,7 @@ const M = (k) => {
|
|
|
153
151
|
}
|
|
154
152
|
),
|
|
155
153
|
/* @__PURE__ */ g(ae, { children: [
|
|
156
|
-
/* @__PURE__ */ r(
|
|
154
|
+
/* @__PURE__ */ r(se, { asChild: !0, children: /* @__PURE__ */ r(
|
|
157
155
|
"span",
|
|
158
156
|
{
|
|
159
157
|
style: {
|
|
@@ -176,7 +174,7 @@ const M = (k) => {
|
|
|
176
174
|
)
|
|
177
175
|
}
|
|
178
176
|
) }),
|
|
179
|
-
x && /* @__PURE__ */ r(
|
|
177
|
+
x && /* @__PURE__ */ r(ie, { variant: "tertiary", children: d("advancedFilter.allFiltersDisabledTooltip") })
|
|
180
178
|
] })
|
|
181
179
|
] }),
|
|
182
180
|
/* @__PURE__ */ r(y, { variant: "ghost", onClick: W, className: "!text-brand", children: d("advancedFilter.clearAll") })
|
|
@@ -206,7 +204,7 @@ const M = (k) => {
|
|
|
206
204
|
const f = u.getColumn(e);
|
|
207
205
|
f && (l = f.getColDef());
|
|
208
206
|
}
|
|
209
|
-
const c = l?.headerComponentParams, n = l?.headerName || e, t = V(e, n),
|
|
207
|
+
const c = l?.headerComponentParams, n = l?.headerName || e, t = V(e, n), s = l?.filter === "agNumberColumnFilter" ? "number" : l?.filter === "agDateColumnFilter" ? "date" : l?.filter === "agMultiColumnFilter" ? "multi" : l?.filter === "agSetColumnFilter" || c?.selectOptions ? "select" : "text", i = c?.selectOptions, h = c?.isMultiSelect, T = c?.dateDisplayFormat || j;
|
|
210
208
|
return /* @__PURE__ */ g("div", { children: [
|
|
211
209
|
o > 0 && /* @__PURE__ */ r("hr", { className: "border-stroke-hairline mb-6" }),
|
|
212
210
|
/* @__PURE__ */ r(
|
|
@@ -214,8 +212,8 @@ const M = (k) => {
|
|
|
214
212
|
{
|
|
215
213
|
columnId: e,
|
|
216
214
|
columnLabel: t,
|
|
217
|
-
columnType:
|
|
218
|
-
selectOptions:
|
|
215
|
+
columnType: s,
|
|
216
|
+
selectOptions: i,
|
|
219
217
|
isMultiSelect: h,
|
|
220
218
|
rules: B(e),
|
|
221
219
|
logic: _(e),
|
|
@@ -244,5 +242,5 @@ const M = (k) => {
|
|
|
244
242
|
] }) });
|
|
245
243
|
};
|
|
246
244
|
export {
|
|
247
|
-
|
|
245
|
+
Fe as AdvancedFilterDialog
|
|
248
246
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as a } from "react";
|
|
3
|
-
import { Tooltip as p, TooltipTrigger as l, TooltipContent as
|
|
4
|
-
|
|
5
|
-
import "tailwind-merge";
|
|
6
|
-
const T = ({ content: e, children: r, side: o = "bottom" }) => {
|
|
3
|
+
import { Tooltip as p, TooltipTrigger as l, TooltipContent as c } from "../../../../feedback/tooltip/tooltip.js";
|
|
4
|
+
const f = ({ content: r, children: e, side: o = "bottom" }) => {
|
|
7
5
|
const [n, i] = a(!1);
|
|
8
6
|
return n ? /* @__PURE__ */ s(p, { children: [
|
|
9
|
-
/* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t("span", { children:
|
|
10
|
-
/* @__PURE__ */ t(
|
|
11
|
-
] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children:
|
|
7
|
+
/* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t("span", { children: e }) }),
|
|
8
|
+
/* @__PURE__ */ t(c, { side: o, variant: "tertiary", children: /* @__PURE__ */ t("p", { children: r }) })
|
|
9
|
+
] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children: e });
|
|
12
10
|
};
|
|
13
11
|
export {
|
|
14
|
-
|
|
12
|
+
f as LazyTooltip
|
|
15
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgGridWrapperProps } from './ag-grid.types';
|
|
2
2
|
import { subscribeGridApiEvent, subscribeGridApiEvents } from './grid-api-event-subscription';
|
|
3
3
|
export { subscribeGridApiEvent, subscribeGridApiEvents };
|
|
4
|
-
export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, variant, ...restProps }: AgGridWrapperProps<TData> & {
|
|
4
|
+
export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, variant, rowLoading, className, ...restProps }: AgGridWrapperProps<TData> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { useAgGridTruncationTooltip } from './use-ag-grid-truncation-tooltip';
|