qy-vue-plugins 1.0.2-beta → 1.0.2
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/apply-element-plus-theme.cjs +1 -0
- package/dist/apply-element-plus-theme.mjs +22 -0
- package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
- package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-C3__NQXN.js → MapTools.vue_vue_type_style_index_0_lang-C0C9opKY.js} +1 -1
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-BJi8BdV8.js → MapTools.vue_vue_type_style_index_0_lang-CZ_dEmHg.js} +2 -2
- package/dist/chunks/{ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C8wD6gZS.js → ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CjJ3e53H.js} +12 -13
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
- package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
- package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
- package/dist/chunks/aria-B5rZ0WFy.js +5 -0
- package/dist/chunks/aria-BEkkcjlH.js +115 -0
- package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
- package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
- package/dist/chunks/debounce-CHS-N31c.js +1 -0
- package/dist/chunks/debounce-DBq5TVsN.js +55 -0
- package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
- package/dist/chunks/directive-DRO4tFsQ.js +1 -0
- package/dist/chunks/index-03UF6hCZ.js +14 -0
- package/dist/chunks/index-B6SD5IcP.js +1 -0
- package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
- package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
- package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
- package/dist/chunks/index-BoFuR9-k.js +2 -0
- package/dist/chunks/index-Bs9zhLlD.js +1 -0
- package/dist/chunks/index-C-WIOEu8.js +1 -0
- package/dist/chunks/index-CD-vLVPt.js +1 -0
- package/dist/chunks/index-CD4bijv7.js +1 -0
- package/dist/chunks/index-CHRyd-8X.js +1 -0
- package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
- package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
- package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
- package/dist/chunks/index-DLBjU25P.js +3 -0
- package/dist/chunks/index-DgwQEHlD.js +12 -0
- package/dist/chunks/index-LWCtnbZP.js +13 -0
- package/dist/chunks/index-OtE8c8y9.js +1 -0
- package/dist/chunks/index-Qzqd5jTh.js +1 -0
- package/dist/chunks/index-VbRYJz2E.js +1 -0
- package/dist/chunks/index-YiSmXvH8.js +975 -0
- package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
- package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
- package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
- package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
- package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
- package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
- package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
- package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
- package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
- package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
- package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
- package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
- package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
- package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
- package/dist/chunks/utils-CrwGKkIz.js +1 -0
- package/dist/chunks/vnode-CvqQoLhR.js +1 -0
- package/dist/chunks/vnode-DpjFDm4v.js +70 -0
- package/dist/element-plus-style.cjs +1 -0
- package/dist/element-plus-style.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -10
- package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +10 -8
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +1 -1
- package/dist/mapbox/components/VideoDialog.cjs +1 -1
- package/dist/mapbox/components/VideoDialog.mjs +16 -17
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +22 -20
- package/dist/mapboxV2/MapView.cjs +1 -1
- package/dist/mapboxV2/MapView.mjs +3728 -1256
- package/dist/mapboxV2/components/MapLegend.cjs +1 -1
- package/dist/mapboxV2/components/MapLegend.mjs +51 -167
- package/dist/mapboxV2/components/MapTools.cjs +1 -1
- package/dist/mapboxV2/components/MapTools.mjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
- package/dist/mapboxV2/components/mapSetting.cjs +1 -1
- package/dist/mapboxV2/components/mapSetting.mjs +1 -1
- package/dist/mapboxV2/components/mapTopic.cjs +1 -1
- package/dist/mapboxV2/components/mapTopic.mjs +349 -446
- package/dist/mapboxV2/constant.cjs +1 -1
- package/dist/mapboxV2/constant.mjs +13 -17
- package/dist/mapboxV2/useTif.cjs +1 -1
- package/dist/mapboxV2/useTif.mjs +86 -86
- package/dist/mapboxV2/utils.cjs +1 -1
- package/dist/mapboxV2/utils.mjs +362 -279
- package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
- package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
- package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
- package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
- package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
- package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
- package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
- package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
- package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
- package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
- package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
- package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
- package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
- package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
- package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
- package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
- package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
- package/dist/mapboxV2.cjs +3 -3
- package/dist/mapboxV2.mjs +673 -824
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/apply-element-plus-theme.d.ts +1 -0
- package/dist/types/element-plus-style.d.ts +0 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
- package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
- package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
- package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
- package/dist/types/mapboxV2/useTif.d.ts +2 -2
- package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
- package/dist/types/mapboxV2/utils.d.ts +5 -0
- package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
- package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
- package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
- package/dist/types/store/mapStore.d.ts +122 -0
- package/dist/types/types/map.d.ts +111 -7
- package/package/apply-element-plus-theme.ts +23 -0
- package/package/css/common.scss +33 -0
- package/package/css/element-plus-theme.scss +30 -0
- package/package/css/map.scss +42 -0
- package/package/element-plus-style.ts +48 -0
- package/package/manageTable/index.ts +5 -0
- package/package/mapbox/index.ts +5 -0
- package/package/mapboxV2/constant.ts +4 -12
- package/package/mapboxV2/index.ts +5 -0
- package/package/mapboxV2/useTif.ts +18 -13
- package/package/mapboxV2/utils.ts +303 -143
- package/package/mapboxV2/widgets/index.ts +5 -0
- package/package/types/map.ts +129 -32
- package/package.json +27 -3
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
- package/dist/chunks/aria-B-Cm8P6h.js +0 -5
- package/dist/chunks/aria-GiGFrmP1.js +0 -175
- package/dist/chunks/constant-mXEWtcQf.js +0 -1
- package/dist/chunks/el-button-w9UOZkmd.js +0 -3
- package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
- package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
- package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
- package/dist/chunks/el-input-tAiZBp5N.js +0 -1
- package/dist/chunks/el-loading-BDhLUhme.js +0 -1
- package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
- package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
- package/dist/chunks/el-select-BXP0YqqB.js +0 -1
- package/dist/chunks/index-BIPr63lF.js +0 -1
- package/dist/chunks/index-BIaoqnN4.js +0 -1
- package/dist/chunks/index-D9eecDRK.js +0 -2
- package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
- package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
- package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
- package/dist/chunks/utils-CZxmwfl_.js +0 -1
- package/dist/chunks/utils-n1i0zWzc.js +0 -454
- package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
- package/dist/chunks/vnode-eKMqbqaC.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-yXKDlNvO.js +0 -17
|
@@ -1,1024 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as ne, shallowRef as Ce, computed as y, ref as V, onMounted as he, watch as R, defineComponent as A, createElementBlock as I, openBlock as D, normalizeClass as E, unref as l, createElementVNode as L, normalizeStyle as M, inject as De, watchEffect as ra, Fragment as ia, renderList as sa, reactive as ua, nextTick as j, provide as Oe, createBlock as te, createCommentVNode as we, createVNode as O, renderSlot as ca, withCtx as x, mergeProps as Ee, withDirectives as ie, vShow as Se, withKeys as da, createTextVNode as Pe, toDisplayString as Ke } from "vue";
|
|
2
|
-
import { _ as H, U as W, d as Fe, c as Be, w as xe, C as fe, b as fa, e as va, E as Te } from "./aria-GiGFrmP1.js";
|
|
3
|
-
import { isClient as ha, reactiveComputed as pa } from "@vueuse/core";
|
|
4
|
-
import { u as Q, E as ba } from "./el-popper-zUql4Vp-.js";
|
|
5
|
-
import { T as Z, E as Ve } from "./el-button-Dh7ROB0R.js";
|
|
6
|
-
import { ArrowDown as ma, Close as ga } from "@element-plus/icons-vue";
|
|
7
|
-
import { L as _a, M as ka, j as Y, m as F, u as q, k as le, a as ee, q as ae, O as $e, f as X, o as ya } from "./base-DfCoKyyG.js";
|
|
8
|
-
import { u as U, b as Ca, c as wa } from "./index-Dq3Y5qiS.js";
|
|
9
|
-
import { u as Ea, a as Sa, p as Pa } from "./index-DHO_7w-5.js";
|
|
10
|
-
import { E as Ka } from "./el-input-DCpRXscw.js";
|
|
11
|
-
import { g as pe, E as $ } from "./index-Cw_w6CLf.js";
|
|
12
|
-
import { t as Le, C as Ta } from "./el-select-Dil0JEvg.js";
|
|
13
|
-
var se = function() {
|
|
14
|
-
return _a.Date.now();
|
|
15
|
-
}, Va = "Expected a function", $a = Math.max, La = Math.min;
|
|
16
|
-
function Aa(e, t, a) {
|
|
17
|
-
var n, i, o, r, f, p, g = 0, C = !1, b = !1, u = !0;
|
|
18
|
-
if (typeof e != "function")
|
|
19
|
-
throw new TypeError(Va);
|
|
20
|
-
t = Le(t) || 0, ka(a) && (C = !!a.leading, b = "maxWait" in a, o = b ? $a(Le(a.maxWait) || 0, t) : o, u = "trailing" in a ? !!a.trailing : u);
|
|
21
|
-
function _(k) {
|
|
22
|
-
var P = n, B = i;
|
|
23
|
-
return n = i = void 0, g = k, r = e.apply(B, P), r;
|
|
24
|
-
}
|
|
25
|
-
function m(k) {
|
|
26
|
-
return g = k, f = setTimeout(h, t), C ? _(k) : r;
|
|
27
|
-
}
|
|
28
|
-
function d(k) {
|
|
29
|
-
var P = k - p, B = k - g, G = t - P;
|
|
30
|
-
return b ? La(G, o - B) : G;
|
|
31
|
-
}
|
|
32
|
-
function s(k) {
|
|
33
|
-
var P = k - p, B = k - g;
|
|
34
|
-
return p === void 0 || P >= t || P < 0 || b && B >= o;
|
|
35
|
-
}
|
|
36
|
-
function h() {
|
|
37
|
-
var k = se();
|
|
38
|
-
if (s(k))
|
|
39
|
-
return v(k);
|
|
40
|
-
f = setTimeout(h, d(k));
|
|
41
|
-
}
|
|
42
|
-
function v(k) {
|
|
43
|
-
return f = void 0, u && n ? _(k) : (n = i = void 0, r);
|
|
44
|
-
}
|
|
45
|
-
function w() {
|
|
46
|
-
f !== void 0 && clearTimeout(f), g = 0, n = p = i = f = void 0;
|
|
47
|
-
}
|
|
48
|
-
function S() {
|
|
49
|
-
return f === void 0 ? r : v(se());
|
|
50
|
-
}
|
|
51
|
-
function K() {
|
|
52
|
-
var k = se(), P = s(k);
|
|
53
|
-
if (n = arguments, i = this, p = k, P) {
|
|
54
|
-
if (f === void 0)
|
|
55
|
-
return m(p);
|
|
56
|
-
if (b)
|
|
57
|
-
return clearTimeout(f), f = setTimeout(h, t), _(p);
|
|
58
|
-
}
|
|
59
|
-
return f === void 0 && (f = setTimeout(h, t)), r;
|
|
60
|
-
}
|
|
61
|
-
return K.cancel = w, K.flush = S, K;
|
|
62
|
-
}
|
|
63
|
-
const Ie = Y({
|
|
64
|
-
color: {
|
|
65
|
-
type: F(Object),
|
|
66
|
-
required: !0
|
|
67
|
-
},
|
|
68
|
-
vertical: Boolean,
|
|
69
|
-
disabled: Boolean
|
|
70
|
-
}), Ra = Ie;
|
|
71
|
-
let ue = !1;
|
|
72
|
-
function ve(e, t) {
|
|
73
|
-
if (!ha)
|
|
74
|
-
return;
|
|
75
|
-
const a = function(o) {
|
|
76
|
-
var r;
|
|
77
|
-
(r = t.drag) == null || r.call(t, o);
|
|
78
|
-
}, n = function(o) {
|
|
79
|
-
var r;
|
|
80
|
-
document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", n), document.removeEventListener("touchmove", a), document.removeEventListener("touchend", n), document.onselectstart = null, document.ondragstart = null, ue = !1, (r = t.end) == null || r.call(t, o);
|
|
81
|
-
}, i = function(o) {
|
|
82
|
-
var r;
|
|
83
|
-
ue || (document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", a), document.addEventListener("mouseup", n), document.addEventListener("touchmove", a), document.addEventListener("touchend", n), ue = !0, (r = t.start) == null || r.call(t, o));
|
|
84
|
-
};
|
|
85
|
-
e.addEventListener("mousedown", i), e.addEventListener("touchstart", i, { passive: !1 });
|
|
86
|
-
}
|
|
87
|
-
const Me = (e) => {
|
|
88
|
-
let t, a;
|
|
89
|
-
return e.type === "touchend" ? (a = e.changedTouches[0].clientY, t = e.changedTouches[0].clientX) : e.type.startsWith("touch") ? (a = e.touches[0].clientY, t = e.touches[0].clientX) : (a = e.clientY, t = e.clientX), {
|
|
90
|
-
clientX: t,
|
|
91
|
-
clientY: a
|
|
92
|
-
};
|
|
93
|
-
}, Ne = (e, { key: t, minValue: a, maxValue: n }) => {
|
|
94
|
-
const i = ne(), o = Ce(), r = Ce(), f = y(() => e.color.get(t));
|
|
95
|
-
function p(u) {
|
|
96
|
-
var _;
|
|
97
|
-
if (e.disabled)
|
|
98
|
-
return;
|
|
99
|
-
u.target !== o.value && g(u), (_ = o.value) == null || _.focus();
|
|
100
|
-
}
|
|
101
|
-
function g(u) {
|
|
102
|
-
if (!r.value || !o.value || e.disabled)
|
|
103
|
-
return;
|
|
104
|
-
const m = i.vnode.el.getBoundingClientRect(), { clientX: d, clientY: s } = Me(u);
|
|
105
|
-
let h;
|
|
106
|
-
if (e.vertical) {
|
|
107
|
-
let v = s - m.top;
|
|
108
|
-
v = Math.max(o.value.offsetHeight / 2, v), v = Math.min(v, m.height - o.value.offsetHeight / 2), h = Math.round((v - o.value.offsetHeight / 2) / (m.height - o.value.offsetHeight) * n);
|
|
109
|
-
} else {
|
|
110
|
-
let v = d - m.left;
|
|
111
|
-
v = Math.max(o.value.offsetWidth / 2, v), v = Math.min(v, m.width - o.value.offsetWidth / 2), h = Math.round((v - o.value.offsetWidth / 2) / (m.width - o.value.offsetWidth) * n);
|
|
112
|
-
}
|
|
113
|
-
e.color.set(t, h);
|
|
114
|
-
}
|
|
115
|
-
function C(u) {
|
|
116
|
-
if (e.disabled)
|
|
117
|
-
return;
|
|
118
|
-
const { shiftKey: _ } = u, m = pe(u), d = _ ? 10 : 1, s = t === "hue" ? -1 : 1;
|
|
119
|
-
let h = !0;
|
|
120
|
-
switch (m) {
|
|
121
|
-
case $.left:
|
|
122
|
-
case $.down:
|
|
123
|
-
b(-d * s);
|
|
124
|
-
break;
|
|
125
|
-
case $.right:
|
|
126
|
-
case $.up:
|
|
127
|
-
b(d * s);
|
|
128
|
-
break;
|
|
129
|
-
case $.home:
|
|
130
|
-
e.color.set(t, t === "hue" ? n : a);
|
|
131
|
-
break;
|
|
132
|
-
case $.end:
|
|
133
|
-
e.color.set(t, t === "hue" ? a : n);
|
|
134
|
-
break;
|
|
135
|
-
case $.pageDown:
|
|
136
|
-
b(-4 * s);
|
|
137
|
-
break;
|
|
138
|
-
case $.pageUp:
|
|
139
|
-
b(4 * s);
|
|
140
|
-
break;
|
|
141
|
-
default:
|
|
142
|
-
h = !1;
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
h && u.preventDefault();
|
|
146
|
-
}
|
|
147
|
-
function b(u) {
|
|
148
|
-
let _ = f.value + u;
|
|
149
|
-
_ = _ < a ? a : _ > n ? n : _, e.color.set(t, _);
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
thumb: o,
|
|
153
|
-
bar: r,
|
|
154
|
-
currentValue: f,
|
|
155
|
-
handleDrag: g,
|
|
156
|
-
handleClick: p,
|
|
157
|
-
handleKeydown: C
|
|
158
|
-
};
|
|
159
|
-
}, We = (e, {
|
|
160
|
-
namespace: t,
|
|
161
|
-
maxValue: a,
|
|
162
|
-
bar: n,
|
|
163
|
-
thumb: i,
|
|
164
|
-
currentValue: o,
|
|
165
|
-
handleDrag: r,
|
|
166
|
-
getBackground: f
|
|
167
|
-
}) => {
|
|
168
|
-
const p = ne(), g = q(t), C = V(0), b = V(0), u = V();
|
|
169
|
-
function _() {
|
|
170
|
-
if (!i.value || e.vertical)
|
|
171
|
-
return 0;
|
|
172
|
-
const K = p.vnode.el, k = o.value;
|
|
173
|
-
return K ? Math.round(k * (K.offsetWidth - i.value.offsetWidth / 2) / a) : 0;
|
|
174
|
-
}
|
|
175
|
-
function m() {
|
|
176
|
-
if (!i.value)
|
|
177
|
-
return 0;
|
|
178
|
-
const K = p.vnode.el;
|
|
179
|
-
if (!e.vertical)
|
|
180
|
-
return 0;
|
|
181
|
-
const k = o.value;
|
|
182
|
-
return K ? Math.round(k * (K.offsetHeight - i.value.offsetHeight / 2) / a) : 0;
|
|
183
|
-
}
|
|
184
|
-
function d() {
|
|
185
|
-
C.value = _(), b.value = m(), u.value = f?.();
|
|
186
|
-
}
|
|
187
|
-
he(() => {
|
|
188
|
-
if (!n.value || !i.value)
|
|
189
|
-
return;
|
|
190
|
-
const K = {
|
|
191
|
-
drag: (k) => {
|
|
192
|
-
r(k);
|
|
193
|
-
},
|
|
194
|
-
end: (k) => {
|
|
195
|
-
r(k);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
ve(n.value, K), ve(i.value, K), d();
|
|
199
|
-
}), R(o, () => d()), R(() => e.color.value, () => d());
|
|
200
|
-
const s = y(() => [
|
|
201
|
-
g.b(),
|
|
202
|
-
g.is("vertical", e.vertical),
|
|
203
|
-
g.is("disabled", e.disabled)
|
|
204
|
-
]), h = y(() => g.e("bar")), v = y(() => g.e("thumb")), w = y(() => ({ background: u.value })), S = y(() => ({
|
|
205
|
-
left: le(C.value),
|
|
206
|
-
top: le(b.value)
|
|
207
|
-
}));
|
|
208
|
-
return {
|
|
209
|
-
rootKls: s,
|
|
210
|
-
barKls: h,
|
|
211
|
-
barStyle: w,
|
|
212
|
-
thumbKls: v,
|
|
213
|
-
thumbStyle: S,
|
|
214
|
-
thumbLeft: C,
|
|
215
|
-
thumbTop: b,
|
|
216
|
-
update: d
|
|
217
|
-
};
|
|
218
|
-
}, Ae = 0, ce = 100, Da = A({
|
|
219
|
-
name: "ElColorAlphaSlider"
|
|
220
|
-
}), Oa = /* @__PURE__ */ A({
|
|
221
|
-
...Da,
|
|
222
|
-
props: Ie,
|
|
223
|
-
setup(e, { expose: t }) {
|
|
224
|
-
const a = e, { currentValue: n, bar: i, thumb: o, handleDrag: r, handleClick: f, handleKeydown: p } = Ne(a, { key: "alpha", minValue: Ae, maxValue: ce }), { rootKls: g, barKls: C, barStyle: b, thumbKls: u, thumbStyle: _, update: m } = We(a, {
|
|
225
|
-
namespace: "color-alpha-slider",
|
|
226
|
-
maxValue: ce,
|
|
227
|
-
currentValue: n,
|
|
228
|
-
bar: i,
|
|
229
|
-
thumb: o,
|
|
230
|
-
handleDrag: r,
|
|
231
|
-
getBackground: v
|
|
232
|
-
}), { t: d } = U(), s = y(() => d("el.colorpicker.alphaLabel")), h = y(() => d("el.colorpicker.alphaDescription", {
|
|
233
|
-
alpha: n.value,
|
|
234
|
-
color: a.color.value
|
|
235
|
-
}));
|
|
236
|
-
function v() {
|
|
237
|
-
if (a.color && a.color.value) {
|
|
238
|
-
const { r: w, g: S, b: K } = a.color.toRgb();
|
|
239
|
-
return `linear-gradient(to right, rgba(${w}, ${S}, ${K}, 0) 0%, rgba(${w}, ${S}, ${K}, 1) 100%)`;
|
|
240
|
-
}
|
|
241
|
-
return "";
|
|
242
|
-
}
|
|
243
|
-
return t({
|
|
244
|
-
update: m,
|
|
245
|
-
bar: i,
|
|
246
|
-
thumb: o
|
|
247
|
-
}), (w, S) => (D(), I("div", {
|
|
248
|
-
class: E(l(g))
|
|
249
|
-
}, [
|
|
250
|
-
L("div", {
|
|
251
|
-
ref_key: "bar",
|
|
252
|
-
ref: i,
|
|
253
|
-
class: E(l(C)),
|
|
254
|
-
style: M(l(b)),
|
|
255
|
-
onClick: l(f)
|
|
256
|
-
}, null, 14, ["onClick"]),
|
|
257
|
-
L("div", {
|
|
258
|
-
ref_key: "thumb",
|
|
259
|
-
ref: o,
|
|
260
|
-
class: E(l(u)),
|
|
261
|
-
style: M(l(_)),
|
|
262
|
-
"aria-label": l(s),
|
|
263
|
-
"aria-valuenow": l(n),
|
|
264
|
-
"aria-valuetext": l(h),
|
|
265
|
-
"aria-orientation": w.vertical ? "vertical" : "horizontal",
|
|
266
|
-
"aria-valuemin": Ae,
|
|
267
|
-
"aria-valuemax": ce,
|
|
268
|
-
role: "slider",
|
|
269
|
-
tabindex: w.disabled ? void 0 : 0,
|
|
270
|
-
"aria-disabled": w.disabled,
|
|
271
|
-
onKeydown: l(p)
|
|
272
|
-
}, null, 46, ["aria-label", "aria-valuenow", "aria-valuetext", "aria-orientation", "tabindex", "aria-disabled", "onKeydown"])
|
|
273
|
-
], 2));
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
var Fa = /* @__PURE__ */ H(Oa, [["__file", "alpha-slider.vue"]]);
|
|
277
|
-
const Re = 0, de = 360, Ba = A({
|
|
278
|
-
name: "ElColorHueSlider"
|
|
279
|
-
}), xa = /* @__PURE__ */ A({
|
|
280
|
-
...Ba,
|
|
281
|
-
props: Ra,
|
|
282
|
-
setup(e, { expose: t }) {
|
|
283
|
-
const a = e, { currentValue: n, bar: i, thumb: o, handleDrag: r, handleClick: f, handleKeydown: p } = Ne(a, { key: "hue", minValue: Re, maxValue: de }), { rootKls: g, barKls: C, thumbKls: b, thumbStyle: u, thumbTop: _, update: m } = We(a, {
|
|
284
|
-
namespace: "color-hue-slider",
|
|
285
|
-
maxValue: de,
|
|
286
|
-
currentValue: n,
|
|
287
|
-
bar: i,
|
|
288
|
-
thumb: o,
|
|
289
|
-
handleDrag: r
|
|
290
|
-
}), { t: d } = U(), s = y(() => d("el.colorpicker.hueLabel")), h = y(() => d("el.colorpicker.hueDescription", {
|
|
291
|
-
hue: n.value,
|
|
292
|
-
color: a.color.value
|
|
293
|
-
}));
|
|
294
|
-
return t({
|
|
295
|
-
bar: i,
|
|
296
|
-
thumb: o,
|
|
297
|
-
thumbTop: _,
|
|
298
|
-
update: m
|
|
299
|
-
}), (v, w) => (D(), I("div", {
|
|
300
|
-
class: E(l(g))
|
|
301
|
-
}, [
|
|
302
|
-
L("div", {
|
|
303
|
-
ref_key: "bar",
|
|
304
|
-
ref: i,
|
|
305
|
-
class: E(l(C)),
|
|
306
|
-
onClick: l(f)
|
|
307
|
-
}, null, 10, ["onClick"]),
|
|
308
|
-
L("div", {
|
|
309
|
-
ref_key: "thumb",
|
|
310
|
-
ref: o,
|
|
311
|
-
class: E(l(b)),
|
|
312
|
-
style: M(l(u)),
|
|
313
|
-
"aria-label": l(s),
|
|
314
|
-
"aria-valuenow": l(n),
|
|
315
|
-
"aria-valuetext": l(h),
|
|
316
|
-
"aria-orientation": v.vertical ? "vertical" : "horizontal",
|
|
317
|
-
"aria-valuemin": Re,
|
|
318
|
-
"aria-valuemax": de,
|
|
319
|
-
role: "slider",
|
|
320
|
-
tabindex: v.disabled ? void 0 : 0,
|
|
321
|
-
"aria-disabled": v.disabled,
|
|
322
|
-
onKeydown: l(p)
|
|
323
|
-
}, null, 46, ["aria-label", "aria-valuenow", "aria-valuetext", "aria-orientation", "tabindex", "aria-disabled", "onKeydown"])
|
|
324
|
-
], 2));
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
var Ia = /* @__PURE__ */ H(xa, [["__file", "hue-slider.vue"]]);
|
|
328
|
-
const Ma = Y({
|
|
329
|
-
colors: {
|
|
330
|
-
type: F(Array),
|
|
331
|
-
required: !0
|
|
332
|
-
},
|
|
333
|
-
color: {
|
|
334
|
-
type: F(Object),
|
|
335
|
-
required: !0
|
|
336
|
-
},
|
|
337
|
-
enableAlpha: {
|
|
338
|
-
type: Boolean,
|
|
339
|
-
required: !0
|
|
340
|
-
},
|
|
341
|
-
disabled: Boolean
|
|
342
|
-
}), He = Y({
|
|
343
|
-
modelValue: {
|
|
344
|
-
type: F(String),
|
|
345
|
-
default: void 0
|
|
346
|
-
},
|
|
347
|
-
border: {
|
|
348
|
-
type: Boolean,
|
|
349
|
-
default: !0
|
|
350
|
-
},
|
|
351
|
-
showAlpha: Boolean,
|
|
352
|
-
colorFormat: String,
|
|
353
|
-
disabled: Boolean,
|
|
354
|
-
predefine: {
|
|
355
|
-
type: F(Array)
|
|
356
|
-
},
|
|
357
|
-
validateEvent: {
|
|
358
|
-
type: Boolean,
|
|
359
|
-
default: !0
|
|
360
|
-
}
|
|
361
|
-
}), Na = {
|
|
362
|
-
[W]: (e) => ee(e) || ae(e)
|
|
363
|
-
}, ze = Symbol("colorCommonPickerKey"), je = Symbol("colorPickerPanelContextKey");
|
|
364
|
-
class oe {
|
|
365
|
-
constructor(t = {}) {
|
|
366
|
-
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100, this._tiny = new Z(), this._isValid = !1, this.enableAlpha = !1, this.format = "", this.value = "";
|
|
367
|
-
for (const a in t)
|
|
368
|
-
$e(t, a) && (this[a] = t[a]);
|
|
369
|
-
t.value ? this.fromString(t.value) : this.doOnChange();
|
|
370
|
-
}
|
|
371
|
-
set(t, a) {
|
|
372
|
-
if (arguments.length === 1 && typeof t == "object") {
|
|
373
|
-
for (const n in t)
|
|
374
|
-
$e(t, n) && this.set(n, t[n]);
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
this[`_${t}`] = a, this._isValid = !0, this.doOnChange();
|
|
378
|
-
}
|
|
379
|
-
get(t) {
|
|
380
|
-
return ["hue", "saturation", "value", "alpha"].includes(t) ? Math.round(this[`_${t}`]) : this[`_${t}`];
|
|
381
|
-
}
|
|
382
|
-
toRgb() {
|
|
383
|
-
return this._isValid ? this._tiny.toRgb() : { r: 255, g: 255, b: 255, a: 0 };
|
|
384
|
-
}
|
|
385
|
-
fromString(t) {
|
|
386
|
-
const a = new Z(t);
|
|
387
|
-
if (this._isValid = a.isValid, a.isValid) {
|
|
388
|
-
const { h: n, s: i, v: o, a: r } = a.toHsv();
|
|
389
|
-
this._hue = n, this._saturation = i * 100, this._value = o * 100, this._alpha = r * 100;
|
|
390
|
-
} else
|
|
391
|
-
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100;
|
|
392
|
-
this.doOnChange();
|
|
393
|
-
}
|
|
394
|
-
clear() {
|
|
395
|
-
this._isValid = !1, this.value = "", this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100;
|
|
396
|
-
}
|
|
397
|
-
compare(t) {
|
|
398
|
-
const a = new Z({
|
|
399
|
-
h: t._hue,
|
|
400
|
-
s: t._saturation / 100,
|
|
401
|
-
v: t._value / 100,
|
|
402
|
-
a: t._alpha / 100
|
|
403
|
-
});
|
|
404
|
-
return this._tiny.equals(a);
|
|
405
|
-
}
|
|
406
|
-
doOnChange() {
|
|
407
|
-
const { _hue: t, _saturation: a, _value: n, _alpha: i, format: o, enableAlpha: r } = this;
|
|
408
|
-
let f = o || (r ? "rgb" : "hex");
|
|
409
|
-
o === "hex" && r && (f = "hex8"), this._tiny = new Z({
|
|
410
|
-
h: t,
|
|
411
|
-
s: a / 100,
|
|
412
|
-
v: n / 100,
|
|
413
|
-
a: i / 100
|
|
414
|
-
}), this.value = this._isValid ? this._tiny.toString(f) : "";
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
const Wa = (e) => {
|
|
418
|
-
const { currentColor: t } = De(je), a = V(i(e.colors, e.color));
|
|
419
|
-
R(() => t.value, (o) => {
|
|
420
|
-
const r = new oe({
|
|
421
|
-
value: o,
|
|
422
|
-
enableAlpha: e.enableAlpha
|
|
423
|
-
});
|
|
424
|
-
a.value.forEach((f) => {
|
|
425
|
-
f.selected = r.compare(f);
|
|
426
|
-
});
|
|
427
|
-
}), ra(() => {
|
|
428
|
-
a.value = i(e.colors, e.color);
|
|
429
|
-
});
|
|
430
|
-
function n(o) {
|
|
431
|
-
e.color.fromString(e.colors[o]);
|
|
432
|
-
}
|
|
433
|
-
function i(o, r) {
|
|
434
|
-
return o.map((f) => {
|
|
435
|
-
const p = new oe({
|
|
436
|
-
value: f,
|
|
437
|
-
enableAlpha: e.enableAlpha
|
|
438
|
-
});
|
|
439
|
-
return p.selected = p.compare(r), p;
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
return {
|
|
443
|
-
rgbaColors: a,
|
|
444
|
-
handleSelect: n
|
|
445
|
-
};
|
|
446
|
-
}, Ha = (e) => {
|
|
447
|
-
const t = q("color-predefine"), a = y(() => [t.b(), t.is("disabled", e.disabled)]), n = y(() => t.e("colors"));
|
|
448
|
-
function i(o) {
|
|
449
|
-
return [
|
|
450
|
-
t.e("color-selector"),
|
|
451
|
-
t.is("alpha", o.get("alpha") < 100),
|
|
452
|
-
{ selected: o.selected }
|
|
453
|
-
];
|
|
454
|
-
}
|
|
455
|
-
return {
|
|
456
|
-
rootKls: a,
|
|
457
|
-
colorsKls: n,
|
|
458
|
-
colorSelectorKls: i
|
|
459
|
-
};
|
|
460
|
-
}, za = A({
|
|
461
|
-
name: "ElColorPredefine"
|
|
462
|
-
}), ja = /* @__PURE__ */ A({
|
|
463
|
-
...za,
|
|
464
|
-
props: Ma,
|
|
465
|
-
setup(e) {
|
|
466
|
-
const t = e, { rgbaColors: a, handleSelect: n } = Wa(t), { rootKls: i, colorsKls: o, colorSelectorKls: r } = Ha(t), { t: f } = U(), p = (g) => f("el.colorpicker.predefineDescription", { value: g });
|
|
467
|
-
return (g, C) => (D(), I("div", {
|
|
468
|
-
class: E(l(i))
|
|
469
|
-
}, [
|
|
470
|
-
L("div", {
|
|
471
|
-
class: E(l(o))
|
|
472
|
-
}, [
|
|
473
|
-
(D(!0), I(ia, null, sa(l(a), (b, u) => (D(), I("button", {
|
|
474
|
-
key: g.colors[u],
|
|
475
|
-
type: "button",
|
|
476
|
-
disabled: g.disabled,
|
|
477
|
-
"aria-label": p(b.value),
|
|
478
|
-
class: E(l(r)(b)),
|
|
479
|
-
onClick: (_) => l(n)(u)
|
|
480
|
-
}, [
|
|
481
|
-
L("div", {
|
|
482
|
-
style: M({ backgroundColor: b.value })
|
|
483
|
-
}, null, 4)
|
|
484
|
-
], 10, ["disabled", "aria-label", "onClick"]))), 128))
|
|
485
|
-
], 2)
|
|
486
|
-
], 2));
|
|
487
|
-
}
|
|
488
|
-
});
|
|
489
|
-
var Xa = /* @__PURE__ */ H(ja, [["__file", "predefine.vue"]]);
|
|
490
|
-
const Ya = Y({
|
|
491
|
-
color: {
|
|
492
|
-
type: F(Object),
|
|
493
|
-
required: !0
|
|
494
|
-
},
|
|
495
|
-
disabled: Boolean
|
|
496
|
-
}), qa = (e) => {
|
|
497
|
-
const t = ne(), a = V(), n = V(0), i = V(0), o = V("hsl(0, 100%, 50%)"), r = y(() => e.color.get("saturation")), f = y(() => e.color.get("value")), p = y(() => e.color.get("hue"));
|
|
498
|
-
function g(m) {
|
|
499
|
-
var d;
|
|
500
|
-
if (e.disabled)
|
|
501
|
-
return;
|
|
502
|
-
m.target !== a.value && C(m), (d = a.value) == null || d.focus({ preventScroll: !0 });
|
|
503
|
-
}
|
|
504
|
-
function C(m) {
|
|
505
|
-
if (e.disabled)
|
|
506
|
-
return;
|
|
507
|
-
const s = t.vnode.el.getBoundingClientRect(), { clientX: h, clientY: v } = Me(m);
|
|
508
|
-
let w = h - s.left, S = v - s.top;
|
|
509
|
-
w = Math.max(0, w), w = Math.min(w, s.width), S = Math.max(0, S), S = Math.min(S, s.height), i.value = w, n.value = S, e.color.set({
|
|
510
|
-
saturation: w / s.width * 100,
|
|
511
|
-
value: 100 - S / s.height * 100
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
function b(m) {
|
|
515
|
-
if (e.disabled)
|
|
516
|
-
return;
|
|
517
|
-
const { shiftKey: d } = m, s = pe(m), h = d ? 10 : 1;
|
|
518
|
-
let v = !0;
|
|
519
|
-
switch (s) {
|
|
520
|
-
case $.left:
|
|
521
|
-
u(-h);
|
|
522
|
-
break;
|
|
523
|
-
case $.right:
|
|
524
|
-
u(h);
|
|
525
|
-
break;
|
|
526
|
-
case $.up:
|
|
527
|
-
_(h);
|
|
528
|
-
break;
|
|
529
|
-
case $.down:
|
|
530
|
-
_(-h);
|
|
531
|
-
break;
|
|
532
|
-
default:
|
|
533
|
-
v = !1;
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
v && m.preventDefault();
|
|
537
|
-
}
|
|
538
|
-
function u(m) {
|
|
539
|
-
let d = r.value + m;
|
|
540
|
-
d = d < 0 ? 0 : d > 100 ? 100 : d, e.color.set("saturation", d);
|
|
541
|
-
}
|
|
542
|
-
function _(m) {
|
|
543
|
-
let d = f.value + m;
|
|
544
|
-
d = d < 0 ? 0 : d > 100 ? 100 : d, e.color.set("value", d);
|
|
545
|
-
}
|
|
546
|
-
return {
|
|
547
|
-
cursorRef: a,
|
|
548
|
-
cursorTop: n,
|
|
549
|
-
cursorLeft: i,
|
|
550
|
-
background: o,
|
|
551
|
-
saturation: r,
|
|
552
|
-
brightness: f,
|
|
553
|
-
hue: p,
|
|
554
|
-
handleClick: g,
|
|
555
|
-
handleDrag: C,
|
|
556
|
-
handleKeydown: b
|
|
557
|
-
};
|
|
558
|
-
}, Ua = (e, {
|
|
559
|
-
cursorTop: t,
|
|
560
|
-
cursorLeft: a,
|
|
561
|
-
background: n,
|
|
562
|
-
handleDrag: i
|
|
563
|
-
}) => {
|
|
564
|
-
const o = ne(), r = q("color-svpanel");
|
|
565
|
-
function f() {
|
|
566
|
-
const u = e.color.get("saturation"), _ = e.color.get("value"), m = o.vnode.el, { clientWidth: d, clientHeight: s } = m;
|
|
567
|
-
a.value = u * d / 100, t.value = (100 - _) * s / 100, n.value = `hsl(${e.color.get("hue")}, 100%, 50%)`;
|
|
568
|
-
}
|
|
569
|
-
he(() => {
|
|
570
|
-
ve(o.vnode.el, {
|
|
571
|
-
drag: (u) => {
|
|
572
|
-
i(u);
|
|
573
|
-
},
|
|
574
|
-
end: (u) => {
|
|
575
|
-
i(u);
|
|
576
|
-
}
|
|
577
|
-
}), f();
|
|
578
|
-
}), R([
|
|
579
|
-
() => e.color.get("hue"),
|
|
580
|
-
() => e.color.get("value"),
|
|
581
|
-
() => e.color.value
|
|
582
|
-
], () => f());
|
|
583
|
-
const p = y(() => r.b()), g = y(() => r.e("cursor")), C = y(() => ({
|
|
584
|
-
backgroundColor: n.value
|
|
585
|
-
})), b = y(() => ({
|
|
586
|
-
top: le(t.value),
|
|
587
|
-
left: le(a.value)
|
|
588
|
-
}));
|
|
589
|
-
return {
|
|
590
|
-
rootKls: p,
|
|
591
|
-
cursorKls: g,
|
|
592
|
-
rootStyle: C,
|
|
593
|
-
cursorStyle: b,
|
|
594
|
-
update: f
|
|
595
|
-
};
|
|
596
|
-
}, Ga = A({
|
|
597
|
-
name: "ElSvPanel"
|
|
598
|
-
}), Ja = /* @__PURE__ */ A({
|
|
599
|
-
...Ga,
|
|
600
|
-
props: Ya,
|
|
601
|
-
setup(e, { expose: t }) {
|
|
602
|
-
const a = e, {
|
|
603
|
-
cursorRef: n,
|
|
604
|
-
cursorTop: i,
|
|
605
|
-
cursorLeft: o,
|
|
606
|
-
background: r,
|
|
607
|
-
saturation: f,
|
|
608
|
-
brightness: p,
|
|
609
|
-
handleClick: g,
|
|
610
|
-
handleDrag: C,
|
|
611
|
-
handleKeydown: b
|
|
612
|
-
} = qa(a), { rootKls: u, cursorKls: _, rootStyle: m, cursorStyle: d, update: s } = Ua(a, {
|
|
613
|
-
cursorTop: i,
|
|
614
|
-
cursorLeft: o,
|
|
615
|
-
background: r,
|
|
616
|
-
handleDrag: C
|
|
617
|
-
}), { t: h } = U(), v = y(() => h("el.colorpicker.svLabel")), w = y(() => h("el.colorpicker.svDescription", {
|
|
618
|
-
saturation: f.value,
|
|
619
|
-
brightness: p.value,
|
|
620
|
-
color: a.color.value
|
|
621
|
-
}));
|
|
622
|
-
return t({
|
|
623
|
-
update: s
|
|
624
|
-
}), (S, K) => (D(), I("div", {
|
|
625
|
-
class: E(l(u)),
|
|
626
|
-
style: M(l(m)),
|
|
627
|
-
onClick: l(g)
|
|
628
|
-
}, [
|
|
629
|
-
L("div", {
|
|
630
|
-
ref_key: "cursorRef",
|
|
631
|
-
ref: n,
|
|
632
|
-
class: E(l(_)),
|
|
633
|
-
style: M(l(d)),
|
|
634
|
-
tabindex: S.disabled ? void 0 : 0,
|
|
635
|
-
"aria-disabled": S.disabled,
|
|
636
|
-
role: "slider",
|
|
637
|
-
"aria-valuemin": "0,0",
|
|
638
|
-
"aria-valuemax": "100,100",
|
|
639
|
-
"aria-label": l(v),
|
|
640
|
-
"aria-valuenow": `${l(f)},${l(p)}`,
|
|
641
|
-
"aria-valuetext": l(w),
|
|
642
|
-
onKeydown: l(b)
|
|
643
|
-
}, null, 46, ["tabindex", "aria-disabled", "aria-label", "aria-valuenow", "aria-valuetext", "onKeydown"])
|
|
644
|
-
], 14, ["onClick"]));
|
|
645
|
-
}
|
|
646
|
-
});
|
|
647
|
-
var Qa = /* @__PURE__ */ H(Ja, [["__file", "sv-panel.vue"]]);
|
|
648
|
-
const Xe = (e, t) => {
|
|
649
|
-
const a = ua(new oe({
|
|
650
|
-
enableAlpha: e.showAlpha,
|
|
651
|
-
format: e.colorFormat || "",
|
|
652
|
-
value: e.modelValue
|
|
653
|
-
}));
|
|
654
|
-
return R(() => [e.colorFormat, e.showAlpha], () => {
|
|
655
|
-
a.enableAlpha = e.showAlpha, a.format = e.colorFormat || a.format, a.doOnChange(), t(W, a.value);
|
|
656
|
-
}), {
|
|
657
|
-
color: a
|
|
658
|
-
};
|
|
659
|
-
}, Za = A({
|
|
660
|
-
name: "ElColorPickerPanel"
|
|
661
|
-
}), et = /* @__PURE__ */ A({
|
|
662
|
-
...Za,
|
|
663
|
-
props: He,
|
|
664
|
-
emits: Na,
|
|
665
|
-
setup(e, { expose: t, emit: a }) {
|
|
666
|
-
const n = e, i = q("color-picker-panel"), { formItem: o } = Fe(), r = Be(), f = V(), p = V(), g = V(), C = V(), b = V(""), { color: u } = De(ze, () => Xe(n, a), !0);
|
|
667
|
-
function _() {
|
|
668
|
-
u.fromString(b.value), u.value !== b.value && (b.value = u.value);
|
|
669
|
-
}
|
|
670
|
-
function m() {
|
|
671
|
-
var s;
|
|
672
|
-
n.validateEvent && ((s = o?.validate) == null || s.call(o, "blur").catch((h) => X(h)));
|
|
673
|
-
}
|
|
674
|
-
function d() {
|
|
675
|
-
var s, h, v;
|
|
676
|
-
(s = f.value) == null || s.update(), (h = p.value) == null || h.update(), (v = g.value) == null || v.update();
|
|
677
|
-
}
|
|
678
|
-
return he(() => {
|
|
679
|
-
n.modelValue && (b.value = u.value), j(d);
|
|
680
|
-
}), R(() => n.modelValue, (s) => {
|
|
681
|
-
s !== u.value && (s ? u.fromString(s) : u.clear());
|
|
682
|
-
}), R(() => u.value, (s) => {
|
|
683
|
-
a(W, s), b.value = s, n.validateEvent && o?.validate("change").catch((h) => X(h));
|
|
684
|
-
}), Oe(je, {
|
|
685
|
-
currentColor: y(() => u.value)
|
|
686
|
-
}), t({
|
|
687
|
-
color: u,
|
|
688
|
-
inputRef: C,
|
|
689
|
-
update: d
|
|
690
|
-
}), (s, h) => (D(), I("div", {
|
|
691
|
-
class: E([l(i).b(), l(i).is("disabled", l(r)), l(i).is("border", s.border)]),
|
|
692
|
-
onFocusout: m
|
|
693
|
-
}, [
|
|
694
|
-
L("div", {
|
|
695
|
-
class: E(l(i).e("wrapper"))
|
|
696
|
-
}, [
|
|
697
|
-
O(Ia, {
|
|
698
|
-
ref_key: "hueRef",
|
|
699
|
-
ref: f,
|
|
700
|
-
class: "hue-slider",
|
|
701
|
-
color: l(u),
|
|
702
|
-
vertical: "",
|
|
703
|
-
disabled: l(r)
|
|
704
|
-
}, null, 8, ["color", "disabled"]),
|
|
705
|
-
O(Qa, {
|
|
706
|
-
ref_key: "svRef",
|
|
707
|
-
ref: p,
|
|
708
|
-
color: l(u),
|
|
709
|
-
disabled: l(r)
|
|
710
|
-
}, null, 8, ["color", "disabled"])
|
|
711
|
-
], 2),
|
|
712
|
-
s.showAlpha ? (D(), te(Fa, {
|
|
713
|
-
key: 0,
|
|
714
|
-
ref_key: "alphaRef",
|
|
715
|
-
ref: g,
|
|
716
|
-
color: l(u),
|
|
717
|
-
disabled: l(r)
|
|
718
|
-
}, null, 8, ["color", "disabled"])) : we("v-if", !0),
|
|
719
|
-
s.predefine ? (D(), te(Xa, {
|
|
720
|
-
key: 1,
|
|
721
|
-
ref: "predefine",
|
|
722
|
-
"enable-alpha": s.showAlpha,
|
|
723
|
-
color: l(u),
|
|
724
|
-
colors: s.predefine,
|
|
725
|
-
disabled: l(r)
|
|
726
|
-
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : we("v-if", !0),
|
|
727
|
-
L("div", {
|
|
728
|
-
class: E(l(i).e("footer"))
|
|
729
|
-
}, [
|
|
730
|
-
O(l(Ka), {
|
|
731
|
-
ref_key: "inputRef",
|
|
732
|
-
ref: C,
|
|
733
|
-
modelValue: b.value,
|
|
734
|
-
"onUpdate:modelValue": (v) => b.value = v,
|
|
735
|
-
"validate-event": !1,
|
|
736
|
-
size: "small",
|
|
737
|
-
disabled: l(r),
|
|
738
|
-
onChange: _
|
|
739
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
740
|
-
ca(s.$slots, "footer")
|
|
741
|
-
], 2)
|
|
742
|
-
], 34));
|
|
743
|
-
}
|
|
744
|
-
});
|
|
745
|
-
var at = /* @__PURE__ */ H(et, [["__file", "color-picker-panel.vue"]]);
|
|
746
|
-
const tt = xe(at), lt = Y({
|
|
747
|
-
persistent: {
|
|
748
|
-
type: Boolean,
|
|
749
|
-
default: !0
|
|
750
|
-
},
|
|
751
|
-
modelValue: {
|
|
752
|
-
type: F(String),
|
|
753
|
-
default: void 0
|
|
754
|
-
},
|
|
755
|
-
id: String,
|
|
756
|
-
showAlpha: Boolean,
|
|
757
|
-
colorFormat: String,
|
|
758
|
-
disabled: {
|
|
759
|
-
type: Boolean,
|
|
760
|
-
default: void 0
|
|
761
|
-
},
|
|
762
|
-
size: ya,
|
|
763
|
-
popperClass: Q.popperClass,
|
|
764
|
-
popperStyle: Q.popperStyle,
|
|
765
|
-
tabindex: {
|
|
766
|
-
type: [String, Number],
|
|
767
|
-
default: 0
|
|
768
|
-
},
|
|
769
|
-
teleported: Q.teleported,
|
|
770
|
-
appendTo: Q.appendTo,
|
|
771
|
-
predefine: {
|
|
772
|
-
type: F(Array)
|
|
773
|
-
},
|
|
774
|
-
validateEvent: {
|
|
775
|
-
type: Boolean,
|
|
776
|
-
default: !0
|
|
777
|
-
},
|
|
778
|
-
...Ca,
|
|
779
|
-
...Ea(["ariaLabel"])
|
|
780
|
-
}), ot = {
|
|
781
|
-
[W]: (e) => ee(e) || ae(e),
|
|
782
|
-
[fe]: (e) => ee(e) || ae(e),
|
|
783
|
-
activeChange: (e) => ee(e) || ae(e),
|
|
784
|
-
focus: (e) => e instanceof FocusEvent,
|
|
785
|
-
blur: (e) => e instanceof FocusEvent
|
|
786
|
-
}, nt = A({
|
|
787
|
-
name: "ElColorPicker"
|
|
788
|
-
}), rt = /* @__PURE__ */ A({
|
|
789
|
-
...nt,
|
|
790
|
-
props: lt,
|
|
791
|
-
emits: ot,
|
|
792
|
-
setup(e, { expose: t, emit: a }) {
|
|
793
|
-
const n = e, { t: i } = U(), o = q("color"), { formItem: r } = Fe(), f = fa(), p = Be(), { valueOnClear: g, isEmptyValue: C } = wa(n, null), b = Xe(n, a), { inputId: u, isLabeledByFormItem: _ } = va(n, {
|
|
794
|
-
formItemContext: r
|
|
795
|
-
}), m = V(), d = V(), s = V(), h = V(!1), v = V(!1);
|
|
796
|
-
let w = !0;
|
|
797
|
-
const { isFocused: S, handleFocus: K, handleBlur: k } = Sa(d, {
|
|
798
|
-
disabled: p,
|
|
799
|
-
beforeBlur(c) {
|
|
800
|
-
var T;
|
|
801
|
-
return (T = m.value) == null ? void 0 : T.isFocusInsideContent(c);
|
|
802
|
-
},
|
|
803
|
-
afterBlur() {
|
|
804
|
-
var c;
|
|
805
|
-
z(!1), N(), n.validateEvent && ((c = r?.validate) == null || c.call(r, "blur").catch((T) => X(T)));
|
|
806
|
-
}
|
|
807
|
-
}), P = pa(() => {
|
|
808
|
-
var c, T;
|
|
809
|
-
return (T = (c = s.value) == null ? void 0 : c.color) != null ? T : b.color;
|
|
810
|
-
}), B = y(() => Pa(n, Object.keys(He))), G = y(() => !n.modelValue && !v.value ? "transparent" : Je(P, n.showAlpha)), Ye = y(() => !n.modelValue && !v.value ? "" : P.value), qe = y(() => _.value ? void 0 : n.ariaLabel || i("el.colorpicker.defaultLabel")), Ue = y(() => _.value ? r?.labelId : void 0), Ge = y(() => [
|
|
811
|
-
o.b("picker"),
|
|
812
|
-
o.is("disabled", p.value),
|
|
813
|
-
o.bm("picker", f.value),
|
|
814
|
-
o.is("focused", S.value)
|
|
815
|
-
]);
|
|
816
|
-
function Je(c, T) {
|
|
817
|
-
const { r: re, g: ke, b: ye, a: na } = c.toRgb();
|
|
818
|
-
return T ? `rgba(${re}, ${ke}, ${ye}, ${na})` : `rgb(${re}, ${ke}, ${ye})`;
|
|
819
|
-
}
|
|
820
|
-
function z(c) {
|
|
821
|
-
h.value = c;
|
|
822
|
-
}
|
|
823
|
-
const J = Aa(z, 100, { leading: !0 });
|
|
824
|
-
function be() {
|
|
825
|
-
p.value || z(!0);
|
|
826
|
-
}
|
|
827
|
-
function me() {
|
|
828
|
-
J(!1), N();
|
|
829
|
-
}
|
|
830
|
-
function N() {
|
|
831
|
-
j(() => {
|
|
832
|
-
n.modelValue ? P.fromString(n.modelValue) : (P.value = "", j(() => {
|
|
833
|
-
v.value = !1;
|
|
834
|
-
}));
|
|
835
|
-
});
|
|
836
|
-
}
|
|
837
|
-
function Qe() {
|
|
838
|
-
p.value || (h.value && N(), J(!h.value));
|
|
839
|
-
}
|
|
840
|
-
function Ze() {
|
|
841
|
-
const c = C(P.value) ? g.value : P.value;
|
|
842
|
-
a(W, c), a(fe, c), n.validateEvent && r?.validate("change").catch((T) => X(T)), J(!1), j(() => {
|
|
843
|
-
const T = new oe({
|
|
844
|
-
enableAlpha: n.showAlpha,
|
|
845
|
-
format: n.colorFormat || "",
|
|
846
|
-
value: n.modelValue
|
|
847
|
-
});
|
|
848
|
-
P.compare(T) || N();
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
function ea() {
|
|
852
|
-
J(!1), a(W, g.value), a(fe, g.value), n.modelValue !== g.value && n.validateEvent && r?.validate("change").catch((c) => X(c)), N();
|
|
853
|
-
}
|
|
854
|
-
function aa() {
|
|
855
|
-
var c, T;
|
|
856
|
-
(T = (c = s?.value) == null ? void 0 : c.inputRef) == null || T.focus();
|
|
857
|
-
}
|
|
858
|
-
function ta() {
|
|
859
|
-
h.value && (me(), S.value && _e());
|
|
860
|
-
}
|
|
861
|
-
function ge(c) {
|
|
862
|
-
c.preventDefault(), c.stopPropagation(), z(!1), N();
|
|
863
|
-
}
|
|
864
|
-
function la(c) {
|
|
865
|
-
switch (pe(c)) {
|
|
866
|
-
case $.enter:
|
|
867
|
-
case $.numpadEnter:
|
|
868
|
-
case $.space:
|
|
869
|
-
c.preventDefault(), c.stopPropagation(), be();
|
|
870
|
-
break;
|
|
871
|
-
case $.esc:
|
|
872
|
-
ge(c);
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
function _e() {
|
|
877
|
-
d.value.focus();
|
|
878
|
-
}
|
|
879
|
-
function oa() {
|
|
880
|
-
d.value.blur();
|
|
881
|
-
}
|
|
882
|
-
return R(() => Ye.value, (c) => {
|
|
883
|
-
w && a("activeChange", c), w = !0;
|
|
884
|
-
}), R(() => P.value, () => {
|
|
885
|
-
!n.modelValue && !v.value && (v.value = !0);
|
|
886
|
-
}), R(() => n.modelValue, (c) => {
|
|
887
|
-
c ? c && c !== P.value && (w = !1, P.fromString(c)) : v.value = !1;
|
|
888
|
-
}), R(() => h.value, () => {
|
|
889
|
-
var c;
|
|
890
|
-
j((c = s.value) == null ? void 0 : c.update);
|
|
891
|
-
}), Oe(ze, b), t({
|
|
892
|
-
color: P,
|
|
893
|
-
show: be,
|
|
894
|
-
hide: me,
|
|
895
|
-
focus: _e,
|
|
896
|
-
blur: oa
|
|
897
|
-
}), (c, T) => (D(), te(l(ba), {
|
|
898
|
-
ref_key: "popper",
|
|
899
|
-
ref: m,
|
|
900
|
-
visible: h.value,
|
|
901
|
-
"show-arrow": !1,
|
|
902
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
903
|
-
offset: 0,
|
|
904
|
-
"gpu-acceleration": !1,
|
|
905
|
-
"popper-class": [l(o).be("picker", "panel"), c.popperClass],
|
|
906
|
-
"popper-style": c.popperStyle,
|
|
907
|
-
"stop-popper-mouse-event": !1,
|
|
908
|
-
pure: "",
|
|
909
|
-
loop: "",
|
|
910
|
-
role: "dialog",
|
|
911
|
-
effect: "light",
|
|
912
|
-
trigger: "click",
|
|
913
|
-
teleported: c.teleported,
|
|
914
|
-
transition: `${l(o).namespace.value}-zoom-in-top`,
|
|
915
|
-
persistent: c.persistent,
|
|
916
|
-
"append-to": c.appendTo,
|
|
917
|
-
onShow: aa,
|
|
918
|
-
onHide: (re) => z(!1)
|
|
919
|
-
}, {
|
|
920
|
-
content: x(() => [
|
|
921
|
-
ie((D(), te(l(tt), Ee({
|
|
922
|
-
ref_key: "pickerPanelRef",
|
|
923
|
-
ref: s
|
|
924
|
-
}, l(B), {
|
|
925
|
-
border: !1,
|
|
926
|
-
"validate-event": !1,
|
|
927
|
-
onKeydown: da(ge, ["esc"])
|
|
928
|
-
}), {
|
|
929
|
-
footer: x(() => [
|
|
930
|
-
L("div", null, [
|
|
931
|
-
O(l(Ve), {
|
|
932
|
-
class: E(l(o).be("footer", "link-btn")),
|
|
933
|
-
text: "",
|
|
934
|
-
size: "small",
|
|
935
|
-
onClick: ea
|
|
936
|
-
}, {
|
|
937
|
-
default: x(() => [
|
|
938
|
-
Pe(Ke(l(i)("el.colorpicker.clear")), 1)
|
|
939
|
-
]),
|
|
940
|
-
_: 1
|
|
941
|
-
}, 8, ["class"]),
|
|
942
|
-
O(l(Ve), {
|
|
943
|
-
plain: "",
|
|
944
|
-
size: "small",
|
|
945
|
-
class: E(l(o).be("footer", "btn")),
|
|
946
|
-
onClick: Ze
|
|
947
|
-
}, {
|
|
948
|
-
default: x(() => [
|
|
949
|
-
Pe(Ke(l(i)("el.colorpicker.confirm")), 1)
|
|
950
|
-
]),
|
|
951
|
-
_: 1
|
|
952
|
-
}, 8, ["class"])
|
|
953
|
-
])
|
|
954
|
-
]),
|
|
955
|
-
_: 1
|
|
956
|
-
}, 16, ["onKeydown"])), [
|
|
957
|
-
[l(Ta), ta, d.value]
|
|
958
|
-
])
|
|
959
|
-
]),
|
|
960
|
-
default: x(() => [
|
|
961
|
-
L("div", Ee({
|
|
962
|
-
id: l(u),
|
|
963
|
-
ref_key: "triggerRef",
|
|
964
|
-
ref: d
|
|
965
|
-
}, c.$attrs, {
|
|
966
|
-
class: l(Ge),
|
|
967
|
-
role: "button",
|
|
968
|
-
"aria-label": l(qe),
|
|
969
|
-
"aria-labelledby": l(Ue),
|
|
970
|
-
"aria-description": l(i)("el.colorpicker.description", { color: c.modelValue || "" }),
|
|
971
|
-
"aria-disabled": l(p),
|
|
972
|
-
tabindex: l(p) ? void 0 : c.tabindex,
|
|
973
|
-
onKeydown: la,
|
|
974
|
-
onFocus: l(K),
|
|
975
|
-
onBlur: l(k)
|
|
976
|
-
}), [
|
|
977
|
-
L("div", {
|
|
978
|
-
class: E(l(o).be("picker", "trigger")),
|
|
979
|
-
onClick: Qe
|
|
980
|
-
}, [
|
|
981
|
-
L("span", {
|
|
982
|
-
class: E([l(o).be("picker", "color"), l(o).is("alpha", c.showAlpha)])
|
|
983
|
-
}, [
|
|
984
|
-
L("span", {
|
|
985
|
-
class: E(l(o).be("picker", "color-inner")),
|
|
986
|
-
style: M({
|
|
987
|
-
backgroundColor: l(G)
|
|
988
|
-
})
|
|
989
|
-
}, [
|
|
990
|
-
ie(O(l(Te), {
|
|
991
|
-
class: E([l(o).be("picker", "icon"), l(o).is("icon-arrow-down")])
|
|
992
|
-
}, {
|
|
993
|
-
default: x(() => [
|
|
994
|
-
O(l(ma))
|
|
995
|
-
]),
|
|
996
|
-
_: 1
|
|
997
|
-
}, 8, ["class"]), [
|
|
998
|
-
[Se, c.modelValue || v.value]
|
|
999
|
-
]),
|
|
1000
|
-
ie(O(l(Te), {
|
|
1001
|
-
class: E([l(o).be("picker", "empty"), l(o).is("icon-close")])
|
|
1002
|
-
}, {
|
|
1003
|
-
default: x(() => [
|
|
1004
|
-
O(l(ga))
|
|
1005
|
-
]),
|
|
1006
|
-
_: 1
|
|
1007
|
-
}, 8, ["class"]), [
|
|
1008
|
-
[Se, !c.modelValue && !v.value]
|
|
1009
|
-
])
|
|
1010
|
-
], 6)
|
|
1011
|
-
], 2)
|
|
1012
|
-
], 2)
|
|
1013
|
-
], 16, ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex", "onFocus", "onBlur"])
|
|
1014
|
-
]),
|
|
1015
|
-
_: 1
|
|
1016
|
-
}, 8, ["visible", "popper-class", "popper-style", "teleported", "transition", "persistent", "append-to", "onHide"]));
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1019
|
-
var it = /* @__PURE__ */ H(rt, [["__file", "color-picker.vue"]]);
|
|
1020
|
-
const kt = xe(it);
|
|
1021
|
-
export {
|
|
1022
|
-
kt as E,
|
|
1023
|
-
Aa as d
|
|
1024
|
-
};
|