@tsiky/components-r19 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/chart.js CHANGED
@@ -11610,9 +11610,33 @@ function gn() {
11610
11610
  var fn = gn();
11611
11611
  const qt = /* @__PURE__ */ _s(fn), Fa = {
11612
11612
  lines: [
11613
- { id: "Upper", key: "upper", label: "Upper", visible: !0, color: "var(--color-line)", width: 1, dash: 0 },
11614
- { id: "Main", key: "main", label: "Main", visible: !0, color: "var(--color-primary)", width: 1.5, dash: 6 },
11615
- { id: "Lower", key: "lower", label: "Lower", visible: !0, color: "var(--color-line)", width: 1, dash: 0 }
11613
+ {
11614
+ id: "Upper",
11615
+ key: "upper",
11616
+ label: "Upper",
11617
+ visible: !0,
11618
+ color: "var(--color-line)",
11619
+ width: 1,
11620
+ dash: 0
11621
+ },
11622
+ {
11623
+ id: "Main",
11624
+ key: "main",
11625
+ label: "Main",
11626
+ visible: !0,
11627
+ color: "var(--color-primary)",
11628
+ width: 1.5,
11629
+ dash: 6
11630
+ },
11631
+ {
11632
+ id: "Lower",
11633
+ key: "lower",
11634
+ label: "Lower",
11635
+ visible: !0,
11636
+ color: "var(--color-line)",
11637
+ width: 1,
11638
+ dash: 0
11639
+ }
11616
11640
  ],
11617
11641
  showHistogram: !0,
11618
11642
  histogramKey: "histogram",
@@ -11694,7 +11718,9 @@ const qt = /* @__PURE__ */ _s(fn), Fa = {
11694
11718
  typeof $ == "number" && typeof ae == "number" ? B > $ ? D = "upper" : B < ae ? D = "lower" : D = "correct" : (D = "correct", K = !1), D === "lower" ? (A.push({ x: g[z], y: B, outside: K }), k.push({ x: g[z], y: null }), C.push({ x: g[z], y: null }), S.push({ seriesKey: "lower", dataPointIndex: z, outside: K })) : D === "upper" ? (C.push({ x: g[z], y: B, outside: K }), A.push({ x: g[z], y: null }), k.push({ x: g[z], y: null }), S.push({ seriesKey: "upper", dataPointIndex: z, outside: K })) : (k.push({ x: g[z], y: B, outside: !1 }), A.push({ x: g[z], y: null }), C.push({ x: g[z], y: null }), S.push({ seriesKey: "correct", dataPointIndex: z, outside: !1 }));
11695
11719
  }
11696
11720
  x.push({ name: W, type: "scatter", data: A }), b.push(0), v.push(0), w.push(Y), y.push("solid"), m.push(1), x.push({ name: "Correct Predictions", type: "scatter", data: k }), b.push(0), v.push(0), w.push(O), y.push("solid"), m.push(1), x.push({ name: V, type: "scatter", data: C }), b.push(0), v.push(0), w.push(F), y.push("solid"), m.push(1);
11697
- const E = x.findIndex((z) => z.type === "scatter" && z.name === W), R = x.findIndex((z) => z.type === "scatter" && z.name === "Correct Predictions"), Z = x.findIndex((z) => z.type === "scatter" && z.name === V), J = S.map((z) => {
11721
+ const E = x.findIndex((z) => z.type === "scatter" && z.name === W), R = x.findIndex(
11722
+ (z) => z.type === "scatter" && z.name === "Correct Predictions"
11723
+ ), Z = x.findIndex((z) => z.type === "scatter" && z.name === V), J = S.map((z) => {
11698
11724
  const N = z.seriesKey === "lower" ? E : z.seriesKey === "upper" ? Z : R;
11699
11725
  return z.seriesKey === "lower" ? {
11700
11726
  seriesIndex: N,
@@ -11735,18 +11761,47 @@ const qt = /* @__PURE__ */ _s(fn), Fa = {
11735
11761
  show: !1,
11736
11762
  offsetY: -20,
11737
11763
  autoSelected: "pan",
11738
- tools: { download: !1, selection: !0, zoom: !0, zoomin: !0, zoomout: !0, pan: !0, reset: !0 }
11764
+ tools: {
11765
+ download: !1,
11766
+ selection: !0,
11767
+ zoom: !0,
11768
+ zoomin: !0,
11769
+ zoomout: !0,
11770
+ pan: !0,
11771
+ reset: !0
11772
+ }
11739
11773
  },
11740
11774
  width: "100%",
11741
11775
  zoom: { enabled: s, type: "x", autoScaleYaxis: !0 },
11742
- animations: { enabled: !0, animateGradually: { enabled: !0, delay: 80 }, dynamicAnimation: { enabled: !1 } },
11776
+ animations: {
11777
+ enabled: !0,
11778
+ animateGradually: { enabled: !0, delay: 80 },
11779
+ dynamicAnimation: { enabled: !1 }
11780
+ },
11743
11781
  stacked: !0
11744
11782
  },
11745
11783
  plotOptions: { bar: { columnWidth: "50%" } },
11746
11784
  stroke: { curve: "smooth", width: b, dashArray: v },
11747
11785
  colors: w,
11748
- fill: { type: y, opacity: m, gradient: { type: "vertical", gradientToColors: void 0, shadeIntensity: 1, inverseColors: !1, opacityFrom: Math.max(...m.length ? m : [0.4]), opacityTo: Math.min(...m.length ? m : [0.4]), stops: [0, 100] } },
11749
- markers: { shape: "circle", size: 0, hover: { sizeOffset: 6 }, discrete: J },
11786
+ fill: {
11787
+ type: y,
11788
+ opacity: m,
11789
+ gradient: {
11790
+ type: "vertical",
11791
+ gradientToColors: void 0,
11792
+ shadeIntensity: 1,
11793
+ inverseColors: !1,
11794
+ opacityFrom: Math.max(...m.length ? m : [0.4]),
11795
+ opacityTo: Math.min(...m.length ? m : [0.4]),
11796
+ stops: [0, 100]
11797
+ }
11798
+ },
11799
+ markers: {
11800
+ shape: "circle",
11801
+ size: 0,
11802
+ hover: { sizeOffset: 6 },
11803
+ discrete: J
11804
+ },
11750
11805
  // custom tooltip: skip placeholder zeros for stacked trick; optionally hide outliers if cfg.outliers?.hideOutside === true
11751
11806
  tooltip: {
11752
11807
  enabled: s,
@@ -11796,14 +11851,49 @@ const qt = /* @__PURE__ */ _s(fn), Fa = {
11796
11851
  `;
11797
11852
  }
11798
11853
  },
11799
- xaxis: { type: "category", categories: g, tickPlacement: "on", tickAmount: Math.min(12, g.length) },
11800
- yaxis: { min: 0, tickAmount: 6, labels: { formatter: (z) => z == null ? "0" : z.toFixed(0) } },
11854
+ xaxis: {
11855
+ type: "category",
11856
+ categories: g,
11857
+ tickPlacement: "on",
11858
+ tickAmount: Math.min(12, g.length)
11859
+ },
11860
+ yaxis: {
11861
+ min: 0,
11862
+ tickAmount: 6,
11863
+ labels: { formatter: (z) => z == null ? "0" : z.toFixed(0) }
11864
+ },
11801
11865
  dataLabels: { enabled: !1 },
11802
- legend: { show: !r, position: "top", onItemClick: { toggleDataSeries: !r }, onItemHover: { highlightDataSeries: !r } },
11866
+ legend: {
11867
+ show: !r,
11868
+ position: "top",
11869
+ onItemClick: { toggleDataSeries: !r },
11870
+ onItemHover: { highlightDataSeries: !r }
11871
+ },
11803
11872
  grid: { borderColor: "var(--color-border)" },
11804
11873
  responsive: u.responsive ? [] : void 0
11805
11874
  };
11806
- return /* @__PURE__ */ ve("div", { style: { position: "relative", width: "100%", height: t }, children: a && !h ? /* @__PURE__ */ ve("div", { style: { width: "100%", height: "100%", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ ve(Gt, { size: 48, strokeWidth: 1.5, style: { opacity: 0.8 } }) }) : /* @__PURE__ */ ve(qt, { options: ee, series: x, type: "line", height: t }, n) });
11875
+ return /* @__PURE__ */ ve("div", { style: { position: "relative", width: "100%", height: t }, children: a && !h ? /* @__PURE__ */ ve(
11876
+ "div",
11877
+ {
11878
+ style: {
11879
+ width: "100%",
11880
+ height: "100%",
11881
+ display: "flex",
11882
+ alignItems: "center",
11883
+ justifyContent: "center"
11884
+ },
11885
+ children: /* @__PURE__ */ ve(Gt, { size: 48, strokeWidth: 1.5, style: { opacity: 0.8 } })
11886
+ }
11887
+ ) : /* @__PURE__ */ ve(
11888
+ qt,
11889
+ {
11890
+ options: ee,
11891
+ series: x,
11892
+ type: "line",
11893
+ height: t
11894
+ },
11895
+ n
11896
+ ) });
11807
11897
  }, pn = ["#e24b33", "#e2b23a", "#6feff0", "#2f5be8"], wn = ({
11808
11898
  categories: o,
11809
11899
  series: e,