impact-nova 3.0.0-alpha.1 → 3.0.0-alpha.11

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.
Files changed (192) hide show
  1. package/README.md +1 -1
  2. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  3. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  4. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
  5. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  6. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +0 -2
  7. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  11. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  12. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  13. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +29 -31
  14. package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +6 -8
  15. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  16. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  17. package/dist/components/data/ag-grid-react/index.js +115 -111
  18. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +6 -9
  19. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
  20. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  21. package/dist/components/data/expandable-list-item/index.js +20 -16
  22. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  23. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  24. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  25. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  26. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  27. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  28. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  29. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  32. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +2 -4
  33. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  34. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  35. package/dist/components/data-display/chart/chart.js +125 -112
  36. package/dist/components/data-display/chart/chart.utils.js +122 -92
  37. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  38. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  39. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  40. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  41. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  42. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  43. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  44. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  45. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  46. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  47. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  48. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  49. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  50. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  51. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  52. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  53. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  54. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  55. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  56. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  57. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  58. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  59. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  60. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  61. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  62. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  63. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  64. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  65. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  66. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  67. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  68. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  69. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  70. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  71. package/dist/components/feedback/popover/popover.js +1 -1
  72. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  73. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -19
  74. package/dist/components/feedback/tooltip/tab-tooltip-render.js +4 -7
  75. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  76. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  77. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  78. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
  79. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  80. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  81. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  82. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  83. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  84. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  85. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  86. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  87. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  88. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  89. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  90. package/dist/components/flows/iris-chat/index.js +58 -53
  91. package/dist/components/flows/iris-chat/iris-chat-artifact.js +48 -38
  92. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  93. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  94. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  95. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  96. package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
  97. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  98. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  99. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  100. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  101. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  102. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  103. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
  104. package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
  105. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  106. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  107. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  108. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  109. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  110. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  111. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  112. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  113. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  114. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  115. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  116. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  117. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  118. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  119. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  120. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  121. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  122. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  123. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  124. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  125. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  126. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  127. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  128. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  129. package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
  130. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  131. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  132. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  133. package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
  134. package/dist/components/forms/choice-card/choice-card.js +196 -199
  135. package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
  136. package/dist/components/forms/combobox/combobox.js +1 -1
  137. package/dist/components/forms/input/input.js +5 -5
  138. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  139. package/dist/components/forms/select/components/SelectTriggerValue.js +8 -9
  140. package/dist/components/forms/select/components/Submenu.js +2 -3
  141. package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
  142. package/dist/components/layout/header/header.js +1 -0
  143. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  144. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  145. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  146. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  147. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  148. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  149. package/dist/components/primitives/button/button.variants.js +1 -1
  150. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  151. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  152. package/dist/components/primitives/iris/iris.d.ts +3 -1
  153. package/dist/components/primitives/iris/iris.js +76 -84
  154. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  155. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  156. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  157. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  158. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  159. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  160. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  161. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  162. package/dist/components/primitives/stepper/stepper.js +92 -91
  163. package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
  164. package/dist/form-react/Fields/SelectField.js +66 -57
  165. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  166. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  167. package/dist/form-react/fields.d.ts +1 -0
  168. package/dist/form-react/fields.js +28 -26
  169. package/dist/form-react/index.d.ts +1 -1
  170. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  171. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  172. package/dist/form-react/types/fields.types.d.ts +48 -1
  173. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  174. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  175. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  176. package/dist/i18n/defaultMessages.d.ts +50 -0
  177. package/dist/i18n/defaultMessages.js +63 -14
  178. package/dist/i18n/index.d.ts +1 -1
  179. package/dist/i18n/locales/de.js +49 -0
  180. package/dist/i18n/locales/es.js +49 -0
  181. package/dist/i18n/locales/hi.js +49 -0
  182. package/dist/i18n/locales/kn.js +49 -0
  183. package/dist/impact-nova-components.css +195 -8
  184. package/dist/impact-nova.css +1 -1
  185. package/dist/index.js +356 -352
  186. package/dist/lib/alphabetical-sort.d.ts +3 -0
  187. package/dist/lib/alphabetical-sort.js +13 -0
  188. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  189. package/dist/llms/rules/installation.js +1 -1
  190. package/dist/llms/rules/requirements.js +1 -1
  191. package/dist/providers/app-providers.js +11 -13
  192. 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
- const y = (o, l) => {
3
- if (l in o) return o[l];
4
- if (l.includes(".")) {
5
- const e = l.split(".");
6
- let t = o;
7
- for (const n of e)
8
- if (t != null && typeof t == "object")
9
- t = t[n];
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 t;
16
+ return l;
13
17
  }
14
- }, h = (o) => {
15
- const l = o.colDef.field;
16
- if (!l) return !1;
17
- let e = o.data, t = l;
18
- if (!(l in e) && l.includes(".")) {
19
- const r = l.split(".");
20
- t = r[r.length - 1];
21
- for (let i = 0; i < r.length - 1; i++) {
22
- const s = e[r[i]];
23
- if (s != null && typeof s == "object")
24
- e = s;
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 n = e[t], u = o.newValue;
30
- return n && typeof n == "object" && "cellMetadata" in n ? e[t] = u && typeof u == "object" && "value" in u ? u : { ...n, value: u } : e[t] = u, !0;
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 j(o) {
33
- return o.map((l) => {
34
- const e = { ...l };
36
+ function g(n) {
37
+ return n.map((t) => {
38
+ const e = { ...t };
35
39
  if (e.children?.length)
36
- return e.children = j(e.children), e;
37
- const t = e.field;
38
- if (!t) return e;
39
- const n = e.cellEditorParams?.splits, u = n?.some((i) => i.editable === !0) ?? !1, r = typeof e.editable == "boolean" ? e.editable : void 0;
40
- return e._originalEditable = r, n || (e.valueSetter = h), e.editable = (i) => {
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 s = i.data;
44
- if (!s) return u || !!r;
45
- const c = y(s, t);
46
- if (n) {
47
- const p = c != null && typeof c == "object" ? c : null;
48
- return n.some((a) => {
49
- const f = a.field?.split(".")?.pop();
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(r, a.editable, s, v);
56
+ return d(o, c.editable, a, v);
53
57
  });
54
58
  }
55
- const b = c != null && typeof c == "object" && "value" in c ? c : void 0;
56
- return d(r, void 0, s, b);
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
- j as addRowDataEditableCheck
65
+ g as addRowDataEditableCheck,
66
+ j as readColDefEditable
62
67
  };
@@ -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 ie, TooltipContent as se } from "../../../../feedback/tooltip/tooltip.js";
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
- }, Re = ({
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 i = null;
40
+ let s = null;
43
41
  if (t.filterType === "date") {
44
- const s = t, T = u.getColumn(n)?.getColDef()?.headerComponentParams?.datePickerVariant, f = T === "week" || T === "month", X = s.type === "inRange" && f ? "equals" : s.type || "equals";
45
- i = {
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: s.dateFrom || "",
51
- valueTo: s.dateTo || ""
48
+ value: i.dateFrom || "",
49
+ valueTo: i.dateTo || ""
52
50
  };
53
51
  } else if (t.filterType === "text")
54
- i = {
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
- i = {
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
- i = {
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
- (s) => s != null
74
+ (i) => i != null
77
75
  )
78
76
  };
79
77
  else if (t.filterType === "multi") {
80
- const s = t.filterModels?.find((h) => h && h.filterType === "set");
81
- s && (i = {
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: (s.values ?? []).filter(
85
+ value: (i.values ?? []).filter(
88
86
  (h) => h != null
89
87
  )
90
88
  });
91
89
  }
92
- i && e.push(i);
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((i) => {
105
- c.has(i.columnId) || (c.add(i.columnId), n.push(i.columnId));
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((i) => {
109
- i === e ? t.push(...o) : t.push(...l.filter((s) => s.columnId === i));
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 s = t.getColGroupDef();
131
- s && s.headerName && n.unshift(s.headerName), t = t.getParent();
128
+ const i = t.getColGroupDef();
129
+ i && i.headerName && n.unshift(i.headerName), t = t.getParent();
132
130
  }
133
- const i = c?.headerName || e;
134
- return n.push(i), n.join(" > ");
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(ie, { asChild: !0, children: /* @__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(se, { variant: "tertiary", children: d("advancedFilter.allFiltersDisabledTooltip") })
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), i = l?.filter === "agNumberColumnFilter" ? "number" : l?.filter === "agDateColumnFilter" ? "date" : l?.filter === "agMultiColumnFilter" ? "multi" : l?.filter === "agSetColumnFilter" || c?.selectOptions ? "select" : "text", s = c?.selectOptions, h = c?.isMultiSelect, T = c?.dateDisplayFormat || j;
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: i,
218
- selectOptions: s,
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
- Re as AdvancedFilterDialog
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 m } from "../../../../feedback/tooltip/tooltip.js";
4
- import "clsx";
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: r }) }),
10
- /* @__PURE__ */ t(m, { side: o, variant: "tertiary", children: /* @__PURE__ */ t("p", { children: e }) })
11
- ] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children: r });
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
- T as LazyTooltip
12
+ f as LazyTooltip
15
13
  };