impact-nova 1.5.15 → 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 -33
- package/dist/components/ui/breadcrumb.js +2 -2
- 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 +182 -182
- 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.js +78 -78
- package/dist/components/ui/command-palette/kbd.js +18 -18
- package/dist/components/ui/command-palette/shortcut-settings.js +51 -51
- 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 +75 -54
- 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 +24 -24
- package/dist/components/ui/drawer.js +40 -40
- package/dist/components/ui/dropdown-menu.js +72 -72
- package/dist/components/ui/empty-container.js +10 -13
- package/dist/components/ui/file-upload.js +137 -135
- package/dist/components/ui/filter-panel/filter-panel.js +77 -77
- 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 +231 -145
- package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
- package/dist/components/ui/header.js +66 -60
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +43 -43
- 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 +429 -376
- package/dist/components/ui/sheet.js +88 -66
- package/dist/components/ui/sidebar.js +149 -146
- 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-strip.types.d.ts +14 -0
- package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
- package/dist/i18n/defaultMessages.d.ts +7 -0
- package/dist/i18n/defaultMessages.js +14 -9
- package/dist/i18n/locales/de.js +6 -1
- package/dist/i18n/locales/es.js +6 -1
- package/dist/i18n/locales/hi.js +6 -1
- package/dist/i18n/locales/kn.js +6 -1
- package/dist/icons/assets/bulk-edit.svg.js +5 -0
- package/dist/icons/assets/statistics.svg.js +5 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +263 -217
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +364 -351
- package/package.json +3 -2
- package/tailwind.config.js +246 -152
- /package/dist/icons/assets/{PivotMode.svg.js → pivotMode.svg.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { applyValueFormatter as F } from "./cell-renderer-utils.js";
|
|
3
3
|
const w = (h) => {
|
|
4
|
-
const { valueFormatted: l, value: e, placeholder:
|
|
4
|
+
const { valueFormatted: l, value: e, placeholder: v, disabled: d, colDef: s, className: y, data: t, valueFormatter: g } = h, c = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, u = t && typeof t == "object" && "rowMetadata" in t ? t.rowMetadata?._isDisabled : void 0;
|
|
5
5
|
let a = !1;
|
|
6
|
-
if (!
|
|
6
|
+
if (!d) {
|
|
7
7
|
const o = s?._originalEditable;
|
|
8
8
|
s?.editable === !1 ? a = !1 : c === !1 ? a = !0 : c === !0 ? a = !1 : u === !1 ? a = !0 : u === !0 ? a = !1 : a = o === !0 || s?.editable === !0;
|
|
9
9
|
}
|
|
@@ -12,24 +12,24 @@ const w = (h) => {
|
|
|
12
12
|
if (l != null && l !== "Invalid Number" && l !== "")
|
|
13
13
|
i = l;
|
|
14
14
|
else if (m) {
|
|
15
|
-
const o = e.cellMetadata?.valueFormatter, x = t && typeof t == "object" && "rowMetadata" in t ? t.rowMetadata?.valueFormatter : void 0, b = o ?? x ??
|
|
15
|
+
const o = e.cellMetadata?.valueFormatter, x = t && typeof t == "object" && "rowMetadata" in t ? t.rowMetadata?.valueFormatter : void 0, b = o ?? x ?? g;
|
|
16
16
|
i = b ? F(b, r) : r;
|
|
17
17
|
} else
|
|
18
18
|
i = l ?? r;
|
|
19
19
|
const p = !i;
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ n(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
className: `w-full h-full flex items-center ag-cell-inner-padding ${y} ${
|
|
24
|
-
children: /* @__PURE__ */
|
|
23
|
+
className: `w-full h-full flex items-center ag-cell-inner-padding ${y} ${d ? "opacity-60 cursor-not-allowed" : a ? "in-ag-editable-cell-highlight" : ""}`,
|
|
24
|
+
children: /* @__PURE__ */ n(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className: `flex w-full items-center rounded-[8px] px-1.5 h-7 ${f ? "justify-end text-right" : ""} ${a ? "bg-
|
|
28
|
-
children: /* @__PURE__ */
|
|
27
|
+
className: `flex w-full items-center rounded-[8px] px-1.5 h-7 ${f ? "justify-end text-right" : ""} ${a ? "bg-canvas-elevated" : "bg-inherit"}`,
|
|
28
|
+
children: /* @__PURE__ */ n(
|
|
29
29
|
"span",
|
|
30
30
|
{
|
|
31
|
-
className: `flex h-full w-full bg-transparent p-0 text-sm font-medium items-center truncate text-
|
|
32
|
-
children: p ?
|
|
31
|
+
className: `flex h-full w-full bg-transparent p-0 text-sm font-medium items-center truncate text-content ${p ? "text-content-empty" : ""} ${f ? "justify-end text-right" : ""}`,
|
|
32
|
+
children: p ? v ?? "--" : i
|
|
33
33
|
}
|
|
34
34
|
)
|
|
35
35
|
}
|
|
@@ -20,7 +20,7 @@ const Q = (e, l, r, a) => {
|
|
|
20
20
|
let t = null;
|
|
21
21
|
const i = m(e.iconField, e.icon, l);
|
|
22
22
|
if (typeof i == "string" ? t = H(i, { size: 16 }) : t = i, !t) return null;
|
|
23
|
-
const o = m(e.backgroundColorField, e.backgroundColor, l), s = m(e.colorField, e.color, l) ?? "
|
|
23
|
+
const o = m(e.backgroundColorField, e.backgroundColor, l), s = m(e.colorField, e.color, l) ?? "var(--color-foreground-icon)", f = m(e.tooltipField, e.tooltip, l), g = /* @__PURE__ */ c(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
className: `flex items-center justify-center ${e.onClick ? "cursor-pointer" : ""} ${e.showOnHover ? "opacity-0 group-hover:opacity-100 transition-opacity" : ""}`,
|
|
@@ -135,7 +135,7 @@ const Q = (e, l, r, a) => {
|
|
|
135
135
|
/* @__PURE__ */ c(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
|
-
className: `flex-1 truncate min-w-0 ${F ? "text-
|
|
138
|
+
className: `flex-1 truncate min-w-0 ${F ? "text-brand cursor-pointer hover:underline font-medium" : ""}`,
|
|
139
139
|
onClick: F ? C : void 0,
|
|
140
140
|
children: N
|
|
141
141
|
}
|
package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c, jsxs as V } from "react/jsx-runtime";
|
|
2
2
|
import { Badge as j } from "../../badge.js";
|
|
3
3
|
import { cn as w } from "../../../../lib/utils.js";
|
|
4
4
|
import { Progress as $ } from "../../progress.js";
|
|
@@ -15,19 +15,19 @@ function S(e, a, n) {
|
|
|
15
15
|
return Math.min(n, Math.max(a, e));
|
|
16
16
|
}
|
|
17
17
|
const _ = (e) => {
|
|
18
|
-
const { value: a, disabled: n, colDef:
|
|
18
|
+
const { value: a, disabled: n, colDef: o, className: b, data: s } = e, l = e.min ?? 0, d = e.max ?? 100, u = e.fractionDigits ?? 0, h = e.badgeVariant ?? "subtle", x = e.badgeColor ?? "neutral", p = e.badgeShape ?? "circle", N = e.progressVariant ?? "default", f = a && typeof a == "object" && "cellMetadata" in a ? a.cellMetadata?._isDisabled : void 0, m = s && typeof s == "object" && "rowMetadata" in s ? s.rowMetadata?._isDisabled : void 0;
|
|
19
19
|
let t = !1;
|
|
20
20
|
if (!n) {
|
|
21
|
-
const P =
|
|
22
|
-
|
|
21
|
+
const P = o?._originalEditable;
|
|
22
|
+
o?.editable === !1 ? t = !1 : f === !1 ? t = !0 : f === !0 ? t = !1 : m === !1 ? t = !0 : m === !0 ? t = !1 : t = P === !0 || o?.editable === !0;
|
|
23
23
|
}
|
|
24
24
|
const v = E(a), g = F(v), i = g != null, r = i ? S(g, l, d) : l, y = d - l || 1, D = i ? (r - l) / y * 100 : 0, M = i ? u > 0 ? `${r.toFixed(u)}%` : `${Math.round(r)}%` : "--";
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ c(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: `w-full h-full flex items-center ag-cell-inner-padding ${b ?? ""} ${n ? "opacity-60 cursor-not-allowed" : t ? "in-ag-editable-cell-highlight" : ""}`,
|
|
29
29
|
children: /* @__PURE__ */ V("div", { className: "flex w-full min-w-0 items-center gap-2", children: [
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c(
|
|
31
31
|
$,
|
|
32
32
|
{
|
|
33
33
|
label: !1,
|
|
@@ -40,16 +40,14 @@ const _ = (e) => {
|
|
|
40
40
|
className: "h-2.5"
|
|
41
41
|
}
|
|
42
42
|
) }),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ c(
|
|
44
44
|
j,
|
|
45
45
|
{
|
|
46
|
-
variant:
|
|
47
|
-
color:
|
|
46
|
+
variant: h,
|
|
47
|
+
color: x,
|
|
48
48
|
shape: p,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
!i && "text-[#dfe2e7]"
|
|
52
|
-
),
|
|
49
|
+
size: "sm",
|
|
50
|
+
className: w("shrink-0 tabular-nums leading-none", !i && "text-content-empty"),
|
|
53
51
|
children: M
|
|
54
52
|
}
|
|
55
53
|
)
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown as g } from "lucide-react";
|
|
3
3
|
const h = (u) => {
|
|
4
|
-
const { value: e, options:
|
|
5
|
-
let
|
|
4
|
+
const { value: e, options: p = [], placeholder: b = "Select...", disabled: o, colDef: i, data: l } = u, c = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, r = l && typeof l == "object" && "rowMetadata" in l ? l.rowMetadata?._isDisabled : void 0;
|
|
5
|
+
let t = !1;
|
|
6
6
|
if (!o) {
|
|
7
7
|
const s = i?._originalEditable;
|
|
8
|
-
i?.editable === !1 ?
|
|
8
|
+
i?.editable === !1 ? t = !1 : c === !1 ? t = !0 : c === !0 ? t = !1 : r === !1 ? t = !0 : r === !0 ? t = !1 : t = s === !0 || i?.editable === !0;
|
|
9
9
|
}
|
|
10
|
-
const a = e && typeof e == "object" && "value" in e ? e.value : e,
|
|
10
|
+
const a = e && typeof e == "object" && "value" in e ? e.value : e, d = p.find((s) => s.value === String(a ?? ""))?.label ?? (a != null && a !== "" ? String(a) : ""), f = !d;
|
|
11
11
|
return /* @__PURE__ */ n(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
className: `w-full h-full flex items-center ag-cell-inner-padding ${o ? "opacity-60 cursor-not-allowed" :
|
|
14
|
+
className: `w-full h-full flex items-center ag-cell-inner-padding ${o ? "opacity-60 cursor-not-allowed" : t ? "in-ag-editable-cell-highlight" : ""}`,
|
|
15
15
|
children: /* @__PURE__ */ m(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
|
-
className: `flex w-full items-center justify-between rounded-[8px] px-1.5 h-7 ${
|
|
18
|
+
className: `flex w-full items-center justify-between rounded-[8px] px-1.5 h-7 ${t ? "bg-canvas-elevated cursor-pointer" : "bg-inherit"}`,
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ n("span", { className: `truncate text-sm font-medium text-
|
|
21
|
-
|
|
20
|
+
/* @__PURE__ */ n("span", { className: `truncate text-sm font-medium text-content ${f ? "text-content-empty" : ""}`, children: f ? b : d }),
|
|
21
|
+
t && /* @__PURE__ */ n(g, { className: "h-3.5 w-3.5 shrink-0 text-content-muted" })
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
)
|
|
@@ -2,18 +2,18 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { resolveCellEditable as V, resolveValueFormatter as x, applyValueFormatter as N } from "./cell-renderer-utils.js";
|
|
4
4
|
const E = (v) => {
|
|
5
|
-
const { splits: l, commonParams: n, data: i, node:
|
|
5
|
+
const { splits: l, commonParams: n, data: i, node: h, api: c, column: b, context: s, value: g, colDef: d, valueFormatter: y } = v;
|
|
6
6
|
if (!l || !Array.isArray(l)) return null;
|
|
7
7
|
const w = (t) => {
|
|
8
8
|
const e = t;
|
|
9
9
|
if (typeof e == "string") {
|
|
10
10
|
const a = c?.getGridOption("components");
|
|
11
|
-
return
|
|
11
|
+
return s?.frameworkComponents?.[e] || a?.[e];
|
|
12
12
|
}
|
|
13
13
|
return e;
|
|
14
14
|
};
|
|
15
15
|
return /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateRows: `repeat(${l?.length}, 1fr)`, height: "100%", width: "100%" }, children: l?.map((t, e) => {
|
|
16
|
-
const a = t?.field?.split(".")?.pop(), r =
|
|
16
|
+
const a = t?.field?.split(".")?.pop(), r = g?.[a], m = r?.value?.toString(), p = i, C = typeof d?.editable == "boolean" ? d.editable : void 0, F = V(C, t.editable, p, r), u = x(r, p, t?.valueFormatter, y ?? null), R = u ? N(u, m) : m, f = n?.cellRenderer && typeof n?.cellRenderer == "string" ? w(n?.cellRenderer) : void 0;
|
|
17
17
|
return /* @__PURE__ */ o(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
@@ -22,15 +22,15 @@ const E = (v) => {
|
|
|
22
22
|
children: f ? /* @__PURE__ */ o(
|
|
23
23
|
f,
|
|
24
24
|
{
|
|
25
|
-
node:
|
|
25
|
+
node: h,
|
|
26
26
|
api: c,
|
|
27
27
|
column: b,
|
|
28
|
-
context:
|
|
28
|
+
context: s,
|
|
29
29
|
data: i,
|
|
30
30
|
value: r,
|
|
31
31
|
colDef: { ...t, editable: F },
|
|
32
32
|
valueFormatted: R,
|
|
33
|
-
className: e !== l.length - 1 ? "border-b border-
|
|
33
|
+
className: e !== l.length - 1 ? "border-b border-stroke-hairline" : ""
|
|
34
34
|
}
|
|
35
35
|
) : /* @__PURE__ */ o(
|
|
36
36
|
"div",
|
|
@@ -22,7 +22,7 @@ export interface StatusBadgeRendererProps extends ICellRendererParams {
|
|
|
22
22
|
* cellRenderer: StatusBadgeRenderer,
|
|
23
23
|
* cellRendererParams: {
|
|
24
24
|
* statusConfig: {
|
|
25
|
-
* draft: { label: 'Draft', className: 'bg-
|
|
25
|
+
* draft: { label: 'Draft', className: 'bg-accent text-accent-foreground' },
|
|
26
26
|
* }
|
|
27
27
|
* }
|
|
28
28
|
* }
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
3
|
-
active: { label: "Active", className: "bg-
|
|
4
|
-
inactive: { label: "Inactive", className: "bg-
|
|
5
|
-
pending: { label: "Pending", className: "bg-
|
|
6
|
-
approved: { label: "Approved", className: "bg-
|
|
7
|
-
rejected: { label: "Rejected", className: "bg-
|
|
8
|
-
},
|
|
9
|
-
const { value: e, statusConfig:
|
|
2
|
+
const c = {
|
|
3
|
+
active: { label: "Active", className: "bg-feedback-success-surface text-success" },
|
|
4
|
+
inactive: { label: "Inactive", className: "bg-muted text-content-charcoal" },
|
|
5
|
+
pending: { label: "Pending", className: "bg-feedback-warning-surface text-content" },
|
|
6
|
+
approved: { label: "Approved", className: "bg-brand-tint text-brand-strong" },
|
|
7
|
+
rejected: { label: "Rejected", className: "bg-feedback-error-surface text-destructive" }
|
|
8
|
+
}, r = (s) => {
|
|
9
|
+
const { value: e, statusConfig: l = c } = s;
|
|
10
10
|
if (e == null || e === "") return null;
|
|
11
|
-
const n = String(e).toLowerCase(),
|
|
11
|
+
const n = String(e).toLowerCase(), t = l[n] ?? {
|
|
12
12
|
label: String(e),
|
|
13
|
-
className: "bg-
|
|
13
|
+
className: "bg-muted text-content-charcoal"
|
|
14
14
|
};
|
|
15
15
|
return /* @__PURE__ */ a("div", { className: "w-full h-full flex items-center ag-cell-inner-padding", children: /* @__PURE__ */ a(
|
|
16
16
|
"span",
|
|
17
17
|
{
|
|
18
|
-
className: `inline-flex px-2 py-0.5 text-xs font-semibold rounded-full ${
|
|
19
|
-
children:
|
|
18
|
+
className: `inline-flex px-2 py-0.5 text-xs font-semibold rounded-full ${t.className}`,
|
|
19
|
+
children: t.label
|
|
20
20
|
}
|
|
21
21
|
) });
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
r.displayName = "StatusBadgeRenderer";
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
r as StatusBadgeRenderer
|
|
26
26
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsxs as b, jsx as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
const p = (
|
|
4
|
-
const { value:
|
|
5
|
-
e || !
|
|
6
|
-
}, [e,
|
|
7
|
-
(
|
|
8
|
-
e || (
|
|
1
|
+
import { jsxs as b, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as c } from "react";
|
|
3
|
+
const p = (d) => {
|
|
4
|
+
const { value: h, node: i, column: a, leftLabel: s, rightLabel: o, disabled: e } = d, t = !!h, l = c(() => {
|
|
5
|
+
e || !a || i.setDataValue(a.getColId(), !t);
|
|
6
|
+
}, [e, a, i, t]), u = c(
|
|
7
|
+
(r) => {
|
|
8
|
+
e || (r.key === " " || r.key === "Enter") && (r.preventDefault(), l());
|
|
9
9
|
},
|
|
10
|
-
[e,
|
|
10
|
+
[e, l]
|
|
11
11
|
);
|
|
12
12
|
return /* @__PURE__ */ b("div", { className: `flex items-center justify-center h-full w-full gap-2 ag-cell-inner-padding ${e ? "opacity-60 cursor-not-allowed" : !e ? "in-ag-editable-cell-highlight" : ""}`, children: [
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
13
|
+
s && /* @__PURE__ */ n("span", { className: "text-xs text-content-muted", children: s }),
|
|
14
|
+
/* @__PURE__ */ n(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
onClick:
|
|
18
|
-
onKeyDown:
|
|
17
|
+
onClick: l,
|
|
18
|
+
onKeyDown: u,
|
|
19
19
|
role: "switch",
|
|
20
|
-
"aria-checked":
|
|
20
|
+
"aria-checked": t,
|
|
21
21
|
"aria-disabled": e,
|
|
22
22
|
tabIndex: e ? -1 : 0,
|
|
23
|
-
className: `inline-flex h-4 w-6 shrink-0 items-center rounded-full border transition-colors ${e ? "cursor-not-allowed opacity-50" : "cursor-pointer"} ${
|
|
24
|
-
children: /* @__PURE__ */
|
|
23
|
+
className: `inline-flex h-4 w-6 shrink-0 items-center rounded-full border transition-colors ${e ? "cursor-not-allowed opacity-50" : "cursor-pointer"} ${t ? "bg-brand-tint border-canvas-accordion" : "bg-canvas-elevated border-canvas-tint"}`,
|
|
24
|
+
children: /* @__PURE__ */ n(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className: `pointer-events-none block h-[10px] w-[10px] rounded-full shadow-lg transition-transform ${
|
|
27
|
+
className: `pointer-events-none block h-[10px] w-[10px] rounded-full shadow-lg transition-transform ${t ? "translate-x-[10px] bg-brand" : "translate-x-[2px] bg-stroke-field"}`
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
|
|
32
|
+
o && /* @__PURE__ */ n("span", { className: "text-xs text-content-muted", children: o })
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
35
|
p.displayName = "SwitchDisplayRenderer";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
const m = (
|
|
3
|
-
const { valueFormatted:
|
|
2
|
+
const m = (n) => {
|
|
3
|
+
const { valueFormatted: r, value: t, placeholder: s, disabled: a, maxLines: d = 2, colDef: c } = n, o = !a && c?.editable === !0, e = r ?? (t != null ? String(t) : ""), i = e === "" || e == null;
|
|
4
4
|
return /* @__PURE__ */ l(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
|
-
className: `w-full h-full flex items-center ag-cell-inner-padding ${
|
|
7
|
+
className: `w-full h-full flex items-center ag-cell-inner-padding ${a ? "opacity-60 cursor-not-allowed" : o ? "in-ag-editable-cell-highlight" : ""}`,
|
|
8
8
|
children: /* @__PURE__ */ l(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
className: "flex w-full items-center rounded-[8px] bg-
|
|
11
|
+
className: "flex w-full items-center rounded-[8px] bg-canvas-elevated px-1.5 h-7 cursor-text",
|
|
12
12
|
children: /* @__PURE__ */ l(
|
|
13
13
|
"span",
|
|
14
14
|
{
|
|
15
|
-
className: `w-full text-sm font-medium text-
|
|
15
|
+
className: `w-full text-sm font-medium text-content overflow-hidden ${i ? "text-content-empty" : ""}`,
|
|
16
16
|
style: {
|
|
17
17
|
display: "-webkit-box",
|
|
18
18
|
WebkitLineClamp: d,
|
|
19
19
|
WebkitBoxOrient: "vertical"
|
|
20
20
|
},
|
|
21
|
-
children:
|
|
21
|
+
children: i ? s ?? "" : e
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r, Fragment as U } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as D } from "react";
|
|
3
3
|
import { Dialog as W, DialogContent as X, DialogHeader as Y, DialogTitle as Z, DialogClose as _, DialogBody as I, DialogFooter as ee } from "../../../dialog.js";
|
|
4
4
|
import { Button as C } from "../../../button.js";
|
|
5
5
|
import { ButtonGroup as te } from "../../../button-group.js";
|
|
@@ -21,17 +21,17 @@ const B = (S) => {
|
|
|
21
21
|
columnType: v,
|
|
22
22
|
selectOptions: j,
|
|
23
23
|
isMultiSelect: $,
|
|
24
|
-
initialModel:
|
|
24
|
+
initialModel: k,
|
|
25
25
|
api: h
|
|
26
26
|
// Add api to props
|
|
27
27
|
}) => {
|
|
28
|
-
const { t: d } = ne(),
|
|
29
|
-
const e = {}, n =
|
|
28
|
+
const { t: d } = ne(), T = () => (k?.rules || []).filter((e) => !("logic" in e)), [y, G] = D("column"), [F, O] = D(() => {
|
|
29
|
+
const e = {}, n = T(), t = B(n);
|
|
30
30
|
return Object.keys(t).forEach((a) => {
|
|
31
|
-
e[a] =
|
|
31
|
+
e[a] = k?.logic || "OR";
|
|
32
32
|
}), e[s] || (e[s] = "OR"), e;
|
|
33
|
-
}), [g, L] =
|
|
34
|
-
const e =
|
|
33
|
+
}), [g, L] = D(() => {
|
|
34
|
+
const e = T();
|
|
35
35
|
if (h) {
|
|
36
36
|
const t = h.getFilterModel();
|
|
37
37
|
t && Object.keys(t).forEach((i) => {
|
|
@@ -63,7 +63,7 @@ const B = (S) => {
|
|
|
63
63
|
value: l.values
|
|
64
64
|
};
|
|
65
65
|
else if (l.filterType === "multi") {
|
|
66
|
-
const c = l.filterModels?.find((
|
|
66
|
+
const c = l.filterModels?.find((R) => R && R.filterType === "set");
|
|
67
67
|
c && (o = {
|
|
68
68
|
id: Math.random().toString(36).substr(2, 9),
|
|
69
69
|
columnId: i,
|
|
@@ -78,7 +78,7 @@ const B = (S) => {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
return e.some((t) => t.columnId === s) || e.push(N(s, v)), e;
|
|
81
|
-
}), [x] =
|
|
81
|
+
}), [x] = D(() => ({
|
|
82
82
|
allRules: g,
|
|
83
83
|
// Use the computed rules (potentially synced)
|
|
84
84
|
columnLogic: { ...F }
|
|
@@ -143,7 +143,7 @@ const B = (S) => {
|
|
|
143
143
|
]
|
|
144
144
|
}
|
|
145
145
|
) }),
|
|
146
|
-
/* @__PURE__ */ r(_, { asChild: !0, children: /* @__PURE__ */ r(C, { variant: "ghost", size: "icon", className: "h-8 w-8 p-0 text-
|
|
146
|
+
/* @__PURE__ */ r(_, { asChild: !0, children: /* @__PURE__ */ r(C, { variant: "ghost", size: "icon", className: "h-8 w-8 p-0 text-content-tertiary hover:text-brand-variant-hover", onClick: u, "aria-label": d("aria.close"), children: /* @__PURE__ */ r(le, { size: 14 }) }) })
|
|
147
147
|
] }),
|
|
148
148
|
/* @__PURE__ */ r(I, { className: "px-0 py-4 min-h-[300px] max-h-[400px] overflow-y-auto", children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-6 w-full px-4", children: y === "column" ? (
|
|
149
149
|
// Column Mode: Single column section
|
|
@@ -163,7 +163,7 @@ const B = (S) => {
|
|
|
163
163
|
)
|
|
164
164
|
) : (
|
|
165
165
|
// Global Mode: All columns with filters
|
|
166
|
-
/* @__PURE__ */ r(U, { children: A.length === 0 ? /* @__PURE__ */ r("div", { className: "text-center py-8 text-
|
|
166
|
+
/* @__PURE__ */ r(U, { children: A.length === 0 ? /* @__PURE__ */ r("div", { className: "text-center py-8 text-content-placeholder", children: d("advancedFilter.noFiltersApplied") }) : A.map((e, n) => {
|
|
167
167
|
let t = null;
|
|
168
168
|
if (h) {
|
|
169
169
|
const p = h.getColumn(e);
|
|
@@ -171,9 +171,9 @@ const B = (S) => {
|
|
|
171
171
|
}
|
|
172
172
|
const a = t?.headerComponentParams, i = t?.headerName || e, l = q(e, i), o = t?.filter === "agNumberColumnFilter" ? "number" : t?.filter === "agDateColumnFilter" ? "date" : t?.filter === "agMultiColumnFilter" ? "multi" : t?.filter === "agSetColumnFilter" || a?.selectOptions ? "select" : "text";
|
|
173
173
|
console.log(`[AdvancedFilterDialog] Column: ${e}, Type: ${o}, Filter: ${t?.filter}`);
|
|
174
|
-
const c = a?.selectOptions,
|
|
174
|
+
const c = a?.selectOptions, R = a?.isMultiSelect;
|
|
175
175
|
return /* @__PURE__ */ f("div", { children: [
|
|
176
|
-
n > 0 && /* @__PURE__ */ r("hr", { className: "border-
|
|
176
|
+
n > 0 && /* @__PURE__ */ r("hr", { className: "border-stroke-hairline mb-6" }),
|
|
177
177
|
/* @__PURE__ */ r(
|
|
178
178
|
z,
|
|
179
179
|
{
|
|
@@ -181,7 +181,7 @@ const B = (S) => {
|
|
|
181
181
|
columnLabel: l,
|
|
182
182
|
columnType: o,
|
|
183
183
|
selectOptions: c,
|
|
184
|
-
isMultiSelect:
|
|
184
|
+
isMultiSelect: R,
|
|
185
185
|
rules: E(e),
|
|
186
186
|
logic: M(e),
|
|
187
187
|
onLogicChange: (p) => w(e, p),
|
|
@@ -8,7 +8,7 @@ import p from "../../../select/select.js";
|
|
|
8
8
|
import { Bin as E } from "../../../../../icons/index.js";
|
|
9
9
|
import { createEmptyRule as q } from "../utils/filter-utils.js";
|
|
10
10
|
import { useImpactNovaI18n as I } from "../../../../../i18n/ImpactNovaI18nContext.js";
|
|
11
|
-
const
|
|
11
|
+
const y = {
|
|
12
12
|
text: ["contains", "notContains", "equals", "notEqual", "startsWith", "endsWith", "empty", "notEmpty"],
|
|
13
13
|
number: ["equals", "notEqual", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual", "inRange", "empty", "notEmpty"],
|
|
14
14
|
date: ["equals", "notEqual", "greaterThan", "lessThan", "inRange"],
|
|
@@ -16,36 +16,36 @@ const C = {
|
|
|
16
16
|
multi: ["contains", "notContains", "startsWith", "endsWith", "equals", "notEqual", "empty", "notEmpty"]
|
|
17
17
|
}, $ = ({
|
|
18
18
|
columnId: h,
|
|
19
|
-
columnLabel:
|
|
20
|
-
columnType:
|
|
19
|
+
columnLabel: C,
|
|
20
|
+
columnType: l,
|
|
21
21
|
selectOptions: g,
|
|
22
22
|
isMultiSelect: c,
|
|
23
23
|
rules: s,
|
|
24
|
-
logic:
|
|
24
|
+
logic: R,
|
|
25
25
|
onLogicChange: O,
|
|
26
26
|
onRulesChange: m,
|
|
27
27
|
canDeleteLastRule: f = !1,
|
|
28
28
|
onDeleteColumnFilter: x
|
|
29
29
|
}) => {
|
|
30
|
-
const { t: r } = I(), b = w(() => (
|
|
30
|
+
const { t: r } = I(), b = w(() => (y[l] ?? y.text).map((n) => ({ label: r(`filter.operators.${l === "date" && n === "greaterThan" ? "after" : l === "date" && n === "lessThan" ? "before" : l === "date" && n === "inRange" ? "between" : n}`), value: n })), [l, r]), N = w(
|
|
31
31
|
() => [
|
|
32
32
|
{ label: r("filter.logicAll"), value: "AND" },
|
|
33
33
|
{ label: r("filter.logicAny"), value: "OR" }
|
|
34
34
|
],
|
|
35
35
|
[r]
|
|
36
36
|
), A = () => {
|
|
37
|
-
m([...s, q(h,
|
|
37
|
+
m([...s, q(h, l)]);
|
|
38
38
|
}, F = (e) => {
|
|
39
39
|
if (s.length > 1 || f) {
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const n = s.filter((t) => t.id !== e);
|
|
41
|
+
n.length === 0 && f ? m([]) : m(n.length > 0 ? n : [q(h, l)]);
|
|
42
42
|
}
|
|
43
|
-
},
|
|
44
|
-
m(s.map((t) => t.id === e ? { ...t, ...
|
|
43
|
+
}, o = (e, n) => {
|
|
44
|
+
m(s.map((t) => t.id === e ? { ...t, ...n } : t));
|
|
45
45
|
}, S = (e) => {
|
|
46
46
|
if (e.operator === "empty" || e.operator === "notEmpty")
|
|
47
|
-
return /* @__PURE__ */ a("span", { className: "text-
|
|
48
|
-
if (
|
|
47
|
+
return /* @__PURE__ */ a("span", { className: "text-content-placeholder italic text-sm", children: r("advancedFilter.noValueNeeded") });
|
|
48
|
+
if (l === "date")
|
|
49
49
|
return e.operator === "inRange" ? /* @__PURE__ */ a(
|
|
50
50
|
T,
|
|
51
51
|
{
|
|
@@ -54,7 +54,7 @@ const C = {
|
|
|
54
54
|
to: e.valueTo ? new Date(e.valueTo) : void 0
|
|
55
55
|
},
|
|
56
56
|
onChange: (t) => {
|
|
57
|
-
|
|
57
|
+
o(e.id, {
|
|
58
58
|
value: t?.from?.toISOString() || "",
|
|
59
59
|
valueTo: t?.to?.toISOString() || ""
|
|
60
60
|
});
|
|
@@ -65,22 +65,22 @@ const C = {
|
|
|
65
65
|
P,
|
|
66
66
|
{
|
|
67
67
|
value: e.value ? new Date(e.value) : void 0,
|
|
68
|
-
onChange: (t) =>
|
|
68
|
+
onChange: (t) => o(e.id, { value: t?.toISOString() || "" }),
|
|
69
69
|
placeholder: r("filter.selectDate"),
|
|
70
70
|
showFooter: !0
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
|
-
const
|
|
74
|
-
return
|
|
73
|
+
const n = e.operator === "equals" || e.operator === "notEqual";
|
|
74
|
+
return l === "select" || l === "multi" && n ? /* @__PURE__ */ a(
|
|
75
75
|
p,
|
|
76
76
|
{
|
|
77
77
|
options: g || [],
|
|
78
78
|
value: (() => {
|
|
79
|
-
const t = (g || []).filter((
|
|
79
|
+
const t = (g || []).filter((i) => Array.isArray(e.value) ? e.value.includes(i.value) : String(e.value) === String(i.value));
|
|
80
80
|
return t.length === 0 ? null : c !== !1 ? t : t[0];
|
|
81
81
|
})(),
|
|
82
82
|
onChange: (t) => {
|
|
83
|
-
Array.isArray(t) ?
|
|
83
|
+
Array.isArray(t) ? o(e.id, { value: t.map((i) => i.value) }) : o(e.id, { value: t?.value || "" });
|
|
84
84
|
},
|
|
85
85
|
isMulti: c !== void 0 ? c : !0,
|
|
86
86
|
placeholder: r(c === !1 ? "filter.selectValue" : "filter.selectValues"),
|
|
@@ -92,20 +92,20 @@ const C = {
|
|
|
92
92
|
v,
|
|
93
93
|
{
|
|
94
94
|
value: e.value,
|
|
95
|
-
onChange: (t) =>
|
|
95
|
+
onChange: (t) => o(e.id, { value: t.target.value }),
|
|
96
96
|
placeholder: r("filter.from"),
|
|
97
|
-
type:
|
|
97
|
+
type: l === "number" ? "number" : "text",
|
|
98
98
|
className: "flex-1"
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
|
-
/* @__PURE__ */ a("span", { className: "text-
|
|
101
|
+
/* @__PURE__ */ a("span", { className: "text-content-placeholder shrink-0", children: r("filter.to") }),
|
|
102
102
|
/* @__PURE__ */ a(
|
|
103
103
|
v,
|
|
104
104
|
{
|
|
105
105
|
value: e.valueTo || "",
|
|
106
|
-
onChange: (t) =>
|
|
106
|
+
onChange: (t) => o(e.id, { valueTo: t.target.value }),
|
|
107
107
|
placeholder: r("filter.to"),
|
|
108
|
-
type:
|
|
108
|
+
type: l === "number" ? "number" : "text",
|
|
109
109
|
className: "flex-1"
|
|
110
110
|
}
|
|
111
111
|
)
|
|
@@ -113,23 +113,23 @@ const C = {
|
|
|
113
113
|
v,
|
|
114
114
|
{
|
|
115
115
|
value: e.value,
|
|
116
|
-
onChange: (t) =>
|
|
116
|
+
onChange: (t) => o(e.id, { value: t.target.value }),
|
|
117
117
|
placeholder: r("filter.enterValue"),
|
|
118
|
-
type:
|
|
118
|
+
type: l === "number" ? "number" : "text",
|
|
119
119
|
className: "w-full"
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
}, k = (e) => {
|
|
123
|
-
const
|
|
123
|
+
const n = b.find((t) => t.value === e.operator);
|
|
124
124
|
return /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
125
125
|
/* @__PURE__ */ a("div", { className: "w-[120px] shrink-0", children: /* @__PURE__ */ a(
|
|
126
126
|
p,
|
|
127
127
|
{
|
|
128
128
|
options: b,
|
|
129
|
-
value:
|
|
129
|
+
value: n || null,
|
|
130
130
|
onChange: (t) => {
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const i = t;
|
|
132
|
+
i && o(e.id, { operator: i.value });
|
|
133
133
|
},
|
|
134
134
|
placeholder: r("filter.operator"),
|
|
135
135
|
className: "w-full",
|
|
@@ -151,16 +151,16 @@ const C = {
|
|
|
151
151
|
] }, e.id);
|
|
152
152
|
};
|
|
153
153
|
return /* @__PURE__ */ d("div", { className: "flex flex-col gap-4", children: [
|
|
154
|
-
/* @__PURE__ */ d("div", { className: "text-
|
|
154
|
+
/* @__PURE__ */ d("div", { className: "text-content-muted text-sm flex items-center gap-2 flex-wrap", children: [
|
|
155
155
|
/* @__PURE__ */ a("span", { children: r("advancedFilter.match") }),
|
|
156
156
|
/* @__PURE__ */ a("div", { className: "w-[80px]", children: /* @__PURE__ */ a(
|
|
157
157
|
p,
|
|
158
158
|
{
|
|
159
159
|
options: N,
|
|
160
|
-
value: N.find((e) => e.value ===
|
|
160
|
+
value: N.find((e) => e.value === R),
|
|
161
161
|
onChange: (e) => {
|
|
162
|
-
const
|
|
163
|
-
|
|
162
|
+
const n = e;
|
|
163
|
+
n && O(n.value);
|
|
164
164
|
},
|
|
165
165
|
className: "h-8",
|
|
166
166
|
menuPortalTarget: document.body,
|
|
@@ -168,7 +168,7 @@ const C = {
|
|
|
168
168
|
}
|
|
169
169
|
) }),
|
|
170
170
|
/* @__PURE__ */ a("span", { children: r("advancedFilter.ofTheFollowingRulesForColumn") }),
|
|
171
|
-
/* @__PURE__ */ a("span", { className: "font-semibold text-
|
|
171
|
+
/* @__PURE__ */ a("span", { className: "font-semibold text-content-tertiary", children: C })
|
|
172
172
|
] }),
|
|
173
173
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-3", children: s.map((e) => k(e)) }),
|
|
174
174
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between mt-1", children: [
|
|
@@ -179,7 +179,7 @@ const C = {
|
|
|
179
179
|
variant: "outline",
|
|
180
180
|
size: "sm",
|
|
181
181
|
onClick: x,
|
|
182
|
-
className: "text-
|
|
182
|
+
className: "text-validation hover:text-destructive hover:bg-feedback-error-surface border-destructive",
|
|
183
183
|
children: [
|
|
184
184
|
/* @__PURE__ */ a(E, { size: "xs" }),
|
|
185
185
|
r("advancedFilter.deleteColumn")
|