semaphor 0.0.76 → 0.0.78
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/chunks/index-1p9AH5Uv.js +443 -0
- package/dist/chunks/{dashboard-plus-bg-mRdBZ.js → index-7kOro_zu.js} +2509 -2159
- package/dist/chunks/index-DoHEkv9j.js +245 -0
- package/dist/chunks/{index-CbTZvlIM.js → index-zdZ1lpAC.js} +31931 -28495
- package/dist/chunks/{lucide-react-te4lV1WE.js → lucide-react-Mpu2F2_p.js} +4541 -4558
- package/dist/chunks/{lucide-react-QDPFc4hG.js → lucide-react-vDdGhe6o.js} +536 -541
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +28 -162
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +12 -2
- package/dist/types/main.d.ts +80 -24
- package/dist/types/surfboard.d.ts +12 -2
- package/dist/types/types.d.ts +12 -2
- package/package.json +4 -3
- package/dist/chunks/dashboard-plus-AK0BZVwp.js +0 -240
- package/dist/chunks/index-3mJ0FTjs.js +0 -443
package/dist/surfboard/index.js
CHANGED
|
@@ -209,7 +209,7 @@ declare type StringOptions = {
|
|
|
209
209
|
*/
|
|
210
210
|
export declare type StyleProps = {
|
|
211
211
|
/** Theme for dashboard background */
|
|
212
|
-
canvasTheme?: 'clear' | 'muted';
|
|
212
|
+
canvasTheme?: 'clear' | 'muted' | string;
|
|
213
213
|
/** css class for `dashboard-panel` */
|
|
214
214
|
dashboardPanel?: string;
|
|
215
215
|
/** css class for `dashboard-tabs-container` */
|
|
@@ -300,6 +300,16 @@ export declare type TCardPreferences = {
|
|
|
300
300
|
textVisualOptions?: {
|
|
301
301
|
isDynamicText?: boolean;
|
|
302
302
|
};
|
|
303
|
+
mapVisualOptions?: {
|
|
304
|
+
topoJsonUrl?: string;
|
|
305
|
+
objectKey?: string;
|
|
306
|
+
outlineKey?: string;
|
|
307
|
+
customTopoJsonUrl?: string;
|
|
308
|
+
projection?: string;
|
|
309
|
+
projectionScale?: number;
|
|
310
|
+
projectionOffset?: [number, number];
|
|
311
|
+
colorScale?: string;
|
|
312
|
+
};
|
|
303
313
|
};
|
|
304
314
|
|
|
305
315
|
export declare type TChartOptions = {
|
|
@@ -325,7 +335,7 @@ export declare type TChartOptions = {
|
|
|
325
335
|
indexAxis?: 'x' | 'y' | undefined;
|
|
326
336
|
};
|
|
327
337
|
|
|
328
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'custom';
|
|
338
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'map' | 'custom';
|
|
329
339
|
|
|
330
340
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
331
341
|
columnIdx: number;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -4,11 +4,12 @@ import { ChartConfiguration } from 'chart.js';
|
|
|
4
4
|
import { ChartTypeRegistry } from 'chart.js';
|
|
5
5
|
import { FC } from 'react';
|
|
6
6
|
import { FontSpec } from 'chart.js';
|
|
7
|
+
import { IBubbleMapDataPoint } from 'chartjs-chart-geo';
|
|
8
|
+
import { IChoroplethDataPoint } from 'chartjs-chart-geo';
|
|
7
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
8
10
|
import { Layout } from 'react-grid-layout';
|
|
9
11
|
import { Layouts } from 'react-grid-layout';
|
|
10
12
|
import { Point } from 'chart.js';
|
|
11
|
-
import { default as React_2 } from 'react';
|
|
12
13
|
import { default as ReactGridLayout_2 } from 'react-grid-layout';
|
|
13
14
|
import { StoreApi } from 'zustand';
|
|
14
15
|
import { UseBoundStore } from 'zustand';
|
|
@@ -45,7 +46,6 @@ declare type Actions = {
|
|
|
45
46
|
setCardSql: (sheetId: string, cardId: string, sql: string) => void;
|
|
46
47
|
setCardPython: (cardId: string, pythonCode: string) => void;
|
|
47
48
|
setCardDescription: (sheetId: string, cardId: string, description: string) => void;
|
|
48
|
-
setFrameCardData: (sheetId: string, cardId: string, data: any[]) => void;
|
|
49
49
|
addFrame: (sheetId: string, frame: TFrame, position?: 'start' | 'end') => void;
|
|
50
50
|
updateFrame: (sheetId: string, frame: TFrame) => void;
|
|
51
51
|
updateCard: (sheetId: string, card: TCard) => void;
|
|
@@ -81,7 +81,6 @@ declare type Actions = {
|
|
|
81
81
|
getCardSheet: (cardId: string) => TSheet | undefined;
|
|
82
82
|
getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
|
|
83
83
|
getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
|
|
84
|
-
getSheetFilterValues: (sheetId: string) => TFilterValue[] | undefined;
|
|
85
84
|
handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
|
|
86
85
|
addBaseQuery: (baseQuery: TBaseQuery) => void;
|
|
87
86
|
removeBaseQuery: (baseQueryId: string) => void;
|
|
@@ -114,7 +113,6 @@ declare type Actions_2 = {
|
|
|
114
113
|
setCardSql: (sql: string) => void;
|
|
115
114
|
setCardPython: (python: string) => void;
|
|
116
115
|
setPythonStdOut: (pythonStdOut: string) => void;
|
|
117
|
-
setCardData: (data: any[]) => void;
|
|
118
116
|
setCardCustomCfg: (cfg: any) => void;
|
|
119
117
|
setCardCfg: (cfg: any) => void;
|
|
120
118
|
setShowFilters: (showFilters: boolean) => void;
|
|
@@ -209,15 +207,6 @@ export declare type CustomCard = CardWithContent | CardWithFooter;
|
|
|
209
207
|
|
|
210
208
|
export declare function Dashboard(props: DashboardProps): JSX_2.Element;
|
|
211
209
|
|
|
212
|
-
export declare function DashboardCard({ card, footer, className, ...props }: DashboardCardProps): JSX_2.Element | null;
|
|
213
|
-
|
|
214
|
-
declare type DashboardCardProps = {
|
|
215
|
-
card: TCard;
|
|
216
|
-
footer?: React_2.ReactNode;
|
|
217
|
-
showControls?: boolean;
|
|
218
|
-
fetchCardData?: boolean;
|
|
219
|
-
} & React_2.HTMLAttributes<HTMLDivElement>;
|
|
220
|
-
|
|
221
210
|
declare type DashboardPlusProps = {
|
|
222
211
|
showControls?: boolean;
|
|
223
212
|
showFooter?: boolean;
|
|
@@ -490,7 +479,7 @@ declare type StringOptions = {
|
|
|
490
479
|
*/
|
|
491
480
|
export declare type StyleProps = {
|
|
492
481
|
/** Theme for dashboard background */
|
|
493
|
-
canvasTheme?: 'clear' | 'muted';
|
|
482
|
+
canvasTheme?: 'clear' | 'muted' | string;
|
|
494
483
|
/** css class for `dashboard-panel` */
|
|
495
484
|
dashboardPanel?: string;
|
|
496
485
|
/** css class for `dashboard-tabs-container` */
|
|
@@ -583,6 +572,16 @@ export declare type TCardPreferences = {
|
|
|
583
572
|
textVisualOptions?: {
|
|
584
573
|
isDynamicText?: boolean;
|
|
585
574
|
};
|
|
575
|
+
mapVisualOptions?: {
|
|
576
|
+
topoJsonUrl?: string;
|
|
577
|
+
objectKey?: string;
|
|
578
|
+
outlineKey?: string;
|
|
579
|
+
customTopoJsonUrl?: string;
|
|
580
|
+
projection?: string;
|
|
581
|
+
projectionScale?: number;
|
|
582
|
+
projectionOffset?: [number, number];
|
|
583
|
+
colorScale?: string;
|
|
584
|
+
};
|
|
586
585
|
};
|
|
587
586
|
|
|
588
587
|
declare type TChartConfiguration = ChartConfiguration;
|
|
@@ -610,7 +609,7 @@ export declare type TChartOptions = {
|
|
|
610
609
|
indexAxis?: 'x' | 'y' | undefined;
|
|
611
610
|
};
|
|
612
611
|
|
|
613
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'custom';
|
|
612
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'map' | 'custom';
|
|
614
613
|
|
|
615
614
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
616
615
|
columnIdx: number;
|
|
@@ -739,7 +738,7 @@ export declare function useCard(cardId: string): {
|
|
|
739
738
|
isLoading: boolean;
|
|
740
739
|
isFetching: boolean;
|
|
741
740
|
visualKey: number;
|
|
742
|
-
handleDatapointClick: (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint | null)[], unknown>, datasetIndex: number, clickIndex: number, value: number) => void;
|
|
741
|
+
handleDatapointClick: (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint | IChoroplethDataPoint | IBubbleMapDataPoint | null)[], unknown>, datasetIndex: number, clickIndex: number, value: number) => void;
|
|
743
742
|
cfg: TChartConfiguration | undefined;
|
|
744
743
|
};
|
|
745
744
|
|
|
@@ -755,7 +754,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
755
754
|
currentBreakpoint: Breakpoint;
|
|
756
755
|
theme?: "dark" | "light" | "system" | undefined;
|
|
757
756
|
themeStyle?: {
|
|
758
|
-
canvasTheme?:
|
|
757
|
+
canvasTheme?: string | undefined;
|
|
759
758
|
dashboardPanel?: string | undefined;
|
|
760
759
|
dashboardTabsContainer?: string | undefined;
|
|
761
760
|
dashboardCardContainer?: string | undefined;
|
|
@@ -976,6 +975,16 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
976
975
|
textVisualOptions?: {
|
|
977
976
|
isDynamicText?: boolean | undefined;
|
|
978
977
|
} | undefined;
|
|
978
|
+
mapVisualOptions?: {
|
|
979
|
+
topoJsonUrl?: string | undefined;
|
|
980
|
+
objectKey?: string | undefined;
|
|
981
|
+
outlineKey?: string | undefined;
|
|
982
|
+
customTopoJsonUrl?: string | undefined;
|
|
983
|
+
projection?: string | undefined;
|
|
984
|
+
projectionScale?: number | undefined;
|
|
985
|
+
projectionOffset?: [number, number] | undefined;
|
|
986
|
+
colorScale?: string | undefined;
|
|
987
|
+
} | undefined;
|
|
979
988
|
} | undefined;
|
|
980
989
|
customCardPreferences?: {
|
|
981
990
|
showCardHeader?: boolean | undefined;
|
|
@@ -1187,6 +1196,16 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1187
1196
|
textVisualOptions?: {
|
|
1188
1197
|
isDynamicText?: boolean | undefined;
|
|
1189
1198
|
} | undefined;
|
|
1199
|
+
mapVisualOptions?: {
|
|
1200
|
+
topoJsonUrl?: string | undefined;
|
|
1201
|
+
objectKey?: string | undefined;
|
|
1202
|
+
outlineKey?: string | undefined;
|
|
1203
|
+
customTopoJsonUrl?: string | undefined;
|
|
1204
|
+
projection?: string | undefined;
|
|
1205
|
+
projectionScale?: number | undefined;
|
|
1206
|
+
projectionOffset?: [number, number] | undefined;
|
|
1207
|
+
colorScale?: string | undefined;
|
|
1208
|
+
} | undefined;
|
|
1190
1209
|
} | undefined;
|
|
1191
1210
|
customCardPreferences?: {
|
|
1192
1211
|
showCardHeader?: boolean | undefined;
|
|
@@ -1357,6 +1376,16 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1357
1376
|
textVisualOptions?: {
|
|
1358
1377
|
isDynamicText?: boolean | undefined;
|
|
1359
1378
|
} | undefined;
|
|
1379
|
+
mapVisualOptions?: {
|
|
1380
|
+
topoJsonUrl?: string | undefined;
|
|
1381
|
+
objectKey?: string | undefined;
|
|
1382
|
+
outlineKey?: string | undefined;
|
|
1383
|
+
customTopoJsonUrl?: string | undefined;
|
|
1384
|
+
projection?: string | undefined;
|
|
1385
|
+
projectionScale?: number | undefined;
|
|
1386
|
+
projectionOffset?: [number, number] | undefined;
|
|
1387
|
+
colorScale?: string | undefined;
|
|
1388
|
+
} | undefined;
|
|
1360
1389
|
} | undefined;
|
|
1361
1390
|
customCardPreferences?: {
|
|
1362
1391
|
showCardHeader?: boolean | undefined;
|
|
@@ -1389,7 +1418,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1389
1418
|
}[] | undefined;
|
|
1390
1419
|
style?: {
|
|
1391
1420
|
default: {
|
|
1392
|
-
canvasTheme?:
|
|
1421
|
+
canvasTheme?: string | undefined;
|
|
1393
1422
|
dashboardPanel?: string | undefined;
|
|
1394
1423
|
dashboardTabsContainer?: string | undefined;
|
|
1395
1424
|
dashboardCardContainer?: string | undefined;
|
|
@@ -1414,7 +1443,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1414
1443
|
} | undefined;
|
|
1415
1444
|
};
|
|
1416
1445
|
dark?: {
|
|
1417
|
-
canvasTheme?:
|
|
1446
|
+
canvasTheme?: string | undefined;
|
|
1418
1447
|
dashboardPanel?: string | undefined;
|
|
1419
1448
|
dashboardTabsContainer?: string | undefined;
|
|
1420
1449
|
dashboardCardContainer?: string | undefined;
|
|
@@ -1489,7 +1518,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1489
1518
|
}[] | undefined;
|
|
1490
1519
|
globalStyle?: {
|
|
1491
1520
|
default: {
|
|
1492
|
-
canvasTheme?:
|
|
1521
|
+
canvasTheme?: string | undefined;
|
|
1493
1522
|
dashboardPanel?: string | undefined;
|
|
1494
1523
|
dashboardTabsContainer?: string | undefined;
|
|
1495
1524
|
dashboardCardContainer?: string | undefined;
|
|
@@ -1514,7 +1543,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1514
1543
|
} | undefined;
|
|
1515
1544
|
};
|
|
1516
1545
|
dark?: {
|
|
1517
|
-
canvasTheme?:
|
|
1546
|
+
canvasTheme?: string | undefined;
|
|
1518
1547
|
dashboardPanel?: string | undefined;
|
|
1519
1548
|
dashboardTabsContainer?: string | undefined;
|
|
1520
1549
|
dashboardCardContainer?: string | undefined;
|
|
@@ -1687,6 +1716,16 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1687
1716
|
textVisualOptions?: {
|
|
1688
1717
|
isDynamicText?: boolean | undefined;
|
|
1689
1718
|
} | undefined;
|
|
1719
|
+
mapVisualOptions?: {
|
|
1720
|
+
topoJsonUrl?: string | undefined;
|
|
1721
|
+
objectKey?: string | undefined;
|
|
1722
|
+
outlineKey?: string | undefined;
|
|
1723
|
+
customTopoJsonUrl?: string | undefined;
|
|
1724
|
+
projection?: string | undefined;
|
|
1725
|
+
projectionScale?: number | undefined;
|
|
1726
|
+
projectionOffset?: [number, number] | undefined;
|
|
1727
|
+
colorScale?: string | undefined;
|
|
1728
|
+
} | undefined;
|
|
1690
1729
|
} | undefined;
|
|
1691
1730
|
customCardPreferences?: {
|
|
1692
1731
|
showCardHeader?: boolean | undefined;
|
|
@@ -1806,7 +1845,6 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1806
1845
|
setCardSql: (sheetId: string, cardId: string, sql: string) => void;
|
|
1807
1846
|
setCardPython: (cardId: string, pythonCode: string) => void;
|
|
1808
1847
|
setCardDescription: (sheetId: string, cardId: string, description: string) => void;
|
|
1809
|
-
setFrameCardData: (sheetId: string, cardId: string, data: any[]) => void;
|
|
1810
1848
|
addFrame: (sheetId: string, frame: TFrame, position?: 'start' | 'end') => void;
|
|
1811
1849
|
updateFrame: (sheetId: string, frame: TFrame) => void;
|
|
1812
1850
|
updateCard: (sheetId: string, card: TCard) => void;
|
|
@@ -1842,7 +1880,6 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1842
1880
|
getCardSheet: (cardId: string) => TSheet | undefined;
|
|
1843
1881
|
getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
|
|
1844
1882
|
getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
|
|
1845
|
-
getSheetFilterValues: (sheetId: string) => TFilterValue[] | undefined;
|
|
1846
1883
|
handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
|
|
1847
1884
|
addBaseQuery: (baseQuery: TBaseQuery) => void;
|
|
1848
1885
|
removeBaseQuery: (baseQueryId: string) => void;
|
|
@@ -1913,7 +1950,6 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1913
1950
|
setCardSql: (sql: string) => void;
|
|
1914
1951
|
setCardPython: (python: string) => void;
|
|
1915
1952
|
setPythonStdOut: (pythonStdOut: string) => void;
|
|
1916
|
-
setCardData: (data: any[]) => void;
|
|
1917
1953
|
setCardCustomCfg: (cfg: any) => void;
|
|
1918
1954
|
setCardCfg: (cfg: any) => void;
|
|
1919
1955
|
setShowFilters: (showFilters: boolean) => void;
|
|
@@ -2082,6 +2118,16 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
2082
2118
|
textVisualOptions?: {
|
|
2083
2119
|
isDynamicText?: boolean | undefined;
|
|
2084
2120
|
} | undefined;
|
|
2121
|
+
mapVisualOptions?: {
|
|
2122
|
+
topoJsonUrl?: string | undefined;
|
|
2123
|
+
objectKey?: string | undefined;
|
|
2124
|
+
outlineKey?: string | undefined;
|
|
2125
|
+
customTopoJsonUrl?: string | undefined;
|
|
2126
|
+
projection?: string | undefined;
|
|
2127
|
+
projectionScale?: number | undefined;
|
|
2128
|
+
projectionOffset?: [number, number] | undefined;
|
|
2129
|
+
colorScale?: string | undefined;
|
|
2130
|
+
} | undefined;
|
|
2085
2131
|
} | undefined;
|
|
2086
2132
|
customCardPreferences?: {
|
|
2087
2133
|
showCardHeader?: boolean | undefined;
|
|
@@ -2251,6 +2297,16 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
2251
2297
|
textVisualOptions?: {
|
|
2252
2298
|
isDynamicText?: boolean | undefined;
|
|
2253
2299
|
} | undefined;
|
|
2300
|
+
mapVisualOptions?: {
|
|
2301
|
+
topoJsonUrl?: string | undefined;
|
|
2302
|
+
objectKey?: string | undefined;
|
|
2303
|
+
outlineKey?: string | undefined;
|
|
2304
|
+
customTopoJsonUrl?: string | undefined;
|
|
2305
|
+
projection?: string | undefined;
|
|
2306
|
+
projectionScale?: number | undefined;
|
|
2307
|
+
projectionOffset?: [number, number] | undefined;
|
|
2308
|
+
colorScale?: string | undefined;
|
|
2309
|
+
} | undefined;
|
|
2254
2310
|
} | undefined;
|
|
2255
2311
|
customCardPreferences?: {
|
|
2256
2312
|
showCardHeader?: boolean | undefined;
|
|
@@ -212,7 +212,7 @@ declare type StringOptions = {
|
|
|
212
212
|
*/
|
|
213
213
|
export declare type StyleProps = {
|
|
214
214
|
/** Theme for dashboard background */
|
|
215
|
-
canvasTheme?: 'clear' | 'muted';
|
|
215
|
+
canvasTheme?: 'clear' | 'muted' | string;
|
|
216
216
|
/** css class for `dashboard-panel` */
|
|
217
217
|
dashboardPanel?: string;
|
|
218
218
|
/** css class for `dashboard-tabs-container` */
|
|
@@ -305,6 +305,16 @@ export declare type TCardPreferences = {
|
|
|
305
305
|
textVisualOptions?: {
|
|
306
306
|
isDynamicText?: boolean;
|
|
307
307
|
};
|
|
308
|
+
mapVisualOptions?: {
|
|
309
|
+
topoJsonUrl?: string;
|
|
310
|
+
objectKey?: string;
|
|
311
|
+
outlineKey?: string;
|
|
312
|
+
customTopoJsonUrl?: string;
|
|
313
|
+
projection?: string;
|
|
314
|
+
projectionScale?: number;
|
|
315
|
+
projectionOffset?: [number, number];
|
|
316
|
+
colorScale?: string;
|
|
317
|
+
};
|
|
308
318
|
};
|
|
309
319
|
|
|
310
320
|
export declare type TChartOptions = {
|
|
@@ -330,7 +340,7 @@ export declare type TChartOptions = {
|
|
|
330
340
|
indexAxis?: 'x' | 'y' | undefined;
|
|
331
341
|
};
|
|
332
342
|
|
|
333
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'custom';
|
|
343
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'map' | 'custom';
|
|
334
344
|
|
|
335
345
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
336
346
|
columnIdx: number;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -206,7 +206,7 @@ declare type StringOptions = {
|
|
|
206
206
|
*/
|
|
207
207
|
export declare type StyleProps = {
|
|
208
208
|
/** Theme for dashboard background */
|
|
209
|
-
canvasTheme?: 'clear' | 'muted';
|
|
209
|
+
canvasTheme?: 'clear' | 'muted' | string;
|
|
210
210
|
/** css class for `dashboard-panel` */
|
|
211
211
|
dashboardPanel?: string;
|
|
212
212
|
/** css class for `dashboard-tabs-container` */
|
|
@@ -297,6 +297,16 @@ export declare type TCardPreferences = {
|
|
|
297
297
|
textVisualOptions?: {
|
|
298
298
|
isDynamicText?: boolean;
|
|
299
299
|
};
|
|
300
|
+
mapVisualOptions?: {
|
|
301
|
+
topoJsonUrl?: string;
|
|
302
|
+
objectKey?: string;
|
|
303
|
+
outlineKey?: string;
|
|
304
|
+
customTopoJsonUrl?: string;
|
|
305
|
+
projection?: string;
|
|
306
|
+
projectionScale?: number;
|
|
307
|
+
projectionOffset?: [number, number];
|
|
308
|
+
colorScale?: string;
|
|
309
|
+
};
|
|
300
310
|
};
|
|
301
311
|
|
|
302
312
|
export declare type TChartOptions = {
|
|
@@ -322,7 +332,7 @@ export declare type TChartOptions = {
|
|
|
322
332
|
indexAxis?: 'x' | 'y' | undefined;
|
|
323
333
|
};
|
|
324
334
|
|
|
325
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'custom';
|
|
335
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'range' | 'text' | 'map' | 'custom';
|
|
326
336
|
|
|
327
337
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
328
338
|
columnIdx: number;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"email": "support@semaphor.cloud"
|
|
6
6
|
},
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.78",
|
|
9
9
|
"description": "Fully interactive and customizable dashboards for your apps.",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"react",
|
|
@@ -69,10 +69,11 @@
|
|
|
69
69
|
"@radix-ui/react-toggle": "^1.0.3",
|
|
70
70
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
71
71
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
72
|
-
"@tanstack/react-query": "^5.15
|
|
72
|
+
"@tanstack/react-query": "^5.62.15",
|
|
73
73
|
"@tanstack/react-table": "^8.11.7",
|
|
74
74
|
"ai": "^3.3.0",
|
|
75
75
|
"chart.js": "^4.4.1",
|
|
76
|
+
"chartjs-chart-geo": "^4.3.4",
|
|
76
77
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
77
78
|
"class-variance-authority": "^0.7.0",
|
|
78
79
|
"clsx": "^2.0.0",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
},
|
|
104
105
|
"devDependencies": {
|
|
105
106
|
"@microsoft/api-extractor": "^7.47.0",
|
|
106
|
-
"@tanstack/react-query-devtools": "^5.
|
|
107
|
+
"@tanstack/react-query-devtools": "^5.62.15",
|
|
107
108
|
"@types/chart.js": "^2.9.41",
|
|
108
109
|
"@types/dompurify": "^3.0.5",
|
|
109
110
|
"@types/jsoneditor": "^9.9.5",
|