@bridge-ui/vue 0.17.3 → 0.18.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.
Files changed (141) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +33 -33
  2. package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
  3. package/dist/Components/ChartAxis/ChartAxis.vue_vue_type_script_setup_true_lang.js +1 -0
  4. package/dist/Components/ChartAxis/chartAxis.types.d.ts +17 -7
  5. package/dist/Components/ChartAxis/composables/useChartAxis.d.ts +2 -2
  6. package/dist/Components/ChartAxis/composables/useChartAxis.js +15 -10
  7. package/dist/Components/ChartBar/ChartBar.js +5 -0
  8. package/dist/Components/ChartBar/ChartBar.vue.d.ts +16 -0
  9. package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +59 -0
  10. package/dist/Components/ChartBar/chartBar.types.d.ts +56 -0
  11. package/dist/Components/ChartBar/composables/useChartBar.d.ts +26 -0
  12. package/dist/Components/ChartBar/composables/useChartBar.js +13 -0
  13. package/dist/Components/ChartBar/index.d.ts +4 -0
  14. package/dist/Components/ChartBar/index.js +4 -0
  15. package/dist/Components/ChartBarSeries/ChartBarSeries.js +5 -0
  16. package/dist/Components/ChartBarSeries/ChartBarSeries.vue.d.ts +6 -0
  17. package/dist/Components/ChartBarSeries/ChartBarSeries.vue_vue_type_script_setup_true_lang.js +25 -0
  18. package/dist/Components/ChartBarSeries/chartBarSeries.types.d.ts +45 -0
  19. package/dist/Components/ChartBarSeries/composables/useChartBarSeries.d.ts +5 -0
  20. package/dist/Components/ChartBarSeries/composables/useChartBarSeries.js +20 -0
  21. package/dist/Components/ChartBarSeries/index.d.ts +3 -0
  22. package/dist/Components/ChartBarSeries/index.js +3 -0
  23. package/dist/Components/ChartFunnel/ChartFunnel.js +5 -0
  24. package/dist/Components/ChartFunnel/ChartFunnel.vue.d.ts +16 -0
  25. package/dist/Components/ChartFunnel/ChartFunnel.vue_vue_type_script_setup_true_lang.js +59 -0
  26. package/dist/Components/ChartFunnel/chartFunnel.types.d.ts +54 -0
  27. package/dist/Components/ChartFunnel/composables/useChartFunnel.d.ts +29 -0
  28. package/dist/Components/ChartFunnel/composables/useChartFunnel.js +68 -0
  29. package/dist/Components/ChartFunnel/index.d.ts +4 -0
  30. package/dist/Components/ChartFunnel/index.js +4 -0
  31. package/dist/Components/ChartLegend/ChartLegend.vue.d.ts +2 -0
  32. package/dist/Components/ChartLegend/ChartLegend.vue_vue_type_script_setup_true_lang.js +33 -13
  33. package/dist/Components/ChartLegend/chartLegend.types.d.ts +41 -5
  34. package/dist/Components/ChartLegend/composables/useChartLegend.d.ts +9 -5
  35. package/dist/Components/ChartLegend/composables/useChartLegend.js +88 -54
  36. package/dist/Components/ChartLine/ChartLine.js +5 -0
  37. package/dist/Components/ChartLine/ChartLine.vue.d.ts +20 -0
  38. package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +76 -0
  39. package/dist/Components/ChartLine/chartLine.types.d.ts +72 -0
  40. package/dist/Components/ChartLine/composables/useChartLine.d.ts +26 -0
  41. package/dist/Components/ChartLine/composables/useChartLine.js +13 -0
  42. package/dist/Components/ChartLine/index.d.ts +4 -0
  43. package/dist/Components/ChartLine/index.js +4 -0
  44. package/dist/Components/ChartLineSeries/ChartLineSeries.js +5 -0
  45. package/dist/Components/ChartLineSeries/ChartLineSeries.vue.d.ts +10 -0
  46. package/dist/Components/ChartLineSeries/ChartLineSeries.vue_vue_type_script_setup_true_lang.js +42 -0
  47. package/dist/Components/ChartLineSeries/chartLineSeries.types.d.ts +75 -0
  48. package/dist/Components/ChartLineSeries/composables/useChartLineSeries.d.ts +5 -0
  49. package/dist/Components/ChartLineSeries/composables/useChartLineSeries.js +25 -0
  50. package/dist/Components/ChartLineSeries/index.d.ts +3 -0
  51. package/dist/Components/ChartLineSeries/index.js +3 -0
  52. package/dist/Components/ChartPie/ChartPie.js +5 -0
  53. package/dist/Components/ChartPie/ChartPie.vue.d.ts +15 -0
  54. package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +73 -0
  55. package/dist/Components/ChartPie/chartPie.types.d.ts +73 -0
  56. package/dist/Components/ChartPie/composables/useChartPie.d.ts +30 -0
  57. package/dist/Components/ChartPie/composables/useChartPie.js +71 -0
  58. package/dist/Components/ChartPie/index.d.ts +4 -0
  59. package/dist/Components/ChartPie/index.js +4 -0
  60. package/dist/Components/ChartScatter/ChartScatter.js +5 -0
  61. package/dist/Components/{Chart/Chart.vue.d.ts → ChartScatter/ChartScatter.vue.d.ts} +3 -2
  62. package/dist/Components/ChartScatter/ChartScatter.vue_vue_type_script_setup_true_lang.js +49 -0
  63. package/dist/Components/ChartScatter/chartScatter.types.d.ts +23 -0
  64. package/dist/Components/ChartScatter/composables/useChartScatter.d.ts +29 -0
  65. package/dist/Components/ChartScatter/composables/useChartScatter.js +103 -0
  66. package/dist/Components/ChartScatter/index.d.ts +4 -0
  67. package/dist/Components/ChartScatter/index.js +4 -0
  68. package/dist/Components/ChartScatterSeries/ChartScatterSeries.js +5 -0
  69. package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue.d.ts +4 -0
  70. package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue_vue_type_script_setup_true_lang.js +21 -0
  71. package/dist/Components/ChartScatterSeries/chartScatterSeries.types.d.ts +38 -0
  72. package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.d.ts +4 -0
  73. package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.js +18 -0
  74. package/dist/Components/ChartScatterSeries/index.d.ts +3 -0
  75. package/dist/Components/ChartScatterSeries/index.js +3 -0
  76. package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +18 -10
  77. package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +24 -9
  78. package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +3 -1
  79. package/dist/Components/ChartTooltip/composables/useChartTooltip.js +78 -64
  80. package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +1 -1
  81. package/dist/Components/Spinner/composables/useSpinner.d.ts +1 -1
  82. package/dist/Utils/Charts/ChartFrame.js +5 -0
  83. package/dist/Utils/Charts/ChartFrame.vue.d.ts +24 -0
  84. package/dist/Utils/Charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +41 -0
  85. package/dist/{Components/Chart → Utils/Charts}/chart.types.d.ts +16 -18
  86. package/dist/Utils/Charts/chartInjectionKey.d.ts +151 -0
  87. package/dist/{Components/Chart → Utils/Charts}/chartInjectionKey.js +2 -2
  88. package/dist/Utils/Charts/echarts/bar.d.ts +6 -0
  89. package/dist/Utils/Charts/echarts/bar.js +22 -0
  90. package/dist/Utils/Charts/echarts/cartesian.d.ts +15 -0
  91. package/dist/Utils/Charts/echarts/cartesian.js +255 -0
  92. package/dist/Utils/Charts/echarts/funnel.d.ts +15 -0
  93. package/dist/Utils/Charts/echarts/funnel.js +79 -0
  94. package/dist/Utils/Charts/echarts/line.d.ts +5 -0
  95. package/dist/Utils/Charts/echarts/line.js +19 -0
  96. package/dist/Utils/Charts/echarts/part.d.ts +19 -0
  97. package/dist/Utils/Charts/echarts/part.js +45 -0
  98. package/dist/Utils/Charts/echarts/pie.d.ts +14 -0
  99. package/dist/Utils/Charts/echarts/pie.js +75 -0
  100. package/dist/Utils/Charts/echarts/plot.d.ts +44 -0
  101. package/dist/Utils/Charts/echarts/plot.js +52 -0
  102. package/dist/Utils/Charts/echarts/scatter.d.ts +14 -0
  103. package/dist/Utils/Charts/echarts/scatter.js +152 -0
  104. package/dist/Utils/Charts/index.d.ts +6 -0
  105. package/dist/Utils/Charts/index.js +6 -0
  106. package/dist/Utils/Charts/useChartCartesian.d.ts +57 -0
  107. package/dist/Utils/Charts/useChartCartesian.js +155 -0
  108. package/dist/Utils/Charts/useChartPart.d.ts +45 -0
  109. package/dist/Utils/Charts/useChartPart.js +97 -0
  110. package/dist/Utils/Charts/useChartRegistry.d.ts +13 -0
  111. package/dist/Utils/Charts/useChartRegistry.js +40 -0
  112. package/dist/Utils/Charts/useChartRoot.d.ts +156 -0
  113. package/dist/Utils/Charts/useChartRoot.js +342 -0
  114. package/dist/Utils/Charts/useChartSeries.d.ts +10 -0
  115. package/dist/Utils/Charts/useChartSeries.js +22 -0
  116. package/dist/augments.d.ts +23 -7
  117. package/docs/README.md +6 -1
  118. package/docs/components/Chart.md +114 -154
  119. package/docs/components/ChartBar.md +137 -0
  120. package/docs/components/ChartFunnel.md +62 -0
  121. package/docs/components/ChartLine.md +151 -0
  122. package/docs/components/ChartPie.md +115 -0
  123. package/docs/components/ChartScatter.md +84 -0
  124. package/package.json +2 -2
  125. package/dist/Components/Chart/Chart.js +0 -5
  126. package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +0 -52
  127. package/dist/Components/Chart/chartInjectionKey.d.ts +0 -94
  128. package/dist/Components/Chart/composables/useChart.d.ts +0 -40
  129. package/dist/Components/Chart/composables/useChart.js +0 -346
  130. package/dist/Components/Chart/echartsChart.d.ts +0 -14
  131. package/dist/Components/Chart/echartsChart.js +0 -199
  132. package/dist/Components/Chart/index.d.ts +0 -4
  133. package/dist/Components/Chart/index.js +0 -4
  134. package/dist/Components/ChartSeries/ChartSeries.js +0 -5
  135. package/dist/Components/ChartSeries/ChartSeries.vue.d.ts +0 -4
  136. package/dist/Components/ChartSeries/ChartSeries.vue_vue_type_script_setup_true_lang.js +0 -24
  137. package/dist/Components/ChartSeries/chartSeries.types.d.ts +0 -37
  138. package/dist/Components/ChartSeries/composables/useChartSeries.d.ts +0 -10
  139. package/dist/Components/ChartSeries/composables/useChartSeries.js +0 -29
  140. package/dist/Components/ChartSeries/index.d.ts +0 -3
  141. package/dist/Components/ChartSeries/index.js +0 -3
@@ -0,0 +1,72 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { ChartCurve, ChartStep } from '@bridge-ui/core/Domain';
3
+ import { MergeHtmlProps } from '@bridge-ui/core/Utils';
4
+ import { ChartRootOwnProps } from '../../Utils/Charts';
5
+ /**
6
+ * Line chart root. Compose with `ChartLineSeries`, `ChartAxis`,
7
+ * `ChartLegend`, and `ChartTooltip`. The plot is drawn by ECharts.
8
+ */
9
+ export interface ChartLineOwnProps extends ChartRootOwnProps {
10
+ /**
11
+ * Fills the area under every series (per-series `area` wins).
12
+ *
13
+ * @default false
14
+ */
15
+ area?: boolean;
16
+ /**
17
+ * Category labels, or dates for a time axis (points spaced by time).
18
+ * Each series has one value per category.
19
+ */
20
+ categories: Date[] | string[];
21
+ /**
22
+ * Interpolation for every series (per-series `curve` wins).
23
+ *
24
+ * @default "linear"
25
+ */
26
+ curve?: ChartCurve;
27
+ /**
28
+ * Formats date categories in the tooltip, data table, and summary.
29
+ * Time axis ticks use `ChartAxis` `formatTick` (it receives the timestamp).
30
+ *
31
+ * @default undefined
32
+ */
33
+ formatDate?: (date: Date) => string;
34
+ /**
35
+ * Formats value labels and reference line labels.
36
+ *
37
+ * @default undefined
38
+ */
39
+ formatLabel?: (value: number) => string;
40
+ /**
41
+ * Shows value labels on every series (per-series `labels` wins).
42
+ *
43
+ * @default false
44
+ */
45
+ labels?: boolean;
46
+ /**
47
+ * Always draws point symbols.
48
+ *
49
+ * @default false
50
+ */
51
+ showPoints?: boolean;
52
+ /**
53
+ * Compact mode for tables and cards: no axes, grid, or padding, and a
54
+ * 48px default height.
55
+ *
56
+ * @default false
57
+ */
58
+ sparkline?: boolean;
59
+ /**
60
+ * Stacks every series under this key (per-series `stack` wins).
61
+ *
62
+ * @default undefined
63
+ */
64
+ stack?: string;
65
+ /**
66
+ * Step line for every series (per-series `step` wins).
67
+ *
68
+ * @default false
69
+ */
70
+ step?: ChartStep;
71
+ }
72
+ export type ChartLineProps = MergeHtmlProps<ChartLineOwnProps, HTMLAttributes>;
@@ -0,0 +1,26 @@
1
+ import { ChartLineOwnProps } from '../chartLine.types';
2
+ import { ChartCartesianMerged } from '../../../Utils/Charts/useChartCartesian';
3
+ export declare function useChartLine(props: ChartLineOwnProps, libDefaults: Partial<ChartCartesianMerged>): {
4
+ frame: {
5
+ label: import('vue').ComputedRef<string>;
6
+ table: import('vue').ComputedRef<import('@bridge-ui/core/Domain').ChartTable>;
7
+ isEmpty: import('vue').ComputedRef<boolean>;
8
+ hostBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
9
+ plotBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
10
+ rootBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
11
+ liveBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
12
+ emptyBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
13
+ isLoading: import('vue').ComputedRef<boolean>;
14
+ tableBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
15
+ centerBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
16
+ loadingBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
17
+ announcement: import('vue').ComputedRef<string>;
18
+ emptyMessage: import('vue').ComputedRef<string>;
19
+ rootRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
20
+ plotRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
21
+ hostRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
22
+ };
23
+ merged: import('vue').ComputedRef<ChartCartesianMerged>;
24
+ context: import('vue').ComputedRef<import('..').ChartContextValue>;
25
+ options: import('vue').ComputedRef<import('@bridge-ui/core/Domain').ChartCartesianRenderOptions | null>;
26
+ };
@@ -0,0 +1,13 @@
1
+ import { useChartCartesian as e } from "../../../Utils/Charts/useChartCartesian.js";
2
+ import { mountEchartsLine as t } from "../../../Utils/Charts/echarts/line.js";
3
+ //#region src/Components/ChartLine/composables/useChartLine.ts
4
+ function n(n, r) {
5
+ return e(n, {
6
+ libDefaults: r,
7
+ kind: "line",
8
+ mount: t,
9
+ componentName: "ChartLine"
10
+ });
11
+ }
12
+ //#endregion
13
+ export { n as useChartLine };
@@ -0,0 +1,4 @@
1
+ export type { ChartLineOwnProps, ChartLineProps, } from './chartLine.types';
2
+ export { default as ChartLine } from './ChartLine.vue';
3
+ export { useChartLine } from './composables/useChartLine';
4
+ export { useChartContext, type ChartClasses, type ChartColorOverrides, type ChartColorValue, type ChartContextValue, type ChartCustomProps, type ChartSizeOverrides, type ChartSlots, } from '../../Utils/Charts';
@@ -0,0 +1,4 @@
1
+ import { useChartContext as e } from "../../Utils/Charts/chartInjectionKey.js";
2
+ import { useChartLine as t } from "./composables/useChartLine.js";
3
+ import n from "./ChartLine.js";
4
+ export { n as ChartLine, e as useChartContext, t as useChartLine };
@@ -0,0 +1,5 @@
1
+ import e from "./ChartLineSeries.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/Components/ChartLineSeries/ChartLineSeries.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,10 @@
1
+ import { ChartLineSeriesOwnProps } from './chartLineSeries.types';
2
+ declare const __VLS_export: import('vue').DefineComponent<ChartLineSeriesOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartLineSeriesOwnProps> & Readonly<{}>, {
3
+ step: import('@bridge-ui/core/Domain').ChartStep;
4
+ area: boolean;
5
+ labels: boolean;
6
+ dashed: boolean;
7
+ showPoints: boolean;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { useChartLineSeries as e } from "./composables/useChartLineSeries.js";
2
+ import { createElementBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#region src/Components/ChartLineSeries/ChartLineSeries.vue?vue&type=script&setup=true&lang.ts
4
+ var i = {
5
+ hidden: "",
6
+ "aria-hidden": "true"
7
+ }, a = /*@__PURE__*/ n({
8
+ __name: "ChartLineSeries",
9
+ props: {
10
+ area: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ color: {},
15
+ curve: {},
16
+ dashed: {
17
+ type: Boolean,
18
+ default: void 0
19
+ },
20
+ data: {},
21
+ labels: {
22
+ type: Boolean,
23
+ default: void 0
24
+ },
25
+ name: {},
26
+ reference: {},
27
+ showPoints: {
28
+ type: Boolean,
29
+ default: void 0
30
+ },
31
+ stack: {},
32
+ step: {
33
+ type: [String, Boolean],
34
+ default: void 0
35
+ }
36
+ },
37
+ setup(n) {
38
+ return e(n), (e, n) => (r(), t("span", i));
39
+ }
40
+ });
41
+ //#endregion
42
+ export { a as default };
@@ -0,0 +1,75 @@
1
+ import { ChartCurve, ChartDatum, ChartReference, ChartStep } from '@bridge-ui/core/Domain';
2
+ import { ChartColorValue } from '../../Utils/Charts';
3
+ /**
4
+ * One line registered on the nearest `ChartLine`, or drawn over the bars of
5
+ * a `ChartBar`. Renders nothing. Unset options fall back to the root props.
6
+ */
7
+ export interface ChartLineSeriesOwnProps {
8
+ /**
9
+ * Fills the area under the line.
10
+ *
11
+ * @default ChartLine `area`
12
+ */
13
+ area?: boolean;
14
+ /**
15
+ * Series color (token key or CSS color). Falls back to the palette.
16
+ *
17
+ * @default undefined
18
+ */
19
+ color?: ChartColorValue;
20
+ /**
21
+ * Line interpolation.
22
+ *
23
+ * @default ChartLine `curve`
24
+ */
25
+ curve?: ChartCurve;
26
+ /**
27
+ * Dashed stroke (targets, forecasts).
28
+ *
29
+ * @default false
30
+ */
31
+ dashed?: boolean;
32
+ /**
33
+ * One value per `ChartLine` category. `null` renders a gap.
34
+ */
35
+ data: ChartDatum[];
36
+ /**
37
+ * Shows value labels on the points.
38
+ *
39
+ * @default ChartLine `labels`
40
+ */
41
+ labels?: boolean;
42
+ /**
43
+ * Series name shown in the legend, tooltip, and data table.
44
+ */
45
+ name: string;
46
+ /**
47
+ * Reference lines: `{ type: "average" | "min" | "max" }` or
48
+ * `{ value }`, each with an optional `label`.
49
+ *
50
+ * @default undefined
51
+ */
52
+ reference?: ChartReference | ChartReference[];
53
+ /**
54
+ * Always draws point symbols.
55
+ *
56
+ * @default ChartLine `showPoints`
57
+ */
58
+ showPoints?: boolean;
59
+ /**
60
+ * Stack key. Series with the same key stack.
61
+ *
62
+ * @default ChartLine `stack`
63
+ */
64
+ stack?: string;
65
+ /**
66
+ * Step line mode.
67
+ *
68
+ * @default ChartLine `step`
69
+ */
70
+ step?: ChartStep;
71
+ }
72
+ /**
73
+ * `ChartLineSeries` has no DOM element, so it takes no HTML attributes.
74
+ */
75
+ export type ChartLineSeriesProps = ChartLineSeriesOwnProps;
@@ -0,0 +1,5 @@
1
+ import { ChartLineSeriesOwnProps } from '../chartLineSeries.types';
2
+ import { ChartLineSeriesRegistration } from '../../../Utils/Charts';
3
+ export declare function useChartLineSeries(props: ChartLineSeriesOwnProps): {
4
+ entry: import('vue').ComputedRef<ChartLineSeriesRegistration>;
5
+ };
@@ -0,0 +1,25 @@
1
+ import { useChartSeries as e } from "../../../Utils/Charts/useChartSeries.js";
2
+ import { castArray as t, isNil as n } from "es-toolkit/compat";
3
+ //#region src/Components/ChartLineSeries/composables/useChartLineSeries.ts
4
+ function r(r) {
5
+ return { entry: e({
6
+ families: ["line", "bar"],
7
+ componentName: "ChartLineSeries",
8
+ entry: () => ({
9
+ kind: "line",
10
+ area: r.area,
11
+ name: r.name,
12
+ data: r.data,
13
+ step: r.step,
14
+ color: r.color,
15
+ curve: r.curve,
16
+ stack: r.stack,
17
+ dashed: r.dashed,
18
+ labels: r.labels,
19
+ showPoints: r.showPoints,
20
+ reference: n(r.reference) ? void 0 : t(r.reference)
21
+ })
22
+ }) };
23
+ }
24
+ //#endregion
25
+ export { r as useChartLineSeries };
@@ -0,0 +1,3 @@
1
+ export type { ChartLineSeriesOwnProps, ChartLineSeriesProps, } from './chartLineSeries.types';
2
+ export { default as ChartLineSeries } from './ChartLineSeries.vue';
3
+ export { useChartLineSeries } from './composables/useChartLineSeries';
@@ -0,0 +1,3 @@
1
+ import { useChartLineSeries as e } from "./composables/useChartLineSeries.js";
2
+ import t from "./ChartLineSeries.js";
3
+ export { t as ChartLineSeries, e as useChartLineSeries };
@@ -0,0 +1,5 @@
1
+ import e from "./ChartPie.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/Components/ChartPie/ChartPie.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,15 @@
1
+ import { ChartPieOwnProps, ChartPieSlots } from './chartPie.types';
2
+ type __VLS_Slots = ChartPieSlots;
3
+ declare const __VLS_base: import('vue').DefineComponent<ChartPieOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartPieOwnProps> & Readonly<{}>, {
4
+ loading: boolean;
5
+ labels: boolean;
6
+ animation: boolean;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,73 @@
1
+ import e from "../../Utils/Charts/ChartFrame.js";
2
+ import { useChartPie as t } from "./composables/useChartPie.js";
3
+ import { createBlock as n, createSlots as r, defineComponent as i, openBlock as a, renderSlot as o, unref as s, withCtx as c } from "vue";
4
+ //#region src/Components/ChartPie/ChartPie.vue?vue&type=script&setup=true&lang.ts
5
+ var l = /*@__PURE__*/ i({
6
+ inheritAttrs: !1,
7
+ __name: "ChartPie",
8
+ props: {
9
+ data: {},
10
+ labelContent: {},
11
+ labelPosition: {},
12
+ labels: {
13
+ type: Boolean,
14
+ default: void 0
15
+ },
16
+ maxSlices: {},
17
+ minAngle: {},
18
+ thickness: {},
19
+ variant: {},
20
+ animation: {
21
+ type: Boolean,
22
+ default: void 0
23
+ },
24
+ classes: {},
25
+ customProps: {},
26
+ height: {},
27
+ loading: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ palette: {},
32
+ size: {},
33
+ summary: {},
34
+ width: {}
35
+ },
36
+ setup(i) {
37
+ let { frame: l, variant: u } = t(i, {
38
+ size: "md",
39
+ minAngle: 2,
40
+ height: 280,
41
+ labels: !1,
42
+ thickness: .3,
43
+ variant: "pie",
44
+ animation: !0,
45
+ labelPosition: "outside"
46
+ });
47
+ return (t, i) => (a(), n(s(e), {
48
+ frame: s(l),
49
+ "show-center": s(u) === "donut" && !!t.$slots.center
50
+ }, r({
51
+ default: c(() => [o(t.$slots, "default")]),
52
+ _: 2
53
+ }, [
54
+ t.$slots.center ? {
55
+ name: "center",
56
+ fn: c(() => [o(t.$slots, "center")]),
57
+ key: "0"
58
+ } : void 0,
59
+ t.$slots.empty ? {
60
+ name: "empty",
61
+ fn: c(() => [o(t.$slots, "empty")]),
62
+ key: "1"
63
+ } : void 0,
64
+ t.$slots.loading ? {
65
+ name: "loading",
66
+ fn: c(() => [o(t.$slots, "loading")]),
67
+ key: "2"
68
+ } : void 0
69
+ ]), 1032, ["frame", "show-center"]));
70
+ }
71
+ });
72
+ //#endregion
73
+ export { l as default };
@@ -0,0 +1,73 @@
1
+ import { HTMLAttributes, Slot } from 'vue';
2
+ import { ChartLabelContent, ChartLabelPosition, ChartPieVariant, ChartSlice } from '@bridge-ui/core/Domain';
3
+ import { MergeHtmlProps } from '@bridge-ui/core/Utils';
4
+ import { ChartColorValue, ChartRootOwnProps, ChartSlots } from '../../Utils/Charts';
5
+ /**
6
+ * Pie / donut chart root. Takes its slices from `data`; compose with
7
+ * `ChartLegend` and `ChartTooltip`.
8
+ */
9
+ export interface ChartPieOwnProps extends ChartRootOwnProps {
10
+ /**
11
+ * Slices in order. Non-positive values are skipped.
12
+ */
13
+ data: ChartPieSlice[];
14
+ /**
15
+ * What plot labels show: `"label"`, `"value"`, `"percent"`, or custom text.
16
+ *
17
+ * @default "label"
18
+ */
19
+ labelContent?: ChartLabelContent;
20
+ /**
21
+ * Where plot labels sit when `labels` is on.
22
+ *
23
+ * @default "outside"
24
+ */
25
+ labelPosition?: ChartLabelPosition;
26
+ /**
27
+ * Shows slice labels on the plot. Legend labels come from `ChartLegend`.
28
+ *
29
+ * @default false
30
+ */
31
+ labels?: boolean;
32
+ /**
33
+ * Keeps the largest `maxSlices - 1` slices and groups the rest into an
34
+ * "Other" slice.
35
+ *
36
+ * @default undefined
37
+ */
38
+ maxSlices?: number;
39
+ /**
40
+ * Minimum slice angle (deg) so tiny slices stay visible.
41
+ *
42
+ * @default 2
43
+ */
44
+ minAngle?: number;
45
+ /**
46
+ * Donut ring thickness as a fraction of the radius (`0`–`1`).
47
+ *
48
+ * @default 0.3
49
+ */
50
+ thickness?: number;
51
+ /**
52
+ * `donut` leaves a hole for the `center` slot.
53
+ *
54
+ * @default "pie"
55
+ */
56
+ variant?: ChartPieVariant;
57
+ }
58
+ /**
59
+ * One slice: label, value, and an optional color (token key or CSS color).
60
+ */
61
+ export interface ChartPieSlice extends Omit<ChartSlice, "color"> {
62
+ /**
63
+ * Slice color. Falls back to the palette.
64
+ */
65
+ color?: ChartColorValue;
66
+ }
67
+ export interface ChartPieSlots extends ChartSlots {
68
+ /**
69
+ * Content centered in the donut hole (totals, captions).
70
+ */
71
+ center?: Slot<undefined>;
72
+ }
73
+ export type ChartPieProps = MergeHtmlProps<ChartPieOwnProps, HTMLAttributes>;
@@ -0,0 +1,30 @@
1
+ import { ChartPieRenderOptions } from '@bridge-ui/core/Domain';
2
+ import { ChartPieOwnProps } from '../chartPie.types';
3
+ import { ChartRootMerged } from '../../../Utils/Charts';
4
+ type ChartPieMerged = ChartRootMerged & Pick<ChartPieOwnProps, "labels" | "variant" | "minAngle" | "thickness" | "labelPosition">;
5
+ export declare function useChartPie(props: ChartPieOwnProps, libDefaults: Partial<ChartPieMerged>): {
6
+ merged: import('vue').ComputedRef<ChartPieMerged>;
7
+ variant: import('vue').ComputedRef<import('@bridge-ui/core/Domain').ChartPieVariant>;
8
+ frame: {
9
+ label: import('vue').ComputedRef<string>;
10
+ table: import('vue').ComputedRef<import('@bridge-ui/core/Domain').ChartTable>;
11
+ isEmpty: import('vue').ComputedRef<boolean>;
12
+ hostBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
13
+ plotBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
14
+ rootBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
15
+ liveBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
16
+ emptyBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
17
+ isLoading: import('vue').ComputedRef<boolean>;
18
+ tableBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
19
+ centerBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
20
+ loadingBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
21
+ announcement: import('vue').ComputedRef<string>;
22
+ emptyMessage: import('vue').ComputedRef<string>;
23
+ rootRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
24
+ plotRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
25
+ hostRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
26
+ };
27
+ context: import('vue').ComputedRef<import('../../../Utils/Charts').ChartContextValue>;
28
+ options: import('vue').ComputedRef<ChartPieRenderOptions | null>;
29
+ };
30
+ export {};
@@ -0,0 +1,71 @@
1
+ import { chartRootBridgeKeys as e, useChartRoot as t } from "../../../Utils/Charts/useChartRoot.js";
2
+ import { useChartPart as n } from "../../../Utils/Charts/useChartPart.js";
3
+ import { mountEchartsPie as r } from "../../../Utils/Charts/echarts/pie.js";
4
+ import { computed as i } from "vue";
5
+ import { DEFAULT_CHART_DONUT_THICKNESS as a, DEFAULT_CHART_MIN_ANGLE as o, getChartPiePercents as s, getChartPieSummaryParams as c } from "@bridge-ui/core/Domain";
6
+ //#region src/Components/ChartPie/composables/useChartPie.ts
7
+ var l = [
8
+ ...e,
9
+ "data",
10
+ "labels",
11
+ "variant",
12
+ "minAngle",
13
+ "maxSlices",
14
+ "thickness",
15
+ "labelContent",
16
+ "labelPosition"
17
+ ], u = [
18
+ "size",
19
+ "height",
20
+ "labels",
21
+ "classes",
22
+ "variant",
23
+ "minAngle",
24
+ "animation",
25
+ "thickness",
26
+ "customProps",
27
+ "labelPosition"
28
+ ];
29
+ function d(e, d) {
30
+ let f = t({
31
+ props: e,
32
+ libDefaults: d,
33
+ componentName: "ChartPie",
34
+ bridgeKeys: l,
35
+ registryKeys: u
36
+ }), { merged: p, locale: m, resolveMessage: h } = f, g = i(() => p.value.variant ?? "pie"), _ = i(() => p.value.labels ?? !1);
37
+ function v(e) {
38
+ return {
39
+ ...e,
40
+ labels: _.value,
41
+ variant: g.value,
42
+ labelPosition: p.value.labelPosition ?? "outside",
43
+ minAngle: p.value.minAngle ?? o,
44
+ thickness: p.value.thickness ?? a
45
+ };
46
+ }
47
+ function y(e) {
48
+ return h("Pie chart with {{count}} slices: {{items}}.", c({
49
+ slices: e,
50
+ locale: m.value
51
+ }));
52
+ }
53
+ return {
54
+ ...n(f, {
55
+ summary: y,
56
+ buildOptions: v,
57
+ family: "pie",
58
+ positiveOnly: !0,
59
+ mount: r,
60
+ data: () => e.data,
61
+ labels: () => _.value,
62
+ percents: s,
63
+ maxSlices: () => e.maxSlices,
64
+ labelContent: () => e.labelContent
65
+ }),
66
+ merged: p,
67
+ variant: g
68
+ };
69
+ }
70
+ //#endregion
71
+ export { d as useChartPie };
@@ -0,0 +1,4 @@
1
+ export type { ChartPieOwnProps, ChartPieProps, ChartPieSlice, ChartPieSlots, } from './chartPie.types';
2
+ export { default as ChartPie } from './ChartPie.vue';
3
+ export { useChartPie } from './composables/useChartPie';
4
+ export { useChartContext, type ChartClasses, type ChartColorOverrides, type ChartColorValue, type ChartContextValue, type ChartCustomProps, type ChartSizeOverrides, } from '../../Utils/Charts';
@@ -0,0 +1,4 @@
1
+ import { useChartContext as e } from "../../Utils/Charts/chartInjectionKey.js";
2
+ import { useChartPie as t } from "./composables/useChartPie.js";
3
+ import n from "./ChartPie.js";
4
+ export { n as ChartPie, e as useChartContext, t as useChartPie };
@@ -0,0 +1,5 @@
1
+ import e from "./ChartScatter.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/Components/ChartScatter/ChartScatter.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,6 +1,7 @@
1
- import { ChartOwnProps, ChartSlots } from './chart.types';
1
+ import { ChartScatterOwnProps } from './chartScatter.types';
2
+ import { ChartSlots } from '../../Utils/Charts';
2
3
  type __VLS_Slots = ChartSlots;
3
- declare const __VLS_base: import('vue').DefineComponent<ChartOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartOwnProps> & Readonly<{}>, {
4
+ declare const __VLS_base: import('vue').DefineComponent<ChartScatterOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartScatterOwnProps> & Readonly<{}>, {
4
5
  loading: boolean;
5
6
  animation: boolean;
6
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,49 @@
1
+ import e from "../../Utils/Charts/ChartFrame.js";
2
+ import { useChartScatter as t } from "./composables/useChartScatter.js";
3
+ import { createBlock as n, createSlots as r, defineComponent as i, openBlock as a, renderSlot as o, unref as s, withCtx as c } from "vue";
4
+ //#region src/Components/ChartScatter/ChartScatter.vue?vue&type=script&setup=true&lang.ts
5
+ var l = /*@__PURE__*/ i({
6
+ inheritAttrs: !1,
7
+ __name: "ChartScatter",
8
+ props: {
9
+ bubbleSize: {},
10
+ symbolSize: {},
11
+ animation: {
12
+ type: Boolean,
13
+ default: void 0
14
+ },
15
+ classes: {},
16
+ customProps: {},
17
+ height: {},
18
+ loading: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ palette: {},
23
+ size: {},
24
+ summary: {},
25
+ width: {}
26
+ },
27
+ setup(i) {
28
+ let { frame: l } = t(i, {
29
+ size: "md",
30
+ height: 280,
31
+ symbolSize: 8,
32
+ animation: !0
33
+ });
34
+ return (t, i) => (a(), n(s(e), { frame: s(l) }, r({
35
+ default: c(() => [o(t.$slots, "default")]),
36
+ _: 2
37
+ }, [t.$slots.empty ? {
38
+ name: "empty",
39
+ fn: c(() => [o(t.$slots, "empty")]),
40
+ key: "0"
41
+ } : void 0, t.$slots.loading ? {
42
+ name: "loading",
43
+ fn: c(() => [o(t.$slots, "loading")]),
44
+ key: "1"
45
+ } : void 0]), 1032, ["frame"]));
46
+ }
47
+ });
48
+ //#endregion
49
+ export { l as default };