ivt 0.5.6 → 0.5.7
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.mjs +45 -45
- 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-B6J1x7Yy.mjs} +8 -8
- package/dist/chunks/{CalendarRange-Bag_yGEQ.mjs.map → CalendarRange-B6J1x7Yy.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-BLTT982W.mjs → ComboboxField-DKuq1AKZ.mjs} +9 -9
- package/dist/chunks/{ComboboxField-BLTT982W.mjs.map → ComboboxField-DKuq1AKZ.mjs.map} +1 -1
- package/dist/chunks/{Container-CDOK_e_b.mjs → Container-BxlDXTcp.mjs} +2 -2
- package/dist/chunks/{Container-CDOK_e_b.mjs.map → Container-BxlDXTcp.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-BUcMwZqw.mjs → DeleteConfirmationModal-e65HVv-S.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-BUcMwZqw.mjs.map → DeleteConfirmationModal-e65HVv-S.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-B23VyuOv.mjs → TooltipIndicator-CN_auquL.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-B23VyuOv.mjs.map → TooltipIndicator-CN_auquL.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-4KUcxYfY.mjs → _commonjsHelpers-Dj8Kr2rQ.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-Dj8Kr2rQ.mjs.map +1 -0
- package/dist/chunks/{accordion-Cz5ayAWy.mjs → accordion-ymmOEBfQ.mjs} +11 -11
- package/dist/chunks/{accordion-Cz5ayAWy.mjs.map → accordion-ymmOEBfQ.mjs.map} +1 -1
- package/dist/chunks/{badge-DcTK-GBP.mjs → badge-Bdwyxw3I.mjs} +2 -2
- package/dist/chunks/{badge-DcTK-GBP.mjs.map → badge-Bdwyxw3I.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-CGLhO34T.mjs → bundle-mjs-CwF_jj9z.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-CGLhO34T.mjs.map → bundle-mjs-CwF_jj9z.mjs.map} +1 -1
- package/dist/chunks/{button-D_MnAjQl.mjs → button-BtNSgexc.mjs} +2 -2
- package/dist/chunks/{button-D_MnAjQl.mjs.map → button-BtNSgexc.mjs.map} +1 -1
- package/dist/chunks/{calendar-DGNoWQgo.mjs → calendar-BzT7glLL.mjs} +7 -7
- package/dist/chunks/{calendar-DGNoWQgo.mjs.map → calendar-BzT7glLL.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-CGnc9ko6.mjs → calendar-days-Dn7rqkMk.mjs} +2 -2
- package/dist/chunks/{calendar-days-CGnc9ko6.mjs.map → calendar-days-Dn7rqkMk.mjs.map} +1 -1
- package/dist/chunks/{card-DZ3filVx.mjs → card-CV6kQohd.mjs} +2 -2
- package/dist/chunks/{card-DZ3filVx.mjs.map → card-CV6kQohd.mjs.map} +1 -1
- package/dist/chunks/{check-DEf9V4Nh.mjs → check-TyRJdtqa.mjs} +2 -2
- package/dist/chunks/{check-DEf9V4Nh.mjs.map → check-TyRJdtqa.mjs.map} +1 -1
- package/dist/chunks/{checkbox-DjzhCYqW.mjs → checkbox-2okt3zhD.mjs} +11 -11
- package/dist/chunks/{checkbox-DjzhCYqW.mjs.map → checkbox-2okt3zhD.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-CNWi6KOF.mjs → chevron-down-DPe3wUSx.mjs} +2 -2
- package/dist/chunks/{chevron-down-CNWi6KOF.mjs.map → chevron-down-DPe3wUSx.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-Cla2-kGr.mjs → chevron-left-Dr2znK-e.mjs} +2 -2
- package/dist/chunks/{chevron-left-Cla2-kGr.mjs.map → chevron-left-Dr2znK-e.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-C3X2iYjh.mjs → chevron-right-DmVvAueL.mjs} +2 -2
- package/dist/chunks/{chevron-right-C3X2iYjh.mjs.map → chevron-right-DmVvAueL.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-Dcziczc9.mjs → chevrons-up-down-Clez-9zt.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-Dcziczc9.mjs.map → chevrons-up-down-Clez-9zt.mjs.map} +1 -1
- package/dist/chunks/{command-c98KtQLr.mjs → command-EU3dDbf_.mjs} +8 -8
- package/dist/chunks/{command-c98KtQLr.mjs.map → command-EU3dDbf_.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BQUZb4BK.mjs → createLucideIcon-PuoJamGs.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BQUZb4BK.mjs.map → createLucideIcon-PuoJamGs.mjs.map} +1 -1
- package/dist/chunks/{date-BX6jqpaN.mjs → date-BWzlXmaG.mjs} +2 -2
- package/dist/chunks/{date-BX6jqpaN.mjs.map → date-BWzlXmaG.mjs.map} +1 -1
- package/dist/chunks/{dialog-Bzks3Ko4.mjs → dialog-BMq_EiaM.mjs} +4 -4
- package/dist/chunks/{dialog-Bzks3Ko4.mjs.map → dialog-BMq_EiaM.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-S2vrEUTX.mjs → ellipsis-D5nNS0KK.mjs} +2 -2
- package/dist/chunks/{ellipsis-S2vrEUTX.mjs.map → ellipsis-D5nNS0KK.mjs.map} +1 -1
- package/dist/chunks/{form-CwxoZkN0.mjs → form-CfJLpjew.mjs} +3 -3
- package/dist/chunks/{form-CwxoZkN0.mjs.map → form-CfJLpjew.mjs.map} +1 -1
- package/dist/chunks/{format-6LfcNksm.mjs → format-Bkb4ydYM.mjs} +1 -1
- package/dist/chunks/{format-6LfcNksm.mjs.map → format-Bkb4ydYM.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-NnQQahT8.mjs → format-numbers-DY98wgq_.mjs} +1 -1
- package/dist/chunks/{format-numbers-NnQQahT8.mjs.map → format-numbers-DY98wgq_.mjs.map} +1 -1
- package/dist/chunks/{hover-card-5rT-1QMh.mjs → hover-card-gTAgs7UB.mjs} +11 -11
- package/dist/chunks/{hover-card-5rT-1QMh.mjs.map → hover-card-gTAgs7UB.mjs.map} +1 -1
- package/dist/chunks/{index-4TCt3gOI.mjs → index-B2rYWtDF.mjs} +3 -3
- package/dist/chunks/{index-4TCt3gOI.mjs.map → index-B2rYWtDF.mjs.map} +1 -1
- package/dist/chunks/{index-wAh1wx6m.mjs → index-B3qNg03Q.mjs} +9 -9
- package/dist/chunks/{index-wAh1wx6m.mjs.map → index-B3qNg03Q.mjs.map} +1 -1
- package/dist/chunks/{index-Cq-A6c3g.mjs → index-BRYOOGYt.mjs} +1 -1
- package/dist/chunks/{index-Cq-A6c3g.mjs.map → index-BRYOOGYt.mjs.map} +1 -1
- package/dist/chunks/{index-CY5xJaha.mjs → index-B_Y9pqrY.mjs} +1 -1
- package/dist/chunks/{index-CY5xJaha.mjs.map → index-B_Y9pqrY.mjs.map} +1 -1
- package/dist/chunks/{index-BUvLOcM1.mjs → index-BdP_9M8C.mjs} +1 -1
- package/dist/chunks/{index-BUvLOcM1.mjs.map → index-BdP_9M8C.mjs.map} +1 -1
- package/dist/chunks/{index-C_z2VNWo.mjs → index-BmNJQBZT.mjs} +1 -1
- package/dist/chunks/{index-C_z2VNWo.mjs.map → index-BmNJQBZT.mjs.map} +1 -1
- package/dist/chunks/{index-Cs_8Iu2P.mjs → index-C0_rzV0O.mjs} +1 -1
- package/dist/chunks/{index-Cs_8Iu2P.mjs.map → index-C0_rzV0O.mjs.map} +1 -1
- package/dist/chunks/{index-DSLICNwF.mjs → index-C1gfRtpW.mjs} +1 -1
- package/dist/chunks/{index-DSLICNwF.mjs.map → index-C1gfRtpW.mjs.map} +1 -1
- package/dist/chunks/{index-BWnbRXP-.mjs → index-C9_8aC95.mjs} +7 -7
- package/dist/chunks/{index-BWnbRXP-.mjs.map → index-C9_8aC95.mjs.map} +1 -1
- package/dist/chunks/{index-B2gDNmb8.mjs → index-CBE_CuM0.mjs} +5 -5
- package/dist/chunks/{index-B2gDNmb8.mjs.map → index-CBE_CuM0.mjs.map} +1 -1
- package/dist/chunks/{index-UxueW3GO.mjs → index-CQlPyAtR.mjs} +15 -15
- package/dist/chunks/{index-UxueW3GO.mjs.map → index-CQlPyAtR.mjs.map} +1 -1
- package/dist/chunks/{index-DLownQDQ.mjs → index-CWjsfCPV.mjs} +2 -2
- package/dist/chunks/{index-DLownQDQ.mjs.map → index-CWjsfCPV.mjs.map} +1 -1
- package/dist/chunks/{index-6boixHzs.mjs → index-CY7rSsKT.mjs} +2 -2
- package/dist/chunks/{index-6boixHzs.mjs.map → index-CY7rSsKT.mjs.map} +1 -1
- package/dist/chunks/{index-T-_ESk_G.mjs → index-CZgLnzan.mjs} +1 -1
- package/dist/chunks/{index-T-_ESk_G.mjs.map → index-CZgLnzan.mjs.map} +1 -1
- package/dist/chunks/{index-BmDvd1mU.mjs → index-CjsV2E2h.mjs} +11 -11
- package/dist/chunks/{index-BmDvd1mU.mjs.map → index-CjsV2E2h.mjs.map} +1 -1
- package/dist/chunks/{index-BmW-kojJ.mjs → index-DH87EZ4W.mjs} +1 -1
- package/dist/chunks/{index-BmW-kojJ.mjs.map → index-DH87EZ4W.mjs.map} +1 -1
- package/dist/chunks/{index-BCbVqu_3.mjs → index-DPl20FvM.mjs} +2 -2
- package/dist/chunks/{index-BCbVqu_3.mjs.map → index-DPl20FvM.mjs.map} +1 -1
- package/dist/chunks/{index-M3WHAYcQ.mjs → index-DRuAMnOw.mjs} +5 -5
- package/dist/chunks/{index-M3WHAYcQ.mjs.map → index-DRuAMnOw.mjs.map} +1 -1
- package/dist/chunks/{index-BjgE_yhl.mjs → index-KLdt0FXh.mjs} +3 -3
- package/dist/chunks/{index-BjgE_yhl.mjs.map → index-KLdt0FXh.mjs.map} +1 -1
- package/dist/chunks/{index-BQ-TEa5d.mjs → index-O_vhyjqe.mjs} +1 -1
- package/dist/chunks/{index-BQ-TEa5d.mjs.map → index-O_vhyjqe.mjs.map} +1 -1
- package/dist/chunks/{index-CGiXQ4Pe.mjs → index-ZFl1NRtT.mjs} +9 -9
- package/dist/chunks/{index-CGiXQ4Pe.mjs.map → index-ZFl1NRtT.mjs.map} +1 -1
- package/dist/chunks/{index-AKiXR0pZ.mjs → index-bkyl4p2E.mjs} +1 -1
- package/dist/chunks/{index-AKiXR0pZ.mjs.map → index-bkyl4p2E.mjs.map} +1 -1
- package/dist/chunks/{index-DkGvxlDJ.mjs → index-t0_4qi-T.mjs} +2 -2
- package/dist/chunks/{index-DkGvxlDJ.mjs.map → index-t0_4qi-T.mjs.map} +1 -1
- package/dist/chunks/{input-DKrW5tuu.mjs → input-C3fkPeG_.mjs} +2 -2
- package/dist/chunks/{input-DKrW5tuu.mjs.map → input-C3fkPeG_.mjs.map} +1 -1
- package/dist/chunks/{label-BuC6aAG0.mjs → label-ClO7_a3V.mjs} +3 -3
- package/dist/chunks/{label-BuC6aAG0.mjs.map → label-ClO7_a3V.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-Df9_-0g-.mjs → loader-circle-BqBrcqkQ.mjs} +2 -2
- package/dist/chunks/{loader-circle-Df9_-0g-.mjs.map → loader-circle-BqBrcqkQ.mjs.map} +1 -1
- package/dist/chunks/{multi-select--jT_ewJI.mjs → multi-select-DljYuXa4.mjs} +12 -12
- package/dist/chunks/{multi-select--jT_ewJI.mjs.map → multi-select-DljYuXa4.mjs.map} +1 -1
- package/dist/chunks/{pagination-m1KTCwr8.mjs → pagination-D7L2vbck.mjs} +6 -6
- package/dist/chunks/{pagination-m1KTCwr8.mjs.map → pagination-D7L2vbck.mjs.map} +1 -1
- package/dist/chunks/{popover-n__dGmWJ.mjs → popover-C1aNGeey.mjs} +13 -13
- package/dist/chunks/{popover-n__dGmWJ.mjs.map → popover-C1aNGeey.mjs.map} +1 -1
- package/dist/chunks/{progress-DzHu9qd2.mjs → progress-D0vzug-J.mjs} +4 -4
- package/dist/chunks/{progress-DzHu9qd2.mjs.map → progress-D0vzug-J.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-CmBAGhhQ.mjs → react-number-format.es-BebBtQNl.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-CmBAGhhQ.mjs.map → react-number-format.es-BebBtQNl.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-DDlmn7ag.mjs → scroll-area-DnOrBNhw.mjs} +11 -11
- package/dist/chunks/{scroll-area-DDlmn7ag.mjs.map → scroll-area-DnOrBNhw.mjs.map} +1 -1
- package/dist/chunks/{select-BdW90s0k.mjs → select-DZFrWKa9.mjs} +5 -5
- package/dist/chunks/{select-BdW90s0k.mjs.map → select-DZFrWKa9.mjs.map} +1 -1
- package/dist/chunks/{separator-CkJ0LBlz.mjs → separator-Cy1u4QGj.mjs} +3 -3
- package/dist/chunks/{separator-CkJ0LBlz.mjs.map → separator-Cy1u4QGj.mjs.map} +1 -1
- package/dist/chunks/{sheet-BLsRYTsa.mjs → sheet-UhlywLCQ.mjs} +4 -4
- package/dist/chunks/{sheet-BLsRYTsa.mjs.map → sheet-UhlywLCQ.mjs.map} +1 -1
- package/dist/chunks/{skeleton-CGj35I4b.mjs → skeleton-CAkZfLJU.mjs} +2 -2
- package/dist/chunks/{skeleton-CGj35I4b.mjs.map → skeleton-CAkZfLJU.mjs.map} +1 -1
- package/dist/chunks/{sortable-CxR7dghC.mjs → sortable-CqaoTR3I.mjs} +14 -8
- package/dist/chunks/{sortable-CxR7dghC.mjs.map → sortable-CqaoTR3I.mjs.map} +1 -1
- package/dist/chunks/{table-YJw4-dig.mjs → table-DtYzDvg1.mjs} +3 -3
- package/dist/chunks/{table-YJw4-dig.mjs.map → table-DtYzDvg1.mjs.map} +1 -1
- package/dist/chunks/{textarea-uqJyF5jY.mjs → textarea-DnLcBKio.mjs} +2 -2
- package/dist/chunks/{textarea-uqJyF5jY.mjs.map → textarea-DnLcBKio.mjs.map} +1 -1
- package/dist/chunks/{toggle-DnllXBCB.mjs → toggle-DCO007-l.mjs} +5 -5
- package/dist/chunks/{toggle-DnllXBCB.mjs.map → toggle-DCO007-l.mjs.map} +1 -1
- package/dist/chunks/{tooltip-kXkkJZem.mjs → tooltip-Dyp4dubr.mjs} +13 -13
- package/dist/chunks/{tooltip-kXkkJZem.mjs.map → tooltip-Dyp4dubr.mjs.map} +1 -1
- package/dist/chunks/{trash-2-CJs96X7u.mjs → trash-2-ImUsqVCq.mjs} +2 -2
- package/dist/chunks/{trash-2-CJs96X7u.mjs.map → trash-2-ImUsqVCq.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-CW5j-i5O.mjs → triangle-alert-gCMT5OAG.mjs} +2 -2
- package/dist/chunks/{triangle-alert-CW5j-i5O.mjs.map → triangle-alert-gCMT5OAG.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-dqPUMt5Y.mjs → tslib.es6-SGuOiL7t.mjs} +1 -1
- package/dist/chunks/{tslib.es6-dqPUMt5Y.mjs.map → tslib.es6-SGuOiL7t.mjs.map} +1 -1
- package/dist/chunks/{utils-D8c5tyzG.mjs → utils-Cbs-uxBq.mjs} +2 -2
- package/dist/chunks/{utils-D8c5tyzG.mjs.map → utils-Cbs-uxBq.mjs.map} +1 -1
- package/dist/chunks/{x-DYQCuAK0.mjs → x-dyn358tn.mjs} +2 -2
- package/dist/chunks/{x-DYQCuAK0.mjs.map → x-dyn358tn.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 +11 -1
- package/dist/data-table/index.mjs +158 -44
- 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.mjs +52 -52
- 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,16 +1,16 @@
|
|
|
1
|
-
import { R as Root, C as CollapsibleTrigger$1, a as CollapsibleContent$1 } from '../chunks/index-
|
|
1
|
+
import { R as Root, C as CollapsibleTrigger$1, a as CollapsibleContent$1 } from '../chunks/index-B3qNg03Q.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import '../chunks/index-
|
|
4
|
-
import '../chunks/index-
|
|
3
|
+
import '../chunks/index-C1gfRtpW.mjs';
|
|
4
|
+
import '../chunks/index-BmNJQBZT.mjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
|
-
import '../chunks/index-
|
|
7
|
-
import '../chunks/index-
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
6
|
+
import '../chunks/index-CY7rSsKT.mjs';
|
|
7
|
+
import '../chunks/index-CZgLnzan.mjs';
|
|
8
|
+
import '../chunks/index-BdP_9M8C.mjs';
|
|
9
|
+
import '../chunks/index-DH87EZ4W.mjs';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import '@radix-ui/react-slot';
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
12
|
+
import '../chunks/index-KLdt0FXh.mjs';
|
|
13
|
+
import '../chunks/index-CWjsfCPV.mjs';
|
|
14
14
|
|
|
15
15
|
function Collapsible({ ...props }) {
|
|
16
16
|
return /*#__PURE__*/ React.createElement(Root, {
|
package/dist/combobox/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as cn } from '../chunks/utils-
|
|
3
|
-
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-
|
|
4
|
-
import { C as Check } from '../chunks/check-
|
|
5
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
6
|
-
import { B as Button } from '../chunks/button-
|
|
7
|
-
import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem } from '../chunks/command-
|
|
8
|
-
import '../chunks/bundle-mjs-
|
|
9
|
-
import '../chunks/createLucideIcon-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
2
|
+
import { c as cn } from '../chunks/utils-Cbs-uxBq.mjs';
|
|
3
|
+
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-Clez-9zt.mjs';
|
|
4
|
+
import { C as Check } from '../chunks/check-TyRJdtqa.mjs';
|
|
5
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-C1aNGeey.mjs';
|
|
6
|
+
import { B as Button } from '../chunks/button-BtNSgexc.mjs';
|
|
7
|
+
import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem } from '../chunks/command-EU3dDbf_.mjs';
|
|
8
|
+
import '../chunks/bundle-mjs-CwF_jj9z.mjs';
|
|
9
|
+
import '../chunks/createLucideIcon-PuoJamGs.mjs';
|
|
10
|
+
import '../chunks/index-C1gfRtpW.mjs';
|
|
11
|
+
import '../chunks/index-BdP_9M8C.mjs';
|
|
12
|
+
import '../chunks/index-BmNJQBZT.mjs';
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
14
|
+
import '../chunks/index-CBE_CuM0.mjs';
|
|
15
|
+
import '../chunks/index-DH87EZ4W.mjs';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import '@radix-ui/react-slot';
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/tslib.es6-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
18
|
+
import '../chunks/index-BRYOOGYt.mjs';
|
|
19
|
+
import '../chunks/index-DRuAMnOw.mjs';
|
|
20
|
+
import '../chunks/tslib.es6-SGuOiL7t.mjs';
|
|
21
|
+
import '../chunks/index-CWjsfCPV.mjs';
|
|
22
|
+
import '../chunks/index-CZgLnzan.mjs';
|
|
23
|
+
import '../chunks/index-C9_8aC95.mjs';
|
|
24
|
+
import '../chunks/index-t0_4qi-T.mjs';
|
|
25
|
+
import '../chunks/index-B2rYWtDF.mjs';
|
|
26
|
+
import '../chunks/index-KLdt0FXh.mjs';
|
|
27
|
+
import '../chunks/index-CY7rSsKT.mjs';
|
|
28
28
|
import 'class-variance-authority';
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/dialog-
|
|
31
|
-
import '../chunks/x-
|
|
29
|
+
import '../chunks/index-CjsV2E2h.mjs';
|
|
30
|
+
import '../chunks/dialog-BMq_EiaM.mjs';
|
|
31
|
+
import '../chunks/x-dyn358tn.mjs';
|
|
32
32
|
|
|
33
33
|
const specialCharacterMap = [
|
|
34
34
|
[
|
package/dist/command/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { C as Command, a as CommandDialog, d as CommandEmpty, e as CommandGroup, b as CommandInput, f as CommandItem, c as CommandList, h as CommandSeparator, g as CommandShortcut } from '../chunks/command-
|
|
2
|
-
import '../chunks/index-
|
|
1
|
+
export { C as Command, a as CommandDialog, d as CommandEmpty, e as CommandGroup, b as CommandInput, f as CommandItem, c as CommandList, h as CommandSeparator, g as CommandShortcut } from '../chunks/command-EU3dDbf_.mjs';
|
|
2
|
+
import '../chunks/index-CjsV2E2h.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../chunks/index-
|
|
5
|
-
import '../chunks/index-
|
|
6
|
-
import '../chunks/index-
|
|
4
|
+
import '../chunks/index-C1gfRtpW.mjs';
|
|
5
|
+
import '../chunks/index-BdP_9M8C.mjs';
|
|
6
|
+
import '../chunks/index-BmNJQBZT.mjs';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
8
|
+
import '../chunks/index-CWjsfCPV.mjs';
|
|
9
|
+
import '../chunks/index-CZgLnzan.mjs';
|
|
10
|
+
import '../chunks/index-CY7rSsKT.mjs';
|
|
11
|
+
import '../chunks/index-CBE_CuM0.mjs';
|
|
12
|
+
import '../chunks/index-DH87EZ4W.mjs';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import '@radix-ui/react-slot';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/tslib.es6-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/utils-
|
|
21
|
-
import '../chunks/bundle-mjs-
|
|
22
|
-
import '../chunks/dialog-
|
|
23
|
-
import '../chunks/x-
|
|
24
|
-
import '../chunks/createLucideIcon-
|
|
15
|
+
import '../chunks/index-BRYOOGYt.mjs';
|
|
16
|
+
import '../chunks/index-DRuAMnOw.mjs';
|
|
17
|
+
import '../chunks/tslib.es6-SGuOiL7t.mjs';
|
|
18
|
+
import '../chunks/index-B2rYWtDF.mjs';
|
|
19
|
+
import '../chunks/index-KLdt0FXh.mjs';
|
|
20
|
+
import '../chunks/utils-Cbs-uxBq.mjs';
|
|
21
|
+
import '../chunks/bundle-mjs-CwF_jj9z.mjs';
|
|
22
|
+
import '../chunks/dialog-BMq_EiaM.mjs';
|
|
23
|
+
import '../chunks/x-dyn358tn.mjs';
|
|
24
|
+
import '../chunks/createLucideIcon-PuoJamGs.mjs';
|
|
25
25
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
3
|
-
import { c as createContextScope } from '../chunks/index-
|
|
4
|
-
import { P as Primitive } from '../chunks/index-
|
|
5
|
-
import { c as createMenuScope, R as Root3, A as Anchor2, P as Portal, C as Content2$1, I as Item2$1, a as CheckboxItem, b as ItemIndicator, d as RadioItem, L as Label, S as Separator, G as Group, e as Sub, f as SubContent, g as SubTrigger, h as RadioGroup, i as Arrow2, j as Circle } from '../chunks/index-
|
|
6
|
-
import { u as useCallbackRef } from '../chunks/index-
|
|
7
|
-
import { u as useControllableState } from '../chunks/index-
|
|
2
|
+
import { c as composeEventHandlers } from '../chunks/index-C1gfRtpW.mjs';
|
|
3
|
+
import { c as createContextScope } from '../chunks/index-BmNJQBZT.mjs';
|
|
4
|
+
import { P as Primitive } from '../chunks/index-DH87EZ4W.mjs';
|
|
5
|
+
import { c as createMenuScope, R as Root3, A as Anchor2, P as Portal, C as Content2$1, I as Item2$1, a as CheckboxItem, b as ItemIndicator, d as RadioItem, L as Label, S as Separator, G as Group, e as Sub, f as SubContent, g as SubTrigger, h as RadioGroup, i as Arrow2, j as Circle } from '../chunks/index-CQlPyAtR.mjs';
|
|
6
|
+
import { u as useCallbackRef } from '../chunks/index-BRYOOGYt.mjs';
|
|
7
|
+
import { u as useControllableState } from '../chunks/index-CY7rSsKT.mjs';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
import { c as cn } from '../chunks/utils-
|
|
10
|
-
import { C as Check } from '../chunks/check-
|
|
11
|
-
import { C as ChevronRight } from '../chunks/chevron-right-
|
|
9
|
+
import { c as cn } from '../chunks/utils-Cbs-uxBq.mjs';
|
|
10
|
+
import { C as Check } from '../chunks/check-TyRJdtqa.mjs';
|
|
11
|
+
import { C as ChevronRight } from '../chunks/chevron-right-DmVvAueL.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
|
-
import '../chunks/createLucideIcon-
|
|
14
|
+
import '../chunks/createLucideIcon-PuoJamGs.mjs';
|
|
15
15
|
import '@radix-ui/react-collection';
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/tslib.es6-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/bundle-mjs-
|
|
16
|
+
import '../chunks/index-BdP_9M8C.mjs';
|
|
17
|
+
import '../chunks/index-O_vhyjqe.mjs';
|
|
18
|
+
import '../chunks/index-CBE_CuM0.mjs';
|
|
19
|
+
import '../chunks/index-DRuAMnOw.mjs';
|
|
20
|
+
import '../chunks/tslib.es6-SGuOiL7t.mjs';
|
|
21
|
+
import '../chunks/index-CWjsfCPV.mjs';
|
|
22
|
+
import '../chunks/index-CZgLnzan.mjs';
|
|
23
|
+
import '../chunks/index-C9_8aC95.mjs';
|
|
24
|
+
import '../chunks/index-t0_4qi-T.mjs';
|
|
25
|
+
import '../chunks/index-B2rYWtDF.mjs';
|
|
26
|
+
import '../chunks/index-KLdt0FXh.mjs';
|
|
27
|
+
import '../chunks/index-ZFl1NRtT.mjs';
|
|
28
|
+
import '../chunks/bundle-mjs-CwF_jj9z.mjs';
|
|
29
29
|
|
|
30
30
|
var CONTEXT_MENU_NAME = "ContextMenu";
|
|
31
31
|
var [createContextMenuContext] = createContextScope(CONTEXT_MENU_NAME, [
|
package/dist/dash/index.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as cn } from '../chunks/utils-
|
|
3
|
-
import { a as formatNegative, f as formatNumberWithComma, b as formatMoney } from '../chunks/format-numbers-
|
|
4
|
-
import { C as Card, a as CardHeader, c as CardTitle, f as CardContent, b as CardFooter } from '../chunks/card-
|
|
5
|
-
import { T as TooltipIndicator } from '../chunks/TooltipIndicator-
|
|
6
|
-
import { S as Skeleton } from '../chunks/skeleton-
|
|
7
|
-
import { T as TriangleAlert } from '../chunks/triangle-alert-
|
|
8
|
-
import { f as formatDateToBrazilian } from '../chunks/date-
|
|
9
|
-
import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-
|
|
10
|
-
import '../chunks/bundle-mjs-
|
|
11
|
-
import '../chunks/createLucideIcon-
|
|
12
|
-
import '../chunks/format-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
2
|
+
import { c as cn } from '../chunks/utils-Cbs-uxBq.mjs';
|
|
3
|
+
import { a as formatNegative, f as formatNumberWithComma, b as formatMoney } from '../chunks/format-numbers-DY98wgq_.mjs';
|
|
4
|
+
import { C as Card, a as CardHeader, c as CardTitle, f as CardContent, b as CardFooter } from '../chunks/card-CV6kQohd.mjs';
|
|
5
|
+
import { T as TooltipIndicator } from '../chunks/TooltipIndicator-CN_auquL.mjs';
|
|
6
|
+
import { S as Skeleton } from '../chunks/skeleton-CAkZfLJU.mjs';
|
|
7
|
+
import { T as TriangleAlert } from '../chunks/triangle-alert-gCMT5OAG.mjs';
|
|
8
|
+
import { f as formatDateToBrazilian } from '../chunks/date-BWzlXmaG.mjs';
|
|
9
|
+
import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-Dyp4dubr.mjs';
|
|
10
|
+
import '../chunks/bundle-mjs-CwF_jj9z.mjs';
|
|
11
|
+
import '../chunks/createLucideIcon-PuoJamGs.mjs';
|
|
12
|
+
import '../chunks/format-Bkb4ydYM.mjs';
|
|
13
|
+
import '../chunks/index-C1gfRtpW.mjs';
|
|
14
|
+
import '../chunks/index-BdP_9M8C.mjs';
|
|
15
|
+
import '../chunks/index-BmNJQBZT.mjs';
|
|
16
16
|
import 'react/jsx-runtime';
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
17
|
+
import '../chunks/index-CBE_CuM0.mjs';
|
|
18
|
+
import '../chunks/index-DH87EZ4W.mjs';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import '@radix-ui/react-slot';
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
21
|
+
import '../chunks/index-BRYOOGYt.mjs';
|
|
22
|
+
import '../chunks/index-CWjsfCPV.mjs';
|
|
23
|
+
import '../chunks/index-CZgLnzan.mjs';
|
|
24
|
+
import '../chunks/index-C9_8aC95.mjs';
|
|
25
|
+
import '../chunks/index-t0_4qi-T.mjs';
|
|
26
|
+
import '../chunks/index-B2rYWtDF.mjs';
|
|
27
|
+
import '../chunks/index-KLdt0FXh.mjs';
|
|
28
|
+
import '../chunks/index-CY7rSsKT.mjs';
|
|
29
|
+
import '../chunks/index-DPl20FvM.mjs';
|
|
30
30
|
|
|
31
31
|
function DashCard({ title, tooltip, value, footer, valueFormatter = (v)=>v, className, valueClassName, isLoading }) {
|
|
32
32
|
return /*#__PURE__*/ React__default.createElement(Card, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Table, ColumnDef, Row } from '@tanstack/react-table';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
+
import { DragStartEvent, DragEndEvent } from '@dnd-kit/core';
|
|
4
5
|
|
|
5
6
|
interface DataTableViewOptionsProps$2<TData, TValue> {
|
|
6
7
|
table: Table<TData>;
|
|
@@ -26,6 +27,11 @@ interface ListParams$1 {
|
|
|
26
27
|
}
|
|
27
28
|
declare const DataTableMainFrame: <TData, TValue>({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns, messageEmpty, dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass, isScrollable, fixedHeader, showPagination, renderTooltip, infoExtraLabel, }: DataTableViewOptionsProps$2<TData, TValue>) => react_jsx_runtime.JSX.Element;
|
|
28
29
|
|
|
30
|
+
type TreeData<T> = T & {
|
|
31
|
+
id: string | number;
|
|
32
|
+
subRows?: TreeData<T>[];
|
|
33
|
+
};
|
|
34
|
+
|
|
29
35
|
interface DataTableViewOptionsProps$1<TData, TValue> {
|
|
30
36
|
table: Table<TData>;
|
|
31
37
|
columns: ColumnDef<TData, TValue>[];
|
|
@@ -47,6 +53,10 @@ interface DataTableViewOptionsProps$1<TData, TValue> {
|
|
|
47
53
|
showPagination?: boolean;
|
|
48
54
|
renderTooltip?: (row: Row<TData>, rowContent: React__default.ReactNode) => React__default.ReactNode;
|
|
49
55
|
infoExtraLabel?: React__default.ReactNode;
|
|
56
|
+
sortableValue?: TreeData<TData>[];
|
|
57
|
+
sortableOnValueChange?: (items: TreeData<TData>[]) => void;
|
|
58
|
+
sortableOnDragStart?: (event: DragStartEvent) => void;
|
|
59
|
+
sortableOnDragEnd?: (event: DragEndEvent) => void;
|
|
50
60
|
}
|
|
51
61
|
type RowData = {
|
|
52
62
|
[key: string]: any;
|
|
@@ -54,7 +64,7 @@ type RowData = {
|
|
|
54
64
|
interface ListParams {
|
|
55
65
|
[propName: string]: string | string[];
|
|
56
66
|
}
|
|
57
|
-
declare const DataTableMainFrameSortable: <TData extends RowData, TValue>({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns, data, messageEmpty, onDataChange, rowKey, dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass, isScrollable, fixedHeader, showPagination, renderTooltip, infoExtraLabel, }: DataTableViewOptionsProps$1<TData, TValue>) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
declare const DataTableMainFrameSortable: <TData extends RowData, TValue>({ table, columns, isLoadingTable, loadingContent, setQueryParams, dataLabel, actionColumns, data, messageEmpty, onDataChange, rowKey, dividingColumnKey, pageSizeOptions, className, scrollMaxHeightClass, isScrollable, fixedHeader, showPagination, renderTooltip, infoExtraLabel, sortableValue: propValue, sortableOnValueChange: propOnValueChange, sortableOnDragStart: propOnDragStart, sortableOnDragEnd: propOnDragEnd, }: DataTableViewOptionsProps$1<TData, TValue>) => react_jsx_runtime.JSX.Element;
|
|
58
68
|
|
|
59
69
|
interface DataTablePaginationProps<TData> {
|
|
60
70
|
table: Table<TData>;
|
|
@@ -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-Cbs-uxBq.mjs';
|
|
4
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-DZFrWKa9.mjs';
|
|
5
|
+
import { C as ChevronLeft } from '../chunks/chevron-left-Dr2znK-e.mjs';
|
|
6
|
+
import { C as ChevronRight } from '../chunks/chevron-right-DmVvAueL.mjs';
|
|
7
|
+
import { c as PaginationItem, f as PaginationEllipsis } from '../chunks/pagination-D7L2vbck.mjs';
|
|
8
|
+
import { B as Button } from '../chunks/button-BtNSgexc.mjs';
|
|
9
|
+
import { S as Skeleton } from '../chunks/skeleton-CAkZfLJU.mjs';
|
|
10
|
+
import { e as TableRow, f as TableCell, T as Table, a as TableHeader, d as TableHead, b as TableBody } from '../chunks/table-DtYzDvg1.mjs';
|
|
11
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-PuoJamGs.mjs';
|
|
12
|
+
import { S as Sortable, b as SortableItem } from '../chunks/sortable-CqaoTR3I.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-EU3dDbf_.mjs';
|
|
14
|
+
import { I as Input } from '../chunks/input-C3fkPeG_.mjs';
|
|
15
|
+
import { C as ChevronDown } from '../chunks/chevron-down-DPe3wUSx.mjs';
|
|
16
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-C1aNGeey.mjs';
|
|
17
|
+
import { C as Check } from '../chunks/check-TyRJdtqa.mjs';
|
|
18
|
+
import '../chunks/bundle-mjs-CwF_jj9z.mjs';
|
|
19
19
|
import '@radix-ui/react-select';
|
|
20
|
-
import '../chunks/ellipsis-
|
|
20
|
+
import '../chunks/ellipsis-D5nNS0KK.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-CjsV2E2h.mjs';
|
|
25
|
+
import '../chunks/index-C1gfRtpW.mjs';
|
|
26
|
+
import '../chunks/index-BdP_9M8C.mjs';
|
|
27
|
+
import '../chunks/index-BmNJQBZT.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-CWjsfCPV.mjs';
|
|
30
|
+
import '../chunks/index-CZgLnzan.mjs';
|
|
31
|
+
import '../chunks/index-CY7rSsKT.mjs';
|
|
32
|
+
import '../chunks/index-CBE_CuM0.mjs';
|
|
33
|
+
import '../chunks/index-DH87EZ4W.mjs';
|
|
34
|
+
import '../chunks/index-BRYOOGYt.mjs';
|
|
35
|
+
import '../chunks/index-DRuAMnOw.mjs';
|
|
36
|
+
import '../chunks/tslib.es6-SGuOiL7t.mjs';
|
|
37
|
+
import '../chunks/index-B2rYWtDF.mjs';
|
|
38
|
+
import '../chunks/index-KLdt0FXh.mjs';
|
|
39
|
+
import '../chunks/dialog-BMq_EiaM.mjs';
|
|
40
|
+
import '../chunks/x-dyn358tn.mjs';
|
|
41
|
+
import '../chunks/index-C9_8aC95.mjs';
|
|
42
|
+
import '../chunks/index-t0_4qi-T.mjs';
|
|
43
43
|
|
|
44
44
|
const __iconNode$1 = [
|
|
45
45
|
[
|
|
@@ -379,6 +379,51 @@ const DataTableMainFrame = ({ table, columns, isLoadingTable, loadingContent, se
|
|
|
379
379
|
}));
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
+
// Utils para manipular árvores de forma imutável
|
|
383
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: <any> */ // Encontra um item e retorna caminho + referência
|
|
384
|
+
function findItemPath(tree, id, path = []) {
|
|
385
|
+
for(let i = 0; i < tree.length; i++){
|
|
386
|
+
const node = tree[i];
|
|
387
|
+
// Encontrou o item
|
|
388
|
+
if (node.id === id) {
|
|
389
|
+
return {
|
|
390
|
+
path: [
|
|
391
|
+
...path,
|
|
392
|
+
i
|
|
393
|
+
],
|
|
394
|
+
node
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
// Recursão em subRows
|
|
398
|
+
if (Array.isArray(node.subRows) && node.subRows.length > 0) {
|
|
399
|
+
const result = findItemPath(node.subRows, id, [
|
|
400
|
+
...path,
|
|
401
|
+
i,
|
|
402
|
+
"subRows"
|
|
403
|
+
]);
|
|
404
|
+
if (result) return result;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
function removeAtPath(tree, path) {
|
|
410
|
+
let ref = tree;
|
|
411
|
+
for(let i = 0; i < path.length - 1; i++){
|
|
412
|
+
ref = ref[path[i]];
|
|
413
|
+
}
|
|
414
|
+
const index = path[path.length - 1];
|
|
415
|
+
const removed = ref.splice(index, 1)[0];
|
|
416
|
+
return removed;
|
|
417
|
+
}
|
|
418
|
+
function insertAtPath(tree, path, item) {
|
|
419
|
+
let ref = tree;
|
|
420
|
+
for(let i = 0; i < path.length - 1; i++){
|
|
421
|
+
ref = ref[path[i]];
|
|
422
|
+
}
|
|
423
|
+
const index = path[path.length - 1];
|
|
424
|
+
ref.splice(index, 0, item);
|
|
425
|
+
}
|
|
426
|
+
|
|
382
427
|
const getRowKey = (row, rowKey)=>{
|
|
383
428
|
if (typeof rowKey === "function") {
|
|
384
429
|
return rowKey(row);
|
|
@@ -393,14 +438,16 @@ const getRowKey = (row, rowKey)=>{
|
|
|
393
438
|
}
|
|
394
439
|
return row[rowKey];
|
|
395
440
|
};
|
|
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 })=>{
|
|
441
|
+
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, sortableValue: propValue, sortableOnValueChange: propOnValueChange, sortableOnDragStart: propOnDragStart, sortableOnDragEnd: propOnDragEnd })=>{
|
|
397
442
|
const currentPage = Number(table.getState().pagination.pageIndex).toString();
|
|
398
443
|
const pageSize = Number(table.getState().pagination.pageSize).toString();
|
|
399
444
|
const sorting = table.getState().sorting;
|
|
400
445
|
const [newData, setNewData] = React__default.useState(data);
|
|
401
446
|
const handleValueChange = (updatedData)=>{
|
|
402
447
|
setNewData(updatedData);
|
|
403
|
-
onDataChange
|
|
448
|
+
if (onDataChange) {
|
|
449
|
+
onDataChange(updatedData);
|
|
450
|
+
}
|
|
404
451
|
};
|
|
405
452
|
React__default.useEffect(()=>{
|
|
406
453
|
setNewData(data);
|
|
@@ -454,7 +501,7 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
454
501
|
const key = getRowKey(rowData, rowKey);
|
|
455
502
|
const rowContent = row.getVisibleCells().map((cell)=>/*#__PURE__*/ React__default.createElement(TableCell, {
|
|
456
503
|
key: cell.id,
|
|
457
|
-
className: cn("p-2 py-1", dividingColumnKey?.includes(cell.column.id) && "border-r")
|
|
504
|
+
className: cn("p-2 py-1", dividingColumnKey?.includes(cell.column.id) && "border-r", cell.column.columnDef.meta?.className)
|
|
458
505
|
}, flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
459
506
|
const baseRow = /*#__PURE__*/ React__default.createElement(TableRow, {
|
|
460
507
|
"data-state": row.getIsSelected() && "selected",
|
|
@@ -468,13 +515,80 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
468
515
|
}, wrappedRow);
|
|
469
516
|
});
|
|
470
517
|
};
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
518
|
+
const [activeId, setActiveId] = React__default.useState(null);
|
|
519
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: <useMemo>
|
|
520
|
+
const siblings = React__default.useMemo(()=>{
|
|
521
|
+
if (!activeId) return table.getRowModel().rows.map((row)=>({
|
|
522
|
+
...row.original,
|
|
523
|
+
id: getRowKey(row.original, rowKey)
|
|
524
|
+
}));
|
|
525
|
+
const activeRow = table.getRowModel().rows.find((row)=>getRowKey(row.original, rowKey) === activeId);
|
|
526
|
+
if (!activeRow) return [];
|
|
527
|
+
const parentId = activeRow.parentId;
|
|
528
|
+
return table.getRowModel().rows.filter((row)=>row.parentId === parentId).map((row)=>({
|
|
529
|
+
...row.original,
|
|
530
|
+
id: getRowKey(row.original, rowKey)
|
|
531
|
+
}));
|
|
532
|
+
}, [
|
|
533
|
+
activeId,
|
|
534
|
+
table.getRowModel().rows,
|
|
535
|
+
rowKey
|
|
536
|
+
]);
|
|
537
|
+
const internalHandleDragStart = (event)=>{
|
|
538
|
+
setActiveId(event.active.id);
|
|
539
|
+
};
|
|
540
|
+
const internalHandleDragEnd = (event)=>{
|
|
541
|
+
setActiveId(null);
|
|
542
|
+
const { active, over } = event;
|
|
543
|
+
if (!active || !over) return;
|
|
544
|
+
const sourceId = active.id;
|
|
545
|
+
const targetId = over.id;
|
|
546
|
+
if (sourceId === targetId) return;
|
|
547
|
+
const tree = newData.map((item)=>({
|
|
474
548
|
...item,
|
|
475
549
|
id: getRowKey(item, rowKey)
|
|
476
|
-
}))
|
|
477
|
-
|
|
550
|
+
}));
|
|
551
|
+
const source = findItemPath(tree, sourceId);
|
|
552
|
+
const target = findItemPath(tree, targetId);
|
|
553
|
+
if (!source || !target) return;
|
|
554
|
+
// -----------------------------
|
|
555
|
+
// 🔒 1. TRAVAR MOVIMENTAÇÃO ENTRE NÍVEIS DIFERENTES
|
|
556
|
+
// -----------------------------
|
|
557
|
+
const sourcePath = source.path;
|
|
558
|
+
const targetPath = target.path;
|
|
559
|
+
// Pega o "caminho do pai" (remove o último índice, que é o índice do item em si)
|
|
560
|
+
const sourceParentPath = sourcePath.slice(0, -1);
|
|
561
|
+
const targetParentPath = targetPath.slice(0, -1);
|
|
562
|
+
// Compara se os arrays são iguais (mesmo tamanho e mesmos valores)
|
|
563
|
+
const isSameParent = sourceParentPath.length === targetParentPath.length && sourceParentPath.every((val, index)=>val === targetParentPath[index]);
|
|
564
|
+
if (!isSameParent) {
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
// -----------------------------
|
|
568
|
+
// 🔄 2. MOVIMENTO PERMITIDO → REORDENAR
|
|
569
|
+
// -----------------------------
|
|
570
|
+
const removedItem = removeAtPath(tree, sourcePath);
|
|
571
|
+
const destPath = [
|
|
572
|
+
...targetPath
|
|
573
|
+
];
|
|
574
|
+
destPath[destPath.length - 1] = targetPath[targetPath.length - 1];
|
|
575
|
+
insertAtPath(tree, destPath, removedItem);
|
|
576
|
+
handleValueChange(tree);
|
|
577
|
+
};
|
|
578
|
+
const shouldForceMinHeight = table.getRowModel().rows.length > 1 || isLoadingTable;
|
|
579
|
+
const finalValue = propValue ?? table.getRowModel().rows.map((row)=>({
|
|
580
|
+
...row.original,
|
|
581
|
+
id: getRowKey(row.original, rowKey)
|
|
582
|
+
}));
|
|
583
|
+
const finalOnValueChange = propOnValueChange ?? handleValueChange;
|
|
584
|
+
const finalOnDragStart = propOnDragStart ?? internalHandleDragStart;
|
|
585
|
+
const finalOnDragEnd = propOnDragEnd ?? internalHandleDragEnd;
|
|
586
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement(Sortable, {
|
|
587
|
+
value: finalValue,
|
|
588
|
+
contextItems: siblings,
|
|
589
|
+
onValueChange: finalOnValueChange,
|
|
590
|
+
onDragStart: finalOnDragStart,
|
|
591
|
+
onDragEnd: finalOnDragEnd
|
|
478
592
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
479
593
|
className: cn("bg-background mx-1 h-full w-full rounded-md border whitespace-nowrap", className)
|
|
480
594
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
@@ -491,7 +605,7 @@ const DataTableMainFrameSortable = ({ table, columns, isLoadingTable, loadingCon
|
|
|
491
605
|
...actionColumns
|
|
492
606
|
].includes(id);
|
|
493
607
|
return /*#__PURE__*/ React__default.createElement(TableHead, {
|
|
494
|
-
className: dividingColumnKey?.includes(id) ? "border-r" : "",
|
|
608
|
+
className: cn(dividingColumnKey?.includes(id) ? "border-r" : "", header.column.columnDef.meta?.className),
|
|
495
609
|
key: header.id
|
|
496
610
|
}, header.isPlaceholder ? null : /*#__PURE__*/ React__default.createElement("div", {
|
|
497
611
|
className: !isActionsColumn && header.column.getCanSort() ? "flex w-fit items-center justify-start cursor-pointer gap-1 font-medium" : "",
|