@idux/charts-core 0.6.1 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @idux/charts-core
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - v0.7.0
8
+
3
9
  ## 0.6.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { DataZoomComponent as tt, LegendComponent as et, GridComponent as rt, TitleComponent as nt, TooltipComponent as it } from "echarts/components";
2
2
  import { LabelLayout as at, UniversalTransition as ot } from "echarts/features";
3
3
  import { SVGRenderer as st } from "echarts/renderers";
4
- import { watch as C, shallowRef as k, computed as x, unref as b, onMounted as ft, onBeforeUnmount as ht, watchEffect as N, isVue2 as _, defineComponent as ut, h as ct } from "vue-demi";
4
+ import { watch as O, shallowRef as k, computed as x, unref as b, onMounted as ft, onBeforeUnmount as ht, watchEffect as N, isVue2 as _, defineComponent as ut, h as ct } from "vue-demi";
5
5
  import { throttle as lt, use as Z, init as dt, registerTheme as gt } from "echarts/core";
6
6
  import { isEqual as pt, cloneDeep as P, isBoolean as bt, isNil as vt } from "lodash-es";
7
7
  import { PictorialBarChart as mt } from "echarts/charts";
8
8
  function yt(e, t, r) {
9
9
  let n;
10
- C(
10
+ O(
11
11
  [e, t, r],
12
12
  ([i, a, o], s, f) => {
13
13
  !i || !a || (o ? (n ?? (n = lt(() => a.resize(), 16)), xt(i, n)) : W(i, n), f(() => W(i, n)));
@@ -51,7 +51,7 @@ function Ft(e, t) {
51
51
  }, B = () => {
52
52
  n.value && (n.value.dispose(), n.value = void 0);
53
53
  };
54
- return ft(() => M()), ht(() => B()), C(
54
+ return ft(() => M()), ht(() => B()), O(
55
55
  () => b(e),
56
56
  (l) => {
57
57
  const c = n.value;
@@ -63,7 +63,7 @@ function Ft(e, t) {
63
63
  {
64
64
  deep: !0
65
65
  }
66
- ), C([S, s], () => {
66
+ ), O([S, s], () => {
67
67
  B(), M();
68
68
  }), N(() => {
69
69
  const l = o.value;
@@ -302,7 +302,7 @@ function $(e, t, r) {
302
302
  function H(e, t, r) {
303
303
  return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
304
304
  }
305
- function Et(e, t, r) {
305
+ function Ct(e, t, r) {
306
306
  var n, i, a;
307
307
  if (e = h(e, 360), t = h(t, 100), r = h(r, 100), t === 0)
308
308
  i = r, a = r, n = r;
@@ -333,7 +333,7 @@ function q(e, t, r) {
333
333
  }
334
334
  return { h: a, s: f, v: o };
335
335
  }
336
- function Ot(e, t, r) {
336
+ function Et(e, t, r) {
337
337
  e = h(e, 360) * 6, t = h(t, 100), r = h(r, 100);
338
338
  var n = Math.floor(e), i = e - n, a = r * (1 - t), o = r * (1 - i * t), s = r * (1 - (1 - i) * t), f = n % 6, p = [r, o, a, a, s, r][f], S = [s, r, r, o, a, a][f], M = [a, a, s, r, r, o][f];
339
339
  return { r: p * 255, g: S * 255, b: M * 255 };
@@ -346,7 +346,7 @@ function U(e, t, r, n) {
346
346
  ];
347
347
  return n && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("");
348
348
  }
349
- function Ct(e, t, r, n, i) {
349
+ function Ot(e, t, r, n, i) {
350
350
  var a = [
351
351
  m(Math.round(e).toString(16)),
352
352
  m(Math.round(t).toString(16)),
@@ -523,7 +523,7 @@ var T = {
523
523
  };
524
524
  function Dt(e) {
525
525
  var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, i = null, a = null, o = !1, s = !1;
526
- return typeof e == "string" && (e = Lt(e)), typeof e == "object" && (g(e.r) && g(e.g) && g(e.b) ? (t = Ht(e.r, e.g, e.b), o = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : g(e.h) && g(e.s) && g(e.v) ? (n = w(e.s), i = w(e.v), t = Ot(e.h, n, i), o = !0, s = "hsv") : g(e.h) && g(e.s) && g(e.l) && (n = w(e.s), a = w(e.l), t = Et(e.h, n, a), o = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = Y(r), {
526
+ return typeof e == "string" && (e = Lt(e)), typeof e == "object" && (g(e.r) && g(e.g) && g(e.b) ? (t = Ht(e.r, e.g, e.b), o = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : g(e.h) && g(e.s) && g(e.v) ? (n = w(e.s), i = w(e.v), t = Et(e.h, n, i), o = !0, s = "hsv") : g(e.h) && g(e.s) && g(e.l) && (n = w(e.s), a = w(e.l), t = Ct(e.h, n, a), o = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = Y(r), {
527
527
  ok: o,
528
528
  format: e.format || s,
529
529
  r: Math.min(255, Math.max(t.r, 0)),
@@ -532,14 +532,14 @@ function Dt(e) {
532
532
  a: r
533
533
  };
534
534
  }
535
- var It = "[-\\+]?\\d+%?", zt = "[-\\+]?\\d*\\.\\d+%?", v = "(?:".concat(zt, ")|(?:").concat(It, ")"), E = "[\\s|\\(]+(".concat(v, ")[,|\\s]+(").concat(v, ")[,|\\s]+(").concat(v, ")\\s*\\)?"), O = "[\\s|\\(]+(".concat(v, ")[,|\\s]+(").concat(v, ")[,|\\s]+(").concat(v, ")[,|\\s]+(").concat(v, ")\\s*\\)?"), d = {
535
+ var It = "[-\\+]?\\d+%?", zt = "[-\\+]?\\d*\\.\\d+%?", v = "(?:".concat(zt, ")|(?:").concat(It, ")"), C = "[\\s|\\(]+(".concat(v, ")[,|\\s]+(").concat(v, ")[,|\\s]+(").concat(v, ")\\s*\\)?"), E = "[\\s|\\(]+(".concat(v, ")[,|\\s]+(").concat(v, ")[,|\\s]+(").concat(v, ")[,|\\s]+(").concat(v, ")\\s*\\)?"), d = {
536
536
  CSS_UNIT: new RegExp(v),
537
- rgb: new RegExp("rgb" + E),
538
- rgba: new RegExp("rgba" + O),
539
- hsl: new RegExp("hsl" + E),
540
- hsla: new RegExp("hsla" + O),
541
- hsv: new RegExp("hsv" + E),
542
- hsva: new RegExp("hsva" + O),
537
+ rgb: new RegExp("rgb" + C),
538
+ rgba: new RegExp("rgba" + E),
539
+ hsl: new RegExp("hsl" + C),
540
+ hsla: new RegExp("hsla" + E),
541
+ hsv: new RegExp("hsv" + C),
542
+ hsva: new RegExp("hsva" + E),
543
543
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
544
544
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
545
545
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
@@ -579,7 +579,7 @@ function Lt(e) {
579
579
  } : !1)))))))));
580
580
  }
581
581
  function g(e) {
582
- return Boolean(d.CSS_UNIT.exec(String(e)));
582
+ return !!d.CSS_UNIT.exec(String(e));
583
583
  }
584
584
  var Nt = (
585
585
  /** @class */
@@ -627,7 +627,7 @@ var Nt = (
627
627
  }, e.prototype.toHexString = function(t) {
628
628
  return t === void 0 && (t = !1), "#" + this.toHex(t);
629
629
  }, e.prototype.toHex8 = function(t) {
630
- return t === void 0 && (t = !1), Ct(this.r, this.g, this.b, this.a, t);
630
+ return t === void 0 && (t = !1), Ot(this.r, this.g, this.b, this.a, t);
631
631
  }, e.prototype.toHex8String = function(t) {
632
632
  return t === void 0 && (t = !1), "#" + this.toHex8(t);
633
633
  }, e.prototype.toHexShortString = function(t) {
@@ -669,7 +669,7 @@ var Nt = (
669
669
  }
670
670
  return !1;
671
671
  }, e.prototype.toString = function(t) {
672
- var r = Boolean(t);
672
+ var r = !!t;
673
673
  t = t ?? this.format;
674
674
  var n = !1, i = this.a < 1 && this.a >= 0, a = !r && i && (t.startsWith("hex") || t === "name");
675
675
  return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
@@ -803,7 +803,7 @@ const Pt = [
803
803
  ], Wt = {
804
804
  color: Pt,
805
805
  textStyle: {
806
- color: "#2F3540",
806
+ color: "#6F7785",
807
807
  fontSize: "12px"
808
808
  },
809
809
  bar: {
@@ -837,6 +837,7 @@ const Pt = [
837
837
  legend: {
838
838
  itemWidth: 12,
839
839
  itemHeight: 12,
840
+ inactiveColor: "#BEC3CC",
840
841
  textStyle: {
841
842
  color: "#6F7785",
842
843
  fontSize: "12px"
@@ -1,4 +1,4 @@
1
- (function(f,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("echarts/components"),require("echarts/features"),require("echarts/renderers"),require("vue-demi"),require("echarts/core"),require("lodash-es"),require("echarts/charts")):typeof define=="function"&&define.amd?define(["exports","echarts/components","echarts/features","echarts/renderers","vue-demi","echarts/core","lodash-es","echarts/charts"],b):(f=typeof globalThis<"u"?globalThis:f||self,b(f.IduxChartsCore={},f.echarts,f.echarts,f.echarts,f.VueDemi,f.echarts,f._,f.echarts))})(this,function(f,b,I,et,h,A,M,rt){"use strict";function nt(e,t,r){let n;h.watch([e,t,r],([a,i,s],o,c)=>{!a||!i||(s?(n??(n=A.throttle(()=>i.resize(),16)),at(a,n)):z(a,n),c(()=>z(a,n)))})}const x=new Map;function at(e,t,r){if(!(!e||!t))if(x.has(e))x.get(e).listeners.push(t);else{const n=[t],a=new ResizeObserver(i=>{i.forEach(s=>n.forEach(o=>o(s)))});a.observe(e,r),x.set(e,{listeners:n,ro:a})}}function z(e,t){if(!e||!t||!x.has(e))return;const{listeners:r,ro:n}=x.get(e),a=r.indexOf(t);a>-1&&(r.splice(a,1),r.length===0&&(n.disconnect(),x.delete(e)))}A.use([rt.PictorialBarChart]);const L={text:"加载中..."};function P(e,t){const r=h.shallowRef(),n=h.shallowRef(),a=h.shallowRef(),i=h.computed(()=>h.unref(e).autoResize??!0),s=h.computed(()=>h.unref(e).group),o=h.computed(()=>h.unref(e).initOption),c=h.computed(()=>h.unref(e).loading),m=h.computed(()=>h.unref(e).setOptionOpts),k=h.computed(()=>h.unref(e).theme??"seer"),C=()=>{const p=r.value;if(!p)return;const d=A.init(p,k.value,o.value),S=h.unref(e),{restOptions:J,events:Ot}=N(S,t,!1);d.setOption(J,m.value),a.value=M.cloneDeep(J),Ot.forEach(([Q,tt,Et])=>{let B=tt;Et&&(B=(...Bt)=>{tt(...Bt),d.off(Q,B)}),d.on(Q,B)});const K=S.onReady||(t==null?void 0:t.ready);K&&K(d),n.value=d},Y=()=>{n.value&&(n.value.dispose(),n.value=void 0)};return h.onMounted(()=>C()),h.onBeforeUnmount(()=>Y()),h.watch(()=>h.unref(e),p=>{const d=n.value;if(!d)return;const{restOptions:S}=N(p);M.isEqual(S,a.value)||(d.setOption(S,m.value),a.value=M.cloneDeep(S))},{deep:!0}),h.watch([k,o],()=>{Y(),C()}),h.watchEffect(()=>{const p=s.value;p&&n.value&&(n.value.group=p)}),h.watchEffect(()=>{const p=n.value;if(!p)return;const d=c.value;d?p.showLoading(M.isBoolean(d)?L:{...L,...d}):p.hideLoading()}),nt(r,n,i),{containerRef:r,chartRef:n}}function it(e){return/^on[^a-z]/.test(e)}const st=["class","style","autoResize","group","loading","setOptionOpts","theme","onReady"];function N(e,t={},r=!0){const n={},a=[];return Object.keys(e).forEach(i=>{if(!st.includes(i)){if(it(i)){if(r)return;const s=e[i];if(s){const o=i.endsWith("Once"),c=o?i.length-4:void 0,m=i.charAt(2).toLowerCase()+i.substring(3,c);a.push([m,s,o])}return}n[i]=e[i]}}),h.isVue2&&!r&&Object.keys(t).forEach(i=>{if(i!=="ready")return;const s=t[i];if(s){const o=i.startsWith("~"),c=o?1:0,m=i.substring(c);a.push([m,s,o])}}),{restOptions:n,events:a}}function W(e,t){return`
1
+ (function(f,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("echarts/components"),require("echarts/features"),require("echarts/renderers"),require("vue-demi"),require("echarts/core"),require("lodash-es"),require("echarts/charts")):typeof define=="function"&&define.amd?define(["exports","echarts/components","echarts/features","echarts/renderers","vue-demi","echarts/core","lodash-es","echarts/charts"],b):(f=typeof globalThis<"u"?globalThis:f||self,b(f.IduxChartsCore={},f.echarts,f.echarts,f.echarts,f.VueDemi,f.echarts,f._,f.echarts))})(this,function(f,b,I,et,h,A,M,rt){"use strict";function nt(e,t,r){let n;h.watch([e,t,r],([a,i,s],o,c)=>{!a||!i||(s?(n??(n=A.throttle(()=>i.resize(),16)),at(a,n)):z(a,n),c(()=>z(a,n)))})}const x=new Map;function at(e,t,r){if(!(!e||!t))if(x.has(e))x.get(e).listeners.push(t);else{const n=[t],a=new ResizeObserver(i=>{i.forEach(s=>n.forEach(o=>o(s)))});a.observe(e,r),x.set(e,{listeners:n,ro:a})}}function z(e,t){if(!e||!t||!x.has(e))return;const{listeners:r,ro:n}=x.get(e),a=r.indexOf(t);a>-1&&(r.splice(a,1),r.length===0&&(n.disconnect(),x.delete(e)))}A.use([rt.PictorialBarChart]);const L={text:"加载中..."};function P(e,t){const r=h.shallowRef(),n=h.shallowRef(),a=h.shallowRef(),i=h.computed(()=>h.unref(e).autoResize??!0),s=h.computed(()=>h.unref(e).group),o=h.computed(()=>h.unref(e).initOption),c=h.computed(()=>h.unref(e).loading),m=h.computed(()=>h.unref(e).setOptionOpts),C=h.computed(()=>h.unref(e).theme??"seer"),k=()=>{const p=r.value;if(!p)return;const d=A.init(p,C.value,o.value),S=h.unref(e),{restOptions:J,events:Ot}=N(S,t,!1);d.setOption(J,m.value),a.value=M.cloneDeep(J),Ot.forEach(([Q,tt,Et])=>{let B=tt;Et&&(B=(...Bt)=>{tt(...Bt),d.off(Q,B)}),d.on(Q,B)});const K=S.onReady||(t==null?void 0:t.ready);K&&K(d),n.value=d},Y=()=>{n.value&&(n.value.dispose(),n.value=void 0)};return h.onMounted(()=>k()),h.onBeforeUnmount(()=>Y()),h.watch(()=>h.unref(e),p=>{const d=n.value;if(!d)return;const{restOptions:S}=N(p);M.isEqual(S,a.value)||(d.setOption(S,m.value),a.value=M.cloneDeep(S))},{deep:!0}),h.watch([C,o],()=>{Y(),k()}),h.watchEffect(()=>{const p=s.value;p&&n.value&&(n.value.group=p)}),h.watchEffect(()=>{const p=n.value;if(!p)return;const d=c.value;d?p.showLoading(M.isBoolean(d)?L:{...L,...d}):p.hideLoading()}),nt(r,n,i),{containerRef:r,chartRef:n}}function it(e){return/^on[^a-z]/.test(e)}const st=["class","style","autoResize","group","loading","setOptionOpts","theme","onReady"];function N(e,t={},r=!0){const n={},a=[];return Object.keys(e).forEach(i=>{if(!st.includes(i)){if(it(i)){if(r)return;const s=e[i];if(s){const o=i.endsWith("Once"),c=o?i.length-4:void 0,m=i.charAt(2).toLowerCase()+i.substring(3,c);a.push([m,s,o])}return}n[i]=e[i]}}),h.isVue2&&!r&&Object.keys(t).forEach(i=>{if(i!=="ready")return;const s=t[i];if(s){const o=i.startsWith("~"),c=o?1:0,m=i.substring(c);a.push([m,s,o])}}),{restOptions:n,events:a}}function W(e,t){return`
2
2
  <div class="charts-tooltips">
3
3
  <div class="charts-tooltips-title">${e}</div>
4
4
  ${t.map(r=>`
@@ -7,4 +7,4 @@
7
7
  <span class="charts-tooltips-item-name">${r.name}</span>
8
8
  <span class="charts-tooltips-item-value">${r.value}</span>
9
9
  </div>`).join("")}
10
- </div>`}function j({data:e=[],color:t="",offset:r=[0,0],rotate:n=-20,size:a=[2,8]}){return{name:"",data:e,type:"pictorialBar",symbolRotate:n,silent:!0,itemStyle:{color:t,opacity:0},emphasis:{itemStyle:{opacity:1}},symbolRepeat:"fixed",symbolMargin:2,symbol:"rect",symbolClip:!0,symbolSize:a,symbolPosition:"start",symbolOffset:r,z:1,animationEasing:"elasticOut"}}function ot(e){return{axisPointer:{lineStyle:{opacity:.6}},formatter:function(t){if(!(t!=null&&t.length))return"";const r=t[0].name,n=t.filter(a=>!!a.seriesName).map(a=>({name:a.seriesName,value:`${a.value} ${e}`,color:a.color}));return W(r,n)}}}function ft({series:e,color:t,offset:r=[0,0],rotate:n,size:a}){return[{type:"bar",z:0,...e},j({data:e.data,offset:r,color:t,rotate:n,size:a})]}function ht(){return{aria:{enabled:!0,decal:{show:!0,decals:[{color:"white",dashArrayX:[1,0],dashArrayY:[6,0],symbolSize:.5,rotation:Math.PI/2}]}}}}const q=h.defineComponent({name:"IxChart",inheritAttrs:!1,setup(e,{attrs:t,listeners:r}){const{containerRef:n}=P(t,r);return{containerRef:n}},render(){const{class:e,style:t}=this.$attrs;return h.h("div",{ref:"containerRef",class:e,style:{width:"100%",height:"100%",...t}})}});function u(e,t){ct(e)&&(e="100%");var r=ut(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function w(e){return Math.min(1,Math.max(0,e))}function ct(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ut(e){return typeof e=="string"&&e.indexOf("%")!==-1}function G(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e){return e<=1?"".concat(Number(e)*100,"%"):e}function F(e){return e.length===1?"0"+e:String(e)}function lt(e,t,r){return{r:u(e,255)*255,g:u(t,255)*255,b:u(r,255)*255}}function $(e,t,r){e=u(e,255),t=u(t,255),r=u(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=0,o=(n+a)/2;if(n===a)s=0,i=0;else{var c=n-a;switch(s=o>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s,l:o}}function H(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function dt(e,t,r){var n,a,i;if(e=u(e,360),t=u(t,100),r=u(r,100),t===0)a=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;n=H(o,s,e+1/3),a=H(o,s,e),i=H(o,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function V(e,t,r){e=u(e,255),t=u(t,255),r=u(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=n,o=n-a,c=n===0?0:o/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/o+(t<r?6:0);break;case t:i=(r-e)/o+2;break;case r:i=(e-t)/o+4;break}i/=6}return{h:i,s:c,v:s}}function gt(e,t,r){e=u(e,360)*6,t=u(t,100),r=u(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),s=r*(1-a*t),o=r*(1-(1-a)*t),c=n%6,m=[r,s,i,i,o,r][c],k=[o,r,r,s,i,i][c],C=[i,i,o,r,r,s][c];return{r:m*255,g:k*255,b:C*255}}function U(e,t,r,n){var a=[F(Math.round(e).toString(16)),F(Math.round(t).toString(16)),F(Math.round(r).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 pt(e,t,r,n,a){var i=[F(Math.round(e).toString(16)),F(Math.round(t).toString(16)),F(Math.round(r).toString(16)),F(bt(n))];return a&&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("")}function bt(e){return Math.round(parseFloat(e)*255).toString(16)}function _(e){return l(e)/255}function l(e){return parseInt(e,16)}function vt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var T={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 yt(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,s=!1,o=!1;return typeof e=="string"&&(e=xt(e)),typeof e=="object"&&(v(e.r)&&v(e.g)&&v(e.b)?(t=lt(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):v(e.h)&&v(e.s)&&v(e.v)?(n=R(e.s),a=R(e.v),t=gt(e.h,n,a),s=!0,o="hsv"):v(e.h)&&v(e.s)&&v(e.l)&&(n=R(e.s),i=R(e.l),t=dt(e.h,n,i),s=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=G(r),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var mt="[-\\+]?\\d+%?",Ft="[-\\+]?\\d*\\.\\d+%?",y="(?:".concat(Ft,")|(?:").concat(mt,")"),O="[\\s|\\(]+(".concat(y,")[,|\\s]+(").concat(y,")[,|\\s]+(").concat(y,")\\s*\\)?"),E="[\\s|\\(]+(".concat(y,")[,|\\s]+(").concat(y,")[,|\\s]+(").concat(y,")[,|\\s]+(").concat(y,")\\s*\\)?"),g={CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+E),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 xt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(T[e])e=T[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=g.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=g.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=g.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=g.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=g.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=g.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=g.hex8.exec(e),r?{r:l(r[1]),g:l(r[2]),b:l(r[3]),a:_(r[4]),format:t?"name":"hex8"}:(r=g.hex6.exec(e),r?{r:l(r[1]),g:l(r[2]),b:l(r[3]),format:t?"name":"hex"}:(r=g.hex4.exec(e),r?{r:l(r[1]+r[1]),g:l(r[2]+r[2]),b:l(r[3]+r[3]),a:_(r[4]+r[4]),format:t?"name":"hex8"}:(r=g.hex3.exec(e),r?{r:l(r[1]+r[1]),g:l(r[2]+r[2]),b:l(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function v(e){return Boolean(g.CSS_UNIT.exec(String(e)))}var St=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=vt(t)),this.originalInput=t;var a=yt(t);this.originalInput=t,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=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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 e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,s=t.g/255,o=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?a=o/12.92:a=Math.pow((o+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=G(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=V(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=V(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),U(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),pt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(u(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(u(r,255)*100)};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,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+U(this.r,this.g,this.b,!1),r=0,n=Object.entries(T);r<n.length;r++){var a=n[r],i=a[0],s=a[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=w(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=w(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=w(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=w(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,s={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,s=[],o=1/t;t--;)s.push(new e({h:n,s:a,v:i})),i=(i+o)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,s=1;s<t;s++)a.push(new e({h:(n+s*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const D=["#458FFF","#45D9A3","#FFC145","#F5654F","#6A6AFD","#6ED1FF","#008787","#FF9245","#F587B3","#8352CC","#65779B"],At=["#458FFF","#C8DEFF","#45D9A3","#C8F4E4","#FFC145","#FFEDC8","#F5654F","#FCD1CB","#6A6AFD","#D3D3FE","#6ED1FF","#D3D3FE","#008787","#B3DBDB","#FF9245","#FFDFC8","#F587B3","#FCDBE8","#8352CC","#FCDBE8","#65779B","#65779B"],Mt=["#8C1604","#DB4C35","#FF9245","#FFC145","#689FFF","#45D9A3","#99ACD1"],Z={color:D,textStyle:{color:"#2F3540",fontSize:"12px"},bar:{barGap:.2,barWidth:10,label:{color:"#6F7785",position:"top"}},line:{label:{color:"#6F7785",position:"top"}},pie:{avoidLabelOverlap:!1,radius:["70%","80%"],itemStyle:{borderWidth:1,borderColor:"#fff"},label:{show:!1,color:"#2F3540",formatter:"{c}",position:"inside"}},legend:{itemWidth:12,itemHeight:12,textStyle:{color:"#6F7785",fontSize:"12px"}},title:{itemGap:4,textStyle:{color:"#2F3540",fontSize:"12px",fontWeight:500},subtextStyle:{color:"#6F7785",fontSize:"12px"}},tooltip:{borderWidth:0,padding:12,textStyle:{color:"#2F3540"},axisPointer:{z:1,lineStyle:{type:"solid",color:"#E1E5EB"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#EDF1F7"}},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"#EDF1F7"}},axisLabel:{color:"#6F7785"},splitLine:{show:!1},splitArea:{show:!1}},valueAxis:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6F7785"},splitLine:{lineStyle:{color:"#EDF1F7"}},splitArea:{show:!1},nameTextStyle:{color:"#6F7785",padding:[0,30,-4,0]}},dataZoom:{height:16}};function wt(e){return!!(e&&e.xAxis&&e.xAxis.data)}function Rt(e,t){return h.isVue2?{attrs:{...e},on:{...t}}:{...e}}function kt(e){return Object.entries(e).reduce((t,[r,n])=>(n!==void 0&&(t[r]=n),t),{})}function Ct(e){return M.isNil(e)?[]:Array.isArray(e)?e:[e]}const Ht=(e,t)=>new St(e).setAlpha(t).toRgbString();function X(e,t){A.use(t),A.registerTheme("seer",Z);const r=n=>{n.component(e.name,e)};e.install=r}X(q,[b.DataZoomComponent,b.LegendComponent,b.GridComponent,b.TitleComponent,b.TooltipComponent,I.LabelLayout,I.UniversalTransition,et.SVGRenderer]);const Tt=q;f.IxChart=Tt,f.convertArray=Ct,f.createInstall=X,f.filterEmptyProps=kt,f.getAlphaColor=Ht,f.isVertical=wt,f.mergeAttrs=Rt,f.seerColors=D,f.seerColorsForMore=At,f.seerColorsForRisk=Mt,f.seerTheme=Z,f.useChart=P,f.useStripe=j,f.useStripeArea=ht,f.useStripeBarSeries=ft,f.useStripeBarTooltip=ot,f.useTooltipsFormatter=W,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
10
+ </div>`}function j({data:e=[],color:t="",offset:r=[0,0],rotate:n=-20,size:a=[2,8]}){return{name:"",data:e,type:"pictorialBar",symbolRotate:n,silent:!0,itemStyle:{color:t,opacity:0},emphasis:{itemStyle:{opacity:1}},symbolRepeat:"fixed",symbolMargin:2,symbol:"rect",symbolClip:!0,symbolSize:a,symbolPosition:"start",symbolOffset:r,z:1,animationEasing:"elasticOut"}}function ot(e){return{axisPointer:{lineStyle:{opacity:.6}},formatter:function(t){if(!(t!=null&&t.length))return"";const r=t[0].name,n=t.filter(a=>!!a.seriesName).map(a=>({name:a.seriesName,value:`${a.value} ${e}`,color:a.color}));return W(r,n)}}}function ft({series:e,color:t,offset:r=[0,0],rotate:n,size:a}){return[{type:"bar",z:0,...e},j({data:e.data,offset:r,color:t,rotate:n,size:a})]}function ht(){return{aria:{enabled:!0,decal:{show:!0,decals:[{color:"white",dashArrayX:[1,0],dashArrayY:[6,0],symbolSize:.5,rotation:Math.PI/2}]}}}}const q=h.defineComponent({name:"IxChart",inheritAttrs:!1,setup(e,{attrs:t,listeners:r}){const{containerRef:n}=P(t,r);return{containerRef:n}},render(){const{class:e,style:t}=this.$attrs;return h.h("div",{ref:"containerRef",class:e,style:{width:"100%",height:"100%",...t}})}});function u(e,t){ct(e)&&(e="100%");var r=ut(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function w(e){return Math.min(1,Math.max(0,e))}function ct(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ut(e){return typeof e=="string"&&e.indexOf("%")!==-1}function G(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e){return e<=1?"".concat(Number(e)*100,"%"):e}function F(e){return e.length===1?"0"+e:String(e)}function lt(e,t,r){return{r:u(e,255)*255,g:u(t,255)*255,b:u(r,255)*255}}function $(e,t,r){e=u(e,255),t=u(t,255),r=u(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=0,o=(n+a)/2;if(n===a)s=0,i=0;else{var c=n-a;switch(s=o>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s,l:o}}function H(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function dt(e,t,r){var n,a,i;if(e=u(e,360),t=u(t,100),r=u(r,100),t===0)a=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;n=H(o,s,e+1/3),a=H(o,s,e),i=H(o,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function V(e,t,r){e=u(e,255),t=u(t,255),r=u(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=n,o=n-a,c=n===0?0:o/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/o+(t<r?6:0);break;case t:i=(r-e)/o+2;break;case r:i=(e-t)/o+4;break}i/=6}return{h:i,s:c,v:s}}function gt(e,t,r){e=u(e,360)*6,t=u(t,100),r=u(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),s=r*(1-a*t),o=r*(1-(1-a)*t),c=n%6,m=[r,s,i,i,o,r][c],C=[o,r,r,s,i,i][c],k=[i,i,o,r,r,s][c];return{r:m*255,g:C*255,b:k*255}}function U(e,t,r,n){var a=[F(Math.round(e).toString(16)),F(Math.round(t).toString(16)),F(Math.round(r).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 pt(e,t,r,n,a){var i=[F(Math.round(e).toString(16)),F(Math.round(t).toString(16)),F(Math.round(r).toString(16)),F(bt(n))];return a&&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("")}function bt(e){return Math.round(parseFloat(e)*255).toString(16)}function _(e){return l(e)/255}function l(e){return parseInt(e,16)}function vt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var T={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 yt(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,s=!1,o=!1;return typeof e=="string"&&(e=xt(e)),typeof e=="object"&&(v(e.r)&&v(e.g)&&v(e.b)?(t=lt(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):v(e.h)&&v(e.s)&&v(e.v)?(n=R(e.s),a=R(e.v),t=gt(e.h,n,a),s=!0,o="hsv"):v(e.h)&&v(e.s)&&v(e.l)&&(n=R(e.s),i=R(e.l),t=dt(e.h,n,i),s=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=G(r),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var mt="[-\\+]?\\d+%?",Ft="[-\\+]?\\d*\\.\\d+%?",y="(?:".concat(Ft,")|(?:").concat(mt,")"),O="[\\s|\\(]+(".concat(y,")[,|\\s]+(").concat(y,")[,|\\s]+(").concat(y,")\\s*\\)?"),E="[\\s|\\(]+(".concat(y,")[,|\\s]+(").concat(y,")[,|\\s]+(").concat(y,")[,|\\s]+(").concat(y,")\\s*\\)?"),g={CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+E),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 xt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(T[e])e=T[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=g.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=g.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=g.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=g.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=g.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=g.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=g.hex8.exec(e),r?{r:l(r[1]),g:l(r[2]),b:l(r[3]),a:_(r[4]),format:t?"name":"hex8"}:(r=g.hex6.exec(e),r?{r:l(r[1]),g:l(r[2]),b:l(r[3]),format:t?"name":"hex"}:(r=g.hex4.exec(e),r?{r:l(r[1]+r[1]),g:l(r[2]+r[2]),b:l(r[3]+r[3]),a:_(r[4]+r[4]),format:t?"name":"hex8"}:(r=g.hex3.exec(e),r?{r:l(r[1]+r[1]),g:l(r[2]+r[2]),b:l(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function v(e){return!!g.CSS_UNIT.exec(String(e))}var St=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=vt(t)),this.originalInput=t;var a=yt(t);this.originalInput=t,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=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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 e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,s=t.g/255,o=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?a=o/12.92:a=Math.pow((o+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=G(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=V(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=V(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),U(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),pt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(u(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(u(r,255)*100)};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,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+U(this.r,this.g,this.b,!1),r=0,n=Object.entries(T);r<n.length;r++){var a=n[r],i=a[0],s=a[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=w(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=w(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=w(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=w(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,s={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,s=[],o=1/t;t--;)s.push(new e({h:n,s:a,v:i})),i=(i+o)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,s=1;s<t;s++)a.push(new e({h:(n+s*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const D=["#458FFF","#45D9A3","#FFC145","#F5654F","#6A6AFD","#6ED1FF","#008787","#FF9245","#F587B3","#8352CC","#65779B"],At=["#458FFF","#C8DEFF","#45D9A3","#C8F4E4","#FFC145","#FFEDC8","#F5654F","#FCD1CB","#6A6AFD","#D3D3FE","#6ED1FF","#D3D3FE","#008787","#B3DBDB","#FF9245","#FFDFC8","#F587B3","#FCDBE8","#8352CC","#FCDBE8","#65779B","#65779B"],Mt=["#8C1604","#DB4C35","#FF9245","#FFC145","#689FFF","#45D9A3","#99ACD1"],Z={color:D,textStyle:{color:"#6F7785",fontSize:"12px"},bar:{barGap:.2,barWidth:10,label:{color:"#6F7785",position:"top"}},line:{label:{color:"#6F7785",position:"top"}},pie:{avoidLabelOverlap:!1,radius:["70%","80%"],itemStyle:{borderWidth:1,borderColor:"#fff"},label:{show:!1,color:"#2F3540",formatter:"{c}",position:"inside"}},legend:{itemWidth:12,itemHeight:12,inactiveColor:"#BEC3CC",textStyle:{color:"#6F7785",fontSize:"12px"}},title:{itemGap:4,textStyle:{color:"#2F3540",fontSize:"12px",fontWeight:500},subtextStyle:{color:"#6F7785",fontSize:"12px"}},tooltip:{borderWidth:0,padding:12,textStyle:{color:"#2F3540"},axisPointer:{z:1,lineStyle:{type:"solid",color:"#E1E5EB"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#EDF1F7"}},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"#EDF1F7"}},axisLabel:{color:"#6F7785"},splitLine:{show:!1},splitArea:{show:!1}},valueAxis:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6F7785"},splitLine:{lineStyle:{color:"#EDF1F7"}},splitArea:{show:!1},nameTextStyle:{color:"#6F7785",padding:[0,30,-4,0]}},dataZoom:{height:16}};function wt(e){return!!(e&&e.xAxis&&e.xAxis.data)}function Rt(e,t){return h.isVue2?{attrs:{...e},on:{...t}}:{...e}}function Ct(e){return Object.entries(e).reduce((t,[r,n])=>(n!==void 0&&(t[r]=n),t),{})}function kt(e){return M.isNil(e)?[]:Array.isArray(e)?e:[e]}const Ht=(e,t)=>new St(e).setAlpha(t).toRgbString();function X(e,t){A.use(t),A.registerTheme("seer",Z);const r=n=>{n.component(e.name,e)};e.install=r}X(q,[b.DataZoomComponent,b.LegendComponent,b.GridComponent,b.TitleComponent,b.TooltipComponent,I.LabelLayout,I.UniversalTransition,et.SVGRenderer]);const Tt=q;f.IxChart=Tt,f.convertArray=kt,f.createInstall=X,f.filterEmptyProps=Ct,f.getAlphaColor=Ht,f.isVertical=wt,f.mergeAttrs=Rt,f.seerColors=D,f.seerColorsForMore=At,f.seerColorsForRisk=Mt,f.seerTheme=Z,f.useChart=P,f.useStripe=j,f.useStripeArea=ht,f.useStripeBarSeries=ft,f.useStripeBarTooltip=ot,f.useTooltipsFormatter=W,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
@@ -38,6 +38,7 @@ export declare const seerTheme: {
38
38
  legend: {
39
39
  itemWidth: number;
40
40
  itemHeight: number;
41
+ inactiveColor: string;
41
42
  textStyle: {
42
43
  color: string;
43
44
  fontSize: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idux/charts-core",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "A UI Component Development Kit for Vue 3.x",
5
5
  "keywords": [
6
6
  "vue",