vue-data-ui 0.0.6 → 0.0.8

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.
@@ -12820,7 +12820,7 @@ function(A) {
12820
12820
  */
12821
12821
  function(A) {
12822
12822
  function e() {
12823
- return (xe.canvg ? Promise.resolve(xe.canvg) : import("./index.es-1f2eaf09.js")).catch(function(t) {
12823
+ return (xe.canvg ? Promise.resolve(xe.canvg) : import("./index.es-7fb3d469.js")).catch(function(t) {
12824
12824
  return Promise.reject(new Error("Could not load canvg: " + t));
12825
12825
  }).then(function(t) {
12826
12826
  return t.default ? t.default : t;
@@ -30314,7 +30314,7 @@ const nw = (A, e) => {
30314
30314
  return isNaN(A) ? e : A;
30315
30315
  }
30316
30316
  }
30317
- }, AU = (A) => (eg("data-v-ffbe03fd"), A = A(), tg(), A), eU = {
30317
+ }, AU = (A) => (eg("data-v-43e19d7c"), A = A(), tg(), A), eU = {
30318
30318
  key: 1,
30319
30319
  class: "vue-ui-xy-user-options",
30320
30320
  "data-html2canvas-ignore": "",
@@ -30331,20 +30331,15 @@ const nw = (A, e) => {
30331
30331
  fill: "none",
30332
30332
  "stroke-linecap": "round",
30333
30333
  "stroke-linejoin": "round"
30334
- }, dU = /* @__PURE__ */ rg('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-ffbe03fd></path><path d="M18 16v.01" data-v-ffbe03fd></path><path d="M6 16v.01" data-v-ffbe03fd></path><path d="M12 5v.01" data-v-ffbe03fd></path><path d="M12 12v.01" data-v-ffbe03fd></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-ffbe03fd></path>', 6), gU = [
30334
+ }, dU = /* @__PURE__ */ rg('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-43e19d7c></path><path d="M18 16v.01" data-v-43e19d7c></path><path d="M6 16v.01" data-v-43e19d7c></path><path d="M12 5v.01" data-v-43e19d7c></path><path d="M12 12v.01" data-v-43e19d7c></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-43e19d7c></path>', 6), gU = [
30335
30335
  dU
30336
- ], pU = { key: 1 }, wU = ["viewBox"], BU = { class: "vue-ui-xy-grid" }, vU = ["stroke", "x1", "x2", "y1", "y2"], mU = ["stroke", "x1", "x2", "y1", "y2"], xU = { key: 0 }, CU = ["x1", "x2", "y1", "y2", "stroke"], FU = ["id"], yU = ["stop-color"], EU = ["stop-color"], bU = ["stop-color"], _U = ["id"], SU = ["stop-color"], UU = ["stop-color"], QU = ["stop-color"], LU = ["id"], TU = ["stop-color"], IU = ["stop-color"], NU = ["id"], DU = ["stop-color"], OU = ["stop-color"], kU = ["x", "y", "height", "width", "fill"], HU = ["cx", "cy", "r", "fill", "stroke"], PU = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], MU = ["cx", "cy", "r", "fill", "stroke"], RU = { key: 0 }, KU = ["x", "y", "font-size", "fill"], GU = { key: 1 }, VU = ["x", "y", "font-size", "fill"], jU = { key: 2 }, WU = ["x", "y", "font-size", "fill"], XU = { key: 3 }, zU = ["x1", "x2", "y1", "y2", "stroke"], qU = ["x", "y", "font-size", "fill"], YU = {
30337
- key: 0,
30338
- id: "yAxisLabel",
30339
- "text-anchor": "middle",
30340
- style: { transition: "none" }
30341
- }, JU = ["x", "y", "font-size", "fill"], ZU = { key: 4 }, $U = {
30336
+ ], pU = { key: 1 }, wU = ["viewBox"], BU = { class: "vue-ui-xy-grid" }, vU = ["stroke", "x1", "x2", "y1", "y2"], mU = ["stroke", "x1", "x2", "y1", "y2"], xU = { key: 0 }, CU = ["x1", "x2", "y1", "y2", "stroke"], FU = ["id"], yU = ["stop-color"], EU = ["stop-color"], bU = ["stop-color"], _U = ["id"], SU = ["stop-color"], UU = ["stop-color"], QU = ["stop-color"], LU = ["id"], TU = ["stop-color"], IU = ["stop-color"], NU = ["id"], DU = ["stop-color"], OU = ["stop-color"], kU = ["x", "y", "height", "width", "fill"], HU = ["cx", "cy", "r", "fill", "stroke"], PU = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], MU = ["cx", "cy", "r", "fill", "stroke"], RU = { key: 0 }, KU = ["x", "y", "font-size", "fill"], GU = { key: 1 }, VU = ["x", "y", "font-size", "fill"], jU = { key: 2 }, WU = ["x", "y", "font-size", "fill"], XU = { key: 3 }, zU = ["x1", "x2", "y1", "y2", "stroke"], qU = ["x", "y", "font-size", "fill"], YU = ["font-size", "fill"], JU = ["x", "y", "font-size", "fill"], ZU = { key: 4 }, $U = {
30342
30337
  x: "0",
30343
30338
  y: "0",
30344
30339
  width: "100%",
30345
30340
  height: "40px",
30346
30341
  style: { overflow: "visible" }
30347
- }, A6 = { key: 5 }, e6 = ["y"], t6 = { class: "vue-ui-xy-legend" }, r6 = ["onClick"], n6 = { key: 6 }, i6 = ["y", "x", "font-size"], a6 = { key: 7 }, s6 = ["x", "y", "height", "width", "fill", "onMouseenter"], o6 = ["onClick"], l6 = ["innerHTML"], c6 = ["innerHTML"], f6 = { class: "vue-ui-xy-table" }, u6 = /* @__PURE__ */ AU(() => /* @__PURE__ */ CA("th", null, null, -1)), h6 = { style: { "max-width": "200px", margin: "0 auto" } }, d6 = ["onMouseover"];
30342
+ }, A6 = { key: 5 }, e6 = ["y"], t6 = { class: "vue-ui-xy-legend" }, r6 = ["onClick"], n6 = { key: 6 }, i6 = ["y", "x", "font-size", "fill"], a6 = { key: 7 }, s6 = ["x", "y", "height", "width", "fill", "onMouseenter"], o6 = ["onClick"], l6 = ["innerHTML"], c6 = ["innerHTML"], f6 = { class: "vue-ui-xy-table" }, u6 = /* @__PURE__ */ AU(() => /* @__PURE__ */ CA("th", null, null, -1)), h6 = { style: { "max-width": "200px", margin: "0 auto" } }, d6 = ["onMouseover"];
30348
30343
  function g6(A, e, t, r, n, i) {
30349
30344
  return fA(), uA("div", {
30350
30345
  class: "vue-ui-xy",
@@ -30691,14 +30686,21 @@ function g6(A, e, t, r, n, i) {
30691
30686
  ]))), 128))
30692
30687
  ])) : ce("", !0),
30693
30688
  CA("g", null, [
30694
- i.chartConfig.chart.grid.labels.axis.yLabel ? (fA(), uA("text", YU, DA(i.chartConfig.chart.grid.labels.axis.yLabel), 1)) : ce("", !0),
30689
+ i.chartConfig.chart.grid.labels.axis.yLabel ? (fA(), uA("text", {
30690
+ key: 0,
30691
+ "font-size": i.chartConfig.chart.grid.labels.axis.fontSize,
30692
+ fill: i.chartConfig.chart.grid.labels.color,
30693
+ id: "yAxisLabel",
30694
+ "text-anchor": "middle",
30695
+ style: { transition: "none" }
30696
+ }, DA(i.chartConfig.chart.grid.labels.axis.yLabel), 9, YU)) : ce("", !0),
30695
30697
  i.chartConfig.chart.grid.labels.axis.xLabel ? (fA(), uA("text", {
30696
30698
  key: 1,
30697
30699
  "text-anchor": "middle",
30698
30700
  x: i.chartConfig.chart.width / 2,
30699
30701
  y: i.drawingArea.bottom + i.chartConfig.chart.grid.labels.axis.fontSize + i.chartConfig.chart.grid.labels.xAxisLabels.fontSize * 1.3,
30700
30702
  "font-size": i.chartConfig.chart.grid.labels.axis.fontSize,
30701
- fill: i.chartConfig.chart.grid.labels.xAxisLabels.color
30703
+ fill: i.chartConfig.chart.grid.labels.color
30702
30704
  }, DA(i.chartConfig.chart.grid.labels.axis.xLabel), 9, JU)) : ce("", !0)
30703
30705
  ]),
30704
30706
  i.chartConfig.chart.title.show && n.mutableConfig.titleInside && !n.isPrinting ? (fA(), uA("g", ZU, [
@@ -30758,7 +30760,8 @@ function g6(A, e, t, r, n, i) {
30758
30760
  "text-anchor": "middle",
30759
30761
  y: i.drawingArea.bottom + i.chartConfig.chart.grid.labels.xAxisLabels.fontSize * 1.3,
30760
30762
  x: i.drawingArea.left + i.drawingArea.width / i.maxSeries * s + i.drawingArea.width / i.maxSeries / 2,
30761
- "font-size": i.chartConfig.chart.grid.labels.xAxisLabels.fontSize
30763
+ "font-size": i.chartConfig.chart.grid.labels.xAxisLabels.fontSize,
30764
+ fill: i.chartConfig.chart.grid.labels.xAxisLabels.color
30762
30765
  }, DA(i.chartConfig.chart.grid.labels.xAxisLabels.values[s] || ""), 9, i6))), 128))
30763
30766
  ])) : ce("", !0),
30764
30767
  i.chartConfig.chart.tooltip.show ? (fA(), uA("g", a6, [
@@ -30840,7 +30843,7 @@ function g6(A, e, t, r, n, i) {
30840
30843
  ], 2)) : ce("", !0)
30841
30844
  ], 4);
30842
30845
  }
30843
- const X8 = /* @__PURE__ */ nw($S, [["render", g6], ["__scopeId", "data-v-ffbe03fd"]]);
30846
+ const X8 = /* @__PURE__ */ nw($S, [["render", g6], ["__scopeId", "data-v-43e19d7c"]]);
30844
30847
  const p6 = {
30845
30848
  name: "vue-ui-table",
30846
30849
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as Ha } from "./index-b2a3a2fa.js";
1
+ import { _ as Ha } from "./index-aa7273f3.js";
2
2
  import "vue";
3
3
  var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Vo(a) {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .vue-ui-xy *[data-v-ffbe03fd]{transition:unset}.vue-ui-xy[data-v-ffbe03fd]{position:relative}.vue-ui-xy-user-options[data-v-ffbe03fd]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;max-width:300px;background:inherit;color:#000}.vue-ui-xy-user-options[open][data-v-ffbe03fd]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-xy-user-options summary[data-v-ffbe03fd]{text-align:right;direction:rtl}.vue-ui-xy-user-options-items[data-v-ffbe03fd]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-xy-user-options-item[data-v-ffbe03fd]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-xy-legend[data-v-ffbe03fd]{align-items:center;column-gap:24px;display:flex;flex-wrap:wrap;justify-content:center;-webkit-user-select:none;user-select:none;width:100%}.vue-ui-xy-legend-item[data-v-ffbe03fd]{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}.vue-ui-xy-legend-item-segregated[data-v-ffbe03fd]{opacity:.5}.vue-ui-xy-title[data-v-ffbe03fd]{align-items:center;display:flex;flex-direction:column;justify-content:center;width:100%}.vue-ui-xy svg rect[data-v-ffbe03fd]{transition:all .11s ease-in-out}.vue-ui-xy-tooltip[data-v-ffbe03fd]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;z-index:1}.vue-ui-xy-table-wrapper[data-v-ffbe03fd]{width:100%;max-height:300px;overflow:auto;margin-top:24px;position:relative}.vue-ui-xy-table-wrapper-printing[data-v-ffbe03fd]{max-height:unset;height:fit-content}.vue-ui-xy-table[data-v-ffbe03fd]{width:100%;border-collapse:collapse}.vue-ui-xy-table td[data-v-ffbe03fd]{border:1px solid #e1e5e8;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-xy-table th[data-v-ffbe03fd]{border:1px solid #e1e5e8;background:#fafafa;position:sticky;top:0;font-weight:400;outline:1px solid #e1e5e8;-webkit-user-select:none;user-select:none}.vue-ui-xy-table-tr-selected[data-v-ffbe03fd]{background:#e1e5e8}.vue-ui-xy-button[data-v-ffbe03fd]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-xy-button[data-v-ffbe03fd]:hover{background:rgba(0,0,0,.05)}.vue-ui-xy-print-icon[data-v-ffbe03fd]{animation:smartspin-ffbe03fd .5s infinite linear}@keyframes smartspin-ffbe03fd{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.smart-table-main[data-v-cfc38e10]{height:fit-content;padding:0 0 98px;position:relative}.smart-table__wrapper[data-v-cfc38e10]{color:#2d353c;overflow-x:auto;padding:0 12px 48px;position:relative;width:calc(100% - 24px)}thead[data-v-cfc38e10]{position:sticky;top:0}.smart-table[data-v-cfc38e10]{width:100%;position:relative}table[data-v-cfc38e10]{border-collapse:collapse}th[data-v-cfc38e10]{background-color:#e1e5e8;outline:1px solid white;background:radial-gradient(at top left,#cdd1d4,#e1e5e8)}th[data-v-cfc38e10],td[data-v-cfc38e10]{padding:3px 8px}tr[data-v-cfc38e10]:nth-child(even){background-color:#f3f5f7}tr td[data-v-cfc38e10]{outline:1px solid white}.th-numeric[data-v-cfc38e10]{text-align:right;font-variant-numeric:tabular-nums}.th-filter[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;position:relative}.th-fusion[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top left,#cdd1d4,#e1e5e8);display:flex;height:83px;justify-content:center;left:0;outline:1px solid white;position:absolute;top:0;width:100%;z-index:10}button[data-v-cfc38e10]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}input[data-v-cfc38e10]{padding:0 6px;font-family:Satoshi}button[data-v-cfc38e10],input[data-v-cfc38e10]{border-radius:6px;border:1px solid grey;height:32px}button[data-v-cfc38e10]:hover,button[data-v-cfc38e10]:focus,input[data-v-cfc38e10]:hover,input[data-v-cfc38e10]:focus{outline:3px solid rgba(128,128,128,.432)}button.clicked[data-v-cfc38e10]{animation:clicked-cfc38e10 .15s ease-in-out}button[disabled][data-v-cfc38e10]{cursor:not-allowed}button[disabled][data-v-cfc38e10]:focus,button[disabled][data-v-cfc38e10]:hover{outline:none}button.th-reset[data-v-cfc38e10]:not(:disabled){background:radial-gradient(at top,#f19a71,#F17171);border:1px solid #F17171;color:#fff}button.th-reset[data-v-cfc38e10]:not(:disabled):hover,button.th-reset[data-v-cfc38e10]:not(:disabled):focus{outline:3px solid #f171717e}[data-is-open=false][data-v-cfc38e10]{transform:scale(0)}.th-dropdown[data-is-open=true][data-v-cfc38e10]{animation:open-dropdown-cfc38e10 .2s ease-in}.th-dropdown[data-is-open=false][data-v-cfc38e10]{animation:close-dropdown-cfc38e10 .2s ease-in}.th-dropdown[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top left,#d2d7db,#e1e5e8);border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;display:flex;flex-direction:column;justify-content:flex-start;left:0;max-width:300px;min-width:150px;padding:24px 12px 12px;position:absolute;top:calc(100% + 12px)}.th-option[data-v-cfc38e10]{border-radius:6px;cursor:pointer;padding:2px 6px;text-align:left;-webkit-user-select:none;user-select:none;width:100%;font-weight:400}.th-option[data-v-cfc38e10]:hover{background-color:#fafafa;box-shadow:0 3px 6px -3px #00000080;z-index:1}.th-icon-green[data-v-cfc38e10]{text-shadow:0 2px 4px rgba(0,128,0,.486)}.th-icon-red[data-v-cfc38e10]{text-shadow:0 2px 4px rgba(255,0,0,.486)}button.close-dropdown[data-v-cfc38e10],button.close-chart-modal[data-v-cfc38e10]{align-items:center;background:transparent;border-radius:50%;border:none;color:#2d353c;display:flex;height:20px;padding:2px;position:absolute;right:6px;top:6px;width:20px}button.close-dropdown[data-v-cfc38e10]:hover,button.close-dropdown[data-v-cfc38e10]:focus,button.close-chart-modal[data-v-cfc38e10]:hover,button.close-char-modal[data-v-cfc38e10]:focus{outline:3px solid #2d353c71}.th-button-active[data-v-cfc38e10]{background:radial-gradient(at top,#968bf1,#6376DD);color:#fff}.th-button-active[data-v-cfc38e10]:hover,.th-button-active[data-v-cfc38e10]:focus{outline:3px solid #6375dd7a}.th-date[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.date-wrapper--inputs[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center;width:100%}.date-wrapper--button[data-v-cfc38e10]{display:flex;gap:3px}input[type=date][data-v-cfc38e10]{border-radius:4px;font-size:12px;font-variant-numeric:tabular-nums;height:20px!important;width:100px}.date-fieldset[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.date-fieldset label[data-v-cfc38e10]{font-size:12px;font-weight:400}@keyframes clicked-cfc38e10{0%{transform:scale(.9)}90%{transform:scale(1.03)}to{transform:scale(1)}}td.td-numeric[data-v-cfc38e10]{cursor:pointer}td.smart-td-selected-neighbor[data-v-cfc38e10]{background:radial-gradient(at top left,#82ecc41e,#63dd821e)}td.smart-td-selected[data-v-cfc38e10]{background:radial-gradient(at top left,#9986ec5b,#6375dd5b)}td.smart-td-selected-first[data-v-cfc38e10]{box-shadow:3px 0 #6376dd inset}td.smart-td-selected-last[data-v-cfc38e10]{box-shadow:-3px 0 #6376dd inset}.td-selector-info[data-v-cfc38e10]{align-items:center;background:linear-gradient(to right,transparent,#e1e5e8);border-radius:0 0 6px 6px;bottom:76px;display:flex;font-size:14px;justify-content:flex-end;min-height:20px;padding:2px 4px 2px 2px;position:absolute;right:0;text-align:right;width:100%;z-index:1}.td-selector-info--active[data-v-cfc38e10]{background:linear-gradient(to right,transparent,#6375dd4f)}button.td-selector-info-reset[data-v-cfc38e10]{background:transparent;border:none;color:#f17171;height:14px;margin-left:24px;padding:0;width:14px}button.td-selector-info-reset[data-v-cfc38e10]:hover,button.td-selector-info-reset[data-v-cfc38e10]:focus{outline:3px solid #f171717e}.format-num[data-v-cfc38e10]{font-variant-numeric:tabular-nums}.td-selector-icon[data-v-cfc38e10]{margin-bottom:-5px;margin-right:6px}.smart-table-pagination[data-v-cfc38e10]{align-items:center;bottom:24px;display:flex;flex-direction:row;gap:12px;height:40px;justify-content:center;position:absolute;width:100%;z-index:1}button.smart-table-navigation[data-v-cfc38e10]{height:36px;padding:1px;width:36px}.smart-table-navigation-indicator[data-v-cfc38e10]{background:linear-gradient(to right,#6375dd88,#6376DD);border-radius:6px;bottom:70px;height:6px;position:absolute;transition:all .1s ease-in-out}.smart-table-page-scroller-wrapper[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:column;justify-content:center}input.smart-table-page-scroller[data-v-cfc38e10]{cursor:pointer;height:24px;padding:0}.smart-table-paginator[data-v-cfc38e10]{position:absolute;bottom:0;z-index:2;left:12px;display:flex;flex-direction:row;gap:6px;font-size:14px;justify-content:center;align-items:center;width:calc(100% - 24px)}.smart-table-paginator select[data-v-cfc38e10]{border-radius:3px}.smart-table-size-warning[data-v-cfc38e10]{align-items:center;bottom:-24px;color:#f17171;display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:6px;justify-content:center;position:absolute;text-align:center;width:100%}th.smart-table-col-selector[data-v-cfc38e10]{height:12px;background:#e1e5e8}.col-selector[data-v-cfc38e10]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;width:100%}th.col-selector--selected[data-v-cfc38e10]{background:radial-gradient(at top left,#9586eb,#6376DD);color:#fff}th.col-selector--selected div[data-v-cfc38e10]{background:transparent;color:#fff}.smart-table-chart-modal[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top left,#e1e5e8,#eceef0);border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #0000004d;display:flex;flex-direction:column;justify-content:center;min-height:200px;min-width:300px;max-width:800px;overflow:hidden;padding:12px;position:fixed;resize:horizontal;-webkit-user-select:none;user-select:none;z-index:10000}.smart-table-chart-svg[data-v-cfc38e10]{background:white;border-radius:6px;margin-bottom:12px;overflow:visible;padding:12px;width:calc(100% - 24px);box-shadow:0 2px 4px -2px #80808099}.smart-table-donut-chart[data-v-cfc38e10]{background:white;border-radius:6px;box-shadow:0 2px 4px -2px #80808099}th.invisible-cell[data-v-cfc38e10]{background:white;border-right:2px solid white}td.smart-table-td-iteration[data-v-cfc38e10]{background:#E1E5E8;font-size:12px;font-variant-numeric:tabular-nums;text-align:right;-webkit-user-select:none;user-select:none}.chart-trend[data-v-cfc38e10]{color:gray;font-size:12px;padding-left:12px}.chart-modal-options[data-v-cfc38e10]{bottom:12px;display:flex;flex-direction:row;gap:8px;position:absolute;right:24px}.chart-modal-options button[data-v-cfc38e10]{height:24px;padding:3px;width:24px}.chart-modal-options button.is-active-chart[data-v-cfc38e10]{background:radial-gradient(at top,#968bf1,#6376DD);border:1px solid #6376DD;color:#fff}.th-range-filter[data-v-cfc38e10]{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column}.th-range-filter input[data-v-cfc38e10]{height:20px;width:60px;font-variant-numeric:tabular-nums;font-size:12px}.th-range-filter label[data-v-cfc38e10]{font-size:12px;font-weight:400;margin-bottom:-3px}.smart-table-fieldset-wrapper[data-v-cfc38e10]{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px;margin-bottom:12px}.smart-table-fieldset[data-v-cfc38e10]{border-radius:6px;margin-bottom:24px;border:1px solid white}.smart-table-fieldset legend[data-v-cfc38e10]{color:gray}.smart-table-fieldset-option[data-v-cfc38e10]{display:flex;align-items:center}.smart-table-fieldset-option input[data-v-cfc38e10]{height:14px;width:14px;border-radius:50%}button.smart-table-generate-donut[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top,#968bf1,#6376DD);color:#fff;display:flex;gap:3px;justify-content:center;margin:24px auto 12px;padding-left:12px;padding-right:12px;width:fit-content}input[type=radio][data-v-cfc38e10],input[type=range][data-v-cfc38e10]{accent-color:#6376DD}button.smart-table-generate-donut[disabled][data-v-cfc38e10]{opacity:.5}.smart-table-donut-legend[data-v-cfc38e10]{align-items:center;column-gap:12px;display:flex;flex-wrap:wrap;font-size:12px;justify-content:center;margin:0 auto;max-width:400px;padding-bottom:36px}.smart-table-donut-legend-item[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:3px;justify-content:center}.smart-table-donut-label[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:column;font-size:4px;height:100%;justify-content:center;text-align:center;width:100%}.smart-table-donut-label-name[data-v-cfc38e10]{font-size:3px;line-height:3px}td[data-v-cfc38e10]:focus{outline:3px solid #202d7470}.smart-table-export-hub[data-v-cfc38e10]{left:5px;position:absolute;top:0;z-index:1001}.smart-table-export-hub-dropdown[data-v-cfc38e10]{position:absolute;top:40px;left:0;padding:24px;background:radial-gradient(at top left,#d2d7db,#e1e5e8);border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;transform:scale(0);opacity:0}.smart-table-export-hub-dropdown[data-is-open=true][data-v-cfc38e10]{animation:open-dropdown-cfc38e10 .2s ease-in forwards}.smart-table-export-hub-dropdown[data-is-open=false][data-v-cfc38e10]{animation:close-dropdown-cfc38e10 .2s ease-in}.smart-table-export-hub-options[data-v-cfc38e10]{margin-top:12px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}.smart-table-export-hub-options button[data-v-cfc38e10]{width:fit-content;display:flex;align-items:center;justify-content:center;gap:3px;min-width:130px}.smart-table-export-hub-option-wrapper[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start}.smart-table-export-hub-option-wrapper .label[data-v-cfc38e10]{font-size:12px;line-height:12px;margin-bottom:6px;width:100px}.td-nan[data-v-cfc38e10]{background:#F17171}.td-has-nan[data-v-cfc38e10],.th-has-nan[data-v-cfc38e10]{background:#F17171;min-width:100px;color:#fff}@keyframes open-dropdown-cfc38e10{0%{transform:scaleY(.9);opacity:0}50%{transform:scaleY(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes close-dropdown-cfc38e10{0%{transform:scale(1.05);opacity:1}to{transform:scale(0);opacity:0}}
1
+ .vue-ui-xy *[data-v-43e19d7c]{transition:unset}.vue-ui-xy[data-v-43e19d7c]{position:relative}.vue-ui-xy-user-options[data-v-43e19d7c]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;max-width:300px;background:inherit;color:#000}.vue-ui-xy-user-options[open][data-v-43e19d7c]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-xy-user-options summary[data-v-43e19d7c]{text-align:right;direction:rtl}.vue-ui-xy-user-options-items[data-v-43e19d7c]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-xy-user-options-item[data-v-43e19d7c]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-xy-legend[data-v-43e19d7c]{align-items:center;column-gap:24px;display:flex;flex-wrap:wrap;justify-content:center;-webkit-user-select:none;user-select:none;width:100%}.vue-ui-xy-legend-item[data-v-43e19d7c]{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}.vue-ui-xy-legend-item-segregated[data-v-43e19d7c]{opacity:.5}.vue-ui-xy-title[data-v-43e19d7c]{align-items:center;display:flex;flex-direction:column;justify-content:center;width:100%}.vue-ui-xy svg rect[data-v-43e19d7c]{transition:all .11s ease-in-out}.vue-ui-xy-tooltip[data-v-43e19d7c]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;z-index:1}.vue-ui-xy-table-wrapper[data-v-43e19d7c]{width:100%;max-height:300px;overflow:auto;margin-top:24px;position:relative}.vue-ui-xy-table-wrapper-printing[data-v-43e19d7c]{max-height:unset;height:fit-content}.vue-ui-xy-table[data-v-43e19d7c]{width:100%;border-collapse:collapse}.vue-ui-xy-table td[data-v-43e19d7c]{border:1px solid #e1e5e8;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-xy-table th[data-v-43e19d7c]{border:1px solid #e1e5e8;background:#fafafa;position:sticky;top:0;font-weight:400;outline:1px solid #e1e5e8;-webkit-user-select:none;user-select:none}.vue-ui-xy-table-tr-selected[data-v-43e19d7c]{background:#e1e5e8}.vue-ui-xy-button[data-v-43e19d7c]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-xy-button[data-v-43e19d7c]:hover{background:rgba(0,0,0,.05)}.vue-ui-xy-print-icon[data-v-43e19d7c]{animation:smartspin-43e19d7c .5s infinite linear}@keyframes smartspin-43e19d7c{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.smart-table-main[data-v-cfc38e10]{height:fit-content;padding:0 0 98px;position:relative}.smart-table__wrapper[data-v-cfc38e10]{color:#2d353c;overflow-x:auto;padding:0 12px 48px;position:relative;width:calc(100% - 24px)}thead[data-v-cfc38e10]{position:sticky;top:0}.smart-table[data-v-cfc38e10]{width:100%;position:relative}table[data-v-cfc38e10]{border-collapse:collapse}th[data-v-cfc38e10]{background-color:#e1e5e8;outline:1px solid white;background:radial-gradient(at top left,#cdd1d4,#e1e5e8)}th[data-v-cfc38e10],td[data-v-cfc38e10]{padding:3px 8px}tr[data-v-cfc38e10]:nth-child(even){background-color:#f3f5f7}tr td[data-v-cfc38e10]{outline:1px solid white}.th-numeric[data-v-cfc38e10]{text-align:right;font-variant-numeric:tabular-nums}.th-filter[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;position:relative}.th-fusion[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top left,#cdd1d4,#e1e5e8);display:flex;height:83px;justify-content:center;left:0;outline:1px solid white;position:absolute;top:0;width:100%;z-index:10}button[data-v-cfc38e10]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}input[data-v-cfc38e10]{padding:0 6px;font-family:Satoshi}button[data-v-cfc38e10],input[data-v-cfc38e10]{border-radius:6px;border:1px solid grey;height:32px}button[data-v-cfc38e10]:hover,button[data-v-cfc38e10]:focus,input[data-v-cfc38e10]:hover,input[data-v-cfc38e10]:focus{outline:3px solid rgba(128,128,128,.432)}button.clicked[data-v-cfc38e10]{animation:clicked-cfc38e10 .15s ease-in-out}button[disabled][data-v-cfc38e10]{cursor:not-allowed}button[disabled][data-v-cfc38e10]:focus,button[disabled][data-v-cfc38e10]:hover{outline:none}button.th-reset[data-v-cfc38e10]:not(:disabled){background:radial-gradient(at top,#f19a71,#F17171);border:1px solid #F17171;color:#fff}button.th-reset[data-v-cfc38e10]:not(:disabled):hover,button.th-reset[data-v-cfc38e10]:not(:disabled):focus{outline:3px solid #f171717e}[data-is-open=false][data-v-cfc38e10]{transform:scale(0)}.th-dropdown[data-is-open=true][data-v-cfc38e10]{animation:open-dropdown-cfc38e10 .2s ease-in}.th-dropdown[data-is-open=false][data-v-cfc38e10]{animation:close-dropdown-cfc38e10 .2s ease-in}.th-dropdown[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top left,#d2d7db,#e1e5e8);border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;display:flex;flex-direction:column;justify-content:flex-start;left:0;max-width:300px;min-width:150px;padding:24px 12px 12px;position:absolute;top:calc(100% + 12px)}.th-option[data-v-cfc38e10]{border-radius:6px;cursor:pointer;padding:2px 6px;text-align:left;-webkit-user-select:none;user-select:none;width:100%;font-weight:400}.th-option[data-v-cfc38e10]:hover{background-color:#fafafa;box-shadow:0 3px 6px -3px #00000080;z-index:1}.th-icon-green[data-v-cfc38e10]{text-shadow:0 2px 4px rgba(0,128,0,.486)}.th-icon-red[data-v-cfc38e10]{text-shadow:0 2px 4px rgba(255,0,0,.486)}button.close-dropdown[data-v-cfc38e10],button.close-chart-modal[data-v-cfc38e10]{align-items:center;background:transparent;border-radius:50%;border:none;color:#2d353c;display:flex;height:20px;padding:2px;position:absolute;right:6px;top:6px;width:20px}button.close-dropdown[data-v-cfc38e10]:hover,button.close-dropdown[data-v-cfc38e10]:focus,button.close-chart-modal[data-v-cfc38e10]:hover,button.close-char-modal[data-v-cfc38e10]:focus{outline:3px solid #2d353c71}.th-button-active[data-v-cfc38e10]{background:radial-gradient(at top,#968bf1,#6376DD);color:#fff}.th-button-active[data-v-cfc38e10]:hover,.th-button-active[data-v-cfc38e10]:focus{outline:3px solid #6375dd7a}.th-date[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.date-wrapper--inputs[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center;width:100%}.date-wrapper--button[data-v-cfc38e10]{display:flex;gap:3px}input[type=date][data-v-cfc38e10]{border-radius:4px;font-size:12px;font-variant-numeric:tabular-nums;height:20px!important;width:100px}.date-fieldset[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.date-fieldset label[data-v-cfc38e10]{font-size:12px;font-weight:400}@keyframes clicked-cfc38e10{0%{transform:scale(.9)}90%{transform:scale(1.03)}to{transform:scale(1)}}td.td-numeric[data-v-cfc38e10]{cursor:pointer}td.smart-td-selected-neighbor[data-v-cfc38e10]{background:radial-gradient(at top left,#82ecc41e,#63dd821e)}td.smart-td-selected[data-v-cfc38e10]{background:radial-gradient(at top left,#9986ec5b,#6375dd5b)}td.smart-td-selected-first[data-v-cfc38e10]{box-shadow:3px 0 #6376dd inset}td.smart-td-selected-last[data-v-cfc38e10]{box-shadow:-3px 0 #6376dd inset}.td-selector-info[data-v-cfc38e10]{align-items:center;background:linear-gradient(to right,transparent,#e1e5e8);border-radius:0 0 6px 6px;bottom:76px;display:flex;font-size:14px;justify-content:flex-end;min-height:20px;padding:2px 4px 2px 2px;position:absolute;right:0;text-align:right;width:100%;z-index:1}.td-selector-info--active[data-v-cfc38e10]{background:linear-gradient(to right,transparent,#6375dd4f)}button.td-selector-info-reset[data-v-cfc38e10]{background:transparent;border:none;color:#f17171;height:14px;margin-left:24px;padding:0;width:14px}button.td-selector-info-reset[data-v-cfc38e10]:hover,button.td-selector-info-reset[data-v-cfc38e10]:focus{outline:3px solid #f171717e}.format-num[data-v-cfc38e10]{font-variant-numeric:tabular-nums}.td-selector-icon[data-v-cfc38e10]{margin-bottom:-5px;margin-right:6px}.smart-table-pagination[data-v-cfc38e10]{align-items:center;bottom:24px;display:flex;flex-direction:row;gap:12px;height:40px;justify-content:center;position:absolute;width:100%;z-index:1}button.smart-table-navigation[data-v-cfc38e10]{height:36px;padding:1px;width:36px}.smart-table-navigation-indicator[data-v-cfc38e10]{background:linear-gradient(to right,#6375dd88,#6376DD);border-radius:6px;bottom:70px;height:6px;position:absolute;transition:all .1s ease-in-out}.smart-table-page-scroller-wrapper[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:column;justify-content:center}input.smart-table-page-scroller[data-v-cfc38e10]{cursor:pointer;height:24px;padding:0}.smart-table-paginator[data-v-cfc38e10]{position:absolute;bottom:0;z-index:2;left:12px;display:flex;flex-direction:row;gap:6px;font-size:14px;justify-content:center;align-items:center;width:calc(100% - 24px)}.smart-table-paginator select[data-v-cfc38e10]{border-radius:3px}.smart-table-size-warning[data-v-cfc38e10]{align-items:center;bottom:-24px;color:#f17171;display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:6px;justify-content:center;position:absolute;text-align:center;width:100%}th.smart-table-col-selector[data-v-cfc38e10]{height:12px;background:#e1e5e8}.col-selector[data-v-cfc38e10]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;width:100%}th.col-selector--selected[data-v-cfc38e10]{background:radial-gradient(at top left,#9586eb,#6376DD);color:#fff}th.col-selector--selected div[data-v-cfc38e10]{background:transparent;color:#fff}.smart-table-chart-modal[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top left,#e1e5e8,#eceef0);border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #0000004d;display:flex;flex-direction:column;justify-content:center;min-height:200px;min-width:300px;max-width:800px;overflow:hidden;padding:12px;position:fixed;resize:horizontal;-webkit-user-select:none;user-select:none;z-index:10000}.smart-table-chart-svg[data-v-cfc38e10]{background:white;border-radius:6px;margin-bottom:12px;overflow:visible;padding:12px;width:calc(100% - 24px);box-shadow:0 2px 4px -2px #80808099}.smart-table-donut-chart[data-v-cfc38e10]{background:white;border-radius:6px;box-shadow:0 2px 4px -2px #80808099}th.invisible-cell[data-v-cfc38e10]{background:white;border-right:2px solid white}td.smart-table-td-iteration[data-v-cfc38e10]{background:#E1E5E8;font-size:12px;font-variant-numeric:tabular-nums;text-align:right;-webkit-user-select:none;user-select:none}.chart-trend[data-v-cfc38e10]{color:gray;font-size:12px;padding-left:12px}.chart-modal-options[data-v-cfc38e10]{bottom:12px;display:flex;flex-direction:row;gap:8px;position:absolute;right:24px}.chart-modal-options button[data-v-cfc38e10]{height:24px;padding:3px;width:24px}.chart-modal-options button.is-active-chart[data-v-cfc38e10]{background:radial-gradient(at top,#968bf1,#6376DD);border:1px solid #6376DD;color:#fff}.th-range-filter[data-v-cfc38e10]{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column}.th-range-filter input[data-v-cfc38e10]{height:20px;width:60px;font-variant-numeric:tabular-nums;font-size:12px}.th-range-filter label[data-v-cfc38e10]{font-size:12px;font-weight:400;margin-bottom:-3px}.smart-table-fieldset-wrapper[data-v-cfc38e10]{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px;margin-bottom:12px}.smart-table-fieldset[data-v-cfc38e10]{border-radius:6px;margin-bottom:24px;border:1px solid white}.smart-table-fieldset legend[data-v-cfc38e10]{color:gray}.smart-table-fieldset-option[data-v-cfc38e10]{display:flex;align-items:center}.smart-table-fieldset-option input[data-v-cfc38e10]{height:14px;width:14px;border-radius:50%}button.smart-table-generate-donut[data-v-cfc38e10]{align-items:center;background:radial-gradient(at top,#968bf1,#6376DD);color:#fff;display:flex;gap:3px;justify-content:center;margin:24px auto 12px;padding-left:12px;padding-right:12px;width:fit-content}input[type=radio][data-v-cfc38e10],input[type=range][data-v-cfc38e10]{accent-color:#6376DD}button.smart-table-generate-donut[disabled][data-v-cfc38e10]{opacity:.5}.smart-table-donut-legend[data-v-cfc38e10]{align-items:center;column-gap:12px;display:flex;flex-wrap:wrap;font-size:12px;justify-content:center;margin:0 auto;max-width:400px;padding-bottom:36px}.smart-table-donut-legend-item[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:3px;justify-content:center}.smart-table-donut-label[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:column;font-size:4px;height:100%;justify-content:center;text-align:center;width:100%}.smart-table-donut-label-name[data-v-cfc38e10]{font-size:3px;line-height:3px}td[data-v-cfc38e10]:focus{outline:3px solid #202d7470}.smart-table-export-hub[data-v-cfc38e10]{left:5px;position:absolute;top:0;z-index:1001}.smart-table-export-hub-dropdown[data-v-cfc38e10]{position:absolute;top:40px;left:0;padding:24px;background:radial-gradient(at top left,#d2d7db,#e1e5e8);border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;transform:scale(0);opacity:0}.smart-table-export-hub-dropdown[data-is-open=true][data-v-cfc38e10]{animation:open-dropdown-cfc38e10 .2s ease-in forwards}.smart-table-export-hub-dropdown[data-is-open=false][data-v-cfc38e10]{animation:close-dropdown-cfc38e10 .2s ease-in}.smart-table-export-hub-options[data-v-cfc38e10]{margin-top:12px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}.smart-table-export-hub-options button[data-v-cfc38e10]{width:fit-content;display:flex;align-items:center;justify-content:center;gap:3px;min-width:130px}.smart-table-export-hub-option-wrapper[data-v-cfc38e10]{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start}.smart-table-export-hub-option-wrapper .label[data-v-cfc38e10]{font-size:12px;line-height:12px;margin-bottom:6px;width:100px}.td-nan[data-v-cfc38e10]{background:#F17171}.td-has-nan[data-v-cfc38e10],.th-has-nan[data-v-cfc38e10]{background:#F17171;min-width:100px;color:#fff}@keyframes open-dropdown-cfc38e10{0%{transform:scaleY(.9);opacity:0}50%{transform:scaleY(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes close-dropdown-cfc38e10{0%{transform:scale(1.05);opacity:1}to{transform:scale(0);opacity:0}}
@@ -1,4 +1,4 @@
1
- import { a as o, v as r } from "./index-b2a3a2fa.js";
1
+ import { a as o, v as r } from "./index-aa7273f3.js";
2
2
  import "vue";
3
3
  export {
4
4
  o as VueUiTable,
@@ -357,7 +357,7 @@ end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a
357
357
  `,o=s.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",h=[];A.dense=Array.isArray(t);for(var d=A.skipHidden&&t["!cols"]||[],u=A.skipHidden&&t["!rows"]||[],w=n.s.c;w<=n.e.c;++w)(d[w]||{}).hidden||(h[w]=UA(w));for(var v=0,x=n.s.r;x<=n.e.r;++x)(u[x]||{}).hidden||(c=uk(t,n,x,h,a,o,i,A),c!=null&&(A.strip&&(c=c.replace(l,"")),(c||A.blankrows!==!1)&&r.push((v++?s:"")+c)));return delete A.dense,r.join("")}function P5(t,e){e||(e={}),e.FS=" ",e.RS=`
358
358
  `;var r=wd(t,e);return r}function hk(t){var e="",r,A="";if(t==null||t["!ref"]==null)return[];var n=wr(t["!ref"]),i="",a=[],s,o=[],l=Array.isArray(t);for(s=n.s.c;s<=n.e.c;++s)a[s]=UA(s);for(var c=n.s.r;c<=n.e.r;++c)for(i=mA(c),s=n.s.c;s<=n.e.c;++s)if(e=a[s]+i,r=l?(t[c]||[])[s]:t[e],A="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;A=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)A=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)A=""+r.v;else if(r.t=="b")A=r.v?"TRUE":"FALSE";else if(r.w!==void 0)A="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?A="'"+r.v:A=""+r.v}}o[o.length]=e+"="+A}return o}function R5(t,e,r){var A=r||{},n=+!A.skipHeader,i=t||{},a=0,s=0;if(i&&A.origin!=null)if(typeof A.origin=="number")a=A.origin;else{var o=typeof A.origin=="string"?sA(A.origin):A.origin;a=o.r,s=o.c}var l,c={s:{c:0,r:0},e:{c:s,r:a+e.length-1+n}};if(i["!ref"]){var h=wr(i["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),a==-1&&(a=h.e.r+1,c.e.r=a+e.length-1+n)}else a==-1&&(a=0,c.e.r=e.length-1+n);var d=A.header||[],u=0;e.forEach(function(v,x){pA(v).forEach(function(y){(u=d.indexOf(y))==-1&&(d[u=d.length]=y);var E=v[y],F="z",k="",X=tr({c:s+u,r:a+x+n});l=$l(i,X),E&&typeof E=="object"&&!(E instanceof Date)?i[X]=E:(typeof E=="number"?F="n":typeof E=="boolean"?F="b":typeof E=="string"?F="s":E instanceof Date?(F="d",A.cellDates||(F="n",E=YA(E)),k=A.dateNF||Sr[14]):E===null&&A.nullError&&(F="e",E=0),l?(l.t=F,l.v=E,delete l.w,delete l.R,k&&(l.z=k)):i[X]=l={t:F,v:E},k&&(l.z=k))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var w=mA(a);if(n)for(u=0;u<d.length;++u)i[UA(u+s)+w]={t:"s",v:d[u]};return i["!ref"]=jr(c),i}function dk(t,e){return R5(null,t,e)}function $l(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var A=sA(e);return t[A.r]||(t[A.r]=[]),t[A.r][A.c]||(t[A.r][A.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?$l(t,tr(e)):$l(t,tr({r:e,c:r||0}))}function gk(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function pk(){return{SheetNames:[],Sheets:{}}}function vk(t,e,r,A){var n=1;if(!r)for(;n<=65535&&t.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(A&&t.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var a=i&&i[1]||r;for(++n;n<=65535&&t.SheetNames.indexOf(r=a+n)!=-1;++n);}if(F5(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function mk(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var A=gk(t,e);switch(t.Workbook.Sheets[A]||(t.Workbook.Sheets[A]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[A].Hidden=r}function wk(t,e){return t.z=e,t}function M5(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function Bk(t,e,r){return M5(t,"#"+e,r)}function xk(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function yk(t,e,r,A){for(var n=typeof e!="string"?e:wr(e),i=typeof e=="string"?e:jr(e),a=n.s.r;a<=n.e.r;++a)for(var s=n.s.c;s<=n.e.c;++s){var o=$l(t,a,s);o.t="n",o.F=i,delete o.v,a==n.s.r&&s==n.s.c&&(o.f=r,A&&(o.D=!0))}return t}var Bo={encode_col:UA,encode_row:mA,encode_cell:tr,encode_range:jr,decode_col:ed,decode_row:Z1,split_cell:PI,decode_cell:sA,decode_range:un,format_cell:Hi,sheet_add_aoa:CB,sheet_add_json:R5,sheet_add_dom:I5,aoa_to_sheet:lo,json_to_sheet:dk,table_to_sheet:L5,table_to_book:zO,sheet_to_csv:wd,sheet_to_txt:P5,sheet_to_json:O0,sheet_to_html:U5,sheet_to_formulae:hk,sheet_to_row_object_array:O0,sheet_get_cell:$l,book_new:pk,book_append_sheet:vk,book_set_sheet_visibility:mk,cell_set_number_format:wk,cell_set_hyperlink:M5,cell_set_internal_link:Bk,cell_add_comment:xk,sheet_set_array_formula:yk,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const T$="",H5=(t,e)=>{const r=t.__vccOpts||t;for(const[A,n]of e)r[A]=n;return r},Ck={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`;return{useSafeValues:!0,defaultColors:["#6376DD","#FEB019","#00E396","#FF4560","#775DD0","#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800","#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B","#4ECDC4","#C7F464","#81D4FA","#546E7A","#FD6A6A"],defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#000000",height:300,width:500,padding:{top:36,right:12,bottom:12,left:48},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"black",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"black",show:!0,values:[],fontSize:6}}},labels:{fontSize:10},legend:{color:"black",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#000000",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"white",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},table:{rounding:0}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t}},computed:{chartConfig(){return Object.keys(this.config||{}).length?this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config}):this.defaultConfig},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.defaultColors[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.defaultColors[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,A)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*A*this.absoluteDataset.filter(n=>n.type==="bar").filter(n=>!this.segregatedSeries.includes(n.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[A]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){return Math.min(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.min(...t.series)))},maxSeries(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>t.series.length))},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=[...this.plotSet,...this.barSet,...this.lineSet].map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.chartConfig.chart.grid.labels.xAxisLabels.values.forEach((r,A)=>{const n=[r];this.plotSet.length&&this.plotSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.barSet.length&&this.barSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.lineSet.length&&this.lineSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),e.push(n)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(n=>({name:n.name,color:n.color,type:n.type,value:n.absoluteValues.find((i,a)=>a===this.selectedSerieIndex)}));let e="",r=t.map(n=>n.value).filter(n=>this.isSafeValue(n)&&n!==null).reduce((n,i)=>Math.abs(n)+Math.abs(i),0);const A=this.chartConfig.chart.grid.labels.xAxisLabels.values[this.selectedSerieIndex];return A&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${A}</div>`),t.forEach(n=>{this.isSafeValue(n.value)&&n.value!==null&&(e+=`<div><span style="color:${n.color}; margin-right: 3px">${this.icons[n.type]}</span>${n.name} : <b>${this.chartConfig.chart.tooltip.showValue?n.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(n.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,A=48;if(t&&e){const{width:n,height:i}=t.getBoundingClientRect(),a=e.getBoundingClientRect();this.clientPosition.x+n/2>a.right?r=-n:this.clientPosition.x-n/2<a.left?r=0:r=-n/2,this.clientPosition.y+i>a.bottom&&(A=-i-48)}return{top:this.clientPosition.y+A,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let n=5;n>0;n-=1){const i=t*n;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*n),value:i})}const r=this.closestDecimal(this.min/5),A=[];for(let n=5;n>=0;n-=1){const i=Math.abs(r)*n;A.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*n),value:-i})}return[...e,...A]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,A=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${A})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",A),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,A)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
359
359
  -----> The serie '${e.name}' contains the value '${r}' at index ${A}.
360
- '${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{treeShake({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(A=>{if(Object.hasOwn(e,A)){const n=e[A];typeof n=="boolean"?r[A]=n:["string","number"].includes(typeof n)?this.isValidUserValue(n)&&(r[A]=n):Array.isArray(r[A])?this.checkArray({userConfig:e,key:A})&&(r[A]=n):this.checkObj({userConfig:e,key:A})&&(r[A]=this.treeShake({defaultConfig:r[A],userConfig:n}))}}),r},calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let A;return t<0,A=Math.round(t/r)*r,A},convertColorToHex(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,i,a,s]=n;return`#${i}${a}${s}`}else if(n=t.match(r)){const[,i,a,s]=n;return`#${this.decimalToHex(i)}${this.decimalToHex(a)}${this.decimalToHex(s)}`}else if(n=t.match(A)){const[,i,a,s]=n,o=this.hslToRgb(Number(i),Number(a),Number(s));return`#${this.decimalToHex(o[0])}${this.decimalToHex(o[1])}${this.decimalToHex(o[2])}`}return null},decimalToHex(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e},hslToRgb(t,e,r){t/=360,e/=100,r/=100;let A,n,i;if(e===0)A=n=i=r;else{const a=(l,c,h)=>(h<0&&(h+=1),h>1&&(h-=1),h<.16666666666666666?l+(c-l)*6*h:h<.5?c:h<.6666666666666666?l+(c-l)*(.6666666666666666-h)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=a(o,s,t+1/3),n=a(o,s,t),i=a(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(i*255)]},ratioToMax(t){return t/this.absoluteMax},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}},shiftHue(t,e){const r=l=>({r:parseInt(l.substring(1,3),16),g:parseInt(l.substring(3,5),16),b:parseInt(l.substring(5,7),16)}),A=({r:l,g:c,b:h})=>{l/=255,c/=255,h/=255;const d=Math.max(l,c,h),u=Math.min(l,c,h);let w,v,x=(d+u)/2;if(d===u)w=v=0;else{const y=d-u;switch(v=x>.5?y/(2-d-u):y/(d+u),d){case l:w=(c-h)/y+(c<h?6:0);break;case c:w=(h-l)/y+2;break;case h:w=(l-c)/y+4;break}w/=6}return{h:w,s:v,l:x}},n=({h:l,s:c,l:h})=>{let d,u,w;if(c===0)d=u=w=h;else{const v=(E,F,k)=>(k<0&&(k+=1),k>1&&(k-=1),k<.16666666666666666?E+(F-E)*6*k:k<.5?F:k<.6666666666666666?E+(F-E)*(.6666666666666666-k)*6:E),x=h<.5?h*(1+c):h+c-h*c,y=2*h-x;d=v(y,x,l+.3333333333333333),u=v(y,x,l),w=v(y,x,l-.3333333333333333)}return{r:Math.round(d*255),g:Math.round(u*255),b:Math.round(w*255)}},i=r(t),a=A(i);a.h+=e,a.h=(a.h+1)%1;const s=n(a);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){const t=this.$refs.chart;t&&(this.isPrinting=!0,this.$nextTick(()=>{const e={height:851.89,width:595.28},r=new xt("","pt","a4");let A,n,i,a,s;Pm(t).then(o=>{A=o.width,n=o.height;let l=n;const c=A/e.width*e.height;let h=0;if(i=e.width,a=582.28/A*n,s=o.toDataURL("image/png",1),l<c)r.addImage(s,"PNG",33,24,i*.9,a*.9,"","FAST");else for(;l>0;)r.addImage(s,"PNG",33,h,i*.9,a*.9,"","FAST"),l-=c,h-=e.height-24,l>0&&r.addPage();r.save(`${this.chartConfig.chart.title.text||"vue-ui-xy"}.pdf`)}).finally(()=>{this.isPrinting=!1})}))},generateXls(){const t=["",...this.table.head.map(l=>l.label)],e=this.table.body,r=[t].concat(e);function A(l){let c=new ArrayBuffer(l.length),h=new Uint8Array(c);for(let d=0;d<l.length;d++)h[d]=l.charCodeAt(d)&255;return c}const n=Bo.book_new(),i=Bo.aoa_to_sheet(r);Bo.book_append_sheet(n,i,"Sheet1");const a=md(n,{bookType:"xlsx",type:"binary"}),s=new Blob([A(a)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=document.createElement("a");o.href=window.URL.createObjectURL(s),o.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,o.click(),window.URL.revokeObjectURL(o.href),this.isExportRequest=!1},checkArray({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length},checkObj({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"},isValidUserValue(t){return![null,void 0,NaN,1/0,-1/0].includes(t)},isSafeValue(t){return![void 0,NaN,1/0,-1/0].includes(t)},checkNaN(t,e=0){return isNaN(t)?e:t}}},Ek=t=>(p.pushScopeId("data-v-ffbe03fd"),t=t(),p.popScopeId(),t),bk={key:1,class:"vue-ui-xy-user-options","data-html2canvas-ignore":"",ref:"details"},Fk={style:{"`background":"${chartConfig.chart.background}",color:"${chartConfig.chart.color}`"}},Sk={class:"vue-ui-xy-user-options-items"},_k={class:"vue-ui-xy-user-option-item"},Tk={for:"vue-ui-xy-option-datalabels"},Uk={class:"vue-ui-xy-user-option-item"},Ik={for:"vue-ui-xy-option-title"},Lk={class:"vue-ui-xy-user-option-item"},Nk={for:"vue-ui-xy-option-legend"},Qk={class:"vue-ui-xy-user-option-item"},Ok={for:"vue-ui-xy-option-table"},kk=["disabled"],Dk={key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Pk=[p.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-ffbe03fd></path><path d="M18 16v.01" data-v-ffbe03fd></path><path d="M6 16v.01" data-v-ffbe03fd></path><path d="M12 5v.01" data-v-ffbe03fd></path><path d="M12 12v.01" data-v-ffbe03fd></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-ffbe03fd></path>',6)],Rk={key:1},Mk=["viewBox"],Hk={class:"vue-ui-xy-grid"},Vk=["stroke","x1","x2","y1","y2"],Kk=["stroke","x1","x2","y1","y2"],Gk={key:0},jk=["x1","x2","y1","y2","stroke"],Wk=["id"],zk=["stop-color"],Xk=["stop-color"],qk=["stop-color"],Yk=["id"],$k=["stop-color"],Jk=["stop-color"],Zk=["stop-color"],eD=["id"],tD=["stop-color"],rD=["stop-color"],AD=["id"],nD=["stop-color"],iD=["stop-color"],aD=["x","y","height","width","fill"],sD=["cx","cy","r","fill","stroke"],oD=["x1","x2","y1","y2","stroke","stroke-width"],lD=["cx","cy","r","fill","stroke"],cD={key:0},fD=["x","y","font-size","fill"],uD={key:1},hD=["x","y","font-size","fill"],dD={key:2},gD=["x","y","font-size","fill"],pD={key:3},vD=["x1","x2","y1","y2","stroke"],mD=["x","y","font-size","fill"],wD={key:0,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},BD=["x","y","font-size","fill"],xD={key:4},yD={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},CD={key:5},ED=["y"],bD={class:"vue-ui-xy-legend"},FD=["onClick"],SD={key:6},_D=["y","x","font-size"],TD={key:7},UD=["x","y","height","width","fill","onMouseenter"],ID=["onClick"],LD=["innerHTML"],ND=["innerHTML"],QD={class:"vue-ui-xy-table"},OD=Ek(()=>p.createElementVNode("th",null,null,-1)),kD={style:{"max-width":"200px",margin:"0 auto"}},DD=["onMouseover"];function PD(t,e,r,A,n,i){return p.openBlock(),p.createElementBlock("div",{class:"vue-ui-xy",ref:"chart",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}`)},[i.chartConfig.chart.title.show&&(!n.mutableConfig.titleInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)):p.createCommentVNode("",!0),i.chartConfig.chart.userOptions.show?(p.openBlock(),p.createElementBlock("details",bk,[p.createElementVNode("summary",Fk,p.toDisplayString(i.chartConfig.chart.userOptions.title),1),p.createElementVNode("div",Sk,[p.createElementVNode("div",_k,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-datalabels",name:"vue-ui-xy-option-datalabels","onUpdate:modelValue":e[0]||(e[0]=a=>n.mutableConfig.dataLabels.show=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.dataLabels.show]]),p.createElementVNode("label",Tk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.dataLabels),1)]),p.createElementVNode("div",Uk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-title",name:"vue-ui-xy-option-title","onUpdate:modelValue":e[1]||(e[1]=a=>n.mutableConfig.titleInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.titleInside]]),p.createElementVNode("label",Ik,p.toDisplayString(i.chartConfig.chart.userOptions.labels.titleInside),1)]),p.createElementVNode("div",Lk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-legend",name:"vue-ui-xy-option-legend","onUpdate:modelValue":e[2]||(e[2]=a=>n.mutableConfig.legendInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.legendInside]]),p.createElementVNode("label",Nk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.legendInside),1)]),p.createElementVNode("div",Qk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-table",name:"vue-ui-xy-option-table","onUpdate:modelValue":e[3]||(e[3]=a=>n.mutableConfig.showTable=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.showTable]]),p.createElementVNode("label",Ok,p.toDisplayString(i.chartConfig.chart.userOptions.labels.showTable),1)]),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...a)=>i.generatePdf&&i.generatePdf(...a)),disabled:n.isPrinting,style:{"margin-top":"12px"}},[n.isPrinting?(p.openBlock(),p.createElementBlock("svg",Dk,Pk)):(p.openBlock(),p.createElementBlock("span",Rk,"PDF"))],8,kk),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...a)=>i.generateXls&&i.generateXls(...a))}," XLSX ")])],512)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",{width:"100%",viewBox:i.viewBox,class:"vue-ui-xy-svg",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}; font-family:${i.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("g",Hk,[p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-linecap":"round"},null,8,Vk),p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.right,y1:i.zero,y2:i.zero,"stroke-linecap":"round"},null,8,Kk),i.chartConfig.chart.grid.showVerticalLines?(p.openBlock(),p.createElementBlock("g",Gk,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries+1,(a,s)=>(p.openBlock(),p.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,x2:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-width":"0.5",stroke:i.chartConfig.chart.grid.stroke},null,8,jk))),128))])):p.createCommentVNode("",!0)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_rect_${s}`},[p.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,zk),p.createElementVNode("stop",{offset:"62%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,Xk),p.createElementVNode("stop",{offset:"100%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,qk)],8,Wk),p.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,$k),p.createElementVNode("stop",{offset:"38%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,Jk),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Zk)],8,Yk)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_plot_${s}`},[p.createElementVNode("radialGradient",{id:`plotGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,tD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,rD)],8,eD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_line_${s}`},[p.createElementVNode("radialGradient",{id:`lineGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,nD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,iD)],8,AD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_bar_${s}`,class:p.normalizeClass(`serie_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`bar_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("rect",{key:0,x:i.calcRectX(o),y:i.calcRectY(o),height:i.calcRectHeight(o),width:i.calcRectWidth(),fill:i.chartConfig.bar.useGradient?o.value>=0?`url(#rectGradient_pos_${s}_${n.uniqueId})`:`url(#rectGradient_neg_${s}_${n.uniqueId})`:a.color},null,8,aD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_plot_${s}`,class:p.normalizeClass(`serie_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.plot.radius,fill:i.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,sD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_line_${s}`,class:p.normalizeClass(`serie_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`line_${s}_${l}`},[l<a.plots.length-1&&i.canShowValue(o.value)&&i.canShowValue(a.plots[l+1].value)?(p.openBlock(),p.createElementBlock("line",{key:0,x1:o.x,x2:a.plots[l+1].x,y1:o.y,y2:a.plots[l+1].y,stroke:a.color,"stroke-width":i.chartConfig.line.strokeWidth},null,8,oD)):p.createCommentVNode("",!0)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_line_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.line.radius,fill:i.chartConfig.line.useGradient?`url(#lineGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,lD)):p.createCommentVNode("",!0)]))),128))],2))),128)),i.chartConfig.bar.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",cD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}`,class:p.normalizeClass(`xLabel_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}_${l}`},[p.createElementVNode("text",{x:o.x+i.calcRectWidth(),y:o.y+i.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.bar.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.bar.labels.rounding):""),9,fD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.plot.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",uD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}`,class:p.normalizeClass(`xLabel_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.plot.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.plot.labels.rounding):""),9,hD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.line.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",dD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}`,class:p.normalizeClass(`xLabel_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.line.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.line.labels.rounding):""),9,gD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.show?(p.openBlock(),p.createElementBlock("g",pD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.yLabels,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`yLabel_${s}`},[a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("line",{key:0,x1:i.drawingArea.left,x2:i.drawingArea.left-5,y1:a.y,y2:a.y,stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,vD)):p.createCommentVNode("",!0),a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("text",{key:1,x:i.drawingArea.left-5,y:a.y+i.chartConfig.chart.labels.fontSize/3,"font-size":i.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.canShowValue(a.value)?a.value.toFixed(0):""),9,mD)):p.createCommentVNode("",!0)]))),128))])):p.createCommentVNode("",!0),p.createElementVNode("g",null,[i.chartConfig.chart.grid.labels.axis.yLabel?(p.openBlock(),p.createElementBlock("text",wD,p.toDisplayString(i.chartConfig.chart.grid.labels.axis.yLabel),1)):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.axis.xLabel?(p.openBlock(),p.createElementBlock("text",{key:1,"text-anchor":"middle",x:i.chartConfig.chart.width/2,y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.axis.fontSize+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":i.chartConfig.chart.grid.labels.axis.fontSize,fill:i.chartConfig.chart.grid.labels.xAxisLabels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.xLabel),9,BD)):p.createCommentVNode("",!0)]),i.chartConfig.chart.title.show&&n.mutableConfig.titleInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",xD,[(p.openBlock(),p.createElementBlock("foreignObject",yD,[p.createElementVNode("div",{class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize*.6}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)]))])):p.createCommentVNode("",!0),i.chartConfig.chart.legend.show&&n.mutableConfig.legendInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",CD,[(p.openBlock(),p.createElementBlock("foreignObject",{x:"0",y:i.drawingArea.bottom+i.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:p.normalizeStyle(`overflow:visible; font-size:${i.chartConfig.chart.legend.fontSize*.6}px`)},[p.createElementVNode("div",bD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[["plot"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(`color:${a.color}`)},"●",4)):p.createCommentVNode("",!0),["line"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:1,style:p.normalizeStyle(`color:${a.color}`)},"▬",4)):p.createCommentVNode("",!0),["bar"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:2,style:p.normalizeStyle(`color:${a.color}`)},"◼",4)):p.createCommentVNode("",!0),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,FD))),128))])],12,ED))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.xAxisLabels.show?(p.openBlock(),p.createElementBlock("g",SD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("text",{key:`time_label_${s}`,"text-anchor":"middle",y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s+i.drawingArea.width/i.maxSeries/2,"font-size":i.chartConfig.chart.grid.labels.xAxisLabels.fontSize},p.toDisplayString(i.chartConfig.chart.grid.labels.xAxisLabels.values[s]||""),9,_D))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show?(p.openBlock(),p.createElementBlock("g",TD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`tooltip_trap_${s}`},[p.createElementVNode("rect",{x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s,y:i.drawingArea.top,height:i.drawingArea.height,width:i.drawingArea.width/i.maxSeries,fill:n.selectedSerieIndex===s||n.selectedRowIndex===s?"rgba(0,0,0,0.03)":"transparent",onMouseenter:o=>i.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=o=>i.toggleTooltip(!1))},null,40,UD)]))),128))])):p.createCommentVNode("",!0)],12,Mk)),i.chartConfig.chart.legend.show&&(!n.mutableConfig.legendInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:2,class:"vue-ui-xy-legend",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.legend.fontSize}px`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}`),innerHTML:n.icons[a.type]},null,12,LD),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,ID))),128))],4)):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show&&n.isTooltip?(p.openBlock(),p.createElementBlock("div",{key:3,class:"vue-ui-xy-tooltip",ref:"tooltip",style:p.normalizeStyle(`top:${i.tooltipPosition.top}px; left:${i.tooltipPosition.left}px; background-color:${i.chartConfig.chart.tooltip.backgroundColor}, color:${i.chartConfig.chart.tooltip.color}`),innerHTML:i.tooltipContent},null,12,ND)):p.createCommentVNode("",!0),i.chartConfig.showTable&&n.mutableConfig.showTable?(p.openBlock(),p.createElementBlock("div",{key:4,class:p.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":n.isPrinting}),onClick:e[9]||(e[9]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("table",QD,[p.createElementVNode("thead",null,[p.createElementVNode("tr",null,[OD,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.head,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`th_${s}`},[p.createElementVNode("div",kD,[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}; margin-right:3px`)},p.toDisplayString(n.icons[a.type]),5),p.createTextVNode(p.toDisplayString(a.label),1)])]))),128))])]),p.createElementVNode("tbody",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.body,(a,s)=>(p.openBlock(),p.createElementBlock("tr",{key:`tr_${s}`,class:p.normalizeClass({"vue-ui-xy-table-tr-selected":n.selectedSerieIndex===s||n.selectedRowIndex===s}),onMouseover:o=>n.selectedRowIndex=s,onMouseleave:e[8]||(e[8]=o=>n.selectedRowIndex=null)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a,(o,l)=>(p.openBlock(),p.createElementBlock("td",{key:`td_${s}_${l}`},p.toDisplayString(o),1))),128))],42,DD))),128))])])],2)):p.createCommentVNode("",!0)],4)}const RD=H5(Ck,[["render",PD],["__scopeId","data-v-ffbe03fd"]]),I$="",MD={name:"vue-ui-table",props:{locale:{type:String,default:"fr-fr"},header:{type:Array,default(){return[]}},body:{type:Array,default(){return[]}},fontFamily:{type:String,default:"inherit"},maxHeight:{type:String,default:"500px"},rowsPerPage:{type:Number,default:25},translations:{type:Object,default(){return{average:"Moyenne",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"Du",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"Au",total:"Total",totalRows:"Total rows"}}},useChart:{type:Boolean,default:!0}},data(){return{bodyCopy:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.rowsPerPage,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.rowsPerPage,this.body.length])].sort((t,e)=>t-e),palette:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),tableHead:JSON.parse(JSON.stringify(this.header)).map(t=>({average:Object.hasOwn(t,"average")?t.average:!1,decimals:Object.hasOwn(t,"decimals")?t.decimals:0,isMultiselect:Object.hasOwn(t,"isMultiselect")?t.isMultiselect:!1,isPercentage:Object.hasOwn(t,"isPercentage")?t.isPercentage:!1,isSearch:Object.hasOwn(t,"isSearch")?t.isSearch:!1,isSort:Object.hasOwn(t,"isSort")?t.isSort:!1,name:t.name,percentageTo:Object.hasOwn(t,"percentageTo")?t.percentageTo:void 0,prefix:Object.hasOwn(t,"prefix")?t.prefix:"",rangeFilter:Object.hasOwn(t,"rangeFilter")?t.rangeFilter:!1,suffix:Object.hasOwn(t,"suffix")?t.suffix:"",sum:Object.hasOwn(t,"sum")?t.sum:!1,type:t.type}))}},mounted(){if(this.header.length===0)throw new Error(`SmartTable error: missing header data.
360
+ '${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{treeShake({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(A=>{if(Object.hasOwn(e,A)){const n=e[A];typeof n=="boolean"?r[A]=n:["string","number"].includes(typeof n)?this.isValidUserValue(n)&&(r[A]=n):Array.isArray(r[A])?this.checkArray({userConfig:e,key:A})&&(r[A]=n):this.checkObj({userConfig:e,key:A})&&(r[A]=this.treeShake({defaultConfig:r[A],userConfig:n}))}}),r},calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let A;return t<0,A=Math.round(t/r)*r,A},convertColorToHex(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,i,a,s]=n;return`#${i}${a}${s}`}else if(n=t.match(r)){const[,i,a,s]=n;return`#${this.decimalToHex(i)}${this.decimalToHex(a)}${this.decimalToHex(s)}`}else if(n=t.match(A)){const[,i,a,s]=n,o=this.hslToRgb(Number(i),Number(a),Number(s));return`#${this.decimalToHex(o[0])}${this.decimalToHex(o[1])}${this.decimalToHex(o[2])}`}return null},decimalToHex(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e},hslToRgb(t,e,r){t/=360,e/=100,r/=100;let A,n,i;if(e===0)A=n=i=r;else{const a=(l,c,h)=>(h<0&&(h+=1),h>1&&(h-=1),h<.16666666666666666?l+(c-l)*6*h:h<.5?c:h<.6666666666666666?l+(c-l)*(.6666666666666666-h)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=a(o,s,t+1/3),n=a(o,s,t),i=a(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(i*255)]},ratioToMax(t){return t/this.absoluteMax},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}},shiftHue(t,e){const r=l=>({r:parseInt(l.substring(1,3),16),g:parseInt(l.substring(3,5),16),b:parseInt(l.substring(5,7),16)}),A=({r:l,g:c,b:h})=>{l/=255,c/=255,h/=255;const d=Math.max(l,c,h),u=Math.min(l,c,h);let w,v,x=(d+u)/2;if(d===u)w=v=0;else{const y=d-u;switch(v=x>.5?y/(2-d-u):y/(d+u),d){case l:w=(c-h)/y+(c<h?6:0);break;case c:w=(h-l)/y+2;break;case h:w=(l-c)/y+4;break}w/=6}return{h:w,s:v,l:x}},n=({h:l,s:c,l:h})=>{let d,u,w;if(c===0)d=u=w=h;else{const v=(E,F,k)=>(k<0&&(k+=1),k>1&&(k-=1),k<.16666666666666666?E+(F-E)*6*k:k<.5?F:k<.6666666666666666?E+(F-E)*(.6666666666666666-k)*6:E),x=h<.5?h*(1+c):h+c-h*c,y=2*h-x;d=v(y,x,l+.3333333333333333),u=v(y,x,l),w=v(y,x,l-.3333333333333333)}return{r:Math.round(d*255),g:Math.round(u*255),b:Math.round(w*255)}},i=r(t),a=A(i);a.h+=e,a.h=(a.h+1)%1;const s=n(a);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){const t=this.$refs.chart;t&&(this.isPrinting=!0,this.$nextTick(()=>{const e={height:851.89,width:595.28},r=new xt("","pt","a4");let A,n,i,a,s;Pm(t).then(o=>{A=o.width,n=o.height;let l=n;const c=A/e.width*e.height;let h=0;if(i=e.width,a=582.28/A*n,s=o.toDataURL("image/png",1),l<c)r.addImage(s,"PNG",33,24,i*.9,a*.9,"","FAST");else for(;l>0;)r.addImage(s,"PNG",33,h,i*.9,a*.9,"","FAST"),l-=c,h-=e.height-24,l>0&&r.addPage();r.save(`${this.chartConfig.chart.title.text||"vue-ui-xy"}.pdf`)}).finally(()=>{this.isPrinting=!1})}))},generateXls(){const t=["",...this.table.head.map(l=>l.label)],e=this.table.body,r=[t].concat(e);function A(l){let c=new ArrayBuffer(l.length),h=new Uint8Array(c);for(let d=0;d<l.length;d++)h[d]=l.charCodeAt(d)&255;return c}const n=Bo.book_new(),i=Bo.aoa_to_sheet(r);Bo.book_append_sheet(n,i,"Sheet1");const a=md(n,{bookType:"xlsx",type:"binary"}),s=new Blob([A(a)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=document.createElement("a");o.href=window.URL.createObjectURL(s),o.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,o.click(),window.URL.revokeObjectURL(o.href),this.isExportRequest=!1},checkArray({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length},checkObj({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"},isValidUserValue(t){return![null,void 0,NaN,1/0,-1/0].includes(t)},isSafeValue(t){return![void 0,NaN,1/0,-1/0].includes(t)},checkNaN(t,e=0){return isNaN(t)?e:t}}},Ek=t=>(p.pushScopeId("data-v-43e19d7c"),t=t(),p.popScopeId(),t),bk={key:1,class:"vue-ui-xy-user-options","data-html2canvas-ignore":"",ref:"details"},Fk={style:{"`background":"${chartConfig.chart.background}",color:"${chartConfig.chart.color}`"}},Sk={class:"vue-ui-xy-user-options-items"},_k={class:"vue-ui-xy-user-option-item"},Tk={for:"vue-ui-xy-option-datalabels"},Uk={class:"vue-ui-xy-user-option-item"},Ik={for:"vue-ui-xy-option-title"},Lk={class:"vue-ui-xy-user-option-item"},Nk={for:"vue-ui-xy-option-legend"},Qk={class:"vue-ui-xy-user-option-item"},Ok={for:"vue-ui-xy-option-table"},kk=["disabled"],Dk={key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Pk=[p.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-43e19d7c></path><path d="M18 16v.01" data-v-43e19d7c></path><path d="M6 16v.01" data-v-43e19d7c></path><path d="M12 5v.01" data-v-43e19d7c></path><path d="M12 12v.01" data-v-43e19d7c></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-43e19d7c></path>',6)],Rk={key:1},Mk=["viewBox"],Hk={class:"vue-ui-xy-grid"},Vk=["stroke","x1","x2","y1","y2"],Kk=["stroke","x1","x2","y1","y2"],Gk={key:0},jk=["x1","x2","y1","y2","stroke"],Wk=["id"],zk=["stop-color"],Xk=["stop-color"],qk=["stop-color"],Yk=["id"],$k=["stop-color"],Jk=["stop-color"],Zk=["stop-color"],eD=["id"],tD=["stop-color"],rD=["stop-color"],AD=["id"],nD=["stop-color"],iD=["stop-color"],aD=["x","y","height","width","fill"],sD=["cx","cy","r","fill","stroke"],oD=["x1","x2","y1","y2","stroke","stroke-width"],lD=["cx","cy","r","fill","stroke"],cD={key:0},fD=["x","y","font-size","fill"],uD={key:1},hD=["x","y","font-size","fill"],dD={key:2},gD=["x","y","font-size","fill"],pD={key:3},vD=["x1","x2","y1","y2","stroke"],mD=["x","y","font-size","fill"],wD=["font-size","fill"],BD=["x","y","font-size","fill"],xD={key:4},yD={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},CD={key:5},ED=["y"],bD={class:"vue-ui-xy-legend"},FD=["onClick"],SD={key:6},_D=["y","x","font-size","fill"],TD={key:7},UD=["x","y","height","width","fill","onMouseenter"],ID=["onClick"],LD=["innerHTML"],ND=["innerHTML"],QD={class:"vue-ui-xy-table"},OD=Ek(()=>p.createElementVNode("th",null,null,-1)),kD={style:{"max-width":"200px",margin:"0 auto"}},DD=["onMouseover"];function PD(t,e,r,A,n,i){return p.openBlock(),p.createElementBlock("div",{class:"vue-ui-xy",ref:"chart",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}`)},[i.chartConfig.chart.title.show&&(!n.mutableConfig.titleInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)):p.createCommentVNode("",!0),i.chartConfig.chart.userOptions.show?(p.openBlock(),p.createElementBlock("details",bk,[p.createElementVNode("summary",Fk,p.toDisplayString(i.chartConfig.chart.userOptions.title),1),p.createElementVNode("div",Sk,[p.createElementVNode("div",_k,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-datalabels",name:"vue-ui-xy-option-datalabels","onUpdate:modelValue":e[0]||(e[0]=a=>n.mutableConfig.dataLabels.show=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.dataLabels.show]]),p.createElementVNode("label",Tk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.dataLabels),1)]),p.createElementVNode("div",Uk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-title",name:"vue-ui-xy-option-title","onUpdate:modelValue":e[1]||(e[1]=a=>n.mutableConfig.titleInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.titleInside]]),p.createElementVNode("label",Ik,p.toDisplayString(i.chartConfig.chart.userOptions.labels.titleInside),1)]),p.createElementVNode("div",Lk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-legend",name:"vue-ui-xy-option-legend","onUpdate:modelValue":e[2]||(e[2]=a=>n.mutableConfig.legendInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.legendInside]]),p.createElementVNode("label",Nk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.legendInside),1)]),p.createElementVNode("div",Qk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-table",name:"vue-ui-xy-option-table","onUpdate:modelValue":e[3]||(e[3]=a=>n.mutableConfig.showTable=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.showTable]]),p.createElementVNode("label",Ok,p.toDisplayString(i.chartConfig.chart.userOptions.labels.showTable),1)]),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...a)=>i.generatePdf&&i.generatePdf(...a)),disabled:n.isPrinting,style:{"margin-top":"12px"}},[n.isPrinting?(p.openBlock(),p.createElementBlock("svg",Dk,Pk)):(p.openBlock(),p.createElementBlock("span",Rk,"PDF"))],8,kk),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...a)=>i.generateXls&&i.generateXls(...a))}," XLSX ")])],512)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",{width:"100%",viewBox:i.viewBox,class:"vue-ui-xy-svg",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}; font-family:${i.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("g",Hk,[p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-linecap":"round"},null,8,Vk),p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.right,y1:i.zero,y2:i.zero,"stroke-linecap":"round"},null,8,Kk),i.chartConfig.chart.grid.showVerticalLines?(p.openBlock(),p.createElementBlock("g",Gk,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries+1,(a,s)=>(p.openBlock(),p.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,x2:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-width":"0.5",stroke:i.chartConfig.chart.grid.stroke},null,8,jk))),128))])):p.createCommentVNode("",!0)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_rect_${s}`},[p.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,zk),p.createElementVNode("stop",{offset:"62%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,Xk),p.createElementVNode("stop",{offset:"100%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,qk)],8,Wk),p.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,$k),p.createElementVNode("stop",{offset:"38%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,Jk),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Zk)],8,Yk)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_plot_${s}`},[p.createElementVNode("radialGradient",{id:`plotGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,tD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,rD)],8,eD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_line_${s}`},[p.createElementVNode("radialGradient",{id:`lineGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,nD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,iD)],8,AD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_bar_${s}`,class:p.normalizeClass(`serie_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`bar_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("rect",{key:0,x:i.calcRectX(o),y:i.calcRectY(o),height:i.calcRectHeight(o),width:i.calcRectWidth(),fill:i.chartConfig.bar.useGradient?o.value>=0?`url(#rectGradient_pos_${s}_${n.uniqueId})`:`url(#rectGradient_neg_${s}_${n.uniqueId})`:a.color},null,8,aD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_plot_${s}`,class:p.normalizeClass(`serie_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.plot.radius,fill:i.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,sD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_line_${s}`,class:p.normalizeClass(`serie_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`line_${s}_${l}`},[l<a.plots.length-1&&i.canShowValue(o.value)&&i.canShowValue(a.plots[l+1].value)?(p.openBlock(),p.createElementBlock("line",{key:0,x1:o.x,x2:a.plots[l+1].x,y1:o.y,y2:a.plots[l+1].y,stroke:a.color,"stroke-width":i.chartConfig.line.strokeWidth},null,8,oD)):p.createCommentVNode("",!0)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_line_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.line.radius,fill:i.chartConfig.line.useGradient?`url(#lineGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,lD)):p.createCommentVNode("",!0)]))),128))],2))),128)),i.chartConfig.bar.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",cD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}`,class:p.normalizeClass(`xLabel_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}_${l}`},[p.createElementVNode("text",{x:o.x+i.calcRectWidth(),y:o.y+i.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.bar.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.bar.labels.rounding):""),9,fD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.plot.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",uD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}`,class:p.normalizeClass(`xLabel_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.plot.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.plot.labels.rounding):""),9,hD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.line.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",dD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}`,class:p.normalizeClass(`xLabel_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.line.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.line.labels.rounding):""),9,gD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.show?(p.openBlock(),p.createElementBlock("g",pD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.yLabels,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`yLabel_${s}`},[a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("line",{key:0,x1:i.drawingArea.left,x2:i.drawingArea.left-5,y1:a.y,y2:a.y,stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,vD)):p.createCommentVNode("",!0),a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("text",{key:1,x:i.drawingArea.left-5,y:a.y+i.chartConfig.chart.labels.fontSize/3,"font-size":i.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.canShowValue(a.value)?a.value.toFixed(0):""),9,mD)):p.createCommentVNode("",!0)]))),128))])):p.createCommentVNode("",!0),p.createElementVNode("g",null,[i.chartConfig.chart.grid.labels.axis.yLabel?(p.openBlock(),p.createElementBlock("text",{key:0,"font-size":i.chartConfig.chart.grid.labels.axis.fontSize,fill:i.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.yLabel),9,wD)):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.axis.xLabel?(p.openBlock(),p.createElementBlock("text",{key:1,"text-anchor":"middle",x:i.chartConfig.chart.width/2,y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.axis.fontSize+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":i.chartConfig.chart.grid.labels.axis.fontSize,fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.xLabel),9,BD)):p.createCommentVNode("",!0)]),i.chartConfig.chart.title.show&&n.mutableConfig.titleInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",xD,[(p.openBlock(),p.createElementBlock("foreignObject",yD,[p.createElementVNode("div",{class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize*.6}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)]))])):p.createCommentVNode("",!0),i.chartConfig.chart.legend.show&&n.mutableConfig.legendInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",CD,[(p.openBlock(),p.createElementBlock("foreignObject",{x:"0",y:i.drawingArea.bottom+i.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:p.normalizeStyle(`overflow:visible; font-size:${i.chartConfig.chart.legend.fontSize*.6}px`)},[p.createElementVNode("div",bD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[["plot"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(`color:${a.color}`)},"●",4)):p.createCommentVNode("",!0),["line"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:1,style:p.normalizeStyle(`color:${a.color}`)},"▬",4)):p.createCommentVNode("",!0),["bar"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:2,style:p.normalizeStyle(`color:${a.color}`)},"◼",4)):p.createCommentVNode("",!0),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,FD))),128))])],12,ED))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.xAxisLabels.show?(p.openBlock(),p.createElementBlock("g",SD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("text",{key:`time_label_${s}`,"text-anchor":"middle",y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s+i.drawingArea.width/i.maxSeries/2,"font-size":i.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:i.chartConfig.chart.grid.labels.xAxisLabels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.xAxisLabels.values[s]||""),9,_D))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show?(p.openBlock(),p.createElementBlock("g",TD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`tooltip_trap_${s}`},[p.createElementVNode("rect",{x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s,y:i.drawingArea.top,height:i.drawingArea.height,width:i.drawingArea.width/i.maxSeries,fill:n.selectedSerieIndex===s||n.selectedRowIndex===s?"rgba(0,0,0,0.03)":"transparent",onMouseenter:o=>i.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=o=>i.toggleTooltip(!1))},null,40,UD)]))),128))])):p.createCommentVNode("",!0)],12,Mk)),i.chartConfig.chart.legend.show&&(!n.mutableConfig.legendInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:2,class:"vue-ui-xy-legend",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.legend.fontSize}px`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}`),innerHTML:n.icons[a.type]},null,12,LD),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,ID))),128))],4)):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show&&n.isTooltip?(p.openBlock(),p.createElementBlock("div",{key:3,class:"vue-ui-xy-tooltip",ref:"tooltip",style:p.normalizeStyle(`top:${i.tooltipPosition.top}px; left:${i.tooltipPosition.left}px; background-color:${i.chartConfig.chart.tooltip.backgroundColor}, color:${i.chartConfig.chart.tooltip.color}`),innerHTML:i.tooltipContent},null,12,ND)):p.createCommentVNode("",!0),i.chartConfig.showTable&&n.mutableConfig.showTable?(p.openBlock(),p.createElementBlock("div",{key:4,class:p.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":n.isPrinting}),onClick:e[9]||(e[9]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("table",QD,[p.createElementVNode("thead",null,[p.createElementVNode("tr",null,[OD,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.head,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`th_${s}`},[p.createElementVNode("div",kD,[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}; margin-right:3px`)},p.toDisplayString(n.icons[a.type]),5),p.createTextVNode(p.toDisplayString(a.label),1)])]))),128))])]),p.createElementVNode("tbody",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.body,(a,s)=>(p.openBlock(),p.createElementBlock("tr",{key:`tr_${s}`,class:p.normalizeClass({"vue-ui-xy-table-tr-selected":n.selectedSerieIndex===s||n.selectedRowIndex===s}),onMouseover:o=>n.selectedRowIndex=s,onMouseleave:e[8]||(e[8]=o=>n.selectedRowIndex=null)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a,(o,l)=>(p.openBlock(),p.createElementBlock("td",{key:`td_${s}_${l}`},p.toDisplayString(o),1))),128))],42,DD))),128))])])],2)):p.createCommentVNode("",!0)],4)}const RD=H5(Ck,[["render",PD],["__scopeId","data-v-43e19d7c"]]),I$="",MD={name:"vue-ui-table",props:{locale:{type:String,default:"fr-fr"},header:{type:Array,default(){return[]}},body:{type:Array,default(){return[]}},fontFamily:{type:String,default:"inherit"},maxHeight:{type:String,default:"500px"},rowsPerPage:{type:Number,default:25},translations:{type:Object,default(){return{average:"Moyenne",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"Du",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"Au",total:"Total",totalRows:"Total rows"}}},useChart:{type:Boolean,default:!0}},data(){return{bodyCopy:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.rowsPerPage,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.rowsPerPage,this.body.length])].sort((t,e)=>t-e),palette:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),tableHead:JSON.parse(JSON.stringify(this.header)).map(t=>({average:Object.hasOwn(t,"average")?t.average:!1,decimals:Object.hasOwn(t,"decimals")?t.decimals:0,isMultiselect:Object.hasOwn(t,"isMultiselect")?t.isMultiselect:!1,isPercentage:Object.hasOwn(t,"isPercentage")?t.isPercentage:!1,isSearch:Object.hasOwn(t,"isSearch")?t.isSearch:!1,isSort:Object.hasOwn(t,"isSort")?t.isSort:!1,name:t.name,percentageTo:Object.hasOwn(t,"percentageTo")?t.percentageTo:void 0,prefix:Object.hasOwn(t,"prefix")?t.prefix:"",rangeFilter:Object.hasOwn(t,"rangeFilter")?t.rangeFilter:!1,suffix:Object.hasOwn(t,"suffix")?t.suffix:"",sum:Object.hasOwn(t,"sum")?t.sum:!1,type:t.type}))}},mounted(){if(this.header.length===0)throw new Error(`SmartTable error: missing header data.
361
361
  Provide an array of objects of type:
362
362
  {
363
363
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "type": "module",
6
6
  "description": "A Vue data visualization components library",
7
7
  "keywords": ["Vue", "data visualization", "chart", "table"],