bp-aicc-editor 1.2.49 → 1.2.491
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/lib/{FormMessage.vue_vue_type_script_setup_true_lang-_bX1m7my.js → FormMessage.vue_vue_type_script_setup_true_lang-CcLR5YOu.js} +3 -3
- package/lib/{MenuSeparator-DQAa74pG.js → MenuSeparator-DhMchZQp.js} +7 -7
- package/lib/{PopperContent-Cq9gzvgR.js → PopperContent-CLGNdWAp.js} +2 -2
- package/lib/{Primitive-GZgY9JOG.js → Primitive-DCc90dgg.js} +1 -1
- package/lib/{RovingFocusGroup-DZlOWV3I.js → RovingFocusGroup-CGO5-OzB.js} +3 -3
- package/lib/SchemaRenderer-DdEaoify.js +104 -0
- package/lib/{ScreenPlayer-CfL6_es7.js → ScreenPlayer-CmLvJkt0.js} +1 -1
- package/lib/{VisuallyHidden-BnbJG9cu.js → VisuallyHidden-CGAiLSHy.js} +1 -1
- package/lib/{_...all_--_h2wR_i.js → _...all_-mf_qlBDZ.js} +3 -3
- package/lib/{align-line-0h7fA4Nv.js → align-line-CICE1aBO.js} +1 -1
- package/lib/{arrow-right-lLyOZjsg.js → arrow-right-DldqJqfv.js} +1 -1
- package/lib/{basic-schema-D0Og3u_t.js → basic-schema-D9J_gFOe.js} +1 -2
- package/lib/{basic-setting-t_fhV03P.js → basic-setting-DA8V66js.js} +399 -439
- package/lib/{box-RgvaZlBs.js → box-BDVBTmeS.js} +1 -1
- package/lib/{browser-DjDBdvVl.js → browser-CPkSyUJT.js} +3 -3
- package/lib/{btn-group-NSeR6YdM.js → btn-group-DGTgfrDS.js} +11 -11
- package/lib/{btn-return-BJb9BGtx.js → btn-return-CXDZ3ixV.js} +1 -1
- package/lib/{button-base-CRg5_ZR7.js → button-base-DyRruOkD.js} +3 -1
- package/lib/{cache-DtWdMX2F.js → cache-DXasx0jN.js} +1 -1
- package/lib/{canvas-area-DFHOTZ67.js → canvas-area-B_EqQdIr.js} +1 -1
- package/lib/{children-manager-BW2tODAT.js → children-manager-CVWNNOgv.js} +56 -56
- package/lib/{circle-BPZu4ElB.js → circle-6OtYn9s3.js} +1 -1
- package/lib/{close-DDV3FMNs.js → close-H5W6KY94.js} +1 -1
- package/lib/{cloud-vUc4zx6n.js → cloud-DlhdUswL.js} +1 -1
- package/lib/{config-BBlWn7kL.js → config-9pv6-03h.js} +3 -3
- package/lib/{config-B7IqZEaT.js → config-B2N11vFt.js} +23 -23
- package/lib/{config-C4qGz8is.js → config-BbDryLMO.js} +3 -3
- package/lib/{config-Cwj-2e32.js → config-BrZE9B1m.js} +4 -4
- package/lib/{config-BgHQbHXF.js → config-BsskHrP3.js} +1 -1
- package/lib/{config-Do_ZRQF3.js → config-CTKhddkg.js} +20 -20
- package/lib/{config-d2Pbf_RY.js → config-CWyvjjuF.js} +4 -4
- package/lib/{config-TELLck2y.js → config-CXwTbbUJ.js} +1 -1
- package/lib/{config-B0l-TYDL.js → config-CtNf9nj-.js} +1 -1
- package/lib/{config-BoJ8rcLA.js → config-D6d3S7Tw.js} +4 -4
- package/lib/{config-D70c7tv7.js → config-D75plbtX.js} +1 -1
- package/lib/{config-DBBro6uL.js → config-DH82Mkev.js} +4 -4
- package/lib/{config-Dr8pvD18.js → config-DfnxNPgf.js} +3 -3
- package/lib/{config-HUY4iCk_.js → config-DjvbBk9g.js} +1 -1
- package/lib/{config-BTHtuVWi.js → config-Dn8b2OX5.js} +3 -3
- package/lib/{config-B9Vzqztk.js → config-Dt2WB6nQ.js} +4 -4
- package/lib/{config-eec246cV.js → config-DxgO_rRd.js} +13 -13
- package/lib/{config-C5Wiy2MM.js → config-G9SpQmN4.js} +2 -2
- package/lib/{config-CcwkfMgL.js → config-e_uEM2iX.js} +2 -2
- package/lib/{config-title-C2egg8SH.js → config-title-D1EyL618.js} +5 -5
- package/lib/{copy-C_eFpZB3.js → copy-Ym5-MbhI.js} +1 -1
- package/lib/{dashedLine-DLHzIxIW.js → dashedLine-mcKHxowT.js} +1 -1
- package/lib/{datav-BWH0t91X.js → datav-CpEQX2dy.js} +44 -44
- package/lib/{dater-CpgplQxy.js → dater-6wShw4Zr.js} +1 -1
- package/lib/{delete-a9L1-4IY.js → delete-Co9d8nEY.js} +1 -1
- package/lib/{dialogBox-DFMPpICf.js → dialogBox-DuIHlc7r.js} +1 -1
- package/lib/{display-api-status-Bl7Yq741.js → display-api-status-DK4Bo6Cy.js} +1 -1
- package/lib/{document-OpB6ikoQ.js → document-xc4IU7Q6.js} +1 -1
- package/lib/{dottedLine-8OQYWPg-.js → dottedLine-Bfquyv5M.js} +1 -1
- package/lib/{doubleHeadedArrow-DIQNF8sH.js → doubleHeadedArrow-5nFNWboQ.js} +1 -1
- package/lib/{drag-nzkPiKud.js → drag-BGPwoEmL.js} +1 -1
- package/lib/{dropdown-P9aVUrmh.js → dropdown-B3HObOVQ.js} +3 -3
- package/lib/{ds-api-editor-Hiehbevv.js → ds-api-editor-BsW2vaSn.js} +9 -9
- package/lib/{ds-global-editor-BSPbFcTU.js → ds-global-editor-w1FnkVwU.js} +10 -10
- package/lib/{ds-sql-editor-Ti4aXdzf.js → ds-sql-editor-Bzf6pPI2.js} +17 -17
- package/lib/{ds-static-editor-BK71uLGI.js → ds-static-editor-DlYvZMNE.js} +3 -3
- package/lib/{edit-DgWDauXg.js → edit-B2UH5ZkA.js} +1 -1
- package/lib/{eightPointedStar-_U3OG9j1.js → eightPointedStar-_FtpLUck.js} +1 -1
- package/lib/{el-checkbox-BEGVJBaM.js → el-checkbox-VhNDLaIP.js} +89 -89
- package/lib/{el-dialog-CE6PrDQF.js → el-dialog-CFu2kYf_.js} +3 -3
- package/lib/{el-drawer-Bq6eJZET.js → el-drawer-DMmiS2Rw.js} +4 -4
- package/lib/{el-form-item-CtJNp-q-.js → el-form-item-DdMkoj44.js} +30 -30
- package/lib/{el-input-BQVAq6r_.js → el-input-CIlT8DVc.js} +85 -85
- package/lib/{el-link-CrTLWqcJ.js → el-link-Bt3n7Pkh.js} +17 -17
- package/lib/{el-loading-C7_oK4ii.js → el-loading-C1S0gq3b.js} +12 -12
- package/lib/{el-overlay-BHV90dDk.js → el-overlay-C310nwv5.js} +53 -53
- package/lib/{el-popover-pjF6djoF.js → el-popover-CH8OkmJL.js} +14 -14
- package/lib/{el-progress-Dpc-yiwU.js → el-progress-Bjy2pPcK.js} +55 -55
- package/lib/{el-radio-group-2TMywehk.js → el-radio-group-C1RSckmq.js} +40 -40
- package/lib/{el-scrollbar-sWJ6Ihc3.js → el-scrollbar-BNFoVtza.js} +8 -8
- package/lib/{el-select-UxV2Z_bm.js → el-select-CmpzzV35.js} +40 -40
- package/lib/{el-switch-DZgp74OQ.js → el-switch-BOEriaz1.js} +29 -29
- package/lib/{el-tab-pane-C90YDeNE.js → el-tab-pane-Dt2o_Qr7.js} +49 -49
- package/lib/{el-table-column-EOqbxObu.js → el-table-column-DdRDYhJr.js} +261 -261
- package/lib/{empty-panel-Csbb5LQd.js → empty-panel-RnpkOzPO.js} +2 -2
- package/lib/{event-8mULJy3M.js → event-CAGCfwHj.js} +1 -1
- package/lib/{event-item-B9jPwdbp.js → event-item-d20_3Adl.js} +55 -55
- package/lib/eventBus-Biha168N.js +5 -0
- package/lib/{field-grid-CRI2_H9f.js → field-grid-DtczGT5q.js} +1 -1
- package/lib/{filter-collapse-item-BdKZsqsD.js → filter-collapse-item-DUkby7Yw.js} +17 -17
- package/lib/{filter-manager-drawer-BRPuPUqY.js → filter-manager-drawer-DOoNtLE1.js} +12 -12
- package/lib/{filter-panel-DZVLwFHK.js → filter-panel-DcwGmrOU.js} +14 -14
- package/lib/{filter-toolbox-panel-C1q9E6ny.js → filter-toolbox-panel-DcBCQIac.js} +1 -1
- package/lib/{fivePointedStar-DdU8ax6u.js → fivePointedStar-CtZz2bHa.js} +1 -1
- package/lib/{focus-trap-BcK528k6.js → focus-trap-CWI5aO1g.js} +24 -24
- package/lib/{fourPointedStar-GWiXTkb8.js → fourPointedStar-ArE2Lvs-.js} +1 -1
- package/lib/{full-screen-DG-25pEa.js → full-screen-9LN8NS_C.js} +1 -1
- package/lib/{fullscreen-BnS7orHz.js → fullscreen-DhYunEmy.js} +1 -1
- package/lib/{group-DL3-Om3j.js → group-CMzekPB8.js} +1 -1
- package/lib/{head-loading-0PGomilz.js → head-loading-DDazZ4ck.js} +1 -1
- package/lib/heart-C5v3xoOE.js +4 -0
- package/lib/{help-lQBtFUs1.js → help-B5y35n8W.js} +1 -1
- package/lib/{hexagon-DNP9XkdW.js → hexagon-B0HSC5vn.js} +1 -1
- package/lib/{hexagonalStar-B3KHKvJQ.js → hexagonalStar-DKOTqHh9.js} +1 -1
- package/lib/{hide-limu17qy.js → hide-DIn3821u.js} +1 -1
- package/lib/{index-BpOVOGHj.js → index-0zzmmq0Q.js} +4 -4
- package/lib/{index-D9nhJioX.js → index-1b4gGSGo.js} +3 -3
- package/lib/{index-DRMdRQgP.js → index-2psilmLh.js} +94 -94
- package/lib/{index-CMEPn-qg.js → index-4k-x3VJo.js} +24 -24
- package/lib/{index-BE20VVIa.js → index-67L5-CWX.js} +56 -56
- package/lib/{index-CZhjLG-k.js → index-B2MbTqHq.js} +8 -8
- package/lib/{index-B06-sA5d.js → index-B5lr2WKV.js} +39 -39
- package/lib/{index-9gnMkg3f.js → index-B6-VlBLp.js} +1 -1
- package/lib/{index-CaFu8vdb.js → index-B9Io4lfl.js} +5 -5
- package/lib/{index-CfkSRiJY.js → index-BCIwYWEN.js} +3 -3
- package/lib/{index-CimeO_Yx.js → index-BFhoJsg6.js} +18 -18
- package/lib/{index-DX15yP5B.js → index-BLjKV0mC.js} +10 -10
- package/lib/index-BRzoxKrr.js +127 -0
- package/lib/{index-CLFBdxuN.js → index-BWk7Dvwo.js} +15 -15
- package/lib/{index-DAuwtEHP.js → index-BexuPBg9.js} +1 -1
- package/lib/{index-Bf0YL3Dk.js → index-Bi7vbK5d.js} +1 -1
- package/lib/{index-QFlkBbAA.js → index-BnFtf_bo.js} +20 -20
- package/lib/{index-DIxGGk_K.js → index-BqjHv6Aj.js} +1 -1
- package/lib/{index-Bn-c4O5o.js → index-BqsiidXH.js} +1 -1
- package/lib/{index-D-SQWlMo.js → index-BvcgGbIV.js} +3 -3
- package/lib/{index-Bv0MK-1K.js → index-By4oDV0Y.js} +5 -5
- package/lib/{index-BRtNKvZd.js → index-C-yrBu4h.js} +23 -23
- package/lib/{index-BoGQxc5E.js → index-C3rLK8Rc.js} +1 -1
- package/lib/{index-DH4815he.js → index-C5eNGeG6.js} +1 -1
- package/lib/{index-BGV-Ohf1.js → index-C5kS72Bm.js} +1 -1
- package/lib/{index-CEPP5pFH.js → index-C6peO8DW.js} +1 -1
- package/lib/{index-CFtazw-1.js → index-CSypu7Jk.js} +16 -16
- package/lib/{index-B5lh2LRl.js → index-CXeHJhKw.js} +174 -256
- package/lib/{index-DqxTCee8.js → index-CZ7cSofF.js} +2 -2
- package/lib/{index-Bw8Ruok8.js → index-CbH0QPf0.js} +18 -18
- package/lib/{index-nXkYd5pR.js → index-Cj2UC6qP.js} +1 -1
- package/lib/{index-B5gQsQyO.js → index-CkwFtsjH.js} +8767 -8730
- package/lib/{index-DQrXMR-x.js → index-CmSEnupR.js} +14 -14
- package/lib/{index-BGlB4k2x.js → index-Cs7mp-dk.js} +1 -1
- package/lib/{index-CKL9IO1N.js → index-CsMG58rb.js} +1 -1
- package/lib/{index-CbRj-4K2.js → index-D0RU6UO-.js} +13 -13
- package/lib/{index-DWDwldeJ.js → index-D0YhMJis.js} +41 -41
- package/lib/{index-DQCbx93m.js → index-D9Z4SKjt.js} +9 -9
- package/lib/{index-BKi4lO2t.js → index-DA-CEhhi.js} +1 -1
- package/lib/{index-DO34I4Jg.js → index-DFkicgl4.js} +1341 -1323
- package/lib/{index-AEcfePd_.js → index-DPhJ5Oi-.js} +15 -15
- package/lib/{index-CvmeY3Uo.js → index-DRSnHDdc.js} +1 -1
- package/lib/{index-DXWkaWtJ.js → index-DS43QxA1.js} +6 -6
- package/lib/{index--ZZLirXt.js → index-DU2WQ5Vm.js} +1 -1
- package/lib/{index-BoVYC37N.js → index-DVZ0e0Hi.js} +7 -7
- package/lib/index-Ddt4TYXe.js +4 -0
- package/lib/index-DeppdEfQ.js +4 -0
- package/lib/{index-DbLCZr3f.js → index-DgeG9dwT.js} +3 -3
- package/lib/{index-C3NLXNM_.js → index-Du7PqfZ4.js} +12 -12
- package/lib/index-Dw_MczUW.js +4 -0
- package/lib/{index-Br8Qh8jr.js → index-MPFxX9Zi.js} +13 -13
- package/lib/{index-c6gROOjs.js → index-P9VPbFwg.js} +2 -2
- package/lib/{index-DpC8xd8V.js → index-RHxnyG2w.js} +1 -1
- package/lib/{index-ejxGENAK.js → index-ScqeJjrY.js} +1 -1
- package/lib/{index-BRDDn8Vs.js → index-aq6X-cbr.js} +4 -4
- package/lib/{index-CHbTjNjL.js → index-fbZdBywN.js} +4 -4
- package/lib/{index-Gfu0cpZU.js → index-n-iRFuB-.js} +7 -7
- package/lib/{index-BPgWxmqV.js → index-rWRVyH9K.js} +12 -12
- package/lib/{index-BlbQJqXp.js → index-spK4Vvgn.js} +13 -13
- package/lib/{index-D1bYrBaG.js → index-wfGdJfx_.js} +3 -3
- package/lib/{index-D-QwtZ0C.js → index-wrqSDP4l.js} +1 -1
- package/lib/{index-Dwype05W.js → index-ww39QmUd.js} +11 -11
- package/lib/index.es.js +2 -2
- package/lib/index.umd.js +72 -72
- package/lib/{index.vue_vue_type_script_lang-C8K5Eb6O.js → index.vue_vue_type_script_lang-CgLKyxjn.js} +2 -2
- package/lib/{index.vue_vue_type_script_setup_true_lang-CmjhJm2B.js → index.vue_vue_type_script_setup_true_lang-B9PVHLE0.js} +4 -4
- package/lib/{index.vue_vue_type_script_setup_true_lang-Dg1jrUgK.js → index.vue_vue_type_script_setup_true_lang-BCkMWTqx.js} +3 -3
- package/lib/{index.vue_vue_type_script_setup_true_lang-BHs6dbdR.js → index.vue_vue_type_script_setup_true_lang-BY0r_E1Q.js} +5 -5
- package/lib/{index.vue_vue_type_script_setup_true_lang-By7W7PKh.js → index.vue_vue_type_script_setup_true_lang-BvjefzMi.js} +3 -3
- package/lib/{index.vue_vue_type_script_setup_true_lang-BfNy5Y51.js → index.vue_vue_type_script_setup_true_lang-CIV8UrAT.js} +3 -3
- package/lib/{index.vue_vue_type_script_setup_true_lang-DFsBBXnP.js → index.vue_vue_type_script_setup_true_lang-CZoVRgZw.js} +5 -5
- package/lib/{index.vue_vue_type_script_setup_true_lang-j8MlIwIx.js → index.vue_vue_type_script_setup_true_lang-CoV_KzYA.js} +3 -3
- package/lib/{index.vue_vue_type_script_setup_true_lang-DyzhnzWW.js → index.vue_vue_type_script_setup_true_lang-CtWJ7B5v.js} +5 -5
- package/lib/{index.vue_vue_type_script_setup_true_lang-CJSttHQo.js → index.vue_vue_type_script_setup_true_lang-DM-UBUBW.js} +2 -2
- package/lib/{index.vue_vue_type_script_setup_true_lang-LUIJSU6C.js → index.vue_vue_type_script_setup_true_lang-DUg-26dE.js} +4 -4
- package/lib/{index.vue_vue_type_script_setup_true_lang-BXtXZSPL.js → index.vue_vue_type_script_setup_true_lang-DX_VYei4.js} +10 -10
- package/lib/{index.vue_vue_type_script_setup_true_lang-2Y243tq6.js → index.vue_vue_type_script_setup_true_lang-DZHVA3_H.js} +3 -3
- package/lib/{index.vue_vue_type_script_setup_true_lang-CPToN2-B.js → index.vue_vue_type_script_setup_true_lang-DgcqTr03.js} +1 -1
- package/lib/{index.vue_vue_type_script_setup_true_lang-DXsJa0fZ.js → index.vue_vue_type_script_setup_true_lang-OJ5fTTCF.js} +2 -2
- package/lib/{interact-hLIgClVA.js → interact-D0Ki6vB9.js} +1 -1
- package/lib/{item-B9Xl_NMS.js → item-oVwAv9z1.js} +1 -1
- package/lib/{item.vue_vue_type_script_setup_true_lang-B9KHMcbf.js → item.vue_vue_type_script_setup_true_lang-CD5f-6m1.js} +3 -3
- package/lib/{layer-manager-item-r4tVwfgn.js → layer-manager-item-Bk-kdWZ0.js} +22 -22
- package/lib/{layer-manager-wrap-DhdwuGTJ.js → layer-manager-wrap-DfRUAEOm.js} +1 -1
- package/lib/{layer-setting-panel-DK1tfHBk.js → layer-setting-panel-BQ__qEXC.js} +4 -4
- package/lib/{leftSide-CfAWyqZX.js → leftSide-DhRizpJH.js} +1 -1
- package/lib/{leftSide.vue_vue_type_script_setup_true_lang-CVZJfXSI.js → leftSide.vue_vue_type_script_setup_true_lang-CNdlaAiS.js} +4 -4
- package/lib/{link-g-8UBYEq.js → link-CmlZTJqG.js} +6 -6
- package/lib/{lock-I7RRx9gf.js → lock-S60_Xy01.js} +1 -1
- package/lib/{login-BwtXAsaf.js → login-DRNY4QjP.js} +13 -13
- package/lib/{main-graph-CWTzQkhE.js → main-graph-DXaJmrsb.js} +1 -1
- package/lib/{marquee-Bpx052qS.js → marquee-DZD2tDpo.js} +1 -1
- package/lib/{message-carousel-DpbUjP_i.js → message-carousel-CfAUZLbu.js} +7 -7
- package/lib/{multi-layout-config-CKf1OOo-.js → multi-layout-config-BVnyT5Yg.js} +11 -11
- package/lib/{number-title-flop-B2ZsN2PJ.js → number-title-flop-CvSjtoNE.js} +1 -1
- package/lib/{page-3e9X5wCK.js → page-B54nXZlx.js} +3 -3
- package/lib/{page-DA5sjyvc.js → page-C2OyG-aB.js} +3 -3
- package/lib/{page-config-BLj7h0Aj.js → page-config-Bcst_mGa.js} +226 -226
- package/lib/{page-tabs-CQbAPd3A.js → page-tabs--tZLMexE.js} +9 -9
- package/lib/{page1-_bz7XN2V.js → page1-XNKE6e8C.js} +3 -3
- package/lib/{page2-DRBTQOP5.js → page2-DVQXT_5v.js} +3 -3
- package/lib/{paragraph-1ScPz4Jl.js → paragraph-D1GVpqWL.js} +1 -1
- package/lib/{pentagon-DqwBagpi.js → pentagon-CnsmR6_s.js} +1 -1
- package/lib/{plus-DNeHaW31.js → plus-C2t1fK4T.js} +1 -1
- package/lib/{raf-B51tvhxV.js → raf-ol5NpxLk.js} +1 -1
- package/lib/{rectangle-Rss3rro7.js → rectangle-B8u8qq2H.js} +1 -1
- package/lib/{refer-line-SI2Y3c5o.js → refer-line-CpF0tFK1.js} +1 -1
- package/lib/registry-B4dG9rph.js +11 -0
- package/lib/{reload-De0ITj6T.js → reload-DeoAoCS1.js} +1 -1
- package/lib/{rightSide-CeXpNKfF.js → rightSide-CICUwvLL.js} +1 -1
- package/lib/{rightSide.vue_vue_type_script_setup_true_lang-0z0rmaNB.js → rightSide.vue_vue_type_script_setup_true_lang-BONiK2SW.js} +5 -5
- package/lib/{roundedRectangle-B_cMo7Lc.js → roundedRectangle-C0W3yS7r.js} +1 -1
- package/lib/{schema-Bzk8RSqA.js → schema-DxDqcxrS.js} +153 -123
- package/lib/{scroll-B3zdMeAP.js → scroll-Z8dffZLF.js} +1 -1
- package/lib/{scroll-article-DcNVXl1b.js → scroll-article-Cc55cWz6.js} +8 -8
- package/lib/{scroll-rank-bar-DwlraICx.js → scroll-rank-bar-DwdBXFlf.js} +10 -10
- package/lib/{scroll-rank-DElr8RoA.js → scroll-rank-s8dv2Sqa.js} +15 -15
- package/lib/{scroll-table-Cmbrhswl.js → scroll-table-fup_S-kU.js} +4 -4
- package/lib/{search-tGxOfYUS.js → search-BDdFVhR5.js} +1 -1
- package/lib/{search-BkP-IJhs.js → search-CqduUfAv.js} +1 -1
- package/lib/{search.vue_vue_type_script_setup_true_lang-BMGebgZy.js → search.vue_vue_type_script_setup_true_lang-82sIfYpr.js} +5 -5
- package/lib/{select-options-BiXS5Q9o.js → select-options-DHQ0ON2h.js} +1 -1
- package/lib/setting-panel-Bv0tIC0i.js +72 -0
- package/lib/{show-B0zv5uWm.js → show-_EsPx3Tg.js} +1 -1
- package/lib/{source-drawer-BRUuBPFb.js → source-drawer-lS5jJegZ.js} +32 -32
- package/lib/{source-panel-CfIIPCYh.js → source-panel-EdC2pmV9.js} +15 -15
- package/lib/{straightLine-Bm3CBzQd.js → straightLine-BW9WNOHB.js} +1 -1
- package/lib/{strings-1YgOIQzO.js → strings-DTAEOv7j.js} +1 -1
- package/lib/style.css +1 -1
- package/lib/{sub-CqMUbuqq.js → sub-DPV2ai2b.js} +1 -1
- package/lib/{sub.vue_vue_type_script_setup_true_lang-BsR7JodN.js → sub.vue_vue_type_script_setup_true_lang-Bp_1wH7z.js} +3 -3
- package/lib/{table-bar-BvtkN9b-.js → table-bar-FOjJo1u3.js} +5 -5
- package/lib/{transform-layer-vnZ5oNux.js → transform-layer-Cx9GZ34U.js} +2 -2
- package/lib/{transform-layer.vue_vue_type_style_index_0_scoped_b4a79cce_lang-D7fc44Yg.js → transform-layer.vue_vue_type_style_index_0_scoped_b4a79cce_lang-B9UvLsNX.js} +44 -44
- package/lib/{triangle-DllbnnWD.js → triangle-C5AoHzQY.js} +1 -1
- package/lib/types-Czh5VYKx.js +4 -0
- package/lib/{use-env-url-B-cAmReq.js → use-env-url-CygYaWwS.js} +1 -1
- package/lib/{useDirection-TS9btS_0.js → useDirection-D-9xGV7F.js} +1 -1
- package/lib/{useDragDrop-CrS86pF1.js → useDragDrop-C036WEMW.js} +2 -2
- package/lib/{useMainPage-kBVGzLf4.js → useMainPage-BDTOCeGe.js} +1 -1
- package/lib/{useMenu-D18cmuWR.js → useMenu-OfQQqtEM.js} +1 -1
- package/lib/{useSelection-DZLjXMjD.js → useSelection-n1-upZjD.js} +10 -10
- package/lib/{utils-BcdCEWht.js → utils-BSS0uXcK.js} +2 -2
- package/lib/{vnode-CKUWjz4A.js → vnode-CggexogP.js} +5 -5
- package/lib/{x-BQI5mJUJ.js → x-DIw0kIKL.js} +3 -3
- package/package.json +1 -1
- package/lib/SchemaRenderer-CpDa3LxF.js +0 -90
- package/lib/eventBus-_qxlCv5D.js +0 -5
- package/lib/heart-CDfevNHq.js +0 -4
- package/lib/index-C8j8viwV.js +0 -4
- package/lib/index-iumXHOo1.js +0 -4
- package/lib/index-kShl7f-m.js +0 -4
- package/lib/registry-BgRfHj9p.js +0 -11
- package/lib/setting-panel-DtkUbj4-.js +0 -72
- package/lib/types-BlteakJT.js +0 -4
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { E as yl } from "./el-input-
|
|
3
|
-
import "element-plus";
|
|
1
|
+
import { b as q, d as O, y as rl, h as G, ae, e as N, u as x, D as ee, ax as le, bR as Q, bS as Ve, ar as Te, aq as Le, at as j, w as Be, br as sl, ao as il, ap as ul, bm as cl, as as dl, bT as fl, aP as pl, a7 as ml, a as we, bs as vl, l as hl, bh as _e, O as bl, ac as gl, _ as kl } from "./index-CkwFtsjH.js";
|
|
2
|
+
import { E as yl } from "./el-input-CIlT8DVc.js";
|
|
4
3
|
import { storeToRefs as Cl } from "pinia";
|
|
5
|
-
import { getCurrentInstance as ne, shallowRef as
|
|
6
|
-
import { b as $l, c as Kl, p as
|
|
7
|
-
import { comInjectionKey as
|
|
8
|
-
import { u as Z,
|
|
9
|
-
import { u as
|
|
10
|
-
import { U as
|
|
11
|
-
import { g as me, E as
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
const
|
|
4
|
+
import { getCurrentInstance as ne, shallowRef as Se, computed as w, ref as K, onMounted as re, watch as B, defineComponent as M, createElementBlock as D, openBlock as T, normalizeClass as P, unref as a, createElementVNode as R, normalizeStyle as U, inject as pe, watchEffect as Vl, Fragment as wl, renderList as _l, reactive as Sl, nextTick as X, provide as De, createBlock as oe, createCommentVNode as Ee, createVNode as k, renderSlot as El, withCtx as $, mergeProps as Pe, withDirectives as se, vShow as $e, withKeys as Pl, createTextVNode as Ke, toDisplayString as Re, resolveComponent as H } from "vue";
|
|
5
|
+
import { b as $l, c as Kl, p as Rl, r as Al, s as Fl, t as Tl } from "./select-options-DHQ0ON2h.js";
|
|
6
|
+
import { comInjectionKey as Ll } from "./config-BGEHEzgf.js";
|
|
7
|
+
import { u as Z, E as Bl } from "./index-2psilmLh.js";
|
|
8
|
+
import { u as Dl } from "./index-CsMG58rb.js";
|
|
9
|
+
import { U as z, C as de } from "./event-Xd-jNBs0.js";
|
|
10
|
+
import { g as me, E as A } from "./event-CAGCfwHj.js";
|
|
11
|
+
import { C as Ol } from "./index-By4oDV0Y.js";
|
|
12
|
+
import { u as Il } from "./index-spK4Vvgn.js";
|
|
13
|
+
const Oe = q({
|
|
15
14
|
color: {
|
|
16
|
-
type:
|
|
15
|
+
type: O(Object),
|
|
17
16
|
required: !0
|
|
18
17
|
},
|
|
19
18
|
vertical: Boolean,
|
|
20
19
|
disabled: Boolean
|
|
21
|
-
}),
|
|
20
|
+
}), Ul = Oe;
|
|
22
21
|
let ie = !1;
|
|
23
22
|
function fe(e, l) {
|
|
24
|
-
if (!
|
|
23
|
+
if (!rl)
|
|
25
24
|
return;
|
|
26
|
-
const
|
|
25
|
+
const t = function(r) {
|
|
27
26
|
var s;
|
|
28
27
|
(s = l.drag) == null || s.call(l, r);
|
|
29
28
|
}, n = function(r) {
|
|
30
29
|
var s;
|
|
31
|
-
document.removeEventListener("mousemove",
|
|
30
|
+
document.removeEventListener("mousemove", t), document.removeEventListener("mouseup", n), document.removeEventListener("touchmove", t), document.removeEventListener("touchend", n), document.onselectstart = null, document.ondragstart = null, ie = !1, (s = l.end) == null || s.call(l, r);
|
|
32
31
|
}, c = function(r) {
|
|
33
32
|
var s;
|
|
34
|
-
ie || (document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove",
|
|
33
|
+
ie || (document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", t), document.addEventListener("mouseup", n), document.addEventListener("touchmove", t), document.addEventListener("touchend", n), ie = !0, (s = l.start) == null || s.call(l, r));
|
|
35
34
|
};
|
|
36
35
|
e.addEventListener("mousedown", c), e.addEventListener("touchstart", c, { passive: !1 });
|
|
37
36
|
}
|
|
38
|
-
const
|
|
39
|
-
let l,
|
|
40
|
-
return e.type === "touchend" ? (
|
|
37
|
+
const Ie = (e) => {
|
|
38
|
+
let l, t;
|
|
39
|
+
return e.type === "touchend" ? (t = e.changedTouches[0].clientY, l = e.changedTouches[0].clientX) : e.type.startsWith("touch") ? (t = e.touches[0].clientY, l = e.touches[0].clientX) : (t = e.clientY, l = e.clientX), {
|
|
41
40
|
clientX: l,
|
|
42
|
-
clientY:
|
|
41
|
+
clientY: t
|
|
43
42
|
};
|
|
44
|
-
}, Ue = (e, { key: l, minValue:
|
|
45
|
-
const c = ne(), r =
|
|
43
|
+
}, Ue = (e, { key: l, minValue: t, maxValue: n }) => {
|
|
44
|
+
const c = ne(), r = Se(), s = Se(), u = w(() => e.color.get(l));
|
|
46
45
|
function i(f) {
|
|
47
46
|
var o;
|
|
48
47
|
if (e.disabled)
|
|
@@ -52,45 +51,45 @@ const Oe = (e) => {
|
|
|
52
51
|
function b(f) {
|
|
53
52
|
if (!s.value || !r.value || e.disabled)
|
|
54
53
|
return;
|
|
55
|
-
const h = c.vnode.el.getBoundingClientRect(), { clientX:
|
|
54
|
+
const h = c.vnode.el.getBoundingClientRect(), { clientX: v, clientY: C } = Ie(f);
|
|
56
55
|
let d;
|
|
57
56
|
if (e.vertical) {
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
(
|
|
57
|
+
let m = C - h.top;
|
|
58
|
+
m = Math.max(r.value.offsetHeight / 2, m), m = Math.min(m, h.height - r.value.offsetHeight / 2), d = Math.round(
|
|
59
|
+
(m - r.value.offsetHeight / 2) / (h.height - r.value.offsetHeight) * n
|
|
61
60
|
);
|
|
62
61
|
} else {
|
|
63
|
-
let
|
|
64
|
-
|
|
65
|
-
(
|
|
62
|
+
let m = v - h.left;
|
|
63
|
+
m = Math.max(r.value.offsetWidth / 2, m), m = Math.min(m, h.width - r.value.offsetWidth / 2), d = Math.round(
|
|
64
|
+
(m - r.value.offsetWidth / 2) / (h.width - r.value.offsetWidth) * n
|
|
66
65
|
);
|
|
67
66
|
}
|
|
68
67
|
e.color.set(l, d);
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function V(f) {
|
|
71
70
|
if (e.disabled)
|
|
72
71
|
return;
|
|
73
|
-
const { shiftKey: o } = f, h = me(f),
|
|
72
|
+
const { shiftKey: o } = f, h = me(f), v = o ? 10 : 1, C = l === "hue" ? -1 : 1;
|
|
74
73
|
let d = !0;
|
|
75
74
|
switch (h) {
|
|
76
|
-
case
|
|
77
|
-
case
|
|
78
|
-
g(-
|
|
75
|
+
case A.left:
|
|
76
|
+
case A.down:
|
|
77
|
+
g(-v * C);
|
|
79
78
|
break;
|
|
80
|
-
case
|
|
81
|
-
case
|
|
82
|
-
g(
|
|
79
|
+
case A.right:
|
|
80
|
+
case A.up:
|
|
81
|
+
g(v * C);
|
|
83
82
|
break;
|
|
84
|
-
case
|
|
85
|
-
e.color.set(l, l === "hue" ? n :
|
|
83
|
+
case A.home:
|
|
84
|
+
e.color.set(l, l === "hue" ? n : t);
|
|
86
85
|
break;
|
|
87
|
-
case
|
|
88
|
-
e.color.set(l, l === "hue" ?
|
|
86
|
+
case A.end:
|
|
87
|
+
e.color.set(l, l === "hue" ? t : n);
|
|
89
88
|
break;
|
|
90
|
-
case
|
|
89
|
+
case A.pageDown:
|
|
91
90
|
g(-4 * C);
|
|
92
91
|
break;
|
|
93
|
-
case
|
|
92
|
+
case A.pageUp:
|
|
94
93
|
g(4 * C);
|
|
95
94
|
break;
|
|
96
95
|
default:
|
|
@@ -101,7 +100,7 @@ const Oe = (e) => {
|
|
|
101
100
|
}
|
|
102
101
|
function g(f) {
|
|
103
102
|
let o = u.value + f;
|
|
104
|
-
o = o <
|
|
103
|
+
o = o < t ? t : o > n ? n : o, e.color.set(l, o);
|
|
105
104
|
}
|
|
106
105
|
return {
|
|
107
106
|
thumb: r,
|
|
@@ -109,24 +108,24 @@ const Oe = (e) => {
|
|
|
109
108
|
currentValue: u,
|
|
110
109
|
handleDrag: b,
|
|
111
110
|
handleClick: i,
|
|
112
|
-
handleKeydown:
|
|
111
|
+
handleKeydown: V
|
|
113
112
|
};
|
|
114
|
-
},
|
|
113
|
+
}, Me = (e, {
|
|
115
114
|
namespace: l,
|
|
116
|
-
maxValue:
|
|
115
|
+
maxValue: t,
|
|
117
116
|
bar: n,
|
|
118
117
|
thumb: c,
|
|
119
118
|
currentValue: r,
|
|
120
119
|
handleDrag: s,
|
|
121
120
|
getBackground: u
|
|
122
121
|
}) => {
|
|
123
|
-
const i = ne(), b = G(l),
|
|
122
|
+
const i = ne(), b = G(l), V = K(0), g = K(0), f = K();
|
|
124
123
|
function o() {
|
|
125
124
|
if (!c.value || e.vertical)
|
|
126
125
|
return 0;
|
|
127
|
-
const E = i.vnode.el,
|
|
126
|
+
const E = i.vnode.el, F = r.value;
|
|
128
127
|
return E ? Math.round(
|
|
129
|
-
|
|
128
|
+
F * (E.offsetWidth - c.value.offsetWidth / 2) / t
|
|
130
129
|
) : 0;
|
|
131
130
|
}
|
|
132
131
|
function h() {
|
|
@@ -135,68 +134,68 @@ const Oe = (e) => {
|
|
|
135
134
|
const E = i.vnode.el;
|
|
136
135
|
if (!e.vertical)
|
|
137
136
|
return 0;
|
|
138
|
-
const
|
|
137
|
+
const F = r.value;
|
|
139
138
|
return E ? Math.round(
|
|
140
|
-
|
|
139
|
+
F * (E.offsetHeight - c.value.offsetHeight / 2) / t
|
|
141
140
|
) : 0;
|
|
142
141
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
function v() {
|
|
143
|
+
V.value = o(), g.value = h(), f.value = u?.();
|
|
145
144
|
}
|
|
146
145
|
re(() => {
|
|
147
146
|
if (!n.value || !c.value)
|
|
148
147
|
return;
|
|
149
148
|
const E = {
|
|
150
|
-
drag: (
|
|
151
|
-
s(
|
|
149
|
+
drag: (F) => {
|
|
150
|
+
s(F);
|
|
152
151
|
},
|
|
153
|
-
end: (
|
|
154
|
-
s(
|
|
152
|
+
end: (F) => {
|
|
153
|
+
s(F);
|
|
155
154
|
}
|
|
156
155
|
};
|
|
157
|
-
fe(n.value, E), fe(c.value, E),
|
|
158
|
-
}),
|
|
156
|
+
fe(n.value, E), fe(c.value, E), v();
|
|
157
|
+
}), B(r, () => v()), B(
|
|
159
158
|
() => e.color.value,
|
|
160
|
-
() =>
|
|
159
|
+
() => v()
|
|
161
160
|
);
|
|
162
|
-
const C =
|
|
161
|
+
const C = w(() => [
|
|
163
162
|
b.b(),
|
|
164
163
|
b.is("vertical", e.vertical),
|
|
165
164
|
b.is("disabled", e.disabled)
|
|
166
|
-
]), d =
|
|
167
|
-
left:
|
|
168
|
-
top:
|
|
165
|
+
]), d = w(() => b.e("bar")), m = w(() => b.e("thumb")), y = w(() => ({ background: f.value })), _ = w(() => ({
|
|
166
|
+
left: ae(V.value),
|
|
167
|
+
top: ae(g.value)
|
|
169
168
|
}));
|
|
170
169
|
return {
|
|
171
170
|
rootKls: C,
|
|
172
171
|
barKls: d,
|
|
173
172
|
barStyle: y,
|
|
174
|
-
thumbKls:
|
|
173
|
+
thumbKls: m,
|
|
175
174
|
thumbStyle: _,
|
|
176
|
-
thumbLeft:
|
|
175
|
+
thumbLeft: V,
|
|
177
176
|
thumbTop: g,
|
|
178
|
-
update:
|
|
177
|
+
update: v
|
|
179
178
|
};
|
|
180
|
-
},
|
|
179
|
+
}, Ml = ["aria-label", "aria-valuenow", "aria-valuetext", "aria-orientation", "tabindex", "aria-disabled"], Ae = 0, ue = 100, Wl = M({
|
|
181
180
|
name: "ElColorAlphaSlider",
|
|
182
181
|
__name: "alpha-slider",
|
|
183
|
-
props:
|
|
182
|
+
props: Oe,
|
|
184
183
|
setup(e, { expose: l }) {
|
|
185
|
-
const
|
|
184
|
+
const t = e, { currentValue: n, bar: c, thumb: r, handleDrag: s, handleClick: u, handleKeydown: i } = Ue(t, { key: "alpha", minValue: Ae, maxValue: ue }), { rootKls: b, barKls: V, barStyle: g, thumbKls: f, thumbStyle: o, update: h } = Me(t, {
|
|
186
185
|
namespace: "color-alpha-slider",
|
|
187
186
|
maxValue: ue,
|
|
188
187
|
currentValue: n,
|
|
189
188
|
bar: c,
|
|
190
189
|
thumb: r,
|
|
191
190
|
handleDrag: s,
|
|
192
|
-
getBackground:
|
|
193
|
-
}), { t:
|
|
191
|
+
getBackground: m
|
|
192
|
+
}), { t: v } = x(), C = w(() => v("el.colorpicker.alphaLabel")), d = w(() => v("el.colorpicker.alphaDescription", {
|
|
194
193
|
alpha: n.value,
|
|
195
|
-
color:
|
|
194
|
+
color: t.color.value
|
|
196
195
|
}));
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
199
|
-
const { r: y, g: _, b: E } =
|
|
196
|
+
function m() {
|
|
197
|
+
if (t.color && t.color.value) {
|
|
198
|
+
const { r: y, g: _, b: E } = t.color.toRgb();
|
|
200
199
|
return `linear-gradient(to right, rgba(${y}, ${_}, ${E}, 0) 0%, rgba(${y}, ${_}, ${E}, 1) 100%)`;
|
|
201
200
|
}
|
|
202
201
|
return "";
|
|
@@ -205,31 +204,31 @@ const Oe = (e) => {
|
|
|
205
204
|
update: h,
|
|
206
205
|
bar: c,
|
|
207
206
|
thumb: r
|
|
208
|
-
}), (y, _) => (
|
|
207
|
+
}), (y, _) => (T(), D(
|
|
209
208
|
"div",
|
|
210
209
|
{
|
|
211
|
-
class: P(
|
|
210
|
+
class: P(a(b))
|
|
212
211
|
},
|
|
213
212
|
[
|
|
214
|
-
|
|
213
|
+
R(
|
|
215
214
|
"div",
|
|
216
215
|
{
|
|
217
216
|
ref_key: "bar",
|
|
218
217
|
ref: c,
|
|
219
|
-
class: P(
|
|
220
|
-
style:
|
|
221
|
-
onClick: _[0] || (_[0] = (...E) =>
|
|
218
|
+
class: P(a(V)),
|
|
219
|
+
style: U(a(g)),
|
|
220
|
+
onClick: _[0] || (_[0] = (...E) => a(u) && a(u)(...E))
|
|
222
221
|
},
|
|
223
222
|
null,
|
|
224
223
|
6
|
|
225
224
|
),
|
|
226
|
-
|
|
225
|
+
R("div", {
|
|
227
226
|
ref_key: "thumb",
|
|
228
227
|
ref: r,
|
|
229
|
-
class: P(
|
|
230
|
-
style:
|
|
228
|
+
class: P(a(f)),
|
|
229
|
+
style: U(a(o)),
|
|
231
230
|
"aria-label": C.value,
|
|
232
|
-
"aria-valuenow":
|
|
231
|
+
"aria-valuenow": a(n),
|
|
233
232
|
"aria-valuetext": d.value,
|
|
234
233
|
"aria-orientation": y.vertical ? "vertical" : "horizontal",
|
|
235
234
|
"aria-valuemin": Ae,
|
|
@@ -237,81 +236,81 @@ const Oe = (e) => {
|
|
|
237
236
|
role: "slider",
|
|
238
237
|
tabindex: y.disabled ? void 0 : 0,
|
|
239
238
|
"aria-disabled": y.disabled,
|
|
240
|
-
onKeydown: _[1] || (_[1] = (...E) =>
|
|
241
|
-
}, null, 46,
|
|
239
|
+
onKeydown: _[1] || (_[1] = (...E) => a(i) && a(i)(...E))
|
|
240
|
+
}, null, 46, Ml)
|
|
242
241
|
],
|
|
243
242
|
2
|
|
244
243
|
));
|
|
245
244
|
}
|
|
246
245
|
});
|
|
247
|
-
var Hl = /* @__PURE__ */ N(
|
|
248
|
-
const
|
|
246
|
+
var Hl = /* @__PURE__ */ N(Wl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/alpha-slider.vue"]]);
|
|
247
|
+
const zl = ["aria-label", "aria-valuenow", "aria-valuetext", "aria-orientation", "tabindex", "aria-disabled"], Fe = 0, ce = 360, Nl = M({
|
|
249
248
|
name: "ElColorHueSlider",
|
|
250
249
|
__name: "hue-slider",
|
|
251
|
-
props:
|
|
250
|
+
props: Ul,
|
|
252
251
|
setup(e, { expose: l }) {
|
|
253
|
-
const
|
|
252
|
+
const t = e, { currentValue: n, bar: c, thumb: r, handleDrag: s, handleClick: u, handleKeydown: i } = Ue(t, { key: "hue", minValue: Fe, maxValue: ce }), { rootKls: b, barKls: V, thumbKls: g, thumbStyle: f, thumbTop: o, update: h } = Me(t, {
|
|
254
253
|
namespace: "color-hue-slider",
|
|
255
254
|
maxValue: ce,
|
|
256
255
|
currentValue: n,
|
|
257
256
|
bar: c,
|
|
258
257
|
thumb: r,
|
|
259
258
|
handleDrag: s
|
|
260
|
-
}), { t:
|
|
259
|
+
}), { t: v } = x(), C = w(() => v("el.colorpicker.hueLabel")), d = w(() => v("el.colorpicker.hueDescription", {
|
|
261
260
|
hue: n.value,
|
|
262
|
-
color:
|
|
261
|
+
color: t.color.value
|
|
263
262
|
}));
|
|
264
263
|
return l({
|
|
265
264
|
bar: c,
|
|
266
265
|
thumb: r,
|
|
267
266
|
thumbTop: o,
|
|
268
267
|
update: h
|
|
269
|
-
}), (
|
|
268
|
+
}), (m, y) => (T(), D(
|
|
270
269
|
"div",
|
|
271
270
|
{
|
|
272
|
-
class: P(
|
|
271
|
+
class: P(a(b))
|
|
273
272
|
},
|
|
274
273
|
[
|
|
275
|
-
|
|
274
|
+
R(
|
|
276
275
|
"div",
|
|
277
276
|
{
|
|
278
277
|
ref_key: "bar",
|
|
279
278
|
ref: c,
|
|
280
|
-
class: P(
|
|
281
|
-
onClick: y[0] || (y[0] = (..._) =>
|
|
279
|
+
class: P(a(V)),
|
|
280
|
+
onClick: y[0] || (y[0] = (..._) => a(u) && a(u)(..._))
|
|
282
281
|
},
|
|
283
282
|
null,
|
|
284
283
|
2
|
|
285
284
|
),
|
|
286
|
-
|
|
285
|
+
R("div", {
|
|
287
286
|
ref_key: "thumb",
|
|
288
287
|
ref: r,
|
|
289
|
-
class: P(
|
|
290
|
-
style:
|
|
288
|
+
class: P(a(g)),
|
|
289
|
+
style: U(a(f)),
|
|
291
290
|
"aria-label": C.value,
|
|
292
|
-
"aria-valuenow":
|
|
291
|
+
"aria-valuenow": a(n),
|
|
293
292
|
"aria-valuetext": d.value,
|
|
294
|
-
"aria-orientation":
|
|
295
|
-
"aria-valuemin":
|
|
293
|
+
"aria-orientation": m.vertical ? "vertical" : "horizontal",
|
|
294
|
+
"aria-valuemin": Fe,
|
|
296
295
|
"aria-valuemax": ce,
|
|
297
296
|
role: "slider",
|
|
298
|
-
tabindex:
|
|
299
|
-
"aria-disabled":
|
|
300
|
-
onKeydown: y[1] || (y[1] = (..._) =>
|
|
301
|
-
}, null, 46,
|
|
297
|
+
tabindex: m.disabled ? void 0 : 0,
|
|
298
|
+
"aria-disabled": m.disabled,
|
|
299
|
+
onKeydown: y[1] || (y[1] = (..._) => a(i) && a(i)(..._))
|
|
300
|
+
}, null, 46, zl)
|
|
302
301
|
],
|
|
303
302
|
2
|
|
304
303
|
));
|
|
305
304
|
}
|
|
306
305
|
});
|
|
307
306
|
var Yl = /* @__PURE__ */ N(Nl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/hue-slider.vue"]]);
|
|
308
|
-
const Xl =
|
|
307
|
+
const Xl = q({
|
|
309
308
|
colors: {
|
|
310
|
-
type:
|
|
309
|
+
type: O(Array),
|
|
311
310
|
required: !0
|
|
312
311
|
},
|
|
313
312
|
color: {
|
|
314
|
-
type:
|
|
313
|
+
type: O(Object),
|
|
315
314
|
required: !0
|
|
316
315
|
},
|
|
317
316
|
enableAlpha: {
|
|
@@ -319,9 +318,9 @@ const Xl = x({
|
|
|
319
318
|
required: !0
|
|
320
319
|
},
|
|
321
320
|
disabled: Boolean
|
|
322
|
-
}),
|
|
321
|
+
}), We = q({
|
|
323
322
|
modelValue: {
|
|
324
|
-
type:
|
|
323
|
+
type: O(String),
|
|
325
324
|
default: void 0
|
|
326
325
|
},
|
|
327
326
|
border: {
|
|
@@ -332,29 +331,29 @@ const Xl = x({
|
|
|
332
331
|
colorFormat: String,
|
|
333
332
|
disabled: Boolean,
|
|
334
333
|
predefine: {
|
|
335
|
-
type:
|
|
334
|
+
type: O(Array)
|
|
336
335
|
},
|
|
337
336
|
validateEvent: {
|
|
338
337
|
type: Boolean,
|
|
339
338
|
default: !0
|
|
340
339
|
}
|
|
341
340
|
}), jl = {
|
|
342
|
-
[
|
|
343
|
-
},
|
|
344
|
-
class
|
|
341
|
+
[z]: (e) => ee(e) || le(e)
|
|
342
|
+
}, He = Symbol("colorCommonPickerKey"), ze = Symbol("colorPickerPanelContextKey");
|
|
343
|
+
class te {
|
|
345
344
|
constructor(l = {}) {
|
|
346
345
|
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100, this._tiny = new Q(), this._isValid = !1, this.enableAlpha = !1, this.format = "", this.value = "";
|
|
347
|
-
for (const
|
|
348
|
-
Ve(l,
|
|
346
|
+
for (const t in l)
|
|
347
|
+
Ve(l, t) && (this[t] = l[t]);
|
|
349
348
|
l.value ? this.fromString(l.value) : this.doOnChange();
|
|
350
349
|
}
|
|
351
|
-
set(l,
|
|
350
|
+
set(l, t) {
|
|
352
351
|
if (arguments.length === 1 && typeof l == "object") {
|
|
353
352
|
for (const n in l)
|
|
354
353
|
Ve(l, n) && this.set(n, l[n]);
|
|
355
354
|
return;
|
|
356
355
|
}
|
|
357
|
-
this[`_${l}`] =
|
|
356
|
+
this[`_${l}`] = t, this._isValid = !0, this.doOnChange();
|
|
358
357
|
}
|
|
359
358
|
get(l) {
|
|
360
359
|
return ["hue", "saturation", "value", "alpha"].includes(l) ? Math.round(this[`_${l}`]) : this[`_${l}`];
|
|
@@ -363,9 +362,9 @@ class ae {
|
|
|
363
362
|
return this._isValid ? this._tiny.toRgb() : { r: 255, g: 255, b: 255, a: 0 };
|
|
364
363
|
}
|
|
365
364
|
fromString(l) {
|
|
366
|
-
const
|
|
367
|
-
if (this._isValid =
|
|
368
|
-
const { h: n, s: c, v: r, a: s } =
|
|
365
|
+
const t = new Q(l);
|
|
366
|
+
if (this._isValid = t.isValid, t.isValid) {
|
|
367
|
+
const { h: n, s: c, v: r, a: s } = t.toHsv();
|
|
369
368
|
this._hue = n, this._saturation = c * 100, this._value = r * 100, this._alpha = s * 100;
|
|
370
369
|
} else
|
|
371
370
|
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100;
|
|
@@ -375,47 +374,47 @@ class ae {
|
|
|
375
374
|
this._isValid = !1, this.value = "", this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100;
|
|
376
375
|
}
|
|
377
376
|
compare(l) {
|
|
378
|
-
const
|
|
377
|
+
const t = new Q({
|
|
379
378
|
h: l._hue,
|
|
380
379
|
s: l._saturation / 100,
|
|
381
380
|
v: l._value / 100,
|
|
382
381
|
a: l._alpha / 100
|
|
383
382
|
});
|
|
384
|
-
return this._tiny.equals(
|
|
383
|
+
return this._tiny.equals(t);
|
|
385
384
|
}
|
|
386
385
|
doOnChange() {
|
|
387
|
-
const { _hue: l, _saturation:
|
|
386
|
+
const { _hue: l, _saturation: t, _value: n, _alpha: c, format: r, enableAlpha: s } = this;
|
|
388
387
|
let u = r || (s ? "rgb" : "hex");
|
|
389
388
|
r === "hex" && s && (u = "hex8"), this._tiny = new Q({
|
|
390
389
|
h: l,
|
|
391
|
-
s:
|
|
390
|
+
s: t / 100,
|
|
392
391
|
v: n / 100,
|
|
393
392
|
a: c / 100
|
|
394
393
|
}), this.value = this._isValid ? this._tiny.toString(u) : "";
|
|
395
394
|
}
|
|
396
395
|
}
|
|
397
|
-
const
|
|
398
|
-
const { currentColor: l } =
|
|
399
|
-
|
|
396
|
+
const ql = (e) => {
|
|
397
|
+
const { currentColor: l } = pe(ze), t = K(c(e.colors, e.color));
|
|
398
|
+
B(
|
|
400
399
|
() => l.value,
|
|
401
400
|
(r) => {
|
|
402
|
-
const s = new
|
|
401
|
+
const s = new te({
|
|
403
402
|
value: r,
|
|
404
403
|
enableAlpha: e.enableAlpha
|
|
405
404
|
});
|
|
406
|
-
|
|
405
|
+
t.value.forEach((u) => {
|
|
407
406
|
u.selected = s.compare(u);
|
|
408
407
|
});
|
|
409
408
|
}
|
|
410
|
-
),
|
|
411
|
-
|
|
409
|
+
), Vl(() => {
|
|
410
|
+
t.value = c(e.colors, e.color);
|
|
412
411
|
});
|
|
413
412
|
function n(r) {
|
|
414
413
|
e.color.fromString(e.colors[r]);
|
|
415
414
|
}
|
|
416
415
|
function c(r, s) {
|
|
417
416
|
return r.map((u) => {
|
|
418
|
-
const i = new
|
|
417
|
+
const i = new te({
|
|
419
418
|
value: u,
|
|
420
419
|
enableAlpha: e.enableAlpha
|
|
421
420
|
});
|
|
@@ -423,11 +422,11 @@ const xl = (e) => {
|
|
|
423
422
|
});
|
|
424
423
|
}
|
|
425
424
|
return {
|
|
426
|
-
rgbaColors:
|
|
425
|
+
rgbaColors: t,
|
|
427
426
|
handleSelect: n
|
|
428
427
|
};
|
|
429
428
|
}, Gl = (e) => {
|
|
430
|
-
const l = G("color-predefine"),
|
|
429
|
+
const l = G("color-predefine"), t = w(() => [l.b(), l.is("disabled", e.disabled)]), n = w(() => l.e("colors"));
|
|
431
430
|
function c(r) {
|
|
432
431
|
return [
|
|
433
432
|
l.e("color-selector"),
|
|
@@ -436,48 +435,48 @@ const xl = (e) => {
|
|
|
436
435
|
];
|
|
437
436
|
}
|
|
438
437
|
return {
|
|
439
|
-
rootKls:
|
|
438
|
+
rootKls: t,
|
|
440
439
|
colorsKls: n,
|
|
441
440
|
colorSelectorKls: c
|
|
442
441
|
};
|
|
443
|
-
},
|
|
442
|
+
}, xl = ["disabled", "aria-label", "onClick"], Jl = M({
|
|
444
443
|
name: "ElColorPredefine",
|
|
445
444
|
__name: "predefine",
|
|
446
445
|
props: Xl,
|
|
447
446
|
setup(e) {
|
|
448
|
-
const l = e, { rgbaColors:
|
|
449
|
-
return (b,
|
|
447
|
+
const l = e, { rgbaColors: t, handleSelect: n } = ql(l), { rootKls: c, colorsKls: r, colorSelectorKls: s } = Gl(l), { t: u } = x(), i = (b) => u("el.colorpicker.predefineDescription", { value: b });
|
|
448
|
+
return (b, V) => (T(), D(
|
|
450
449
|
"div",
|
|
451
450
|
{
|
|
452
|
-
class: P(
|
|
451
|
+
class: P(a(c))
|
|
453
452
|
},
|
|
454
453
|
[
|
|
455
|
-
|
|
454
|
+
R(
|
|
456
455
|
"div",
|
|
457
456
|
{
|
|
458
|
-
class: P(
|
|
457
|
+
class: P(a(r))
|
|
459
458
|
},
|
|
460
459
|
[
|
|
461
|
-
(
|
|
462
|
-
|
|
460
|
+
(T(!0), D(
|
|
461
|
+
wl,
|
|
463
462
|
null,
|
|
464
|
-
_l(t
|
|
463
|
+
_l(a(t), (g, f) => (T(), D("button", {
|
|
465
464
|
key: b.colors[f],
|
|
466
465
|
type: "button",
|
|
467
466
|
disabled: b.disabled,
|
|
468
467
|
"aria-label": i(g.value),
|
|
469
|
-
class: P(
|
|
470
|
-
onClick: (o) =>
|
|
468
|
+
class: P(a(s)(g)),
|
|
469
|
+
onClick: (o) => a(n)(f)
|
|
471
470
|
}, [
|
|
472
|
-
|
|
471
|
+
R(
|
|
473
472
|
"div",
|
|
474
473
|
{
|
|
475
|
-
style:
|
|
474
|
+
style: U({ backgroundColor: g.value })
|
|
476
475
|
},
|
|
477
476
|
null,
|
|
478
477
|
4
|
|
479
478
|
)
|
|
480
|
-
], 10,
|
|
479
|
+
], 10, xl))),
|
|
481
480
|
128
|
|
482
481
|
))
|
|
483
482
|
],
|
|
@@ -489,25 +488,25 @@ const xl = (e) => {
|
|
|
489
488
|
}
|
|
490
489
|
});
|
|
491
490
|
var Ql = /* @__PURE__ */ N(Jl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/predefine.vue"]]);
|
|
492
|
-
const Zl =
|
|
491
|
+
const Zl = q({
|
|
493
492
|
color: {
|
|
494
|
-
type:
|
|
493
|
+
type: O(Object),
|
|
495
494
|
required: !0
|
|
496
495
|
},
|
|
497
496
|
disabled: Boolean
|
|
498
|
-
}),
|
|
499
|
-
const l = ne(),
|
|
497
|
+
}), ea = (e) => {
|
|
498
|
+
const l = ne(), t = K(), n = K(0), c = K(0), r = K("hsl(0, 100%, 50%)"), s = w(() => e.color.get("saturation")), u = w(() => e.color.get("value")), i = w(() => e.color.get("hue"));
|
|
500
499
|
function b(h) {
|
|
501
|
-
var
|
|
500
|
+
var v;
|
|
502
501
|
if (e.disabled)
|
|
503
502
|
return;
|
|
504
|
-
h.target !==
|
|
503
|
+
h.target !== t.value && V(h), (v = t.value) == null || v.focus({ preventScroll: !0 });
|
|
505
504
|
}
|
|
506
|
-
function
|
|
505
|
+
function V(h) {
|
|
507
506
|
if (e.disabled)
|
|
508
507
|
return;
|
|
509
|
-
const C = l.vnode.el.getBoundingClientRect(), { clientX: d, clientY:
|
|
510
|
-
let y = d - C.left, _ =
|
|
508
|
+
const C = l.vnode.el.getBoundingClientRect(), { clientX: d, clientY: m } = Ie(h);
|
|
509
|
+
let y = d - C.left, _ = m - C.top;
|
|
511
510
|
y = Math.max(0, y), y = Math.min(y, C.width), _ = Math.max(0, _), _ = Math.min(_, C.height), c.value = y, n.value = _, e.color.set({
|
|
512
511
|
saturation: y / C.width * 100,
|
|
513
512
|
value: 100 - _ / C.height * 100
|
|
@@ -516,37 +515,37 @@ const Zl = x({
|
|
|
516
515
|
function g(h) {
|
|
517
516
|
if (e.disabled)
|
|
518
517
|
return;
|
|
519
|
-
const { shiftKey:
|
|
520
|
-
let
|
|
518
|
+
const { shiftKey: v } = h, C = me(h), d = v ? 10 : 1;
|
|
519
|
+
let m = !0;
|
|
521
520
|
switch (C) {
|
|
522
|
-
case
|
|
521
|
+
case A.left:
|
|
523
522
|
f(-d);
|
|
524
523
|
break;
|
|
525
|
-
case
|
|
524
|
+
case A.right:
|
|
526
525
|
f(d);
|
|
527
526
|
break;
|
|
528
|
-
case
|
|
527
|
+
case A.up:
|
|
529
528
|
o(d);
|
|
530
529
|
break;
|
|
531
|
-
case
|
|
530
|
+
case A.down:
|
|
532
531
|
o(-d);
|
|
533
532
|
break;
|
|
534
533
|
default:
|
|
535
|
-
|
|
534
|
+
m = !1;
|
|
536
535
|
break;
|
|
537
536
|
}
|
|
538
|
-
|
|
537
|
+
m && h.preventDefault();
|
|
539
538
|
}
|
|
540
539
|
function f(h) {
|
|
541
|
-
let
|
|
542
|
-
|
|
540
|
+
let v = s.value + h;
|
|
541
|
+
v = v < 0 ? 0 : v > 100 ? 100 : v, e.color.set("saturation", v);
|
|
543
542
|
}
|
|
544
543
|
function o(h) {
|
|
545
|
-
let
|
|
546
|
-
|
|
544
|
+
let v = u.value + h;
|
|
545
|
+
v = v < 0 ? 0 : v > 100 ? 100 : v, e.color.set("value", v);
|
|
547
546
|
}
|
|
548
547
|
return {
|
|
549
|
-
cursorRef:
|
|
548
|
+
cursorRef: t,
|
|
550
549
|
cursorTop: n,
|
|
551
550
|
cursorLeft: c,
|
|
552
551
|
background: r,
|
|
@@ -554,19 +553,19 @@ const Zl = x({
|
|
|
554
553
|
brightness: u,
|
|
555
554
|
hue: i,
|
|
556
555
|
handleClick: b,
|
|
557
|
-
handleDrag:
|
|
556
|
+
handleDrag: V,
|
|
558
557
|
handleKeydown: g
|
|
559
558
|
};
|
|
560
|
-
},
|
|
559
|
+
}, la = (e, {
|
|
561
560
|
cursorTop: l,
|
|
562
|
-
cursorLeft:
|
|
561
|
+
cursorLeft: t,
|
|
563
562
|
background: n,
|
|
564
563
|
handleDrag: c
|
|
565
564
|
}) => {
|
|
566
565
|
const r = ne(), s = G("color-svpanel");
|
|
567
566
|
function u() {
|
|
568
|
-
const f = e.color.get("saturation"), o = e.color.get("value"), h = r.vnode.el, { clientWidth:
|
|
569
|
-
|
|
567
|
+
const f = e.color.get("saturation"), o = e.color.get("value"), h = r.vnode.el, { clientWidth: v, clientHeight: C } = h;
|
|
568
|
+
t.value = f * v / 100, l.value = (100 - o) * C / 100, n.value = `hsl(${e.color.get("hue")}, 100%, 50%)`;
|
|
570
569
|
}
|
|
571
570
|
re(() => {
|
|
572
571
|
fe(r.vnode.el, {
|
|
@@ -577,7 +576,7 @@ const Zl = x({
|
|
|
577
576
|
c(f);
|
|
578
577
|
}
|
|
579
578
|
}), u();
|
|
580
|
-
}),
|
|
579
|
+
}), B(
|
|
581
580
|
[
|
|
582
581
|
() => e.color.get("hue"),
|
|
583
582
|
() => e.color.get("value"),
|
|
@@ -585,25 +584,25 @@ const Zl = x({
|
|
|
585
584
|
],
|
|
586
585
|
() => u()
|
|
587
586
|
);
|
|
588
|
-
const i =
|
|
587
|
+
const i = w(() => s.b()), b = w(() => s.e("cursor")), V = w(() => ({
|
|
589
588
|
backgroundColor: n.value
|
|
590
|
-
})), g =
|
|
591
|
-
top:
|
|
592
|
-
left:
|
|
589
|
+
})), g = w(() => ({
|
|
590
|
+
top: ae(l.value),
|
|
591
|
+
left: ae(t.value)
|
|
593
592
|
}));
|
|
594
593
|
return {
|
|
595
594
|
rootKls: i,
|
|
596
595
|
cursorKls: b,
|
|
597
|
-
rootStyle:
|
|
596
|
+
rootStyle: V,
|
|
598
597
|
cursorStyle: g,
|
|
599
598
|
update: u
|
|
600
599
|
};
|
|
601
|
-
},
|
|
600
|
+
}, aa = ["tabindex", "aria-disabled", "aria-label", "aria-valuenow", "aria-valuetext"], oa = M({
|
|
602
601
|
name: "ElSvPanel",
|
|
603
602
|
__name: "sv-panel",
|
|
604
603
|
props: Zl,
|
|
605
604
|
setup(e, { expose: l }) {
|
|
606
|
-
const
|
|
605
|
+
const t = e, {
|
|
607
606
|
cursorRef: n,
|
|
608
607
|
cursorTop: c,
|
|
609
608
|
cursorLeft: r,
|
|
@@ -611,167 +610,167 @@ const Zl = x({
|
|
|
611
610
|
saturation: u,
|
|
612
611
|
brightness: i,
|
|
613
612
|
handleClick: b,
|
|
614
|
-
handleDrag:
|
|
613
|
+
handleDrag: V,
|
|
615
614
|
handleKeydown: g
|
|
616
|
-
} =
|
|
617
|
-
|
|
615
|
+
} = ea(t), { rootKls: f, cursorKls: o, rootStyle: h, cursorStyle: v, update: C } = la(
|
|
616
|
+
t,
|
|
618
617
|
{
|
|
619
618
|
cursorTop: c,
|
|
620
619
|
cursorLeft: r,
|
|
621
620
|
background: s,
|
|
622
|
-
handleDrag:
|
|
621
|
+
handleDrag: V
|
|
623
622
|
}
|
|
624
|
-
), { t: d } =
|
|
623
|
+
), { t: d } = x(), m = w(() => d("el.colorpicker.svLabel")), y = w(() => d("el.colorpicker.svDescription", {
|
|
625
624
|
saturation: u.value,
|
|
626
625
|
brightness: i.value,
|
|
627
|
-
color:
|
|
626
|
+
color: t.color.value
|
|
628
627
|
}));
|
|
629
628
|
return l({
|
|
630
629
|
update: C
|
|
631
|
-
}), (_, E) => (
|
|
630
|
+
}), (_, E) => (T(), D(
|
|
632
631
|
"div",
|
|
633
632
|
{
|
|
634
|
-
class: P(
|
|
635
|
-
style:
|
|
636
|
-
onClick: E[1] || (E[1] = (...
|
|
633
|
+
class: P(a(f)),
|
|
634
|
+
style: U(a(h)),
|
|
635
|
+
onClick: E[1] || (E[1] = (...F) => a(b) && a(b)(...F))
|
|
637
636
|
},
|
|
638
637
|
[
|
|
639
|
-
|
|
638
|
+
R("div", {
|
|
640
639
|
ref_key: "cursorRef",
|
|
641
640
|
ref: n,
|
|
642
|
-
class: P(
|
|
643
|
-
style:
|
|
641
|
+
class: P(a(o)),
|
|
642
|
+
style: U(a(v)),
|
|
644
643
|
tabindex: _.disabled ? void 0 : 0,
|
|
645
644
|
"aria-disabled": _.disabled,
|
|
646
645
|
role: "slider",
|
|
647
646
|
"aria-valuemin": "0,0",
|
|
648
647
|
"aria-valuemax": "100,100",
|
|
649
|
-
"aria-label":
|
|
650
|
-
"aria-valuenow": `${
|
|
648
|
+
"aria-label": m.value,
|
|
649
|
+
"aria-valuenow": `${a(u)},${a(i)}`,
|
|
651
650
|
"aria-valuetext": y.value,
|
|
652
|
-
onKeydown: E[0] || (E[0] = (...
|
|
653
|
-
}, null, 46,
|
|
651
|
+
onKeydown: E[0] || (E[0] = (...F) => a(g) && a(g)(...F))
|
|
652
|
+
}, null, 46, aa)
|
|
654
653
|
],
|
|
655
654
|
6
|
|
656
655
|
));
|
|
657
656
|
}
|
|
658
657
|
});
|
|
659
|
-
var
|
|
660
|
-
const
|
|
661
|
-
const
|
|
662
|
-
new
|
|
658
|
+
var ta = /* @__PURE__ */ N(oa, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/sv-panel.vue"]]);
|
|
659
|
+
const Ne = (e, l) => {
|
|
660
|
+
const t = Sl(
|
|
661
|
+
new te({
|
|
663
662
|
enableAlpha: e.showAlpha,
|
|
664
663
|
format: e.colorFormat || "",
|
|
665
664
|
value: e.modelValue
|
|
666
665
|
})
|
|
667
666
|
);
|
|
668
|
-
return
|
|
667
|
+
return B(
|
|
669
668
|
() => [e.colorFormat, e.showAlpha],
|
|
670
669
|
() => {
|
|
671
|
-
|
|
670
|
+
t.enableAlpha = e.showAlpha, t.format = e.colorFormat || t.format, t.doOnChange(), l(z, t.value);
|
|
672
671
|
}
|
|
673
672
|
), {
|
|
674
|
-
color:
|
|
673
|
+
color: t
|
|
675
674
|
};
|
|
676
|
-
},
|
|
675
|
+
}, na = M({
|
|
677
676
|
name: "ElColorPickerPanel",
|
|
678
677
|
__name: "color-picker-panel",
|
|
679
|
-
props:
|
|
678
|
+
props: We,
|
|
680
679
|
emits: jl,
|
|
681
|
-
setup(e, { expose: l, emit:
|
|
682
|
-
const n = e, c =
|
|
683
|
-
|
|
684
|
-
() =>
|
|
680
|
+
setup(e, { expose: l, emit: t }) {
|
|
681
|
+
const n = e, c = t, r = G("color-picker-panel"), { formItem: s } = Te(), u = Le(), i = K(), b = K(), V = K(), g = K(), f = K(""), { color: o } = pe(
|
|
682
|
+
He,
|
|
683
|
+
() => Ne(n, c),
|
|
685
684
|
!0
|
|
686
685
|
);
|
|
687
686
|
function h() {
|
|
688
687
|
o.fromString(f.value), o.value !== f.value && (f.value = o.value);
|
|
689
688
|
}
|
|
690
|
-
function
|
|
689
|
+
function v() {
|
|
691
690
|
var d;
|
|
692
|
-
n.validateEvent && ((d = s?.validate) == null || d.call(s, "blur").catch((
|
|
691
|
+
n.validateEvent && ((d = s?.validate) == null || d.call(s, "blur").catch((m) => j(m)));
|
|
693
692
|
}
|
|
694
693
|
function C() {
|
|
695
|
-
var d,
|
|
696
|
-
(d = i.value) == null || d.update(), (
|
|
694
|
+
var d, m, y;
|
|
695
|
+
(d = i.value) == null || d.update(), (m = b.value) == null || m.update(), (y = V.value) == null || y.update();
|
|
697
696
|
}
|
|
698
697
|
return re(() => {
|
|
699
698
|
n.modelValue && (f.value = o.value), X(C);
|
|
700
|
-
}),
|
|
699
|
+
}), B(
|
|
701
700
|
() => n.modelValue,
|
|
702
701
|
(d) => {
|
|
703
702
|
d !== o.value && (d ? o.fromString(d) : o.clear());
|
|
704
703
|
}
|
|
705
|
-
),
|
|
704
|
+
), B(
|
|
706
705
|
() => o.value,
|
|
707
706
|
(d) => {
|
|
708
|
-
c(
|
|
707
|
+
c(z, d), f.value = d, n.validateEvent && s?.validate("change").catch((m) => j(m));
|
|
709
708
|
}
|
|
710
|
-
), De(
|
|
711
|
-
currentColor:
|
|
709
|
+
), De(ze, {
|
|
710
|
+
currentColor: w(() => o.value)
|
|
712
711
|
}), l({
|
|
713
712
|
color: o,
|
|
714
713
|
inputRef: g,
|
|
715
714
|
update: C
|
|
716
|
-
}), (d,
|
|
715
|
+
}), (d, m) => (T(), D(
|
|
717
716
|
"div",
|
|
718
717
|
{
|
|
719
|
-
class: P([
|
|
720
|
-
onFocusout:
|
|
718
|
+
class: P([a(r).b(), a(r).is("disabled", a(u)), a(r).is("border", d.border)]),
|
|
719
|
+
onFocusout: v
|
|
721
720
|
},
|
|
722
721
|
[
|
|
723
|
-
|
|
722
|
+
R(
|
|
724
723
|
"div",
|
|
725
724
|
{
|
|
726
|
-
class: P(
|
|
725
|
+
class: P(a(r).e("wrapper"))
|
|
727
726
|
},
|
|
728
727
|
[
|
|
729
728
|
k(Yl, {
|
|
730
729
|
ref_key: "hueRef",
|
|
731
730
|
ref: i,
|
|
732
731
|
class: "hue-slider",
|
|
733
|
-
color:
|
|
732
|
+
color: a(o),
|
|
734
733
|
vertical: "",
|
|
735
|
-
disabled:
|
|
734
|
+
disabled: a(u)
|
|
736
735
|
}, null, 8, ["color", "disabled"]),
|
|
737
|
-
k(
|
|
736
|
+
k(ta, {
|
|
738
737
|
ref_key: "svRef",
|
|
739
738
|
ref: b,
|
|
740
|
-
color:
|
|
741
|
-
disabled:
|
|
739
|
+
color: a(o),
|
|
740
|
+
disabled: a(u)
|
|
742
741
|
}, null, 8, ["color", "disabled"])
|
|
743
742
|
],
|
|
744
743
|
2
|
|
745
744
|
),
|
|
746
|
-
d.showAlpha ? (
|
|
745
|
+
d.showAlpha ? (T(), oe(Hl, {
|
|
747
746
|
key: 0,
|
|
748
747
|
ref_key: "alphaRef",
|
|
749
|
-
ref:
|
|
750
|
-
color:
|
|
751
|
-
disabled:
|
|
752
|
-
}, null, 8, ["color", "disabled"])) :
|
|
753
|
-
d.predefine ? (
|
|
748
|
+
ref: V,
|
|
749
|
+
color: a(o),
|
|
750
|
+
disabled: a(u)
|
|
751
|
+
}, null, 8, ["color", "disabled"])) : Ee("v-if", !0),
|
|
752
|
+
d.predefine ? (T(), oe(Ql, {
|
|
754
753
|
key: 1,
|
|
755
754
|
ref: "predefine",
|
|
756
755
|
"enable-alpha": d.showAlpha,
|
|
757
|
-
color:
|
|
756
|
+
color: a(o),
|
|
758
757
|
colors: d.predefine,
|
|
759
|
-
disabled:
|
|
760
|
-
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) :
|
|
761
|
-
|
|
758
|
+
disabled: a(u)
|
|
759
|
+
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : Ee("v-if", !0),
|
|
760
|
+
R(
|
|
762
761
|
"div",
|
|
763
762
|
{
|
|
764
|
-
class: P(
|
|
763
|
+
class: P(a(r).e("footer"))
|
|
765
764
|
},
|
|
766
765
|
[
|
|
767
|
-
k(
|
|
766
|
+
k(a(yl), {
|
|
768
767
|
ref_key: "inputRef",
|
|
769
768
|
ref: g,
|
|
770
769
|
modelValue: f.value,
|
|
771
|
-
"onUpdate:modelValue":
|
|
770
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => f.value = y),
|
|
772
771
|
"validate-event": !1,
|
|
773
772
|
size: "small",
|
|
774
|
-
disabled:
|
|
773
|
+
disabled: a(u),
|
|
775
774
|
onChange: h
|
|
776
775
|
}, null, 8, ["modelValue", "disabled"]),
|
|
777
776
|
El(d.$slots, "footer")
|
|
@@ -783,14 +782,14 @@ const Ye = (e, l) => {
|
|
|
783
782
|
));
|
|
784
783
|
}
|
|
785
784
|
});
|
|
786
|
-
var
|
|
787
|
-
const
|
|
785
|
+
var ra = /* @__PURE__ */ N(na, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/color-picker-panel.vue"]]);
|
|
786
|
+
const sa = Be(ra), ia = q({
|
|
788
787
|
persistent: {
|
|
789
788
|
type: Boolean,
|
|
790
789
|
default: !0
|
|
791
790
|
},
|
|
792
791
|
modelValue: {
|
|
793
|
-
type:
|
|
792
|
+
type: O(String),
|
|
794
793
|
default: void 0
|
|
795
794
|
},
|
|
796
795
|
id: String,
|
|
@@ -800,7 +799,7 @@ const st = Te(rt), it = x({
|
|
|
800
799
|
type: Boolean,
|
|
801
800
|
default: void 0
|
|
802
801
|
},
|
|
803
|
-
size:
|
|
802
|
+
size: il,
|
|
804
803
|
popperClass: Z.popperClass,
|
|
805
804
|
popperStyle: Z.popperStyle,
|
|
806
805
|
tabindex: {
|
|
@@ -810,154 +809,154 @@ const st = Te(rt), it = x({
|
|
|
810
809
|
teleported: Z.teleported,
|
|
811
810
|
appendTo: Z.appendTo,
|
|
812
811
|
predefine: {
|
|
813
|
-
type:
|
|
812
|
+
type: O(Array)
|
|
814
813
|
},
|
|
815
814
|
validateEvent: {
|
|
816
815
|
type: Boolean,
|
|
817
816
|
default: !0
|
|
818
817
|
},
|
|
819
|
-
...
|
|
820
|
-
...
|
|
821
|
-
}),
|
|
822
|
-
[
|
|
818
|
+
...sl,
|
|
819
|
+
...Dl(["ariaLabel"])
|
|
820
|
+
}), ua = {
|
|
821
|
+
[z]: (e) => ee(e) || le(e),
|
|
823
822
|
[de]: (e) => ee(e) || le(e),
|
|
824
823
|
activeChange: (e) => ee(e) || le(e),
|
|
825
824
|
focus: (e) => e instanceof FocusEvent,
|
|
826
825
|
blur: (e) => e instanceof FocusEvent
|
|
827
|
-
},
|
|
826
|
+
}, ca = ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex"], da = M({
|
|
828
827
|
name: "ElColorPicker",
|
|
829
828
|
__name: "color-picker",
|
|
830
|
-
props:
|
|
831
|
-
emits:
|
|
832
|
-
setup(e, { expose: l, emit:
|
|
833
|
-
const n = e, c =
|
|
829
|
+
props: ia,
|
|
830
|
+
emits: ua,
|
|
831
|
+
setup(e, { expose: l, emit: t }) {
|
|
832
|
+
const n = e, c = t, { t: r } = x(), s = G("color"), { formItem: u } = Te(), i = ul(), b = Le(), { valueOnClear: V, isEmptyValue: g } = cl(n, null), f = Ne(n, c), { inputId: o, isLabeledByFormItem: h } = dl(n, {
|
|
834
833
|
formItemContext: u
|
|
835
|
-
}),
|
|
834
|
+
}), v = K(), C = K(), d = K(), m = K(!1), y = K(!1);
|
|
836
835
|
let _ = !0;
|
|
837
|
-
const { isFocused: E, handleFocus:
|
|
836
|
+
const { isFocused: E, handleFocus: F, handleBlur: ve } = Il(C, {
|
|
838
837
|
disabled: b,
|
|
839
838
|
beforeBlur(p) {
|
|
840
839
|
var S;
|
|
841
|
-
return (S =
|
|
840
|
+
return (S = v.value) == null ? void 0 : S.isFocusInsideContent(p);
|
|
842
841
|
},
|
|
843
842
|
afterBlur() {
|
|
844
843
|
var p;
|
|
845
|
-
Y(!1),
|
|
844
|
+
Y(!1), W(), n.validateEvent && ((p = u?.validate) == null || p.call(u, "blur").catch((S) => j(S)));
|
|
846
845
|
}
|
|
847
|
-
}),
|
|
846
|
+
}), L = fl(
|
|
848
847
|
() => {
|
|
849
848
|
var p, S;
|
|
850
849
|
return (S = (p = d.value) == null ? void 0 : p.color) != null ? S : f.color;
|
|
851
850
|
}
|
|
852
|
-
),
|
|
853
|
-
() =>
|
|
854
|
-
),
|
|
851
|
+
), Ye = w(
|
|
852
|
+
() => pl(n, Object.keys(We))
|
|
853
|
+
), Xe = w(() => !n.modelValue && !y.value ? "transparent" : Je(L, n.showAlpha)), je = w(() => !n.modelValue && !y.value ? "" : L.value), qe = w(() => h.value ? void 0 : n.ariaLabel || r("el.colorpicker.defaultLabel")), Ge = w(() => h.value ? u?.labelId : void 0), xe = w(() => [
|
|
855
854
|
s.b("picker"),
|
|
856
855
|
s.is("disabled", b.value),
|
|
857
856
|
s.bm("picker", i.value),
|
|
858
857
|
s.is("focused", E.value)
|
|
859
858
|
]);
|
|
860
|
-
function
|
|
861
|
-
const { r: I, g:
|
|
862
|
-
return S ? `rgba(${I}, ${
|
|
859
|
+
function Je(p, S) {
|
|
860
|
+
const { r: I, g: ye, b: Ce, a: nl } = p.toRgb();
|
|
861
|
+
return S ? `rgba(${I}, ${ye}, ${Ce}, ${nl})` : `rgb(${I}, ${ye}, ${Ce})`;
|
|
863
862
|
}
|
|
864
863
|
function Y(p) {
|
|
865
|
-
|
|
864
|
+
m.value = p;
|
|
866
865
|
}
|
|
867
866
|
const J = ml(Y, 100, { leading: !0 });
|
|
868
|
-
function
|
|
867
|
+
function he() {
|
|
869
868
|
b.value || Y(!0);
|
|
870
869
|
}
|
|
871
|
-
function
|
|
872
|
-
J(!1),
|
|
870
|
+
function be() {
|
|
871
|
+
J(!1), W();
|
|
873
872
|
}
|
|
874
|
-
function
|
|
873
|
+
function W() {
|
|
875
874
|
X(() => {
|
|
876
|
-
n.modelValue ?
|
|
875
|
+
n.modelValue ? L.fromString(n.modelValue) : (L.value = "", X(() => {
|
|
877
876
|
y.value = !1;
|
|
878
877
|
}));
|
|
879
878
|
});
|
|
880
879
|
}
|
|
881
|
-
function
|
|
882
|
-
b.value || (
|
|
880
|
+
function Qe() {
|
|
881
|
+
b.value || (m.value && W(), J(!m.value));
|
|
883
882
|
}
|
|
884
|
-
function
|
|
885
|
-
const p = g(
|
|
886
|
-
c(
|
|
887
|
-
const S = new
|
|
883
|
+
function Ze() {
|
|
884
|
+
const p = g(L.value) ? V.value : L.value;
|
|
885
|
+
c(z, p), c(de, p), n.validateEvent && u?.validate("change").catch((S) => j(S)), J(!1), X(() => {
|
|
886
|
+
const S = new te({
|
|
888
887
|
enableAlpha: n.showAlpha,
|
|
889
888
|
format: n.colorFormat || "",
|
|
890
889
|
value: n.modelValue
|
|
891
890
|
});
|
|
892
|
-
|
|
891
|
+
L.compare(S) || W();
|
|
893
892
|
});
|
|
894
893
|
}
|
|
895
|
-
function
|
|
896
|
-
J(!1), c(
|
|
894
|
+
function el() {
|
|
895
|
+
J(!1), c(z, V.value), c(de, V.value), n.modelValue !== V.value && n.validateEvent && u?.validate("change").catch((p) => j(p)), W();
|
|
897
896
|
}
|
|
898
|
-
function
|
|
897
|
+
function ll() {
|
|
899
898
|
var p, S;
|
|
900
899
|
(S = (p = d?.value) == null ? void 0 : p.inputRef) == null || S.focus();
|
|
901
900
|
}
|
|
902
|
-
function
|
|
903
|
-
|
|
901
|
+
function al() {
|
|
902
|
+
m.value && (be(), E.value && ke());
|
|
904
903
|
}
|
|
905
|
-
function
|
|
906
|
-
p.preventDefault(), p.stopPropagation(), Y(!1),
|
|
904
|
+
function ge(p) {
|
|
905
|
+
p.preventDefault(), p.stopPropagation(), Y(!1), W();
|
|
907
906
|
}
|
|
908
|
-
function
|
|
907
|
+
function ol(p) {
|
|
909
908
|
switch (me(p)) {
|
|
910
|
-
case
|
|
911
|
-
case
|
|
912
|
-
case
|
|
913
|
-
p.preventDefault(), p.stopPropagation(),
|
|
909
|
+
case A.enter:
|
|
910
|
+
case A.numpadEnter:
|
|
911
|
+
case A.space:
|
|
912
|
+
p.preventDefault(), p.stopPropagation(), he();
|
|
914
913
|
break;
|
|
915
|
-
case
|
|
916
|
-
|
|
914
|
+
case A.esc:
|
|
915
|
+
ge(p);
|
|
917
916
|
break;
|
|
918
917
|
}
|
|
919
918
|
}
|
|
920
|
-
function
|
|
919
|
+
function ke() {
|
|
921
920
|
C.value.focus();
|
|
922
921
|
}
|
|
923
|
-
function
|
|
922
|
+
function tl() {
|
|
924
923
|
C.value.blur();
|
|
925
924
|
}
|
|
926
|
-
return
|
|
927
|
-
() =>
|
|
925
|
+
return B(
|
|
926
|
+
() => je.value,
|
|
928
927
|
(p) => {
|
|
929
928
|
_ && c("activeChange", p), _ = !0;
|
|
930
929
|
}
|
|
931
|
-
),
|
|
932
|
-
() =>
|
|
930
|
+
), B(
|
|
931
|
+
() => L.value,
|
|
933
932
|
() => {
|
|
934
933
|
!n.modelValue && !y.value && (y.value = !0);
|
|
935
934
|
}
|
|
936
|
-
),
|
|
935
|
+
), B(
|
|
937
936
|
() => n.modelValue,
|
|
938
937
|
(p) => {
|
|
939
|
-
p ? p && p !==
|
|
938
|
+
p ? p && p !== L.value && (_ = !1, L.fromString(p)) : y.value = !1;
|
|
940
939
|
}
|
|
941
|
-
),
|
|
942
|
-
() =>
|
|
940
|
+
), B(
|
|
941
|
+
() => m.value,
|
|
943
942
|
() => {
|
|
944
943
|
d.value && X(d.value.update);
|
|
945
944
|
}
|
|
946
|
-
), De(
|
|
947
|
-
color:
|
|
948
|
-
show:
|
|
949
|
-
hide:
|
|
950
|
-
focus:
|
|
951
|
-
blur:
|
|
952
|
-
}), (p, S) => (
|
|
945
|
+
), De(He, f), l({
|
|
946
|
+
color: L,
|
|
947
|
+
show: he,
|
|
948
|
+
hide: be,
|
|
949
|
+
focus: ke,
|
|
950
|
+
blur: tl
|
|
951
|
+
}), (p, S) => (T(), oe(a(Bl), {
|
|
953
952
|
ref_key: "popper",
|
|
954
|
-
ref:
|
|
955
|
-
visible:
|
|
953
|
+
ref: v,
|
|
954
|
+
visible: m.value,
|
|
956
955
|
"show-arrow": !1,
|
|
957
956
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
958
957
|
offset: 0,
|
|
959
958
|
"gpu-acceleration": !1,
|
|
960
|
-
"popper-class": [
|
|
959
|
+
"popper-class": [a(s).be("picker", "panel"), p.popperClass],
|
|
961
960
|
"popper-style": p.popperStyle,
|
|
962
961
|
"stop-popper-mouse-event": !1,
|
|
963
962
|
pure: "",
|
|
@@ -966,49 +965,49 @@ const st = Te(rt), it = x({
|
|
|
966
965
|
effect: "light",
|
|
967
966
|
trigger: "click",
|
|
968
967
|
teleported: p.teleported,
|
|
969
|
-
transition: `${
|
|
968
|
+
transition: `${a(s).namespace.value}-zoom-in-top`,
|
|
970
969
|
persistent: p.persistent,
|
|
971
970
|
"append-to": p.appendTo,
|
|
972
|
-
onShow:
|
|
971
|
+
onShow: ll,
|
|
973
972
|
onHide: S[2] || (S[2] = (I) => Y(!1))
|
|
974
973
|
}, {
|
|
975
974
|
content: $(() => [
|
|
976
|
-
se((
|
|
977
|
-
|
|
978
|
-
|
|
975
|
+
se((T(), oe(
|
|
976
|
+
a(sa),
|
|
977
|
+
Pe({
|
|
979
978
|
ref_key: "pickerPanelRef",
|
|
980
979
|
ref: d
|
|
981
|
-
},
|
|
980
|
+
}, Ye.value, {
|
|
982
981
|
border: !1,
|
|
983
982
|
"validate-event": !1,
|
|
984
|
-
onKeydown: Pl(
|
|
983
|
+
onKeydown: Pl(ge, ["esc"])
|
|
985
984
|
}),
|
|
986
985
|
{
|
|
987
986
|
footer: $(() => [
|
|
988
|
-
|
|
989
|
-
k(
|
|
990
|
-
class: P(
|
|
987
|
+
R("div", null, [
|
|
988
|
+
k(a(_e), {
|
|
989
|
+
class: P(a(s).be("footer", "link-btn")),
|
|
991
990
|
text: "",
|
|
992
991
|
size: "small",
|
|
993
|
-
onClick:
|
|
992
|
+
onClick: el
|
|
994
993
|
}, {
|
|
995
994
|
default: $(() => [
|
|
996
|
-
|
|
997
|
-
|
|
995
|
+
Ke(
|
|
996
|
+
Re(a(r)("el.colorpicker.clear")),
|
|
998
997
|
1
|
|
999
998
|
)
|
|
1000
999
|
]),
|
|
1001
1000
|
_: 1
|
|
1002
1001
|
}, 8, ["class"]),
|
|
1003
|
-
k(
|
|
1002
|
+
k(a(_e), {
|
|
1004
1003
|
plain: "",
|
|
1005
1004
|
size: "small",
|
|
1006
|
-
class: P(
|
|
1007
|
-
onClick:
|
|
1005
|
+
class: P(a(s).be("footer", "btn")),
|
|
1006
|
+
onClick: Ze
|
|
1008
1007
|
}, {
|
|
1009
1008
|
default: $(() => [
|
|
1010
|
-
|
|
1011
|
-
|
|
1009
|
+
Ke(
|
|
1010
|
+
Re(a(r)("el.colorpicker.confirm")),
|
|
1012
1011
|
1
|
|
1013
1012
|
)
|
|
1014
1013
|
]),
|
|
@@ -1020,67 +1019,67 @@ const st = Te(rt), it = x({
|
|
|
1020
1019
|
},
|
|
1021
1020
|
16
|
|
1022
1021
|
)), [
|
|
1023
|
-
[
|
|
1022
|
+
[a(Ol), al, C.value]
|
|
1024
1023
|
])
|
|
1025
1024
|
]),
|
|
1026
1025
|
default: $(() => [
|
|
1027
|
-
|
|
1028
|
-
id:
|
|
1026
|
+
R("div", Pe({
|
|
1027
|
+
id: a(o),
|
|
1029
1028
|
ref_key: "triggerRef",
|
|
1030
1029
|
ref: C
|
|
1031
1030
|
}, p.$attrs, {
|
|
1032
|
-
class:
|
|
1031
|
+
class: xe.value,
|
|
1033
1032
|
role: "button",
|
|
1034
|
-
"aria-label":
|
|
1035
|
-
"aria-labelledby":
|
|
1036
|
-
"aria-description":
|
|
1037
|
-
"aria-disabled":
|
|
1038
|
-
tabindex:
|
|
1039
|
-
onKeydown:
|
|
1040
|
-
onFocus: S[0] || (S[0] = (...I) =>
|
|
1041
|
-
onBlur: S[1] || (S[1] = (...I) =>
|
|
1033
|
+
"aria-label": qe.value,
|
|
1034
|
+
"aria-labelledby": Ge.value,
|
|
1035
|
+
"aria-description": a(r)("el.colorpicker.description", { color: p.modelValue || "" }),
|
|
1036
|
+
"aria-disabled": a(b),
|
|
1037
|
+
tabindex: a(b) ? void 0 : p.tabindex,
|
|
1038
|
+
onKeydown: ol,
|
|
1039
|
+
onFocus: S[0] || (S[0] = (...I) => a(F) && a(F)(...I)),
|
|
1040
|
+
onBlur: S[1] || (S[1] = (...I) => a(ve) && a(ve)(...I))
|
|
1042
1041
|
}), [
|
|
1043
|
-
|
|
1042
|
+
R(
|
|
1044
1043
|
"div",
|
|
1045
1044
|
{
|
|
1046
|
-
class: P(
|
|
1047
|
-
onClick:
|
|
1045
|
+
class: P(a(s).be("picker", "trigger")),
|
|
1046
|
+
onClick: Qe
|
|
1048
1047
|
},
|
|
1049
1048
|
[
|
|
1050
|
-
|
|
1049
|
+
R(
|
|
1051
1050
|
"span",
|
|
1052
1051
|
{
|
|
1053
|
-
class: P([
|
|
1052
|
+
class: P([a(s).be("picker", "color"), a(s).is("alpha", p.showAlpha)])
|
|
1054
1053
|
},
|
|
1055
1054
|
[
|
|
1056
|
-
|
|
1055
|
+
R(
|
|
1057
1056
|
"span",
|
|
1058
1057
|
{
|
|
1059
|
-
class: P(
|
|
1060
|
-
style:
|
|
1061
|
-
backgroundColor:
|
|
1058
|
+
class: P(a(s).be("picker", "color-inner")),
|
|
1059
|
+
style: U({
|
|
1060
|
+
backgroundColor: Xe.value
|
|
1062
1061
|
})
|
|
1063
1062
|
},
|
|
1064
1063
|
[
|
|
1065
|
-
se(k(
|
|
1066
|
-
class: P([
|
|
1064
|
+
se(k(a(we), {
|
|
1065
|
+
class: P([a(s).be("picker", "icon"), a(s).is("icon-arrow-down")])
|
|
1067
1066
|
}, {
|
|
1068
1067
|
default: $(() => [
|
|
1069
|
-
k(
|
|
1068
|
+
k(a(vl))
|
|
1070
1069
|
]),
|
|
1071
1070
|
_: 1
|
|
1072
1071
|
}, 8, ["class"]), [
|
|
1073
|
-
[
|
|
1072
|
+
[$e, p.modelValue || y.value]
|
|
1074
1073
|
]),
|
|
1075
|
-
se(k(
|
|
1076
|
-
class: P([
|
|
1074
|
+
se(k(a(we), {
|
|
1075
|
+
class: P([a(s).be("picker", "empty"), a(s).is("icon-close")])
|
|
1077
1076
|
}, {
|
|
1078
1077
|
default: $(() => [
|
|
1079
|
-
k(
|
|
1078
|
+
k(a(hl))
|
|
1080
1079
|
]),
|
|
1081
1080
|
_: 1
|
|
1082
1081
|
}, 8, ["class"]), [
|
|
1083
|
-
[
|
|
1082
|
+
[$e, !p.modelValue && !y.value]
|
|
1084
1083
|
])
|
|
1085
1084
|
],
|
|
1086
1085
|
6
|
|
@@ -1091,62 +1090,23 @@ const st = Te(rt), it = x({
|
|
|
1091
1090
|
],
|
|
1092
1091
|
2
|
|
1093
1092
|
)
|
|
1094
|
-
], 16,
|
|
1093
|
+
], 16, ca)
|
|
1095
1094
|
]),
|
|
1096
1095
|
_: 1
|
|
1097
1096
|
}, 8, ["visible", "popper-class", "popper-style", "teleported", "transition", "persistent", "append-to"]));
|
|
1098
1097
|
}
|
|
1099
1098
|
});
|
|
1100
|
-
var
|
|
1101
|
-
const
|
|
1102
|
-
t: "1639130711621",
|
|
1103
|
-
class: "icon",
|
|
1104
|
-
viewBox: "0 0 1024 1024",
|
|
1105
|
-
version: "1.1",
|
|
1106
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1107
|
-
"p-id": "3985",
|
|
1108
|
-
width: "64",
|
|
1109
|
-
height: "64"
|
|
1110
|
-
};
|
|
1111
|
-
function ht(e, l) {
|
|
1112
|
-
return R(), T("svg", mt, [...l[0] || (l[0] = [
|
|
1113
|
-
L("path", {
|
|
1114
|
-
d: "M948.55625 868.24999971H549.50000029V95.075L948.55625 868.24999971zM624.5 793.25h200.94374971L624.5 403.92500029V793.25zM474.49999971 95.075V868.24999971H75.44375L474.49999971 95.075z",
|
|
1115
|
-
"p-id": "3986"
|
|
1116
|
-
}, null, -1)
|
|
1117
|
-
])]);
|
|
1118
|
-
}
|
|
1119
|
-
const bt = /* @__PURE__ */ pe(vt, [["render", ht]]), gt = {}, kt = {
|
|
1120
|
-
t: "1639130694709",
|
|
1121
|
-
class: "icon",
|
|
1122
|
-
viewBox: "0 0 1024 1024",
|
|
1123
|
-
version: "1.1",
|
|
1124
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1125
|
-
"p-id": "3985",
|
|
1126
|
-
width: "64",
|
|
1127
|
-
height: "64"
|
|
1128
|
-
};
|
|
1129
|
-
function yt(e, l) {
|
|
1130
|
-
return R(), T("svg", kt, [...l[0] || (l[0] = [
|
|
1131
|
-
L("path", {
|
|
1132
|
-
d: "M230.75 624.5v200.94374971L620.07499971 624.5H230.75zM155.75000029 948.55625V549.50000029h773.17499971L155.75000029 948.55625zM928.925 474.49999971H155.75000029V75.44375L928.925 474.49999971z",
|
|
1133
|
-
"p-id": "3986"
|
|
1134
|
-
}, null, -1)
|
|
1135
|
-
])]);
|
|
1136
|
-
}
|
|
1137
|
-
const Ct = /* @__PURE__ */ pe(gt, [["render", yt]]), wt = U({
|
|
1099
|
+
var fa = /* @__PURE__ */ N(da, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);
|
|
1100
|
+
const pa = Be(fa), ma = M({
|
|
1138
1101
|
name: "BasicSetting",
|
|
1139
|
-
components: {
|
|
1140
|
-
IconFlipV: Ct,
|
|
1141
|
-
IconFlipH: bt
|
|
1142
|
-
},
|
|
1102
|
+
components: {},
|
|
1143
1103
|
setup() {
|
|
1144
|
-
const e =
|
|
1104
|
+
const e = pe(Ll), l = K([]), t = (i) => {
|
|
1145
1105
|
e.value.attr.w = i;
|
|
1146
1106
|
}, n = (i) => {
|
|
1147
1107
|
e.value.attr.h = i;
|
|
1148
1108
|
}, c = (i) => {
|
|
1149
|
-
const
|
|
1109
|
+
const V = i.target.getBoundingClientRect(), g = V.left + V.width / 2, f = V.top + V.height / 2, o = Math.atan2(f - i.clientY, g - i.clientX) * 180 / Math.PI - 90, h = Math.round(o % 360);
|
|
1150
1110
|
e.value.attr.deg = h < 0 ? h + 360 : h;
|
|
1151
1111
|
}, r = (i) => {
|
|
1152
1112
|
l.value.includes(i) ? l.value = l.value.filter((b) => b !== i) : l.value.push(i), e.value.attr.filpV = l.value.includes("v"), e.value.attr.filpH = l.value.includes("h");
|
|
@@ -1154,9 +1114,9 @@ const Ct = /* @__PURE__ */ pe(gt, [["render", yt]]), wt = U({
|
|
|
1154
1114
|
re(() => {
|
|
1155
1115
|
e.value.attr.filpV && l.value.push("v"), e.value.attr.filpH && l.value.push("h");
|
|
1156
1116
|
});
|
|
1157
|
-
const { pageConfig: s } = Cl(
|
|
1158
|
-
return e.value.bgImg.url || (e.value.bgImg.url =
|
|
1159
|
-
visible:
|
|
1117
|
+
const { pageConfig: s } = Cl(bl());
|
|
1118
|
+
return e.value.bgImg.url || (e.value.bgImg.url = gl(e.value.id)), {
|
|
1119
|
+
visible: w({
|
|
1160
1120
|
get: () => !e.value.hided,
|
|
1161
1121
|
set: (i) => {
|
|
1162
1122
|
e.value.hided = !i;
|
|
@@ -1165,29 +1125,29 @@ const Ct = /* @__PURE__ */ pe(gt, [["render", yt]]), wt = U({
|
|
|
1165
1125
|
pageConfig: s,
|
|
1166
1126
|
com: e,
|
|
1167
1127
|
filps: l,
|
|
1168
|
-
updateWidth:
|
|
1128
|
+
updateWidth: t,
|
|
1169
1129
|
updateHeight: n,
|
|
1170
1130
|
onRotateChange: c,
|
|
1171
1131
|
onFilpChange: r,
|
|
1172
|
-
animates:
|
|
1173
|
-
animatecss:
|
|
1174
|
-
easings:
|
|
1175
|
-
repeatTypes:
|
|
1132
|
+
animates: Tl,
|
|
1133
|
+
animatecss: Fl,
|
|
1134
|
+
easings: Al,
|
|
1135
|
+
repeatTypes: Rl,
|
|
1176
1136
|
fontFamilys: Kl,
|
|
1177
1137
|
fontWeights: $l
|
|
1178
1138
|
};
|
|
1179
1139
|
}
|
|
1180
|
-
}),
|
|
1181
|
-
function
|
|
1182
|
-
const s = H("g-switch"), u = H("g-select"), i = H("g-field"), b =
|
|
1183
|
-
return
|
|
1184
|
-
|
|
1185
|
-
l[16] || (l[16] =
|
|
1140
|
+
}), va = { class: "basic-setting-wp" }, ha = { style: { display: "flex", gap: "10px", "align-items": "center", padding: "0 10px", "margin-bottom": "10px" } };
|
|
1141
|
+
function ba(e, l, t, n, c, r) {
|
|
1142
|
+
const s = H("g-switch"), u = H("g-select"), i = H("g-field"), b = pa, V = H("g-input"), g = H("g-input-number"), f = H("g-color-picker");
|
|
1143
|
+
return T(), D("div", va, [
|
|
1144
|
+
R("div", ha, [
|
|
1145
|
+
l[16] || (l[16] = R("span", { style: { "font-size": "12px", color: "#606266" } }, "是否显示:", -1)),
|
|
1186
1146
|
k(s, {
|
|
1187
1147
|
modelValue: e.visible,
|
|
1188
1148
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => e.visible = o)
|
|
1189
1149
|
}, null, 8, ["modelValue"]),
|
|
1190
|
-
l[17] || (l[17] =
|
|
1150
|
+
l[17] || (l[17] = R("span", { style: { "margin-left": "20px", "font-size": "12px", color: "#606266" } }, "显示标题:", -1)),
|
|
1191
1151
|
k(s, {
|
|
1192
1152
|
modelValue: e.com.attr.showTitle,
|
|
1193
1153
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => e.com.attr.showTitle = o)
|
|
@@ -1211,7 +1171,7 @@ function St(e, l, a, n, c, r) {
|
|
|
1211
1171
|
"show-alpha": "",
|
|
1212
1172
|
teleported: !1
|
|
1213
1173
|
}, null, 8, ["modelValue"]),
|
|
1214
|
-
k(
|
|
1174
|
+
k(V, {
|
|
1215
1175
|
modelValue: e.com.attr.fontColor,
|
|
1216
1176
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => e.com.attr.fontColor = o),
|
|
1217
1177
|
inline: ""
|
|
@@ -1257,7 +1217,7 @@ function St(e, l, a, n, c, r) {
|
|
|
1257
1217
|
"show-alpha": "",
|
|
1258
1218
|
teleported: !1
|
|
1259
1219
|
}, null, 8, ["modelValue"]),
|
|
1260
|
-
k(
|
|
1220
|
+
k(V, {
|
|
1261
1221
|
modelValue: e.com.attr.borderColor,
|
|
1262
1222
|
"onUpdate:modelValue": l[9] || (l[9] = (o) => e.com.attr.borderColor = o),
|
|
1263
1223
|
inline: ""
|
|
@@ -1355,7 +1315,7 @@ function St(e, l, a, n, c, r) {
|
|
|
1355
1315
|
})
|
|
1356
1316
|
]);
|
|
1357
1317
|
}
|
|
1358
|
-
const
|
|
1318
|
+
const Ra = /* @__PURE__ */ kl(ma, [["render", ba], ["__scopeId", "data-v-859e01a5"]]);
|
|
1359
1319
|
export {
|
|
1360
|
-
|
|
1320
|
+
Ra as default
|
|
1361
1321
|
};
|