@snksergio/design-system 0.42.0 → 0.43.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-lib/chunks/{kpi-delta-DaDwKOaP.mjs → kpi-delta-B_1xjDu_.mjs} +2 -2
- package/dist-lib/chunks/{kpi-delta-DaDwKOaP.mjs.map → kpi-delta-B_1xjDu_.mjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-DAfakvFp.cjs → kpi-delta-CXGg2nBx.cjs} +2 -2
- package/dist-lib/chunks/{kpi-delta-DAfakvFp.cjs.map → kpi-delta-CXGg2nBx.cjs.map} +1 -1
- package/dist-lib/chunks/{panel-INPypAHe.cjs → panel-C3fekbdr.cjs} +118 -97
- package/dist-lib/chunks/panel-C3fekbdr.cjs.map +1 -0
- package/dist-lib/chunks/{panel-BI52RBEn.mjs → panel-UwUWfDLf.mjs} +35 -14
- package/dist-lib/chunks/panel-UwUWfDLf.mjs.map +1 -0
- package/dist-lib/chunks/{textarea-K20CL_gF.cjs → sheet-B68Q4-Hn.cjs} +206 -206
- package/dist-lib/chunks/sheet-B68Q4-Hn.cjs.map +1 -0
- package/dist-lib/chunks/{textarea-BPRIHZVd.mjs → sheet-BgA2g6m4.mjs} +206 -206
- package/dist-lib/chunks/sheet-BgA2g6m4.mjs.map +1 -0
- package/dist-lib/chunks/{useTheme-3iZAognE.cjs → useTheme-C9Y6vxTf.cjs} +103 -52
- package/dist-lib/chunks/useTheme-C9Y6vxTf.cjs.map +1 -0
- package/dist-lib/chunks/{useTheme-B3ZakPqk.mjs → useTheme-DCmzLBUR.mjs} +103 -52
- package/dist-lib/chunks/{useTheme-3iZAognE.cjs.map → useTheme-DCmzLBUR.mjs.map} +1 -1
- package/dist-lib/index.cjs +17 -17
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.mjs +11 -11
- package/dist-lib/index.mjs.map +1 -1
- package/dist-lib/preview/chat.cjs +1 -1
- package/dist-lib/preview/chat.mjs +1 -1
- package/dist-lib/preview/clientes.cjs +8 -14
- package/dist-lib/preview/clientes.cjs.map +1 -1
- package/dist-lib/preview/clientes.mjs +8 -14
- package/dist-lib/preview/clientes.mjs.map +1 -1
- package/dist-lib/preview/dashboard.cjs +2 -2
- package/dist-lib/preview/dashboard.mjs +2 -2
- package/dist-lib/shadcn.cjs +50 -50
- package/dist-lib/shadcn.mjs +1 -1
- package/dist-lib/src/components/ui/ColorPicker/color-picker.d.ts.map +1 -1
- package/dist-lib/src/components/ui/DataTable/column-types/definitions/date-column-type.d.ts.map +1 -1
- package/dist-lib/src/components/ui/DataTable/column-types/definitions/datetime-column-type.d.ts.map +1 -1
- package/dist-lib/src/components/ui/DataTable/utils/calculate-column-widths.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.styles.d.ts +82 -3
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.styles.d.ts.map +1 -1
- package/dist-lib/src/preview/pages/ChatV2/components/FiltersColumn/filters-column.styles.d.ts +3 -3
- package/dist-lib/src/preview/pages/ClientesShowcase/ClientesShowcase.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist-lib/chunks/panel-BI52RBEn.mjs.map +0 -1
- package/dist-lib/chunks/panel-INPypAHe.cjs.map +0 -1
- package/dist-lib/chunks/textarea-BPRIHZVd.mjs.map +0 -1
- package/dist-lib/chunks/textarea-K20CL_gF.cjs.map +0 -1
- package/dist-lib/chunks/useTheme-B3ZakPqk.mjs.map +0 -1
|
@@ -3,14 +3,14 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
const jsxRuntime = require("react/jsx-runtime");
|
|
6
|
-
const
|
|
6
|
+
const sheet = require("./sheet-B68Q4-Hn.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const core = require("@dnd-kit/core");
|
|
9
9
|
const sortable = require("@dnd-kit/sortable");
|
|
10
10
|
const reactVirtual = require("@tanstack/react-virtual");
|
|
11
11
|
const avatar = require("./avatar-eM5txRFZ.cjs");
|
|
12
12
|
const lucideReact = require("lucide-react");
|
|
13
|
-
const useTheme = require("./useTheme-
|
|
13
|
+
const useTheme = require("./useTheme-C9Y6vxTf.cjs");
|
|
14
14
|
const input = require("./input-az2SuVXQ.cjs");
|
|
15
15
|
const reactDom = require("react-dom");
|
|
16
16
|
const dnd = require("@hello-pangea/dnd");
|
|
@@ -87,7 +87,7 @@ function AlertModal({
|
|
|
87
87
|
}
|
|
88
88
|
onConfirm?.();
|
|
89
89
|
};
|
|
90
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
return /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogContent, { className, children: [
|
|
91
91
|
!hideClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
92
92
|
"button",
|
|
93
93
|
{
|
|
@@ -99,13 +99,13 @@ function AlertModal({
|
|
|
99
99
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-4" })
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
102
|
+
/* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogHeader, { children: [
|
|
103
103
|
iconNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: alertModalIcon({ tone }), "aria-hidden": "true", children: iconNode }),
|
|
104
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogTitle, { children: title2 }),
|
|
105
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogDescription, { children: description })
|
|
106
106
|
] }),
|
|
107
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
108
|
-
!hideCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
107
|
+
/* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogFooter, { children: [
|
|
108
|
+
!hideCancel && /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogCancel, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
109
109
|
avatar.Button,
|
|
110
110
|
{
|
|
111
111
|
type: "button",
|
|
@@ -117,7 +117,7 @@ function AlertModal({
|
|
|
117
117
|
children: cancelLabel
|
|
118
118
|
}
|
|
119
119
|
) }),
|
|
120
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogAction, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
121
|
avatar.Button,
|
|
122
122
|
{
|
|
123
123
|
type: "button",
|
|
@@ -497,7 +497,7 @@ const FormFieldTextarea = React.forwardRef(
|
|
|
497
497
|
id,
|
|
498
498
|
disabled: textareaProps.disabled,
|
|
499
499
|
children: ({ id: fieldId, state: fieldState }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
500
|
-
|
|
500
|
+
sheet.Textarea,
|
|
501
501
|
{
|
|
502
502
|
ref,
|
|
503
503
|
id: fieldId,
|
|
@@ -542,7 +542,7 @@ function FormFieldSelect({
|
|
|
542
542
|
id,
|
|
543
543
|
disabled,
|
|
544
544
|
children: ({ id: fieldId, state: fieldState }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
545
|
-
|
|
545
|
+
sheet.Select,
|
|
546
546
|
{
|
|
547
547
|
value,
|
|
548
548
|
defaultValue,
|
|
@@ -550,16 +550,16 @@ function FormFieldSelect({
|
|
|
550
550
|
disabled,
|
|
551
551
|
children: [
|
|
552
552
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
553
|
-
|
|
553
|
+
sheet.SelectTrigger,
|
|
554
554
|
{
|
|
555
555
|
id: fieldId,
|
|
556
556
|
state: fieldState,
|
|
557
557
|
className: triggerClassName,
|
|
558
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
558
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder })
|
|
559
559
|
}
|
|
560
560
|
),
|
|
561
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
562
|
-
|
|
561
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { className: contentClassName, children: options.map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
562
|
+
sheet.SelectItem,
|
|
563
563
|
{
|
|
564
564
|
value: opt.value,
|
|
565
565
|
disabled: opt.disabled,
|
|
@@ -604,7 +604,7 @@ const FormFieldCheckbox = React.forwardRef(
|
|
|
604
604
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: avatar.cn(formFieldRoot(), "gap-[5px]", className), children: [
|
|
605
605
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-gp-md", children: [
|
|
606
606
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
607
|
-
|
|
607
|
+
sheet.Checkbox,
|
|
608
608
|
{
|
|
609
609
|
ref,
|
|
610
610
|
id,
|
|
@@ -665,7 +665,7 @@ const FormFieldSwitch = React.forwardRef(
|
|
|
665
665
|
message = successMessage;
|
|
666
666
|
messageState = "success";
|
|
667
667
|
}
|
|
668
|
-
const switchEl = /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
|
+
const switchEl = /* @__PURE__ */ jsxRuntime.jsx(sheet.Switch, { ref, id, disabled, ...switchProps });
|
|
669
669
|
const labelEl = label && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
670
670
|
"label",
|
|
671
671
|
{
|
|
@@ -2474,7 +2474,7 @@ function ColsPanel({
|
|
|
2474
2474
|
}
|
|
2475
2475
|
),
|
|
2476
2476
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2477
|
-
|
|
2477
|
+
sheet.Checkbox,
|
|
2478
2478
|
{
|
|
2479
2479
|
id: `col-vis-${col.key}`,
|
|
2480
2480
|
checked,
|
|
@@ -3114,7 +3114,7 @@ function AddViewModal({ open, onClose, onSubmit }) {
|
|
|
3114
3114
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: toggleLabel(), children: "Tornar esta visão pública" }),
|
|
3115
3115
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: toggleDesc(), children: "Outros usuários da sua equipe poderão visualizar e usar esta visão" })
|
|
3116
3116
|
] }),
|
|
3117
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3117
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.Switch, { checked: isPublic, onCheckedChange: setIsPublic })
|
|
3118
3118
|
] })
|
|
3119
3119
|
] }),
|
|
3120
3120
|
/* @__PURE__ */ jsxRuntime.jsxs("footer", { className: foot(), children: [
|
|
@@ -3537,38 +3537,38 @@ function FilterRowEditor({
|
|
|
3537
3537
|
}
|
|
3538
3538
|
) }),
|
|
3539
3539
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full sm:flex-[0.7_1_0%] sm:basis-0 min-w-0 sm:min-w-[80px]", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3540
|
-
|
|
3540
|
+
sheet.Select,
|
|
3541
3541
|
{
|
|
3542
3542
|
value: effectiveOp,
|
|
3543
3543
|
onValueChange: (v) => onChange({ ...filter, op: v }),
|
|
3544
3544
|
children: [
|
|
3545
3545
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3546
|
-
|
|
3546
|
+
sheet.SelectTrigger,
|
|
3547
3547
|
{
|
|
3548
3548
|
className: avatar.cn(FIELD_BASE, "px-pad-xl gap-gp-md"),
|
|
3549
3549
|
"aria-label": "Operador",
|
|
3550
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3550
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, {})
|
|
3551
3551
|
}
|
|
3552
3552
|
),
|
|
3553
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3553
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: operators.map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: o.id, children: o.label }, o.id)) })
|
|
3554
3554
|
]
|
|
3555
3555
|
}
|
|
3556
3556
|
) }),
|
|
3557
3557
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full sm:flex-[1.3_1_0%] sm:basis-0 min-w-0", children: customValueInput ? customValueInput : isSelect ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3558
|
-
|
|
3558
|
+
sheet.Select,
|
|
3559
3559
|
{
|
|
3560
3560
|
value: stringValue,
|
|
3561
3561
|
onValueChange: (v) => onChange({ ...filter, value: v }),
|
|
3562
3562
|
children: [
|
|
3563
3563
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3564
|
-
|
|
3564
|
+
sheet.SelectTrigger,
|
|
3565
3565
|
{
|
|
3566
3566
|
className: avatar.cn(FIELD_BASE, "px-pad-xl gap-gp-md"),
|
|
3567
3567
|
"aria-label": "Valor",
|
|
3568
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3568
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecione…" })
|
|
3569
3569
|
}
|
|
3570
3570
|
),
|
|
3571
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3571
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: col.options?.map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: o.value, children: o.label }, o.value)) })
|
|
3572
3572
|
]
|
|
3573
3573
|
}
|
|
3574
3574
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4712,14 +4712,24 @@ const NumberColumnType = {
|
|
|
4712
4712
|
defaultSortable: true,
|
|
4713
4713
|
defaultIcon: lucideReact.Hash
|
|
4714
4714
|
};
|
|
4715
|
-
const
|
|
4715
|
+
const ptBrData = new Intl.DateTimeFormat("pt-BR", {
|
|
4716
|
+
day: "2-digit",
|
|
4717
|
+
month: "2-digit",
|
|
4718
|
+
year: "numeric"
|
|
4719
|
+
});
|
|
4720
|
+
const ptBrCompacto = new Intl.DateTimeFormat("pt-BR", {
|
|
4716
4721
|
day: "2-digit",
|
|
4717
4722
|
month: "short"
|
|
4718
4723
|
});
|
|
4724
|
+
function formatData(v) {
|
|
4725
|
+
const d = toDate(v);
|
|
4726
|
+
if (!d) return "";
|
|
4727
|
+
return ptBrData.format(d);
|
|
4728
|
+
}
|
|
4719
4729
|
function formatShort$1(v) {
|
|
4720
4730
|
const d = toDate(v);
|
|
4721
4731
|
if (!d) return "";
|
|
4722
|
-
return
|
|
4732
|
+
return ptBrCompacto.format(d).replace(".", "");
|
|
4723
4733
|
}
|
|
4724
4734
|
const DateColumnType = {
|
|
4725
4735
|
type: "date",
|
|
@@ -4754,7 +4764,7 @@ const DateColumnType = {
|
|
|
4754
4764
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "size-icon-xs text-fg-muted shrink-0" })
|
|
4755
4765
|
] }) }),
|
|
4756
4766
|
/* @__PURE__ */ jsxRuntime.jsx(avatar.PopoverContent, { align: "start", className: "p-pad-md w-auto", children: isRange ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4757
|
-
|
|
4767
|
+
sheet.Calendar,
|
|
4758
4768
|
{
|
|
4759
4769
|
mode: "range",
|
|
4760
4770
|
selected: Array.isArray(value) ? { from: toDate(value[0]), to: toDate(value[1]) } : { from: void 0, to: void 0 },
|
|
@@ -4766,7 +4776,7 @@ const DateColumnType = {
|
|
|
4766
4776
|
}
|
|
4767
4777
|
}
|
|
4768
4778
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
4769
|
-
|
|
4779
|
+
sheet.Calendar,
|
|
4770
4780
|
{
|
|
4771
4781
|
mode: "single",
|
|
4772
4782
|
selected: toDate(value),
|
|
@@ -4784,7 +4794,7 @@ const DateColumnType = {
|
|
|
4784
4794
|
to: toDate(value[1])
|
|
4785
4795
|
};
|
|
4786
4796
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-pad-md", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4787
|
-
|
|
4797
|
+
sheet.Calendar,
|
|
4788
4798
|
{
|
|
4789
4799
|
mode: "range",
|
|
4790
4800
|
selected: range,
|
|
@@ -4798,7 +4808,7 @@ const DateColumnType = {
|
|
|
4798
4808
|
) });
|
|
4799
4809
|
}
|
|
4800
4810
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-pad-md", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4801
|
-
|
|
4811
|
+
sheet.Calendar,
|
|
4802
4812
|
{
|
|
4803
4813
|
mode: "single",
|
|
4804
4814
|
selected: toDate(value),
|
|
@@ -4845,8 +4855,16 @@ const DateColumnType = {
|
|
|
4845
4855
|
return null;
|
|
4846
4856
|
},
|
|
4847
4857
|
/* G.2 slots */
|
|
4848
|
-
|
|
4849
|
-
|
|
4858
|
+
// `column.valueFormatter` vence o formato do tipo — é o escape hatch pra quem quer
|
|
4859
|
+
// outro formato (mês escrito, ISO, relativo) sem escrever `render` inteiro.
|
|
4860
|
+
//
|
|
4861
|
+
// Isso é o que o próprio `CellRenderProps` já prometia: o campo `column` existe ali
|
|
4862
|
+
// com o comentário "campos auxiliares como valueFormatter", e o JSDoc de `formatValue`
|
|
4863
|
+
// diz "aplicado quando consumer não passa `column.valueFormatter`". Nenhum column-type
|
|
4864
|
+
// lia esse campo, então na prática `valueFormatter` num `type: "date"` mudava export,
|
|
4865
|
+
// totalizador e clipboard e **não mudava a célula** — a doc afirmava o contrário.
|
|
4866
|
+
renderCell: ({ value, column: column2 }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-fg-muted tabular-nums", children: column2?.valueFormatter ? column2.valueFormatter(value) : formatData(value) }),
|
|
4867
|
+
formatValue: (v) => formatData(v),
|
|
4850
4868
|
defaultAlign: "left",
|
|
4851
4869
|
defaultWidth: 130,
|
|
4852
4870
|
defaultSortable: true,
|
|
@@ -4869,9 +4887,9 @@ const SelectColumnType = {
|
|
|
4869
4887
|
if (operator === "isEmpty" || operator === "isNotEmpty") {
|
|
4870
4888
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-fg-muted text-body-sm pl-pad-md", children: "(sem valor)" });
|
|
4871
4889
|
}
|
|
4872
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4873
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4874
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4890
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(sheet.Select, { value: toScalar(value), onValueChange: (v) => onChange(v), children: [
|
|
4891
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { className: FILTER_FIELD_SIZE, children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecionar..." }) }),
|
|
4892
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: options?.map((opt) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(opt.value), children: opt.label }, String(opt.value))) })
|
|
4875
4893
|
] });
|
|
4876
4894
|
},
|
|
4877
4895
|
renderFastFilterInput: ({ value, onChange, options, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4932,7 +4950,7 @@ function MultiSelectDropdown({
|
|
|
4932
4950
|
),
|
|
4933
4951
|
children: [
|
|
4934
4952
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4935
|
-
|
|
4953
|
+
sheet.Checkbox,
|
|
4936
4954
|
{
|
|
4937
4955
|
checked: isChecked,
|
|
4938
4956
|
onCheckedChange: () => toggle(opt.value),
|
|
@@ -5029,15 +5047,15 @@ const BooleanColumnType = {
|
|
|
5029
5047
|
type: "boolean",
|
|
5030
5048
|
operators: [{ id: "equals", label: "é" }],
|
|
5031
5049
|
renderFilterInput: ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5032
|
-
|
|
5050
|
+
sheet.Select,
|
|
5033
5051
|
{
|
|
5034
5052
|
value: toBoolStr(value),
|
|
5035
5053
|
onValueChange: (v) => onChange(v === "true"),
|
|
5036
5054
|
children: [
|
|
5037
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5038
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5039
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5040
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5055
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { className: FILTER_FIELD_SIZE, children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecionar..." }) }),
|
|
5056
|
+
/* @__PURE__ */ jsxRuntime.jsxs(sheet.SelectContent, { children: [
|
|
5057
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: "true", children: "Sim" }),
|
|
5058
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: "false", children: "Não" })
|
|
5041
5059
|
] })
|
|
5042
5060
|
]
|
|
5043
5061
|
}
|
|
@@ -5494,25 +5512,25 @@ const UserColumnType = {
|
|
|
5494
5512
|
{ id: "isAnyOf", label: "é um de" }
|
|
5495
5513
|
],
|
|
5496
5514
|
renderFilterInput: ({ value, onChange, options }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5497
|
-
|
|
5515
|
+
sheet.Select,
|
|
5498
5516
|
{
|
|
5499
5517
|
value: value == null ? "" : String(value),
|
|
5500
5518
|
onValueChange: (v) => onChange(v),
|
|
5501
5519
|
children: [
|
|
5502
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5503
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5520
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { className: FILTER_FIELD_SIZE, children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecione usuário..." }) }),
|
|
5521
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: (options ?? []).map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(o.value), children: o.label }, String(o.value))) })
|
|
5504
5522
|
]
|
|
5505
5523
|
}
|
|
5506
5524
|
),
|
|
5507
5525
|
renderFastFilterInput: ({ value, onChange, options }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-pad-md", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5508
|
-
|
|
5526
|
+
sheet.Select,
|
|
5509
5527
|
{
|
|
5510
5528
|
defaultOpen: true,
|
|
5511
5529
|
value: value == null ? "" : String(value),
|
|
5512
5530
|
onValueChange: (v) => onChange(v),
|
|
5513
5531
|
children: [
|
|
5514
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5515
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5532
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecione usuário..." }) }),
|
|
5533
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: (options ?? []).map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(o.value), children: o.label }, String(o.value))) })
|
|
5516
5534
|
]
|
|
5517
5535
|
}
|
|
5518
5536
|
) }),
|
|
@@ -5580,25 +5598,25 @@ const BadgeColumnType = {
|
|
|
5580
5598
|
{ id: "isAnyOf", label: "é um de" }
|
|
5581
5599
|
],
|
|
5582
5600
|
renderFilterInput: ({ value, onChange, options }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5583
|
-
|
|
5601
|
+
sheet.Select,
|
|
5584
5602
|
{
|
|
5585
5603
|
value: value == null ? "" : String(value),
|
|
5586
5604
|
onValueChange: (v) => onChange(v),
|
|
5587
5605
|
children: [
|
|
5588
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5589
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5606
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { className: FILTER_FIELD_SIZE, children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecione..." }) }),
|
|
5607
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: (options ?? []).map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(o.value), children: o.label }, String(o.value))) })
|
|
5590
5608
|
]
|
|
5591
5609
|
}
|
|
5592
5610
|
),
|
|
5593
5611
|
renderFastFilterInput: ({ value, onChange, options }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-pad-md", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5594
|
-
|
|
5612
|
+
sheet.Select,
|
|
5595
5613
|
{
|
|
5596
5614
|
defaultOpen: true,
|
|
5597
5615
|
value: value == null ? "" : String(value),
|
|
5598
5616
|
onValueChange: (v) => onChange(v),
|
|
5599
5617
|
children: [
|
|
5600
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5601
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5618
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecione..." }) }),
|
|
5619
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: (options ?? []).map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(o.value), children: o.label }, String(o.value))) })
|
|
5602
5620
|
]
|
|
5603
5621
|
}
|
|
5604
5622
|
) }),
|
|
@@ -5667,7 +5685,7 @@ const TagsColumnType = {
|
|
|
5667
5685
|
className: "flex items-center gap-gp-md p-pad-xs rounded-radius-sm hover:bg-bg-muted cursor-pointer",
|
|
5668
5686
|
children: [
|
|
5669
5687
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5670
|
-
|
|
5688
|
+
sheet.Checkbox,
|
|
5671
5689
|
{
|
|
5672
5690
|
checked: selected.has(String(o.value)),
|
|
5673
5691
|
onCheckedChange: () => toggle(String(o.value))
|
|
@@ -5694,7 +5712,7 @@ const TagsColumnType = {
|
|
|
5694
5712
|
className: "flex items-center gap-gp-md p-pad-xs rounded-radius-sm hover:bg-bg-muted cursor-pointer",
|
|
5695
5713
|
children: [
|
|
5696
5714
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5697
|
-
|
|
5715
|
+
sheet.Checkbox,
|
|
5698
5716
|
{
|
|
5699
5717
|
checked: selected.has(String(o.value)),
|
|
5700
5718
|
onCheckedChange: () => toggle(String(o.value))
|
|
@@ -5742,9 +5760,10 @@ const ptBrShort = new Intl.DateTimeFormat("pt-BR", {
|
|
|
5742
5760
|
day: "2-digit",
|
|
5743
5761
|
month: "short"
|
|
5744
5762
|
});
|
|
5745
|
-
const
|
|
5763
|
+
const ptBrDataHora = new Intl.DateTimeFormat("pt-BR", {
|
|
5746
5764
|
day: "2-digit",
|
|
5747
|
-
month: "
|
|
5765
|
+
month: "2-digit",
|
|
5766
|
+
year: "numeric",
|
|
5748
5767
|
hour: "2-digit",
|
|
5749
5768
|
minute: "2-digit"
|
|
5750
5769
|
});
|
|
@@ -5753,10 +5772,10 @@ function formatShort(v) {
|
|
|
5753
5772
|
if (!d) return "";
|
|
5754
5773
|
return ptBrShort.format(d).replace(".", "");
|
|
5755
5774
|
}
|
|
5756
|
-
function
|
|
5775
|
+
function formatDataHora(v) {
|
|
5757
5776
|
const d = toDate(v);
|
|
5758
5777
|
if (!d) return "";
|
|
5759
|
-
return
|
|
5778
|
+
return ptBrDataHora.format(d).replace(",", "");
|
|
5760
5779
|
}
|
|
5761
5780
|
const DatetimeColumnType = {
|
|
5762
5781
|
type: "datetime",
|
|
@@ -5788,7 +5807,7 @@ const DatetimeColumnType = {
|
|
|
5788
5807
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CalendarClock, { className: "size-icon-xs text-fg-muted shrink-0" })
|
|
5789
5808
|
] }) }),
|
|
5790
5809
|
/* @__PURE__ */ jsxRuntime.jsx(avatar.PopoverContent, { align: "start", className: "p-pad-md w-auto", children: isRange ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5791
|
-
|
|
5810
|
+
sheet.Calendar,
|
|
5792
5811
|
{
|
|
5793
5812
|
mode: "range",
|
|
5794
5813
|
selected: Array.isArray(value) ? { from: toDate(value[0]), to: toDate(value[1]) } : { from: void 0, to: void 0 },
|
|
@@ -5800,7 +5819,7 @@ const DatetimeColumnType = {
|
|
|
5800
5819
|
}
|
|
5801
5820
|
}
|
|
5802
5821
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5803
|
-
|
|
5822
|
+
sheet.Calendar,
|
|
5804
5823
|
{
|
|
5805
5824
|
mode: "single",
|
|
5806
5825
|
selected: toDate(value),
|
|
@@ -5814,7 +5833,7 @@ const DatetimeColumnType = {
|
|
|
5814
5833
|
if (isRange) {
|
|
5815
5834
|
const range = { from: toDate(value[0]), to: toDate(value[1]) };
|
|
5816
5835
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-pad-md", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5817
|
-
|
|
5836
|
+
sheet.Calendar,
|
|
5818
5837
|
{
|
|
5819
5838
|
mode: "range",
|
|
5820
5839
|
selected: range,
|
|
@@ -5825,7 +5844,7 @@ const DatetimeColumnType = {
|
|
|
5825
5844
|
) });
|
|
5826
5845
|
}
|
|
5827
5846
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-pad-md", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5828
|
-
|
|
5847
|
+
sheet.Calendar,
|
|
5829
5848
|
{
|
|
5830
5849
|
mode: "single",
|
|
5831
5850
|
selected: toDate(value),
|
|
@@ -5869,8 +5888,9 @@ const DatetimeColumnType = {
|
|
|
5869
5888
|
if (operator === "lte") return cellDay <= filterDay;
|
|
5870
5889
|
return null;
|
|
5871
5890
|
},
|
|
5872
|
-
|
|
5873
|
-
|
|
5891
|
+
// `column.valueFormatter` vence o formato do tipo — mesmo escape hatch do `date`.
|
|
5892
|
+
renderCell: ({ value, column: column2 }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-fg-muted tabular-nums", children: column2?.valueFormatter ? column2.valueFormatter(value) : formatDataHora(value) }),
|
|
5893
|
+
formatValue: (v) => formatDataHora(v),
|
|
5874
5894
|
defaultAlign: "left",
|
|
5875
5895
|
defaultWidth: 160,
|
|
5876
5896
|
defaultSortable: true,
|
|
@@ -6083,7 +6103,7 @@ function FooterTable({
|
|
|
6083
6103
|
const safePage = Math.min(Math.max(1, page), lastPage);
|
|
6084
6104
|
const start = totalCount === 0 ? 0 : (safePage - 1) * pageSize + 1;
|
|
6085
6105
|
const end = Math.min(safePage * pageSize, totalCount);
|
|
6086
|
-
const pages =
|
|
6106
|
+
const pages = sheet.getPaginationRange(safePage, lastPage);
|
|
6087
6107
|
const fmt = (n) => n.toLocaleString(locale);
|
|
6088
6108
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6089
6109
|
"footer",
|
|
@@ -6100,7 +6120,7 @@ function FooterTable({
|
|
|
6100
6120
|
!hidePageSize && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "inline-flex items-center gap-gp-md text-fg-muted", children: [
|
|
6101
6121
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: pageSizeLabel }),
|
|
6102
6122
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6103
|
-
|
|
6123
|
+
sheet.Select,
|
|
6104
6124
|
{
|
|
6105
6125
|
value: String(pageSize),
|
|
6106
6126
|
onValueChange: (v) => {
|
|
@@ -6109,14 +6129,14 @@ function FooterTable({
|
|
|
6109
6129
|
},
|
|
6110
6130
|
children: [
|
|
6111
6131
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6112
|
-
|
|
6132
|
+
sheet.SelectTrigger,
|
|
6113
6133
|
{
|
|
6114
6134
|
className: "min-h-form-md w-auto pl-pad-2xl pr-pad-xl gap-gp-lg",
|
|
6115
6135
|
"aria-label": pageSizeLabel,
|
|
6116
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6136
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, {})
|
|
6117
6137
|
}
|
|
6118
6138
|
),
|
|
6119
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6139
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: pageSizeOptions.map((n) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(n), children: n }, n)) })
|
|
6120
6140
|
]
|
|
6121
6141
|
}
|
|
6122
6142
|
)
|
|
@@ -6139,24 +6159,24 @@ function FooterTable({
|
|
|
6139
6159
|
selectionCount > 1 ? "s" : ""
|
|
6140
6160
|
] })
|
|
6141
6161
|
] }),
|
|
6142
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6162
|
+
/* @__PURE__ */ jsxRuntime.jsxs(sheet.Pagination, { className: "max-sm:w-full max-sm:justify-center", children: [
|
|
6143
6163
|
!hideFirstLast && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6144
|
-
|
|
6164
|
+
sheet.PaginationFirst,
|
|
6145
6165
|
{
|
|
6146
6166
|
onClick: () => onPageChange(1),
|
|
6147
6167
|
disabled: safePage === 1
|
|
6148
6168
|
}
|
|
6149
6169
|
),
|
|
6150
6170
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6151
|
-
|
|
6171
|
+
sheet.PaginationPrevious,
|
|
6152
6172
|
{
|
|
6153
6173
|
onClick: () => onPageChange(Math.max(1, safePage - 1)),
|
|
6154
6174
|
disabled: safePage === 1
|
|
6155
6175
|
}
|
|
6156
6176
|
),
|
|
6157
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6158
|
-
(p, i) => p === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6159
|
-
|
|
6177
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.PaginationContent, { children: pages.map(
|
|
6178
|
+
(p, i) => p === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(sheet.PaginationItem, { children: /* @__PURE__ */ jsxRuntime.jsx(sheet.PaginationEllipsis, {}) }, `e-${i}`) : /* @__PURE__ */ jsxRuntime.jsx(sheet.PaginationItem, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6179
|
+
sheet.PaginationLink,
|
|
6160
6180
|
{
|
|
6161
6181
|
isActive: p === safePage,
|
|
6162
6182
|
onClick: () => onPageChange(p),
|
|
@@ -6166,14 +6186,14 @@ function FooterTable({
|
|
|
6166
6186
|
) }, p)
|
|
6167
6187
|
) }),
|
|
6168
6188
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6169
|
-
|
|
6189
|
+
sheet.PaginationNext,
|
|
6170
6190
|
{
|
|
6171
6191
|
onClick: () => onPageChange(Math.min(lastPage, safePage + 1)),
|
|
6172
6192
|
disabled: safePage === lastPage
|
|
6173
6193
|
}
|
|
6174
6194
|
),
|
|
6175
6195
|
!hideFirstLast && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6176
|
-
|
|
6196
|
+
sheet.PaginationLast,
|
|
6177
6197
|
{
|
|
6178
6198
|
onClick: () => onPageChange(lastPage),
|
|
6179
6199
|
disabled: safePage === lastPage
|
|
@@ -6791,7 +6811,7 @@ function KanbanCardOuter({
|
|
|
6791
6811
|
...a11yProps,
|
|
6792
6812
|
children: [
|
|
6793
6813
|
showCheckbox && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cardCheck({ selected }), onClick: handleStop, onPointerDown: handleStop, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6794
|
-
|
|
6814
|
+
sheet.Checkbox,
|
|
6795
6815
|
{
|
|
6796
6816
|
checked: selected,
|
|
6797
6817
|
onCheckedChange: () => onToggleSelect?.(card$1.id),
|
|
@@ -7028,7 +7048,7 @@ function ListItem({
|
|
|
7028
7048
|
}
|
|
7029
7049
|
),
|
|
7030
7050
|
selectable && /* @__PURE__ */ jsxRuntime.jsx("span", { className: s.checkbox(), onClick: stop, onPointerDown: stop, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7031
|
-
|
|
7051
|
+
sheet.Checkbox,
|
|
7032
7052
|
{
|
|
7033
7053
|
checked: state.selected,
|
|
7034
7054
|
onCheckedChange: () => onToggleSelect?.(item.id),
|
|
@@ -8170,6 +8190,7 @@ function calculateColumnWidths(columns, rows, options) {
|
|
|
8170
8190
|
growable = stillGrowable;
|
|
8171
8191
|
if (consumedThisPass < 0.5) break;
|
|
8172
8192
|
}
|
|
8193
|
+
const larguraFixa = columns.filter(isFixed).reduce((soma, col) => soma + (widths[String(col.field)] ?? 0), 0);
|
|
8173
8194
|
let lastFlexField;
|
|
8174
8195
|
let roundedTotal = 0;
|
|
8175
8196
|
for (const col of targets) {
|
|
@@ -8180,7 +8201,7 @@ function calculateColumnWidths(columns, rows, options) {
|
|
|
8180
8201
|
if (!maxed) lastFlexField = f;
|
|
8181
8202
|
}
|
|
8182
8203
|
if (lastFlexField !== void 0) {
|
|
8183
|
-
const residue = Math.round(containerWidth) - roundedTotal;
|
|
8204
|
+
const residue = Math.round(containerWidth) - larguraFixa - roundedTotal;
|
|
8184
8205
|
if (residue !== 0) {
|
|
8185
8206
|
widths[lastFlexField] = Math.max(0, widths[lastFlexField] + residue);
|
|
8186
8207
|
}
|
|
@@ -10238,9 +10259,9 @@ function SelectEditor({
|
|
|
10238
10259
|
}
|
|
10239
10260
|
},
|
|
10240
10261
|
className: "w-full",
|
|
10241
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10242
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10243
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10262
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(sheet.Select, { defaultOpen: !disabled, value, onValueChange: onChange, disabled, children: [
|
|
10263
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectTrigger, { className: "h-form-sm min-h-form-sm rounded-radius-sm", children: /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectValue, { placeholder: "Selecionar..." }) }),
|
|
10264
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SelectContent, { children: options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(sheet.SelectItem, { value: String(o.value), children: o.label }, String(o.value))) })
|
|
10244
10265
|
] })
|
|
10245
10266
|
}
|
|
10246
10267
|
);
|
|
@@ -10464,7 +10485,7 @@ function DataTableRowInner({
|
|
|
10464
10485
|
className: rowClassName,
|
|
10465
10486
|
children: [
|
|
10466
10487
|
selectionEnabled && /* @__PURE__ */ jsxRuntime.jsx(TableCell, { width: SELECTION_COLUMN_WIDTH, align: "center", purpose: "selection", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10467
|
-
|
|
10488
|
+
sheet.Checkbox,
|
|
10468
10489
|
{
|
|
10469
10490
|
checked: selected,
|
|
10470
10491
|
onCheckedChange: () => handlers.current.toggleRowSelection(row),
|
|
@@ -11924,7 +11945,7 @@ function DataTableInternal(props, ref) {
|
|
|
11924
11945
|
align: "center",
|
|
11925
11946
|
purpose: "selection",
|
|
11926
11947
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11927
|
-
|
|
11948
|
+
sheet.Checkbox,
|
|
11928
11949
|
{
|
|
11929
11950
|
checked: selection.isPageSelected(rowsToRender) ? true : selection.isPageIndeterminate(rowsToRender) ? "indeterminate" : false,
|
|
11930
11951
|
onCheckedChange: () => selection.togglePage(rowsToRender),
|
|
@@ -12178,7 +12199,7 @@ function DataTableInternal(props, ref) {
|
|
|
12178
12199
|
onClick: props.onRowClick ? () => props.onRowClick?.(row) : void 0,
|
|
12179
12200
|
header: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12180
12201
|
selectionConfig.enabled && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12181
|
-
|
|
12202
|
+
sheet.Checkbox,
|
|
12182
12203
|
{
|
|
12183
12204
|
checked: isSel,
|
|
12184
12205
|
onCheckedChange: () => selection.toggleRow(row),
|
|
@@ -12847,13 +12868,13 @@ function PanelHeader({
|
|
|
12847
12868
|
}) {
|
|
12848
12869
|
return /* @__PURE__ */ jsxRuntime.jsxs("header", { className: avatar.cn(panelHeader(), className), children: [
|
|
12849
12870
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: panelHeaderText(), children: [
|
|
12850
|
-
title2 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12871
|
+
title2 && /* @__PURE__ */ jsxRuntime.jsx(sheet.SheetTitle, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs("h2", { className: panelTitle(), children: [
|
|
12851
12872
|
TitleIcon && /* @__PURE__ */ jsxRuntime.jsx(TitleIcon, { className: panelTitleIcon(), strokeWidth: 1.8 }),
|
|
12852
12873
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: title2 })
|
|
12853
12874
|
] }) }),
|
|
12854
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12875
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(sheet.SheetDescription, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: panelDescription(), children: description }) })
|
|
12855
12876
|
] }),
|
|
12856
|
-
!hideClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12877
|
+
!hideClose && /* @__PURE__ */ jsxRuntime.jsx(sheet.SheetClose, { className: panelClose(), "aria-label": "Fechar", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 18, strokeWidth: 1.7 }) })
|
|
12857
12878
|
] });
|
|
12858
12879
|
}
|
|
12859
12880
|
function PanelBody({ children, className }) {
|
|
@@ -12907,10 +12928,10 @@ function Panel({
|
|
|
12907
12928
|
className
|
|
12908
12929
|
}) {
|
|
12909
12930
|
const sizeClass = resolveSize(size);
|
|
12910
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12911
|
-
trigger && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12931
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(sheet.Sheet, { open, defaultOpen, onOpenChange, children: [
|
|
12932
|
+
trigger && /* @__PURE__ */ jsxRuntime.jsx(sheet.SheetTrigger, { asChild: true, children: trigger }),
|
|
12912
12933
|
/* @__PURE__ */ jsxRuntime.jsxs(SheetPrimitive__namespace.Portal, { children: [
|
|
12913
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12934
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.SheetOverlay, {}),
|
|
12914
12935
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12915
12936
|
SheetPrimitive__namespace.Content,
|
|
12916
12937
|
{
|
|
@@ -13016,4 +13037,4 @@ exports.useColumnResize = useColumnResize;
|
|
|
13016
13037
|
exports.useColumnWidths = useColumnWidths;
|
|
13017
13038
|
exports.useDataTableContext = useDataTableContext;
|
|
13018
13039
|
exports.useFloatingPanelResize = useFloatingPanelResize;
|
|
13019
|
-
//# sourceMappingURL=panel-
|
|
13040
|
+
//# sourceMappingURL=panel-C3fekbdr.cjs.map
|