@soft-stech/bootsman-ui-shadcn 1.1.12 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BuiAccordion.vue_vue_type_script_setup_true_lang-Dj1PVjXh.js +29 -0
- package/dist/{BuiAccordionContent.vue_vue_type_script_setup_true_lang-Jms2S6Wy.js → BuiAccordionContent.vue_vue_type_script_setup_true_lang-BLZsNdGp.js} +3 -3
- package/dist/{BuiAccordionItem.vue_vue_type_script_setup_true_lang-uDex3y6d.js → BuiAccordionItem.vue_vue_type_script_setup_true_lang-CFVdj5n5.js} +2 -2
- package/dist/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-fNnS0I3Y.js → BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-C0Ld9QP9.js} +3 -3
- package/dist/{BuiAlertDescription.vue_vue_type_script_setup_true_lang-75jc_tL2.js → BuiAlertDescription.vue_vue_type_script_setup_true_lang-Dtcm8lD7.js} +1 -1
- package/dist/{BuiAlertDialog.vue_vue_type_script_setup_true_lang-iDsSRvro.js → BuiAlertDialog.vue_vue_type_script_setup_true_lang-CrlxLGb7.js} +5 -5
- package/dist/{BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-Do0qMnWh.js → BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-BlyXnDvE.js} +4 -4
- package/dist/{BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-A6gjGzS6.js → BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-B5OzEt5k.js} +7 -7
- package/dist/{BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-ljw4i41w.js → BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-BqBCqCH0.js} +5 -5
- package/dist/{BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-3XBj06lV.js → BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-BMxNIMAo.js} +4 -4
- package/dist/{BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-JfGjCYsb.js → BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-CJf8ac_s.js} +1 -1
- package/dist/{BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-uHMesAKY.js → BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-Cu9hmybW.js} +1 -1
- package/dist/BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-owXjs7nK.js +26 -0
- package/dist/{BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-T6J8MdP8.js → BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-Bbo58sb3.js} +2 -2
- package/dist/{BuiAlertTitle.vue_vue_type_script_setup_true_lang-RoAquSoh.js → BuiAlertTitle.vue_vue_type_script_setup_true_lang-UtdLvxSG.js} +1 -1
- package/dist/{BuiAspectRatio.vue_vue_type_script_setup_true_lang-pCB3RgPs.js → BuiAspectRatio.vue_vue_type_script_setup_true_lang-DH1eiAhI.js} +3 -3
- package/dist/{BuiAvatarFallback.vue_vue_type_script_setup_true_lang-IrhBcIvh.js → BuiAvatarFallback.vue_vue_type_script_setup_true_lang-BY__KfOM.js} +2 -2
- package/dist/{BuiAvatarImage.vue_vue_type_script_setup_true_lang-iSPzLj61.js → BuiAvatarImage.vue_vue_type_script_setup_true_lang-DWweAjQk.js} +3 -3
- package/dist/{BuiCard.vue_vue_type_script_setup_true_lang--afzacWB.js → BuiCard.vue_vue_type_script_setup_true_lang-D4hzXkv_.js} +1 -1
- package/dist/{BuiCardContent.vue_vue_type_script_setup_true_lang-ba_JdHB8.js → BuiCardContent.vue_vue_type_script_setup_true_lang-03yOW8GL.js} +1 -1
- package/dist/{BuiCardDescription.vue_vue_type_script_setup_true_lang-O9kERPxR.js → BuiCardDescription.vue_vue_type_script_setup_true_lang-m7awaSBd.js} +1 -1
- package/dist/{BuiCardFooter.vue_vue_type_script_setup_true_lang-rFrdyhkq.js → BuiCardFooter.vue_vue_type_script_setup_true_lang-Zn8SiDvD.js} +1 -1
- package/dist/{BuiCardHeader.vue_vue_type_script_setup_true_lang-MlURQntq.js → BuiCardHeader.vue_vue_type_script_setup_true_lang-CK0pMs5V.js} +1 -1
- package/dist/{BuiCardTitle.vue_vue_type_script_setup_true_lang-BLsp21_u.js → BuiCardTitle.vue_vue_type_script_setup_true_lang-C4ln8eW7.js} +1 -1
- package/dist/{BuiCheckbox.vue_vue_type_script_setup_true_lang-_zN0BE4E.js → BuiCheckbox.vue_vue_type_script_setup_true_lang-DEmjsKxu.js} +7 -7
- package/dist/{BuiCollapsible.vue_vue_type_script_setup_true_lang-97HiGUDj.js → BuiCollapsible.vue_vue_type_script_setup_true_lang-BHI1jTwW.js} +6 -6
- package/dist/{BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-25Bi4l4n.js → BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-BshJNc-T.js} +1 -1
- package/dist/BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-JUx4EeVL.js +21 -0
- package/dist/{BuiCommand.vue_vue_type_script_setup_true_lang--R_Vh4jm.js → BuiCommand.vue_vue_type_script_setup_true_lang-DiChqgHo.js} +6 -6
- package/dist/{BuiCommandDialog.vue_vue_type_script_setup_true_lang-8_EvCSTR.js → BuiCommandDialog.vue_vue_type_script_setup_true_lang-D2raDI2A.js} +4 -4
- package/dist/{BuiCommandEmpty.vue_vue_type_script_setup_true_lang-HPxEIb7F.js → BuiCommandEmpty.vue_vue_type_script_setup_true_lang-BhuE76YE.js} +2 -2
- package/dist/{BuiCommandGroup.vue_vue_type_script_setup_true_lang-px4wWwDS.js → BuiCommandGroup.vue_vue_type_script_setup_true_lang-_2RwQuk-.js} +6 -6
- package/dist/{BuiCommandInput.vue_vue_type_script_setup_true_lang-IuUkyFEY.js → BuiCommandInput.vue_vue_type_script_setup_true_lang-DFx--Rhh.js} +5 -5
- package/dist/{BuiCommandItem.vue_vue_type_script_setup_true_lang-48RmrbqF.js → BuiCommandItem.vue_vue_type_script_setup_true_lang-O7KOreAz.js} +7 -8
- package/dist/{BuiCommandList.vue_vue_type_script_setup_true_lang-mbAnsN0X.js → BuiCommandList.vue_vue_type_script_setup_true_lang-YBqQ8DPd.js} +12 -12
- package/dist/{BuiCommandSeparator.vue_vue_type_script_setup_true_lang-2lGD8yxB.js → BuiCommandSeparator.vue_vue_type_script_setup_true_lang-B0j_RhAo.js} +4 -4
- package/dist/{BuiCommandShortcut.vue_vue_type_script_setup_true_lang-KNWJr7NM.js → BuiCommandShortcut.vue_vue_type_script_setup_true_lang-CTLu1n_T.js} +1 -1
- package/dist/BuiContextMenu.vue_vue_type_script_setup_true_lang-DaqRCqhP.js +22 -0
- package/dist/{BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-OB-FqzhL.js → BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-LplJAnE-.js} +7 -7
- package/dist/{BuiContextMenuContent.vue_vue_type_script_setup_true_lang-wkfbJbNi.js → BuiContextMenuContent.vue_vue_type_script_setup_true_lang-BTMUDGZV.js} +11 -10
- package/dist/{BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-kTjHl-qx.js → BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-h10Za_Or.js} +2 -2
- package/dist/{BuiContextMenuItem.vue_vue_type_script_setup_true_lang-TA8whrqP.js → BuiContextMenuItem.vue_vue_type_script_setup_true_lang-Clftwa1j.js} +5 -5
- package/dist/{BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-Z3XSHPDC.js → BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-Ar8kpfW9.js} +4 -4
- package/dist/{BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-47ySlMP4.js → BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-DGrE-xS4.js} +5 -5
- package/dist/{BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-Vt7BoFHF.js → BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-D_9uF7b0.js} +11 -11
- package/dist/{BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-pBrBs5Dm.js → BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-B-OqYg12.js} +4 -4
- package/dist/{BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-oeVUZUyM.js → BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-VlISv7KK.js} +1 -1
- package/dist/BuiContextMenuSub.vue_vue_type_script_setup_true_lang-Deo9PCj-.js +22 -0
- package/dist/{BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-dhn-MUT_.js → BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-CsGZRepK.js} +10 -15
- package/dist/{BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-oCEFCSZK.js → BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-CqzXuw8M.js} +3 -3
- package/dist/{BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-n7hn2DhD.js → BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-CbbS6Xbi.js} +4 -4
- package/dist/BuiDataTable.vue_vue_type_script_setup_true_lang-4u5MPG5-.js +2009 -0
- package/dist/{BuiDialog.vue_vue_type_script_setup_true_lang-KfzDkLuy.js → BuiDialog.vue_vue_type_script_setup_true_lang-TGsfv3ez.js} +7 -7
- package/dist/{BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-CYgBPvJV.js → BuiDialogClose.vue_vue_type_script_setup_true_lang-W3pqV9rr.js} +4 -4
- package/dist/{BuiDialogContent.vue_vue_type_script_setup_true_lang-F3JCzoMh.js → BuiDialogContent.vue_vue_type_script_setup_true_lang-CQ9x724E.js} +7 -7
- package/dist/{BuiDialogDescription.vue_vue_type_script_setup_true_lang-Q03n1Bao.js → BuiDialogDescription.vue_vue_type_script_setup_true_lang-CxT6J8Dh.js} +7 -7
- package/dist/{BuiDialogFooter.vue_vue_type_script_setup_true_lang-EirHzu8V.js → BuiDialogFooter.vue_vue_type_script_setup_true_lang-E44SDRXo.js} +1 -1
- package/dist/{BuiDialogHeader.vue_vue_type_script_setup_true_lang-0JI-XYSq.js → BuiDialogHeader.vue_vue_type_script_setup_true_lang-CYlYnPtq.js} +1 -1
- package/dist/{BuiDialogTitle.vue_vue_type_script_setup_true_lang-T3OS6cHh.js → BuiDialogTitle.vue_vue_type_script_setup_true_lang-DzTL1hTO.js} +4 -4
- package/dist/{BuiDialogTrigger.vue_vue_type_script_setup_true_lang-J9w_NEiw.js → BuiDialogTrigger.vue_vue_type_script_setup_true_lang-BxWgol0_.js} +3 -3
- package/dist/{BuiDropdownMenu.vue_vue_type_script_setup_true_lang-VcUBhfBf.js → BuiDropdownMenu.vue_vue_type_script_setup_true_lang-DlP-FEqz.js} +8 -8
- package/dist/{BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-GQnJlBOu.js → BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-CXXu_O5F.js} +7 -7
- package/dist/{BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-KIODBKyg.js → BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-nzSdWDh2.js} +11 -11
- package/dist/{BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-s_J_rup1.js → BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-X2v7ZY-d.js} +2 -2
- package/dist/{BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-jtqs2lrX.js → BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-CQ7pVoDy.js} +2 -2
- package/dist/{BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-dxh0VjcV.js → BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-DoBKoVdZ.js} +5 -5
- package/dist/BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-D3w2RIe1.js +25 -0
- package/dist/{BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-w0RX8J1u.js → BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-tcsgZl8S.js} +6 -6
- package/dist/{BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-yE8BC1A-.js → BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-CgT_47Fv.js} +4 -4
- package/dist/{BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-IHYaouTH.js → BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-CB26sunr.js} +1 -1
- package/dist/BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-BR0jxpva.js +22 -0
- package/dist/{BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-SJ1_4Hjo.js → BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-wJDqhy8y.js} +9 -14
- package/dist/{BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-UXI-r4Mm.js → BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-BBz3TNZK.js} +5 -5
- package/dist/{BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-ghH1WDkx.js → BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-DiL8xW5e.js} +2 -2
- package/dist/{BuiFormControl.vue_vue_type_script_setup_true_lang-TQ7Kt2LW.js → BuiFormControl.vue_vue_type_script_setup_true_lang-C1wA35Ip.js} +6 -6
- package/dist/{BuiFormDescription.vue_vue_type_script_setup_true_lang-pQBDuqb7.js → BuiFormDescription.vue_vue_type_script_setup_true_lang-BLb_ADMC.js} +2 -2
- package/dist/{BuiFormItem.vue_vue_type_script_setup_true_lang-10nWe97D.js → BuiFormItem.vue_vue_type_script_setup_true_lang-Bl3E-8AX.js} +7 -7
- package/dist/{BuiFormLabel.vue_vue_type_script_setup_true_lang-M7eImyrX.js → BuiFormLabel.vue_vue_type_script_setup_true_lang-Bf2LbTRx.js} +6 -6
- package/dist/{BuiFormMessage.vue_vue_type_script_setup_true_lang-ivLC9U9L.js → BuiFormMessage.vue_vue_type_script_setup_true_lang-DtwQdj2t.js} +1 -1
- package/dist/{BuiHoverCard.vue_vue_type_script_setup_true_lang-uc6TyQpq.js → BuiHoverCard.vue_vue_type_script_setup_true_lang-vh91cEQ6.js} +5 -5
- package/dist/{BuiHoverCardContent.vue_vue_type_script_setup_true_lang-vPw2Cl-1.js → BuiHoverCardContent.vue_vue_type_script_setup_true_lang-D2Vj1Th7.js} +4 -5
- package/dist/{BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-6uAMx3PS.js → BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-BROAKU0n.js} +3 -3
- package/dist/{BuiLabel.vue_vue_type_script_setup_true_lang-dFr8xN_p.js → BuiLabel.vue_vue_type_script_setup_true_lang-DjyXOJS7.js} +4 -4
- package/dist/{BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-rUatK55c.js → BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-Dsw1D5G0.js} +12 -12
- package/dist/{BuiPaginationFirst.vue_vue_type_script_setup_true_lang-ASbENWep.js → BuiPaginationFirst.vue_vue_type_script_setup_true_lang-ChloY0yM.js} +6 -6
- package/dist/{BuiPaginationLast.vue_vue_type_script_setup_true_lang-Odcg1LV6.js → BuiPaginationLast.vue_vue_type_script_setup_true_lang-ChXTxyn5.js} +3 -3
- package/dist/{BuiPaginationNext.vue_vue_type_script_setup_true_lang-aeDys801.js → BuiPaginationNext.vue_vue_type_script_setup_true_lang-BUrK_Kwj.js} +8 -8
- package/dist/{BuiPaginationPrev.vue_vue_type_script_setup_true_lang-R5bX1pK9.js → BuiPaginationPrev.vue_vue_type_script_setup_true_lang-Bf0mP4tb.js} +5 -5
- package/dist/BuiPopover.vue_vue_type_script_setup_true_lang-0-mjSdON.js +23 -0
- package/dist/{BuiPopoverContent.vue_vue_type_script_setup_true_lang-xIJlMBZB.js → BuiPopoverContent.vue_vue_type_script_setup_true_lang-yCNF1AL1.js} +5 -6
- package/dist/{BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-VgH9RT_J.js → BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-DSekVxMT.js} +5 -5
- package/dist/{BuiRadioGroup.vue_vue_type_script_setup_true_lang-39J4kRyx.js → BuiRadioGroup.vue_vue_type_script_setup_true_lang-sWgg6x9U.js} +7 -7
- package/dist/{BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-Zf-EjWXP.js → BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-DiwUDd1i.js} +9 -9
- package/dist/BuiScrollArea.vue_vue_type_script_setup_true_lang-CJTBmKT_.js +39 -0
- package/dist/{BuiScrollBar.vue_vue_type_script_setup_true_lang-EIWo6vc0.js → BuiScrollBar.vue_vue_type_script_setup_true_lang-BKi7-LbE.js} +6 -6
- package/dist/{BuiSelect.vue_vue_type_script_setup_true_lang-DKcR9tz4.js → BuiSelect.vue_vue_type_script_setup_true_lang-ByjzTk3h.js} +8 -9
- package/dist/{BuiSelectContent.vue_vue_type_script_setup_true_lang-e8pQBPJS.js → BuiSelectContent.vue_vue_type_script_setup_true_lang-C1u6rvkd.js} +8 -9
- package/dist/{BuiSelectGroup.vue_vue_type_script_setup_true_lang-24Dvmipb.js → BuiSelectGroup.vue_vue_type_script_setup_true_lang-euQNZSsW.js} +6 -6
- package/dist/{BuiSelectItem.vue_vue_type_script_setup_true_lang-g8hn_YVl.js → BuiSelectItem.vue_vue_type_script_setup_true_lang-Cx7Ku0pr.js} +6 -6
- package/dist/{BuiSelectItemText.vue_vue_type_script_setup_true_lang-hwJeoYEG.js → BuiSelectItemText.vue_vue_type_script_setup_true_lang-B5mN66RI.js} +4 -4
- package/dist/{BuiSelectLabel.vue_vue_type_script_setup_true_lang-e1_eXjGs.js → BuiSelectLabel.vue_vue_type_script_setup_true_lang-DG1zddHX.js} +7 -7
- package/dist/{BuiSelectSeparator.vue_vue_type_script_setup_true_lang-0dHPKm3N.js → BuiSelectSeparator.vue_vue_type_script_setup_true_lang-CUqahGcL.js} +2 -2
- package/dist/{BuiSelectTrigger.vue_vue_type_script_setup_true_lang-kS6mEvxA.js → BuiSelectTrigger.vue_vue_type_script_setup_true_lang-Bbn6-UcC.js} +10 -10
- package/dist/{BuiSelectValue.vue_vue_type_script_setup_true_lang-vVA1KRns.js → BuiSelectValue.vue_vue_type_script_setup_true_lang-D9R77kc4.js} +1 -1
- package/dist/{BuiSeparator.vue_vue_type_script_setup_true_lang-VmSkWZ7O.js → BuiSeparator.vue_vue_type_script_setup_true_lang-DNqfHLva.js} +2 -2
- package/dist/{BuiSlider.vue_vue_type_script_setup_true_lang-6FrtEJCh.js → BuiSlider.vue_vue_type_script_setup_true_lang-BJVDLlBo.js} +6 -6
- package/dist/{BuiSwitch.vue_vue_type_script_setup_true_lang--nlvgKNr.js → BuiSwitch.vue_vue_type_script_setup_true_lang-1FFFqdnv.js} +7 -7
- package/dist/{BuiTable.vue_vue_type_script_setup_true_lang-ENB9QQ3r.js → BuiTable.vue_vue_type_script_setup_true_lang-D6xpCZGs.js} +3 -3
- package/dist/{BuiTableBody.vue_vue_type_script_setup_true_lang-qdfymGSF.js → BuiTableBody.vue_vue_type_script_setup_true_lang-BzEV7d8c.js} +1 -1
- package/dist/{BuiTableCaption.vue_vue_type_script_setup_true_lang--_UXX2s4.js → BuiTableCaption.vue_vue_type_script_setup_true_lang-CgwGwt_r.js} +1 -1
- package/dist/{BuiTableCell.vue_vue_type_script_setup_true_lang-Sg1Ibu6z.js → BuiTableCell.vue_vue_type_script_setup_true_lang-D-6WAGUP.js} +1 -1
- package/dist/{BuiTableEmpty.vue_vue_type_script_setup_true_lang-ESELQGvk.js → BuiTableEmpty.vue_vue_type_script_setup_true_lang-BTRdS1lE.js} +3 -3
- package/dist/{BuiTableFooter.vue_vue_type_script_setup_true_lang-_rYhBLgO.js → BuiTableFooter.vue_vue_type_script_setup_true_lang-YcrT5R43.js} +1 -1
- package/dist/{BuiTableHead.vue_vue_type_script_setup_true_lang-utRx3cQo.js → BuiTableHead.vue_vue_type_script_setup_true_lang-e0LF6KSf.js} +1 -1
- package/dist/{BuiTableHeader.vue_vue_type_script_setup_true_lang--cfsottv.js → BuiTableHeader.vue_vue_type_script_setup_true_lang-8LJ87Ebt.js} +1 -1
- package/dist/{BuiTableRow.vue_vue_type_script_setup_true_lang-vvniZQgY.js → BuiTableRow.vue_vue_type_script_setup_true_lang-CeWmDtkY.js} +1 -1
- package/dist/{BuiTabs.vue_vue_type_script_setup_true_lang-nciXr22C.js → BuiTabs.vue_vue_type_script_setup_true_lang-BD6_jDeB.js} +5 -5
- package/dist/{BuiTabsContent.vue_vue_type_script_setup_true_lang-jzELILnK.js → BuiTabsContent.vue_vue_type_script_setup_true_lang-I_TlGyr7.js} +5 -5
- package/dist/{BuiToastAction.vue_vue_type_script_setup_true_lang-xgNKZlPb.js → BuiToastAction.vue_vue_type_script_setup_true_lang-Bj7A-Y7F.js} +2 -2
- package/dist/{BuiToastClose.vue_vue_type_script_setup_true_lang-3iaqD6BF.js → BuiToastClose.vue_vue_type_script_setup_true_lang-BfoUXKhD.js} +10 -10
- package/dist/BuiToastDescription.vue_vue_type_script_setup_true_lang-DIfbrZhA.js +25 -0
- package/dist/{BuiToastProvider.vue_vue_type_script_setup_true_lang-zYNHBHKl.js → BuiToastProvider.vue_vue_type_script_setup_true_lang-DucGblm3.js} +1 -1
- package/dist/{BuiToastTitle.vue_vue_type_script_setup_true_lang-AJ1xJNXo.js → BuiToastTitle.vue_vue_type_script_setup_true_lang-BtrxpO5P.js} +8 -8
- package/dist/BuiToastViewport.vue_vue_type_script_setup_true_lang-BPpp-hf6.js +22 -0
- package/dist/BuiTooltip.vue_vue_type_script_setup_true_lang-hBzjW0D1.js +26 -0
- package/dist/{BuiTooltipContent.vue_vue_type_script_setup_true_lang-iEGvhMPV.js → BuiTooltipContent.vue_vue_type_script_setup_true_lang-94jKY5Wr.js} +6 -6
- package/dist/{BuiTooltipProvider.vue_vue_type_script_setup_true_lang-Bd_ZRuK0.js → BuiTooltipProvider.vue_vue_type_script_setup_true_lang-CHKr0DQH.js} +5 -4
- package/dist/{BuiDialogClose.vue_vue_type_script_setup_true_lang-TpqpOps1.js → BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-H5fEyPBU.js} +5 -5
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-MDxp6MZi.js → Skeleton.vue_vue_type_script_setup_true_lang-DFqbh8gJ.js} +1 -1
- package/dist/assets/main.css +1 -1
- package/dist/{check-QOV6tmwS.js → check-D-Swe_p1.js} +2 -2
- package/dist/{chevron-down-Y46pj60t.js → chevron-down-DOt6GP1f.js} +2 -2
- package/dist/{chevron-left-S5sIM-rC.js → chevron-left-BfdF41PE.js} +2 -2
- package/dist/{chevron-right-PgCEecHN.js → chevron-right-DO-acZIF.js} +2 -2
- package/dist/{circle-qUC5wQ5R.js → circle-BxwkfO80.js} +2 -2
- package/dist/components/ui/accordion/BuiAccordion.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionContent.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionItem.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionTrigger.js +1 -1
- package/dist/components/ui/accordion/index.js +4 -4
- package/dist/components/ui/alert/BuiAlertDescription.js +1 -1
- package/dist/components/ui/alert/BuiAlertTitle.js +1 -1
- package/dist/components/ui/alert/index.js +3 -3
- package/dist/components/ui/alert-dialog/BuiAlertDialog.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogAction.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogContent.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.js +1 -1
- package/dist/components/ui/alert-dialog/index.js +9 -9
- package/dist/components/ui/aspect-ratio/BuiAspectRatio.js +1 -1
- package/dist/components/ui/aspect-ratio/index.js +1 -1
- package/dist/components/ui/avatar/BuiAvatarFallback.js +1 -1
- package/dist/components/ui/avatar/BuiAvatarImage.js +1 -1
- package/dist/components/ui/avatar/index.js +7 -7
- package/dist/components/ui/badge/index.js +2 -2
- package/dist/components/ui/button/BuiButton.js +1 -1
- package/dist/components/ui/button/index.js +1 -1
- package/dist/components/ui/calendar/BuiCalendar.js +1 -1
- package/dist/components/ui/calendar/index.js +5 -5
- package/dist/components/ui/card/BuiCard.js +1 -1
- package/dist/components/ui/card/BuiCardContent.js +1 -1
- package/dist/components/ui/card/BuiCardDescription.js +1 -1
- package/dist/components/ui/card/BuiCardFooter.js +1 -1
- package/dist/components/ui/card/BuiCardHeader.js +1 -1
- package/dist/components/ui/card/BuiCardTitle.js +1 -1
- package/dist/components/ui/card/index.js +6 -6
- package/dist/components/ui/checkbox/BuiCheckbox.js +1 -1
- package/dist/components/ui/checkbox/index.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsible.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsibleContent.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsibleTrigger.js +1 -1
- package/dist/components/ui/collapsible/index.js +3 -3
- package/dist/components/ui/command/BuiCommand.js +1 -1
- package/dist/components/ui/command/BuiCommandDialog.js +1 -1
- package/dist/components/ui/command/BuiCommandEmpty.js +1 -1
- package/dist/components/ui/command/BuiCommandGroup.js +1 -1
- package/dist/components/ui/command/BuiCommandInput.js +1 -1
- package/dist/components/ui/command/BuiCommandItem.js +1 -1
- package/dist/components/ui/command/BuiCommandList.js +1 -1
- package/dist/components/ui/command/BuiCommandSeparator.js +1 -1
- package/dist/components/ui/command/BuiCommandShortcut.js +1 -1
- package/dist/components/ui/command/index.js +9 -9
- package/dist/components/ui/context-menu/BuiContextMenu.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenu.vue.d.ts +2 -2
- package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuContent.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuGroup.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuLabel.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuPortal.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuRadioGroup.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuRadioItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSeparator.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuShortcut.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSub.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSub.vue.d.ts +2 -2
- package/dist/components/ui/context-menu/BuiContextMenuSubContent.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuTrigger.js +1 -1
- package/dist/components/ui/context-menu/index.js +14 -14
- package/dist/components/ui/dialog/BuiDialog.js +1 -1
- package/dist/components/ui/dialog/BuiDialogClose.js +1 -1
- package/dist/components/ui/dialog/BuiDialogContent.js +1 -1
- package/dist/components/ui/dialog/BuiDialogDescription.js +1 -1
- package/dist/components/ui/dialog/BuiDialogFooter.js +1 -1
- package/dist/components/ui/dialog/BuiDialogHeader.js +1 -1
- package/dist/components/ui/dialog/BuiDialogTitle.js +1 -1
- package/dist/components/ui/dialog/BuiDialogTrigger.js +1 -1
- package/dist/components/ui/dialog/index.js +8 -8
- package/dist/components/ui/dropdown-menu/BuiDropdownMenu.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenu.vue.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.vue.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.js +1 -1
- package/dist/components/ui/dropdown-menu/index.js +15 -15
- package/dist/components/ui/form/BuiFormControl.js +1 -1
- package/dist/components/ui/form/BuiFormDescription.js +1 -1
- package/dist/components/ui/form/BuiFormItem.js +2 -2
- package/dist/components/ui/form/BuiFormLabel.js +1 -1
- package/dist/components/ui/form/BuiFormMessage.js +1 -1
- package/dist/components/ui/form/index.js +6 -6
- package/dist/components/ui/form/useFormField.js +2 -2
- package/dist/components/ui/health/index.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCard.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCardContent.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCardTrigger.js +1 -1
- package/dist/components/ui/hover-card/index.js +3 -3
- package/dist/components/ui/input/index.js +2 -2
- package/dist/components/ui/label/BuiLabel.js +1 -1
- package/dist/components/ui/label/index.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationCommon.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationCommon.vue.d.ts +26 -35
- package/dist/components/ui/pagination/BuiPaginationEllipsis.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationFirst.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationLast.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationNext.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationPrev.js +1 -1
- package/dist/components/ui/pagination/index.js +7 -7
- package/dist/components/ui/popover/BuiPopover.js +1 -1
- package/dist/components/ui/popover/BuiPopoverContent.js +1 -1
- package/dist/components/ui/popover/BuiPopoverTrigger.js +1 -1
- package/dist/components/ui/popover/index.js +3 -3
- package/dist/components/ui/progress/index.js +2 -2
- package/dist/components/ui/radio-group/BuiRadioGroup.js +1 -1
- package/dist/components/ui/radio-group/BuiRadioGroupItem.js +1 -1
- package/dist/components/ui/radio-group/index.js +2 -2
- package/dist/components/ui/scroll-area/BuiScrollArea.js +1 -1
- package/dist/components/ui/scroll-area/BuiScrollBar.js +1 -1
- package/dist/components/ui/scroll-area/index.js +2 -2
- package/dist/components/ui/select/Bui.js +9 -10
- package/dist/components/ui/select/BuiSelect.js +1 -1
- package/dist/components/ui/select/BuiSelectContent.js +1 -1
- package/dist/components/ui/select/BuiSelectGroup.js +1 -1
- package/dist/components/ui/select/BuiSelectItem.js +1 -1
- package/dist/components/ui/select/BuiSelectItemText.js +1 -1
- package/dist/components/ui/select/BuiSelectLabel.js +1 -1
- package/dist/components/ui/select/BuiSelectSeparator.js +1 -1
- package/dist/components/ui/select/BuiSelectTrigger.js +1 -1
- package/dist/components/ui/select/BuiSelectValue.js +1 -1
- package/dist/components/ui/select/index.js +9 -9
- package/dist/components/ui/separator/BuiSeparator.js +1 -1
- package/dist/components/ui/separator/index.js +1 -1
- package/dist/components/ui/skeleton/Skeleton.js +1 -1
- package/dist/components/ui/skeleton/index.js +1 -1
- package/dist/components/ui/slider/BuiSlider.js +1 -1
- package/dist/components/ui/slider/index.js +1 -1
- package/dist/components/ui/switch/BuiSwitch.js +1 -1
- package/dist/components/ui/switch/index.js +1 -1
- package/dist/components/ui/table/BuiDataTable.js +1 -1
- package/dist/components/ui/table/BuiTable.js +1 -1
- package/dist/components/ui/table/BuiTableBody.js +1 -1
- package/dist/components/ui/table/BuiTableCaption.js +1 -1
- package/dist/components/ui/table/BuiTableCell.js +1 -1
- package/dist/components/ui/table/BuiTableEmpty.js +1 -1
- package/dist/components/ui/table/BuiTableFooter.js +1 -1
- package/dist/components/ui/table/BuiTableHead.js +1 -1
- package/dist/components/ui/table/BuiTableHeader.js +1 -1
- package/dist/components/ui/table/BuiTableRow.js +1 -1
- package/dist/components/ui/table/index.js +10 -10
- package/dist/components/ui/tabs/BuiTabs.js +1 -1
- package/dist/components/ui/tabs/BuiTabsContent.js +1 -1
- package/dist/components/ui/tabs/index.js +8 -8
- package/dist/components/ui/textarea/index.js +2 -2
- package/dist/components/ui/toast/BuiToastAction.js +1 -1
- package/dist/components/ui/toast/BuiToastClose.js +1 -1
- package/dist/components/ui/toast/BuiToastDescription.js +1 -1
- package/dist/components/ui/toast/BuiToastProvider.js +1 -1
- package/dist/components/ui/toast/BuiToastTitle.js +1 -1
- package/dist/components/ui/toast/BuiToastViewport.js +1 -1
- package/dist/components/ui/toast/index.js +18 -18
- package/dist/components/ui/toggle/index.js +7 -7
- package/dist/components/ui/tooltip/BuiTooltip.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipContent.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipProvider.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipTrigger.js +1 -1
- package/dist/components/ui/tooltip/index.js +4 -4
- package/dist/index-A8pqx8Hm.js +10469 -0
- package/dist/index.js +168 -168
- package/dist/lib/utils.js +1 -1
- package/dist/tailwind-preset.js +1 -1
- package/dist/{useFormField-51E8jPKx.js → useFormField-DIILqNsN.js} +306 -302
- package/dist/{utils-8YY6d_s1.js → utils-Ctmb9SvZ.js} +77 -73
- package/dist/variables-CCcI2-OR.js +101 -0
- package/dist/{x-joa2KWdA.js → x-CdDVes2u.js} +2 -2
- package/package.json +42 -42
- package/src/components/stories/BuiPaginationCommon.story.vue +5 -11
- package/src/components/ui/pagination/BuiPaginationCommon.vue +37 -45
- package/src/components/ui/table/BuiDataTable.vue +29 -11
- package/dist/BuiAccordion.vue_vue_type_script_setup_true_lang-cpLPyuH8.js +0 -29
- package/dist/BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-X8PCO-Zg.js +0 -26
- package/dist/BuiContextMenu.vue_vue_type_script_setup_true_lang-4gkMb9kv.js +0 -22
- package/dist/BuiContextMenuSub.vue_vue_type_script_setup_true_lang-9zZAgkry.js +0 -22
- package/dist/BuiDataTable.vue_vue_type_script_setup_true_lang-AeBF-dyL.js +0 -2197
- package/dist/BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-a8IxAfKN.js +0 -25
- package/dist/BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-5Q5A7rhT.js +0 -22
- package/dist/BuiPopover.vue_vue_type_script_setup_true_lang-DUXQ3d43.js +0 -23
- package/dist/BuiScrollArea.vue_vue_type_script_setup_true_lang-QVQppqH-.js +0 -39
- package/dist/BuiToastDescription.vue_vue_type_script_setup_true_lang-h2613uEu.js +0 -25
- package/dist/BuiToastViewport.vue_vue_type_script_setup_true_lang-0ico8N61.js +0 -22
- package/dist/BuiTooltip.vue_vue_type_script_setup_true_lang-19f6Z4gZ.js +0 -25
- package/dist/BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-QqJmRsWo.js +0 -21
- package/dist/components/ui/accordion/BuiAccordion.vue.d.ts +0 -23
- package/dist/index-xRMs4phy.js +0 -10302
- package/dist/variables-zUuWeMHA.js +0 -106
- /package/dist/{BuiCalendar.vue_vue_type_style_index_0_lang-QQzTcskD.js → BuiCalendar.vue_vue_type_style_index_0_lang-BWeH1wsj.js} +0 -0
- /package/dist/{index-gwzIEgpq.js → index-BGsblnmA.js} +0 -0
- /package/dist/{index-vq1WbVLY.js → index-DO0xNIC7.js} +0 -0
@@ -0,0 +1,2009 @@
|
|
1
|
+
import { defineComponent as ve, h as He, ref as Ge, watchEffect as Ae, mergeModels as Le, useModel as K, computed as Y, openBlock as $, createBlock as y, unref as v, withCtx as M, renderSlot as ze, createCommentVNode as J, createVNode as G, createElementBlock as z, Fragment as O, renderList as B, createTextVNode as Oe } from "vue";
|
2
|
+
import { _ as Be } from "./BuiTable.vue_vue_type_script_setup_true_lang-D6xpCZGs.js";
|
3
|
+
import { _ as Te } from "./BuiTableBody.vue_vue_type_script_setup_true_lang-BzEV7d8c.js";
|
4
|
+
import { _ as Ce } from "./BuiTableCell.vue_vue_type_script_setup_true_lang-D-6WAGUP.js";
|
5
|
+
import { _ as ke } from "./BuiTableHead.vue_vue_type_script_setup_true_lang-e0LF6KSf.js";
|
6
|
+
import { _ as Ne } from "./BuiTableHeader.vue_vue_type_script_setup_true_lang-8LJ87Ebt.js";
|
7
|
+
import { _ as Q } from "./BuiTableRow.vue_vue_type_script_setup_true_lang-CeWmDtkY.js";
|
8
|
+
import { _ as qe } from "./BuiTableCaption.vue_vue_type_script_setup_true_lang-CgwGwt_r.js";
|
9
|
+
import { _ as Ue } from "./BuiTableEmpty.vue_vue_type_script_setup_true_lang-BTRdS1lE.js";
|
10
|
+
import { _ as je } from "./BuiTableFooter.vue_vue_type_script_setup_true_lang-YcrT5R43.js";
|
11
|
+
import { _ as Xe } from "./variables-CCcI2-OR.js";
|
12
|
+
import { v as W } from "./utils-Ctmb9SvZ.js";
|
13
|
+
/**
|
14
|
+
* table-core
|
15
|
+
*
|
16
|
+
* Copyright (c) TanStack
|
17
|
+
*
|
18
|
+
* This source code is licensed under the MIT license found in the
|
19
|
+
* LICENSE.md file in the root directory of this source tree.
|
20
|
+
*
|
21
|
+
* @license MIT
|
22
|
+
*/
|
23
|
+
function D(e, o) {
|
24
|
+
return typeof e == "function" ? e(o) : e;
|
25
|
+
}
|
26
|
+
function P(e, o) {
|
27
|
+
return (t) => {
|
28
|
+
o.setState((n) => ({
|
29
|
+
...n,
|
30
|
+
[e]: D(t, n[e])
|
31
|
+
}));
|
32
|
+
};
|
33
|
+
}
|
34
|
+
function j(e) {
|
35
|
+
return e instanceof Function;
|
36
|
+
}
|
37
|
+
function Ke(e) {
|
38
|
+
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
39
|
+
}
|
40
|
+
function Ye(e, o) {
|
41
|
+
const t = [], n = (r) => {
|
42
|
+
r.forEach((i) => {
|
43
|
+
t.push(i);
|
44
|
+
const l = o(i);
|
45
|
+
l != null && l.length && n(l);
|
46
|
+
});
|
47
|
+
};
|
48
|
+
return n(e), t;
|
49
|
+
}
|
50
|
+
function S(e, o, t) {
|
51
|
+
let n = [], r;
|
52
|
+
return (i) => {
|
53
|
+
let l;
|
54
|
+
t.key && t.debug && (l = Date.now());
|
55
|
+
const s = e(i);
|
56
|
+
if (!(s.length !== n.length || s.some((f, c) => n[c] !== f)))
|
57
|
+
return r;
|
58
|
+
n = s;
|
59
|
+
let a;
|
60
|
+
if (t.key && t.debug && (a = Date.now()), r = o(...s), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
|
61
|
+
const f = Math.round((Date.now() - l) * 100) / 100, c = Math.round((Date.now() - a) * 100) / 100, d = c / 16, g = (p, m) => {
|
62
|
+
for (p = String(p); p.length < m; )
|
63
|
+
p = " " + p;
|
64
|
+
return p;
|
65
|
+
};
|
66
|
+
console.info(`%c⏱ ${g(c, 5)} /${g(f, 5)} ms`, `
|
67
|
+
font-size: .6rem;
|
68
|
+
font-weight: bold;
|
69
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t?.key);
|
70
|
+
}
|
71
|
+
return r;
|
72
|
+
};
|
73
|
+
}
|
74
|
+
function C(e, o, t, n) {
|
75
|
+
return {
|
76
|
+
debug: () => {
|
77
|
+
var r;
|
78
|
+
return (r = e?.debugAll) != null ? r : e[o];
|
79
|
+
},
|
80
|
+
key: process.env.NODE_ENV === "development" && t,
|
81
|
+
onChange: n
|
82
|
+
};
|
83
|
+
}
|
84
|
+
function Je(e, o, t, n) {
|
85
|
+
const r = () => {
|
86
|
+
var l;
|
87
|
+
return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
|
88
|
+
}, i = {
|
89
|
+
id: `${o.id}_${t.id}`,
|
90
|
+
row: o,
|
91
|
+
column: t,
|
92
|
+
getValue: () => o.getValue(n),
|
93
|
+
renderValue: r,
|
94
|
+
getContext: S(() => [e, t, o, i], (l, s, u, a) => ({
|
95
|
+
table: l,
|
96
|
+
column: s,
|
97
|
+
row: u,
|
98
|
+
cell: a,
|
99
|
+
getValue: a.getValue,
|
100
|
+
renderValue: a.renderValue
|
101
|
+
}), C(e.options, "debugCells", "cell.getContext"))
|
102
|
+
};
|
103
|
+
return e._features.forEach((l) => {
|
104
|
+
l.createCell == null || l.createCell(i, t, o, e);
|
105
|
+
}, {}), i;
|
106
|
+
}
|
107
|
+
function Qe(e, o, t, n) {
|
108
|
+
var r, i;
|
109
|
+
const s = {
|
110
|
+
...e._getDefaultColumnDef(),
|
111
|
+
...o
|
112
|
+
}, u = s.accessorKey;
|
113
|
+
let a = (r = (i = s.id) != null ? i : u ? u.replace(".", "_") : void 0) != null ? r : typeof s.header == "string" ? s.header : void 0, f;
|
114
|
+
if (s.accessorFn ? f = s.accessorFn : u && (u.includes(".") ? f = (d) => {
|
115
|
+
let g = d;
|
116
|
+
for (const m of u.split(".")) {
|
117
|
+
var p;
|
118
|
+
g = (p = g) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${m}" in deeply nested key "${u}" returned undefined.`);
|
119
|
+
}
|
120
|
+
return g;
|
121
|
+
} : f = (d) => d[s.accessorKey]), !a)
|
122
|
+
throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
123
|
+
let c = {
|
124
|
+
id: `${String(a)}`,
|
125
|
+
accessorFn: f,
|
126
|
+
parent: n,
|
127
|
+
depth: t,
|
128
|
+
columnDef: s,
|
129
|
+
columns: [],
|
130
|
+
getFlatColumns: S(() => [!0], () => {
|
131
|
+
var d;
|
132
|
+
return [c, ...(d = c.columns) == null ? void 0 : d.flatMap((g) => g.getFlatColumns())];
|
133
|
+
}, C(e.options, "debugColumns", "column.getFlatColumns")),
|
134
|
+
getLeafColumns: S(() => [e._getOrderColumnsFn()], (d) => {
|
135
|
+
var g;
|
136
|
+
if ((g = c.columns) != null && g.length) {
|
137
|
+
let p = c.columns.flatMap((m) => m.getLeafColumns());
|
138
|
+
return d(p);
|
139
|
+
}
|
140
|
+
return [c];
|
141
|
+
}, C(e.options, "debugColumns", "column.getLeafColumns"))
|
142
|
+
};
|
143
|
+
for (const d of e._features)
|
144
|
+
d.createColumn == null || d.createColumn(c, e);
|
145
|
+
return c;
|
146
|
+
}
|
147
|
+
const F = "debugHeaders";
|
148
|
+
function Re(e, o, t) {
|
149
|
+
var n;
|
150
|
+
let i = {
|
151
|
+
id: (n = t.id) != null ? n : o.id,
|
152
|
+
column: o,
|
153
|
+
index: t.index,
|
154
|
+
isPlaceholder: !!t.isPlaceholder,
|
155
|
+
placeholderId: t.placeholderId,
|
156
|
+
depth: t.depth,
|
157
|
+
subHeaders: [],
|
158
|
+
colSpan: 0,
|
159
|
+
rowSpan: 0,
|
160
|
+
headerGroup: null,
|
161
|
+
getLeafHeaders: () => {
|
162
|
+
const l = [], s = (u) => {
|
163
|
+
u.subHeaders && u.subHeaders.length && u.subHeaders.map(s), l.push(u);
|
164
|
+
};
|
165
|
+
return s(i), l;
|
166
|
+
},
|
167
|
+
getContext: () => ({
|
168
|
+
table: e,
|
169
|
+
header: i,
|
170
|
+
column: o
|
171
|
+
})
|
172
|
+
};
|
173
|
+
return e._features.forEach((l) => {
|
174
|
+
l.createHeader == null || l.createHeader(i, e);
|
175
|
+
}), i;
|
176
|
+
}
|
177
|
+
const We = {
|
178
|
+
createTable: (e) => {
|
179
|
+
e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
180
|
+
var i, l;
|
181
|
+
const s = (i = n?.map((c) => t.find((d) => d.id === c)).filter(Boolean)) != null ? i : [], u = (l = r?.map((c) => t.find((d) => d.id === c)).filter(Boolean)) != null ? l : [], a = t.filter((c) => !(n != null && n.includes(c.id)) && !(r != null && r.includes(c.id)));
|
182
|
+
return T(o, [...s, ...a, ...u], e);
|
183
|
+
}, C(e.options, F, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), T(o, t, e, "center")), C(e.options, F, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
184
|
+
var r;
|
185
|
+
const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
186
|
+
return T(o, i, e, "left");
|
187
|
+
}, C(e.options, F, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
188
|
+
var r;
|
189
|
+
const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
190
|
+
return T(o, i, e, "right");
|
191
|
+
}, C(e.options, F, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
192
|
+
var n;
|
193
|
+
return !((n = t.subHeaders) != null && n.length);
|
194
|
+
}), C(e.options, F, "getCenterLeafHeaders")), e.getLeftLeafHeaders = S(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
195
|
+
var n;
|
196
|
+
return !((n = t.subHeaders) != null && n.length);
|
197
|
+
}), C(e.options, F, "getLeftLeafHeaders")), e.getRightLeafHeaders = S(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
198
|
+
var n;
|
199
|
+
return !((n = t.subHeaders) != null && n.length);
|
200
|
+
}), C(e.options, F, "getRightLeafHeaders")), e.getLeafHeaders = S(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
201
|
+
var r, i, l, s, u, a;
|
202
|
+
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(u = (a = n[0]) == null ? void 0 : a.headers) != null ? u : []].map((f) => f.getLeafHeaders()).flat();
|
203
|
+
}, C(e.options, F, "getLeafHeaders"));
|
204
|
+
}
|
205
|
+
};
|
206
|
+
function T(e, o, t, n) {
|
207
|
+
var r, i;
|
208
|
+
let l = 0;
|
209
|
+
const s = function(d, g) {
|
210
|
+
g === void 0 && (g = 1), l = Math.max(l, g), d.filter((p) => p.getIsVisible()).forEach((p) => {
|
211
|
+
var m;
|
212
|
+
(m = p.columns) != null && m.length && s(p.columns, g + 1);
|
213
|
+
}, 0);
|
214
|
+
};
|
215
|
+
s(e);
|
216
|
+
let u = [];
|
217
|
+
const a = (d, g) => {
|
218
|
+
const p = {
|
219
|
+
depth: g,
|
220
|
+
id: [n, `${g}`].filter(Boolean).join("_"),
|
221
|
+
headers: []
|
222
|
+
}, m = [];
|
223
|
+
d.forEach((w) => {
|
224
|
+
const R = [...m].reverse()[0], _ = w.column.depth === p.depth;
|
225
|
+
let h, V = !1;
|
226
|
+
if (_ && w.column.parent ? h = w.column.parent : (h = w.column, V = !0), R && R?.column === h)
|
227
|
+
R.subHeaders.push(w);
|
228
|
+
else {
|
229
|
+
const x = Re(t, h, {
|
230
|
+
id: [n, g, h.id, w?.id].filter(Boolean).join("_"),
|
231
|
+
isPlaceholder: V,
|
232
|
+
placeholderId: V ? `${m.filter((X) => X.column === h).length}` : void 0,
|
233
|
+
depth: g,
|
234
|
+
index: m.length
|
235
|
+
});
|
236
|
+
x.subHeaders.push(w), m.push(x);
|
237
|
+
}
|
238
|
+
p.headers.push(w), w.headerGroup = p;
|
239
|
+
}), u.push(p), g > 0 && a(m, g - 1);
|
240
|
+
}, f = o.map((d, g) => Re(t, d, {
|
241
|
+
depth: l,
|
242
|
+
index: g
|
243
|
+
}));
|
244
|
+
a(f, l - 1), u.reverse();
|
245
|
+
const c = (d) => d.filter((p) => p.column.getIsVisible()).map((p) => {
|
246
|
+
let m = 0, w = 0, R = [0];
|
247
|
+
p.subHeaders && p.subHeaders.length ? (R = [], c(p.subHeaders).forEach((h) => {
|
248
|
+
let {
|
249
|
+
colSpan: V,
|
250
|
+
rowSpan: x
|
251
|
+
} = h;
|
252
|
+
m += V, R.push(x);
|
253
|
+
})) : m = 1;
|
254
|
+
const _ = Math.min(...R);
|
255
|
+
return w = w + _, p.colSpan = m, p.rowSpan = w, {
|
256
|
+
colSpan: m,
|
257
|
+
rowSpan: w
|
258
|
+
};
|
259
|
+
});
|
260
|
+
return c((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
|
261
|
+
}
|
262
|
+
const Ze = (e, o, t, n, r, i, l) => {
|
263
|
+
let s = {
|
264
|
+
id: o,
|
265
|
+
index: n,
|
266
|
+
original: t,
|
267
|
+
depth: r,
|
268
|
+
parentId: l,
|
269
|
+
_valuesCache: {},
|
270
|
+
_uniqueValuesCache: {},
|
271
|
+
getValue: (u) => {
|
272
|
+
if (s._valuesCache.hasOwnProperty(u))
|
273
|
+
return s._valuesCache[u];
|
274
|
+
const a = e.getColumn(u);
|
275
|
+
if (a != null && a.accessorFn)
|
276
|
+
return s._valuesCache[u] = a.accessorFn(s.original, n), s._valuesCache[u];
|
277
|
+
},
|
278
|
+
getUniqueValues: (u) => {
|
279
|
+
if (s._uniqueValuesCache.hasOwnProperty(u))
|
280
|
+
return s._uniqueValuesCache[u];
|
281
|
+
const a = e.getColumn(u);
|
282
|
+
if (a != null && a.accessorFn)
|
283
|
+
return a.columnDef.getUniqueValues ? (s._uniqueValuesCache[u] = a.columnDef.getUniqueValues(s.original, n), s._uniqueValuesCache[u]) : (s._uniqueValuesCache[u] = [s.getValue(u)], s._uniqueValuesCache[u]);
|
284
|
+
},
|
285
|
+
renderValue: (u) => {
|
286
|
+
var a;
|
287
|
+
return (a = s.getValue(u)) != null ? a : e.options.renderFallbackValue;
|
288
|
+
},
|
289
|
+
subRows: i ?? [],
|
290
|
+
getLeafRows: () => Ye(s.subRows, (u) => u.subRows),
|
291
|
+
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
292
|
+
getParentRows: () => {
|
293
|
+
let u = [], a = s;
|
294
|
+
for (; ; ) {
|
295
|
+
const f = a.getParentRow();
|
296
|
+
if (!f)
|
297
|
+
break;
|
298
|
+
u.push(f), a = f;
|
299
|
+
}
|
300
|
+
return u.reverse();
|
301
|
+
},
|
302
|
+
getAllCells: S(() => [e.getAllLeafColumns()], (u) => u.map((a) => Je(e, s, a, a.id)), C(e.options, "debugRows", "getAllCells")),
|
303
|
+
_getAllCellsByColumnId: S(() => [s.getAllCells()], (u) => u.reduce((a, f) => (a[f.column.id] = f, a), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
304
|
+
};
|
305
|
+
for (let u = 0; u < e._features.length; u++) {
|
306
|
+
const a = e._features[u];
|
307
|
+
a == null || a.createRow == null || a.createRow(s, e);
|
308
|
+
}
|
309
|
+
return s;
|
310
|
+
}, be = {
|
311
|
+
createColumn: (e, o) => {
|
312
|
+
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
313
|
+
if (e._getFacetedMinMaxValues)
|
314
|
+
return e._getFacetedMinMaxValues();
|
315
|
+
};
|
316
|
+
}
|
317
|
+
}, _e = (e, o, t) => {
|
318
|
+
var n;
|
319
|
+
const r = t.toLowerCase();
|
320
|
+
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null || (n = n.toLowerCase()) == null) && n.includes(r));
|
321
|
+
};
|
322
|
+
_e.autoRemove = (e) => I(e);
|
323
|
+
const Fe = (e, o, t) => {
|
324
|
+
var n;
|
325
|
+
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
326
|
+
};
|
327
|
+
Fe.autoRemove = (e) => I(e);
|
328
|
+
const $e = (e, o, t) => {
|
329
|
+
var n;
|
330
|
+
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
|
331
|
+
};
|
332
|
+
$e.autoRemove = (e) => I(e);
|
333
|
+
const Pe = (e, o, t) => {
|
334
|
+
var n;
|
335
|
+
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
336
|
+
};
|
337
|
+
Pe.autoRemove = (e) => I(e) || !(e != null && e.length);
|
338
|
+
const Ve = (e, o, t) => !t.some((n) => {
|
339
|
+
var r;
|
340
|
+
return !((r = e.getValue(o)) != null && r.includes(n));
|
341
|
+
});
|
342
|
+
Ve.autoRemove = (e) => I(e) || !(e != null && e.length);
|
343
|
+
const Me = (e, o, t) => t.some((n) => {
|
344
|
+
var r;
|
345
|
+
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
346
|
+
});
|
347
|
+
Me.autoRemove = (e) => I(e) || !(e != null && e.length);
|
348
|
+
const Ie = (e, o, t) => e.getValue(o) === t;
|
349
|
+
Ie.autoRemove = (e) => I(e);
|
350
|
+
const xe = (e, o, t) => e.getValue(o) == t;
|
351
|
+
xe.autoRemove = (e) => I(e);
|
352
|
+
const de = (e, o, t) => {
|
353
|
+
let [n, r] = t;
|
354
|
+
const i = e.getValue(o);
|
355
|
+
return i >= n && i <= r;
|
356
|
+
};
|
357
|
+
de.resolveFilterValue = (e) => {
|
358
|
+
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
359
|
+
if (i > l) {
|
360
|
+
const s = i;
|
361
|
+
i = l, l = s;
|
362
|
+
}
|
363
|
+
return [i, l];
|
364
|
+
};
|
365
|
+
de.autoRemove = (e) => I(e) || I(e[0]) && I(e[1]);
|
366
|
+
const E = {
|
367
|
+
includesString: _e,
|
368
|
+
includesStringSensitive: Fe,
|
369
|
+
equalsString: $e,
|
370
|
+
arrIncludes: Pe,
|
371
|
+
arrIncludesAll: Ve,
|
372
|
+
arrIncludesSome: Me,
|
373
|
+
equals: Ie,
|
374
|
+
weakEquals: xe,
|
375
|
+
inNumberRange: de
|
376
|
+
};
|
377
|
+
function I(e) {
|
378
|
+
return e == null || e === "";
|
379
|
+
}
|
380
|
+
const et = {
|
381
|
+
getDefaultColumnDef: () => ({
|
382
|
+
filterFn: "auto"
|
383
|
+
}),
|
384
|
+
getInitialState: (e) => ({
|
385
|
+
columnFilters: [],
|
386
|
+
...e
|
387
|
+
}),
|
388
|
+
getDefaultOptions: (e) => ({
|
389
|
+
onColumnFiltersChange: P("columnFilters", e),
|
390
|
+
filterFromLeafRows: !1,
|
391
|
+
maxLeafRowFilterDepth: 100
|
392
|
+
}),
|
393
|
+
createColumn: (e, o) => {
|
394
|
+
e.getAutoFilterFn = () => {
|
395
|
+
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
396
|
+
return typeof n == "string" ? E.includesString : typeof n == "number" ? E.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? E.equals : Array.isArray(n) ? E.arrIncludes : E.weakEquals;
|
397
|
+
}, e.getFilterFn = () => {
|
398
|
+
var t, n;
|
399
|
+
return j(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
400
|
+
// @ts-ignore
|
401
|
+
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : E[e.columnDef.filterFn]
|
402
|
+
);
|
403
|
+
}, e.getCanFilter = () => {
|
404
|
+
var t, n, r;
|
405
|
+
return ((t = e.columnDef.enableColumnFilter) != null ? t : !0) && ((n = o.options.enableColumnFilters) != null ? n : !0) && ((r = o.options.enableFilters) != null ? r : !0) && !!e.accessorFn;
|
406
|
+
}, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
407
|
+
var t;
|
408
|
+
return (t = o.getState().columnFilters) == null || (t = t.find((n) => n.id === e.id)) == null ? void 0 : t.value;
|
409
|
+
}, e.getFilterIndex = () => {
|
410
|
+
var t, n;
|
411
|
+
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
412
|
+
}, e.setFilterValue = (t) => {
|
413
|
+
o.setColumnFilters((n) => {
|
414
|
+
const r = e.getFilterFn(), i = n?.find((f) => f.id === e.id), l = D(t, i ? i.value : void 0);
|
415
|
+
if (we(r, l, e)) {
|
416
|
+
var s;
|
417
|
+
return (s = n?.filter((f) => f.id !== e.id)) != null ? s : [];
|
418
|
+
}
|
419
|
+
const u = {
|
420
|
+
id: e.id,
|
421
|
+
value: l
|
422
|
+
};
|
423
|
+
if (i) {
|
424
|
+
var a;
|
425
|
+
return (a = n?.map((f) => f.id === e.id ? u : f)) != null ? a : [];
|
426
|
+
}
|
427
|
+
return n != null && n.length ? [...n, u] : [u];
|
428
|
+
});
|
429
|
+
};
|
430
|
+
},
|
431
|
+
createRow: (e, o) => {
|
432
|
+
e.columnFilters = {}, e.columnFiltersMeta = {};
|
433
|
+
},
|
434
|
+
createTable: (e) => {
|
435
|
+
e.setColumnFilters = (o) => {
|
436
|
+
const t = e.getAllLeafColumns(), n = (r) => {
|
437
|
+
var i;
|
438
|
+
return (i = D(o, r)) == null ? void 0 : i.filter((l) => {
|
439
|
+
const s = t.find((u) => u.id === l.id);
|
440
|
+
if (s) {
|
441
|
+
const u = s.getFilterFn();
|
442
|
+
if (we(u, l.value, s))
|
443
|
+
return !1;
|
444
|
+
}
|
445
|
+
return !0;
|
446
|
+
});
|
447
|
+
};
|
448
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
|
449
|
+
}, e.resetColumnFilters = (o) => {
|
450
|
+
var t, n;
|
451
|
+
e.setColumnFilters(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.columnFilters) != null ? t : []);
|
452
|
+
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
453
|
+
}
|
454
|
+
};
|
455
|
+
function we(e, o, t) {
|
456
|
+
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
457
|
+
}
|
458
|
+
const tt = (e, o, t) => t.reduce((n, r) => {
|
459
|
+
const i = r.getValue(e);
|
460
|
+
return n + (typeof i == "number" ? i : 0);
|
461
|
+
}, 0), nt = (e, o, t) => {
|
462
|
+
let n;
|
463
|
+
return t.forEach((r) => {
|
464
|
+
const i = r.getValue(e);
|
465
|
+
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
466
|
+
}), n;
|
467
|
+
}, ot = (e, o, t) => {
|
468
|
+
let n;
|
469
|
+
return t.forEach((r) => {
|
470
|
+
const i = r.getValue(e);
|
471
|
+
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
472
|
+
}), n;
|
473
|
+
}, rt = (e, o, t) => {
|
474
|
+
let n, r;
|
475
|
+
return t.forEach((i) => {
|
476
|
+
const l = i.getValue(e);
|
477
|
+
l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
|
478
|
+
}), [n, r];
|
479
|
+
}, it = (e, o) => {
|
480
|
+
let t = 0, n = 0;
|
481
|
+
if (o.forEach((r) => {
|
482
|
+
let i = r.getValue(e);
|
483
|
+
i != null && (i = +i) >= i && (++t, n += i);
|
484
|
+
}), t)
|
485
|
+
return n / t;
|
486
|
+
}, lt = (e, o) => {
|
487
|
+
if (!o.length)
|
488
|
+
return;
|
489
|
+
const t = o.map((i) => i.getValue(e));
|
490
|
+
if (!Ke(t))
|
491
|
+
return;
|
492
|
+
if (t.length === 1)
|
493
|
+
return t[0];
|
494
|
+
const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
|
495
|
+
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
496
|
+
}, st = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), ut = (e, o) => new Set(o.map((t) => t.getValue(e))).size, at = (e, o) => o.length, Z = {
|
497
|
+
sum: tt,
|
498
|
+
min: nt,
|
499
|
+
max: ot,
|
500
|
+
extent: rt,
|
501
|
+
mean: it,
|
502
|
+
median: lt,
|
503
|
+
unique: st,
|
504
|
+
uniqueCount: ut,
|
505
|
+
count: at
|
506
|
+
}, gt = {
|
507
|
+
getDefaultColumnDef: () => ({
|
508
|
+
aggregatedCell: (e) => {
|
509
|
+
var o, t;
|
510
|
+
return (o = (t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) != null ? o : null;
|
511
|
+
},
|
512
|
+
aggregationFn: "auto"
|
513
|
+
}),
|
514
|
+
getInitialState: (e) => ({
|
515
|
+
grouping: [],
|
516
|
+
...e
|
517
|
+
}),
|
518
|
+
getDefaultOptions: (e) => ({
|
519
|
+
onGroupingChange: P("grouping", e),
|
520
|
+
groupedColumnMode: "reorder"
|
521
|
+
}),
|
522
|
+
createColumn: (e, o) => {
|
523
|
+
e.toggleGrouping = () => {
|
524
|
+
o.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((n) => n !== e.id) : [...t ?? [], e.id]);
|
525
|
+
}, e.getCanGroup = () => {
|
526
|
+
var t, n;
|
527
|
+
return ((t = e.columnDef.enableGrouping) != null ? t : !0) && ((n = o.options.enableGrouping) != null ? n : !0) && (!!e.accessorFn || !!e.columnDef.getGroupingValue);
|
528
|
+
}, e.getIsGrouped = () => {
|
529
|
+
var t;
|
530
|
+
return (t = o.getState().grouping) == null ? void 0 : t.includes(e.id);
|
531
|
+
}, e.getGroupedIndex = () => {
|
532
|
+
var t;
|
533
|
+
return (t = o.getState().grouping) == null ? void 0 : t.indexOf(e.id);
|
534
|
+
}, e.getToggleGroupingHandler = () => {
|
535
|
+
const t = e.getCanGroup();
|
536
|
+
return () => {
|
537
|
+
t && e.toggleGrouping();
|
538
|
+
};
|
539
|
+
}, e.getAutoAggregationFn = () => {
|
540
|
+
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
541
|
+
if (typeof n == "number")
|
542
|
+
return Z.sum;
|
543
|
+
if (Object.prototype.toString.call(n) === "[object Date]")
|
544
|
+
return Z.extent;
|
545
|
+
}, e.getAggregationFn = () => {
|
546
|
+
var t, n;
|
547
|
+
if (!e)
|
548
|
+
throw new Error();
|
549
|
+
return j(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Z[e.columnDef.aggregationFn];
|
550
|
+
};
|
551
|
+
},
|
552
|
+
createTable: (e) => {
|
553
|
+
e.setGrouping = (o) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(o), e.resetGrouping = (o) => {
|
554
|
+
var t, n;
|
555
|
+
e.setGrouping(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.grouping) != null ? t : []);
|
556
|
+
}, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
|
557
|
+
},
|
558
|
+
createRow: (e, o) => {
|
559
|
+
e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
|
560
|
+
if (e._groupingValuesCache.hasOwnProperty(t))
|
561
|
+
return e._groupingValuesCache[t];
|
562
|
+
const n = o.getColumn(t);
|
563
|
+
return n != null && n.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
|
564
|
+
}, e._groupingValuesCache = {};
|
565
|
+
},
|
566
|
+
createCell: (e, o, t, n) => {
|
567
|
+
e.getIsGrouped = () => o.getIsGrouped() && o.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && o.getIsGrouped(), e.getIsAggregated = () => {
|
568
|
+
var r;
|
569
|
+
return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((r = t.subRows) != null && r.length);
|
570
|
+
};
|
571
|
+
}
|
572
|
+
};
|
573
|
+
function dt(e, o, t) {
|
574
|
+
if (!(o != null && o.length) || !t)
|
575
|
+
return e;
|
576
|
+
const n = e.filter((i) => !o.includes(i.id));
|
577
|
+
return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
|
578
|
+
}
|
579
|
+
const ft = {
|
580
|
+
getInitialState: (e) => ({
|
581
|
+
columnOrder: [],
|
582
|
+
...e
|
583
|
+
}),
|
584
|
+
getDefaultOptions: (e) => ({
|
585
|
+
onColumnOrderChange: P("columnOrder", e)
|
586
|
+
}),
|
587
|
+
createColumn: (e, o) => {
|
588
|
+
e.getIndex = S((t) => [L(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
589
|
+
var n;
|
590
|
+
return ((n = L(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
591
|
+
}, e.getIsLastColumn = (t) => {
|
592
|
+
var n;
|
593
|
+
const r = L(o, t);
|
594
|
+
return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
|
595
|
+
};
|
596
|
+
},
|
597
|
+
createTable: (e) => {
|
598
|
+
e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
|
599
|
+
var t;
|
600
|
+
e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
601
|
+
}, e._getOrderColumnsFn = S(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
|
602
|
+
let i = [];
|
603
|
+
if (!(o != null && o.length))
|
604
|
+
i = r;
|
605
|
+
else {
|
606
|
+
const l = [...o], s = [...r];
|
607
|
+
for (; s.length && l.length; ) {
|
608
|
+
const u = l.shift(), a = s.findIndex((f) => f.id === u);
|
609
|
+
a > -1 && i.push(s.splice(a, 1)[0]);
|
610
|
+
}
|
611
|
+
i = [...i, ...s];
|
612
|
+
}
|
613
|
+
return dt(i, t, n);
|
614
|
+
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
615
|
+
}
|
616
|
+
}, b = () => ({
|
617
|
+
left: [],
|
618
|
+
right: []
|
619
|
+
}), ct = {
|
620
|
+
getInitialState: (e) => ({
|
621
|
+
columnPinning: b(),
|
622
|
+
...e
|
623
|
+
}),
|
624
|
+
getDefaultOptions: (e) => ({
|
625
|
+
onColumnPinningChange: P("columnPinning", e)
|
626
|
+
}),
|
627
|
+
createColumn: (e, o) => {
|
628
|
+
e.pin = (t) => {
|
629
|
+
const n = e.getLeafColumns().map((r) => r.id).filter(Boolean);
|
630
|
+
o.setColumnPinning((r) => {
|
631
|
+
var i, l;
|
632
|
+
if (t === "right") {
|
633
|
+
var s, u;
|
634
|
+
return {
|
635
|
+
left: ((s = r?.left) != null ? s : []).filter((c) => !(n != null && n.includes(c))),
|
636
|
+
right: [...((u = r?.right) != null ? u : []).filter((c) => !(n != null && n.includes(c))), ...n]
|
637
|
+
};
|
638
|
+
}
|
639
|
+
if (t === "left") {
|
640
|
+
var a, f;
|
641
|
+
return {
|
642
|
+
left: [...((a = r?.left) != null ? a : []).filter((c) => !(n != null && n.includes(c))), ...n],
|
643
|
+
right: ((f = r?.right) != null ? f : []).filter((c) => !(n != null && n.includes(c)))
|
644
|
+
};
|
645
|
+
}
|
646
|
+
return {
|
647
|
+
left: ((i = r?.left) != null ? i : []).filter((c) => !(n != null && n.includes(c))),
|
648
|
+
right: ((l = r?.right) != null ? l : []).filter((c) => !(n != null && n.includes(c)))
|
649
|
+
};
|
650
|
+
});
|
651
|
+
}, e.getCanPin = () => e.getLeafColumns().some((n) => {
|
652
|
+
var r, i, l;
|
653
|
+
return ((r = n.columnDef.enablePinning) != null ? r : !0) && ((i = (l = o.options.enableColumnPinning) != null ? l : o.options.enablePinning) != null ? i : !0);
|
654
|
+
}), e.getIsPinned = () => {
|
655
|
+
const t = e.getLeafColumns().map((s) => s.id), {
|
656
|
+
left: n,
|
657
|
+
right: r
|
658
|
+
} = o.getState().columnPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
|
659
|
+
return i ? "left" : l ? "right" : !1;
|
660
|
+
}, e.getPinnedIndex = () => {
|
661
|
+
var t, n;
|
662
|
+
const r = e.getIsPinned();
|
663
|
+
return r ? (t = (n = o.getState().columnPinning) == null || (n = n[r]) == null ? void 0 : n.indexOf(e.id)) != null ? t : -1 : 0;
|
664
|
+
};
|
665
|
+
},
|
666
|
+
createRow: (e, o) => {
|
667
|
+
e.getCenterVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
|
668
|
+
const i = [...n ?? [], ...r ?? []];
|
669
|
+
return t.filter((l) => !i.includes(l.column.id));
|
670
|
+
}, C(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
671
|
+
...i,
|
672
|
+
position: "left"
|
673
|
+
})), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
674
|
+
...i,
|
675
|
+
position: "right"
|
676
|
+
})), C(o.options, "debugRows", "getRightVisibleCells"));
|
677
|
+
},
|
678
|
+
createTable: (e) => {
|
679
|
+
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
680
|
+
var t, n;
|
681
|
+
return e.setColumnPinning(o ? b() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : b());
|
682
|
+
}, e.getIsSomeColumnsPinned = (o) => {
|
683
|
+
var t;
|
684
|
+
const n = e.getState().columnPinning;
|
685
|
+
if (!o) {
|
686
|
+
var r, i;
|
687
|
+
return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
|
688
|
+
}
|
689
|
+
return !!((t = n[o]) != null && t.length);
|
690
|
+
}, e.getLeftLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
|
691
|
+
const r = [...t ?? [], ...n ?? []];
|
692
|
+
return o.filter((i) => !r.includes(i.id));
|
693
|
+
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
694
|
+
}
|
695
|
+
}, k = {
|
696
|
+
size: 150,
|
697
|
+
minSize: 20,
|
698
|
+
maxSize: Number.MAX_SAFE_INTEGER
|
699
|
+
}, ee = () => ({
|
700
|
+
startOffset: null,
|
701
|
+
startSize: null,
|
702
|
+
deltaOffset: null,
|
703
|
+
deltaPercentage: null,
|
704
|
+
isResizingColumn: !1,
|
705
|
+
columnSizingStart: []
|
706
|
+
}), pt = {
|
707
|
+
getDefaultColumnDef: () => k,
|
708
|
+
getInitialState: (e) => ({
|
709
|
+
columnSizing: {},
|
710
|
+
columnSizingInfo: ee(),
|
711
|
+
...e
|
712
|
+
}),
|
713
|
+
getDefaultOptions: (e) => ({
|
714
|
+
columnResizeMode: "onEnd",
|
715
|
+
columnResizeDirection: "ltr",
|
716
|
+
onColumnSizingChange: P("columnSizing", e),
|
717
|
+
onColumnSizingInfoChange: P("columnSizingInfo", e)
|
718
|
+
}),
|
719
|
+
createColumn: (e, o) => {
|
720
|
+
e.getSize = () => {
|
721
|
+
var t, n, r;
|
722
|
+
const i = o.getState().columnSizing[e.id];
|
723
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : k.minSize, (n = i ?? e.columnDef.size) != null ? n : k.size), (r = e.columnDef.maxSize) != null ? r : k.maxSize);
|
724
|
+
}, e.getStart = S((t) => [t, L(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = S((t) => [t, L(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
725
|
+
o.setColumnSizing((t) => {
|
726
|
+
let {
|
727
|
+
[e.id]: n,
|
728
|
+
...r
|
729
|
+
} = t;
|
730
|
+
return r;
|
731
|
+
});
|
732
|
+
}, e.getCanResize = () => {
|
733
|
+
var t, n;
|
734
|
+
return ((t = e.columnDef.enableResizing) != null ? t : !0) && ((n = o.options.enableColumnResizing) != null ? n : !0);
|
735
|
+
}, e.getIsResizing = () => o.getState().columnSizingInfo.isResizingColumn === e.id;
|
736
|
+
},
|
737
|
+
createHeader: (e, o) => {
|
738
|
+
e.getSize = () => {
|
739
|
+
let t = 0;
|
740
|
+
const n = (r) => {
|
741
|
+
if (r.subHeaders.length)
|
742
|
+
r.subHeaders.forEach(n);
|
743
|
+
else {
|
744
|
+
var i;
|
745
|
+
t += (i = r.column.getSize()) != null ? i : 0;
|
746
|
+
}
|
747
|
+
};
|
748
|
+
return n(e), t;
|
749
|
+
}, e.getStart = () => {
|
750
|
+
if (e.index > 0) {
|
751
|
+
const t = e.headerGroup.headers[e.index - 1];
|
752
|
+
return t.getStart() + t.getSize();
|
753
|
+
}
|
754
|
+
return 0;
|
755
|
+
}, e.getResizeHandler = (t) => {
|
756
|
+
const n = o.getColumn(e.column.id), r = n?.getCanResize();
|
757
|
+
return (i) => {
|
758
|
+
if (!n || !r || (i.persist == null || i.persist(), te(i) && i.touches && i.touches.length > 1))
|
759
|
+
return;
|
760
|
+
const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = te(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, f = (R, _) => {
|
761
|
+
typeof _ == "number" && (o.setColumnSizingInfo((h) => {
|
762
|
+
var V, x;
|
763
|
+
const X = o.options.columnResizeDirection === "rtl" ? -1 : 1, pe = (_ - ((V = h?.startOffset) != null ? V : 0)) * X, me = Math.max(pe / ((x = h?.startSize) != null ? x : 0), -0.999999);
|
764
|
+
return h.columnSizingStart.forEach((Ee) => {
|
765
|
+
let [De, Se] = Ee;
|
766
|
+
a[De] = Math.round(Math.max(Se + Se * me, 0) * 100) / 100;
|
767
|
+
}), {
|
768
|
+
...h,
|
769
|
+
deltaOffset: pe,
|
770
|
+
deltaPercentage: me
|
771
|
+
};
|
772
|
+
}), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing((h) => ({
|
773
|
+
...h,
|
774
|
+
...a
|
775
|
+
})));
|
776
|
+
}, c = (R) => f("move", R), d = (R) => {
|
777
|
+
f("end", R), o.setColumnSizingInfo((_) => ({
|
778
|
+
..._,
|
779
|
+
isResizingColumn: !1,
|
780
|
+
startOffset: null,
|
781
|
+
startSize: null,
|
782
|
+
deltaOffset: null,
|
783
|
+
deltaPercentage: null,
|
784
|
+
columnSizingStart: []
|
785
|
+
}));
|
786
|
+
}, g = t || typeof document < "u" ? document : null, p = {
|
787
|
+
moveHandler: (R) => c(R.clientX),
|
788
|
+
upHandler: (R) => {
|
789
|
+
g?.removeEventListener("mousemove", p.moveHandler), g?.removeEventListener("mouseup", p.upHandler), d(R.clientX);
|
790
|
+
}
|
791
|
+
}, m = {
|
792
|
+
moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), c(R.touches[0].clientX), !1),
|
793
|
+
upHandler: (R) => {
|
794
|
+
var _;
|
795
|
+
g?.removeEventListener("touchmove", m.moveHandler), g?.removeEventListener("touchend", m.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), d((_ = R.touches[0]) == null ? void 0 : _.clientX);
|
796
|
+
}
|
797
|
+
}, w = mt() ? {
|
798
|
+
passive: !1
|
799
|
+
} : !1;
|
800
|
+
te(i) ? (g?.addEventListener("touchmove", m.moveHandler, w), g?.addEventListener("touchend", m.upHandler, w)) : (g?.addEventListener("mousemove", p.moveHandler, w), g?.addEventListener("mouseup", p.upHandler, w)), o.setColumnSizingInfo((R) => ({
|
801
|
+
...R,
|
802
|
+
startOffset: u,
|
803
|
+
startSize: l,
|
804
|
+
deltaOffset: 0,
|
805
|
+
deltaPercentage: 0,
|
806
|
+
columnSizingStart: s,
|
807
|
+
isResizingColumn: n.id
|
808
|
+
}));
|
809
|
+
};
|
810
|
+
};
|
811
|
+
},
|
812
|
+
createTable: (e) => {
|
813
|
+
e.setColumnSizing = (o) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(o), e.setColumnSizingInfo = (o) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(o), e.resetColumnSizing = (o) => {
|
814
|
+
var t;
|
815
|
+
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
816
|
+
}, e.resetHeaderSizeInfo = (o) => {
|
817
|
+
var t;
|
818
|
+
e.setColumnSizingInfo(o ? ee() : (t = e.initialState.columnSizingInfo) != null ? t : ee());
|
819
|
+
}, e.getTotalSize = () => {
|
820
|
+
var o, t;
|
821
|
+
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
822
|
+
}, e.getLeftTotalSize = () => {
|
823
|
+
var o, t;
|
824
|
+
return (o = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
825
|
+
}, e.getCenterTotalSize = () => {
|
826
|
+
var o, t;
|
827
|
+
return (o = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
828
|
+
}, e.getRightTotalSize = () => {
|
829
|
+
var o, t;
|
830
|
+
return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
831
|
+
};
|
832
|
+
}
|
833
|
+
};
|
834
|
+
let N = null;
|
835
|
+
function mt() {
|
836
|
+
if (typeof N == "boolean")
|
837
|
+
return N;
|
838
|
+
let e = !1;
|
839
|
+
try {
|
840
|
+
const o = {
|
841
|
+
get passive() {
|
842
|
+
return e = !0, !1;
|
843
|
+
}
|
844
|
+
}, t = () => {
|
845
|
+
};
|
846
|
+
window.addEventListener("test", t, o), window.removeEventListener("test", t);
|
847
|
+
} catch {
|
848
|
+
e = !1;
|
849
|
+
}
|
850
|
+
return N = e, N;
|
851
|
+
}
|
852
|
+
function te(e) {
|
853
|
+
return e.type === "touchstart";
|
854
|
+
}
|
855
|
+
const St = {
|
856
|
+
getInitialState: (e) => ({
|
857
|
+
columnVisibility: {},
|
858
|
+
...e
|
859
|
+
}),
|
860
|
+
getDefaultOptions: (e) => ({
|
861
|
+
onColumnVisibilityChange: P("columnVisibility", e)
|
862
|
+
}),
|
863
|
+
createColumn: (e, o) => {
|
864
|
+
e.toggleVisibility = (t) => {
|
865
|
+
e.getCanHide() && o.setColumnVisibility((n) => ({
|
866
|
+
...n,
|
867
|
+
[e.id]: t ?? !e.getIsVisible()
|
868
|
+
}));
|
869
|
+
}, e.getIsVisible = () => {
|
870
|
+
var t, n;
|
871
|
+
const r = e.columns;
|
872
|
+
return (t = r.length ? r.some((i) => i.getIsVisible()) : (n = o.getState().columnVisibility) == null ? void 0 : n[e.id]) != null ? t : !0;
|
873
|
+
}, e.getCanHide = () => {
|
874
|
+
var t, n;
|
875
|
+
return ((t = e.columnDef.enableHiding) != null ? t : !0) && ((n = o.options.enableHiding) != null ? n : !0);
|
876
|
+
}, e.getToggleVisibilityHandler = () => (t) => {
|
877
|
+
e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
|
878
|
+
};
|
879
|
+
},
|
880
|
+
createRow: (e, o) => {
|
881
|
+
e._getAllVisibleCells = S(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = S(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], C(o.options, "debugRows", "getVisibleCells"));
|
882
|
+
},
|
883
|
+
createTable: (e) => {
|
884
|
+
const o = (t, n) => S(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), C(e.options, "debugColumns", t));
|
885
|
+
e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
886
|
+
var n;
|
887
|
+
e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
|
888
|
+
}, e.toggleAllColumnsVisible = (t) => {
|
889
|
+
var n;
|
890
|
+
t = (n = t) != null ? n : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((r, i) => ({
|
891
|
+
...r,
|
892
|
+
[i.id]: t || !(i.getCanHide != null && i.getCanHide())
|
893
|
+
}), {}));
|
894
|
+
}, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((t) => !(t.getIsVisible != null && t.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((t) => t.getIsVisible == null ? void 0 : t.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
|
895
|
+
var n;
|
896
|
+
e.toggleAllColumnsVisible((n = t.target) == null ? void 0 : n.checked);
|
897
|
+
};
|
898
|
+
}
|
899
|
+
};
|
900
|
+
function L(e, o) {
|
901
|
+
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
902
|
+
}
|
903
|
+
const Ct = {
|
904
|
+
createTable: (e) => {
|
905
|
+
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
906
|
+
if (e._getGlobalFacetedMinMaxValues)
|
907
|
+
return e._getGlobalFacetedMinMaxValues();
|
908
|
+
};
|
909
|
+
}
|
910
|
+
}, Rt = {
|
911
|
+
getInitialState: (e) => ({
|
912
|
+
globalFilter: void 0,
|
913
|
+
...e
|
914
|
+
}),
|
915
|
+
getDefaultOptions: (e) => ({
|
916
|
+
onGlobalFilterChange: P("globalFilter", e),
|
917
|
+
globalFilterFn: "auto",
|
918
|
+
getColumnCanGlobalFilter: (o) => {
|
919
|
+
var t;
|
920
|
+
const n = (t = e.getCoreRowModel().flatRows[0]) == null || (t = t._getAllCellsByColumnId()[o.id]) == null ? void 0 : t.getValue();
|
921
|
+
return typeof n == "string" || typeof n == "number";
|
922
|
+
}
|
923
|
+
}),
|
924
|
+
createColumn: (e, o) => {
|
925
|
+
e.getCanGlobalFilter = () => {
|
926
|
+
var t, n, r, i;
|
927
|
+
return ((t = e.columnDef.enableGlobalFilter) != null ? t : !0) && ((n = o.options.enableGlobalFilter) != null ? n : !0) && ((r = o.options.enableFilters) != null ? r : !0) && ((i = o.options.getColumnCanGlobalFilter == null ? void 0 : o.options.getColumnCanGlobalFilter(e)) != null ? i : !0) && !!e.accessorFn;
|
928
|
+
};
|
929
|
+
},
|
930
|
+
createTable: (e) => {
|
931
|
+
e.getGlobalAutoFilterFn = () => E.includesString, e.getGlobalFilterFn = () => {
|
932
|
+
var o, t;
|
933
|
+
const {
|
934
|
+
globalFilterFn: n
|
935
|
+
} = e.options;
|
936
|
+
return j(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : E[n];
|
937
|
+
}, e.setGlobalFilter = (o) => {
|
938
|
+
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
939
|
+
}, e.resetGlobalFilter = (o) => {
|
940
|
+
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
941
|
+
};
|
942
|
+
}
|
943
|
+
}, wt = {
|
944
|
+
getInitialState: (e) => ({
|
945
|
+
expanded: {},
|
946
|
+
...e
|
947
|
+
}),
|
948
|
+
getDefaultOptions: (e) => ({
|
949
|
+
onExpandedChange: P("expanded", e),
|
950
|
+
paginateExpandedRows: !0
|
951
|
+
}),
|
952
|
+
createTable: (e) => {
|
953
|
+
let o = !1, t = !1;
|
954
|
+
e._autoResetExpanded = () => {
|
955
|
+
var n, r;
|
956
|
+
if (!o) {
|
957
|
+
e._queue(() => {
|
958
|
+
o = !0;
|
959
|
+
});
|
960
|
+
return;
|
961
|
+
}
|
962
|
+
if ((n = (r = e.options.autoResetAll) != null ? r : e.options.autoResetExpanded) != null ? n : !e.options.manualExpanding) {
|
963
|
+
if (t)
|
964
|
+
return;
|
965
|
+
t = !0, e._queue(() => {
|
966
|
+
e.resetExpanded(), t = !1;
|
967
|
+
});
|
968
|
+
}
|
969
|
+
}, e.setExpanded = (n) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(n), e.toggleAllRowsExpanded = (n) => {
|
970
|
+
n ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
|
971
|
+
}, e.resetExpanded = (n) => {
|
972
|
+
var r, i;
|
973
|
+
e.setExpanded(n ? {} : (r = (i = e.initialState) == null ? void 0 : i.expanded) != null ? r : {});
|
974
|
+
}, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((n) => n.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (n) => {
|
975
|
+
n.persist == null || n.persist(), e.toggleAllRowsExpanded();
|
976
|
+
}, e.getIsSomeRowsExpanded = () => {
|
977
|
+
const n = e.getState().expanded;
|
978
|
+
return n === !0 || Object.values(n).some(Boolean);
|
979
|
+
}, e.getIsAllRowsExpanded = () => {
|
980
|
+
const n = e.getState().expanded;
|
981
|
+
return typeof n == "boolean" ? n === !0 : !(!Object.keys(n).length || e.getRowModel().flatRows.some((r) => !r.getIsExpanded()));
|
982
|
+
}, e.getExpandedDepth = () => {
|
983
|
+
let n = 0;
|
984
|
+
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
|
985
|
+
const l = i.split(".");
|
986
|
+
n = Math.max(n, l.length);
|
987
|
+
}), n;
|
988
|
+
}, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
|
989
|
+
},
|
990
|
+
createRow: (e, o) => {
|
991
|
+
e.toggleExpanded = (t) => {
|
992
|
+
o.setExpanded((n) => {
|
993
|
+
var r;
|
994
|
+
const i = n === !0 ? !0 : !!(n != null && n[e.id]);
|
995
|
+
let l = {};
|
996
|
+
if (n === !0 ? Object.keys(o.getRowModel().rowsById).forEach((s) => {
|
997
|
+
l[s] = !0;
|
998
|
+
}) : l = n, t = (r = t) != null ? r : !i, !i && t)
|
999
|
+
return {
|
1000
|
+
...l,
|
1001
|
+
[e.id]: !0
|
1002
|
+
};
|
1003
|
+
if (i && !t) {
|
1004
|
+
const {
|
1005
|
+
[e.id]: s,
|
1006
|
+
...u
|
1007
|
+
} = l;
|
1008
|
+
return u;
|
1009
|
+
}
|
1010
|
+
return n;
|
1011
|
+
});
|
1012
|
+
}, e.getIsExpanded = () => {
|
1013
|
+
var t;
|
1014
|
+
const n = o.getState().expanded;
|
1015
|
+
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n?.[e.id]);
|
1016
|
+
}, e.getCanExpand = () => {
|
1017
|
+
var t, n, r;
|
1018
|
+
return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : !0) && !!((r = e.subRows) != null && r.length);
|
1019
|
+
}, e.getIsAllParentsExpanded = () => {
|
1020
|
+
let t = !0, n = e;
|
1021
|
+
for (; t && n.parentId; )
|
1022
|
+
n = o.getRow(n.parentId, !0), t = n.getIsExpanded();
|
1023
|
+
return t;
|
1024
|
+
}, e.getToggleExpandedHandler = () => {
|
1025
|
+
const t = e.getCanExpand();
|
1026
|
+
return () => {
|
1027
|
+
t && e.toggleExpanded();
|
1028
|
+
};
|
1029
|
+
};
|
1030
|
+
}
|
1031
|
+
}, le = 0, se = 10, ne = () => ({
|
1032
|
+
pageIndex: le,
|
1033
|
+
pageSize: se
|
1034
|
+
}), ht = {
|
1035
|
+
getInitialState: (e) => ({
|
1036
|
+
...e,
|
1037
|
+
pagination: {
|
1038
|
+
...ne(),
|
1039
|
+
...e?.pagination
|
1040
|
+
}
|
1041
|
+
}),
|
1042
|
+
getDefaultOptions: (e) => ({
|
1043
|
+
onPaginationChange: P("pagination", e)
|
1044
|
+
}),
|
1045
|
+
createTable: (e) => {
|
1046
|
+
let o = !1, t = !1;
|
1047
|
+
e._autoResetPageIndex = () => {
|
1048
|
+
var n, r;
|
1049
|
+
if (!o) {
|
1050
|
+
e._queue(() => {
|
1051
|
+
o = !0;
|
1052
|
+
});
|
1053
|
+
return;
|
1054
|
+
}
|
1055
|
+
if ((n = (r = e.options.autoResetAll) != null ? r : e.options.autoResetPageIndex) != null ? n : !e.options.manualPagination) {
|
1056
|
+
if (t)
|
1057
|
+
return;
|
1058
|
+
t = !0, e._queue(() => {
|
1059
|
+
e.resetPageIndex(), t = !1;
|
1060
|
+
});
|
1061
|
+
}
|
1062
|
+
}, e.setPagination = (n) => {
|
1063
|
+
const r = (i) => D(n, i);
|
1064
|
+
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
1065
|
+
}, e.resetPagination = (n) => {
|
1066
|
+
var r;
|
1067
|
+
e.setPagination(n ? ne() : (r = e.initialState.pagination) != null ? r : ne());
|
1068
|
+
}, e.setPageIndex = (n) => {
|
1069
|
+
e.setPagination((r) => {
|
1070
|
+
let i = D(n, r.pageIndex);
|
1071
|
+
const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
1072
|
+
return i = Math.max(0, Math.min(i, l)), {
|
1073
|
+
...r,
|
1074
|
+
pageIndex: i
|
1075
|
+
};
|
1076
|
+
});
|
1077
|
+
}, e.resetPageIndex = (n) => {
|
1078
|
+
var r, i;
|
1079
|
+
e.setPageIndex(n ? le : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : le);
|
1080
|
+
}, e.resetPageSize = (n) => {
|
1081
|
+
var r, i;
|
1082
|
+
e.setPageSize(n ? se : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : se);
|
1083
|
+
}, e.setPageSize = (n) => {
|
1084
|
+
e.setPagination((r) => {
|
1085
|
+
const i = Math.max(1, D(n, r.pageSize)), l = r.pageSize * r.pageIndex, s = Math.floor(l / i);
|
1086
|
+
return {
|
1087
|
+
...r,
|
1088
|
+
pageIndex: s,
|
1089
|
+
pageSize: i
|
1090
|
+
};
|
1091
|
+
});
|
1092
|
+
}, e.setPageCount = (n) => e.setPagination((r) => {
|
1093
|
+
var i;
|
1094
|
+
let l = D(n, (i = e.options.pageCount) != null ? i : -1);
|
1095
|
+
return typeof l == "number" && (l = Math.max(-1, l)), {
|
1096
|
+
...r,
|
1097
|
+
pageCount: l
|
1098
|
+
};
|
1099
|
+
}), e.getPageOptions = S(() => [e.getPageCount()], (n) => {
|
1100
|
+
let r = [];
|
1101
|
+
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
|
1102
|
+
}, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
1103
|
+
const {
|
1104
|
+
pageIndex: n
|
1105
|
+
} = e.getState().pagination, r = e.getPageCount();
|
1106
|
+
return r === -1 ? !0 : r === 0 ? !1 : n < r - 1;
|
1107
|
+
}, e.previousPage = () => e.setPageIndex((n) => n - 1), e.nextPage = () => e.setPageIndex((n) => n + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
|
1108
|
+
var n;
|
1109
|
+
return (n = e.options.pageCount) != null ? n : Math.ceil(e.getRowCount() / e.getState().pagination.pageSize);
|
1110
|
+
}, e.getRowCount = () => {
|
1111
|
+
var n;
|
1112
|
+
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
1113
|
+
};
|
1114
|
+
}
|
1115
|
+
}, oe = () => ({
|
1116
|
+
top: [],
|
1117
|
+
bottom: []
|
1118
|
+
}), vt = {
|
1119
|
+
getInitialState: (e) => ({
|
1120
|
+
rowPinning: oe(),
|
1121
|
+
...e
|
1122
|
+
}),
|
1123
|
+
getDefaultOptions: (e) => ({
|
1124
|
+
onRowPinningChange: P("rowPinning", e)
|
1125
|
+
}),
|
1126
|
+
createRow: (e, o) => {
|
1127
|
+
e.pin = (t, n, r) => {
|
1128
|
+
const i = n ? e.getLeafRows().map((u) => {
|
1129
|
+
let {
|
1130
|
+
id: a
|
1131
|
+
} = u;
|
1132
|
+
return a;
|
1133
|
+
}) : [], l = r ? e.getParentRows().map((u) => {
|
1134
|
+
let {
|
1135
|
+
id: a
|
1136
|
+
} = u;
|
1137
|
+
return a;
|
1138
|
+
}) : [], s = /* @__PURE__ */ new Set([...l, e.id, ...i]);
|
1139
|
+
o.setRowPinning((u) => {
|
1140
|
+
var a, f;
|
1141
|
+
if (t === "bottom") {
|
1142
|
+
var c, d;
|
1143
|
+
return {
|
1144
|
+
top: ((c = u?.top) != null ? c : []).filter((m) => !(s != null && s.has(m))),
|
1145
|
+
bottom: [...((d = u?.bottom) != null ? d : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)]
|
1146
|
+
};
|
1147
|
+
}
|
1148
|
+
if (t === "top") {
|
1149
|
+
var g, p;
|
1150
|
+
return {
|
1151
|
+
top: [...((g = u?.top) != null ? g : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)],
|
1152
|
+
bottom: ((p = u?.bottom) != null ? p : []).filter((m) => !(s != null && s.has(m)))
|
1153
|
+
};
|
1154
|
+
}
|
1155
|
+
return {
|
1156
|
+
top: ((a = u?.top) != null ? a : []).filter((m) => !(s != null && s.has(m))),
|
1157
|
+
bottom: ((f = u?.bottom) != null ? f : []).filter((m) => !(s != null && s.has(m)))
|
1158
|
+
};
|
1159
|
+
});
|
1160
|
+
}, e.getCanPin = () => {
|
1161
|
+
var t;
|
1162
|
+
const {
|
1163
|
+
enableRowPinning: n,
|
1164
|
+
enablePinning: r
|
1165
|
+
} = o.options;
|
1166
|
+
return typeof n == "function" ? n(e) : (t = n ?? r) != null ? t : !0;
|
1167
|
+
}, e.getIsPinned = () => {
|
1168
|
+
const t = [e.id], {
|
1169
|
+
top: n,
|
1170
|
+
bottom: r
|
1171
|
+
} = o.getState().rowPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
|
1172
|
+
return i ? "top" : l ? "bottom" : !1;
|
1173
|
+
}, e.getPinnedIndex = () => {
|
1174
|
+
var t, n;
|
1175
|
+
const r = e.getIsPinned();
|
1176
|
+
if (!r)
|
1177
|
+
return -1;
|
1178
|
+
const i = (t = o._getPinnedRows(r)) == null ? void 0 : t.map((l) => {
|
1179
|
+
let {
|
1180
|
+
id: s
|
1181
|
+
} = l;
|
1182
|
+
return s;
|
1183
|
+
});
|
1184
|
+
return (n = i?.indexOf(e.id)) != null ? n : -1;
|
1185
|
+
};
|
1186
|
+
},
|
1187
|
+
createTable: (e) => {
|
1188
|
+
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
1189
|
+
var t, n;
|
1190
|
+
return e.setRowPinning(o ? oe() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : oe());
|
1191
|
+
}, e.getIsSomeRowsPinned = (o) => {
|
1192
|
+
var t;
|
1193
|
+
const n = e.getState().rowPinning;
|
1194
|
+
if (!o) {
|
1195
|
+
var r, i;
|
1196
|
+
return !!((r = n.top) != null && r.length || (i = n.bottom) != null && i.length);
|
1197
|
+
}
|
1198
|
+
return !!((t = n[o]) != null && t.length);
|
1199
|
+
}, e._getPinnedRows = S((o) => [e.getRowModel().rows, e.getState().rowPinning[o], o], (o, t, n) => {
|
1200
|
+
var r;
|
1201
|
+
return ((r = e.options.keepPinnedRows) == null || r ? (
|
1202
|
+
//get all rows that are pinned even if they would not be otherwise visible
|
1203
|
+
//account for expanded parent rows, but not pagination or filtering
|
1204
|
+
(t ?? []).map((l) => {
|
1205
|
+
const s = e.getRow(l, !0);
|
1206
|
+
return s.getIsAllParentsExpanded() ? s : null;
|
1207
|
+
})
|
1208
|
+
) : (
|
1209
|
+
//else get only visible rows that are pinned
|
1210
|
+
(t ?? []).map((l) => o.find((s) => s.id === l))
|
1211
|
+
)).filter(Boolean).map((l) => ({
|
1212
|
+
...l,
|
1213
|
+
position: n
|
1214
|
+
}));
|
1215
|
+
}, C(e.options, "debugRows", "_getPinnedRows")), e.getTopRows = () => e._getPinnedRows("top"), e.getBottomRows = () => e._getPinnedRows("bottom"), e.getCenterRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
|
1216
|
+
const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
1217
|
+
return o.filter((i) => !r.has(i.id));
|
1218
|
+
}, C(e.options, "debugRows", "getCenterRows"));
|
1219
|
+
}
|
1220
|
+
}, _t = {
|
1221
|
+
getInitialState: (e) => ({
|
1222
|
+
rowSelection: {},
|
1223
|
+
...e
|
1224
|
+
}),
|
1225
|
+
getDefaultOptions: (e) => ({
|
1226
|
+
onRowSelectionChange: P("rowSelection", e),
|
1227
|
+
enableRowSelection: !0,
|
1228
|
+
enableMultiRowSelection: !0,
|
1229
|
+
enableSubRowSelection: !0
|
1230
|
+
// enableGroupingRowSelection: false,
|
1231
|
+
// isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
|
1232
|
+
// isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
|
1233
|
+
}),
|
1234
|
+
createTable: (e) => {
|
1235
|
+
e.setRowSelection = (o) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(o), e.resetRowSelection = (o) => {
|
1236
|
+
var t;
|
1237
|
+
return e.setRowSelection(o ? {} : (t = e.initialState.rowSelection) != null ? t : {});
|
1238
|
+
}, e.toggleAllRowsSelected = (o) => {
|
1239
|
+
e.setRowSelection((t) => {
|
1240
|
+
o = typeof o < "u" ? o : !e.getIsAllRowsSelected();
|
1241
|
+
const n = {
|
1242
|
+
...t
|
1243
|
+
}, r = e.getPreGroupedRowModel().flatRows;
|
1244
|
+
return o ? r.forEach((i) => {
|
1245
|
+
i.getCanSelect() && (n[i.id] = !0);
|
1246
|
+
}) : r.forEach((i) => {
|
1247
|
+
delete n[i.id];
|
1248
|
+
}), n;
|
1249
|
+
});
|
1250
|
+
}, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
|
1251
|
+
const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = {
|
1252
|
+
...t
|
1253
|
+
};
|
1254
|
+
return e.getRowModel().rows.forEach((i) => {
|
1255
|
+
ue(r, i.id, n, !0, e);
|
1256
|
+
}), r;
|
1257
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? re(e, t) : {
|
1258
|
+
rows: [],
|
1259
|
+
flatRows: [],
|
1260
|
+
rowsById: {}
|
1261
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? re(e, t) : {
|
1262
|
+
rows: [],
|
1263
|
+
flatRows: [],
|
1264
|
+
rowsById: {}
|
1265
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? re(e, t) : {
|
1266
|
+
rows: [],
|
1267
|
+
flatRows: [],
|
1268
|
+
rowsById: {}
|
1269
|
+
}, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
1270
|
+
const o = e.getFilteredRowModel().flatRows, {
|
1271
|
+
rowSelection: t
|
1272
|
+
} = e.getState();
|
1273
|
+
let n = !!(o.length && Object.keys(t).length);
|
1274
|
+
return n && o.some((r) => r.getCanSelect() && !t[r.id]) && (n = !1), n;
|
1275
|
+
}, e.getIsAllPageRowsSelected = () => {
|
1276
|
+
const o = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), {
|
1277
|
+
rowSelection: t
|
1278
|
+
} = e.getState();
|
1279
|
+
let n = !!o.length;
|
1280
|
+
return n && o.some((r) => !t[r.id]) && (n = !1), n;
|
1281
|
+
}, e.getIsSomeRowsSelected = () => {
|
1282
|
+
var o;
|
1283
|
+
const t = Object.keys((o = e.getState().rowSelection) != null ? o : {}).length;
|
1284
|
+
return t > 0 && t < e.getFilteredRowModel().flatRows.length;
|
1285
|
+
}, e.getIsSomePageRowsSelected = () => {
|
1286
|
+
const o = e.getPaginationRowModel().flatRows;
|
1287
|
+
return e.getIsAllPageRowsSelected() ? !1 : o.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
|
1288
|
+
}, e.getToggleAllRowsSelectedHandler = () => (o) => {
|
1289
|
+
e.toggleAllRowsSelected(o.target.checked);
|
1290
|
+
}, e.getToggleAllPageRowsSelectedHandler = () => (o) => {
|
1291
|
+
e.toggleAllPageRowsSelected(o.target.checked);
|
1292
|
+
};
|
1293
|
+
},
|
1294
|
+
createRow: (e, o) => {
|
1295
|
+
e.toggleSelected = (t, n) => {
|
1296
|
+
const r = e.getIsSelected();
|
1297
|
+
o.setRowSelection((i) => {
|
1298
|
+
var l;
|
1299
|
+
if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
|
1300
|
+
return i;
|
1301
|
+
const s = {
|
1302
|
+
...i
|
1303
|
+
};
|
1304
|
+
return ue(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
|
1305
|
+
});
|
1306
|
+
}, e.getIsSelected = () => {
|
1307
|
+
const {
|
1308
|
+
rowSelection: t
|
1309
|
+
} = o.getState();
|
1310
|
+
return fe(e, t);
|
1311
|
+
}, e.getIsSomeSelected = () => {
|
1312
|
+
const {
|
1313
|
+
rowSelection: t
|
1314
|
+
} = o.getState();
|
1315
|
+
return ae(e, t) === "some";
|
1316
|
+
}, e.getIsAllSubRowsSelected = () => {
|
1317
|
+
const {
|
1318
|
+
rowSelection: t
|
1319
|
+
} = o.getState();
|
1320
|
+
return ae(e, t) === "all";
|
1321
|
+
}, e.getCanSelect = () => {
|
1322
|
+
var t;
|
1323
|
+
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
1324
|
+
}, e.getCanSelectSubRows = () => {
|
1325
|
+
var t;
|
1326
|
+
return typeof o.options.enableSubRowSelection == "function" ? o.options.enableSubRowSelection(e) : (t = o.options.enableSubRowSelection) != null ? t : !0;
|
1327
|
+
}, e.getCanMultiSelect = () => {
|
1328
|
+
var t;
|
1329
|
+
return typeof o.options.enableMultiRowSelection == "function" ? o.options.enableMultiRowSelection(e) : (t = o.options.enableMultiRowSelection) != null ? t : !0;
|
1330
|
+
}, e.getToggleSelectedHandler = () => {
|
1331
|
+
const t = e.getCanSelect();
|
1332
|
+
return (n) => {
|
1333
|
+
var r;
|
1334
|
+
t && e.toggleSelected((r = n.target) == null ? void 0 : r.checked);
|
1335
|
+
};
|
1336
|
+
};
|
1337
|
+
}
|
1338
|
+
}, ue = (e, o, t, n, r) => {
|
1339
|
+
var i;
|
1340
|
+
const l = r.getRow(o, !0);
|
1341
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => ue(e, s.id, t, n, r));
|
1342
|
+
};
|
1343
|
+
function re(e, o) {
|
1344
|
+
const t = e.getState().rowSelection, n = [], r = {}, i = function(l, s) {
|
1345
|
+
return l.map((u) => {
|
1346
|
+
var a;
|
1347
|
+
const f = fe(u, t);
|
1348
|
+
if (f && (n.push(u), r[u.id] = u), (a = u.subRows) != null && a.length && (u = {
|
1349
|
+
...u,
|
1350
|
+
subRows: i(u.subRows)
|
1351
|
+
}), f)
|
1352
|
+
return u;
|
1353
|
+
}).filter(Boolean);
|
1354
|
+
};
|
1355
|
+
return {
|
1356
|
+
rows: i(o.rows),
|
1357
|
+
flatRows: n,
|
1358
|
+
rowsById: r
|
1359
|
+
};
|
1360
|
+
}
|
1361
|
+
function fe(e, o) {
|
1362
|
+
var t;
|
1363
|
+
return (t = o[e.id]) != null ? t : !1;
|
1364
|
+
}
|
1365
|
+
function ae(e, o, t) {
|
1366
|
+
var n;
|
1367
|
+
if (!((n = e.subRows) != null && n.length))
|
1368
|
+
return !1;
|
1369
|
+
let r = !0, i = !1;
|
1370
|
+
return e.subRows.forEach((l) => {
|
1371
|
+
if (!(i && !r) && (l.getCanSelect() && (fe(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
|
1372
|
+
const s = ae(l, o);
|
1373
|
+
s === "all" ? i = !0 : (s === "some" && (i = !0), r = !1);
|
1374
|
+
}
|
1375
|
+
}), r ? "all" : i ? "some" : !1;
|
1376
|
+
}
|
1377
|
+
const ge = /([0-9]+)/gm, Ft = (e, o, t) => ye(H(e.getValue(t)).toLowerCase(), H(o.getValue(t)).toLowerCase()), $t = (e, o, t) => ye(H(e.getValue(t)), H(o.getValue(t))), Pt = (e, o, t) => ce(H(e.getValue(t)).toLowerCase(), H(o.getValue(t)).toLowerCase()), Vt = (e, o, t) => ce(H(e.getValue(t)), H(o.getValue(t))), Mt = (e, o, t) => {
|
1378
|
+
const n = e.getValue(t), r = o.getValue(t);
|
1379
|
+
return n > r ? 1 : n < r ? -1 : 0;
|
1380
|
+
}, It = (e, o, t) => ce(e.getValue(t), o.getValue(t));
|
1381
|
+
function ce(e, o) {
|
1382
|
+
return e === o ? 0 : e > o ? 1 : -1;
|
1383
|
+
}
|
1384
|
+
function H(e) {
|
1385
|
+
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
1386
|
+
}
|
1387
|
+
function ye(e, o) {
|
1388
|
+
const t = e.split(ge).filter(Boolean), n = o.split(ge).filter(Boolean);
|
1389
|
+
for (; t.length && n.length; ) {
|
1390
|
+
const r = t.shift(), i = n.shift(), l = parseInt(r, 10), s = parseInt(i, 10), u = [l, s].sort();
|
1391
|
+
if (isNaN(u[0])) {
|
1392
|
+
if (r > i)
|
1393
|
+
return 1;
|
1394
|
+
if (i > r)
|
1395
|
+
return -1;
|
1396
|
+
continue;
|
1397
|
+
}
|
1398
|
+
if (isNaN(u[1]))
|
1399
|
+
return isNaN(l) ? -1 : 1;
|
1400
|
+
if (l > s)
|
1401
|
+
return 1;
|
1402
|
+
if (s > l)
|
1403
|
+
return -1;
|
1404
|
+
}
|
1405
|
+
return t.length - n.length;
|
1406
|
+
}
|
1407
|
+
const A = {
|
1408
|
+
alphanumeric: Ft,
|
1409
|
+
alphanumericCaseSensitive: $t,
|
1410
|
+
text: Pt,
|
1411
|
+
textCaseSensitive: Vt,
|
1412
|
+
datetime: Mt,
|
1413
|
+
basic: It
|
1414
|
+
}, xt = {
|
1415
|
+
getInitialState: (e) => ({
|
1416
|
+
sorting: [],
|
1417
|
+
...e
|
1418
|
+
}),
|
1419
|
+
getDefaultColumnDef: () => ({
|
1420
|
+
sortingFn: "auto",
|
1421
|
+
sortUndefined: 1
|
1422
|
+
}),
|
1423
|
+
getDefaultOptions: (e) => ({
|
1424
|
+
onSortingChange: P("sorting", e),
|
1425
|
+
isMultiSortEvent: (o) => o.shiftKey
|
1426
|
+
}),
|
1427
|
+
createColumn: (e, o) => {
|
1428
|
+
e.getAutoSortingFn = () => {
|
1429
|
+
const t = o.getFilteredRowModel().flatRows.slice(10);
|
1430
|
+
let n = !1;
|
1431
|
+
for (const r of t) {
|
1432
|
+
const i = r?.getValue(e.id);
|
1433
|
+
if (Object.prototype.toString.call(i) === "[object Date]")
|
1434
|
+
return A.datetime;
|
1435
|
+
if (typeof i == "string" && (n = !0, i.split(ge).length > 1))
|
1436
|
+
return A.alphanumeric;
|
1437
|
+
}
|
1438
|
+
return n ? A.text : A.basic;
|
1439
|
+
}, e.getAutoSortDir = () => {
|
1440
|
+
const t = o.getFilteredRowModel().flatRows[0];
|
1441
|
+
return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
|
1442
|
+
}, e.getSortingFn = () => {
|
1443
|
+
var t, n;
|
1444
|
+
if (!e)
|
1445
|
+
throw new Error();
|
1446
|
+
return j(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : A[e.columnDef.sortingFn];
|
1447
|
+
}, e.toggleSorting = (t, n) => {
|
1448
|
+
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
1449
|
+
o.setSorting((l) => {
|
1450
|
+
const s = l?.find((g) => g.id === e.id), u = l?.findIndex((g) => g.id === e.id);
|
1451
|
+
let a = [], f, c = i ? t : r === "desc";
|
1452
|
+
if (l != null && l.length && e.getCanMultiSort() && n ? s ? f = "toggle" : f = "add" : l != null && l.length && u !== l.length - 1 ? f = "replace" : s ? f = "toggle" : f = "replace", f === "toggle" && (i || r || (f = "remove")), f === "add") {
|
1453
|
+
var d;
|
1454
|
+
a = [...l, {
|
1455
|
+
id: e.id,
|
1456
|
+
desc: c
|
1457
|
+
}], a.splice(0, a.length - ((d = o.options.maxMultiSortColCount) != null ? d : Number.MAX_SAFE_INTEGER));
|
1458
|
+
} else
|
1459
|
+
f === "toggle" ? a = l.map((g) => g.id === e.id ? {
|
1460
|
+
...g,
|
1461
|
+
desc: c
|
1462
|
+
} : g) : f === "remove" ? a = l.filter((g) => g.id !== e.id) : a = [{
|
1463
|
+
id: e.id,
|
1464
|
+
desc: c
|
1465
|
+
}];
|
1466
|
+
return a;
|
1467
|
+
});
|
1468
|
+
}, e.getFirstSortDir = () => {
|
1469
|
+
var t, n;
|
1470
|
+
return ((t = (n = e.columnDef.sortDescFirst) != null ? n : o.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
|
1471
|
+
}, e.getNextSortingOrder = (t) => {
|
1472
|
+
var n, r;
|
1473
|
+
const i = e.getFirstSortDir(), l = e.getIsSorted();
|
1474
|
+
return l ? l !== i && ((n = o.options.enableSortingRemoval) == null || n) && // If enableSortRemove, enable in general
|
1475
|
+
(!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
|
1476
|
+
}, e.getCanSort = () => {
|
1477
|
+
var t, n;
|
1478
|
+
return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((n = o.options.enableSorting) != null ? n : !0) && !!e.accessorFn;
|
1479
|
+
}, e.getCanMultiSort = () => {
|
1480
|
+
var t, n;
|
1481
|
+
return (t = (n = e.columnDef.enableMultiSort) != null ? n : o.options.enableMultiSort) != null ? t : !!e.accessorFn;
|
1482
|
+
}, e.getIsSorted = () => {
|
1483
|
+
var t;
|
1484
|
+
const n = (t = o.getState().sorting) == null ? void 0 : t.find((r) => r.id === e.id);
|
1485
|
+
return n ? n.desc ? "desc" : "asc" : !1;
|
1486
|
+
}, e.getSortIndex = () => {
|
1487
|
+
var t, n;
|
1488
|
+
return (t = (n = o.getState().sorting) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
1489
|
+
}, e.clearSorting = () => {
|
1490
|
+
o.setSorting((t) => t != null && t.length ? t.filter((n) => n.id !== e.id) : []);
|
1491
|
+
}, e.getToggleSortingHandler = () => {
|
1492
|
+
const t = e.getCanSort();
|
1493
|
+
return (n) => {
|
1494
|
+
t && (n.persist == null || n.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? o.options.isMultiSortEvent == null ? void 0 : o.options.isMultiSortEvent(n) : !1));
|
1495
|
+
};
|
1496
|
+
};
|
1497
|
+
},
|
1498
|
+
createTable: (e) => {
|
1499
|
+
e.setSorting = (o) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(o), e.resetSorting = (o) => {
|
1500
|
+
var t, n;
|
1501
|
+
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
1502
|
+
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
1503
|
+
}
|
1504
|
+
}, yt = [
|
1505
|
+
We,
|
1506
|
+
St,
|
1507
|
+
ft,
|
1508
|
+
ct,
|
1509
|
+
be,
|
1510
|
+
et,
|
1511
|
+
Ct,
|
1512
|
+
//depends on ColumnFaceting
|
1513
|
+
Rt,
|
1514
|
+
//depends on ColumnFiltering
|
1515
|
+
xt,
|
1516
|
+
gt,
|
1517
|
+
//depends on RowSorting
|
1518
|
+
wt,
|
1519
|
+
ht,
|
1520
|
+
vt,
|
1521
|
+
_t,
|
1522
|
+
pt
|
1523
|
+
];
|
1524
|
+
function Et(e) {
|
1525
|
+
var o, t;
|
1526
|
+
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
1527
|
+
const n = [...yt, ...(o = e._features) != null ? o : []];
|
1528
|
+
let r = {
|
1529
|
+
_features: n
|
1530
|
+
};
|
1531
|
+
const i = r._features.reduce((d, g) => Object.assign(d, g.getDefaultOptions == null ? void 0 : g.getDefaultOptions(r)), {}), l = (d) => r.options.mergeOptions ? r.options.mergeOptions(i, d) : {
|
1532
|
+
...i,
|
1533
|
+
...d
|
1534
|
+
};
|
1535
|
+
let u = {
|
1536
|
+
...{},
|
1537
|
+
...(t = e.initialState) != null ? t : {}
|
1538
|
+
};
|
1539
|
+
r._features.forEach((d) => {
|
1540
|
+
var g;
|
1541
|
+
u = (g = d.getInitialState == null ? void 0 : d.getInitialState(u)) != null ? g : u;
|
1542
|
+
});
|
1543
|
+
const a = [];
|
1544
|
+
let f = !1;
|
1545
|
+
const c = {
|
1546
|
+
_features: n,
|
1547
|
+
options: {
|
1548
|
+
...i,
|
1549
|
+
...e
|
1550
|
+
},
|
1551
|
+
initialState: u,
|
1552
|
+
_queue: (d) => {
|
1553
|
+
a.push(d), f || (f = !0, Promise.resolve().then(() => {
|
1554
|
+
for (; a.length; )
|
1555
|
+
a.shift()();
|
1556
|
+
f = !1;
|
1557
|
+
}).catch((g) => setTimeout(() => {
|
1558
|
+
throw g;
|
1559
|
+
})));
|
1560
|
+
},
|
1561
|
+
reset: () => {
|
1562
|
+
r.setState(r.initialState);
|
1563
|
+
},
|
1564
|
+
setOptions: (d) => {
|
1565
|
+
const g = D(d, r.options);
|
1566
|
+
r.options = l(g);
|
1567
|
+
},
|
1568
|
+
getState: () => r.options.state,
|
1569
|
+
setState: (d) => {
|
1570
|
+
r.options.onStateChange == null || r.options.onStateChange(d);
|
1571
|
+
},
|
1572
|
+
_getRowId: (d, g, p) => {
|
1573
|
+
var m;
|
1574
|
+
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(d, g, p)) != null ? m : `${p ? [p.id, g].join(".") : g}`;
|
1575
|
+
},
|
1576
|
+
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
1577
|
+
// The final calls start at the bottom of the model,
|
1578
|
+
// expanded rows, which then work their way up
|
1579
|
+
getRowModel: () => r.getPaginationRowModel(),
|
1580
|
+
//in next version, we should just pass in the row model as the optional 2nd arg
|
1581
|
+
getRow: (d, g) => {
|
1582
|
+
let p = (g ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[d];
|
1583
|
+
if (!p && (p = r.getCoreRowModel().rowsById[d], !p))
|
1584
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${d}`) : new Error();
|
1585
|
+
return p;
|
1586
|
+
},
|
1587
|
+
_getDefaultColumnDef: S(() => [r.options.defaultColumn], (d) => {
|
1588
|
+
var g;
|
1589
|
+
return d = (g = d) != null ? g : {}, {
|
1590
|
+
header: (p) => {
|
1591
|
+
const m = p.header.column.columnDef;
|
1592
|
+
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
1593
|
+
},
|
1594
|
+
// footer: props => props.header.column.id,
|
1595
|
+
cell: (p) => {
|
1596
|
+
var m, w;
|
1597
|
+
return (m = (w = p.renderValue()) == null || w.toString == null ? void 0 : w.toString()) != null ? m : null;
|
1598
|
+
},
|
1599
|
+
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
1600
|
+
...d
|
1601
|
+
};
|
1602
|
+
}, C(e, "debugColumns", "_getDefaultColumnDef")),
|
1603
|
+
_getColumnDefs: () => r.options.columns,
|
1604
|
+
getAllColumns: S(() => [r._getColumnDefs()], (d) => {
|
1605
|
+
const g = function(p, m, w) {
|
1606
|
+
return w === void 0 && (w = 0), p.map((R) => {
|
1607
|
+
const _ = Qe(r, R, w, m), h = R;
|
1608
|
+
return _.columns = h.columns ? g(h.columns, _, w + 1) : [], _;
|
1609
|
+
});
|
1610
|
+
};
|
1611
|
+
return g(d);
|
1612
|
+
}, C(e, "debugColumns", "getAllColumns")),
|
1613
|
+
getAllFlatColumns: S(() => [r.getAllColumns()], (d) => d.flatMap((g) => g.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
|
1614
|
+
_getAllFlatColumnsById: S(() => [r.getAllFlatColumns()], (d) => d.reduce((g, p) => (g[p.id] = p, g), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
|
1615
|
+
getAllLeafColumns: S(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d, g) => {
|
1616
|
+
let p = d.flatMap((m) => m.getLeafColumns());
|
1617
|
+
return g(p);
|
1618
|
+
}, C(e, "debugColumns", "getAllLeafColumns")),
|
1619
|
+
getColumn: (d) => {
|
1620
|
+
const g = r._getAllFlatColumnsById()[d];
|
1621
|
+
return process.env.NODE_ENV !== "production" && !g && console.error(`[Table] Column with id '${d}' does not exist.`), g;
|
1622
|
+
}
|
1623
|
+
};
|
1624
|
+
Object.assign(r, c);
|
1625
|
+
for (let d = 0; d < r._features.length; d++) {
|
1626
|
+
const g = r._features[d];
|
1627
|
+
g == null || g.createTable == null || g.createTable(r);
|
1628
|
+
}
|
1629
|
+
return r;
|
1630
|
+
}
|
1631
|
+
function Dt() {
|
1632
|
+
return (e) => S(() => [e.options.data], (o) => {
|
1633
|
+
const t = {
|
1634
|
+
rows: [],
|
1635
|
+
flatRows: [],
|
1636
|
+
rowsById: {}
|
1637
|
+
}, n = function(r, i, l) {
|
1638
|
+
i === void 0 && (i = 0);
|
1639
|
+
const s = [];
|
1640
|
+
for (let a = 0; a < r.length; a++) {
|
1641
|
+
const f = Ze(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
|
1642
|
+
if (t.flatRows.push(f), t.rowsById[f.id] = f, s.push(f), e.options.getSubRows) {
|
1643
|
+
var u;
|
1644
|
+
f.originalSubRows = e.options.getSubRows(r[a], a), (u = f.originalSubRows) != null && u.length && (f.subRows = n(f.originalSubRows, i + 1, f));
|
1645
|
+
}
|
1646
|
+
}
|
1647
|
+
return s;
|
1648
|
+
};
|
1649
|
+
return t.rows = n(o), t;
|
1650
|
+
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
1651
|
+
}
|
1652
|
+
function Ht(e) {
|
1653
|
+
const o = [], t = (n) => {
|
1654
|
+
var r;
|
1655
|
+
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
1656
|
+
};
|
1657
|
+
return e.rows.forEach(t), {
|
1658
|
+
rows: o,
|
1659
|
+
flatRows: e.flatRows,
|
1660
|
+
rowsById: e.rowsById
|
1661
|
+
};
|
1662
|
+
}
|
1663
|
+
function Gt(e) {
|
1664
|
+
return (o) => S(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
1665
|
+
if (!n.rows.length)
|
1666
|
+
return n;
|
1667
|
+
const {
|
1668
|
+
pageSize: r,
|
1669
|
+
pageIndex: i
|
1670
|
+
} = t;
|
1671
|
+
let {
|
1672
|
+
rows: l,
|
1673
|
+
flatRows: s,
|
1674
|
+
rowsById: u
|
1675
|
+
} = n;
|
1676
|
+
const a = r * i, f = a + r;
|
1677
|
+
l = l.slice(a, f);
|
1678
|
+
let c;
|
1679
|
+
o.options.paginateExpandedRows ? c = {
|
1680
|
+
rows: l,
|
1681
|
+
flatRows: s,
|
1682
|
+
rowsById: u
|
1683
|
+
} : c = Ht({
|
1684
|
+
rows: l,
|
1685
|
+
flatRows: s,
|
1686
|
+
rowsById: u
|
1687
|
+
}), c.flatRows = [];
|
1688
|
+
const d = (g) => {
|
1689
|
+
c.flatRows.push(g), g.subRows.length && g.subRows.forEach(d);
|
1690
|
+
};
|
1691
|
+
return c.rows.forEach(d), c;
|
1692
|
+
}, C(o.options, "debugTable", "getPaginationRowModel"));
|
1693
|
+
}
|
1694
|
+
function At() {
|
1695
|
+
return (e) => S(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
1696
|
+
if (!t.rows.length || !(o != null && o.length))
|
1697
|
+
return t;
|
1698
|
+
const n = e.getState().sorting, r = [], i = n.filter((u) => {
|
1699
|
+
var a;
|
1700
|
+
return (a = e.getColumn(u.id)) == null ? void 0 : a.getCanSort();
|
1701
|
+
}), l = {};
|
1702
|
+
i.forEach((u) => {
|
1703
|
+
const a = e.getColumn(u.id);
|
1704
|
+
a && (l[u.id] = {
|
1705
|
+
sortUndefined: a.columnDef.sortUndefined,
|
1706
|
+
invertSorting: a.columnDef.invertSorting,
|
1707
|
+
sortingFn: a.getSortingFn()
|
1708
|
+
});
|
1709
|
+
});
|
1710
|
+
const s = (u) => {
|
1711
|
+
const a = u.map((f) => ({
|
1712
|
+
...f
|
1713
|
+
}));
|
1714
|
+
return a.sort((f, c) => {
|
1715
|
+
for (let g = 0; g < i.length; g += 1) {
|
1716
|
+
var d;
|
1717
|
+
const p = i[g], m = l[p.id], w = (d = p?.desc) != null ? d : !1;
|
1718
|
+
let R = 0;
|
1719
|
+
if (m.sortUndefined) {
|
1720
|
+
const _ = f.getValue(p.id), h = c.getValue(p.id), V = _ === void 0, x = h === void 0;
|
1721
|
+
(V || x) && (R = V && x ? 0 : V ? m.sortUndefined : -m.sortUndefined);
|
1722
|
+
}
|
1723
|
+
if (R === 0 && (R = m.sortingFn(f, c, p.id)), R !== 0)
|
1724
|
+
return w && (R *= -1), m.invertSorting && (R *= -1), R;
|
1725
|
+
}
|
1726
|
+
return f.index - c.index;
|
1727
|
+
}), a.forEach((f) => {
|
1728
|
+
var c;
|
1729
|
+
r.push(f), (c = f.subRows) != null && c.length && (f.subRows = s(f.subRows));
|
1730
|
+
}), a;
|
1731
|
+
};
|
1732
|
+
return {
|
1733
|
+
rows: s(t.rows),
|
1734
|
+
flatRows: r,
|
1735
|
+
rowsById: t.rowsById
|
1736
|
+
};
|
1737
|
+
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
1738
|
+
}
|
1739
|
+
/**
|
1740
|
+
* vue-table
|
1741
|
+
*
|
1742
|
+
* Copyright (c) TanStack
|
1743
|
+
*
|
1744
|
+
* This source code is licensed under the MIT license found in the
|
1745
|
+
* LICENSE.md file in the root directory of this source tree.
|
1746
|
+
*
|
1747
|
+
* @license MIT
|
1748
|
+
*/
|
1749
|
+
function q() {
|
1750
|
+
return !0;
|
1751
|
+
}
|
1752
|
+
const Lt = Symbol("merge-proxy"), zt = {
|
1753
|
+
get(e, o, t) {
|
1754
|
+
return o === Lt ? t : e.get(o);
|
1755
|
+
},
|
1756
|
+
has(e, o) {
|
1757
|
+
return e.has(o);
|
1758
|
+
},
|
1759
|
+
set: q,
|
1760
|
+
deleteProperty: q,
|
1761
|
+
getOwnPropertyDescriptor(e, o) {
|
1762
|
+
return {
|
1763
|
+
configurable: !0,
|
1764
|
+
enumerable: !0,
|
1765
|
+
get() {
|
1766
|
+
return e.get(o);
|
1767
|
+
},
|
1768
|
+
set: q,
|
1769
|
+
deleteProperty: q
|
1770
|
+
};
|
1771
|
+
},
|
1772
|
+
ownKeys(e) {
|
1773
|
+
return e.keys();
|
1774
|
+
}
|
1775
|
+
};
|
1776
|
+
function ie(e) {
|
1777
|
+
return "value" in e ? e.value : e;
|
1778
|
+
}
|
1779
|
+
function U() {
|
1780
|
+
for (var e = arguments.length, o = new Array(e), t = 0; t < e; t++)
|
1781
|
+
o[t] = arguments[t];
|
1782
|
+
return new Proxy({
|
1783
|
+
get(n) {
|
1784
|
+
for (let r = o.length - 1; r >= 0; r--) {
|
1785
|
+
const i = ie(o[r])[n];
|
1786
|
+
if (i !== void 0)
|
1787
|
+
return i;
|
1788
|
+
}
|
1789
|
+
},
|
1790
|
+
has(n) {
|
1791
|
+
for (let r = o.length - 1; r >= 0; r--)
|
1792
|
+
if (n in ie(o[r]))
|
1793
|
+
return !0;
|
1794
|
+
return !1;
|
1795
|
+
},
|
1796
|
+
keys() {
|
1797
|
+
const n = [];
|
1798
|
+
for (let r = 0; r < o.length; r++)
|
1799
|
+
n.push(...Object.keys(ie(o[r])));
|
1800
|
+
return [...Array.from(new Set(n))];
|
1801
|
+
}
|
1802
|
+
}, zt);
|
1803
|
+
}
|
1804
|
+
const he = ve({
|
1805
|
+
props: ["render", "props"],
|
1806
|
+
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? He(e.render, e.props) : e.render
|
1807
|
+
});
|
1808
|
+
function Ot(e) {
|
1809
|
+
const o = U({
|
1810
|
+
state: {},
|
1811
|
+
// Dummy state
|
1812
|
+
onStateChange: () => {
|
1813
|
+
},
|
1814
|
+
// noop
|
1815
|
+
renderFallbackValue: null,
|
1816
|
+
mergeOptions(r, i) {
|
1817
|
+
return U(r, i);
|
1818
|
+
}
|
1819
|
+
}, e), t = Et(o), n = Ge(t.initialState);
|
1820
|
+
return Ae(() => {
|
1821
|
+
t.setOptions((r) => {
|
1822
|
+
var i;
|
1823
|
+
const l = new Proxy({}, {
|
1824
|
+
get: (s, u) => n.value[u]
|
1825
|
+
});
|
1826
|
+
return U(r, e, {
|
1827
|
+
// merge the initialState and `options.state`
|
1828
|
+
// create a new proxy on each `setOptions` call
|
1829
|
+
// and get the value from state on each property access
|
1830
|
+
state: U(l, (i = e.state) != null ? i : {}),
|
1831
|
+
// Similarly, we'll maintain both our internal state and any user-provided
|
1832
|
+
// state.
|
1833
|
+
onStateChange: (s) => {
|
1834
|
+
s instanceof Function ? n.value = s(n.value) : n.value = s, e.onStateChange == null || e.onStateChange(s);
|
1835
|
+
}
|
1836
|
+
});
|
1837
|
+
});
|
1838
|
+
}), t;
|
1839
|
+
}
|
1840
|
+
const Wt = /* @__PURE__ */ ve({
|
1841
|
+
__name: "BuiDataTable",
|
1842
|
+
props: /* @__PURE__ */ Le({
|
1843
|
+
columns: {},
|
1844
|
+
data: {},
|
1845
|
+
pageSize: { default: 10 },
|
1846
|
+
showPagination: { type: Boolean, default: !0 },
|
1847
|
+
totalItems: { default: 0 },
|
1848
|
+
manualPagination: { type: Boolean, default: !0 },
|
1849
|
+
manualSorting: { type: Boolean, default: !0 },
|
1850
|
+
getRowId: {}
|
1851
|
+
}, {
|
1852
|
+
sorting: {},
|
1853
|
+
sortingModifiers: {},
|
1854
|
+
pagination: {},
|
1855
|
+
paginationModifiers: {},
|
1856
|
+
selection: {},
|
1857
|
+
selectionModifiers: {}
|
1858
|
+
}),
|
1859
|
+
emits: ["update:sorting", "update:pagination", "update:selection"],
|
1860
|
+
setup(e) {
|
1861
|
+
const o = e, t = K(e, "sorting"), n = K(e, "pagination"), r = K(e, "selection"), i = Y(
|
1862
|
+
() => o.manualPagination ? o.totalItems : o.data.length
|
1863
|
+
), l = Ot({
|
1864
|
+
initialState: { pagination: { pageSize: o.pageSize } },
|
1865
|
+
get data() {
|
1866
|
+
return o.data;
|
1867
|
+
},
|
1868
|
+
get columns() {
|
1869
|
+
return o.columns;
|
1870
|
+
},
|
1871
|
+
getCoreRowModel: Dt(),
|
1872
|
+
getPaginationRowModel: Gt(),
|
1873
|
+
getSortedRowModel: At(),
|
1874
|
+
onSortingChange: (a) => {
|
1875
|
+
W(a, t);
|
1876
|
+
},
|
1877
|
+
onPaginationChange: (a) => {
|
1878
|
+
W(a, n);
|
1879
|
+
},
|
1880
|
+
onRowSelectionChange: (a) => {
|
1881
|
+
W(a, r);
|
1882
|
+
},
|
1883
|
+
manualPagination: o.manualPagination,
|
1884
|
+
// set to false to enable client-side pagination
|
1885
|
+
manualSorting: o.manualSorting,
|
1886
|
+
state: {
|
1887
|
+
get sorting() {
|
1888
|
+
return t.value;
|
1889
|
+
},
|
1890
|
+
get pagination() {
|
1891
|
+
return n.value;
|
1892
|
+
},
|
1893
|
+
get rowSelection() {
|
1894
|
+
return r.value;
|
1895
|
+
}
|
1896
|
+
},
|
1897
|
+
getRowId: o.getRowId
|
1898
|
+
}), s = Y({
|
1899
|
+
get() {
|
1900
|
+
return l.getState().pagination.pageSize;
|
1901
|
+
},
|
1902
|
+
set(a) {
|
1903
|
+
n.value && (n.value.pageSize = a, l.setPageSize(a), l.setPageIndex(0));
|
1904
|
+
}
|
1905
|
+
}), u = Y({
|
1906
|
+
get() {
|
1907
|
+
return l.getState().pagination.pageIndex + 1;
|
1908
|
+
},
|
1909
|
+
set(a) {
|
1910
|
+
n.value && (n.value.pageIndex = a - 1, l.setPageIndex(a - 1));
|
1911
|
+
}
|
1912
|
+
});
|
1913
|
+
return (a, f) => ($(), y(v(Be), null, {
|
1914
|
+
default: M(() => [
|
1915
|
+
a.$slots.caption ? ($(), y(v(qe), { key: 0 }, {
|
1916
|
+
default: M(() => [
|
1917
|
+
ze(a.$slots, "caption", { table: v(l) })
|
1918
|
+
]),
|
1919
|
+
_: 3
|
1920
|
+
})) : J("", !0),
|
1921
|
+
G(v(Ne), null, {
|
1922
|
+
default: M(() => [
|
1923
|
+
($(!0), z(O, null, B(v(l).getHeaderGroups(), (c) => ($(), y(v(Q), {
|
1924
|
+
key: c.id
|
1925
|
+
}, {
|
1926
|
+
default: M(() => [
|
1927
|
+
($(!0), z(O, null, B(c.headers, (d) => ($(), y(v(ke), {
|
1928
|
+
key: d.id
|
1929
|
+
}, {
|
1930
|
+
default: M(() => [
|
1931
|
+
d.isPlaceholder ? J("", !0) : ($(), y(v(he), {
|
1932
|
+
key: 0,
|
1933
|
+
render: d.column.columnDef.header,
|
1934
|
+
props: d.getContext()
|
1935
|
+
}, null, 8, ["render", "props"]))
|
1936
|
+
]),
|
1937
|
+
_: 2
|
1938
|
+
}, 1024))), 128))
|
1939
|
+
]),
|
1940
|
+
_: 2
|
1941
|
+
}, 1024))), 128))
|
1942
|
+
]),
|
1943
|
+
_: 1
|
1944
|
+
}),
|
1945
|
+
G(v(Te), null, {
|
1946
|
+
default: M(() => [
|
1947
|
+
v(l).getRowModel().rows?.length ? ($(!0), z(O, { key: 0 }, B(v(l).getRowModel().rows, (c) => ($(), y(v(Q), {
|
1948
|
+
key: c.id,
|
1949
|
+
"data-state": c.getIsSelected() ? "selected" : void 0
|
1950
|
+
}, {
|
1951
|
+
default: M(() => [
|
1952
|
+
($(!0), z(O, null, B(c.getVisibleCells(), (d) => ($(), y(v(Ce), {
|
1953
|
+
key: d.id
|
1954
|
+
}, {
|
1955
|
+
default: M(() => [
|
1956
|
+
G(v(he), {
|
1957
|
+
render: d.column.columnDef.cell,
|
1958
|
+
props: d.getContext()
|
1959
|
+
}, null, 8, ["render", "props"])
|
1960
|
+
]),
|
1961
|
+
_: 2
|
1962
|
+
}, 1024))), 128))
|
1963
|
+
]),
|
1964
|
+
_: 2
|
1965
|
+
}, 1032, ["data-state"]))), 128)) : ($(), y(v(Ue), {
|
1966
|
+
key: 1,
|
1967
|
+
colspan: a.columns.length
|
1968
|
+
}, {
|
1969
|
+
default: M(() => [
|
1970
|
+
Oe("No data")
|
1971
|
+
]),
|
1972
|
+
_: 1
|
1973
|
+
}, 8, ["colspan"]))
|
1974
|
+
]),
|
1975
|
+
_: 1
|
1976
|
+
}),
|
1977
|
+
a.showPagination && v(l).getPageCount() ? ($(), y(v(je), { key: 1 }, {
|
1978
|
+
default: M(() => [
|
1979
|
+
G(v(Q), null, {
|
1980
|
+
default: M(() => [
|
1981
|
+
G(v(Ce), {
|
1982
|
+
colspan: a.columns.length
|
1983
|
+
}, {
|
1984
|
+
default: M(() => [
|
1985
|
+
G(v(Xe), {
|
1986
|
+
class: "float-right",
|
1987
|
+
total: i.value,
|
1988
|
+
pageIndex: u.value,
|
1989
|
+
"onUpdate:pageIndex": f[0] || (f[0] = (c) => u.value = c),
|
1990
|
+
pageSize: s.value,
|
1991
|
+
"onUpdate:pageSize": f[1] || (f[1] = (c) => s.value = c)
|
1992
|
+
}, null, 8, ["total", "pageIndex", "pageSize"])
|
1993
|
+
]),
|
1994
|
+
_: 1
|
1995
|
+
}, 8, ["colspan"])
|
1996
|
+
]),
|
1997
|
+
_: 1
|
1998
|
+
})
|
1999
|
+
]),
|
2000
|
+
_: 1
|
2001
|
+
})) : J("", !0)
|
2002
|
+
]),
|
2003
|
+
_: 3
|
2004
|
+
}));
|
2005
|
+
}
|
2006
|
+
});
|
2007
|
+
export {
|
2008
|
+
Wt as _
|
2009
|
+
};
|