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