@hotelinking/ui 16.49.19 → 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
@@ -71,6 +71,14 @@ export declare type chartOptionsType = {
71
71
  };
72
72
  stacked?: boolean;
73
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
  };
@@ -511,20 +538,27 @@ export declare interface UiChartInterface {
511
538
  series: {
512
539
  name: string;
513
540
  type?: "area" | "line" | "bar" | "scatter" | "rangeBar";
514
- data: number[];
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 */