@pantograph/vue 0.27.10 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-v9gNXyn5.js → ActionButton.vue_vue_type_script_setup_true_lang-C0xZ6m49.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DEtXFuT4.js → ActionButton.vue_vue_type_script_setup_true_lang-CyCrRVTK.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-p4dL1Gko.js → Alert.vue_vue_type_style_index_0_lang-Dh2G44fS.js} +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-C8MzfVOk.js → Alert.vue_vue_type_style_index_0_lang-_hTeoKJU.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CWObVQTV.js → Avatar.vue_vue_type_style_index_0_lang-DFFrnopY.js} +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-sRuIAJc9.js → Avatar.vue_vue_type_style_index_0_lang-D_SXlwkT.js} +4 -4
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CjM2eHxl.js → Badge.vue_vue_type_script_setup_true_lang-C1_SBsMO.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-BP3OmkDG.js → Badge.vue_vue_type_script_setup_true_lang-DWxSrLnd.js} +1 -1
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DwkMDLPp.js → BaseBadge.vue_vue_type_style_index_0_lang-DKhEpesQ.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Cgdc_pvz.js → BaseBadge.vue_vue_type_style_index_0_lang-jkvUvKs2.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DPgYIiQ0.js → BaseButton.vue_vue_type_style_index_0_lang-BghRlm-s.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-j05pPl4c.js → BaseButton.vue_vue_type_style_index_0_lang-D2cKm_bz.js} +3 -3
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-C4NwIPPo.js → BaseInput.vue_vue_type_style_index_0_lang-BpBhsQhP.js} +20 -19
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-kdLi78ax.js +1 -0
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BQU4_Lua.js → Button.vue_vue_type_script_setup_true_lang-CrVAgpiG.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-Cl6tKGGP.js → Button.vue_vue_type_script_setup_true_lang-De3yMf4x.js} +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-bWMji_p5.js → Checkbox.vue_vue_type_style_index_0_lang-B9bgtU46.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-DnfmdUgk.js → Checkbox.vue_vue_type_style_index_0_lang-DoCCVxxa.js} +1 -1
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-DsOuKYAw.js → Chip.vue_vue_type_style_index_0_lang-B0bD8fOk.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-Ddebarn3.js → Chip.vue_vue_type_style_index_0_lang-kxWOoU3I.js} +3 -3
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BgtYrMG8.js → ColorPicker.vue_vue_type_style_index_0_lang-C1ED1wUI.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BGdoePn2.js → ColorPicker.vue_vue_type_style_index_0_lang-CeigXw6s.js} +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-CUFAWu5f.js → ColorSwatch-B_ppanPj.js} +1 -1
- package/dist/{ColorSwatch-cqNMaSvB.js → ColorSwatch-CHLKl-fv.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-ZdMYWeO7.js → ColorSwatch.vue_vue_type_style_index_0_lang-C-nnAfDb.js} +2 -2
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-BGDS4VzJ.js → ColorSwatch.vue_vue_type_style_index_0_lang-UDZgDNhI.js} +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CqpV8REK.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-D2HxdxgJ.js} +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-B2nE5eC-.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-GxsDdWAE.js} +3 -3
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BMMDPe7y.js → ColorTrigger.vue_vue_type_style_index_0_lang-BcSPlAvH.js} +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-tLIbnaNq.js → ColorTrigger.vue_vue_type_style_index_0_lang-Zpn_J-nN.js} +2 -2
- package/dist/Combobox/Combobox.d.ts +6 -4
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +6 -7
- package/dist/Combobox.vue_vue_type_style_index_0_lang-CFQPY_5A.js +1 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-R4jyjKx0.js +1124 -0
- package/dist/Comment/Comment.d.ts +1 -3
- package/dist/Comment/CommentEditor.d.ts +296 -16
- package/dist/Comment/CommentMention.d.ts +24 -22
- package/dist/Comment/index.js +270 -296
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/DataTable.d.ts +43 -197
- package/dist/DataTable/components/DataTableBatchActions.d.ts +17 -0
- package/dist/DataTable/components/DataTableBatchActionsContent.d.ts +2 -0
- package/dist/DataTable/components/DataTableColGroup.d.ts +2 -0
- package/dist/DataTable/components/DataTableContent.d.ts +48 -0
- package/dist/DataTable/components/DataTableEmpty.d.ts +2 -0
- package/dist/DataTable/components/DataTableHeader.d.ts +5 -0
- package/dist/DataTable/components/DataTableHeaderCell.d.ts +442 -0
- package/dist/DataTable/components/DataTableHeaderCellActionsPopover.d.ts +8 -0
- package/dist/DataTable/components/DataTableLazyLoading.d.ts +53 -0
- package/dist/DataTable/components/DataTableLoading.d.ts +21 -0
- package/dist/DataTable/components/DataTableRow.d.ts +7 -0
- package/dist/DataTable/index.d.ts +1 -2
- package/dist/DataTable/index.js +4 -3
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types/cell.d.ts +11 -0
- package/dist/DataTable/types/column.d.ts +58 -0
- package/dist/DataTable/types/common.d.ts +12 -0
- package/dist/DataTable/{types.d.ts → types/index.d.ts} +29 -16
- package/dist/DataTable/types/select.d.ts +21 -0
- package/dist/DataTable/utils/index.d.ts +8 -0
- package/dist/DataTable/utils/useCell.d.ts +17 -0
- package/dist/DataTable/utils/useCol.d.ts +16 -0
- package/dist/DataTable/utils/useColumnFixed.d.ts +19 -0
- package/dist/DataTable/utils/useColumnSize.d.ts +9 -0
- package/dist/DataTable/utils/useColumnWrap.d.ts +6 -0
- package/dist/DataTable/utils/useFilter.d.ts +13 -0
- package/dist/DataTable/utils/useSelection.d.ts +28 -0
- package/dist/DataTable/utils/useSort.d.ts +11 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-D3bUDHDD.js +1688 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-Ix_14tDu.js +1 -0
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-CIEiqOyg.js → DropZone.vue_vue_type_style_index_0_lang-ClY42FKh.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-DAdn3SV-.js → DropZone.vue_vue_type_style_index_0_lang-DY2CfU4s.js} +2 -2
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-GEhjGuWp.js → Empty.vue_vue_type_style_index_0_lang-CTH1BAo8.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.js → Empty.vue_vue_type_style_index_0_lang-CjMpBxax.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-C1bIx2Ad.js → FloatButton.vue_vue_type_script_setup_true_lang-93Z6n8ML.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Djn-mHpD.js → FloatButton.vue_vue_type_script_setup_true_lang-D6sOckSj.js} +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/{FormValidation.vue_vue_type_style_index_0_lang-DmI2Cicu.js → FormValidation.vue_vue_type_style_index_0_lang-C6xpTVji.js} +766 -788
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-DhMENZzr.js +9 -0
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CqtdWghp.js → GOPicker.vue_vue_type_style_index_0_lang-BYuk9Ta8.js} +9 -9
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CQe6LIMj.js → GOPicker.vue_vue_type_style_index_0_lang-ymr7zTCT.js} +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CxrU_AN6.js → GraphicalObject.vue_vue_type_script_setup_true_lang-B1yA0-fJ.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-B0QyiUKw.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CeT1O_S8.js} +2 -2
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BgNRt-Av.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C0XMznFH.js} +2 -2
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BR6gx5A6.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DYSJUbYI.js} +1 -1
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-CQw5rAAp.js +1 -0
- package/dist/{HoverCard.vue_vue_type_style_index_0_lang-CtSwm0oH.js → HoverCard.vue_vue_type_style_index_0_lang-DJYtpCcR.js} +28 -27
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-DPe3mUfh.js +48 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-Df7xWWKv.js +1 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-1WWZ64Us.js → IconButton.vue_vue_type_script_setup_true_lang-BUIJKHGa.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-EXpTHZs6.js → IconButton.vue_vue_type_script_setup_true_lang-Duk4aN8-.js} +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BR3SMJJL.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-X68u36AJ.js +122 -0
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-D22BSj0l.js → IndentLevel.vue_vue_type_style_index_0_lang-B2CJqjMa.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BUK5LxWK.js → IndentLevel.vue_vue_type_style_index_0_lang-BDFJAmdt.js} +2 -2
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-rKOaH8eB.js → Indicator.vue_vue_type_script_setup_true_lang-Bfm_0SXO.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DAMwZQWn.js → Indicator.vue_vue_type_script_setup_true_lang-lWlckYfr.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-8xzs2Ugc.js → Input.vue_vue_type_script_setup_true_lang-BoH5ri_1.js} +30 -26
- package/dist/Input.vue_vue_type_script_setup_true_lang-C4UhM_1n.js +1 -0
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-CNWtwCOO.js → InputNumber.vue_vue_type_script_setup_true_lang-COnnTWR0.js} +61 -55
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DtT9hjIh.js +1 -0
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-BCfWLm9R.js → Kbd.vue_vue_type_style_index_0_lang-DorgZth-.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-D1FVFk72.js → Kbd.vue_vue_type_style_index_0_lang-z3D6rl2v.js} +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-DwExesoL.js → Label.vue_vue_type_style_index_0_lang-BI6ldQ-j.js} +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-DCjjITld.js → Label.vue_vue_type_style_index_0_lang-nFFLusRD.js} +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-brdTffbT.js → Link.vue_vue_type_style_index_0_lang-C9Cgyex5.js} +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-B1uxGXxI.js → Link.vue_vue_type_style_index_0_lang-CZKJpHXw.js} +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DWhISIbu.js → MenuItem.vue_vue_type_style_index_0_lang-BnzgoZlS.js} +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DiVJUHjS.js → MenuItem.vue_vue_type_style_index_0_lang-DD8kfks-.js} +3 -3
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-CSHShI5C.js → Pagination.vue_vue_type_style_index_0_lang-BCtSnM0p.js} +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-D94Qn7sm.js → Pagination.vue_vue_type_style_index_0_lang-BPqz0l4L.js} +4 -4
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/type.d.ts +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-CBbRhcN9.js → Popover.vue_vue_type_style_index_0_lang-CpPisJIC.js} +75 -74
- package/dist/Popover.vue_vue_type_style_index_0_lang-DQJCWgtP.js +1 -0
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-B4GBo6sb.js → Progress.vue_vue_type_style_index_0_lang-9gEnfMt3.js} +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-DtG1mmcQ.js → Progress.vue_vue_type_style_index_0_lang-C2-senRO.js} +2 -2
- package/dist/ScrollContainer/Mask.d.ts +2 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -0
- package/dist/ScrollContainer/ScrollContainer.model.d.ts +1 -1
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-oFYBYAHr.js +1 -0
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js → ScrollContainer.vue_vue_type_style_index_0_lang-uN8OhXm4.js} +80 -77
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-q28c-KjP.js → Segmented.vue_vue_type_style_index_0_lang-2GvPMHN9.js} +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-HKjApQIO.js → Segmented.vue_vue_type_style_index_0_lang-BT9qVATP.js} +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-DxySmS5O.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-FNin5p3N.js +781 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-TFcjdHpb.js → Shortcut.vue_vue_type_style_index_0_lang-gDNzK-gM.js} +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-C-wsusvY.js → Shortcut.vue_vue_type_style_index_0_lang-zXjU0WmT.js} +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-COQRqpmY.js → Spinner.vue_vue_type_style_index_0_lang-Cgo_qdud.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-k30PU_tO.js → Spinner.vue_vue_type_style_index_0_lang-CxxeJ0kY.js} +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-Cc1XCDc2.js → Switch.vue_vue_type_style_index_0_lang-CO6z_CP9.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-6euiPiT-.js → Switch.vue_vue_type_style_index_0_lang-Dg7-38zx.js} +1 -1
- package/dist/TFoot.vue_vue_type_style_index_0_lang-U5JbdZuv.js +248 -0
- package/dist/TFoot.vue_vue_type_style_index_0_lang-_wYbaKgU.js +1 -0
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-s7YRQosV.js → TabContent.vue_vue_type_script_setup_true_lang-BTJvJkMW.js} +135 -128
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-oU5diNub.js +1 -0
- package/dist/Table/TFoot.d.ts +22 -0
- package/dist/Table/THead.d.ts +1 -0
- package/dist/Table/Td.d.ts +3 -0
- package/dist/Table/Th.d.ts +2 -0
- package/dist/Table/index.d.ts +1 -0
- package/dist/Table/index.js +5 -4
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabList.d.ts +1 -0
- package/dist/Tabs/index.js +1 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +3 -0
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-CLhSsqGd.js → Textarea.vue_vue_type_style_index_0_lang-De3Hf7KF.js} +36 -32
- package/dist/Textarea.vue_vue_type_style_index_0_lang-i_ao8fj2.js +1 -0
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-BABaPZd9.js → Tree.vue_vue_type_style_index_0_lang-BFHerbO8.js} +149 -167
- package/dist/Tree.vue_vue_type_style_index_0_lang-DabHAmO4.js +1 -0
- package/dist/Upload/Upload.d.ts +2 -2
- package/dist/Upload/UploadList.d.ts +2 -2
- package/dist/Upload/index.d.ts +0 -1
- package/dist/Upload/index.js +14 -15
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-1-vZfb8m.js → Upload.vue_vue_type_style_index_0_lang-CNL2WWLb.js} +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-ZhQlg7HP.js → Upload.vue_vue_type_style_index_0_lang-zNnaGyQW.js} +13 -14
- package/dist/{get-Zt0OZYlq.js → get-BOaMZ4Zz.js} +1 -1
- package/dist/{get-DwC3C6S0.js → get-HKLqrvO9.js} +1 -0
- package/dist/head-MF68U5aK.js +1 -0
- package/dist/head-UxjF2DdW.js +19 -0
- package/dist/index-4j_iV_pN.js +1 -0
- package/dist/index-ZfMi9Is4.js +22 -0
- package/dist/index.js +133 -132
- package/dist/index.umd.cjs +1 -1
- package/dist/isSymbol-BaAMV3hm.js +1 -0
- package/dist/isSymbol-J4zJKWp4.js +56 -0
- package/dist/style/index.css +1 -1
- package/package.json +4 -4
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-Tx73X2wE.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-B7tM9UBJ.js +0 -1151
- package/dist/Combobox.vue_vue_type_style_index_0_lang-CigrhLCR.js +0 -1
- package/dist/DataTable/DataTable.model.d.ts +0 -58
- package/dist/DataTable/useCell.d.ts +0 -15
- package/dist/DataTable/useCol.d.ts +0 -11
- package/dist/DataTable/useColumnWrap.d.ts +0 -12
- package/dist/DataTable/useSelection.d.ts +0 -28
- package/dist/DataTable/useSort.d.ts +0 -21
- package/dist/DataTable.vue_vue_type_style_index_0_lang-B2ObeeJP.js +0 -879
- package/dist/DataTable.vue_vue_type_style_index_0_lang-BUZ8G07U.js +0 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-ByTzoA28.js +0 -9
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-GZ6S9Pud.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CMFYMG-2.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js +0 -47
- package/dist/Image.vue_vue_type_style_index_0_lang-BPzJtTmm.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BhfQY5dY.js +0 -126
- package/dist/Input.vue_vue_type_script_setup_true_lang-C6YGbdin.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CKg_NSdF.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DSoOzWTR.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-CaQX_xGk.js +0 -787
- package/dist/Select.vue_vue_type_style_index_0_lang-DCNDx__M.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-CnapuGqj.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-DaCjVYIl.js +0 -198
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-CRNljMkW.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-S0QXyiqu.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BatNCRm4.js +0 -1
- /package/dist/{Comment/CommentFileList.d.ts → DataTable/components/DataTableFooter.d.ts} +0 -0
|
@@ -1,66 +1,44 @@
|
|
|
1
|
-
import { ref as ee, reactive as et, computed as w, toValue as p, unref as A, onMounted as
|
|
2
|
-
import { _ as vr } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { getComponentOptions as
|
|
4
|
-
import { cloneDeep as we, isEqual as br, isString as Rt, debounce as Ar, omitBy as Vr, pick as Or, isUndefined as
|
|
1
|
+
import { ref as ee, reactive as et, computed as w, toValue as p, unref as A, onMounted as on, isRef as tt, watch as G, provide as At, readonly as Qn, watchEffect as er, nextTick as q, shallowRef as tr, warn as nr, getCurrentInstance as $e, onUnmounted as un, onBeforeUnmount as rr, inject as ir, defineComponent as Et, createElementBlock as _e, openBlock as pe, withModifiers as ar, normalizeClass as Se, renderSlot as ke, normalizeProps as Xe, guardReactiveProps as Qe, useSlots as sn, createVNode as cn, createCommentVNode as gt, createTextVNode as lr, toDisplayString as or, Fragment as ur, renderList as sr, createBlock as cr, withCtx as dr, mergeProps as fr, h as dn } from "vue";
|
|
2
|
+
import { _ as vr } from "./Icon.vue_vue_type_style_index_0_lang-DPe3mUfh.js";
|
|
3
|
+
import { getComponentOptions as jt, provideFormContext as mr, FormItemSizes as hr, injectFormContext as gr, provideFormItemContext as yr, FormItemStatuses as pr, isEmptyElement as Bt } from "@pantograph/utils-vue";
|
|
4
|
+
import { cloneDeep as we, isEqual as br, isString as Rt, debounce as Ar, omitBy as Vr, pick as Or, isUndefined as _r } from "es-toolkit";
|
|
5
5
|
import { getBemBlock as fn, usePCId as vn, normCls as Ce, getBemElement as We, generateVariantClassList as mn } from "@pantograph/utils";
|
|
6
6
|
import { i as Ie } from "./isObject-vmP43YLW.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { i as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
17
|
-
}
|
|
18
|
-
function Dt(e) {
|
|
19
|
-
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
20
|
-
}
|
|
21
|
-
const Ir = "[object RegExp]", Nr = "[object String]", Fr = "[object Number]", Pr = "[object Boolean]", zt = "[object Arguments]", Tr = "[object Symbol]", kr = "[object Date]", xr = "[object Map]", Zr = "[object Set]", Br = "[object Array]", Rr = "[object Function]", Ur = "[object ArrayBuffer]", ht = "[object Object]", Mr = "[object Error]", Dr = "[object DataView]", zr = "[object Uint8Array]", Lr = "[object Uint8ClampedArray]", Wr = "[object Uint16Array]", qr = "[object Uint32Array]", Kr = "[object BigUint64Array]", Gr = "[object Int8Array]", Hr = "[object Int16Array]", Yr = "[object Int32Array]", Jr = "[object BigInt64Array]", Xr = "[object Float32Array]", Qr = "[object Float64Array]", ei = /^(?:0|[1-9]\d*)$/;
|
|
22
|
-
function ti(e, t = Number.MAX_SAFE_INTEGER) {
|
|
23
|
-
switch (typeof e) {
|
|
24
|
-
case "number":
|
|
25
|
-
return Number.isInteger(e) && e >= 0 && e < t;
|
|
26
|
-
case "symbol":
|
|
27
|
-
return !1;
|
|
28
|
-
case "string":
|
|
29
|
-
return ei.test(e);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function ni(e) {
|
|
33
|
-
return typeof e == "symbol" || e instanceof Symbol;
|
|
34
|
-
}
|
|
35
|
-
const ri = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ii = /^\w*$/;
|
|
36
|
-
function oi(e, t) {
|
|
37
|
-
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ni(e) ? !0 : typeof e == "string" && (ii.test(e) || !ri.test(e)) || t != null && Object.hasOwn(t, e);
|
|
7
|
+
import { t as Sr, a as $r, i as Er, g as Mt } from "./get-HKLqrvO9.js";
|
|
8
|
+
import { i as jr, e as hn, a as wr, g as Ut, f as Cr, r as Ir, s as Pr, d as Fr, b as Nr, n as kr, c as Tr, o as yt, h as Dt, j as xr, k as Zr, l as Br, m as Rr, p as Mr, q as Ur, t as Dr, u as zr, v as Lr, w as Wr, x as qr, y as Kr, z as Gr, A as Hr, B as Yr, C as Jr, D as Xr, E as zt } from "./isSymbol-J4zJKWp4.js";
|
|
9
|
+
import { _ as Qr } from "./Label.vue_vue_type_style_index_0_lang-nFFLusRD.js";
|
|
10
|
+
import { cva as gn } from "class-variance-authority";
|
|
11
|
+
import { i as ei } from "./isArray-QlWcxgml.js";
|
|
12
|
+
import { i as ti } from "./isNumber-BduWbB-B.js";
|
|
13
|
+
const ni = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ri = /^\w*$/;
|
|
14
|
+
function ii(e, t) {
|
|
15
|
+
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || jr(e) ? !0 : typeof e == "string" && (ri.test(e) || !ni.test(e)) || t != null && Object.hasOwn(t, e);
|
|
38
16
|
}
|
|
39
17
|
const ai = (e, t, n) => {
|
|
40
18
|
const r = e[t];
|
|
41
|
-
(!(Object.hasOwn(e, t) &&
|
|
19
|
+
(!(Object.hasOwn(e, t) && hn(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
42
20
|
};
|
|
43
21
|
function li(e, t, n, r) {
|
|
44
22
|
if (e == null && !Ie(e))
|
|
45
23
|
return e;
|
|
46
|
-
const i =
|
|
47
|
-
let
|
|
48
|
-
for (let u = 0; u < i.length &&
|
|
49
|
-
const c =
|
|
50
|
-
if (
|
|
24
|
+
const i = ii(t, e) ? [t] : Array.isArray(t) ? t : typeof t == "string" ? Sr(t) : [t];
|
|
25
|
+
let a = e;
|
|
26
|
+
for (let u = 0; u < i.length && a != null; u++) {
|
|
27
|
+
const c = $r(i[u]);
|
|
28
|
+
if (Er(c))
|
|
51
29
|
continue;
|
|
52
30
|
let s;
|
|
53
31
|
if (u === i.length - 1)
|
|
54
|
-
s = n(
|
|
32
|
+
s = n(a[c]);
|
|
55
33
|
else {
|
|
56
|
-
const d =
|
|
57
|
-
s = m !== void 0 ? m : Ie(d) ? d :
|
|
34
|
+
const d = a[c], m = r == null ? void 0 : r(d, c, e);
|
|
35
|
+
s = m !== void 0 ? m : Ie(d) ? d : wr(i[u + 1]) ? [] : {};
|
|
58
36
|
}
|
|
59
|
-
ai(
|
|
37
|
+
ai(a, c, s), a = a[c];
|
|
60
38
|
}
|
|
61
39
|
return e;
|
|
62
40
|
}
|
|
63
|
-
function
|
|
41
|
+
function oi(e, t, n) {
|
|
64
42
|
return li(e, t, () => n, () => {
|
|
65
43
|
});
|
|
66
44
|
}
|
|
@@ -70,11 +48,11 @@ function Lt(e) {
|
|
|
70
48
|
const t = Object.getPrototypeOf(e);
|
|
71
49
|
return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1;
|
|
72
50
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
51
|
+
function ui(e, t, n) {
|
|
52
|
+
return Te(e, t, void 0, void 0, void 0, void 0, n);
|
|
75
53
|
}
|
|
76
|
-
function
|
|
77
|
-
const c = u(e, t, n, r, i,
|
|
54
|
+
function Te(e, t, n, r, i, a, u) {
|
|
55
|
+
const c = u(e, t, n, r, i, a);
|
|
78
56
|
if (c !== void 0)
|
|
79
57
|
return c;
|
|
80
58
|
if (typeof e == typeof t)
|
|
@@ -90,30 +68,30 @@ function ke(e, t, n, r, i, o, u) {
|
|
|
90
68
|
case "function":
|
|
91
69
|
return e === t;
|
|
92
70
|
case "object":
|
|
93
|
-
return Be(e, t,
|
|
71
|
+
return Be(e, t, a, u);
|
|
94
72
|
}
|
|
95
|
-
return Be(e, t,
|
|
73
|
+
return Be(e, t, a, u);
|
|
96
74
|
}
|
|
97
75
|
function Be(e, t, n, r) {
|
|
98
76
|
if (Object.is(e, t))
|
|
99
77
|
return !0;
|
|
100
|
-
let i =
|
|
101
|
-
if (i === zt && (i =
|
|
78
|
+
let i = Ut(e), a = Ut(t);
|
|
79
|
+
if (i === zt && (i = yt), a === zt && (a = yt), i !== a)
|
|
102
80
|
return !1;
|
|
103
81
|
switch (i) {
|
|
104
|
-
case
|
|
82
|
+
case Tr:
|
|
105
83
|
return e.toString() === t.toString();
|
|
106
|
-
case
|
|
84
|
+
case kr: {
|
|
107
85
|
const s = e.valueOf(), d = t.valueOf();
|
|
108
|
-
return
|
|
86
|
+
return hn(s, d);
|
|
109
87
|
}
|
|
88
|
+
case Nr:
|
|
89
|
+
case Fr:
|
|
110
90
|
case Pr:
|
|
111
|
-
case kr:
|
|
112
|
-
case Tr:
|
|
113
91
|
return Object.is(e.valueOf(), t.valueOf());
|
|
114
92
|
case Ir:
|
|
115
93
|
return e.source === t.source && e.flags === t.flags;
|
|
116
|
-
case
|
|
94
|
+
case Cr:
|
|
117
95
|
return e === t;
|
|
118
96
|
}
|
|
119
97
|
n = n ?? /* @__PURE__ */ new Map();
|
|
@@ -123,63 +101,63 @@ function Be(e, t, n, r) {
|
|
|
123
101
|
n.set(e, t), n.set(t, e);
|
|
124
102
|
try {
|
|
125
103
|
switch (i) {
|
|
126
|
-
case
|
|
104
|
+
case Xr: {
|
|
127
105
|
if (e.size !== t.size)
|
|
128
106
|
return !1;
|
|
129
107
|
for (const [s, d] of e.entries())
|
|
130
|
-
if (!t.has(s) || !
|
|
108
|
+
if (!t.has(s) || !Te(d, t.get(s), s, e, t, n, r))
|
|
131
109
|
return !1;
|
|
132
110
|
return !0;
|
|
133
111
|
}
|
|
134
|
-
case
|
|
112
|
+
case Jr: {
|
|
135
113
|
if (e.size !== t.size)
|
|
136
114
|
return !1;
|
|
137
115
|
const s = Array.from(e.values()), d = Array.from(t.values());
|
|
138
116
|
for (let m = 0; m < s.length; m++) {
|
|
139
|
-
const g = s[m],
|
|
140
|
-
if (
|
|
117
|
+
const g = s[m], S = d.findIndex((v) => Te(g, v, void 0, e, t, n, r));
|
|
118
|
+
if (S === -1)
|
|
141
119
|
return !1;
|
|
142
|
-
d.splice(
|
|
120
|
+
d.splice(S, 1);
|
|
143
121
|
}
|
|
144
122
|
return !0;
|
|
145
123
|
}
|
|
146
|
-
case Br:
|
|
147
|
-
case zr:
|
|
148
|
-
case Lr:
|
|
149
|
-
case Wr:
|
|
150
|
-
case qr:
|
|
151
|
-
case Kr:
|
|
152
|
-
case Gr:
|
|
153
|
-
case Hr:
|
|
154
124
|
case Yr:
|
|
155
|
-
case
|
|
156
|
-
case
|
|
157
|
-
case
|
|
125
|
+
case Hr:
|
|
126
|
+
case Gr:
|
|
127
|
+
case Kr:
|
|
128
|
+
case qr:
|
|
129
|
+
case Wr:
|
|
130
|
+
case Lr:
|
|
131
|
+
case zr:
|
|
132
|
+
case Dr:
|
|
133
|
+
case Ur:
|
|
134
|
+
case Mr:
|
|
135
|
+
case Rr: {
|
|
158
136
|
if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
|
|
159
137
|
return !1;
|
|
160
138
|
for (let s = 0; s < e.length; s++)
|
|
161
|
-
if (!
|
|
139
|
+
if (!Te(e[s], t[s], s, e, t, n, r))
|
|
162
140
|
return !1;
|
|
163
141
|
return !0;
|
|
164
142
|
}
|
|
165
|
-
case
|
|
143
|
+
case Br:
|
|
166
144
|
return e.byteLength !== t.byteLength ? !1 : Be(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
167
|
-
case
|
|
145
|
+
case Zr:
|
|
168
146
|
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : Be(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
169
|
-
case
|
|
147
|
+
case xr:
|
|
170
148
|
return e.name === t.name && e.message === t.message;
|
|
171
|
-
case
|
|
149
|
+
case yt: {
|
|
172
150
|
if (!(Be(e.constructor, t.constructor, n, r) || Lt(e) && Lt(t)))
|
|
173
151
|
return !1;
|
|
174
|
-
const d = [...Object.keys(e), ...
|
|
152
|
+
const d = [...Object.keys(e), ...Dt(e)], m = [...Object.keys(t), ...Dt(t)];
|
|
175
153
|
if (d.length !== m.length)
|
|
176
154
|
return !1;
|
|
177
155
|
for (let g = 0; g < d.length; g++) {
|
|
178
|
-
const
|
|
179
|
-
if (!Object.hasOwn(t,
|
|
156
|
+
const S = d[g], v = e[S];
|
|
157
|
+
if (!Object.hasOwn(t, S))
|
|
180
158
|
return !1;
|
|
181
|
-
const
|
|
182
|
-
if (!
|
|
159
|
+
const _ = t[S];
|
|
160
|
+
if (!Te(v, _, S, e, t, n, r))
|
|
183
161
|
return !1;
|
|
184
162
|
}
|
|
185
163
|
return !0;
|
|
@@ -191,10 +169,10 @@ function Be(e, t, n, r) {
|
|
|
191
169
|
n.delete(e), n.delete(t);
|
|
192
170
|
}
|
|
193
171
|
}
|
|
194
|
-
function
|
|
172
|
+
function si() {
|
|
195
173
|
}
|
|
196
174
|
function Wt(e, t) {
|
|
197
|
-
return
|
|
175
|
+
return ui(e, t, si);
|
|
198
176
|
}
|
|
199
177
|
/**
|
|
200
178
|
* vee-validate v4.15.1
|
|
@@ -204,25 +182,25 @@ function Wt(e, t) {
|
|
|
204
182
|
function K(e) {
|
|
205
183
|
return typeof e == "function";
|
|
206
184
|
}
|
|
207
|
-
function
|
|
185
|
+
function yn(e) {
|
|
208
186
|
return e == null;
|
|
209
187
|
}
|
|
210
188
|
const be = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
|
211
189
|
function wt(e) {
|
|
212
190
|
return Number(e) >= 0;
|
|
213
191
|
}
|
|
214
|
-
function
|
|
192
|
+
function ci(e) {
|
|
215
193
|
const t = parseFloat(e);
|
|
216
194
|
return isNaN(t) ? e : t;
|
|
217
195
|
}
|
|
218
|
-
function
|
|
196
|
+
function di(e) {
|
|
219
197
|
return typeof e == "object" && e !== null;
|
|
220
198
|
}
|
|
221
|
-
function
|
|
199
|
+
function fi(e) {
|
|
222
200
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
223
201
|
}
|
|
224
202
|
function qt(e) {
|
|
225
|
-
if (!
|
|
203
|
+
if (!di(e) || fi(e) !== "[object Object]")
|
|
226
204
|
return !1;
|
|
227
205
|
if (Object.getPrototypeOf(e) === null)
|
|
228
206
|
return !0;
|
|
@@ -255,13 +233,13 @@ function xe(e) {
|
|
|
255
233
|
return n;
|
|
256
234
|
}
|
|
257
235
|
const pn = {};
|
|
258
|
-
function
|
|
259
|
-
|
|
236
|
+
function vi(e, t) {
|
|
237
|
+
hi(e, t), pn[e] = t;
|
|
260
238
|
}
|
|
261
|
-
function
|
|
239
|
+
function mi(e) {
|
|
262
240
|
return pn[e];
|
|
263
241
|
}
|
|
264
|
-
function
|
|
242
|
+
function hi(e, t) {
|
|
265
243
|
if (!K(t))
|
|
266
244
|
throw new Error(`Extension Error: The validator '${e}' must be a function.`);
|
|
267
245
|
}
|
|
@@ -270,12 +248,12 @@ function Kt(e, t, n) {
|
|
|
270
248
|
}
|
|
271
249
|
function C(e) {
|
|
272
250
|
if (typeof e != "object") return e;
|
|
273
|
-
var t = 0, n, r, i,
|
|
274
|
-
if (
|
|
251
|
+
var t = 0, n, r, i, a = Object.prototype.toString.call(e);
|
|
252
|
+
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(u) {
|
|
275
253
|
i.add(C(u));
|
|
276
|
-
})) :
|
|
254
|
+
})) : a === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach(function(u, c) {
|
|
277
255
|
i.set(C(c), C(u));
|
|
278
|
-
})) :
|
|
256
|
+
})) : 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(C(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
|
|
279
257
|
for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)
|
|
280
258
|
Kt(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
|
|
281
259
|
for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++)
|
|
@@ -283,7 +261,7 @@ function C(e) {
|
|
|
283
261
|
}
|
|
284
262
|
return i || e;
|
|
285
263
|
}
|
|
286
|
-
const Ct = Symbol("vee-validate-form"),
|
|
264
|
+
const Ct = Symbol("vee-validate-form"), gi = Symbol("vee-validate-form-context"), yi = Symbol("vee-validate-field-instance"), Gt = Symbol("Default empty value"), bn = typeof window < "u";
|
|
287
265
|
function Vt(e) {
|
|
288
266
|
return K(e) && !!e.__locatorRef;
|
|
289
267
|
}
|
|
@@ -296,22 +274,22 @@ function nt(e) {
|
|
|
296
274
|
function An(e) {
|
|
297
275
|
return e === "checkbox" || e === "radio";
|
|
298
276
|
}
|
|
299
|
-
function
|
|
277
|
+
function pi(e) {
|
|
300
278
|
return be(e) || Array.isArray(e);
|
|
301
279
|
}
|
|
302
|
-
function
|
|
280
|
+
function bi(e) {
|
|
303
281
|
return Array.isArray(e) ? e.length === 0 : be(e) && Object.keys(e).length === 0;
|
|
304
282
|
}
|
|
305
283
|
function it(e) {
|
|
306
284
|
return /^\[.+\]$/i.test(e);
|
|
307
285
|
}
|
|
308
|
-
function
|
|
286
|
+
function Ai(e) {
|
|
309
287
|
return Vn(e) && e.multiple;
|
|
310
288
|
}
|
|
311
289
|
function Vn(e) {
|
|
312
290
|
return e.tagName === "SELECT";
|
|
313
291
|
}
|
|
314
|
-
function
|
|
292
|
+
function Vi(e) {
|
|
315
293
|
return On(e) && e.target && "submit" in e.target;
|
|
316
294
|
}
|
|
317
295
|
function On(e) {
|
|
@@ -373,8 +351,8 @@ function H(e, t) {
|
|
|
373
351
|
if (!Object.prototype.hasOwnProperty.call(t, i[r]))
|
|
374
352
|
return !1;
|
|
375
353
|
for (r = n; r-- !== 0; ) {
|
|
376
|
-
var
|
|
377
|
-
if (!H(e[
|
|
354
|
+
var a = i[r];
|
|
355
|
+
if (!H(e[a], t[a]))
|
|
378
356
|
return !1;
|
|
379
357
|
}
|
|
380
358
|
return !0;
|
|
@@ -391,7 +369,7 @@ function It(e) {
|
|
|
391
369
|
return it(e) ? e.replace(/\[|\]/gi, "") : e;
|
|
392
370
|
}
|
|
393
371
|
function Q(e, t, n) {
|
|
394
|
-
return e ? it(t) ? e[It(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,
|
|
372
|
+
return e ? it(t) ? e[It(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i, a) => pi(i) && a in i ? i[a] : n, e) : n;
|
|
395
373
|
}
|
|
396
374
|
function ce(e, t, n) {
|
|
397
375
|
if (it(t)) {
|
|
@@ -400,12 +378,12 @@ function ce(e, t, n) {
|
|
|
400
378
|
}
|
|
401
379
|
const r = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
|
402
380
|
let i = e;
|
|
403
|
-
for (let
|
|
404
|
-
if (
|
|
405
|
-
i[r[
|
|
381
|
+
for (let a = 0; a < r.length; a++) {
|
|
382
|
+
if (a === r.length - 1) {
|
|
383
|
+
i[r[a]] = n;
|
|
406
384
|
return;
|
|
407
385
|
}
|
|
408
|
-
(!(r[
|
|
386
|
+
(!(r[a] in i) || yn(i[r[a]])) && (i[r[a]] = wt(r[a + 1]) ? [] : {}), i = i[r[a]];
|
|
409
387
|
}
|
|
410
388
|
}
|
|
411
389
|
function pt(e, t) {
|
|
@@ -422,68 +400,68 @@ function Jt(e, t) {
|
|
|
422
400
|
}
|
|
423
401
|
const n = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
|
424
402
|
let r = e;
|
|
425
|
-
for (let
|
|
426
|
-
if (
|
|
427
|
-
pt(r, n[
|
|
403
|
+
for (let a = 0; a < n.length; a++) {
|
|
404
|
+
if (a === n.length - 1) {
|
|
405
|
+
pt(r, n[a]);
|
|
428
406
|
break;
|
|
429
407
|
}
|
|
430
|
-
if (!(n[
|
|
408
|
+
if (!(n[a] in r) || yn(r[n[a]]))
|
|
431
409
|
break;
|
|
432
|
-
r = r[n[
|
|
410
|
+
r = r[n[a]];
|
|
433
411
|
}
|
|
434
|
-
const i = n.map((
|
|
435
|
-
for (let
|
|
436
|
-
if (
|
|
437
|
-
if (
|
|
412
|
+
const i = n.map((a, u) => Q(e, n.slice(0, u).join(".")));
|
|
413
|
+
for (let a = i.length - 1; a >= 0; a--)
|
|
414
|
+
if (bi(i[a])) {
|
|
415
|
+
if (a === 0) {
|
|
438
416
|
pt(e, n[0]);
|
|
439
417
|
continue;
|
|
440
418
|
}
|
|
441
|
-
pt(i[
|
|
419
|
+
pt(i[a - 1], n[a - 1]);
|
|
442
420
|
}
|
|
443
421
|
}
|
|
444
422
|
function J(e) {
|
|
445
423
|
return Object.keys(e);
|
|
446
424
|
}
|
|
447
|
-
function
|
|
448
|
-
const n =
|
|
425
|
+
function _n(e, t = void 0) {
|
|
426
|
+
const n = $e();
|
|
449
427
|
return (n == null ? void 0 : n.provides[e]) || ir(e, t);
|
|
450
428
|
}
|
|
451
429
|
function Xt(e, t, n) {
|
|
452
430
|
if (Array.isArray(e)) {
|
|
453
|
-
const r = [...e], i = r.findIndex((
|
|
431
|
+
const r = [...e], i = r.findIndex((a) => H(a, t));
|
|
454
432
|
return i >= 0 ? r.splice(i, 1) : r.push(t), r;
|
|
455
433
|
}
|
|
456
434
|
return H(e, t) ? n : t;
|
|
457
435
|
}
|
|
458
|
-
function
|
|
436
|
+
function Oi(e, t) {
|
|
459
437
|
let n, r;
|
|
460
438
|
return function(...i) {
|
|
461
|
-
const
|
|
462
|
-
return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(
|
|
439
|
+
const a = this;
|
|
440
|
+
return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(a, i)), r;
|
|
463
441
|
};
|
|
464
442
|
}
|
|
465
443
|
function Qt(e, t = 0) {
|
|
466
444
|
let n = null, r = [];
|
|
467
445
|
return function(...i) {
|
|
468
446
|
return n && clearTimeout(n), n = setTimeout(() => {
|
|
469
|
-
const
|
|
470
|
-
r.forEach((u) => u(
|
|
471
|
-
}, t), new Promise((
|
|
447
|
+
const a = e(...i);
|
|
448
|
+
r.forEach((u) => u(a)), r = [];
|
|
449
|
+
}, t), new Promise((a) => r.push(a));
|
|
472
450
|
};
|
|
473
451
|
}
|
|
474
452
|
function _i(e, t) {
|
|
475
|
-
return be(t) && t.number ?
|
|
453
|
+
return be(t) && t.number ? ci(e) : e;
|
|
476
454
|
}
|
|
477
455
|
function Ot(e, t) {
|
|
478
456
|
let n;
|
|
479
457
|
return async function(...i) {
|
|
480
|
-
const
|
|
481
|
-
n =
|
|
482
|
-
const u = await
|
|
483
|
-
return
|
|
458
|
+
const a = e(...i);
|
|
459
|
+
n = a;
|
|
460
|
+
const u = await a;
|
|
461
|
+
return a !== n ? u : (n = void 0, t(u, i));
|
|
484
462
|
};
|
|
485
463
|
}
|
|
486
|
-
function
|
|
464
|
+
function _t(e) {
|
|
487
465
|
return Array.isArray(e) ? e : e ? [e] : [];
|
|
488
466
|
}
|
|
489
467
|
function qe(e, t) {
|
|
@@ -492,23 +470,23 @@ function qe(e, t) {
|
|
|
492
470
|
t.includes(r) || (n[r] = e[r]);
|
|
493
471
|
return n;
|
|
494
472
|
}
|
|
495
|
-
function
|
|
473
|
+
function Si(e) {
|
|
496
474
|
let t = null, n = [];
|
|
497
475
|
return function(...r) {
|
|
498
476
|
const i = q(() => {
|
|
499
477
|
if (t !== i)
|
|
500
478
|
return;
|
|
501
|
-
const
|
|
502
|
-
n.forEach((u) => u(
|
|
479
|
+
const a = e(...r);
|
|
480
|
+
n.forEach((u) => u(a)), n = [], t = null;
|
|
503
481
|
});
|
|
504
|
-
return t = i, new Promise((
|
|
482
|
+
return t = i, new Promise((a) => n.push(a));
|
|
505
483
|
};
|
|
506
484
|
}
|
|
507
485
|
function bt(e) {
|
|
508
|
-
if (
|
|
486
|
+
if (Sn(e))
|
|
509
487
|
return e._value;
|
|
510
488
|
}
|
|
511
|
-
function
|
|
489
|
+
function Sn(e) {
|
|
512
490
|
return "_value" in e;
|
|
513
491
|
}
|
|
514
492
|
function $i(e) {
|
|
@@ -518,13 +496,13 @@ function rt(e) {
|
|
|
518
496
|
if (!On(e))
|
|
519
497
|
return e;
|
|
520
498
|
const t = e.target;
|
|
521
|
-
if (An(t.type) &&
|
|
499
|
+
if (An(t.type) && Sn(t))
|
|
522
500
|
return bt(t);
|
|
523
501
|
if (t.type === "file" && t.files) {
|
|
524
502
|
const n = Array.from(t.files);
|
|
525
503
|
return t.multiple ? n : n[0];
|
|
526
504
|
}
|
|
527
|
-
if (
|
|
505
|
+
if (Ai(t))
|
|
528
506
|
return Array.from(t.options).filter((n) => n.selected && !n.disabled).map(bt);
|
|
529
507
|
if (Vn(t)) {
|
|
530
508
|
const n = Array.from(t.options).find((r) => r.selected);
|
|
@@ -532,7 +510,7 @@ function rt(e) {
|
|
|
532
510
|
}
|
|
533
511
|
return $i(t);
|
|
534
512
|
}
|
|
535
|
-
function
|
|
513
|
+
function $n(e) {
|
|
536
514
|
const t = {};
|
|
537
515
|
return Object.defineProperty(t, "_$$isNormalized", {
|
|
538
516
|
value: !0,
|
|
@@ -543,7 +521,7 @@ function jn(e) {
|
|
|
543
521
|
const i = Ei(e[r]);
|
|
544
522
|
return e[r] !== !1 && (n[r] = en(i)), n;
|
|
545
523
|
}, t) : typeof e != "string" ? t : e.split("|").reduce((n, r) => {
|
|
546
|
-
const i =
|
|
524
|
+
const i = ji(r);
|
|
547
525
|
return i.name && (n[i.name] = en(i.params)), n;
|
|
548
526
|
}, t) : t;
|
|
549
527
|
}
|
|
@@ -551,25 +529,25 @@ function Ei(e) {
|
|
|
551
529
|
return e === !0 ? [] : Array.isArray(e) || be(e) ? e : [e];
|
|
552
530
|
}
|
|
553
531
|
function en(e) {
|
|
554
|
-
const t = (n) => typeof n == "string" && n[0] === "@" ?
|
|
532
|
+
const t = (n) => typeof n == "string" && n[0] === "@" ? wi(n.slice(1)) : n;
|
|
555
533
|
return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {});
|
|
556
534
|
}
|
|
557
|
-
const
|
|
535
|
+
const ji = (e) => {
|
|
558
536
|
let t = [];
|
|
559
537
|
const n = e.split(":")[0];
|
|
560
538
|
return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
|
|
561
539
|
};
|
|
562
|
-
function
|
|
540
|
+
function wi(e) {
|
|
563
541
|
const t = (n) => {
|
|
564
542
|
var r;
|
|
565
543
|
return (r = Q(n, e)) !== null && r !== void 0 ? r : n[e];
|
|
566
544
|
};
|
|
567
545
|
return t.__locatorRef = e, t;
|
|
568
546
|
}
|
|
569
|
-
function
|
|
547
|
+
function Ci(e) {
|
|
570
548
|
return Array.isArray(e) ? e.filter(Vt) : J(e).filter((t) => Vt(e[t])).map((t) => e[t]);
|
|
571
549
|
}
|
|
572
|
-
const
|
|
550
|
+
const Ii = {
|
|
573
551
|
generateMessage: ({ field: e }) => `${e} is not valid.`,
|
|
574
552
|
bails: !0,
|
|
575
553
|
validateOnBlur: !0,
|
|
@@ -577,19 +555,19 @@ const Ni = {
|
|
|
577
555
|
validateOnInput: !1,
|
|
578
556
|
validateOnModelUpdate: !0
|
|
579
557
|
};
|
|
580
|
-
let
|
|
581
|
-
const Ze = () =>
|
|
582
|
-
async function
|
|
558
|
+
let Pi = Object.assign({}, Ii);
|
|
559
|
+
const Ze = () => Pi;
|
|
560
|
+
async function En(e, t, n = {}) {
|
|
583
561
|
const r = n == null ? void 0 : n.bails, i = {
|
|
584
562
|
name: (n == null ? void 0 : n.name) || "{field}",
|
|
585
563
|
rules: t,
|
|
586
564
|
label: n == null ? void 0 : n.label,
|
|
587
565
|
bails: r ?? !0,
|
|
588
566
|
formData: (n == null ? void 0 : n.values) || {}
|
|
589
|
-
},
|
|
590
|
-
return Object.assign(Object.assign({},
|
|
567
|
+
}, a = await Fi(i, e);
|
|
568
|
+
return Object.assign(Object.assign({}, a), { valid: !a.errors.length });
|
|
591
569
|
}
|
|
592
|
-
async function
|
|
570
|
+
async function Fi(e, t) {
|
|
593
571
|
const n = e.rules;
|
|
594
572
|
if (ue(n) || nt(n))
|
|
595
573
|
return ki(t, Object.assign(Object.assign({}, e), { rules: n }));
|
|
@@ -602,13 +580,13 @@ async function Pi(e, t) {
|
|
|
602
580
|
value: t
|
|
603
581
|
}, s = Array.isArray(n) ? n : [n], d = s.length, m = [];
|
|
604
582
|
for (let g = 0; g < d; g++) {
|
|
605
|
-
const
|
|
583
|
+
const S = s[g], v = await S(t, c);
|
|
606
584
|
if (!(typeof v != "string" && !Array.isArray(v) && v)) {
|
|
607
585
|
if (Array.isArray(v))
|
|
608
586
|
m.push(...v);
|
|
609
587
|
else {
|
|
610
|
-
const
|
|
611
|
-
m.push(
|
|
588
|
+
const M = typeof v == "string" ? v : wn(c);
|
|
589
|
+
m.push(M);
|
|
612
590
|
}
|
|
613
591
|
if (e.bails)
|
|
614
592
|
return {
|
|
@@ -620,9 +598,9 @@ async function Pi(e, t) {
|
|
|
620
598
|
errors: m
|
|
621
599
|
};
|
|
622
600
|
}
|
|
623
|
-
const r = Object.assign(Object.assign({}, e), { rules:
|
|
601
|
+
const r = Object.assign(Object.assign({}, e), { rules: $n(n) }), i = [], a = Object.keys(r.rules), u = a.length;
|
|
624
602
|
for (let c = 0; c < u; c++) {
|
|
625
|
-
const s =
|
|
603
|
+
const s = a[c], d = await Ti(r, t, {
|
|
626
604
|
name: s,
|
|
627
605
|
params: r.rules[s]
|
|
628
606
|
});
|
|
@@ -635,10 +613,10 @@ async function Pi(e, t) {
|
|
|
635
613
|
errors: i
|
|
636
614
|
};
|
|
637
615
|
}
|
|
638
|
-
function
|
|
616
|
+
function Ni(e) {
|
|
639
617
|
return !!e && e.name === "ValidationError";
|
|
640
618
|
}
|
|
641
|
-
function
|
|
619
|
+
function jn(e) {
|
|
642
620
|
return {
|
|
643
621
|
__type: "VVTypedSchema",
|
|
644
622
|
async parse(n, r) {
|
|
@@ -648,12 +626,12 @@ function En(e) {
|
|
|
648
626
|
output: await e.validate(n, { abortEarly: !1, context: (r == null ? void 0 : r.formData) || {} }),
|
|
649
627
|
errors: []
|
|
650
628
|
};
|
|
651
|
-
} catch (
|
|
652
|
-
if (!
|
|
653
|
-
throw
|
|
654
|
-
if (!(!((i =
|
|
655
|
-
return { errors: [{ path:
|
|
656
|
-
const u =
|
|
629
|
+
} catch (a) {
|
|
630
|
+
if (!Ni(a))
|
|
631
|
+
throw a;
|
|
632
|
+
if (!(!((i = a.inner) === null || i === void 0) && i.length) && a.errors.length)
|
|
633
|
+
return { errors: [{ path: a.path, errors: a.errors }] };
|
|
634
|
+
const u = a.inner.reduce((c, s) => {
|
|
657
635
|
const d = s.path || "";
|
|
658
636
|
return c[d] || (c[d] = { errors: [], path: d }), c[d].errors.push(...s.errors), c;
|
|
659
637
|
}, {});
|
|
@@ -663,88 +641,88 @@ function En(e) {
|
|
|
663
641
|
};
|
|
664
642
|
}
|
|
665
643
|
async function ki(e, t) {
|
|
666
|
-
const r = await (ue(t.rules) ? t.rules :
|
|
667
|
-
for (const
|
|
668
|
-
|
|
644
|
+
const r = await (ue(t.rules) ? t.rules : jn(t.rules)).parse(e, { formData: t.formData }), i = [];
|
|
645
|
+
for (const a of r.errors)
|
|
646
|
+
a.errors.length && i.push(...a.errors);
|
|
669
647
|
return {
|
|
670
648
|
value: r.value,
|
|
671
649
|
errors: i
|
|
672
650
|
};
|
|
673
651
|
}
|
|
674
|
-
async function
|
|
675
|
-
const r =
|
|
652
|
+
async function Ti(e, t, n) {
|
|
653
|
+
const r = mi(n.name);
|
|
676
654
|
if (!r)
|
|
677
655
|
throw new Error(`No such validator '${n.name}' exists.`);
|
|
678
|
-
const i =
|
|
656
|
+
const i = xi(n.params, e.formData), a = {
|
|
679
657
|
field: e.label || e.name,
|
|
680
658
|
name: e.name,
|
|
681
659
|
label: e.label,
|
|
682
660
|
value: t,
|
|
683
661
|
form: e.formData,
|
|
684
662
|
rule: Object.assign(Object.assign({}, n), { params: i })
|
|
685
|
-
}, u = await r(t, i,
|
|
663
|
+
}, u = await r(t, i, a);
|
|
686
664
|
return typeof u == "string" ? {
|
|
687
665
|
error: u
|
|
688
666
|
} : {
|
|
689
|
-
error: u ? void 0 : wn(
|
|
667
|
+
error: u ? void 0 : wn(a)
|
|
690
668
|
};
|
|
691
669
|
}
|
|
692
670
|
function wn(e) {
|
|
693
671
|
const t = Ze().generateMessage;
|
|
694
672
|
return t ? t(e) : "Field is invalid";
|
|
695
673
|
}
|
|
696
|
-
function
|
|
674
|
+
function xi(e, t) {
|
|
697
675
|
const n = (r) => Vt(r) ? r(t) : r;
|
|
698
676
|
return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((r, i) => (r[i] = n(e[i]), r), {});
|
|
699
677
|
}
|
|
700
|
-
async function
|
|
701
|
-
const r = await (ue(e) ? e :
|
|
678
|
+
async function Zi(e, t) {
|
|
679
|
+
const r = await (ue(e) ? e : jn(e)).parse(C(t), { formData: C(t) }), i = {}, a = {};
|
|
702
680
|
for (const u of r.errors) {
|
|
703
681
|
const c = u.errors, s = (u.path || "").replace(/\["(\d+)"\]/g, (d, m) => `[${m}]`);
|
|
704
|
-
i[s] = { valid: !c.length, errors: c }, c.length && (
|
|
682
|
+
i[s] = { valid: !c.length, errors: c }, c.length && (a[s] = c[0]);
|
|
705
683
|
}
|
|
706
684
|
return {
|
|
707
685
|
valid: !r.errors.length,
|
|
708
686
|
results: i,
|
|
709
|
-
errors:
|
|
687
|
+
errors: a,
|
|
710
688
|
values: r.value,
|
|
711
689
|
source: "schema"
|
|
712
690
|
};
|
|
713
691
|
}
|
|
714
|
-
async function
|
|
692
|
+
async function Bi(e, t, n) {
|
|
715
693
|
const i = J(e).map(async (d) => {
|
|
716
|
-
var m, g,
|
|
717
|
-
const v = (m = n == null ? void 0 : n.names) === null || m === void 0 ? void 0 : m[d],
|
|
694
|
+
var m, g, S;
|
|
695
|
+
const v = (m = n == null ? void 0 : n.names) === null || m === void 0 ? void 0 : m[d], _ = await En(Q(t, d), e[d], {
|
|
718
696
|
name: (v == null ? void 0 : v.name) || d,
|
|
719
697
|
label: v == null ? void 0 : v.label,
|
|
720
698
|
values: t,
|
|
721
|
-
bails: (
|
|
699
|
+
bails: (S = (g = n == null ? void 0 : n.bailsMap) === null || g === void 0 ? void 0 : g[d]) !== null && S !== void 0 ? S : !0
|
|
722
700
|
});
|
|
723
|
-
return Object.assign(Object.assign({},
|
|
701
|
+
return Object.assign(Object.assign({}, _), { path: d });
|
|
724
702
|
});
|
|
725
|
-
let
|
|
703
|
+
let a = !0;
|
|
726
704
|
const u = await Promise.all(i), c = {}, s = {};
|
|
727
705
|
for (const d of u)
|
|
728
706
|
c[d.path] = {
|
|
729
707
|
valid: d.valid,
|
|
730
708
|
errors: d.errors
|
|
731
|
-
}, d.valid || (
|
|
709
|
+
}, d.valid || (a = !1, s[d.path] = d.errors[0]);
|
|
732
710
|
return {
|
|
733
|
-
valid:
|
|
711
|
+
valid: a,
|
|
734
712
|
results: c,
|
|
735
713
|
errors: s,
|
|
736
714
|
source: "schema"
|
|
737
715
|
};
|
|
738
716
|
}
|
|
739
717
|
let tn = 0;
|
|
740
|
-
function
|
|
718
|
+
function Ri(e, t) {
|
|
741
719
|
const { value: n, initialValue: r, setInitialValue: i } = Mi(e, t.modelValue, t.form);
|
|
742
720
|
if (!t.form) {
|
|
743
|
-
let
|
|
744
|
-
var
|
|
745
|
-
"value" in v && (n.value = v.value), "errors" in v && d(v.errors), "touched" in v && (g.touched = (
|
|
721
|
+
let S = function(v) {
|
|
722
|
+
var _;
|
|
723
|
+
"value" in v && (n.value = v.value), "errors" in v && d(v.errors), "touched" in v && (g.touched = (_ = v.touched) !== null && _ !== void 0 ? _ : g.touched), "initialValue" in v && i(v.initialValue);
|
|
746
724
|
};
|
|
747
|
-
const { errors: s, setErrors: d } =
|
|
725
|
+
const { errors: s, setErrors: d } = zi(), m = tn >= Number.MAX_SAFE_INTEGER ? 0 : ++tn, g = Di(n, r, s, t.schema);
|
|
748
726
|
return {
|
|
749
727
|
id: m,
|
|
750
728
|
path: e,
|
|
@@ -753,28 +731,28 @@ function Ui(e, t) {
|
|
|
753
731
|
meta: g,
|
|
754
732
|
flags: { pendingUnmount: { [m]: !1 }, pendingReset: !1 },
|
|
755
733
|
errors: s,
|
|
756
|
-
setState:
|
|
734
|
+
setState: S
|
|
757
735
|
};
|
|
758
736
|
}
|
|
759
|
-
const
|
|
737
|
+
const a = t.form.createPathState(e, {
|
|
760
738
|
bails: t.bails,
|
|
761
739
|
label: t.label,
|
|
762
740
|
type: t.type,
|
|
763
741
|
validate: t.validate,
|
|
764
742
|
schema: t.schema
|
|
765
|
-
}), u = w(() =>
|
|
743
|
+
}), u = w(() => a.errors);
|
|
766
744
|
function c(s) {
|
|
767
745
|
var d, m, g;
|
|
768
746
|
"value" in s && (n.value = s.value), "errors" in s && ((d = t.form) === null || d === void 0 || d.setFieldError(A(e), s.errors)), "touched" in s && ((m = t.form) === null || m === void 0 || m.setFieldTouched(A(e), (g = s.touched) !== null && g !== void 0 ? g : !1)), "initialValue" in s && i(s.initialValue);
|
|
769
747
|
}
|
|
770
748
|
return {
|
|
771
|
-
id: Array.isArray(
|
|
749
|
+
id: Array.isArray(a.id) ? a.id[a.id.length - 1] : a.id,
|
|
772
750
|
path: e,
|
|
773
751
|
value: n,
|
|
774
752
|
errors: u,
|
|
775
|
-
meta:
|
|
753
|
+
meta: a,
|
|
776
754
|
initialValue: r,
|
|
777
|
-
flags:
|
|
755
|
+
flags: a.__flags,
|
|
778
756
|
setState: c
|
|
779
757
|
};
|
|
780
758
|
}
|
|
@@ -783,7 +761,7 @@ function Mi(e, t, n) {
|
|
|
783
761
|
function i() {
|
|
784
762
|
return n ? Q(n.initialValues.value, A(e), A(r)) : A(r);
|
|
785
763
|
}
|
|
786
|
-
function
|
|
764
|
+
function a(d) {
|
|
787
765
|
if (!n) {
|
|
788
766
|
r.value = d;
|
|
789
767
|
return;
|
|
@@ -795,9 +773,9 @@ function Mi(e, t, n) {
|
|
|
795
773
|
return {
|
|
796
774
|
value: ee(i()),
|
|
797
775
|
initialValue: u,
|
|
798
|
-
setInitialValue:
|
|
776
|
+
setInitialValue: a
|
|
799
777
|
};
|
|
800
|
-
const c =
|
|
778
|
+
const c = Ui(t, n, u, e);
|
|
801
779
|
return n.stageInitialValue(A(e), c, !0), {
|
|
802
780
|
value: w({
|
|
803
781
|
get() {
|
|
@@ -808,17 +786,17 @@ function Mi(e, t, n) {
|
|
|
808
786
|
}
|
|
809
787
|
}),
|
|
810
788
|
initialValue: u,
|
|
811
|
-
setInitialValue:
|
|
789
|
+
setInitialValue: a
|
|
812
790
|
};
|
|
813
791
|
}
|
|
814
|
-
function
|
|
792
|
+
function Ui(e, t, n, r) {
|
|
815
793
|
return tt(e) ? A(e) : e !== void 0 ? e : Q(t.values, A(r), A(n));
|
|
816
794
|
}
|
|
817
|
-
function
|
|
795
|
+
function Di(e, t, n, r) {
|
|
818
796
|
const i = w(() => {
|
|
819
797
|
var u, c, s;
|
|
820
798
|
return (s = (c = (u = p(r)) === null || u === void 0 ? void 0 : u.describe) === null || c === void 0 ? void 0 : c.call(u).required) !== null && s !== void 0 ? s : !1;
|
|
821
|
-
}),
|
|
799
|
+
}), a = et({
|
|
822
800
|
touched: !1,
|
|
823
801
|
pending: !1,
|
|
824
802
|
valid: !0,
|
|
@@ -828,22 +806,22 @@ function zi(e, t, n, r) {
|
|
|
828
806
|
dirty: w(() => !H(A(e), A(t)))
|
|
829
807
|
});
|
|
830
808
|
return G(n, (u) => {
|
|
831
|
-
|
|
809
|
+
a.valid = !u.length;
|
|
832
810
|
}, {
|
|
833
811
|
immediate: !0,
|
|
834
812
|
flush: "sync"
|
|
835
|
-
}),
|
|
813
|
+
}), a;
|
|
836
814
|
}
|
|
837
|
-
function
|
|
815
|
+
function zi() {
|
|
838
816
|
const e = ee([]);
|
|
839
817
|
return {
|
|
840
818
|
errors: e,
|
|
841
819
|
setErrors: (t) => {
|
|
842
|
-
e.value =
|
|
820
|
+
e.value = _t(t);
|
|
843
821
|
}
|
|
844
822
|
};
|
|
845
823
|
}
|
|
846
|
-
const Re = {},
|
|
824
|
+
const Re = {}, Me = {}, Ue = "vee-validate-inspector", X = {
|
|
847
825
|
error: 12405579,
|
|
848
826
|
success: 448379,
|
|
849
827
|
unknown: 5522283,
|
|
@@ -868,7 +846,7 @@ async function Cn(e) {
|
|
|
868
846
|
logo: "https://vee-validate.logaretm.com/v4/logo.png"
|
|
869
847
|
}, (n) => {
|
|
870
848
|
ve = n, n.addInspector({
|
|
871
|
-
id:
|
|
849
|
+
id: Ue,
|
|
872
850
|
icon: "rule",
|
|
873
851
|
label: "vee-validate",
|
|
874
852
|
noSelectionText: "Select a vee-validate node to inspect",
|
|
@@ -909,34 +887,34 @@ async function Cn(e) {
|
|
|
909
887
|
}
|
|
910
888
|
]
|
|
911
889
|
}), n.on.getInspectorTree((r) => {
|
|
912
|
-
if (r.inspectorId !==
|
|
890
|
+
if (r.inspectorId !== Ue)
|
|
913
891
|
return;
|
|
914
|
-
const i = Object.values(Re),
|
|
892
|
+
const i = Object.values(Re), a = Object.values(Me);
|
|
915
893
|
r.rootNodes = [
|
|
916
|
-
...i.map(
|
|
917
|
-
...
|
|
894
|
+
...i.map(qi),
|
|
895
|
+
...a.map((u) => Gi(u))
|
|
918
896
|
];
|
|
919
897
|
}), n.on.getInspectorState((r) => {
|
|
920
|
-
if (r.inspectorId !==
|
|
898
|
+
if (r.inspectorId !== Ue)
|
|
921
899
|
return;
|
|
922
|
-
const { form: i, field:
|
|
900
|
+
const { form: i, field: a, state: u, type: c } = Hi(r.nodeId);
|
|
923
901
|
if (n.unhighlightElement(), i && c === "form") {
|
|
924
|
-
r.state =
|
|
902
|
+
r.state = Yi(i), B = { type: "form", form: i }, n.highlightElement(i._vm);
|
|
925
903
|
return;
|
|
926
904
|
}
|
|
927
905
|
if (u && c === "pathState" && i) {
|
|
928
906
|
r.state = nn(u), B = { type: "pathState", state: u, form: i };
|
|
929
907
|
return;
|
|
930
908
|
}
|
|
931
|
-
if (
|
|
909
|
+
if (a && c === "field") {
|
|
932
910
|
r.state = nn({
|
|
933
|
-
errors:
|
|
934
|
-
dirty:
|
|
935
|
-
valid:
|
|
936
|
-
touched:
|
|
937
|
-
value:
|
|
938
|
-
initialValue:
|
|
939
|
-
}), B = { field:
|
|
911
|
+
errors: a.errors.value,
|
|
912
|
+
dirty: a.meta.dirty,
|
|
913
|
+
valid: a.meta.valid,
|
|
914
|
+
touched: a.meta.touched,
|
|
915
|
+
value: a.value.value,
|
|
916
|
+
initialValue: a.meta.initialValue
|
|
917
|
+
}), B = { field: a, type: "field" }, n.highlightElement(a._vm);
|
|
940
918
|
return;
|
|
941
919
|
}
|
|
942
920
|
B = null, n.unhighlightElement();
|
|
@@ -944,13 +922,13 @@ async function Cn(e) {
|
|
|
944
922
|
});
|
|
945
923
|
}
|
|
946
924
|
}
|
|
947
|
-
const
|
|
925
|
+
const Pe = Oi(() => {
|
|
948
926
|
setTimeout(async () => {
|
|
949
|
-
await q(), ve == null || ve.sendInspectorState(
|
|
927
|
+
await q(), ve == null || ve.sendInspectorState(Ue), ve == null || ve.sendInspectorTree(Ue);
|
|
950
928
|
}, 100);
|
|
951
929
|
}, 100);
|
|
952
|
-
function
|
|
953
|
-
const t =
|
|
930
|
+
function Li(e) {
|
|
931
|
+
const t = $e();
|
|
954
932
|
if (!ve) {
|
|
955
933
|
const n = t == null ? void 0 : t.appContext.app;
|
|
956
934
|
if (!n)
|
|
@@ -958,25 +936,25 @@ function Wi(e) {
|
|
|
958
936
|
Cn(n);
|
|
959
937
|
}
|
|
960
938
|
Re[e.formId] = Object.assign({}, e), Re[e.formId]._vm = t, un(() => {
|
|
961
|
-
delete Re[e.formId],
|
|
962
|
-
}),
|
|
939
|
+
delete Re[e.formId], Pe();
|
|
940
|
+
}), Pe();
|
|
963
941
|
}
|
|
964
|
-
function
|
|
965
|
-
const t =
|
|
942
|
+
function Wi(e) {
|
|
943
|
+
const t = $e();
|
|
966
944
|
if (!ve) {
|
|
967
945
|
const n = t == null ? void 0 : t.appContext.app;
|
|
968
946
|
if (!n)
|
|
969
947
|
return;
|
|
970
948
|
Cn(n);
|
|
971
949
|
}
|
|
972
|
-
|
|
973
|
-
delete
|
|
974
|
-
}),
|
|
950
|
+
Me[e.id] = Object.assign({}, e), Me[e.id]._vm = t, un(() => {
|
|
951
|
+
delete Me[e.id], Pe();
|
|
952
|
+
}), Pe();
|
|
975
953
|
}
|
|
976
|
-
function
|
|
977
|
-
const { textColor: t, bgColor: n } =
|
|
954
|
+
function qi(e) {
|
|
955
|
+
const { textColor: t, bgColor: n } = Pn(e.meta.value.valid), r = {};
|
|
978
956
|
Object.values(e.getAllPathStates()).forEach((u) => {
|
|
979
|
-
ce(r, p(u.path),
|
|
957
|
+
ce(r, p(u.path), Ki(u, e));
|
|
980
958
|
});
|
|
981
959
|
function i(u, c = []) {
|
|
982
960
|
const s = [...c].pop();
|
|
@@ -990,11 +968,11 @@ function Ki(e) {
|
|
|
990
968
|
children: u.map((d, m) => i(d, [...c, String(m)]))
|
|
991
969
|
} : { id: "", label: "", children: [] };
|
|
992
970
|
}
|
|
993
|
-
const { children:
|
|
971
|
+
const { children: a } = i(r);
|
|
994
972
|
return {
|
|
995
|
-
id:
|
|
973
|
+
id: Pt(e),
|
|
996
974
|
label: e.name,
|
|
997
|
-
children:
|
|
975
|
+
children: a,
|
|
998
976
|
tags: [
|
|
999
977
|
{
|
|
1000
978
|
label: "Form",
|
|
@@ -1009,26 +987,26 @@ function Ki(e) {
|
|
|
1009
987
|
]
|
|
1010
988
|
};
|
|
1011
989
|
}
|
|
1012
|
-
function
|
|
990
|
+
function Ki(e, t) {
|
|
1013
991
|
return {
|
|
1014
|
-
id:
|
|
992
|
+
id: Pt(t, e),
|
|
1015
993
|
label: p(e.path),
|
|
1016
994
|
tags: In(e.multiple, e.fieldsCount, e.type, e.valid, t)
|
|
1017
995
|
};
|
|
1018
996
|
}
|
|
1019
|
-
function
|
|
997
|
+
function Gi(e, t) {
|
|
1020
998
|
return {
|
|
1021
|
-
id:
|
|
999
|
+
id: Pt(t, e),
|
|
1022
1000
|
label: A(e.name),
|
|
1023
1001
|
tags: In(!1, 1, e.type, e.meta.valid, t)
|
|
1024
1002
|
};
|
|
1025
1003
|
}
|
|
1026
1004
|
function In(e, t, n, r, i) {
|
|
1027
|
-
const { textColor:
|
|
1005
|
+
const { textColor: a, bgColor: u } = Pn(r);
|
|
1028
1006
|
return [
|
|
1029
1007
|
e ? void 0 : {
|
|
1030
1008
|
label: "Field",
|
|
1031
|
-
textColor:
|
|
1009
|
+
textColor: a,
|
|
1032
1010
|
backgroundColor: u
|
|
1033
1011
|
},
|
|
1034
1012
|
i ? void 0 : {
|
|
@@ -1053,15 +1031,15 @@ function In(e, t, n, r, i) {
|
|
|
1053
1031
|
} : void 0
|
|
1054
1032
|
].filter(Boolean);
|
|
1055
1033
|
}
|
|
1056
|
-
function
|
|
1034
|
+
function Pt(e, t) {
|
|
1057
1035
|
const n = t ? "path" in t ? "pathState" : "field" : "form", r = t ? "path" in t ? t == null ? void 0 : t.path : p(t == null ? void 0 : t.name) : "", i = { f: e == null ? void 0 : e.formId, ff: (t == null ? void 0 : t.id) || r, type: n };
|
|
1058
1036
|
return btoa(encodeURIComponent(JSON.stringify(i)));
|
|
1059
1037
|
}
|
|
1060
|
-
function
|
|
1038
|
+
function Hi(e) {
|
|
1061
1039
|
try {
|
|
1062
1040
|
const t = JSON.parse(decodeURIComponent(atob(e))), n = Re[t.f];
|
|
1063
1041
|
if (!n && t.ff) {
|
|
1064
|
-
const i =
|
|
1042
|
+
const i = Me[t.ff];
|
|
1065
1043
|
return i ? {
|
|
1066
1044
|
type: t.type,
|
|
1067
1045
|
field: i
|
|
@@ -1106,8 +1084,8 @@ function nn(e) {
|
|
|
1106
1084
|
]
|
|
1107
1085
|
};
|
|
1108
1086
|
}
|
|
1109
|
-
function
|
|
1110
|
-
const { errorBag: t, meta: n, values: r, isSubmitting: i, isValidating:
|
|
1087
|
+
function Yi(e) {
|
|
1088
|
+
const { errorBag: t, meta: n, values: r, isSubmitting: i, isValidating: a, submitCount: u } = e;
|
|
1111
1089
|
return {
|
|
1112
1090
|
"Form state": [
|
|
1113
1091
|
{
|
|
@@ -1120,7 +1098,7 @@ function Ji(e) {
|
|
|
1120
1098
|
},
|
|
1121
1099
|
{
|
|
1122
1100
|
key: "isValidating",
|
|
1123
|
-
value:
|
|
1101
|
+
value: a.value
|
|
1124
1102
|
},
|
|
1125
1103
|
{
|
|
1126
1104
|
key: "touched",
|
|
@@ -1153,161 +1131,161 @@ function Ji(e) {
|
|
|
1153
1131
|
]
|
|
1154
1132
|
};
|
|
1155
1133
|
}
|
|
1156
|
-
function
|
|
1134
|
+
function Pn(e) {
|
|
1157
1135
|
return {
|
|
1158
1136
|
bgColor: e ? X.success : X.error,
|
|
1159
1137
|
textColor: e ? X.black : X.white
|
|
1160
1138
|
};
|
|
1161
1139
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return An(n == null ? void 0 : n.type) ?
|
|
1140
|
+
function Ji(e, t, n) {
|
|
1141
|
+
return An(n == null ? void 0 : n.type) ? Qi(e, t, n) : Fn(e, t, n);
|
|
1164
1142
|
}
|
|
1165
1143
|
function Fn(e, t, n) {
|
|
1166
|
-
const { initialValue: r, validateOnMount: i, bails:
|
|
1144
|
+
const { initialValue: r, validateOnMount: i, bails: a, type: u, checkedValue: c, label: s, validateOnValueUpdate: d, uncheckedValue: m, controlled: g, keepValueOnUnmount: S, syncVModel: v, form: _ } = Xi(n), M = g ? _n(Ct) : void 0, O = _ || M, R = w(() => xe(p(e))), x = w(() => {
|
|
1167
1145
|
if (p(O == null ? void 0 : O.schema))
|
|
1168
1146
|
return;
|
|
1169
|
-
const
|
|
1170
|
-
return nt(
|
|
1171
|
-
}),
|
|
1147
|
+
const E = A(t);
|
|
1148
|
+
return nt(E) || ue(E) || K(E) || Array.isArray(E) ? E : $n(E);
|
|
1149
|
+
}), oe = !K(x.value) && ue(p(t)), { id: te, value: j, initialValue: U, meta: F, setState: ne, errors: me, flags: Ae } = Ri(R, {
|
|
1172
1150
|
modelValue: r,
|
|
1173
1151
|
form: O,
|
|
1174
|
-
bails:
|
|
1152
|
+
bails: a,
|
|
1175
1153
|
label: s,
|
|
1176
1154
|
type: u,
|
|
1177
1155
|
validate: x.value ? ge : void 0,
|
|
1178
|
-
schema:
|
|
1156
|
+
schema: oe ? t : void 0
|
|
1179
1157
|
}), re = w(() => me.value[0]);
|
|
1180
|
-
v &&
|
|
1181
|
-
value:
|
|
1158
|
+
v && ea({
|
|
1159
|
+
value: j,
|
|
1182
1160
|
prop: v,
|
|
1183
1161
|
handleChange: D,
|
|
1184
1162
|
shouldValidate: () => d && !Ae.pendingReset
|
|
1185
1163
|
});
|
|
1186
|
-
const
|
|
1187
|
-
F.touched = !0,
|
|
1164
|
+
const Ee = (y, E = !1) => {
|
|
1165
|
+
F.touched = !0, E && he();
|
|
1188
1166
|
};
|
|
1189
|
-
async function ze(
|
|
1190
|
-
var
|
|
1167
|
+
async function ze(y) {
|
|
1168
|
+
var E, P;
|
|
1191
1169
|
if (O != null && O.validateSchema) {
|
|
1192
|
-
const { results: I } = await O.validateSchema(
|
|
1193
|
-
return (
|
|
1170
|
+
const { results: I } = await O.validateSchema(y);
|
|
1171
|
+
return (E = I[p(R)]) !== null && E !== void 0 ? E : { valid: !0, errors: [] };
|
|
1194
1172
|
}
|
|
1195
|
-
return x.value ?
|
|
1173
|
+
return x.value ? En(j.value, x.value, {
|
|
1196
1174
|
name: p(R),
|
|
1197
1175
|
label: p(s),
|
|
1198
|
-
values: (
|
|
1199
|
-
bails:
|
|
1176
|
+
values: (P = O == null ? void 0 : O.values) !== null && P !== void 0 ? P : {},
|
|
1177
|
+
bails: a
|
|
1200
1178
|
}) : { valid: !0, errors: [] };
|
|
1201
1179
|
}
|
|
1202
|
-
const
|
|
1203
|
-
function ge(
|
|
1204
|
-
return (
|
|
1180
|
+
const he = Ot(async () => (F.pending = !0, F.validated = !0, ze("validated-only")), (y) => (Ae.pendingUnmount[z.id] || (ne({ errors: y.errors }), F.pending = !1, F.valid = y.valid), y)), de = Ot(async () => ze("silent"), (y) => (F.valid = y.valid, y));
|
|
1181
|
+
function ge(y) {
|
|
1182
|
+
return (y == null ? void 0 : y.mode) === "silent" ? de() : he();
|
|
1205
1183
|
}
|
|
1206
|
-
function D(
|
|
1207
|
-
const
|
|
1208
|
-
Fe(
|
|
1184
|
+
function D(y, E = !0) {
|
|
1185
|
+
const P = rt(y);
|
|
1186
|
+
Fe(P, E);
|
|
1209
1187
|
}
|
|
1210
|
-
|
|
1188
|
+
on(() => {
|
|
1211
1189
|
if (i)
|
|
1212
|
-
return
|
|
1190
|
+
return he();
|
|
1213
1191
|
(!O || !O.validateSchema) && de();
|
|
1214
1192
|
});
|
|
1215
|
-
function
|
|
1216
|
-
F.touched =
|
|
1193
|
+
function lt(y) {
|
|
1194
|
+
F.touched = y;
|
|
1217
1195
|
}
|
|
1218
|
-
function
|
|
1219
|
-
var
|
|
1220
|
-
const
|
|
1196
|
+
function ye(y) {
|
|
1197
|
+
var E;
|
|
1198
|
+
const P = y && "value" in y ? y.value : U.value;
|
|
1221
1199
|
ne({
|
|
1222
|
-
value: C(
|
|
1223
|
-
initialValue: C(
|
|
1224
|
-
touched: (
|
|
1225
|
-
errors: (
|
|
1200
|
+
value: C(P),
|
|
1201
|
+
initialValue: C(P),
|
|
1202
|
+
touched: (E = y == null ? void 0 : y.touched) !== null && E !== void 0 ? E : !1,
|
|
1203
|
+
errors: (y == null ? void 0 : y.errors) || []
|
|
1226
1204
|
}), F.pending = !1, F.validated = !1, de();
|
|
1227
1205
|
}
|
|
1228
|
-
const Ve =
|
|
1229
|
-
function Fe(
|
|
1230
|
-
|
|
1206
|
+
const Ve = $e();
|
|
1207
|
+
function Fe(y, E = !0) {
|
|
1208
|
+
j.value = Ve && v ? _i(y, Ve.props.modelModifiers) : y, (E ? he : de)();
|
|
1231
1209
|
}
|
|
1232
|
-
function Le(
|
|
1233
|
-
ne({ errors: Array.isArray(
|
|
1210
|
+
function Le(y) {
|
|
1211
|
+
ne({ errors: Array.isArray(y) ? y : [y] });
|
|
1234
1212
|
}
|
|
1235
|
-
const
|
|
1213
|
+
const Nt = w({
|
|
1236
1214
|
get() {
|
|
1237
|
-
return
|
|
1215
|
+
return j.value;
|
|
1238
1216
|
},
|
|
1239
|
-
set(
|
|
1240
|
-
Fe(
|
|
1217
|
+
set(y) {
|
|
1218
|
+
Fe(y, d);
|
|
1241
1219
|
}
|
|
1242
1220
|
}), z = {
|
|
1243
1221
|
id: te,
|
|
1244
1222
|
name: R,
|
|
1245
1223
|
label: s,
|
|
1246
|
-
value:
|
|
1224
|
+
value: Nt,
|
|
1247
1225
|
meta: F,
|
|
1248
1226
|
errors: me,
|
|
1249
1227
|
errorMessage: re,
|
|
1250
1228
|
type: u,
|
|
1251
1229
|
checkedValue: c,
|
|
1252
1230
|
uncheckedValue: m,
|
|
1253
|
-
bails:
|
|
1254
|
-
keepValueOnUnmount:
|
|
1255
|
-
resetField:
|
|
1256
|
-
handleReset: () =>
|
|
1231
|
+
bails: a,
|
|
1232
|
+
keepValueOnUnmount: S,
|
|
1233
|
+
resetField: ye,
|
|
1234
|
+
handleReset: () => ye(),
|
|
1257
1235
|
validate: ge,
|
|
1258
1236
|
handleChange: D,
|
|
1259
|
-
handleBlur:
|
|
1237
|
+
handleBlur: Ee,
|
|
1260
1238
|
setState: ne,
|
|
1261
|
-
setTouched:
|
|
1239
|
+
setTouched: lt,
|
|
1262
1240
|
setErrors: Le,
|
|
1263
1241
|
setValue: Fe
|
|
1264
1242
|
};
|
|
1265
|
-
if (At(
|
|
1266
|
-
H(
|
|
1243
|
+
if (At(yi, z), tt(t) && typeof A(t) != "function" && G(t, (y, E) => {
|
|
1244
|
+
H(y, E) || (F.validated ? he() : de());
|
|
1267
1245
|
}, {
|
|
1268
1246
|
deep: !0
|
|
1269
|
-
}), process.env.NODE_ENV !== "production" && (z._vm =
|
|
1247
|
+
}), process.env.NODE_ENV !== "production" && (z._vm = $e(), G(() => Object.assign(Object.assign({ errors: me.value }, F), { value: j.value }), Pe, {
|
|
1270
1248
|
deep: !0
|
|
1271
|
-
}), O ||
|
|
1249
|
+
}), O || Wi(z)), !O)
|
|
1272
1250
|
return z;
|
|
1273
|
-
const
|
|
1274
|
-
const
|
|
1275
|
-
return !
|
|
1276
|
-
const I =
|
|
1251
|
+
const ot = w(() => {
|
|
1252
|
+
const y = x.value;
|
|
1253
|
+
return !y || K(y) || nt(y) || ue(y) || Array.isArray(y) ? {} : Object.keys(y).reduce((E, P) => {
|
|
1254
|
+
const I = Ci(y[P]).map((fe) => fe.__locatorRef).reduce((fe, se) => {
|
|
1277
1255
|
const ie = Q(O.values, se) || O.values[se];
|
|
1278
1256
|
return ie !== void 0 && (fe[se] = ie), fe;
|
|
1279
1257
|
}, {});
|
|
1280
|
-
return Object.assign(
|
|
1258
|
+
return Object.assign(E, I), E;
|
|
1281
1259
|
}, {});
|
|
1282
1260
|
});
|
|
1283
|
-
return G(
|
|
1284
|
-
if (!Object.keys(
|
|
1261
|
+
return G(ot, (y, E) => {
|
|
1262
|
+
if (!Object.keys(y).length)
|
|
1285
1263
|
return;
|
|
1286
|
-
!H(
|
|
1264
|
+
!H(y, E) && (F.validated ? he() : de());
|
|
1287
1265
|
}), rr(() => {
|
|
1288
|
-
var
|
|
1289
|
-
const
|
|
1290
|
-
if (
|
|
1291
|
-
O == null || O.removePathState(
|
|
1266
|
+
var y;
|
|
1267
|
+
const E = (y = p(z.keepValueOnUnmount)) !== null && y !== void 0 ? y : p(O.keepValuesOnUnmount), P = p(R);
|
|
1268
|
+
if (E || !O || Ae.pendingUnmount[z.id]) {
|
|
1269
|
+
O == null || O.removePathState(P, te);
|
|
1292
1270
|
return;
|
|
1293
1271
|
}
|
|
1294
1272
|
Ae.pendingUnmount[z.id] = !0;
|
|
1295
|
-
const I = O.getPathState(
|
|
1273
|
+
const I = O.getPathState(P);
|
|
1296
1274
|
if (Array.isArray(I == null ? void 0 : I.id) && (I != null && I.multiple) ? I != null && I.id.includes(z.id) : (I == null ? void 0 : I.id) === z.id) {
|
|
1297
1275
|
if (I != null && I.multiple && Array.isArray(I.value)) {
|
|
1298
1276
|
const se = I.value.findIndex((ie) => H(ie, p(z.checkedValue)));
|
|
1299
1277
|
if (se > -1) {
|
|
1300
1278
|
const ie = [...I.value];
|
|
1301
|
-
ie.splice(se, 1), O.setFieldValue(
|
|
1279
|
+
ie.splice(se, 1), O.setFieldValue(P, ie);
|
|
1302
1280
|
}
|
|
1303
1281
|
Array.isArray(I.id) && I.id.splice(I.id.indexOf(z.id), 1);
|
|
1304
1282
|
} else
|
|
1305
1283
|
O.unsetPathValue(p(R));
|
|
1306
|
-
O.removePathState(
|
|
1284
|
+
O.removePathState(P, te);
|
|
1307
1285
|
}
|
|
1308
1286
|
}), z;
|
|
1309
1287
|
}
|
|
1310
|
-
function
|
|
1288
|
+
function Xi(e) {
|
|
1311
1289
|
const t = () => ({
|
|
1312
1290
|
initialValue: void 0,
|
|
1313
1291
|
validateOnMount: !1,
|
|
@@ -1317,249 +1295,249 @@ function Qi(e) {
|
|
|
1317
1295
|
keepValueOnUnmount: void 0,
|
|
1318
1296
|
syncVModel: !1,
|
|
1319
1297
|
controlled: !0
|
|
1320
|
-
}), n = !!(e != null && e.syncVModel), r = typeof (e == null ? void 0 : e.syncVModel) == "string" ? e.syncVModel : (e == null ? void 0 : e.modelPropName) || "modelValue", i = n && !("initialValue" in (e || {})) ?
|
|
1298
|
+
}), n = !!(e != null && e.syncVModel), r = typeof (e == null ? void 0 : e.syncVModel) == "string" ? e.syncVModel : (e == null ? void 0 : e.modelPropName) || "modelValue", i = n && !("initialValue" in (e || {})) ? St($e(), r) : e == null ? void 0 : e.initialValue;
|
|
1321
1299
|
if (!e)
|
|
1322
1300
|
return Object.assign(Object.assign({}, t()), { initialValue: i });
|
|
1323
|
-
const
|
|
1301
|
+
const a = "valueProp" in e ? e.valueProp : e.checkedValue, u = "standalone" in e ? !e.standalone : e.controlled, c = (e == null ? void 0 : e.modelPropName) || (e == null ? void 0 : e.syncVModel) || !1;
|
|
1324
1302
|
return Object.assign(Object.assign(Object.assign({}, t()), e || {}), {
|
|
1325
1303
|
initialValue: i,
|
|
1326
1304
|
controlled: u ?? !0,
|
|
1327
|
-
checkedValue:
|
|
1305
|
+
checkedValue: a,
|
|
1328
1306
|
syncVModel: c
|
|
1329
1307
|
});
|
|
1330
1308
|
}
|
|
1331
|
-
function
|
|
1332
|
-
const r = n != null && n.standalone ? void 0 :
|
|
1309
|
+
function Qi(e, t, n) {
|
|
1310
|
+
const r = n != null && n.standalone ? void 0 : _n(Ct), i = n == null ? void 0 : n.checkedValue, a = n == null ? void 0 : n.uncheckedValue;
|
|
1333
1311
|
function u(c) {
|
|
1334
1312
|
const s = c.handleChange, d = w(() => {
|
|
1335
|
-
const g = p(c.value),
|
|
1336
|
-
return Array.isArray(g) ? g.findIndex((v) => H(v,
|
|
1313
|
+
const g = p(c.value), S = p(i);
|
|
1314
|
+
return Array.isArray(g) ? g.findIndex((v) => H(v, S)) >= 0 : H(S, g);
|
|
1337
1315
|
});
|
|
1338
|
-
function m(g,
|
|
1339
|
-
var v,
|
|
1316
|
+
function m(g, S = !0) {
|
|
1317
|
+
var v, _;
|
|
1340
1318
|
if (d.value === ((v = g == null ? void 0 : g.target) === null || v === void 0 ? void 0 : v.checked)) {
|
|
1341
|
-
|
|
1319
|
+
S && c.validate();
|
|
1342
1320
|
return;
|
|
1343
1321
|
}
|
|
1344
|
-
const
|
|
1345
|
-
let x = (
|
|
1346
|
-
r && (O != null && O.multiple) && O.type === "checkbox" ? x = Xt(Q(r.values,
|
|
1322
|
+
const M = p(e), O = r == null ? void 0 : r.getPathState(M), R = rt(g);
|
|
1323
|
+
let x = (_ = p(i)) !== null && _ !== void 0 ? _ : R;
|
|
1324
|
+
r && (O != null && O.multiple) && O.type === "checkbox" ? x = Xt(Q(r.values, M) || [], x, void 0) : (n == null ? void 0 : n.type) === "checkbox" && (x = Xt(p(c.value), x, p(a))), s(x, S);
|
|
1347
1325
|
}
|
|
1348
1326
|
return Object.assign(Object.assign({}, c), {
|
|
1349
1327
|
checked: d,
|
|
1350
1328
|
checkedValue: i,
|
|
1351
|
-
uncheckedValue:
|
|
1329
|
+
uncheckedValue: a,
|
|
1352
1330
|
handleChange: m
|
|
1353
1331
|
});
|
|
1354
1332
|
}
|
|
1355
1333
|
return u(Fn(e, t, n));
|
|
1356
1334
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const i =
|
|
1335
|
+
function ea({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
|
|
1336
|
+
const i = $e();
|
|
1359
1337
|
if (!i || !e) {
|
|
1360
1338
|
process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
|
|
1361
1339
|
return;
|
|
1362
1340
|
}
|
|
1363
|
-
const
|
|
1364
|
-
|
|
1365
|
-
H(c,
|
|
1366
|
-
}), G(() =>
|
|
1341
|
+
const a = typeof e == "string" ? e : "modelValue", u = `update:${a}`;
|
|
1342
|
+
a in i.props && (G(t, (c) => {
|
|
1343
|
+
H(c, St(i, a)) || i.emit(u, c);
|
|
1344
|
+
}), G(() => St(i, a), (c) => {
|
|
1367
1345
|
if (c === Gt && t.value === void 0)
|
|
1368
1346
|
return;
|
|
1369
1347
|
const s = c === Gt ? void 0 : c;
|
|
1370
1348
|
H(s, t.value) || n(s, r());
|
|
1371
1349
|
}));
|
|
1372
1350
|
}
|
|
1373
|
-
function
|
|
1351
|
+
function St(e, t) {
|
|
1374
1352
|
if (e)
|
|
1375
1353
|
return e.props[t];
|
|
1376
1354
|
}
|
|
1377
|
-
let
|
|
1355
|
+
let ta = 0;
|
|
1378
1356
|
const Ke = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
|
|
1379
|
-
function
|
|
1357
|
+
function Nn(e) {
|
|
1380
1358
|
const t = (e == null ? void 0 : e.initialValues) || {}, n = Object.assign({}, p(t)), r = A(e == null ? void 0 : e.validationSchema);
|
|
1381
1359
|
return r && ue(r) && K(r.cast) ? C(r.cast(n) || {}) : C(n);
|
|
1382
1360
|
}
|
|
1383
|
-
function
|
|
1361
|
+
function na(e) {
|
|
1384
1362
|
var t;
|
|
1385
|
-
const n =
|
|
1363
|
+
const n = ta++, r = (e == null ? void 0 : e.name) || "Form";
|
|
1386
1364
|
let i = 0;
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1365
|
+
const a = ee(!1), u = ee(!1), c = ee(0), s = [], d = et(Nn(e)), m = ee([]), g = ee({}), S = ee({}), v = Si(() => {
|
|
1366
|
+
S.value = m.value.reduce((o, l) => (o[xe(p(l.path))] = l, o), {});
|
|
1389
1367
|
});
|
|
1390
|
-
function
|
|
1391
|
-
const f = D(
|
|
1368
|
+
function _(o, l) {
|
|
1369
|
+
const f = D(o);
|
|
1392
1370
|
if (!f) {
|
|
1393
|
-
typeof
|
|
1371
|
+
typeof o == "string" && (g.value[xe(o)] = _t(l));
|
|
1394
1372
|
return;
|
|
1395
1373
|
}
|
|
1396
|
-
if (typeof
|
|
1397
|
-
const
|
|
1398
|
-
g.value[
|
|
1374
|
+
if (typeof o == "string") {
|
|
1375
|
+
const h = xe(o);
|
|
1376
|
+
g.value[h] && delete g.value[h];
|
|
1399
1377
|
}
|
|
1400
|
-
f.errors =
|
|
1378
|
+
f.errors = _t(l), f.valid = !f.errors.length;
|
|
1401
1379
|
}
|
|
1402
|
-
function
|
|
1403
|
-
J(
|
|
1404
|
-
|
|
1380
|
+
function M(o) {
|
|
1381
|
+
J(o).forEach((l) => {
|
|
1382
|
+
_(l, o[l]);
|
|
1405
1383
|
});
|
|
1406
1384
|
}
|
|
1407
|
-
e != null && e.initialErrors &&
|
|
1385
|
+
e != null && e.initialErrors && M(e.initialErrors);
|
|
1408
1386
|
const O = w(() => {
|
|
1409
|
-
const
|
|
1410
|
-
return Object.assign(Object.assign({}, g.value),
|
|
1411
|
-
}), R = w(() => J(O.value).reduce((
|
|
1412
|
-
const f = O.value[
|
|
1413
|
-
return f != null && f.length && (l
|
|
1414
|
-
}, {})), x = w(() => m.value.reduce((
|
|
1387
|
+
const o = m.value.reduce((l, f) => (f.errors.length && (l[p(f.path)] = f.errors), l), {});
|
|
1388
|
+
return Object.assign(Object.assign({}, g.value), o);
|
|
1389
|
+
}), R = w(() => J(O.value).reduce((o, l) => {
|
|
1390
|
+
const f = O.value[l];
|
|
1391
|
+
return f != null && f.length && (o[l] = f[0]), o;
|
|
1392
|
+
}, {})), x = w(() => m.value.reduce((o, l) => (o[p(l.path)] = { name: p(l.path) || "", label: l.label || "" }, o), {})), oe = w(() => m.value.reduce((o, l) => {
|
|
1415
1393
|
var f;
|
|
1416
|
-
return
|
|
1417
|
-
}, {})), te = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}),
|
|
1418
|
-
const f = Q(d, p(
|
|
1419
|
-
return ce(
|
|
1394
|
+
return o[p(l.path)] = (f = l.bails) !== null && f !== void 0 ? f : !0, o;
|
|
1395
|
+
}, {})), te = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), j = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: U, originalInitialValues: F, setInitialValues: ne } = ia(m, d, e), me = ra(m, d, F, R), Ae = w(() => m.value.reduce((o, l) => {
|
|
1396
|
+
const f = Q(d, p(l.path));
|
|
1397
|
+
return ce(o, p(l.path), f), o;
|
|
1420
1398
|
}, {})), re = e == null ? void 0 : e.validationSchema;
|
|
1421
|
-
function
|
|
1422
|
-
var f,
|
|
1423
|
-
const V = w(() => Q(
|
|
1424
|
-
if (
|
|
1425
|
-
|
|
1426
|
-
const
|
|
1427
|
-
return Array.isArray(
|
|
1399
|
+
function Ee(o, l) {
|
|
1400
|
+
var f, h;
|
|
1401
|
+
const V = w(() => Q(U.value, p(o))), $ = S.value[p(o)], b = (l == null ? void 0 : l.type) === "checkbox" || (l == null ? void 0 : l.type) === "radio";
|
|
1402
|
+
if ($ && b) {
|
|
1403
|
+
$.multiple = !0;
|
|
1404
|
+
const ae = i++;
|
|
1405
|
+
return Array.isArray($.id) ? $.id.push(ae) : $.id = [$.id, ae], $.fieldsCount++, $.__flags.pendingUnmount[ae] = !1, $;
|
|
1428
1406
|
}
|
|
1429
|
-
const
|
|
1430
|
-
L !== -1 &&
|
|
1431
|
-
const
|
|
1432
|
-
var
|
|
1407
|
+
const k = w(() => Q(d, p(o))), Z = p(o), L = ye.findIndex((ae) => ae === Z);
|
|
1408
|
+
L !== -1 && ye.splice(L, 1);
|
|
1409
|
+
const N = w(() => {
|
|
1410
|
+
var ae, Ne, ft, vt;
|
|
1433
1411
|
const mt = p(re);
|
|
1434
1412
|
if (ue(mt))
|
|
1435
|
-
return (
|
|
1436
|
-
const
|
|
1437
|
-
return ue(
|
|
1413
|
+
return (Ne = (ae = mt.describe) === null || ae === void 0 ? void 0 : ae.call(mt, p(o)).required) !== null && Ne !== void 0 ? Ne : !1;
|
|
1414
|
+
const ht = p(l == null ? void 0 : l.schema);
|
|
1415
|
+
return ue(ht) && (vt = (ft = ht.describe) === null || ft === void 0 ? void 0 : ft.call(ht).required) !== null && vt !== void 0 ? vt : !1;
|
|
1438
1416
|
}), W = i++, Y = et({
|
|
1439
1417
|
id: W,
|
|
1440
|
-
path:
|
|
1418
|
+
path: o,
|
|
1441
1419
|
touched: !1,
|
|
1442
1420
|
pending: !1,
|
|
1443
1421
|
valid: !0,
|
|
1444
1422
|
validated: !!(!((f = te[Z]) === null || f === void 0) && f.length),
|
|
1445
|
-
required:
|
|
1423
|
+
required: N,
|
|
1446
1424
|
initialValue: V,
|
|
1447
1425
|
errors: tr([]),
|
|
1448
|
-
bails: (
|
|
1449
|
-
label:
|
|
1450
|
-
type: (
|
|
1451
|
-
value:
|
|
1426
|
+
bails: (h = l == null ? void 0 : l.bails) !== null && h !== void 0 ? h : !1,
|
|
1427
|
+
label: l == null ? void 0 : l.label,
|
|
1428
|
+
type: (l == null ? void 0 : l.type) || "default",
|
|
1429
|
+
value: k,
|
|
1452
1430
|
multiple: !1,
|
|
1453
1431
|
__flags: {
|
|
1454
1432
|
pendingUnmount: { [W]: !1 },
|
|
1455
1433
|
pendingReset: !1
|
|
1456
1434
|
},
|
|
1457
1435
|
fieldsCount: 1,
|
|
1458
|
-
validate:
|
|
1459
|
-
dirty: w(() => !H(A(
|
|
1436
|
+
validate: l == null ? void 0 : l.validate,
|
|
1437
|
+
dirty: w(() => !H(A(k), A(V)))
|
|
1460
1438
|
});
|
|
1461
|
-
return m.value.push(Y),
|
|
1439
|
+
return m.value.push(Y), S.value[Z] = Y, v(), R.value[Z] && !te[Z] && q(() => {
|
|
1462
1440
|
Oe(Z, { mode: "silent" });
|
|
1463
|
-
}), tt(
|
|
1441
|
+
}), tt(o) && G(o, (ae) => {
|
|
1464
1442
|
v();
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1467
|
-
ce(d,
|
|
1443
|
+
const Ne = C(k.value);
|
|
1444
|
+
S.value[ae] = Y, q(() => {
|
|
1445
|
+
ce(d, ae, Ne);
|
|
1468
1446
|
});
|
|
1469
1447
|
}), Y;
|
|
1470
1448
|
}
|
|
1471
|
-
const ze = Qt(xt, 5),
|
|
1472
|
-
const f = J(
|
|
1473
|
-
.../* @__PURE__ */ new Set([...J(
|
|
1474
|
-
].sort().reduce((
|
|
1475
|
-
var
|
|
1476
|
-
const Z = b, L = D(Z) ||
|
|
1477
|
-
return
|
|
1449
|
+
const ze = Qt(xt, 5), he = Qt(xt, 5), de = Ot(async (o) => await (o === "silent" ? ze() : he()), (o, [l]) => {
|
|
1450
|
+
const f = J(E.errorBag.value), V = [
|
|
1451
|
+
.../* @__PURE__ */ new Set([...J(o.results), ...m.value.map(($) => $.path), ...f])
|
|
1452
|
+
].sort().reduce(($, b) => {
|
|
1453
|
+
var k;
|
|
1454
|
+
const Z = b, L = D(Z) || lt(Z), N = ((k = o.results[Z]) === null || k === void 0 ? void 0 : k.errors) || [], W = p(L == null ? void 0 : L.path) || Z, Y = aa({ errors: N, valid: !N.length }, $.results[W]);
|
|
1455
|
+
return $.results[W] = Y, Y.valid || ($.errors[W] = Y.errors[0]), L && g.value[W] && delete g.value[W], L ? (L.valid = Y.valid, l === "silent" || l === "validated-only" && !L.validated || _(L, Y.errors), $) : (_(W, N), $);
|
|
1478
1456
|
}, {
|
|
1479
|
-
valid:
|
|
1457
|
+
valid: o.valid,
|
|
1480
1458
|
results: {},
|
|
1481
1459
|
errors: {},
|
|
1482
|
-
source:
|
|
1460
|
+
source: o.source
|
|
1483
1461
|
});
|
|
1484
|
-
return
|
|
1462
|
+
return o.values && (V.values = o.values, V.source = o.source), J(V.results).forEach(($) => {
|
|
1485
1463
|
var b;
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1464
|
+
const k = D($);
|
|
1465
|
+
k && l !== "silent" && (l === "validated-only" && !k.validated || _(k, (b = V.results[$]) === null || b === void 0 ? void 0 : b.errors));
|
|
1488
1466
|
}), V;
|
|
1489
1467
|
});
|
|
1490
|
-
function ge(
|
|
1491
|
-
m.value.forEach(
|
|
1468
|
+
function ge(o) {
|
|
1469
|
+
m.value.forEach(o);
|
|
1492
1470
|
}
|
|
1493
|
-
function D(
|
|
1494
|
-
const
|
|
1495
|
-
return typeof
|
|
1471
|
+
function D(o) {
|
|
1472
|
+
const l = typeof o == "string" ? xe(o) : o;
|
|
1473
|
+
return typeof l == "string" ? S.value[l] : l;
|
|
1496
1474
|
}
|
|
1497
|
-
function
|
|
1498
|
-
return m.value.filter((f) =>
|
|
1475
|
+
function lt(o) {
|
|
1476
|
+
return m.value.filter((f) => o.startsWith(p(f.path))).reduce((f, h) => f ? h.path.length > f.path.length ? h : f : h, void 0);
|
|
1499
1477
|
}
|
|
1500
|
-
let
|
|
1501
|
-
function Fe(
|
|
1502
|
-
return
|
|
1503
|
-
[...
|
|
1478
|
+
let ye = [], Ve;
|
|
1479
|
+
function Fe(o) {
|
|
1480
|
+
return ye.push(o), Ve || (Ve = q(() => {
|
|
1481
|
+
[...ye].sort().reverse().forEach((f) => {
|
|
1504
1482
|
Jt(d, f);
|
|
1505
|
-
}),
|
|
1483
|
+
}), ye = [], Ve = null;
|
|
1506
1484
|
})), Ve;
|
|
1507
1485
|
}
|
|
1508
|
-
function Le(
|
|
1509
|
-
return function(f,
|
|
1510
|
-
return function(
|
|
1511
|
-
return
|
|
1512
|
-
const
|
|
1486
|
+
function Le(o) {
|
|
1487
|
+
return function(f, h) {
|
|
1488
|
+
return function($) {
|
|
1489
|
+
return $ instanceof Event && ($.preventDefault(), $.stopPropagation()), ge((b) => b.touched = !0), a.value = !0, c.value++, je().then((b) => {
|
|
1490
|
+
const k = C(d);
|
|
1513
1491
|
if (b.valid && typeof f == "function") {
|
|
1514
1492
|
const Z = C(Ae.value);
|
|
1515
|
-
let L =
|
|
1493
|
+
let L = o ? Z : k;
|
|
1516
1494
|
return b.values && (L = b.source === "schema" ? b.values : Object.assign({}, L, b.values)), f(L, {
|
|
1517
|
-
evt:
|
|
1495
|
+
evt: $,
|
|
1518
1496
|
controlledValues: Z,
|
|
1519
|
-
setErrors:
|
|
1520
|
-
setFieldError:
|
|
1497
|
+
setErrors: M,
|
|
1498
|
+
setFieldError: _,
|
|
1521
1499
|
setTouched: ut,
|
|
1522
1500
|
setFieldTouched: ie,
|
|
1523
1501
|
setValues: fe,
|
|
1524
|
-
setFieldValue:
|
|
1502
|
+
setFieldValue: P,
|
|
1525
1503
|
resetForm: st,
|
|
1526
|
-
resetField:
|
|
1504
|
+
resetField: kt
|
|
1527
1505
|
});
|
|
1528
1506
|
}
|
|
1529
|
-
!b.valid && typeof
|
|
1530
|
-
values:
|
|
1531
|
-
evt:
|
|
1507
|
+
!b.valid && typeof h == "function" && h({
|
|
1508
|
+
values: k,
|
|
1509
|
+
evt: $,
|
|
1532
1510
|
errors: b.errors,
|
|
1533
1511
|
results: b.results
|
|
1534
1512
|
});
|
|
1535
|
-
}).then((b) => (
|
|
1536
|
-
throw
|
|
1513
|
+
}).then((b) => (a.value = !1, b), (b) => {
|
|
1514
|
+
throw a.value = !1, b;
|
|
1537
1515
|
});
|
|
1538
1516
|
};
|
|
1539
1517
|
};
|
|
1540
1518
|
}
|
|
1541
1519
|
const z = Le(!1);
|
|
1542
1520
|
z.withControlled = Le(!0);
|
|
1543
|
-
function
|
|
1544
|
-
const f = m.value.findIndex((V) => V.path ===
|
|
1545
|
-
if (!(f === -1 || !
|
|
1521
|
+
function ot(o, l) {
|
|
1522
|
+
const f = m.value.findIndex((V) => V.path === o && (Array.isArray(V.id) ? V.id.includes(l) : V.id === l)), h = m.value[f];
|
|
1523
|
+
if (!(f === -1 || !h)) {
|
|
1546
1524
|
if (q(() => {
|
|
1547
|
-
Oe(
|
|
1548
|
-
}),
|
|
1549
|
-
const V =
|
|
1550
|
-
V >= 0 &&
|
|
1525
|
+
Oe(o, { mode: "silent", warn: !1 });
|
|
1526
|
+
}), h.multiple && h.fieldsCount && h.fieldsCount--, Array.isArray(h.id)) {
|
|
1527
|
+
const V = h.id.indexOf(l);
|
|
1528
|
+
V >= 0 && h.id.splice(V, 1), delete h.__flags.pendingUnmount[l];
|
|
1551
1529
|
}
|
|
1552
|
-
(!
|
|
1530
|
+
(!h.multiple || h.fieldsCount <= 0) && (m.value.splice(f, 1), Tt(o), v(), delete S.value[o]);
|
|
1553
1531
|
}
|
|
1554
1532
|
}
|
|
1555
|
-
function
|
|
1556
|
-
J(
|
|
1557
|
-
|
|
1558
|
-
}), m.value = m.value.filter((
|
|
1533
|
+
function y(o) {
|
|
1534
|
+
J(S.value).forEach((l) => {
|
|
1535
|
+
l.startsWith(o) && delete S.value[l];
|
|
1536
|
+
}), m.value = m.value.filter((l) => !l.path.startsWith(o)), q(() => {
|
|
1559
1537
|
v();
|
|
1560
1538
|
});
|
|
1561
1539
|
}
|
|
1562
|
-
const
|
|
1540
|
+
const E = {
|
|
1563
1541
|
name: r,
|
|
1564
1542
|
formId: n,
|
|
1565
1543
|
values: d,
|
|
@@ -1569,122 +1547,122 @@ function ro(e) {
|
|
|
1569
1547
|
schema: re,
|
|
1570
1548
|
submitCount: c,
|
|
1571
1549
|
meta: me,
|
|
1572
|
-
isSubmitting:
|
|
1550
|
+
isSubmitting: a,
|
|
1573
1551
|
isValidating: u,
|
|
1574
1552
|
fieldArrays: s,
|
|
1575
|
-
keepValuesOnUnmount:
|
|
1553
|
+
keepValuesOnUnmount: j,
|
|
1576
1554
|
validateSchema: A(re) ? de : void 0,
|
|
1577
|
-
validate:
|
|
1578
|
-
setFieldError:
|
|
1555
|
+
validate: je,
|
|
1556
|
+
setFieldError: _,
|
|
1579
1557
|
validateField: Oe,
|
|
1580
|
-
setFieldValue:
|
|
1558
|
+
setFieldValue: P,
|
|
1581
1559
|
setValues: fe,
|
|
1582
|
-
setErrors:
|
|
1560
|
+
setErrors: M,
|
|
1583
1561
|
setFieldTouched: ie,
|
|
1584
1562
|
setTouched: ut,
|
|
1585
1563
|
resetForm: st,
|
|
1586
|
-
resetField:
|
|
1564
|
+
resetField: kt,
|
|
1587
1565
|
handleSubmit: z,
|
|
1588
1566
|
useFieldModel: Yn,
|
|
1589
1567
|
defineInputBinds: Jn,
|
|
1590
1568
|
defineComponentBinds: Xn,
|
|
1591
1569
|
defineField: dt,
|
|
1592
1570
|
stageInitialValue: Gn,
|
|
1593
|
-
unsetInitialValue:
|
|
1571
|
+
unsetInitialValue: Tt,
|
|
1594
1572
|
setFieldInitialValue: ct,
|
|
1595
|
-
createPathState:
|
|
1573
|
+
createPathState: Ee,
|
|
1596
1574
|
getPathState: D,
|
|
1597
1575
|
unsetPathValue: Fe,
|
|
1598
|
-
removePathState:
|
|
1599
|
-
initialValues:
|
|
1576
|
+
removePathState: ot,
|
|
1577
|
+
initialValues: U,
|
|
1600
1578
|
getAllPathStates: () => m.value,
|
|
1601
|
-
destroyPath:
|
|
1579
|
+
destroyPath: y,
|
|
1602
1580
|
isFieldTouched: Wn,
|
|
1603
1581
|
isFieldDirty: qn,
|
|
1604
1582
|
isFieldValid: Kn
|
|
1605
1583
|
};
|
|
1606
|
-
function
|
|
1607
|
-
const
|
|
1608
|
-
D(V) ||
|
|
1584
|
+
function P(o, l, f = !0) {
|
|
1585
|
+
const h = C(l), V = typeof o == "string" ? o : o.path;
|
|
1586
|
+
D(V) || Ee(V), ce(d, V, h), f && Oe(V);
|
|
1609
1587
|
}
|
|
1610
|
-
function I(
|
|
1588
|
+
function I(o, l = !0) {
|
|
1611
1589
|
J(d).forEach((f) => {
|
|
1612
1590
|
delete d[f];
|
|
1613
|
-
}), J(
|
|
1614
|
-
|
|
1615
|
-
}),
|
|
1591
|
+
}), J(o).forEach((f) => {
|
|
1592
|
+
P(f, o[f], !1);
|
|
1593
|
+
}), l && je();
|
|
1616
1594
|
}
|
|
1617
|
-
function fe(
|
|
1618
|
-
De(d,
|
|
1595
|
+
function fe(o, l = !0) {
|
|
1596
|
+
De(d, o), s.forEach((f) => f && f.reset()), l && je();
|
|
1619
1597
|
}
|
|
1620
|
-
function se(
|
|
1621
|
-
const f = D(p(
|
|
1598
|
+
function se(o, l) {
|
|
1599
|
+
const f = D(p(o)) || Ee(o);
|
|
1622
1600
|
return w({
|
|
1623
1601
|
get() {
|
|
1624
1602
|
return f.value;
|
|
1625
1603
|
},
|
|
1626
|
-
set(
|
|
1604
|
+
set(h) {
|
|
1627
1605
|
var V;
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1606
|
+
const $ = p(o);
|
|
1607
|
+
P($, h, (V = p(l)) !== null && V !== void 0 ? V : !1);
|
|
1630
1608
|
}
|
|
1631
1609
|
});
|
|
1632
1610
|
}
|
|
1633
|
-
function ie(
|
|
1634
|
-
const f = D(
|
|
1635
|
-
f && (f.touched =
|
|
1611
|
+
function ie(o, l) {
|
|
1612
|
+
const f = D(o);
|
|
1613
|
+
f && (f.touched = l);
|
|
1636
1614
|
}
|
|
1637
|
-
function Wn(
|
|
1638
|
-
const
|
|
1639
|
-
return
|
|
1615
|
+
function Wn(o) {
|
|
1616
|
+
const l = D(o);
|
|
1617
|
+
return l ? l.touched : m.value.filter((f) => f.path.startsWith(o)).some((f) => f.touched);
|
|
1640
1618
|
}
|
|
1641
|
-
function qn(
|
|
1642
|
-
const
|
|
1643
|
-
return
|
|
1619
|
+
function qn(o) {
|
|
1620
|
+
const l = D(o);
|
|
1621
|
+
return l ? l.dirty : m.value.filter((f) => f.path.startsWith(o)).some((f) => f.dirty);
|
|
1644
1622
|
}
|
|
1645
|
-
function Kn(
|
|
1646
|
-
const
|
|
1647
|
-
return
|
|
1623
|
+
function Kn(o) {
|
|
1624
|
+
const l = D(o);
|
|
1625
|
+
return l ? l.valid : m.value.filter((f) => f.path.startsWith(o)).every((f) => f.valid);
|
|
1648
1626
|
}
|
|
1649
|
-
function ut(
|
|
1650
|
-
if (typeof
|
|
1651
|
-
ge((
|
|
1652
|
-
|
|
1627
|
+
function ut(o) {
|
|
1628
|
+
if (typeof o == "boolean") {
|
|
1629
|
+
ge((l) => {
|
|
1630
|
+
l.touched = o;
|
|
1653
1631
|
});
|
|
1654
1632
|
return;
|
|
1655
1633
|
}
|
|
1656
|
-
J(
|
|
1657
|
-
ie(
|
|
1634
|
+
J(o).forEach((l) => {
|
|
1635
|
+
ie(l, !!o[l]);
|
|
1658
1636
|
});
|
|
1659
1637
|
}
|
|
1660
|
-
function
|
|
1638
|
+
function kt(o, l) {
|
|
1661
1639
|
var f;
|
|
1662
|
-
const
|
|
1663
|
-
V && (V.__flags.pendingReset = !0), ct(
|
|
1640
|
+
const h = l && "value" in l ? l.value : Q(U.value, o), V = D(o);
|
|
1641
|
+
V && (V.__flags.pendingReset = !0), ct(o, C(h), !0), P(o, h, !1), ie(o, (f = l == null ? void 0 : l.touched) !== null && f !== void 0 ? f : !1), _(o, (l == null ? void 0 : l.errors) || []), q(() => {
|
|
1664
1642
|
V && (V.__flags.pendingReset = !1);
|
|
1665
1643
|
});
|
|
1666
1644
|
}
|
|
1667
|
-
function st(
|
|
1668
|
-
let f = C(
|
|
1669
|
-
f =
|
|
1645
|
+
function st(o, l) {
|
|
1646
|
+
let f = C(o != null && o.values ? o.values : F.value);
|
|
1647
|
+
f = l != null && l.force ? f : De(F.value, f), f = ue(re) && K(re.cast) ? re.cast(f) : f, ne(f, { force: l == null ? void 0 : l.force }), ge((h) => {
|
|
1670
1648
|
var V;
|
|
1671
|
-
|
|
1672
|
-
}),
|
|
1673
|
-
|
|
1674
|
-
|
|
1649
|
+
h.__flags.pendingReset = !0, h.validated = !1, h.touched = ((V = o == null ? void 0 : o.touched) === null || V === void 0 ? void 0 : V[p(h.path)]) || !1, P(p(h.path), Q(f, p(h.path)), !1), _(p(h.path), void 0);
|
|
1650
|
+
}), l != null && l.force ? I(f, !1) : fe(f, !1), M((o == null ? void 0 : o.errors) || {}), c.value = (o == null ? void 0 : o.submitCount) || 0, q(() => {
|
|
1651
|
+
je({ mode: "silent" }), ge((h) => {
|
|
1652
|
+
h.__flags.pendingReset = !1;
|
|
1675
1653
|
});
|
|
1676
1654
|
});
|
|
1677
1655
|
}
|
|
1678
|
-
async function
|
|
1679
|
-
const
|
|
1680
|
-
if (
|
|
1681
|
-
return
|
|
1656
|
+
async function je(o) {
|
|
1657
|
+
const l = (o == null ? void 0 : o.mode) || "force";
|
|
1658
|
+
if (l === "force" && ge((b) => b.validated = !0), E.validateSchema)
|
|
1659
|
+
return E.validateSchema(l);
|
|
1682
1660
|
u.value = !0;
|
|
1683
|
-
const f = await Promise.all(m.value.map((b) => b.validate ? b.validate(
|
|
1661
|
+
const f = await Promise.all(m.value.map((b) => b.validate ? b.validate(o).then((k) => ({
|
|
1684
1662
|
key: p(b.path),
|
|
1685
|
-
valid:
|
|
1686
|
-
errors:
|
|
1687
|
-
value:
|
|
1663
|
+
valid: k.valid,
|
|
1664
|
+
errors: k.errors,
|
|
1665
|
+
value: k.value
|
|
1688
1666
|
})) : Promise.resolve({
|
|
1689
1667
|
key: p(b.path),
|
|
1690
1668
|
valid: !0,
|
|
@@ -1692,154 +1670,154 @@ function ro(e) {
|
|
|
1692
1670
|
value: void 0
|
|
1693
1671
|
})));
|
|
1694
1672
|
u.value = !1;
|
|
1695
|
-
const
|
|
1673
|
+
const h = {}, V = {}, $ = {};
|
|
1696
1674
|
for (const b of f)
|
|
1697
|
-
|
|
1675
|
+
h[b.key] = {
|
|
1698
1676
|
valid: b.valid,
|
|
1699
1677
|
errors: b.errors
|
|
1700
|
-
}, b.value && ce(
|
|
1678
|
+
}, b.value && ce($, b.key, b.value), b.errors.length && (V[b.key] = b.errors[0]);
|
|
1701
1679
|
return {
|
|
1702
1680
|
valid: f.every((b) => b.valid),
|
|
1703
|
-
results:
|
|
1681
|
+
results: h,
|
|
1704
1682
|
errors: V,
|
|
1705
|
-
values:
|
|
1683
|
+
values: $,
|
|
1706
1684
|
source: "fields"
|
|
1707
1685
|
};
|
|
1708
1686
|
}
|
|
1709
|
-
async function Oe(
|
|
1687
|
+
async function Oe(o, l) {
|
|
1710
1688
|
var f;
|
|
1711
|
-
const
|
|
1712
|
-
if (
|
|
1713
|
-
const { results:
|
|
1714
|
-
return
|
|
1689
|
+
const h = D(o);
|
|
1690
|
+
if (h && (l == null ? void 0 : l.mode) !== "silent" && (h.validated = !0), re) {
|
|
1691
|
+
const { results: $ } = await de((l == null ? void 0 : l.mode) || "validated-only");
|
|
1692
|
+
return $[o] || { errors: [], valid: !0 };
|
|
1715
1693
|
}
|
|
1716
|
-
return
|
|
1694
|
+
return h != null && h.validate ? h.validate(l) : (!h && ((f = l == null ? void 0 : l.warn) !== null && f !== void 0 ? f : !0) && process.env.NODE_ENV !== "production" && nr(`field with path ${o} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
|
1717
1695
|
}
|
|
1718
|
-
function
|
|
1719
|
-
Jt(
|
|
1696
|
+
function Tt(o) {
|
|
1697
|
+
Jt(U.value, o);
|
|
1720
1698
|
}
|
|
1721
|
-
function Gn(
|
|
1722
|
-
ct(
|
|
1699
|
+
function Gn(o, l, f = !1) {
|
|
1700
|
+
ct(o, l), ce(d, o, l), f && !(e != null && e.initialValues) && ce(F.value, o, C(l));
|
|
1723
1701
|
}
|
|
1724
|
-
function ct(
|
|
1725
|
-
ce(
|
|
1702
|
+
function ct(o, l, f = !1) {
|
|
1703
|
+
ce(U.value, o, C(l)), f && ce(F.value, o, C(l));
|
|
1726
1704
|
}
|
|
1727
1705
|
async function xt() {
|
|
1728
|
-
const
|
|
1729
|
-
if (!
|
|
1706
|
+
const o = A(re);
|
|
1707
|
+
if (!o)
|
|
1730
1708
|
return { valid: !0, results: {}, errors: {}, source: "none" };
|
|
1731
1709
|
u.value = !0;
|
|
1732
|
-
const
|
|
1710
|
+
const l = nt(o) || ue(o) ? await Zi(o, d) : await Bi(o, d, {
|
|
1733
1711
|
names: x.value,
|
|
1734
|
-
bailsMap:
|
|
1712
|
+
bailsMap: oe.value
|
|
1735
1713
|
});
|
|
1736
|
-
return u.value = !1,
|
|
1714
|
+
return u.value = !1, l;
|
|
1737
1715
|
}
|
|
1738
|
-
const Hn = z((
|
|
1739
|
-
|
|
1716
|
+
const Hn = z((o, { evt: l }) => {
|
|
1717
|
+
Vi(l) && l.target.submit();
|
|
1740
1718
|
});
|
|
1741
|
-
|
|
1742
|
-
if (e != null && e.initialErrors &&
|
|
1743
|
-
|
|
1719
|
+
on(() => {
|
|
1720
|
+
if (e != null && e.initialErrors && M(e.initialErrors), e != null && e.initialTouched && ut(e.initialTouched), e != null && e.validateOnMount) {
|
|
1721
|
+
je();
|
|
1744
1722
|
return;
|
|
1745
1723
|
}
|
|
1746
|
-
|
|
1724
|
+
E.validateSchema && E.validateSchema("silent");
|
|
1747
1725
|
}), tt(re) && G(re, () => {
|
|
1748
|
-
var
|
|
1749
|
-
(
|
|
1750
|
-
}), At(Ct,
|
|
1726
|
+
var o;
|
|
1727
|
+
(o = E.validateSchema) === null || o === void 0 || o.call(E, "validated-only");
|
|
1728
|
+
}), At(Ct, E), process.env.NODE_ENV !== "production" && (Li(E), G(() => Object.assign(Object.assign({ errors: O.value }, me.value), { values: d, isSubmitting: a.value, isValidating: u.value, submitCount: c.value }), Pe, {
|
|
1751
1729
|
deep: !0
|
|
1752
1730
|
}));
|
|
1753
|
-
function dt(
|
|
1754
|
-
const f = K(
|
|
1755
|
-
function
|
|
1756
|
-
var
|
|
1757
|
-
|
|
1731
|
+
function dt(o, l) {
|
|
1732
|
+
const f = K(l) || l == null ? void 0 : l.label, h = D(p(o)) || Ee(o, { label: f }), V = () => K(l) ? l(qe(h, Ke)) : l || {};
|
|
1733
|
+
function $() {
|
|
1734
|
+
var N;
|
|
1735
|
+
h.touched = !0, ((N = V().validateOnBlur) !== null && N !== void 0 ? N : Ze().validateOnBlur) && Oe(p(h.path));
|
|
1758
1736
|
}
|
|
1759
1737
|
function b() {
|
|
1760
|
-
var
|
|
1761
|
-
((
|
|
1762
|
-
Oe(p(
|
|
1738
|
+
var N;
|
|
1739
|
+
((N = V().validateOnInput) !== null && N !== void 0 ? N : Ze().validateOnInput) && q(() => {
|
|
1740
|
+
Oe(p(h.path));
|
|
1763
1741
|
});
|
|
1764
1742
|
}
|
|
1765
|
-
function
|
|
1766
|
-
var
|
|
1767
|
-
((
|
|
1768
|
-
Oe(p(
|
|
1743
|
+
function k() {
|
|
1744
|
+
var N;
|
|
1745
|
+
((N = V().validateOnChange) !== null && N !== void 0 ? N : Ze().validateOnChange) && q(() => {
|
|
1746
|
+
Oe(p(h.path));
|
|
1769
1747
|
});
|
|
1770
1748
|
}
|
|
1771
1749
|
const Z = w(() => {
|
|
1772
|
-
const
|
|
1773
|
-
onChange:
|
|
1750
|
+
const N = {
|
|
1751
|
+
onChange: k,
|
|
1774
1752
|
onInput: b,
|
|
1775
|
-
onBlur:
|
|
1753
|
+
onBlur: $
|
|
1776
1754
|
};
|
|
1777
|
-
return K(
|
|
1755
|
+
return K(l) ? Object.assign(Object.assign({}, N), l(qe(h, Ke)).props || {}) : l != null && l.props ? Object.assign(Object.assign({}, N), l.props(qe(h, Ke))) : N;
|
|
1778
1756
|
});
|
|
1779
|
-
return [se(
|
|
1780
|
-
var
|
|
1781
|
-
return (Y = (
|
|
1757
|
+
return [se(o, () => {
|
|
1758
|
+
var N, W, Y;
|
|
1759
|
+
return (Y = (N = V().validateOnModelUpdate) !== null && N !== void 0 ? N : (W = Ze()) === null || W === void 0 ? void 0 : W.validateOnModelUpdate) !== null && Y !== void 0 ? Y : !0;
|
|
1782
1760
|
}), Z];
|
|
1783
1761
|
}
|
|
1784
|
-
function Yn(
|
|
1785
|
-
return Array.isArray(
|
|
1762
|
+
function Yn(o) {
|
|
1763
|
+
return Array.isArray(o) ? o.map((l) => se(l, !0)) : se(o);
|
|
1786
1764
|
}
|
|
1787
|
-
function Jn(
|
|
1788
|
-
const [f,
|
|
1765
|
+
function Jn(o, l) {
|
|
1766
|
+
const [f, h] = dt(o, l);
|
|
1789
1767
|
function V() {
|
|
1790
|
-
|
|
1768
|
+
h.value.onBlur();
|
|
1791
1769
|
}
|
|
1792
|
-
function
|
|
1793
|
-
const Z = rt(
|
|
1794
|
-
|
|
1770
|
+
function $(k) {
|
|
1771
|
+
const Z = rt(k);
|
|
1772
|
+
P(p(o), Z, !1), h.value.onInput();
|
|
1795
1773
|
}
|
|
1796
|
-
function b(
|
|
1797
|
-
const Z = rt(
|
|
1798
|
-
|
|
1774
|
+
function b(k) {
|
|
1775
|
+
const Z = rt(k);
|
|
1776
|
+
P(p(o), Z, !1), h.value.onChange();
|
|
1799
1777
|
}
|
|
1800
|
-
return w(() => Object.assign(Object.assign({},
|
|
1778
|
+
return w(() => Object.assign(Object.assign({}, h.value), {
|
|
1801
1779
|
onBlur: V,
|
|
1802
|
-
onInput:
|
|
1780
|
+
onInput: $,
|
|
1803
1781
|
onChange: b,
|
|
1804
1782
|
value: f.value
|
|
1805
1783
|
}));
|
|
1806
1784
|
}
|
|
1807
|
-
function Xn(
|
|
1808
|
-
const [f,
|
|
1809
|
-
function
|
|
1785
|
+
function Xn(o, l) {
|
|
1786
|
+
const [f, h] = dt(o, l), V = D(p(o));
|
|
1787
|
+
function $(b) {
|
|
1810
1788
|
f.value = b;
|
|
1811
1789
|
}
|
|
1812
1790
|
return w(() => {
|
|
1813
|
-
const b = K(
|
|
1814
|
-
return Object.assign({ [b.model || "modelValue"]: f.value, [`onUpdate:${b.model || "modelValue"}`]:
|
|
1791
|
+
const b = K(l) ? l(qe(V, Ke)) : l || {};
|
|
1792
|
+
return Object.assign({ [b.model || "modelValue"]: f.value, [`onUpdate:${b.model || "modelValue"}`]: $ }, h.value);
|
|
1815
1793
|
});
|
|
1816
1794
|
}
|
|
1817
|
-
const Zt = Object.assign(Object.assign({},
|
|
1818
|
-
return At(
|
|
1795
|
+
const Zt = Object.assign(Object.assign({}, E), { values: Qn(d), handleReset: () => st(), submitForm: Hn });
|
|
1796
|
+
return At(gi, Zt), Zt;
|
|
1819
1797
|
}
|
|
1820
|
-
function
|
|
1798
|
+
function ra(e, t, n, r) {
|
|
1821
1799
|
const i = {
|
|
1822
1800
|
touched: "some",
|
|
1823
1801
|
pending: "some",
|
|
1824
1802
|
valid: "every"
|
|
1825
|
-
},
|
|
1803
|
+
}, a = w(() => !H(t, A(n)));
|
|
1826
1804
|
function u() {
|
|
1827
1805
|
const s = e.value;
|
|
1828
1806
|
return J(i).reduce((d, m) => {
|
|
1829
1807
|
const g = i[m];
|
|
1830
|
-
return d[m] = s[g]((
|
|
1808
|
+
return d[m] = s[g]((S) => S[m]), d;
|
|
1831
1809
|
}, {});
|
|
1832
1810
|
}
|
|
1833
1811
|
const c = et(u());
|
|
1834
1812
|
return er(() => {
|
|
1835
1813
|
const s = u();
|
|
1836
1814
|
c.touched = s.touched, c.valid = s.valid, c.pending = s.pending;
|
|
1837
|
-
}), w(() => Object.assign(Object.assign({ initialValues: A(n) }, c), { valid: c.valid && !J(r.value).length, dirty:
|
|
1815
|
+
}), w(() => Object.assign(Object.assign({ initialValues: A(n) }, c), { valid: c.valid && !J(r.value).length, dirty: a.value }));
|
|
1838
1816
|
}
|
|
1839
|
-
function
|
|
1840
|
-
const r =
|
|
1817
|
+
function ia(e, t, n) {
|
|
1818
|
+
const r = Nn(n), i = ee(r), a = ee(C(r));
|
|
1841
1819
|
function u(c, s) {
|
|
1842
|
-
s != null && s.force ? (i.value = C(c),
|
|
1820
|
+
s != null && s.force ? (i.value = C(c), a.value = C(c)) : (i.value = De(C(i.value) || {}, C(c)), a.value = De(C(a.value) || {}, C(c))), s != null && s.updateFields && e.value.forEach((d) => {
|
|
1843
1821
|
if (d.touched)
|
|
1844
1822
|
return;
|
|
1845
1823
|
const g = Q(i.value, p(d.path));
|
|
@@ -1848,18 +1826,18 @@ function oo(e, t, n) {
|
|
|
1848
1826
|
}
|
|
1849
1827
|
return {
|
|
1850
1828
|
initialValues: i,
|
|
1851
|
-
originalInitialValues:
|
|
1829
|
+
originalInitialValues: a,
|
|
1852
1830
|
setInitialValues: u
|
|
1853
1831
|
};
|
|
1854
1832
|
}
|
|
1855
|
-
function
|
|
1833
|
+
function aa(e, t) {
|
|
1856
1834
|
return t ? {
|
|
1857
1835
|
valid: e.valid && t.valid,
|
|
1858
1836
|
errors: [...e.errors, ...t.errors]
|
|
1859
1837
|
} : e;
|
|
1860
1838
|
}
|
|
1861
|
-
const
|
|
1862
|
-
...
|
|
1839
|
+
const $t = fn("form"), za = /* @__PURE__ */ Et({
|
|
1840
|
+
...jt("Form"),
|
|
1863
1841
|
__name: "Form",
|
|
1864
1842
|
props: {
|
|
1865
1843
|
validationSchema: {},
|
|
@@ -1876,38 +1854,38 @@ const jt = fn("form"), Lo = /* @__PURE__ */ $t({
|
|
|
1876
1854
|
},
|
|
1877
1855
|
emits: ["update:modelValue", "submit", "validationFail"],
|
|
1878
1856
|
setup(e, { expose: t, emit: n }) {
|
|
1879
|
-
const r = e, i = n,
|
|
1857
|
+
const r = e, i = n, a = ee({});
|
|
1880
1858
|
G(
|
|
1881
1859
|
() => r.validationSchema,
|
|
1882
1860
|
(v) => {
|
|
1883
|
-
Ie(v) ?
|
|
1861
|
+
Ie(v) ? a.value = A(v) : a.value = {};
|
|
1884
1862
|
},
|
|
1885
1863
|
{
|
|
1886
1864
|
immediate: !0,
|
|
1887
1865
|
deep: !0
|
|
1888
1866
|
}
|
|
1889
1867
|
);
|
|
1890
|
-
const u =
|
|
1868
|
+
const u = na({
|
|
1891
1869
|
...r,
|
|
1892
|
-
name: r.name ?? vn(
|
|
1870
|
+
name: r.name ?? vn($t),
|
|
1893
1871
|
initialValues: we(r.modelValue ?? r.initialValues ?? {}),
|
|
1894
|
-
validationSchema:
|
|
1872
|
+
validationSchema: a
|
|
1895
1873
|
}), c = ee(!1), s = (v = !0) => {
|
|
1896
|
-
const
|
|
1897
|
-
if (!
|
|
1898
|
-
const
|
|
1874
|
+
const _ = we(r.modelValue);
|
|
1875
|
+
if (!_ || !Ie(_)) return;
|
|
1876
|
+
const M = (O, R = "") => {
|
|
1899
1877
|
for (const x in O)
|
|
1900
1878
|
if (O.hasOwnProperty(x)) {
|
|
1901
|
-
const
|
|
1902
|
-
if (Ie(
|
|
1903
|
-
|
|
1879
|
+
const oe = O[x], te = R ? `${R}.${x}` : x;
|
|
1880
|
+
if (Ie(oe) && !Array.isArray(oe))
|
|
1881
|
+
M(oe, te);
|
|
1904
1882
|
else {
|
|
1905
|
-
const
|
|
1906
|
-
br(
|
|
1883
|
+
const j = Mt(u.values, te);
|
|
1884
|
+
br(j, oe) || u.setFieldValue(te, oe, v);
|
|
1907
1885
|
}
|
|
1908
1886
|
}
|
|
1909
1887
|
};
|
|
1910
|
-
|
|
1888
|
+
M(_);
|
|
1911
1889
|
};
|
|
1912
1890
|
G(
|
|
1913
1891
|
() => r.modelValue,
|
|
@@ -1924,16 +1902,16 @@ const jt = fn("form"), Lo = /* @__PURE__ */ $t({
|
|
|
1924
1902
|
);
|
|
1925
1903
|
const d = (v) => (v == null ? void 0 : v.__type) === "VVTypedSchema" || (v == null ? void 0 : v.__isYupSchema__), m = (v) => {
|
|
1926
1904
|
if (v)
|
|
1927
|
-
return d(
|
|
1928
|
-
}, g = (v,
|
|
1929
|
-
if (
|
|
1930
|
-
if (d(
|
|
1905
|
+
return d(a.value) ? void 0 : Mt(we(a.value ?? {}), v);
|
|
1906
|
+
}, g = (v, _) => {
|
|
1907
|
+
if (_ && v) {
|
|
1908
|
+
if (d(a.value)) {
|
|
1931
1909
|
console.warn("Con not set field validation on typedSchema (validationSchema is typedSchema)");
|
|
1932
1910
|
return;
|
|
1933
1911
|
}
|
|
1934
|
-
Ie(
|
|
1912
|
+
Ie(a.value) || (a.value = {}), oi(a.value, v, A(_));
|
|
1935
1913
|
}
|
|
1936
|
-
},
|
|
1914
|
+
}, S = () => {
|
|
1937
1915
|
u.handleSubmit(
|
|
1938
1916
|
() => {
|
|
1939
1917
|
i("submit", we(A(u.values) ?? {}));
|
|
@@ -1946,15 +1924,15 @@ const jt = fn("form"), Lo = /* @__PURE__ */ $t({
|
|
|
1946
1924
|
return mr({
|
|
1947
1925
|
props: r,
|
|
1948
1926
|
form: u,
|
|
1949
|
-
validationSchema:
|
|
1927
|
+
validationSchema: a,
|
|
1950
1928
|
isFormModelUpdating: c,
|
|
1951
1929
|
getFieldValidation: m,
|
|
1952
1930
|
setFieldValidation: g
|
|
1953
|
-
}), t(u), (v,
|
|
1954
|
-
class:
|
|
1955
|
-
onSubmit:
|
|
1931
|
+
}), t(u), (v, _) => (pe(), _e("form", {
|
|
1932
|
+
class: Se(A(Ce)(A($t), r.class)),
|
|
1933
|
+
onSubmit: ar(S, ["prevent"])
|
|
1956
1934
|
}, [
|
|
1957
|
-
|
|
1935
|
+
ke(v.$slots, "default", Xe(Qe(A(u))))
|
|
1958
1936
|
], 34));
|
|
1959
1937
|
}
|
|
1960
1938
|
});
|
|
@@ -2055,170 +2033,170 @@ const Ge = {
|
|
|
2055
2033
|
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,
|
|
2056
2034
|
az: /^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i,
|
|
2057
2035
|
ug: /^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ_-]*$/i
|
|
2058
|
-
},
|
|
2036
|
+
}, at = (e) => {
|
|
2059
2037
|
if (e)
|
|
2060
2038
|
return Array.isArray(e) ? e[0] : e.locale;
|
|
2061
2039
|
};
|
|
2062
|
-
function
|
|
2040
|
+
function le(e, t) {
|
|
2063
2041
|
return Array.isArray(e) ? e[0] : e[t];
|
|
2064
2042
|
}
|
|
2065
|
-
function
|
|
2043
|
+
function T(e) {
|
|
2066
2044
|
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
2067
2045
|
}
|
|
2068
|
-
const
|
|
2069
|
-
if (
|
|
2046
|
+
const kn = (e, t) => {
|
|
2047
|
+
if (T(e))
|
|
2070
2048
|
return !0;
|
|
2071
|
-
const n =
|
|
2049
|
+
const n = at(t);
|
|
2072
2050
|
if (Array.isArray(e))
|
|
2073
|
-
return e.every((i) =>
|
|
2051
|
+
return e.every((i) => kn(i, { locale: n }));
|
|
2074
2052
|
const r = String(e);
|
|
2075
2053
|
return n ? (Ge[n] || Ge.en).test(r) : Object.keys(Ge).some((i) => Ge[i].test(r));
|
|
2076
|
-
},
|
|
2077
|
-
if (
|
|
2054
|
+
}, Tn = (e, t) => {
|
|
2055
|
+
if (T(e))
|
|
2078
2056
|
return !0;
|
|
2079
|
-
const n =
|
|
2057
|
+
const n = at(t);
|
|
2080
2058
|
if (Array.isArray(e))
|
|
2081
|
-
return e.every((i) =>
|
|
2059
|
+
return e.every((i) => Tn(i, { locale: n }));
|
|
2082
2060
|
const r = String(e);
|
|
2083
2061
|
return n ? (Je[n] || Je.en).test(r) : Object.keys(Je).some((i) => Je[i].test(r));
|
|
2084
2062
|
}, xn = (e, t) => {
|
|
2085
|
-
if (
|
|
2063
|
+
if (T(e))
|
|
2086
2064
|
return !0;
|
|
2087
|
-
const n =
|
|
2065
|
+
const n = at(t);
|
|
2088
2066
|
if (Array.isArray(e))
|
|
2089
2067
|
return e.every((i) => xn(i, { locale: n }));
|
|
2090
2068
|
const r = String(e);
|
|
2091
2069
|
return n ? (Ye[n] || Ye.en).test(r) : Object.keys(Ye).some((i) => Ye[i].test(r));
|
|
2092
2070
|
}, Zn = (e, t) => {
|
|
2093
|
-
if (
|
|
2071
|
+
if (T(e))
|
|
2094
2072
|
return !0;
|
|
2095
|
-
const n =
|
|
2073
|
+
const n = at(t);
|
|
2096
2074
|
if (Array.isArray(e))
|
|
2097
2075
|
return e.every((i) => Zn(i, { locale: n }));
|
|
2098
2076
|
const r = String(e);
|
|
2099
2077
|
return n ? (He[n] || He.en).test(r) : Object.keys(He).some((i) => He[i].test(r));
|
|
2100
2078
|
};
|
|
2101
|
-
function
|
|
2079
|
+
function la(e) {
|
|
2102
2080
|
return Array.isArray(e) ? { min: e[0], max: e[1] } : e;
|
|
2103
2081
|
}
|
|
2104
2082
|
const Bn = (e, t) => {
|
|
2105
|
-
if (
|
|
2083
|
+
if (T(e))
|
|
2106
2084
|
return !0;
|
|
2107
|
-
const { min: n, max: r } =
|
|
2085
|
+
const { min: n, max: r } = la(t);
|
|
2108
2086
|
if (Array.isArray(e))
|
|
2109
|
-
return e.every((
|
|
2087
|
+
return e.every((a) => Bn(a, { min: n, max: r }));
|
|
2110
2088
|
const i = Number(e);
|
|
2111
2089
|
return Number(n) <= i && Number(r) >= i;
|
|
2112
|
-
},
|
|
2113
|
-
const n =
|
|
2090
|
+
}, oa = (e, t) => {
|
|
2091
|
+
const n = le(t, "target");
|
|
2114
2092
|
return String(e) === String(n);
|
|
2115
2093
|
}, Rn = (e, t) => {
|
|
2116
|
-
if (
|
|
2094
|
+
if (T(e))
|
|
2117
2095
|
return !0;
|
|
2118
|
-
const n =
|
|
2096
|
+
const n = le(t, "length");
|
|
2119
2097
|
if (Array.isArray(e))
|
|
2120
2098
|
return e.every((i) => Rn(i, { length: n }));
|
|
2121
2099
|
const r = String(e);
|
|
2122
2100
|
return /^[0-9]*$/.test(r) && r.length === Number(n);
|
|
2123
|
-
},
|
|
2101
|
+
}, ua = (e, t, n) => {
|
|
2124
2102
|
const r = window.URL || window.webkitURL;
|
|
2125
2103
|
return new Promise((i) => {
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2104
|
+
const a = new Image();
|
|
2105
|
+
a.onerror = () => i(!1), a.onload = () => i(a.width === t && a.height === n), a.src = r.createObjectURL(e);
|
|
2128
2106
|
});
|
|
2129
2107
|
};
|
|
2130
|
-
function
|
|
2108
|
+
function sa(e) {
|
|
2131
2109
|
return e ? Array.isArray(e) ? { width: Number(e[0]), height: Number(e[1]) } : {
|
|
2132
2110
|
width: Number(e.width),
|
|
2133
2111
|
height: Number(e.height)
|
|
2134
2112
|
} : { width: 0, height: 0 };
|
|
2135
2113
|
}
|
|
2136
|
-
const
|
|
2137
|
-
if (
|
|
2114
|
+
const ca = (e, t) => {
|
|
2115
|
+
if (T(e))
|
|
2138
2116
|
return !0;
|
|
2139
|
-
const { width: n, height: r } =
|
|
2140
|
-
for (let u = 0; u <
|
|
2141
|
-
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(
|
|
2117
|
+
const { width: n, height: r } = sa(t), i = [], a = Array.isArray(e) ? e : [e];
|
|
2118
|
+
for (let u = 0; u < a.length; u++) {
|
|
2119
|
+
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(a[u].name))
|
|
2142
2120
|
return Promise.resolve(!1);
|
|
2143
|
-
i.push(
|
|
2121
|
+
i.push(a[u]);
|
|
2144
2122
|
}
|
|
2145
|
-
return Promise.all(i.map((u) =>
|
|
2146
|
-
}, rn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,
|
|
2147
|
-
if (
|
|
2123
|
+
return Promise.all(i.map((u) => ua(u, n, r))).then((u) => u.every((c) => c));
|
|
2124
|
+
}, rn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, da = (e) => T(e) ? !0 : Array.isArray(e) ? e.every((t) => rn.test(String(t))) : rn.test(String(e)), fa = (e, t) => {
|
|
2125
|
+
if (T(e))
|
|
2148
2126
|
return !0;
|
|
2149
2127
|
const n = new RegExp(`\\.(${t.join("|")})$`, "i");
|
|
2150
2128
|
return Array.isArray(e) ? e.every((r) => n.test(r.name)) : n.test(e.name);
|
|
2151
|
-
},
|
|
2152
|
-
if (
|
|
2129
|
+
}, va = (e) => {
|
|
2130
|
+
if (T(e))
|
|
2153
2131
|
return !0;
|
|
2154
2132
|
const t = /\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;
|
|
2155
2133
|
return Array.isArray(e) ? e.every((n) => t.test(n.name)) : t.test(e.name);
|
|
2156
|
-
},
|
|
2157
|
-
const n =
|
|
2134
|
+
}, ma = (e) => T(e) ? !0 : Array.isArray(e) ? e.every((t) => /^-?[0-9]+$/.test(String(t))) : /^-?[0-9]+$/.test(String(e)), ha = (e, t) => {
|
|
2135
|
+
const n = le(t, "other");
|
|
2158
2136
|
return e === n;
|
|
2159
|
-
},
|
|
2160
|
-
const n =
|
|
2137
|
+
}, ga = (e, t) => {
|
|
2138
|
+
const n = le(t, "other");
|
|
2161
2139
|
return e !== n;
|
|
2162
|
-
},
|
|
2163
|
-
if (
|
|
2140
|
+
}, ya = (e, t) => {
|
|
2141
|
+
if (T(e))
|
|
2164
2142
|
return !0;
|
|
2165
|
-
const n =
|
|
2143
|
+
const n = le(t, "length");
|
|
2166
2144
|
return typeof e == "number" && (e = String(e)), e.length || (e = Array.from(e)), e.length === Number(n);
|
|
2167
|
-
}, Un = (e, t) => {
|
|
2168
|
-
if (k(e))
|
|
2169
|
-
return !0;
|
|
2170
|
-
const n = ae(t, "length");
|
|
2171
|
-
return Array.isArray(e) ? e.every((r) => Un(r, { length: n })) : [...String(e)].length <= Number(n);
|
|
2172
2145
|
}, Mn = (e, t) => {
|
|
2173
|
-
if (
|
|
2146
|
+
if (T(e))
|
|
2147
|
+
return !0;
|
|
2148
|
+
const n = le(t, "length");
|
|
2149
|
+
return Array.isArray(e) ? e.every((r) => Mn(r, { length: n })) : [...String(e)].length <= Number(n);
|
|
2150
|
+
}, Un = (e, t) => {
|
|
2151
|
+
if (T(e))
|
|
2174
2152
|
return !0;
|
|
2175
|
-
const n =
|
|
2176
|
-
return Array.isArray(e) ? e.length > 0 && e.every((r) =>
|
|
2177
|
-
},
|
|
2178
|
-
function
|
|
2153
|
+
const n = le(t, "max");
|
|
2154
|
+
return Array.isArray(e) ? e.length > 0 && e.every((r) => Un(r, { max: n })) : Number(e) <= Number(n);
|
|
2155
|
+
}, an = /\+(.+)?/;
|
|
2156
|
+
function pa(e) {
|
|
2179
2157
|
let t = e;
|
|
2180
|
-
return
|
|
2158
|
+
return an.test(e) && (t = e.replace(an, "(\\+$1)?")), new RegExp(t.replace("*", ".+"), "i");
|
|
2181
2159
|
}
|
|
2182
|
-
const
|
|
2183
|
-
if (
|
|
2160
|
+
const ba = (e, t) => {
|
|
2161
|
+
if (T(e))
|
|
2184
2162
|
return !0;
|
|
2185
2163
|
t || (t = []);
|
|
2186
|
-
const n = t.map(
|
|
2164
|
+
const n = t.map(pa);
|
|
2187
2165
|
return Array.isArray(e) ? e.every((r) => n.some((i) => i.test(r.type))) : n.some((r) => r.test(e.type));
|
|
2188
2166
|
}, Dn = (e, t) => {
|
|
2189
|
-
if (
|
|
2167
|
+
if (T(e))
|
|
2190
2168
|
return !0;
|
|
2191
|
-
const n =
|
|
2169
|
+
const n = le(t, "length");
|
|
2192
2170
|
return Array.isArray(e) ? e.every((r) => Dn(r, { length: n })) : [...String(e)].length >= Number(n);
|
|
2193
2171
|
}, zn = (e, t) => {
|
|
2194
|
-
if (
|
|
2172
|
+
if (T(e))
|
|
2195
2173
|
return !0;
|
|
2196
|
-
const n =
|
|
2174
|
+
const n = le(t, "min");
|
|
2197
2175
|
return Array.isArray(e) ? e.length > 0 && e.every((r) => zn(r, { min: n })) : Number(e) >= Number(n);
|
|
2198
|
-
}, Ft = (e, t) =>
|
|
2199
|
-
if (
|
|
2176
|
+
}, Ft = (e, t) => T(e) ? !0 : Array.isArray(e) ? e.every((n) => Ft(n, t)) : Array.from(t).some((n) => n == e), Aa = (e, t) => T(e) ? !0 : !Ft(e, t), Va = /^[٠١٢٣٤٥٦٧٨٩]+$/, Oa = /^[0-9]+$/, _a = (e) => {
|
|
2177
|
+
if (T(e))
|
|
2200
2178
|
return !0;
|
|
2201
2179
|
const t = (n) => {
|
|
2202
2180
|
const r = String(n);
|
|
2203
|
-
return
|
|
2181
|
+
return Oa.test(r) || Va.test(r);
|
|
2204
2182
|
};
|
|
2205
2183
|
return Array.isArray(e) ? e.every(t) : t(e);
|
|
2206
2184
|
}, Ln = (e, t) => {
|
|
2207
|
-
if (
|
|
2185
|
+
if (T(e))
|
|
2208
2186
|
return !0;
|
|
2209
|
-
let n =
|
|
2187
|
+
let n = le(t, "regex");
|
|
2210
2188
|
return typeof n == "string" && (n = new RegExp(n)), Array.isArray(e) ? e.every((r) => Ln(r, { regex: n })) : n.test(String(e));
|
|
2211
2189
|
};
|
|
2212
|
-
function
|
|
2190
|
+
function Sa(e) {
|
|
2213
2191
|
return e == null;
|
|
2214
2192
|
}
|
|
2215
|
-
function
|
|
2193
|
+
function $a(e) {
|
|
2216
2194
|
return Array.isArray(e) && e.length === 0;
|
|
2217
2195
|
}
|
|
2218
|
-
const
|
|
2219
|
-
if (
|
|
2196
|
+
const Ea = (e) => Sa(e) || $a(e) || e === !1 ? !1 : !!String(e).trim().length, ja = (e, t) => {
|
|
2197
|
+
if (T(e))
|
|
2220
2198
|
return !0;
|
|
2221
|
-
let n =
|
|
2199
|
+
let n = le(t, "size");
|
|
2222
2200
|
if (n = Number(n), isNaN(n))
|
|
2223
2201
|
return !1;
|
|
2224
2202
|
const r = n * 1024;
|
|
@@ -2228,11 +2206,11 @@ const wo = (e) => $o(e) || Eo(e) || e === !1 ? !1 : !!String(e).trim().length, C
|
|
|
2228
2206
|
if (e[i].size > r)
|
|
2229
2207
|
return !1;
|
|
2230
2208
|
return !0;
|
|
2231
|
-
},
|
|
2209
|
+
}, wa = (e, t) => {
|
|
2232
2210
|
var n;
|
|
2233
|
-
if (
|
|
2211
|
+
if (T(e))
|
|
2234
2212
|
return !0;
|
|
2235
|
-
let r =
|
|
2213
|
+
let r = le(t, "pattern");
|
|
2236
2214
|
typeof r == "string" && (r = new RegExp(r));
|
|
2237
2215
|
try {
|
|
2238
2216
|
new URL(e);
|
|
@@ -2240,42 +2218,42 @@ const wo = (e) => $o(e) || Eo(e) || e === !1 ? !1 : !!String(e).trim().length, C
|
|
|
2240
2218
|
return !1;
|
|
2241
2219
|
}
|
|
2242
2220
|
return (n = r == null ? void 0 : r.test(e)) !== null && n !== void 0 ? n : !0;
|
|
2243
|
-
},
|
|
2244
|
-
alpha_dash:
|
|
2221
|
+
}, ln = {
|
|
2222
|
+
alpha_dash: Tn,
|
|
2245
2223
|
alpha_num: xn,
|
|
2246
2224
|
alpha_spaces: Zn,
|
|
2247
|
-
alpha:
|
|
2225
|
+
alpha: kn,
|
|
2248
2226
|
between: Bn,
|
|
2249
|
-
confirmed:
|
|
2227
|
+
confirmed: oa,
|
|
2250
2228
|
digits: Rn,
|
|
2251
|
-
dimensions:
|
|
2252
|
-
email:
|
|
2253
|
-
ext:
|
|
2254
|
-
image:
|
|
2255
|
-
integer:
|
|
2256
|
-
is_not:
|
|
2257
|
-
is:
|
|
2258
|
-
length:
|
|
2259
|
-
max_value:
|
|
2260
|
-
max:
|
|
2261
|
-
mimes:
|
|
2229
|
+
dimensions: ca,
|
|
2230
|
+
email: da,
|
|
2231
|
+
ext: fa,
|
|
2232
|
+
image: va,
|
|
2233
|
+
integer: ma,
|
|
2234
|
+
is_not: ga,
|
|
2235
|
+
is: ha,
|
|
2236
|
+
length: ya,
|
|
2237
|
+
max_value: Un,
|
|
2238
|
+
max: Mn,
|
|
2239
|
+
mimes: ba,
|
|
2262
2240
|
min_value: zn,
|
|
2263
2241
|
min: Dn,
|
|
2264
|
-
not_one_of:
|
|
2265
|
-
numeric:
|
|
2242
|
+
not_one_of: Aa,
|
|
2243
|
+
numeric: _a,
|
|
2266
2244
|
one_of: Ft,
|
|
2267
2245
|
regex: Ln,
|
|
2268
|
-
required:
|
|
2269
|
-
size:
|
|
2270
|
-
url:
|
|
2271
|
-
},
|
|
2272
|
-
Object.keys(
|
|
2273
|
-
|
|
2246
|
+
required: Ea,
|
|
2247
|
+
size: ja,
|
|
2248
|
+
url: wa
|
|
2249
|
+
}, Ca = () => {
|
|
2250
|
+
Object.keys(ln).forEach((e) => {
|
|
2251
|
+
vi(e, ln[e]);
|
|
2274
2252
|
});
|
|
2275
2253
|
};
|
|
2276
|
-
|
|
2277
|
-
const
|
|
2278
|
-
...
|
|
2254
|
+
Ca();
|
|
2255
|
+
const La = /* @__PURE__ */ Et({
|
|
2256
|
+
...jt("FormItem"),
|
|
2279
2257
|
__name: "FormItem",
|
|
2280
2258
|
props: {
|
|
2281
2259
|
validateOnValueUpdate: { type: Boolean, default: !0 },
|
|
@@ -2326,23 +2304,23 @@ const Wo = /* @__PURE__ */ $t({
|
|
|
2326
2304
|
},
|
|
2327
2305
|
emits: ["update:modelValue", "change"],
|
|
2328
2306
|
setup(e, { expose: t, emit: n }) {
|
|
2329
|
-
const r = e, i = n,
|
|
2307
|
+
const r = e, i = n, a = We($t, "item"), u = We(a, "explanation"), c = gn(a, {
|
|
2330
2308
|
variants: {
|
|
2331
|
-
size: mn(
|
|
2309
|
+
size: mn(hr, a)
|
|
2332
2310
|
}
|
|
2333
2311
|
}), s = gr(), d = w(() => {
|
|
2334
2312
|
if (Rt(r.name)) return r.name;
|
|
2335
|
-
if (
|
|
2313
|
+
if (ei(r.name) && r.name.every((j) => Rt(j) || ti(j)))
|
|
2336
2314
|
return r.name.join(".");
|
|
2337
2315
|
throw "Invalid name";
|
|
2338
|
-
}), m = w(() => s != null && s.form ? void 0 : r.rules), g =
|
|
2316
|
+
}), m = w(() => s != null && s.form ? void 0 : r.rules), g = Ji(() => d.value, m, {
|
|
2339
2317
|
...r,
|
|
2340
2318
|
validateOnValueUpdate: !0
|
|
2341
2319
|
});
|
|
2342
|
-
let
|
|
2343
|
-
const v = (
|
|
2344
|
-
var
|
|
2345
|
-
!
|
|
2320
|
+
let S = !1;
|
|
2321
|
+
const v = (j = r.validateOnValueUpdate) => {
|
|
2322
|
+
var U;
|
|
2323
|
+
!S && !((U = s.isFormModelUpdating) != null && U.value) && !Wt(r.modelValue, g.value.value) && (S = !0, g.setValue(we(r.modelValue), j), q(() => S = !1));
|
|
2346
2324
|
};
|
|
2347
2325
|
if (G(
|
|
2348
2326
|
() => r.modelValue,
|
|
@@ -2350,42 +2328,42 @@ const Wo = /* @__PURE__ */ $t({
|
|
|
2350
2328
|
{ deep: !0 }
|
|
2351
2329
|
), r.modelValue !== void 0 && v(!1), G(
|
|
2352
2330
|
g.value,
|
|
2353
|
-
(
|
|
2354
|
-
var
|
|
2355
|
-
!
|
|
2331
|
+
(j) => {
|
|
2332
|
+
var U;
|
|
2333
|
+
!S && !((U = s.isFormModelUpdating) != null && U.value) && j !== r.modelValue && (S = !0, i("update:modelValue", j), q(() => S = !1));
|
|
2356
2334
|
},
|
|
2357
2335
|
{ deep: !0 }
|
|
2358
2336
|
), s.form) {
|
|
2359
|
-
const
|
|
2360
|
-
var
|
|
2337
|
+
const j = Ar(() => {
|
|
2338
|
+
var U, F;
|
|
2361
2339
|
if (r.rules && d.value) {
|
|
2362
|
-
const ne = (
|
|
2340
|
+
const ne = (U = s == null ? void 0 : s.getFieldValidation) == null ? void 0 : U.call(s, d.value);
|
|
2363
2341
|
(!ne || !Wt(ne, r.rules)) && ((F = s == null ? void 0 : s.setFieldValidation) == null || F.call(s, d.value, r.rules));
|
|
2364
2342
|
}
|
|
2365
2343
|
}, 50);
|
|
2366
|
-
G(() => [r.rules, s.validationSchema],
|
|
2344
|
+
G(() => [r.rules, s.validationSchema], j, {
|
|
2367
2345
|
immediate: !0,
|
|
2368
2346
|
deep: !0
|
|
2369
2347
|
});
|
|
2370
2348
|
}
|
|
2371
|
-
const
|
|
2349
|
+
const _ = sn(), M = w(() => r.id ?? vn(a)), O = w(() => ({
|
|
2372
2350
|
/** deprecated */
|
|
2373
2351
|
model: g.value,
|
|
2374
2352
|
form: s == null ? void 0 : s.form,
|
|
2375
|
-
onBlur: (
|
|
2376
|
-
g.handleBlur(
|
|
2353
|
+
onBlur: (j) => {
|
|
2354
|
+
g.handleBlur(j, r.validateOnBlur);
|
|
2377
2355
|
},
|
|
2378
|
-
onChange: (
|
|
2379
|
-
g.handleChange(
|
|
2356
|
+
onChange: (j) => {
|
|
2357
|
+
g.handleChange(j, r.validateOnValueUpdate);
|
|
2380
2358
|
},
|
|
2381
2359
|
field: g,
|
|
2382
|
-
id:
|
|
2360
|
+
id: M.value
|
|
2383
2361
|
})), R = w(() => {
|
|
2384
|
-
var
|
|
2385
|
-
return ((
|
|
2362
|
+
var j;
|
|
2363
|
+
return ((j = s == null ? void 0 : s.props) == null ? void 0 : j.size) ?? r.size;
|
|
2386
2364
|
}), x = w(
|
|
2387
2365
|
() => g.errors.value.length && (!r.status || !["error", "warning", "success"].includes(r.status)) ? "error" : r.status
|
|
2388
|
-
),
|
|
2366
|
+
), oe = w(
|
|
2389
2367
|
() => Vr(
|
|
2390
2368
|
{
|
|
2391
2369
|
...Or(r, [
|
|
@@ -2409,59 +2387,59 @@ const Wo = /* @__PURE__ */ $t({
|
|
|
2409
2387
|
]),
|
|
2410
2388
|
size: R.value === "lg" ? "md" : R.value
|
|
2411
2389
|
},
|
|
2412
|
-
|
|
2390
|
+
_r
|
|
2413
2391
|
)
|
|
2414
2392
|
), te = () => {
|
|
2415
|
-
if (r.info || r.description || r.leadingIcon || r.label ||
|
|
2393
|
+
if (r.info || r.description || r.leadingIcon || r.label || _.label || _.leadingIcon || _.required || _.optional || _.infoIcon || _.info || _.description)
|
|
2416
2394
|
return dn(
|
|
2417
|
-
|
|
2418
|
-
{ ...
|
|
2395
|
+
Qr,
|
|
2396
|
+
{ ...oe.value, for: M.value },
|
|
2419
2397
|
{
|
|
2420
|
-
...
|
|
2421
|
-
default:
|
|
2398
|
+
..._,
|
|
2399
|
+
default: _.label
|
|
2422
2400
|
}
|
|
2423
2401
|
);
|
|
2424
2402
|
};
|
|
2425
|
-
return
|
|
2403
|
+
return yr({
|
|
2426
2404
|
props: r,
|
|
2427
2405
|
field: g,
|
|
2428
2406
|
status: x
|
|
2429
2407
|
}), t({
|
|
2430
2408
|
field: g,
|
|
2431
2409
|
form: s == null ? void 0 : s.form
|
|
2432
|
-
}), (
|
|
2410
|
+
}), (j, U) => {
|
|
2433
2411
|
var F;
|
|
2434
|
-
return pe(),
|
|
2435
|
-
class:
|
|
2412
|
+
return pe(), _e("div", {
|
|
2413
|
+
class: Se(A(Ce)(A(c)({ size: R.value }), r.class))
|
|
2436
2414
|
}, [
|
|
2437
2415
|
cn(te),
|
|
2438
|
-
|
|
2416
|
+
_.default ? (pe(), _e("div", {
|
|
2439
2417
|
key: 0,
|
|
2440
|
-
class:
|
|
2418
|
+
class: Se(A(Ce)(A(We)(A(a), "input"), j.inputCls))
|
|
2441
2419
|
}, [
|
|
2442
|
-
|
|
2420
|
+
ke(j.$slots, "default", Xe(Qe(O.value)))
|
|
2443
2421
|
], 2)) : gt("", !0),
|
|
2444
|
-
|
|
2422
|
+
j.caption || _.caption ? (pe(), _e("div", {
|
|
2445
2423
|
key: 1,
|
|
2446
|
-
class:
|
|
2424
|
+
class: Se(A(Ce)(A(We)(A(a), "caption"), j.captionCls))
|
|
2447
2425
|
}, [
|
|
2448
|
-
|
|
2449
|
-
|
|
2426
|
+
ke(j.$slots, "caption", Xe(Qe(O.value)), () => [
|
|
2427
|
+
lr(or(j.caption), 1)
|
|
2450
2428
|
])
|
|
2451
2429
|
], 2)) : gt("", !0),
|
|
2452
|
-
(F = A(A(g).errors)) != null && F.length ||
|
|
2430
|
+
(F = A(A(g).errors)) != null && F.length || _.explanation ? (pe(), _e("div", {
|
|
2453
2431
|
key: 2,
|
|
2454
|
-
class:
|
|
2432
|
+
class: Se(A(Ce)(A(u), j.explanationCls))
|
|
2455
2433
|
}, [
|
|
2456
|
-
|
|
2457
|
-
(pe(!0),
|
|
2434
|
+
ke(j.$slots, "explanation", Xe(Qe(O.value)), () => [
|
|
2435
|
+
(pe(!0), _e(ur, null, sr(A(A(g).errors), (ne, me) => (pe(), cr(Ia, {
|
|
2458
2436
|
key: me,
|
|
2459
2437
|
status: x.value,
|
|
2460
2438
|
message: ne,
|
|
2461
|
-
class:
|
|
2439
|
+
class: Se(j.explanationItemCls)
|
|
2462
2440
|
}, {
|
|
2463
2441
|
default: dr(() => [
|
|
2464
|
-
|
|
2442
|
+
ke(j.$slots, "explanationItem", fr({ ref_for: !0 }, { ...O.value, message: ne }))
|
|
2465
2443
|
]),
|
|
2466
2444
|
_: 2
|
|
2467
2445
|
}, 1032, ["status", "message", "class"]))), 128))
|
|
@@ -2470,8 +2448,8 @@ const Wo = /* @__PURE__ */ $t({
|
|
|
2470
2448
|
], 2);
|
|
2471
2449
|
};
|
|
2472
2450
|
}
|
|
2473
|
-
}),
|
|
2474
|
-
...
|
|
2451
|
+
}), Ia = /* @__PURE__ */ Et({
|
|
2452
|
+
...jt("FormValidation"),
|
|
2475
2453
|
__name: "FormValidation",
|
|
2476
2454
|
props: {
|
|
2477
2455
|
message: {},
|
|
@@ -2488,7 +2466,7 @@ const Wo = /* @__PURE__ */ $t({
|
|
|
2488
2466
|
case "success":
|
|
2489
2467
|
return "tabler:circle-check";
|
|
2490
2468
|
}
|
|
2491
|
-
}), i = fn("form_validation"),
|
|
2469
|
+
}), i = fn("form_validation"), a = gn(i, {
|
|
2492
2470
|
variants: {
|
|
2493
2471
|
status: mn(pr, i)
|
|
2494
2472
|
}
|
|
@@ -2500,15 +2478,15 @@ const Wo = /* @__PURE__ */ $t({
|
|
|
2500
2478
|
Bt(s) ? t.message : s
|
|
2501
2479
|
] : c;
|
|
2502
2480
|
};
|
|
2503
|
-
return (c, s) => (pe(),
|
|
2504
|
-
class:
|
|
2481
|
+
return (c, s) => (pe(), _e("div", {
|
|
2482
|
+
class: Se(A(Ce)(A(a)(t), t.class))
|
|
2505
2483
|
}, [
|
|
2506
2484
|
cn(u)
|
|
2507
2485
|
], 2));
|
|
2508
2486
|
}
|
|
2509
2487
|
});
|
|
2510
2488
|
export {
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2489
|
+
za as _,
|
|
2490
|
+
La as a,
|
|
2491
|
+
Ia as b
|
|
2514
2492
|
};
|