@smartnet360/svelte-components 0.0.39 → 0.0.40
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.
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
4
|
import { TreeView, createTreeStore } from '../../core/TreeView';
|
|
5
|
-
import { ChartComponent,
|
|
5
|
+
import { ChartComponent, type Layout, type CellStylingConfig } from '../../core/Charts';
|
|
6
6
|
import { buildTreeNodes, filterChartData, transformChartData, type CellTrafficRecord, defaultCellStyling } from './index';
|
|
7
7
|
import { expandLayoutForCells } from './helper';
|
|
8
8
|
import { log } from '../../core/logger';
|
|
9
9
|
import { onMount } from 'svelte';
|
|
10
|
-
import type { Mode } from '../../index.js';
|
|
10
|
+
import type {ChartMarker, Mode } from '../../index.js';
|
|
11
11
|
|
|
12
12
|
interface Props {
|
|
13
13
|
rawData: CellTrafficRecord[];
|
|
14
14
|
baseLayout: Layout;
|
|
15
15
|
baseMetrics: string[];
|
|
16
16
|
mode: Mode;
|
|
17
|
+
markers?: ChartMarker[];
|
|
17
18
|
cellStyling?: CellStylingConfig; // Optional cell styling config (defaults to defaultCellStyling)
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
let { rawData, baseLayout, baseMetrics, mode = "scrollspy", cellStyling = defaultCellStyling }: Props = $props();
|
|
21
|
+
let { rawData, baseLayout, baseMetrics, mode = "scrollspy", markers = [], cellStyling = defaultCellStyling }: Props = $props();
|
|
21
22
|
|
|
22
23
|
let treeStore = $state<ReturnType<typeof createTreeStore> | null>(null);
|
|
23
24
|
|
|
@@ -125,6 +126,7 @@
|
|
|
125
126
|
layout={chartLayout}
|
|
126
127
|
data={chartData}
|
|
127
128
|
mode={mode}
|
|
129
|
+
markers={markers}
|
|
128
130
|
showGlobalControls={true}
|
|
129
131
|
enableAdaptation={true}
|
|
130
132
|
/>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type Layout, type CellStylingConfig } from '../../core/Charts';
|
|
2
2
|
import { type CellTrafficRecord } from './index';
|
|
3
|
-
import type { Mode } from '../../index.js';
|
|
3
|
+
import type { ChartMarker, Mode } from '../../index.js';
|
|
4
4
|
interface Props {
|
|
5
5
|
rawData: CellTrafficRecord[];
|
|
6
6
|
baseLayout: Layout;
|
|
7
7
|
baseMetrics: string[];
|
|
8
8
|
mode: Mode;
|
|
9
|
+
markers?: ChartMarker[];
|
|
9
10
|
cellStyling?: CellStylingConfig;
|
|
10
11
|
}
|
|
11
12
|
declare const SiteCheck: import("svelte").Component<Props, {}, "">;
|