@hotelinking/ui 16.49.17 → 16.49.19

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/ui.d.ts CHANGED
@@ -70,7 +70,7 @@ export declare type chartOptionsType = {
70
70
  enabled: boolean;
71
71
  };
72
72
  stacked?: boolean;
73
- type?: "area" | "line" | "bar" | "scatter";
73
+ type?: "area" | "line" | "bar" | "scatter" | "rangeBar";
74
74
  };
75
75
  colors: any;
76
76
  stroke?: {
@@ -460,7 +460,7 @@ onDataPointSelection?: ((T: any) => any) | undefined;
460
460
  onMaximizeChart?: ((T: string) => any) | undefined;
461
461
  }>, {
462
462
  loading: boolean;
463
- type: "area" | "line" | "bar" | "scatter";
463
+ type: "area" | "line" | "bar" | "scatter" | "rangeBar";
464
464
  id: string;
465
465
  height: number;
466
466
  empty: boolean;
@@ -506,11 +506,11 @@ export declare interface UiChartInterface {
506
506
  /** chart id */
507
507
  id: string;
508
508
  /** chart type (NOT USED in uiCircleChart && uiFunnelChartV2) */
509
- type?: "area" | "line" | "bar" | "scatter";
509
+ type?: "area" | "line" | "bar" | "scatter" | "rangeBar";
510
510
  /** chart series and if different type, type */
511
511
  series: {
512
512
  name: string;
513
- type?: "area" | "line" | "bar" | "scatter";
513
+ type?: "area" | "line" | "bar" | "scatter" | "rangeBar";
514
514
  data: number[];
515
515
  }[];
516
516
  /** chart options (NOT USED in uiCircleChart) */
@@ -873,7 +873,7 @@ onDataPointSelection?: ((T: any) => any) | undefined;
873
873
  onMaximizeChart?: ((T: string) => any) | undefined;
874
874
  }>, {
875
875
  loading: boolean;
876
- type: "area" | "line" | "bar" | "scatter";
876
+ type: "area" | "line" | "bar" | "scatter" | "rangeBar";
877
877
  id: string;
878
878
  range: "24h" | "7d" | "1m" | "3m" | "all";
879
879
  height: number;
package/dist/ui.es.js CHANGED
@@ -3141,11 +3141,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
3141
3141
  if (P > 5 && P <= 7) return "#eab308";
3142
3142
  if (P >= 8) return "#84cc16";
3143
3143
  }
3144
- ] : [
3145
- "#000000",
3146
- "#a3e635",
3147
- "#38f7ea"
3148
- ];
3144
+ ] : n.type === "rangeBar" ? ["#00E396", "#FEB019", "#FF4560"] : ["#000000", "#a3e635", "#38f7ea"];
3149
3145
  }(),
3150
3146
  stroke: {
3151
3147
  show: !0,
@@ -3181,7 +3177,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
3181
3177
  }
3182
3178
  ]
3183
3179
  }), n.type === "area" && (d.tooltip = { intersect: !1, shared: !0 });
3184
- const c = () => (d.chart.stacked = n.stacked, n.options && (n.options.xaxis.hideOverlappingLabels = !0, n.options.xaxis.decimalsInFloat = 2, n.options.xaxis.tickAmount = 10), { ...d, ...n.options, plotOptions: { bar: { horizontal: n.horizontal } } }), v = () => {
3180
+ const c = () => (d.chart.stacked = n.stacked, n.options && (n.options.xaxis.hideOverlappingLabels = !0, n.options.xaxis.decimalsInFloat = 2, n.options.xaxis.tickAmount = 10), { ...d, ...n.options, plotOptions: { bar: { horizontal: n.horizontal, rangeBarGroupRows: n.type === "rangeBar" } } }), v = () => {
3185
3181
  r.from !== "" && r.to !== "" && Y(r.from).isBefore(Y(r.to)) && i("selectedRange", { range: r, chartId: n.id });
3186
3182
  }, p = j(() => n.series), C = j(() => c()), N = () => i("chartUpdated"), E = (P, R, K) => {
3187
3183
  i("dataPointSelection", { id: n.id, chartContext: R, config: K, event: P });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hotelinking/ui",
3
3
  "private": false,
4
- "version": "16.49.17",
4
+ "version": "16.49.19",
5
5
  "files": [
6
6
  "dist"
7
7
  ],