@hotelinking/ui 16.49.18 → 16.49.20

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,15 @@ 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
+ animations?: {
75
+ enabled: boolean;
76
+ easing?: string;
77
+ speed?: number;
78
+ };
79
+ selection?: {
80
+ enabled: boolean;
81
+ };
74
82
  };
75
83
  colors: any;
76
84
  stroke?: {
@@ -108,8 +116,10 @@ export declare type chartOptionsType = {
108
116
  ];
109
117
  };
110
118
  tooltip?: {
111
- intersect: boolean;
112
- shared: boolean;
119
+ enabled?: boolean;
120
+ intersect?: boolean;
121
+ shared?: boolean;
122
+ followCursor?: boolean;
113
123
  };
114
124
  plotOptions?: {
115
125
  bar: {
@@ -117,6 +127,23 @@ export declare type chartOptionsType = {
117
127
  borderRadius?: number;
118
128
  barHeight?: string;
119
129
  isFunnel?: boolean;
130
+ rangeBarGroupRows?: boolean;
131
+ };
132
+ };
133
+ grid?: {
134
+ show?: boolean;
135
+ borderColor?: string;
136
+ strokeDashArray?: number;
137
+ position?: string;
138
+ xaxis?: {
139
+ lines?: {
140
+ show?: boolean;
141
+ };
142
+ };
143
+ yaxis?: {
144
+ lines?: {
145
+ show?: boolean;
146
+ };
120
147
  };
121
148
  };
122
149
  };
@@ -460,7 +487,7 @@ onDataPointSelection?: ((T: any) => any) | undefined;
460
487
  onMaximizeChart?: ((T: string) => any) | undefined;
461
488
  }>, {
462
489
  loading: boolean;
463
- type: "area" | "line" | "bar" | "scatter";
490
+ type: "area" | "line" | "bar" | "scatter" | "rangeBar";
464
491
  id: string;
465
492
  height: number;
466
493
  empty: boolean;
@@ -506,25 +533,32 @@ export declare interface UiChartInterface {
506
533
  /** chart id */
507
534
  id: string;
508
535
  /** chart type (NOT USED in uiCircleChart && uiFunnelChartV2) */
509
- type?: "area" | "line" | "bar" | "scatter";
536
+ type?: "area" | "line" | "bar" | "scatter" | "rangeBar";
510
537
  /** chart series and if different type, type */
511
538
  series: {
512
539
  name: string;
513
- type?: "area" | "line" | "bar" | "scatter";
514
- data: number[];
540
+ type?: "area" | "line" | "bar" | "scatter" | "rangeBar";
541
+ /** For rangeBar: Array<{x: string, y: [number, number]}> | For other types: number[] */
542
+ data: number[] | Array<{
543
+ x: string;
544
+ y: [number, number];
545
+ }>;
515
546
  }[];
516
547
  /** chart options (NOT USED in uiCircleChart) */
517
548
  options?: {
518
549
  xaxis: {
519
- tickAmount: number;
520
- decimalsInFloat: number;
521
- hideOverlappingLabels: boolean;
522
- type: string;
550
+ tickAmount?: number;
551
+ decimalsInFloat?: number;
552
+ hideOverlappingLabels?: boolean;
553
+ type?: "date" | "datetime" | "category" | "numeric";
523
554
  max?: number;
524
- categories: string[];
555
+ categories?: string[];
525
556
  };
526
- tooltip: {
527
- intersect: boolean;
557
+ tooltip?: {
558
+ enabled?: boolean;
559
+ intersect?: boolean;
560
+ shared?: boolean;
561
+ followCursor?: boolean;
528
562
  };
529
563
  };
530
564
  /** show skeleton */
@@ -873,7 +907,7 @@ onDataPointSelection?: ((T: any) => any) | undefined;
873
907
  onMaximizeChart?: ((T: string) => any) | undefined;
874
908
  }>, {
875
909
  loading: boolean;
876
- type: "area" | "line" | "bar" | "scatter";
910
+ type: "area" | "line" | "bar" | "scatter" | "rangeBar";
877
911
  id: string;
878
912
  range: "24h" | "7d" | "1m" | "3m" | "all";
879
913
  height: number;