@povio/ui 5.0.0 → 5.0.1-rc.2
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/{Autocomplete-DbALLWP0.js → Autocomplete-BKJ5sYdA.js} +5 -5
- package/dist/{Autocomplete.bound-DCPZBYKR.js → Autocomplete.bound-B6RmJlR6.js} +2 -2
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-B7i7tj1S.js} +1 -1
- package/dist/{Calendar-B9jqOJB6.js → Calendar-DLlUsZP2.js} +3 -3
- package/dist/{Calendar.lazy-4d7pbB4k.js → Calendar.lazy-9hn-y6c8.js} +3 -3
- package/dist/{Checkbox.bound-DyQFIVCw.js → Checkbox.bound-DQYJMtCs.js} +1 -1
- package/dist/{CheckboxGroup-CK_tTvvI.js → CheckboxGroup-CneFMbCF.js} +1 -1
- package/dist/{CheckboxGroup.bound-DyCp83EI.js → CheckboxGroup.bound-BddvGfb_.js} +2 -2
- package/dist/{DatePicker-CJj3Gp_S.js → DatePicker-DUCe_SVM.js} +7 -6
- package/dist/{DatePicker.bound-BWPOirPV.js → DatePicker.bound-r5FQhOff.js} +2 -2
- package/dist/{DatePickerInput-C5-kkdpq.js → DatePickerInput-C9wcjFvV.js} +9 -7
- package/dist/{DateRangePicker-BO92JO3A.js → DateRangePicker-CkiT1lEf.js} +8 -7
- package/dist/{DateRangePicker.bound-cDWQPCUj.js → DateRangePicker.bound-Chl_cUUj.js} +2 -2
- package/dist/{DateTimePicker-DSzd33fp.js → DateTimePicker-B7qiGRqC.js} +7 -6
- package/dist/{DateTimePicker.bound-BQUJXvBQ.js → DateTimePicker.bound-LMdGgruS.js} +2 -2
- package/dist/{Dialog-DN5703sy.js → Dialog-B10YV23i.js} +1 -1
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-Dt8nr5qS.js} +2 -2
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-BjGcbdmX.js} +1 -1
- package/dist/{FileInput-dTcR3V93.js → FileInput-CDzclNi2.js} +2 -2
- package/dist/{FileInput.bound-B5b7BLGg.js → FileInput.bound-Vz2EeuOP.js} +2 -2
- package/dist/{FileUpload-JogkVfav.js → FileUpload-u81ZwwEt.js} +2 -2
- package/dist/{FileUpload.bound-TTr9FNMS.js → FileUpload.bound-LBo4ERNC.js} +2 -2
- package/dist/{FormField-dduTMkNH.js → FormField-ClLu7Hix.js} +2 -2
- package/dist/{Input-Dq2Raco6.js → Input-g9gG6FBB.js} +5 -4
- package/dist/{Input.bound-CB0WNCLI.js → Input.bound-lFOANQBr.js} +2 -2
- package/dist/{InputContent-5WKp0yNK.js → InputContent-qLj8x_zH.js} +7 -5
- package/dist/{NumberField-BQwc6a7u.js → NumberField-DodaCw5J.js} +5 -4
- package/dist/{NumberField.bound-Ha6jrlsv.js → NumberField.bound-DxgcOvm1.js} +2 -2
- package/dist/{NumberRangeInput-KngK-OvN.js → NumberRangeInput-BIBCaGE4.js} +4 -3
- package/dist/{NumberRangeInput.bound-VafOPEAu.js → NumberRangeInput.bound-BIWKaOMj.js} +2 -2
- package/dist/{PasswordInput.bound-D4tGX20e.js → PasswordInput.bound-BqTCYsLj.js} +2 -2
- package/dist/{RadioGroup-Dvq0TiEB.js → RadioGroup-HMm5cKXh.js} +1 -1
- package/dist/{RadioGroup.bound-B-xm1dwo.js → RadioGroup.bound-Bj5CLIlT.js} +2 -2
- package/dist/{RangeCalendar-p7ajg_wH.js → RangeCalendar-DQ6Ls8z7.js} +3 -3
- package/dist/{RichTextEditor-DLBfexN_.js → RichTextEditor-CHmqhNmA.js} +13 -9
- package/dist/{Select-hIRIXRz1.js → Select-s_1onwY9.js} +7 -7
- package/dist/{Select.bound-BrAIDjfv.js → Select.bound-CaNRXZDU.js} +2 -2
- package/dist/{SelectListBox-ysubv-kl.js → SelectListBox-BuKr994Y.js} +13 -4
- package/dist/{Slider-DCsCCPFx.js → Slider-8J-Ny6BX.js} +1 -1
- package/dist/{Slider.bound-CByTXPTr.js → Slider.bound-DgNK0NK1.js} +2 -2
- package/dist/{Switch.bound-Dv0cHsMM.js → Switch.bound-D8QsLsS4.js} +1 -1
- package/dist/{TabsFilters-ka2sUZPi.js → TabsFilters-DtZrvnTC.js} +1 -1
- package/dist/{TextArea-CqT0_Bn-.js → TextArea-CsTjCZIE.js} +2 -2
- package/dist/{TextArea.bound-kHkY_d9o.js → TextArea.bound-JYXWI2Vn.js} +2 -2
- package/dist/{TimePicker-Duw94UIt.js → TimePicker-BSM4Ioa_.js} +11 -9
- package/dist/{TimePicker.bound-DX5pXlgZ.js → TimePicker.bound-DGNPAcDB.js} +2 -2
- package/dist/{TimePickerForm-BiWPFcsD.js → TimePickerForm-Bv8S3M_p.js} +2 -2
- package/dist/{ToastContainer-DtpZaefx.js → ToastContainer-Cdp4jsgT.js} +24 -1
- package/dist/{ToggleGroup-Co1-A0Ti.js → ToggleGroup-BDKfPYek.js} +1 -1
- package/dist/{ToggleGroup.bound-DphkH_jH.js → ToggleGroup.bound-CF5hXyw8.js} +2 -2
- package/dist/{TooltipWrapper-DcrEabVw.js → TooltipWrapper-DmcWMIp0.js} +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/bottom-sheet-header.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/input-frame.js +5 -4
- package/dist/components/input.js +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/password-input.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/split-button.js +1 -1
- package/dist/components/style-definitions.js +2 -2
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/confirmation.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/{confirmation.context-Bc2yEVp_.js → confirmation.context-ByjNx2uA.js} +1 -1
- package/dist/{dist-fFtzh872.js → dist-C8Tl4DGt.js} +1 -1
- package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-CcFuz2Yo.js} +1 -1
- package/dist/{form.binding-DOR5gIQf.js → form.binding-Ddx5NGCq.js} +1 -1
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/{i18n-D8vXIoiq.js → i18n-DxbqkvyK.js} +14 -6
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-JT8Yui4a.d.ts} +12 -4
- package/dist/{import-C7W0Wv2r.js → import-Duf36Dbs.js} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +42 -42
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{routing.utils-DfxEt0_Y.js → routing.utils-C5FAT_Qg.js} +2 -2
- package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
- package/dist/{staticDateTimeSegments-BVvFHWOs.js → staticDateTimeSegments-DeeSpTzj.js} +1 -1
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +2 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +2 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{tanstack-CJKor9l-.d.ts → tanstack-DzNVI2Rj.d.ts} +1 -1
- package/dist/tanstack.d.ts +3 -3
- package/dist/tanstack.js +42 -42
- package/dist/{toast.runtime-BWQLlbZW.js → toast.runtime-CvmhLbUP.js} +1 -1
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-BVZ1va2U.js} +67 -14
- package/dist/{useFilters-DMi94RZK.js → useFilters-Bp9x3-09.js} +71 -78
- package/dist/{useForm-Cb7KWLds.js → useForm-C7wrpJ2t.js} +1 -1
- package/dist/{useFormAutosave-BPGlChiY.js → useFormAutosave-Cy0wTigY.js} +2 -2
- package/dist/{useTableColumnConfig-D4BGhlBT.js → useTableColumnConfig-yf7pvTbe.js} +694 -223
- package/dist/{useTableNav-hQCt_TbI.d.ts → useTableNav-DxuUTKn5.d.ts} +4 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/TableDnd-CuHxANWh.js +0 -133
|
@@ -22,8 +22,10 @@ interface ColumnConfigModalProps<TData extends RowData, TValue> {
|
|
|
22
22
|
visibleColumns: VisibilityState$2;
|
|
23
23
|
onVisibilityChange: (visibleColumns: VisibilityState$2) => void;
|
|
24
24
|
onOrderChange: (columnOrder: ColumnOrderState) => void;
|
|
25
|
+
/** Shows a "Reset" button that restores the default visibility and order. */
|
|
26
|
+
onReset?: () => void;
|
|
25
27
|
}
|
|
26
|
-
declare function ColumnConfigModal<TData extends RowData, TValue>({ isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange }: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
|
|
28
|
+
declare function ColumnConfigModal<TData extends RowData, TValue>({ isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange, onReset }: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
|
|
27
29
|
//#endregion
|
|
28
30
|
//#region src/components/table/HeaderText.d.ts
|
|
29
31
|
interface HeaderTextProps extends Partial<Pick<TypographyProps, "size">> {
|
|
@@ -146,6 +148,7 @@ declare function useTableColumnConfig<TData extends RowData, TValue>(defaultColu
|
|
|
146
148
|
columnOrder: ColumnOrderState;
|
|
147
149
|
onVisibilityChange: (value: VisibilityState) => void;
|
|
148
150
|
onOrderChange: (value: ColumnOrderState) => void;
|
|
151
|
+
resetColumns: () => void;
|
|
149
152
|
};
|
|
150
153
|
//#endregion
|
|
151
154
|
//#region src/hooks/useTableNav.d.ts
|
package/dist/utils/logger.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as logger } from "../logger-
|
|
1
|
+
import { t as logger } from "../logger-CW24po62.js";
|
|
2
2
|
export { logger };
|
package/package.json
CHANGED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
4
|
-
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
5
|
-
import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
6
|
-
import { CSS } from "@dnd-kit/utilities";
|
|
7
|
-
//#region src/components/table/TableDnd.tsx
|
|
8
|
-
const DndProvider = (t0) => {
|
|
9
|
-
const $ = c(5);
|
|
10
|
-
const { children, onDragEnd } = t0;
|
|
11
|
-
const sensors = useSensors(useSensor(MouseSensor), useSensor(TouchSensor), useSensor(KeyboardSensor));
|
|
12
|
-
let t1;
|
|
13
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14
|
-
t1 = [restrictToVerticalAxis];
|
|
15
|
-
$[0] = t1;
|
|
16
|
-
} else t1 = $[0];
|
|
17
|
-
let t2;
|
|
18
|
-
if ($[1] !== children || $[2] !== onDragEnd || $[3] !== sensors) {
|
|
19
|
-
t2 = /* @__PURE__ */ jsx(DndContext, {
|
|
20
|
-
collisionDetection: closestCenter,
|
|
21
|
-
modifiers: t1,
|
|
22
|
-
onDragEnd,
|
|
23
|
-
sensors,
|
|
24
|
-
children
|
|
25
|
-
});
|
|
26
|
-
$[1] = children;
|
|
27
|
-
$[2] = onDragEnd;
|
|
28
|
-
$[3] = sensors;
|
|
29
|
-
$[4] = t2;
|
|
30
|
-
} else t2 = $[4];
|
|
31
|
-
return t2;
|
|
32
|
-
};
|
|
33
|
-
const SortableRows = (t0) => {
|
|
34
|
-
const $ = c(3);
|
|
35
|
-
const { children, items } = t0;
|
|
36
|
-
let t1;
|
|
37
|
-
if ($[0] !== children || $[1] !== items) {
|
|
38
|
-
t1 = /* @__PURE__ */ jsx(SortableContext, {
|
|
39
|
-
items,
|
|
40
|
-
strategy: verticalListSortingStrategy,
|
|
41
|
-
children
|
|
42
|
-
});
|
|
43
|
-
$[0] = children;
|
|
44
|
-
$[1] = items;
|
|
45
|
-
$[2] = t1;
|
|
46
|
-
} else t1 = $[2];
|
|
47
|
-
return t1;
|
|
48
|
-
};
|
|
49
|
-
const DraggableRow = (t0) => {
|
|
50
|
-
const $ = c(18);
|
|
51
|
-
const { id, className, isClickable, isSelected, onClick, onDoubleClick, children } = t0;
|
|
52
|
-
let t1;
|
|
53
|
-
if ($[0] !== id) {
|
|
54
|
-
t1 = { id };
|
|
55
|
-
$[0] = id;
|
|
56
|
-
$[1] = t1;
|
|
57
|
-
} else t1 = $[1];
|
|
58
|
-
const { transform, transition, setNodeRef, isDragging } = useSortable(t1);
|
|
59
|
-
let t2;
|
|
60
|
-
if ($[2] !== transform) {
|
|
61
|
-
t2 = CSS.Transform.toString(transform);
|
|
62
|
-
$[2] = transform;
|
|
63
|
-
$[3] = t2;
|
|
64
|
-
} else t2 = $[3];
|
|
65
|
-
const t3 = isDragging ? .8 : 1;
|
|
66
|
-
const t4 = isDragging ? 1 : 0;
|
|
67
|
-
let t5;
|
|
68
|
-
if ($[4] !== t2 || $[5] !== t3 || $[6] !== t4 || $[7] !== transition) {
|
|
69
|
-
t5 = {
|
|
70
|
-
transform: t2,
|
|
71
|
-
transition,
|
|
72
|
-
opacity: t3,
|
|
73
|
-
zIndex: t4,
|
|
74
|
-
position: "relative"
|
|
75
|
-
};
|
|
76
|
-
$[4] = t2;
|
|
77
|
-
$[5] = t3;
|
|
78
|
-
$[6] = t4;
|
|
79
|
-
$[7] = transition;
|
|
80
|
-
$[8] = t5;
|
|
81
|
-
} else t5 = $[8];
|
|
82
|
-
const style = t5;
|
|
83
|
-
const t6 = isClickable || void 0;
|
|
84
|
-
const t7 = isSelected || void 0;
|
|
85
|
-
let t8;
|
|
86
|
-
if ($[9] !== children || $[10] !== className || $[11] !== onClick || $[12] !== onDoubleClick || $[13] !== setNodeRef || $[14] !== style || $[15] !== t6 || $[16] !== t7) {
|
|
87
|
-
t8 = /* @__PURE__ */ jsx("tr", {
|
|
88
|
-
ref: setNodeRef,
|
|
89
|
-
style,
|
|
90
|
-
className,
|
|
91
|
-
"data-clickable": t6,
|
|
92
|
-
"data-selected": t7,
|
|
93
|
-
onClick,
|
|
94
|
-
onDoubleClick,
|
|
95
|
-
children
|
|
96
|
-
});
|
|
97
|
-
$[9] = children;
|
|
98
|
-
$[10] = className;
|
|
99
|
-
$[11] = onClick;
|
|
100
|
-
$[12] = onDoubleClick;
|
|
101
|
-
$[13] = setNodeRef;
|
|
102
|
-
$[14] = style;
|
|
103
|
-
$[15] = t6;
|
|
104
|
-
$[16] = t7;
|
|
105
|
-
$[17] = t8;
|
|
106
|
-
} else t8 = $[17];
|
|
107
|
-
return t8;
|
|
108
|
-
};
|
|
109
|
-
const DragHandle = (t0) => {
|
|
110
|
-
const $ = c(6);
|
|
111
|
-
const { id, children } = t0;
|
|
112
|
-
let t1;
|
|
113
|
-
if ($[0] !== id) {
|
|
114
|
-
t1 = { id };
|
|
115
|
-
$[0] = id;
|
|
116
|
-
$[1] = t1;
|
|
117
|
-
} else t1 = $[1];
|
|
118
|
-
const { attributes, listeners } = useSortable(t1);
|
|
119
|
-
let t2;
|
|
120
|
-
if ($[2] !== attributes || $[3] !== children || $[4] !== listeners) {
|
|
121
|
-
t2 = children({
|
|
122
|
-
...attributes,
|
|
123
|
-
...listeners
|
|
124
|
-
});
|
|
125
|
-
$[2] = attributes;
|
|
126
|
-
$[3] = children;
|
|
127
|
-
$[4] = listeners;
|
|
128
|
-
$[5] = t2;
|
|
129
|
-
} else t2 = $[5];
|
|
130
|
-
return t2;
|
|
131
|
-
};
|
|
132
|
-
//#endregion
|
|
133
|
-
export { DndProvider, DragHandle, DraggableRow, SortableRows };
|