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.
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
- package/dist/components/data/ag-grid-react/headers/custom-header.js +56 -56
- package/dist/components/data/ag-grid-react/index.d.ts +2 -1
- package/dist/components/data/ag-grid-react/index.js +307 -291
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +6 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +57 -51
- package/dist/components/flows/iris-chat/iris-chat-composer.js +213 -184
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +23 -10
- package/dist/components/flows/iris-chat/iris-chat.variants.js +4 -4
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/primitives/tabs/tabs.js +64 -51
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +2 -0
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- package/dist/impact-nova.css +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- 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
|
|
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
|
|
5
|
-
import { HeaderInfo as
|
|
6
|
-
import { Checkbox as
|
|
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
|
|
9
|
-
import { useIsHeaderSearchActive as
|
|
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
|
|
12
|
-
import { ColumnHeaderSettingsMenu as
|
|
13
|
-
import { HeaderSearchInput as
|
|
14
|
-
const
|
|
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
|
|
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
|
|
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 } =
|
|
87
|
+
const { isChecked: h, isIndeterminate: d } = me(r);
|
|
88
88
|
return /* @__PURE__ */ e(
|
|
89
|
-
|
|
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
|
-
},
|
|
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:
|
|
120
|
+
selectOptions: G,
|
|
121
|
+
isMultiSelect: _,
|
|
122
122
|
onSelectScrollToBottom: Z,
|
|
123
|
-
onSelectSearchChange:
|
|
124
|
-
onSelectOpen:
|
|
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,
|
|
131
|
-
|
|
132
|
-
const u =
|
|
133
|
-
R(() =>
|
|
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,
|
|
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 =
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
|
|
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 (!(
|
|
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 && (
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
|
|
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:
|
|
162
|
+
className: o
|
|
163
163
|
}
|
|
164
164
|
) });
|
|
165
|
-
return
|
|
166
|
-
|
|
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:
|
|
178
|
+
selectOptions: G,
|
|
179
|
+
isMultiSelect: _,
|
|
180
180
|
onSelectScrollToBottom: Z,
|
|
181
|
-
onSelectSearchChange:
|
|
182
|
-
onSelectOpen:
|
|
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
|
-
|
|
195
|
+
i?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
|
|
196
196
|
),
|
|
197
|
-
"data-selection-column":
|
|
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
|
-
!(
|
|
206
|
+
!(i?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
|
|
207
207
|
a ? "sortable cursor-pointer" : ""
|
|
208
208
|
),
|
|
209
|
-
onClick: a ?
|
|
209
|
+
onClick: a ? F : void 0,
|
|
210
210
|
children: [
|
|
211
|
-
|
|
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:
|
|
217
|
-
|
|
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
|
-
!(
|
|
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:
|
|
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(
|
|
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:
|
|
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 (
|
|
259
|
-
|
|
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
|
-
|
|
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
|
|
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';
|