@ovalbee/reportifact 0.0.1
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/README.md +841 -0
- package/dist/Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs +1 -0
- package/dist/Chart.vue_vue_type_style_index_0_lang-BYILFTfl.js +5895 -0
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs +1 -0
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-DPY6mSdA.js +191 -0
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-BZbc-Wkf.js +49 -0
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs +1 -0
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs +1 -0
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js +33 -0
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs +1 -0
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js +132 -0
- package/dist/Reportifact.vue.d.ts +40 -0
- package/dist/ReportifactWidgetHost-A73gQ3bT.cjs +1 -0
- package/dist/ReportifactWidgetHost-BjKBwCWI.js +17 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BIyC7N9b.cjs +2 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BnrgKBMh.js +2598 -0
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs +1 -0
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js +59 -0
- package/dist/components/TableOfContents.vue.d.ts +15 -0
- package/dist/composables/useDelayedLoading.d.ts +6 -0
- package/dist/composables/useFetch.d.ts +13 -0
- package/dist/customWidgets.d.ts +18 -0
- package/dist/entries/chart.d.ts +3 -0
- package/dist/entries/contracts.d.ts +3 -0
- package/dist/entries/figure.d.ts +1 -0
- package/dist/entries/host.d.ts +1 -0
- package/dist/entries/imageGallery.d.ts +3 -0
- package/dist/entries/metricCallout.d.ts +2 -0
- package/dist/entries/metricCards.d.ts +2 -0
- package/dist/entries/metricsTable.d.ts +2 -0
- package/dist/entries/timeline.d.ts +2 -0
- package/dist/index-DFz2A8yJ.js +21229 -0
- package/dist/index-DmTzvbys.cjs +47 -0
- package/dist/index.d.ts +6 -0
- package/dist/markdownTable-B5207r3E.js +32 -0
- package/dist/markdownTable-Cbn1Du3L.cjs +2 -0
- package/dist/mediaResolver.d.ts +18 -0
- package/dist/middleware.cjs +1 -0
- package/dist/middleware.d.ts +21 -0
- package/dist/middleware.js +177 -0
- package/dist/portable/ReportifactFigure.vue.d.ts +36 -0
- package/dist/portable/ReportifactWidgetHost.vue.d.ts +17 -0
- package/dist/portable/contracts.d.ts +54 -0
- package/dist/reportifact.cjs +67 -0
- package/dist/reportifact.d.ts +2 -0
- package/dist/reportifact.js +5272 -0
- package/dist/style.css +13 -0
- package/dist/useFetch-BfOAq-Kg.cjs +1 -0
- package/dist/useFetch-CHQm_TmB.js +35 -0
- package/dist/utils/createMarked.d.ts +7 -0
- package/dist/utils/parseIndexMd.d.ts +29 -0
- package/dist/utils/tfeventsParser.cjs +1 -0
- package/dist/utils/tfeventsParser.d.ts +21 -0
- package/dist/utils/tfeventsParser.js +336 -0
- package/dist/widgets/Card.vue.d.ts +6 -0
- package/dist/widgets/Chart.vue.d.ts +26 -0
- package/dist/widgets/HelpTooltip.vue.d.ts +5 -0
- package/dist/widgets/ImageGallery.vue.d.ts +26 -0
- package/dist/widgets/Markdown.vue.d.ts +8 -0
- package/dist/widgets/MetricCallout.vue.d.ts +19 -0
- package/dist/widgets/MetricCards.vue.d.ts +13 -0
- package/dist/widgets/MetricTable.vue.d.ts +6 -0
- package/dist/widgets/MetricsTable.vue.d.ts +17 -0
- package/dist/widgets/ModelClassComparison.vue.d.ts +7 -0
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +15 -0
- package/dist/widgets/Notice.vue.d.ts +6 -0
- package/dist/widgets/ReportifactWidget.vue.d.ts +23 -0
- package/dist/widgets/Scope.vue.d.ts +8 -0
- package/dist/widgets/Table.vue.d.ts +18 -0
- package/dist/widgets/Tensorboard.vue.d.ts +13 -0
- package/dist/widgets/Timeline.vue.d.ts +21 -0
- package/dist/widgets/WidgetWrapper.vue.d.ts +28 -0
- package/dist/widgets/chart-config/barGradient.d.ts +2 -0
- package/dist/widgets/chart-config/barGrouped.d.ts +2 -0
- package/dist/widgets/chart-config/barNormalized.d.ts +2 -0
- package/dist/widgets/chart-config/barStacked.d.ts +2 -0
- package/dist/widgets/chart-config/customGauge.d.ts +2 -0
- package/dist/widgets/chart-config/gaugeGrade.d.ts +2 -0
- package/dist/widgets/chart-config/heatmap.d.ts +2 -0
- package/dist/widgets/chart-config/index.d.ts +4 -0
- package/dist/widgets/chart-config/line.d.ts +2 -0
- package/dist/widgets/chart-config/pie.d.ts +2 -0
- package/dist/widgets/chart-config/radar.d.ts +2 -0
- package/dist/widgets/chart-config/shared.d.ts +15 -0
- package/dist/widgets/chart-config/types.d.ts +96 -0
- package/dist/widgets/chart.cjs +1 -0
- package/dist/widgets/chart.d.ts +6 -0
- package/dist/widgets/chart.js +5 -0
- package/dist/widgets/chartSizing.d.ts +1 -0
- package/dist/widgets/contracts.cjs +1 -0
- package/dist/widgets/contracts.d.ts +2 -0
- package/dist/widgets/contracts.js +1 -0
- package/dist/widgets/figure.cjs +1 -0
- package/dist/widgets/figure.d.ts +6 -0
- package/dist/widgets/figure.js +84 -0
- package/dist/widgets/host.cjs +1 -0
- package/dist/widgets/host.d.ts +6 -0
- package/dist/widgets/host.js +5 -0
- package/dist/widgets/image-gallery.cjs +1 -0
- package/dist/widgets/image-gallery.d.ts +6 -0
- package/dist/widgets/image-gallery.js +5 -0
- package/dist/widgets/markdownTable.d.ts +4 -0
- package/dist/widgets/metric-callout.cjs +1 -0
- package/dist/widgets/metric-callout.d.ts +6 -0
- package/dist/widgets/metric-callout.js +5 -0
- package/dist/widgets/metric-cards.cjs +1 -0
- package/dist/widgets/metric-cards.d.ts +6 -0
- package/dist/widgets/metric-cards.js +5 -0
- package/dist/widgets/metrics-table.cjs +1 -0
- package/dist/widgets/metrics-table.d.ts +6 -0
- package/dist/widgets/metrics-table.js +5 -0
- package/dist/widgets/scope.d.ts +77 -0
- package/dist/widgets/timeline.cjs +1 -0
- package/dist/widgets/timeline.d.ts +6 -0
- package/dist/widgets/timeline.js +5 -0
- package/package.json +125 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WidgetItem } from '../utils/parseIndexMd';
|
|
2
|
+
import { ReportifactMetricCardData } from '../portable/contracts';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
widget?: WidgetItem;
|
|
5
|
+
content?: string;
|
|
6
|
+
data?: ReportifactMetricCardData[];
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
data: ReportifactMetricCardData[];
|
|
10
|
+
widget: WidgetItem;
|
|
11
|
+
content: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetItem } from '../utils/parseIndexMd';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
widget: WidgetItem;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReportifactMetricsTableData } from '../portable/contracts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
url?: string;
|
|
4
|
+
src?: string;
|
|
5
|
+
data?: ReportifactMetricsTableData;
|
|
6
|
+
options?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
declare function refresh(): void;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
10
|
+
refresh: typeof refresh;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
options: Record<string, unknown>;
|
|
13
|
+
data: ReportifactMetricsTableData;
|
|
14
|
+
url: string;
|
|
15
|
+
src: string;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
url: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
5
|
+
refresh(): void;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WidgetItem } from '../utils/parseIndexMd';
|
|
2
|
+
import { ReportifactMediaResolver } from '../mediaResolver';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
widget: WidgetItem;
|
|
5
|
+
url: string;
|
|
6
|
+
mediaResolver?: ReportifactMediaResolver;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
refresh(): void;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"row-click": (payload: unknown) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onRow-click"?: ((payload: unknown) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetItem } from '../utils/parseIndexMd';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
widget: WidgetItem;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WidgetItem } from '../utils/parseIndexMd';
|
|
2
|
+
import { ReportifactMediaResolver } from '../mediaResolver';
|
|
3
|
+
import { ReportifactCustomWidgets, ReportifactWidgetContext } from '../customWidgets';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
widget: WidgetItem;
|
|
6
|
+
url: string;
|
|
7
|
+
mediaResolver?: ReportifactMediaResolver;
|
|
8
|
+
customWidgets?: ReportifactCustomWidgets;
|
|
9
|
+
context: ReportifactWidgetContext;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
12
|
+
refresh(): void;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"row-click": (payload: unknown) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onRow-click"?: ((payload: unknown) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
mediaResolver: ReportifactMediaResolver;
|
|
19
|
+
customWidgets: ReportifactCustomWidgets;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
widgetRef: unknown;
|
|
22
|
+
}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
url: string;
|
|
3
|
+
options?: Record<string, unknown>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
|
+
root: HTMLDivElement;
|
|
7
|
+
}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface TableOptions {
|
|
2
|
+
columnTooltips?: Record<string, string>;
|
|
3
|
+
pageSize?: number;
|
|
4
|
+
fixFirstColumn?: boolean;
|
|
5
|
+
hideHeader?: boolean;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
url: string;
|
|
9
|
+
options?: TableOptions;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"row-click": (payload: unknown) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onRow-click"?: ((payload: unknown) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
options: TableOptions;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
url: string;
|
|
3
|
+
options?: {
|
|
4
|
+
maxPoints?: number;
|
|
5
|
+
smooth?: boolean;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare function refresh(): void;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
+
refresh: typeof refresh;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReportifactTimelineData } from '../portable/contracts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
url?: string;
|
|
4
|
+
src?: string;
|
|
5
|
+
data?: ReportifactTimelineData;
|
|
6
|
+
options?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
declare function refresh(): void;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
10
|
+
refresh: typeof refresh;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"row-click": (payload: unknown) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onRow-click"?: ((payload: unknown) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
options: Record<string, unknown>;
|
|
17
|
+
data: ReportifactTimelineData;
|
|
18
|
+
url: string;
|
|
19
|
+
src: string;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
loading: boolean;
|
|
3
|
+
error: string | null;
|
|
4
|
+
showSkeleton?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
skeleton?(_: {}): any;
|
|
10
|
+
fallback?(_: {
|
|
11
|
+
error: string;
|
|
12
|
+
}): any;
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
showSkeleton: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChartBuilderOptions, ChartConfigBuilders, ChartOption, ChartType } from './types';
|
|
2
|
+
export type { ChartBuilderOptions, ChartOption, ChartType } from './types';
|
|
3
|
+
export declare const chartConfigBuilders: ChartConfigBuilders;
|
|
4
|
+
export declare function buildChartConfig(type: ChartType, data: unknown, options?: ChartBuilderOptions): ChartOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GridComponentOption, TitleComponentOption, TooltipComponentOption } from 'echarts';
|
|
2
|
+
import { ChartBuilderOptions } from './types';
|
|
3
|
+
export declare function getStringOption(options: ChartBuilderOptions | undefined, key: string, fallback: string): string;
|
|
4
|
+
export declare function buildBaseChartOptions(): {
|
|
5
|
+
animationDurationUpdate: number;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function buildChartTitle(options: ChartBuilderOptions | undefined, defaultTitle: string, overrides?: TitleComponentOption): TitleComponentOption;
|
|
9
|
+
export declare function buildStandardGrid(bottom?: string): GridComponentOption;
|
|
10
|
+
export declare function buildTooltip(overrides?: TooltipComponentOption): TooltipComponentOption;
|
|
11
|
+
export declare function heatmapTuple(entry: unknown): [number, number, number] | null;
|
|
12
|
+
export declare function getHeatmapValueRange(data: unknown[]): {
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ComposeOption } from 'echarts/core';
|
|
2
|
+
import { BarSeriesOption, GaugeSeriesOption, GridComponentOption, HeatmapSeriesOption, LegendComponentOption, LineSeriesOption, PieSeriesOption, RadarComponentOption, RadarSeriesOption, TitleComponentOption, TooltipComponentOption, VisualMapComponentOption } from 'echarts';
|
|
3
|
+
export type ChartOption = ComposeOption<PieSeriesOption | LineSeriesOption | RadarSeriesOption | BarSeriesOption | GaugeSeriesOption | HeatmapSeriesOption | TitleComponentOption | TooltipComponentOption | LegendComponentOption | GridComponentOption | RadarComponentOption | VisualMapComponentOption>;
|
|
4
|
+
export type PieChartPoint = {
|
|
5
|
+
value: number;
|
|
6
|
+
name: string;
|
|
7
|
+
clickId?: string;
|
|
8
|
+
};
|
|
9
|
+
export type PieChartData = PieChartPoint[] | {
|
|
10
|
+
data: PieChartPoint[];
|
|
11
|
+
click?: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type ChartNumberPoint = number | {
|
|
14
|
+
value: number;
|
|
15
|
+
clickId?: string;
|
|
16
|
+
};
|
|
17
|
+
export type LineChartData = {
|
|
18
|
+
xAxis?: string[];
|
|
19
|
+
legend?: string[];
|
|
20
|
+
series?: LineSeriesOption[];
|
|
21
|
+
};
|
|
22
|
+
export type RadarChartData = {
|
|
23
|
+
indicator: {
|
|
24
|
+
name: string;
|
|
25
|
+
max: number;
|
|
26
|
+
}[];
|
|
27
|
+
legend?: string[];
|
|
28
|
+
series: {
|
|
29
|
+
name: string;
|
|
30
|
+
value: number[];
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
export type BarNormalizedData = {
|
|
34
|
+
xAxis: string[];
|
|
35
|
+
legend: string[];
|
|
36
|
+
series: {
|
|
37
|
+
name: string;
|
|
38
|
+
data: ChartNumberPoint[];
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
export type HeatmapData = {
|
|
42
|
+
xAxis: string[];
|
|
43
|
+
yAxis: string[];
|
|
44
|
+
data: ([number, number, number] | {
|
|
45
|
+
value: [number, number, number];
|
|
46
|
+
clickId?: string;
|
|
47
|
+
})[];
|
|
48
|
+
};
|
|
49
|
+
export type BarGradientData = {
|
|
50
|
+
xAxis: string[];
|
|
51
|
+
data: ChartNumberPoint[];
|
|
52
|
+
};
|
|
53
|
+
export type BarGroupedData = {
|
|
54
|
+
xAxis: string[];
|
|
55
|
+
legend: string[];
|
|
56
|
+
series: {
|
|
57
|
+
name: string;
|
|
58
|
+
data: ChartNumberPoint[];
|
|
59
|
+
}[];
|
|
60
|
+
};
|
|
61
|
+
export type BarStackedData = {
|
|
62
|
+
xAxis: string[];
|
|
63
|
+
legend: string[];
|
|
64
|
+
series: {
|
|
65
|
+
name: string;
|
|
66
|
+
data: ChartNumberPoint[];
|
|
67
|
+
color?: string;
|
|
68
|
+
}[];
|
|
69
|
+
};
|
|
70
|
+
export type CustomGaugeData = {
|
|
71
|
+
value: number;
|
|
72
|
+
name?: string;
|
|
73
|
+
unit?: string;
|
|
74
|
+
};
|
|
75
|
+
export type GaugeGradeData = {
|
|
76
|
+
value: number;
|
|
77
|
+
grade?: string;
|
|
78
|
+
};
|
|
79
|
+
export type ChartType = 'pie' | 'line' | 'radar' | 'bar-normalized' | 'heatmap' | 'bar-gradient' | 'bar-grouped' | 'bar-stacked' | 'custom-gauge' | 'gauge-grade';
|
|
80
|
+
export type ChartBuilderOptions = Record<string, unknown>;
|
|
81
|
+
export interface ChartDataMap {
|
|
82
|
+
pie: PieChartData;
|
|
83
|
+
line: LineChartData;
|
|
84
|
+
radar: RadarChartData;
|
|
85
|
+
'bar-normalized': BarNormalizedData;
|
|
86
|
+
heatmap: HeatmapData;
|
|
87
|
+
'bar-gradient': BarGradientData;
|
|
88
|
+
'bar-grouped': BarGroupedData;
|
|
89
|
+
'bar-stacked': BarStackedData;
|
|
90
|
+
'custom-gauge': CustomGaugeData;
|
|
91
|
+
'gauge-grade': GaugeGradeData;
|
|
92
|
+
}
|
|
93
|
+
export type ChartConfigBuilder<K extends ChartType = ChartType> = (data: ChartDataMap[K], options?: ChartBuilderOptions) => ChartOption;
|
|
94
|
+
export type ChartConfigBuilders = {
|
|
95
|
+
[K in ChartType]: ChartConfigBuilder<K>;
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs");exports.ReportifactChart=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveChartHeight(options?: Record<string, unknown>, fallback?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../ReportifactWidgetHost-A73gQ3bT.cjs"),i=require("../WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs"),n={class:"reportifact-figure"},d={key:0,class:"reportifact-figure-title"},s=["src","alt"],f={key:1,class:"reportifact-widget-error-message"},u={key:1},k=["src","alt"],g={key:0,class:"reportifact-figure-caption"},m={key:0},y=["href"],a=e.defineComponent({__name:"ReportifactFigure",props:{title:{default:void 0},caption:{default:void 0},loading:{type:Boolean,default:!1},error:{default:null},fallbackSrc:{default:void 0},fallbackAlt:{default:void 0},sourceHref:{default:void 0},sourceLabel:{default:"View source data"}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("figure",n,[e.createVNode(r.ReportifactWidgetHost,null,{default:e.withCtx(()=>[t.title?(e.openBlock(),e.createElementBlock("div",d,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createVNode(i._sfc_main,{loading:t.loading,error:t.error},{skeleton:e.withCtx(()=>[...l[0]||(l[0]=[e.createElementVNode("div",{class:"reportifact-figure-skeleton"},[e.createElementVNode("div",{class:"reportifact-skeleton-line",style:{width:"42%"}}),e.createElementVNode("div",{class:"reportifact-skeleton-line",style:{width:"100%",flex:"1"}})],-1)])]),fallback:e.withCtx(({error:c})=>[t.fallbackSrc?(e.openBlock(),e.createElementBlock("img",{key:0,class:"reportifact-figure-fallback",src:t.fallbackSrc,alt:t.fallbackAlt||t.title||t.caption||"Widget preview",loading:"lazy"},null,8,s)):(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(c),1))]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["loading","error"]),t.fallbackSrc?(e.openBlock(),e.createElementBlock("noscript",u,[e.createElementVNode("img",{class:"reportifact-figure-fallback",src:t.fallbackSrc,alt:t.fallbackAlt||t.title||t.caption||"Widget preview",loading:"lazy"},null,8,k)])):e.createCommentVNode("",!0)]),_:3}),t.caption||t.sourceHref?(e.openBlock(),e.createElementBlock("figcaption",g,[t.caption?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.caption),1)):e.createCommentVNode("",!0),t.sourceHref?(e.openBlock(),e.createElementBlock("a",{key:1,href:t.sourceHref},e.toDisplayString(t.sourceLabel),9,y)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}});exports.ReportifactFigure=a;exports.default=a;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as d, createElementBlock as t, openBlock as a, createVNode as f, createCommentVNode as l, withCtx as i, toDisplayString as r, renderSlot as u, createElementVNode as c } from "vue";
|
|
2
|
+
import { R as g } from "../ReportifactWidgetHost-BjKBwCWI.js";
|
|
3
|
+
import { _ as k } from "../WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js";
|
|
4
|
+
const m = { class: "reportifact-figure" }, b = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "reportifact-figure-title"
|
|
7
|
+
}, h = ["src", "alt"], y = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "reportifact-widget-error-message"
|
|
10
|
+
}, v = { key: 1 }, w = ["src", "alt"], S = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "reportifact-figure-caption"
|
|
13
|
+
}, H = { key: 0 }, R = ["href"], B = /* @__PURE__ */ d({
|
|
14
|
+
__name: "ReportifactFigure",
|
|
15
|
+
props: {
|
|
16
|
+
title: { default: void 0 },
|
|
17
|
+
caption: { default: void 0 },
|
|
18
|
+
loading: { type: Boolean, default: !1 },
|
|
19
|
+
error: { default: null },
|
|
20
|
+
fallbackSrc: { default: void 0 },
|
|
21
|
+
fallbackAlt: { default: void 0 },
|
|
22
|
+
sourceHref: { default: void 0 },
|
|
23
|
+
sourceLabel: { default: "View source data" }
|
|
24
|
+
},
|
|
25
|
+
setup(e) {
|
|
26
|
+
return (n, o) => (a(), t("figure", m, [
|
|
27
|
+
f(g, null, {
|
|
28
|
+
default: i(() => [
|
|
29
|
+
e.title ? (a(), t("div", b, r(e.title), 1)) : l("", !0),
|
|
30
|
+
f(k, {
|
|
31
|
+
loading: e.loading,
|
|
32
|
+
error: e.error
|
|
33
|
+
}, {
|
|
34
|
+
skeleton: i(() => [...o[0] || (o[0] = [
|
|
35
|
+
c("div", { class: "reportifact-figure-skeleton" }, [
|
|
36
|
+
c("div", {
|
|
37
|
+
class: "reportifact-skeleton-line",
|
|
38
|
+
style: { width: "42%" }
|
|
39
|
+
}),
|
|
40
|
+
c("div", {
|
|
41
|
+
class: "reportifact-skeleton-line",
|
|
42
|
+
style: { width: "100%", flex: "1" }
|
|
43
|
+
})
|
|
44
|
+
], -1)
|
|
45
|
+
])]),
|
|
46
|
+
fallback: i(({ error: s }) => [
|
|
47
|
+
e.fallbackSrc ? (a(), t("img", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "reportifact-figure-fallback",
|
|
50
|
+
src: e.fallbackSrc,
|
|
51
|
+
alt: e.fallbackAlt || e.title || e.caption || "Widget preview",
|
|
52
|
+
loading: "lazy"
|
|
53
|
+
}, null, 8, h)) : (a(), t("div", y, r(s), 1))
|
|
54
|
+
]),
|
|
55
|
+
default: i(() => [
|
|
56
|
+
u(n.$slots, "default")
|
|
57
|
+
]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 8, ["loading", "error"]),
|
|
60
|
+
e.fallbackSrc ? (a(), t("noscript", v, [
|
|
61
|
+
c("img", {
|
|
62
|
+
class: "reportifact-figure-fallback",
|
|
63
|
+
src: e.fallbackSrc,
|
|
64
|
+
alt: e.fallbackAlt || e.title || e.caption || "Widget preview",
|
|
65
|
+
loading: "lazy"
|
|
66
|
+
}, null, 8, w)
|
|
67
|
+
])) : l("", !0)
|
|
68
|
+
]),
|
|
69
|
+
_: 3
|
|
70
|
+
}),
|
|
71
|
+
e.caption || e.sourceHref ? (a(), t("figcaption", S, [
|
|
72
|
+
e.caption ? (a(), t("span", H, r(e.caption), 1)) : l("", !0),
|
|
73
|
+
e.sourceHref ? (a(), t("a", {
|
|
74
|
+
key: 1,
|
|
75
|
+
href: e.sourceHref
|
|
76
|
+
}, r(e.sourceLabel), 9, R)) : l("", !0)
|
|
77
|
+
])) : l("", !0)
|
|
78
|
+
]));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
B as ReportifactFigure,
|
|
83
|
+
B as default
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ReportifactWidgetHost-A73gQ3bT.cjs");exports.ReportifactWidgetHost=t.ReportifactWidgetHost;exports.default=t.ReportifactWidgetHost;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs");exports.ReportifactImageGallery=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type MarkdownTableRow = Record<string, string>;
|
|
2
|
+
export declare function parseMarkdownTable(content: string): MarkdownTableRow[];
|
|
3
|
+
export declare function metricTone(value: string | number | undefined): 'low' | 'mid' | 'high';
|
|
4
|
+
export declare function metricPercent(value: string | number | undefined): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs");exports.ReportifactMetricCallout=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs");exports.ReportifactMetricCards=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs");exports.ReportifactMetricsTable=e._sfc_main;exports.default=e._sfc_main;
|