st-comp 0.0.148 → 0.0.150
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/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +28 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +577 -631
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1903 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +677 -1428
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +316 -2740
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +60 -58
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +102 -98
- package/es/User.cjs +1 -1
- package/es/User.js +397 -373
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2395 -1
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +154 -151
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-e3d8a9ab.js} +13 -13
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-c770910d.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-feed0e8a.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-c87e277f.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-c64fb3b5.js → debounce-6cb0781f.js} +29 -29
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-c9272ca3.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-6bdb3cf4.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/el-button-0bf1d532.js +236 -0
- package/es/el-button-62966947.cjs +1 -0
- package/es/el-checkbox-group-45247bbf.cjs +1 -0
- package/es/el-checkbox-group-d53bc316.js +67 -0
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-89a523ed.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-55d36086.js → el-form-item-05c0e335.js} +82 -81
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-cb528574.js → el-input-1e309239.js} +46 -45
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-ce30bfa8.js → el-input-number-60ebc58f.js} +50 -48
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/el-menu-item-6c6236a1.js +772 -0
- package/es/{el-message-d51d032b.js → el-message-7d927756.js} +56 -55
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/el-overlay-26bf0945.js +521 -0
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/el-popover-17e2e66c.js +140 -0
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-f4b01f85.js → el-popper-b6527ae2.js} +217 -216
- package/es/{el-scrollbar-e8e93751.js → el-scrollbar-29bcab5f.js} +22 -22
- package/es/el-scrollbar-ac525239.cjs +1 -0
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-e71af2e6.js → el-select-7395562b.js} +42 -40
- package/es/el-table-column-47d80736.js +3804 -0
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-d65768f4.js → el-tag-7414e0c7.js} +59 -58
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-da646183.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-92ba4292.js → index-273822d1.js} +26 -25
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-121e2861.js → index-621b092b.js} +3 -3
- package/es/index-657047bb.js +513 -0
- package/es/{index-18416440.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-4d37077d.js → index-72151b24.js} +151 -312
- package/es/index-9e6e8d03.cjs +1 -0
- package/es/index-ab96bbf4.js +156 -0
- package/es/index-afc88a4b.cjs +1 -0
- package/es/index-c066fe0d.js +82 -0
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-709675d5.js → index-dc22ffe4.js} +18 -18
- package/es/index-eea0bcb3.cjs +1 -0
- package/es/index.esm-8d9a2abe.js +2432 -0
- package/es/index.esm-94a95a2a.cjs +3 -0
- package/es/{raf-f55e0daa.js → raf-a532c514.js} +1 -1
- package/es/{raf-2d77cbbe.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-c8ac196e.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-ca84f80a.js → scroll-d787d648.js} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-5ff2f51b.js +171 -0
- package/es/use-form-common-props-74a96df2.cjs +2 -0
- package/es/vnode-6a0c7411.js +14 -0
- package/es/vnode-b15eb11b.cjs +1 -0
- package/es/{zh-cn-414d7f0c.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-23c8e0d1.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-ffeb163e.js → index-d0cb2fa2.js} +33754 -31705
- package/lib/{python-0ec8f68c.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +40 -0
- package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
- package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
- package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
- package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
- package/packages/Kline/componentsNew/Tips/index.vue +33 -0
- package/packages/Kline/formatKlineData.ts +109 -0
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.ts +16 -0
- package/packages/Kline/index.vue +891 -0
- package/packages/Kline/option.ts +539 -0
- package/packages/Kline/type.d.ts +219 -0
- package/packages/Kline/utils.ts +682 -0
- package/packages/PasswordPrompt/index.ts +8 -0
- package/packages/PasswordPrompt/index.vue +266 -0
- package/packages/User/index.vue +97 -58
- package/packages/index.ts +4 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +10 -0
- package/es/_initCloneObject-476b02ce.cjs +0 -1
- package/es/base-6ccc8fc2.cjs +0 -9
- package/es/base-950bac7e.js +0 -816
- package/es/castArray-374558a5.cjs +0 -1
- package/es/debounce-a6b4f91b.cjs +0 -1
- package/es/el-button-b8f71c7d.cjs +0 -1
- package/es/el-button-d7b6eebd.js +0 -745
- package/es/el-empty-12eece57.cjs +0 -1
- package/es/el-form-item-ebbf096d.cjs +0 -12
- package/es/el-input-2c7e70a3.cjs +0 -1
- package/es/el-input-number-8e168e83.cjs +0 -1
- package/es/el-message-612c2346.cjs +0 -1
- package/es/el-overlay-07414277.js +0 -526
- package/es/el-overlay-fb255b83.cjs +0 -1
- package/es/el-popper-8360bd91.cjs +0 -1
- package/es/el-scrollbar-271142ad.cjs +0 -1
- package/es/el-select-2e71d4af.cjs +0 -1
- package/es/el-table-column-9fe79f05.cjs +0 -14
- package/es/el-table-column-dc562f14.js +0 -3933
- package/es/el-tag-930e7b32.cjs +0 -1
- package/es/index-0ed86daf.cjs +0 -3
- package/es/index-674d2fd7.cjs +0 -1
- package/es/index-aece600c.js +0 -81
- package/es/use-form-common-props-c1960844.cjs +0 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as E, computed as w, openBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { b as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as E, computed as w, openBlock as r, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as g, createElementVNode as i, renderSlot as b, createBlock as u, withModifiers as y, withCtx as p, createVNode as v, createCommentVNode as C, Transition as N } from "vue";
|
|
2
|
+
import { E as _, o as h } from "./index-72151b24.js";
|
|
3
|
+
import { b as V, u as $, _ as I, w as P } from "./base-19787dfb.js";
|
|
4
|
+
import { c as F, a as K } from "./use-form-common-props-5ff2f51b.js";
|
|
5
|
+
const j = V({
|
|
5
6
|
type: {
|
|
6
7
|
type: String,
|
|
7
8
|
values: ["primary", "success", "info", "warning", "danger"],
|
|
@@ -13,7 +14,7 @@ const j = I({
|
|
|
13
14
|
color: String,
|
|
14
15
|
size: {
|
|
15
16
|
type: String,
|
|
16
|
-
values:
|
|
17
|
+
values: F
|
|
17
18
|
},
|
|
18
19
|
effect: {
|
|
19
20
|
type: String,
|
|
@@ -30,8 +31,8 @@ const j = I({
|
|
|
30
31
|
...A,
|
|
31
32
|
props: j,
|
|
32
33
|
emits: q,
|
|
33
|
-
setup(a, { emit:
|
|
34
|
-
const S = a, T =
|
|
34
|
+
setup(a, { emit: m }) {
|
|
35
|
+
const S = a, T = K(), o = $("tag"), d = w(() => {
|
|
35
36
|
const { type: e, hit: l, effect: t, closable: c, round: B } = S;
|
|
36
37
|
return [
|
|
37
38
|
o.b(),
|
|
@@ -43,25 +44,25 @@ const j = I({
|
|
|
43
44
|
o.is("round", B)
|
|
44
45
|
];
|
|
45
46
|
}), f = (e) => {
|
|
46
|
-
|
|
47
|
+
m("close", e);
|
|
47
48
|
}, k = (e) => {
|
|
48
|
-
|
|
49
|
+
m("click", e);
|
|
49
50
|
}, z = (e) => {
|
|
50
51
|
var l, t, c;
|
|
51
52
|
(c = (t = (l = e == null ? void 0 : e.component) == null ? void 0 : l.subTree) == null ? void 0 : t.component) != null && c.bum && (e.component.subTree.component.bum = null);
|
|
52
53
|
};
|
|
53
|
-
return (e, l) => e.disableTransitions ? (
|
|
54
|
+
return (e, l) => e.disableTransitions ? (r(), M("span", {
|
|
54
55
|
key: 0,
|
|
55
|
-
class: n(s(
|
|
56
|
-
style:
|
|
56
|
+
class: n(s(d)),
|
|
57
|
+
style: g({ backgroundColor: e.color }),
|
|
57
58
|
onClick: k
|
|
58
59
|
}, [
|
|
59
|
-
|
|
60
|
+
i("span", {
|
|
60
61
|
class: n(s(o).e("content"))
|
|
61
62
|
}, [
|
|
62
|
-
|
|
63
|
+
b(e.$slots, "default")
|
|
63
64
|
], 2),
|
|
64
|
-
e.closable ? (
|
|
65
|
+
e.closable ? (r(), u(s(_), {
|
|
65
66
|
key: 0,
|
|
66
67
|
class: n(s(o).e("close")),
|
|
67
68
|
onClick: y(f, ["stop"])
|
|
@@ -71,24 +72,24 @@ const j = I({
|
|
|
71
72
|
]),
|
|
72
73
|
_: 1
|
|
73
74
|
}, 8, ["class", "onClick"])) : C("v-if", !0)
|
|
74
|
-
], 6)) : (
|
|
75
|
+
], 6)) : (r(), u(N, {
|
|
75
76
|
key: 1,
|
|
76
77
|
name: `${s(o).namespace.value}-zoom-in-center`,
|
|
77
78
|
appear: "",
|
|
78
79
|
onVnodeMounted: z
|
|
79
80
|
}, {
|
|
80
81
|
default: p(() => [
|
|
81
|
-
|
|
82
|
-
class: n(s(
|
|
83
|
-
style:
|
|
82
|
+
i("span", {
|
|
83
|
+
class: n(s(d)),
|
|
84
|
+
style: g({ backgroundColor: e.color }),
|
|
84
85
|
onClick: k
|
|
85
86
|
}, [
|
|
86
|
-
|
|
87
|
+
i("span", {
|
|
87
88
|
class: n(s(o).e("content"))
|
|
88
89
|
}, [
|
|
89
|
-
|
|
90
|
+
b(e.$slots, "default")
|
|
90
91
|
], 2),
|
|
91
|
-
e.closable ? (
|
|
92
|
+
e.closable ? (r(), u(s(_), {
|
|
92
93
|
key: 0,
|
|
93
94
|
class: n(s(o).e("close")),
|
|
94
95
|
onClick: y(f, ["stop"])
|
|
@@ -104,9 +105,9 @@ const j = I({
|
|
|
104
105
|
}, 8, ["name"]));
|
|
105
106
|
}
|
|
106
107
|
});
|
|
107
|
-
var G = /* @__PURE__ */
|
|
108
|
-
const
|
|
108
|
+
var G = /* @__PURE__ */ I(D, [["__file", "tag.vue"]]);
|
|
109
|
+
const Q = P(G);
|
|
109
110
|
export {
|
|
110
|
-
|
|
111
|
+
Q as E,
|
|
111
112
|
j as t
|
|
112
113
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),c=require("./base-0ca7c43a.cjs"),i=require("./use-form-common-props-74a96df2.cjs"),v=require("./index-375e8de4.cjs"),g=Symbol();function b(o,u,t){return o==null?o:i.baseSet(o,u,t)}const m=o=>Object.keys(o),x=(o,u,t)=>({get value(){return v.get(o,u,t)},set value(l){b(o,u,l)}}),d=n.ref();function p(o,u=void 0){const t=n.getCurrentInstance()?n.inject(g,d):d;return o?n.computed(()=>{var l,r;return(r=(l=t.value)==null?void 0:l[o])!=null?r:u}):t}function y(o,u){const t=p(),l=c.useNamespace(o,n.computed(()=>{var e;return((e=t.value)==null?void 0:e.namespace)||c.defaultNamespace})),r=v.useLocale(n.computed(()=>{var e;return(e=t.value)==null?void 0:e.locale})),s=i.useZIndex(n.computed(()=>{var e;return((e=t.value)==null?void 0:e.zIndex)||i.defaultInitialZIndex})),a=n.computed(()=>{var e;return n.unref(u)||((e=t.value)==null?void 0:e.size)||""});return C(n.computed(()=>n.unref(t)||{})),{ns:l,locale:r,zIndex:s,size:a}}const C=(o,u,t=!1)=>{var l;const r=!!n.getCurrentInstance(),s=r?p():void 0,a=(l=u==null?void 0:u.provide)!=null?l:r?n.provide:void 0;if(!a){c.debugWarn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const e=n.computed(()=>{const f=n.unref(o);return s!=null&&s.value?I(s.value,f):f});return a(g,e),a(v.localeContextKey,n.computed(()=>e.value.locale)),a(c.namespaceContextKey,n.computed(()=>e.value.namespace)),a(i.zIndexContextKey,n.computed(()=>e.value.zIndex)),a(i.SIZE_INJECTION_KEY,{size:n.computed(()=>e.value.size||"")}),a(i.emptyValuesContextKey,n.computed(()=>({emptyValues:e.value.emptyValues,valueOnClear:e.value.valueOnClear}))),(t||!d.value)&&(d.value=e.value),e},I=(o,u)=>{const t=[...new Set([...m(o),...m(u)])],l={};for(const r of t)l[r]=u[r]!==void 0?u[r]:o[r];return l},_=({from:o,replacement:u,scope:t,version:l,ref:r,type:s="API"},a)=>{n.watch(()=>n.unref(a),e=>{e&&c.debugWarn(t,`[${s}] ${o} is about to be deprecated in version ${l}, please use ${u} instead.
|
|
2
|
+
For more detail, please visit: ${r}
|
|
3
|
+
`)},{immediate:!0})};exports.getProp=x;exports.provideGlobalConfig=C;exports.useDeprecated=_;exports.useGlobalComponentSettings=y;exports.useGlobalConfig=p;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const o=require("vue"),p=require("./base-0ca7c43a.cjs");var U=typeof global=="object"&&global&&global.Object===Object&&global;const N=U;var q=typeof self=="object"&&self&&self.Object===Object&&self,B=N||q||Function("return this")();const f=B;var W=f.Symbol;const c=W;var $=Object.prototype,X=$.hasOwnProperty,Z=$.toString,d=c?c.toStringTag:void 0;function V(e){var t=X.call(e,d),r=e[d];try{e[d]=void 0;var n=!0}catch{}var a=Z.call(e);return n&&(t?e[d]=r:delete e[d]),a}var Q=Object.prototype,ee=Q.toString;function te(e){return ee.call(e)}var re="[object Null]",ne="[object Undefined]",j=c?c.toStringTag:void 0;function S(e){return e==null?e===void 0?ne:re:j&&j in Object(e)?V(e):te(e)}function D(e){return e!=null&&typeof e=="object"}var ae="[object Symbol]";function g(e){return typeof e=="symbol"||D(e)&&S(e)==ae}function M(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var oe=Array.isArray;const m=oe;var ie=1/0,P=c?c.prototype:void 0,I=P?P.toString:void 0;function E(e){if(typeof e=="string")return e;if(m(e))return M(e,E)+"";if(g(e))return I?I.call(e):"";var t=e+"";return t=="0"&&1/e==-ie?"-0":t}function C(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var se="[object AsyncFunction]",ce="[object Function]",le="[object GeneratorFunction]",ue="[object Proxy]";function F(e){if(!C(e))return!1;var t=S(e);return t==ce||t==le||t==se||t==ue}var de=f["__core-js_shared__"];const v=de;var O=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function he(e){return!!O&&O in e}var pe=Function.prototype,fe=pe.toString;function A(e){if(e!=null){try{return fe.call(e)}catch{}try{return e+""}catch{}}return""}var ge=/[\\^$.*+?()[\]{}|]/g,me=/^\[object .+?Constructor\]$/,ye=Function.prototype,be=Object.prototype,_e=ye.toString,ve=be.hasOwnProperty,Te=RegExp("^"+_e.call(ve).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Se(e){if(!C(e)||he(e))return!1;var t=F(e)?Te:me;return t.test(A(e))}function Ce(e,t){return e==null?void 0:e[t]}function w(e,t){var r=Ce(e,t);return Se(r)?r:void 0}function L(e,t){return e===t||e!==e&&t!==t}var we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/;function z(e,t){if(m(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||g(e)?!0:xe.test(e)||!we.test(e)||t!=null&&e in Object(t)}var je=w(Object,"create");const h=je;function Pe(){this.__data__=h?h(null):{},this.size=0}function Ie(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Oe="__lodash_hash_undefined__",Ne=Object.prototype,$e=Ne.hasOwnProperty;function De(e){var t=this.__data__;if(h){var r=t[e];return r===Oe?void 0:r}return $e.call(t,e)?t[e]:void 0}var Me=Object.prototype,Ee=Me.hasOwnProperty;function Fe(e){var t=this.__data__;return h?t[e]!==void 0:Ee.call(t,e)}var Ae="__lodash_hash_undefined__";function Le(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=h&&t===void 0?Ae:t,this}function l(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=Pe;l.prototype.delete=Ie;l.prototype.get=De;l.prototype.has=Fe;l.prototype.set=Le;function ze(){this.__data__=[],this.size=0}function y(e,t){for(var r=e.length;r--;)if(L(e[r][0],t))return r;return-1}var ke=Array.prototype,Ge=ke.splice;function Ke(e){var t=this.__data__,r=y(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ge.call(t,r,1),--this.size,!0}function Re(e){var t=this.__data__,r=y(t,e);return r<0?void 0:t[r][1]}function He(e){return y(this.__data__,e)>-1}function Je(e,t){var r=this.__data__,n=y(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function u(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=ze;u.prototype.delete=Ke;u.prototype.get=Re;u.prototype.has=He;u.prototype.set=Je;var Ye=w(f,"Map");const k=Ye;function Ue(){this.size=0,this.__data__={hash:new l,map:new(k||u),string:new l}}function qe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function b(e,t){var r=e.__data__;return qe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Be(e){var t=b(this,e).delete(e);return this.size-=t?1:0,t}function We(e){return b(this,e).get(e)}function Xe(e){return b(this,e).has(e)}function Ze(e,t){var r=b(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function s(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=Ue;s.prototype.delete=Be;s.prototype.get=We;s.prototype.has=Xe;s.prototype.set=Ze;var Ve="Expected a function";function _(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ve);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var x=e.apply(this,n);return r.cache=i.set(a,x)||i,x};return r.cache=new(_.Cache||s),r}_.Cache=s;var Qe=500;function et(e){var t=_(e,function(n){return r.size===Qe&&r.clear(),n}),r=t.cache;return t}var tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/\\(\\)?/g,nt=et(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tt,function(r,n,a,i){t.push(a?i.replace(rt,"$1"):n||r)}),t});const at=nt;function ot(e){return e==null?"":E(e)}function G(e,t){return m(e)?e:z(e,t)?[e]:at(ot(e))}var it=1/0;function K(e){if(typeof e=="string"||g(e))return e;var t=e+"";return t=="0"&&1/e==-it?"-0":t}function R(e,t){t=G(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[K(t[r++])];return r&&r==n?e:void 0}function H(e,t,r){var n=e==null?void 0:R(e,t);return n===void 0?r:n}var st={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const ct=e=>(t,r)=>lt(t,r,o.unref(e)),lt=(e,t,r)=>H(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),ut=e=>{const t=o.computed(()=>o.unref(e).name),r=o.isRef(e)?e:o.ref(e);return{lang:t,locale:r,t:ct(e)}},J=Symbol("localeContextKey"),dt=e=>{const t=e||o.inject(J,o.ref());return ut(o.computed(()=>t.value||st))},T={prefix:Math.floor(Math.random()*1e4),current:0},ht=Symbol("elIdInjection"),Y=()=>o.getCurrentInstance()?o.inject(ht,T):T,pt=e=>{const t=Y();!p.isClient&&t===T&&p.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
|
+
prefix: number,
|
|
4
|
+
current: number,
|
|
5
|
+
})`);const r=p.useGetDerivedNamespace();return p.computedEager(()=>o.unref(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};exports.ListCache=u;exports.Map=k;exports.MapCache=s;exports.Symbol=c;exports.arrayMap=M;exports.baseGet=R;exports.baseGetTag=S;exports.castPath=G;exports.eq=L;exports.freeGlobal=N;exports.get=H;exports.getNative=w;exports.isArray=m;exports.isFunction=F;exports.isKey=z;exports.isObject=C;exports.isObjectLike=D;exports.isSymbol=g;exports.localeContextKey=J;exports.memoize=_;exports.root=f;exports.toKey=K;exports.toSource=A;exports.useId=pt;exports.useIdInjection=Y;exports.useLocale=dt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as y, onMounted as I, onBeforeUnmount as R, defineComponent as ee, provide as ae, watch as A, unref as b, nextTick as M, renderSlot as O, openBlock as ce, createBlock as ue, Teleport as ie } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { l as q, h as j, p as de, _ as te, i as fe, b as le, d as pe, w as Ee } from "./base-19787dfb.js";
|
|
3
3
|
function De(e) {
|
|
4
4
|
return e === void 0;
|
|
5
5
|
}
|
|
@@ -296,8 +296,8 @@ export {
|
|
|
296
296
|
Fe as F,
|
|
297
297
|
Ve as I,
|
|
298
298
|
xe as U,
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
He as a,
|
|
300
|
+
Me as b,
|
|
301
301
|
ne as c,
|
|
302
302
|
l as d,
|
|
303
303
|
De as i,
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
function h(r, t) {
|
|
2
|
+
F(r) && (r = "100%");
|
|
3
|
+
var e = I(r);
|
|
4
|
+
return r = t === 360 ? r : Math.min(t, Math.max(0, parseFloat(r))), e && (r = parseInt(String(r * t), 10) / 100), Math.abs(r - t) < 1e-6 ? 1 : (t === 360 ? r = (r < 0 ? r % t + t : r % t) / parseFloat(String(t)) : r = r % t / parseFloat(String(t)), r);
|
|
5
|
+
}
|
|
6
|
+
function v(r) {
|
|
7
|
+
return Math.min(1, Math.max(0, r));
|
|
8
|
+
}
|
|
9
|
+
function F(r) {
|
|
10
|
+
return typeof r == "string" && r.indexOf(".") !== -1 && parseFloat(r) === 1;
|
|
11
|
+
}
|
|
12
|
+
function I(r) {
|
|
13
|
+
return typeof r == "string" && r.indexOf("%") !== -1;
|
|
14
|
+
}
|
|
15
|
+
function A(r) {
|
|
16
|
+
return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r;
|
|
17
|
+
}
|
|
18
|
+
function p(r) {
|
|
19
|
+
return r <= 1 ? "".concat(Number(r) * 100, "%") : r;
|
|
20
|
+
}
|
|
21
|
+
function b(r) {
|
|
22
|
+
return r.length === 1 ? "0" + r : String(r);
|
|
23
|
+
}
|
|
24
|
+
function E(r, t, e) {
|
|
25
|
+
return {
|
|
26
|
+
r: h(r, 255) * 255,
|
|
27
|
+
g: h(t, 255) * 255,
|
|
28
|
+
b: h(e, 255) * 255
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function M(r, t, e) {
|
|
32
|
+
r = h(r, 255), t = h(t, 255), e = h(e, 255);
|
|
33
|
+
var a = Math.max(r, t, e), n = Math.min(r, t, e), i = 0, f = 0, s = (a + n) / 2;
|
|
34
|
+
if (a === n)
|
|
35
|
+
f = 0, i = 0;
|
|
36
|
+
else {
|
|
37
|
+
var u = a - n;
|
|
38
|
+
switch (f = s > 0.5 ? u / (2 - a - n) : u / (a + n), a) {
|
|
39
|
+
case r:
|
|
40
|
+
i = (t - e) / u + (t < e ? 6 : 0);
|
|
41
|
+
break;
|
|
42
|
+
case t:
|
|
43
|
+
i = (e - r) / u + 2;
|
|
44
|
+
break;
|
|
45
|
+
case e:
|
|
46
|
+
i = (r - t) / u + 4;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
i /= 6;
|
|
50
|
+
}
|
|
51
|
+
return { h: i, s: f, l: s };
|
|
52
|
+
}
|
|
53
|
+
function l(r, t, e) {
|
|
54
|
+
return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? r + (t - r) * (6 * e) : e < 1 / 2 ? t : e < 2 / 3 ? r + (t - r) * (2 / 3 - e) * 6 : r;
|
|
55
|
+
}
|
|
56
|
+
function B(r, t, e) {
|
|
57
|
+
var a, n, i;
|
|
58
|
+
if (r = h(r, 360), t = h(t, 100), e = h(e, 100), t === 0)
|
|
59
|
+
n = e, i = e, a = e;
|
|
60
|
+
else {
|
|
61
|
+
var f = e < 0.5 ? e * (1 + t) : e + t - e * t, s = 2 * e - f;
|
|
62
|
+
a = l(s, f, r + 1 / 3), n = l(s, f, r), i = l(s, f, r - 1 / 3);
|
|
63
|
+
}
|
|
64
|
+
return { r: a * 255, g: n * 255, b: i * 255 };
|
|
65
|
+
}
|
|
66
|
+
function S(r, t, e) {
|
|
67
|
+
r = h(r, 255), t = h(t, 255), e = h(e, 255);
|
|
68
|
+
var a = Math.max(r, t, e), n = Math.min(r, t, e), i = 0, f = a, s = a - n, u = a === 0 ? 0 : s / a;
|
|
69
|
+
if (a === n)
|
|
70
|
+
i = 0;
|
|
71
|
+
else {
|
|
72
|
+
switch (a) {
|
|
73
|
+
case r:
|
|
74
|
+
i = (t - e) / s + (t < e ? 6 : 0);
|
|
75
|
+
break;
|
|
76
|
+
case t:
|
|
77
|
+
i = (e - r) / s + 2;
|
|
78
|
+
break;
|
|
79
|
+
case e:
|
|
80
|
+
i = (r - t) / s + 4;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
i /= 6;
|
|
84
|
+
}
|
|
85
|
+
return { h: i, s: u, v: f };
|
|
86
|
+
}
|
|
87
|
+
function N(r, t, e) {
|
|
88
|
+
r = h(r, 360) * 6, t = h(t, 100), e = h(e, 100);
|
|
89
|
+
var a = Math.floor(r), n = r - a, i = e * (1 - t), f = e * (1 - n * t), s = e * (1 - (1 - n) * t), u = a % 6, H = [e, f, i, i, s, e][u], R = [s, e, e, f, i, i][u], T = [i, i, s, e, e, f][u];
|
|
90
|
+
return { r: H * 255, g: R * 255, b: T * 255 };
|
|
91
|
+
}
|
|
92
|
+
function k(r, t, e, a) {
|
|
93
|
+
var n = [
|
|
94
|
+
b(Math.round(r).toString(16)),
|
|
95
|
+
b(Math.round(t).toString(16)),
|
|
96
|
+
b(Math.round(e).toString(16))
|
|
97
|
+
];
|
|
98
|
+
return a && n[0].startsWith(n[0].charAt(1)) && n[1].startsWith(n[1].charAt(1)) && n[2].startsWith(n[2].charAt(1)) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) : n.join("");
|
|
99
|
+
}
|
|
100
|
+
function P(r, t, e, a, n) {
|
|
101
|
+
var i = [
|
|
102
|
+
b(Math.round(r).toString(16)),
|
|
103
|
+
b(Math.round(t).toString(16)),
|
|
104
|
+
b(Math.round(e).toString(16)),
|
|
105
|
+
b(j(a))
|
|
106
|
+
];
|
|
107
|
+
return n && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
|
|
108
|
+
}
|
|
109
|
+
function j(r) {
|
|
110
|
+
return Math.round(parseFloat(r) * 255).toString(16);
|
|
111
|
+
}
|
|
112
|
+
function w(r) {
|
|
113
|
+
return o(r) / 255;
|
|
114
|
+
}
|
|
115
|
+
function o(r) {
|
|
116
|
+
return parseInt(r, 16);
|
|
117
|
+
}
|
|
118
|
+
function O(r) {
|
|
119
|
+
return {
|
|
120
|
+
r: r >> 16,
|
|
121
|
+
g: (r & 65280) >> 8,
|
|
122
|
+
b: r & 255
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
var x = {
|
|
126
|
+
aliceblue: "#f0f8ff",
|
|
127
|
+
antiquewhite: "#faebd7",
|
|
128
|
+
aqua: "#00ffff",
|
|
129
|
+
aquamarine: "#7fffd4",
|
|
130
|
+
azure: "#f0ffff",
|
|
131
|
+
beige: "#f5f5dc",
|
|
132
|
+
bisque: "#ffe4c4",
|
|
133
|
+
black: "#000000",
|
|
134
|
+
blanchedalmond: "#ffebcd",
|
|
135
|
+
blue: "#0000ff",
|
|
136
|
+
blueviolet: "#8a2be2",
|
|
137
|
+
brown: "#a52a2a",
|
|
138
|
+
burlywood: "#deb887",
|
|
139
|
+
cadetblue: "#5f9ea0",
|
|
140
|
+
chartreuse: "#7fff00",
|
|
141
|
+
chocolate: "#d2691e",
|
|
142
|
+
coral: "#ff7f50",
|
|
143
|
+
cornflowerblue: "#6495ed",
|
|
144
|
+
cornsilk: "#fff8dc",
|
|
145
|
+
crimson: "#dc143c",
|
|
146
|
+
cyan: "#00ffff",
|
|
147
|
+
darkblue: "#00008b",
|
|
148
|
+
darkcyan: "#008b8b",
|
|
149
|
+
darkgoldenrod: "#b8860b",
|
|
150
|
+
darkgray: "#a9a9a9",
|
|
151
|
+
darkgreen: "#006400",
|
|
152
|
+
darkgrey: "#a9a9a9",
|
|
153
|
+
darkkhaki: "#bdb76b",
|
|
154
|
+
darkmagenta: "#8b008b",
|
|
155
|
+
darkolivegreen: "#556b2f",
|
|
156
|
+
darkorange: "#ff8c00",
|
|
157
|
+
darkorchid: "#9932cc",
|
|
158
|
+
darkred: "#8b0000",
|
|
159
|
+
darksalmon: "#e9967a",
|
|
160
|
+
darkseagreen: "#8fbc8f",
|
|
161
|
+
darkslateblue: "#483d8b",
|
|
162
|
+
darkslategray: "#2f4f4f",
|
|
163
|
+
darkslategrey: "#2f4f4f",
|
|
164
|
+
darkturquoise: "#00ced1",
|
|
165
|
+
darkviolet: "#9400d3",
|
|
166
|
+
deeppink: "#ff1493",
|
|
167
|
+
deepskyblue: "#00bfff",
|
|
168
|
+
dimgray: "#696969",
|
|
169
|
+
dimgrey: "#696969",
|
|
170
|
+
dodgerblue: "#1e90ff",
|
|
171
|
+
firebrick: "#b22222",
|
|
172
|
+
floralwhite: "#fffaf0",
|
|
173
|
+
forestgreen: "#228b22",
|
|
174
|
+
fuchsia: "#ff00ff",
|
|
175
|
+
gainsboro: "#dcdcdc",
|
|
176
|
+
ghostwhite: "#f8f8ff",
|
|
177
|
+
goldenrod: "#daa520",
|
|
178
|
+
gold: "#ffd700",
|
|
179
|
+
gray: "#808080",
|
|
180
|
+
green: "#008000",
|
|
181
|
+
greenyellow: "#adff2f",
|
|
182
|
+
grey: "#808080",
|
|
183
|
+
honeydew: "#f0fff0",
|
|
184
|
+
hotpink: "#ff69b4",
|
|
185
|
+
indianred: "#cd5c5c",
|
|
186
|
+
indigo: "#4b0082",
|
|
187
|
+
ivory: "#fffff0",
|
|
188
|
+
khaki: "#f0e68c",
|
|
189
|
+
lavenderblush: "#fff0f5",
|
|
190
|
+
lavender: "#e6e6fa",
|
|
191
|
+
lawngreen: "#7cfc00",
|
|
192
|
+
lemonchiffon: "#fffacd",
|
|
193
|
+
lightblue: "#add8e6",
|
|
194
|
+
lightcoral: "#f08080",
|
|
195
|
+
lightcyan: "#e0ffff",
|
|
196
|
+
lightgoldenrodyellow: "#fafad2",
|
|
197
|
+
lightgray: "#d3d3d3",
|
|
198
|
+
lightgreen: "#90ee90",
|
|
199
|
+
lightgrey: "#d3d3d3",
|
|
200
|
+
lightpink: "#ffb6c1",
|
|
201
|
+
lightsalmon: "#ffa07a",
|
|
202
|
+
lightseagreen: "#20b2aa",
|
|
203
|
+
lightskyblue: "#87cefa",
|
|
204
|
+
lightslategray: "#778899",
|
|
205
|
+
lightslategrey: "#778899",
|
|
206
|
+
lightsteelblue: "#b0c4de",
|
|
207
|
+
lightyellow: "#ffffe0",
|
|
208
|
+
lime: "#00ff00",
|
|
209
|
+
limegreen: "#32cd32",
|
|
210
|
+
linen: "#faf0e6",
|
|
211
|
+
magenta: "#ff00ff",
|
|
212
|
+
maroon: "#800000",
|
|
213
|
+
mediumaquamarine: "#66cdaa",
|
|
214
|
+
mediumblue: "#0000cd",
|
|
215
|
+
mediumorchid: "#ba55d3",
|
|
216
|
+
mediumpurple: "#9370db",
|
|
217
|
+
mediumseagreen: "#3cb371",
|
|
218
|
+
mediumslateblue: "#7b68ee",
|
|
219
|
+
mediumspringgreen: "#00fa9a",
|
|
220
|
+
mediumturquoise: "#48d1cc",
|
|
221
|
+
mediumvioletred: "#c71585",
|
|
222
|
+
midnightblue: "#191970",
|
|
223
|
+
mintcream: "#f5fffa",
|
|
224
|
+
mistyrose: "#ffe4e1",
|
|
225
|
+
moccasin: "#ffe4b5",
|
|
226
|
+
navajowhite: "#ffdead",
|
|
227
|
+
navy: "#000080",
|
|
228
|
+
oldlace: "#fdf5e6",
|
|
229
|
+
olive: "#808000",
|
|
230
|
+
olivedrab: "#6b8e23",
|
|
231
|
+
orange: "#ffa500",
|
|
232
|
+
orangered: "#ff4500",
|
|
233
|
+
orchid: "#da70d6",
|
|
234
|
+
palegoldenrod: "#eee8aa",
|
|
235
|
+
palegreen: "#98fb98",
|
|
236
|
+
paleturquoise: "#afeeee",
|
|
237
|
+
palevioletred: "#db7093",
|
|
238
|
+
papayawhip: "#ffefd5",
|
|
239
|
+
peachpuff: "#ffdab9",
|
|
240
|
+
peru: "#cd853f",
|
|
241
|
+
pink: "#ffc0cb",
|
|
242
|
+
plum: "#dda0dd",
|
|
243
|
+
powderblue: "#b0e0e6",
|
|
244
|
+
purple: "#800080",
|
|
245
|
+
rebeccapurple: "#663399",
|
|
246
|
+
red: "#ff0000",
|
|
247
|
+
rosybrown: "#bc8f8f",
|
|
248
|
+
royalblue: "#4169e1",
|
|
249
|
+
saddlebrown: "#8b4513",
|
|
250
|
+
salmon: "#fa8072",
|
|
251
|
+
sandybrown: "#f4a460",
|
|
252
|
+
seagreen: "#2e8b57",
|
|
253
|
+
seashell: "#fff5ee",
|
|
254
|
+
sienna: "#a0522d",
|
|
255
|
+
silver: "#c0c0c0",
|
|
256
|
+
skyblue: "#87ceeb",
|
|
257
|
+
slateblue: "#6a5acd",
|
|
258
|
+
slategray: "#708090",
|
|
259
|
+
slategrey: "#708090",
|
|
260
|
+
snow: "#fffafa",
|
|
261
|
+
springgreen: "#00ff7f",
|
|
262
|
+
steelblue: "#4682b4",
|
|
263
|
+
tan: "#d2b48c",
|
|
264
|
+
teal: "#008080",
|
|
265
|
+
thistle: "#d8bfd8",
|
|
266
|
+
tomato: "#ff6347",
|
|
267
|
+
turquoise: "#40e0d0",
|
|
268
|
+
violet: "#ee82ee",
|
|
269
|
+
wheat: "#f5deb3",
|
|
270
|
+
white: "#ffffff",
|
|
271
|
+
whitesmoke: "#f5f5f5",
|
|
272
|
+
yellow: "#ffff00",
|
|
273
|
+
yellowgreen: "#9acd32"
|
|
274
|
+
};
|
|
275
|
+
function W(r) {
|
|
276
|
+
var t = { r: 0, g: 0, b: 0 }, e = 1, a = null, n = null, i = null, f = !1, s = !1;
|
|
277
|
+
return typeof r == "string" && (r = U(r)), typeof r == "object" && (g(r.r) && g(r.g) && g(r.b) ? (t = E(r.r, r.g, r.b), f = !0, s = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : g(r.h) && g(r.s) && g(r.v) ? (a = p(r.s), n = p(r.v), t = N(r.h, a, n), f = !0, s = "hsv") : g(r.h) && g(r.s) && g(r.l) && (a = p(r.s), i = p(r.l), t = B(r.h, a, i), f = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(r, "a") && (e = r.a)), e = A(e), {
|
|
278
|
+
ok: f,
|
|
279
|
+
format: r.format || s,
|
|
280
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
281
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
282
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
283
|
+
a: e
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
var G = "[-\\+]?\\d+%?", q = "[-\\+]?\\d*\\.\\d+%?", d = "(?:".concat(q, ")|(?:").concat(G, ")"), y = "[\\s|\\(]+(".concat(d, ")[,|\\s]+(").concat(d, ")[,|\\s]+(").concat(d, ")\\s*\\)?"), m = "[\\s|\\(]+(".concat(d, ")[,|\\s]+(").concat(d, ")[,|\\s]+(").concat(d, ")[,|\\s]+(").concat(d, ")\\s*\\)?"), c = {
|
|
287
|
+
CSS_UNIT: new RegExp(d),
|
|
288
|
+
rgb: new RegExp("rgb" + y),
|
|
289
|
+
rgba: new RegExp("rgba" + m),
|
|
290
|
+
hsl: new RegExp("hsl" + y),
|
|
291
|
+
hsla: new RegExp("hsla" + m),
|
|
292
|
+
hsv: new RegExp("hsv" + y),
|
|
293
|
+
hsva: new RegExp("hsva" + m),
|
|
294
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
295
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
296
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
297
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
298
|
+
};
|
|
299
|
+
function U(r) {
|
|
300
|
+
if (r = r.trim().toLowerCase(), r.length === 0)
|
|
301
|
+
return !1;
|
|
302
|
+
var t = !1;
|
|
303
|
+
if (x[r])
|
|
304
|
+
r = x[r], t = !0;
|
|
305
|
+
else if (r === "transparent")
|
|
306
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
307
|
+
var e = c.rgb.exec(r);
|
|
308
|
+
return e ? { r: e[1], g: e[2], b: e[3] } : (e = c.rgba.exec(r), e ? { r: e[1], g: e[2], b: e[3], a: e[4] } : (e = c.hsl.exec(r), e ? { h: e[1], s: e[2], l: e[3] } : (e = c.hsla.exec(r), e ? { h: e[1], s: e[2], l: e[3], a: e[4] } : (e = c.hsv.exec(r), e ? { h: e[1], s: e[2], v: e[3] } : (e = c.hsva.exec(r), e ? { h: e[1], s: e[2], v: e[3], a: e[4] } : (e = c.hex8.exec(r), e ? {
|
|
309
|
+
r: o(e[1]),
|
|
310
|
+
g: o(e[2]),
|
|
311
|
+
b: o(e[3]),
|
|
312
|
+
a: w(e[4]),
|
|
313
|
+
format: t ? "name" : "hex8"
|
|
314
|
+
} : (e = c.hex6.exec(r), e ? {
|
|
315
|
+
r: o(e[1]),
|
|
316
|
+
g: o(e[2]),
|
|
317
|
+
b: o(e[3]),
|
|
318
|
+
format: t ? "name" : "hex"
|
|
319
|
+
} : (e = c.hex4.exec(r), e ? {
|
|
320
|
+
r: o(e[1] + e[1]),
|
|
321
|
+
g: o(e[2] + e[2]),
|
|
322
|
+
b: o(e[3] + e[3]),
|
|
323
|
+
a: w(e[4] + e[4]),
|
|
324
|
+
format: t ? "name" : "hex8"
|
|
325
|
+
} : (e = c.hex3.exec(r), e ? {
|
|
326
|
+
r: o(e[1] + e[1]),
|
|
327
|
+
g: o(e[2] + e[2]),
|
|
328
|
+
b: o(e[3] + e[3]),
|
|
329
|
+
format: t ? "name" : "hex"
|
|
330
|
+
} : !1)))))))));
|
|
331
|
+
}
|
|
332
|
+
function g(r) {
|
|
333
|
+
return !!c.CSS_UNIT.exec(String(r));
|
|
334
|
+
}
|
|
335
|
+
var D = (
|
|
336
|
+
/** @class */
|
|
337
|
+
function() {
|
|
338
|
+
function r(t, e) {
|
|
339
|
+
t === void 0 && (t = ""), e === void 0 && (e = {});
|
|
340
|
+
var a;
|
|
341
|
+
if (t instanceof r)
|
|
342
|
+
return t;
|
|
343
|
+
typeof t == "number" && (t = O(t)), this.originalInput = t;
|
|
344
|
+
var n = W(t);
|
|
345
|
+
this.originalInput = t, this.r = n.r, this.g = n.g, this.b = n.b, this.a = n.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (a = e.format) !== null && a !== void 0 ? a : n.format, this.gradientType = e.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = n.ok;
|
|
346
|
+
}
|
|
347
|
+
return r.prototype.isDark = function() {
|
|
348
|
+
return this.getBrightness() < 128;
|
|
349
|
+
}, r.prototype.isLight = function() {
|
|
350
|
+
return !this.isDark();
|
|
351
|
+
}, r.prototype.getBrightness = function() {
|
|
352
|
+
var t = this.toRgb();
|
|
353
|
+
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
354
|
+
}, r.prototype.getLuminance = function() {
|
|
355
|
+
var t = this.toRgb(), e, a, n, i = t.r / 255, f = t.g / 255, s = t.b / 255;
|
|
356
|
+
return i <= 0.03928 ? e = i / 12.92 : e = Math.pow((i + 0.055) / 1.055, 2.4), f <= 0.03928 ? a = f / 12.92 : a = Math.pow((f + 0.055) / 1.055, 2.4), s <= 0.03928 ? n = s / 12.92 : n = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * e + 0.7152 * a + 0.0722 * n;
|
|
357
|
+
}, r.prototype.getAlpha = function() {
|
|
358
|
+
return this.a;
|
|
359
|
+
}, r.prototype.setAlpha = function(t) {
|
|
360
|
+
return this.a = A(t), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
361
|
+
}, r.prototype.isMonochrome = function() {
|
|
362
|
+
var t = this.toHsl().s;
|
|
363
|
+
return t === 0;
|
|
364
|
+
}, r.prototype.toHsv = function() {
|
|
365
|
+
var t = S(this.r, this.g, this.b);
|
|
366
|
+
return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
|
|
367
|
+
}, r.prototype.toHsvString = function() {
|
|
368
|
+
var t = S(this.r, this.g, this.b), e = Math.round(t.h * 360), a = Math.round(t.s * 100), n = Math.round(t.v * 100);
|
|
369
|
+
return this.a === 1 ? "hsv(".concat(e, ", ").concat(a, "%, ").concat(n, "%)") : "hsva(".concat(e, ", ").concat(a, "%, ").concat(n, "%, ").concat(this.roundA, ")");
|
|
370
|
+
}, r.prototype.toHsl = function() {
|
|
371
|
+
var t = M(this.r, this.g, this.b);
|
|
372
|
+
return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
|
|
373
|
+
}, r.prototype.toHslString = function() {
|
|
374
|
+
var t = M(this.r, this.g, this.b), e = Math.round(t.h * 360), a = Math.round(t.s * 100), n = Math.round(t.l * 100);
|
|
375
|
+
return this.a === 1 ? "hsl(".concat(e, ", ").concat(a, "%, ").concat(n, "%)") : "hsla(".concat(e, ", ").concat(a, "%, ").concat(n, "%, ").concat(this.roundA, ")");
|
|
376
|
+
}, r.prototype.toHex = function(t) {
|
|
377
|
+
return t === void 0 && (t = !1), k(this.r, this.g, this.b, t);
|
|
378
|
+
}, r.prototype.toHexString = function(t) {
|
|
379
|
+
return t === void 0 && (t = !1), "#" + this.toHex(t);
|
|
380
|
+
}, r.prototype.toHex8 = function(t) {
|
|
381
|
+
return t === void 0 && (t = !1), P(this.r, this.g, this.b, this.a, t);
|
|
382
|
+
}, r.prototype.toHex8String = function(t) {
|
|
383
|
+
return t === void 0 && (t = !1), "#" + this.toHex8(t);
|
|
384
|
+
}, r.prototype.toHexShortString = function(t) {
|
|
385
|
+
return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
|
|
386
|
+
}, r.prototype.toRgb = function() {
|
|
387
|
+
return {
|
|
388
|
+
r: Math.round(this.r),
|
|
389
|
+
g: Math.round(this.g),
|
|
390
|
+
b: Math.round(this.b),
|
|
391
|
+
a: this.a
|
|
392
|
+
};
|
|
393
|
+
}, r.prototype.toRgbString = function() {
|
|
394
|
+
var t = Math.round(this.r), e = Math.round(this.g), a = Math.round(this.b);
|
|
395
|
+
return this.a === 1 ? "rgb(".concat(t, ", ").concat(e, ", ").concat(a, ")") : "rgba(".concat(t, ", ").concat(e, ", ").concat(a, ", ").concat(this.roundA, ")");
|
|
396
|
+
}, r.prototype.toPercentageRgb = function() {
|
|
397
|
+
var t = function(e) {
|
|
398
|
+
return "".concat(Math.round(h(e, 255) * 100), "%");
|
|
399
|
+
};
|
|
400
|
+
return {
|
|
401
|
+
r: t(this.r),
|
|
402
|
+
g: t(this.g),
|
|
403
|
+
b: t(this.b),
|
|
404
|
+
a: this.a
|
|
405
|
+
};
|
|
406
|
+
}, r.prototype.toPercentageRgbString = function() {
|
|
407
|
+
var t = function(e) {
|
|
408
|
+
return Math.round(h(e, 255) * 100);
|
|
409
|
+
};
|
|
410
|
+
return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
|
|
411
|
+
}, r.prototype.toName = function() {
|
|
412
|
+
if (this.a === 0)
|
|
413
|
+
return "transparent";
|
|
414
|
+
if (this.a < 1)
|
|
415
|
+
return !1;
|
|
416
|
+
for (var t = "#" + k(this.r, this.g, this.b, !1), e = 0, a = Object.entries(x); e < a.length; e++) {
|
|
417
|
+
var n = a[e], i = n[0], f = n[1];
|
|
418
|
+
if (t === f)
|
|
419
|
+
return i;
|
|
420
|
+
}
|
|
421
|
+
return !1;
|
|
422
|
+
}, r.prototype.toString = function(t) {
|
|
423
|
+
var e = !!t;
|
|
424
|
+
t = t ?? this.format;
|
|
425
|
+
var a = !1, n = this.a < 1 && this.a >= 0, i = !e && n && (t.startsWith("hex") || t === "name");
|
|
426
|
+
return i ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (a = this.toRgbString()), t === "prgb" && (a = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (a = this.toHexString()), t === "hex3" && (a = this.toHexString(!0)), t === "hex4" && (a = this.toHex8String(!0)), t === "hex8" && (a = this.toHex8String()), t === "name" && (a = this.toName()), t === "hsl" && (a = this.toHslString()), t === "hsv" && (a = this.toHsvString()), a || this.toHexString());
|
|
427
|
+
}, r.prototype.toNumber = function() {
|
|
428
|
+
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
429
|
+
}, r.prototype.clone = function() {
|
|
430
|
+
return new r(this.toString());
|
|
431
|
+
}, r.prototype.lighten = function(t) {
|
|
432
|
+
t === void 0 && (t = 10);
|
|
433
|
+
var e = this.toHsl();
|
|
434
|
+
return e.l += t / 100, e.l = v(e.l), new r(e);
|
|
435
|
+
}, r.prototype.brighten = function(t) {
|
|
436
|
+
t === void 0 && (t = 10);
|
|
437
|
+
var e = this.toRgb();
|
|
438
|
+
return e.r = Math.max(0, Math.min(255, e.r - Math.round(255 * -(t / 100)))), e.g = Math.max(0, Math.min(255, e.g - Math.round(255 * -(t / 100)))), e.b = Math.max(0, Math.min(255, e.b - Math.round(255 * -(t / 100)))), new r(e);
|
|
439
|
+
}, r.prototype.darken = function(t) {
|
|
440
|
+
t === void 0 && (t = 10);
|
|
441
|
+
var e = this.toHsl();
|
|
442
|
+
return e.l -= t / 100, e.l = v(e.l), new r(e);
|
|
443
|
+
}, r.prototype.tint = function(t) {
|
|
444
|
+
return t === void 0 && (t = 10), this.mix("white", t);
|
|
445
|
+
}, r.prototype.shade = function(t) {
|
|
446
|
+
return t === void 0 && (t = 10), this.mix("black", t);
|
|
447
|
+
}, r.prototype.desaturate = function(t) {
|
|
448
|
+
t === void 0 && (t = 10);
|
|
449
|
+
var e = this.toHsl();
|
|
450
|
+
return e.s -= t / 100, e.s = v(e.s), new r(e);
|
|
451
|
+
}, r.prototype.saturate = function(t) {
|
|
452
|
+
t === void 0 && (t = 10);
|
|
453
|
+
var e = this.toHsl();
|
|
454
|
+
return e.s += t / 100, e.s = v(e.s), new r(e);
|
|
455
|
+
}, r.prototype.greyscale = function() {
|
|
456
|
+
return this.desaturate(100);
|
|
457
|
+
}, r.prototype.spin = function(t) {
|
|
458
|
+
var e = this.toHsl(), a = (e.h + t) % 360;
|
|
459
|
+
return e.h = a < 0 ? 360 + a : a, new r(e);
|
|
460
|
+
}, r.prototype.mix = function(t, e) {
|
|
461
|
+
e === void 0 && (e = 50);
|
|
462
|
+
var a = this.toRgb(), n = new r(t).toRgb(), i = e / 100, f = {
|
|
463
|
+
r: (n.r - a.r) * i + a.r,
|
|
464
|
+
g: (n.g - a.g) * i + a.g,
|
|
465
|
+
b: (n.b - a.b) * i + a.b,
|
|
466
|
+
a: (n.a - a.a) * i + a.a
|
|
467
|
+
};
|
|
468
|
+
return new r(f);
|
|
469
|
+
}, r.prototype.analogous = function(t, e) {
|
|
470
|
+
t === void 0 && (t = 6), e === void 0 && (e = 30);
|
|
471
|
+
var a = this.toHsl(), n = 360 / e, i = [this];
|
|
472
|
+
for (a.h = (a.h - (n * t >> 1) + 720) % 360; --t; )
|
|
473
|
+
a.h = (a.h + n) % 360, i.push(new r(a));
|
|
474
|
+
return i;
|
|
475
|
+
}, r.prototype.complement = function() {
|
|
476
|
+
var t = this.toHsl();
|
|
477
|
+
return t.h = (t.h + 180) % 360, new r(t);
|
|
478
|
+
}, r.prototype.monochromatic = function(t) {
|
|
479
|
+
t === void 0 && (t = 6);
|
|
480
|
+
for (var e = this.toHsv(), a = e.h, n = e.s, i = e.v, f = [], s = 1 / t; t--; )
|
|
481
|
+
f.push(new r({ h: a, s: n, v: i })), i = (i + s) % 1;
|
|
482
|
+
return f;
|
|
483
|
+
}, r.prototype.splitcomplement = function() {
|
|
484
|
+
var t = this.toHsl(), e = t.h;
|
|
485
|
+
return [
|
|
486
|
+
this,
|
|
487
|
+
new r({ h: (e + 72) % 360, s: t.s, l: t.l }),
|
|
488
|
+
new r({ h: (e + 216) % 360, s: t.s, l: t.l })
|
|
489
|
+
];
|
|
490
|
+
}, r.prototype.onBackground = function(t) {
|
|
491
|
+
var e = this.toRgb(), a = new r(t).toRgb(), n = e.a + a.a * (1 - e.a);
|
|
492
|
+
return new r({
|
|
493
|
+
r: (e.r * e.a + a.r * a.a * (1 - e.a)) / n,
|
|
494
|
+
g: (e.g * e.a + a.g * a.a * (1 - e.a)) / n,
|
|
495
|
+
b: (e.b * e.a + a.b * a.a * (1 - e.a)) / n,
|
|
496
|
+
a: n
|
|
497
|
+
});
|
|
498
|
+
}, r.prototype.triad = function() {
|
|
499
|
+
return this.polyad(3);
|
|
500
|
+
}, r.prototype.tetrad = function() {
|
|
501
|
+
return this.polyad(4);
|
|
502
|
+
}, r.prototype.polyad = function(t) {
|
|
503
|
+
for (var e = this.toHsl(), a = e.h, n = [this], i = 360 / t, f = 1; f < t; f++)
|
|
504
|
+
n.push(new r({ h: (a + f * i) % 360, s: e.s, l: e.l }));
|
|
505
|
+
return n;
|
|
506
|
+
}, r.prototype.equals = function(t) {
|
|
507
|
+
return this.toRgbString() === new r(t).toRgbString();
|
|
508
|
+
}, r;
|
|
509
|
+
}()
|
|
510
|
+
);
|
|
511
|
+
export {
|
|
512
|
+
D as T
|
|
513
|
+
};
|