impact-nova 3.0.0-alpha.18 → 3.0.0-alpha.19

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 (25) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
  2. package/dist/components/data/ag-grid-react/headers/custom-header.js +56 -56
  3. package/dist/components/data/ag-grid-react/index.d.ts +2 -1
  4. package/dist/components/data/ag-grid-react/index.js +307 -291
  5. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  6. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  7. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +6 -2
  8. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +57 -51
  9. package/dist/components/flows/iris-chat/iris-chat-composer.js +213 -184
  10. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
  11. package/dist/components/flows/iris-chat/iris-chat-icons.js +23 -10
  12. package/dist/components/flows/iris-chat/iris-chat.variants.js +4 -4
  13. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  14. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  15. package/dist/components/primitives/tabs/tabs.js +64 -51
  16. package/dist/i18n/defaultMessages.d.ts +2 -0
  17. package/dist/i18n/defaultMessages.js +2 -0
  18. package/dist/i18n/locales/de.js +2 -0
  19. package/dist/i18n/locales/es.js +2 -0
  20. package/dist/i18n/locales/hi.js +2 -0
  21. package/dist/i18n/locales/kn.js +2 -0
  22. package/dist/impact-nova.css +1 -1
  23. package/dist/llms/rules/installation.js +1 -1
  24. package/dist/llms/rules/requirements.js +1 -1
  25. package/package.json +1 -1
@@ -5,6 +5,7 @@ import { Theme } from 'ag-grid-enterprise';
5
5
  import { FiscalPickerProps } from '../../forms/date-picker/date-picker.types';
6
6
  import { FiscalCalendarConfig } from '../../../lib/fiscal-calendar';
7
7
  import { AgGridReactProps } from 'ag-grid-react';
8
+ import { NumericColumnHeaderAlignment } from './numeric-column-header-alignment';
8
9
  /** ColDef extended with Impact Nova runtime metadata set during column processing */
9
10
  export interface ImpactNovaColDef<TData = unknown> extends ColDef<TData> {
10
11
  /** Original column-level editable before addRowDataEditableCheck wraps the callback */
@@ -218,6 +219,11 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
218
219
  * centered overlay — use `loading` only when the grid has no rows yet.
219
220
  */
220
221
  rowLoading?: boolean;
222
+ /**
223
+ * Numeric column header alignment. Cells stay right-aligned via `ag-right-aligned-cell`.
224
+ * Default `right` preserves existing apps (ItemSmart). Pass `left` for label-style headers.
225
+ */
226
+ numericColumnHeaderAlignment?: NumericColumnHeaderAlignment;
221
227
  }
222
228
  /**
223
229
  * Filter operators for advanced filtering.
@@ -1,17 +1,17 @@
1
- import { jsx as e, jsxs as c, Fragment as te } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as c, Fragment as ne } from "react/jsx-runtime";
2
2
  import { useRef as M, useState as L, useEffect as R } from "react";
3
3
  import { cn as g } from "../../../../lib/utils.js";
4
- import { useGridHeader as re } from "./context/grid-header-context.js";
5
- import { HeaderInfo as ne } from "./components/header-info.js";
6
- import { Checkbox as oe } from "../../../forms/checkbox/checkbox.js";
4
+ import { useGridHeader as ie } from "./context/grid-header-context.js";
5
+ import { HeaderInfo as oe } from "./components/header-info.js";
6
+ import { Checkbox as le } from "../../../forms/checkbox/checkbox.js";
7
7
  import { useImpactNovaI18n as T } from "../../../../i18n/use-impact-nova-i18n.js";
8
- import { useAgGridTruncationTooltip as ie } from "../use-ag-grid-truncation-tooltip.js";
9
- import { useIsHeaderSearchActive as le } from "./header-search-active-state.js";
8
+ import { useAgGridTruncationTooltip as se } from "../use-ag-grid-truncation-tooltip.js";
9
+ import { useIsHeaderSearchActive as ae } from "./header-search-active-state.js";
10
10
  import { subscribeGridApiEvent as A } from "../grid-api-event-subscription.js";
11
- import { subscribeColumnIndicatorSync as se } from "../column-indicator-sync-bus.js";
12
- import { ColumnHeaderSettingsMenu as ae } from "./column-menu/column-header-settings-menu.js";
13
- import { HeaderSearchInput as ce } from "./header-search-input.js";
14
- const de = () => /* @__PURE__ */ c(te, { children: [
11
+ import { subscribeColumnIndicatorSync as ce } from "../column-indicator-sync-bus.js";
12
+ import { ColumnHeaderSettingsMenu as de } from "./column-menu/column-header-settings-menu.js";
13
+ import { HeaderSearchInput as he } from "./header-search-input.js";
14
+ const ue = () => /* @__PURE__ */ c(ne, { children: [
15
15
  /* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ c(
16
16
  "svg",
17
17
  {
@@ -55,7 +55,7 @@ const de = () => /* @__PURE__ */ c(te, { children: [
55
55
  }
56
56
  ) })
57
57
  ] });
58
- function he(r) {
58
+ function me(r) {
59
59
  if (r.getGridOption("rowModelType") === "serverSide") {
60
60
  const h = r.getServerSideSelectionState?.();
61
61
  if (!h || !("selectAll" in h))
@@ -66,7 +66,7 @@ function he(r) {
66
66
  const m = r.getSelectedRows().length, a = r.getDisplayedRowCount();
67
67
  return m === 0 ? { isChecked: !1, isIndeterminate: !1 } : m === a && a > 0 ? { isChecked: !0, isIndeterminate: !1 } : { isChecked: !1, isIndeterminate: !0 };
68
68
  }
69
- const ue = ({ api: r }) => {
69
+ const fe = ({ api: r }) => {
70
70
  const { t } = T(), [m, a] = L(0);
71
71
  R(() => {
72
72
  const n = () => {
@@ -84,9 +84,9 @@ const ue = ({ api: r }) => {
84
84
  x(), p();
85
85
  };
86
86
  }, [r]);
87
- const { isChecked: h, isIndeterminate: d } = he(r);
87
+ const { isChecked: h, isIndeterminate: d } = me(r);
88
88
  return /* @__PURE__ */ e(
89
- oe,
89
+ le,
90
90
  {
91
91
  checked: d ? "indeterminate" : h,
92
92
  onCheckedChange: (n) => {
@@ -100,7 +100,7 @@ const ue = ({ api: r }) => {
100
100
  className: "m-0"
101
101
  }
102
102
  );
103
- }, Ae = (r) => {
103
+ }, Re = (r) => {
104
104
  const {
105
105
  displayName: t,
106
106
  setTooltip: m,
@@ -117,23 +117,23 @@ const ue = ({ api: r }) => {
117
117
  isSearchable: P = !1,
118
118
  advanceSearchEnabled: B = !1,
119
119
  // Select params
120
- selectOptions: _,
121
- isMultiSelect: G,
120
+ selectOptions: G,
121
+ isMultiSelect: _,
122
122
  onSelectScrollToBottom: Z,
123
- onSelectSearchChange: E,
124
- onSelectOpen: O,
123
+ onSelectSearchChange: O,
124
+ onSelectOpen: E,
125
125
  isLoadingSelect: j,
126
126
  // Pattern parsing options
127
127
  enableSpaceSplitting: z,
128
128
  enableBooleanParsing: U,
129
129
  enableDateParsing: K
130
- } = r, k = M(null);
131
- ie(m, t ?? "", k, "line-clamp", "leaf");
132
- const u = re(), { t: w } = T(), o = l.getColDef(), f = l.getColId(), [me, q] = L(0);
133
- R(() => se(() => {
130
+ } = r, H = M(null);
131
+ se(m, t ?? "", H, "line-clamp", "leaf");
132
+ const u = ie(), { t: w } = T(), i = l.getColDef(), f = l.getColId(), [ge, q] = L(0);
133
+ R(() => ce(() => {
134
134
  q((s) => s + 1);
135
135
  }), []);
136
- const b = l.isFilterActive(), J = l.getSort(), I = l.getSortIndex(), Q = !!J && I != null && I > 0, v = (o?.filter || "agTextColumnFilter") === "agNumberColumnFilter" || (Array.isArray(o?.type) ? o.type.some((i) => i === "number" || i === "numericColumn") : o?.type === "number" || o?.type === "numericColumn"), H = le(u?.gridScopeId ?? "", f), N = M(null), F = [
136
+ const b = l.isFilterActive(), J = l.getSort(), I = l.getSortIndex(), Q = !!J && I != null && I > 0, W = (i?.filter || "agTextColumnFilter") === "agNumberColumnFilter" || (Array.isArray(i?.type) ? i.type.some((o) => o === "number" || o === "numericColumn") : i?.type === "number" || i?.type === "numericColumn"), X = n.getGridOption("context"), v = W && (X?.numericColumnHeaderAlignment ?? "right") === "right", k = ae(u?.gridScopeId ?? "", f), N = M(null), y = [
137
137
  "agTextColumnFilter",
138
138
  "agNumberColumnFilter",
139
139
  "agDateColumnFilter",
@@ -143,27 +143,27 @@ const ue = ({ api: r }) => {
143
143
  // Defaults to text/set
144
144
  void 0
145
145
  // Defaults to text
146
- ], S = o?.filter, W = S === !1 || S == null || S === "agGroupColumnFilter", X = !F.includes(S) && !W, y = (i) => {
147
- i.stopPropagation(), a && d && d(i.shiftKey);
148
- }, Y = (i) => {
149
- i.stopPropagation(), C && C(r);
146
+ ], S = i?.filter, Y = S === !1 || S == null || S === "agGroupColumnFilter", $ = !y.includes(S) && !Y, F = (o) => {
147
+ o.stopPropagation(), a && d && d(o.shiftKey);
148
+ }, ee = (o) => {
149
+ o.stopPropagation(), C && C(r);
150
150
  const s = l.getColDef().filter;
151
- if (!(F.includes(s) || s === !1 || s == null || s === "agGroupColumnFilter")) {
151
+ if (!(y.includes(s) || s === !1 || s == null || s === "agGroupColumnFilter")) {
152
152
  n.showColumnFilter ? n.showColumnFilter(f) : n.showColumnMenu(f);
153
153
  return;
154
154
  }
155
- (s === !1 || s == null || s === "agGroupColumnFilter") && (l.getColDef().filter = "agTextColumnFilter"), u && (H ? u.closeSearch() : u.openSearch(f));
156
- }, $ = (i) => {
157
- i.preventDefault(), i.stopPropagation(), N.current?.openMenu();
158
- }, ee = (i) => /* @__PURE__ */ e("span", { onClick: (s) => s.stopPropagation(), children: /* @__PURE__ */ e(
159
- ne,
155
+ (s === !1 || s == null || s === "agGroupColumnFilter") && (l.getColDef().filter = "agTextColumnFilter"), u && (k ? u.closeSearch() : u.openSearch(f));
156
+ }, te = (o) => {
157
+ o.preventDefault(), o.stopPropagation(), N.current?.openMenu();
158
+ }, re = (o) => /* @__PURE__ */ e("span", { onClick: (s) => s.stopPropagation(), children: /* @__PURE__ */ e(
159
+ oe,
160
160
  {
161
161
  ...r,
162
- className: i
162
+ className: o
163
163
  }
164
164
  ) });
165
- return H && u && !X ? /* @__PURE__ */ e(
166
- ce,
165
+ return k && u && !$ ? /* @__PURE__ */ e(
166
+ he,
167
167
  {
168
168
  column: l,
169
169
  api: n,
@@ -175,11 +175,11 @@ const ue = ({ api: r }) => {
175
175
  onAdvanceSearchClick: V,
176
176
  toggleAdvanceSearch: D,
177
177
  advanceSearchEnabled: B,
178
- selectOptions: _,
179
- isMultiSelect: G,
178
+ selectOptions: G,
179
+ isMultiSelect: _,
180
180
  onSelectScrollToBottom: Z,
181
- onSelectSearchChange: E,
182
- onSelectOpen: O,
181
+ onSelectSearchChange: O,
182
+ onSelectOpen: E,
183
183
  isLoadingSelect: j,
184
184
  enableSpaceSplitting: z,
185
185
  enableBooleanParsing: U,
@@ -192,10 +192,10 @@ const ue = ({ api: r }) => {
192
192
  "ag-header-cell-label flex items-center w-full group min-w-0 h-full",
193
193
  v ? "flex-row-reverse" : "flex-row",
194
194
  // Center the content area if it's a selection column
195
- o?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
195
+ i?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
196
196
  ),
197
- "data-selection-column": o?.headerCheckboxSelection && (!t || t.trim() === "") ? "true" : void 0,
198
- onContextMenu: $,
197
+ "data-selection-column": i?.headerCheckboxSelection && (!t || t.trim() === "") ? "true" : void 0,
198
+ onContextMenu: te,
199
199
  children: [
200
200
  /* @__PURE__ */ c(
201
201
  "div",
@@ -203,25 +203,25 @@ const ue = ({ api: r }) => {
203
203
  className: g(
204
204
  "ag-header-cell-text relative group flex min-w-0 items-center",
205
205
  v ? "flex-row-reverse" : "flex-row",
206
- !(o?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
206
+ !(i?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
207
207
  a ? "sortable cursor-pointer" : ""
208
208
  ),
209
- onClick: a ? y : void 0,
209
+ onClick: a ? F : void 0,
210
210
  children: [
211
- o?.headerCheckboxSelection && /* @__PURE__ */ e(ue, { api: n }),
211
+ i?.headerCheckboxSelection && /* @__PURE__ */ e(fe, { api: n }),
212
212
  t && t.trim() !== "" && t !== w("gridHeader.selection") && /* @__PURE__ */ c("div", { className: g(
213
213
  "ag-grid-header-label-cluster",
214
214
  v && "flex-row-reverse"
215
215
  ), children: [
216
- /* @__PURE__ */ e("span", { ref: k, className: "ag-grid-header-label-text", children: t }),
217
- ee(
216
+ /* @__PURE__ */ e("span", { ref: H, className: "ag-grid-header-label-text", children: t }),
217
+ re(
218
218
  "shrink-0 text-content-tertiary hover:text-brand-variant-hover transition-colors"
219
219
  )
220
220
  ] })
221
221
  ]
222
222
  }
223
223
  ),
224
- !(o?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ c(
224
+ !(i?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ c(
225
225
  "div",
226
226
  {
227
227
  className: g(
@@ -233,10 +233,10 @@ const ue = ({ api: r }) => {
233
233
  "div",
234
234
  {
235
235
  className: "ag-sort-indicator-container cursor-pointer flex items-center",
236
- onClick: y,
236
+ onClick: F,
237
237
  children: [
238
238
  Q && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-content-tertiary mr-0.5", children: I + 1 }),
239
- /* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e(de, {}) })
239
+ /* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e(ue, {}) })
240
240
  ]
241
241
  }
242
242
  ),
@@ -247,7 +247,7 @@ const ue = ({ api: r }) => {
247
247
  "relative cursor-pointer flex items-center shrink-0 duration-200 text-content-tertiary hover:text-brand-variant-hover transition-colors",
248
248
  b ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden group-hover:opacity-100 group-hover:w-auto"
249
249
  ),
250
- onClick: Y,
250
+ onClick: ee,
251
251
  title: w(b ? "gridHeader.activeFilter" : "gridHeader.search"),
252
252
  children: [
253
253
  /* @__PURE__ */ e("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z", fill: "currentColor" }) }),
@@ -255,8 +255,8 @@ const ue = ({ api: r }) => {
255
255
  ]
256
256
  }
257
257
  ),
258
- h && !("suppressHeaderMenuButton" in (o ?? {}) && o.suppressHeaderMenuButton) && /* @__PURE__ */ e(
259
- ae,
258
+ h && !("suppressHeaderMenuButton" in (i ?? {}) && i.suppressHeaderMenuButton) && /* @__PURE__ */ e(
259
+ de,
260
260
  {
261
261
  ref: N,
262
262
  columnId: f,
@@ -272,5 +272,5 @@ const ue = ({ api: r }) => {
272
272
  );
273
273
  };
274
274
  export {
275
- Ae as CustomHeader
275
+ Re as CustomHeader
276
276
  };
@@ -1,7 +1,8 @@
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, listRowGradient, listDragPreview, listHeader, onRowReorder, onRowMoveBeyondEdge, isRowDragDisabled, getRowDragHandleLabel, canDropRow, rowLoading, className, ...restProps }: AgGridWrapperProps<TData> & {
4
+ export { normalizeColumnDefsNumericHeaderAlignment, type NumericColumnHeaderAlignment, } from './numeric-column-header-alignment';
5
+ 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, listRowGradient, listDragPreview, listHeader, onRowReorder, onRowMoveBeyondEdge, isRowDragDisabled, getRowDragHandleLabel, canDropRow, rowLoading, numericColumnHeaderAlignment, className, ...restProps }: AgGridWrapperProps<TData> & {
5
6
  className?: string;
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
8
  export { useAgGridTruncationTooltip } from './use-ag-grid-truncation-tooltip';