@soft-stech/bootsman-ui-shadcn 1.1.38 → 1.2.0
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-D6NZ2Glm.js → BuiAccordion.vue_vue_type_script_setup_true_lang-nxe3iIoM.js} +3 -3
- package/dist/{BuiAccordionContent.vue_vue_type_script_setup_true_lang-DWgwTZC3.js → BuiAccordionContent.vue_vue_type_script_setup_true_lang-pCTYRg2Z.js} +8 -8
- package/dist/{BuiAccordionItem.vue_vue_type_script_setup_true_lang-VmckedPQ.js → BuiAccordionItem.vue_vue_type_script_setup_true_lang-Dp-3E0FN.js} +2 -2
- package/dist/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-CvrPKvEn.js → BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-CtFZfwMC.js} +10 -10
- package/dist/{BuiAlertDescription.vue_vue_type_script_setup_true_lang-JGl4jOiY.js → BuiAlertDescription.vue_vue_type_script_setup_true_lang-CVBdwmJq.js} +1 -1
- package/dist/{BuiAlertDialog.vue_vue_type_script_setup_true_lang-CYOmW_Y5.js → BuiAlertDialog.vue_vue_type_script_setup_true_lang-CKpn0FlQ.js} +3 -3
- package/dist/{BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-B68AKQif.js → BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-evBkU3SL.js} +4 -4
- package/dist/{BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-Dwqlf8oj.js → BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-ZNOYeYWA.js} +7 -7
- package/dist/{BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-DQ3MO21t.js → BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-DFUbXcoh.js} +11 -11
- package/dist/{BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-C0nmsUbU.js → BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-BNFeSGFa.js} +2 -2
- package/dist/{BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-Bwp16uCV.js → BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-kJr2Plgw.js} +1 -1
- package/dist/{BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-C9SdCMGG.js → BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-7Dx74gxo.js} +1 -1
- package/dist/{BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-Dnbl9EtZ.js → BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-CLxf_ipo.js} +4 -4
- package/dist/{BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-DALyN6MC.js → BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-Cz4RKkoF.js} +2 -2
- package/dist/{BuiAlertTitle.vue_vue_type_script_setup_true_lang-CgpdlY3s.js → BuiAlertTitle.vue_vue_type_script_setup_true_lang-BvU1UhRc.js} +1 -1
- package/dist/{BuiAspectRatio.vue_vue_type_script_setup_true_lang-DfbboEQK.js → BuiAspectRatio.vue_vue_type_script_setup_true_lang-DDkhBEEl.js} +2 -2
- package/dist/BuiAutoForm.vue_vue_type_script_setup_true_lang-BWWNpH1I.js +74 -0
- package/dist/BuiAutoFormField.vue_vue_type_script_setup_true_lang-xmzLQDzl.js +294 -0
- package/dist/{BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-BKT85fgx.js → BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-tuxavlOe.js} +8 -8
- package/dist/{BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-DWyKdzS5.js → BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-Bzg1m-ii.js} +20 -28
- package/dist/{BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-BECJ52JQ.js → BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-Bqe8Rt85.js} +21 -21
- package/dist/{BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-BFuZvVOr.js → BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-DrJwn66q.js} +11 -10
- package/dist/{BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DGI0ZobZ.js → BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DtBFfiOK.js} +25 -24
- package/dist/{BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-DmjImgRr.js → BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-ClLqHM1Y.js} +9 -8
- package/dist/{BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-Cnb5VI3E.js → BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-DzpWjTLE.js} +8 -7
- package/dist/{BuiAvatarFallback.vue_vue_type_script_setup_true_lang-jsKtoJ8h.js → BuiAvatarFallback.vue_vue_type_script_setup_true_lang-DM4kyiXi.js} +2 -2
- package/dist/{BuiAvatarImage.vue_vue_type_script_setup_true_lang-ZeFLLZLS.js → BuiAvatarImage.vue_vue_type_script_setup_true_lang-CpDtlLee.js} +3 -3
- package/dist/{BuiCalendar.vue_vue_type_style_index_0_lang-D428Q6Nh.js → BuiCalendar.vue_vue_type_style_index_0_lang-DK4yUiXC.js} +7 -11
- package/dist/{BuiCard.vue_vue_type_script_setup_true_lang-BdNbxFvi.js → BuiCard.vue_vue_type_script_setup_true_lang-CN_UnmV6.js} +1 -1
- package/dist/{BuiCardContent.vue_vue_type_script_setup_true_lang--U7YuaQv.js → BuiCardContent.vue_vue_type_script_setup_true_lang-B6clSivQ.js} +1 -1
- package/dist/{BuiCardDescription.vue_vue_type_script_setup_true_lang-CWcDrner.js → BuiCardDescription.vue_vue_type_script_setup_true_lang-Bf_1xgzn.js} +1 -1
- package/dist/{BuiCardFooter.vue_vue_type_script_setup_true_lang-DTYkTHzY.js → BuiCardFooter.vue_vue_type_script_setup_true_lang-Bxt8PufJ.js} +1 -1
- package/dist/{BuiCardHeader.vue_vue_type_script_setup_true_lang-7H4mP92e.js → BuiCardHeader.vue_vue_type_script_setup_true_lang-D9miAvuh.js} +1 -1
- package/dist/{BuiCardTitle.vue_vue_type_script_setup_true_lang-DR6fWGz9.js → BuiCardTitle.vue_vue_type_script_setup_true_lang-B6T0EtFW.js} +1 -1
- package/dist/{BuiCheckbox.vue_vue_type_script_setup_true_lang-CyxEbO5t.js → BuiCheckbox.vue_vue_type_script_setup_true_lang-B0K_SUAC.js} +11 -11
- package/dist/{BuiCollapsible.vue_vue_type_script_setup_true_lang-x_Glw-gh.js → BuiCollapsible.vue_vue_type_script_setup_true_lang-BfgRYJts.js} +4 -4
- package/dist/{BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-B72_xwvG.js → BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-eieHE5yV.js} +1 -1
- package/dist/{BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-ByrCdFCy.js → BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-DJ8YMCCp.js} +3 -3
- package/dist/{BuiCommand.vue_vue_type_script_setup_true_lang-C1O7IDvd.js → BuiCommand.vue_vue_type_script_setup_true_lang-P_fz9PPV.js} +12 -10
- package/dist/{BuiCommandDialog.vue_vue_type_script_setup_true_lang-BYYdrUJm.js → BuiCommandDialog.vue_vue_type_script_setup_true_lang-CEnlCiUo.js} +4 -4
- package/dist/{BuiCommandEmpty.vue_vue_type_script_setup_true_lang-dM0MIDwK.js → BuiCommandEmpty.vue_vue_type_script_setup_true_lang--AzKirWT.js} +6 -6
- package/dist/{BuiCommandGroup.vue_vue_type_script_setup_true_lang--JVL30Bq.js → BuiCommandGroup.vue_vue_type_script_setup_true_lang-oAo3VvXV.js} +8 -8
- package/dist/{BuiCommandInput.vue_vue_type_script_setup_true_lang-td41Iq0J.js → BuiCommandInput.vue_vue_type_script_setup_true_lang-BEhdQsvD.js} +3 -3
- package/dist/{BuiCommandItem.vue_vue_type_script_setup_true_lang-Co-lQQqw.js → BuiCommandItem.vue_vue_type_script_setup_true_lang-uxCefFTc.js} +5 -5
- package/dist/{BuiCommandList.vue_vue_type_script_setup_true_lang-Bp0LuoaV.js → BuiCommandList.vue_vue_type_script_setup_true_lang-bwZcHGfM.js} +5 -5
- package/dist/{BuiCommandSeparator.vue_vue_type_script_setup_true_lang-ClosG8me.js → BuiCommandSeparator.vue_vue_type_script_setup_true_lang-DbZAlodh.js} +2 -2
- package/dist/{BuiCommandShortcut.vue_vue_type_script_setup_true_lang-DGMEA91e.js → BuiCommandShortcut.vue_vue_type_script_setup_true_lang-DBIJCtZe.js} +1 -1
- package/dist/{BuiContextMenu.vue_vue_type_script_setup_true_lang-Bh8oJUyh.js → BuiContextMenu.vue_vue_type_script_setup_true_lang-DygiiuXp.js} +2 -2
- package/dist/{BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-BL5Zlqy2.js → BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-D0miFbPB.js} +9 -9
- package/dist/{BuiContextMenuContent.vue_vue_type_script_setup_true_lang-DtIN0awe.js → BuiContextMenuContent.vue_vue_type_script_setup_true_lang-aP3_J9bg.js} +6 -6
- package/dist/{BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-BUlkesJX.js → BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-jMxHU3w0.js} +1 -1
- package/dist/{BuiContextMenuItem.vue_vue_type_script_setup_true_lang-BbuySkF5.js → BuiContextMenuItem.vue_vue_type_script_setup_true_lang-D8vfxO74.js} +5 -5
- package/dist/{BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-DQ3a_SwA.js → BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-DqPKAvyw.js} +2 -2
- package/dist/{BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-CucdMx7c.js → BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-C5R9N60e.js} +7 -7
- package/dist/{BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-aA32tkEA.js → BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-CVenpxL9.js} +8 -8
- package/dist/{BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-DNb1vb3q.js → BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-CKN8RXqL.js} +4 -4
- package/dist/{BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-ExJmRXvx.js → BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-DPh99A_h.js} +1 -1
- package/dist/{BuiContextMenuSub.vue_vue_type_script_setup_true_lang-CfEN3NAs.js → BuiContextMenuSub.vue_vue_type_script_setup_true_lang-BIXs3Tea.js} +7 -7
- package/dist/{BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-BZxR0wIO.js → BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-CvYcdr9E.js} +4 -4
- package/dist/{BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-CFcwqUKs.js → BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-CF8EBUaF.js} +5 -5
- package/dist/{BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-Bc2IaG-4.js → BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-Bdy7Lfer.js} +3 -3
- package/dist/{BuiDataTable.vue_vue_type_script_setup_true_lang-BWEYe7eA.js → BuiDataTable.vue_vue_type_script_setup_true_lang-B9r03KU3.js} +64 -63
- package/dist/{BuiDialog.vue_vue_type_script_setup_true_lang-BCbOviQn.js → BuiDialog.vue_vue_type_script_setup_true_lang-DGrI65dh.js} +3 -3
- package/dist/{BuiDialogClose.vue_vue_type_script_setup_true_lang-Fdp24YHC.js → BuiDialogClose.vue_vue_type_script_setup_true_lang-D9w-FsVq.js} +1 -1
- package/dist/{BuiDialogContent.vue_vue_type_script_setup_true_lang-DTS5OB86.js → BuiDialogContent.vue_vue_type_script_setup_true_lang-3DBhO_IA.js} +17 -17
- package/dist/{BuiDialogDescription.vue_vue_type_script_setup_true_lang-CPGwGG27.js → BuiDialogDescription.vue_vue_type_script_setup_true_lang-B6RlWji2.js} +4 -4
- package/dist/{BuiDialogFooter.vue_vue_type_script_setup_true_lang-Blm8xAsp.js → BuiDialogFooter.vue_vue_type_script_setup_true_lang-B89so9mg.js} +1 -1
- package/dist/{BuiDialogHeader.vue_vue_type_script_setup_true_lang-DIxMSIbx.js → BuiDialogHeader.vue_vue_type_script_setup_true_lang-2BA5kKFA.js} +1 -1
- package/dist/{BuiDialogTitle.vue_vue_type_script_setup_true_lang-Dw4OSpt_.js → BuiDialogTitle.vue_vue_type_script_setup_true_lang-D4lcU_Gz.js} +2 -2
- package/dist/{BuiDialogTrigger.vue_vue_type_script_setup_true_lang-C58hpmhT.js → BuiDialogTrigger.vue_vue_type_script_setup_true_lang-Czib4PX-.js} +1 -1
- package/dist/{BuiDropdownMenu.vue_vue_type_script_setup_true_lang-BV70HeIN.js → BuiDropdownMenu.vue_vue_type_script_setup_true_lang-BCrmrPva.js} +7 -7
- package/dist/{BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-yS6gA48j.js → BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-8u8u19G1.js} +5 -5
- package/dist/{BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-Bb4Q6tSz.js → BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-6K_84IX2.js} +7 -7
- package/dist/{BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-DfNb5nUo.js → BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-D0CBaLUN.js} +4 -4
- package/dist/{BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang--QP6Nby4.js → BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-CU4I3eC4.js} +5 -5
- package/dist/{BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-Dh1TMw9d.js → BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-BPGNHYh4.js} +2 -2
- package/dist/{BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-DTcNorlM.js → BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-D9qDDKMV.js} +3 -3
- package/dist/{BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-ToMKHcEm.js → BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-CxyoF0q7.js} +5 -5
- package/dist/{BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-BbepqtDL.js → BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-QPaZoZKA.js} +1 -1
- package/dist/{BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-BWgELWFx.js → BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang-FqWOStNT.js} +1 -1
- package/dist/{BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-Dnqs62GK.js → BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-CLi87_1u.js} +5 -5
- package/dist/{BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-DlTXSDu5.js → BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-mMWlAm-h.js} +5 -5
- package/dist/{BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-B_LMNZ3o.js → BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-DTUQqTHr.js} +3 -3
- package/dist/{BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-CCSql0mq.js → BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-cfi8tQ0K.js} +4 -4
- package/dist/{BuiFormControl.vue_vue_type_script_setup_true_lang-DVx9ZDv-.js → BuiFormControl.vue_vue_type_script_setup_true_lang-CCJS2wc1.js} +1 -1
- package/dist/{BuiFormDescription.vue_vue_type_script_setup_true_lang-BPSgWb0t.js → BuiFormDescription.vue_vue_type_script_setup_true_lang-CeQSv28t.js} +1 -1
- package/dist/{BuiFormItem.vue_vue_type_script_setup_true_lang-CP1K61n9.js → BuiFormItem.vue_vue_type_script_setup_true_lang-COw7Rwow.js} +4 -4
- package/dist/{BuiFormLabel.vue_vue_type_script_setup_true_lang-BpCjAbUu.js → BuiFormLabel.vue_vue_type_script_setup_true_lang-ClJ8XVcR.js} +5 -5
- package/dist/{BuiFormMessage.vue_vue_type_script_setup_true_lang-CD9in3nQ.js → BuiFormMessage.vue_vue_type_script_setup_true_lang-DTdflpS8.js} +3 -3
- package/dist/{BuiHoverCard.vue_vue_type_script_setup_true_lang-B4EJAZ1v.js → BuiHoverCard.vue_vue_type_script_setup_true_lang-UvgUvVQh.js} +2 -2
- package/dist/{BuiHoverCardContent.vue_vue_type_script_setup_true_lang-RFeTYn_w.js → BuiHoverCardContent.vue_vue_type_script_setup_true_lang-DsSfafrp.js} +4 -4
- package/dist/{BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-DRHctQMn.js → BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-Cw-9ABpN.js} +1 -1
- package/dist/{BuiLabel.vue_vue_type_script_setup_true_lang-DIgQTfIk.js → BuiLabel.vue_vue_type_script_setup_true_lang-DQH-AF9N.js} +6 -6
- package/dist/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-6BhiWgI6.js +107 -0
- package/dist/{BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-sLLjg6Lo.js → BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-2v3zIYpf.js} +7 -7
- package/dist/{BuiPaginationFirst.vue_vue_type_script_setup_true_lang-C1v4DiC-.js → BuiPaginationFirst.vue_vue_type_script_setup_true_lang-CvMVo3wC.js} +5 -5
- package/dist/{BuiPaginationLast.vue_vue_type_script_setup_true_lang-DU5XYLV2.js → BuiPaginationLast.vue_vue_type_script_setup_true_lang-BTNEZSgQ.js} +5 -5
- package/dist/{BuiPaginationNext.vue_vue_type_script_setup_true_lang-vH3Cu1pW.js → BuiPaginationNext.vue_vue_type_script_setup_true_lang-DcwRaAYo.js} +5 -5
- package/dist/{BuiPaginationPrev.vue_vue_type_script_setup_true_lang-CTNwqcX0.js → BuiPaginationPrev.vue_vue_type_script_setup_true_lang-DkK8mnKY.js} +6 -6
- package/dist/{BuiPopover.vue_vue_type_script_setup_true_lang-zW4DPswi.js → BuiPopover.vue_vue_type_script_setup_true_lang-Ujd6aP3K.js} +6 -6
- package/dist/{BuiPopoverContent.vue_vue_type_script_setup_true_lang-DmZlmmde.js → BuiPopoverContent.vue_vue_type_script_setup_true_lang-R7bk_E6m.js} +2 -2
- package/dist/BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-Cr_ofPA6.js +21 -0
- package/dist/{BuiRadioGroup.vue_vue_type_script_setup_true_lang-Dyyf8FoV.js → BuiRadioGroup.vue_vue_type_script_setup_true_lang-Bzefyzga.js} +5 -5
- package/dist/{BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-CeYEovBc.js → BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-D1w59zx2.js} +4 -4
- package/dist/{BuiScrollArea.vue_vue_type_script_setup_true_lang-C6sBLycG.js → BuiScrollArea.vue_vue_type_script_setup_true_lang-DN5hbjJX.js} +6 -6
- package/dist/{BuiScrollBar.vue_vue_type_script_setup_true_lang-D2FLjGPC.js → BuiScrollBar.vue_vue_type_script_setup_true_lang-CnsvRIhs.js} +3 -3
- package/dist/{BuiSelect.vue_vue_type_script_setup_true_lang-m2Wvc7wn.js → BuiSelect.vue_vue_type_script_setup_true_lang-YVZaZc0x.js} +4 -4
- package/dist/{BuiSelectContent.vue_vue_type_script_setup_true_lang-D10Iiz4m.js → BuiSelectContent.vue_vue_type_script_setup_true_lang-CX82dW-X.js} +4 -4
- package/dist/{BuiSelectGroup.vue_vue_type_script_setup_true_lang-D_fNFsNW.js → BuiSelectGroup.vue_vue_type_script_setup_true_lang-B7bT-kcN.js} +4 -4
- package/dist/{BuiSelectItem.vue_vue_type_script_setup_true_lang-DtVOu1-z.js → BuiSelectItem.vue_vue_type_script_setup_true_lang-DsWD84S8.js} +8 -8
- package/dist/{BuiSelectItemText.vue_vue_type_script_setup_true_lang-DnGPz6Zk.js → BuiSelectItemText.vue_vue_type_script_setup_true_lang-CMBf17fE.js} +1 -1
- package/dist/{BuiSelectLabel.vue_vue_type_script_setup_true_lang-DScZZcu2.js → BuiSelectLabel.vue_vue_type_script_setup_true_lang-Cif3hoiO.js} +4 -4
- package/dist/{BuiSelectSeparator.vue_vue_type_script_setup_true_lang-BdOmkbIv.js → BuiSelectSeparator.vue_vue_type_script_setup_true_lang-Bkm9mitz.js} +2 -2
- package/dist/{BuiSelectTrigger.vue_vue_type_script_setup_true_lang-B3jcBhnj.js → BuiSelectTrigger.vue_vue_type_script_setup_true_lang-Dh-1xzuh.js} +3 -3
- package/dist/{BuiSelectValue.vue_vue_type_script_setup_true_lang-Dj1zDTaG.js → BuiSelectValue.vue_vue_type_script_setup_true_lang-CseYU299.js} +1 -1
- package/dist/{BuiSeparator.vue_vue_type_script_setup_true_lang-DdQNHu4h.js → BuiSeparator.vue_vue_type_script_setup_true_lang-DbN8eyHh.js} +2 -2
- package/dist/{BuiSlider.vue_vue_type_script_setup_true_lang-pzAiX1XP.js → BuiSlider.vue_vue_type_script_setup_true_lang-BrTF_gnp.js} +5 -5
- package/dist/{BuiSwitch.vue_vue_type_script_setup_true_lang-C9ShckgE.js → BuiSwitch.vue_vue_type_script_setup_true_lang-VtywyEjw.js} +6 -6
- package/dist/{BuiTable.vue_vue_type_script_setup_true_lang-DtvBDBVo.js → BuiTable.vue_vue_type_script_setup_true_lang-CUPSwE5z.js} +3 -3
- package/dist/{BuiTableBody.vue_vue_type_script_setup_true_lang-C8xJ4jmB.js → BuiTableBody.vue_vue_type_script_setup_true_lang-CWT4u-Ma.js} +1 -1
- package/dist/{BuiTableCaption.vue_vue_type_script_setup_true_lang-akgSakue.js → BuiTableCaption.vue_vue_type_script_setup_true_lang-053YvtXp.js} +1 -1
- package/dist/{BuiTableCell.vue_vue_type_script_setup_true_lang-Bg3H27w9.js → BuiTableCell.vue_vue_type_script_setup_true_lang-BrTQJCiZ.js} +1 -1
- package/dist/{BuiTableEmpty.vue_vue_type_script_setup_true_lang-DdNjsCQp.js → BuiTableEmpty.vue_vue_type_script_setup_true_lang-BJDYHpRG.js} +3 -3
- package/dist/{BuiTableFooter.vue_vue_type_script_setup_true_lang-BBpzOKn2.js → BuiTableFooter.vue_vue_type_script_setup_true_lang-Cfxlxsbh.js} +1 -1
- package/dist/{BuiTableHead.vue_vue_type_script_setup_true_lang-fjU0tzXQ.js → BuiTableHead.vue_vue_type_script_setup_true_lang-bRr43VQ9.js} +1 -1
- package/dist/{BuiTableHeader.vue_vue_type_script_setup_true_lang-DPm0jnLo.js → BuiTableHeader.vue_vue_type_script_setup_true_lang-DZOqi3dp.js} +1 -1
- package/dist/{BuiTableRow.vue_vue_type_script_setup_true_lang-BtsefcWm.js → BuiTableRow.vue_vue_type_script_setup_true_lang-CpEilJsW.js} +1 -1
- package/dist/BuiTableRowSubrow.vue_vue_type_script_setup_true_lang-Ch5gemw2.js +65 -0
- package/dist/{BuiTabs.vue_vue_type_script_setup_true_lang-Bx9h7mN7.js → BuiTabs.vue_vue_type_script_setup_true_lang-DZavy0KI.js} +8 -8
- package/dist/{BuiTabsContent.vue_vue_type_script_setup_true_lang-fhGgOsCb.js → BuiTabsContent.vue_vue_type_script_setup_true_lang-BGARj0PN.js} +4 -4
- package/dist/{BuiToastAction.vue_vue_type_script_setup_true_lang-CQdfsCpV.js → BuiToastAction.vue_vue_type_script_setup_true_lang-BnduHxHU.js} +2 -2
- package/dist/{BuiToastClose.vue_vue_type_script_setup_true_lang-DKcinPYL.js → BuiToastClose.vue_vue_type_script_setup_true_lang-D8a4DIAU.js} +9 -9
- package/dist/{BuiToastDescription.vue_vue_type_script_setup_true_lang-DilPK4c7.js → BuiToastDescription.vue_vue_type_script_setup_true_lang-DttuuxON.js} +4 -4
- package/dist/{BuiToastProvider.vue_vue_type_script_setup_true_lang-D6BsFeKl.js → BuiToastProvider.vue_vue_type_script_setup_true_lang-V09S1Ros.js} +5 -5
- package/dist/{BuiToastTitle.vue_vue_type_script_setup_true_lang-DKYb0KDP.js → BuiToastTitle.vue_vue_type_script_setup_true_lang-BTPprH2k.js} +6 -6
- package/dist/{BuiToastViewport.vue_vue_type_script_setup_true_lang-CNJXlkVy.js → BuiToastViewport.vue_vue_type_script_setup_true_lang-DGcOPCBU.js} +4 -4
- package/dist/{BuiToggleGroup.vue_vue_type_script_setup_true_lang-BVLWma8L.js → BuiToggleGroup.vue_vue_type_script_setup_true_lang-D4bAsz99.js} +8 -8
- package/dist/{BuiToggleGroupItem.vue_vue_type_script_setup_true_lang-CxIsZIZP.js → BuiToggleGroupItem.vue_vue_type_script_setup_true_lang-BoEvQmPy.js} +14 -14
- package/dist/{BuiTooltip.vue_vue_type_script_setup_true_lang-BUpZD1YF.js → BuiTooltip.vue_vue_type_script_setup_true_lang-CsOjyqI1.js} +2 -2
- package/dist/{BuiTooltipContent.vue_vue_type_script_setup_true_lang-BlJipdor.js → BuiTooltipContent.vue_vue_type_script_setup_true_lang-DeCynYsO.js} +10 -9
- package/dist/{BuiTooltipProvider.vue_vue_type_script_setup_true_lang-BPhsWP8Y.js → BuiTooltipProvider.vue_vue_type_script_setup_true_lang-DE2Dcdd0.js} +3 -3
- package/dist/{BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-BQG5Ssoc.js → BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-Bb8h7e0Q.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-D5EVQxHg.js → Skeleton.vue_vue_type_script_setup_true_lang-BA2fwC6Z.js} +1 -1
- package/dist/assets/main.css +1 -1
- package/dist/{check-DKcXJk1r.js → check-npU4Mr7d.js} +2 -2
- package/dist/{chevron-down-C5w5Vj70.js → chevron-down-ILJn0W7E.js} +2 -2
- package/dist/{chevron-left-BqvZOD-Y.js → chevron-left-1MnPaUDG.js} +2 -2
- package/dist/{chevron-right-ZmwmaSAu.js → chevron-right-D6qOvvY2.js} +2 -2
- package/dist/{circle-Da-wgB2G.js → circle-DfMTPWb6.js} +2 -2
- package/dist/components/ui/accordion/BuiAccordion.js +1 -1
- package/dist/components/ui/accordion/BuiAccordion.vue.d.ts +13 -16
- package/dist/components/ui/accordion/BuiAccordionContent.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionContent.vue.d.ts +13 -16
- package/dist/components/ui/accordion/BuiAccordionItem.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionItem.vue.d.ts +13 -16
- package/dist/components/ui/accordion/BuiAccordionTrigger.js +1 -1
- package/dist/components/ui/accordion/BuiAccordionTrigger.vue.d.ts +15 -18
- package/dist/components/ui/accordion/index.js +4 -4
- package/dist/components/ui/alert/BuiAlert.vue.d.ts +11 -14
- package/dist/components/ui/alert/BuiAlertDescription.js +1 -1
- package/dist/components/ui/alert/BuiAlertDescription.vue.d.ts +12 -5
- package/dist/components/ui/alert/BuiAlertTitle.js +1 -1
- package/dist/components/ui/alert/BuiAlertTitle.vue.d.ts +10 -3
- 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/BuiAlertDialog.vue.d.ts +13 -16
- package/dist/components/ui/alert-dialog/BuiAlertDialogAction.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogAction.vue.d.ts +9 -12
- package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.vue.d.ts +9 -12
- package/dist/components/ui/alert-dialog/BuiAlertDialogContent.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogContent.vue.d.ts +22 -25
- package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.vue.d.ts +13 -16
- package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.vue.d.ts +13 -6
- package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.vue.d.ts +13 -6
- package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.vue.d.ts +13 -16
- package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.js +1 -1
- package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.vue.d.ts +9 -12
- 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/BuiAspectRatio.vue.d.ts +9 -12
- package/dist/components/ui/aspect-ratio/index.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoForm.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoForm.vue.d.ts +17 -64
- package/dist/components/ui/auto-form/BuiAutoFormField.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormField.vue.d.ts +10 -30
- package/dist/components/ui/auto-form/BuiAutoFormFieldArray.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldBoolean.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldBoolean.vue.d.ts +25 -28
- package/dist/components/ui/auto-form/BuiAutoFormFieldDate.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldDate.vue.d.ts +25 -28
- package/dist/components/ui/auto-form/BuiAutoFormFieldEnum.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldEnum.vue.d.ts +29 -32
- package/dist/components/ui/auto-form/BuiAutoFormFieldFile.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldFile.vue.d.ts +25 -28
- package/dist/components/ui/auto-form/BuiAutoFormFieldInput.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldInput.vue.d.ts +25 -28
- package/dist/components/ui/auto-form/BuiAutoFormFieldNumber.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldNumber.vue.d.ts +25 -28
- package/dist/components/ui/auto-form/BuiAutoFormFieldObject.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormLabel.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormLabel.vue.d.ts +13 -15
- package/dist/components/ui/auto-form/constant.js +7 -7
- package/dist/components/ui/auto-form/dependencies.d.ts +17 -6
- package/dist/components/ui/auto-form/dependencies.js +9 -10
- package/dist/components/ui/auto-form/index.js +9 -9
- package/dist/components/ui/auto-form/interface.d.ts +2 -3
- package/dist/components/ui/auto-form/utils.d.ts +0 -1
- package/dist/components/ui/avatar/BuiAvatar.vue.d.ts +11 -28
- package/dist/components/ui/avatar/BuiAvatarFallback.js +1 -1
- package/dist/components/ui/avatar/BuiAvatarFallback.vue.d.ts +9 -12
- package/dist/components/ui/avatar/BuiAvatarImage.js +1 -1
- package/dist/components/ui/avatar/BuiAvatarImage.vue.d.ts +1 -11
- package/dist/components/ui/avatar/index.js +6 -6
- package/dist/components/ui/badge/BuiBadge.vue.d.ts +15 -30
- package/dist/components/ui/badge/index.js +2 -2
- package/dist/components/ui/button/BuiButton.js +1 -1
- package/dist/components/ui/button/BuiButton.vue.d.ts +12 -29
- package/dist/components/ui/button/index.d.ts +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/BuiCard.vue.d.ts +13 -6
- package/dist/components/ui/card/BuiCardContent.js +1 -1
- package/dist/components/ui/card/BuiCardContent.vue.d.ts +13 -6
- package/dist/components/ui/card/BuiCardDescription.js +1 -1
- package/dist/components/ui/card/BuiCardDescription.vue.d.ts +13 -6
- package/dist/components/ui/card/BuiCardFooter.js +1 -1
- package/dist/components/ui/card/BuiCardFooter.vue.d.ts +13 -6
- package/dist/components/ui/card/BuiCardHeader.js +1 -1
- package/dist/components/ui/card/BuiCardHeader.vue.d.ts +13 -6
- package/dist/components/ui/card/BuiCardTitle.js +1 -1
- package/dist/components/ui/card/BuiCardTitle.vue.d.ts +13 -6
- package/dist/components/ui/card/index.js +6 -6
- package/dist/components/ui/checkbox/BuiCheckbox.js +1 -1
- package/dist/components/ui/checkbox/BuiCheckbox.vue.d.ts +4 -14
- package/dist/components/ui/checkbox/index.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsible.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsible.vue.d.ts +15 -18
- package/dist/components/ui/collapsible/BuiCollapsibleContent.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsibleContent.vue.d.ts +9 -12
- package/dist/components/ui/collapsible/BuiCollapsibleTrigger.js +1 -1
- package/dist/components/ui/collapsible/BuiCollapsibleTrigger.vue.d.ts +9 -12
- package/dist/components/ui/collapsible/index.js +3 -3
- package/dist/components/ui/command/BuiCommand.js +1 -1
- package/dist/components/ui/command/BuiCommand.vue.d.ts +17 -18
- package/dist/components/ui/command/BuiCommandDialog.js +1 -1
- package/dist/components/ui/command/BuiCommandDialog.vue.d.ts +13 -16
- package/dist/components/ui/command/BuiCommandEmpty.js +1 -1
- package/dist/components/ui/command/BuiCommandEmpty.vue.d.ts +9 -12
- package/dist/components/ui/command/BuiCommandGroup.js +1 -1
- package/dist/components/ui/command/BuiCommandGroup.vue.d.ts +13 -16
- package/dist/components/ui/command/BuiCommandInput.js +1 -1
- package/dist/components/ui/command/BuiCommandInput.vue.d.ts +1 -11
- package/dist/components/ui/command/BuiCommandItem.js +1 -1
- package/dist/components/ui/command/BuiCommandItem.vue.d.ts +13 -16
- package/dist/components/ui/command/BuiCommandList.js +1 -1
- package/dist/components/ui/command/BuiCommandList.vue.d.ts +16 -19
- package/dist/components/ui/command/BuiCommandSeparator.js +1 -1
- package/dist/components/ui/command/BuiCommandSeparator.vue.d.ts +9 -12
- package/dist/components/ui/command/BuiCommandShortcut.js +1 -1
- package/dist/components/ui/command/BuiCommandShortcut.vue.d.ts +10 -3
- 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 +13 -16
- package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.vue.d.ts +18 -21
- package/dist/components/ui/context-menu/BuiContextMenuContent.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuContent.vue.d.ts +21 -24
- package/dist/components/ui/context-menu/BuiContextMenuGroup.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuGroup.vue.d.ts +9 -12
- package/dist/components/ui/context-menu/BuiContextMenuItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuItem.vue.d.ts +19 -22
- package/dist/components/ui/context-menu/BuiContextMenuLabel.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuLabel.vue.d.ts +15 -18
- 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/BuiContextMenuRadioGroup.vue.d.ts +13 -16
- package/dist/components/ui/context-menu/BuiContextMenuRadioItem.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuRadioItem.vue.d.ts +17 -20
- package/dist/components/ui/context-menu/BuiContextMenuSeparator.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSeparator.vue.d.ts +1 -11
- package/dist/components/ui/context-menu/BuiContextMenuShortcut.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuShortcut.vue.d.ts +10 -3
- package/dist/components/ui/context-menu/BuiContextMenuSub.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSub.vue.d.ts +13 -16
- package/dist/components/ui/context-menu/BuiContextMenuSubContent.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSubContent.vue.d.ts +23 -26
- package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.vue.d.ts +15 -18
- package/dist/components/ui/context-menu/BuiContextMenuTrigger.js +1 -1
- package/dist/components/ui/context-menu/BuiContextMenuTrigger.vue.d.ts +9 -12
- package/dist/components/ui/context-menu/index.js +14 -14
- package/dist/components/ui/dialog/BuiDialog.js +1 -1
- package/dist/components/ui/dialog/BuiDialog.vue.d.ts +13 -16
- package/dist/components/ui/dialog/BuiDialogClose.js +1 -1
- package/dist/components/ui/dialog/BuiDialogClose.vue.d.ts +9 -12
- package/dist/components/ui/dialog/BuiDialogContent.js +1 -1
- package/dist/components/ui/dialog/BuiDialogContent.vue.d.ts +22 -25
- package/dist/components/ui/dialog/BuiDialogDescription.js +1 -1
- package/dist/components/ui/dialog/BuiDialogDescription.vue.d.ts +13 -16
- package/dist/components/ui/dialog/BuiDialogFooter.js +1 -1
- package/dist/components/ui/dialog/BuiDialogFooter.vue.d.ts +9 -11
- package/dist/components/ui/dialog/BuiDialogHeader.js +1 -1
- package/dist/components/ui/dialog/BuiDialogHeader.vue.d.ts +9 -11
- package/dist/components/ui/dialog/BuiDialogTitle.js +1 -1
- package/dist/components/ui/dialog/BuiDialogTitle.vue.d.ts +13 -16
- package/dist/components/ui/dialog/BuiDialogTrigger.js +1 -1
- package/dist/components/ui/dialog/BuiDialogTrigger.vue.d.ts +9 -12
- 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 +13 -16
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.vue.d.ts +18 -21
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.vue.d.ts +22 -37
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.vue.d.ts +9 -12
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.vue.d.ts +15 -18
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.vue.d.ts +15 -18
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.vue.d.ts +13 -16
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.vue.d.ts +17 -20
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.vue.d.ts +1 -11
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.vue.d.ts +10 -3
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.vue.d.ts +13 -16
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.vue.d.ts +19 -22
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.vue.d.ts +13 -16
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.js +1 -1
- package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.vue.d.ts +9 -12
- package/dist/components/ui/dropdown-menu/index.js +18 -18
- package/dist/components/ui/form/BuiFormControl.js +1 -1
- package/dist/components/ui/form/BuiFormControl.vue.d.ts +10 -3
- package/dist/components/ui/form/BuiFormDescription.js +1 -1
- package/dist/components/ui/form/BuiFormDescription.vue.d.ts +10 -3
- package/dist/components/ui/form/BuiFormItem.js +2 -2
- package/dist/components/ui/form/BuiFormItem.vue.d.ts +1 -2
- package/dist/components/ui/form/BuiFormLabel.js +1 -1
- package/dist/components/ui/form/BuiFormLabel.vue.d.ts +9 -12
- package/dist/components/ui/form/BuiFormMessage.js +1 -1
- package/dist/components/ui/form/BuiFormMessage.vue.d.ts +1 -1
- package/dist/components/ui/form/index.js +12 -12
- package/dist/components/ui/form/useFormField.js +5 -6
- package/dist/components/ui/health/BuiHealth.vue.d.ts +12 -36
- 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/BuiHoverCard.vue.d.ts +9 -12
- package/dist/components/ui/hover-card/BuiHoverCardContent.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCardContent.vue.d.ts +15 -30
- package/dist/components/ui/hover-card/BuiHoverCardTrigger.js +1 -1
- package/dist/components/ui/hover-card/BuiHoverCardTrigger.vue.d.ts +9 -12
- package/dist/components/ui/hover-card/index.js +3 -3
- package/dist/components/ui/input/BuiBadgedInput.vue.d.ts +3 -12
- package/dist/components/ui/input/BuiInput.vue.d.ts +15 -25
- package/dist/components/ui/input/BuiPasswordInput.vue.d.ts +1 -1
- package/dist/components/ui/input/index.js +37 -28
- package/dist/components/ui/label/BuiLabel.js +1 -1
- package/dist/components/ui/label/BuiLabel.vue.d.ts +13 -16
- 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 +14 -27
- package/dist/components/ui/pagination/BuiPaginationEllipsis.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationEllipsis.vue.d.ts +9 -12
- package/dist/components/ui/pagination/BuiPaginationFirst.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationFirst.vue.d.ts +11 -26
- package/dist/components/ui/pagination/BuiPaginationLast.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationLast.vue.d.ts +11 -26
- package/dist/components/ui/pagination/BuiPaginationNext.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationNext.vue.d.ts +11 -26
- package/dist/components/ui/pagination/BuiPaginationPrev.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationPrev.vue.d.ts +11 -26
- package/dist/components/ui/pagination/index.js +9 -9
- package/dist/components/ui/popover/BuiPopover.js +1 -1
- package/dist/components/ui/popover/BuiPopover.vue.d.ts +13 -16
- package/dist/components/ui/popover/BuiPopoverContent.js +1 -1
- package/dist/components/ui/popover/BuiPopoverContent.vue.d.ts +23 -38
- package/dist/components/ui/popover/BuiPopoverTrigger.js +1 -1
- package/dist/components/ui/popover/BuiPopoverTrigger.vue.d.ts +9 -12
- package/dist/components/ui/popover/index.js +3 -3
- package/dist/components/ui/progress/BuiProgress.vue.d.ts +11 -35
- package/dist/components/ui/progress/index.js +8 -8
- package/dist/components/ui/radio-group/BuiRadioGroup.js +1 -1
- package/dist/components/ui/radio-group/BuiRadioGroup.vue.d.ts +17 -20
- package/dist/components/ui/radio-group/BuiRadioGroupItem.js +1 -1
- package/dist/components/ui/radio-group/BuiRadioGroupItem.vue.d.ts +5 -15
- 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/BuiScrollArea.vue.d.ts +14 -16
- package/dist/components/ui/scroll-area/BuiScrollBar.js +1 -1
- package/dist/components/ui/scroll-area/BuiScrollBar.vue.d.ts +7 -29
- package/dist/components/ui/scroll-area/index.js +2 -2
- package/dist/components/ui/select/Bui.js +4 -4
- package/dist/components/ui/select/BuiSelect.js +1 -1
- package/dist/components/ui/select/BuiSelect.vue.d.ts +14 -17
- package/dist/components/ui/select/BuiSelectContent.js +1 -1
- package/dist/components/ui/select/BuiSelectContent.vue.d.ts +21 -40
- package/dist/components/ui/select/BuiSelectGroup.js +1 -1
- package/dist/components/ui/select/BuiSelectGroup.vue.d.ts +13 -16
- package/dist/components/ui/select/BuiSelectItem.js +1 -1
- package/dist/components/ui/select/BuiSelectItem.vue.d.ts +13 -16
- package/dist/components/ui/select/BuiSelectItemText.js +1 -1
- package/dist/components/ui/select/BuiSelectItemText.vue.d.ts +9 -12
- package/dist/components/ui/select/BuiSelectLabel.js +1 -1
- package/dist/components/ui/select/BuiSelectLabel.vue.d.ts +13 -16
- package/dist/components/ui/select/BuiSelectSeparator.js +1 -1
- package/dist/components/ui/select/BuiSelectSeparator.vue.d.ts +5 -15
- package/dist/components/ui/select/BuiSelectTrigger.js +1 -1
- package/dist/components/ui/select/BuiSelectTrigger.vue.d.ts +18 -35
- package/dist/components/ui/select/BuiSelectValue.js +1 -1
- package/dist/components/ui/select/BuiSelectValue.vue.d.ts +9 -12
- package/dist/components/ui/select/index.js +9 -9
- package/dist/components/ui/separator/BuiSeparator.js +1 -1
- package/dist/components/ui/separator/BuiSeparator.vue.d.ts +5 -15
- package/dist/components/ui/separator/index.js +1 -1
- package/dist/components/ui/skeleton/Skeleton.js +1 -1
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +1 -11
- package/dist/components/ui/skeleton/index.js +1 -1
- package/dist/components/ui/slider/BuiSlider.js +1 -1
- package/dist/components/ui/slider/BuiSlider.vue.d.ts +5 -15
- package/dist/components/ui/slider/index.js +1 -1
- package/dist/components/ui/switch/BuiSwitch.js +1 -1
- package/dist/components/ui/switch/BuiSwitch.vue.d.ts +8 -18
- package/dist/components/ui/switch/index.js +1 -1
- package/dist/components/ui/table/BuiDataTable.js +1 -1
- package/dist/components/ui/table/BuiDataTable.vue.d.ts +32 -68
- package/dist/components/ui/table/BuiTable.js +1 -1
- package/dist/components/ui/table/BuiTable.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableBody.js +1 -1
- package/dist/components/ui/table/BuiTableBody.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableCaption.js +1 -1
- package/dist/components/ui/table/BuiTableCaption.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableCell.js +1 -1
- package/dist/components/ui/table/BuiTableCell.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableEmpty.js +1 -1
- package/dist/components/ui/table/BuiTableEmpty.vue.d.ts +11 -27
- package/dist/components/ui/table/BuiTableFooter.js +1 -1
- package/dist/components/ui/table/BuiTableFooter.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableHead.js +1 -1
- package/dist/components/ui/table/BuiTableHead.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableHeader.js +1 -1
- package/dist/components/ui/table/BuiTableHeader.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableRow.js +1 -1
- package/dist/components/ui/table/BuiTableRow.vue.d.ts +13 -15
- package/dist/components/ui/table/BuiTableRowSubrow.js +1 -1
- package/dist/components/ui/table/BuiTableRowSubrow.vue.d.ts +10 -26
- package/dist/components/ui/table/index.js +11 -11
- package/dist/components/ui/tabs/BuiTabs.js +1 -1
- package/dist/components/ui/tabs/BuiTabs.vue.d.ts +13 -16
- package/dist/components/ui/tabs/BuiTabsContent.js +1 -1
- package/dist/components/ui/tabs/BuiTabsContent.vue.d.ts +13 -16
- package/dist/components/ui/tabs/BuiTabsList.vue.d.ts +10 -13
- package/dist/components/ui/tabs/BuiTabsTrigger.vue.d.ts +10 -13
- package/dist/components/ui/tabs/index.d.ts +2 -2
- package/dist/components/ui/tabs/index.js +10 -10
- package/dist/components/ui/textarea/BuiTextarea.vue.d.ts +12 -22
- package/dist/components/ui/textarea/index.js +2 -2
- package/dist/components/ui/toast/BuiToast.vue.d.ts +13 -23
- package/dist/components/ui/toast/BuiToastAction.js +1 -1
- package/dist/components/ui/toast/BuiToastAction.vue.d.ts +13 -16
- package/dist/components/ui/toast/BuiToastClose.js +1 -1
- package/dist/components/ui/toast/BuiToastClose.vue.d.ts +5 -14
- package/dist/components/ui/toast/BuiToastDescription.js +1 -1
- package/dist/components/ui/toast/BuiToastDescription.vue.d.ts +13 -16
- package/dist/components/ui/toast/BuiToastProvider.js +1 -1
- package/dist/components/ui/toast/BuiToastProvider.vue.d.ts +9 -12
- package/dist/components/ui/toast/BuiToastTitle.js +1 -1
- package/dist/components/ui/toast/BuiToastTitle.vue.d.ts +13 -16
- package/dist/components/ui/toast/BuiToastViewport.js +1 -1
- package/dist/components/ui/toast/BuiToastViewport.vue.d.ts +5 -15
- package/dist/components/ui/toast/BuiToaster.vue.d.ts +1 -1
- package/dist/components/ui/toast/index.js +14 -14
- package/dist/components/ui/toast/use-toast.d.ts +1 -2
- package/dist/components/ui/toast/use-toast.js +1 -2
- package/dist/components/ui/toggle/BuiToggle.vue.d.ts +16 -35
- package/dist/components/ui/toggle/index.js +5 -5
- package/dist/components/ui/toggle-group/BuiToggleGroup.js +1 -1
- package/dist/components/ui/toggle-group/BuiToggleGroup.vue.d.ts +25 -24
- package/dist/components/ui/toggle-group/BuiToggleGroupItem.js +1 -1
- package/dist/components/ui/toggle-group/BuiToggleGroupItem.vue.d.ts +21 -20
- package/dist/components/ui/toggle-group/index.js +2 -2
- package/dist/components/ui/tooltip/BuiTooltip.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltip.vue.d.ts +13 -16
- package/dist/components/ui/tooltip/BuiTooltipContent.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipContent.vue.d.ts +15 -30
- package/dist/components/ui/tooltip/BuiTooltipProvider.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipProvider.vue.d.ts +9 -12
- package/dist/components/ui/tooltip/BuiTooltipTrigger.js +1 -1
- package/dist/components/ui/tooltip/BuiTooltipTrigger.vue.d.ts +9 -12
- package/dist/components/ui/tooltip/index.js +4 -4
- package/dist/{index-BX_xuhSi.js → index-uA4l4INt.js} +3950 -3794
- package/dist/index.d.ts +0 -1
- package/dist/index.js +176 -176
- package/dist/lib/utils.d.ts +2 -3
- package/dist/lib/utils.js +1 -1
- package/dist/{utils-BNc3Bzhq.js → utils-DPuEjrVV.js} +409 -501
- package/dist/{x-qxSNtB0B.js → x-BMfRYQ91.js} +2 -2
- package/package.json +33 -31
- package/dist/BuiAutoForm.vue_vue_type_script_setup_true_lang-CKS23plt.js +0 -206
- package/dist/BuiAutoFormField.vue_vue_type_script_setup_true_lang-DwgVv_fo.js +0 -3062
- package/dist/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-VNCFXArM.js +0 -102
- package/dist/BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-BzLHQJIv.js +0 -21
- package/dist/BuiTableRowSubrow.vue_vue_type_script_setup_true_lang-o7uq1Evp.js +0 -1898
- package/dist/components/ui/calendar/BuiCalendar.vue.d.ts +0 -63
- package/dist/components/ui/context-menu/BuiContextMenuPortal.vue.d.ts +0 -20
- package/dist/components/ui/select/Bui.vue.d.ts +0 -52
- package/dist/index-DBFwX7-c.js +0 -181
- package/dist/vee-validate.esm-BSPEJ8Vl.js +0 -2308
@@ -1,2308 +0,0 @@
|
|
1
|
-
import { computed as C, toValue as S, unref as N, onMounted as Ut, getCurrentInstance as Ae, provide as Rt, isRef as qe, watch as de, onBeforeUnmount as Lt, ref as ue, reactive as Ge, nextTick as ve, warn as $t, readonly as dn, watchEffect as cn, inject as Le, onUnmounted as zt, defineComponent as Ye, toRef as Se, resolveDynamicComponent as pt, h as He, shallowRef as fn } from "vue";
|
2
|
-
function vn() {
|
3
|
-
return xt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
4
|
-
}
|
5
|
-
function xt() {
|
6
|
-
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
7
|
-
}
|
8
|
-
const hn = typeof Proxy == "function", mn = "devtools-plugin:setup", gn = "plugin:settings:set";
|
9
|
-
let we, ft;
|
10
|
-
function pn() {
|
11
|
-
var e;
|
12
|
-
return we !== void 0 || (typeof window < "u" && window.performance ? (we = !0, ft = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (we = !0, ft = globalThis.perf_hooks.performance) : we = !1), we;
|
13
|
-
}
|
14
|
-
function yn() {
|
15
|
-
return pn() ? ft.now() : Date.now();
|
16
|
-
}
|
17
|
-
class bn {
|
18
|
-
constructor(t, n) {
|
19
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
20
|
-
const r = {};
|
21
|
-
if (t.settings)
|
22
|
-
for (const o in t.settings) {
|
23
|
-
const s = t.settings[o];
|
24
|
-
r[o] = s.defaultValue;
|
25
|
-
}
|
26
|
-
const i = `__vue-devtools-plugin-settings__${t.id}`;
|
27
|
-
let a = Object.assign({}, r);
|
28
|
-
try {
|
29
|
-
const o = localStorage.getItem(i), s = JSON.parse(o);
|
30
|
-
Object.assign(a, s);
|
31
|
-
} catch {
|
32
|
-
}
|
33
|
-
this.fallbacks = {
|
34
|
-
getSettings() {
|
35
|
-
return a;
|
36
|
-
},
|
37
|
-
setSettings(o) {
|
38
|
-
try {
|
39
|
-
localStorage.setItem(i, JSON.stringify(o));
|
40
|
-
} catch {
|
41
|
-
}
|
42
|
-
a = o;
|
43
|
-
},
|
44
|
-
now() {
|
45
|
-
return yn();
|
46
|
-
}
|
47
|
-
}, n && n.on(gn, (o, s) => {
|
48
|
-
o === this.plugin.id && this.fallbacks.setSettings(s);
|
49
|
-
}), this.proxiedOn = new Proxy({}, {
|
50
|
-
get: (o, s) => this.target ? this.target.on[s] : (...d) => {
|
51
|
-
this.onQueue.push({
|
52
|
-
method: s,
|
53
|
-
args: d
|
54
|
-
});
|
55
|
-
}
|
56
|
-
}), this.proxiedTarget = new Proxy({}, {
|
57
|
-
get: (o, s) => this.target ? this.target[s] : s === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(s) ? (...d) => (this.targetQueue.push({
|
58
|
-
method: s,
|
59
|
-
args: d,
|
60
|
-
resolve: () => {
|
61
|
-
}
|
62
|
-
}), this.fallbacks[s](...d)) : (...d) => new Promise((f) => {
|
63
|
-
this.targetQueue.push({
|
64
|
-
method: s,
|
65
|
-
args: d,
|
66
|
-
resolve: f
|
67
|
-
});
|
68
|
-
})
|
69
|
-
});
|
70
|
-
}
|
71
|
-
async setRealTarget(t) {
|
72
|
-
this.target = t;
|
73
|
-
for (const n of this.onQueue)
|
74
|
-
this.target.on[n.method](...n.args);
|
75
|
-
for (const n of this.targetQueue)
|
76
|
-
n.resolve(await this.target[n.method](...n.args));
|
77
|
-
}
|
78
|
-
}
|
79
|
-
function Vn(e, t) {
|
80
|
-
const n = e, r = xt(), i = vn(), a = hn && n.enableEarlyProxy;
|
81
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
82
|
-
i.emit(mn, e, t);
|
83
|
-
else {
|
84
|
-
const o = a ? new bn(n, i) : null;
|
85
|
-
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
86
|
-
pluginDescriptor: n,
|
87
|
-
setupFn: t,
|
88
|
-
proxy: o
|
89
|
-
}), o && t(o.proxiedTarget);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
/**
|
93
|
-
* vee-validate v4.13.1
|
94
|
-
* (c) 2024 Abdelrahman Awad
|
95
|
-
* @license MIT
|
96
|
-
*/
|
97
|
-
function Y(e) {
|
98
|
-
return typeof e == "function";
|
99
|
-
}
|
100
|
-
function Ce(e) {
|
101
|
-
return e == null;
|
102
|
-
}
|
103
|
-
const Oe = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
104
|
-
function yt(e) {
|
105
|
-
return Number(e) >= 0;
|
106
|
-
}
|
107
|
-
function On(e) {
|
108
|
-
const t = parseFloat(e);
|
109
|
-
return isNaN(t) ? e : t;
|
110
|
-
}
|
111
|
-
function _n(e) {
|
112
|
-
return typeof e == "object" && e !== null;
|
113
|
-
}
|
114
|
-
function Sn(e) {
|
115
|
-
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
116
|
-
}
|
117
|
-
function Ft(e) {
|
118
|
-
if (!_n(e) || Sn(e) !== "[object Object]")
|
119
|
-
return !1;
|
120
|
-
if (Object.getPrototypeOf(e) === null)
|
121
|
-
return !0;
|
122
|
-
let t = e;
|
123
|
-
for (; Object.getPrototypeOf(t) !== null; )
|
124
|
-
t = Object.getPrototypeOf(t);
|
125
|
-
return Object.getPrototypeOf(e) === t;
|
126
|
-
}
|
127
|
-
function Re(e, t) {
|
128
|
-
return Object.keys(t).forEach((n) => {
|
129
|
-
if (Ft(t[n]) && Ft(e[n])) {
|
130
|
-
e[n] || (e[n] = {}), Re(e[n], t[n]);
|
131
|
-
return;
|
132
|
-
}
|
133
|
-
e[n] = t[n];
|
134
|
-
}), e;
|
135
|
-
}
|
136
|
-
function Me(e) {
|
137
|
-
const t = e.split(".");
|
138
|
-
if (!t.length)
|
139
|
-
return "";
|
140
|
-
let n = String(t[0]);
|
141
|
-
for (let r = 1; r < t.length; r++) {
|
142
|
-
if (yt(t[r])) {
|
143
|
-
n += `[${t[r]}]`;
|
144
|
-
continue;
|
145
|
-
}
|
146
|
-
n += `.${t[r]}`;
|
147
|
-
}
|
148
|
-
return n;
|
149
|
-
}
|
150
|
-
const En = {};
|
151
|
-
function An(e) {
|
152
|
-
return En[e];
|
153
|
-
}
|
154
|
-
function It(e, t, n) {
|
155
|
-
typeof n.value == "object" && (n.value = k(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
|
156
|
-
}
|
157
|
-
function k(e) {
|
158
|
-
if (typeof e != "object")
|
159
|
-
return e;
|
160
|
-
var t = 0, n, r, i, a = Object.prototype.toString.call(e);
|
161
|
-
if (a === "[object Object]" ? i = Object.create(e.__proto__ || null) : a === "[object Array]" ? i = Array(e.length) : a === "[object Set]" ? (i = /* @__PURE__ */ new Set(), e.forEach(function(o) {
|
162
|
-
i.add(k(o));
|
163
|
-
})) : a === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach(function(o, s) {
|
164
|
-
i.set(k(s), k(o));
|
165
|
-
})) : a === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(k(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
|
166
|
-
for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)
|
167
|
-
It(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
|
168
|
-
for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++)
|
169
|
-
Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || It(i, n, Object.getOwnPropertyDescriptor(e, n));
|
170
|
-
}
|
171
|
-
return i || e;
|
172
|
-
}
|
173
|
-
const be = Symbol("vee-validate-form"), Xe = Symbol("vee-validate-field-instance"), Ke = Symbol("Default empty value"), jn = typeof window < "u";
|
174
|
-
function vt(e) {
|
175
|
-
return Y(e) && !!e.__locatorRef;
|
176
|
-
}
|
177
|
-
function he(e) {
|
178
|
-
return !!e && Y(e.parse) && e.__type === "VVTypedSchema";
|
179
|
-
}
|
180
|
-
function Qe(e) {
|
181
|
-
return !!e && Y(e.validate);
|
182
|
-
}
|
183
|
-
function $e(e) {
|
184
|
-
return e === "checkbox" || e === "radio";
|
185
|
-
}
|
186
|
-
function Fn(e) {
|
187
|
-
return Oe(e) || Array.isArray(e);
|
188
|
-
}
|
189
|
-
function In(e) {
|
190
|
-
return Array.isArray(e) ? e.length === 0 : Oe(e) && Object.keys(e).length === 0;
|
191
|
-
}
|
192
|
-
function Ze(e) {
|
193
|
-
return /^\[.+\]$/i.test(e);
|
194
|
-
}
|
195
|
-
function wn(e) {
|
196
|
-
return Wt(e) && e.multiple;
|
197
|
-
}
|
198
|
-
function Wt(e) {
|
199
|
-
return e.tagName === "SELECT";
|
200
|
-
}
|
201
|
-
function Cn(e, t) {
|
202
|
-
const n = ![!1, null, void 0, 0].includes(t.multiple) && !Number.isNaN(t.multiple);
|
203
|
-
return e === "select" && "multiple" in t && n;
|
204
|
-
}
|
205
|
-
function kn(e, t) {
|
206
|
-
return !Cn(e, t) && t.type !== "file" && !$e(t.type);
|
207
|
-
}
|
208
|
-
function qt(e) {
|
209
|
-
return bt(e) && e.target && "submit" in e.target;
|
210
|
-
}
|
211
|
-
function bt(e) {
|
212
|
-
return e ? !!(typeof Event < "u" && Y(Event) && e instanceof Event || e && e.srcElement) : !1;
|
213
|
-
}
|
214
|
-
function wt(e, t) {
|
215
|
-
return t in e && e[t] !== Ke;
|
216
|
-
}
|
217
|
-
function Q(e, t) {
|
218
|
-
if (e === t)
|
219
|
-
return !0;
|
220
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
221
|
-
if (e.constructor !== t.constructor)
|
222
|
-
return !1;
|
223
|
-
var n, r, i;
|
224
|
-
if (Array.isArray(e)) {
|
225
|
-
if (n = e.length, n != t.length)
|
226
|
-
return !1;
|
227
|
-
for (r = n; r-- !== 0; )
|
228
|
-
if (!Q(e[r], t[r]))
|
229
|
-
return !1;
|
230
|
-
return !0;
|
231
|
-
}
|
232
|
-
if (e instanceof Map && t instanceof Map) {
|
233
|
-
if (e.size !== t.size)
|
234
|
-
return !1;
|
235
|
-
for (r of e.entries())
|
236
|
-
if (!t.has(r[0]))
|
237
|
-
return !1;
|
238
|
-
for (r of e.entries())
|
239
|
-
if (!Q(r[1], t.get(r[0])))
|
240
|
-
return !1;
|
241
|
-
return !0;
|
242
|
-
}
|
243
|
-
if (Ct(e) && Ct(t))
|
244
|
-
return !(e.size !== t.size || e.name !== t.name || e.lastModified !== t.lastModified || e.type !== t.type);
|
245
|
-
if (e instanceof Set && t instanceof Set) {
|
246
|
-
if (e.size !== t.size)
|
247
|
-
return !1;
|
248
|
-
for (r of e.entries())
|
249
|
-
if (!t.has(r[0]))
|
250
|
-
return !1;
|
251
|
-
return !0;
|
252
|
-
}
|
253
|
-
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
254
|
-
if (n = e.length, n != t.length)
|
255
|
-
return !1;
|
256
|
-
for (r = n; r-- !== 0; )
|
257
|
-
if (e[r] !== t[r])
|
258
|
-
return !1;
|
259
|
-
return !0;
|
260
|
-
}
|
261
|
-
if (e.constructor === RegExp)
|
262
|
-
return e.source === t.source && e.flags === t.flags;
|
263
|
-
if (e.valueOf !== Object.prototype.valueOf)
|
264
|
-
return e.valueOf() === t.valueOf();
|
265
|
-
if (e.toString !== Object.prototype.toString)
|
266
|
-
return e.toString() === t.toString();
|
267
|
-
for (i = Object.keys(e), n = i.length, r = n; r-- !== 0; ) {
|
268
|
-
var a = i[r];
|
269
|
-
if (!Q(e[a], t[a]))
|
270
|
-
return !1;
|
271
|
-
}
|
272
|
-
return !0;
|
273
|
-
}
|
274
|
-
return e !== e && t !== t;
|
275
|
-
}
|
276
|
-
function Ct(e) {
|
277
|
-
return jn ? e instanceof File : !1;
|
278
|
-
}
|
279
|
-
function Vt(e) {
|
280
|
-
return Ze(e) ? e.replace(/\[|\]/gi, "") : e;
|
281
|
-
}
|
282
|
-
function $(e, t, n) {
|
283
|
-
return e ? Ze(t) ? e[Vt(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i, a) => Fn(i) && a in i ? i[a] : n, e) : n;
|
284
|
-
}
|
285
|
-
function K(e, t, n) {
|
286
|
-
if (Ze(t)) {
|
287
|
-
e[Vt(t)] = n;
|
288
|
-
return;
|
289
|
-
}
|
290
|
-
const r = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
291
|
-
let i = e;
|
292
|
-
for (let a = 0; a < r.length; a++) {
|
293
|
-
if (a === r.length - 1) {
|
294
|
-
i[r[a]] = n;
|
295
|
-
return;
|
296
|
-
}
|
297
|
-
(!(r[a] in i) || Ce(i[r[a]])) && (i[r[a]] = yt(r[a + 1]) ? [] : {}), i = i[r[a]];
|
298
|
-
}
|
299
|
-
}
|
300
|
-
function dt(e, t) {
|
301
|
-
if (Array.isArray(e) && yt(t)) {
|
302
|
-
e.splice(Number(t), 1);
|
303
|
-
return;
|
304
|
-
}
|
305
|
-
Oe(e) && delete e[t];
|
306
|
-
}
|
307
|
-
function kt(e, t) {
|
308
|
-
if (Ze(t)) {
|
309
|
-
delete e[Vt(t)];
|
310
|
-
return;
|
311
|
-
}
|
312
|
-
const n = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
313
|
-
let r = e;
|
314
|
-
for (let a = 0; a < n.length; a++) {
|
315
|
-
if (a === n.length - 1) {
|
316
|
-
dt(r, n[a]);
|
317
|
-
break;
|
318
|
-
}
|
319
|
-
if (!(n[a] in r) || Ce(r[n[a]]))
|
320
|
-
break;
|
321
|
-
r = r[n[a]];
|
322
|
-
}
|
323
|
-
const i = n.map((a, o) => $(e, n.slice(0, o).join(".")));
|
324
|
-
for (let a = i.length - 1; a >= 0; a--)
|
325
|
-
if (In(i[a])) {
|
326
|
-
if (a === 0) {
|
327
|
-
dt(e, n[0]);
|
328
|
-
continue;
|
329
|
-
}
|
330
|
-
dt(i[a - 1], n[a - 1]);
|
331
|
-
}
|
332
|
-
}
|
333
|
-
function le(e) {
|
334
|
-
return Object.keys(e);
|
335
|
-
}
|
336
|
-
function je(e, t = void 0) {
|
337
|
-
const n = Ae();
|
338
|
-
return n?.provides[e] || Le(e, t);
|
339
|
-
}
|
340
|
-
function Be(e) {
|
341
|
-
$t(`[vee-validate]: ${e}`);
|
342
|
-
}
|
343
|
-
function Nt(e, t, n) {
|
344
|
-
if (Array.isArray(e)) {
|
345
|
-
const r = [...e], i = r.findIndex((a) => Q(a, t));
|
346
|
-
return i >= 0 ? r.splice(i, 1) : r.push(t), r;
|
347
|
-
}
|
348
|
-
return Q(e, t) ? n : t;
|
349
|
-
}
|
350
|
-
function Nn(e, t) {
|
351
|
-
let n, r;
|
352
|
-
return function(...i) {
|
353
|
-
const a = this;
|
354
|
-
return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(a, i)), r;
|
355
|
-
};
|
356
|
-
}
|
357
|
-
function Tt(e, t = 0) {
|
358
|
-
let n = null, r = [];
|
359
|
-
return function(...i) {
|
360
|
-
return n && clearTimeout(n), n = setTimeout(() => {
|
361
|
-
const a = e(...i);
|
362
|
-
r.forEach((o) => o(a)), r = [];
|
363
|
-
}, t), new Promise((a) => r.push(a));
|
364
|
-
};
|
365
|
-
}
|
366
|
-
function Tn(e, t) {
|
367
|
-
return Oe(t) && t.number ? On(e) : e;
|
368
|
-
}
|
369
|
-
function ht(e, t) {
|
370
|
-
let n;
|
371
|
-
return async function(...i) {
|
372
|
-
const a = e(...i);
|
373
|
-
n = a;
|
374
|
-
const o = await a;
|
375
|
-
return a !== n ? o : (n = void 0, t(o, i));
|
376
|
-
};
|
377
|
-
}
|
378
|
-
function Pn({ get: e, set: t }) {
|
379
|
-
const n = ue(k(e()));
|
380
|
-
return de(e, (r) => {
|
381
|
-
Q(r, n.value) || (n.value = k(r));
|
382
|
-
}, {
|
383
|
-
deep: !0
|
384
|
-
}), de(n, (r) => {
|
385
|
-
Q(r, e()) || t(k(r));
|
386
|
-
}, {
|
387
|
-
deep: !0
|
388
|
-
}), n;
|
389
|
-
}
|
390
|
-
function mt(e) {
|
391
|
-
return Array.isArray(e) ? e : e ? [e] : [];
|
392
|
-
}
|
393
|
-
function Ot(e) {
|
394
|
-
je(be);
|
395
|
-
const t = void 0, n = Le(Xe);
|
396
|
-
return n || process.env.NODE_ENV !== "production" && Be(`field with name ${S(e)} was not found`), t || n;
|
397
|
-
}
|
398
|
-
function xe(e, t) {
|
399
|
-
const n = {};
|
400
|
-
for (const r in e)
|
401
|
-
t.includes(r) || (n[r] = e[r]);
|
402
|
-
return n;
|
403
|
-
}
|
404
|
-
function Mn(e) {
|
405
|
-
let t = null, n = [];
|
406
|
-
return function(...r) {
|
407
|
-
const i = ve(() => {
|
408
|
-
if (t !== i)
|
409
|
-
return;
|
410
|
-
const a = e(...r);
|
411
|
-
n.forEach((o) => o(a)), n = [], t = null;
|
412
|
-
});
|
413
|
-
return t = i, new Promise((a) => n.push(a));
|
414
|
-
};
|
415
|
-
}
|
416
|
-
function et(e, t, n) {
|
417
|
-
return t.slots.default ? typeof e == "string" || !e ? t.slots.default(n()) : {
|
418
|
-
default: () => {
|
419
|
-
var r, i;
|
420
|
-
return (i = (r = t.slots).default) === null || i === void 0 ? void 0 : i.call(r, n());
|
421
|
-
}
|
422
|
-
} : t.slots.default;
|
423
|
-
}
|
424
|
-
function ct(e) {
|
425
|
-
if (Gt(e))
|
426
|
-
return e._value;
|
427
|
-
}
|
428
|
-
function Gt(e) {
|
429
|
-
return "_value" in e;
|
430
|
-
}
|
431
|
-
function Bn(e) {
|
432
|
-
return e.type === "number" || e.type === "range" ? Number.isNaN(e.valueAsNumber) ? e.value : e.valueAsNumber : e.value;
|
433
|
-
}
|
434
|
-
function Je(e) {
|
435
|
-
if (!bt(e))
|
436
|
-
return e;
|
437
|
-
const t = e.target;
|
438
|
-
if ($e(t.type) && Gt(t))
|
439
|
-
return ct(t);
|
440
|
-
if (t.type === "file" && t.files) {
|
441
|
-
const n = Array.from(t.files);
|
442
|
-
return t.multiple ? n : n[0];
|
443
|
-
}
|
444
|
-
if (wn(t))
|
445
|
-
return Array.from(t.options).filter((n) => n.selected && !n.disabled).map(ct);
|
446
|
-
if (Wt(t)) {
|
447
|
-
const n = Array.from(t.options).find((r) => r.selected);
|
448
|
-
return n ? ct(n) : t.value;
|
449
|
-
}
|
450
|
-
return Bn(t);
|
451
|
-
}
|
452
|
-
function Ht(e) {
|
453
|
-
const t = {};
|
454
|
-
return Object.defineProperty(t, "_$$isNormalized", {
|
455
|
-
value: !0,
|
456
|
-
writable: !1,
|
457
|
-
enumerable: !1,
|
458
|
-
configurable: !1
|
459
|
-
}), e ? Oe(e) && e._$$isNormalized ? e : Oe(e) ? Object.keys(e).reduce((n, r) => {
|
460
|
-
const i = Dn(e[r]);
|
461
|
-
return e[r] !== !1 && (n[r] = Pt(i)), n;
|
462
|
-
}, t) : typeof e != "string" ? t : e.split("|").reduce((n, r) => {
|
463
|
-
const i = Un(r);
|
464
|
-
return i.name && (n[i.name] = Pt(i.params)), n;
|
465
|
-
}, t) : t;
|
466
|
-
}
|
467
|
-
function Dn(e) {
|
468
|
-
return e === !0 ? [] : Array.isArray(e) || Oe(e) ? e : [e];
|
469
|
-
}
|
470
|
-
function Pt(e) {
|
471
|
-
const t = (n) => typeof n == "string" && n[0] === "@" ? Rn(n.slice(1)) : n;
|
472
|
-
return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {});
|
473
|
-
}
|
474
|
-
const Un = (e) => {
|
475
|
-
let t = [];
|
476
|
-
const n = e.split(":")[0];
|
477
|
-
return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
|
478
|
-
};
|
479
|
-
function Rn(e) {
|
480
|
-
const t = (n) => $(n, e) || n[e];
|
481
|
-
return t.__locatorRef = e, t;
|
482
|
-
}
|
483
|
-
function Ln(e) {
|
484
|
-
return Array.isArray(e) ? e.filter(vt) : le(e).filter((t) => vt(e[t])).map((t) => e[t]);
|
485
|
-
}
|
486
|
-
const $n = {
|
487
|
-
generateMessage: ({ field: e }) => `${e} is not valid.`,
|
488
|
-
bails: !0,
|
489
|
-
validateOnBlur: !0,
|
490
|
-
validateOnChange: !0,
|
491
|
-
validateOnInput: !1,
|
492
|
-
validateOnModelUpdate: !0
|
493
|
-
};
|
494
|
-
let zn = Object.assign({}, $n);
|
495
|
-
const Ee = () => zn;
|
496
|
-
async function Kt(e, t, n = {}) {
|
497
|
-
const r = n?.bails, i = {
|
498
|
-
name: n?.name || "{field}",
|
499
|
-
rules: t,
|
500
|
-
label: n?.label,
|
501
|
-
bails: r ?? !0,
|
502
|
-
formData: n?.values || {}
|
503
|
-
}, a = await xn(i, e);
|
504
|
-
return Object.assign(Object.assign({}, a), { valid: !a.errors.length });
|
505
|
-
}
|
506
|
-
async function xn(e, t) {
|
507
|
-
const n = e.rules;
|
508
|
-
if (he(n) || Qe(n))
|
509
|
-
return qn(t, Object.assign(Object.assign({}, e), { rules: n }));
|
510
|
-
if (Y(n) || Array.isArray(n)) {
|
511
|
-
const s = {
|
512
|
-
field: e.label || e.name,
|
513
|
-
name: e.name,
|
514
|
-
label: e.label,
|
515
|
-
form: e.formData,
|
516
|
-
value: t
|
517
|
-
}, d = Array.isArray(n) ? n : [n], f = d.length, b = [];
|
518
|
-
for (let y = 0; y < f; y++) {
|
519
|
-
const T = d[y], V = await T(t, s);
|
520
|
-
if (!(typeof V != "string" && !Array.isArray(V) && V)) {
|
521
|
-
if (Array.isArray(V))
|
522
|
-
b.push(...V);
|
523
|
-
else {
|
524
|
-
const H = typeof V == "string" ? V : Jt(s);
|
525
|
-
b.push(H);
|
526
|
-
}
|
527
|
-
if (e.bails)
|
528
|
-
return {
|
529
|
-
errors: b
|
530
|
-
};
|
531
|
-
}
|
532
|
-
}
|
533
|
-
return {
|
534
|
-
errors: b
|
535
|
-
};
|
536
|
-
}
|
537
|
-
const r = Object.assign(Object.assign({}, e), { rules: Ht(n) }), i = [], a = Object.keys(r.rules), o = a.length;
|
538
|
-
for (let s = 0; s < o; s++) {
|
539
|
-
const d = a[s], f = await Gn(r, t, {
|
540
|
-
name: d,
|
541
|
-
params: r.rules[d]
|
542
|
-
});
|
543
|
-
if (f.error && (i.push(f.error), e.bails))
|
544
|
-
return {
|
545
|
-
errors: i
|
546
|
-
};
|
547
|
-
}
|
548
|
-
return {
|
549
|
-
errors: i
|
550
|
-
};
|
551
|
-
}
|
552
|
-
function Wn(e) {
|
553
|
-
return !!e && e.name === "ValidationError";
|
554
|
-
}
|
555
|
-
function Qt(e) {
|
556
|
-
return {
|
557
|
-
__type: "VVTypedSchema",
|
558
|
-
async parse(n, r) {
|
559
|
-
var i;
|
560
|
-
try {
|
561
|
-
return {
|
562
|
-
output: await e.validate(n, { abortEarly: !1, context: r?.formData || {} }),
|
563
|
-
errors: []
|
564
|
-
};
|
565
|
-
} catch (a) {
|
566
|
-
if (!Wn(a))
|
567
|
-
throw a;
|
568
|
-
if (!(!((i = a.inner) === null || i === void 0) && i.length) && a.errors.length)
|
569
|
-
return { errors: [{ path: a.path, errors: a.errors }] };
|
570
|
-
const o = a.inner.reduce((s, d) => {
|
571
|
-
const f = d.path || "";
|
572
|
-
return s[f] || (s[f] = { errors: [], path: f }), s[f].errors.push(...d.errors), s;
|
573
|
-
}, {});
|
574
|
-
return { errors: Object.values(o) };
|
575
|
-
}
|
576
|
-
}
|
577
|
-
};
|
578
|
-
}
|
579
|
-
async function qn(e, t) {
|
580
|
-
const r = await (he(t.rules) ? t.rules : Qt(t.rules)).parse(e, { formData: t.formData }), i = [];
|
581
|
-
for (const a of r.errors)
|
582
|
-
a.errors.length && i.push(...a.errors);
|
583
|
-
return {
|
584
|
-
value: r.value,
|
585
|
-
errors: i
|
586
|
-
};
|
587
|
-
}
|
588
|
-
async function Gn(e, t, n) {
|
589
|
-
const r = An(n.name);
|
590
|
-
if (!r)
|
591
|
-
throw new Error(`No such validator '${n.name}' exists.`);
|
592
|
-
const i = Hn(n.params, e.formData), a = {
|
593
|
-
field: e.label || e.name,
|
594
|
-
name: e.name,
|
595
|
-
label: e.label,
|
596
|
-
value: t,
|
597
|
-
form: e.formData,
|
598
|
-
rule: Object.assign(Object.assign({}, n), { params: i })
|
599
|
-
}, o = await r(t, i, a);
|
600
|
-
return typeof o == "string" ? {
|
601
|
-
error: o
|
602
|
-
} : {
|
603
|
-
error: o ? void 0 : Jt(a)
|
604
|
-
};
|
605
|
-
}
|
606
|
-
function Jt(e) {
|
607
|
-
const t = Ee().generateMessage;
|
608
|
-
return t ? t(e) : "Field is invalid";
|
609
|
-
}
|
610
|
-
function Hn(e, t) {
|
611
|
-
const n = (r) => vt(r) ? r(t) : r;
|
612
|
-
return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((r, i) => (r[i] = n(e[i]), r), {});
|
613
|
-
}
|
614
|
-
async function Kn(e, t) {
|
615
|
-
const r = await (he(e) ? e : Qt(e)).parse(k(t)), i = {}, a = {};
|
616
|
-
for (const o of r.errors) {
|
617
|
-
const s = o.errors, d = (o.path || "").replace(/\["(\d+)"\]/g, (f, b) => `[${b}]`);
|
618
|
-
i[d] = { valid: !s.length, errors: s }, s.length && (a[d] = s[0]);
|
619
|
-
}
|
620
|
-
return {
|
621
|
-
valid: !r.errors.length,
|
622
|
-
results: i,
|
623
|
-
errors: a,
|
624
|
-
values: r.value,
|
625
|
-
source: "schema"
|
626
|
-
};
|
627
|
-
}
|
628
|
-
async function Qn(e, t, n) {
|
629
|
-
const i = le(e).map(async (f) => {
|
630
|
-
var b, y, T;
|
631
|
-
const V = (b = n?.names) === null || b === void 0 ? void 0 : b[f], B = await Kt($(t, f), e[f], {
|
632
|
-
name: V?.name || f,
|
633
|
-
label: V?.label,
|
634
|
-
values: t,
|
635
|
-
bails: (T = (y = n?.bailsMap) === null || y === void 0 ? void 0 : y[f]) !== null && T !== void 0 ? T : !0
|
636
|
-
});
|
637
|
-
return Object.assign(Object.assign({}, B), { path: f });
|
638
|
-
});
|
639
|
-
let a = !0;
|
640
|
-
const o = await Promise.all(i), s = {}, d = {};
|
641
|
-
for (const f of o)
|
642
|
-
s[f.path] = {
|
643
|
-
valid: f.valid,
|
644
|
-
errors: f.errors
|
645
|
-
}, f.valid || (a = !1, d[f.path] = f.errors[0]);
|
646
|
-
return {
|
647
|
-
valid: a,
|
648
|
-
results: s,
|
649
|
-
errors: d,
|
650
|
-
source: "schema"
|
651
|
-
};
|
652
|
-
}
|
653
|
-
let Mt = 0;
|
654
|
-
function Jn(e, t) {
|
655
|
-
const { value: n, initialValue: r, setInitialValue: i } = Yn(e, t.modelValue, t.form);
|
656
|
-
if (!t.form) {
|
657
|
-
let T = function(V) {
|
658
|
-
var B;
|
659
|
-
"value" in V && (n.value = V.value), "errors" in V && f(V.errors), "touched" in V && (y.touched = (B = V.touched) !== null && B !== void 0 ? B : y.touched), "initialValue" in V && i(V.initialValue);
|
660
|
-
};
|
661
|
-
const { errors: d, setErrors: f } = er(), b = Mt >= Number.MAX_SAFE_INTEGER ? 0 : ++Mt, y = Zn(n, r, d, t.schema);
|
662
|
-
return {
|
663
|
-
id: b,
|
664
|
-
path: e,
|
665
|
-
value: n,
|
666
|
-
initialValue: r,
|
667
|
-
meta: y,
|
668
|
-
flags: { pendingUnmount: { [b]: !1 }, pendingReset: !1 },
|
669
|
-
errors: d,
|
670
|
-
setState: T
|
671
|
-
};
|
672
|
-
}
|
673
|
-
const a = t.form.createPathState(e, {
|
674
|
-
bails: t.bails,
|
675
|
-
label: t.label,
|
676
|
-
type: t.type,
|
677
|
-
validate: t.validate,
|
678
|
-
schema: t.schema
|
679
|
-
}), o = C(() => a.errors);
|
680
|
-
function s(d) {
|
681
|
-
var f, b, y;
|
682
|
-
"value" in d && (n.value = d.value), "errors" in d && ((f = t.form) === null || f === void 0 || f.setFieldError(N(e), d.errors)), "touched" in d && ((b = t.form) === null || b === void 0 || b.setFieldTouched(N(e), (y = d.touched) !== null && y !== void 0 ? y : !1)), "initialValue" in d && i(d.initialValue);
|
683
|
-
}
|
684
|
-
return {
|
685
|
-
id: Array.isArray(a.id) ? a.id[a.id.length - 1] : a.id,
|
686
|
-
path: e,
|
687
|
-
value: n,
|
688
|
-
errors: o,
|
689
|
-
meta: a,
|
690
|
-
initialValue: r,
|
691
|
-
flags: a.__flags,
|
692
|
-
setState: s
|
693
|
-
};
|
694
|
-
}
|
695
|
-
function Yn(e, t, n) {
|
696
|
-
const r = ue(N(t));
|
697
|
-
function i() {
|
698
|
-
return n ? $(n.initialValues.value, N(e), N(r)) : N(r);
|
699
|
-
}
|
700
|
-
function a(f) {
|
701
|
-
if (!n) {
|
702
|
-
r.value = f;
|
703
|
-
return;
|
704
|
-
}
|
705
|
-
n.setFieldInitialValue(N(e), f, !0);
|
706
|
-
}
|
707
|
-
const o = C(i);
|
708
|
-
if (!n)
|
709
|
-
return {
|
710
|
-
value: ue(i()),
|
711
|
-
initialValue: o,
|
712
|
-
setInitialValue: a
|
713
|
-
};
|
714
|
-
const s = Xn(t, n, o, e);
|
715
|
-
return n.stageInitialValue(N(e), s, !0), {
|
716
|
-
value: C({
|
717
|
-
get() {
|
718
|
-
return $(n.values, N(e));
|
719
|
-
},
|
720
|
-
set(f) {
|
721
|
-
n.setFieldValue(N(e), f, !1);
|
722
|
-
}
|
723
|
-
}),
|
724
|
-
initialValue: o,
|
725
|
-
setInitialValue: a
|
726
|
-
};
|
727
|
-
}
|
728
|
-
function Xn(e, t, n, r) {
|
729
|
-
return qe(e) ? N(e) : e !== void 0 ? e : $(t.values, N(r), N(n));
|
730
|
-
}
|
731
|
-
function Zn(e, t, n, r) {
|
732
|
-
const i = C(() => {
|
733
|
-
var o, s, d;
|
734
|
-
return (d = (s = (o = S(r)) === null || o === void 0 ? void 0 : o.describe) === null || s === void 0 ? void 0 : s.call(o).required) !== null && d !== void 0 ? d : !1;
|
735
|
-
}), a = Ge({
|
736
|
-
touched: !1,
|
737
|
-
pending: !1,
|
738
|
-
valid: !0,
|
739
|
-
required: i,
|
740
|
-
validated: !!N(n).length,
|
741
|
-
initialValue: C(() => N(t)),
|
742
|
-
dirty: C(() => !Q(N(e), N(t)))
|
743
|
-
});
|
744
|
-
return de(n, (o) => {
|
745
|
-
a.valid = !o.length;
|
746
|
-
}, {
|
747
|
-
immediate: !0,
|
748
|
-
flush: "sync"
|
749
|
-
}), a;
|
750
|
-
}
|
751
|
-
function er() {
|
752
|
-
const e = ue([]);
|
753
|
-
return {
|
754
|
-
errors: e,
|
755
|
-
setErrors: (t) => {
|
756
|
-
e.value = mt(t);
|
757
|
-
}
|
758
|
-
};
|
759
|
-
}
|
760
|
-
function Yt(e) {
|
761
|
-
process.env.NODE_ENV !== "production" && Vn({
|
762
|
-
id: "vee-validate-devtools-plugin",
|
763
|
-
label: "VeeValidate Plugin",
|
764
|
-
packageName: "vee-validate",
|
765
|
-
homepage: "https://vee-validate.logaretm.com/v4",
|
766
|
-
app: e,
|
767
|
-
logo: "https://vee-validate.logaretm.com/v4/logo.png"
|
768
|
-
}, rr);
|
769
|
-
}
|
770
|
-
const De = {}, Ue = {};
|
771
|
-
let ye;
|
772
|
-
const Ne = Nn(() => {
|
773
|
-
setTimeout(async () => {
|
774
|
-
await ve(), ye?.sendInspectorState(ke), ye?.sendInspectorTree(ke);
|
775
|
-
}, 100);
|
776
|
-
}, 100);
|
777
|
-
function tr(e) {
|
778
|
-
const t = Ae();
|
779
|
-
if (!ye) {
|
780
|
-
const n = t?.appContext.app;
|
781
|
-
if (!n)
|
782
|
-
return;
|
783
|
-
Yt(n);
|
784
|
-
}
|
785
|
-
De[e.formId] = Object.assign({}, e), De[e.formId]._vm = t, zt(() => {
|
786
|
-
delete De[e.formId], Ne();
|
787
|
-
}), Ne();
|
788
|
-
}
|
789
|
-
function nr(e) {
|
790
|
-
const t = Ae();
|
791
|
-
if (!ye) {
|
792
|
-
const n = t?.appContext.app;
|
793
|
-
if (!n)
|
794
|
-
return;
|
795
|
-
Yt(n);
|
796
|
-
}
|
797
|
-
Ue[e.id] = Object.assign({}, e), Ue[e.id]._vm = t, zt(() => {
|
798
|
-
delete Ue[e.id], Ne();
|
799
|
-
}), Ne();
|
800
|
-
}
|
801
|
-
const ke = "vee-validate-inspector", ae = {
|
802
|
-
error: 12405579,
|
803
|
-
success: 448379,
|
804
|
-
unknown: 5522283,
|
805
|
-
white: 16777215,
|
806
|
-
black: 0,
|
807
|
-
blue: 218007,
|
808
|
-
purple: 12157168,
|
809
|
-
orange: 16099682,
|
810
|
-
gray: 12304330
|
811
|
-
};
|
812
|
-
let W = null;
|
813
|
-
function rr(e) {
|
814
|
-
ye = e, e.addInspector({
|
815
|
-
id: ke,
|
816
|
-
icon: "rule",
|
817
|
-
label: "vee-validate",
|
818
|
-
noSelectionText: "Select a vee-validate node to inspect",
|
819
|
-
actions: [
|
820
|
-
{
|
821
|
-
icon: "done_outline",
|
822
|
-
tooltip: "Validate selected item",
|
823
|
-
action: async () => {
|
824
|
-
if (!W) {
|
825
|
-
console.error("There is not a valid selected vee-validate node or component");
|
826
|
-
return;
|
827
|
-
}
|
828
|
-
if (W.type === "field") {
|
829
|
-
await W.field.validate();
|
830
|
-
return;
|
831
|
-
}
|
832
|
-
if (W.type === "form") {
|
833
|
-
await W.form.validate();
|
834
|
-
return;
|
835
|
-
}
|
836
|
-
W.type === "pathState" && await W.form.validateField(W.state.path);
|
837
|
-
}
|
838
|
-
},
|
839
|
-
{
|
840
|
-
icon: "delete_sweep",
|
841
|
-
tooltip: "Clear validation state of the selected item",
|
842
|
-
action: () => {
|
843
|
-
if (!W) {
|
844
|
-
console.error("There is not a valid selected vee-validate node or component");
|
845
|
-
return;
|
846
|
-
}
|
847
|
-
if (W.type === "field") {
|
848
|
-
W.field.resetField();
|
849
|
-
return;
|
850
|
-
}
|
851
|
-
W.type === "form" && W.form.resetForm(), W.type === "pathState" && W.form.resetField(W.state.path);
|
852
|
-
}
|
853
|
-
}
|
854
|
-
]
|
855
|
-
}), e.on.getInspectorTree((t) => {
|
856
|
-
if (t.inspectorId !== ke)
|
857
|
-
return;
|
858
|
-
const n = Object.values(De), r = Object.values(Ue);
|
859
|
-
t.rootNodes = [
|
860
|
-
...n.map(ir),
|
861
|
-
...r.map((i) => ar(i))
|
862
|
-
];
|
863
|
-
}), e.on.getInspectorState((t, n) => {
|
864
|
-
if (t.inspectorId !== ke || n.currentTab !== `custom-inspector:${ke}`)
|
865
|
-
return;
|
866
|
-
const { form: r, field: i, state: a, type: o } = ur(t.nodeId);
|
867
|
-
if (r && o === "form") {
|
868
|
-
t.state = or(r), W = { type: "form", form: r };
|
869
|
-
return;
|
870
|
-
}
|
871
|
-
if (a && o === "pathState" && r) {
|
872
|
-
t.state = Bt(a), W = { type: "pathState", state: a, form: r };
|
873
|
-
return;
|
874
|
-
}
|
875
|
-
if (i && o === "field") {
|
876
|
-
t.state = Bt({
|
877
|
-
errors: i.errors.value,
|
878
|
-
dirty: i.meta.dirty,
|
879
|
-
valid: i.meta.valid,
|
880
|
-
touched: i.meta.touched,
|
881
|
-
value: i.value.value,
|
882
|
-
initialValue: i.meta.initialValue
|
883
|
-
}), W = { field: i, type: "field" };
|
884
|
-
return;
|
885
|
-
}
|
886
|
-
W = null;
|
887
|
-
});
|
888
|
-
}
|
889
|
-
function ir(e) {
|
890
|
-
const { textColor: t, bgColor: n } = Zt(e.meta.value.valid), r = {};
|
891
|
-
Object.values(e.getAllPathStates()).forEach((o) => {
|
892
|
-
K(r, N(o.path), lr(o, e));
|
893
|
-
});
|
894
|
-
function i(o, s = []) {
|
895
|
-
const d = [...s].pop();
|
896
|
-
return "id" in o ? Object.assign(Object.assign({}, o), { label: d || o.label }) : Oe(o) ? {
|
897
|
-
id: `${s.join(".")}`,
|
898
|
-
label: d || "",
|
899
|
-
children: Object.keys(o).map((f) => i(o[f], [...s, f]))
|
900
|
-
} : Array.isArray(o) ? {
|
901
|
-
id: `${s.join(".")}`,
|
902
|
-
label: `${d}[]`,
|
903
|
-
children: o.map((f, b) => i(f, [...s, String(b)]))
|
904
|
-
} : { id: "", label: "", children: [] };
|
905
|
-
}
|
906
|
-
const { children: a } = i(r);
|
907
|
-
return {
|
908
|
-
id: _t(e),
|
909
|
-
label: "Form",
|
910
|
-
children: a,
|
911
|
-
tags: [
|
912
|
-
{
|
913
|
-
label: "Form",
|
914
|
-
textColor: t,
|
915
|
-
backgroundColor: n
|
916
|
-
},
|
917
|
-
{
|
918
|
-
label: `${e.getAllPathStates().length} fields`,
|
919
|
-
textColor: ae.white,
|
920
|
-
backgroundColor: ae.unknown
|
921
|
-
}
|
922
|
-
]
|
923
|
-
};
|
924
|
-
}
|
925
|
-
function lr(e, t) {
|
926
|
-
return {
|
927
|
-
id: _t(t, e),
|
928
|
-
label: N(e.path),
|
929
|
-
tags: Xt(e.multiple, e.fieldsCount, e.type, e.valid, t)
|
930
|
-
};
|
931
|
-
}
|
932
|
-
function ar(e, t) {
|
933
|
-
return {
|
934
|
-
id: _t(t, e),
|
935
|
-
label: N(e.name),
|
936
|
-
tags: Xt(!1, 1, e.type, e.meta.valid, t)
|
937
|
-
};
|
938
|
-
}
|
939
|
-
function Xt(e, t, n, r, i) {
|
940
|
-
const { textColor: a, bgColor: o } = Zt(r);
|
941
|
-
return [
|
942
|
-
e ? void 0 : {
|
943
|
-
label: "Field",
|
944
|
-
textColor: a,
|
945
|
-
backgroundColor: o
|
946
|
-
},
|
947
|
-
i ? void 0 : {
|
948
|
-
label: "Standalone",
|
949
|
-
textColor: ae.black,
|
950
|
-
backgroundColor: ae.gray
|
951
|
-
},
|
952
|
-
n === "checkbox" ? {
|
953
|
-
label: "Checkbox",
|
954
|
-
textColor: ae.white,
|
955
|
-
backgroundColor: ae.blue
|
956
|
-
} : void 0,
|
957
|
-
n === "radio" ? {
|
958
|
-
label: "Radio",
|
959
|
-
textColor: ae.white,
|
960
|
-
backgroundColor: ae.purple
|
961
|
-
} : void 0,
|
962
|
-
e ? {
|
963
|
-
label: "Multiple",
|
964
|
-
textColor: ae.black,
|
965
|
-
backgroundColor: ae.orange
|
966
|
-
} : void 0
|
967
|
-
].filter(Boolean);
|
968
|
-
}
|
969
|
-
function _t(e, t) {
|
970
|
-
const n = t ? "path" in t ? "pathState" : "field" : "form", r = t ? "path" in t ? t?.path : N(t?.name) : "", i = { f: e?.formId, ff: r, type: n };
|
971
|
-
return btoa(encodeURIComponent(JSON.stringify(i)));
|
972
|
-
}
|
973
|
-
function ur(e) {
|
974
|
-
try {
|
975
|
-
const t = JSON.parse(decodeURIComponent(atob(e))), n = De[t.f];
|
976
|
-
if (!n && t.ff) {
|
977
|
-
const i = Ue[t.ff];
|
978
|
-
return i ? {
|
979
|
-
type: t.type,
|
980
|
-
field: i
|
981
|
-
} : {};
|
982
|
-
}
|
983
|
-
if (!n)
|
984
|
-
return {};
|
985
|
-
const r = n.getPathState(t.ff);
|
986
|
-
return {
|
987
|
-
type: t.type,
|
988
|
-
form: n,
|
989
|
-
state: r
|
990
|
-
};
|
991
|
-
} catch {
|
992
|
-
}
|
993
|
-
return {};
|
994
|
-
}
|
995
|
-
function Bt(e) {
|
996
|
-
return {
|
997
|
-
"Field state": [
|
998
|
-
{ key: "errors", value: e.errors },
|
999
|
-
{
|
1000
|
-
key: "initialValue",
|
1001
|
-
value: e.initialValue
|
1002
|
-
},
|
1003
|
-
{
|
1004
|
-
key: "currentValue",
|
1005
|
-
value: e.value
|
1006
|
-
},
|
1007
|
-
{
|
1008
|
-
key: "touched",
|
1009
|
-
value: e.touched
|
1010
|
-
},
|
1011
|
-
{
|
1012
|
-
key: "dirty",
|
1013
|
-
value: e.dirty
|
1014
|
-
},
|
1015
|
-
{
|
1016
|
-
key: "valid",
|
1017
|
-
value: e.valid
|
1018
|
-
}
|
1019
|
-
]
|
1020
|
-
};
|
1021
|
-
}
|
1022
|
-
function or(e) {
|
1023
|
-
const { errorBag: t, meta: n, values: r, isSubmitting: i, isValidating: a, submitCount: o } = e;
|
1024
|
-
return {
|
1025
|
-
"Form state": [
|
1026
|
-
{
|
1027
|
-
key: "submitCount",
|
1028
|
-
value: o.value
|
1029
|
-
},
|
1030
|
-
{
|
1031
|
-
key: "isSubmitting",
|
1032
|
-
value: i.value
|
1033
|
-
},
|
1034
|
-
{
|
1035
|
-
key: "isValidating",
|
1036
|
-
value: a.value
|
1037
|
-
},
|
1038
|
-
{
|
1039
|
-
key: "touched",
|
1040
|
-
value: n.value.touched
|
1041
|
-
},
|
1042
|
-
{
|
1043
|
-
key: "dirty",
|
1044
|
-
value: n.value.dirty
|
1045
|
-
},
|
1046
|
-
{
|
1047
|
-
key: "valid",
|
1048
|
-
value: n.value.valid
|
1049
|
-
},
|
1050
|
-
{
|
1051
|
-
key: "initialValues",
|
1052
|
-
value: n.value.initialValues
|
1053
|
-
},
|
1054
|
-
{
|
1055
|
-
key: "currentValues",
|
1056
|
-
value: r
|
1057
|
-
},
|
1058
|
-
{
|
1059
|
-
key: "errors",
|
1060
|
-
value: le(t.value).reduce((s, d) => {
|
1061
|
-
var f;
|
1062
|
-
const b = (f = t.value[d]) === null || f === void 0 ? void 0 : f[0];
|
1063
|
-
return b && (s[d] = b), s;
|
1064
|
-
}, {})
|
1065
|
-
}
|
1066
|
-
]
|
1067
|
-
};
|
1068
|
-
}
|
1069
|
-
function Zt(e) {
|
1070
|
-
return {
|
1071
|
-
bgColor: e ? ae.success : ae.error,
|
1072
|
-
textColor: e ? ae.black : ae.white
|
1073
|
-
};
|
1074
|
-
}
|
1075
|
-
function sr(e, t, n) {
|
1076
|
-
return $e(n?.type) ? cr(e, t, n) : en(e, t, n);
|
1077
|
-
}
|
1078
|
-
function en(e, t, n) {
|
1079
|
-
const { initialValue: r, validateOnMount: i, bails: a, type: o, checkedValue: s, label: d, validateOnValueUpdate: f, uncheckedValue: b, controlled: y, keepValueOnUnmount: T, syncVModel: V, form: B } = dr(n), H = y ? je(be) : void 0, j = B || H, q = C(() => Me(S(e))), z = C(() => {
|
1080
|
-
if (S(j?.schema))
|
1081
|
-
return;
|
1082
|
-
const w = N(t);
|
1083
|
-
return Qe(w) || he(w) || Y(w) || Array.isArray(w) ? w : Ht(w);
|
1084
|
-
}), oe = !Y(z.value) && he(S(t)), { id: J, value: m, initialValue: g, meta: p, setState: F, errors: A, flags: O } = Jn(q, {
|
1085
|
-
modelValue: r,
|
1086
|
-
form: j,
|
1087
|
-
bails: a,
|
1088
|
-
label: d,
|
1089
|
-
type: o,
|
1090
|
-
validate: z.value ? P : void 0,
|
1091
|
-
schema: oe ? t : void 0
|
1092
|
-
}), U = C(() => A.value[0]);
|
1093
|
-
V && fr({
|
1094
|
-
value: m,
|
1095
|
-
prop: V,
|
1096
|
-
handleChange: D,
|
1097
|
-
shouldValidate: () => f && !O.pendingReset
|
1098
|
-
});
|
1099
|
-
const X = (h, w = !1) => {
|
1100
|
-
p.touched = !0, w && re();
|
1101
|
-
};
|
1102
|
-
async function me(h) {
|
1103
|
-
var w, G;
|
1104
|
-
if (j?.validateSchema) {
|
1105
|
-
const { results: M } = await j.validateSchema(h);
|
1106
|
-
return (w = M[S(q)]) !== null && w !== void 0 ? w : { valid: !0, errors: [] };
|
1107
|
-
}
|
1108
|
-
return z.value ? Kt(m.value, z.value, {
|
1109
|
-
name: S(q),
|
1110
|
-
label: S(d),
|
1111
|
-
values: (G = j?.values) !== null && G !== void 0 ? G : {},
|
1112
|
-
bails: a
|
1113
|
-
}) : { valid: !0, errors: [] };
|
1114
|
-
}
|
1115
|
-
const re = ht(async () => (p.pending = !0, p.validated = !0, me("validated-only")), (h) => (O.pendingUnmount[ne.id] || (F({ errors: h.errors }), p.pending = !1, p.valid = h.valid), h)), Z = ht(async () => me("silent"), (h) => (p.valid = h.valid, h));
|
1116
|
-
function P(h) {
|
1117
|
-
return h?.mode === "silent" ? Z() : re();
|
1118
|
-
}
|
1119
|
-
function D(h, w = !0) {
|
1120
|
-
const G = Je(h);
|
1121
|
-
Fe(G, w);
|
1122
|
-
}
|
1123
|
-
Ut(() => {
|
1124
|
-
if (i)
|
1125
|
-
return re();
|
1126
|
-
(!j || !j.validateSchema) && Z();
|
1127
|
-
});
|
1128
|
-
function ce(h) {
|
1129
|
-
p.touched = h;
|
1130
|
-
}
|
1131
|
-
function Ve(h) {
|
1132
|
-
var w;
|
1133
|
-
const G = h && "value" in h ? h.value : g.value;
|
1134
|
-
F({
|
1135
|
-
value: k(G),
|
1136
|
-
initialValue: k(G),
|
1137
|
-
touched: (w = h?.touched) !== null && w !== void 0 ? w : !1,
|
1138
|
-
errors: h?.errors || []
|
1139
|
-
}), p.pending = !1, p.validated = !1, Z();
|
1140
|
-
}
|
1141
|
-
const ze = Ae();
|
1142
|
-
function Fe(h, w = !0) {
|
1143
|
-
m.value = ze && V ? Tn(h, ze.props.modelModifiers) : h, (w ? re : Z)();
|
1144
|
-
}
|
1145
|
-
function St(h) {
|
1146
|
-
F({ errors: Array.isArray(h) ? h : [h] });
|
1147
|
-
}
|
1148
|
-
const Te = C({
|
1149
|
-
get() {
|
1150
|
-
return m.value;
|
1151
|
-
},
|
1152
|
-
set(h) {
|
1153
|
-
Fe(h, f);
|
1154
|
-
}
|
1155
|
-
}), ne = {
|
1156
|
-
id: J,
|
1157
|
-
name: q,
|
1158
|
-
label: d,
|
1159
|
-
value: Te,
|
1160
|
-
meta: p,
|
1161
|
-
errors: A,
|
1162
|
-
errorMessage: U,
|
1163
|
-
type: o,
|
1164
|
-
checkedValue: s,
|
1165
|
-
uncheckedValue: b,
|
1166
|
-
bails: a,
|
1167
|
-
keepValueOnUnmount: T,
|
1168
|
-
resetField: Ve,
|
1169
|
-
handleReset: () => Ve(),
|
1170
|
-
validate: P,
|
1171
|
-
handleChange: D,
|
1172
|
-
handleBlur: X,
|
1173
|
-
setState: F,
|
1174
|
-
setTouched: ce,
|
1175
|
-
setErrors: St,
|
1176
|
-
setValue: Fe
|
1177
|
-
};
|
1178
|
-
if (Rt(Xe, ne), qe(t) && typeof N(t) != "function" && de(t, (h, w) => {
|
1179
|
-
Q(h, w) || (p.validated ? re() : Z());
|
1180
|
-
}, {
|
1181
|
-
deep: !0
|
1182
|
-
}), process.env.NODE_ENV !== "production" && (ne._vm = Ae(), de(() => Object.assign(Object.assign({ errors: A.value }, p), { value: m.value }), Ne, {
|
1183
|
-
deep: !0
|
1184
|
-
}), j || nr(ne)), !j)
|
1185
|
-
return ne;
|
1186
|
-
const tt = C(() => {
|
1187
|
-
const h = z.value;
|
1188
|
-
return !h || Y(h) || Qe(h) || he(h) || Array.isArray(h) ? {} : Object.keys(h).reduce((w, G) => {
|
1189
|
-
const M = Ln(h[G]).map((ge) => ge.__locatorRef).reduce((ge, fe) => {
|
1190
|
-
const pe = $(j.values, fe) || j.values[fe];
|
1191
|
-
return pe !== void 0 && (ge[fe] = pe), ge;
|
1192
|
-
}, {});
|
1193
|
-
return Object.assign(w, M), w;
|
1194
|
-
}, {});
|
1195
|
-
});
|
1196
|
-
return de(tt, (h, w) => {
|
1197
|
-
if (!Object.keys(h).length)
|
1198
|
-
return;
|
1199
|
-
!Q(h, w) && (p.validated ? re() : Z());
|
1200
|
-
}), Lt(() => {
|
1201
|
-
var h;
|
1202
|
-
const w = (h = S(ne.keepValueOnUnmount)) !== null && h !== void 0 ? h : S(j.keepValuesOnUnmount), G = S(q);
|
1203
|
-
if (w || !j || O.pendingUnmount[ne.id]) {
|
1204
|
-
j?.removePathState(G, J);
|
1205
|
-
return;
|
1206
|
-
}
|
1207
|
-
O.pendingUnmount[ne.id] = !0;
|
1208
|
-
const M = j.getPathState(G);
|
1209
|
-
if (Array.isArray(M?.id) && M?.multiple ? M?.id.includes(ne.id) : M?.id === ne.id) {
|
1210
|
-
if (M?.multiple && Array.isArray(M.value)) {
|
1211
|
-
const fe = M.value.findIndex((pe) => Q(pe, S(ne.checkedValue)));
|
1212
|
-
if (fe > -1) {
|
1213
|
-
const pe = [...M.value];
|
1214
|
-
pe.splice(fe, 1), j.setFieldValue(G, pe);
|
1215
|
-
}
|
1216
|
-
Array.isArray(M.id) && M.id.splice(M.id.indexOf(ne.id), 1);
|
1217
|
-
} else
|
1218
|
-
j.unsetPathValue(S(q));
|
1219
|
-
j.removePathState(G, J);
|
1220
|
-
}
|
1221
|
-
}), ne;
|
1222
|
-
}
|
1223
|
-
function dr(e) {
|
1224
|
-
const t = () => ({
|
1225
|
-
initialValue: void 0,
|
1226
|
-
validateOnMount: !1,
|
1227
|
-
bails: !0,
|
1228
|
-
label: void 0,
|
1229
|
-
validateOnValueUpdate: !0,
|
1230
|
-
keepValueOnUnmount: void 0,
|
1231
|
-
syncVModel: !1,
|
1232
|
-
controlled: !0
|
1233
|
-
}), n = !!e?.syncVModel, r = typeof e?.syncVModel == "string" ? e.syncVModel : e?.modelPropName || "modelValue", i = n && !("initialValue" in (e || {})) ? gt(Ae(), r) : e?.initialValue;
|
1234
|
-
if (!e)
|
1235
|
-
return Object.assign(Object.assign({}, t()), { initialValue: i });
|
1236
|
-
const a = "valueProp" in e ? e.valueProp : e.checkedValue, o = "standalone" in e ? !e.standalone : e.controlled, s = e?.modelPropName || e?.syncVModel || !1;
|
1237
|
-
return Object.assign(Object.assign(Object.assign({}, t()), e || {}), {
|
1238
|
-
initialValue: i,
|
1239
|
-
controlled: o ?? !0,
|
1240
|
-
checkedValue: a,
|
1241
|
-
syncVModel: s
|
1242
|
-
});
|
1243
|
-
}
|
1244
|
-
function cr(e, t, n) {
|
1245
|
-
const r = n?.standalone ? void 0 : je(be), i = n?.checkedValue, a = n?.uncheckedValue;
|
1246
|
-
function o(s) {
|
1247
|
-
const d = s.handleChange, f = C(() => {
|
1248
|
-
const y = S(s.value), T = S(i);
|
1249
|
-
return Array.isArray(y) ? y.findIndex((V) => Q(V, T)) >= 0 : Q(T, y);
|
1250
|
-
});
|
1251
|
-
function b(y, T = !0) {
|
1252
|
-
var V, B;
|
1253
|
-
if (f.value === ((V = y?.target) === null || V === void 0 ? void 0 : V.checked)) {
|
1254
|
-
T && s.validate();
|
1255
|
-
return;
|
1256
|
-
}
|
1257
|
-
const H = S(e), j = r?.getPathState(H), q = Je(y);
|
1258
|
-
let z = (B = S(i)) !== null && B !== void 0 ? B : q;
|
1259
|
-
r && j?.multiple && j.type === "checkbox" ? z = Nt($(r.values, H) || [], z, void 0) : n?.type === "checkbox" && (z = Nt(S(s.value), z, S(a))), d(z, T);
|
1260
|
-
}
|
1261
|
-
return Object.assign(Object.assign({}, s), {
|
1262
|
-
checked: f,
|
1263
|
-
checkedValue: i,
|
1264
|
-
uncheckedValue: a,
|
1265
|
-
handleChange: b
|
1266
|
-
});
|
1267
|
-
}
|
1268
|
-
return o(en(e, t, n));
|
1269
|
-
}
|
1270
|
-
function fr({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
|
1271
|
-
const i = Ae();
|
1272
|
-
if (!i || !e) {
|
1273
|
-
process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
|
1274
|
-
return;
|
1275
|
-
}
|
1276
|
-
const a = typeof e == "string" ? e : "modelValue", o = `update:${a}`;
|
1277
|
-
a in i.props && (de(t, (s) => {
|
1278
|
-
Q(s, gt(i, a)) || i.emit(o, s);
|
1279
|
-
}), de(() => gt(i, a), (s) => {
|
1280
|
-
if (s === Ke && t.value === void 0)
|
1281
|
-
return;
|
1282
|
-
const d = s === Ke ? void 0 : s;
|
1283
|
-
Q(d, t.value) || n(d, r());
|
1284
|
-
}));
|
1285
|
-
}
|
1286
|
-
function gt(e, t) {
|
1287
|
-
if (e)
|
1288
|
-
return e.props[t];
|
1289
|
-
}
|
1290
|
-
const vr = /* @__PURE__ */ Ye({
|
1291
|
-
name: "Field",
|
1292
|
-
inheritAttrs: !1,
|
1293
|
-
props: {
|
1294
|
-
as: {
|
1295
|
-
type: [String, Object],
|
1296
|
-
default: void 0
|
1297
|
-
},
|
1298
|
-
name: {
|
1299
|
-
type: String,
|
1300
|
-
required: !0
|
1301
|
-
},
|
1302
|
-
rules: {
|
1303
|
-
type: [Object, String, Function],
|
1304
|
-
default: void 0
|
1305
|
-
},
|
1306
|
-
validateOnMount: {
|
1307
|
-
type: Boolean,
|
1308
|
-
default: !1
|
1309
|
-
},
|
1310
|
-
validateOnBlur: {
|
1311
|
-
type: Boolean,
|
1312
|
-
default: void 0
|
1313
|
-
},
|
1314
|
-
validateOnChange: {
|
1315
|
-
type: Boolean,
|
1316
|
-
default: void 0
|
1317
|
-
},
|
1318
|
-
validateOnInput: {
|
1319
|
-
type: Boolean,
|
1320
|
-
default: void 0
|
1321
|
-
},
|
1322
|
-
validateOnModelUpdate: {
|
1323
|
-
type: Boolean,
|
1324
|
-
default: void 0
|
1325
|
-
},
|
1326
|
-
bails: {
|
1327
|
-
type: Boolean,
|
1328
|
-
default: () => Ee().bails
|
1329
|
-
},
|
1330
|
-
label: {
|
1331
|
-
type: String,
|
1332
|
-
default: void 0
|
1333
|
-
},
|
1334
|
-
uncheckedValue: {
|
1335
|
-
type: null,
|
1336
|
-
default: void 0
|
1337
|
-
},
|
1338
|
-
modelValue: {
|
1339
|
-
type: null,
|
1340
|
-
default: Ke
|
1341
|
-
},
|
1342
|
-
modelModifiers: {
|
1343
|
-
type: null,
|
1344
|
-
default: () => ({})
|
1345
|
-
},
|
1346
|
-
"onUpdate:modelValue": {
|
1347
|
-
type: null,
|
1348
|
-
default: void 0
|
1349
|
-
},
|
1350
|
-
standalone: {
|
1351
|
-
type: Boolean,
|
1352
|
-
default: !1
|
1353
|
-
},
|
1354
|
-
keepValue: {
|
1355
|
-
type: Boolean,
|
1356
|
-
default: void 0
|
1357
|
-
}
|
1358
|
-
},
|
1359
|
-
setup(e, t) {
|
1360
|
-
const n = Se(e, "rules"), r = Se(e, "name"), i = Se(e, "label"), a = Se(e, "uncheckedValue"), o = Se(e, "keepValue"), { errors: s, value: d, errorMessage: f, validate: b, handleChange: y, handleBlur: T, setTouched: V, resetField: B, handleReset: H, meta: j, checked: q, setErrors: z, setValue: oe } = sr(r, n, {
|
1361
|
-
validateOnMount: e.validateOnMount,
|
1362
|
-
bails: e.bails,
|
1363
|
-
standalone: e.standalone,
|
1364
|
-
type: t.attrs.type,
|
1365
|
-
initialValue: mr(e, t),
|
1366
|
-
// Only for checkboxes and radio buttons
|
1367
|
-
checkedValue: t.attrs.value,
|
1368
|
-
uncheckedValue: a,
|
1369
|
-
label: i,
|
1370
|
-
validateOnValueUpdate: e.validateOnModelUpdate,
|
1371
|
-
keepValueOnUnmount: o,
|
1372
|
-
syncVModel: !0
|
1373
|
-
}), J = function(O, U = !0) {
|
1374
|
-
y(O, U);
|
1375
|
-
}, m = C(() => {
|
1376
|
-
const { validateOnInput: A, validateOnChange: O, validateOnBlur: U, validateOnModelUpdate: X } = hr(e);
|
1377
|
-
function me(D) {
|
1378
|
-
T(D, U), Y(t.attrs.onBlur) && t.attrs.onBlur(D);
|
1379
|
-
}
|
1380
|
-
function re(D) {
|
1381
|
-
J(D, A), Y(t.attrs.onInput) && t.attrs.onInput(D);
|
1382
|
-
}
|
1383
|
-
function Z(D) {
|
1384
|
-
J(D, O), Y(t.attrs.onChange) && t.attrs.onChange(D);
|
1385
|
-
}
|
1386
|
-
const P = {
|
1387
|
-
name: e.name,
|
1388
|
-
onBlur: me,
|
1389
|
-
onInput: re,
|
1390
|
-
onChange: Z
|
1391
|
-
};
|
1392
|
-
return P["onUpdate:modelValue"] = (D) => J(D, X), P;
|
1393
|
-
}), g = C(() => {
|
1394
|
-
const A = Object.assign({}, m.value);
|
1395
|
-
$e(t.attrs.type) && q && (A.checked = q.value);
|
1396
|
-
const O = Dt(e, t);
|
1397
|
-
return kn(O, t.attrs) && (A.value = d.value), A;
|
1398
|
-
}), p = C(() => Object.assign(Object.assign({}, m.value), { modelValue: d.value }));
|
1399
|
-
function F() {
|
1400
|
-
return {
|
1401
|
-
field: g.value,
|
1402
|
-
componentField: p.value,
|
1403
|
-
value: d.value,
|
1404
|
-
meta: j,
|
1405
|
-
errors: s.value,
|
1406
|
-
errorMessage: f.value,
|
1407
|
-
validate: b,
|
1408
|
-
resetField: B,
|
1409
|
-
handleChange: J,
|
1410
|
-
handleInput: (A) => J(A, !1),
|
1411
|
-
handleReset: H,
|
1412
|
-
handleBlur: m.value.onBlur,
|
1413
|
-
setTouched: V,
|
1414
|
-
setErrors: z,
|
1415
|
-
setValue: oe
|
1416
|
-
};
|
1417
|
-
}
|
1418
|
-
return t.expose({
|
1419
|
-
value: d,
|
1420
|
-
meta: j,
|
1421
|
-
errors: s,
|
1422
|
-
errorMessage: f,
|
1423
|
-
setErrors: z,
|
1424
|
-
setTouched: V,
|
1425
|
-
setValue: oe,
|
1426
|
-
reset: B,
|
1427
|
-
validate: b,
|
1428
|
-
handleChange: y
|
1429
|
-
}), () => {
|
1430
|
-
const A = pt(Dt(e, t)), O = et(A, t, F);
|
1431
|
-
return A ? He(A, Object.assign(Object.assign({}, t.attrs), g.value), O) : O;
|
1432
|
-
};
|
1433
|
-
}
|
1434
|
-
});
|
1435
|
-
function Dt(e, t) {
|
1436
|
-
let n = e.as || "";
|
1437
|
-
return !e.as && !t.slots.default && (n = "input"), n;
|
1438
|
-
}
|
1439
|
-
function hr(e) {
|
1440
|
-
var t, n, r, i;
|
1441
|
-
const { validateOnInput: a, validateOnChange: o, validateOnBlur: s, validateOnModelUpdate: d } = Ee();
|
1442
|
-
return {
|
1443
|
-
validateOnInput: (t = e.validateOnInput) !== null && t !== void 0 ? t : a,
|
1444
|
-
validateOnChange: (n = e.validateOnChange) !== null && n !== void 0 ? n : o,
|
1445
|
-
validateOnBlur: (r = e.validateOnBlur) !== null && r !== void 0 ? r : s,
|
1446
|
-
validateOnModelUpdate: (i = e.validateOnModelUpdate) !== null && i !== void 0 ? i : d
|
1447
|
-
};
|
1448
|
-
}
|
1449
|
-
function mr(e, t) {
|
1450
|
-
return $e(t.attrs.type) ? wt(e, "modelValue") ? e.modelValue : void 0 : wt(e, "modelValue") ? e.modelValue : t.attrs.value;
|
1451
|
-
}
|
1452
|
-
const jr = vr;
|
1453
|
-
let gr = 0;
|
1454
|
-
const We = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
|
1455
|
-
function tn(e) {
|
1456
|
-
const t = e?.initialValues || {}, n = Object.assign({}, S(t)), r = N(e?.validationSchema);
|
1457
|
-
return r && he(r) && Y(r.cast) ? k(r.cast(n) || {}) : k(n);
|
1458
|
-
}
|
1459
|
-
function pr(e) {
|
1460
|
-
var t;
|
1461
|
-
const n = gr++;
|
1462
|
-
let r = 0;
|
1463
|
-
const i = ue(!1), a = ue(!1), o = ue(0), s = [], d = Ge(tn(e)), f = ue([]), b = ue({}), y = ue({}), T = Mn(() => {
|
1464
|
-
y.value = f.value.reduce((u, l) => (u[Me(S(l.path))] = l, u), {});
|
1465
|
-
});
|
1466
|
-
function V(u, l) {
|
1467
|
-
const c = P(u);
|
1468
|
-
if (!c) {
|
1469
|
-
typeof u == "string" && (b.value[Me(u)] = mt(l));
|
1470
|
-
return;
|
1471
|
-
}
|
1472
|
-
if (typeof u == "string") {
|
1473
|
-
const v = Me(u);
|
1474
|
-
b.value[v] && delete b.value[v];
|
1475
|
-
}
|
1476
|
-
c.errors = mt(l), c.valid = !c.errors.length;
|
1477
|
-
}
|
1478
|
-
function B(u) {
|
1479
|
-
le(u).forEach((l) => {
|
1480
|
-
V(l, u[l]);
|
1481
|
-
});
|
1482
|
-
}
|
1483
|
-
e?.initialErrors && B(e.initialErrors);
|
1484
|
-
const H = C(() => {
|
1485
|
-
const u = f.value.reduce((l, c) => (c.errors.length && (l[c.path] = c.errors), l), {});
|
1486
|
-
return Object.assign(Object.assign({}, b.value), u);
|
1487
|
-
}), j = C(() => le(H.value).reduce((u, l) => {
|
1488
|
-
const c = H.value[l];
|
1489
|
-
return c?.length && (u[l] = c[0]), u;
|
1490
|
-
}, {})), q = C(() => f.value.reduce((u, l) => (u[l.path] = { name: l.path || "", label: l.label || "" }, u), {})), z = C(() => f.value.reduce((u, l) => {
|
1491
|
-
var c;
|
1492
|
-
return u[l.path] = (c = l.bails) !== null && c !== void 0 ? c : !0, u;
|
1493
|
-
}, {})), oe = Object.assign({}, e?.initialErrors || {}), J = (t = e?.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: m, originalInitialValues: g, setInitialValues: p } = br(f, d, e), F = yr(f, d, g, j), A = C(() => f.value.reduce((u, l) => {
|
1494
|
-
const c = $(d, l.path);
|
1495
|
-
return K(u, l.path, c), u;
|
1496
|
-
}, {})), O = e?.validationSchema;
|
1497
|
-
function U(u, l) {
|
1498
|
-
var c, v;
|
1499
|
-
const E = C(() => $(m.value, S(u))), I = y.value[S(u)], _ = l?.type === "checkbox" || l?.type === "radio";
|
1500
|
-
if (I && _) {
|
1501
|
-
I.multiple = !0;
|
1502
|
-
const se = r++;
|
1503
|
-
return Array.isArray(I.id) ? I.id.push(se) : I.id = [I.id, se], I.fieldsCount++, I.__flags.pendingUnmount[se] = !1, I;
|
1504
|
-
}
|
1505
|
-
const L = C(() => $(d, S(u))), x = S(u), ee = ce.findIndex((se) => se === x);
|
1506
|
-
ee !== -1 && ce.splice(ee, 1);
|
1507
|
-
const R = C(() => {
|
1508
|
-
var se, Pe, at, ut;
|
1509
|
-
const ot = S(O);
|
1510
|
-
if (he(ot))
|
1511
|
-
return (Pe = (se = ot.describe) === null || se === void 0 ? void 0 : se.call(ot, S(u)).required) !== null && Pe !== void 0 ? Pe : !1;
|
1512
|
-
const st = S(l?.schema);
|
1513
|
-
return he(st) && (ut = (at = st.describe) === null || at === void 0 ? void 0 : at.call(st).required) !== null && ut !== void 0 ? ut : !1;
|
1514
|
-
}), te = r++, ie = Ge({
|
1515
|
-
id: te,
|
1516
|
-
path: u,
|
1517
|
-
touched: !1,
|
1518
|
-
pending: !1,
|
1519
|
-
valid: !0,
|
1520
|
-
validated: !!(!((c = oe[x]) === null || c === void 0) && c.length),
|
1521
|
-
required: R,
|
1522
|
-
initialValue: E,
|
1523
|
-
errors: fn([]),
|
1524
|
-
bails: (v = l?.bails) !== null && v !== void 0 ? v : !1,
|
1525
|
-
label: l?.label,
|
1526
|
-
type: l?.type || "default",
|
1527
|
-
value: L,
|
1528
|
-
multiple: !1,
|
1529
|
-
__flags: {
|
1530
|
-
pendingUnmount: { [te]: !1 },
|
1531
|
-
pendingReset: !1
|
1532
|
-
},
|
1533
|
-
fieldsCount: 1,
|
1534
|
-
validate: l?.validate,
|
1535
|
-
dirty: C(() => !Q(N(L), N(E)))
|
1536
|
-
});
|
1537
|
-
return f.value.push(ie), y.value[x] = ie, T(), j.value[x] && !oe[x] && ve(() => {
|
1538
|
-
_e(x, { mode: "silent" });
|
1539
|
-
}), qe(u) && de(u, (se) => {
|
1540
|
-
T();
|
1541
|
-
const Pe = k(L.value);
|
1542
|
-
y.value[se] = ie, ve(() => {
|
1543
|
-
K(d, se, Pe);
|
1544
|
-
});
|
1545
|
-
}), ie;
|
1546
|
-
}
|
1547
|
-
const X = Tt(jt, 5), me = Tt(jt, 5), re = ht(async (u) => await (u === "silent" ? X() : me()), (u, [l]) => {
|
1548
|
-
const c = le(h.errorBag.value), E = [
|
1549
|
-
.../* @__PURE__ */ new Set([...le(u.results), ...f.value.map((I) => I.path), ...c])
|
1550
|
-
].sort().reduce((I, _) => {
|
1551
|
-
var L;
|
1552
|
-
const x = _, ee = P(x) || D(x), R = ((L = u.results[x]) === null || L === void 0 ? void 0 : L.errors) || [], te = S(ee?.path) || x, ie = Vr({ errors: R, valid: !R.length }, I.results[te]);
|
1553
|
-
return I.results[te] = ie, ie.valid || (I.errors[te] = ie.errors[0]), ee && b.value[te] && delete b.value[te], ee ? (ee.valid = ie.valid, l === "silent" || l === "validated-only" && !ee.validated || V(ee, ie.errors), I) : (V(te, R), I);
|
1554
|
-
}, {
|
1555
|
-
valid: u.valid,
|
1556
|
-
results: {},
|
1557
|
-
errors: {},
|
1558
|
-
source: u.source
|
1559
|
-
});
|
1560
|
-
return u.values && (E.values = u.values, E.source = u.source), le(E.results).forEach((I) => {
|
1561
|
-
var _;
|
1562
|
-
const L = P(I);
|
1563
|
-
L && l !== "silent" && (l === "validated-only" && !L.validated || V(L, (_ = E.results[I]) === null || _ === void 0 ? void 0 : _.errors));
|
1564
|
-
}), E;
|
1565
|
-
});
|
1566
|
-
function Z(u) {
|
1567
|
-
f.value.forEach(u);
|
1568
|
-
}
|
1569
|
-
function P(u) {
|
1570
|
-
const l = typeof u == "string" ? Me(u) : u;
|
1571
|
-
return typeof l == "string" ? y.value[l] : l;
|
1572
|
-
}
|
1573
|
-
function D(u) {
|
1574
|
-
return f.value.filter((c) => u.startsWith(c.path)).reduce((c, v) => c ? v.path.length > c.path.length ? v : c : v, void 0);
|
1575
|
-
}
|
1576
|
-
let ce = [], Ve;
|
1577
|
-
function ze(u) {
|
1578
|
-
return ce.push(u), Ve || (Ve = ve(() => {
|
1579
|
-
[...ce].sort().reverse().forEach((c) => {
|
1580
|
-
kt(d, c);
|
1581
|
-
}), ce = [], Ve = null;
|
1582
|
-
})), Ve;
|
1583
|
-
}
|
1584
|
-
function Fe(u) {
|
1585
|
-
return function(c, v) {
|
1586
|
-
return function(I) {
|
1587
|
-
return I instanceof Event && (I.preventDefault(), I.stopPropagation()), Z((_) => _.touched = !0), i.value = !0, o.value++, Ie().then((_) => {
|
1588
|
-
const L = k(d);
|
1589
|
-
if (_.valid && typeof c == "function") {
|
1590
|
-
const x = k(A.value);
|
1591
|
-
let ee = u ? x : L;
|
1592
|
-
return _.values && (ee = _.source === "schema" ? _.values : Object.assign({}, ee, _.values)), c(ee, {
|
1593
|
-
evt: I,
|
1594
|
-
controlledValues: x,
|
1595
|
-
setErrors: B,
|
1596
|
-
setFieldError: V,
|
1597
|
-
setTouched: nt,
|
1598
|
-
setFieldTouched: fe,
|
1599
|
-
setValues: M,
|
1600
|
-
setFieldValue: w,
|
1601
|
-
resetForm: rt,
|
1602
|
-
resetField: Et
|
1603
|
-
});
|
1604
|
-
}
|
1605
|
-
!_.valid && typeof v == "function" && v({
|
1606
|
-
values: L,
|
1607
|
-
evt: I,
|
1608
|
-
errors: _.errors,
|
1609
|
-
results: _.results
|
1610
|
-
});
|
1611
|
-
}).then((_) => (i.value = !1, _), (_) => {
|
1612
|
-
throw i.value = !1, _;
|
1613
|
-
});
|
1614
|
-
};
|
1615
|
-
};
|
1616
|
-
}
|
1617
|
-
const Te = Fe(!1);
|
1618
|
-
Te.withControlled = Fe(!0);
|
1619
|
-
function ne(u, l) {
|
1620
|
-
const c = f.value.findIndex((E) => E.path === u && (Array.isArray(E.id) ? E.id.includes(l) : E.id === l)), v = f.value[c];
|
1621
|
-
if (!(c === -1 || !v)) {
|
1622
|
-
if (ve(() => {
|
1623
|
-
_e(u, { mode: "silent", warn: !1 });
|
1624
|
-
}), v.multiple && v.fieldsCount && v.fieldsCount--, Array.isArray(v.id)) {
|
1625
|
-
const E = v.id.indexOf(l);
|
1626
|
-
E >= 0 && v.id.splice(E, 1), delete v.__flags.pendingUnmount[l];
|
1627
|
-
}
|
1628
|
-
(!v.multiple || v.fieldsCount <= 0) && (f.value.splice(c, 1), At(u), T(), delete y.value[u]);
|
1629
|
-
}
|
1630
|
-
}
|
1631
|
-
function tt(u) {
|
1632
|
-
le(y.value).forEach((l) => {
|
1633
|
-
l.startsWith(u) && delete y.value[l];
|
1634
|
-
}), f.value = f.value.filter((l) => !l.path.startsWith(u)), ve(() => {
|
1635
|
-
T();
|
1636
|
-
});
|
1637
|
-
}
|
1638
|
-
const h = {
|
1639
|
-
formId: n,
|
1640
|
-
values: d,
|
1641
|
-
controlledValues: A,
|
1642
|
-
errorBag: H,
|
1643
|
-
errors: j,
|
1644
|
-
schema: O,
|
1645
|
-
submitCount: o,
|
1646
|
-
meta: F,
|
1647
|
-
isSubmitting: i,
|
1648
|
-
isValidating: a,
|
1649
|
-
fieldArrays: s,
|
1650
|
-
keepValuesOnUnmount: J,
|
1651
|
-
validateSchema: N(O) ? re : void 0,
|
1652
|
-
validate: Ie,
|
1653
|
-
setFieldError: V,
|
1654
|
-
validateField: _e,
|
1655
|
-
setFieldValue: w,
|
1656
|
-
setValues: M,
|
1657
|
-
setErrors: B,
|
1658
|
-
setFieldTouched: fe,
|
1659
|
-
setTouched: nt,
|
1660
|
-
resetForm: rt,
|
1661
|
-
resetField: Et,
|
1662
|
-
handleSubmit: Te,
|
1663
|
-
useFieldModel: un,
|
1664
|
-
defineInputBinds: on,
|
1665
|
-
defineComponentBinds: sn,
|
1666
|
-
defineField: lt,
|
1667
|
-
stageInitialValue: ln,
|
1668
|
-
unsetInitialValue: At,
|
1669
|
-
setFieldInitialValue: it,
|
1670
|
-
createPathState: U,
|
1671
|
-
getPathState: P,
|
1672
|
-
unsetPathValue: ze,
|
1673
|
-
removePathState: ne,
|
1674
|
-
initialValues: m,
|
1675
|
-
getAllPathStates: () => f.value,
|
1676
|
-
destroyPath: tt,
|
1677
|
-
isFieldTouched: pe,
|
1678
|
-
isFieldDirty: nn,
|
1679
|
-
isFieldValid: rn
|
1680
|
-
};
|
1681
|
-
function w(u, l, c = !0) {
|
1682
|
-
const v = k(l), E = typeof u == "string" ? u : u.path;
|
1683
|
-
P(E) || U(E), K(d, E, v), c && _e(E);
|
1684
|
-
}
|
1685
|
-
function G(u, l = !0) {
|
1686
|
-
le(d).forEach((c) => {
|
1687
|
-
delete d[c];
|
1688
|
-
}), le(u).forEach((c) => {
|
1689
|
-
w(c, u[c], !1);
|
1690
|
-
}), l && Ie();
|
1691
|
-
}
|
1692
|
-
function M(u, l = !0) {
|
1693
|
-
Re(d, u), s.forEach((c) => c && c.reset()), l && Ie();
|
1694
|
-
}
|
1695
|
-
function ge(u, l) {
|
1696
|
-
const c = P(S(u)) || U(u);
|
1697
|
-
return C({
|
1698
|
-
get() {
|
1699
|
-
return c.value;
|
1700
|
-
},
|
1701
|
-
set(v) {
|
1702
|
-
var E;
|
1703
|
-
const I = S(u);
|
1704
|
-
w(I, v, (E = S(l)) !== null && E !== void 0 ? E : !1);
|
1705
|
-
}
|
1706
|
-
});
|
1707
|
-
}
|
1708
|
-
function fe(u, l) {
|
1709
|
-
const c = P(u);
|
1710
|
-
c && (c.touched = l);
|
1711
|
-
}
|
1712
|
-
function pe(u) {
|
1713
|
-
const l = P(u);
|
1714
|
-
return l ? l.touched : f.value.filter((c) => c.path.startsWith(u)).some((c) => c.touched);
|
1715
|
-
}
|
1716
|
-
function nn(u) {
|
1717
|
-
const l = P(u);
|
1718
|
-
return l ? l.dirty : f.value.filter((c) => c.path.startsWith(u)).some((c) => c.dirty);
|
1719
|
-
}
|
1720
|
-
function rn(u) {
|
1721
|
-
const l = P(u);
|
1722
|
-
return l ? l.valid : f.value.filter((c) => c.path.startsWith(u)).every((c) => c.valid);
|
1723
|
-
}
|
1724
|
-
function nt(u) {
|
1725
|
-
if (typeof u == "boolean") {
|
1726
|
-
Z((l) => {
|
1727
|
-
l.touched = u;
|
1728
|
-
});
|
1729
|
-
return;
|
1730
|
-
}
|
1731
|
-
le(u).forEach((l) => {
|
1732
|
-
fe(l, !!u[l]);
|
1733
|
-
});
|
1734
|
-
}
|
1735
|
-
function Et(u, l) {
|
1736
|
-
var c;
|
1737
|
-
const v = l && "value" in l ? l.value : $(m.value, u), E = P(u);
|
1738
|
-
E && (E.__flags.pendingReset = !0), it(u, k(v), !0), w(u, v, !1), fe(u, (c = l?.touched) !== null && c !== void 0 ? c : !1), V(u, l?.errors || []), ve(() => {
|
1739
|
-
E && (E.__flags.pendingReset = !1);
|
1740
|
-
});
|
1741
|
-
}
|
1742
|
-
function rt(u, l) {
|
1743
|
-
let c = k(u?.values ? u.values : g.value);
|
1744
|
-
c = l?.force ? c : Re(g.value, c), c = he(O) && Y(O.cast) ? O.cast(c) : c, p(c, { force: l?.force }), Z((v) => {
|
1745
|
-
var E;
|
1746
|
-
v.__flags.pendingReset = !0, v.validated = !1, v.touched = ((E = u?.touched) === null || E === void 0 ? void 0 : E[v.path]) || !1, w(v.path, $(c, v.path), !1), V(v.path, void 0);
|
1747
|
-
}), l?.force ? G(c, !1) : M(c, !1), B(u?.errors || {}), o.value = u?.submitCount || 0, ve(() => {
|
1748
|
-
Ie({ mode: "silent" }), Z((v) => {
|
1749
|
-
v.__flags.pendingReset = !1;
|
1750
|
-
});
|
1751
|
-
});
|
1752
|
-
}
|
1753
|
-
async function Ie(u) {
|
1754
|
-
const l = u?.mode || "force";
|
1755
|
-
if (l === "force" && Z((_) => _.validated = !0), h.validateSchema)
|
1756
|
-
return h.validateSchema(l);
|
1757
|
-
a.value = !0;
|
1758
|
-
const c = await Promise.all(f.value.map((_) => _.validate ? _.validate(u).then((L) => ({
|
1759
|
-
key: _.path,
|
1760
|
-
valid: L.valid,
|
1761
|
-
errors: L.errors,
|
1762
|
-
value: L.value
|
1763
|
-
})) : Promise.resolve({
|
1764
|
-
key: _.path,
|
1765
|
-
valid: !0,
|
1766
|
-
errors: [],
|
1767
|
-
value: void 0
|
1768
|
-
})));
|
1769
|
-
a.value = !1;
|
1770
|
-
const v = {}, E = {}, I = {};
|
1771
|
-
for (const _ of c)
|
1772
|
-
v[_.key] = {
|
1773
|
-
valid: _.valid,
|
1774
|
-
errors: _.errors
|
1775
|
-
}, _.value && K(I, _.key, _.value), _.errors.length && (E[_.key] = _.errors[0]);
|
1776
|
-
return {
|
1777
|
-
valid: c.every((_) => _.valid),
|
1778
|
-
results: v,
|
1779
|
-
errors: E,
|
1780
|
-
values: I,
|
1781
|
-
source: "fields"
|
1782
|
-
};
|
1783
|
-
}
|
1784
|
-
async function _e(u, l) {
|
1785
|
-
var c;
|
1786
|
-
const v = P(u);
|
1787
|
-
if (v && l?.mode !== "silent" && (v.validated = !0), O) {
|
1788
|
-
const { results: I } = await re(l?.mode || "validated-only");
|
1789
|
-
return I[u] || { errors: [], valid: !0 };
|
1790
|
-
}
|
1791
|
-
return v?.validate ? v.validate(l) : (!v && ((c = l?.warn) !== null && c !== void 0 ? c : !0) && process.env.NODE_ENV !== "production" && $t(`field with path ${u} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
1792
|
-
}
|
1793
|
-
function At(u) {
|
1794
|
-
kt(m.value, u);
|
1795
|
-
}
|
1796
|
-
function ln(u, l, c = !1) {
|
1797
|
-
it(u, l), K(d, u, l), c && !e?.initialValues && K(g.value, u, k(l));
|
1798
|
-
}
|
1799
|
-
function it(u, l, c = !1) {
|
1800
|
-
K(m.value, u, k(l)), c && K(g.value, u, k(l));
|
1801
|
-
}
|
1802
|
-
async function jt() {
|
1803
|
-
const u = N(O);
|
1804
|
-
if (!u)
|
1805
|
-
return { valid: !0, results: {}, errors: {}, source: "none" };
|
1806
|
-
a.value = !0;
|
1807
|
-
const l = Qe(u) || he(u) ? await Kn(u, d) : await Qn(u, d, {
|
1808
|
-
names: q.value,
|
1809
|
-
bailsMap: z.value
|
1810
|
-
});
|
1811
|
-
return a.value = !1, l;
|
1812
|
-
}
|
1813
|
-
const an = Te((u, { evt: l }) => {
|
1814
|
-
qt(l) && l.target.submit();
|
1815
|
-
});
|
1816
|
-
Ut(() => {
|
1817
|
-
if (e?.initialErrors && B(e.initialErrors), e?.initialTouched && nt(e.initialTouched), e?.validateOnMount) {
|
1818
|
-
Ie();
|
1819
|
-
return;
|
1820
|
-
}
|
1821
|
-
h.validateSchema && h.validateSchema("silent");
|
1822
|
-
}), qe(O) && de(O, () => {
|
1823
|
-
var u;
|
1824
|
-
(u = h.validateSchema) === null || u === void 0 || u.call(h, "validated-only");
|
1825
|
-
}), Rt(be, h), process.env.NODE_ENV !== "production" && (tr(h), de(() => Object.assign(Object.assign({ errors: H.value }, F.value), { values: d, isSubmitting: i.value, isValidating: a.value, submitCount: o.value }), Ne, {
|
1826
|
-
deep: !0
|
1827
|
-
}));
|
1828
|
-
function lt(u, l) {
|
1829
|
-
const c = Y(l) ? void 0 : l?.label, v = P(S(u)) || U(u, { label: c }), E = () => Y(l) ? l(xe(v, We)) : l || {};
|
1830
|
-
function I() {
|
1831
|
-
var R;
|
1832
|
-
v.touched = !0, ((R = E().validateOnBlur) !== null && R !== void 0 ? R : Ee().validateOnBlur) && _e(v.path);
|
1833
|
-
}
|
1834
|
-
function _() {
|
1835
|
-
var R;
|
1836
|
-
((R = E().validateOnInput) !== null && R !== void 0 ? R : Ee().validateOnInput) && ve(() => {
|
1837
|
-
_e(v.path);
|
1838
|
-
});
|
1839
|
-
}
|
1840
|
-
function L() {
|
1841
|
-
var R;
|
1842
|
-
((R = E().validateOnChange) !== null && R !== void 0 ? R : Ee().validateOnChange) && ve(() => {
|
1843
|
-
_e(v.path);
|
1844
|
-
});
|
1845
|
-
}
|
1846
|
-
const x = C(() => {
|
1847
|
-
const R = {
|
1848
|
-
onChange: L,
|
1849
|
-
onInput: _,
|
1850
|
-
onBlur: I
|
1851
|
-
};
|
1852
|
-
return Y(l) ? Object.assign(Object.assign({}, R), l(xe(v, We)).props || {}) : l?.props ? Object.assign(Object.assign({}, R), l.props(xe(v, We))) : R;
|
1853
|
-
});
|
1854
|
-
return [ge(u, () => {
|
1855
|
-
var R, te, ie;
|
1856
|
-
return (ie = (R = E().validateOnModelUpdate) !== null && R !== void 0 ? R : (te = Ee()) === null || te === void 0 ? void 0 : te.validateOnModelUpdate) !== null && ie !== void 0 ? ie : !0;
|
1857
|
-
}), x];
|
1858
|
-
}
|
1859
|
-
function un(u) {
|
1860
|
-
return Array.isArray(u) ? u.map((l) => ge(l, !0)) : ge(u);
|
1861
|
-
}
|
1862
|
-
function on(u, l) {
|
1863
|
-
const [c, v] = lt(u, l);
|
1864
|
-
function E() {
|
1865
|
-
v.value.onBlur();
|
1866
|
-
}
|
1867
|
-
function I(L) {
|
1868
|
-
const x = Je(L);
|
1869
|
-
w(S(u), x, !1), v.value.onInput();
|
1870
|
-
}
|
1871
|
-
function _(L) {
|
1872
|
-
const x = Je(L);
|
1873
|
-
w(S(u), x, !1), v.value.onChange();
|
1874
|
-
}
|
1875
|
-
return C(() => Object.assign(Object.assign({}, v.value), {
|
1876
|
-
onBlur: E,
|
1877
|
-
onInput: I,
|
1878
|
-
onChange: _,
|
1879
|
-
value: c.value
|
1880
|
-
}));
|
1881
|
-
}
|
1882
|
-
function sn(u, l) {
|
1883
|
-
const [c, v] = lt(u, l), E = P(S(u));
|
1884
|
-
function I(_) {
|
1885
|
-
c.value = _;
|
1886
|
-
}
|
1887
|
-
return C(() => {
|
1888
|
-
const _ = Y(l) ? l(xe(E, We)) : l || {};
|
1889
|
-
return Object.assign({ [_.model || "modelValue"]: c.value, [`onUpdate:${_.model || "modelValue"}`]: I }, v.value);
|
1890
|
-
});
|
1891
|
-
}
|
1892
|
-
return Object.assign(Object.assign({}, h), { values: dn(d), handleReset: () => rt(), submitForm: an });
|
1893
|
-
}
|
1894
|
-
function yr(e, t, n, r) {
|
1895
|
-
const i = {
|
1896
|
-
touched: "some",
|
1897
|
-
pending: "some",
|
1898
|
-
valid: "every"
|
1899
|
-
}, a = C(() => !Q(t, N(n)));
|
1900
|
-
function o() {
|
1901
|
-
const d = e.value;
|
1902
|
-
return le(i).reduce((f, b) => {
|
1903
|
-
const y = i[b];
|
1904
|
-
return f[b] = d[y]((T) => T[b]), f;
|
1905
|
-
}, {});
|
1906
|
-
}
|
1907
|
-
const s = Ge(o());
|
1908
|
-
return cn(() => {
|
1909
|
-
const d = o();
|
1910
|
-
s.touched = d.touched, s.valid = d.valid, s.pending = d.pending;
|
1911
|
-
}), C(() => Object.assign(Object.assign({ initialValues: N(n) }, s), { valid: s.valid && !le(r.value).length, dirty: a.value }));
|
1912
|
-
}
|
1913
|
-
function br(e, t, n) {
|
1914
|
-
const r = tn(n), i = ue(r), a = ue(k(r));
|
1915
|
-
function o(s, d) {
|
1916
|
-
d?.force ? (i.value = k(s), a.value = k(s)) : (i.value = Re(k(i.value) || {}, k(s)), a.value = Re(k(a.value) || {}, k(s))), d?.updateFields && e.value.forEach((f) => {
|
1917
|
-
if (f.touched)
|
1918
|
-
return;
|
1919
|
-
const y = $(i.value, f.path);
|
1920
|
-
K(t, f.path, k(y));
|
1921
|
-
});
|
1922
|
-
}
|
1923
|
-
return {
|
1924
|
-
initialValues: i,
|
1925
|
-
originalInitialValues: a,
|
1926
|
-
setInitialValues: o
|
1927
|
-
};
|
1928
|
-
}
|
1929
|
-
function Vr(e, t) {
|
1930
|
-
return t ? {
|
1931
|
-
valid: e.valid && t.valid,
|
1932
|
-
errors: [...e.errors, ...t.errors]
|
1933
|
-
} : e;
|
1934
|
-
}
|
1935
|
-
const Or = /* @__PURE__ */ Ye({
|
1936
|
-
name: "Form",
|
1937
|
-
inheritAttrs: !1,
|
1938
|
-
props: {
|
1939
|
-
as: {
|
1940
|
-
type: null,
|
1941
|
-
default: "form"
|
1942
|
-
},
|
1943
|
-
validationSchema: {
|
1944
|
-
type: Object,
|
1945
|
-
default: void 0
|
1946
|
-
},
|
1947
|
-
initialValues: {
|
1948
|
-
type: Object,
|
1949
|
-
default: void 0
|
1950
|
-
},
|
1951
|
-
initialErrors: {
|
1952
|
-
type: Object,
|
1953
|
-
default: void 0
|
1954
|
-
},
|
1955
|
-
initialTouched: {
|
1956
|
-
type: Object,
|
1957
|
-
default: void 0
|
1958
|
-
},
|
1959
|
-
validateOnMount: {
|
1960
|
-
type: Boolean,
|
1961
|
-
default: !1
|
1962
|
-
},
|
1963
|
-
onSubmit: {
|
1964
|
-
type: Function,
|
1965
|
-
default: void 0
|
1966
|
-
},
|
1967
|
-
onInvalidSubmit: {
|
1968
|
-
type: Function,
|
1969
|
-
default: void 0
|
1970
|
-
},
|
1971
|
-
keepValues: {
|
1972
|
-
type: Boolean,
|
1973
|
-
default: !1
|
1974
|
-
}
|
1975
|
-
},
|
1976
|
-
setup(e, t) {
|
1977
|
-
const n = Se(e, "validationSchema"), r = Se(e, "keepValues"), { errors: i, errorBag: a, values: o, meta: s, isSubmitting: d, isValidating: f, submitCount: b, controlledValues: y, validate: T, validateField: V, handleReset: B, resetForm: H, handleSubmit: j, setErrors: q, setFieldError: z, setFieldValue: oe, setValues: J, setFieldTouched: m, setTouched: g, resetField: p } = pr({
|
1978
|
-
validationSchema: n.value ? n : void 0,
|
1979
|
-
initialValues: e.initialValues,
|
1980
|
-
initialErrors: e.initialErrors,
|
1981
|
-
initialTouched: e.initialTouched,
|
1982
|
-
validateOnMount: e.validateOnMount,
|
1983
|
-
keepValuesOnUnmount: r
|
1984
|
-
}), F = j((P, { evt: D }) => {
|
1985
|
-
qt(D) && D.target.submit();
|
1986
|
-
}, e.onInvalidSubmit), A = e.onSubmit ? j(e.onSubmit, e.onInvalidSubmit) : F;
|
1987
|
-
function O(P) {
|
1988
|
-
bt(P) && P.preventDefault(), B(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
|
1989
|
-
}
|
1990
|
-
function U(P, D) {
|
1991
|
-
return j(typeof P == "function" && !D ? P : D, e.onInvalidSubmit)(P);
|
1992
|
-
}
|
1993
|
-
function X() {
|
1994
|
-
return k(o);
|
1995
|
-
}
|
1996
|
-
function me() {
|
1997
|
-
return k(s.value);
|
1998
|
-
}
|
1999
|
-
function re() {
|
2000
|
-
return k(i.value);
|
2001
|
-
}
|
2002
|
-
function Z() {
|
2003
|
-
return {
|
2004
|
-
meta: s.value,
|
2005
|
-
errors: i.value,
|
2006
|
-
errorBag: a.value,
|
2007
|
-
values: o,
|
2008
|
-
isSubmitting: d.value,
|
2009
|
-
isValidating: f.value,
|
2010
|
-
submitCount: b.value,
|
2011
|
-
controlledValues: y.value,
|
2012
|
-
validate: T,
|
2013
|
-
validateField: V,
|
2014
|
-
handleSubmit: U,
|
2015
|
-
handleReset: B,
|
2016
|
-
submitForm: F,
|
2017
|
-
setErrors: q,
|
2018
|
-
setFieldError: z,
|
2019
|
-
setFieldValue: oe,
|
2020
|
-
setValues: J,
|
2021
|
-
setFieldTouched: m,
|
2022
|
-
setTouched: g,
|
2023
|
-
resetForm: H,
|
2024
|
-
resetField: p,
|
2025
|
-
getValues: X,
|
2026
|
-
getMeta: me,
|
2027
|
-
getErrors: re
|
2028
|
-
};
|
2029
|
-
}
|
2030
|
-
return t.expose({
|
2031
|
-
setFieldError: z,
|
2032
|
-
setErrors: q,
|
2033
|
-
setFieldValue: oe,
|
2034
|
-
setValues: J,
|
2035
|
-
setFieldTouched: m,
|
2036
|
-
setTouched: g,
|
2037
|
-
resetForm: H,
|
2038
|
-
validate: T,
|
2039
|
-
validateField: V,
|
2040
|
-
resetField: p,
|
2041
|
-
getValues: X,
|
2042
|
-
getMeta: me,
|
2043
|
-
getErrors: re,
|
2044
|
-
values: o,
|
2045
|
-
meta: s,
|
2046
|
-
errors: i
|
2047
|
-
}), function() {
|
2048
|
-
const D = e.as === "form" ? e.as : e.as ? pt(e.as) : null, ce = et(D, t, Z);
|
2049
|
-
return D ? He(D, Object.assign(Object.assign(Object.assign({}, D === "form" ? {
|
2050
|
-
// Disables native validation as vee-validate will handle it.
|
2051
|
-
novalidate: !0
|
2052
|
-
} : {}), t.attrs), { onSubmit: A, onReset: O }), ce) : ce;
|
2053
|
-
};
|
2054
|
-
}
|
2055
|
-
}), Fr = Or;
|
2056
|
-
function _r(e) {
|
2057
|
-
const t = je(be, void 0), n = ue([]), r = () => {
|
2058
|
-
}, i = {
|
2059
|
-
fields: n,
|
2060
|
-
remove: r,
|
2061
|
-
push: r,
|
2062
|
-
swap: r,
|
2063
|
-
insert: r,
|
2064
|
-
update: r,
|
2065
|
-
replace: r,
|
2066
|
-
prepend: r,
|
2067
|
-
move: r
|
2068
|
-
};
|
2069
|
-
if (!t)
|
2070
|
-
return process.env.NODE_ENV !== "production" && Be("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"), i;
|
2071
|
-
if (!N(e))
|
2072
|
-
return process.env.NODE_ENV !== "production" && Be("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"), i;
|
2073
|
-
const a = t.fieldArrays.find((m) => N(m.path) === N(e));
|
2074
|
-
if (a)
|
2075
|
-
return a;
|
2076
|
-
let o = 0;
|
2077
|
-
function s() {
|
2078
|
-
return $(t?.values, S(e), []) || [];
|
2079
|
-
}
|
2080
|
-
function d() {
|
2081
|
-
const m = s();
|
2082
|
-
Array.isArray(m) && (n.value = m.map((g, p) => b(g, p, n.value)), f());
|
2083
|
-
}
|
2084
|
-
d();
|
2085
|
-
function f() {
|
2086
|
-
const m = n.value.length;
|
2087
|
-
for (let g = 0; g < m; g++) {
|
2088
|
-
const p = n.value[g];
|
2089
|
-
p.isFirst = g === 0, p.isLast = g === m - 1;
|
2090
|
-
}
|
2091
|
-
}
|
2092
|
-
function b(m, g, p) {
|
2093
|
-
if (p && !Ce(g) && p[g])
|
2094
|
-
return p[g];
|
2095
|
-
const F = o++;
|
2096
|
-
return {
|
2097
|
-
key: F,
|
2098
|
-
value: Pn({
|
2099
|
-
get() {
|
2100
|
-
const O = $(t?.values, S(e), []) || [], U = n.value.findIndex((X) => X.key === F);
|
2101
|
-
return U === -1 ? m : O[U];
|
2102
|
-
},
|
2103
|
-
set(O) {
|
2104
|
-
const U = n.value.findIndex((X) => X.key === F);
|
2105
|
-
if (U === -1) {
|
2106
|
-
process.env.NODE_ENV !== "production" && Be("Attempting to update a non-existent array item");
|
2107
|
-
return;
|
2108
|
-
}
|
2109
|
-
q(U, O);
|
2110
|
-
}
|
2111
|
-
}),
|
2112
|
-
// will be auto unwrapped
|
2113
|
-
isFirst: !1,
|
2114
|
-
isLast: !1
|
2115
|
-
};
|
2116
|
-
}
|
2117
|
-
function y() {
|
2118
|
-
f(), t?.validate({ mode: "silent" });
|
2119
|
-
}
|
2120
|
-
function T(m) {
|
2121
|
-
const g = S(e), p = $(t?.values, g);
|
2122
|
-
if (!p || !Array.isArray(p))
|
2123
|
-
return;
|
2124
|
-
const F = [...p];
|
2125
|
-
F.splice(m, 1);
|
2126
|
-
const A = g + `[${m}]`;
|
2127
|
-
t.destroyPath(A), t.unsetInitialValue(A), K(t.values, g, F), n.value.splice(m, 1), y();
|
2128
|
-
}
|
2129
|
-
function V(m) {
|
2130
|
-
const g = k(m), p = S(e), F = $(t?.values, p), A = Ce(F) ? [] : F;
|
2131
|
-
if (!Array.isArray(A))
|
2132
|
-
return;
|
2133
|
-
const O = [...A];
|
2134
|
-
O.push(g), t.stageInitialValue(p + `[${O.length - 1}]`, g), K(t.values, p, O), n.value.push(b(g)), y();
|
2135
|
-
}
|
2136
|
-
function B(m, g) {
|
2137
|
-
const p = S(e), F = $(t?.values, p);
|
2138
|
-
if (!Array.isArray(F) || !(m in F) || !(g in F))
|
2139
|
-
return;
|
2140
|
-
const A = [...F], O = [...n.value], U = A[m];
|
2141
|
-
A[m] = A[g], A[g] = U;
|
2142
|
-
const X = O[m];
|
2143
|
-
O[m] = O[g], O[g] = X, K(t.values, p, A), n.value = O, f();
|
2144
|
-
}
|
2145
|
-
function H(m, g) {
|
2146
|
-
const p = k(g), F = S(e), A = $(t?.values, F);
|
2147
|
-
if (!Array.isArray(A) || A.length < m)
|
2148
|
-
return;
|
2149
|
-
const O = [...A], U = [...n.value];
|
2150
|
-
O.splice(m, 0, p), U.splice(m, 0, b(p)), K(t.values, F, O), n.value = U, y();
|
2151
|
-
}
|
2152
|
-
function j(m) {
|
2153
|
-
const g = S(e);
|
2154
|
-
t.stageInitialValue(g, m), K(t.values, g, m), d(), y();
|
2155
|
-
}
|
2156
|
-
function q(m, g) {
|
2157
|
-
const p = S(e), F = $(t?.values, p);
|
2158
|
-
!Array.isArray(F) || F.length - 1 < m || (K(t.values, `${p}[${m}]`, g), t?.validate({ mode: "validated-only" }));
|
2159
|
-
}
|
2160
|
-
function z(m) {
|
2161
|
-
const g = k(m), p = S(e), F = $(t?.values, p), A = Ce(F) ? [] : F;
|
2162
|
-
if (!Array.isArray(A))
|
2163
|
-
return;
|
2164
|
-
const O = [g, ...A];
|
2165
|
-
K(t.values, p, O), t.stageInitialValue(p + "[0]", g), n.value.unshift(b(g)), y();
|
2166
|
-
}
|
2167
|
-
function oe(m, g) {
|
2168
|
-
const p = S(e), F = $(t?.values, p), A = Ce(F) ? [] : [...F];
|
2169
|
-
if (!Array.isArray(F) || !(m in F) || !(g in F))
|
2170
|
-
return;
|
2171
|
-
const O = [...n.value], U = O[m];
|
2172
|
-
O.splice(m, 1), O.splice(g, 0, U);
|
2173
|
-
const X = A[m];
|
2174
|
-
A.splice(m, 1), A.splice(g, 0, X), K(t.values, p, A), n.value = O, y();
|
2175
|
-
}
|
2176
|
-
const J = {
|
2177
|
-
fields: n,
|
2178
|
-
remove: T,
|
2179
|
-
push: V,
|
2180
|
-
swap: B,
|
2181
|
-
insert: H,
|
2182
|
-
update: q,
|
2183
|
-
replace: j,
|
2184
|
-
prepend: z,
|
2185
|
-
move: oe
|
2186
|
-
};
|
2187
|
-
return t.fieldArrays.push(Object.assign({ path: e, reset: d }, J)), Lt(() => {
|
2188
|
-
const m = t.fieldArrays.findIndex((g) => S(g.path) === S(e));
|
2189
|
-
m >= 0 && t.fieldArrays.splice(m, 1);
|
2190
|
-
}), de(s, (m) => {
|
2191
|
-
const g = n.value.map((p) => p.value);
|
2192
|
-
Q(m, g) || d();
|
2193
|
-
}), J;
|
2194
|
-
}
|
2195
|
-
const Sr = /* @__PURE__ */ Ye({
|
2196
|
-
name: "FieldArray",
|
2197
|
-
inheritAttrs: !1,
|
2198
|
-
props: {
|
2199
|
-
name: {
|
2200
|
-
type: String,
|
2201
|
-
required: !0
|
2202
|
-
}
|
2203
|
-
},
|
2204
|
-
setup(e, t) {
|
2205
|
-
const { push: n, remove: r, swap: i, insert: a, replace: o, update: s, prepend: d, move: f, fields: b } = _r(() => e.name);
|
2206
|
-
function y() {
|
2207
|
-
return {
|
2208
|
-
fields: b.value,
|
2209
|
-
push: n,
|
2210
|
-
remove: r,
|
2211
|
-
swap: i,
|
2212
|
-
insert: a,
|
2213
|
-
update: s,
|
2214
|
-
replace: o,
|
2215
|
-
prepend: d,
|
2216
|
-
move: f
|
2217
|
-
};
|
2218
|
-
}
|
2219
|
-
return t.expose({
|
2220
|
-
push: n,
|
2221
|
-
remove: r,
|
2222
|
-
swap: i,
|
2223
|
-
insert: a,
|
2224
|
-
update: s,
|
2225
|
-
replace: o,
|
2226
|
-
prepend: d,
|
2227
|
-
move: f
|
2228
|
-
}), () => et(void 0, t, y);
|
2229
|
-
}
|
2230
|
-
}), Ir = Sr, Er = /* @__PURE__ */ Ye({
|
2231
|
-
name: "ErrorMessage",
|
2232
|
-
props: {
|
2233
|
-
as: {
|
2234
|
-
type: String,
|
2235
|
-
default: void 0
|
2236
|
-
},
|
2237
|
-
name: {
|
2238
|
-
type: String,
|
2239
|
-
required: !0
|
2240
|
-
}
|
2241
|
-
},
|
2242
|
-
setup(e, t) {
|
2243
|
-
const n = Le(be, void 0), r = C(() => n?.errors.value[e.name]);
|
2244
|
-
function i() {
|
2245
|
-
return {
|
2246
|
-
message: r.value
|
2247
|
-
};
|
2248
|
-
}
|
2249
|
-
return () => {
|
2250
|
-
if (!r.value)
|
2251
|
-
return;
|
2252
|
-
const a = e.as ? pt(e.as) : e.as, o = et(a, t, i), s = Object.assign({ role: "alert" }, t.attrs);
|
2253
|
-
return !a && (Array.isArray(o) || !o) && o?.length ? o : (Array.isArray(o) || !o) && !o?.length ? He(a || "span", s, r.value) : He(a, s, o);
|
2254
|
-
};
|
2255
|
-
}
|
2256
|
-
}), wr = Er;
|
2257
|
-
function Cr(e) {
|
2258
|
-
const t = Ot(e);
|
2259
|
-
return C(() => {
|
2260
|
-
var n, r;
|
2261
|
-
return t && (r = "meta" in t ? t.meta.dirty : (n = t?.value) === null || n === void 0 ? void 0 : n.dirty) !== null && r !== void 0 ? r : !1;
|
2262
|
-
});
|
2263
|
-
}
|
2264
|
-
function kr(e) {
|
2265
|
-
const t = Ot(e);
|
2266
|
-
return C(() => {
|
2267
|
-
var n, r;
|
2268
|
-
return t && (r = "meta" in t ? t.meta.touched : (n = t?.value) === null || n === void 0 ? void 0 : n.touched) !== null && r !== void 0 ? r : !1;
|
2269
|
-
});
|
2270
|
-
}
|
2271
|
-
function Nr(e) {
|
2272
|
-
const t = Ot(e);
|
2273
|
-
return C(() => {
|
2274
|
-
var n, r;
|
2275
|
-
return t && (r = "meta" in t ? t.meta.valid : (n = t?.value) === null || n === void 0 ? void 0 : n.valid) !== null && r !== void 0 ? r : !1;
|
2276
|
-
});
|
2277
|
-
}
|
2278
|
-
function Tr(e) {
|
2279
|
-
const t = je(be), n = e ? void 0 : Le(Xe);
|
2280
|
-
return C(() => e ? $(t?.values, S(e)) : S(n?.value));
|
2281
|
-
}
|
2282
|
-
function Pr() {
|
2283
|
-
const e = je(be);
|
2284
|
-
return e || process.env.NODE_ENV !== "production" && Be("No vee-validate <Form /> or `useForm` was detected in the component tree"), C(() => e?.values || {});
|
2285
|
-
}
|
2286
|
-
function Mr(e) {
|
2287
|
-
je(be);
|
2288
|
-
const t = Le(Xe);
|
2289
|
-
return C(() => t?.errorMessage.value);
|
2290
|
-
}
|
2291
|
-
export {
|
2292
|
-
wr as E,
|
2293
|
-
Fr as F,
|
2294
|
-
jr as a,
|
2295
|
-
Ir as b,
|
2296
|
-
sr as c,
|
2297
|
-
_r as d,
|
2298
|
-
Xe as e,
|
2299
|
-
Nr as f,
|
2300
|
-
Cr as g,
|
2301
|
-
kr as h,
|
2302
|
-
Mr as i,
|
2303
|
-
Pr as j,
|
2304
|
-
Tr as k,
|
2305
|
-
Ze as l,
|
2306
|
-
Vt as m,
|
2307
|
-
pr as u
|
2308
|
-
};
|