ivt 0.5.6 → 0.5.8
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/accordion/index.mjs +15 -15
- package/dist/accordion-table/index.mjs +27 -27
- package/dist/alert/index.mjs +2 -2
- package/dist/alert-dialog/index.mjs +17 -17
- package/dist/aspect-ratio/index.mjs +1 -1
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +1 -0
- package/dist/base/index.mjs +56 -49
- package/dist/base/index.mjs.map +1 -1
- package/dist/breadcrumb/index.mjs +5 -5
- package/dist/button/index.mjs +3 -3
- package/dist/button-group/index.mjs +4 -4
- package/dist/calendar/index.mjs +9 -9
- package/dist/card/index.mjs +3 -3
- package/dist/carousel/index.mjs +4 -4
- package/dist/chart/index.mjs +4 -4
- package/dist/checkbox/index.mjs +14 -14
- package/dist/chunks/{CalendarRange-Bag_yGEQ.mjs → CalendarRange-BBDdipiF.mjs} +8 -8
- package/dist/chunks/{CalendarRange-Bag_yGEQ.mjs.map → CalendarRange-BBDdipiF.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-BLTT982W.mjs → ComboboxField-CQ9hWD8h.mjs} +9 -9
- package/dist/chunks/{ComboboxField-BLTT982W.mjs.map → ComboboxField-CQ9hWD8h.mjs.map} +1 -1
- package/dist/chunks/{Container-CDOK_e_b.mjs → Container-Dc7omjsi.mjs} +2 -2
- package/dist/chunks/{Container-CDOK_e_b.mjs.map → Container-Dc7omjsi.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-BUcMwZqw.mjs → DeleteConfirmationModal-DY1WIUjV.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-BUcMwZqw.mjs.map → DeleteConfirmationModal-DY1WIUjV.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-B23VyuOv.mjs → TooltipIndicator-CRQxZJc4.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-B23VyuOv.mjs.map → TooltipIndicator-CRQxZJc4.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-4KUcxYfY.mjs → _commonjsHelpers-CHnJMbeQ.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-CHnJMbeQ.mjs.map +1 -0
- package/dist/chunks/{accordion-Cz5ayAWy.mjs → accordion-Cs11bdwn.mjs} +11 -11
- package/dist/chunks/{accordion-Cz5ayAWy.mjs.map → accordion-Cs11bdwn.mjs.map} +1 -1
- package/dist/chunks/{badge-DcTK-GBP.mjs → badge-OLIlDazt.mjs} +2 -2
- package/dist/chunks/{badge-DcTK-GBP.mjs.map → badge-OLIlDazt.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-CGLhO34T.mjs → bundle-mjs-CDsJv8mx.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-CGLhO34T.mjs.map → bundle-mjs-CDsJv8mx.mjs.map} +1 -1
- package/dist/chunks/{button-D_MnAjQl.mjs → button-C8kDXHHO.mjs} +2 -2
- package/dist/chunks/{button-D_MnAjQl.mjs.map → button-C8kDXHHO.mjs.map} +1 -1
- package/dist/chunks/{calendar-DGNoWQgo.mjs → calendar-B3ttB6VU.mjs} +7 -7
- package/dist/chunks/{calendar-DGNoWQgo.mjs.map → calendar-B3ttB6VU.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-CGnc9ko6.mjs → calendar-days-DywZyGDA.mjs} +2 -2
- package/dist/chunks/{calendar-days-CGnc9ko6.mjs.map → calendar-days-DywZyGDA.mjs.map} +1 -1
- package/dist/chunks/{card-DZ3filVx.mjs → card-DZyd1XuD.mjs} +2 -2
- package/dist/chunks/{card-DZ3filVx.mjs.map → card-DZyd1XuD.mjs.map} +1 -1
- package/dist/chunks/{check-DEf9V4Nh.mjs → check-LwrFK8tw.mjs} +2 -2
- package/dist/chunks/{check-DEf9V4Nh.mjs.map → check-LwrFK8tw.mjs.map} +1 -1
- package/dist/chunks/{checkbox-DjzhCYqW.mjs → checkbox-ggJwH1Qi.mjs} +11 -11
- package/dist/chunks/{checkbox-DjzhCYqW.mjs.map → checkbox-ggJwH1Qi.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-CNWi6KOF.mjs → chevron-down-BW_fza_f.mjs} +2 -2
- package/dist/chunks/{chevron-down-CNWi6KOF.mjs.map → chevron-down-BW_fza_f.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-Cla2-kGr.mjs → chevron-left-iSYNdGiZ.mjs} +2 -2
- package/dist/chunks/{chevron-left-Cla2-kGr.mjs.map → chevron-left-iSYNdGiZ.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-C3X2iYjh.mjs → chevron-right-BDBexrwi.mjs} +2 -2
- package/dist/chunks/{chevron-right-C3X2iYjh.mjs.map → chevron-right-BDBexrwi.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-Dcziczc9.mjs → chevrons-up-down-krhX0LvO.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-Dcziczc9.mjs.map → chevrons-up-down-krhX0LvO.mjs.map} +1 -1
- package/dist/chunks/{command-c98KtQLr.mjs → command-Dmn5Zotf.mjs} +8 -8
- package/dist/chunks/{command-c98KtQLr.mjs.map → command-Dmn5Zotf.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BQUZb4BK.mjs → createLucideIcon-Cs209BXY.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BQUZb4BK.mjs.map → createLucideIcon-Cs209BXY.mjs.map} +1 -1
- package/dist/chunks/{date-BX6jqpaN.mjs → date-Cp5v7MCD.mjs} +2 -2
- package/dist/chunks/{date-BX6jqpaN.mjs.map → date-Cp5v7MCD.mjs.map} +1 -1
- package/dist/chunks/{dialog-Bzks3Ko4.mjs → dialog-DGL-wjm5.mjs} +4 -4
- package/dist/chunks/{dialog-Bzks3Ko4.mjs.map → dialog-DGL-wjm5.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-S2vrEUTX.mjs → ellipsis-z3pVR1Ha.mjs} +2 -2
- package/dist/chunks/{ellipsis-S2vrEUTX.mjs.map → ellipsis-z3pVR1Ha.mjs.map} +1 -1
- package/dist/chunks/{form-CwxoZkN0.mjs → form-Bfc0Vrf9.mjs} +3 -3
- package/dist/chunks/{form-CwxoZkN0.mjs.map → form-Bfc0Vrf9.mjs.map} +1 -1
- package/dist/chunks/{format-6LfcNksm.mjs → format-Bw766LiP.mjs} +1 -1
- package/dist/chunks/{format-6LfcNksm.mjs.map → format-Bw766LiP.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-NnQQahT8.mjs → format-numbers-B2Xg1Xd4.mjs} +1 -1
- package/dist/chunks/{format-numbers-NnQQahT8.mjs.map → format-numbers-B2Xg1Xd4.mjs.map} +1 -1
- package/dist/chunks/{hover-card-5rT-1QMh.mjs → hover-card-B1iaMKeT.mjs} +11 -11
- package/dist/chunks/{hover-card-5rT-1QMh.mjs.map → hover-card-B1iaMKeT.mjs.map} +1 -1
- package/dist/chunks/{index-BCbVqu_3.mjs → index-5BIVlsf0.mjs} +2 -2
- package/dist/chunks/{index-BCbVqu_3.mjs.map → index-5BIVlsf0.mjs.map} +1 -1
- package/dist/chunks/{index-BQ-TEa5d.mjs → index-7aYTflwq.mjs} +1 -1
- package/dist/chunks/{index-BQ-TEa5d.mjs.map → index-7aYTflwq.mjs.map} +1 -1
- package/dist/chunks/{index-AKiXR0pZ.mjs → index-B79kyzoW.mjs} +1 -1
- package/dist/chunks/{index-AKiXR0pZ.mjs.map → index-B79kyzoW.mjs.map} +1 -1
- package/dist/chunks/{index-CY5xJaha.mjs → index-BKBEmeOE.mjs} +1 -1
- package/dist/chunks/{index-CY5xJaha.mjs.map → index-BKBEmeOE.mjs.map} +1 -1
- package/dist/chunks/{index-UxueW3GO.mjs → index-BYjPaTiQ.mjs} +15 -15
- package/dist/chunks/{index-UxueW3GO.mjs.map → index-BYjPaTiQ.mjs.map} +1 -1
- package/dist/chunks/{index-BmDvd1mU.mjs → index-BamMmpxT.mjs} +11 -11
- package/dist/chunks/{index-BmDvd1mU.mjs.map → index-BamMmpxT.mjs.map} +1 -1
- package/dist/chunks/{index-DLownQDQ.mjs → index-Bbl_XfK5.mjs} +2 -2
- package/dist/chunks/{index-DLownQDQ.mjs.map → index-Bbl_XfK5.mjs.map} +1 -1
- package/dist/chunks/{index-4TCt3gOI.mjs → index-BwahdO40.mjs} +3 -3
- package/dist/chunks/{index-4TCt3gOI.mjs.map → index-BwahdO40.mjs.map} +1 -1
- package/dist/chunks/{index-BWnbRXP-.mjs → index-CHnGKuc1.mjs} +7 -7
- package/dist/chunks/{index-BWnbRXP-.mjs.map → index-CHnGKuc1.mjs.map} +1 -1
- package/dist/chunks/{index-BmW-kojJ.mjs → index-CJznEDFQ.mjs} +1 -1
- package/dist/chunks/{index-BmW-kojJ.mjs.map → index-CJznEDFQ.mjs.map} +1 -1
- package/dist/chunks/{index-Cq-A6c3g.mjs → index-Ctl41mbz.mjs} +1 -1
- package/dist/chunks/{index-Cq-A6c3g.mjs.map → index-Ctl41mbz.mjs.map} +1 -1
- package/dist/chunks/{index-CGiXQ4Pe.mjs → index-CuPJzY2D.mjs} +9 -9
- package/dist/chunks/{index-CGiXQ4Pe.mjs.map → index-CuPJzY2D.mjs.map} +1 -1
- package/dist/chunks/{index-6boixHzs.mjs → index-D1Oqvl53.mjs} +2 -2
- package/dist/chunks/{index-6boixHzs.mjs.map → index-D1Oqvl53.mjs.map} +1 -1
- package/dist/chunks/{index-T-_ESk_G.mjs → index-D33V_3rS.mjs} +1 -1
- package/dist/chunks/{index-T-_ESk_G.mjs.map → index-D33V_3rS.mjs.map} +1 -1
- package/dist/chunks/{index-C_z2VNWo.mjs → index-D3kx7k_i.mjs} +1 -1
- package/dist/chunks/{index-C_z2VNWo.mjs.map → index-D3kx7k_i.mjs.map} +1 -1
- package/dist/chunks/{index-wAh1wx6m.mjs → index-DM3MyE-N.mjs} +9 -9
- package/dist/chunks/{index-wAh1wx6m.mjs.map → index-DM3MyE-N.mjs.map} +1 -1
- package/dist/chunks/{index-B2gDNmb8.mjs → index-Df3YRRgX.mjs} +5 -5
- package/dist/chunks/{index-B2gDNmb8.mjs.map → index-Df3YRRgX.mjs.map} +1 -1
- package/dist/chunks/{index-DkGvxlDJ.mjs → index-EhkpAtV_.mjs} +2 -2
- package/dist/chunks/{index-DkGvxlDJ.mjs.map → index-EhkpAtV_.mjs.map} +1 -1
- package/dist/chunks/{index-DSLICNwF.mjs → index-TBrLKN9p.mjs} +1 -1
- package/dist/chunks/{index-DSLICNwF.mjs.map → index-TBrLKN9p.mjs.map} +1 -1
- package/dist/chunks/{index-Cs_8Iu2P.mjs → index-YOMvi8__.mjs} +1 -1
- package/dist/chunks/{index-Cs_8Iu2P.mjs.map → index-YOMvi8__.mjs.map} +1 -1
- package/dist/chunks/{index-BUvLOcM1.mjs → index-ZrPnvFCM.mjs} +1 -1
- package/dist/chunks/{index-BUvLOcM1.mjs.map → index-ZrPnvFCM.mjs.map} +1 -1
- package/dist/chunks/{index-M3WHAYcQ.mjs → index-g06EAstv.mjs} +5 -5
- package/dist/chunks/{index-M3WHAYcQ.mjs.map → index-g06EAstv.mjs.map} +1 -1
- package/dist/chunks/{index-BjgE_yhl.mjs → index-wKi7FsfC.mjs} +3 -3
- package/dist/chunks/{index-BjgE_yhl.mjs.map → index-wKi7FsfC.mjs.map} +1 -1
- package/dist/chunks/{input-DKrW5tuu.mjs → input-Cq3hRDLY.mjs} +2 -2
- package/dist/chunks/{input-DKrW5tuu.mjs.map → input-Cq3hRDLY.mjs.map} +1 -1
- package/dist/chunks/{label-BuC6aAG0.mjs → label-D9mw8gry.mjs} +3 -3
- package/dist/chunks/{label-BuC6aAG0.mjs.map → label-D9mw8gry.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-Df9_-0g-.mjs → loader-circle-DN94bZLW.mjs} +2 -2
- package/dist/chunks/{loader-circle-Df9_-0g-.mjs.map → loader-circle-DN94bZLW.mjs.map} +1 -1
- package/dist/chunks/{multi-select--jT_ewJI.mjs → multi-select-p8e7hqdd.mjs} +12 -12
- package/dist/chunks/{multi-select--jT_ewJI.mjs.map → multi-select-p8e7hqdd.mjs.map} +1 -1
- package/dist/chunks/{pagination-m1KTCwr8.mjs → pagination-DVnnlPCe.mjs} +6 -6
- package/dist/chunks/{pagination-m1KTCwr8.mjs.map → pagination-DVnnlPCe.mjs.map} +1 -1
- package/dist/chunks/{popover-n__dGmWJ.mjs → popover-Cxd1LZHE.mjs} +13 -13
- package/dist/chunks/{popover-n__dGmWJ.mjs.map → popover-Cxd1LZHE.mjs.map} +1 -1
- package/dist/chunks/{progress-DzHu9qd2.mjs → progress-BHF75OVa.mjs} +4 -4
- package/dist/chunks/{progress-DzHu9qd2.mjs.map → progress-BHF75OVa.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-CmBAGhhQ.mjs → react-number-format.es-BBXgiDBD.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-CmBAGhhQ.mjs.map → react-number-format.es-BBXgiDBD.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-DDlmn7ag.mjs → scroll-area-DTwYYQ8q.mjs} +11 -11
- package/dist/chunks/{scroll-area-DDlmn7ag.mjs.map → scroll-area-DTwYYQ8q.mjs.map} +1 -1
- package/dist/chunks/{select-BdW90s0k.mjs → select-Bkmq2X8X.mjs} +5 -5
- package/dist/chunks/{select-BdW90s0k.mjs.map → select-Bkmq2X8X.mjs.map} +1 -1
- package/dist/chunks/{separator-CkJ0LBlz.mjs → separator-gh3PBnpH.mjs} +3 -3
- package/dist/chunks/{separator-CkJ0LBlz.mjs.map → separator-gh3PBnpH.mjs.map} +1 -1
- package/dist/chunks/{sheet-BLsRYTsa.mjs → sheet-BT9RwmPS.mjs} +4 -4
- package/dist/chunks/{sheet-BLsRYTsa.mjs.map → sheet-BT9RwmPS.mjs.map} +1 -1
- package/dist/chunks/{skeleton-CGj35I4b.mjs → skeleton-CXrLE3fs.mjs} +2 -2
- package/dist/chunks/{skeleton-CGj35I4b.mjs.map → skeleton-CXrLE3fs.mjs.map} +1 -1
- package/dist/chunks/{sortable-CxR7dghC.mjs → sortable-DC4HebwV.mjs} +14 -8
- package/dist/chunks/{sortable-CxR7dghC.mjs.map → sortable-DC4HebwV.mjs.map} +1 -1
- package/dist/chunks/{table-YJw4-dig.mjs → table-nPqfWR0d.mjs} +3 -3
- package/dist/chunks/{table-YJw4-dig.mjs.map → table-nPqfWR0d.mjs.map} +1 -1
- package/dist/chunks/{textarea-uqJyF5jY.mjs → textarea-CvJAEfFK.mjs} +2 -2
- package/dist/chunks/{textarea-uqJyF5jY.mjs.map → textarea-CvJAEfFK.mjs.map} +1 -1
- package/dist/chunks/{toggle-DnllXBCB.mjs → toggle-UnHxq53A.mjs} +5 -5
- package/dist/chunks/{toggle-DnllXBCB.mjs.map → toggle-UnHxq53A.mjs.map} +1 -1
- package/dist/chunks/{tooltip-kXkkJZem.mjs → tooltip-B8zF2C8j.mjs} +13 -13
- package/dist/chunks/{tooltip-kXkkJZem.mjs.map → tooltip-B8zF2C8j.mjs.map} +1 -1
- package/dist/chunks/{trash-2-CJs96X7u.mjs → trash-2-CMgAgkKK.mjs} +2 -2
- package/dist/chunks/{trash-2-CJs96X7u.mjs.map → trash-2-CMgAgkKK.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-CW5j-i5O.mjs → triangle-alert-XjlHTdeo.mjs} +2 -2
- package/dist/chunks/{triangle-alert-CW5j-i5O.mjs.map → triangle-alert-XjlHTdeo.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-dqPUMt5Y.mjs → tslib.es6--9nUwZOO.mjs} +1 -1
- package/dist/chunks/{tslib.es6-dqPUMt5Y.mjs.map → tslib.es6--9nUwZOO.mjs.map} +1 -1
- package/dist/chunks/{utils-D8c5tyzG.mjs → utils-Cle2i1lJ.mjs} +2 -2
- package/dist/chunks/{utils-D8c5tyzG.mjs.map → utils-Cle2i1lJ.mjs.map} +1 -1
- package/dist/chunks/{x-DYQCuAK0.mjs → x-CSOUAHrZ.mjs} +2 -2
- package/dist/chunks/{x-DYQCuAK0.mjs.map → x-CSOUAHrZ.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +9 -9
- package/dist/combobox/index.mjs +26 -26
- package/dist/command/index.mjs +20 -20
- package/dist/context-menu/index.mjs +23 -23
- package/dist/dash/index.mjs +25 -25
- package/dist/data-table/index.d.ts +26 -3
- package/dist/data-table/index.mjs +201 -59
- package/dist/data-table/index.mjs.map +1 -1
- package/dist/date-picker/index.mjs +27 -27
- package/dist/dialog/index.mjs +19 -19
- package/dist/drawer/index.mjs +16 -16
- package/dist/dropdown-menu/index.mjs +23 -23
- package/dist/dropzone/index.mjs +18 -18
- package/dist/editable-table/index.mjs +10 -10
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.mjs +5 -5
- package/dist/form/index.mjs +5 -5
- package/dist/form-fields/index.mjs +28 -28
- package/dist/hover-card/index.mjs +15 -15
- package/dist/icon/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/input/index.mjs +3 -3
- package/dist/input-group/index.mjs +5 -5
- package/dist/input-otp/index.mjs +3 -3
- package/dist/item/index.mjs +4 -4
- package/dist/ivt.css +1 -1
- package/dist/kbd/index.mjs +2 -2
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.mjs +6 -6
- package/dist/menubar/index.mjs +23 -23
- package/dist/multi-select/index.mjs +31 -31
- package/dist/navigation-menu/index.mjs +17 -17
- package/dist/pagination/index.mjs +8 -8
- package/dist/popover/index.mjs +18 -18
- package/dist/progress/index.mjs +5 -5
- package/dist/radio-group/index.mjs +17 -17
- package/dist/resizable/index.mjs +3 -3
- package/dist/scroll-area/index.mjs +12 -12
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +4 -4
- package/dist/shared/index.mjs +5 -5
- package/dist/sheet/index.mjs +19 -19
- package/dist/sidebar/index.mjs +27 -27
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.mjs +12 -12
- package/dist/sortable/index.d.ts +7 -1
- package/dist/sortable/index.mjs +4 -4
- package/dist/spinner/index.mjs +4 -4
- package/dist/switch/index.mjs +10 -10
- package/dist/table/index.mjs +3 -3
- package/dist/table-filter/index.d.ts +29 -11
- package/dist/table-filter/index.mjs +82 -75
- package/dist/table-filter/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +13 -13
- package/dist/textarea/index.mjs +3 -3
- package/dist/toast/index.mjs +15 -15
- package/dist/toggle/index.mjs +7 -7
- package/dist/toggle-group/index.mjs +13 -13
- package/dist/tooltip/index.mjs +17 -17
- package/package.json +1 -1
- package/dist/chunks/_commonjsHelpers-4KUcxYfY.mjs.map +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { forwardRef, createElement } from 'react';
|
|
3
|
-
import { c as cn } from '../chunks/utils-
|
|
4
|
-
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-
|
|
5
|
-
import { C as ChevronLeft } from '../chunks/chevron-left-
|
|
6
|
-
import { C as ChevronRight } from '../chunks/chevron-right-
|
|
7
|
-
import { c as PaginationItem, f as PaginationEllipsis } from '../chunks/pagination-
|
|
8
|
-
import { B as Button } from '../chunks/button-
|
|
9
|
-
import { S as Skeleton } from '../chunks/skeleton-
|
|
10
|
-
import { e as TableRow, f as TableCell, T as Table, a as TableHeader, d as TableHead, b as TableBody } from '../chunks/table-
|
|
11
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
12
|
-
import { S as Sortable, b as SortableItem } from '../chunks/sortable-
|
|
13
|
-
import { S as Search, C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, f as CommandItem, e as CommandGroup } from '../chunks/command-
|
|
14
|
-
import { I as Input } from '../chunks/input-
|
|
15
|
-
import { C as ChevronDown } from '../chunks/chevron-down-
|
|
16
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
17
|
-
import { C as Check } from '../chunks/check-
|
|
18
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import { c as cn } from '../chunks/utils-Cle2i1lJ.mjs';
|
|
4
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-Bkmq2X8X.mjs';
|
|
5
|
+
import { C as ChevronLeft } from '../chunks/chevron-left-iSYNdGiZ.mjs';
|
|
6
|
+
import { C as ChevronRight } from '../chunks/chevron-right-BDBexrwi.mjs';
|
|
7
|
+
import { c as PaginationItem, f as PaginationEllipsis } from '../chunks/pagination-DVnnlPCe.mjs';
|
|
8
|
+
import { B as Button } from '../chunks/button-C8kDXHHO.mjs';
|
|
9
|
+
import { S as Skeleton } from '../chunks/skeleton-CXrLE3fs.mjs';
|
|
10
|
+
import { e as TableRow, f as TableCell, T as Table, a as TableHeader, d as TableHead, b as TableBody } from '../chunks/table-nPqfWR0d.mjs';
|
|
11
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-Cs209BXY.mjs';
|
|
12
|
+
import { S as Sortable, b as SortableItem } from '../chunks/sortable-DC4HebwV.mjs';
|
|
13
|
+
import { S as Search, C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, f as CommandItem, e as CommandGroup } from '../chunks/command-Dmn5Zotf.mjs';
|
|
14
|
+
import { I as Input } from '../chunks/input-Cq3hRDLY.mjs';
|
|
15
|
+
import { C as ChevronDown } from '../chunks/chevron-down-BW_fza_f.mjs';
|
|
16
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-Cxd1LZHE.mjs';
|
|
17
|
+
import { C as Check } from '../chunks/check-LwrFK8tw.mjs';
|
|
18
|
+
import '../chunks/bundle-mjs-CDsJv8mx.mjs';
|
|
19
19
|
import '@radix-ui/react-select';
|
|
20
|
-
import '../chunks/ellipsis-
|
|
20
|
+
import '../chunks/ellipsis-z3pVR1Ha.mjs';
|
|
21
21
|
import '@radix-ui/react-slot';
|
|
22
22
|
import 'class-variance-authority';
|
|
23
23
|
import 'react-dom';
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
24
|
+
import '../chunks/index-BamMmpxT.mjs';
|
|
25
|
+
import '../chunks/index-TBrLKN9p.mjs';
|
|
26
|
+
import '../chunks/index-ZrPnvFCM.mjs';
|
|
27
|
+
import '../chunks/index-D3kx7k_i.mjs';
|
|
28
28
|
import 'react/jsx-runtime';
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/index-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
36
|
-
import '../chunks/tslib.es6
|
|
37
|
-
import '../chunks/index-
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/dialog-
|
|
40
|
-
import '../chunks/x-
|
|
41
|
-
import '../chunks/index-
|
|
42
|
-
import '../chunks/index-
|
|
29
|
+
import '../chunks/index-Bbl_XfK5.mjs';
|
|
30
|
+
import '../chunks/index-D33V_3rS.mjs';
|
|
31
|
+
import '../chunks/index-D1Oqvl53.mjs';
|
|
32
|
+
import '../chunks/index-Df3YRRgX.mjs';
|
|
33
|
+
import '../chunks/index-CJznEDFQ.mjs';
|
|
34
|
+
import '../chunks/index-Ctl41mbz.mjs';
|
|
35
|
+
import '../chunks/index-g06EAstv.mjs';
|
|
36
|
+
import '../chunks/tslib.es6--9nUwZOO.mjs';
|
|
37
|
+
import '../chunks/index-BwahdO40.mjs';
|
|
38
|
+
import '../chunks/index-wKi7FsfC.mjs';
|
|
39
|
+
import '../chunks/dialog-DGL-wjm5.mjs';
|
|
40
|
+
import '../chunks/x-CSOUAHrZ.mjs';
|
|
41
|
+
import '../chunks/index-CHnGKuc1.mjs';
|
|
42
|
+
import '../chunks/index-EhkpAtV_.mjs';
|
|
43
43
|
|
|
44
44
|
const __iconNode$1 = [
|
|
45
45
|
[
|
|
@@ -138,7 +138,7 @@ function DataTablePagination({ table, pageSizeOptions = [
|
|
|
138
138
|
50,
|
|
139
139
|
100,
|
|
140
140
|
200
|
|
141
|
-
], dataLabel = "Fundos", infoExtraLabel }) {
|
|
141
|
+
], dataLabel = "Fundos", infoExtraLabel, showPaginationControls = true, showDataLabel = true, footerAction, maxVisualRows }) {
|
|
142
142
|
const pageSize = pageSizeOptions[0];
|
|
143
143
|
const currentPage = table.getState().pagination.pageIndex + 1;
|
|
144
144
|
const rowCount = table.getRowCount();
|
|
@@ -192,14 +192,17 @@ function DataTablePagination({ table, pageSizeOptions = [
|
|
|
192
192
|
}
|
|
193
193
|
return items;
|
|
194
194
|
};
|
|
195
|
+
if (!showPaginationControls && !showDataLabel) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
195
198
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
196
199
|
className: "mt-4 flex flex-wrap items-center justify-between gap-2"
|
|
197
|
-
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
198
|
-
className: "text-muted-foreground flex gap-
|
|
200
|
+
}, showDataLabel && /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement("div", {
|
|
201
|
+
className: "text-muted-foreground flex items-center gap-4 text-sm"
|
|
199
202
|
}, /*#__PURE__*/ React__default.createElement("p", {
|
|
200
203
|
className: "ml-2"
|
|
201
|
-
}, "Mostrando ", table.getRowModel().rows.length.toLocaleString(), " de ", rowCount, " ", dataLabel, ".",
|
|
202
|
-
className: "flex flex-wrap items-center justify-between gap-2 gap-y-4"
|
|
204
|
+
}, "Mostrando", " ", (maxVisualRows ? Math.min(table.getRowModel().rows.length, maxVisualRows) : table.getRowModel().rows.length).toLocaleString(), " ", "de ", rowCount, " ", dataLabel, ". ", infoExtraLabel && infoExtraLabel)), /*#__PURE__*/ React__default.createElement("div", null, footerAction && /*#__PURE__*/ React__default.createElement("div", null, footerAction))), showPaginationControls && /*#__PURE__*/ React__default.createElement("div", {
|
|
205
|
+
className: "flex flex-wrap items-center justify-between gap-2 gap-y-4 ml-auto"
|
|
203
206
|
}, /*#__PURE__*/ React__default.createElement(Select, {
|
|
204
207
|
value: String(table.getState().pagination.pageSize) || String(pageSize),
|
|
205
208
|
onValueChange: (value)=>table.setPageSize(Number(value))
|
|
@@ -271,7 +274,7 @@ function DataTableRowSkeleton(props) {
|
|
|
271
274
|
}))))));
|
|
272
275
|
}
|
|
273
276
|
|
|
274
|
-
const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns = [], messageEmpty = /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, "Sem resultados"), dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass = "sm:max-h-[calc(100vh-300px)]", isScrollable = false, fixedHeader = false, showPagination = true, renderTooltip, infoExtraLabel })=>{
|
|
277
|
+
const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns = [], messageEmpty = /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, "Sem resultados"), dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass = "sm:max-h-[calc(100vh-300px)]", isScrollable = false, fixedHeader = false, showPagination = true, showDataLabel = true, renderTooltip, renderSubComponent, infoExtraLabel, footerAction, maxVisualRows })=>{
|
|
275
278
|
const currentPage = Number(table.getState().pagination.pageIndex).toString();
|
|
276
279
|
const pageSize = Number(table.getState().pagination.pageSize).toString();
|
|
277
280
|
const sorting = table.getState().sorting;
|
|
@@ -317,13 +320,20 @@ const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, se
|
|
|
317
320
|
className: "inline-block max-w-120 text-wrap wrap-break-word"
|
|
318
321
|
}, messageEmpty)));
|
|
319
322
|
}
|
|
320
|
-
|
|
323
|
+
const rows = table.getRowModel().rows;
|
|
324
|
+
const rowsToRender = maxVisualRows ? rows.slice(0, maxVisualRows) : rows;
|
|
325
|
+
return rowsToRender.map((row, index)=>{
|
|
326
|
+
// Se estivermos usando renderSubComponent (modo Master-Detail),
|
|
327
|
+
// ignoramos as sub-linhas no loop principal para não duplicá-las
|
|
328
|
+
if (renderSubComponent && row.depth > 0) {
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
321
331
|
const rowKey = row.id ?? String(index);
|
|
322
332
|
const rowContent = row.getVisibleCells().map((cell)=>{
|
|
323
333
|
const content = flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
324
334
|
return /*#__PURE__*/ React__default.createElement(TableCell, {
|
|
325
335
|
key: cell.id,
|
|
326
|
-
className: cn("p-2", dividingColumnKey?.includes(cell.column.id) && "border-r")
|
|
336
|
+
className: cn("p-2", dividingColumnKey?.includes(cell.column.id) && "border-r", cell.column.columnDef.meta?.className)
|
|
327
337
|
}, content);
|
|
328
338
|
});
|
|
329
339
|
const rowWithTooltip = renderTooltip ? renderTooltip(row, rowContent) : /*#__PURE__*/ React__default.createElement(TableRow, {
|
|
@@ -331,7 +341,15 @@ const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, se
|
|
|
331
341
|
"data-state": row.getIsSelected() && "selected",
|
|
332
342
|
className: cn("even:bg-body/50")
|
|
333
343
|
}, rowContent);
|
|
334
|
-
return
|
|
344
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, {
|
|
345
|
+
key: rowKey
|
|
346
|
+
}, rowWithTooltip, row.getIsExpanded() && renderSubComponent && /*#__PURE__*/ React__default.createElement(TableRow, {
|
|
347
|
+
className: cn("even:bg-body/50")
|
|
348
|
+
}, /*#__PURE__*/ React__default.createElement(TableCell, {
|
|
349
|
+
colSpan: row.getVisibleCells().length
|
|
350
|
+
}, renderSubComponent({
|
|
351
|
+
row
|
|
352
|
+
}))));
|
|
335
353
|
});
|
|
336
354
|
};
|
|
337
355
|
const shouldForceMinHeight = table.getRowModel().rows.length > 1 || isLoadingTable;
|
|
@@ -351,7 +369,7 @@ const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, se
|
|
|
351
369
|
...actionColumns
|
|
352
370
|
].includes(id);
|
|
353
371
|
return /*#__PURE__*/ React__default.createElement(TableHead, {
|
|
354
|
-
className: cn(dividingColumnKey?.includes(id) ? "border-r" : "", "static"),
|
|
372
|
+
className: cn(dividingColumnKey?.includes(id) ? "border-r" : "", header.column.columnDef.meta?.className, "static"),
|
|
355
373
|
key: header.id
|
|
356
374
|
}, header.isPlaceholder ? null : /*#__PURE__*/ React__default.createElement("div", {
|
|
357
375
|
className: !isActionsColumn && header.column.getCanSort() ? "flex w-fit items-center justify-start cursor-pointer gap-1 font-medium" : "",
|
|
@@ -371,14 +389,63 @@ const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, se
|
|
|
371
389
|
})));
|
|
372
390
|
}));
|
|
373
391
|
})), /*#__PURE__*/ React__default.createElement(TableBody, null, renderTableBodyContent()))));
|
|
374
|
-
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, tableContent, isScrollable
|
|
392
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, tableContent, isScrollable ? null : isLoadingTable ? /*#__PURE__*/ React__default.createElement(DataTablePaginationSkeleton, null) : /*#__PURE__*/ React__default.createElement(DataTablePagination, {
|
|
375
393
|
table: table,
|
|
376
394
|
dataLabel: dataLabel,
|
|
377
395
|
pageSizeOptions: pageSizeOptions,
|
|
378
|
-
infoExtraLabel: infoExtraLabel
|
|
396
|
+
infoExtraLabel: infoExtraLabel,
|
|
397
|
+
showPaginationControls: showPagination,
|
|
398
|
+
showDataLabel: showDataLabel,
|
|
399
|
+
footerAction: footerAction,
|
|
400
|
+
maxVisualRows: maxVisualRows
|
|
379
401
|
}));
|
|
380
402
|
};
|
|
381
403
|
|
|
404
|
+
// Utils para manipular árvores de forma imutável
|
|
405
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: <any> */ // Encontra um item e retorna caminho + referência
|
|
406
|
+
function findItemPath(tree, id, path = []) {
|
|
407
|
+
for(let i = 0; i < tree.length; i++){
|
|
408
|
+
const node = tree[i];
|
|
409
|
+
// Encontrou o item
|
|
410
|
+
if (node.id === id) {
|
|
411
|
+
return {
|
|
412
|
+
path: [
|
|
413
|
+
...path,
|
|
414
|
+
i
|
|
415
|
+
],
|
|
416
|
+
node
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
// Recursão em subRows
|
|
420
|
+
if (Array.isArray(node.subRows) && node.subRows.length > 0) {
|
|
421
|
+
const result = findItemPath(node.subRows, id, [
|
|
422
|
+
...path,
|
|
423
|
+
i,
|
|
424
|
+
"subRows"
|
|
425
|
+
]);
|
|
426
|
+
if (result) return result;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
function removeAtPath(tree, path) {
|
|
432
|
+
let ref = tree;
|
|
433
|
+
for(let i = 0; i < path.length - 1; i++){
|
|
434
|
+
ref = ref[path[i]];
|
|
435
|
+
}
|
|
436
|
+
const index = path[path.length - 1];
|
|
437
|
+
const removed = ref.splice(index, 1)[0];
|
|
438
|
+
return removed;
|
|
439
|
+
}
|
|
440
|
+
function insertAtPath(tree, path, item) {
|
|
441
|
+
let ref = tree;
|
|
442
|
+
for(let i = 0; i < path.length - 1; i++){
|
|
443
|
+
ref = ref[path[i]];
|
|
444
|
+
}
|
|
445
|
+
const index = path[path.length - 1];
|
|
446
|
+
ref.splice(index, 0, item);
|
|
447
|
+
}
|
|
448
|
+
|
|
382
449
|
const getRowKey = (row, rowKey)=>{
|
|
383
450
|
if (typeof rowKey === "function") {
|
|
384
451
|
return rowKey(row);
|
|
@@ -393,14 +460,16 @@ const getRowKey = (row, rowKey)=>{
|
|
|
393
460
|
}
|
|
394
461
|
return row[rowKey];
|
|
395
462
|
};
|
|
396
|
-
const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns = [], data, messageEmpty = /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, "Sem resultados"), onDataChange, rowKey, dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass = "sm:max-h-[calc(100vh-300px)]", isScrollable = false, fixedHeader = false, showPagination = true, renderTooltip, infoExtraLabel })=>{
|
|
463
|
+
const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns = [], data, messageEmpty = /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, "Sem resultados"), onDataChange, rowKey, dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass = "sm:max-h-[calc(100vh-300px)]", isScrollable = false, fixedHeader = false, showPagination = true, showDataLabel = true, renderTooltip, infoExtraLabel, footerAction, sortableValue: propValue, sortableOnValueChange: propOnValueChange, sortableOnDragStart: propOnDragStart, sortableOnDragEnd: propOnDragEnd, maxVisualRows })=>{
|
|
397
464
|
const currentPage = Number(table.getState().pagination.pageIndex).toString();
|
|
398
465
|
const pageSize = Number(table.getState().pagination.pageSize).toString();
|
|
399
466
|
const sorting = table.getState().sorting;
|
|
400
467
|
const [newData, setNewData] = React__default.useState(data);
|
|
401
468
|
const handleValueChange = (updatedData)=>{
|
|
402
469
|
setNewData(updatedData);
|
|
403
|
-
onDataChange
|
|
470
|
+
if (onDataChange) {
|
|
471
|
+
onDataChange(updatedData);
|
|
472
|
+
}
|
|
404
473
|
};
|
|
405
474
|
React__default.useEffect(()=>{
|
|
406
475
|
setNewData(data);
|
|
@@ -449,12 +518,14 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
449
518
|
className: "inline-block max-w-120 text-wrap wrap-break-word"
|
|
450
519
|
}, messageEmpty)));
|
|
451
520
|
}
|
|
452
|
-
|
|
521
|
+
const rows = table.getRowModel().rows;
|
|
522
|
+
const rowsToRender = maxVisualRows ? rows.slice(0, maxVisualRows) : rows;
|
|
523
|
+
return rowsToRender.map((row)=>{
|
|
453
524
|
const rowData = row.original;
|
|
454
525
|
const key = getRowKey(rowData, rowKey);
|
|
455
526
|
const rowContent = row.getVisibleCells().map((cell)=>/*#__PURE__*/ React__default.createElement(TableCell, {
|
|
456
527
|
key: cell.id,
|
|
457
|
-
className: cn("p-2 py-1", dividingColumnKey?.includes(cell.column.id) && "border-r")
|
|
528
|
+
className: cn("p-2 py-1", dividingColumnKey?.includes(cell.column.id) && "border-r", cell.column.columnDef.meta?.className)
|
|
458
529
|
}, flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
459
530
|
const baseRow = /*#__PURE__*/ React__default.createElement(TableRow, {
|
|
460
531
|
"data-state": row.getIsSelected() && "selected",
|
|
@@ -468,13 +539,80 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
468
539
|
}, wrappedRow);
|
|
469
540
|
});
|
|
470
541
|
};
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
542
|
+
const [activeId, setActiveId] = React__default.useState(null);
|
|
543
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: <useMemo>
|
|
544
|
+
const siblings = React__default.useMemo(()=>{
|
|
545
|
+
if (!activeId) return table.getRowModel().rows.map((row)=>({
|
|
546
|
+
...row.original,
|
|
547
|
+
id: getRowKey(row.original, rowKey)
|
|
548
|
+
}));
|
|
549
|
+
const activeRow = table.getRowModel().rows.find((row)=>getRowKey(row.original, rowKey) === activeId);
|
|
550
|
+
if (!activeRow) return [];
|
|
551
|
+
const parentId = activeRow.parentId;
|
|
552
|
+
return table.getRowModel().rows.filter((row)=>row.parentId === parentId).map((row)=>({
|
|
553
|
+
...row.original,
|
|
554
|
+
id: getRowKey(row.original, rowKey)
|
|
555
|
+
}));
|
|
556
|
+
}, [
|
|
557
|
+
activeId,
|
|
558
|
+
table.getRowModel().rows,
|
|
559
|
+
rowKey
|
|
560
|
+
]);
|
|
561
|
+
const internalHandleDragStart = (event)=>{
|
|
562
|
+
setActiveId(event.active.id);
|
|
563
|
+
};
|
|
564
|
+
const internalHandleDragEnd = (event)=>{
|
|
565
|
+
setActiveId(null);
|
|
566
|
+
const { active, over } = event;
|
|
567
|
+
if (!active || !over) return;
|
|
568
|
+
const sourceId = active.id;
|
|
569
|
+
const targetId = over.id;
|
|
570
|
+
if (sourceId === targetId) return;
|
|
571
|
+
const tree = newData.map((item)=>({
|
|
474
572
|
...item,
|
|
475
573
|
id: getRowKey(item, rowKey)
|
|
476
|
-
}))
|
|
477
|
-
|
|
574
|
+
}));
|
|
575
|
+
const source = findItemPath(tree, sourceId);
|
|
576
|
+
const target = findItemPath(tree, targetId);
|
|
577
|
+
if (!source || !target) return;
|
|
578
|
+
// -----------------------------
|
|
579
|
+
// 🔒 1. TRAVAR MOVIMENTAÇÃO ENTRE NÍVEIS DIFERENTES
|
|
580
|
+
// -----------------------------
|
|
581
|
+
const sourcePath = source.path;
|
|
582
|
+
const targetPath = target.path;
|
|
583
|
+
// Pega o "caminho do pai" (remove o último índice, que é o índice do item em si)
|
|
584
|
+
const sourceParentPath = sourcePath.slice(0, -1);
|
|
585
|
+
const targetParentPath = targetPath.slice(0, -1);
|
|
586
|
+
// Compara se os arrays são iguais (mesmo tamanho e mesmos valores)
|
|
587
|
+
const isSameParent = sourceParentPath.length === targetParentPath.length && sourceParentPath.every((val, index)=>val === targetParentPath[index]);
|
|
588
|
+
if (!isSameParent) {
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
// -----------------------------
|
|
592
|
+
// 🔄 2. MOVIMENTO PERMITIDO → REORDENAR
|
|
593
|
+
// -----------------------------
|
|
594
|
+
const removedItem = removeAtPath(tree, sourcePath);
|
|
595
|
+
const destPath = [
|
|
596
|
+
...targetPath
|
|
597
|
+
];
|
|
598
|
+
destPath[destPath.length - 1] = targetPath[targetPath.length - 1];
|
|
599
|
+
insertAtPath(tree, destPath, removedItem);
|
|
600
|
+
handleValueChange(tree);
|
|
601
|
+
};
|
|
602
|
+
const shouldForceMinHeight = table.getRowModel().rows.length > 1 || isLoadingTable;
|
|
603
|
+
const finalValue = propValue ?? (maxVisualRows ? table.getRowModel().rows.slice(0, maxVisualRows) : table.getRowModel().rows).map((row)=>({
|
|
604
|
+
...row.original,
|
|
605
|
+
id: getRowKey(row.original, rowKey)
|
|
606
|
+
}));
|
|
607
|
+
const finalOnValueChange = propOnValueChange ?? handleValueChange;
|
|
608
|
+
const finalOnDragStart = propOnDragStart ?? internalHandleDragStart;
|
|
609
|
+
const finalOnDragEnd = propOnDragEnd ?? internalHandleDragEnd;
|
|
610
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement(Sortable, {
|
|
611
|
+
value: finalValue,
|
|
612
|
+
contextItems: siblings,
|
|
613
|
+
onValueChange: finalOnValueChange,
|
|
614
|
+
onDragStart: finalOnDragStart,
|
|
615
|
+
onDragEnd: finalOnDragEnd
|
|
478
616
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
479
617
|
className: cn("bg-background mx-1 h-full w-full rounded-md border whitespace-nowrap", className)
|
|
480
618
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
@@ -491,7 +629,7 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
491
629
|
...actionColumns
|
|
492
630
|
].includes(id);
|
|
493
631
|
return /*#__PURE__*/ React__default.createElement(TableHead, {
|
|
494
|
-
className: dividingColumnKey?.includes(id) ? "border-r" : "",
|
|
632
|
+
className: cn(dividingColumnKey?.includes(id) ? "border-r" : "", header.column.columnDef.meta?.className),
|
|
495
633
|
key: header.id
|
|
496
634
|
}, header.isPlaceholder ? null : /*#__PURE__*/ React__default.createElement("div", {
|
|
497
635
|
className: !isActionsColumn && header.column.getCanSort() ? "flex w-fit items-center justify-start cursor-pointer gap-1 font-medium" : "",
|
|
@@ -510,11 +648,15 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
510
648
|
className: "h-3.5 w-3.5"
|
|
511
649
|
})));
|
|
512
650
|
}));
|
|
513
|
-
})), /*#__PURE__*/ React__default.createElement(TableBody, null, renderTableBodyContent()))))), isScrollable
|
|
651
|
+
})), /*#__PURE__*/ React__default.createElement(TableBody, null, renderTableBodyContent()))))), isScrollable ? null : isLoadingTable ? /*#__PURE__*/ React__default.createElement(DataTablePaginationSkeleton, null) : /*#__PURE__*/ React__default.createElement(DataTablePagination, {
|
|
514
652
|
table: table,
|
|
515
653
|
dataLabel: dataLabel,
|
|
516
654
|
pageSizeOptions: pageSizeOptions,
|
|
517
|
-
infoExtraLabel: infoExtraLabel
|
|
655
|
+
infoExtraLabel: infoExtraLabel,
|
|
656
|
+
showPaginationControls: showPagination,
|
|
657
|
+
showDataLabel: showDataLabel,
|
|
658
|
+
footerAction: footerAction,
|
|
659
|
+
maxVisualRows: maxVisualRows
|
|
518
660
|
}));
|
|
519
661
|
};
|
|
520
662
|
|