@bridge-ui/vue 0.17.3 → 0.19.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 (164) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +36 -35
  2. package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
  3. package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
  4. package/dist/Components/ChartAxis/ChartAxis.vue_vue_type_script_setup_true_lang.js +1 -0
  5. package/dist/Components/ChartAxis/chartAxis.types.d.ts +17 -7
  6. package/dist/Components/ChartAxis/composables/useChartAxis.d.ts +2 -2
  7. package/dist/Components/ChartAxis/composables/useChartAxis.js +15 -10
  8. package/dist/Components/ChartBar/ChartBar.js +5 -0
  9. package/dist/Components/ChartBar/ChartBar.vue.d.ts +16 -0
  10. package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +64 -0
  11. package/dist/Components/ChartBar/chartBar.types.d.ts +66 -0
  12. package/dist/Components/ChartBar/composables/useChartBar.d.ts +26 -0
  13. package/dist/Components/ChartBar/composables/useChartBar.js +13 -0
  14. package/dist/Components/ChartBar/index.d.ts +4 -0
  15. package/dist/Components/ChartBar/index.js +4 -0
  16. package/dist/Components/ChartBarSeries/ChartBarSeries.js +5 -0
  17. package/dist/Components/ChartBarSeries/ChartBarSeries.vue.d.ts +6 -0
  18. package/dist/Components/ChartBarSeries/ChartBarSeries.vue_vue_type_script_setup_true_lang.js +28 -0
  19. package/dist/Components/ChartBarSeries/chartBarSeries.types.d.ts +67 -0
  20. package/dist/Components/ChartBarSeries/composables/useChartBarSeries.d.ts +5 -0
  21. package/dist/Components/ChartBarSeries/composables/useChartBarSeries.js +23 -0
  22. package/dist/Components/ChartBarSeries/index.d.ts +4 -0
  23. package/dist/Components/ChartBarSeries/index.js +3 -0
  24. package/dist/Components/ChartFunnel/ChartFunnel.js +5 -0
  25. package/dist/Components/ChartFunnel/ChartFunnel.vue.d.ts +16 -0
  26. package/dist/Components/ChartFunnel/ChartFunnel.vue_vue_type_script_setup_true_lang.js +59 -0
  27. package/dist/Components/ChartFunnel/chartFunnel.types.d.ts +54 -0
  28. package/dist/Components/ChartFunnel/composables/useChartFunnel.d.ts +29 -0
  29. package/dist/Components/ChartFunnel/composables/useChartFunnel.js +68 -0
  30. package/dist/Components/ChartFunnel/index.d.ts +4 -0
  31. package/dist/Components/ChartFunnel/index.js +4 -0
  32. package/dist/Components/ChartLegend/ChartLegend.vue.d.ts +2 -0
  33. package/dist/Components/ChartLegend/ChartLegend.vue_vue_type_script_setup_true_lang.js +33 -13
  34. package/dist/Components/ChartLegend/chartLegend.types.d.ts +41 -5
  35. package/dist/Components/ChartLegend/composables/useChartLegend.d.ts +9 -5
  36. package/dist/Components/ChartLegend/composables/useChartLegend.js +88 -54
  37. package/dist/Components/ChartLine/ChartLine.js +5 -0
  38. package/dist/Components/ChartLine/ChartLine.vue.d.ts +20 -0
  39. package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +77 -0
  40. package/dist/Components/ChartLine/chartLine.types.d.ts +79 -0
  41. package/dist/Components/ChartLine/composables/useChartLine.d.ts +26 -0
  42. package/dist/Components/ChartLine/composables/useChartLine.js +13 -0
  43. package/dist/Components/ChartLine/index.d.ts +4 -0
  44. package/dist/Components/ChartLine/index.js +4 -0
  45. package/dist/Components/ChartLineSeries/ChartLineSeries.js +5 -0
  46. package/dist/Components/ChartLineSeries/ChartLineSeries.vue.d.ts +10 -0
  47. package/dist/Components/ChartLineSeries/ChartLineSeries.vue_vue_type_script_setup_true_lang.js +45 -0
  48. package/dist/Components/ChartLineSeries/chartLineSeries.types.d.ts +96 -0
  49. package/dist/Components/ChartLineSeries/composables/useChartLineSeries.d.ts +5 -0
  50. package/dist/Components/ChartLineSeries/composables/useChartLineSeries.js +28 -0
  51. package/dist/Components/ChartLineSeries/index.d.ts +4 -0
  52. package/dist/Components/ChartLineSeries/index.js +3 -0
  53. package/dist/Components/ChartPie/ChartPie.js +5 -0
  54. package/dist/Components/ChartPie/ChartPie.vue.d.ts +15 -0
  55. package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +76 -0
  56. package/dist/Components/ChartPie/chartPie.types.d.ts +92 -0
  57. package/dist/Components/ChartPie/composables/useChartPie.d.ts +30 -0
  58. package/dist/Components/ChartPie/composables/useChartPie.js +81 -0
  59. package/dist/Components/ChartPie/index.d.ts +4 -0
  60. package/dist/Components/ChartPie/index.js +4 -0
  61. package/dist/Components/ChartScatter/ChartScatter.js +5 -0
  62. package/dist/Components/{Chart/Chart.vue.d.ts → ChartScatter/ChartScatter.vue.d.ts} +3 -2
  63. package/dist/Components/ChartScatter/ChartScatter.vue_vue_type_script_setup_true_lang.js +49 -0
  64. package/dist/Components/ChartScatter/chartScatter.types.d.ts +23 -0
  65. package/dist/Components/ChartScatter/composables/useChartScatter.d.ts +29 -0
  66. package/dist/Components/ChartScatter/composables/useChartScatter.js +108 -0
  67. package/dist/Components/ChartScatter/index.d.ts +4 -0
  68. package/dist/Components/ChartScatter/index.js +4 -0
  69. package/dist/Components/ChartScatterSeries/ChartScatterSeries.js +5 -0
  70. package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue.d.ts +4 -0
  71. package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue_vue_type_script_setup_true_lang.js +22 -0
  72. package/dist/Components/ChartScatterSeries/chartScatterSeries.types.d.ts +45 -0
  73. package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.d.ts +4 -0
  74. package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.js +19 -0
  75. package/dist/Components/ChartScatterSeries/index.d.ts +4 -0
  76. package/dist/Components/ChartScatterSeries/index.js +3 -0
  77. package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +22 -10
  78. package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +28 -9
  79. package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +4 -1
  80. package/dist/Components/ChartTooltip/composables/useChartTooltip.js +81 -63
  81. package/dist/Components/Heading/Heading.js +5 -0
  82. package/dist/Components/Heading/Heading.vue.d.ts +11 -0
  83. package/dist/Components/Heading/Heading.vue_vue_type_script_setup_true_lang.js +29 -0
  84. package/dist/Components/Heading/composables/useHeading.d.ts +10 -0
  85. package/dist/Components/Heading/composables/useHeading.js +56 -0
  86. package/dist/Components/Heading/heading.types.d.ts +56 -0
  87. package/dist/Components/Heading/index.d.ts +3 -0
  88. package/dist/Components/Heading/index.js +3 -0
  89. package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +1 -1
  90. package/dist/Components/Spinner/composables/useSpinner.d.ts +1 -1
  91. package/dist/Components/Text/Text.js +5 -0
  92. package/dist/Components/Text/Text.vue.d.ts +11 -0
  93. package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +33 -0
  94. package/dist/Components/Text/composables/useText.d.ts +9 -0
  95. package/dist/Components/Text/composables/useText.js +56 -0
  96. package/dist/Components/Text/index.d.ts +3 -0
  97. package/dist/Components/Text/index.js +3 -0
  98. package/dist/Components/Text/text.types.d.ts +76 -0
  99. package/dist/Utils/Charts/ChartFrame.js +5 -0
  100. package/dist/Utils/Charts/ChartFrame.vue.d.ts +24 -0
  101. package/dist/Utils/Charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +41 -0
  102. package/dist/{Components/Chart → Utils/Charts}/chart.types.d.ts +33 -18
  103. package/dist/Utils/Charts/chartInjectionKey.d.ts +151 -0
  104. package/dist/{Components/Chart → Utils/Charts}/chartInjectionKey.js +2 -2
  105. package/dist/Utils/Charts/echarts/bar.d.ts +6 -0
  106. package/dist/Utils/Charts/echarts/bar.js +23 -0
  107. package/dist/Utils/Charts/echarts/cartesian.d.ts +15 -0
  108. package/dist/Utils/Charts/echarts/cartesian.js +290 -0
  109. package/dist/Utils/Charts/echarts/funnel.d.ts +15 -0
  110. package/dist/Utils/Charts/echarts/funnel.js +79 -0
  111. package/dist/Utils/Charts/echarts/line.d.ts +5 -0
  112. package/dist/Utils/Charts/echarts/line.js +20 -0
  113. package/dist/Utils/Charts/echarts/part.d.ts +19 -0
  114. package/dist/Utils/Charts/echarts/part.js +45 -0
  115. package/dist/Utils/Charts/echarts/pie.d.ts +14 -0
  116. package/dist/Utils/Charts/echarts/pie.js +76 -0
  117. package/dist/Utils/Charts/echarts/plot.d.ts +44 -0
  118. package/dist/Utils/Charts/echarts/plot.js +52 -0
  119. package/dist/Utils/Charts/echarts/scatter.d.ts +14 -0
  120. package/dist/Utils/Charts/echarts/scatter.js +161 -0
  121. package/dist/Utils/Charts/index.d.ts +6 -0
  122. package/dist/Utils/Charts/index.js +6 -0
  123. package/dist/Utils/Charts/useChartCartesian.d.ts +59 -0
  124. package/dist/Utils/Charts/useChartCartesian.js +169 -0
  125. package/dist/Utils/Charts/useChartPart.d.ts +45 -0
  126. package/dist/Utils/Charts/useChartPart.js +97 -0
  127. package/dist/Utils/Charts/useChartRegistry.d.ts +13 -0
  128. package/dist/Utils/Charts/useChartRegistry.js +40 -0
  129. package/dist/Utils/Charts/useChartRoot.d.ts +156 -0
  130. package/dist/Utils/Charts/useChartRoot.js +342 -0
  131. package/dist/Utils/Charts/useChartSeries.d.ts +10 -0
  132. package/dist/Utils/Charts/useChartSeries.js +22 -0
  133. package/dist/augments.d.ts +33 -7
  134. package/dist/index.d.ts +4 -0
  135. package/dist/index.js +90 -86
  136. package/docs/README.md +8 -1
  137. package/docs/components/BridgeUIProvider.md +1 -1
  138. package/docs/components/Card.md +15 -0
  139. package/docs/components/Chart.md +118 -151
  140. package/docs/components/ChartBar.md +190 -0
  141. package/docs/components/ChartFunnel.md +62 -0
  142. package/docs/components/ChartLine.md +192 -0
  143. package/docs/components/ChartPie.md +138 -0
  144. package/docs/components/ChartScatter.md +102 -0
  145. package/docs/components/Heading.md +85 -0
  146. package/docs/components/Text.md +118 -0
  147. package/package.json +2 -2
  148. package/dist/Components/Chart/Chart.js +0 -5
  149. package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +0 -52
  150. package/dist/Components/Chart/chartInjectionKey.d.ts +0 -94
  151. package/dist/Components/Chart/composables/useChart.d.ts +0 -40
  152. package/dist/Components/Chart/composables/useChart.js +0 -346
  153. package/dist/Components/Chart/echartsChart.d.ts +0 -14
  154. package/dist/Components/Chart/echartsChart.js +0 -199
  155. package/dist/Components/Chart/index.d.ts +0 -4
  156. package/dist/Components/Chart/index.js +0 -4
  157. package/dist/Components/ChartSeries/ChartSeries.js +0 -5
  158. package/dist/Components/ChartSeries/ChartSeries.vue.d.ts +0 -4
  159. package/dist/Components/ChartSeries/ChartSeries.vue_vue_type_script_setup_true_lang.js +0 -24
  160. package/dist/Components/ChartSeries/chartSeries.types.d.ts +0 -37
  161. package/dist/Components/ChartSeries/composables/useChartSeries.d.ts +0 -10
  162. package/dist/Components/ChartSeries/composables/useChartSeries.js +0 -29
  163. package/dist/Components/ChartSeries/index.d.ts +0 -3
  164. package/dist/Components/ChartSeries/index.js +0 -3
@@ -0,0 +1,77 @@
1
+ import e from "../../Utils/Charts/ChartFrame.js";
2
+ import { useChartLine as t } from "./composables/useChartLine.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/ChartLine/ChartLine.vue?vue&type=script&setup=true&lang.ts
5
+ var l = /*@__PURE__*/ i({
6
+ inheritAttrs: !1,
7
+ __name: "ChartLine",
8
+ props: {
9
+ area: {
10
+ type: Boolean,
11
+ default: void 0
12
+ },
13
+ areaOpacity: {},
14
+ categories: {},
15
+ curve: {},
16
+ formatDate: {},
17
+ formatLabel: {},
18
+ labels: {
19
+ type: Boolean,
20
+ default: void 0
21
+ },
22
+ showPoints: {
23
+ type: Boolean,
24
+ default: void 0
25
+ },
26
+ sparkline: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ stack: {},
31
+ step: {
32
+ type: [String, Boolean],
33
+ default: void 0
34
+ },
35
+ animation: {
36
+ type: Boolean,
37
+ default: void 0
38
+ },
39
+ classes: {},
40
+ customProps: {},
41
+ height: {},
42
+ loading: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ palette: {},
47
+ size: {},
48
+ summary: {},
49
+ width: {}
50
+ },
51
+ setup(i) {
52
+ let { frame: l } = t(i, {
53
+ size: "md",
54
+ area: !1,
55
+ step: !1,
56
+ height: 280,
57
+ labels: !1,
58
+ animation: !0,
59
+ curve: "linear",
60
+ showPoints: !1
61
+ });
62
+ return (t, i) => (a(), n(s(e), { frame: s(l) }, r({
63
+ default: c(() => [o(t.$slots, "default")]),
64
+ _: 2
65
+ }, [t.$slots.empty ? {
66
+ name: "empty",
67
+ fn: c(() => [o(t.$slots, "empty")]),
68
+ key: "0"
69
+ } : void 0, t.$slots.loading ? {
70
+ name: "loading",
71
+ fn: c(() => [o(t.$slots, "loading")]),
72
+ key: "1"
73
+ } : void 0]), 1032, ["frame"]));
74
+ }
75
+ });
76
+ //#endregion
77
+ export { l as default };
@@ -0,0 +1,79 @@
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
+ * Opacity (`0`–`1`) of the area fill for every series (per-series
18
+ * `areaOpacity` wins).
19
+ *
20
+ * @default 0.15
21
+ */
22
+ areaOpacity?: number;
23
+ /**
24
+ * Category labels, or dates for a time axis (points spaced by time).
25
+ * Each series has one value per category.
26
+ */
27
+ categories: Date[] | string[];
28
+ /**
29
+ * Interpolation for every series (per-series `curve` wins).
30
+ *
31
+ * @default "linear"
32
+ */
33
+ curve?: ChartCurve;
34
+ /**
35
+ * Formats date categories in the tooltip, data table, and summary.
36
+ * Time axis ticks use `ChartAxis` `formatTick` (it receives the timestamp).
37
+ *
38
+ * @default undefined
39
+ */
40
+ formatDate?: (date: Date) => string;
41
+ /**
42
+ * Formats value labels and reference line labels.
43
+ *
44
+ * @default undefined
45
+ */
46
+ formatLabel?: (value: number) => string;
47
+ /**
48
+ * Shows value labels on every series (per-series `labels` wins).
49
+ *
50
+ * @default false
51
+ */
52
+ labels?: boolean;
53
+ /**
54
+ * Always draws point symbols.
55
+ *
56
+ * @default false
57
+ */
58
+ showPoints?: boolean;
59
+ /**
60
+ * Compact mode for tables and cards: no axes, grid, or padding, and a
61
+ * 48px default height.
62
+ *
63
+ * @default false
64
+ */
65
+ sparkline?: boolean;
66
+ /**
67
+ * Stacks every series under this key (per-series `stack` wins).
68
+ *
69
+ * @default undefined
70
+ */
71
+ stack?: string;
72
+ /**
73
+ * Step line for every series (per-series `step` wins).
74
+ *
75
+ * @default false
76
+ */
77
+ step?: ChartStep;
78
+ }
79
+ 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,45 @@
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
+ areaOpacity: {},
15
+ color: {},
16
+ colorBy: {},
17
+ colorRanges: {},
18
+ curve: {},
19
+ dashed: {
20
+ type: Boolean,
21
+ default: void 0
22
+ },
23
+ data: {},
24
+ labels: {
25
+ type: Boolean,
26
+ default: void 0
27
+ },
28
+ name: {},
29
+ reference: {},
30
+ showPoints: {
31
+ type: Boolean,
32
+ default: void 0
33
+ },
34
+ stack: {},
35
+ step: {
36
+ type: [String, Boolean],
37
+ default: void 0
38
+ }
39
+ },
40
+ setup(n) {
41
+ return e(n), (e, n) => (r(), t("span", i));
42
+ }
43
+ });
44
+ //#endregion
45
+ export { a as default };
@@ -0,0 +1,96 @@
1
+ import { ChartColorRangeAxis, ChartCurve, ChartDatum, ChartReference, ChartStep } from '@bridge-ui/core/Domain';
2
+ import { ChartColorRangeOption, 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
+ * Opacity (`0`–`1`) of the area fill.
16
+ *
17
+ * @default ChartLine `areaOpacity` (0.15)
18
+ */
19
+ areaOpacity?: number;
20
+ /**
21
+ * Series color (token key or CSS color). Falls back to the palette.
22
+ *
23
+ * @default undefined
24
+ */
25
+ color?: ChartColorValue;
26
+ /**
27
+ * What `colorRanges` match: each point's value, or its category index.
28
+ *
29
+ * @default "value"
30
+ */
31
+ colorBy?: ChartColorRangeAxis;
32
+ /**
33
+ * Recolors the line (and its area) piece by piece: values in
34
+ * `[min, max)` take the range color. With `colorBy="category"`, `min`
35
+ * and `max` are category indices (both included). Points outside every
36
+ * range keep `color`. Range labels show in the tooltip and data table.
37
+ *
38
+ * @default undefined
39
+ */
40
+ colorRanges?: ChartColorRangeOption[];
41
+ /**
42
+ * Line interpolation.
43
+ *
44
+ * @default ChartLine `curve`
45
+ */
46
+ curve?: ChartCurve;
47
+ /**
48
+ * Dashed stroke (targets, forecasts).
49
+ *
50
+ * @default false
51
+ */
52
+ dashed?: boolean;
53
+ /**
54
+ * One value per `ChartLine` category. `null` renders a gap.
55
+ */
56
+ data: ChartDatum[];
57
+ /**
58
+ * Shows value labels on the points.
59
+ *
60
+ * @default ChartLine `labels`
61
+ */
62
+ labels?: boolean;
63
+ /**
64
+ * Series name shown in the legend, tooltip, and data table.
65
+ */
66
+ name: string;
67
+ /**
68
+ * Reference lines: `{ type: "average" | "min" | "max" }` or
69
+ * `{ value }`, each with an optional `label`.
70
+ *
71
+ * @default undefined
72
+ */
73
+ reference?: ChartReference | ChartReference[];
74
+ /**
75
+ * Always draws point symbols.
76
+ *
77
+ * @default ChartLine `showPoints`
78
+ */
79
+ showPoints?: boolean;
80
+ /**
81
+ * Stack key. Series with the same key stack.
82
+ *
83
+ * @default ChartLine `stack`
84
+ */
85
+ stack?: string;
86
+ /**
87
+ * Step line mode.
88
+ *
89
+ * @default ChartLine `step`
90
+ */
91
+ step?: ChartStep;
92
+ }
93
+ /**
94
+ * `ChartLineSeries` has no DOM element, so it takes no HTML attributes.
95
+ */
96
+ 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,28 @@
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
+ colorBy: r.colorBy,
20
+ showPoints: r.showPoints,
21
+ areaOpacity: r.areaOpacity,
22
+ colorRanges: r.colorRanges,
23
+ reference: n(r.reference) ? void 0 : t(r.reference)
24
+ })
25
+ }) };
26
+ }
27
+ //#endregion
28
+ export { r as useChartLineSeries };
@@ -0,0 +1,4 @@
1
+ export type { ChartLineSeriesOwnProps, ChartLineSeriesProps, } from './chartLineSeries.types';
2
+ export { default as ChartLineSeries } from './ChartLineSeries.vue';
3
+ export { useChartLineSeries } from './composables/useChartLineSeries';
4
+ export type { ChartColorRangeOption } from '../../Utils/Charts';
@@ -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,76 @@
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
+ cornerRadius: {},
10
+ data: {},
11
+ labelContent: {},
12
+ labelPosition: {},
13
+ labels: {
14
+ type: Boolean,
15
+ default: void 0
16
+ },
17
+ maxSlices: {},
18
+ minAngle: {},
19
+ padAngle: {},
20
+ rose: {},
21
+ thickness: {},
22
+ variant: {},
23
+ animation: {
24
+ type: Boolean,
25
+ default: void 0
26
+ },
27
+ classes: {},
28
+ customProps: {},
29
+ height: {},
30
+ loading: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ palette: {},
35
+ size: {},
36
+ summary: {},
37
+ width: {}
38
+ },
39
+ setup(i) {
40
+ let { frame: l, variant: u } = t(i, {
41
+ size: "md",
42
+ minAngle: 2,
43
+ height: 280,
44
+ labels: !1,
45
+ thickness: .3,
46
+ variant: "pie",
47
+ animation: !0,
48
+ labelPosition: "outside"
49
+ });
50
+ return (t, i) => (a(), n(s(e), {
51
+ frame: s(l),
52
+ "show-center": s(u) === "donut" && !!t.$slots.center
53
+ }, r({
54
+ default: c(() => [o(t.$slots, "default")]),
55
+ _: 2
56
+ }, [
57
+ t.$slots.center ? {
58
+ name: "center",
59
+ fn: c(() => [o(t.$slots, "center")]),
60
+ key: "0"
61
+ } : void 0,
62
+ t.$slots.empty ? {
63
+ name: "empty",
64
+ fn: c(() => [o(t.$slots, "empty")]),
65
+ key: "1"
66
+ } : void 0,
67
+ t.$slots.loading ? {
68
+ name: "loading",
69
+ fn: c(() => [o(t.$slots, "loading")]),
70
+ key: "2"
71
+ } : void 0
72
+ ]), 1032, ["frame", "show-center"]));
73
+ }
74
+ });
75
+ //#endregion
76
+ export { l as default };
@@ -0,0 +1,92 @@
1
+ import { HTMLAttributes, Slot } from 'vue';
2
+ import { ChartLabelContent, ChartLabelPosition, ChartPieRose, 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
+ * Slice corner radius (px).
12
+ *
13
+ * @default 0 (2 for `donut`)
14
+ */
15
+ cornerRadius?: number;
16
+ /**
17
+ * Slices in order. Non-positive values are skipped.
18
+ */
19
+ data: ChartPieSlice[];
20
+ /**
21
+ * What plot labels show: `"label"`, `"value"`, `"percent"`, or custom text.
22
+ *
23
+ * @default "label"
24
+ */
25
+ labelContent?: ChartLabelContent;
26
+ /**
27
+ * Where plot labels sit when `labels` is on.
28
+ *
29
+ * @default "outside"
30
+ */
31
+ labelPosition?: ChartLabelPosition;
32
+ /**
33
+ * Shows slice labels on the plot. Legend labels come from `ChartLegend`.
34
+ *
35
+ * @default false
36
+ */
37
+ labels?: boolean;
38
+ /**
39
+ * Keeps the largest `maxSlices - 1` slices and groups the rest into an
40
+ * "Other" slice.
41
+ *
42
+ * @default undefined
43
+ */
44
+ maxSlices?: number;
45
+ /**
46
+ * Minimum slice angle (deg) so tiny slices stay visible.
47
+ *
48
+ * @default 2
49
+ */
50
+ minAngle?: number;
51
+ /**
52
+ * Gap angle (deg) between slices.
53
+ *
54
+ * @default 0 (1 for `donut`)
55
+ */
56
+ padAngle?: number;
57
+ /**
58
+ * Nightingale (rose) pie: each slice radius shows its value. `radius`
59
+ * keeps the angle as the share; `area` gives every slice the same angle.
60
+ *
61
+ * @default undefined
62
+ */
63
+ rose?: ChartPieRose;
64
+ /**
65
+ * Donut ring thickness as a fraction of the radius (`0`–`1`).
66
+ *
67
+ * @default 0.3
68
+ */
69
+ thickness?: number;
70
+ /**
71
+ * `donut` leaves a hole for the `center` slot.
72
+ *
73
+ * @default "pie"
74
+ */
75
+ variant?: ChartPieVariant;
76
+ }
77
+ /**
78
+ * One slice: label, value, and an optional color (token key or CSS color).
79
+ */
80
+ export interface ChartPieSlice extends Omit<ChartSlice, "color"> {
81
+ /**
82
+ * Slice color. Falls back to the palette.
83
+ */
84
+ color?: ChartColorValue;
85
+ }
86
+ export interface ChartPieSlots extends ChartSlots {
87
+ /**
88
+ * Content centered in the donut hole (totals, captions).
89
+ */
90
+ center?: Slot<undefined>;
91
+ }
92
+ 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, "rose" | "labels" | "variant" | "minAngle" | "padAngle" | "thickness" | "cornerRadius" | "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 {};