@design.estate/dees-catalog 3.50.2 → 3.51.0

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '3.50.2',
6
+ version: '3.51.0',
7
7
  description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNkJBQTZCO0lBQ25DLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSxzSkFBc0o7Q0FDcEssQ0FBQSJ9
@@ -1,17 +1,11 @@
1
1
  import { DeesElement, type TemplateResult } from '@design.estate/dees-element';
2
- import type ApexCharts from 'apexcharts';
3
- type ApexAxisChartSeries = {
2
+ import type { IChartApi } from 'lightweight-charts';
3
+ export type ChartSeriesConfig = {
4
4
  name?: string;
5
- type?: string;
6
- color?: string;
7
- group?: string;
8
- hidden?: boolean;
9
- zIndex?: number;
10
- data: (number | null)[] | {
5
+ data: Array<{
11
6
  x: any;
12
- y: any;
13
- [key: string]: any;
14
- }[] | [number, number | null][] | number[][];
7
+ y: number;
8
+ }>;
15
9
  }[];
16
10
  declare global {
17
11
  interface HTMLElementTagNameMap {
@@ -21,42 +15,47 @@ declare global {
21
15
  export declare class DeesChartArea extends DeesElement {
22
16
  static demo: () => TemplateResult<1>;
23
17
  static demoGroups: string[];
24
- accessor chart: ApexCharts;
18
+ accessor chart: IChartApi | null;
25
19
  accessor label: string;
26
- accessor series: ApexAxisChartSeries;
27
- get chartSeries(): ApexAxisChartSeries;
20
+ accessor series: ChartSeriesConfig;
21
+ get chartSeries(): ChartSeriesConfig;
28
22
  accessor yAxisFormatter: (value: number) => string;
29
23
  accessor rollingWindow: number;
30
24
  accessor realtimeMode: boolean;
31
25
  accessor yAxisScaling: 'fixed' | 'dynamic' | 'percentage';
32
26
  accessor yAxisMax: number;
33
27
  accessor autoScrollInterval: number;
34
- private resizeObserver;
35
- private resizeTimeout;
36
28
  private internalChartData;
37
29
  private autoScrollTimer;
38
- private readonly DEBUG_RESIZE;
30
+ private lcBundle;
31
+ private seriesApis;
32
+ private priceLines;
33
+ private tooltipEl;
39
34
  private readonly CHART_COLORS;
40
35
  constructor();
41
- connectedCallback(): Promise<void>;
42
36
  static styles: import("@design.estate/dees-element").CSSResult[];
43
37
  render(): TemplateResult;
38
+ private convertDataToLC;
39
+ private hslToRgba;
40
+ private getSeriesColors;
41
+ private applyTheme;
42
+ private recreateSeries;
43
+ private updatePriceLines;
44
+ private setupTooltip;
44
45
  firstUpdated(): Promise<void>;
45
46
  updated(changedProperties: Map<string, any>): Promise<void>;
46
- updateSeries(newSeries: ApexAxisChartSeries, animate?: boolean): Promise<void>;
47
+ updateSeries(newSeries: ChartSeriesConfig, animate?: boolean): Promise<void>;
47
48
  updateTimeWindow(): Promise<void>;
48
49
  appendData(newData: {
49
- data: any[];
50
+ name?: string;
51
+ data: Array<{
52
+ x: any;
53
+ y: number;
54
+ }>;
50
55
  }[]): Promise<void>;
51
- updateOptions(options: ApexCharts.ApexOptions, redrawPaths?: boolean, animate?: boolean): Promise<ApexCharts | undefined>;
56
+ updateOptions(options: Record<string, any>): Promise<void>;
52
57
  resizeChart(): Promise<void>;
53
- /**
54
- * Manually trigger a chart resize. Useful when automatic detection doesn't work.
55
- * This is a convenience method that can be called from outside the component.
56
- */
57
58
  forceResize(): Promise<void>;
58
59
  private startAutoScroll;
59
60
  private stopAutoScroll;
60
- private updateChartTheme;
61
61
  }
62
- export {};