impact-nova 3.0.0-alpha.1 → 3.0.0-alpha.10
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/README.md +1 -1
- 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/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/link-with-batch-cell-renderer.js +0 -2
- 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.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- 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/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/headers/header-search-input.js +203 -199
- 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/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 +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- 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/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/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/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/popover/popover.js +1 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -19
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +4 -7
- 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/guidance/renderers/guidance-card-shared.js +1 -1
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +40 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +99 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +48 -38
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +31 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +79 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +63 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +289 -231
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +30 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +34 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +167 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
- package/dist/components/forms/choice-card/choice-card.js +196 -199
- package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
- package/dist/components/forms/combobox/combobox.js +1 -1
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- 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/components/layout/header/header.js +1 -0
- 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/button/button.variants.js +1 -1
- 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 +3 -1
- package/dist/components/primitives/iris/iris.js +76 -84
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +92 -91
- package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- 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 +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +45 -0
- package/dist/i18n/defaultMessages.js +58 -14
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +44 -0
- package/dist/i18n/locales/es.js +44 -0
- package/dist/i18n/locales/hi.js +44 -0
- package/dist/i18n/locales/kn.js +44 -0
- package/dist/impact-nova-components.css +195 -8
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +356 -352
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- 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 +8 -2
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import { ColDef, ColGroupDef } from 'ag-grid-community';
|
|
1
|
+
import { ColDef, ColGroupDef, ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
/**
|
|
3
|
+
* Resolve column-level editability for display renderers.
|
|
4
|
+
*
|
|
5
|
+
* AG Grid accepts `editable` as a boolean *or* a callback. Display chrome
|
|
6
|
+
* (Select trigger, chevron) must invoke the callback — `=== true` misses every
|
|
7
|
+
* function and paints the cell as a disabled input.
|
|
8
|
+
*/
|
|
9
|
+
export declare function readColDefEditable(colDef: ColDef | null | undefined, rendererParams: ICellRendererParams): boolean;
|
|
2
10
|
/**
|
|
3
11
|
* Recursively overrides `editable` on leaf columns to be a function
|
|
4
12
|
* that enforces the **4-level editable priority**: column < split < row < cell.
|
|
@@ -1,62 +1,67 @@
|
|
|
1
1
|
import { resolveCellEditable as d } from "./cell-renderers/cell-renderer-utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
function j(n, t) {
|
|
3
|
+
const e = n?.editable;
|
|
4
|
+
return typeof e == "function" ? e(t) : e === !0 ? !0 : e === !1 ? !1 : n?._originalEditable === !0;
|
|
5
|
+
}
|
|
6
|
+
const y = (n, t) => {
|
|
7
|
+
if (t in n) return n[t];
|
|
8
|
+
if (t.includes(".")) {
|
|
9
|
+
const e = t.split(".");
|
|
10
|
+
let l = n;
|
|
11
|
+
for (const r of e)
|
|
12
|
+
if (l != null && typeof l == "object")
|
|
13
|
+
l = l[r];
|
|
10
14
|
else
|
|
11
15
|
return;
|
|
12
|
-
return
|
|
16
|
+
return l;
|
|
13
17
|
}
|
|
14
|
-
},
|
|
15
|
-
const
|
|
16
|
-
if (!
|
|
17
|
-
let e =
|
|
18
|
-
if (!(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
for (let i = 0; i <
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
e =
|
|
18
|
+
}, E = (n) => {
|
|
19
|
+
const t = n.colDef.field;
|
|
20
|
+
if (!t) return !1;
|
|
21
|
+
let e = n.data, l = t;
|
|
22
|
+
if (!(t in e) && t.includes(".")) {
|
|
23
|
+
const o = t.split(".");
|
|
24
|
+
l = o[o.length - 1];
|
|
25
|
+
for (let i = 0; i < o.length - 1; i++) {
|
|
26
|
+
const a = e[o[i]];
|
|
27
|
+
if (a != null && typeof a == "object")
|
|
28
|
+
e = a;
|
|
25
29
|
else
|
|
26
30
|
return !1;
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
|
-
const
|
|
30
|
-
return
|
|
33
|
+
const r = e[l], u = n.newValue;
|
|
34
|
+
return r && typeof r == "object" && "cellMetadata" in r ? e[l] = u && typeof u == "object" && "value" in u ? u : { ...r, value: u } : e[l] = u, !0;
|
|
31
35
|
};
|
|
32
|
-
function
|
|
33
|
-
return
|
|
34
|
-
const e = { ...
|
|
36
|
+
function g(n) {
|
|
37
|
+
return n.map((t) => {
|
|
38
|
+
const e = { ...t };
|
|
35
39
|
if (e.children?.length)
|
|
36
|
-
return e.children =
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const
|
|
40
|
-
return e._originalEditable =
|
|
40
|
+
return e.children = g(e.children), e;
|
|
41
|
+
const l = e.field;
|
|
42
|
+
if (!l) return e;
|
|
43
|
+
const r = e.cellEditorParams?.splits, u = r?.some((i) => i.editable === !0) ?? !1, o = typeof e.editable == "boolean" ? e.editable : void 0;
|
|
44
|
+
return e._originalEditable = o, r || (e.valueSetter = E), e.editable = (i) => {
|
|
41
45
|
if (i.node?.group === !0 || i.data?.group === !0)
|
|
42
46
|
return !1;
|
|
43
|
-
const
|
|
44
|
-
if (!
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const p =
|
|
48
|
-
return
|
|
49
|
-
const f =
|
|
47
|
+
const a = i.data;
|
|
48
|
+
if (!a) return u || !!o;
|
|
49
|
+
const s = y(a, l);
|
|
50
|
+
if (r) {
|
|
51
|
+
const p = s != null && typeof s == "object" ? s : null;
|
|
52
|
+
return r.some((c) => {
|
|
53
|
+
const f = c.field?.split(".")?.pop();
|
|
50
54
|
if (!f) return !1;
|
|
51
55
|
const v = p?.[f];
|
|
52
|
-
return d(
|
|
56
|
+
return d(o, c.editable, a, v);
|
|
53
57
|
});
|
|
54
58
|
}
|
|
55
|
-
const b =
|
|
56
|
-
return d(
|
|
59
|
+
const b = s != null && typeof s == "object" && "value" in s ? s : void 0;
|
|
60
|
+
return d(o, void 0, a, b);
|
|
57
61
|
}, e;
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
64
|
export {
|
|
61
|
-
|
|
65
|
+
g as addRowDataEditableCheck,
|
|
66
|
+
j as readColDefEditable
|
|
62
67
|
};
|
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
|
};
|