impact-nova 1.5.14 → 1.6.0
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/ui/accordion.d.ts +4 -1
- package/dist/components/ui/accordion.js +28 -22
- package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +11 -11
- package/dist/components/ui/ag-grid-react/cell-renderers/checkbox-display-renderer.js +12 -12
- package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +30 -30
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/percent-progress-cell-editor.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +16 -16
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +17 -17
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +11 -11
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -2
- package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +11 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +8 -8
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +6 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.d.ts +1 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.js +14 -14
- package/dist/components/ui/ag-grid-react/cell-renderers/switch-display-renderer.js +18 -18
- package/dist/components/ui/ag-grid-react/cell-renderers/textarea-display-renderer.js +6 -6
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +14 -14
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +35 -35
- package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +49 -49
- package/dist/components/ui/ag-grid-react/headers/components/header-info.js +29 -29
- package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +9 -9
- package/dist/components/ui/ag-grid-react/headers/components/section-renderers.js +20 -20
- package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +10 -10
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +76 -76
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +118 -118
- package/dist/components/ui/ag-grid-react/index.js +121 -102
- package/dist/components/ui/alert-dialog.js +6 -6
- package/dist/components/ui/alert.d.ts +4 -3
- package/dist/components/ui/alert.js +182 -64
- package/dist/components/ui/avatar.js +5 -5
- package/dist/components/ui/badge.d.ts +7 -2
- package/dist/components/ui/badge.js +105 -32
- package/dist/components/ui/breadcrumb.js +26 -21
- package/dist/components/ui/button-group.d.ts +7 -0
- package/dist/components/ui/button-group.js +116 -91
- package/dist/components/ui/button-variants.d.ts +7 -2
- package/dist/components/ui/button-variants.js +31 -16
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +10 -10
- package/dist/components/ui/calendar.js +185 -184
- package/dist/components/ui/card.js +24 -24
- package/dist/components/ui/chart/chart.js +27 -27
- package/dist/components/ui/chart/chart.utils.js +50 -50
- package/dist/components/ui/checkbox.js +22 -22
- package/dist/components/ui/chips.d.ts +19 -3
- package/dist/components/ui/chips.js +140 -41
- package/dist/components/ui/command-palette/command-palette-layout.d.ts +28 -0
- package/dist/components/ui/command-palette/command-palette-layout.js +59 -0
- package/dist/components/ui/command-palette/command-palette.js +254 -264
- package/dist/components/ui/command-palette/index.d.ts +1 -1
- package/dist/components/ui/command-palette/index.js +42 -41
- package/dist/components/ui/command-palette/kbd.js +18 -18
- package/dist/components/ui/command-palette/shortcut-settings.d.ts +3 -3
- package/dist/components/ui/command-palette/shortcut-settings.js +105 -111
- package/dist/components/ui/command-palette/utils.d.ts +6 -1
- package/dist/components/ui/command-palette/utils.js +81 -74
- package/dist/components/ui/data-table/data-table-column-list.js +31 -31
- package/dist/components/ui/data-table/data-table-constants.d.ts +6 -0
- package/dist/components/ui/data-table/data-table-constants.js +4 -0
- package/dist/components/ui/data-table/data-table-context.d.ts +4 -0
- package/dist/components/ui/data-table/data-table-format-options.js +35 -35
- package/dist/components/ui/data-table/data-table-sheet.d.ts +4 -4
- package/dist/components/ui/data-table/data-table-sheet.js +91 -58
- package/dist/components/ui/data-table/data-table-view-options.js +29 -29
- package/dist/components/ui/data-table/data-table.js +84 -52
- package/dist/components/ui/data-table/index.d.ts +1 -0
- package/dist/components/ui/data-table/index.js +15 -13
- package/dist/components/ui/date-picker/date-picker.js +35 -35
- package/dist/components/ui/date-picker/date-range-picker.js +166 -164
- package/dist/components/ui/date-picker/month-picker.js +14 -14
- package/dist/components/ui/date-picker/month-range-picker.js +198 -189
- package/dist/components/ui/date-picker/multi-date-picker.js +14 -14
- package/dist/components/ui/date-picker/multi-month-picker.js +1 -1
- package/dist/components/ui/date-picker/multi-week-picker.js +1 -1
- package/dist/components/ui/date-picker/week-picker.js +2 -2
- package/dist/components/ui/date-picker/week-range-picker.js +164 -162
- package/dist/components/ui/dialog.js +25 -28
- package/dist/components/ui/drawer.js +40 -40
- package/dist/components/ui/dropdown-menu.js +72 -72
- package/dist/components/ui/empty-container.js +73 -69
- package/dist/components/ui/file-upload.js +137 -135
- package/dist/components/ui/filter-panel/filter-panel.d.ts +2 -2
- package/dist/components/ui/filter-panel/filter-panel.js +175 -97
- package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
- package/dist/components/ui/filter-strip/filter-strip.js +63 -50
- package/dist/components/ui/filter-strip/filter-summary.d.ts +4 -1
- package/dist/components/ui/filter-strip/filter-summary.js +230 -146
- package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
- package/dist/components/ui/header.d.ts +7 -3
- package/dist/components/ui/header.js +87 -79
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +44 -44
- package/dist/components/ui/hover-card.js +10 -10
- package/dist/components/ui/input.js +79 -70
- package/dist/components/ui/loader.js +16 -16
- package/dist/components/ui/nested-list/components/NestedListCategoryFilters.js +16 -16
- package/dist/components/ui/nested-list/components/NestedListHeader.js +27 -27
- package/dist/components/ui/nested-list/components/SortableItem.js +58 -58
- package/dist/components/ui/notification-panel/notification-item.js +32 -32
- package/dist/components/ui/notification-panel/notification-list.js +24 -24
- package/dist/components/ui/notification-panel/notification-panel.js +26 -26
- package/dist/components/ui/popover.js +22 -22
- package/dist/components/ui/progress.js +34 -34
- package/dist/components/ui/prompt.js +48 -48
- package/dist/components/ui/radio-group.js +63 -54
- package/dist/components/ui/select/components/LabelWithSequence.js +6 -6
- package/dist/components/ui/select/components/Submenu.js +33 -33
- package/dist/components/ui/select/select.js +425 -376
- package/dist/components/ui/sheet.js +88 -66
- package/dist/components/ui/sidebar.js +342 -296
- package/dist/components/ui/skeleton.js +6 -6
- package/dist/components/ui/slider.js +17 -17
- package/dist/components/ui/statistics-card.d.ts +86 -0
- package/dist/components/ui/statistics-card.hooks.d.ts +150 -0
- package/dist/components/ui/statistics-card.hooks.js +100 -0
- package/dist/components/ui/statistics-card.js +259 -0
- package/dist/components/ui/stepper.js +51 -51
- package/dist/components/ui/switch.js +7 -7
- package/dist/components/ui/tabs.js +70 -70
- package/dist/components/ui/tag-group.d.ts +1 -0
- package/dist/components/ui/tag-group.js +14 -13
- package/dist/components/ui/tag.js +43 -43
- package/dist/components/ui/textarea.js +86 -58
- package/dist/components/ui/toast.js +39 -39
- package/dist/components/ui/tooltip.js +23 -23
- package/dist/components/ui/types/date-picker.types.d.ts +1 -0
- package/dist/components/ui/types/filter-panel.types.d.ts +3 -0
- package/dist/components/ui/types/filter-strip.types.d.ts +14 -0
- package/dist/components/ui/types/horizontal-scroller.types.d.ts +1 -1
- package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
- package/dist/i18n/defaultMessages.d.ts +8 -0
- package/dist/i18n/defaultMessages.js +15 -9
- package/dist/i18n/locales/de.js +7 -1
- package/dist/i18n/locales/es.js +7 -1
- package/dist/i18n/locales/hi.js +7 -1
- package/dist/i18n/locales/kn.js +7 -1
- package/dist/icons/assets/bulk-edit.svg.js +5 -0
- package/dist/icons/assets/clock.svg.js +5 -0
- package/dist/icons/assets/statistics.svg.js +5 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.js +254 -206
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +361 -347
- package/package.json +3 -2
- package/tailwind.config.js +259 -152
- /package/dist/icons/assets/{PivotMode.svg.js → pivotMode.svg.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as e, jsxs as h, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as e, jsxs as h, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A, useEffect as J } from "react";
|
|
3
|
+
import { cn as g } from "../../../../lib/utils.js";
|
|
4
4
|
import { useGridHeader as Q } from "./context/grid-header-context.js";
|
|
5
5
|
import { HeaderInfo as W } from "./components/header-info.js";
|
|
6
6
|
import { Checkbox as X } from "../../checkbox.js";
|
|
7
7
|
import { HeaderSearchInput as Y } from "./header-search-input.js";
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
const $ = () => /* @__PURE__ */ h(
|
|
10
|
-
/* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-
|
|
8
|
+
import { useImpactNovaI18n as T } from "../../../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
+
const $ = () => /* @__PURE__ */ h(V, { children: [
|
|
10
|
+
/* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ h(
|
|
11
11
|
"svg",
|
|
12
12
|
{
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -22,7 +22,7 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
) }),
|
|
25
|
-
/* @__PURE__ */ e("span", { className: "sort-desc-icon inline-flex transition-colors text-
|
|
25
|
+
/* @__PURE__ */ e("span", { className: "sort-desc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ h(
|
|
26
26
|
"svg",
|
|
27
27
|
{
|
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -37,7 +37,7 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
39
|
) }),
|
|
40
|
-
/* @__PURE__ */ e("span", { className: "sort-none-icon inline-flex transition-colors text-
|
|
40
|
+
/* @__PURE__ */ e("span", { className: "sort-none-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ e(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
43
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -50,40 +50,40 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
50
50
|
}
|
|
51
51
|
) })
|
|
52
52
|
] }), ee = ({ api: r }) => {
|
|
53
|
-
const { t } =
|
|
53
|
+
const { t } = T(), [C, H] = A(!1), [S, s] = A(!1);
|
|
54
54
|
J(() => {
|
|
55
55
|
if (!r) return;
|
|
56
|
-
const u = r.getGridOption?.("rowModelType") === "serverSide",
|
|
57
|
-
let
|
|
56
|
+
const u = r.getGridOption?.("rowModelType") === "serverSide", p = () => {
|
|
57
|
+
let l = !1, i = !1;
|
|
58
58
|
if (u) {
|
|
59
59
|
const f = r.getServerSideSelectionState?.();
|
|
60
60
|
if (f) {
|
|
61
|
-
const { selectAll:
|
|
62
|
-
|
|
61
|
+
const { selectAll: c, toggledNodes: b } = f, x = b && b.length > 0;
|
|
62
|
+
c && !x ? (l = !0, i = !1) : c && x || !c && x ? (l = !1, i = !0) : (l = !1, i = !1);
|
|
63
63
|
}
|
|
64
64
|
} else {
|
|
65
|
-
const f = r.getSelectedRows().length,
|
|
66
|
-
f === 0 ? (
|
|
65
|
+
const f = r.getSelectedRows().length, c = r.getDisplayedRowCount();
|
|
66
|
+
f === 0 ? (l = !1, i = !1) : f === c && c > 0 ? (l = !0, i = !1) : (l = !1, i = !0);
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
H(l), s(i);
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
p();
|
|
71
71
|
const m = () => {
|
|
72
|
-
|
|
72
|
+
p();
|
|
73
73
|
};
|
|
74
74
|
return r.addEventListener("selectionChanged", m), r.addEventListener("modelUpdated", m), () => {
|
|
75
75
|
r.removeEventListener("selectionChanged", m), r.removeEventListener("modelUpdated", m);
|
|
76
76
|
};
|
|
77
77
|
}, [r]);
|
|
78
|
-
const
|
|
78
|
+
const a = (u) => {
|
|
79
79
|
u === !0 ? r.selectAll() : r.deselectAll();
|
|
80
80
|
};
|
|
81
|
-
return /* @__PURE__ */ e(
|
|
81
|
+
return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
|
|
82
82
|
X,
|
|
83
83
|
{
|
|
84
|
-
checked: S ? "indeterminate" :
|
|
84
|
+
checked: S ? "indeterminate" : C,
|
|
85
85
|
onCheckedChange: (u) => {
|
|
86
|
-
|
|
86
|
+
a(u);
|
|
87
87
|
},
|
|
88
88
|
"aria-label": t("aria.toggleSelection"),
|
|
89
89
|
className: "m-0"
|
|
@@ -92,22 +92,22 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
92
92
|
}, de = (r) => {
|
|
93
93
|
const {
|
|
94
94
|
displayName: t,
|
|
95
|
-
enableSorting:
|
|
96
|
-
enableMenu:
|
|
95
|
+
enableSorting: C,
|
|
96
|
+
enableMenu: H,
|
|
97
97
|
progressSort: S,
|
|
98
|
-
column:
|
|
99
|
-
api:
|
|
98
|
+
column: s,
|
|
99
|
+
api: a,
|
|
100
100
|
handleInlineSearch: u,
|
|
101
|
-
handleClearSearchInline:
|
|
101
|
+
handleClearSearchInline: p,
|
|
102
102
|
onColumnSearchClick: m,
|
|
103
|
-
onAdvanceSearchClick:
|
|
103
|
+
onAdvanceSearchClick: l,
|
|
104
104
|
toggleAdvanceSearch: i,
|
|
105
105
|
isSearchable: f = !1,
|
|
106
|
-
advanceSearchEnabled:
|
|
106
|
+
advanceSearchEnabled: c = !1,
|
|
107
107
|
// Select params
|
|
108
108
|
selectOptions: b,
|
|
109
109
|
isMultiSelect: x,
|
|
110
|
-
onSelectScrollToBottom:
|
|
110
|
+
onSelectScrollToBottom: D,
|
|
111
111
|
onSelectSearchChange: P,
|
|
112
112
|
onSelectOpen: _,
|
|
113
113
|
isLoadingSelect: Z,
|
|
@@ -115,9 +115,9 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
115
115
|
enableSpaceSplitting: B,
|
|
116
116
|
enableBooleanParsing: E,
|
|
117
117
|
enableDateParsing: R
|
|
118
|
-
} = r, d = Q(), { t:
|
|
119
|
-
I === "agDateColumnFilter" || (Array.isArray(
|
|
120
|
-
const L =
|
|
118
|
+
} = r, d = Q(), { t: N } = T(), n = s.getColDef(), v = s.getColId(), k = s.isFilterActive(), j = s.getSort(), y = s.getSortIndex(), O = !!j, z = y != null && (y > 0 || a.getColumnState().filter((o) => o.sort).length > 1), G = O && z, I = n?.filter || "agTextColumnFilter", w = I === "agNumberColumnFilter" || (Array.isArray(n?.type) ? n.type.some((o) => o === "number" || o === "numericColumn") : n?.type === "number" || n?.type === "numericColumn");
|
|
119
|
+
I === "agDateColumnFilter" || (Array.isArray(n?.type) ? n.type.includes("dateColumn") : n?.type);
|
|
120
|
+
const L = a.getGridOption("context")?.activeSearchColumnId === v, M = ![
|
|
121
121
|
"agTextColumnFilter",
|
|
122
122
|
"agNumberColumnFilter",
|
|
123
123
|
"agDateColumnFilter",
|
|
@@ -127,35 +127,35 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
127
127
|
// Defaults to text/set
|
|
128
128
|
void 0
|
|
129
129
|
// Defaults to text
|
|
130
|
-
].includes(
|
|
131
|
-
|
|
132
|
-
}, U = (
|
|
133
|
-
if (
|
|
134
|
-
|
|
130
|
+
].includes(n?.filter), F = (o) => {
|
|
131
|
+
o.stopPropagation(), C && S && S(o.shiftKey);
|
|
132
|
+
}, U = (o) => {
|
|
133
|
+
if (o.stopPropagation(), m && m(r), M) {
|
|
134
|
+
a.showColumnFilter ? a.showColumnFilter(v) : a.showColumnMenu(v);
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
|
-
d && (L ? d.closeSearch() : d.openSearch(
|
|
138
|
-
}, K = (
|
|
137
|
+
d && (L ? d.closeSearch() : d.openSearch(v));
|
|
138
|
+
}, K = (o) => /* @__PURE__ */ e("span", { onClick: (q) => q.stopPropagation(), children: /* @__PURE__ */ e(
|
|
139
139
|
W,
|
|
140
140
|
{
|
|
141
141
|
...r,
|
|
142
|
-
className:
|
|
142
|
+
className: o
|
|
143
143
|
}
|
|
144
144
|
) });
|
|
145
145
|
return L && d && !M ? /* @__PURE__ */ e(
|
|
146
146
|
Y,
|
|
147
147
|
{
|
|
148
|
-
column:
|
|
149
|
-
api:
|
|
148
|
+
column: s,
|
|
149
|
+
api: a,
|
|
150
150
|
onClose: () => d.closeSearch(),
|
|
151
151
|
handleInlineSearch: u,
|
|
152
|
-
handleClearSearchInline:
|
|
153
|
-
onAdvanceSearchClick:
|
|
152
|
+
handleClearSearchInline: p ? () => p(r) : void 0,
|
|
153
|
+
onAdvanceSearchClick: l,
|
|
154
154
|
toggleAdvanceSearch: i,
|
|
155
|
-
advanceSearchEnabled:
|
|
155
|
+
advanceSearchEnabled: c,
|
|
156
156
|
selectOptions: b,
|
|
157
157
|
isMultiSelect: x,
|
|
158
|
-
onSelectScrollToBottom:
|
|
158
|
+
onSelectScrollToBottom: D,
|
|
159
159
|
onSelectSearchChange: P,
|
|
160
160
|
onSelectOpen: _,
|
|
161
161
|
isLoadingSelect: Z,
|
|
@@ -166,55 +166,55 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
166
166
|
) : /* @__PURE__ */ h(
|
|
167
167
|
"div",
|
|
168
168
|
{
|
|
169
|
-
className:
|
|
169
|
+
className: g(
|
|
170
170
|
"ag-header-cell-label flex items-center w-full group min-w-0 h-full",
|
|
171
171
|
w ? "flex-row-reverse" : "flex-row",
|
|
172
172
|
// Center the content area if it's a selection column
|
|
173
|
-
|
|
173
|
+
n?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
|
|
174
174
|
),
|
|
175
|
-
"data-selection-column":
|
|
175
|
+
"data-selection-column": n?.headerCheckboxSelection && (!t || t.trim() === "") ? "true" : void 0,
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ e(
|
|
178
178
|
"div",
|
|
179
179
|
{
|
|
180
|
-
className:
|
|
180
|
+
className: g(
|
|
181
181
|
"ag-header-cell-text relative group flex items-center min-w-0 h-full",
|
|
182
182
|
// Remove flex-1 if we are centering via parent's justify-center
|
|
183
|
-
!(
|
|
183
|
+
!(n?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
|
|
184
184
|
w ? "flex-row-reverse" : "flex-row",
|
|
185
|
-
|
|
185
|
+
C ? "sortable cursor-pointer" : ""
|
|
186
186
|
),
|
|
187
|
-
onClick:
|
|
188
|
-
children: /* @__PURE__ */ h("div", { className:
|
|
187
|
+
onClick: C ? F : void 0,
|
|
188
|
+
children: /* @__PURE__ */ h("div", { className: g(
|
|
189
189
|
"flex items-center min-w-0 h-full",
|
|
190
190
|
w ? "flex-row-reverse" : "flex-row",
|
|
191
191
|
// If it's a checkbox-only header, ensure it shrinks to content for centering
|
|
192
|
-
|
|
192
|
+
n?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : "gap-1 flex-1"
|
|
193
193
|
), children: [
|
|
194
|
-
|
|
195
|
-
t && t.trim() !== "" && /* @__PURE__ */ e("span", { className: "block truncate", children: t !==
|
|
196
|
-
t && t.trim() !== "" && K(
|
|
197
|
-
"text-
|
|
194
|
+
n?.headerCheckboxSelection && /* @__PURE__ */ e(ee, { api: a }),
|
|
195
|
+
t && t.trim() !== "" && /* @__PURE__ */ e("span", { className: "block truncate", children: t !== N("gridHeader.selection") && t }),
|
|
196
|
+
t && t.trim() !== "" && K(g(
|
|
197
|
+
"text-content-tertiary hover:text-brand-variant-hover transition-colors",
|
|
198
198
|
w ? "mr-1" : "ml-1"
|
|
199
199
|
))
|
|
200
200
|
] })
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
!(
|
|
203
|
+
!(n?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ h(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: g(
|
|
207
207
|
"flex items-center shrink-0 group gap-1",
|
|
208
208
|
w ? "flex-row-reverse" : "flex-row"
|
|
209
209
|
),
|
|
210
210
|
children: [
|
|
211
|
-
|
|
211
|
+
C && /* @__PURE__ */ h(
|
|
212
212
|
"div",
|
|
213
213
|
{
|
|
214
214
|
className: "ag-sort-indicator-container cursor-pointer flex items-center",
|
|
215
|
-
onClick:
|
|
215
|
+
onClick: F,
|
|
216
216
|
children: [
|
|
217
|
-
G && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-
|
|
217
|
+
G && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-content-tertiary mr-0.5", children: y + 1 }),
|
|
218
218
|
/* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e($, {}) })
|
|
219
219
|
]
|
|
220
220
|
}
|
|
@@ -222,27 +222,27 @@ const $ = () => /* @__PURE__ */ h(A, { children: [
|
|
|
222
222
|
f && /* @__PURE__ */ h(
|
|
223
223
|
"span",
|
|
224
224
|
{
|
|
225
|
-
className:
|
|
226
|
-
"relative cursor-pointer flex items-center shrink-0 duration-200 text-
|
|
227
|
-
|
|
225
|
+
className: g(
|
|
226
|
+
"relative cursor-pointer flex items-center shrink-0 duration-200 text-content-tertiary hover:text-brand-variant-hover transition-colors",
|
|
227
|
+
k ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden group-hover:opacity-100 group-hover:w-auto"
|
|
228
228
|
),
|
|
229
229
|
onClick: U,
|
|
230
|
-
title: k
|
|
230
|
+
title: N(k ? "gridHeader.activeFilter" : "gridHeader.search"),
|
|
231
231
|
children: [
|
|
232
232
|
/* @__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" }) }),
|
|
233
|
-
|
|
233
|
+
k && /* @__PURE__ */ e("span", { className: "absolute -top-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border-2 bg-brand z-10" })
|
|
234
234
|
]
|
|
235
235
|
}
|
|
236
236
|
),
|
|
237
|
-
|
|
237
|
+
H && !n?.suppressHeaderMenuButton && /* @__PURE__ */ e("div", { className: "custom-ag-header-icons relative", children: /* @__PURE__ */ e(
|
|
238
238
|
"button",
|
|
239
239
|
{
|
|
240
|
-
className:
|
|
241
|
-
"custom-ag-menu-icon-button cursor-pointer flex items-center shrink-0 overflow-hidden transition-colors duration-200 outline-none focus:outline-none focus:ring-0 text-
|
|
242
|
-
d?.activeMenuColumnId ===
|
|
240
|
+
className: g(
|
|
241
|
+
"custom-ag-menu-icon-button cursor-pointer flex items-center shrink-0 overflow-hidden transition-colors duration-200 outline-none focus:outline-none focus:ring-0 text-content-tertiary hover:text-brand-variant-hover",
|
|
242
|
+
d?.activeMenuColumnId === v ? "opacity-100 w-auto text-brand-variant-hover" : "w-0 opacity-0 group-hover:w-auto group-hover:opacity-100"
|
|
243
243
|
),
|
|
244
|
-
onClick: (
|
|
245
|
-
|
|
244
|
+
onClick: (o) => {
|
|
245
|
+
o.stopPropagation(), d && d.openMenu(v, o.currentTarget);
|
|
246
246
|
},
|
|
247
247
|
children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ e("path", { d: "M14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18ZM14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12ZM14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6Z", fill: "currentColor" }) })
|
|
248
248
|
}
|