epic-designer-gold 1.0.30 → 1.0.32
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/{_vue_commonjs-external-BbihI59z.cjs → _vue_commonjs-external-CccDNqHl.cjs} +1 -1
- package/dist/attributeView-3gE9ZveH.cjs +1 -0
- package/dist/{attributeView-CSiGWdPc.js → attributeView-Dcfm_fDW.js} +22 -22
- package/dist/{az-CJXcaytS.cjs → az-BHlmRKxT.cjs} +1 -1
- package/dist/be-Bix86zGn.cjs +1 -0
- package/dist/be-kPl6P6VI.js +37 -0
- package/dist/{bg-DCT06eJE.cjs → bg-DRyWA3-W.cjs} +1 -1
- package/dist/{bn-bd-DaKs5QkR.cjs → bn-bd-DsQtVph4.cjs} +1 -1
- package/dist/{button-BbHi0DmU.js → button-q-1FLMFj.js} +2 -2
- package/dist/{ca-DCcDFeSK.js → ca-B_2hM20M.js} +6 -6
- package/dist/core/components/asyncLoader/index.vue.d.ts +1 -1
- package/dist/core/components/builder/src/builder.vue.d.ts +6 -11
- package/dist/core/components/designer/src/designer.vue.d.ts +200 -9
- package/dist/core/components/designer/src/modules/actionBar/index.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/attributeView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/styleView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/componentView/index.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/editContainer/editNodeItem.vue.d.ts +4 -5
- package/dist/core/components/designer/src/modules/editContainer/editScreenContainer.vue.d.ts +7 -2
- package/dist/core/components/designer/src/modules/editContainer/index.vue.d.ts +19 -1
- package/dist/core/components/designer/src/modules/editContainer/nodeItem.vue.d.ts +3 -5
- package/dist/core/components/designer/src/modules/editContainer/previewJson.vue.d.ts +3 -1
- package/dist/core/components/designer/src/modules/editContainer/previewWidgets.vue.d.ts +5 -1
- package/dist/core/components/designer/src/modules/editContainer/toolbar.vue.d.ts +17 -1
- package/dist/core/components/designer/src/modules/header/index.vue.d.ts +6 -5
- package/dist/core/components/designer/src/modules/outline/outline.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/preview/index.vue.d.ts +85 -1
- package/dist/core/components/designer/src/modules/rightSidebar/breadcrumb.vue.d.ts +1 -1
- package/dist/core/components/icon/src/icon.vue.d.ts +4 -6
- package/dist/core/components/node/src/dynamicFormItem.vue.d.ts +12 -11
- package/dist/core/components/node/src/node.vue.d.ts +19 -24
- package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
- package/dist/core/components/tree/src/treeNodeItem.vue.d.ts +3 -4
- package/dist/core/components/tree/src/treeNodes.vue.d.ts +4 -6
- package/dist/core/extensions/EActionEditor/index.vue.d.ts +25 -1
- package/dist/core/extensions/EActionEditor/src/EArgsEditor.vue.d.ts +5 -7
- package/dist/core/extensions/EActionEditor/src/EScriptEdit.vue.d.ts +3 -1
- package/dist/core/extensions/EColEditor/index.vue.d.ts +1 -1
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +4 -5
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +5 -9
- package/dist/core/extensions/EDataSource/index.vue.d.ts +3 -1
- package/dist/core/extensions/EDescribe/index.vue.d.ts +9 -0
- package/dist/core/extensions/EInputSize/index.vue.d.ts +4 -5
- package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +9 -13
- package/dist/core/extensions/EOptionsEditor/optionItem.vue.d.ts +4 -5
- package/dist/core/extensions/ERuleEditor/ERuleItem.vue.d.ts +5 -6
- package/dist/core/extensions/ERuleEditor/index.vue.d.ts +1 -1
- package/dist/core/extensions/ESourceDataSelect/index.vue.d.ts +6 -10
- package/dist/core/extensions/EValidateParam/index.vue.d.ts +13 -0
- package/dist/core/extensions/MonacoEditor/index.vue.d.ts +15 -21
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +5 -6
- package/dist/core/extensions/Page/index.vue.d.ts +7 -7
- package/dist/{cs-D_hyDJBU.cjs → cs-fe0nQEUY.cjs} +1 -1
- package/dist/{de-CjumkRE8.js → de-DC7xuNPN.js} +3 -3
- package/dist/{el-DyUHskgW.js → el-C0J72FUl.js} +2 -2
- package/dist/{el-BCec0wpC.cjs → el-CUlPbKiq.cjs} +1 -1
- package/dist/{en-gb-C8f1Enek.js → en-gb-D42jaZg9.js} +5 -5
- package/dist/{es-DP04S73E.js → es-C058DgcQ.js} +4 -4
- package/dist/{es-BFLRglxD.cjs → es-CV4N9sQJ.cjs} +1 -1
- package/dist/{et-ipLqjCDG.js → et-hoTk9uxt.js} +5 -5
- package/dist/{eventView-5fa6mfSD.cjs → eventView-BExxE07B.cjs} +1 -1
- package/dist/{eventView-C2wKhfU_.js → eventView-eNaiVabA.js} +4 -4
- package/dist/{fade-in-scale-up.cssr-C_UMnGtI.cjs → fade-in-scale-up.cssr-D5DdSaTl.cjs} +1 -1
- package/dist/{fade-in-scale-up.cssr-BXjoIAAA.js → fade-in-scale-up.cssr-XJx96aae.js} +1 -1
- package/dist/{form-ChuxpD-f.cjs → form-BfnGWRf4.cjs} +1 -1
- package/dist/form-CUbklubB.cjs +1 -0
- package/dist/form-DGbjgAvD.js +208 -0
- package/dist/{form-Cr7tBgLQ.js → form-DkDGcNCH.js} +7 -7
- package/dist/{form-BPH0cDFl.js → form-r1D2WYPd.js} +3 -3
- package/dist/{formItem-D10Om12T.js → formItem-B6XaNgi9.js} +2 -2
- package/dist/{formItem-cj8JQT2r.js → formItem-BJ-M4LAL.js} +2 -2
- package/dist/{formItem-Do31LPIz.cjs → formItem-DS5AjuJ9.cjs} +1 -1
- package/dist/{formItem-DPnbV4m-.js → formItem-E3dd7dU1.js} +3 -3
- package/dist/{fr-D1kezmpm.cjs → fr-B_IotmK8.cjs} +1 -1
- package/dist/{fr-ca-EPfCD7sc.js → fr-ca-DfJb7eFN.js} +4 -4
- package/dist/ga-DP4_Ma79.js +22 -0
- package/dist/ga-Upa8swLh.cjs +1 -0
- package/dist/{gl-CBMDu4db.js → gl-L0SOKqrF.js} +1 -1
- package/dist/{gl-DI-aVaAh.cjs → gl-buZ-VDaz.cjs} +1 -1
- package/dist/{he-O14-JKYm.cjs → he-CwFEkyZP.cjs} +1 -1
- package/dist/{hi-nXeMgLvO.js → hi-CG6raJ8L.js} +2 -2
- package/dist/{hy-am-BLnv1pCz.cjs → hy-am-IbMCW8s4.cjs} +1 -1
- package/dist/{hy-am-CvHDFapi.js → hy-am-QWdQfrnZ.js} +2 -2
- package/dist/{icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js → icon.vue_vue_type_script_setup_true_lang-DW206h_7.js} +2 -2
- package/dist/{id-CO78nlWo.js → id-CXRpiOjX.js} +4 -4
- package/dist/{index-CU1ZFiwn.cjs → index-2ohl2GLw.cjs} +1 -1
- package/dist/index-3k1IXN1T.js +1772 -0
- package/dist/{index-B0OgKtuT.js → index-9Mn4Y5ul.js} +30 -30
- package/dist/index-B6Ukyb87.js +19 -0
- package/dist/index-B7v1JNbf.cjs +351 -0
- package/dist/index-BAbwPcMn.cjs +1 -0
- package/dist/index-BB6SDXJs.cjs +1 -0
- package/dist/{index-DgcFxYFp.js → index-BMXnkqXx.js} +3 -3
- package/dist/{index-CCCx1tbF.cjs → index-BRAbfTxT.cjs} +1 -1
- package/dist/index-BRSms-yQ.cjs +10 -0
- package/dist/{index-WkZdU_zw.js → index-BTaKazMR.js} +3 -3
- package/dist/index-BU3ulVXO.cjs +51 -0
- package/dist/index-BVGB9juO.cjs +352 -0
- package/dist/index-BWTbnurN.cjs +102 -0
- package/dist/index-BakH-Ay7.js +1513 -0
- package/dist/{index-BENF2JDS.cjs → index-Bc7x5Vkn.cjs} +1 -1
- package/dist/{index-B2RMcVgD.js → index-Bc8u8eU-.js} +3 -3
- package/dist/{index-tSmvj7CR.js → index-BdXFwT-C.js} +749 -721
- package/dist/{index-D1ZL6feZ.js → index-Bf7gu4Ub.js} +28210 -27533
- package/dist/index-BlIhb2K5.cjs +65 -0
- package/dist/{index-DYQi05p8.cjs → index-BozsQqds.cjs} +1 -1
- package/dist/index-BtKa0UKV.cjs +326 -0
- package/dist/{index-RL7vrExY.js → index-Bvn6Y1A5.js} +17 -17
- package/dist/index-C3ri9kGU.cjs +110 -0
- package/dist/index-C4CkFEzv.cjs +1 -0
- package/dist/{index-COyKmK8p.js → index-C4laxGCk.js} +532 -529
- package/dist/{index-DymbM-qI.js → index-C7vJTifa.js} +79 -72
- package/dist/{index-CpTA2IRB.js → index-CAYHjLKP.js} +10 -10
- package/dist/{index-BbTWJKHb.js → index-CEDiZXAp.js} +23 -23
- package/dist/index-CFjfJ0Cn.js +4 -0
- package/dist/index-CGiL64iE.cjs +10 -0
- package/dist/{index-CNOUPCih.js → index-CLAopW_w.js} +143 -142
- package/dist/index-CPjLNlCP.cjs +1 -0
- package/dist/{index-CdnV7DS4.js → index-CQSYlqUB.js} +3 -3
- package/dist/{index-Hdc_C4Xg.js → index-CRaEQ5ns.js} +116 -115
- package/dist/index-CcXd7BgN.js +451 -0
- package/dist/index-CmQ11tKB.js +59 -0
- package/dist/index-CnPBVx5Y.cjs +181 -0
- package/dist/index-CpTUkT9o.cjs +159 -0
- package/dist/index-CqIGF1hQ.cjs +86 -0
- package/dist/{index-lCYWKDlK.js → index-Cqt_axIP.js} +6 -6
- package/dist/index-DAYEBASh.js +1712 -0
- package/dist/{index-FgdbKgb5.cjs → index-DER3z6SG.cjs} +1 -1
- package/dist/{index-Dk0fyxAJ.cjs → index-DKeQ2WZr.cjs} +1 -1
- package/dist/{index-Cx7gKpkD.js → index-DMnyvgEN.js} +3 -3
- package/dist/{index-DaRhLTx9.js → index-DMuf-r1U.js} +489 -489
- package/dist/index-DNmTSnEn.js +122 -0
- package/dist/index-DRzL2wcU.cjs +1 -0
- package/dist/{index-gA02bxwJ.js → index-DUFhAGX3.js} +3443 -3361
- package/dist/{index-CjcjqKkB.js → index-DWSlxQBe.js} +87 -86
- package/dist/{index-DQ9Vb0QH.js → index-Dkj_Zz4E.js} +309 -308
- package/dist/index-DlWUR7vt.cjs +6 -0
- package/dist/{index-D2GF87Tg.cjs → index-DnpZItWQ.cjs} +1 -1
- package/dist/{index-BhMVNODR.js → index-DouKA23f.js} +4 -4
- package/dist/{index-3fW_aWMH.js → index-Ds_DeGh-.js} +581 -567
- package/dist/index-FaOdtMdB.cjs +214 -0
- package/dist/{index-DiDIFoTk.js → index-KXG0ExdR.js} +3 -3
- package/dist/{index-Cmfhlo_3.js → index-Tohe0ps_.js} +5 -5
- package/dist/index-Wv68i_Qm.cjs +1 -0
- package/dist/index-XEUPyaqB.js +655 -0
- package/dist/index-Y9Wgjz5m.cjs +1 -0
- package/dist/{index-v2u1WTMm.cjs → index-aIGMRk0a.cjs} +1 -1
- package/dist/{index-BEUYVwRA.cjs → index-eAXbC_rr.cjs} +1 -1
- package/dist/index-j1FWyAIY.cjs +1 -0
- package/dist/index-o6azVcPr.js +11903 -0
- package/dist/{index-Cln9MN7u.js → index-ocw8DZly.js} +5 -5
- package/dist/index-r7I2iBup.cjs +9 -0
- package/dist/{index-IGxCNti8.js → index-syyNmnFq.js} +5 -5
- package/dist/index-t1QZ07qC.cjs +864 -0
- package/dist/{index-R2r9Rw5O.cjs → index-uyQPLEww.cjs} +1 -1
- package/dist/{index-CpevxZqj.cjs → index-waYHs7SN.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/{is-C40R_fdL.cjs → is-DKGME0z-.cjs} +1 -1
- package/dist/{it-BFF7WzRR.js → it-BtbhD8pq.js} +1 -1
- package/dist/{it-D7K-0U_k.cjs → it-ZWKZeGyD.cjs} +1 -1
- package/dist/{ja-4CWMghxy.js → ja--ZXRcv9f.js} +4 -4
- package/dist/{ja-CAXCMb11.cjs → ja-pfO_QIN1.cjs} +1 -1
- package/dist/{ka-DrA_EMLP.js → ka-2eqGlkEl.js} +2 -2
- package/dist/{kk-Bv8yYeRk.cjs → kk-8gl4nJDr.cjs} +1 -1
- package/dist/{kk-QVPqpI2b.js → kk-U2vwYR0_.js} +2 -2
- package/dist/{km-BmycjYfj.cjs → km-BhO_ypYk.cjs} +1 -1
- package/dist/{km-CBMnSWv_.js → km-CvriZlET.js} +2 -2
- package/dist/{kn-TECqDIit.js → kn-B3fo7baQ.js} +2 -2
- package/dist/{kn-CFiXt5hu.cjs → kn-DbnERw-L.cjs} +1 -1
- package/dist/{lt-D0cq_0yM.js → lt-LJQA5IUB.js} +8 -8
- package/dist/{lv-CoTNe47-.cjs → lv-BOhsxkyH.cjs} +1 -1
- package/dist/{lv-CVdYvxq8.js → lv-mhTNPcB7.js} +6 -6
- package/dist/{mk-DVN6iYK_.cjs → mk-Bjsw8OIP.cjs} +1 -1
- package/dist/{mk-DDuk7A3P.js → mk-CwQCoXyz.js} +2 -2
- package/dist/{ml-DnXJOqZ0.cjs → ml-B2Uwy4uy.cjs} +1 -1
- package/dist/{ml-CPI3tJe8.js → ml-Cb3T32D6.js} +2 -2
- package/dist/{mn-CNbMEx0y.js → mn-CNzb6fwh.js} +2 -2
- package/dist/{mn-DMIrWGkN.cjs → mn-CsItTiQc.cjs} +1 -1
- package/dist/{modal-3Iw7tqyx.js → modal-BRQmBRpE.js} +4 -4
- package/dist/{modal-DZRJyZfk.cjs → modal-BgQNXEZY.cjs} +1 -1
- package/dist/{ms-my-BoMZ8Hzl.cjs → ms-my-BgFBTdYR.cjs} +1 -1
- package/dist/{ms-my-BcgYEtml.js → ms-my-CQBECOnt.js} +6 -6
- package/dist/{nb-BL5QmNEa.js → nb-ChJHZ1i8.js} +2 -2
- package/dist/{ne-9klrwaIE.js → ne-KSsPp_--.js} +4 -4
- package/dist/{ne-VNPqdWFn.cjs → ne-wk64JT9v.cjs} +1 -1
- package/dist/{nl-DBFNL8wC.cjs → nl-B5Fclgi6.cjs} +1 -1
- package/dist/ocrUpload-CMskfGHX.cjs +1 -0
- package/dist/ocrUpload-Cxxs1GtD.js +521 -0
- package/dist/orcSelectPage-CXd59VaA.js +47 -0
- package/dist/orcSelectPage-DY_4W3lm.cjs +1 -0
- package/dist/{outline-BE98qFHQ.cjs → outline-BkNtj_2a.cjs} +1 -1
- package/dist/{outline-Ch5PHy3c.js → outline-S7RIV1S6.js} +4 -4
- package/dist/{pluginManager-BCnrHPYv.js → pluginManager-B0y107-1.js} +1 -1
- package/dist/{pluginManager-DWHAX8kP.cjs → pluginManager-C8aQylGX.cjs} +1 -1
- package/dist/{pt-BaTZB0XW.cjs → pt-BfCV6EE0.cjs} +1 -1
- package/dist/{pt-br-C1mqj5qX.js → pt-br-BC7LLaiM.js} +3 -3
- package/dist/{pt-br-B_N58uu_.cjs → pt-br-Cmqeku7l.cjs} +1 -1
- package/dist/{ro-Cnuhxb40.cjs → ro-BoP4bVrV.cjs} +1 -1
- package/dist/row-CAcx39Av.cjs +1 -0
- package/dist/row-DhORW-4_.js +34 -0
- package/dist/{ru-CCbLARi0.js → ru-CLqP_yvB.js} +5 -5
- package/dist/select-957IpcJa.js +38 -0
- package/dist/select-BgVmNynq.cjs +1 -0
- package/dist/{selectPage-CrdVWKGk.cjs → selectPage-H4G0pWhK.cjs} +1 -1
- package/dist/{selectPage-Bm45M31g.js → selectPage-oM1OpHbJ.js} +3 -3
- package/dist/{sign-BS-9u6is.cjs → sign-Cusu4oCD.cjs} +1 -1
- package/dist/{sign-l63EYvVo.js → sign-Cz5OCE1C.js} +12 -12
- package/dist/{sk-DRjgEzVO.cjs → sk-DvU2x_On.cjs} +1 -1
- package/dist/{sl-CL8MnX8D.js → sl-MH1u3xWj.js} +9 -9
- package/dist/style.css +1 -1
- package/dist/{styleView-DONajUQ-.js → styleView-DlcY7spf.js} +8 -8
- package/dist/{styleView-CrBDikDV.cjs → styleView-v0USu1ar.cjs} +1 -1
- package/dist/{ta-CsfYqZQU.js → ta-CeKe4tRh.js} +2 -2
- package/dist/{tabs-CYH9lAUk.cjs → tabs-5lcSnurM.cjs} +1 -1
- package/dist/{tabs-DCyifACM.js → tabs-Cu4PLnTU.js} +1 -1
- package/dist/{th-C-CGWPlT.cjs → th-B1vCpSkb.cjs} +1 -1
- package/dist/{th-CC5sx7mS.js → th-DuVrYobw.js} +2 -2
- package/dist/theme/var.less +6 -5
- package/dist/{tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs → tree.vue_vue_type_script_setup_true_lang-583kvI0Q.cjs} +1 -1
- package/dist/{tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js → tree.vue_vue_type_script_setup_true_lang-M13R0TPV.js} +4 -4
- package/dist/ui/antd/button/button.vue.d.ts +2 -1
- package/dist/ui/antd/index.cjs +2 -2
- package/dist/ui/antd/index.js +40 -40
- package/dist/ui/antd/modal/modal.vue.d.ts +3 -2
- package/dist/ui/antd/upload-image/uploadImage.vue.d.ts +1 -1
- package/dist/ui/elementPlus/form/form.vue.d.ts +372 -7
- package/dist/ui/elementPlus/formItem/formItem.vue.d.ts +346 -3
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +558 -255
- package/dist/ui/elementPlus/modal/modal.d.ts +1 -1
- package/dist/ui/elementPlus/ocr-select-page/index.d.ts +3 -0
- package/dist/ui/elementPlus/ocr-select-page/orcSelectPage.d.ts +8 -0
- package/dist/ui/elementPlus/ocr-upload/index.d.ts +3 -0
- package/dist/ui/elementPlus/ocr-upload/ocrUpload.d.ts +21 -0
- package/dist/ui/naiveUi/form-item/formItem.vue.d.ts +772 -3
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +11 -11
- package/dist/ui/naiveUi/modal/modal.d.ts +1 -1
- package/dist/{uk-Cc6k-QUE.cjs → uk-8RCZke0G.cjs} +1 -1
- package/dist/uploadFile-CTDuT_4r.cjs +1 -0
- package/dist/uploadFile-D1Wv0mlk.js +90 -0
- package/dist/uploadImage-0mGONFA8.cjs +1 -0
- package/dist/{uploadImage-Db_66X3C.js → uploadImage-DKgjQrSu.js} +4 -4
- package/dist/{uploadImage-DQmVV0jl.js → uploadImage-lNqQKWH3.js} +23 -22
- package/dist/{uploadImage-nwjqcVFU.cjs → uploadImage-r7uyNOKB.cjs} +1 -1
- package/dist/{ur-C0tmW1hr.js → ur-Dj65NIKf.js} +3 -3
- package/dist/utils/manager/pluginManager.d.ts +16 -16
- package/dist/{vi-j1PGHz1o.js → vi-BEZaL78_.js} +4 -4
- package/dist/{vi-Dyfq5Qgz.cjs → vi-aBc6LsS_.cjs} +1 -1
- package/dist/{vuedraggable.umd-BqhSJIAi.cjs → vuedraggable.umd-CxOWsXm8.cjs} +6 -6
- package/dist/{vuedraggable.umd-D2S7Eo7p.js → vuedraggable.umd-D908YPOr.js} +396 -400
- package/dist/{zh-cn-BKQHxHe9.cjs → zh-cn-DTp5Vsak.cjs} +1 -1
- package/dist/{zh-hk-hNFRxlrX.cjs → zh-hk-DvIiOtyL.cjs} +1 -1
- package/dist/{zh-tw-BT16WIrT.js → zh-tw-BZt76cZl.js} +7 -7
- package/dist/{zh-tw-SGOlw9Wo.cjs → zh-tw-OGVt40m9.cjs} +1 -1
- package/package.json +2 -2
- package/dist/attributeView-UzP3tU2D.cjs +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1704
- package/dist/axios-tuVKNgv9.cjs +0 -6
- package/dist/be--_CkdeMD.cjs +0 -1
- package/dist/be-DJzFjqtL.js +0 -22
- package/dist/form-Bofkrmkd.cjs +0 -1
- package/dist/form-VbfBmb63.js +0 -72
- package/dist/ga-B7Rd2JIZ.cjs +0 -1
- package/dist/ga-BcnAx7jm.js +0 -22
- package/dist/index-4PPmJYKt.cjs +0 -51
- package/dist/index-B72l3XQl.js +0 -453
- package/dist/index-B8exdhvc.cjs +0 -1
- package/dist/index-BB9rZNCd.cjs +0 -181
- package/dist/index-BCk0LJsg.cjs +0 -347
- package/dist/index-BHZbtFEF.cjs +0 -1
- package/dist/index-BVUz9lFN.cjs +0 -325
- package/dist/index-BhICtIH5.js +0 -1433
- package/dist/index-BsXm6fLD.js +0 -1493
- package/dist/index-BwLkOBWy.cjs +0 -10
- package/dist/index-C9PHR_YC.js +0 -4
- package/dist/index-CR_tJiJv.js +0 -653
- package/dist/index-CZFPJ6vM.cjs +0 -1
- package/dist/index-Cap7FkuS.cjs +0 -1
- package/dist/index-Cphndmia.cjs +0 -214
- package/dist/index-CraRg8wh.js +0 -107
- package/dist/index-D5WpEOUO.cjs +0 -351
- package/dist/index-DEBQD_h0.cjs +0 -1
- package/dist/index-DMszow96.cjs +0 -110
- package/dist/index-DTzB2pWI.cjs +0 -159
- package/dist/index-DWCSzZfR.cjs +0 -80
- package/dist/index-DyWFUxn5.js +0 -11674
- package/dist/index-RdEhd65J.cjs +0 -65
- package/dist/index-XU85x6vz.cjs +0 -9
- package/dist/index-g5ZjtbqH.cjs +0 -102
- package/dist/index-jx5A2kt8.cjs +0 -850
- package/dist/index-n6H8b6fT.cjs +0 -1
- package/dist/index-zYoSB4fa.cjs +0 -9
- package/dist/row-CkyJ9pQh.js +0 -35
- package/dist/row-NNlPGZRG.cjs +0 -1
- package/dist/select-BvJWp4t6.cjs +0 -1
- package/dist/select-CjWTf5kk.js +0 -45
- package/dist/ui/antd/form/form.vue.d.ts +0 -64
- package/dist/ui/antd/form-item/formItem.vue.d.ts +0 -18
- package/dist/uploadFile-pgvj4Lm9.cjs +0 -1
- package/dist/uploadFile-qCbXuHfd.js +0 -81
- package/dist/uploadImage-B3sOX-5F.cjs +0 -1
package/dist/index-BsXm6fLD.js
DELETED
|
@@ -1,1493 +0,0 @@
|
|
|
1
|
-
import { c as S } from "./_commonjsHelpers-BVfed4GL.js";
|
|
2
|
-
import { r as le } from "./_vue_commonjs-external-NwvjgbHK.js";
|
|
3
|
-
import { q as Fo, r as Fe, c as qe, a as xe, _ as _e, e as Do, f as Io, p as To, b as De, i as Ao } from "./index-D1ZL6feZ.js";
|
|
4
|
-
import { i as Oo, _ as jo } from "./index-gA02bxwJ.js";
|
|
5
|
-
function Wo(t, s) {
|
|
6
|
-
for (var v = 0; v < s.length; v++) {
|
|
7
|
-
const h = s[v];
|
|
8
|
-
if (typeof h != "string" && !Array.isArray(h)) {
|
|
9
|
-
for (const p in h)
|
|
10
|
-
if (p !== "default" && !(p in t)) {
|
|
11
|
-
const r = Object.getOwnPropertyDescriptor(h, p);
|
|
12
|
-
r && Object.defineProperty(t, p, r.get ? r : {
|
|
13
|
-
enumerable: !0,
|
|
14
|
-
get: () => h[p]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
-
}
|
|
21
|
-
var Xe = {}, Ye = {}, Je = {};
|
|
22
|
-
(function(t) {
|
|
23
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.isSafari = t.isFirefox = t.isChrome = void 0;
|
|
24
|
-
const s = Fo;
|
|
25
|
-
t.isChrome = s.isBrowser && "chrome" in window, t.isFirefox = s.isBrowser && navigator.userAgent.includes("Firefox"), t.isSafari = s.isBrowser && navigator.userAgent.includes("Safari") && !t.isChrome;
|
|
26
|
-
})(Je);
|
|
27
|
-
var Ie = {}, Te = {}, ye = {};
|
|
28
|
-
Object.defineProperty(ye, "__esModule", { value: !0 });
|
|
29
|
-
ye.default = {
|
|
30
|
-
paddingTiny: "0 8px",
|
|
31
|
-
paddingSmall: "0 10px",
|
|
32
|
-
paddingMedium: "0 12px",
|
|
33
|
-
paddingLarge: "0 14px",
|
|
34
|
-
clearSize: "16px"
|
|
35
|
-
};
|
|
36
|
-
var Vo = S && S.__importDefault || function(t) {
|
|
37
|
-
return t && t.__esModule ? t : { default: t };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(Te, "__esModule", { value: !0 });
|
|
40
|
-
const Z = Fe, ko = qe, Lo = Vo(ye), Ho = {
|
|
41
|
-
name: "Input",
|
|
42
|
-
common: ko.commonDark,
|
|
43
|
-
self(t) {
|
|
44
|
-
const { textColor2: s, textColor3: v, textColorDisabled: h, primaryColor: p, primaryColorHover: r, inputColor: x, inputColorDisabled: u, warningColor: b, warningColorHover: C, errorColor: $, errorColorHover: D, borderRadius: I, lineHeight: B, fontSizeTiny: R, fontSizeSmall: f, fontSizeMedium: H, fontSizeLarge: N, heightTiny: j, heightSmall: V, heightMedium: k, heightLarge: n, clearColor: g, clearColorHover: a, clearColorPressed: F, placeholderColor: T, placeholderColorDisabled: A, iconColor: z, iconColorDisabled: E, iconColorHover: w, iconColorPressed: c } = t;
|
|
45
|
-
return Object.assign(Object.assign({}, Lo.default), {
|
|
46
|
-
countTextColorDisabled: h,
|
|
47
|
-
countTextColor: v,
|
|
48
|
-
heightTiny: j,
|
|
49
|
-
heightSmall: V,
|
|
50
|
-
heightMedium: k,
|
|
51
|
-
heightLarge: n,
|
|
52
|
-
fontSizeTiny: R,
|
|
53
|
-
fontSizeSmall: f,
|
|
54
|
-
fontSizeMedium: H,
|
|
55
|
-
fontSizeLarge: N,
|
|
56
|
-
lineHeight: B,
|
|
57
|
-
lineHeightTextarea: B,
|
|
58
|
-
borderRadius: I,
|
|
59
|
-
iconSize: "16px",
|
|
60
|
-
groupLabelColor: x,
|
|
61
|
-
textColor: s,
|
|
62
|
-
textColorDisabled: h,
|
|
63
|
-
textDecorationColor: s,
|
|
64
|
-
groupLabelTextColor: s,
|
|
65
|
-
caretColor: p,
|
|
66
|
-
placeholderColor: T,
|
|
67
|
-
placeholderColorDisabled: A,
|
|
68
|
-
color: x,
|
|
69
|
-
colorDisabled: u,
|
|
70
|
-
colorFocus: (0, Z.changeColor)(p, { alpha: 0.1 }),
|
|
71
|
-
groupLabelBorder: "1px solid #0000",
|
|
72
|
-
border: "1px solid #0000",
|
|
73
|
-
borderHover: `1px solid ${r}`,
|
|
74
|
-
borderDisabled: "1px solid #0000",
|
|
75
|
-
borderFocus: `1px solid ${r}`,
|
|
76
|
-
boxShadowFocus: `0 0 8px 0 ${(0, Z.changeColor)(p, { alpha: 0.3 })}`,
|
|
77
|
-
loadingColor: p,
|
|
78
|
-
// warning
|
|
79
|
-
loadingColorWarning: b,
|
|
80
|
-
borderWarning: `1px solid ${b}`,
|
|
81
|
-
borderHoverWarning: `1px solid ${C}`,
|
|
82
|
-
colorFocusWarning: (0, Z.changeColor)(b, { alpha: 0.1 }),
|
|
83
|
-
borderFocusWarning: `1px solid ${C}`,
|
|
84
|
-
boxShadowFocusWarning: `0 0 8px 0 ${(0, Z.changeColor)(b, {
|
|
85
|
-
alpha: 0.3
|
|
86
|
-
})}`,
|
|
87
|
-
caretColorWarning: b,
|
|
88
|
-
// error
|
|
89
|
-
loadingColorError: $,
|
|
90
|
-
borderError: `1px solid ${$}`,
|
|
91
|
-
borderHoverError: `1px solid ${D}`,
|
|
92
|
-
colorFocusError: (0, Z.changeColor)($, { alpha: 0.1 }),
|
|
93
|
-
borderFocusError: `1px solid ${D}`,
|
|
94
|
-
boxShadowFocusError: `0 0 8px 0 ${(0, Z.changeColor)($, {
|
|
95
|
-
alpha: 0.3
|
|
96
|
-
})}`,
|
|
97
|
-
caretColorError: $,
|
|
98
|
-
clearColor: g,
|
|
99
|
-
clearColorHover: a,
|
|
100
|
-
clearColorPressed: F,
|
|
101
|
-
iconColor: z,
|
|
102
|
-
iconColorDisabled: E,
|
|
103
|
-
iconColorHover: w,
|
|
104
|
-
iconColorPressed: c,
|
|
105
|
-
suffixTextColor: s
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
Te.default = Ho;
|
|
110
|
-
var Ae = {}, No = S && S.__importDefault || function(t) {
|
|
111
|
-
return t && t.__esModule ? t : { default: t };
|
|
112
|
-
};
|
|
113
|
-
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
114
|
-
const Re = Fe, Go = qe, Ko = No(ye);
|
|
115
|
-
function Uo(t) {
|
|
116
|
-
const { textColor2: s, textColor3: v, textColorDisabled: h, primaryColor: p, primaryColorHover: r, inputColor: x, inputColorDisabled: u, borderColor: b, warningColor: C, warningColorHover: $, errorColor: D, errorColorHover: I, borderRadius: B, lineHeight: R, fontSizeTiny: f, fontSizeSmall: H, fontSizeMedium: N, fontSizeLarge: j, heightTiny: V, heightSmall: k, heightMedium: n, heightLarge: g, actionColor: a, clearColor: F, clearColorHover: T, clearColorPressed: A, placeholderColor: z, placeholderColorDisabled: E, iconColor: w, iconColorDisabled: c, iconColorHover: d, iconColorPressed: M } = t;
|
|
117
|
-
return Object.assign(Object.assign({}, Ko.default), {
|
|
118
|
-
countTextColorDisabled: h,
|
|
119
|
-
countTextColor: v,
|
|
120
|
-
heightTiny: V,
|
|
121
|
-
heightSmall: k,
|
|
122
|
-
heightMedium: n,
|
|
123
|
-
heightLarge: g,
|
|
124
|
-
fontSizeTiny: f,
|
|
125
|
-
fontSizeSmall: H,
|
|
126
|
-
fontSizeMedium: N,
|
|
127
|
-
fontSizeLarge: j,
|
|
128
|
-
lineHeight: R,
|
|
129
|
-
lineHeightTextarea: R,
|
|
130
|
-
borderRadius: B,
|
|
131
|
-
iconSize: "16px",
|
|
132
|
-
groupLabelColor: a,
|
|
133
|
-
groupLabelTextColor: s,
|
|
134
|
-
textColor: s,
|
|
135
|
-
textColorDisabled: h,
|
|
136
|
-
textDecorationColor: s,
|
|
137
|
-
caretColor: p,
|
|
138
|
-
placeholderColor: z,
|
|
139
|
-
placeholderColorDisabled: E,
|
|
140
|
-
color: x,
|
|
141
|
-
colorDisabled: u,
|
|
142
|
-
colorFocus: x,
|
|
143
|
-
groupLabelBorder: `1px solid ${b}`,
|
|
144
|
-
border: `1px solid ${b}`,
|
|
145
|
-
borderHover: `1px solid ${r}`,
|
|
146
|
-
borderDisabled: `1px solid ${b}`,
|
|
147
|
-
borderFocus: `1px solid ${r}`,
|
|
148
|
-
boxShadowFocus: `0 0 0 2px ${(0, Re.changeColor)(p, { alpha: 0.2 })}`,
|
|
149
|
-
loadingColor: p,
|
|
150
|
-
// warning
|
|
151
|
-
loadingColorWarning: C,
|
|
152
|
-
borderWarning: `1px solid ${C}`,
|
|
153
|
-
borderHoverWarning: `1px solid ${$}`,
|
|
154
|
-
colorFocusWarning: x,
|
|
155
|
-
borderFocusWarning: `1px solid ${$}`,
|
|
156
|
-
boxShadowFocusWarning: `0 0 0 2px ${(0, Re.changeColor)(C, {
|
|
157
|
-
alpha: 0.2
|
|
158
|
-
})}`,
|
|
159
|
-
caretColorWarning: C,
|
|
160
|
-
// error
|
|
161
|
-
loadingColorError: D,
|
|
162
|
-
borderError: `1px solid ${D}`,
|
|
163
|
-
borderHoverError: `1px solid ${I}`,
|
|
164
|
-
colorFocusError: x,
|
|
165
|
-
borderFocusError: `1px solid ${I}`,
|
|
166
|
-
boxShadowFocusError: `0 0 0 2px ${(0, Re.changeColor)(D, {
|
|
167
|
-
alpha: 0.2
|
|
168
|
-
})}`,
|
|
169
|
-
caretColorError: D,
|
|
170
|
-
clearColor: F,
|
|
171
|
-
clearColorHover: T,
|
|
172
|
-
clearColorPressed: A,
|
|
173
|
-
iconColor: w,
|
|
174
|
-
iconColorDisabled: c,
|
|
175
|
-
iconColorHover: d,
|
|
176
|
-
iconColorPressed: M,
|
|
177
|
-
suffixTextColor: s
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
const qo = {
|
|
181
|
-
name: "Input",
|
|
182
|
-
common: Go.commonLight,
|
|
183
|
-
self: Uo
|
|
184
|
-
};
|
|
185
|
-
Ae.default = qo;
|
|
186
|
-
var we = {}, Oe = {};
|
|
187
|
-
Object.defineProperty(Oe, "__esModule", {
|
|
188
|
-
value: !0
|
|
189
|
-
});
|
|
190
|
-
const X = xe;
|
|
191
|
-
Oe.default = (0, X.cB)("input", [(0, X.cM)("rtl", `
|
|
192
|
-
direction: rtl;
|
|
193
|
-
`, [(0, X.cE)("prefix", {
|
|
194
|
-
marginRight: 0,
|
|
195
|
-
marginLeft: "4px"
|
|
196
|
-
}), (0, X.cE)("suffix", {
|
|
197
|
-
marginRight: "4px",
|
|
198
|
-
marginLeft: 0
|
|
199
|
-
}), (0, X.cM)("textarea", "width: 100%;", [(0, X.cB)("input-word-count", `
|
|
200
|
-
left: var(--n-padding-right);
|
|
201
|
-
right: unset;
|
|
202
|
-
`)]), (0, X.cB)("input-word-count", `
|
|
203
|
-
margin-left: 0;
|
|
204
|
-
margin-right: 4px;
|
|
205
|
-
`)])]);
|
|
206
|
-
var Xo = S && S.__importDefault || function(t) {
|
|
207
|
-
return t && t.__esModule ? t : { default: t };
|
|
208
|
-
};
|
|
209
|
-
Object.defineProperty(we, "__esModule", { value: !0 });
|
|
210
|
-
we.inputRtl = void 0;
|
|
211
|
-
const Yo = Xo(Oe);
|
|
212
|
-
we.inputRtl = {
|
|
213
|
-
name: "Input",
|
|
214
|
-
style: Yo.default
|
|
215
|
-
};
|
|
216
|
-
(function(t) {
|
|
217
|
-
var s = S && S.__importDefault || function(r) {
|
|
218
|
-
return r && r.__esModule ? r : { default: r };
|
|
219
|
-
};
|
|
220
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.inputRtl = t.inputLight = t.inputDark = void 0;
|
|
221
|
-
var v = Te;
|
|
222
|
-
Object.defineProperty(t, "inputDark", { enumerable: !0, get: function() {
|
|
223
|
-
return s(v).default;
|
|
224
|
-
} });
|
|
225
|
-
var h = Ae;
|
|
226
|
-
Object.defineProperty(t, "inputLight", { enumerable: !0, get: function() {
|
|
227
|
-
return s(h).default;
|
|
228
|
-
} });
|
|
229
|
-
var p = we;
|
|
230
|
-
Object.defineProperty(t, "inputRtl", { enumerable: !0, get: function() {
|
|
231
|
-
return p.inputRtl;
|
|
232
|
-
} });
|
|
233
|
-
})(Ie);
|
|
234
|
-
var se = {};
|
|
235
|
-
Object.defineProperty(se, "__esModule", { value: !0 });
|
|
236
|
-
se.inputInjectionKey = void 0;
|
|
237
|
-
const Jo = _e;
|
|
238
|
-
se.inputInjectionKey = (0, Jo.createInjectionKey)("n-input");
|
|
239
|
-
var ee = {};
|
|
240
|
-
Object.defineProperty(ee, "__esModule", { value: !0 });
|
|
241
|
-
ee.len = Qo;
|
|
242
|
-
ee.isEmptyInputValue = Zo;
|
|
243
|
-
ee.useCursor = et;
|
|
244
|
-
const Ke = le;
|
|
245
|
-
function Qo(t) {
|
|
246
|
-
let s = 0;
|
|
247
|
-
for (const v of t)
|
|
248
|
-
s++;
|
|
249
|
-
return s;
|
|
250
|
-
}
|
|
251
|
-
function Zo(t) {
|
|
252
|
-
return t === "" || t == null;
|
|
253
|
-
}
|
|
254
|
-
function et(t) {
|
|
255
|
-
const s = (0, Ke.ref)(null);
|
|
256
|
-
function v() {
|
|
257
|
-
const { value: r } = t;
|
|
258
|
-
if (!(r != null && r.focus)) {
|
|
259
|
-
p();
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
const { selectionStart: x, selectionEnd: u, value: b } = r;
|
|
263
|
-
if (x == null || u == null) {
|
|
264
|
-
p();
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
s.value = {
|
|
268
|
-
start: x,
|
|
269
|
-
end: u,
|
|
270
|
-
beforeText: b.slice(0, x),
|
|
271
|
-
afterText: b.slice(u)
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
function h() {
|
|
275
|
-
var r;
|
|
276
|
-
const { value: x } = s, { value: u } = t;
|
|
277
|
-
if (!x || !u)
|
|
278
|
-
return;
|
|
279
|
-
const { value: b } = u, { start: C, beforeText: $, afterText: D } = x;
|
|
280
|
-
let I = b.length;
|
|
281
|
-
if (b.endsWith(D))
|
|
282
|
-
I = b.length - D.length;
|
|
283
|
-
else if (b.startsWith($))
|
|
284
|
-
I = $.length;
|
|
285
|
-
else {
|
|
286
|
-
const B = $[C - 1], R = b.indexOf(B, C - 1);
|
|
287
|
-
R !== -1 && (I = R + 1);
|
|
288
|
-
}
|
|
289
|
-
(r = u.setSelectionRange) === null || r === void 0 || r.call(u, I, I);
|
|
290
|
-
}
|
|
291
|
-
function p() {
|
|
292
|
-
s.value = null;
|
|
293
|
-
}
|
|
294
|
-
return (0, Ke.watch)(t, p), {
|
|
295
|
-
recordCursor: v,
|
|
296
|
-
restoreCursor: h
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
var je = {};
|
|
300
|
-
Object.defineProperty(je, "__esModule", { value: !0 });
|
|
301
|
-
const me = le, rt = _e, ot = se, tt = ee;
|
|
302
|
-
je.default = (0, me.defineComponent)({
|
|
303
|
-
name: "InputWordCount",
|
|
304
|
-
setup(t, { slots: s }) {
|
|
305
|
-
const { mergedValueRef: v, maxlengthRef: h, mergedClsPrefixRef: p, countGraphemesRef: r } = (0, me.inject)(ot.inputInjectionKey), x = (0, me.computed)(() => {
|
|
306
|
-
const { value: u } = v;
|
|
307
|
-
return u === null || Array.isArray(u) ? 0 : (r.value || tt.len)(u);
|
|
308
|
-
});
|
|
309
|
-
return () => {
|
|
310
|
-
const { value: u } = h, { value: b } = v;
|
|
311
|
-
return (0, me.h)("span", { class: `${p.value}-input-word-count` }, (0, rt.resolveSlotWithProps)(s.default, {
|
|
312
|
-
value: b === null || Array.isArray(b) ? "" : b
|
|
313
|
-
}, () => [
|
|
314
|
-
u === void 0 ? x.value : `${x.value} / ${u}`
|
|
315
|
-
]));
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
var ue = {};
|
|
320
|
-
Object.defineProperty(ue, "__esModule", {
|
|
321
|
-
value: !0
|
|
322
|
-
});
|
|
323
|
-
ue.safariStyle = void 0;
|
|
324
|
-
const i = xe;
|
|
325
|
-
ue.default = (0, i.cB)("input", `
|
|
326
|
-
max-width: 100%;
|
|
327
|
-
cursor: text;
|
|
328
|
-
line-height: 1.5;
|
|
329
|
-
z-index: auto;
|
|
330
|
-
outline: none;
|
|
331
|
-
box-sizing: border-box;
|
|
332
|
-
position: relative;
|
|
333
|
-
display: inline-flex;
|
|
334
|
-
border-radius: var(--n-border-radius);
|
|
335
|
-
background-color: var(--n-color);
|
|
336
|
-
transition: background-color .3s var(--n-bezier);
|
|
337
|
-
font-size: var(--n-font-size);
|
|
338
|
-
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
|
|
339
|
-
`, [
|
|
340
|
-
// common
|
|
341
|
-
(0, i.cE)("input, textarea", `
|
|
342
|
-
overflow: hidden;
|
|
343
|
-
flex-grow: 1;
|
|
344
|
-
position: relative;
|
|
345
|
-
`),
|
|
346
|
-
(0, i.cE)("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder", `
|
|
347
|
-
box-sizing: border-box;
|
|
348
|
-
font-size: inherit;
|
|
349
|
-
line-height: 1.5;
|
|
350
|
-
font-family: inherit;
|
|
351
|
-
border: none;
|
|
352
|
-
outline: none;
|
|
353
|
-
background-color: #0000;
|
|
354
|
-
text-align: inherit;
|
|
355
|
-
transition:
|
|
356
|
-
-webkit-text-fill-color .3s var(--n-bezier),
|
|
357
|
-
caret-color .3s var(--n-bezier),
|
|
358
|
-
color .3s var(--n-bezier),
|
|
359
|
-
text-decoration-color .3s var(--n-bezier);
|
|
360
|
-
`),
|
|
361
|
-
(0, i.cE)("input-el, textarea-el", `
|
|
362
|
-
-webkit-appearance: none;
|
|
363
|
-
scrollbar-width: none;
|
|
364
|
-
width: 100%;
|
|
365
|
-
min-width: 0;
|
|
366
|
-
text-decoration-color: var(--n-text-decoration-color);
|
|
367
|
-
color: var(--n-text-color);
|
|
368
|
-
caret-color: var(--n-caret-color);
|
|
369
|
-
background-color: transparent;
|
|
370
|
-
`, [(0, i.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb", `
|
|
371
|
-
width: 0;
|
|
372
|
-
height: 0;
|
|
373
|
-
display: none;
|
|
374
|
-
`), (0, i.c)("&::placeholder", `
|
|
375
|
-
color: #0000;
|
|
376
|
-
-webkit-text-fill-color: transparent !important;
|
|
377
|
-
`), (0, i.c)("&:-webkit-autofill ~", [(0, i.cE)("placeholder", "display: none;")])]),
|
|
378
|
-
(0, i.cM)("round", [(0, i.cNotM)("textarea", "border-radius: calc(var(--n-height) / 2);")]),
|
|
379
|
-
(0, i.cE)("placeholder", `
|
|
380
|
-
pointer-events: none;
|
|
381
|
-
position: absolute;
|
|
382
|
-
left: 0;
|
|
383
|
-
right: 0;
|
|
384
|
-
top: 0;
|
|
385
|
-
bottom: 0;
|
|
386
|
-
overflow: hidden;
|
|
387
|
-
color: var(--n-placeholder-color);
|
|
388
|
-
`, [(0, i.c)("span", `
|
|
389
|
-
width: 100%;
|
|
390
|
-
display: inline-block;
|
|
391
|
-
`)]),
|
|
392
|
-
(0, i.cM)("textarea", [(0, i.cE)("placeholder", "overflow: visible;")]),
|
|
393
|
-
(0, i.cNotM)("autosize", "width: 100%;"),
|
|
394
|
-
(0, i.cM)("autosize", [(0, i.cE)("textarea-el, input-el", `
|
|
395
|
-
position: absolute;
|
|
396
|
-
top: 0;
|
|
397
|
-
left: 0;
|
|
398
|
-
height: 100%;
|
|
399
|
-
`)]),
|
|
400
|
-
// input
|
|
401
|
-
(0, i.cB)("input-wrapper", `
|
|
402
|
-
overflow: hidden;
|
|
403
|
-
display: inline-flex;
|
|
404
|
-
flex-grow: 1;
|
|
405
|
-
position: relative;
|
|
406
|
-
padding-left: var(--n-padding-left);
|
|
407
|
-
padding-right: var(--n-padding-right);
|
|
408
|
-
`),
|
|
409
|
-
(0, i.cE)("input-mirror", `
|
|
410
|
-
padding: 0;
|
|
411
|
-
height: var(--n-height);
|
|
412
|
-
line-height: var(--n-height);
|
|
413
|
-
overflow: hidden;
|
|
414
|
-
visibility: hidden;
|
|
415
|
-
position: static;
|
|
416
|
-
white-space: pre;
|
|
417
|
-
pointer-events: none;
|
|
418
|
-
`),
|
|
419
|
-
(0, i.cE)("input-el", `
|
|
420
|
-
padding: 0;
|
|
421
|
-
height: var(--n-height);
|
|
422
|
-
line-height: var(--n-height);
|
|
423
|
-
`, [(0, i.c)("&[type=password]::-ms-reveal", "display: none;"), (0, i.c)("+", [(0, i.cE)("placeholder", `
|
|
424
|
-
display: flex;
|
|
425
|
-
align-items: center;
|
|
426
|
-
`)])]),
|
|
427
|
-
(0, i.cNotM)("textarea", [(0, i.cE)("placeholder", "white-space: nowrap;")]),
|
|
428
|
-
(0, i.cE)("eye", `
|
|
429
|
-
display: flex;
|
|
430
|
-
align-items: center;
|
|
431
|
-
justify-content: center;
|
|
432
|
-
transition: color .3s var(--n-bezier);
|
|
433
|
-
`),
|
|
434
|
-
// textarea
|
|
435
|
-
(0, i.cM)("textarea", "width: 100%;", [(0, i.cB)("input-word-count", `
|
|
436
|
-
position: absolute;
|
|
437
|
-
right: var(--n-padding-right);
|
|
438
|
-
bottom: var(--n-padding-vertical);
|
|
439
|
-
`), (0, i.cM)("resizable", [(0, i.cB)("input-wrapper", `
|
|
440
|
-
resize: vertical;
|
|
441
|
-
min-height: var(--n-height);
|
|
442
|
-
`)]), (0, i.cE)("textarea-el, textarea-mirror, placeholder", `
|
|
443
|
-
height: 100%;
|
|
444
|
-
padding-left: 0;
|
|
445
|
-
padding-right: 0;
|
|
446
|
-
padding-top: var(--n-padding-vertical);
|
|
447
|
-
padding-bottom: var(--n-padding-vertical);
|
|
448
|
-
word-break: break-word;
|
|
449
|
-
display: inline-block;
|
|
450
|
-
vertical-align: bottom;
|
|
451
|
-
box-sizing: border-box;
|
|
452
|
-
line-height: var(--n-line-height-textarea);
|
|
453
|
-
margin: 0;
|
|
454
|
-
resize: none;
|
|
455
|
-
white-space: pre-wrap;
|
|
456
|
-
scroll-padding-block-end: var(--n-padding-vertical);
|
|
457
|
-
`), (0, i.cE)("textarea-mirror", `
|
|
458
|
-
width: 100%;
|
|
459
|
-
pointer-events: none;
|
|
460
|
-
overflow: hidden;
|
|
461
|
-
visibility: hidden;
|
|
462
|
-
position: static;
|
|
463
|
-
white-space: pre-wrap;
|
|
464
|
-
overflow-wrap: break-word;
|
|
465
|
-
`)]),
|
|
466
|
-
// pair
|
|
467
|
-
(0, i.cM)("pair", [(0, i.cE)("input-el, placeholder", "text-align: center;"), (0, i.cE)("separator", `
|
|
468
|
-
display: flex;
|
|
469
|
-
align-items: center;
|
|
470
|
-
transition: color .3s var(--n-bezier);
|
|
471
|
-
color: var(--n-text-color);
|
|
472
|
-
white-space: nowrap;
|
|
473
|
-
`, [(0, i.cB)("icon", `
|
|
474
|
-
color: var(--n-icon-color);
|
|
475
|
-
`), (0, i.cB)("base-icon", `
|
|
476
|
-
color: var(--n-icon-color);
|
|
477
|
-
`)])]),
|
|
478
|
-
(0, i.cM)("disabled", `
|
|
479
|
-
cursor: not-allowed;
|
|
480
|
-
background-color: var(--n-color-disabled);
|
|
481
|
-
`, [(0, i.cE)("border", "border: var(--n-border-disabled);"), (0, i.cE)("input-el, textarea-el", `
|
|
482
|
-
cursor: not-allowed;
|
|
483
|
-
color: var(--n-text-color-disabled);
|
|
484
|
-
text-decoration-color: var(--n-text-color-disabled);
|
|
485
|
-
`), (0, i.cE)("placeholder", "color: var(--n-placeholder-color-disabled);"), (0, i.cE)("separator", "color: var(--n-text-color-disabled);", [(0, i.cB)("icon", `
|
|
486
|
-
color: var(--n-icon-color-disabled);
|
|
487
|
-
`), (0, i.cB)("base-icon", `
|
|
488
|
-
color: var(--n-icon-color-disabled);
|
|
489
|
-
`)]), (0, i.cB)("input-word-count", `
|
|
490
|
-
color: var(--n-count-text-color-disabled);
|
|
491
|
-
`), (0, i.cE)("suffix, prefix", "color: var(--n-text-color-disabled);", [(0, i.cB)("icon", `
|
|
492
|
-
color: var(--n-icon-color-disabled);
|
|
493
|
-
`), (0, i.cB)("internal-icon", `
|
|
494
|
-
color: var(--n-icon-color-disabled);
|
|
495
|
-
`)])]),
|
|
496
|
-
(0, i.cNotM)("disabled", [(0, i.cE)("eye", `
|
|
497
|
-
color: var(--n-icon-color);
|
|
498
|
-
cursor: pointer;
|
|
499
|
-
`, [(0, i.c)("&:hover", `
|
|
500
|
-
color: var(--n-icon-color-hover);
|
|
501
|
-
`), (0, i.c)("&:active", `
|
|
502
|
-
color: var(--n-icon-color-pressed);
|
|
503
|
-
`)]), (0, i.c)("&:hover", [(0, i.cE)("state-border", "border: var(--n-border-hover);")]), (0, i.cM)("focus", "background-color: var(--n-color-focus);", [(0, i.cE)("state-border", `
|
|
504
|
-
border: var(--n-border-focus);
|
|
505
|
-
box-shadow: var(--n-box-shadow-focus);
|
|
506
|
-
`)])]),
|
|
507
|
-
(0, i.cE)("border, state-border", `
|
|
508
|
-
box-sizing: border-box;
|
|
509
|
-
position: absolute;
|
|
510
|
-
left: 0;
|
|
511
|
-
right: 0;
|
|
512
|
-
top: 0;
|
|
513
|
-
bottom: 0;
|
|
514
|
-
pointer-events: none;
|
|
515
|
-
border-radius: inherit;
|
|
516
|
-
border: var(--n-border);
|
|
517
|
-
transition:
|
|
518
|
-
box-shadow .3s var(--n-bezier),
|
|
519
|
-
border-color .3s var(--n-bezier);
|
|
520
|
-
`),
|
|
521
|
-
(0, i.cE)("state-border", `
|
|
522
|
-
border-color: #0000;
|
|
523
|
-
z-index: 1;
|
|
524
|
-
`),
|
|
525
|
-
(0, i.cE)("prefix", "margin-right: 4px;"),
|
|
526
|
-
(0, i.cE)("suffix", `
|
|
527
|
-
margin-left: 4px;
|
|
528
|
-
`),
|
|
529
|
-
(0, i.cE)("suffix, prefix", `
|
|
530
|
-
transition: color .3s var(--n-bezier);
|
|
531
|
-
flex-wrap: nowrap;
|
|
532
|
-
flex-shrink: 0;
|
|
533
|
-
line-height: var(--n-height);
|
|
534
|
-
white-space: nowrap;
|
|
535
|
-
display: inline-flex;
|
|
536
|
-
align-items: center;
|
|
537
|
-
justify-content: center;
|
|
538
|
-
color: var(--n-suffix-text-color);
|
|
539
|
-
`, [(0, i.cB)("base-loading", `
|
|
540
|
-
font-size: var(--n-icon-size);
|
|
541
|
-
margin: 0 2px;
|
|
542
|
-
color: var(--n-loading-color);
|
|
543
|
-
`), (0, i.cB)("base-clear", `
|
|
544
|
-
font-size: var(--n-icon-size);
|
|
545
|
-
`, [(0, i.cE)("placeholder", [(0, i.cB)("base-icon", `
|
|
546
|
-
transition: color .3s var(--n-bezier);
|
|
547
|
-
color: var(--n-icon-color);
|
|
548
|
-
font-size: var(--n-icon-size);
|
|
549
|
-
`)])]), (0, i.c)(">", [(0, i.cB)("icon", `
|
|
550
|
-
transition: color .3s var(--n-bezier);
|
|
551
|
-
color: var(--n-icon-color);
|
|
552
|
-
font-size: var(--n-icon-size);
|
|
553
|
-
`)]), (0, i.cB)("base-icon", `
|
|
554
|
-
font-size: var(--n-icon-size);
|
|
555
|
-
`)]),
|
|
556
|
-
(0, i.cB)("input-word-count", `
|
|
557
|
-
pointer-events: none;
|
|
558
|
-
line-height: 1.5;
|
|
559
|
-
font-size: .85em;
|
|
560
|
-
color: var(--n-count-text-color);
|
|
561
|
-
transition: color .3s var(--n-bezier);
|
|
562
|
-
margin-left: 4px;
|
|
563
|
-
font-variant: tabular-nums;
|
|
564
|
-
`),
|
|
565
|
-
["warning", "error"].map((t) => (0, i.cM)(`${t}-status`, [(0, i.cNotM)("disabled", [(0, i.cB)("base-loading", `
|
|
566
|
-
color: var(--n-loading-color-${t})
|
|
567
|
-
`), (0, i.cE)("input-el, textarea-el", `
|
|
568
|
-
caret-color: var(--n-caret-color-${t});
|
|
569
|
-
`), (0, i.cE)("state-border", `
|
|
570
|
-
border: var(--n-border-${t});
|
|
571
|
-
`), (0, i.c)("&:hover", [(0, i.cE)("state-border", `
|
|
572
|
-
border: var(--n-border-hover-${t});
|
|
573
|
-
`)]), (0, i.c)("&:focus", `
|
|
574
|
-
background-color: var(--n-color-focus-${t});
|
|
575
|
-
`, [(0, i.cE)("state-border", `
|
|
576
|
-
box-shadow: var(--n-box-shadow-focus-${t});
|
|
577
|
-
border: var(--n-border-focus-${t});
|
|
578
|
-
`)]), (0, i.cM)("focus", `
|
|
579
|
-
background-color: var(--n-color-focus-${t});
|
|
580
|
-
`, [(0, i.cE)("state-border", `
|
|
581
|
-
box-shadow: var(--n-box-shadow-focus-${t});
|
|
582
|
-
border: var(--n-border-focus-${t});
|
|
583
|
-
`)])])]))
|
|
584
|
-
]);
|
|
585
|
-
ue.safariStyle = (0, i.cB)("input", [(0, i.cM)("disabled", [(0, i.cE)("input-el, textarea-el", `
|
|
586
|
-
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
587
|
-
`)])]);
|
|
588
|
-
(function(t) {
|
|
589
|
-
var s = S && S.__createBinding || (Object.create ? function(n, g, a, F) {
|
|
590
|
-
F === void 0 && (F = a);
|
|
591
|
-
var T = Object.getOwnPropertyDescriptor(g, a);
|
|
592
|
-
(!T || ("get" in T ? !g.__esModule : T.writable || T.configurable)) && (T = { enumerable: !0, get: function() {
|
|
593
|
-
return g[a];
|
|
594
|
-
} }), Object.defineProperty(n, F, T);
|
|
595
|
-
} : function(n, g, a, F) {
|
|
596
|
-
F === void 0 && (F = a), n[F] = g[a];
|
|
597
|
-
}), v = S && S.__setModuleDefault || (Object.create ? function(n, g) {
|
|
598
|
-
Object.defineProperty(n, "default", { enumerable: !0, value: g });
|
|
599
|
-
} : function(n, g) {
|
|
600
|
-
n.default = g;
|
|
601
|
-
}), h = S && S.__importStar || function(n) {
|
|
602
|
-
if (n && n.__esModule) return n;
|
|
603
|
-
var g = {};
|
|
604
|
-
if (n != null) for (var a in n) a !== "default" && Object.prototype.hasOwnProperty.call(n, a) && s(g, n, a);
|
|
605
|
-
return v(g, n), g;
|
|
606
|
-
}, p = S && S.__importDefault || function(n) {
|
|
607
|
-
return n && n.__esModule ? n : { default: n };
|
|
608
|
-
};
|
|
609
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.inputProps = void 0;
|
|
610
|
-
const r = le, x = Do, u = Fe, b = Io, C = Ao, $ = Je, D = Oo, I = To, B = jo, R = De, f = _e, H = Ie, N = se, j = ee, V = p(je), k = h(ue);
|
|
611
|
-
t.inputProps = Object.assign(Object.assign({}, R.useTheme.props), {
|
|
612
|
-
bordered: {
|
|
613
|
-
type: Boolean,
|
|
614
|
-
default: void 0
|
|
615
|
-
},
|
|
616
|
-
type: {
|
|
617
|
-
type: String,
|
|
618
|
-
default: "text"
|
|
619
|
-
},
|
|
620
|
-
placeholder: [Array, String],
|
|
621
|
-
defaultValue: {
|
|
622
|
-
type: [String, Array],
|
|
623
|
-
default: null
|
|
624
|
-
},
|
|
625
|
-
value: [String, Array],
|
|
626
|
-
disabled: {
|
|
627
|
-
type: Boolean,
|
|
628
|
-
default: void 0
|
|
629
|
-
},
|
|
630
|
-
size: String,
|
|
631
|
-
rows: {
|
|
632
|
-
type: [Number, String],
|
|
633
|
-
default: 3
|
|
634
|
-
},
|
|
635
|
-
round: Boolean,
|
|
636
|
-
minlength: [String, Number],
|
|
637
|
-
maxlength: [String, Number],
|
|
638
|
-
clearable: Boolean,
|
|
639
|
-
autosize: {
|
|
640
|
-
type: [Boolean, Object],
|
|
641
|
-
default: !1
|
|
642
|
-
},
|
|
643
|
-
pair: Boolean,
|
|
644
|
-
separator: String,
|
|
645
|
-
readonly: {
|
|
646
|
-
type: [String, Boolean],
|
|
647
|
-
default: !1
|
|
648
|
-
},
|
|
649
|
-
passivelyActivated: Boolean,
|
|
650
|
-
showPasswordOn: String,
|
|
651
|
-
stateful: {
|
|
652
|
-
type: Boolean,
|
|
653
|
-
default: !0
|
|
654
|
-
},
|
|
655
|
-
autofocus: Boolean,
|
|
656
|
-
inputProps: Object,
|
|
657
|
-
resizable: {
|
|
658
|
-
type: Boolean,
|
|
659
|
-
default: !0
|
|
660
|
-
},
|
|
661
|
-
showCount: Boolean,
|
|
662
|
-
loading: {
|
|
663
|
-
type: Boolean,
|
|
664
|
-
default: void 0
|
|
665
|
-
},
|
|
666
|
-
allowInput: Function,
|
|
667
|
-
renderCount: Function,
|
|
668
|
-
onMousedown: Function,
|
|
669
|
-
onKeydown: Function,
|
|
670
|
-
onKeyup: [Function, Array],
|
|
671
|
-
onInput: [Function, Array],
|
|
672
|
-
onFocus: [Function, Array],
|
|
673
|
-
onBlur: [Function, Array],
|
|
674
|
-
onClick: [Function, Array],
|
|
675
|
-
onChange: [Function, Array],
|
|
676
|
-
onClear: [Function, Array],
|
|
677
|
-
countGraphemes: Function,
|
|
678
|
-
status: String,
|
|
679
|
-
"onUpdate:value": [Function, Array],
|
|
680
|
-
onUpdateValue: [Function, Array],
|
|
681
|
-
/** private */
|
|
682
|
-
textDecoration: [String, Array],
|
|
683
|
-
attrSize: {
|
|
684
|
-
type: Number,
|
|
685
|
-
default: 20
|
|
686
|
-
},
|
|
687
|
-
onInputBlur: [Function, Array],
|
|
688
|
-
onInputFocus: [Function, Array],
|
|
689
|
-
onDeactivate: [Function, Array],
|
|
690
|
-
onActivate: [Function, Array],
|
|
691
|
-
onWrapperFocus: [Function, Array],
|
|
692
|
-
onWrapperBlur: [Function, Array],
|
|
693
|
-
internalDeactivateOnEnter: Boolean,
|
|
694
|
-
internalForceFocus: Boolean,
|
|
695
|
-
internalLoadingBeforeSuffix: {
|
|
696
|
-
type: Boolean,
|
|
697
|
-
default: !0
|
|
698
|
-
},
|
|
699
|
-
/** deprecated */
|
|
700
|
-
showPasswordToggle: Boolean
|
|
701
|
-
}), t.default = (0, r.defineComponent)({
|
|
702
|
-
name: "Input",
|
|
703
|
-
props: t.inputProps,
|
|
704
|
-
setup(n) {
|
|
705
|
-
process.env.NODE_ENV !== "production" && (0, r.watchEffect)(() => {
|
|
706
|
-
n.showPasswordToggle && (0, f.warnOnce)("input", '`show-password-toggle` is deprecated, please use `showPasswordOn="click"` instead');
|
|
707
|
-
});
|
|
708
|
-
const { mergedClsPrefixRef: g, mergedBorderedRef: a, inlineThemeDisabled: F, mergedRtlRef: T } = (0, R.useConfig)(n), A = (0, R.useTheme)("Input", "-input", k.default, H.inputLight, n, g);
|
|
709
|
-
$.isSafari && (0, R.useStyle)("-input-safari", k.safariStyle, g);
|
|
710
|
-
const z = (0, r.ref)(null), E = (0, r.ref)(null), w = (0, r.ref)(null), c = (0, r.ref)(null), d = (0, r.ref)(null), M = (0, r.ref)(null), O = (0, r.ref)(null), ce = (0, j.useCursor)(O), G = (0, r.ref)(null), { localeRef: er } = (0, R.useLocale)("Input"), de = (0, r.ref)(n.defaultValue), rr = (0, r.toRef)(n, "value"), W = (0, x.useMergedState)(rr, de), re = (0, R.useFormItem)(n), { mergedSizeRef: Ce, mergedDisabledRef: Y, mergedStatusRef: or } = re, J = (0, r.ref)(!1), oe = (0, r.ref)(!1), L = (0, r.ref)(!1), te = (0, r.ref)(!1);
|
|
711
|
-
let Ee = null;
|
|
712
|
-
const Pe = (0, r.computed)(() => {
|
|
713
|
-
const { placeholder: e, pair: o } = n;
|
|
714
|
-
return o ? Array.isArray(e) ? e : e === void 0 ? ["", ""] : [e, e] : e === void 0 ? [er.value.placeholder] : [e];
|
|
715
|
-
}), tr = (0, r.computed)(() => {
|
|
716
|
-
const { value: e } = L, { value: o } = W, { value: l } = Pe;
|
|
717
|
-
return !e && ((0, j.isEmptyInputValue)(o) || Array.isArray(o) && (0, j.isEmptyInputValue)(o[0])) && l[0];
|
|
718
|
-
}), nr = (0, r.computed)(() => {
|
|
719
|
-
const { value: e } = L, { value: o } = W, { value: l } = Pe;
|
|
720
|
-
return !e && l[1] && ((0, j.isEmptyInputValue)(o) || Array.isArray(o) && (0, j.isEmptyInputValue)(o[1]));
|
|
721
|
-
}), Se = (0, x.useMemo)(() => n.internalForceFocus || J.value), ir = (0, x.useMemo)(() => {
|
|
722
|
-
if (Y.value || n.readonly || !n.clearable || !Se.value && !oe.value)
|
|
723
|
-
return !1;
|
|
724
|
-
const { value: e } = W, { value: o } = Se;
|
|
725
|
-
return n.pair ? !!(Array.isArray(e) && (e[0] || e[1])) && (oe.value || o) : !!e && (oe.value || o);
|
|
726
|
-
}), $e = (0, r.computed)(() => {
|
|
727
|
-
const { showPasswordOn: e } = n;
|
|
728
|
-
if (e)
|
|
729
|
-
return e;
|
|
730
|
-
if (n.showPasswordToggle)
|
|
731
|
-
return "click";
|
|
732
|
-
}), ne = (0, r.ref)(!1), ar = (0, r.computed)(() => {
|
|
733
|
-
const { textDecoration: e } = n;
|
|
734
|
-
return e ? Array.isArray(e) ? e.map((o) => ({
|
|
735
|
-
textDecoration: o
|
|
736
|
-
})) : [
|
|
737
|
-
{
|
|
738
|
-
textDecoration: e
|
|
739
|
-
}
|
|
740
|
-
] : ["", ""];
|
|
741
|
-
}), ke = (0, r.ref)(void 0), lr = () => {
|
|
742
|
-
var e, o;
|
|
743
|
-
if (n.type === "textarea") {
|
|
744
|
-
const { autosize: l } = n;
|
|
745
|
-
if (l && (ke.value = (o = (e = G.value) === null || e === void 0 ? void 0 : e.$el) === null || o === void 0 ? void 0 : o.offsetWidth), !E.value || typeof l == "boolean")
|
|
746
|
-
return;
|
|
747
|
-
const { paddingTop: _, paddingBottom: P, lineHeight: m } = window.getComputedStyle(E.value), K = Number(_.slice(0, -2)), U = Number(P.slice(0, -2)), q = Number(m.slice(0, -2)), { value: ie } = w;
|
|
748
|
-
if (!ie)
|
|
749
|
-
return;
|
|
750
|
-
if (l.minRows) {
|
|
751
|
-
const ae = Math.max(l.minRows, 1), Me = `${K + U + q * ae}px`;
|
|
752
|
-
ie.style.minHeight = Me;
|
|
753
|
-
}
|
|
754
|
-
if (l.maxRows) {
|
|
755
|
-
const ae = `${K + U + q * l.maxRows}px`;
|
|
756
|
-
ie.style.maxHeight = ae;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}, sr = (0, r.computed)(() => {
|
|
760
|
-
const { maxlength: e } = n;
|
|
761
|
-
return e === void 0 ? void 0 : Number(e);
|
|
762
|
-
});
|
|
763
|
-
(0, r.onMounted)(() => {
|
|
764
|
-
const { value: e } = W;
|
|
765
|
-
Array.isArray(e) || ze(e);
|
|
766
|
-
});
|
|
767
|
-
const ur = (0, r.getCurrentInstance)().proxy;
|
|
768
|
-
function fe(e, o) {
|
|
769
|
-
const { onUpdateValue: l, "onUpdate:value": _, onInput: P } = n, { nTriggerFormInput: m } = re;
|
|
770
|
-
l && (0, f.call)(l, e, o), _ && (0, f.call)(_, e, o), P && (0, f.call)(P, e, o), de.value = e, m();
|
|
771
|
-
}
|
|
772
|
-
function pe(e, o) {
|
|
773
|
-
const { onChange: l } = n, { nTriggerFormChange: _ } = re;
|
|
774
|
-
l && (0, f.call)(l, e, o), de.value = e, _();
|
|
775
|
-
}
|
|
776
|
-
function cr(e) {
|
|
777
|
-
const { onBlur: o } = n, { nTriggerFormBlur: l } = re;
|
|
778
|
-
o && (0, f.call)(o, e), l();
|
|
779
|
-
}
|
|
780
|
-
function dr(e) {
|
|
781
|
-
const { onFocus: o } = n, { nTriggerFormFocus: l } = re;
|
|
782
|
-
o && (0, f.call)(o, e), l();
|
|
783
|
-
}
|
|
784
|
-
function fr(e) {
|
|
785
|
-
const { onClear: o } = n;
|
|
786
|
-
o && (0, f.call)(o, e);
|
|
787
|
-
}
|
|
788
|
-
function pr(e) {
|
|
789
|
-
const { onInputBlur: o } = n;
|
|
790
|
-
o && (0, f.call)(o, e);
|
|
791
|
-
}
|
|
792
|
-
function hr(e) {
|
|
793
|
-
const { onInputFocus: o } = n;
|
|
794
|
-
o && (0, f.call)(o, e);
|
|
795
|
-
}
|
|
796
|
-
function vr() {
|
|
797
|
-
const { onDeactivate: e } = n;
|
|
798
|
-
e && (0, f.call)(e);
|
|
799
|
-
}
|
|
800
|
-
function br() {
|
|
801
|
-
const { onActivate: e } = n;
|
|
802
|
-
e && (0, f.call)(e);
|
|
803
|
-
}
|
|
804
|
-
function gr(e) {
|
|
805
|
-
const { onClick: o } = n;
|
|
806
|
-
o && (0, f.call)(o, e);
|
|
807
|
-
}
|
|
808
|
-
function mr(e) {
|
|
809
|
-
const { onWrapperFocus: o } = n;
|
|
810
|
-
o && (0, f.call)(o, e);
|
|
811
|
-
}
|
|
812
|
-
function xr(e) {
|
|
813
|
-
const { onWrapperBlur: o } = n;
|
|
814
|
-
o && (0, f.call)(o, e);
|
|
815
|
-
}
|
|
816
|
-
function _r() {
|
|
817
|
-
L.value = !0;
|
|
818
|
-
}
|
|
819
|
-
function yr(e) {
|
|
820
|
-
L.value = !1, e.target === M.value ? he(e, 1) : he(e, 0);
|
|
821
|
-
}
|
|
822
|
-
function he(e, o = 0, l = "input") {
|
|
823
|
-
const _ = e.target.value;
|
|
824
|
-
if (ze(_), e instanceof InputEvent && !e.isComposing && (L.value = !1), n.type === "textarea") {
|
|
825
|
-
const { value: m } = G;
|
|
826
|
-
m && m.syncUnifiedContainer();
|
|
827
|
-
}
|
|
828
|
-
if (Ee = _, L.value)
|
|
829
|
-
return;
|
|
830
|
-
ce.recordCursor();
|
|
831
|
-
const P = wr(_);
|
|
832
|
-
if (P)
|
|
833
|
-
if (!n.pair)
|
|
834
|
-
l === "input" ? fe(_, { source: o }) : pe(_, { source: o });
|
|
835
|
-
else {
|
|
836
|
-
let { value: m } = W;
|
|
837
|
-
Array.isArray(m) ? m = [m[0], m[1]] : m = ["", ""], m[o] = _, l === "input" ? fe(m, { source: o }) : pe(m, { source: o });
|
|
838
|
-
}
|
|
839
|
-
ur.$forceUpdate(), P || (0, r.nextTick)(ce.restoreCursor);
|
|
840
|
-
}
|
|
841
|
-
function wr(e) {
|
|
842
|
-
const { countGraphemes: o, maxlength: l, minlength: _ } = n;
|
|
843
|
-
if (o) {
|
|
844
|
-
let m;
|
|
845
|
-
if (l !== void 0 && (m === void 0 && (m = o(e)), m > Number(l)) || _ !== void 0 && (m === void 0 && (m = o(e)), m < Number(l)))
|
|
846
|
-
return !1;
|
|
847
|
-
}
|
|
848
|
-
const { allowInput: P } = n;
|
|
849
|
-
return typeof P == "function" ? P(e) : !0;
|
|
850
|
-
}
|
|
851
|
-
function Cr(e) {
|
|
852
|
-
pr(e), e.relatedTarget === z.value && vr(), e.relatedTarget !== null && (e.relatedTarget === d.value || e.relatedTarget === M.value || e.relatedTarget === E.value) || (te.value = !1), ve(e, "blur"), O.value = null;
|
|
853
|
-
}
|
|
854
|
-
function Er(e, o) {
|
|
855
|
-
hr(e), J.value = !0, te.value = !0, br(), ve(e, "focus"), o === 0 ? O.value = d.value : o === 1 ? O.value = M.value : o === 2 && (O.value = E.value);
|
|
856
|
-
}
|
|
857
|
-
function Pr(e) {
|
|
858
|
-
n.passivelyActivated && (xr(e), ve(e, "blur"));
|
|
859
|
-
}
|
|
860
|
-
function Sr(e) {
|
|
861
|
-
n.passivelyActivated && (J.value = !0, mr(e), ve(e, "focus"));
|
|
862
|
-
}
|
|
863
|
-
function ve(e, o) {
|
|
864
|
-
e.relatedTarget !== null && (e.relatedTarget === d.value || e.relatedTarget === M.value || e.relatedTarget === E.value || e.relatedTarget === z.value) || (o === "focus" ? (dr(e), J.value = !0) : o === "blur" && (cr(e), J.value = !1));
|
|
865
|
-
}
|
|
866
|
-
function $r(e, o) {
|
|
867
|
-
he(e, o, "change");
|
|
868
|
-
}
|
|
869
|
-
function Br(e) {
|
|
870
|
-
gr(e);
|
|
871
|
-
}
|
|
872
|
-
function zr(e) {
|
|
873
|
-
fr(e), Le();
|
|
874
|
-
}
|
|
875
|
-
function Le() {
|
|
876
|
-
n.pair ? (fe(["", ""], { source: "clear" }), pe(["", ""], { source: "clear" })) : (fe("", { source: "clear" }), pe("", { source: "clear" }));
|
|
877
|
-
}
|
|
878
|
-
function Mr(e) {
|
|
879
|
-
const { onMousedown: o } = n;
|
|
880
|
-
o && o(e);
|
|
881
|
-
const { tagName: l } = e.target;
|
|
882
|
-
if (l !== "INPUT" && l !== "TEXTAREA") {
|
|
883
|
-
if (n.resizable) {
|
|
884
|
-
const { value: _ } = z;
|
|
885
|
-
if (_) {
|
|
886
|
-
const { left: P, top: m, width: K, height: U } = _.getBoundingClientRect(), q = 14;
|
|
887
|
-
if (P + K - q < e.clientX && e.clientX < P + K && m + U - q < e.clientY && e.clientY < m + U)
|
|
888
|
-
return;
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
e.preventDefault(), J.value || He();
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
function Rr() {
|
|
895
|
-
var e;
|
|
896
|
-
oe.value = !0, n.type === "textarea" && ((e = G.value) === null || e === void 0 || e.handleMouseEnterWrapper());
|
|
897
|
-
}
|
|
898
|
-
function Fr() {
|
|
899
|
-
var e;
|
|
900
|
-
oe.value = !1, n.type === "textarea" && ((e = G.value) === null || e === void 0 || e.handleMouseLeaveWrapper());
|
|
901
|
-
}
|
|
902
|
-
function Dr() {
|
|
903
|
-
Y.value || $e.value === "click" && (ne.value = !ne.value);
|
|
904
|
-
}
|
|
905
|
-
function Ir(e) {
|
|
906
|
-
if (Y.value)
|
|
907
|
-
return;
|
|
908
|
-
e.preventDefault();
|
|
909
|
-
const o = (_) => {
|
|
910
|
-
_.preventDefault(), (0, C.off)("mouseup", document, o);
|
|
911
|
-
};
|
|
912
|
-
if ((0, C.on)("mouseup", document, o), $e.value !== "mousedown")
|
|
913
|
-
return;
|
|
914
|
-
ne.value = !0;
|
|
915
|
-
const l = () => {
|
|
916
|
-
ne.value = !1, (0, C.off)("mouseup", document, l);
|
|
917
|
-
};
|
|
918
|
-
(0, C.on)("mouseup", document, l);
|
|
919
|
-
}
|
|
920
|
-
function Tr(e) {
|
|
921
|
-
n.onKeyup && (0, f.call)(n.onKeyup, e);
|
|
922
|
-
}
|
|
923
|
-
function Ar(e) {
|
|
924
|
-
switch (n.onKeydown && (0, f.call)(n.onKeydown, e), e.key) {
|
|
925
|
-
case "Escape":
|
|
926
|
-
Be();
|
|
927
|
-
break;
|
|
928
|
-
case "Enter":
|
|
929
|
-
Or(e);
|
|
930
|
-
break;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
function Or(e) {
|
|
934
|
-
var o, l;
|
|
935
|
-
if (n.passivelyActivated) {
|
|
936
|
-
const { value: _ } = te;
|
|
937
|
-
if (_) {
|
|
938
|
-
n.internalDeactivateOnEnter && Be();
|
|
939
|
-
return;
|
|
940
|
-
}
|
|
941
|
-
e.preventDefault(), n.type === "textarea" ? (o = E.value) === null || o === void 0 || o.focus() : (l = d.value) === null || l === void 0 || l.focus();
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
function Be() {
|
|
945
|
-
n.passivelyActivated && (te.value = !1, (0, r.nextTick)(() => {
|
|
946
|
-
var e;
|
|
947
|
-
(e = z.value) === null || e === void 0 || e.focus();
|
|
948
|
-
}));
|
|
949
|
-
}
|
|
950
|
-
function He() {
|
|
951
|
-
var e, o, l;
|
|
952
|
-
Y.value || (n.passivelyActivated ? (e = z.value) === null || e === void 0 || e.focus() : ((o = E.value) === null || o === void 0 || o.focus(), (l = d.value) === null || l === void 0 || l.focus()));
|
|
953
|
-
}
|
|
954
|
-
function jr() {
|
|
955
|
-
var e;
|
|
956
|
-
!((e = z.value) === null || e === void 0) && e.contains(document.activeElement) && document.activeElement.blur();
|
|
957
|
-
}
|
|
958
|
-
function Wr() {
|
|
959
|
-
var e, o;
|
|
960
|
-
(e = E.value) === null || e === void 0 || e.select(), (o = d.value) === null || o === void 0 || o.select();
|
|
961
|
-
}
|
|
962
|
-
function Vr() {
|
|
963
|
-
Y.value || (E.value ? E.value.focus() : d.value && d.value.focus());
|
|
964
|
-
}
|
|
965
|
-
function kr() {
|
|
966
|
-
const { value: e } = z;
|
|
967
|
-
e != null && e.contains(document.activeElement) && e !== document.activeElement && Be();
|
|
968
|
-
}
|
|
969
|
-
function Lr(e) {
|
|
970
|
-
if (n.type === "textarea") {
|
|
971
|
-
const { value: o } = E;
|
|
972
|
-
o == null || o.scrollTo(e);
|
|
973
|
-
} else {
|
|
974
|
-
const { value: o } = d;
|
|
975
|
-
o == null || o.scrollTo(e);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
function ze(e) {
|
|
979
|
-
const { type: o, pair: l, autosize: _ } = n;
|
|
980
|
-
if (!l && _)
|
|
981
|
-
if (o === "textarea") {
|
|
982
|
-
const { value: P } = w;
|
|
983
|
-
P && (P.textContent = `${e ?? ""}\r
|
|
984
|
-
`);
|
|
985
|
-
} else {
|
|
986
|
-
const { value: P } = c;
|
|
987
|
-
P && (e ? P.textContent = e : P.innerHTML = " ");
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
function Hr() {
|
|
991
|
-
lr();
|
|
992
|
-
}
|
|
993
|
-
const Ne = (0, r.ref)({
|
|
994
|
-
top: "0"
|
|
995
|
-
});
|
|
996
|
-
function Nr(e) {
|
|
997
|
-
var o;
|
|
998
|
-
const { scrollTop: l } = e.target;
|
|
999
|
-
Ne.value.top = `${-l}px`, (o = G.value) === null || o === void 0 || o.syncUnifiedContainer();
|
|
1000
|
-
}
|
|
1001
|
-
let be = null;
|
|
1002
|
-
(0, r.watchEffect)(() => {
|
|
1003
|
-
const { autosize: e, type: o } = n;
|
|
1004
|
-
e && o === "textarea" ? be = (0, r.watch)(W, (l) => {
|
|
1005
|
-
!Array.isArray(l) && l !== Ee && ze(l);
|
|
1006
|
-
}) : be == null || be();
|
|
1007
|
-
});
|
|
1008
|
-
let ge = null;
|
|
1009
|
-
(0, r.watchEffect)(() => {
|
|
1010
|
-
n.type === "textarea" ? ge = (0, r.watch)(W, (e) => {
|
|
1011
|
-
var o;
|
|
1012
|
-
!Array.isArray(e) && e !== Ee && ((o = G.value) === null || o === void 0 || o.syncUnifiedContainer());
|
|
1013
|
-
}) : ge == null || ge();
|
|
1014
|
-
}), (0, r.provide)(N.inputInjectionKey, {
|
|
1015
|
-
mergedValueRef: W,
|
|
1016
|
-
maxlengthRef: sr,
|
|
1017
|
-
mergedClsPrefixRef: g,
|
|
1018
|
-
countGraphemesRef: (0, r.toRef)(n, "countGraphemes")
|
|
1019
|
-
});
|
|
1020
|
-
const Gr = {
|
|
1021
|
-
wrapperElRef: z,
|
|
1022
|
-
inputElRef: d,
|
|
1023
|
-
textareaElRef: E,
|
|
1024
|
-
isCompositing: L,
|
|
1025
|
-
clear: Le,
|
|
1026
|
-
focus: He,
|
|
1027
|
-
blur: jr,
|
|
1028
|
-
select: Wr,
|
|
1029
|
-
deactivate: kr,
|
|
1030
|
-
activate: Vr,
|
|
1031
|
-
scrollTo: Lr
|
|
1032
|
-
}, Kr = (0, I.useRtl)("Input", T, g), Ge = (0, r.computed)(() => {
|
|
1033
|
-
const { value: e } = Ce, { common: { cubicBezierEaseInOut: o }, self: { color: l, borderRadius: _, textColor: P, caretColor: m, caretColorError: K, caretColorWarning: U, textDecorationColor: q, border: ie, borderDisabled: ae, borderHover: Me, borderFocus: Ur, placeholderColor: qr, placeholderColorDisabled: Xr, lineHeightTextarea: Yr, colorDisabled: Jr, colorFocus: Qr, textColorDisabled: Zr, boxShadowFocus: eo, iconSize: ro, colorFocusWarning: oo, boxShadowFocusWarning: to, borderWarning: no, borderFocusWarning: io, borderHoverWarning: ao, colorFocusError: lo, boxShadowFocusError: so, borderError: uo, borderFocusError: co, borderHoverError: fo, clearSize: po, clearColor: ho, clearColorHover: vo, clearColorPressed: bo, iconColor: go, iconColorDisabled: mo, suffixTextColor: xo, countTextColor: _o, countTextColorDisabled: yo, iconColorHover: wo, iconColorPressed: Co, loadingColor: Eo, loadingColorError: Po, loadingColorWarning: So, [(0, f.createKey)("padding", e)]: $o, [(0, f.createKey)("fontSize", e)]: Bo, [(0, f.createKey)("height", e)]: zo } } = A.value, { left: Mo, right: Ro } = (0, u.getPadding)($o);
|
|
1034
|
-
return {
|
|
1035
|
-
"--n-bezier": o,
|
|
1036
|
-
"--n-count-text-color": _o,
|
|
1037
|
-
"--n-count-text-color-disabled": yo,
|
|
1038
|
-
"--n-color": l,
|
|
1039
|
-
"--n-font-size": Bo,
|
|
1040
|
-
"--n-border-radius": _,
|
|
1041
|
-
"--n-height": zo,
|
|
1042
|
-
"--n-padding-left": Mo,
|
|
1043
|
-
"--n-padding-right": Ro,
|
|
1044
|
-
"--n-text-color": P,
|
|
1045
|
-
"--n-caret-color": m,
|
|
1046
|
-
"--n-text-decoration-color": q,
|
|
1047
|
-
"--n-border": ie,
|
|
1048
|
-
"--n-border-disabled": ae,
|
|
1049
|
-
"--n-border-hover": Me,
|
|
1050
|
-
"--n-border-focus": Ur,
|
|
1051
|
-
"--n-placeholder-color": qr,
|
|
1052
|
-
"--n-placeholder-color-disabled": Xr,
|
|
1053
|
-
"--n-icon-size": ro,
|
|
1054
|
-
"--n-line-height-textarea": Yr,
|
|
1055
|
-
"--n-color-disabled": Jr,
|
|
1056
|
-
"--n-color-focus": Qr,
|
|
1057
|
-
"--n-text-color-disabled": Zr,
|
|
1058
|
-
"--n-box-shadow-focus": eo,
|
|
1059
|
-
"--n-loading-color": Eo,
|
|
1060
|
-
// form warning
|
|
1061
|
-
"--n-caret-color-warning": U,
|
|
1062
|
-
"--n-color-focus-warning": oo,
|
|
1063
|
-
"--n-box-shadow-focus-warning": to,
|
|
1064
|
-
"--n-border-warning": no,
|
|
1065
|
-
"--n-border-focus-warning": io,
|
|
1066
|
-
"--n-border-hover-warning": ao,
|
|
1067
|
-
"--n-loading-color-warning": So,
|
|
1068
|
-
// form error
|
|
1069
|
-
"--n-caret-color-error": K,
|
|
1070
|
-
"--n-color-focus-error": lo,
|
|
1071
|
-
"--n-box-shadow-focus-error": so,
|
|
1072
|
-
"--n-border-error": uo,
|
|
1073
|
-
"--n-border-focus-error": co,
|
|
1074
|
-
"--n-border-hover-error": fo,
|
|
1075
|
-
"--n-loading-color-error": Po,
|
|
1076
|
-
// clear-button
|
|
1077
|
-
"--n-clear-color": ho,
|
|
1078
|
-
"--n-clear-size": po,
|
|
1079
|
-
"--n-clear-color-hover": vo,
|
|
1080
|
-
"--n-clear-color-pressed": bo,
|
|
1081
|
-
"--n-icon-color": go,
|
|
1082
|
-
"--n-icon-color-hover": wo,
|
|
1083
|
-
"--n-icon-color-pressed": Co,
|
|
1084
|
-
"--n-icon-color-disabled": mo,
|
|
1085
|
-
"--n-suffix-text-color": xo
|
|
1086
|
-
};
|
|
1087
|
-
}), Q = F ? (0, R.useThemeClass)("input", (0, r.computed)(() => {
|
|
1088
|
-
const { value: e } = Ce;
|
|
1089
|
-
return e[0];
|
|
1090
|
-
}), Ge, n) : void 0;
|
|
1091
|
-
return Object.assign(Object.assign({}, Gr), {
|
|
1092
|
-
// DOM ref
|
|
1093
|
-
wrapperElRef: z,
|
|
1094
|
-
inputElRef: d,
|
|
1095
|
-
inputMirrorElRef: c,
|
|
1096
|
-
inputEl2Ref: M,
|
|
1097
|
-
textareaElRef: E,
|
|
1098
|
-
textareaMirrorElRef: w,
|
|
1099
|
-
textareaScrollbarInstRef: G,
|
|
1100
|
-
// value
|
|
1101
|
-
rtlEnabled: Kr,
|
|
1102
|
-
uncontrolledValue: de,
|
|
1103
|
-
mergedValue: W,
|
|
1104
|
-
passwordVisible: ne,
|
|
1105
|
-
mergedPlaceholder: Pe,
|
|
1106
|
-
showPlaceholder1: tr,
|
|
1107
|
-
showPlaceholder2: nr,
|
|
1108
|
-
mergedFocus: Se,
|
|
1109
|
-
isComposing: L,
|
|
1110
|
-
activated: te,
|
|
1111
|
-
showClearButton: ir,
|
|
1112
|
-
mergedSize: Ce,
|
|
1113
|
-
mergedDisabled: Y,
|
|
1114
|
-
textDecorationStyle: ar,
|
|
1115
|
-
mergedClsPrefix: g,
|
|
1116
|
-
mergedBordered: a,
|
|
1117
|
-
mergedShowPasswordOn: $e,
|
|
1118
|
-
placeholderStyle: Ne,
|
|
1119
|
-
mergedStatus: or,
|
|
1120
|
-
textAreaScrollContainerWidth: ke,
|
|
1121
|
-
// methods
|
|
1122
|
-
handleTextAreaScroll: Nr,
|
|
1123
|
-
handleCompositionStart: _r,
|
|
1124
|
-
handleCompositionEnd: yr,
|
|
1125
|
-
handleInput: he,
|
|
1126
|
-
handleInputBlur: Cr,
|
|
1127
|
-
handleInputFocus: Er,
|
|
1128
|
-
handleWrapperBlur: Pr,
|
|
1129
|
-
handleWrapperFocus: Sr,
|
|
1130
|
-
handleMouseEnter: Rr,
|
|
1131
|
-
handleMouseLeave: Fr,
|
|
1132
|
-
handleMouseDown: Mr,
|
|
1133
|
-
handleChange: $r,
|
|
1134
|
-
handleClick: Br,
|
|
1135
|
-
handleClear: zr,
|
|
1136
|
-
handlePasswordToggleClick: Dr,
|
|
1137
|
-
handlePasswordToggleMousedown: Ir,
|
|
1138
|
-
handleWrapperKeydown: Ar,
|
|
1139
|
-
handleWrapperKeyup: Tr,
|
|
1140
|
-
handleTextAreaMirrorResize: Hr,
|
|
1141
|
-
getTextareaScrollContainer: () => E.value,
|
|
1142
|
-
mergedTheme: A,
|
|
1143
|
-
cssVars: F ? void 0 : Ge,
|
|
1144
|
-
themeClass: Q == null ? void 0 : Q.themeClass,
|
|
1145
|
-
onRender: Q == null ? void 0 : Q.onRender
|
|
1146
|
-
});
|
|
1147
|
-
},
|
|
1148
|
-
render() {
|
|
1149
|
-
var n, g;
|
|
1150
|
-
const { mergedClsPrefix: a, mergedStatus: F, themeClass: T, type: A, countGraphemes: z, onRender: E } = this, w = this.$slots;
|
|
1151
|
-
return E == null || E(), (0, r.h)(
|
|
1152
|
-
"div",
|
|
1153
|
-
{ ref: "wrapperElRef", class: [
|
|
1154
|
-
`${a}-input`,
|
|
1155
|
-
T,
|
|
1156
|
-
F && `${a}-input--${F}-status`,
|
|
1157
|
-
{
|
|
1158
|
-
[`${a}-input--rtl`]: this.rtlEnabled,
|
|
1159
|
-
[`${a}-input--disabled`]: this.mergedDisabled,
|
|
1160
|
-
[`${a}-input--textarea`]: A === "textarea",
|
|
1161
|
-
[`${a}-input--resizable`]: this.resizable && !this.autosize,
|
|
1162
|
-
[`${a}-input--autosize`]: this.autosize,
|
|
1163
|
-
[`${a}-input--round`]: this.round && A !== "textarea",
|
|
1164
|
-
[`${a}-input--pair`]: this.pair,
|
|
1165
|
-
[`${a}-input--focus`]: this.mergedFocus,
|
|
1166
|
-
[`${a}-input--stateful`]: this.stateful
|
|
1167
|
-
}
|
|
1168
|
-
], style: this.cssVars, tabindex: !this.mergedDisabled && this.passivelyActivated && !this.activated ? 0 : void 0, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, onClick: this.handleClick, onMousedown: this.handleMouseDown, onMouseenter: this.handleMouseEnter, onMouseleave: this.handleMouseLeave, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd, onKeyup: this.handleWrapperKeyup, onKeydown: this.handleWrapperKeydown },
|
|
1169
|
-
(0, r.h)(
|
|
1170
|
-
"div",
|
|
1171
|
-
{ class: `${a}-input-wrapper` },
|
|
1172
|
-
(0, f.resolveWrappedSlot)(w.prefix, (c) => c && (0, r.h)("div", { class: `${a}-input__prefix` }, c)),
|
|
1173
|
-
A === "textarea" ? (0, r.h)(B.NScrollbar, { ref: "textareaScrollbarInstRef", class: `${a}-input__textarea`, container: this.getTextareaScrollContainer, triggerDisplayManually: !0, useUnifiedContainer: !0, internalHoistYRail: !0 }, {
|
|
1174
|
-
default: () => {
|
|
1175
|
-
var c, d;
|
|
1176
|
-
const { textAreaScrollContainerWidth: M } = this, O = {
|
|
1177
|
-
width: this.autosize && M && `${M}px`
|
|
1178
|
-
};
|
|
1179
|
-
return (0, r.h)(
|
|
1180
|
-
r.Fragment,
|
|
1181
|
-
null,
|
|
1182
|
-
(0, r.h)("textarea", Object.assign({}, this.inputProps, { ref: "textareaElRef", class: [
|
|
1183
|
-
`${a}-input__textarea-el`,
|
|
1184
|
-
(c = this.inputProps) === null || c === void 0 ? void 0 : c.class
|
|
1185
|
-
], autofocus: this.autofocus, rows: Number(this.rows), placeholder: this.placeholder, value: this.mergedValue, disabled: this.mergedDisabled, maxlength: z ? void 0 : this.maxlength, minlength: z ? void 0 : this.minlength, readonly: this.readonly, tabindex: this.passivelyActivated && !this.activated ? -1 : void 0, style: [
|
|
1186
|
-
this.textDecorationStyle[0],
|
|
1187
|
-
(d = this.inputProps) === null || d === void 0 ? void 0 : d.style,
|
|
1188
|
-
O
|
|
1189
|
-
], onBlur: this.handleInputBlur, onFocus: (ce) => {
|
|
1190
|
-
this.handleInputFocus(ce, 2);
|
|
1191
|
-
}, onInput: this.handleInput, onChange: this.handleChange, onScroll: this.handleTextAreaScroll })),
|
|
1192
|
-
this.showPlaceholder1 ? (0, r.h)("div", { class: `${a}-input__placeholder`, style: [
|
|
1193
|
-
this.placeholderStyle,
|
|
1194
|
-
O
|
|
1195
|
-
], key: "placeholder" }, this.mergedPlaceholder[0]) : null,
|
|
1196
|
-
this.autosize ? (0, r.h)(b.VResizeObserver, { onResize: this.handleTextAreaMirrorResize }, {
|
|
1197
|
-
default: () => (0, r.h)("div", { ref: "textareaMirrorElRef", class: `${a}-input__textarea-mirror`, key: "mirror" })
|
|
1198
|
-
}) : null
|
|
1199
|
-
);
|
|
1200
|
-
}
|
|
1201
|
-
}) : (0, r.h)(
|
|
1202
|
-
"div",
|
|
1203
|
-
{ class: `${a}-input__input` },
|
|
1204
|
-
(0, r.h)("input", Object.assign({ type: A === "password" && this.mergedShowPasswordOn && this.passwordVisible ? "text" : A }, this.inputProps, { ref: "inputElRef", class: [
|
|
1205
|
-
`${a}-input__input-el`,
|
|
1206
|
-
(n = this.inputProps) === null || n === void 0 ? void 0 : n.class
|
|
1207
|
-
], style: [
|
|
1208
|
-
this.textDecorationStyle[0],
|
|
1209
|
-
(g = this.inputProps) === null || g === void 0 ? void 0 : g.style
|
|
1210
|
-
], tabindex: this.passivelyActivated && !this.activated ? -1 : void 0, placeholder: this.mergedPlaceholder[0], disabled: this.mergedDisabled, maxlength: z ? void 0 : this.maxlength, minlength: z ? void 0 : this.minlength, value: Array.isArray(this.mergedValue) ? this.mergedValue[0] : this.mergedValue, readonly: this.readonly, autofocus: this.autofocus, size: this.attrSize, onBlur: this.handleInputBlur, onFocus: (c) => {
|
|
1211
|
-
this.handleInputFocus(c, 0);
|
|
1212
|
-
}, onInput: (c) => {
|
|
1213
|
-
this.handleInput(c, 0);
|
|
1214
|
-
}, onChange: (c) => {
|
|
1215
|
-
this.handleChange(c, 0);
|
|
1216
|
-
} })),
|
|
1217
|
-
this.showPlaceholder1 ? (0, r.h)(
|
|
1218
|
-
"div",
|
|
1219
|
-
{ class: `${a}-input__placeholder` },
|
|
1220
|
-
(0, r.h)("span", null, this.mergedPlaceholder[0])
|
|
1221
|
-
) : null,
|
|
1222
|
-
this.autosize ? (0, r.h)("div", { class: `${a}-input__input-mirror`, key: "mirror", ref: "inputMirrorElRef" }, " ") : null
|
|
1223
|
-
),
|
|
1224
|
-
!this.pair && (0, f.resolveWrappedSlot)(w.suffix, (c) => c || this.clearable || this.showCount || this.mergedShowPasswordOn || this.loading !== void 0 ? (0, r.h)("div", { class: `${a}-input__suffix` }, [
|
|
1225
|
-
(0, f.resolveWrappedSlot)(w["clear-icon-placeholder"], (d) => (this.clearable || d) && (0, r.h)(B.NBaseClear, { clsPrefix: a, show: this.showClearButton, onClear: this.handleClear }, {
|
|
1226
|
-
placeholder: () => d,
|
|
1227
|
-
icon: () => {
|
|
1228
|
-
var M, O;
|
|
1229
|
-
return (O = (M = this.$slots)["clear-icon"]) === null || O === void 0 ? void 0 : O.call(M);
|
|
1230
|
-
}
|
|
1231
|
-
})),
|
|
1232
|
-
this.internalLoadingBeforeSuffix ? null : c,
|
|
1233
|
-
this.loading !== void 0 ? (0, r.h)(B.NBaseSuffix, { clsPrefix: a, loading: this.loading, showArrow: !1, showClear: !1, style: this.cssVars }) : null,
|
|
1234
|
-
this.internalLoadingBeforeSuffix ? c : null,
|
|
1235
|
-
this.showCount && this.type !== "textarea" ? (0, r.h)(V.default, null, {
|
|
1236
|
-
default: (d) => {
|
|
1237
|
-
var M;
|
|
1238
|
-
return (M = w.count) === null || M === void 0 ? void 0 : M.call(w, d);
|
|
1239
|
-
}
|
|
1240
|
-
}) : null,
|
|
1241
|
-
this.mergedShowPasswordOn && this.type === "password" ? (0, r.h)("div", { class: `${a}-input__eye`, onMousedown: this.handlePasswordToggleMousedown, onClick: this.handlePasswordToggleClick }, this.passwordVisible ? (0, f.resolveSlot)(w["password-visible-icon"], () => [
|
|
1242
|
-
(0, r.h)(B.NBaseIcon, { clsPrefix: a }, { default: () => (0, r.h)(D.EyeIcon, null) })
|
|
1243
|
-
]) : (0, f.resolveSlot)(w["password-invisible-icon"], () => [
|
|
1244
|
-
(0, r.h)(B.NBaseIcon, { clsPrefix: a }, { default: () => (0, r.h)(D.EyeOffIcon, null) })
|
|
1245
|
-
])) : null
|
|
1246
|
-
]) : null)
|
|
1247
|
-
),
|
|
1248
|
-
this.pair ? (0, r.h)("span", { class: `${a}-input__separator` }, (0, f.resolveSlot)(w.separator, () => [this.separator])) : null,
|
|
1249
|
-
this.pair ? (0, r.h)(
|
|
1250
|
-
"div",
|
|
1251
|
-
{ class: `${a}-input-wrapper` },
|
|
1252
|
-
(0, r.h)(
|
|
1253
|
-
"div",
|
|
1254
|
-
{ class: `${a}-input__input` },
|
|
1255
|
-
(0, r.h)("input", { ref: "inputEl2Ref", type: this.type, class: `${a}-input__input-el`, tabindex: this.passivelyActivated && !this.activated ? -1 : void 0, placeholder: this.mergedPlaceholder[1], disabled: this.mergedDisabled, maxlength: z ? void 0 : this.maxlength, minlength: z ? void 0 : this.minlength, value: Array.isArray(this.mergedValue) ? this.mergedValue[1] : void 0, readonly: this.readonly, style: this.textDecorationStyle[1], onBlur: this.handleInputBlur, onFocus: (c) => {
|
|
1256
|
-
this.handleInputFocus(c, 1);
|
|
1257
|
-
}, onInput: (c) => {
|
|
1258
|
-
this.handleInput(c, 1);
|
|
1259
|
-
}, onChange: (c) => {
|
|
1260
|
-
this.handleChange(c, 1);
|
|
1261
|
-
} }),
|
|
1262
|
-
this.showPlaceholder2 ? (0, r.h)(
|
|
1263
|
-
"div",
|
|
1264
|
-
{ class: `${a}-input__placeholder` },
|
|
1265
|
-
(0, r.h)("span", null, this.mergedPlaceholder[1])
|
|
1266
|
-
) : null
|
|
1267
|
-
),
|
|
1268
|
-
(0, f.resolveWrappedSlot)(w.suffix, (c) => (this.clearable || c) && (0, r.h)("div", { class: `${a}-input__suffix` }, [
|
|
1269
|
-
this.clearable && (0, r.h)(B.NBaseClear, { clsPrefix: a, show: this.showClearButton, onClear: this.handleClear }, {
|
|
1270
|
-
icon: () => {
|
|
1271
|
-
var d;
|
|
1272
|
-
return (d = w["clear-icon"]) === null || d === void 0 ? void 0 : d.call(w);
|
|
1273
|
-
},
|
|
1274
|
-
placeholder: () => {
|
|
1275
|
-
var d;
|
|
1276
|
-
return (d = w["clear-icon-placeholder"]) === null || d === void 0 ? void 0 : d.call(w);
|
|
1277
|
-
}
|
|
1278
|
-
}),
|
|
1279
|
-
c
|
|
1280
|
-
]))
|
|
1281
|
-
) : null,
|
|
1282
|
-
this.mergedBordered ? (0, r.h)("div", { class: `${a}-input__border` }) : null,
|
|
1283
|
-
this.mergedBordered ? (0, r.h)("div", { class: `${a}-input__state-border` }) : null,
|
|
1284
|
-
this.showCount && A === "textarea" ? (0, r.h)(V.default, null, {
|
|
1285
|
-
default: (c) => {
|
|
1286
|
-
var d;
|
|
1287
|
-
const { renderCount: M } = this;
|
|
1288
|
-
return M ? M(c) : (d = w.count) === null || d === void 0 ? void 0 : d.call(w, c);
|
|
1289
|
-
}
|
|
1290
|
-
}) : null
|
|
1291
|
-
);
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
|
-
})(Ye);
|
|
1295
|
-
var Qe = {}, We = {};
|
|
1296
|
-
Object.defineProperty(We, "__esModule", {
|
|
1297
|
-
value: !0
|
|
1298
|
-
});
|
|
1299
|
-
const y = xe;
|
|
1300
|
-
We.default = (0, y.cB)("input-group", `
|
|
1301
|
-
display: inline-flex;
|
|
1302
|
-
width: 100%;
|
|
1303
|
-
flex-wrap: nowrap;
|
|
1304
|
-
vertical-align: bottom;
|
|
1305
|
-
`, [(0, y.c)(">", [(0, y.cB)("input", [(0, y.c)("&:not(:last-child)", `
|
|
1306
|
-
border-top-right-radius: 0!important;
|
|
1307
|
-
border-bottom-right-radius: 0!important;
|
|
1308
|
-
`), (0, y.c)("&:not(:first-child)", `
|
|
1309
|
-
border-top-left-radius: 0!important;
|
|
1310
|
-
border-bottom-left-radius: 0!important;
|
|
1311
|
-
margin-left: -1px!important;
|
|
1312
|
-
`)]), (0, y.cB)("button", [(0, y.c)("&:not(:last-child)", `
|
|
1313
|
-
border-top-right-radius: 0!important;
|
|
1314
|
-
border-bottom-right-radius: 0!important;
|
|
1315
|
-
`, [(0, y.cE)("state-border, border", `
|
|
1316
|
-
border-top-right-radius: 0!important;
|
|
1317
|
-
border-bottom-right-radius: 0!important;
|
|
1318
|
-
`)]), (0, y.c)("&:not(:first-child)", `
|
|
1319
|
-
border-top-left-radius: 0!important;
|
|
1320
|
-
border-bottom-left-radius: 0!important;
|
|
1321
|
-
`, [(0, y.cE)("state-border, border", `
|
|
1322
|
-
border-top-left-radius: 0!important;
|
|
1323
|
-
border-bottom-left-radius: 0!important;
|
|
1324
|
-
`)])]), (0, y.c)("*", [(0, y.c)("&:not(:last-child)", `
|
|
1325
|
-
border-top-right-radius: 0!important;
|
|
1326
|
-
border-bottom-right-radius: 0!important;
|
|
1327
|
-
`, [(0, y.c)(">", [(0, y.cB)("input", `
|
|
1328
|
-
border-top-right-radius: 0!important;
|
|
1329
|
-
border-bottom-right-radius: 0!important;
|
|
1330
|
-
`), (0, y.cB)("base-selection", [(0, y.cB)("base-selection-label", `
|
|
1331
|
-
border-top-right-radius: 0!important;
|
|
1332
|
-
border-bottom-right-radius: 0!important;
|
|
1333
|
-
`), (0, y.cB)("base-selection-tags", `
|
|
1334
|
-
border-top-right-radius: 0!important;
|
|
1335
|
-
border-bottom-right-radius: 0!important;
|
|
1336
|
-
`), (0, y.cE)("box-shadow, border, state-border", `
|
|
1337
|
-
border-top-right-radius: 0!important;
|
|
1338
|
-
border-bottom-right-radius: 0!important;
|
|
1339
|
-
`)])])]), (0, y.c)("&:not(:first-child)", `
|
|
1340
|
-
margin-left: -1px!important;
|
|
1341
|
-
border-top-left-radius: 0!important;
|
|
1342
|
-
border-bottom-left-radius: 0!important;
|
|
1343
|
-
`, [(0, y.c)(">", [(0, y.cB)("input", `
|
|
1344
|
-
border-top-left-radius: 0!important;
|
|
1345
|
-
border-bottom-left-radius: 0!important;
|
|
1346
|
-
`), (0, y.cB)("base-selection", [(0, y.cB)("base-selection-label", `
|
|
1347
|
-
border-top-left-radius: 0!important;
|
|
1348
|
-
border-bottom-left-radius: 0!important;
|
|
1349
|
-
`), (0, y.cB)("base-selection-tags", `
|
|
1350
|
-
border-top-left-radius: 0!important;
|
|
1351
|
-
border-bottom-left-radius: 0!important;
|
|
1352
|
-
`), (0, y.cE)("box-shadow, border, state-border", `
|
|
1353
|
-
border-top-left-radius: 0!important;
|
|
1354
|
-
border-bottom-left-radius: 0!important;
|
|
1355
|
-
`)])])])])])]);
|
|
1356
|
-
(function(t) {
|
|
1357
|
-
var s = S && S.__importDefault || function(r) {
|
|
1358
|
-
return r && r.__esModule ? r : { default: r };
|
|
1359
|
-
};
|
|
1360
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.inputGroupProps = void 0;
|
|
1361
|
-
const v = le, h = De, p = s(We);
|
|
1362
|
-
t.inputGroupProps = {}, t.default = (0, v.defineComponent)({
|
|
1363
|
-
name: "InputGroup",
|
|
1364
|
-
props: t.inputGroupProps,
|
|
1365
|
-
setup(r) {
|
|
1366
|
-
const { mergedClsPrefixRef: x } = (0, h.useConfig)(r);
|
|
1367
|
-
return (0, h.useStyle)("-input-group", p.default, x), {
|
|
1368
|
-
mergedClsPrefix: x
|
|
1369
|
-
};
|
|
1370
|
-
},
|
|
1371
|
-
render() {
|
|
1372
|
-
const { mergedClsPrefix: r } = this;
|
|
1373
|
-
return (0, v.h)("div", { class: `${r}-input-group` }, this.$slots);
|
|
1374
|
-
}
|
|
1375
|
-
});
|
|
1376
|
-
})(Qe);
|
|
1377
|
-
var Ze = {}, Ve = {};
|
|
1378
|
-
Object.defineProperty(Ve, "__esModule", {
|
|
1379
|
-
value: !0
|
|
1380
|
-
});
|
|
1381
|
-
const Ue = xe;
|
|
1382
|
-
Ve.default = (0, Ue.cB)("input-group-label", `
|
|
1383
|
-
position: relative;
|
|
1384
|
-
user-select: none;
|
|
1385
|
-
-webkit-user-select: none;
|
|
1386
|
-
box-sizing: border-box;
|
|
1387
|
-
padding: 0 12px;
|
|
1388
|
-
display: inline-block;
|
|
1389
|
-
border-radius: var(--n-border-radius);
|
|
1390
|
-
background-color: var(--n-group-label-color);
|
|
1391
|
-
color: var(--n-group-label-text-color);
|
|
1392
|
-
font-size: var(--n-font-size);
|
|
1393
|
-
line-height: var(--n-height);
|
|
1394
|
-
height: var(--n-height);
|
|
1395
|
-
flex-shrink: 0;
|
|
1396
|
-
white-space: nowrap;
|
|
1397
|
-
transition:
|
|
1398
|
-
color .3s var(--n-bezier),
|
|
1399
|
-
background-color .3s var(--n-bezier),
|
|
1400
|
-
box-shadow .3s var(--n-bezier);
|
|
1401
|
-
`, [(0, Ue.cE)("border", `
|
|
1402
|
-
position: absolute;
|
|
1403
|
-
left: 0;
|
|
1404
|
-
right: 0;
|
|
1405
|
-
top: 0;
|
|
1406
|
-
bottom: 0;
|
|
1407
|
-
border-radius: inherit;
|
|
1408
|
-
border: var(--n-group-label-border);
|
|
1409
|
-
transition: border-color .3s var(--n-bezier);
|
|
1410
|
-
`)]);
|
|
1411
|
-
(function(t) {
|
|
1412
|
-
var s = S && S.__importDefault || function(u) {
|
|
1413
|
-
return u && u.__esModule ? u : { default: u };
|
|
1414
|
-
};
|
|
1415
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.inputGroupLabelProps = void 0;
|
|
1416
|
-
const v = le, h = De, p = _e, r = Ie, x = s(Ve);
|
|
1417
|
-
t.inputGroupLabelProps = Object.assign(Object.assign({}, h.useTheme.props), { size: {
|
|
1418
|
-
type: String,
|
|
1419
|
-
default: "medium"
|
|
1420
|
-
}, bordered: {
|
|
1421
|
-
type: Boolean,
|
|
1422
|
-
default: void 0
|
|
1423
|
-
} }), t.default = (0, v.defineComponent)({
|
|
1424
|
-
name: "InputGroupLabel",
|
|
1425
|
-
props: t.inputGroupLabelProps,
|
|
1426
|
-
setup(u) {
|
|
1427
|
-
const { mergedBorderedRef: b, mergedClsPrefixRef: C, inlineThemeDisabled: $ } = (0, h.useConfig)(u), D = (0, h.useTheme)("Input", "-input-group-label", x.default, r.inputLight, u, C), I = (0, v.computed)(() => {
|
|
1428
|
-
const { size: R } = u, { common: { cubicBezierEaseInOut: f }, self: { groupLabelColor: H, borderRadius: N, groupLabelTextColor: j, lineHeight: V, groupLabelBorder: k, [(0, p.createKey)("fontSize", R)]: n, [(0, p.createKey)("height", R)]: g } } = D.value;
|
|
1429
|
-
return {
|
|
1430
|
-
"--n-bezier": f,
|
|
1431
|
-
"--n-group-label-color": H,
|
|
1432
|
-
"--n-group-label-border": k,
|
|
1433
|
-
"--n-border-radius": N,
|
|
1434
|
-
"--n-group-label-text-color": j,
|
|
1435
|
-
"--n-font-size": n,
|
|
1436
|
-
"--n-line-height": V,
|
|
1437
|
-
"--n-height": g
|
|
1438
|
-
};
|
|
1439
|
-
}), B = $ ? (0, h.useThemeClass)("input-group-label", (0, v.computed)(() => u.size[0]), I, u) : void 0;
|
|
1440
|
-
return {
|
|
1441
|
-
mergedClsPrefix: C,
|
|
1442
|
-
mergedBordered: b,
|
|
1443
|
-
cssVars: $ ? void 0 : I,
|
|
1444
|
-
themeClass: B == null ? void 0 : B.themeClass,
|
|
1445
|
-
onRender: B == null ? void 0 : B.onRender
|
|
1446
|
-
};
|
|
1447
|
-
},
|
|
1448
|
-
render() {
|
|
1449
|
-
var u, b, C;
|
|
1450
|
-
const { mergedClsPrefix: $ } = this;
|
|
1451
|
-
return (u = this.onRender) === null || u === void 0 || u.call(this), (0, v.h)(
|
|
1452
|
-
"div",
|
|
1453
|
-
{ class: [`${$}-input-group-label`, this.themeClass], style: this.cssVars },
|
|
1454
|
-
(C = (b = this.$slots).default) === null || C === void 0 ? void 0 : C.call(b),
|
|
1455
|
-
this.mergedBordered ? (0, v.h)("div", { class: `${$}-input-group-label__border` }) : null
|
|
1456
|
-
);
|
|
1457
|
-
}
|
|
1458
|
-
});
|
|
1459
|
-
})(Ze);
|
|
1460
|
-
(function(t) {
|
|
1461
|
-
var s = S && S.__importDefault || function(r) {
|
|
1462
|
-
return r && r.__esModule ? r : { default: r };
|
|
1463
|
-
};
|
|
1464
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.inputGroupLabelProps = t.NInputGroupLabel = t.inputGroupProps = t.NInputGroup = t.inputProps = t.NInput = void 0;
|
|
1465
|
-
var v = Ye;
|
|
1466
|
-
Object.defineProperty(t, "NInput", { enumerable: !0, get: function() {
|
|
1467
|
-
return s(v).default;
|
|
1468
|
-
} }), Object.defineProperty(t, "inputProps", { enumerable: !0, get: function() {
|
|
1469
|
-
return v.inputProps;
|
|
1470
|
-
} });
|
|
1471
|
-
var h = Qe;
|
|
1472
|
-
Object.defineProperty(t, "NInputGroup", { enumerable: !0, get: function() {
|
|
1473
|
-
return s(h).default;
|
|
1474
|
-
} }), Object.defineProperty(t, "inputGroupProps", { enumerable: !0, get: function() {
|
|
1475
|
-
return h.inputGroupProps;
|
|
1476
|
-
} });
|
|
1477
|
-
var p = Ze;
|
|
1478
|
-
Object.defineProperty(t, "NInputGroupLabel", { enumerable: !0, get: function() {
|
|
1479
|
-
return s(p).default;
|
|
1480
|
-
} }), Object.defineProperty(t, "inputGroupLabelProps", { enumerable: !0, get: function() {
|
|
1481
|
-
return p.inputGroupLabelProps;
|
|
1482
|
-
} });
|
|
1483
|
-
})(Xe);
|
|
1484
|
-
const st = /* @__PURE__ */ Wo({
|
|
1485
|
-
__proto__: null
|
|
1486
|
-
}, [Xe]);
|
|
1487
|
-
export {
|
|
1488
|
-
Xe as a,
|
|
1489
|
-
Je as b,
|
|
1490
|
-
st as i,
|
|
1491
|
-
we as r,
|
|
1492
|
-
Ie as s
|
|
1493
|
-
};
|