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 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./base-6ccc8fc2.cjs");function a(){if(!arguments.length)return[];var r=arguments[0];return t.isArray(r)?r:[r]}exports.castArray=a;
|
package/es/debounce-a6b4f91b.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./base-6ccc8fc2.cjs");var C=/\s/;function L(e){for(var i=e.length;i--&&C.test(e.charAt(i)););return i}var M=/^\s+/;function $(e){return e&&e.slice(0,L(e)+1).replace(M,"")}var k=0/0,j=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,R=/^0o[0-7]+$/i,F=parseInt;function v(e){if(typeof e=="number")return e;if(l.isSymbol(e))return k;if(l.isObject(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=l.isObject(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=$(e);var t=B.test(e);return t||R.test(e)?F(e.slice(2),t?2:8):j.test(e)?k:+e}var _=function(){return l.root.Date.now()};const h=_;var q="Expected a function",D=Math.max,H=Math.min;function P(e,i,t){var u,s,g,c,r,f,o=0,y=!1,d=!1,b=!0;if(typeof e!="function")throw new TypeError(q);i=v(i)||0,l.isObject(t)&&(y=!!t.leading,d="maxWait"in t,g=d?D(v(t.maxWait)||0,i):g,b="trailing"in t?!!t.trailing:b);function x(n){var a=u,m=s;return u=s=void 0,o=n,c=e.apply(m,a),c}function S(n){return o=n,r=setTimeout(T,i),y?x(n):c}function W(n){var a=n-f,m=n-o,O=i-a;return d?H(O,g-m):O}function E(n){var a=n-f,m=n-o;return f===void 0||a>=i||a<0||d&&m>=g}function T(){var n=h();if(E(n))return p(n);r=setTimeout(T,W(n))}function p(n){return r=void 0,b&&u?x(n):(u=s=void 0,c)}function N(){r!==void 0&&clearTimeout(r),o=0,u=f=s=r=void 0}function A(){return r===void 0?c:p(h())}function I(){var n=h(),a=E(n);if(u=arguments,s=this,f=n,a){if(r===void 0)return S(f);if(d)return clearTimeout(r),r=setTimeout(T,i),x(f)}return r===void 0&&(r=setTimeout(T,i)),c}return I.cancel=N,I.flush=A,I}exports.debounce=P;exports.toNumber=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),g=require("./use-form-common-props-c1960844.cjs"),I=require("./index-0ed86daf.cjs"),v=require("./base-6ccc8fc2.cjs"),z=Symbol("buttonGroupContextKey"),W=(r,e)=>{I.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},i.computed(()=>r.type==="text"));const t=i.inject(z,void 0),n=I.useGlobalConfig("button"),{form:a}=g.useFormItem(),o=g.useFormSize(i.computed(()=>t==null?void 0:t.size)),s=g.useFormDisabled(),f=i.ref(),u=i.useSlots(),b=i.computed(()=>r.type||(t==null?void 0:t.type)||""),m=i.computed(()=>{var c,x,w;return(w=(x=r.autoInsertSpace)!=null?x:(c=n.value)==null?void 0:c.autoInsertSpace)!=null?w:!1}),M=i.computed(()=>r.tag==="button"?{ariaDisabled:s.value||r.loading,disabled:s.value||r.loading,autofocus:r.autofocus,type:r.nativeType}:{}),H=i.computed(()=>{var c;const x=(c=u.default)==null?void 0:c.call(u);if(m.value&&(x==null?void 0:x.length)===1){const w=x[0];if((w==null?void 0:w.type)===i.Text){const O=w.children;return/^\p{Unified_Ideograph}{2}$/u.test(O.trim())}}return!1});return{_disabled:s,_size:o,_type:b,_ref:f,_props:M,shouldAddSpace:H,handleClick:c=>{if(s.value||r.loading){c.stopPropagation();return}r.nativeType==="reset"&&(a==null||a.resetFields()),e("click",c)}}},G=["default","primary","success","warning","info","danger","text",""],U=["button","submit","reset"],T=v.buildProps({size:g.useSizeProp,disabled:Boolean,type:{type:String,values:G,default:""},icon:{type:g.iconPropType},nativeType:{type:String,values:U,default:"button"},loading:Boolean,loadingIcon:{type:g.iconPropType,default:()=>g.loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:v.definePropType([String,Object]),default:"button"}}),K={click:r=>r instanceof MouseEvent};function l(r,e){L(r)&&(r="100%");var t=Z(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function B(r){return Math.min(1,Math.max(0,r))}function L(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function Z(r){return typeof r=="string"&&r.indexOf("%")!==-1}function D(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function A(r){return r<=1?"".concat(Number(r)*100,"%"):r}function S(r){return r.length===1?"0"+r:String(r)}function J(r,e,t){return{r:l(r,255)*255,g:l(e,255)*255,b:l(t,255)*255}}function E(r,e,t){r=l(r,255),e=l(e,255),t=l(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),o=0,s=0,f=(n+a)/2;if(n===a)s=0,o=0;else{var u=n-a;switch(s=f>.5?u/(2-n-a):u/(n+a),n){case r:o=(e-t)/u+(e<t?6:0);break;case e:o=(t-r)/u+2;break;case t:o=(r-e)/u+4;break}o/=6}return{h:o,s,l:f}}function R(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function Q(r,e,t){var n,a,o;if(r=l(r,360),e=l(e,100),t=l(t,100),e===0)a=t,o=t,n=t;else{var s=t<.5?t*(1+e):t+e-t*e,f=2*t-s;n=R(f,s,r+1/3),a=R(f,s,r),o=R(f,s,r-1/3)}return{r:n*255,g:a*255,b:o*255}}function P(r,e,t){r=l(r,255),e=l(e,255),t=l(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),o=0,s=n,f=n-a,u=n===0?0:f/n;if(n===a)o=0;else{switch(n){case r:o=(e-t)/f+(e<t?6:0);break;case e:o=(t-r)/f+2;break;case t:o=(r-e)/f+4;break}o/=6}return{h:o,s:u,v:s}}function X(r,e,t){r=l(r,360)*6,e=l(e,100),t=l(t,100);var n=Math.floor(r),a=r-n,o=t*(1-e),s=t*(1-a*e),f=t*(1-(1-a)*e),u=n%6,b=[t,s,o,o,f,t][u],m=[f,t,t,s,o,o][u],M=[o,o,f,t,t,s][u];return{r:b*255,g:m*255,b:M*255}}function V(r,e,t,n){var a=[S(Math.round(r).toString(16)),S(Math.round(e).toString(16)),S(Math.round(t).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Y(r,e,t,n,a){var o=[S(Math.round(r).toString(16)),S(Math.round(e).toString(16)),S(Math.round(t).toString(16)),S(tt(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function tt(r){return Math.round(parseFloat(r)*255).toString(16)}function $(r){return h(r)/255}function h(r){return parseInt(r,16)}function et(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var N={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function rt(r){var e={r:0,g:0,b:0},t=1,n=null,a=null,o=null,s=!1,f=!1;return typeof r=="string"&&(r=ot(r)),typeof r=="object"&&(p(r.r)&&p(r.g)&&p(r.b)?(e=J(r.r,r.g,r.b),s=!0,f=String(r.r).substr(-1)==="%"?"prgb":"rgb"):p(r.h)&&p(r.s)&&p(r.v)?(n=A(r.s),a=A(r.v),e=X(r.h,n,a),s=!0,f="hsv"):p(r.h)&&p(r.s)&&p(r.l)&&(n=A(r.s),o=A(r.l),e=Q(r.h,n,o),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=D(t),{ok:s,format:r.format||f,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var nt="[-\\+]?\\d+%?",at="[-\\+]?\\d*\\.\\d+%?",k="(?:".concat(at,")|(?:").concat(nt,")"),_="[\\s|\\(]+(".concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")\\s*\\)?"),C="[\\s|\\(]+(".concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")[,|\\s]+(").concat(k,")\\s*\\)?"),d={CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+_),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+_),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+_),hsva:new RegExp("hsva"+C),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ot(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if(N[r])r=N[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=d.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=d.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=d.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=d.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=d.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=d.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=d.hex8.exec(r),t?{r:h(t[1]),g:h(t[2]),b:h(t[3]),a:$(t[4]),format:e?"name":"hex8"}:(t=d.hex6.exec(r),t?{r:h(t[1]),g:h(t[2]),b:h(t[3]),format:e?"name":"hex"}:(t=d.hex4.exec(r),t?{r:h(t[1]+t[1]),g:h(t[2]+t[2]),b:h(t[3]+t[3]),a:$(t[4]+t[4]),format:e?"name":"hex8"}:(t=d.hex3.exec(r),t?{r:h(t[1]+t[1]),g:h(t[2]+t[2]),b:h(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function p(r){return!!d.CSS_UNIT.exec(String(r))}var j=function(){function r(e,t){e===void 0&&(e=""),t===void 0&&(t={});var n;if(e instanceof r)return e;typeof e=="number"&&(e=et(e)),this.originalInput=e;var a=rt(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=t.format)!==null&&n!==void 0?n:a.format,this.gradientType=t.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=a.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},r.prototype.getLuminance=function(){var e=this.toRgb(),t,n,a,o=e.r/255,s=e.g/255,f=e.b/255;return o<=.03928?t=o/12.92:t=Math.pow((o+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),f<=.03928?a=f/12.92:a=Math.pow((f+.055)/1.055,2.4),.2126*t+.7152*n+.0722*a},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(e){return this.a=D(e),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},r.prototype.toHsv=function(){var e=P(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},r.prototype.toHsvString=function(){var e=P(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var e=E(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},r.prototype.toHslString=function(){var e=E(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(e){return e===void 0&&(e=!1),V(this.r,this.g,this.b,e)},r.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},r.prototype.toHex8=function(e){return e===void 0&&(e=!1),Y(this.r,this.g,this.b,this.a,e)},r.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},r.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(l(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(l(t,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+V(this.r,this.g,this.b,!1),t=0,n=Object.entries(N);t<n.length;t++){var a=n[t],o=a[0],s=a[1];if(e===s)return o}return!1},r.prototype.toString=function(e){var t=!!e;e=e??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!t&&a&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=B(t.l),new r(t)},r.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new r(t)},r.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=B(t.l),new r(t)},r.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},r.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},r.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=B(t.s),new r(t)},r.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=B(t.s),new r(t)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new r(t)},r.prototype.mix=function(e,t){t===void 0&&(t=50);var n=this.toRgb(),a=new r(e).toRgb(),o=t/100,s={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new r(s)},r.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var n=this.toHsl(),a=360/t,o=[this];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,o.push(new r(n));return o},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),n=t.h,a=t.s,o=t.v,s=[],f=1/e;e--;)s.push(new r({h:n,s:a,v:o})),o=(o+f)%1;return s},r.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new r({h:(t+72)%360,s:e.s,l:e.l}),new r({h:(t+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var t=this.toRgb(),n=new r(e).toRgb(),a=t.a+n.a*(1-t.a);return new r({r:(t.r*t.a+n.r*n.a*(1-t.a))/a,g:(t.g*t.a+n.g*n.a*(1-t.a))/a,b:(t.b*t.a+n.b*n.a*(1-t.a))/a,a})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var t=this.toHsl(),n=t.h,a=[this],o=360/e,s=1;s<e;s++)a.push(new r({h:(n+s*o)%360,s:t.s,l:t.l}));return a},r.prototype.equals=function(e){return this.toRgbString()===new r(e).toRgbString()},r}();function y(r,e=20){return r.mix("#141414",e).toString()}function it(r){const e=g.useFormDisabled(),t=v.useNamespace("button");return i.computed(()=>{let n={},a=r.color;if(a){const o=a.match(/var\((.*?)\)/);o&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const s=new j(a),f=r.dark?s.tint(20).toString():y(s,20);if(r.plain)n=t.cssVarBlock({"bg-color":r.dark?y(s,90):s.tint(90).toString(),"text-color":a,"border-color":r.dark?y(s,50):s.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":f,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":f}),e.value&&(n[t.cssVarBlockName("disabled-bg-color")]=r.dark?y(s,90):s.tint(90).toString(),n[t.cssVarBlockName("disabled-text-color")]=r.dark?y(s,50):s.tint(50).toString(),n[t.cssVarBlockName("disabled-border-color")]=r.dark?y(s,80):s.tint(80).toString());else{const u=r.dark?y(s,30):s.tint(30).toString(),b=s.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(n=t.cssVarBlock({"bg-color":a,"text-color":b,"border-color":a,"hover-bg-color":u,"hover-text-color":b,"hover-border-color":u,"active-bg-color":f,"active-border-color":f}),e.value){const m=r.dark?y(s,50):s.tint(50).toString();n[t.cssVarBlockName("disabled-bg-color")]=m,n[t.cssVarBlockName("disabled-text-color")]=r.dark?"rgba(255, 255, 255, 0.5)":`var(${t.cssVarName("color-white")})`,n[t.cssVarBlockName("disabled-border-color")]=m}}}return n})}const st=i.defineComponent({name:"ElButton"}),ft=i.defineComponent({...st,props:T,emits:K,setup(r,{expose:e,emit:t}){const n=r,a=it(n),o=v.useNamespace("button"),{_ref:s,_size:f,_type:u,_disabled:b,_props:m,shouldAddSpace:M,handleClick:H}=W(n,t),F=i.computed(()=>[o.b(),o.m(u.value),o.m(f.value),o.is("disabled",b.value),o.is("loading",n.loading),o.is("plain",n.plain),o.is("round",n.round),o.is("circle",n.circle),o.is("text",n.text),o.is("link",n.link),o.is("has-bg",n.bg)]);return e({ref:s,size:f,type:u,disabled:b,shouldAddSpace:M}),(c,x)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c.tag),i.mergeProps({ref_key:"_ref",ref:s},i.unref(m),{class:i.unref(F),style:i.unref(a),onClick:i.unref(H)}),{default:i.withCtx(()=>[c.loading?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[c.$slots.loading?i.renderSlot(c.$slots,"loading",{key:0}):(i.openBlock(),i.createBlock(i.unref(g.ElIcon),{key:1,class:i.normalizeClass(i.unref(o).is("loading"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c.loadingIcon)))]),_:1},8,["class"]))],64)):c.icon||c.$slots.icon?(i.openBlock(),i.createBlock(i.unref(g.ElIcon),{key:1},{default:i.withCtx(()=>[c.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c.icon),{key:0})):i.renderSlot(c.$slots,"icon",{key:1})]),_:3})):i.createCommentVNode("v-if",!0),c.$slots.default?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass({[i.unref(o).em("text","expand")]:i.unref(M)})},[i.renderSlot(c.$slots,"default")],2)):i.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ct=v._export_sfc(ft,[["__file","button.vue"]]);const ut={size:T.size,type:T.type},lt=i.defineComponent({name:"ElButtonGroup"}),ht=i.defineComponent({...lt,props:ut,setup(r){const e=r;i.provide(z,i.reactive({size:i.toRef(e,"size"),type:i.toRef(e,"type")}));const t=v.useNamespace("button");return(n,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(t).b("group"))},[i.renderSlot(n.$slots,"default")],2))}});var q=v._export_sfc(ht,[["__file","button-group.vue"]]);const dt=v.withInstall(ct,{ButtonGroup:q});v.withNoopInstall(q);exports.ElButton=dt;exports.TinyColor=j;exports.buttonTypes=G;
|