@bridge-ui/vue 0.15.0 → 0.16.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 (93) hide show
  1. package/ai/AGENTS.md +1 -1
  2. package/ai/README.md +1 -1
  3. package/ai/llms.txt +0 -1
  4. package/ai/skills/bridge-ui-components/SKILL.md +2 -1
  5. package/ai/skills/bridge-ui-setup/SKILL.md +8 -8
  6. package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +42 -44
  7. package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +1 -1
  8. package/dist/Adapters/index.d.ts +0 -1
  9. package/dist/Adapters/index.js +1 -2
  10. package/dist/Components/Accordion/composables/useAccordion.js +1 -1
  11. package/dist/Components/Autocomplete/composables/useAutocomplete.js +248 -258
  12. package/dist/Components/Chart/Chart.js +5 -0
  13. package/dist/Components/Chart/Chart.vue.d.ts +14 -0
  14. package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +52 -0
  15. package/dist/Components/Chart/chart.types.d.ts +126 -0
  16. package/dist/Components/Chart/chartInjectionKey.d.ts +94 -0
  17. package/dist/Components/Chart/chartInjectionKey.js +10 -0
  18. package/dist/Components/Chart/composables/useChart.d.ts +40 -0
  19. package/dist/Components/Chart/composables/useChart.js +344 -0
  20. package/dist/Components/Chart/echartsChart.d.ts +14 -0
  21. package/dist/Components/Chart/echartsChart.js +199 -0
  22. package/dist/Components/Chart/index.d.ts +4 -0
  23. package/dist/Components/Chart/index.js +4 -0
  24. package/dist/Components/ChartAxis/ChartAxis.js +5 -0
  25. package/dist/Components/ChartAxis/ChartAxis.vue.d.ts +7 -0
  26. package/dist/Components/ChartAxis/ChartAxis.vue_vue_type_script_setup_true_lang.js +30 -0
  27. package/dist/Components/ChartAxis/chartAxis.types.d.ts +56 -0
  28. package/dist/Components/ChartAxis/composables/useChartAxis.d.ts +5 -0
  29. package/dist/Components/ChartAxis/composables/useChartAxis.js +28 -0
  30. package/dist/Components/ChartAxis/index.d.ts +3 -0
  31. package/dist/Components/ChartAxis/index.js +3 -0
  32. package/dist/Components/ChartLegend/ChartLegend.js +5 -0
  33. package/dist/Components/ChartLegend/ChartLegend.vue.d.ts +6 -0
  34. package/dist/Components/ChartLegend/ChartLegend.vue_vue_type_script_setup_true_lang.js +33 -0
  35. package/dist/Components/ChartLegend/chartLegend.types.d.ts +71 -0
  36. package/dist/Components/ChartLegend/composables/useChartLegend.d.ts +16 -0
  37. package/dist/Components/ChartLegend/composables/useChartLegend.js +98 -0
  38. package/dist/Components/ChartLegend/index.d.ts +3 -0
  39. package/dist/Components/ChartLegend/index.js +3 -0
  40. package/dist/Components/ChartSeries/ChartSeries.js +5 -0
  41. package/dist/Components/ChartSeries/ChartSeries.vue.d.ts +4 -0
  42. package/dist/Components/ChartSeries/ChartSeries.vue_vue_type_script_setup_true_lang.js +24 -0
  43. package/dist/Components/ChartSeries/chartSeries.types.d.ts +37 -0
  44. package/dist/Components/ChartSeries/composables/useChartSeries.d.ts +10 -0
  45. package/dist/Components/ChartSeries/composables/useChartSeries.js +29 -0
  46. package/dist/Components/ChartSeries/index.d.ts +3 -0
  47. package/dist/Components/ChartSeries/index.js +3 -0
  48. package/dist/Components/ChartTooltip/ChartTooltip.js +5 -0
  49. package/dist/Components/ChartTooltip/ChartTooltip.vue.d.ts +11 -0
  50. package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +25 -0
  51. package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +82 -0
  52. package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +15 -0
  53. package/dist/Components/ChartTooltip/composables/useChartTooltip.js +110 -0
  54. package/dist/Components/ChartTooltip/index.d.ts +3 -0
  55. package/dist/Components/ChartTooltip/index.js +3 -0
  56. package/dist/Components/DataTable/DataTableCellContent.vue.d.ts +1 -5
  57. package/dist/Components/DataTable/DataTableCellContent.vue_vue_type_script_setup_true_lang.js +24 -25
  58. package/dist/Components/DataTable/composables/useDataTable.d.ts +1 -1
  59. package/dist/Components/DataTable/composables/useDataTable.js +76 -74
  60. package/dist/Components/DataTable/composables/useDataTablePagination.js +1 -1
  61. package/dist/Components/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js +3 -4
  62. package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +5 -3
  63. package/dist/Components/Modal/Modal.vue_vue_type_script_setup_true_lang.js +3 -4
  64. package/dist/Components/Pagination/composables/usePagination.js +1 -1
  65. package/dist/Components/RichTextEditor/RichTextEditor.vue.d.ts +1 -1
  66. package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +17 -17
  67. package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +2 -2
  68. package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +67 -73
  69. package/dist/Components/RichTextEditor/richTextEditor.types.d.ts +1 -1
  70. package/dist/Components/RichTextEditor/tiptapEditor.d.ts +111 -0
  71. package/dist/Components/RichTextEditor/tiptapEditor.js +121 -0
  72. package/dist/Components/Select/composables/useSelect.js +147 -157
  73. package/dist/Components/Snackbar/Snackbar.vue.d.ts +1 -1
  74. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +6 -7
  75. package/dist/Components/Stepper/composables/useStepper.js +1 -1
  76. package/dist/Components/Table/composables/useTableCell.d.ts +1 -1
  77. package/dist/Components/Tabs/composables/useTabs.js +1 -1
  78. package/dist/Components/ToggleGroup/composables/useToggleGroup.js +3 -3
  79. package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +6 -4
  80. package/dist/augments.d.ts +19 -1
  81. package/dist/index.d.ts +0 -3
  82. package/dist/index.js +180 -183
  83. package/dist/theme.css +1 -1
  84. package/docs/README.md +3 -3
  85. package/docs/components/BridgeUIProvider.md +0 -17
  86. package/docs/components/Chart.md +252 -0
  87. package/docs/components/RichTextEditor.md +2 -23
  88. package/package.json +27 -6
  89. package/dist/Adapters/RichText/index.d.ts +0 -1
  90. package/dist/Adapters/RichText/index.js +0 -2
  91. package/dist/Adapters/RichText/mockRichTextAdapter.d.ts +0 -5
  92. package/dist/Adapters/RichText/useRichTextAdapter.d.ts +0 -12
  93. package/dist/Adapters/RichText/useRichTextAdapter.js +0 -13
@@ -0,0 +1,37 @@
1
+ import { ChartCurve, ChartDatum, ChartType } from '@bridge-ui/core/Domain';
2
+ import { ChartSeriesColor } from '../Chart/chart.types';
3
+ /**
4
+ * One data series registered on the nearest `Chart`. Renders nothing.
5
+ */
6
+ export interface ChartSeriesOwnProps {
7
+ /**
8
+ * Series color (token key or CSS color). Falls back to the `Chart` palette.
9
+ *
10
+ * @default undefined
11
+ */
12
+ color?: ChartSeriesColor;
13
+ /**
14
+ * Line interpolation for `line` / `area` series.
15
+ *
16
+ * @default "linear"
17
+ */
18
+ curve?: ChartCurve;
19
+ /**
20
+ * One value per `Chart` category. `null` renders a gap.
21
+ */
22
+ data: ChartDatum[];
23
+ /**
24
+ * Series name shown in the legend, tooltip, and data table.
25
+ */
26
+ name: string;
27
+ /**
28
+ * Series family.
29
+ *
30
+ * @default "line"
31
+ */
32
+ type?: ChartType;
33
+ }
34
+ /**
35
+ * `ChartSeries` has no DOM element, so it takes no HTML attributes.
36
+ */
37
+ export type ChartSeriesProps = ChartSeriesOwnProps;
@@ -0,0 +1,10 @@
1
+ import { ChartSeriesEntry } from '@bridge-ui/core/Domain';
2
+ import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
3
+ import { ChartSeriesOwnProps, ChartSeriesProps } from '../chartSeries.types';
4
+ type ChartSeriesLibDefaults = LibDefaultsShape<ChartSeriesOwnProps, "type" | "curve">;
5
+ type ChartSeriesMerged = MergeLibDefaults<Pick<ChartSeriesOwnProps, "type" | "curve">, ChartSeriesLibDefaults>;
6
+ export declare function useChartSeries(props: ChartSeriesProps, libDefaults: ChartSeriesLibDefaults): {
7
+ entry: import('vue').ComputedRef<ChartSeriesEntry>;
8
+ merged: import('vue').ComputedRef<ChartSeriesMerged>;
9
+ };
10
+ export {};
@@ -0,0 +1,29 @@
1
+ import { useBridgeUIComponent as e } from "../../../Utils/index.js";
2
+ import { useChartContext as t } from "../../Chart/chartInjectionKey.js";
3
+ import { computed as n, onBeforeUnmount as r, useId as i, watch as a } from "vue";
4
+ import { pick as o } from "es-toolkit/compat";
5
+ //#region src/Components/ChartSeries/composables/useChartSeries.ts
6
+ function s(s, c) {
7
+ let l = t(), u = i(), d = `${l.value.id}-series${u}`, { merged: f } = e({
8
+ libDefaults: c,
9
+ componentName: "ChartSeries",
10
+ props: () => o(s, ["type", "curve"])
11
+ }), p = n(() => ({
12
+ id: d,
13
+ name: s.name,
14
+ data: s.data,
15
+ color: s.color,
16
+ type: f.value.type,
17
+ curve: f.value.curve
18
+ }));
19
+ return a(p, (e) => {
20
+ l.value.upsertSeries(e);
21
+ }, { immediate: !0 }), r(() => {
22
+ l.value.removeSeries(d);
23
+ }), {
24
+ entry: p,
25
+ merged: f
26
+ };
27
+ }
28
+ //#endregion
29
+ export { s as useChartSeries };
@@ -0,0 +1,3 @@
1
+ export type { ChartSeriesOwnProps, ChartSeriesProps, } from './chartSeries.types';
2
+ export { default as ChartSeries } from './ChartSeries.vue';
3
+ export { useChartSeries } from './composables/useChartSeries';
@@ -0,0 +1,3 @@
1
+ import { useChartSeries as e } from "./composables/useChartSeries.js";
2
+ import t from "./ChartSeries.js";
3
+ export { t as ChartSeries, e as useChartSeries };
@@ -0,0 +1,5 @@
1
+ import e from "./ChartTooltip.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/Components/ChartTooltip/ChartTooltip.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,11 @@
1
+ import { ChartTooltipOwnProps, ChartTooltipSlots } from './chartTooltip.types';
2
+ type __VLS_Slots = ChartTooltipSlots;
3
+ declare const __VLS_base: import('vue').DefineComponent<ChartTooltipOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartTooltipOwnProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,25 @@
1
+ import { useChartTooltip as e } from "./composables/useChartTooltip.js";
2
+ import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeProps as s, normalizeProps as c, openBlock as l, renderList as u, renderSlot as d, toDisplayString as f, unref as p, useTemplateRef as m } from "vue";
3
+ //#region src/Components/ChartTooltip/ChartTooltip.vue?vue&type=script&setup=true&lang.ts
4
+ var h = /*@__PURE__*/ a({
5
+ inheritAttrs: !1,
6
+ __name: "ChartTooltip",
7
+ props: {
8
+ classes: {},
9
+ customProps: {},
10
+ formatValue: { type: Function }
11
+ },
12
+ setup(a) {
13
+ let h = a, g = m("tooltip"), { isOpen: _, context: v, itemBind: y, rootBind: b, labelBind: x, titleBind: S, valueBind: C, formatValue: w, getSwatchBind: T } = e(h, g);
14
+ return (e, a) => p(_) && p(v) ? (l(), r("div", s({
15
+ key: 0,
16
+ ref: "tooltip"
17
+ }, p(b)), [d(e.$slots, "content", c(o(p(v))), () => [i("div", c(o(p(S))), f(p(v).category), 17), (l(!0), r(t, null, u(p(v).items, (e) => (l(), r("div", s({ key: e.id }, { ref_for: !0 }, p(y)), [
18
+ i("span", s({ ref_for: !0 }, p(T)(e)), null, 16),
19
+ i("span", s({ ref_for: !0 }, p(x)), f(e.name), 17),
20
+ i("span", s({ ref_for: !0 }, p(C)), f(p(w)(e)), 17)
21
+ ], 16))), 128))])], 16)) : n("", !0);
22
+ }
23
+ });
24
+ //#endregion
25
+ export { h as default };
@@ -0,0 +1,82 @@
1
+ import { HTMLAttributes, Slot } from 'vue';
2
+ import { ChartTooltipItem } from '@bridge-ui/core/Domain';
3
+ import { MergeHtmlProps } from '@bridge-ui/core/Utils';
4
+ export interface ChartTooltipClasses {
5
+ /**
6
+ * Classes merged onto each series row.
7
+ */
8
+ item?: string;
9
+ /**
10
+ * Classes merged onto each series name.
11
+ */
12
+ label?: string;
13
+ /**
14
+ * Classes merged onto the tooltip box.
15
+ */
16
+ root?: string;
17
+ /**
18
+ * Classes merged onto each color swatch.
19
+ */
20
+ swatch?: string;
21
+ /**
22
+ * Classes merged onto the category title.
23
+ */
24
+ title?: string;
25
+ /**
26
+ * Classes merged onto each formatted value.
27
+ */
28
+ value?: string;
29
+ }
30
+ export interface ChartTooltipContentContext {
31
+ /**
32
+ * Active category label.
33
+ */
34
+ category: string;
35
+ /**
36
+ * Active category index.
37
+ */
38
+ index: number;
39
+ /**
40
+ * Visible series values at the active category.
41
+ */
42
+ items: ChartTooltipItem[];
43
+ }
44
+ export interface ChartTooltipCustomProps {
45
+ /**
46
+ * Props forwarded to the tooltip box.
47
+ *
48
+ * @default undefined
49
+ */
50
+ root?: HTMLAttributes;
51
+ }
52
+ /**
53
+ * Tooltip for the active category of the nearest `Chart`
54
+ * (pointer hover or arrow keys on the focused plot).
55
+ */
56
+ export interface ChartTooltipOwnProps {
57
+ /**
58
+ * Classes for tooltip parts.
59
+ *
60
+ * @default undefined
61
+ */
62
+ classes?: ChartTooltipClasses;
63
+ /**
64
+ * Extra props for the tooltip box.
65
+ *
66
+ * @default undefined
67
+ */
68
+ customProps?: ChartTooltipCustomProps;
69
+ /**
70
+ * Formats each value. Defaults to `Intl.NumberFormat` with the Bridge locale.
71
+ *
72
+ * @default undefined
73
+ */
74
+ formatValue?: (value: number, item: ChartTooltipItem) => string;
75
+ }
76
+ export interface ChartTooltipSlots {
77
+ /**
78
+ * Replaces the default title + rows.
79
+ */
80
+ content?: Slot<ChartTooltipContentContext>;
81
+ }
82
+ export type ChartTooltipProps = MergeHtmlProps<ChartTooltipOwnProps, HTMLAttributes>;
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes, Ref } from 'vue';
2
+ import { ChartTooltipItem } from '@bridge-ui/core/Domain';
3
+ import { ChartTooltipContentContext, ChartTooltipOwnProps } from '../chartTooltip.types';
4
+ export declare function useChartTooltip(props: ChartTooltipOwnProps, tooltipRef: Readonly<Ref<null | HTMLDivElement>>): {
5
+ isOpen: import('vue').ComputedRef<boolean>;
6
+ merged: import('vue').ComputedRef<ChartTooltipOwnProps>;
7
+ context: import('vue').ComputedRef<ChartTooltipContentContext | null>;
8
+ itemBind: import('vue').ComputedRef<HTMLAttributes>;
9
+ rootBind: import('vue').ComputedRef<HTMLAttributes>;
10
+ labelBind: import('vue').ComputedRef<HTMLAttributes>;
11
+ titleBind: import('vue').ComputedRef<HTMLAttributes>;
12
+ valueBind: import('vue').ComputedRef<HTMLAttributes>;
13
+ formatValue: (item: ChartTooltipItem) => string;
14
+ getSwatchBind: (item: ChartTooltipItem) => HTMLAttributes;
15
+ };
@@ -0,0 +1,110 @@
1
+ import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
+ import { useChartContext as r } from "../../Chart/chartInjectionKey.js";
3
+ import { computed as i, shallowRef as a, useAttrs as o, watch as s } from "vue";
4
+ import { get as c, isEqual as l, isNil as u } from "es-toolkit/compat";
5
+ import { formatChartValue as d, resolveChartTooltipPosition as f } from "@bridge-ui/core/Domain";
6
+ import { cn as p, splitComponentProps as m } from "@bridge-ui/core/Utils";
7
+ //#region src/Components/ChartTooltip/composables/useChartTooltip.ts
8
+ var h = [
9
+ "classes",
10
+ "customProps",
11
+ "formatValue"
12
+ ];
13
+ function g(g, _) {
14
+ let v = o(), y = r(), b = a(null), x = i(() => m({
15
+ props: {
16
+ ...v,
17
+ ...g
18
+ },
19
+ bridgeKeys: h
20
+ })), { merged: S, entry: C } = t({
21
+ componentName: "ChartTooltip",
22
+ props: () => x.value.componentProps
23
+ }), w = n({
24
+ entry: C,
25
+ props: () => x.value.componentProps
26
+ }), T = i(() => S.value.customProps), E = i(() => !u(y.value.activeIndex) && y.value.tooltipItems.length > 0);
27
+ s([
28
+ E,
29
+ _,
30
+ () => y.value.activeIndex,
31
+ () => y.value.tooltipItems
32
+ ], () => {
33
+ let e = _.value, t = y.value.activeIndex;
34
+ if (!E.value || u(e) || u(t)) return;
35
+ let n = y.value.getTooltipAnchor(t), r = u(n) ? null : f({
36
+ anchor: n,
37
+ bounds: y.value.getBounds(),
38
+ size: {
39
+ width: e.offsetWidth,
40
+ height: e.offsetHeight
41
+ }
42
+ });
43
+ l(b.value, r) || (b.value = r);
44
+ }, {
45
+ flush: "post",
46
+ immediate: !0
47
+ });
48
+ let D = i(() => {
49
+ let e = y.value.activeIndex;
50
+ return u(e) ? null : {
51
+ index: e,
52
+ items: y.value.tooltipItems,
53
+ category: y.value.categories[e] ?? ""
54
+ };
55
+ });
56
+ function O(e) {
57
+ return S.value.formatValue?.(e.value, e) ?? d(e.value, y.value.locale);
58
+ }
59
+ let k = i(() => e(T.value?.root, x.value.inheritedAttrs, {
60
+ "aria-hidden": !0,
61
+ style: {
62
+ top: `${b.value?.top ?? 0}px`,
63
+ left: `${b.value?.left ?? 0}px`,
64
+ visibility: u(b.value) ? "hidden" : "visible"
65
+ },
66
+ class: p({
67
+ "pointer-events-none absolute z-20 flex min-w-32 flex-col": !0,
68
+ "rounded-md border border-dark-200 bg-white text-dark-700 shadow-lg": !0,
69
+ "dark:border-dark-700 dark:bg-dark-900 dark:text-dark-100": !0,
70
+ [y.value.tokenClasses.tooltip ?? ""]: !0,
71
+ [c(w.value, "root") ?? ""]: !0
72
+ })
73
+ })), A = i(() => ({ class: p({
74
+ "font-semibold": !0,
75
+ [c(w.value, "title") ?? ""]: !0
76
+ }) })), j = i(() => ({ class: p({
77
+ "flex items-center gap-2": !0,
78
+ [c(w.value, "item") ?? ""]: !0
79
+ }) }));
80
+ function M(e) {
81
+ return {
82
+ style: { backgroundColor: e.color },
83
+ class: p({
84
+ "shrink-0 rounded-full": !0,
85
+ [y.value.tokenClasses.swatch ?? ""]: !0,
86
+ [c(w.value, "swatch") ?? ""]: !0
87
+ })
88
+ };
89
+ }
90
+ return {
91
+ isOpen: E,
92
+ merged: S,
93
+ context: D,
94
+ itemBind: j,
95
+ rootBind: k,
96
+ labelBind: i(() => ({ class: p({
97
+ "flex-1 text-dark-500 dark:text-dark-400": !0,
98
+ [c(w.value, "label") ?? ""]: !0
99
+ }) })),
100
+ titleBind: A,
101
+ valueBind: i(() => ({ class: p({
102
+ "font-medium tabular-nums": !0,
103
+ [c(w.value, "value") ?? ""]: !0
104
+ }) })),
105
+ formatValue: O,
106
+ getSwatchBind: M
107
+ };
108
+ }
109
+ //#endregion
110
+ export { g as useChartTooltip };
@@ -0,0 +1,3 @@
1
+ export type { ChartTooltipClasses, ChartTooltipContentContext, ChartTooltipCustomProps, ChartTooltipOwnProps, ChartTooltipProps, ChartTooltipSlots, } from './chartTooltip.types';
2
+ export { default as ChartTooltip } from './ChartTooltip.vue';
3
+ export { useChartTooltip } from './composables/useChartTooltip';
@@ -0,0 +1,3 @@
1
+ import { useChartTooltip as e } from "./composables/useChartTooltip.js";
2
+ import t from "./ChartTooltip.js";
3
+ export { t as ChartTooltip, e as useChartTooltip };
@@ -2,15 +2,11 @@ type __VLS_Props = {
2
2
  ellipsis: boolean;
3
3
  tooltip?: string;
4
4
  };
5
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_15: {};
5
+ declare var __VLS_1: {}, __VLS_3: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  } & {
9
9
  default?: (props: typeof __VLS_3) => any;
10
- } & {
11
- default?: (props: typeof __VLS_5) => any;
12
- } & {
13
- default?: (props: typeof __VLS_15) => any;
14
10
  };
15
11
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,10 +1,7 @@
1
1
  import e from "../Tooltip/Tooltip.js";
2
- import { createBlock as t, createElementBlock as n, createElementVNode as r, defineComponent as i, openBlock as a, ref as o, renderSlot as s, unref as c, withCtx as l } from "vue";
2
+ import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, ref as c, renderSlot as l, unref as u } from "vue";
3
3
  //#region src/Components/DataTable/DataTableCellContent.vue?vue&type=script&setup=true&lang.ts
4
- var u = {
5
- key: 1,
6
- class: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap"
7
- }, d = { class: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap" }, f = { class: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap" }, p = /*@__PURE__*/ i({
4
+ var d = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, f = /*@__PURE__*/ o({
8
5
  inheritAttrs: !1,
9
6
  name: "DataTableCellContent",
10
7
  __name: "DataTableCellContent",
@@ -12,27 +9,29 @@ var u = {
12
9
  ellipsis: { type: Boolean },
13
10
  tooltip: {}
14
11
  },
15
- setup(i) {
16
- let p = o(!1), m = o(!1);
17
- function h() {
18
- p.value = !0, m.value = !0;
19
- }
20
- return (o, g) => i.ellipsis ? i.tooltip ? m.value ? (a(), t(c(e), {
21
- key: 3,
22
- content: i.tooltip,
23
- modelValue: p.value,
24
- "onUpdate:modelValue": g[0] ||= (e) => p.value = e,
25
- "custom-props": { trigger: { class: "block min-w-0 w-full max-w-full" } }
26
- }, {
27
- trigger: l(() => [r("div", f, [s(o.$slots, "default")])]),
28
- _: 3
29
- }, 8, ["content", "modelValue"])) : (a(), n("div", {
12
+ setup(o) {
13
+ let f = c(null), p = c(!1);
14
+ return (c, m) => (s(), i(t, null, [o.ellipsis ? (s(), i("div", {
15
+ key: 1,
16
+ ref_key: "anchorRef",
17
+ ref: f,
18
+ class: "block min-w-0 w-full max-w-full overflow-hidden",
19
+ onFocusin: m[0] ||= (e) => o.tooltip ? p.value = !0 : void 0,
20
+ onFocusout: m[1] ||= (e) => o.tooltip ? p.value = !1 : void 0,
21
+ onPointerenter: m[2] ||= (e) => o.tooltip ? p.value = !0 : void 0,
22
+ onPointerleave: m[3] ||= (e) => o.tooltip ? p.value = !1 : void 0
23
+ }, [a("div", d, [l(c.$slots, "default")])], 544)) : l(c.$slots, "default", {}, void 0, void 0, 0), o.ellipsis && o.tooltip ? (s(), n(u(e), {
30
24
  key: 2,
31
- onFocusin: h,
32
- onPointerenter: h,
33
- class: "block min-w-0 w-full max-w-full"
34
- }, [r("div", d, [s(o.$slots, "default")])], 32)) : (a(), n("div", u, [s(o.$slots, "default")])) : s(o.$slots, "default", {}, void 0, void 0, 0);
25
+ content: o.tooltip,
26
+ modelValue: p.value,
27
+ "onUpdate:modelValue": m[4] ||= (e) => p.value = e,
28
+ "anchor-el": f.value
29
+ }, null, 8, [
30
+ "content",
31
+ "modelValue",
32
+ "anchor-el"
33
+ ])) : r("", !0)], 64));
35
34
  }
36
35
  });
37
36
  //#endregion
38
- export { p as default };
37
+ export { f as default };
@@ -478,8 +478,8 @@ export declare function useDataTable<T extends Record<string, unknown>>(props: D
478
478
  cell: string | undefined;
479
479
  head: string | undefined;
480
480
  header: string;
481
- table: string;
482
481
  root: string;
482
+ table: string;
483
483
  };
484
484
  }>;
485
485
  footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{