@lingshugroup/web-plus 1.0.21 → 1.0.23

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.
Files changed (43) hide show
  1. package/README.md +1 -3
  2. package/lib/dialog/index.cjs +1 -1
  3. package/lib/dialog/index.js +7 -6
  4. package/lib/index/index.cjs +1 -1
  5. package/lib/index/index.js +55 -54
  6. package/lib/index/index.js.br +0 -0
  7. package/lib/index/index.js.gz +0 -0
  8. package/lib/index.css +1 -1
  9. package/lib/index.css.br +0 -0
  10. package/lib/index.css.gz +0 -0
  11. package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
  12. package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
  13. package/lib/packages/ls-components/components/chart/Index.vue/index2.cjs +1 -1
  14. package/lib/packages/ls-components/components/chart/Index.vue/index2.js +21 -21
  15. package/lib/packages/ls-components/components/chart/Index.vue/index2.js.br +0 -0
  16. package/lib/packages/ls-components/components/chart/Index.vue/index2.js.gz +0 -0
  17. package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
  18. package/lib/packages/ls-components/components/chart/config/template/bar/index.js +79 -73
  19. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
  20. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
  21. package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
  22. package/lib/packages/ls-components/components/chart/config/template/line/index.js +84 -77
  23. package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
  24. package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
  25. package/lib/packages/ls-components/components/descriptions/Index.vue/index.cjs +1 -1
  26. package/lib/packages/ls-components/components/descriptions/Index.vue/index.js +1 -1
  27. package/lib/packages/ls-components/components/dialog/Index.vue/index.cjs +1 -1
  28. package/lib/packages/ls-components/components/dialog/Index.vue/index.js +134 -5
  29. package/lib/packages/ls-components/components/dialog/Index.vue/index.js.br +0 -0
  30. package/lib/packages/ls-components/components/dialog/Index.vue/index.js.gz +0 -0
  31. package/lib/packages/ls-components/components/dialog/Index.vue/index3.cjs +1 -0
  32. package/lib/packages/ls-components/components/dialog/Index.vue/index3.js +5 -0
  33. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index.cjs +1 -1
  34. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index.js +2 -2
  35. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.cjs +1 -1
  36. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.js +1 -1
  37. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.js.br +0 -0
  38. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.js.gz +0 -0
  39. package/package.json +1 -1
  40. package/lib/packages/ls-components/components/dialog/Index.vue/index2.cjs +0 -1
  41. package/lib/packages/ls-components/components/dialog/Index.vue/index2.js +0 -139
  42. package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.br +0 -0
  43. package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.gz +0 -0
package/lib/index.css.br CHANGED
Binary file
package/lib/index.css.gz CHANGED
Binary file
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-2cc80a46"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-6168b9a3"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2cc80a46"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6168b9a3"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var s=(a,i)=>m(a,"name",{value:i,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../_hooks/useNamespace/index.cjs"),v=require("../types/index.cjs"),f=require("../config/index/index.cjs"),q=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/tooltip/install/index.cjs"),w=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/toolbox/install/index.cjs"),C=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/dataZoom/install/index.cjs"),_=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/grid/install/index.cjs"),$=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/legend/install/index.cjs"),O=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/line/install/index.cjs"),y=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/pie/install/index.cjs"),g=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/label/installLabelLayout/index.cjs"),x=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/animation/universalTransition/index.cjs"),L=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/renderer/installCanvasRenderer/index.cjs"),b=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/bar/install/index.cjs"),z=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/gauge/install/index.cjs"),k=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/graphic/install/index.cjs"),P=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/extension/index.cjs"),S=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/core/echarts/index.cjs"),M=e.defineComponent({name:"LSChart"}),R=e.defineComponent({...M,props:v.lsChartProps,setup(a,{expose:i}){P.use([q.install,w.install,C.install,_.install,$.install,O.install,y.install,g.installLabelLayout,x.installUniversalTransition,L.install,b.install,z.install,k.install]);const p=d.useNamespace("chart").b(),t=a,r=e.ref(),n=e.ref(),l=e.ref({}),h=e.computed(()=>({width:t.width?`${t.width}px`:"100%",height:t.height?`${t.height}px`:"30vh"}));e.watch(()=>[t.width,t.height,t.template,t.data,t.customOption,t.templatePatch],()=>{o()},{immediate:!0,deep:!0});async function o(){t.template?l.value=await f.default.templateOption({template:t.template,data:t.data,templatePatch:t.templatePatch,customOption:t.customOption}):l.value=t.customOption,n.value?n.value.setOption(l.value,{notMerge:!0}):(await e.nextTick(),u(),o())}s(o,"setChartOption");function u(){n.value=e.markRaw(S.init(r.value)),window.removeEventListener("resize",c),window.addEventListener("resize",c)}s(u,"initChart");function c(){n.value&&n.value.resize()}return s(c,"resizeChart"),e.onMounted(()=>{u()}),e.onUnmounted(()=>{n.value&&n.value.dispose()}),i({echartObj:n}),(E,j)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p)),style:e.normalizeStyle(e.unref(h)),ref_key:"lsChartRef",ref:r},null,6))}});exports.default=R;
1
+ "use strict";var m=Object.defineProperty;var a=(s,i)=>m(s,"name",{value:i,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../_hooks/useNamespace/index.cjs"),v=require("../types/index.cjs"),f=require("../config/index/index.cjs"),q=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/tooltip/install/index.cjs"),w=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/toolbox/install/index.cjs"),C=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/dataZoom/install/index.cjs"),_=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/grid/install/index.cjs"),$=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/legend/install/index.cjs"),O=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/line/install/index.cjs"),y=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/pie/install/index.cjs"),x=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/label/installLabelLayout/index.cjs"),g=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/animation/universalTransition/index.cjs"),L=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/renderer/installCanvasRenderer/index.cjs"),b=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/bar/install/index.cjs"),k=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/chart/gauge/install/index.cjs"),z=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/graphic/install/index.cjs"),P=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/extension/index.cjs"),S=require("../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/core/echarts/index.cjs"),T=e.defineComponent({name:"LSChart"}),M=e.defineComponent({...T,props:v.lsChartProps,setup(s,{expose:i}){P.use([q.install,w.install,C.install,_.install,$.install,O.install,y.install,x.installLabelLayout,g.installUniversalTransition,L.install,b.install,k.install,z.install]);const p=d.useNamespace("chart").b(),t=s,o=e.ref(),n=e.ref(),l=e.ref({}),h=e.computed(()=>({width:t.width?`${t.width}px`:"100%",height:t.height?`${t.height}px`:"30vh"}));e.watch(()=>[t.width,t.height,t.template,t.data,t.customOption,t.templatePatch],()=>{u()},{immediate:!0,deep:!0});async function u(){t.template?l.value=await f.default.templateOption({template:t.template,data:t.data,templatePatch:t.templatePatch,customOption:t.customOption}):l.value=t.customOption,n.value?(n.value.setOption(l.value,{notMerge:!0}),await e.nextTick(),r()):(await e.nextTick(),c(),u())}a(u,"setChartOption");function c(){n.value=e.markRaw(S.init(o.value)),window.removeEventListener("resize",r),window.addEventListener("resize",r)}a(c,"initChart");function r(){n.value&&n.value.resize()}return a(r,"resizeChart"),e.onMounted(()=>{c()}),e.onUnmounted(()=>{n.value&&n.value.dispose()}),i({echartObj:n}),(E,j)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p)),style:e.normalizeStyle(e.unref(h)),ref_key:"lsChartRef",ref:o},null,6))}});exports.default=M;
@@ -1,6 +1,6 @@
1
- var d = Object.defineProperty;
2
- var a = (i, o) => d(i, "name", { value: o, configurable: !0 });
3
- import { defineComponent as f, ref as s, computed as v, watch as w, nextTick as $, markRaw as C, onMounted as O, onUnmounted as _, openBlock as g, createElementBlock as x, normalizeClass as y, unref as c, normalizeStyle as z } from "vue";
1
+ var v = Object.defineProperty;
2
+ var a = (i, o) => v(i, "name", { value: o, configurable: !0 });
3
+ import { defineComponent as u, ref as n, computed as w, watch as $, nextTick as c, markRaw as C, onMounted as O, onUnmounted as _, openBlock as g, createElementBlock as x, normalizeClass as y, unref as f, normalizeStyle as z } from "vue";
4
4
  import { useNamespace as k } from "../../_hooks/useNamespace/index.js";
5
5
  import { lsChartProps as L } from "../types/index.js";
6
6
  import P from "../config/index/index.js";
@@ -19,9 +19,9 @@ import { install as A } from "../../../../../node_modules/.pnpm/echarts@5.5.1/no
19
19
  import { install as D } from "../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/component/graphic/install/index.js";
20
20
  import { use as F } from "../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/extension/index.js";
21
21
  import { init as G } from "../../../../../node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/core/echarts/index.js";
22
- const H = f({
22
+ const H = u({
23
23
  name: "LSChart"
24
- }), ht = /* @__PURE__ */ f({
24
+ }), ht = /* @__PURE__ */ u({
25
25
  ...H,
26
26
  props: L,
27
27
  setup(i, { expose: o }) {
@@ -40,49 +40,49 @@ const H = f({
40
40
  A,
41
41
  D
42
42
  ]);
43
- const u = k("chart").b(), t = i, n = s(), e = s(), l = s({}), h = v(() => ({
43
+ const h = k("chart").b(), t = i, r = n(), e = n(), l = n({}), d = w(() => ({
44
44
  width: t.width ? `${t.width}px` : "100%",
45
45
  height: t.height ? `${t.height}px` : "30vh"
46
46
  }));
47
- w(
47
+ $(
48
48
  () => [t.width, t.height, t.template, t.data, t.customOption, t.templatePatch],
49
49
  () => {
50
- r();
50
+ m();
51
51
  },
52
52
  {
53
53
  immediate: !0,
54
54
  deep: !0
55
55
  }
56
56
  );
57
- async function r() {
57
+ async function m() {
58
58
  t.template ? l.value = await P.templateOption({
59
59
  template: t.template,
60
60
  data: t.data,
61
61
  templatePatch: t.templatePatch,
62
62
  customOption: t.customOption
63
- }) : l.value = t.customOption, e.value ? e.value.setOption(l.value, {
63
+ }) : l.value = t.customOption, e.value ? (e.value.setOption(l.value, {
64
64
  notMerge: !0
65
- }) : (await $(), m(), r());
65
+ }), await c(), s()) : (await c(), p(), m());
66
66
  }
67
- a(r, "setChartOption");
68
- function m() {
69
- e.value = C(G(n.value)), window.removeEventListener("resize", p), window.addEventListener("resize", p);
70
- }
71
- a(m, "initChart");
67
+ a(m, "setChartOption");
72
68
  function p() {
69
+ e.value = C(G(r.value)), window.removeEventListener("resize", s), window.addEventListener("resize", s);
70
+ }
71
+ a(p, "initChart");
72
+ function s() {
73
73
  e.value && e.value.resize();
74
74
  }
75
- return a(p, "resizeChart"), O(() => {
76
- m();
75
+ return a(s, "resizeChart"), O(() => {
76
+ p();
77
77
  }), _(() => {
78
78
  e.value && e.value.dispose();
79
79
  }), o({
80
80
  echartObj: e
81
81
  }), (J, K) => (g(), x("div", {
82
- class: y(c(u)),
83
- style: z(c(h)),
82
+ class: y(f(h)),
83
+ style: z(f(d)),
84
84
  ref_key: "lsChartRef",
85
- ref: n
85
+ ref: r
86
86
  }, null, 6));
87
87
  }
88
88
  });
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty;var d=(r,t)=>L(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../_utils/utils/index.cjs"),o=require("../../base/index.cjs"),y=d((r,t,e,n,a)=>{const{name:s,seriesName:l,value:O,color:m}=r,i=n==0?`<div class="name">${s}</div>`:"",c=t&&O!=="-"&&l!=="temp"?`<span class="serise-name">${t?l:""}</span>`:"",u=O!=="-"&&l!=="temp"?`<span class="value">${O||"-"}</span>`:"",_=O!=="-"&&l!=="temp"?`<div class="content-badge ${e}" style="background-color: ${typeof m=="string"?m:a};"></div>`:"";return` ${i} <div class="content"> <div class="serise-wrap"> ${_} ${c} </div> ${u} </div> `},"setTooltipFormat"),A=d(r=>{let{legend:t,legendIcon:e,tooltip:n="shadow",theme:a="default",tooltipFormatter:s,barColorList:l}=r;const O=l||o.BAR_COLOR_MAP[a||o.DEF_THEME][0];return s=s||function(m){let i=`<div class="ls-bar-tooltip-wrap ${a}">`;return m.forEach((c,u)=>{i+=y(c,t,e,u,O)}),i+"</div>"},n?{trigger:"axis",axisPointer:{type:n,z:1,label:{color:o.TOOLTIP_COLOR_MAP[a||o.DEF_THEME].color}},textStyle:{color:o.FONT_COLOR_MAP[a||o.DEF_THEME]},padding:12,backgroundColor:o.TOOLTIP_COLOR_MAP[a||o.DEF_THEME].bgColor,extraCssText:`box-shadow: ${o.TOOLTIP_COLOR_MAP[a||o.DEF_THEME].shadowColor};`,formatter:s}:null},"setTooltip"),C=d(r=>{const{legend:t,legendIcon:e="rect",theme:n}=r;return{type:"scroll",data:t||[],icon:e,itemWidth:12,itemHeight:10,textStyle:{color:o.FONT_COLOR_MAP[n||o.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),v=d(r=>{const{dataZoom:t}=r,e={left:"3%",right:"3%",top:"12%",bottom:"3%",containLabel:!0};return t==="vertical"&&delete e.right,t==="horizontal"&&delete e.bottom,e},"setGrid"),b=d((r,t,e)=>{const{axisData:n,seriesData:a}=r,{axis:s="x",theme:l,dynamicAxis:O,type:m="simple"}=t,i={type:s==e?"category":"value",axisTick:{show:!1},axisLine:{show:s==e,lineStyle:{width:1,color:o.FONT_COLOR_MAP[l||o.DEF_THEME]}},axisLabel:{margin:18},splitLine:{lineStyle:{type:"dashed",color:o.SPLIT_LINE_COLOR[l||o.DEF_THEME]}}};if(s==e&&(i.data=n),s!==e&&O&&["simple","multiBar"].includes(m)){let c=[];m==="simple"?c=(a||[]).map(E=>p.numberFixed(E)):m==="multiBar"&&(c=a.reduce((E,T)=>E.concat(T.data),[]));const u=Math.max(...c),_=Math.min(...c),{aInterval:f,aMax:M,aMin:h}=p.formatChartAxis(u,_);i.min=h,i.max=M,i.interval=f}return[i]},"setAxis"),x=d(r=>{const{dataZoom:t,theme:e}=r;return t?[{show:!0,start:0,end:100,orient:t,showDataShadow:!0,dataBackground:{areaStyle:{color:o.DATA_ZOOM_COLOR[e||o.DEF_THEME][0]}},fillerColor:o.DATA_ZOOM_COLOR[e||o.DEF_THEME][1],borderColor:null,textStyle:{color:o.FONT_COLOR_MAP[e||o.DEF_THEME]}},{type:"inside",start:0,end:100,orient:t},{show:!1,yAxisIndex:0,filterMode:"empty",right:0,showDataShadow:!0}]:null},"setDataZoom"),g=d((r,t,e)=>{const n=r==="x"?"top":"left";let a="inside";return e?a=o.LABEL_POSITION_MAP[t][n]:a=o.LABEL_POSITION_MAP[t][`-${n}`],a},"getPos"),D=d((r,t,e)=>{const{type:n="simple",showBarFont:a=!0,labelPosition:s="inside",axis:l="x",showBackground:O,theme:m}=r,i={type:"bar",name:t.name,label:{show:a,position:s,formatter:d(function(c){const u=c.value;return u!==0?u:""},"formatter")},showBackground:O,backgroundStyle:{color:o.BG_BAR_COLOR_MAP[m||o.DEF_THEME]},data:t.data||[],barCategoryGap:"30%",barWidth:n==="multiBar"?"auto":"40%",barGap:"4%"};return["negative","categoryStack","waterfall"].includes(n)&&(i.stack="total",n==="negative"&&["both","insideBoth"].includes(s)?i.label.position=g(l,s,(t.data||[]).reduce((c,u)=>c+u)>0):n==="categoryStack"&&e>0&&(i.itemStyle={borderColor:o.BG_COLOR_MAP[m||o.DEF_THEME],borderWidth:2})),n==="waterfall"&&(i.itemStyle=e==0?{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}:null,i.emphasis=e==0?{itemStyle:{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}}:null,i.label=t.label||{show:e>0&&a,position:s,formatter:d(function(c){const u=c.value;return u!==0?u:""},"formatter")},["both","insideBoth"].includes(s)&&(i.label.position=g(l,s,e===1))),i},"setSeriesOption"),F=d((r,t)=>{const{seriesData:e}=r,{type:n="simple",legend:a=[]}=t;return(n=="simple"?[{name:a[0],data:e}]:e||[]).map((s,l)=>D(t,s,l))},"setSeries"),S=d((r,t)=>{const{theme:e,barColorList:n}=t,a={textStyle:{},backgroundColor:o.BG_COLOR_MAP[e||o.DEF_THEME],color:n||o.BAR_COLOR_MAP[e||o.DEF_THEME],legend:C(t),grid:v(t),xAxis:b(r,t,"x"),yAxis:b(r,t,"y"),series:F(r,t),dataZoom:x(t)},s=A(t);return s&&(a.tooltip=s),a},"setOption");function H(r={},t={}){return S(r,t)}d(H,"dealOption");exports.dealOption=H;
1
+ "use strict";var C=Object.defineProperty;var d=(a,t)=>C(a,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../_utils/utils/index.cjs"),e=require("../../base/index.cjs"),T=d((a,t,o,s,r)=>{const{name:n,seriesName:i,value:O,color:m}=a,l=s==0?`<div class="name">${n}</div>`:"",c=t&&O!=="-"&&i!=="temp"?`<span class="serise-name">${t?i:""}</span>`:"",u=O!=="-"&&i!=="temp"?`<span class="value">${O||"-"}</span>`:"",_=O!=="-"&&i!=="temp"?`<div class="content-badge ${o}" style="background-color: ${typeof m=="string"?m:r};"></div>`:"";return` ${l} <div class="content"> <div class="serise-wrap"> ${_} ${c} </div> ${u} </div> `},"setTooltipFormat"),L=d(a=>{let{legend:t,legendIcon:o,tooltip:s="shadow",theme:r="default",tooltipFormatter:n,barColorList:i}=a;const O=i||e.BAR_COLOR_MAP[r||e.DEF_THEME][0];return n=n||function(m){let l=`<div class="ls-bar-tooltip-wrap ${r}">`;return m.forEach((c,u)=>{l+=T(c,t,o,u,O)}),l+"</div>"},s?{trigger:"axis",axisPointer:{type:s,z:1,label:{color:e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].color}},textStyle:{color:e.FONT_COLOR_MAP[r||e.DEF_THEME]},padding:12,backgroundColor:e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].bgColor,extraCssText:`box-shadow: ${e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].shadowColor};`,formatter:n}:null},"setTooltip"),A=d(a=>{const{legend:t,legendIcon:o="rect",theme:s}=a;return{type:"scroll",data:t||[],icon:o,itemWidth:12,itemHeight:10,textStyle:{color:e.FONT_COLOR_MAP[s||e.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),v=d(a=>{const{dataZoom:t}=a,o={left:"3%",right:"3%",top:"12%",bottom:"3%",containLabel:!0};return t==="vertical"&&delete o.right,t==="horizontal"&&delete o.bottom,o},"setGrid"),b=d((a,t,o)=>{const{axisData:s,seriesData:r}=a,{axis:n="x",theme:i,dynamicAxis:O,type:m="simple"}=t,l={type:n==o?"category":"value",axisTick:{show:!1},axisLine:{show:n==o,lineStyle:{width:1,color:e.FONT_COLOR_MAP[i||e.DEF_THEME]}},axisLabel:{margin:18},splitLine:{lineStyle:{type:"dashed",color:e.SPLIT_LINE_COLOR[i||e.DEF_THEME]}}};if(n==o&&(l.data=s),n!==o&&O&&["simple","multiBar"].includes(m)){let c=[];m==="simple"?c=(r||[]).map(E=>p.numberFixed(E)):m==="multiBar"&&(c=r.reduce((E,y)=>E.concat(y.data),[]));const u=Math.max(...c),_=Math.min(...c),{aInterval:f,aMax:M,aMin:h}=p.formatChartAxis(u,_);l.min=h,l.max=M,l.interval=f}return[l]},"setAxis"),x=d(a=>{const{dataZoom:t,dataZoomColorOut:o,dataZoomColorIn:s,theme:r}=a;return t?[{show:!0,start:0,end:100,orient:t,showDataShadow:!0,dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:s||e.DATA_ZOOM_COLOR[r||e.DEF_THEME][0]}},fillerColor:o||e.DATA_ZOOM_COLOR[r||e.DEF_THEME][1],moveHandleStyle:{opacity:0},borderColor:null,textStyle:{color:e.FONT_COLOR_MAP[r||e.DEF_THEME]}},{type:"inside",start:0,end:100,orient:t},{show:!1,yAxisIndex:0,filterMode:"empty",right:0,showDataShadow:!0}]:null},"setDataZoom"),g=d((a,t,o)=>{const s=a==="x"?"top":"left";let r="inside";return o?r=e.LABEL_POSITION_MAP[t][s]:r=e.LABEL_POSITION_MAP[t][`-${s}`],r},"getPos"),S=d((a,t,o)=>{const{type:s="simple",showBarFont:r=!0,labelPosition:n="inside",axis:i="x",showBackground:O,theme:m}=a,l={type:"bar",name:t.name,label:{show:r,position:n,formatter:d(function(c){const u=c.value;return u!==0?u:""},"formatter")},showBackground:O,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[m||e.DEF_THEME]},data:t.data||[],barCategoryGap:"30%",barWidth:s==="multiBar"?"auto":"40%",barGap:"4%"};return["negative","categoryStack","waterfall"].includes(s)&&(l.stack="total",s==="negative"&&["both","insideBoth"].includes(n)?l.label.position=g(i,n,(t.data||[]).reduce((c,u)=>c+u)>0):s==="categoryStack"&&o>0&&(l.itemStyle={borderColor:e.BG_COLOR_MAP[m||e.DEF_THEME],borderWidth:2})),s==="waterfall"&&(l.itemStyle=o==0?{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}:null,l.emphasis=o==0?{itemStyle:{borderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}}:null,l.label=t.label||{show:o>0&&r,position:n,formatter:d(function(c){const u=c.value;return u!==0?u:""},"formatter")},["both","insideBoth"].includes(n)&&(l.label.position=g(i,n,o===1))),l},"setSeriesOption"),D=d((a,t)=>{const{seriesData:o}=a,{type:s="simple",legend:r=[]}=t;return(s=="simple"?[{name:r[0],data:o}]:o||[]).map((n,i)=>S(t,n,i))},"setSeries"),F=d((a,t)=>{const{theme:o,barColorList:s}=t,r={textStyle:{},backgroundColor:e.BG_COLOR_MAP[o||e.DEF_THEME],color:s||e.BAR_COLOR_MAP[o||e.DEF_THEME],legend:A(t),grid:v(t),xAxis:b(a,t,"x"),yAxis:b(a,t,"y"),series:D(a,t),dataZoom:x(t)},n=L(t);return n&&(r.tooltip=n),r},"setOption");function H(a={},t={}){return F(a,t)}d(H,"dealOption");exports.dealOption=H;
@@ -1,45 +1,45 @@
1
1
  var B = Object.defineProperty;
2
- var d = (o, t) => B(o, "name", { value: t, configurable: !0 });
2
+ var d = (r, t) => B(r, "name", { value: t, configurable: !0 });
3
3
  import { numberFixed as M, formatChartAxis as $ } from "../../../../_utils/utils/index.js";
4
- import { BG_COLOR_MAP as C, DEF_THEME as i, BAR_COLOR_MAP as w, TOOLTIP_COLOR_MAP as h, FONT_COLOR_MAP as f, DATA_ZOOM_COLOR as y, SPLIT_LINE_COLOR as k, BG_BAR_COLOR_MAP as D, LABEL_POSITION_MAP as x } from "../../base/index.js";
5
- const I = /* @__PURE__ */ d((o, t, e, s, r) => {
6
- const { name: a, seriesName: l, value: p, color: u } = o, n = s == 0 ? `<div class="name">${a}</div>` : "", c = t && p !== "-" && l !== "temp" ? `<span class="serise-name">${t ? l : ""}</span>` : "", m = p !== "-" && l !== "temp" ? `<span class="value">${p || "-"}</span>` : "", g = p !== "-" && l !== "temp" ? `<div class="content-badge ${e}" style="background-color: ${typeof u == "string" ? u : r};"></div>` : "";
4
+ import { BG_COLOR_MAP as C, DEF_THEME as l, BAR_COLOR_MAP as S, TOOLTIP_COLOR_MAP as h, FONT_COLOR_MAP as f, DATA_ZOOM_COLOR as y, SPLIT_LINE_COLOR as k, BG_BAR_COLOR_MAP as I, LABEL_POSITION_MAP as x } from "../../base/index.js";
5
+ const D = /* @__PURE__ */ d((r, t, o, a, e) => {
6
+ const { name: s, seriesName: i, value: p, color: u } = r, n = a == 0 ? `<div class="name">${s}</div>` : "", c = t && p !== "-" && i !== "temp" ? `<span class="serise-name">${t ? i : ""}</span>` : "", m = p !== "-" && i !== "temp" ? `<span class="value">${p || "-"}</span>` : "", g = p !== "-" && i !== "temp" ? `<div class="content-badge ${o}" style="background-color: ${typeof u == "string" ? u : e};"></div>` : "";
7
7
  return ` ${n} <div class="content"> <div class="serise-wrap"> ${g} ${c} </div> ${m} </div> `;
8
- }, "setTooltipFormat"), R = /* @__PURE__ */ d((o) => {
9
- let { legend: t, legendIcon: e, tooltip: s = "shadow", theme: r = "default", tooltipFormatter: a, barColorList: l } = o;
10
- const p = l || w[r || i][0];
11
- return a = a || function(u) {
12
- let n = `<div class="ls-bar-tooltip-wrap ${r}">`;
8
+ }, "setTooltipFormat"), R = /* @__PURE__ */ d((r) => {
9
+ let { legend: t, legendIcon: o, tooltip: a = "shadow", theme: e = "default", tooltipFormatter: s, barColorList: i } = r;
10
+ const p = i || S[e || l][0];
11
+ return s = s || function(u) {
12
+ let n = `<div class="ls-bar-tooltip-wrap ${e}">`;
13
13
  return u.forEach((c, m) => {
14
- n += I(c, t, e, m, p);
14
+ n += D(c, t, o, m, p);
15
15
  }), n + "</div>";
16
- }, s ? {
16
+ }, a ? {
17
17
  trigger: "axis",
18
18
  axisPointer: {
19
- type: s,
19
+ type: a,
20
20
  z: 1,
21
21
  label: {
22
- color: h[r || i].color
22
+ color: h[e || l].color
23
23
  }
24
24
  },
25
25
  textStyle: {
26
- color: f[r || i]
26
+ color: f[e || l]
27
27
  },
28
28
  padding: 12,
29
- backgroundColor: h[r || i].bgColor,
30
- extraCssText: `box-shadow: ${h[r || i].shadowColor};`,
31
- formatter: a
29
+ backgroundColor: h[e || l].bgColor,
30
+ extraCssText: `box-shadow: ${h[e || l].shadowColor};`,
31
+ formatter: s
32
32
  } : null;
33
- }, "setTooltip"), T = /* @__PURE__ */ d((o) => {
34
- const { legend: t, legendIcon: e = "rect", theme: s } = o;
33
+ }, "setTooltip"), H = /* @__PURE__ */ d((r) => {
34
+ const { legend: t, legendIcon: o = "rect", theme: a } = r;
35
35
  return {
36
36
  type: "scroll",
37
37
  data: t || [],
38
- icon: e,
38
+ icon: o,
39
39
  itemWidth: 12,
40
40
  itemHeight: 10,
41
41
  textStyle: {
42
- color: f[s || i],
42
+ color: f[a || l],
43
43
  fontSize: 12,
44
44
  height: 10,
45
45
  rich: {
@@ -49,26 +49,26 @@ const I = /* @__PURE__ */ d((o, t, e, s, r) => {
49
49
  }
50
50
  }
51
51
  };
52
- }, "setLegend"), H = /* @__PURE__ */ d((o) => {
53
- const { dataZoom: t } = o, e = {
52
+ }, "setLegend"), T = /* @__PURE__ */ d((r) => {
53
+ const { dataZoom: t } = r, o = {
54
54
  left: "3%",
55
55
  right: "3%",
56
56
  top: "12%",
57
57
  bottom: "3%",
58
58
  containLabel: !0
59
59
  };
60
- return t === "vertical" && delete e.right, t === "horizontal" && delete e.bottom, e;
61
- }, "setGrid"), v = /* @__PURE__ */ d((o, t, e) => {
62
- const { axisData: s, seriesData: r } = o, { axis: a = "x", theme: l, dynamicAxis: p, type: u = "simple" } = t, n = {
63
- type: a == e ? "category" : "value",
60
+ return t === "vertical" && delete o.right, t === "horizontal" && delete o.bottom, o;
61
+ }, "setGrid"), v = /* @__PURE__ */ d((r, t, o) => {
62
+ const { axisData: a, seriesData: e } = r, { axis: s = "x", theme: i, dynamicAxis: p, type: u = "simple" } = t, n = {
63
+ type: s == o ? "category" : "value",
64
64
  axisTick: {
65
65
  show: !1
66
66
  },
67
67
  axisLine: {
68
- show: a == e,
68
+ show: s == o,
69
69
  lineStyle: {
70
70
  width: 1,
71
- color: f[l || i]
71
+ color: f[i || l]
72
72
  }
73
73
  },
74
74
  axisLabel: {
@@ -77,19 +77,19 @@ const I = /* @__PURE__ */ d((o, t, e, s, r) => {
77
77
  splitLine: {
78
78
  lineStyle: {
79
79
  type: "dashed",
80
- color: k[l || i]
80
+ color: k[i || l]
81
81
  }
82
82
  }
83
83
  };
84
- if (a == e && (n.data = s), a !== e && p && ["simple", "multiBar"].includes(u)) {
84
+ if (s == o && (n.data = a), s !== o && p && ["simple", "multiBar"].includes(u)) {
85
85
  let c = [];
86
- u === "simple" ? c = (r || []).map((b) => M(b)) : u === "multiBar" && (c = r.reduce((b, _) => b.concat(_.data), []));
87
- const m = Math.max(...c), g = Math.min(...c), { aInterval: S, aMax: L, aMin: A } = $(m, g);
88
- n.min = A, n.max = L, n.interval = S;
86
+ u === "simple" ? c = (e || []).map((b) => M(b)) : u === "multiBar" && (c = e.reduce((b, _) => b.concat(_.data), []));
87
+ const m = Math.max(...c), g = Math.min(...c), { aInterval: w, aMax: L, aMin: A } = $(m, g);
88
+ n.min = A, n.max = L, n.interval = w;
89
89
  }
90
90
  return [n];
91
- }, "setAxis"), E = /* @__PURE__ */ d((o) => {
92
- const { dataZoom: t, theme: e } = o;
91
+ }, "setAxis"), Z = /* @__PURE__ */ d((r) => {
92
+ const { dataZoom: t, dataZoomColorOut: o, dataZoomColorIn: a, theme: e } = r;
93
93
  return t ? [
94
94
  {
95
95
  show: !0,
@@ -98,14 +98,20 @@ const I = /* @__PURE__ */ d((o, t, e, s, r) => {
98
98
  orient: t,
99
99
  showDataShadow: !0,
100
100
  dataBackground: {
101
+ lineStyle: {
102
+ color: "transparent"
103
+ },
101
104
  areaStyle: {
102
- color: y[e || i][0]
105
+ color: a || y[e || l][0]
103
106
  }
104
107
  },
105
- fillerColor: y[e || i][1],
108
+ fillerColor: o || y[e || l][1],
109
+ moveHandleStyle: {
110
+ opacity: 0
111
+ },
106
112
  borderColor: null,
107
113
  textStyle: {
108
- color: f[e || i]
114
+ color: f[e || l]
109
115
  }
110
116
  },
111
117
  {
@@ -122,17 +128,17 @@ const I = /* @__PURE__ */ d((o, t, e, s, r) => {
122
128
  showDataShadow: !0
123
129
  }
124
130
  ] : null;
125
- }, "setDataZoom"), O = /* @__PURE__ */ d((o, t, e) => {
126
- const s = o === "x" ? "top" : "left";
127
- let r = "inside";
128
- return e ? r = x[t][s] : r = x[t][`-${s}`], r;
129
- }, "getPos"), F = /* @__PURE__ */ d((o, t, e) => {
130
- const { type: s = "simple", showBarFont: r = !0, labelPosition: a = "inside", axis: l = "x", showBackground: p, theme: u } = o, n = {
131
+ }, "setDataZoom"), O = /* @__PURE__ */ d((r, t, o) => {
132
+ const a = r === "x" ? "top" : "left";
133
+ let e = "inside";
134
+ return o ? e = x[t][a] : e = x[t][`-${a}`], e;
135
+ }, "getPos"), E = /* @__PURE__ */ d((r, t, o) => {
136
+ const { type: a = "simple", showBarFont: e = !0, labelPosition: s = "inside", axis: i = "x", showBackground: p, theme: u } = r, n = {
131
137
  type: "bar",
132
138
  name: t.name,
133
139
  label: {
134
- show: r,
135
- position: a,
140
+ show: e,
141
+ position: s,
136
142
  formatter: /* @__PURE__ */ d(function(c) {
137
143
  const m = c.value;
138
144
  return m !== 0 ? m : "";
@@ -140,51 +146,51 @@ const I = /* @__PURE__ */ d((o, t, e, s, r) => {
140
146
  },
141
147
  showBackground: p,
142
148
  backgroundStyle: {
143
- color: D[u || i]
149
+ color: I[u || l]
144
150
  },
145
151
  data: t.data || [],
146
152
  barCategoryGap: "30%",
147
- barWidth: s === "multiBar" ? "auto" : "40%",
153
+ barWidth: a === "multiBar" ? "auto" : "40%",
148
154
  barGap: "4%"
149
155
  };
150
- return ["negative", "categoryStack", "waterfall"].includes(s) && (n.stack = "total", s === "negative" && ["both", "insideBoth"].includes(a) ? n.label.position = O(l, a, (t.data || []).reduce((c, m) => c + m) > 0) : s === "categoryStack" && e > 0 && (n.itemStyle = {
151
- borderColor: C[u || i],
156
+ return ["negative", "categoryStack", "waterfall"].includes(a) && (n.stack = "total", a === "negative" && ["both", "insideBoth"].includes(s) ? n.label.position = O(i, s, (t.data || []).reduce((c, m) => c + m) > 0) : a === "categoryStack" && o > 0 && (n.itemStyle = {
157
+ borderColor: C[u || l],
152
158
  borderWidth: 2
153
- })), s === "waterfall" && (n.itemStyle = e == 0 ? {
159
+ })), a === "waterfall" && (n.itemStyle = o == 0 ? {
154
160
  borderColor: "rgba(0,0,0,0)",
155
161
  color: "rgba(0,0,0,0)"
156
- } : null, n.emphasis = e == 0 ? {
162
+ } : null, n.emphasis = o == 0 ? {
157
163
  itemStyle: {
158
164
  borderColor: "rgba(0,0,0,0)",
159
165
  color: "rgba(0,0,0,0)"
160
166
  }
161
167
  } : null, n.label = t.label || {
162
- show: e > 0 && r,
163
- position: a,
168
+ show: o > 0 && e,
169
+ position: s,
164
170
  formatter: /* @__PURE__ */ d(function(c) {
165
171
  const m = c.value;
166
172
  return m !== 0 ? m : "";
167
173
  }, "formatter")
168
- }, ["both", "insideBoth"].includes(a) && (n.label.position = O(l, a, e === 1))), n;
169
- }, "setSeriesOption"), G = /* @__PURE__ */ d((o, t) => {
170
- const { seriesData: e } = o, { type: s = "simple", legend: r = [] } = t;
171
- return (s == "simple" ? [{ name: r[0], data: e }] : e || []).map((a, l) => F(t, a, l));
172
- }, "setSeries"), Z = /* @__PURE__ */ d((o, t) => {
173
- const { theme: e, barColorList: s } = t, r = {
174
+ }, ["both", "insideBoth"].includes(s) && (n.label.position = O(i, s, o === 1))), n;
175
+ }, "setSeriesOption"), F = /* @__PURE__ */ d((r, t) => {
176
+ const { seriesData: o } = r, { type: a = "simple", legend: e = [] } = t;
177
+ return (a == "simple" ? [{ name: e[0], data: o }] : o || []).map((s, i) => E(t, s, i));
178
+ }, "setSeries"), G = /* @__PURE__ */ d((r, t) => {
179
+ const { theme: o, barColorList: a } = t, e = {
174
180
  textStyle: {},
175
- backgroundColor: C[e || i],
176
- color: s || w[e || i],
177
- legend: T(t),
178
- grid: H(t),
179
- xAxis: v(o, t, "x"),
180
- yAxis: v(o, t, "y"),
181
- series: G(o, t),
182
- dataZoom: E(t)
183
- }, a = R(t);
184
- return a && (r.tooltip = a), r;
181
+ backgroundColor: C[o || l],
182
+ color: a || S[o || l],
183
+ legend: H(t),
184
+ grid: T(t),
185
+ xAxis: v(r, t, "x"),
186
+ yAxis: v(r, t, "y"),
187
+ series: F(r, t),
188
+ dataZoom: Z(t)
189
+ }, s = R(t);
190
+ return s && (e.tooltip = s), e;
185
191
  }, "setOption");
186
- function W(o = {}, t = {}) {
187
- return Z(o, t);
192
+ function W(r = {}, t = {}) {
193
+ return G(r, t);
188
194
  }
189
195
  d(W, "dealOption");
190
196
  export {
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty;var O=(a,t)=>A(a,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("../../../../_utils/utils/index.cjs"),e=require("../../base/index.cjs"),C=O((a,t,o,n,r)=>{const{name:s,seriesName:l,value:i,color:_}=a,d=n==0?`<div class="name">${s}</div>`:"",m=t&&i!=="-"&&l!=="temp"?`<span class="serise-name">${t?l:""}</span>`:"",c=i!=="-"&&l!=="temp"?`<span class="value">${i||"-"}</span>`:"",E=i!=="-"&&l!=="temp"?`<div class="content-badge ${o}" style="background-color: ${typeof _=="string"?_:r};"></div>`:"";return` ${d} <div class="content"> <div class="serise-wrap"> ${E} ${m} </div> ${c} </div> `},"setTooltipFormat"),b=O(a=>{let{legend:t,legendIcon:o,tooltip:n="shadow",theme:r,tooltipFormatter:s,barColorList:l}=a;const i=l||e.BAR_COLOR_MAP[r||e.DEF_THEME][0];return s=s||function(_){let d=`<div class="ls-bar-tooltip-wrap ${r}">`;return _.forEach((m,c)=>{d+=C(m,t,o,c,i)}),d+"</div>"},n?{trigger:"axis",axisPointer:{type:n,z:1,label:{color:e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].color}},textStyle:{color:e.FONT_COLOR_MAP[r||e.DEF_THEME]},padding:12,backgroundColor:e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].bgColor,extraCssText:`box-shadow: ${e.TOOLTIP_COLOR_MAP[r||e.DEF_THEME].shadowColor};`,formatter:s}:null},"setTooltip"),D=O(a=>{const{legend:t,legendIcon:o="rect",theme:n}=a;return{type:"scroll",data:t||[],icon:o,itemWidth:12,itemHeight:10,textStyle:{color:e.FONT_COLOR_MAP[n||e.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),F=O(a=>{const{dataZoom:t}=a,o={left:"3%",right:"3%",top:"12%",bottom:"3%",containLabel:!0};return t==="vertical"&&delete o.right,t==="horizontal"&&delete o.bottom,o},"setGrid"),x=O((a,t,o)=>{const{axisData:n,seriesData:r}=a,{axis:s="x",theme:l,lineBar:i,dynamicAxis:_,type:d}=t;let m=[{type:s==o?"category":"value",axisTick:{show:!1},axisLine:{show:s==o,lineStyle:{width:1,color:e.FONT_COLOR_MAP[l||e.DEF_THEME]}},axisLabel:{margin:18},splitLine:{lineStyle:{type:"dashed",color:e.SPLIT_LINE_COLOR[l||e.DEF_THEME]}},data:s==o?n:[]}];if(s!==o&&(i&&(m=s=="x"?[{type:"value",splitLine:{show:!1,lineStyle:{color:e.SPLIT_LINE_COLOR[l||e.DEF_THEME]}}},{type:"value",splitLine:{lineStyle:{color:e.SPLIT_LINE_COLOR[l||e.DEF_THEME],type:"dashed",width:2,dashOffset:2}}}]:[{type:"value"}]),_)){let c=[];d==="multiple"&&(!i||s=="y"&&i)&&(c=r.reduce((E,u)=>E.concat(u.data),[])),m.map((E,u)=>{var L;d==="multiple"?i&&s=="x"&&(c=(((L=r[u])==null?void 0:L.data)||[]).map(h=>M.numberFixed(h))):c=(r||[]).map(h=>M.numberFixed(h));const y=Math.max(...c),p=Math.min(...c),{aInterval:T,aMax:f,aMin:g}=M.formatChartAxis(y,p);return E.min=g,E.max=f,E.interval=T,E})}return m},"setAxis"),S=O(a=>{const{dataZoom:t,theme:o}=a;return t?[{show:!0,start:0,end:100,orient:t,showDataShadow:!0,dataBackground:{areaStyle:{color:e.DATA_ZOOM_COLOR[o||e.DEF_THEME][0]}},fillerColor:e.DATA_ZOOM_COLOR[o||e.DEF_THEME][1],borderColor:null,textStyle:{color:e.FONT_COLOR_MAP[o||e.DEF_THEME]}},{type:"inside",start:0,end:100,orient:t},{show:!1,filterMode:"empty",right:0,showDataShadow:!0}]:null},"setDataZoom"),v=O((a,t)=>{const{seriesData:o}=a,{type:n="simple",showBarFont:r=!0,labelPosition:s="inside",smooth:l=!0,areaStyle:i=void 0,showBackground:_,theme:d,name:m,lineBar:c,axis:E}=t;return n==="multiple"?(o||[]).map((u,y)=>{const p={name:u.name,type:u.type,emphasis:u.emphasis||{focus:"series"},smooth:l,areaStyle:i||{opacity:.2},label:{show:r,position:s},showBackground:_,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[d||e.DEF_THEME]},itemStyle:u.itemStyle||{},data:u.data||[]};return c&&(E!=="y"&&y===1?p.yAxisIndex=y:p.yAxisIndex&&delete p.yAxisIndex),p}):[{name:m,label:{show:r,position:s},showBackground:_,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[d||e.DEF_THEME]},data:o||[],smooth:l,areaStyle:i||{opacity:.2},type:"line"}]},"setSeries"),H=O((a,t)=>{const{theme:o,barColorList:n}=t,r={textStyle:{},backgroundColor:e.BG_COLOR_MAP[o||e.DEF_THEME],color:n||e.BAR_COLOR_MAP[o||e.DEF_THEME],legend:D(t),grid:F(t),xAxis:x(a,t,"x"),yAxis:x(a,t,"y"),series:v(a,t),dataZoom:S(t)},s=b(t);return s&&(r.tooltip=s),r},"setOption");function R(a={},t={}){return H(a,t)}O(R,"dealOption");exports.dealOption=R;
1
+ "use strict";var C=Object.defineProperty;var E=(s,t)=>C(s,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../../../../_utils/utils/index.cjs"),e=require("../../base/index.cjs"),A=E((s,t,o,n,a)=>{const{name:l,seriesName:i,value:r,color:u}=s,d=n==0?`<div class="name">${l}</div>`:"",O=t&&r!=="-"&&i!=="temp"?`<span class="serise-name">${t?i:""}</span>`:"",c=r!=="-"&&i!=="temp"?`<span class="value">${r||"-"}</span>`:"",m=r!=="-"&&i!=="temp"?`<div class="content-badge ${o}" style="background-color: ${typeof u=="string"?u:a};"></div>`:"";return` ${d} <div class="content"> <div class="serise-wrap"> ${m} ${O} </div> ${c} </div> `},"setTooltipFormat"),b=E(s=>{let{legend:t,legendIcon:o,tooltip:n="shadow",theme:a,tooltipFormatter:l,barColorList:i}=s;const r=i||e.BAR_COLOR_MAP[a||e.DEF_THEME][0];return l=l||function(u){let d=`<div class="ls-bar-tooltip-wrap ${a}">`;return u.forEach((O,c)=>{d+=A(O,t,o,c,r)}),d+"</div>"},n?{trigger:"axis",axisPointer:{type:n,z:1,label:{color:e.TOOLTIP_COLOR_MAP[a||e.DEF_THEME].color}},textStyle:{color:e.FONT_COLOR_MAP[a||e.DEF_THEME]},padding:12,backgroundColor:e.TOOLTIP_COLOR_MAP[a||e.DEF_THEME].bgColor,extraCssText:`box-shadow: ${e.TOOLTIP_COLOR_MAP[a||e.DEF_THEME].shadowColor};`,formatter:l}:null},"setTooltip"),S=E(s=>{const{legend:t,legendIcon:o="rect",theme:n}=s;return{type:"scroll",data:t||[],icon:o,itemWidth:12,itemHeight:10,textStyle:{color:e.FONT_COLOR_MAP[n||e.DEF_THEME],fontSize:12,height:10,rich:{a:{verticalAlign:"middle"}}}}},"setLegend"),D=E(s=>{const{dataZoom:t}=s,o={left:"3%",right:"3%",top:"12%",bottom:"3%",containLabel:!0};return t==="vertical"&&delete o.right,t==="horizontal"&&delete o.bottom,o},"setGrid"),T=E((s,t,o)=>{const{axisData:n,seriesData:a}=s,{axis:l="x",theme:i,lineBar:r,dynamicAxis:u,type:d}=t;let O=[{type:l==o?"category":"value",axisTick:{show:!1},axisLine:{show:l==o,lineStyle:{width:1,color:e.FONT_COLOR_MAP[i||e.DEF_THEME]}},axisLabel:{margin:18},splitLine:{lineStyle:{type:"dashed",color:e.SPLIT_LINE_COLOR[i||e.DEF_THEME]}},data:l==o?n:[]}];if(l!==o&&(r&&(O=l=="x"?[{type:"value",splitLine:{show:!1,lineStyle:{color:e.SPLIT_LINE_COLOR[i||e.DEF_THEME]}}},{type:"value",splitLine:{lineStyle:{color:e.SPLIT_LINE_COLOR[i||e.DEF_THEME],type:"dashed",width:2,dashOffset:2}}}]:[{type:"value"}]),u)){let c=[];d==="multiple"&&(!r||l=="y"&&r)&&(c=a.reduce((m,p)=>m.concat(p.data),[])),O.map((m,p)=>{var x;d==="multiple"?r&&l=="x"&&(c=(((x=a[p])==null?void 0:x.data)||[]).map(M=>L.numberFixed(M))):c=(a||[]).map(M=>L.numberFixed(M));const _=Math.max(...c),h=Math.min(...c),{aInterval:y,aMax:f,aMin:g}=L.formatChartAxis(_,h);return m.min=g,m.max=f,m.interval=y,m})}return O},"setAxis"),F=E(s=>{const{dataZoom:t,dataZoomColorOut:o,dataZoomColorIn:n,theme:a}=s;return t?[{show:!0,start:0,end:100,orient:t,showDataShadow:!0,dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:n||e.DATA_ZOOM_COLOR[a||e.DEF_THEME][0]}},fillerColor:o||e.DATA_ZOOM_COLOR[a||e.DEF_THEME][1],moveHandleStyle:{opacity:0},borderColor:null,textStyle:{color:e.FONT_COLOR_MAP[a||e.DEF_THEME]}},{type:"inside",start:0,end:100,orient:t},{show:!1,filterMode:"empty",right:0,showDataShadow:!0}]:null},"setDataZoom"),v=E((s,t)=>{const{seriesData:o}=s,{type:n="simple",showBarFont:a=!0,labelPosition:l="inside",smooth:i=!0,areaStyle:r=void 0,showBackground:u,theme:d,name:O,lineBar:c,axis:m,symbol:p="circle"}=t;return n==="multiple"?(o||[]).map((_,h)=>{const y={name:_.name,type:_.type,symbol:p,emphasis:_.emphasis||{focus:"series"},smooth:i,areaStyle:r||null,label:{show:a,position:l},showBackground:u,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[d||e.DEF_THEME]},itemStyle:_.itemStyle||{},data:_.data||[]};return c&&(m!=="y"&&h===1?y.yAxisIndex=h:y.yAxisIndex&&delete y.yAxisIndex),y}):[{name:O,label:{show:a,position:l},showBackground:u,backgroundStyle:{color:e.BG_BAR_COLOR_MAP[d||e.DEF_THEME]},data:o||[],smooth:i,symbol:p,areaStyle:r||null,type:"line"}]},"setSeries"),H=E((s,t)=>{const{theme:o,barColorList:n}=t,a={textStyle:{},backgroundColor:e.BG_COLOR_MAP[o||e.DEF_THEME],color:n||e.BAR_COLOR_MAP[o||e.DEF_THEME],legend:S(t),grid:D(t),xAxis:T(s,t,"x"),yAxis:T(s,t,"y"),series:v(s,t),dataZoom:F(t)},l=b(t);return l&&(a.tooltip=l),a},"setOption");function R(s={},t={}){return H(s,t)}E(R,"dealOption");exports.dealOption=R;