epic-designer-gold 1.0.31 → 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 +556 -253
- 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/{uploadImage-Db_66X3C.js → uploadImage-DKgjQrSu.js} +4 -4
- 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 +1 -1
- 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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";const v=require("./_commonjsHelpers-DwTZ_eVU.cjs"),u=require("./index-BU3ulVXO.cjs"),F=require("./_vue_commonjs-external-CccDNqHl.cjs"),G=require("./index-t1QZ07qC.cjs");function ae(e,o){for(var i=0;i<o.length;i++){const a=o[i];if(typeof a!="string"&&!Array.isArray(a)){for(const t in a)if(t!=="default"&&!(t in e)){const s=Object.getOwnPropertyDescriptor(a,t);s&&Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>a[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var J={},H={},Q={},L={},B={};Object.defineProperty(B,"__esModule",{value:!0});B.self=X;const oe=u.common;function X(e){const{fontWeight:o,textColor1:i,textColor2:a,textColorDisabled:t,dividerColor:s,fontSize:f}=e;return{titleFontSize:f,titleFontWeight:o,dividerColor:s,titleTextColor:i,titleTextColorDisabled:t,fontSize:f,textColor:a,arrowColor:a,arrowColorDisabled:t,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const le={name:"Collapse",common:oe.commonLight,self:X};B.default=le;Object.defineProperty(L,"__esModule",{value:!0});const ne=u.common,ie=B,se={name:"Collapse",common:ne.commonDark,self:ie.self};L.default=se;var k={},U={};Object.defineProperty(U,"__esModule",{value:!0});const _=u.cssr;U.default=(0,_.cB)("collapse",[(0,_.cM)("rtl",`
|
|
2
|
+
direction: rtl;
|
|
3
|
+
`,[(0,_.cB)("collapse-item",[(0,_.cB)("collapse-item",{marginRight:"32px",marginLeft:0}),(0,_.cM)("left-arrow-placement",[(0,_.cE)("header",[(0,_.cB)("collapse-item-arrow",{marginRight:0,marginLeft:"4px"})])]),(0,_.cM)("right-arrow-placement",[(0,_.cE)("header",[(0,_.cB)("collapse-item-arrow",{marginLeft:0,marginRight:"4px"})])]),(0,_.cM)("active",[(0,_.cE)("header",[(0,_.cM)("active",[(0,_.cB)("collapse-item-arrow",{transform:"rotate(-90deg)"})])])])])])]);var ce=v.commonjsGlobal&&v.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k,"__esModule",{value:!0});k.collapseRtl=void 0;const de=ce(U);k.collapseRtl={name:"Collapse",style:de.default};(function(e){var o=v.commonjsGlobal&&v.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.collapseRtl=e.collapseLight=e.collapseDark=void 0;var i=L;Object.defineProperty(e,"collapseDark",{enumerable:!0,get:function(){return o(i).default}});var a=B;Object.defineProperty(e,"collapseLight",{enumerable:!0,get:function(){return o(a).default}});var t=k;Object.defineProperty(e,"collapseRtl",{enumerable:!0,get:function(){return t.collapseRtl}})})(Q);var W={},K={},pe=v.commonjsGlobal&&v.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(K,"__esModule",{value:!0});K.fadeInHeightExpandTransition=_e;const T=u.cssr,ue=pe(u._common),{cubicBezierEaseInOut:y,cubicBezierEaseOut:me,cubicBezierEaseIn:fe}=ue.default;function _e({overflow:e="hidden",duration:o=".3s",originalTransition:i="",leavingDelay:a="0s",foldPadding:t=!1,enterToProps:s=void 0,leaveToProps:f=void 0,reverse:I=!1}={}){const P=I?"leave":"enter",l=I?"enter":"leave";return[(0,T.c)(`&.fade-in-height-expand-transition-${l}-from,
|
|
4
|
+
&.fade-in-height-expand-transition-${P}-to`,Object.assign(Object.assign({},s),{opacity:1})),(0,T.c)(`&.fade-in-height-expand-transition-${l}-to,
|
|
5
|
+
&.fade-in-height-expand-transition-${P}-from`,Object.assign(Object.assign({},f),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:t?"0 !important":void 0,paddingBottom:t?"0 !important":void 0})),(0,T.c)(`&.fade-in-height-expand-transition-${l}-active`,`
|
|
6
|
+
overflow: ${e};
|
|
7
|
+
transition:
|
|
8
|
+
max-height ${o} ${y} ${a},
|
|
9
|
+
opacity ${o} ${me} ${a},
|
|
10
|
+
margin-top ${o} ${y} ${a},
|
|
11
|
+
margin-bottom ${o} ${y} ${a},
|
|
12
|
+
padding-top ${o} ${y} ${a},
|
|
13
|
+
padding-bottom ${o} ${y} ${a}
|
|
14
|
+
${i?`,${i}`:""}
|
|
15
|
+
`),(0,T.c)(`&.fade-in-height-expand-transition-${P}-active`,`
|
|
16
|
+
overflow: ${e};
|
|
17
|
+
transition:
|
|
18
|
+
max-height ${o} ${y},
|
|
19
|
+
opacity ${o} ${fe},
|
|
20
|
+
margin-top ${o} ${y},
|
|
21
|
+
margin-bottom ${o} ${y},
|
|
22
|
+
padding-top ${o} ${y},
|
|
23
|
+
padding-bottom ${o} ${y}
|
|
24
|
+
${i?`,${i}`:""}
|
|
25
|
+
`)]}Object.defineProperty(W,"__esModule",{value:!0});const he=K,r=u.cssr;W.default=(0,r.cB)("collapse","width: 100%;",[(0,r.cB)("collapse-item",`
|
|
26
|
+
font-size: var(--n-font-size);
|
|
27
|
+
color: var(--n-text-color);
|
|
28
|
+
transition:
|
|
29
|
+
color .3s var(--n-bezier),
|
|
30
|
+
border-color .3s var(--n-bezier);
|
|
31
|
+
margin: var(--n-item-margin);
|
|
32
|
+
`,[(0,r.cM)("disabled",[(0,r.cE)("header","cursor: not-allowed;",[(0,r.cE)("header-main",`
|
|
33
|
+
color: var(--n-title-text-color-disabled);
|
|
34
|
+
`),(0,r.cB)("collapse-item-arrow",`
|
|
35
|
+
color: var(--n-arrow-color-disabled);
|
|
36
|
+
`)])]),(0,r.cB)("collapse-item","margin-left: 32px;"),(0,r.c)("&:first-child","margin-top: 0;"),(0,r.c)("&:first-child >",[(0,r.cE)("header","padding-top: 0;")]),(0,r.cM)("left-arrow-placement",[(0,r.cE)("header",[(0,r.cB)("collapse-item-arrow","margin-right: 4px;")])]),(0,r.cM)("right-arrow-placement",[(0,r.cE)("header",[(0,r.cB)("collapse-item-arrow","margin-left: 4px;")])]),(0,r.cE)("content-wrapper",[(0,r.cE)("content-inner","padding-top: 16px;"),(0,he.fadeInHeightExpandTransition)({duration:"0.15s"})]),(0,r.cM)("active",[(0,r.cE)("header",[(0,r.cM)("active",[(0,r.cB)("collapse-item-arrow","transform: rotate(90deg);")])])]),(0,r.c)("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),(0,r.cNotM)("disabled",[(0,r.cM)("trigger-area-main",[(0,r.cE)("header",[(0,r.cE)("header-main","cursor: pointer;"),(0,r.cB)("collapse-item-arrow","cursor: default;")])]),(0,r.cM)("trigger-area-arrow",[(0,r.cE)("header",[(0,r.cB)("collapse-item-arrow","cursor: pointer;")])]),(0,r.cM)("trigger-area-extra",[(0,r.cE)("header",[(0,r.cE)("header-extra","cursor: pointer;")])])]),(0,r.cE)("header",`
|
|
37
|
+
font-size: var(--n-title-font-size);
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-wrap: nowrap;
|
|
40
|
+
align-items: center;
|
|
41
|
+
transition: color .3s var(--n-bezier);
|
|
42
|
+
position: relative;
|
|
43
|
+
padding: var(--n-title-padding);
|
|
44
|
+
color: var(--n-title-text-color);
|
|
45
|
+
`,[(0,r.cE)("header-main",`
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: nowrap;
|
|
48
|
+
align-items: center;
|
|
49
|
+
font-weight: var(--n-title-font-weight);
|
|
50
|
+
transition: color .3s var(--n-bezier);
|
|
51
|
+
flex: 1;
|
|
52
|
+
color: var(--n-title-text-color);
|
|
53
|
+
`),(0,r.cE)("header-extra",`
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
transition: color .3s var(--n-bezier);
|
|
57
|
+
color: var(--n-text-color);
|
|
58
|
+
`),(0,r.cB)("collapse-item-arrow",`
|
|
59
|
+
display: flex;
|
|
60
|
+
transition:
|
|
61
|
+
transform .15s var(--n-bezier),
|
|
62
|
+
color .3s var(--n-bezier);
|
|
63
|
+
font-size: 18px;
|
|
64
|
+
color: var(--n-arrow-color);
|
|
65
|
+
`)])])]);(function(e){var o=v.commonjsGlobal&&v.commonjsGlobal.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.collapseInjectionKey=e.collapseProps=void 0;const i=u.require$$1,a=F.require$$2,t=u._mixins,s=u.useRtl,f=u._utils,I=Q,P=o(W);e.collapseProps=Object.assign(Object.assign({},t.useTheme.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>(process.env.NODE_ENV!=="production"&&(0,f.warn)("collapse","`on-expanded-names-change` is deprecated, please use `on-update:expanded-names` instead."),!0),default:void 0}}),e.collapseInjectionKey=(0,f.createInjectionKey)("n-collapse"),e.default=(0,a.defineComponent)({name:"Collapse",props:e.collapseProps,slots:Object,setup(l,{slots:A}){const{mergedClsPrefixRef:R,inlineThemeDisabled:m,mergedRtlRef:$}=(0,t.useConfig)(l),C=(0,a.ref)(l.defaultExpandedNames),h=(0,a.computed)(()=>l.expandedNames),w=(0,i.useMergedState)(h,C),p=(0,t.useTheme)("Collapse","-collapse",P.default,I.collapseLight,l,R);function g(d){const{"onUpdate:expandedNames":c,onUpdateExpandedNames:x,onExpandedNamesChange:O}=l;x&&(0,f.call)(x,d),c&&(0,f.call)(c,d),O&&(0,f.call)(O,d),C.value=d}function b(d){const{onItemHeaderClick:c}=l;c&&(0,f.call)(c,d)}function M(d,c,x){const{accordion:O}=l,{value:S}=w;if(O)d?(g([c]),b({name:c,expanded:!0,event:x})):(g([]),b({name:c,expanded:!1,event:x}));else if(!Array.isArray(S))g([c]),b({name:c,expanded:!0,event:x});else{const E=S.slice(),z=E.findIndex(q=>c===q);~z?(E.splice(z,1),g(E),b({name:c,expanded:!1,event:x})):(E.push(c),g(E),b({name:c,expanded:!0,event:x}))}}(0,a.provide)(e.collapseInjectionKey,{props:l,mergedClsPrefixRef:R,expandedNamesRef:w,slots:A,toggleItem:M});const N=(0,s.useRtl)("Collapse",$,R),D=(0,a.computed)(()=>{const{common:{cubicBezierEaseInOut:d},self:{titleFontWeight:c,dividerColor:x,titlePadding:O,titleTextColor:S,titleTextColorDisabled:E,textColor:z,arrowColor:q,fontSize:Z,titleFontSize:ee,arrowColorDisabled:te,itemMargin:re}}=p.value;return{"--n-font-size":Z,"--n-bezier":d,"--n-text-color":z,"--n-divider-color":x,"--n-title-padding":O,"--n-title-font-size":ee,"--n-title-text-color":S,"--n-title-text-color-disabled":E,"--n-title-font-weight":c,"--n-arrow-color":q,"--n-arrow-color-disabled":te,"--n-item-margin":re}}),n=m?(0,t.useThemeClass)("collapse",void 0,D,l):void 0;return{rtlEnabled:N,mergedTheme:p,mergedClsPrefix:R,cssVars:m?void 0:D,themeClass:n==null?void 0:n.themeClass,onRender:n==null?void 0:n.onRender}},render(){var l;return(l=this.onRender)===null||l===void 0||l.call(this),(0,a.h)("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}})})(H);var Y={},V={};Object.defineProperty(V,"__esModule",{value:!0});const ge=u.require$$1,j=F.require$$2,ve=G._internal;V.default=(0,j.defineComponent)({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:(0,ge.useFalseUntilTruthy)((0,j.toRef)(e,"show"))}},render(){return(0,j.h)(ve.NFadeInExpandTransition,null,{default:()=>{const{show:e,displayDirective:o,onceTrue:i,clsPrefix:a}=this,t=o==="show"&&i,s=(0,j.h)("div",{class:`${a}-collapse-item__content-wrapper`},(0,j.h)("div",{class:`${a}-collapse-item__content-inner`},this.$slots));return t?(0,j.withDirectives)(s,[[j.vShow,e]]):e?s:null}})}});(function(e){var o=v.commonjsGlobal&&v.commonjsGlobal.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.collapseItemProps=void 0;const i=u.require$$0,a=u.require$$1,t=F.require$$2,s=G._internal,f=G.icons,I=u._mixins,P=u.useRtl,l=u._utils,A=H,R=o(V);e.collapseItemProps={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},e.default=(0,t.defineComponent)({name:"CollapseItem",props:e.collapseItemProps,setup(m){const{mergedRtlRef:$}=(0,I.useConfig)(m),C=(0,i.createId)(),h=(0,a.useMemo)(()=>{var n;return(n=m.name)!==null&&n!==void 0?n:C}),w=(0,t.inject)(A.collapseInjectionKey);w||(0,l.throwError)("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:p,props:g,mergedClsPrefixRef:b,slots:M}=w,N=(0,t.computed)(()=>{const{value:n}=p;if(Array.isArray(n)){const{value:d}=h;return!~n.findIndex(c=>c===d)}else if(n){const{value:d}=h;return d!==n}return!0});return{rtlEnabled:(0,P.useRtl)("Collapse",$,b),collapseSlots:M,randomName:C,mergedClsPrefix:b,collapsed:N,triggerAreas:(0,t.toRef)(g,"triggerAreas"),mergedDisplayDirective:(0,t.computed)(()=>{const{displayDirective:n}=m;return n||g.displayDirective}),arrowPlacement:(0,t.computed)(()=>g.arrowPlacement),handleClick(n){let d="main";(0,i.happensIn)(n,"arrow")&&(d="arrow"),(0,i.happensIn)(n,"extra")&&(d="extra"),g.triggerAreas.includes(d)&&w&&!m.disabled&&w.toggleItem(N.value,h.value,n)}}},render(){const{collapseSlots:m,$slots:$,arrowPlacement:C,collapsed:h,mergedDisplayDirective:w,mergedClsPrefix:p,disabled:g,triggerAreas:b}=this,M=(0,l.resolveSlotWithTypedProps)($.header,{collapsed:h},()=>[this.title]),N=$["header-extra"]||m["header-extra"],D=$.arrow||m.arrow;return(0,t.h)("div",{class:[`${p}-collapse-item`,`${p}-collapse-item--${C}-arrow-placement`,g&&`${p}-collapse-item--disabled`,!h&&`${p}-collapse-item--active`,b.map(n=>`${p}-collapse-item--trigger-area-${n}`)]},(0,t.h)("div",{class:[`${p}-collapse-item__header`,!h&&`${p}-collapse-item__header--active`]},(0,t.h)("div",{class:`${p}-collapse-item__header-main`,onClick:this.handleClick},C==="right"&&M,(0,t.h)("div",{class:`${p}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},(0,l.resolveSlotWithTypedProps)(D,{collapsed:h},()=>[(0,t.h)(s.NBaseIcon,{clsPrefix:p},{default:()=>this.rtlEnabled?(0,t.h)(f.ChevronLeftIcon,null):(0,t.h)(f.ChevronRightIcon,null)})])),C==="left"&&M),(0,l.resolveWrappedSlotWithProps)(N,{collapsed:h},n=>(0,t.h)("div",{class:`${p}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},n))),(0,t.h)(R.default,{clsPrefix:p,displayDirective:w,show:!h},$))}})})(Y);(function(e){var o=v.commonjsGlobal&&v.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NCollapseItem=e.collapseItemProps=e.NCollapse=e.collapseProps=void 0;var i=H;Object.defineProperty(e,"collapseProps",{enumerable:!0,get:function(){return i.collapseProps}}),Object.defineProperty(e,"NCollapse",{enumerable:!0,get:function(){return o(i).default}});var a=Y;Object.defineProperty(e,"collapseItemProps",{enumerable:!0,get:function(){return a.collapseItemProps}}),Object.defineProperty(e,"NCollapseItem",{enumerable:!0,get:function(){return o(a).default}})})(J);const be=ae({__proto__:null},[J]);exports.index=be;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),U=require("./pluginManager-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),U=require("./pluginManager-C8aQylGX.cjs"),L=require("./index-BoL2PSBk.cjs"),I=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={class:"box-model-container"},w={class:"visual-box"},z={class:"margin-area"},R={class:"margin-btns"},W={class:"margin-input top"},j={class:"margin-input right"},y={class:"margin-input bottom"},H={class:"margin-input left"},O={class:"border-area"},T={class:"padding-area"},A={class:"padding-btns"},D={class:"padding-input top"},F={class:"padding-input right"},G={class:"padding-input bottom"},J={class:"padding-input left"},K=l.defineComponent({__name:"index",props:{modelValue:{}},emits:["update:modelValue"],setup(x,{emit:B}){L.useLocale();const r=U.pluginManager.getComponent("input");U.pluginManager.getComponent("select");const a=x;l.onMounted(()=>{var i,e,t,u,g,p,s,d,c,V,N,k;(i=a.modelValue)!=null&&i.padding?o.value=h((e=a.modelValue)==null?void 0:e.padding):(o.value.top=(t=a.modelValue)==null?void 0:t["padding-top"],o.value.right=(u=a.modelValue)==null?void 0:u["padding-right"],o.value.bottom=(g=a.modelValue)==null?void 0:g["padding-bottom"],o.value.left=(p=a.modelValue)==null?void 0:p["padding-left"]),(s=a.modelValue)!=null&&s.margin?n.value=h((d=a.modelValue)==null?void 0:d.margin):(n.value.top=(c=a.modelValue)==null?void 0:c["margin-top"],n.value.right=(V=a.modelValue)==null?void 0:V["margin-right"],n.value.bottom=(N=a.modelValue)==null?void 0:N["margin-bottom"],n.value.left=(k=a.modelValue)==null?void 0:k["margin-left"])});function $(){n.value.left=null,n.value.top=null,n.value.right=null,n.value.bottom=null,f("update:modelValue",{...a.modelValue,"margin-left":null,"margin-top":null,"margin-right":null,"margin-bottom":null})}const v=l.ref(!1),b=l.ref(!1);function M(){v.value=!v.value}function C(){b.value=!b.value}function P(){o.value.left=null,o.value.top=null,o.value.right=null,o.value.bottom=null,f("update:modelValue",{...a.modelValue,"padding-left":null,"padding-top":null,"padding-right":null,"padding-bottom":null})}function m(i,e,t){const u=i.target.value.trim();if(!u)return;if(["px","%","vw","vh","rem","em","pt"].some(d=>u.endsWith(d))){E(e,t,u,i.target.value);return}if(/^\d+$/.test(u)){const d=u+"px";i.target.value=d,E(e,t,d,i.target.value)}else q(i,e,t)}function E(i,e,t,u){const g=i==="padding",p=g?b.value:v.value,s=g?o:n;if(!p)s.value[e]=t,f("update:modelValue",{...a.modelValue,[`${i}-${e}`]:u});else{const d=["left","right","top","bottom"];d.forEach(V=>{s.value[V]=t});const c=d.reduce((V,N)=>({...V,[`${i}-${N}`]:u}),{});f("update:modelValue",{...a.modelValue,...c})}}function q(i,e,t){i.target.value="";const u=e==="padding",g=u?b.value:v.value,p=u?o:n;if(!g)p.value[t]="",f("update:modelValue",{...a.modelValue,[`${e}-${t}`]:null});else{const s=["left","right","top","bottom"];s.forEach(c=>{p.value[c]=null});const d=s.reduce((c,V)=>({...c,[`${e}-${V}`]:null}),{});f("update:modelValue",{...a.modelValue,...d})}I.ElMessage.info("请输入有效值(数字或带单位的值)")}function h(i){const e=i.split(/\s+/);return e.length===1?{top:e[0],right:e[0],bottom:e[0],left:e[0]}:e.length===2?{top:e[0],right:e[1],bottom:e[0],left:e[1]}:e.length===3?{top:e[0],right:e[1],bottom:e[2],left:e[1]}:e.length===4?{top:e[0],right:e[1],bottom:e[2],left:e[3]}:null}const n=l.ref({top:null,right:null,bottom:null,left:null});l.ref({width:null,style:"solid",color:"#3498db"});const o=l.ref({top:null,right:null,bottom:null,left:null}),f=B;return l.ref(null),l.ref("px"),(i,e)=>(l.openBlock(),l.createElementBlock("div",_,[l.createElementVNode("div",w,[l.createElementVNode("div",z,[e[18]||(e[18]=l.createElementVNode("div",{class:"margin-title"},"外边距",-1)),l.createElementVNode("div",R,[l.createElementVNode("span",{title:"同时修改每个方向外边距",style:l.normalizeStyle({color:v.value?"#016bf3":""}),onClick:M,class:"icon iconfont icon--epic icon--epic--links-fill"},null,4),l.createElementVNode("span",{title:"清空外边距",onClick:$,class:"icon iconfont icon--epic icon--epic--delete-bin-line"})]),l.createElementVNode("div",W,[l.createVNode(l.unref(r),{modelValue:n.value.top,"onUpdate:modelValue":e[0]||(e[0]=t=>n.value.top=t),min:"0",onBlur:e[1]||(e[1]=t=>m(t,"margin","top"))},null,8,["modelValue"])]),l.createElementVNode("div",j,[l.createVNode(l.unref(r),{modelValue:n.value.right,"onUpdate:modelValue":e[2]||(e[2]=t=>n.value.right=t),min:"0",onBlur:e[3]||(e[3]=t=>m(t,"margin","right"))},null,8,["modelValue"])]),l.createElementVNode("div",y,[l.createVNode(l.unref(r),{modelValue:n.value.bottom,"onUpdate:modelValue":e[4]||(e[4]=t=>n.value.bottom=t),min:"0",onBlur:e[5]||(e[5]=t=>m(t,"margin","bottom"))},null,8,["modelValue"])]),l.createElementVNode("div",H,[l.createVNode(l.unref(r),{modelValue:n.value.left,"onUpdate:modelValue":e[6]||(e[6]=t=>n.value.left=t),min:"0",onBlur:e[7]||(e[7]=t=>m(t,"margin","left"))},null,8,["modelValue"])]),l.createElementVNode("div",O,[l.createElementVNode("div",T,[e[16]||(e[16]=l.createElementVNode("div",{class:"padding-title"},"内边距",-1)),l.createElementVNode("div",A,[l.createElementVNode("span",{onClick:C,title:"同时修改每个方向内边距",style:l.normalizeStyle({color:b.value?"#016bf3":""}),class:"icon iconfont icon--epic icon--epic--links-fill"},null,4),l.createElementVNode("span",{title:"清空内边距",onClick:P,class:"icon iconfont icon--epic icon--epic--delete-bin-line"})]),l.createElementVNode("div",D,[l.createVNode(l.unref(r),{modelValue:o.value.top,"onUpdate:modelValue":e[8]||(e[8]=t=>o.value.top=t),min:"0",onBlur:e[9]||(e[9]=t=>m(t,"padding","top"))},null,8,["modelValue"])]),l.createElementVNode("div",F,[l.createVNode(l.unref(r),{modelValue:o.value.right,"onUpdate:modelValue":e[10]||(e[10]=t=>o.value.right=t),min:"0",onBlur:e[11]||(e[11]=t=>m(t,"padding","right"))},null,8,["modelValue"])]),l.createElementVNode("div",G,[l.createVNode(l.unref(r),{modelValue:o.value.bottom,"onUpdate:modelValue":e[12]||(e[12]=t=>o.value.bottom=t),min:"0",onBlur:e[13]||(e[13]=t=>m(t,"padding","bottom"))},null,8,["modelValue"])]),l.createElementVNode("div",J,[l.createVNode(l.unref(r),{modelValue:o.value.left,"onUpdate:modelValue":e[14]||(e[14]=t=>o.value.left=t),min:"0",onBlur:e[15]||(e[15]=t=>m(t,"padding","left"))},null,8,["modelValue"])]),e[17]||(e[17]=l.createElementVNode("div",{class:"content-area"},[l.createElementVNode("div",{class:"content-controls"}," content ")],-1))])])])])]))}}),Q=S._export_sfc(K,[["__scopeId","data-v-539d5450"]]);exports.default=Q;
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";const M=require("./_commonjsHelpers-DwTZ_eVU.cjs"),S=require("./index-BU3ulVXO.cjs"),fe=require("./_vue_commonjs-external-CccDNqHl.cjs"),we=require("./index-t1QZ07qC.cjs");function Ro(t,u){for(var b=0;b<u.length;b++){const v=u[b];if(typeof v!="string"&&!Array.isArray(v)){for(const h in v)if(h!=="default"&&!(h in t)){const s=Object.getOwnPropertyDescriptor(v,h);s&&Object.defineProperty(t,h,s.get?s:{enumerable:!0,get:()=>v[h]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var De={},Ye={},Te={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=t.isChrome=void 0;const u=S.isBrowser;t.isChrome=u.isBrowser&&"chrome"in window,t.isFirefox=u.isBrowser&&navigator.userAgent.includes("Firefox"),t.isSafari=u.isBrowser&&navigator.userAgent.includes("Safari")&&!t.isChrome})(Te);var Ee={},Ae={},Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.default={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};var $o=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ae,"__esModule",{value:!0});const ne=S.require$$0,Fo=we.styles,jo=S._mixins,Io=S.common,Do=$o(Pe);function To(t){const{textColor2:u,textColor3:b,textColorDisabled:v,primaryColor:h,primaryColorHover:s,inputColor:w,inputColorDisabled:c,warningColor:o,warningColorHover:$,errorColor:x,errorColorHover:D,borderRadius:R,lineHeight:k,fontSizeTiny:d,fontSizeSmall:A,fontSizeMedium:L,fontSizeLarge:Y,heightTiny:K,heightSmall:O,heightMedium:q,heightLarge:i,clearColor:p,clearColorHover:y,clearColorPressed:g,placeholderColor:E,placeholderColorDisabled:H,iconColor:j,iconColorDisabled:l,iconColorHover:N,iconColorPressed:U,fontWeight:B}=t;return Object.assign(Object.assign({},Do.default),{fontWeight:B,countTextColorDisabled:v,countTextColor:b,heightTiny:K,heightSmall:O,heightMedium:q,heightLarge:i,fontSizeTiny:d,fontSizeSmall:A,fontSizeMedium:L,fontSizeLarge:Y,lineHeight:k,lineHeightTextarea:k,borderRadius:R,iconSize:"16px",groupLabelColor:w,textColor:u,textColorDisabled:v,textDecorationColor:u,groupLabelTextColor:u,caretColor:h,placeholderColor:E,placeholderColorDisabled:H,color:w,colorDisabled:c,colorFocus:(0,ne.changeColor)(h,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${s}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 8px 0 ${(0,ne.changeColor)(h,{alpha:.3})}`,loadingColor:h,loadingColorWarning:o,borderWarning:`1px solid ${o}`,borderHoverWarning:`1px solid ${$}`,colorFocusWarning:(0,ne.changeColor)(o,{alpha:.1}),borderFocusWarning:`1px solid ${$}`,boxShadowFocusWarning:`0 0 8px 0 ${(0,ne.changeColor)(o,{alpha:.3})}`,caretColorWarning:o,loadingColorError:x,borderError:`1px solid ${x}`,borderHoverError:`1px solid ${D}`,colorFocusError:(0,ne.changeColor)(x,{alpha:.1}),borderFocusError:`1px solid ${D}`,boxShadowFocusError:`0 0 8px 0 ${(0,ne.changeColor)(x,{alpha:.3})}`,caretColorError:x,clearColor:p,clearColorHover:y,clearColorPressed:g,iconColor:j,iconColorDisabled:l,iconColorHover:N,iconColorPressed:U,suffixTextColor:u})}const Ao=(0,jo.createTheme)({name:"Input",common:Io.commonDark,peers:{Scrollbar:Fo.scrollbarDark},self:To});Ae.default=Ao;var Oe={},Oo=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oe,"__esModule",{value:!0});const Ie=S.require$$0,Wo=we.styles,Go=S._mixins,Vo=S.common,ko=Oo(Pe);function Lo(t){const{textColor2:u,textColor3:b,textColorDisabled:v,primaryColor:h,primaryColorHover:s,inputColor:w,inputColorDisabled:c,borderColor:o,warningColor:$,warningColorHover:x,errorColor:D,errorColorHover:R,borderRadius:k,lineHeight:d,fontSizeTiny:A,fontSizeSmall:L,fontSizeMedium:Y,fontSizeLarge:K,heightTiny:O,heightSmall:q,heightMedium:i,heightLarge:p,actionColor:y,clearColor:g,clearColorHover:E,clearColorPressed:H,placeholderColor:j,placeholderColorDisabled:l,iconColor:N,iconColorDisabled:U,iconColorHover:B,iconColorPressed:T,fontWeight:W}=t;return Object.assign(Object.assign({},ko.default),{fontWeight:W,countTextColorDisabled:v,countTextColor:b,heightTiny:O,heightSmall:q,heightMedium:i,heightLarge:p,fontSizeTiny:A,fontSizeSmall:L,fontSizeMedium:Y,fontSizeLarge:K,lineHeight:d,lineHeightTextarea:d,borderRadius:k,iconSize:"16px",groupLabelColor:y,groupLabelTextColor:u,textColor:u,textColorDisabled:v,textDecorationColor:u,caretColor:h,placeholderColor:j,placeholderColorDisabled:l,color:w,colorDisabled:c,colorFocus:w,groupLabelBorder:`1px solid ${o}`,border:`1px solid ${o}`,borderHover:`1px solid ${s}`,borderDisabled:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${(0,Ie.changeColor)(h,{alpha:.2})}`,loadingColor:h,loadingColorWarning:$,borderWarning:`1px solid ${$}`,borderHoverWarning:`1px solid ${x}`,colorFocusWarning:w,borderFocusWarning:`1px solid ${x}`,boxShadowFocusWarning:`0 0 0 2px ${(0,Ie.changeColor)($,{alpha:.2})}`,caretColorWarning:$,loadingColorError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${R}`,colorFocusError:w,borderFocusError:`1px solid ${R}`,boxShadowFocusError:`0 0 0 2px ${(0,Ie.changeColor)(D,{alpha:.2})}`,caretColorError:D,clearColor:g,clearColorHover:E,clearColorPressed:H,iconColor:N,iconColorDisabled:U,iconColorHover:B,iconColorPressed:T,suffixTextColor:u})}const Ho=(0,Go.createTheme)({name:"Input",common:Vo.commonLight,peers:{Scrollbar:Wo.scrollbarLight},self:Lo});Oe.default=Ho;var pe={},We={};Object.defineProperty(We,"__esModule",{value:!0});const ee=S.cssr;We.default=(0,ee.cB)("input",[(0,ee.cM)("rtl",`
|
|
2
|
+
direction: rtl;
|
|
3
|
+
`,[(0,ee.cE)("prefix",{marginRight:0,marginLeft:"4px"}),(0,ee.cE)("suffix",{marginRight:"4px",marginLeft:0}),(0,ee.cM)("textarea","width: 100%;",[(0,ee.cB)("input-word-count",`
|
|
4
|
+
left: var(--n-padding-right);
|
|
5
|
+
right: unset;
|
|
6
|
+
`)]),(0,ee.cB)("input-word-count",`
|
|
7
|
+
margin-left: 0;
|
|
8
|
+
margin-right: 4px;
|
|
9
|
+
`)])]);var No=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pe,"__esModule",{value:!0});pe.inputRtl=void 0;const Ko=No(We);pe.inputRtl={name:"Input",style:Ko.default};(function(t){var u=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputRtl=t.inputLight=t.inputDark=void 0;var b=Ae;Object.defineProperty(t,"inputDark",{enumerable:!0,get:function(){return u(b).default}});var v=Oe;Object.defineProperty(t,"inputLight",{enumerable:!0,get:function(){return u(v).default}});var h=pe;Object.defineProperty(t,"inputRtl",{enumerable:!0,get:function(){return h.inputRtl}})})(Ee);var he={};Object.defineProperty(he,"__esModule",{value:!0});he.inputInjectionKey=void 0;const qo=S._utils;he.inputInjectionKey=(0,qo.createInjectionKey)("n-input");var ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.safariStyle=void 0;const n=S.cssr;ve.default=(0,n.cB)("input",`
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
cursor: text;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
z-index: auto;
|
|
14
|
+
outline: none;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
position: relative;
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
border-radius: var(--n-border-radius);
|
|
19
|
+
background-color: var(--n-color);
|
|
20
|
+
transition: background-color .3s var(--n-bezier);
|
|
21
|
+
font-size: var(--n-font-size);
|
|
22
|
+
font-weight: var(--n-font-weight);
|
|
23
|
+
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
|
|
24
|
+
`,[(0,n.cE)("input, textarea",`
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
flex-grow: 1;
|
|
27
|
+
position: relative;
|
|
28
|
+
`),(0,n.cE)("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
font-size: inherit;
|
|
31
|
+
line-height: 1.5;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
border: none;
|
|
34
|
+
outline: none;
|
|
35
|
+
background-color: #0000;
|
|
36
|
+
text-align: inherit;
|
|
37
|
+
transition:
|
|
38
|
+
-webkit-text-fill-color .3s var(--n-bezier),
|
|
39
|
+
caret-color .3s var(--n-bezier),
|
|
40
|
+
color .3s var(--n-bezier),
|
|
41
|
+
text-decoration-color .3s var(--n-bezier);
|
|
42
|
+
`),(0,n.cE)("input-el, textarea-el",`
|
|
43
|
+
-webkit-appearance: none;
|
|
44
|
+
scrollbar-width: none;
|
|
45
|
+
width: 100%;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
text-decoration-color: var(--n-text-decoration-color);
|
|
48
|
+
color: var(--n-text-color);
|
|
49
|
+
caret-color: var(--n-caret-color);
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
`,[(0,n.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
52
|
+
width: 0;
|
|
53
|
+
height: 0;
|
|
54
|
+
display: none;
|
|
55
|
+
`),(0,n.c)("&::placeholder",`
|
|
56
|
+
color: #0000;
|
|
57
|
+
-webkit-text-fill-color: transparent !important;
|
|
58
|
+
`),(0,n.c)("&:-webkit-autofill ~",[(0,n.cE)("placeholder","display: none;")])]),(0,n.cM)("round",[(0,n.cNotM)("textarea","border-radius: calc(var(--n-height) / 2);")]),(0,n.cE)("placeholder",`
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
top: 0;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
color: var(--n-placeholder-color);
|
|
67
|
+
`,[(0,n.c)("span",`
|
|
68
|
+
width: 100%;
|
|
69
|
+
display: inline-block;
|
|
70
|
+
`)]),(0,n.cM)("textarea",[(0,n.cE)("placeholder","overflow: visible;")]),(0,n.cNotM)("autosize","width: 100%;"),(0,n.cM)("autosize",[(0,n.cE)("textarea-el, input-el",`
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
height: 100%;
|
|
75
|
+
`)]),(0,n.cB)("input-wrapper",`
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
flex-grow: 1;
|
|
79
|
+
position: relative;
|
|
80
|
+
padding-left: var(--n-padding-left);
|
|
81
|
+
padding-right: var(--n-padding-right);
|
|
82
|
+
`),(0,n.cE)("input-mirror",`
|
|
83
|
+
padding: 0;
|
|
84
|
+
height: var(--n-height);
|
|
85
|
+
line-height: var(--n-height);
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
visibility: hidden;
|
|
88
|
+
position: static;
|
|
89
|
+
white-space: pre;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
`),(0,n.cE)("input-el",`
|
|
92
|
+
padding: 0;
|
|
93
|
+
height: var(--n-height);
|
|
94
|
+
line-height: var(--n-height);
|
|
95
|
+
`,[(0,n.c)("&[type=password]::-ms-reveal","display: none;"),(0,n.c)("+",[(0,n.cE)("placeholder",`
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
`)])]),(0,n.cNotM)("textarea",[(0,n.cE)("placeholder","white-space: nowrap;")]),(0,n.cE)("eye",`
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
transition: color .3s var(--n-bezier);
|
|
103
|
+
`),(0,n.cM)("textarea","width: 100%;",[(0,n.cB)("input-word-count",`
|
|
104
|
+
position: absolute;
|
|
105
|
+
right: var(--n-padding-right);
|
|
106
|
+
bottom: var(--n-padding-vertical);
|
|
107
|
+
`),(0,n.cM)("resizable",[(0,n.cB)("input-wrapper",`
|
|
108
|
+
resize: vertical;
|
|
109
|
+
min-height: var(--n-height);
|
|
110
|
+
`)]),(0,n.cE)("textarea-el, textarea-mirror, placeholder",`
|
|
111
|
+
height: 100%;
|
|
112
|
+
padding-left: 0;
|
|
113
|
+
padding-right: 0;
|
|
114
|
+
padding-top: var(--n-padding-vertical);
|
|
115
|
+
padding-bottom: var(--n-padding-vertical);
|
|
116
|
+
word-break: break-word;
|
|
117
|
+
display: inline-block;
|
|
118
|
+
vertical-align: bottom;
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
line-height: var(--n-line-height-textarea);
|
|
121
|
+
margin: 0;
|
|
122
|
+
resize: none;
|
|
123
|
+
white-space: pre-wrap;
|
|
124
|
+
scroll-padding-block-end: var(--n-padding-vertical);
|
|
125
|
+
`),(0,n.cE)("textarea-mirror",`
|
|
126
|
+
width: 100%;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
visibility: hidden;
|
|
130
|
+
position: static;
|
|
131
|
+
white-space: pre-wrap;
|
|
132
|
+
overflow-wrap: break-word;
|
|
133
|
+
`)]),(0,n.cM)("pair",[(0,n.cE)("input-el, placeholder","text-align: center;"),(0,n.cE)("separator",`
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
transition: color .3s var(--n-bezier);
|
|
137
|
+
color: var(--n-text-color);
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
`,[(0,n.cB)("icon",`
|
|
140
|
+
color: var(--n-icon-color);
|
|
141
|
+
`),(0,n.cB)("base-icon",`
|
|
142
|
+
color: var(--n-icon-color);
|
|
143
|
+
`)])]),(0,n.cM)("disabled",`
|
|
144
|
+
cursor: not-allowed;
|
|
145
|
+
background-color: var(--n-color-disabled);
|
|
146
|
+
`,[(0,n.cE)("border","border: var(--n-border-disabled);"),(0,n.cE)("input-el, textarea-el",`
|
|
147
|
+
cursor: not-allowed;
|
|
148
|
+
color: var(--n-text-color-disabled);
|
|
149
|
+
text-decoration-color: var(--n-text-color-disabled);
|
|
150
|
+
`),(0,n.cE)("placeholder","color: var(--n-placeholder-color-disabled);"),(0,n.cE)("separator","color: var(--n-text-color-disabled);",[(0,n.cB)("icon",`
|
|
151
|
+
color: var(--n-icon-color-disabled);
|
|
152
|
+
`),(0,n.cB)("base-icon",`
|
|
153
|
+
color: var(--n-icon-color-disabled);
|
|
154
|
+
`)]),(0,n.cB)("input-word-count",`
|
|
155
|
+
color: var(--n-count-text-color-disabled);
|
|
156
|
+
`),(0,n.cE)("suffix, prefix","color: var(--n-text-color-disabled);",[(0,n.cB)("icon",`
|
|
157
|
+
color: var(--n-icon-color-disabled);
|
|
158
|
+
`),(0,n.cB)("internal-icon",`
|
|
159
|
+
color: var(--n-icon-color-disabled);
|
|
160
|
+
`)])]),(0,n.cNotM)("disabled",[(0,n.cE)("eye",`
|
|
161
|
+
color: var(--n-icon-color);
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
`,[(0,n.c)("&:hover",`
|
|
164
|
+
color: var(--n-icon-color-hover);
|
|
165
|
+
`),(0,n.c)("&:active",`
|
|
166
|
+
color: var(--n-icon-color-pressed);
|
|
167
|
+
`)]),(0,n.c)("&:hover",[(0,n.cE)("state-border","border: var(--n-border-hover);")]),(0,n.cM)("focus","background-color: var(--n-color-focus);",[(0,n.cE)("state-border",`
|
|
168
|
+
border: var(--n-border-focus);
|
|
169
|
+
box-shadow: var(--n-box-shadow-focus);
|
|
170
|
+
`)])]),(0,n.cE)("border, state-border",`
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
position: absolute;
|
|
173
|
+
left: 0;
|
|
174
|
+
right: 0;
|
|
175
|
+
top: 0;
|
|
176
|
+
bottom: 0;
|
|
177
|
+
pointer-events: none;
|
|
178
|
+
border-radius: inherit;
|
|
179
|
+
border: var(--n-border);
|
|
180
|
+
transition:
|
|
181
|
+
box-shadow .3s var(--n-bezier),
|
|
182
|
+
border-color .3s var(--n-bezier);
|
|
183
|
+
`),(0,n.cE)("state-border",`
|
|
184
|
+
border-color: #0000;
|
|
185
|
+
z-index: 1;
|
|
186
|
+
`),(0,n.cE)("prefix","margin-right: 4px;"),(0,n.cE)("suffix",`
|
|
187
|
+
margin-left: 4px;
|
|
188
|
+
`),(0,n.cE)("suffix, prefix",`
|
|
189
|
+
transition: color .3s var(--n-bezier);
|
|
190
|
+
flex-wrap: nowrap;
|
|
191
|
+
flex-shrink: 0;
|
|
192
|
+
line-height: var(--n-height);
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
display: inline-flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
color: var(--n-suffix-text-color);
|
|
198
|
+
`,[(0,n.cB)("base-loading",`
|
|
199
|
+
font-size: var(--n-icon-size);
|
|
200
|
+
margin: 0 2px;
|
|
201
|
+
color: var(--n-loading-color);
|
|
202
|
+
`),(0,n.cB)("base-clear",`
|
|
203
|
+
font-size: var(--n-icon-size);
|
|
204
|
+
`,[(0,n.cE)("placeholder",[(0,n.cB)("base-icon",`
|
|
205
|
+
transition: color .3s var(--n-bezier);
|
|
206
|
+
color: var(--n-icon-color);
|
|
207
|
+
font-size: var(--n-icon-size);
|
|
208
|
+
`)])]),(0,n.c)(">",[(0,n.cB)("icon",`
|
|
209
|
+
transition: color .3s var(--n-bezier);
|
|
210
|
+
color: var(--n-icon-color);
|
|
211
|
+
font-size: var(--n-icon-size);
|
|
212
|
+
`)]),(0,n.cB)("base-icon",`
|
|
213
|
+
font-size: var(--n-icon-size);
|
|
214
|
+
`)]),(0,n.cB)("input-word-count",`
|
|
215
|
+
pointer-events: none;
|
|
216
|
+
line-height: 1.5;
|
|
217
|
+
font-size: .85em;
|
|
218
|
+
color: var(--n-count-text-color);
|
|
219
|
+
transition: color .3s var(--n-bezier);
|
|
220
|
+
margin-left: 4px;
|
|
221
|
+
font-variant: tabular-nums;
|
|
222
|
+
`),["warning","error"].map(t=>(0,n.cM)(`${t}-status`,[(0,n.cNotM)("disabled",[(0,n.cB)("base-loading",`
|
|
223
|
+
color: var(--n-loading-color-${t})
|
|
224
|
+
`),(0,n.cE)("input-el, textarea-el",`
|
|
225
|
+
caret-color: var(--n-caret-color-${t});
|
|
226
|
+
`),(0,n.cE)("state-border",`
|
|
227
|
+
border: var(--n-border-${t});
|
|
228
|
+
`),(0,n.c)("&:hover",[(0,n.cE)("state-border",`
|
|
229
|
+
border: var(--n-border-hover-${t});
|
|
230
|
+
`)]),(0,n.c)("&:focus",`
|
|
231
|
+
background-color: var(--n-color-focus-${t});
|
|
232
|
+
`,[(0,n.cE)("state-border",`
|
|
233
|
+
box-shadow: var(--n-box-shadow-focus-${t});
|
|
234
|
+
border: var(--n-border-focus-${t});
|
|
235
|
+
`)]),(0,n.cM)("focus",`
|
|
236
|
+
background-color: var(--n-color-focus-${t});
|
|
237
|
+
`,[(0,n.cE)("state-border",`
|
|
238
|
+
box-shadow: var(--n-box-shadow-focus-${t});
|
|
239
|
+
border: var(--n-border-focus-${t});
|
|
240
|
+
`)])])]))]);ve.safariStyle=(0,n.cB)("input",[(0,n.cM)("disabled",[(0,n.cE)("input-el, textarea-el",`
|
|
241
|
+
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
242
|
+
`)])]);var ie={};Object.defineProperty(ie,"__esModule",{value:!0});ie.len=Uo;ie.isEmptyInputValue=Xo;ie.useCursor=Yo;const Ue=fe.require$$2;function Uo(t){let u=0;for(const b of t)u++;return u}function Xo(t){return t===""||t==null}function Yo(t){const u=(0,Ue.ref)(null);function b(){const{value:s}=t;if(!(s!=null&&s.focus)){h();return}const{selectionStart:w,selectionEnd:c,value:o}=s;if(w==null||c==null){h();return}u.value={start:w,end:c,beforeText:o.slice(0,w),afterText:o.slice(c)}}function v(){var s;const{value:w}=u,{value:c}=t;if(!w||!c)return;const{value:o}=c,{start:$,beforeText:x,afterText:D}=w;let R=o.length;if(o.endsWith(D))R=o.length-D.length;else if(o.startsWith(x))R=x.length;else{const k=x[$-1],d=o.indexOf(k,$-1);d!==-1&&(R=d+1)}(s=c.setSelectionRange)===null||s===void 0||s.call(c,R,R)}function h(){u.value=null}return(0,Ue.watch)(t,h),{recordCursor:b,restoreCursor:v}}var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});const Ce=fe.require$$2,Jo=S._utils,Qo=he,Zo=ie;Ge.default=(0,Ce.defineComponent)({name:"InputWordCount",setup(t,{slots:u}){const{mergedValueRef:b,maxlengthRef:v,mergedClsPrefixRef:h,countGraphemesRef:s}=(0,Ce.inject)(Qo.inputInjectionKey),w=(0,Ce.computed)(()=>{const{value:c}=b;return c===null||Array.isArray(c)?0:(s.value||Zo.len)(c)});return()=>{const{value:c}=v,{value:o}=b;return(0,Ce.h)("span",{class:`${h.value}-input-word-count`},(0,Jo.resolveSlotWithTypedProps)(u.default,{value:o===null||Array.isArray(o)?"":o},()=>[c===void 0?w.value:`${w.value} / ${c}`]))}}});(function(t){var u=M.commonjsGlobal&&M.commonjsGlobal.__createBinding||(Object.create?function(i,p,y,g){g===void 0&&(g=y);var E=Object.getOwnPropertyDescriptor(p,y);(!E||("get"in E?!p.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return p[y]}}),Object.defineProperty(i,g,E)}:function(i,p,y,g){g===void 0&&(g=y),i[g]=p[y]}),b=M.commonjsGlobal&&M.commonjsGlobal.__setModuleDefault||(Object.create?function(i,p){Object.defineProperty(i,"default",{enumerable:!0,value:p})}:function(i,p){i.default=p}),v=M.commonjsGlobal&&M.commonjsGlobal.__importStar||function(){var i=function(p){return i=Object.getOwnPropertyNames||function(y){var g=[];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(g[g.length]=E);return g},i(p)};return function(p){if(p&&p.__esModule)return p;var y={};if(p!=null)for(var g=i(p),E=0;E<g.length;E++)g[E]!=="default"&&u(y,p,g[E]);return b(y,p),y}}(),h=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputProps=void 0;const s=S.require$$0$1,w=S.require$$0,c=S.require$$1,o=fe.require$$2,$=S.require$$4,x=we._internal,D=we.icons,R=S._mixins,k=S.useRtl,d=S._utils,A=Te,L=Ee,Y=he,K=v(ve),O=ie,q=h(Ge);t.inputProps=Object.assign(Object.assign({},R.useTheme.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),t.default=(0,o.defineComponent)({name:"Input",props:t.inputProps,slots:Object,setup(i){const{mergedClsPrefixRef:p,mergedBorderedRef:y,inlineThemeDisabled:g,mergedRtlRef:E}=(0,R.useConfig)(i),H=(0,R.useTheme)("Input","-input",K.default,L.inputLight,i,p);A.isSafari&&(0,R.useStyle)("-input-safari",K.safariStyle,p);const j=(0,o.ref)(null),l=(0,o.ref)(null),N=(0,o.ref)(null),U=(0,o.ref)(null),B=(0,o.ref)(null),T=(0,o.ref)(null),W=(0,o.ref)(null),F=(0,O.useCursor)(W),f=(0,o.ref)(null),{localeRef:P}=(0,R.useLocale)("Input"),I=(0,o.ref)(i.defaultValue),G=(0,o.toRef)(i,"value"),V=(0,c.useMergedState)(G,I),le=(0,R.useFormItem)(i),{mergedSizeRef:Se,mergedDisabledRef:re,mergedStatusRef:Ze}=le,oe=(0,o.ref)(!1),ae=(0,o.ref)(!1),X=(0,o.ref)(!1),se=(0,o.ref)(!1);let Be=null;const ze=(0,o.computed)(()=>{const{placeholder:e,pair:r}=i;return r?Array.isArray(e)?e:e===void 0?["",""]:[e,e]:e===void 0?[P.value.placeholder]:[e]}),er=(0,o.computed)(()=>{const{value:e}=X,{value:r}=V,{value:a}=ze;return!e&&((0,O.isEmptyInputValue)(r)||Array.isArray(r)&&(0,O.isEmptyInputValue)(r[0]))&&a[0]}),rr=(0,o.computed)(()=>{const{value:e}=X,{value:r}=V,{value:a}=ze;return!e&&a[1]&&((0,O.isEmptyInputValue)(r)||Array.isArray(r)&&(0,O.isEmptyInputValue)(r[1]))}),Me=(0,c.useMemo)(()=>i.internalForceFocus||oe.value),or=(0,c.useMemo)(()=>{if(re.value||i.readonly||!i.clearable||!Me.value&&!ae.value)return!1;const{value:e}=V,{value:r}=Me;return i.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(ae.value||r):!!e&&(ae.value||r)}),Re=(0,o.computed)(()=>{const{showPasswordOn:e}=i;if(e)return e;if(i.showPasswordToggle)return"click"}),ue=(0,o.ref)(!1),tr=(0,o.computed)(()=>{const{textDecoration:e}=i;return e?Array.isArray(e)?e.map(r=>({textDecoration:r})):[{textDecoration:e}]:["",""]}),Le=(0,o.ref)(void 0),nr=()=>{var e,r;if(i.type==="textarea"){const{autosize:a}=i;if(a&&(Le.value=(r=(e=f.value)===null||e===void 0?void 0:e.$el)===null||r===void 0?void 0:r.offsetWidth),!l.value||typeof a=="boolean")return;const{paddingTop:_,paddingBottom:z,lineHeight:m}=window.getComputedStyle(l.value),J=Number(_.slice(0,-2)),Q=Number(z.slice(0,-2)),Z=Number(m.slice(0,-2)),{value:ce}=N;if(!ce)return;if(a.minRows){const de=Math.max(a.minRows,1),je=`${J+Q+Z*de}px`;ce.style.minHeight=je}if(a.maxRows){const de=`${J+Q+Z*a.maxRows}px`;ce.style.maxHeight=de}}},ir=(0,o.computed)(()=>{const{maxlength:e}=i;return e===void 0?void 0:Number(e)});(0,o.onMounted)(()=>{const{value:e}=V;Array.isArray(e)||Fe(e)});const lr=(0,o.getCurrentInstance)().proxy;function be(e,r){const{onUpdateValue:a,"onUpdate:value":_,onInput:z}=i,{nTriggerFormInput:m}=le;a&&(0,d.call)(a,e,r),_&&(0,d.call)(_,e,r),z&&(0,d.call)(z,e,r),I.value=e,m()}function ge(e,r){const{onChange:a}=i,{nTriggerFormChange:_}=le;a&&(0,d.call)(a,e,r),I.value=e,_()}function ar(e){const{onBlur:r}=i,{nTriggerFormBlur:a}=le;r&&(0,d.call)(r,e),a()}function sr(e){const{onFocus:r}=i,{nTriggerFormFocus:a}=le;r&&(0,d.call)(r,e),a()}function ur(e){const{onClear:r}=i;r&&(0,d.call)(r,e)}function cr(e){const{onInputBlur:r}=i;r&&(0,d.call)(r,e)}function dr(e){const{onInputFocus:r}=i;r&&(0,d.call)(r,e)}function fr(){const{onDeactivate:e}=i;e&&(0,d.call)(e)}function pr(){const{onActivate:e}=i;e&&(0,d.call)(e)}function hr(e){const{onClick:r}=i;r&&(0,d.call)(r,e)}function vr(e){const{onWrapperFocus:r}=i;r&&(0,d.call)(r,e)}function br(e){const{onWrapperBlur:r}=i;r&&(0,d.call)(r,e)}function gr(){X.value=!0}function mr(e){X.value=!1,e.target===T.value?me(e,1):me(e,0)}function me(e,r=0,a="input"){const _=e.target.value;if(Fe(_),e instanceof InputEvent&&!e.isComposing&&(X.value=!1),i.type==="textarea"){const{value:m}=f;m&&m.syncUnifiedContainer()}if(Be=_,X.value)return;F.recordCursor();const z=_r(_);if(z)if(!i.pair)a==="input"?be(_,{source:r}):ge(_,{source:r});else{let{value:m}=V;Array.isArray(m)?m=[m[0],m[1]]:m=["",""],m[r]=_,a==="input"?be(m,{source:r}):ge(m,{source:r})}lr.$forceUpdate(),z||(0,o.nextTick)(F.restoreCursor)}function _r(e){const{countGraphemes:r,maxlength:a,minlength:_}=i;if(r){let m;if(a!==void 0&&(m===void 0&&(m=r(e)),m>Number(a))||_!==void 0&&(m===void 0&&(m=r(e)),m<Number(a)))return!1}const{allowInput:z}=i;return typeof z=="function"?z(e):!0}function xr(e){cr(e),e.relatedTarget===j.value&&fr(),e.relatedTarget!==null&&(e.relatedTarget===B.value||e.relatedTarget===T.value||e.relatedTarget===l.value)||(se.value=!1),_e(e,"blur"),W.value=null}function yr(e,r){dr(e),oe.value=!0,se.value=!0,pr(),_e(e,"focus"),r===0?W.value=B.value:r===1?W.value=T.value:r===2&&(W.value=l.value)}function Cr(e){i.passivelyActivated&&(br(e),_e(e,"blur"))}function wr(e){i.passivelyActivated&&(oe.value=!0,vr(e),_e(e,"focus"))}function _e(e,r){e.relatedTarget!==null&&(e.relatedTarget===B.value||e.relatedTarget===T.value||e.relatedTarget===l.value||e.relatedTarget===j.value)||(r==="focus"?(sr(e),oe.value=!0):r==="blur"&&(ar(e),oe.value=!1))}function Er(e,r){me(e,r,"change")}function Pr(e){hr(e)}function Sr(e){ur(e),He()}function He(){i.pair?(be(["",""],{source:"clear"}),ge(["",""],{source:"clear"})):(be("",{source:"clear"}),ge("",{source:"clear"}))}function Br(e){const{onMousedown:r}=i;r&&r(e);const{tagName:a}=e.target;if(a!=="INPUT"&&a!=="TEXTAREA"){if(i.resizable){const{value:_}=j;if(_){const{left:z,top:m,width:J,height:Q}=_.getBoundingClientRect(),Z=14;if(z+J-Z<e.clientX&&e.clientX<z+J&&m+Q-Z<e.clientY&&e.clientY<m+Q)return}}e.preventDefault(),oe.value||Ne()}}function zr(){var e;ae.value=!0,i.type==="textarea"&&((e=f.value)===null||e===void 0||e.handleMouseEnterWrapper())}function Mr(){var e;ae.value=!1,i.type==="textarea"&&((e=f.value)===null||e===void 0||e.handleMouseLeaveWrapper())}function Rr(){re.value||Re.value==="click"&&(ue.value=!ue.value)}function $r(e){if(re.value)return;e.preventDefault();const r=_=>{_.preventDefault(),(0,s.off)("mouseup",document,r)};if((0,s.on)("mouseup",document,r),Re.value!=="mousedown")return;ue.value=!0;const a=()=>{ue.value=!1,(0,s.off)("mouseup",document,a)};(0,s.on)("mouseup",document,a)}function Fr(e){i.onKeyup&&(0,d.call)(i.onKeyup,e)}function jr(e){switch(i.onKeydown&&(0,d.call)(i.onKeydown,e),e.key){case"Escape":$e();break;case"Enter":Ir(e);break}}function Ir(e){var r,a;if(i.passivelyActivated){const{value:_}=se;if(_){i.internalDeactivateOnEnter&&$e();return}e.preventDefault(),i.type==="textarea"?(r=l.value)===null||r===void 0||r.focus():(a=B.value)===null||a===void 0||a.focus()}}function $e(){i.passivelyActivated&&(se.value=!1,(0,o.nextTick)(()=>{var e;(e=j.value)===null||e===void 0||e.focus()}))}function Ne(){var e,r,a;re.value||(i.passivelyActivated?(e=j.value)===null||e===void 0||e.focus():((r=l.value)===null||r===void 0||r.focus(),(a=B.value)===null||a===void 0||a.focus()))}function Dr(){var e;!((e=j.value)===null||e===void 0)&&e.contains(document.activeElement)&&document.activeElement.blur()}function Tr(){var e,r;(e=l.value)===null||e===void 0||e.select(),(r=B.value)===null||r===void 0||r.select()}function Ar(){re.value||(l.value?l.value.focus():B.value&&B.value.focus())}function Or(){const{value:e}=j;e!=null&&e.contains(document.activeElement)&&e!==document.activeElement&&$e()}function Wr(e){if(i.type==="textarea"){const{value:r}=l;r==null||r.scrollTo(e)}else{const{value:r}=B;r==null||r.scrollTo(e)}}function Fe(e){const{type:r,pair:a,autosize:_}=i;if(!a&&_)if(r==="textarea"){const{value:z}=N;z&&(z.textContent=`${e??""}\r
|
|
243
|
+
`)}else{const{value:z}=U;z&&(e?z.textContent=e:z.innerHTML=" ")}}function Gr(){nr()}const Ke=(0,o.ref)({top:"0"});function Vr(e){var r;const{scrollTop:a}=e.target;Ke.value.top=`${-a}px`,(r=f.value)===null||r===void 0||r.syncUnifiedContainer()}let xe=null;(0,o.watchEffect)(()=>{const{autosize:e,type:r}=i;e&&r==="textarea"?xe=(0,o.watch)(V,a=>{!Array.isArray(a)&&a!==Be&&Fe(a)}):xe==null||xe()});let ye=null;(0,o.watchEffect)(()=>{i.type==="textarea"?ye=(0,o.watch)(V,e=>{var r;!Array.isArray(e)&&e!==Be&&((r=f.value)===null||r===void 0||r.syncUnifiedContainer())}):ye==null||ye()}),(0,o.provide)(Y.inputInjectionKey,{mergedValueRef:V,maxlengthRef:ir,mergedClsPrefixRef:p,countGraphemesRef:(0,o.toRef)(i,"countGraphemes")});const kr={wrapperElRef:j,inputElRef:B,textareaElRef:l,isCompositing:X,clear:He,focus:Ne,blur:Dr,select:Tr,deactivate:Or,activate:Ar,scrollTo:Wr},Lr=(0,k.useRtl)("Input",E,p),qe=(0,o.computed)(()=>{const{value:e}=Se,{common:{cubicBezierEaseInOut:r},self:{color:a,borderRadius:_,textColor:z,caretColor:m,caretColorError:J,caretColorWarning:Q,textDecorationColor:Z,border:ce,borderDisabled:de,borderHover:je,borderFocus:Hr,placeholderColor:Nr,placeholderColorDisabled:Kr,lineHeightTextarea:qr,colorDisabled:Ur,colorFocus:Xr,textColorDisabled:Yr,boxShadowFocus:Jr,iconSize:Qr,colorFocusWarning:Zr,boxShadowFocusWarning:eo,borderWarning:ro,borderFocusWarning:oo,borderHoverWarning:to,colorFocusError:no,boxShadowFocusError:io,borderError:lo,borderFocusError:ao,borderHoverError:so,clearSize:uo,clearColor:co,clearColorHover:fo,clearColorPressed:po,iconColor:ho,iconColorDisabled:vo,suffixTextColor:bo,countTextColor:go,countTextColorDisabled:mo,iconColorHover:_o,iconColorPressed:xo,loadingColor:yo,loadingColorError:Co,loadingColorWarning:wo,fontWeight:Eo,[(0,d.createKey)("padding",e)]:Po,[(0,d.createKey)("fontSize",e)]:So,[(0,d.createKey)("height",e)]:Bo}}=H.value,{left:zo,right:Mo}=(0,w.getPadding)(Po);return{"--n-bezier":r,"--n-count-text-color":go,"--n-count-text-color-disabled":mo,"--n-color":a,"--n-font-size":So,"--n-font-weight":Eo,"--n-border-radius":_,"--n-height":Bo,"--n-padding-left":zo,"--n-padding-right":Mo,"--n-text-color":z,"--n-caret-color":m,"--n-text-decoration-color":Z,"--n-border":ce,"--n-border-disabled":de,"--n-border-hover":je,"--n-border-focus":Hr,"--n-placeholder-color":Nr,"--n-placeholder-color-disabled":Kr,"--n-icon-size":Qr,"--n-line-height-textarea":qr,"--n-color-disabled":Ur,"--n-color-focus":Xr,"--n-text-color-disabled":Yr,"--n-box-shadow-focus":Jr,"--n-loading-color":yo,"--n-caret-color-warning":Q,"--n-color-focus-warning":Zr,"--n-box-shadow-focus-warning":eo,"--n-border-warning":ro,"--n-border-focus-warning":oo,"--n-border-hover-warning":to,"--n-loading-color-warning":wo,"--n-caret-color-error":J,"--n-color-focus-error":no,"--n-box-shadow-focus-error":io,"--n-border-error":lo,"--n-border-focus-error":ao,"--n-border-hover-error":so,"--n-loading-color-error":Co,"--n-clear-color":co,"--n-clear-size":uo,"--n-clear-color-hover":fo,"--n-clear-color-pressed":po,"--n-icon-color":ho,"--n-icon-color-hover":_o,"--n-icon-color-pressed":xo,"--n-icon-color-disabled":vo,"--n-suffix-text-color":bo}}),te=g?(0,R.useThemeClass)("input",(0,o.computed)(()=>{const{value:e}=Se;return e[0]}),qe,i):void 0;return Object.assign(Object.assign({},kr),{wrapperElRef:j,inputElRef:B,inputMirrorElRef:U,inputEl2Ref:T,textareaElRef:l,textareaMirrorElRef:N,textareaScrollbarInstRef:f,rtlEnabled:Lr,uncontrolledValue:I,mergedValue:V,passwordVisible:ue,mergedPlaceholder:ze,showPlaceholder1:er,showPlaceholder2:rr,mergedFocus:Me,isComposing:X,activated:se,showClearButton:or,mergedSize:Se,mergedDisabled:re,textDecorationStyle:tr,mergedClsPrefix:p,mergedBordered:y,mergedShowPasswordOn:Re,placeholderStyle:Ke,mergedStatus:Ze,textAreaScrollContainerWidth:Le,handleTextAreaScroll:Vr,handleCompositionStart:gr,handleCompositionEnd:mr,handleInput:me,handleInputBlur:xr,handleInputFocus:yr,handleWrapperBlur:Cr,handleWrapperFocus:wr,handleMouseEnter:zr,handleMouseLeave:Mr,handleMouseDown:Br,handleChange:Er,handleClick:Pr,handleClear:Sr,handlePasswordToggleClick:Rr,handlePasswordToggleMousedown:$r,handleWrapperKeydown:jr,handleWrapperKeyup:Fr,handleTextAreaMirrorResize:Gr,getTextareaScrollContainer:()=>l.value,mergedTheme:H,cssVars:g?void 0:qe,themeClass:te==null?void 0:te.themeClass,onRender:te==null?void 0:te.onRender})},render(){var i,p,y,g,E,H,j;const{mergedClsPrefix:l,mergedStatus:N,themeClass:U,type:B,countGraphemes:T,onRender:W}=this,F=this.$slots;return W==null||W(),(0,o.h)("div",{ref:"wrapperElRef",class:[`${l}-input`,U,N&&`${l}-input--${N}-status`,{[`${l}-input--rtl`]:this.rtlEnabled,[`${l}-input--disabled`]:this.mergedDisabled,[`${l}-input--textarea`]:B==="textarea",[`${l}-input--resizable`]:this.resizable&&!this.autosize,[`${l}-input--autosize`]:this.autosize,[`${l}-input--round`]:this.round&&B!=="textarea",[`${l}-input--pair`]:this.pair,[`${l}-input--focus`]:this.mergedFocus,[`${l}-input--stateful`]:this.stateful}],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},(0,o.h)("div",{class:`${l}-input-wrapper`},(0,d.resolveWrappedSlot)(F.prefix,f=>f&&(0,o.h)("div",{class:`${l}-input__prefix`},f)),B==="textarea"?(0,o.h)(x.NScrollbar,{ref:"textareaScrollbarInstRef",class:`${l}-input__textarea`,container:this.getTextareaScrollContainer,theme:(p=(i=this.theme)===null||i===void 0?void 0:i.peers)===null||p===void 0?void 0:p.Scrollbar,themeOverrides:(g=(y=this.themeOverrides)===null||y===void 0?void 0:y.peers)===null||g===void 0?void 0:g.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var f,P;const{textAreaScrollContainerWidth:I}=this,G={width:this.autosize&&I&&`${I}px`};return(0,o.h)(o.Fragment,null,(0,o.h)("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-input__textarea-el`,(f=this.inputProps)===null||f===void 0?void 0:f.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:T?void 0:this.maxlength,minlength:T?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(P=this.inputProps)===null||P===void 0?void 0:P.style,G],onBlur:this.handleInputBlur,onFocus:V=>{this.handleInputFocus(V,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?(0,o.h)("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,G],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?(0,o.h)($.VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>(0,o.h)("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):(0,o.h)("div",{class:`${l}-input__input`},(0,o.h)("input",Object.assign({type:B==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":B},this.inputProps,{ref:"inputElRef",class:[`${l}-input__input-el`,(E=this.inputProps)===null||E===void 0?void 0:E.class],style:[this.textDecorationStyle[0],(H=this.inputProps)===null||H===void 0?void 0:H.style],tabindex:this.passivelyActivated&&!this.activated?-1:(j=this.inputProps)===null||j===void 0?void 0:j.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:T?void 0:this.maxlength,minlength:T?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:f=>{this.handleInputFocus(f,0)},onInput:f=>{this.handleInput(f,0)},onChange:f=>{this.handleChange(f,0)}})),this.showPlaceholder1?(0,o.h)("div",{class:`${l}-input__placeholder`},(0,o.h)("span",null,this.mergedPlaceholder[0])):null,this.autosize?(0,o.h)("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&(0,d.resolveWrappedSlot)(F.suffix,f=>f||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?(0,o.h)("div",{class:`${l}-input__suffix`},[(0,d.resolveWrappedSlot)(F["clear-icon-placeholder"],P=>(this.clearable||P)&&(0,o.h)(x.NBaseClear,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>P,icon:()=>{var I,G;return(G=(I=this.$slots)["clear-icon"])===null||G===void 0?void 0:G.call(I)}})),this.internalLoadingBeforeSuffix?null:f,this.loading!==void 0?(0,o.h)(x.NBaseSuffix,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?f:null,this.showCount&&this.type!=="textarea"?(0,o.h)(q.default,null,{default:P=>{var I;const{renderCount:G}=this;return G?G(P):(I=F.count)===null||I===void 0?void 0:I.call(F,P)}}):null,this.mergedShowPasswordOn&&this.type==="password"?(0,o.h)("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?(0,d.resolveSlot)(F["password-visible-icon"],()=>[(0,o.h)(x.NBaseIcon,{clsPrefix:l},{default:()=>(0,o.h)(D.EyeIcon,null)})]):(0,d.resolveSlot)(F["password-invisible-icon"],()=>[(0,o.h)(x.NBaseIcon,{clsPrefix:l},{default:()=>(0,o.h)(D.EyeOffIcon,null)})])):null]):null)),this.pair?(0,o.h)("span",{class:`${l}-input__separator`},(0,d.resolveSlot)(F.separator,()=>[this.separator])):null,this.pair?(0,o.h)("div",{class:`${l}-input-wrapper`},(0,o.h)("div",{class:`${l}-input__input`},(0,o.h)("input",{ref:"inputEl2Ref",type:this.type,class:`${l}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:T?void 0:this.maxlength,minlength:T?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:f=>{this.handleInputFocus(f,1)},onInput:f=>{this.handleInput(f,1)},onChange:f=>{this.handleChange(f,1)}}),this.showPlaceholder2?(0,o.h)("div",{class:`${l}-input__placeholder`},(0,o.h)("span",null,this.mergedPlaceholder[1])):null),(0,d.resolveWrappedSlot)(F.suffix,f=>(this.clearable||f)&&(0,o.h)("div",{class:`${l}-input__suffix`},[this.clearable&&(0,o.h)(x.NBaseClear,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var P;return(P=F["clear-icon"])===null||P===void 0?void 0:P.call(F)},placeholder:()=>{var P;return(P=F["clear-icon-placeholder"])===null||P===void 0?void 0:P.call(F)}}),f]))):null,this.mergedBordered?(0,o.h)("div",{class:`${l}-input__border`}):null,this.mergedBordered?(0,o.h)("div",{class:`${l}-input__state-border`}):null,this.showCount&&B==="textarea"?(0,o.h)(q.default,null,{default:f=>{var P;const{renderCount:I}=this;return I?I(f):(P=F.count)===null||P===void 0?void 0:P.call(F,f)}}):null)}})})(Ye);var Je={},Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});const C=S.cssr;Ve.default=(0,C.cB)("input-group",`
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
width: 100%;
|
|
246
|
+
flex-wrap: nowrap;
|
|
247
|
+
vertical-align: bottom;
|
|
248
|
+
`,[(0,C.c)(">",[(0,C.cB)("input",[(0,C.c)("&:not(:last-child)",`
|
|
249
|
+
border-top-right-radius: 0!important;
|
|
250
|
+
border-bottom-right-radius: 0!important;
|
|
251
|
+
`),(0,C.c)("&:not(:first-child)",`
|
|
252
|
+
border-top-left-radius: 0!important;
|
|
253
|
+
border-bottom-left-radius: 0!important;
|
|
254
|
+
margin-left: -1px!important;
|
|
255
|
+
`)]),(0,C.cB)("button",[(0,C.c)("&:not(:last-child)",`
|
|
256
|
+
border-top-right-radius: 0!important;
|
|
257
|
+
border-bottom-right-radius: 0!important;
|
|
258
|
+
`,[(0,C.cE)("state-border, border",`
|
|
259
|
+
border-top-right-radius: 0!important;
|
|
260
|
+
border-bottom-right-radius: 0!important;
|
|
261
|
+
`)]),(0,C.c)("&:not(:first-child)",`
|
|
262
|
+
border-top-left-radius: 0!important;
|
|
263
|
+
border-bottom-left-radius: 0!important;
|
|
264
|
+
`,[(0,C.cE)("state-border, border",`
|
|
265
|
+
border-top-left-radius: 0!important;
|
|
266
|
+
border-bottom-left-radius: 0!important;
|
|
267
|
+
`)])]),(0,C.c)("*",[(0,C.c)("&:not(:last-child)",`
|
|
268
|
+
border-top-right-radius: 0!important;
|
|
269
|
+
border-bottom-right-radius: 0!important;
|
|
270
|
+
`,[(0,C.c)(">",[(0,C.cB)("input",`
|
|
271
|
+
border-top-right-radius: 0!important;
|
|
272
|
+
border-bottom-right-radius: 0!important;
|
|
273
|
+
`),(0,C.cB)("base-selection",[(0,C.cB)("base-selection-label",`
|
|
274
|
+
border-top-right-radius: 0!important;
|
|
275
|
+
border-bottom-right-radius: 0!important;
|
|
276
|
+
`),(0,C.cB)("base-selection-tags",`
|
|
277
|
+
border-top-right-radius: 0!important;
|
|
278
|
+
border-bottom-right-radius: 0!important;
|
|
279
|
+
`),(0,C.cE)("box-shadow, border, state-border",`
|
|
280
|
+
border-top-right-radius: 0!important;
|
|
281
|
+
border-bottom-right-radius: 0!important;
|
|
282
|
+
`)])])]),(0,C.c)("&:not(:first-child)",`
|
|
283
|
+
margin-left: -1px!important;
|
|
284
|
+
border-top-left-radius: 0!important;
|
|
285
|
+
border-bottom-left-radius: 0!important;
|
|
286
|
+
`,[(0,C.c)(">",[(0,C.cB)("input",`
|
|
287
|
+
border-top-left-radius: 0!important;
|
|
288
|
+
border-bottom-left-radius: 0!important;
|
|
289
|
+
`),(0,C.cB)("base-selection",[(0,C.cB)("base-selection-label",`
|
|
290
|
+
border-top-left-radius: 0!important;
|
|
291
|
+
border-bottom-left-radius: 0!important;
|
|
292
|
+
`),(0,C.cB)("base-selection-tags",`
|
|
293
|
+
border-top-left-radius: 0!important;
|
|
294
|
+
border-bottom-left-radius: 0!important;
|
|
295
|
+
`),(0,C.cE)("box-shadow, border, state-border",`
|
|
296
|
+
border-top-left-radius: 0!important;
|
|
297
|
+
border-bottom-left-radius: 0!important;
|
|
298
|
+
`)])])])])])]);(function(t){var u=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupProps=void 0;const b=fe.require$$2,v=S._mixins,h=u(Ve);t.inputGroupProps={},t.default=(0,b.defineComponent)({name:"InputGroup",props:t.inputGroupProps,setup(s){const{mergedClsPrefixRef:w}=(0,v.useConfig)(s);return(0,v.useStyle)("-input-group",h.default,w),{mergedClsPrefix:w}},render(){const{mergedClsPrefix:s}=this;return(0,b.h)("div",{class:`${s}-input-group`},this.$slots)}})})(Je);var Qe={},ke={};Object.defineProperty(ke,"__esModule",{value:!0});const Xe=S.cssr;ke.default=(0,Xe.cB)("input-group-label",`
|
|
299
|
+
position: relative;
|
|
300
|
+
user-select: none;
|
|
301
|
+
-webkit-user-select: none;
|
|
302
|
+
box-sizing: border-box;
|
|
303
|
+
padding: 0 12px;
|
|
304
|
+
display: inline-block;
|
|
305
|
+
border-radius: var(--n-border-radius);
|
|
306
|
+
background-color: var(--n-group-label-color);
|
|
307
|
+
color: var(--n-group-label-text-color);
|
|
308
|
+
font-size: var(--n-font-size);
|
|
309
|
+
line-height: var(--n-height);
|
|
310
|
+
height: var(--n-height);
|
|
311
|
+
flex-shrink: 0;
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
transition:
|
|
314
|
+
color .3s var(--n-bezier),
|
|
315
|
+
background-color .3s var(--n-bezier),
|
|
316
|
+
box-shadow .3s var(--n-bezier);
|
|
317
|
+
`,[(0,Xe.cE)("border",`
|
|
318
|
+
position: absolute;
|
|
319
|
+
left: 0;
|
|
320
|
+
right: 0;
|
|
321
|
+
top: 0;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
border-radius: inherit;
|
|
324
|
+
border: var(--n-group-label-border);
|
|
325
|
+
transition: border-color .3s var(--n-bezier);
|
|
326
|
+
`)]);(function(t){var u=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.inputGroupLabelProps=void 0;const b=fe.require$$2,v=S._mixins,h=S._utils,s=Ee,w=u(ke);t.inputGroupLabelProps=Object.assign(Object.assign({},v.useTheme.props),{size:String,bordered:{type:Boolean,default:void 0}}),t.default=(0,b.defineComponent)({name:"InputGroupLabel",props:t.inputGroupLabelProps,setup(c){const{mergedBorderedRef:o,mergedClsPrefixRef:$,inlineThemeDisabled:x}=(0,v.useConfig)(c),D=(0,v.useFormItem)(c),{mergedSizeRef:R}=D,k=(0,v.useTheme)("Input","-input-group-label",w.default,s.inputLight,c,$),d=(0,b.computed)(()=>{const{value:L}=R,{common:{cubicBezierEaseInOut:Y},self:{groupLabelColor:K,borderRadius:O,groupLabelTextColor:q,lineHeight:i,groupLabelBorder:p,[(0,h.createKey)("fontSize",L)]:y,[(0,h.createKey)("height",L)]:g}}=k.value;return{"--n-bezier":Y,"--n-group-label-color":K,"--n-group-label-border":p,"--n-border-radius":O,"--n-group-label-text-color":q,"--n-font-size":y,"--n-line-height":i,"--n-height":g}}),A=x?(0,v.useThemeClass)("input-group-label",(0,b.computed)(()=>{const{value:L}=R;return L[0]}),d,c):void 0;return{mergedClsPrefix:$,mergedBordered:o,cssVars:x?void 0:d,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender}},render(){var c,o,$;const{mergedClsPrefix:x}=this;return(c=this.onRender)===null||c===void 0||c.call(this),(0,b.h)("div",{class:[`${x}-input-group-label`,this.themeClass],style:this.cssVars},($=(o=this.$slots).default)===null||$===void 0?void 0:$.call(o),this.mergedBordered?(0,b.h)("div",{class:`${x}-input-group-label__border`}):null)}})})(Qe);(function(t){var u=M.commonjsGlobal&&M.commonjsGlobal.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.NInputGroupLabel=t.inputGroupLabelProps=t.NInputGroup=t.inputGroupProps=t.NInput=t.inputProps=void 0;var b=Ye;Object.defineProperty(t,"inputProps",{enumerable:!0,get:function(){return b.inputProps}}),Object.defineProperty(t,"NInput",{enumerable:!0,get:function(){return u(b).default}});var v=Je;Object.defineProperty(t,"inputGroupProps",{enumerable:!0,get:function(){return v.inputGroupProps}}),Object.defineProperty(t,"NInputGroup",{enumerable:!0,get:function(){return u(v).default}});var h=Qe;Object.defineProperty(t,"inputGroupLabelProps",{enumerable:!0,get:function(){return h.inputGroupLabelProps}}),Object.defineProperty(t,"NInputGroupLabel",{enumerable:!0,get:function(){return u(h).default}})})(De);const et=Ro({__proto__:null},[De]);exports.browser=Te;exports.index=et;exports.input=De;exports.rtl=pe;exports.styles=Ee;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as L, computed as C, inject as
|
|
2
|
-
import { p as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as z } from "./icon.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as L, computed as C, inject as j, createElementBlock as i, openBlock as n, createElementVNode as p, Fragment as g, renderList as k, createCommentVNode as M, unref as c, toDisplayString as q, createVNode as y, ref as T, watchEffect as D, createBlock as F, withCtx as N, createTextVNode as O } from "vue";
|
|
2
|
+
import { p as I, a as B } from "./pluginManager-B0y107-1.js";
|
|
3
|
+
import { E as U, g as A } from "./index-DAYEBASh.js";
|
|
4
|
+
import { _ as z } from "./icon.vue_vue_type_script_setup_true_lang-DW206h_7.js";
|
|
5
|
+
import { u as E } from "./index-B1s67XDZ.js";
|
|
6
|
+
const $ = [
|
|
7
7
|
{ label: "string", value: "string" },
|
|
8
8
|
{ label: "number", value: "number" },
|
|
9
9
|
{ label: "boolean", value: "boolean" },
|
|
@@ -19,7 +19,7 @@ const R = [
|
|
|
19
19
|
{ label: "hex", value: "hex" },
|
|
20
20
|
{ label: "email", value: "email" },
|
|
21
21
|
{ label: "any", value: "any" }
|
|
22
|
-
],
|
|
22
|
+
], R = [
|
|
23
23
|
{ label: "change", value: "change" },
|
|
24
24
|
{ label: "blur", value: "blur" }
|
|
25
25
|
], x = ["string", "number", "url", "array", "email"], G = { class: "rule-item-main bg-white m-t-2 p-2 rounded border border-solid border-gray-200 hover:border-primary transition-all relative" }, H = {
|
|
@@ -32,19 +32,19 @@ const R = [
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["change", "delete", "update:rule"],
|
|
34
34
|
setup(f, { emit: _ }) {
|
|
35
|
-
const { t: e } =
|
|
35
|
+
const { t: e } = E(), m = _, v = f, o = C({
|
|
36
36
|
get() {
|
|
37
37
|
return v.rule;
|
|
38
38
|
},
|
|
39
39
|
set(l) {
|
|
40
40
|
m("update:rule", l);
|
|
41
41
|
}
|
|
42
|
-
}), s =
|
|
42
|
+
}), s = j("pageManager", {}), r = C(() => Object.entries(s.funcs.value).filter(([l, h]) => typeof h == "function").map(([l]) => ({ label: l, value: l }))), V = [
|
|
43
43
|
{
|
|
44
44
|
type: "select",
|
|
45
45
|
label: e("validationTrigger"),
|
|
46
46
|
model: "trigger",
|
|
47
|
-
componentProps: { options:
|
|
47
|
+
componentProps: { options: R, placeholder: e("validationTrigger"), multiple: !0, mode: "multiple" }
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
type: "switch",
|
|
@@ -67,7 +67,7 @@ const R = [
|
|
|
67
67
|
show() {
|
|
68
68
|
return !o.value.isValidator;
|
|
69
69
|
},
|
|
70
|
-
componentProps: { options:
|
|
70
|
+
componentProps: { options: $, placeholder: e("type") }
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
type: "input",
|
|
@@ -161,7 +161,7 @@ const R = [
|
|
|
161
161
|
},
|
|
162
162
|
emits: ["update:modelValue"],
|
|
163
163
|
setup(f, { emit: _ }) {
|
|
164
|
-
const { t: e } =
|
|
164
|
+
const { t: e } = E(), m = I.getComponent("button"), v = f, s = A(v, "modelValue", _), r = T({
|
|
165
165
|
required: !1,
|
|
166
166
|
message: e("required"),
|
|
167
167
|
type: v.ruleType,
|
|
@@ -180,7 +180,7 @@ const R = [
|
|
|
180
180
|
return !!r.value.required;
|
|
181
181
|
},
|
|
182
182
|
componentProps: {
|
|
183
|
-
options:
|
|
183
|
+
options: R,
|
|
184
184
|
placeholder: e("validationTrigger"),
|
|
185
185
|
multiple: !0,
|
|
186
186
|
mode: "multiple"
|
|
@@ -193,7 +193,7 @@ const R = [
|
|
|
193
193
|
show() {
|
|
194
194
|
return !!r.value.required;
|
|
195
195
|
},
|
|
196
|
-
componentProps: { options:
|
|
196
|
+
componentProps: { options: $, placeholder: e("type") }
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
type: "input",
|
|
@@ -205,7 +205,7 @@ const R = [
|
|
|
205
205
|
componentProps: { placeholder: e("validationMessage") }
|
|
206
206
|
}
|
|
207
207
|
], a = T([]);
|
|
208
|
-
|
|
208
|
+
D(() => {
|
|
209
209
|
s.value && (a.value = [], s.value.forEach((t) => {
|
|
210
210
|
typeof t.required < "u" ? r.value = t : a.value.push(t);
|
|
211
211
|
}));
|
|
@@ -258,8 +258,8 @@ const R = [
|
|
|
258
258
|
class: "m-t-2",
|
|
259
259
|
onClick: w
|
|
260
260
|
}, {
|
|
261
|
-
default:
|
|
262
|
-
|
|
261
|
+
default: N(() => [
|
|
262
|
+
O(q(c(e)("addRule")), 1)
|
|
263
263
|
]),
|
|
264
264
|
_: 1
|
|
265
265
|
})
|