ivt 0.6.9 → 0.7.1
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 +5 -44
- package/dist/alert/index.mjs.map +1 -1
- package/dist/alert-dialog/index.mjs +17 -17
- package/dist/aspect-ratio/index.mjs +1 -1
- package/dist/auto-complete-multi-select/index.d.ts +4 -3
- package/dist/auto-complete-multi-select/index.mjs +34 -34
- package/dist/auto-complete-multi-select/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +130 -3
- package/dist/base/index.mjs +240 -51
- 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-yEDYUjQD.mjs → CalendarRange-BCcF9etO.mjs} +8 -8
- package/dist/chunks/{CalendarRange-yEDYUjQD.mjs.map → CalendarRange-BCcF9etO.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-ILa8OaOB.mjs → ComboboxField-C8LG3Dfr.mjs} +9 -9
- package/dist/chunks/{ComboboxField-ILa8OaOB.mjs.map → ComboboxField-C8LG3Dfr.mjs.map} +1 -1
- package/dist/chunks/{Container-DIxGDpnK.mjs → Container-DGNhxyRJ.mjs} +2 -2
- package/dist/chunks/{Container-DIxGDpnK.mjs.map → Container-DGNhxyRJ.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-Chw9qtJ5.mjs → DeleteConfirmationModal-CjXlfOWx.mjs} +6 -6
- package/dist/chunks/DeleteConfirmationModal-CjXlfOWx.mjs.map +1 -0
- package/dist/chunks/{ListItem-Cmc5KRwa.mjs → ListItem-D8UYYQVp.mjs} +4 -4
- package/dist/chunks/{ListItem-Cmc5KRwa.mjs.map → ListItem-D8UYYQVp.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-DmbkG9GU.mjs → TooltipIndicator-DgBUQgOI.mjs} +5 -5
- package/dist/chunks/{TooltipIndicator-DmbkG9GU.mjs.map → TooltipIndicator-DgBUQgOI.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-BB7msia9.mjs → _commonjsHelpers-9sDwrKIv.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-9sDwrKIv.mjs.map +1 -0
- package/dist/chunks/{accordion-CEM9oHG4.mjs → accordion-130n2E9C.mjs} +11 -11
- package/dist/chunks/{accordion-CEM9oHG4.mjs.map → accordion-130n2E9C.mjs.map} +1 -1
- package/dist/chunks/alert-BONxY3hS.mjs +44 -0
- package/dist/chunks/alert-BONxY3hS.mjs.map +1 -0
- package/dist/chunks/{badge-Bq7g6DlG.mjs → badge-rV4HbE_R.mjs} +2 -2
- package/dist/chunks/{badge-Bq7g6DlG.mjs.map → badge-rV4HbE_R.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-DF1QM7yV.mjs → bundle-mjs-BYcyWisL.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-DF1QM7yV.mjs.map → bundle-mjs-BYcyWisL.mjs.map} +1 -1
- package/dist/chunks/{button-C0ijXnnF.mjs → button-Co_1yLv6.mjs} +2 -2
- package/dist/chunks/{button-C0ijXnnF.mjs.map → button-Co_1yLv6.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-Bvb62uyh.mjs → calendar-days-D8ft1Hpj.mjs} +2 -2
- package/dist/chunks/{calendar-days-Bvb62uyh.mjs.map → calendar-days-D8ft1Hpj.mjs.map} +1 -1
- package/dist/chunks/{calendar-DZgstGv7.mjs → calendar-olAv9AH7.mjs} +7 -7
- package/dist/chunks/{calendar-DZgstGv7.mjs.map → calendar-olAv9AH7.mjs.map} +1 -1
- package/dist/chunks/{card-BQVVUjMb.mjs → card-C_2pshaz.mjs} +2 -2
- package/dist/chunks/{card-BQVVUjMb.mjs.map → card-C_2pshaz.mjs.map} +1 -1
- package/dist/chunks/{check-DduIDKAH.mjs → check-BBGTedl-.mjs} +2 -2
- package/dist/chunks/{check-DduIDKAH.mjs.map → check-BBGTedl-.mjs.map} +1 -1
- package/dist/chunks/{checkbox-CWK1-JLs.mjs → checkbox-D9LLByPZ.mjs} +11 -11
- package/dist/chunks/{checkbox-CWK1-JLs.mjs.map → checkbox-D9LLByPZ.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-C8lGEIzE.mjs → chevron-down-DNXEgdv9.mjs} +2 -2
- package/dist/chunks/{chevron-down-C8lGEIzE.mjs.map → chevron-down-DNXEgdv9.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-Ca4MIUps.mjs → chevron-left-D7OzIyKL.mjs} +2 -2
- package/dist/chunks/{chevron-left-Ca4MIUps.mjs.map → chevron-left-D7OzIyKL.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-D8jyu1Ce.mjs → chevron-right-mC6NR8jW.mjs} +2 -2
- package/dist/chunks/{chevron-right-D8jyu1Ce.mjs.map → chevron-right-mC6NR8jW.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-2G_mHB5d.mjs → chevrons-up-down-BFiJwHit.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-2G_mHB5d.mjs.map → chevrons-up-down-BFiJwHit.mjs.map} +1 -1
- package/dist/chunks/{command-CTTEi-Tw.mjs → command-IckfUQsK.mjs} +8 -8
- package/dist/chunks/{command-CTTEi-Tw.mjs.map → command-IckfUQsK.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-CyWof2Fq.mjs → createLucideIcon-DLrNgMqk.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-CyWof2Fq.mjs.map → createLucideIcon-DLrNgMqk.mjs.map} +1 -1
- package/dist/chunks/{date-Nk-MIRuv.mjs → date-bAe2UaSj.mjs} +2 -2
- package/dist/chunks/{date-Nk-MIRuv.mjs.map → date-bAe2UaSj.mjs.map} +1 -1
- package/dist/chunks/{dialog-DsCgCf_e.mjs → dialog-BkF50Tmo.mjs} +4 -4
- package/dist/chunks/{dialog-DsCgCf_e.mjs.map → dialog-BkF50Tmo.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-CETjPDAu.mjs → ellipsis-xV1ovGxI.mjs} +2 -2
- package/dist/chunks/{ellipsis-CETjPDAu.mjs.map → ellipsis-xV1ovGxI.mjs.map} +1 -1
- package/dist/chunks/{form-Cu6WYy_F.mjs → form-0eamcSZm.mjs} +3 -3
- package/dist/chunks/{form-Cu6WYy_F.mjs.map → form-0eamcSZm.mjs.map} +1 -1
- package/dist/chunks/{format-Dy5xvA9f.mjs → format-Cn5wls3k.mjs} +1 -1
- package/dist/chunks/{format-Dy5xvA9f.mjs.map → format-Cn5wls3k.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-Cv0AFOA0.mjs → format-numbers-BMHnFGse.mjs} +1 -1
- package/dist/chunks/{format-numbers-Cv0AFOA0.mjs.map → format-numbers-BMHnFGse.mjs.map} +1 -1
- package/dist/chunks/{hover-card-DftgNnGK.mjs → hover-card-CodWi0dK.mjs} +11 -11
- package/dist/chunks/{hover-card-DftgNnGK.mjs.map → hover-card-CodWi0dK.mjs.map} +1 -1
- package/dist/chunks/{index-BI2MxMeC.mjs → index-1tQVI0Jh.mjs} +1 -1
- package/dist/chunks/{index-BI2MxMeC.mjs.map → index-1tQVI0Jh.mjs.map} +1 -1
- package/dist/chunks/{index-DZlAt5Up.mjs → index-An4yBrAZ.mjs} +2 -2
- package/dist/chunks/{index-DZlAt5Up.mjs.map → index-An4yBrAZ.mjs.map} +1 -1
- package/dist/chunks/{index-sGgLIg5I.mjs → index-BRYGnp2Q.mjs} +11 -11
- package/dist/chunks/{index-sGgLIg5I.mjs.map → index-BRYGnp2Q.mjs.map} +1 -1
- package/dist/chunks/{index-qUT5iV25.mjs → index-BTe1rv5Z.mjs} +3 -3
- package/dist/chunks/{index-qUT5iV25.mjs.map → index-BTe1rv5Z.mjs.map} +1 -1
- package/dist/chunks/{index-D56BYstR.mjs → index-Bl-WJHvp.mjs} +1 -1
- package/dist/chunks/{index-D56BYstR.mjs.map → index-Bl-WJHvp.mjs.map} +1 -1
- package/dist/chunks/{index-DE-b60L0.mjs → index-BsG_UW8k.mjs} +9 -9
- package/dist/chunks/{index-DE-b60L0.mjs.map → index-BsG_UW8k.mjs.map} +1 -1
- package/dist/chunks/{index-2anlJbdb.mjs → index-C6s8KI_8.mjs} +3 -3
- package/dist/chunks/{index-2anlJbdb.mjs.map → index-C6s8KI_8.mjs.map} +1 -1
- package/dist/chunks/{index-BsB-iQGw.mjs → index-CGLjQEjG.mjs} +1 -1
- package/dist/chunks/{index-BsB-iQGw.mjs.map → index-CGLjQEjG.mjs.map} +1 -1
- package/dist/chunks/{index-CQt6sjXa.mjs → index-Cbm3--wc.mjs} +1 -1
- package/dist/chunks/{index-CQt6sjXa.mjs.map → index-Cbm3--wc.mjs.map} +1 -1
- package/dist/chunks/{index-Ccz8nL5M.mjs → index-D4FMFHi9.mjs} +2 -2
- package/dist/chunks/{index-Ccz8nL5M.mjs.map → index-D4FMFHi9.mjs.map} +1 -1
- package/dist/chunks/{index-B0Kdhw0d.mjs → index-DKOlG3mh.mjs} +1 -1
- package/dist/chunks/{index-B0Kdhw0d.mjs.map → index-DKOlG3mh.mjs.map} +1 -1
- package/dist/chunks/{index-vtBqBO3S.mjs → index-DT8WgpCS.mjs} +1 -1
- package/dist/chunks/{index-vtBqBO3S.mjs.map → index-DT8WgpCS.mjs.map} +1 -1
- package/dist/chunks/{index-CKARIk9k.mjs → index-DUpRrJTH.mjs} +5 -5
- package/dist/chunks/{index-CKARIk9k.mjs.map → index-DUpRrJTH.mjs.map} +1 -1
- package/dist/chunks/{index-Dot3Y4xv.mjs → index-DWJ_2Xiy.mjs} +9 -9
- package/dist/chunks/{index-Dot3Y4xv.mjs.map → index-DWJ_2Xiy.mjs.map} +1 -1
- package/dist/chunks/{index-CUXpXuiX.mjs → index-DWmrjIYv.mjs} +15 -15
- package/dist/chunks/{index-CUXpXuiX.mjs.map → index-DWmrjIYv.mjs.map} +1 -1
- package/dist/chunks/{index-L4pU8dCQ.mjs → index-DgKlJYZP.mjs} +1 -1
- package/dist/chunks/{index-L4pU8dCQ.mjs.map → index-DgKlJYZP.mjs.map} +1 -1
- package/dist/chunks/{index-DAZztiKf.mjs → index-DmY774z-.mjs} +2 -2
- package/dist/chunks/{index-DAZztiKf.mjs.map → index-DmY774z-.mjs.map} +1 -1
- package/dist/chunks/{index-Coakg78O.mjs → index-DvCZGX3H.mjs} +5 -5
- package/dist/chunks/{index-Coakg78O.mjs.map → index-DvCZGX3H.mjs.map} +1 -1
- package/dist/chunks/{index-PrEP6495.mjs → index-FL3PKmOS.mjs} +1 -1
- package/dist/chunks/{index-PrEP6495.mjs.map → index-FL3PKmOS.mjs.map} +1 -1
- package/dist/chunks/{index-DpP8NjDG.mjs → index-GgS4otoq.mjs} +1 -1
- package/dist/chunks/{index-DpP8NjDG.mjs.map → index-GgS4otoq.mjs.map} +1 -1
- package/dist/chunks/{index-n9Y_kDgY.mjs → index-aLIsJMgt.mjs} +7 -7
- package/dist/chunks/{index-n9Y_kDgY.mjs.map → index-aLIsJMgt.mjs.map} +1 -1
- package/dist/chunks/{index-aXbRFMsA.mjs → index-korrz_kD.mjs} +1 -1
- package/dist/chunks/{index-aXbRFMsA.mjs.map → index-korrz_kD.mjs.map} +1 -1
- package/dist/chunks/{index-BEh8ek6-.mjs → index-tkRL9Tft.mjs} +2 -2
- package/dist/chunks/{index-BEh8ek6-.mjs.map → index-tkRL9Tft.mjs.map} +1 -1
- package/dist/chunks/{index.module-dysOJ0dE.mjs → index.module-1-Lm1QYF.mjs} +1 -1
- package/dist/chunks/{index.module-dysOJ0dE.mjs.map → index.module-1-Lm1QYF.mjs.map} +1 -1
- package/dist/chunks/{input-tGWBpkwj.mjs → input-BEkvMaQp.mjs} +2 -2
- package/dist/chunks/{input-tGWBpkwj.mjs.map → input-BEkvMaQp.mjs.map} +1 -1
- package/dist/chunks/{label-BrO1sQ0r.mjs → label-atj6gghV.mjs} +3 -3
- package/dist/chunks/{label-BrO1sQ0r.mjs.map → label-atj6gghV.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-4xW2b9O-.mjs → loader-circle-BX1p6hn_.mjs} +2 -2
- package/dist/chunks/{loader-circle-4xW2b9O-.mjs.map → loader-circle-BX1p6hn_.mjs.map} +1 -1
- package/dist/chunks/{menubar-IydEfpqR.mjs → menubar-JE1m8rYJ.mjs} +13 -13
- package/dist/chunks/{menubar-IydEfpqR.mjs.map → menubar-JE1m8rYJ.mjs.map} +1 -1
- package/dist/chunks/{multi-select-okHPP4N6.mjs → multi-select-dor8SMeS.mjs} +13 -13
- package/dist/chunks/{multi-select-okHPP4N6.mjs.map → multi-select-dor8SMeS.mjs.map} +1 -1
- package/dist/chunks/{pagination-DMKpWpJG.mjs → pagination-BaIJ0fC9.mjs} +6 -6
- package/dist/chunks/{pagination-DMKpWpJG.mjs.map → pagination-BaIJ0fC9.mjs.map} +1 -1
- package/dist/chunks/{popover-BW3SktUO.mjs → popover-CsYW0nDm.mjs} +13 -13
- package/dist/chunks/{popover-BW3SktUO.mjs.map → popover-CsYW0nDm.mjs.map} +1 -1
- package/dist/chunks/{progress-DUEVgFeg.mjs → progress-CwHuXUFj.mjs} +4 -4
- package/dist/chunks/{progress-DUEVgFeg.mjs.map → progress-CwHuXUFj.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-Cbz93HFd.mjs → react-number-format.es-DSc45Db0.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-Cbz93HFd.mjs.map → react-number-format.es-DSc45Db0.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-D9LK7L4w.mjs → scroll-area-Cr1Iu-Ot.mjs} +11 -11
- package/dist/chunks/{scroll-area-D9LK7L4w.mjs.map → scroll-area-Cr1Iu-Ot.mjs.map} +1 -1
- package/dist/chunks/{select-PRQ81N8j.mjs → select-C4BJbkha.mjs} +5 -5
- package/dist/chunks/{select-PRQ81N8j.mjs.map → select-C4BJbkha.mjs.map} +1 -1
- package/dist/chunks/{separator-D7Q4xZTz.mjs → separator-StpvupIv.mjs} +3 -3
- package/dist/chunks/{separator-D7Q4xZTz.mjs.map → separator-StpvupIv.mjs.map} +1 -1
- package/dist/chunks/{sheet-C-yvf0_u.mjs → sheet-BVDcVKli.mjs} +4 -4
- package/dist/chunks/{sheet-C-yvf0_u.mjs.map → sheet-BVDcVKli.mjs.map} +1 -1
- package/dist/chunks/{skeleton-Bz6KDspc.mjs → skeleton-CIulxewv.mjs} +2 -2
- package/dist/chunks/{skeleton-Bz6KDspc.mjs.map → skeleton-CIulxewv.mjs.map} +1 -1
- package/dist/chunks/{sortable-BD-qat9h.mjs → sortable-CjI-AdZJ.mjs} +3 -3
- package/dist/chunks/{sortable-BD-qat9h.mjs.map → sortable-CjI-AdZJ.mjs.map} +1 -1
- package/dist/chunks/{table-CcTvqI8M.mjs → table-Bxaxu8Lu.mjs} +2 -2
- package/dist/chunks/{table-CcTvqI8M.mjs.map → table-Bxaxu8Lu.mjs.map} +1 -1
- package/dist/chunks/tabs-BY4r8p4T.mjs +187 -0
- package/dist/chunks/tabs-BY4r8p4T.mjs.map +1 -0
- package/dist/chunks/{textarea-DQisQdiY.mjs → textarea-C6wEktNT.mjs} +2 -2
- package/dist/chunks/{textarea-DQisQdiY.mjs.map → textarea-C6wEktNT.mjs.map} +1 -1
- package/dist/chunks/{toggle-DAuL1B39.mjs → toggle-BKUFNwmI.mjs} +5 -5
- package/dist/chunks/{toggle-DAuL1B39.mjs.map → toggle-BKUFNwmI.mjs.map} +1 -1
- package/dist/chunks/{tooltip-DF-75FfQ.mjs → tooltip-BTEGteNb.mjs} +13 -13
- package/dist/chunks/{tooltip-DF-75FfQ.mjs.map → tooltip-BTEGteNb.mjs.map} +1 -1
- package/dist/chunks/{trash-2-C-nU3lmr.mjs → trash-2-D6lkozey.mjs} +2 -2
- package/dist/chunks/{trash-2-C-nU3lmr.mjs.map → trash-2-D6lkozey.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-MhLQqOiF.mjs → triangle-alert-D5Cr5kOo.mjs} +2 -2
- package/dist/chunks/{triangle-alert-MhLQqOiF.mjs.map → triangle-alert-D5Cr5kOo.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-Cuxw-1bu.mjs → tslib.es6-DXUeYCTx.mjs} +1 -1
- package/dist/chunks/{tslib.es6-Cuxw-1bu.mjs.map → tslib.es6-DXUeYCTx.mjs.map} +1 -1
- package/dist/chunks/{utils-CwDmCEge.mjs → utils-05LlW3Cl.mjs} +2 -2
- package/dist/chunks/{utils-CwDmCEge.mjs.map → utils-05LlW3Cl.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-7XfX5Sd6.mjs → wand-sparkles-BIbU0kjG.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-7XfX5Sd6.mjs.map → wand-sparkles-BIbU0kjG.mjs.map} +1 -1
- package/dist/chunks/{x-Dpaoz6yn.mjs → x-BOMmTgZd.mjs} +2 -2
- package/dist/chunks/{x-Dpaoz6yn.mjs.map → x-BOMmTgZd.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +9 -9
- package/dist/combobox/index.d.ts +5 -1
- package/dist/combobox/index.mjs +29 -27
- package/dist/combobox/index.mjs.map +1 -1
- 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.mjs +35 -35
- 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 +19 -19
- package/dist/editable-table/index.mjs +20 -20
- 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 +23 -23
- package/dist/menubar/index.mjs +24 -24
- package/dist/multi-input-list/index.d.ts +7 -0
- package/dist/multi-input-list/index.mjs +178 -74
- package/dist/multi-input-list/index.mjs.map +1 -1
- package/dist/multi-select/index.mjs +33 -33
- 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.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 +7 -1
- package/dist/table-filter/index.mjs +95 -65
- package/dist/table-filter/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +16 -190
- package/dist/tabs/index.mjs.map +1 -1
- 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 +470 -470
- package/dist/chunks/DeleteConfirmationModal-Chw9qtJ5.mjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-BB7msia9.mjs.map +0 -1
package/dist/skeleton/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as Skeleton } from '../chunks/skeleton-
|
|
1
|
+
export { S as Skeleton } from '../chunks/skeleton-CIulxewv.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import '../chunks/utils-05LlW3Cl.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { C as Container, a as ChildContainer } from '../chunks/Container-
|
|
3
|
-
import { S as Skeleton } from '../chunks/skeleton-
|
|
4
|
-
import '../chunks/utils-
|
|
5
|
-
import '../chunks/bundle-mjs-
|
|
2
|
+
import { C as Container, a as ChildContainer } from '../chunks/Container-DGNhxyRJ.mjs';
|
|
3
|
+
import { S as Skeleton } from '../chunks/skeleton-CIulxewv.mjs';
|
|
4
|
+
import '../chunks/utils-05LlW3Cl.mjs';
|
|
5
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
6
6
|
|
|
7
7
|
const FormSkeleton = ({ count = 4 })=>{
|
|
8
8
|
return /*#__PURE__*/ React__default.createElement("div", {
|
package/dist/slider/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as clamp } from '../chunks/index-
|
|
3
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
4
|
-
import { u as useComposedRefs } from '../chunks/index-
|
|
5
|
-
import { c as createContextScope } from '../chunks/index-
|
|
6
|
-
import { u as useControllableState } from '../chunks/index-
|
|
7
|
-
import { u as useDirection } from '../chunks/index-
|
|
8
|
-
import { u as usePrevious } from '../chunks/index-
|
|
9
|
-
import { u as useSize } from '../chunks/index-
|
|
10
|
-
import { P as Primitive } from '../chunks/index-
|
|
2
|
+
import { c as clamp } from '../chunks/index-GgS4otoq.mjs';
|
|
3
|
+
import { c as composeEventHandlers } from '../chunks/index-Bl-WJHvp.mjs';
|
|
4
|
+
import { u as useComposedRefs } from '../chunks/index-1tQVI0Jh.mjs';
|
|
5
|
+
import { c as createContextScope } from '../chunks/index-DT8WgpCS.mjs';
|
|
6
|
+
import { u as useControllableState } from '../chunks/index-D4FMFHi9.mjs';
|
|
7
|
+
import { u as useDirection } from '../chunks/index-CGLjQEjG.mjs';
|
|
8
|
+
import { u as usePrevious } from '../chunks/index-FL3PKmOS.mjs';
|
|
9
|
+
import { u as useSize } from '../chunks/index-DmY774z-.mjs';
|
|
10
|
+
import { P as Primitive } from '../chunks/index-DgKlJYZP.mjs';
|
|
11
11
|
import { createCollection } from '@radix-ui/react-collection';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
|
-
import { c as cn } from '../chunks/utils-
|
|
14
|
-
import '../chunks/index-
|
|
13
|
+
import { c as cn } from '../chunks/utils-05LlW3Cl.mjs';
|
|
14
|
+
import '../chunks/index-DKOlG3mh.mjs';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import '@radix-ui/react-slot';
|
|
17
|
-
import '../chunks/bundle-mjs-
|
|
17
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
18
18
|
|
|
19
19
|
var PAGE_KEYS = [
|
|
20
20
|
"PageUp",
|
package/dist/sortable/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as Sortable, a as SortableDragHandle, b as SortableItem, c as SortableOverlay } from '../chunks/sortable-
|
|
1
|
+
export { S as Sortable, a as SortableDragHandle, b as SortableItem, c as SortableOverlay } from '../chunks/sortable-CjI-AdZJ.mjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
4
|
import '@radix-ui/react-slot';
|
|
5
|
-
import '../chunks/utils-
|
|
6
|
-
import '../chunks/bundle-mjs-
|
|
7
|
-
import '../chunks/button-
|
|
5
|
+
import '../chunks/utils-05LlW3Cl.mjs';
|
|
6
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
7
|
+
import '../chunks/button-Co_1yLv6.mjs';
|
|
8
8
|
import 'class-variance-authority';
|
|
9
9
|
//# sourceMappingURL=index.mjs.map
|
package/dist/spinner/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
2
|
-
import { L as LoaderCircle } from '../chunks/loader-circle-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
4
|
-
import '../chunks/createLucideIcon-
|
|
1
|
+
import { c as cn } from '../chunks/utils-05LlW3Cl.mjs';
|
|
2
|
+
import { L as LoaderCircle } from '../chunks/loader-circle-BX1p6hn_.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
4
|
+
import '../chunks/createLucideIcon-DLrNgMqk.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
function Spinner({ className, ...props }) {
|
package/dist/switch/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
3
|
-
import { u as useComposedRefs } from '../chunks/index-
|
|
4
|
-
import { c as createContextScope } from '../chunks/index-
|
|
5
|
-
import { u as useControllableState } from '../chunks/index-
|
|
6
|
-
import { u as usePrevious } from '../chunks/index-
|
|
7
|
-
import { u as useSize } from '../chunks/index-
|
|
8
|
-
import { P as Primitive } from '../chunks/index-
|
|
2
|
+
import { c as composeEventHandlers } from '../chunks/index-Bl-WJHvp.mjs';
|
|
3
|
+
import { u as useComposedRefs } from '../chunks/index-1tQVI0Jh.mjs';
|
|
4
|
+
import { c as createContextScope } from '../chunks/index-DT8WgpCS.mjs';
|
|
5
|
+
import { u as useControllableState } from '../chunks/index-D4FMFHi9.mjs';
|
|
6
|
+
import { u as usePrevious } from '../chunks/index-FL3PKmOS.mjs';
|
|
7
|
+
import { u as useSize } from '../chunks/index-DmY774z-.mjs';
|
|
8
|
+
import { P as Primitive } from '../chunks/index-DgKlJYZP.mjs';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { c as cn } from '../chunks/utils-
|
|
11
|
-
import '../chunks/index-
|
|
10
|
+
import { c as cn } from '../chunks/utils-05LlW3Cl.mjs';
|
|
11
|
+
import '../chunks/index-DKOlG3mh.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
|
-
import '../chunks/bundle-mjs-
|
|
14
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
15
15
|
|
|
16
16
|
var SWITCH_NAME = "Switch";
|
|
17
17
|
var [createSwitchContext] = createContextScope(SWITCH_NAME);
|
package/dist/table/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { T as Table, b as TableBody, g as TableCaption, f as TableCell, c as TableFooter, d as TableHead, a as TableHeader, e as TableRow } from '../chunks/table-
|
|
1
|
+
export { T as Table, b as TableBody, g as TableCaption, f as TableCell, c as TableFooter, d as TableHead, a as TableHeader, e as TableRow } from '../chunks/table-Bxaxu8Lu.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import '../chunks/utils-05LlW3Cl.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -57,6 +57,12 @@ interface TableFilterProps<TData = unknown, TSchema extends ZodObject<any> = Zod
|
|
|
57
57
|
resetKey?: number;
|
|
58
58
|
applyFiltersOnMount?: boolean;
|
|
59
59
|
onClearFilters?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback chamado quando filtros são aplicados.
|
|
62
|
+
* Use para filtragem server-side (API).
|
|
63
|
+
* Recebe os valores dos filtros após validação.
|
|
64
|
+
*/
|
|
65
|
+
onApplyFilters?: (filters: TFormValues) => void;
|
|
60
66
|
badgeMultiselectVariant?: BadgeVariants;
|
|
61
67
|
badgeMultiselectSubtle?: boolean;
|
|
62
68
|
}
|
|
@@ -66,7 +72,7 @@ type NumericFilterValue = {
|
|
|
66
72
|
value: number | null;
|
|
67
73
|
};
|
|
68
74
|
|
|
69
|
-
declare function TableFilter<TData, TSchema extends ZodObject<any>>({ table, defaultSide, disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, badgeMultiselectVariant, badgeMultiselectSubtle, }: TableFilterProps<TData, TSchema>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function TableFilter<TData, TSchema extends ZodObject<any>>({ table, defaultSide, disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant, badgeMultiselectSubtle, }: TableFilterProps<TData, TSchema>): react_jsx_runtime.JSX.Element;
|
|
70
76
|
|
|
71
77
|
export { TableFilter };
|
|
72
78
|
export type { DefaultFilterSide, FieldConfig, FieldFilterType, NumericFilterValue, Operator, TableFilterBaseProps, TableFilterProps };
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { g as get, s as set, h as appendErrors, i as useForm, F as Form, f as FormField, a as FormItem, b as FormLabel, c as FormControl, d as FormDescription, e as FormMessage } from '../chunks/form-
|
|
1
|
+
import { g as get, s as set, h as appendErrors, i as useForm, F as Form, f as FormField, a as FormItem, b as FormLabel, c as FormControl, d as FormDescription, e as FormMessage } from '../chunks/form-0eamcSZm.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-
|
|
4
|
-
import { c as cn } from '../chunks/utils-
|
|
5
|
-
import { f as formatDateToBrazilian, a as parseFieldDate, p as ptBR } from '../chunks/date-
|
|
6
|
-
import { a as formatNumberWithComma, s as styleInput, c as styleSelect } from '../chunks/format-numbers-
|
|
7
|
-
import { S as Sheet, a as SheetTrigger, c as SheetContent, d as SheetHeader, f as SheetTitle, e as SheetFooter, b as SheetClose } from '../chunks/sheet-
|
|
8
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
9
|
-
import { C as CalendarDays } from '../chunks/calendar-days-
|
|
10
|
-
import { C as CalendarRange } from '../chunks/CalendarRange-
|
|
11
|
-
import { C as ComboboxField } from '../chunks/ComboboxField-
|
|
12
|
-
import { M as MultiSelect } from '../chunks/multi-select-
|
|
13
|
-
import { B as Button } from '../chunks/button-
|
|
14
|
-
import { B as Badge } from '../chunks/badge-
|
|
15
|
-
import { S as ScrollArea } from '../chunks/scroll-area-
|
|
16
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
17
|
-
import { C as Calendar } from '../chunks/calendar-
|
|
18
|
-
import { f as format } from '../chunks/format-
|
|
19
|
-
import { L as Label } from '../chunks/label-
|
|
20
|
-
import { C as Checkbox } from '../chunks/checkbox-
|
|
21
|
-
import { S as Separator } from '../chunks/separator-
|
|
22
|
-
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-
|
|
23
|
-
import { I as Input } from '../chunks/input-
|
|
3
|
+
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-DSc45Db0.mjs';
|
|
4
|
+
import { c as cn } from '../chunks/utils-05LlW3Cl.mjs';
|
|
5
|
+
import { f as formatDateToBrazilian, a as parseFieldDate, p as ptBR } from '../chunks/date-bAe2UaSj.mjs';
|
|
6
|
+
import { a as formatNumberWithComma, s as styleInput, c as styleSelect } from '../chunks/format-numbers-BMHnFGse.mjs';
|
|
7
|
+
import { S as Sheet, a as SheetTrigger, c as SheetContent, d as SheetHeader, f as SheetTitle, e as SheetFooter, b as SheetClose } from '../chunks/sheet-BVDcVKli.mjs';
|
|
8
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-DLrNgMqk.mjs';
|
|
9
|
+
import { C as CalendarDays } from '../chunks/calendar-days-D8ft1Hpj.mjs';
|
|
10
|
+
import { C as CalendarRange } from '../chunks/CalendarRange-BCcF9etO.mjs';
|
|
11
|
+
import { C as ComboboxField } from '../chunks/ComboboxField-C8LG3Dfr.mjs';
|
|
12
|
+
import { M as MultiSelect } from '../chunks/multi-select-dor8SMeS.mjs';
|
|
13
|
+
import { B as Button } from '../chunks/button-Co_1yLv6.mjs';
|
|
14
|
+
import { B as Badge } from '../chunks/badge-rV4HbE_R.mjs';
|
|
15
|
+
import { S as ScrollArea } from '../chunks/scroll-area-Cr1Iu-Ot.mjs';
|
|
16
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-CsYW0nDm.mjs';
|
|
17
|
+
import { C as Calendar } from '../chunks/calendar-olAv9AH7.mjs';
|
|
18
|
+
import { f as format } from '../chunks/format-Cn5wls3k.mjs';
|
|
19
|
+
import { L as Label } from '../chunks/label-atj6gghV.mjs';
|
|
20
|
+
import { C as Checkbox } from '../chunks/checkbox-D9LLByPZ.mjs';
|
|
21
|
+
import { S as Separator } from '../chunks/separator-StpvupIv.mjs';
|
|
22
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-C4BJbkha.mjs';
|
|
23
|
+
import { I as Input } from '../chunks/input-BEkvMaQp.mjs';
|
|
24
24
|
import '@radix-ui/react-slot';
|
|
25
|
-
import '../chunks/bundle-mjs-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
25
|
+
import '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
26
|
+
import '../chunks/index-BRYGnp2Q.mjs';
|
|
27
|
+
import '../chunks/index-Bl-WJHvp.mjs';
|
|
28
|
+
import '../chunks/index-1tQVI0Jh.mjs';
|
|
29
|
+
import '../chunks/index-DT8WgpCS.mjs';
|
|
30
30
|
import 'react/jsx-runtime';
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
31
|
+
import '../chunks/index-tkRL9Tft.mjs';
|
|
32
|
+
import '../chunks/index-DKOlG3mh.mjs';
|
|
33
|
+
import '../chunks/index-D4FMFHi9.mjs';
|
|
34
|
+
import '../chunks/index-DUpRrJTH.mjs';
|
|
35
|
+
import '../chunks/index-DgKlJYZP.mjs';
|
|
36
36
|
import 'react-dom';
|
|
37
|
-
import '../chunks/index-
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/tslib.es6-
|
|
40
|
-
import '../chunks/index-
|
|
41
|
-
import '../chunks/index-
|
|
42
|
-
import '../chunks/x-
|
|
43
|
-
import '../chunks/chevrons-up-down-
|
|
44
|
-
import '../chunks/check-
|
|
45
|
-
import '../chunks/command-
|
|
46
|
-
import '../chunks/dialog-
|
|
37
|
+
import '../chunks/index-Cbm3--wc.mjs';
|
|
38
|
+
import '../chunks/index-DvCZGX3H.mjs';
|
|
39
|
+
import '../chunks/tslib.es6-DXUeYCTx.mjs';
|
|
40
|
+
import '../chunks/index-BTe1rv5Z.mjs';
|
|
41
|
+
import '../chunks/index-C6s8KI_8.mjs';
|
|
42
|
+
import '../chunks/x-BOMmTgZd.mjs';
|
|
43
|
+
import '../chunks/chevrons-up-down-BFiJwHit.mjs';
|
|
44
|
+
import '../chunks/check-BBGTedl-.mjs';
|
|
45
|
+
import '../chunks/command-IckfUQsK.mjs';
|
|
46
|
+
import '../chunks/dialog-BkF50Tmo.mjs';
|
|
47
47
|
import 'class-variance-authority';
|
|
48
|
-
import '../chunks/wand-sparkles-
|
|
49
|
-
import '../chunks/tooltip-
|
|
50
|
-
import '../chunks/index-
|
|
51
|
-
import '../chunks/index-
|
|
52
|
-
import '../chunks/index-
|
|
53
|
-
import '../chunks/index-
|
|
54
|
-
import '../chunks/index-
|
|
55
|
-
import '../chunks/chevron-left-
|
|
56
|
-
import '../chunks/chevron-right-
|
|
57
|
-
import '../chunks/chevron-down-
|
|
58
|
-
import '../chunks/index-
|
|
48
|
+
import '../chunks/wand-sparkles-BIbU0kjG.mjs';
|
|
49
|
+
import '../chunks/tooltip-BTEGteNb.mjs';
|
|
50
|
+
import '../chunks/index-aLIsJMgt.mjs';
|
|
51
|
+
import '../chunks/index-DmY774z-.mjs';
|
|
52
|
+
import '../chunks/index-An4yBrAZ.mjs';
|
|
53
|
+
import '../chunks/index-CGLjQEjG.mjs';
|
|
54
|
+
import '../chunks/index-GgS4otoq.mjs';
|
|
55
|
+
import '../chunks/chevron-left-D7OzIyKL.mjs';
|
|
56
|
+
import '../chunks/chevron-right-mC6NR8jW.mjs';
|
|
57
|
+
import '../chunks/chevron-down-DNXEgdv9.mjs';
|
|
58
|
+
import '../chunks/index-FL3PKmOS.mjs';
|
|
59
59
|
import '@radix-ui/react-select';
|
|
60
60
|
|
|
61
61
|
const __iconNode = [
|
|
@@ -170,7 +170,7 @@ function s(o$1, s, t) {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
173
|
-
function TableFilter({ table, defaultSide = "right", disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount = 0, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, badgeMultiselectVariant = "default", badgeMultiselectSubtle = false }) {
|
|
173
|
+
function TableFilter({ table, defaultSide = "right", disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount = 0, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant = "default", badgeMultiselectSubtle = false }) {
|
|
174
174
|
React__default.useEffect(()=>{
|
|
175
175
|
for (const { name, filterType } of fieldConfigs){
|
|
176
176
|
const column = table.getColumn(name);
|
|
@@ -202,10 +202,12 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
202
202
|
return Object.values(data).filter((value)=>{
|
|
203
203
|
if (Array.isArray(value)) return value.length > 0;
|
|
204
204
|
if (value === null || value === undefined) return false;
|
|
205
|
-
|
|
205
|
+
// Para strings (texto e data), verificar se não está vazio
|
|
206
|
+
if (typeof value === "string") return value.trim() !== "";
|
|
206
207
|
if (typeof value === "object") {
|
|
207
208
|
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
208
209
|
const val = value;
|
|
210
|
+
// Para DateRange, verificar se tem from ou to
|
|
209
211
|
if ("from" in val || "to" in val) {
|
|
210
212
|
return Boolean(val.from || val.to);
|
|
211
213
|
}
|
|
@@ -243,14 +245,22 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
243
245
|
if (Array.isArray(value)) {
|
|
244
246
|
return value.length === 0;
|
|
245
247
|
}
|
|
246
|
-
// Para strings (texto), verificar se não está vazio
|
|
248
|
+
// Para strings (texto e data), verificar se não está vazio
|
|
247
249
|
if (typeof value === "string") {
|
|
248
250
|
return value.trim() === "";
|
|
249
251
|
}
|
|
250
|
-
// Para objetos
|
|
252
|
+
// Para objetos (numeric_range ou dateRange), verificar se tem valor
|
|
251
253
|
if (typeof value === "object" && value !== null) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
// Verificar se é NumericFilterValue
|
|
255
|
+
if ("value" in value && "operator" in value) {
|
|
256
|
+
const numericValue = value;
|
|
257
|
+
return numericValue.value === null || numericValue.value === undefined || String(numericValue.value) === "";
|
|
258
|
+
}
|
|
259
|
+
// Verificar se é DateRange
|
|
260
|
+
if ("from" in value || "to" in value) {
|
|
261
|
+
const dateRange = value;
|
|
262
|
+
return !dateRange.from && !dateRange.to;
|
|
263
|
+
}
|
|
254
264
|
}
|
|
255
265
|
return value === null || value === "";
|
|
256
266
|
});
|
|
@@ -263,14 +273,22 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
263
273
|
if (Array.isArray(value)) {
|
|
264
274
|
return value.length > 0;
|
|
265
275
|
}
|
|
266
|
-
// Para strings (texto), verificar se não está vazio
|
|
276
|
+
// Para strings (texto e data), verificar se não está vazio
|
|
267
277
|
if (typeof value === "string") {
|
|
268
278
|
return value.trim() !== "";
|
|
269
279
|
}
|
|
270
|
-
// Para objetos
|
|
280
|
+
// Para objetos (numeric_range ou dateRange), verificar se tem valor
|
|
271
281
|
if (typeof value === "object" && value !== null) {
|
|
272
|
-
|
|
273
|
-
|
|
282
|
+
// Verificar se é NumericFilterValue
|
|
283
|
+
if ("value" in value && "operator" in value) {
|
|
284
|
+
const numericValue = value;
|
|
285
|
+
return numericValue.value !== null && numericValue.value !== undefined && String(numericValue.value) !== "";
|
|
286
|
+
}
|
|
287
|
+
// Verificar se é DateRange
|
|
288
|
+
if ("from" in value || "to" in value) {
|
|
289
|
+
const dateRange = value;
|
|
290
|
+
return Boolean(dateRange.from || dateRange.to);
|
|
291
|
+
}
|
|
274
292
|
}
|
|
275
293
|
// Para números simples, aceitar 0 como válido
|
|
276
294
|
if (typeof value === "number") {
|
|
@@ -289,6 +307,13 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
289
307
|
if (typeof filterValue === "string" && filterValue.trim() === "") {
|
|
290
308
|
filterValue = undefined;
|
|
291
309
|
}
|
|
310
|
+
// Para objetos DateRange vazios, definir como undefined
|
|
311
|
+
if (typeof filterValue === "object" && filterValue !== null && "from" in filterValue && "to" in filterValue) {
|
|
312
|
+
const dateRange = filterValue;
|
|
313
|
+
if (!dateRange.from && !dateRange.to) {
|
|
314
|
+
filterValue = undefined;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
292
317
|
column.setFilterValue(filterValue);
|
|
293
318
|
}
|
|
294
319
|
}
|
|
@@ -296,6 +321,11 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
296
321
|
if (setAppliedFiltersCount) {
|
|
297
322
|
setAppliedFiltersCount(count);
|
|
298
323
|
}
|
|
324
|
+
// Chamar callback de aplicar filtros (para filtragem server-side)
|
|
325
|
+
// Só chama se onApplyFilters existir e data for válido
|
|
326
|
+
if (onApplyFilters && data) {
|
|
327
|
+
onApplyFilters(data);
|
|
328
|
+
}
|
|
299
329
|
};
|
|
300
330
|
const handleOpenChange = (open)=>{
|
|
301
331
|
if (!open) {
|
|
@@ -403,7 +433,7 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
403
433
|
className: "flex flex-wrap items-center gap-2"
|
|
404
434
|
}, options.map((option)=>/*#__PURE__*/ React__default.createElement(FormControl, {
|
|
405
435
|
key: option.value,
|
|
406
|
-
className: "mt-2"
|
|
436
|
+
className: cn("mt-2", style === "badge" && "flex-1/4")
|
|
407
437
|
}, /*#__PURE__*/ React__default.createElement(Label, null, /*#__PURE__*/ React__default.createElement(Checkbox, {
|
|
408
438
|
checked: Array.isArray(field.value) && field.value.includes(option.value),
|
|
409
439
|
onCheckedChange: (checked)=>{
|
|
@@ -417,7 +447,7 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
417
447
|
},
|
|
418
448
|
className: cn("border-destructive size-4 border", style === "badge" && "sr-only")
|
|
419
449
|
}), style === "badge" ? /*#__PURE__*/ React__default.createElement(Badge, {
|
|
420
|
-
variant: "secondary",
|
|
450
|
+
variant: Array.isArray(field.value) && field.value.includes(option.value) ? "default" : "secondary",
|
|
421
451
|
className: cn("flex cursor-pointer gap-2 rounded-md px-4 py-2 text-sm")
|
|
422
452
|
}, option.icon, option.label) : option.label))), /*#__PURE__*/ React__default.createElement(Separator, {
|
|
423
453
|
className: "mt-4"
|