@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
@@ -41,76 +41,76 @@ function p(p, m, h, g, Me) {
41
41
  ...Ne,
42
42
  ...p
43
43
  }
44
- })), A = a(() => k.value.componentProps), Fe = a(() => ({ classes: A.value.classes })), { components: Ie, entry: Le } = te({
44
+ })), A = a(() => k.value.componentProps), j = a(() => ({ classes: A.value.classes })), { components: Fe, entry: Ie } = te({
45
45
  chrome: "FormField",
46
46
  componentName: "Select",
47
- props: () => Fe.value
48
- }), j = i({
49
- entry: Le,
50
- props: () => Fe.value
51
- }), M = a(() => !!A.value.multiple), N = a(() => ({
47
+ props: () => j.value
48
+ }), M = i({
49
+ entry: Ie,
50
+ props: () => j.value
51
+ }), N = a(() => !!A.value.multiple), P = a(() => ({
52
52
  optionLabel: A.value.optionLabel ?? "label",
53
53
  optionValue: A.value.optionValue ?? "value",
54
54
  optionDescription: A.value.optionDescription ?? "description"
55
- })), P = a(() => Me.value.length > 0 ? Me.value.map((e) => ({
55
+ })), F = a(() => Me.value.length > 0 ? Me.value.map((e) => ({
56
56
  option: e,
57
57
  type: "option"
58
- })) : xe(A.value.options, N.value)), Re = a(() => u(P.value)), F = s([]);
59
- function ze(e) {
58
+ })) : xe(A.value.options, P.value)), Le = a(() => u(F.value)), I = s([]);
59
+ function Re(e) {
60
60
  if (!l(e)) return !1;
61
61
  let t = e.type;
62
62
  if (!l(t)) return !1;
63
63
  let n = t.name, r = t.__name;
64
64
  return n === "SelectOption" || r === "SelectOption";
65
65
  }
66
- function Be() {
66
+ function ze() {
67
67
  return t(_, "default") ? (_.default?.({}) ?? []).some((e) => {
68
68
  if (!l(e)) return !1;
69
69
  let t = e.type;
70
- return t === se || t === ce || t === void 0 || ge(t) ? !1 : !ze(e);
70
+ return t === se || t === ce || t === void 0 || ge(t) ? !1 : !Re(e);
71
71
  }) : !1;
72
72
  }
73
- let I = a(() => Be()), Ve = a(() => I.value ? ae(_.default?.({}) ?? []) : []), L = a(() => {
74
- if (I.value) return [];
73
+ let L = a(() => ze()), Be = a(() => L.value ? ae(_.default?.({}) ?? []) : []), R = a(() => {
74
+ if (L.value) return [];
75
75
  if (T.value.length > 0) {
76
- let e = xe(T.value, N.value);
76
+ let e = xe(T.value, P.value);
77
77
  return A.value.flipOptions ? [...e].reverse() : e;
78
78
  }
79
- return A.value.flipOptions ? [...P.value].reverse().map((e) => e.type === "section" ? {
79
+ return A.value.flipOptions ? [...F.value].reverse().map((e) => e.type === "section" ? {
80
80
  ...e,
81
81
  options: [...e.options].reverse()
82
- } : e) : P.value;
83
- }), He = a(() => I.value ? be(F.value, Ve.value) : u(L.value)), R = a(() => {
82
+ } : e) : F.value;
83
+ }), Ve = a(() => L.value ? be(I.value, Be.value) : u(R.value)), z = a(() => {
84
84
  let e = m.value;
85
- return M.value ? Array.isArray(e) ? e : [] : !he(e) && e !== "" ? [e] : [];
86
- }), Ue = a(() => Ce(A.value.overlay, Pe.mobile)), z = ne({
85
+ return N.value ? Array.isArray(e) ? e : [] : !he(e) && e !== "" ? [e] : [];
86
+ }), He = a(() => Ce(A.value.overlay, Pe.mobile)), B = ne({
87
87
  chrome: "FormField",
88
88
  componentName: "Select",
89
- overlay: Ue,
89
+ overlay: He,
90
90
  showFooter: () => A.value.showFooter
91
- }), We = a(() => z.value ? w.value : R.value), B = a(() => {
91
+ }), Ue = a(() => B.value ? w.value : z.value), V = a(() => {
92
92
  let e = /* @__PURE__ */ new Map();
93
- for (let t of [...He.value, ...E.value]) e.set(t.value, t);
94
- return R.value.map((t) => e.get(t) ?? {
93
+ for (let t of [...Ve.value, ...E.value]) e.set(t.value, t);
94
+ return z.value.map((t) => e.get(t) ?? {
95
95
  value: t,
96
96
  label: String(t)
97
97
  });
98
- }), V = a(() => R.value.length > 0), Ge = a(() => A.value.clearable === !0), H = a(() => !!A.value.asyncData), U = a(() => {
99
- if (H.value || A.value.searchable) return !0;
98
+ }), H = a(() => z.value.length > 0), We = a(() => A.value.clearable === !0), U = a(() => !!A.value.asyncData), W = a(() => {
99
+ if (U.value || A.value.searchable) return !0;
100
100
  let e = A.value.minItemsForSearch ?? 11;
101
- return Re.value.length >= e;
102
- }), W = a(() => b.value && U.value), Ke = a(() => !!A.value.loading || S.value), qe = a(() => {
103
- if (I.value) return [];
104
- if (!W.value || !x.value.trim()) return L.value;
101
+ return Le.value.length >= e;
102
+ }), G = a(() => b.value && W.value), Ge = a(() => !!A.value.loading || S.value), Ke = a(() => {
103
+ if (L.value) return [];
104
+ if (!G.value || !x.value.trim()) return R.value;
105
105
  let e = x.value.trim().toLowerCase();
106
- return ye(L.value, (t) => t.label.toLowerCase().includes(e));
107
- }), G = a(() => I.value ? F.value : u(qe.value)), K = oe(() => G.value, C, v), Je = a(() => p.readonly || p.disabled ? !0 : !W.value), Ye = a(() => W.value || M.value ? x.value : B.value[0]?.label ?? ""), Xe = (e) => {
106
+ return ye(R.value, (t) => t.label.toLowerCase().includes(e));
107
+ }), K = a(() => L.value ? I.value : u(Ke.value)), q = oe(() => K.value, C, v), qe = a(() => p.readonly || p.disabled ? !0 : !G.value), Je = a(() => G.value || N.value ? x.value : V.value[0]?.label ?? ""), Ye = (e) => {
108
108
  D.value = e instanceof HTMLElement ? e : null;
109
109
  };
110
- function Ze(e) {
110
+ function Xe(e) {
111
111
  e.preventDefault();
112
112
  }
113
- function Qe(e) {
113
+ function Ze(e) {
114
114
  if (p.disabled || p.readonly) return;
115
115
  let t = e.target;
116
116
  if (!t.closest("[data-select-clear]") && !(t.closest(".wrapper-start-slot") || t.closest(".wrapper-end-slot"))) {
@@ -118,10 +118,10 @@ function p(p, m, h, g, Me) {
118
118
  Z();
119
119
  return;
120
120
  }
121
- W.value || (Q(), h.value?.focus({ preventScroll: !0 }));
121
+ G.value || (Q(), h.value?.focus({ preventScroll: !0 }));
122
122
  }
123
123
  }
124
- let $e = a(() => {
124
+ let Qe = a(() => {
125
125
  let e = _e(k.value.inheritedAttrs, ["class"]), n = Ae({
126
126
  bridgeKeys: re,
127
127
  props: e
@@ -129,17 +129,17 @@ function p(p, m, h, g, Me) {
129
129
  return {
130
130
  ...n,
131
131
  endIcon: ee,
132
- classes: j.value,
132
+ classes: M.value,
133
133
  customProps: {
134
134
  ...i,
135
135
  container: r(i.container, {}, {
136
- ref: Xe,
137
- onClick: Qe,
138
- class: f({ "cursor-pointer": !p.disabled && !p.readonly && !W.value })
136
+ ref: Ye,
137
+ onClick: Ze,
138
+ class: f({ "cursor-pointer": !p.disabled && !p.readonly && !G.value })
139
139
  })
140
140
  }
141
141
  };
142
- }), et = a(() => p.customProps?.listbox), q = ie(() => $e.value, {
142
+ }), $e = a(() => p.customProps?.listbox), J = ie(() => Qe.value, {
143
143
  size: "md",
144
144
  rounded: "md",
145
145
  color: "primary",
@@ -147,36 +147,33 @@ function p(p, m, h, g, Me) {
147
147
  showErrorIcon: !0
148
148
  }, {
149
149
  componentName: "Select",
150
- likeInput: () => M.value,
151
- control: () => M.value ? "textarea" : "input"
152
- }), tt = a(() => V.value && Ge.value && !p.readonly && !q.isDisabled.value), J = (e) => {
153
- e && M.value && De(e);
150
+ likeInput: () => N.value,
151
+ control: () => N.value ? "textarea" : "input"
152
+ }), et = a(() => H.value && We.value && !p.readonly && !J.isDisabled.value), Y = (e) => {
153
+ e && N.value && De(e);
154
154
  };
155
- function nt(e) {
156
- return We.value.some((t) => d(t, e));
157
- }
158
- function Y(e) {
159
- m.value = e;
155
+ function tt(e) {
156
+ return Ue.value.some((t) => d(t, e));
160
157
  }
161
158
  function X(e) {
162
- if (M.value) {
159
+ if (N.value) {
163
160
  let t = Array.isArray(e) ? e : [];
164
- g("update:modelValue", t), g("change", t);
161
+ m.value = t, g("change", t);
165
162
  return;
166
163
  }
167
164
  let t = e ?? "";
168
- g("update:modelValue", t), g("change", t);
165
+ m.value = t, g("change", t);
169
166
  }
170
167
  function Z() {
171
- p.disabled || p.readonly || b.value || (w.value = [...R.value], b.value = !0, x.value = "", K.highlightCurrentSelection((e) => R.value.some((t) => d(t, e))), g("open"), H.value && A.value.asyncData && O?.searchImmediate(""));
168
+ p.disabled || p.readonly || b.value || (w.value = [...z.value], b.value = !0, x.value = "", q.highlightCurrentSelection((e) => z.value.some((t) => d(t, e))), g("open"), U.value && A.value.asyncData && O?.searchImmediate(""));
172
169
  }
173
170
  function Q() {
174
171
  O?.cancel(), b.value && (b.value = !1, x.value = "", C.value = -1, g("close"));
175
172
  }
176
- function rt(e) {
173
+ function nt(e) {
177
174
  if (!e.disabled) {
178
- if (z.value) {
179
- if (M.value) {
175
+ if (B.value) {
176
+ if (N.value) {
180
177
  let t = [...w.value], n = t.findIndex((t) => d(t, e.value));
181
178
  n >= 0 ? (t.splice(n, 1), g("deselect", e)) : (t.push(e.value), g("select", e)), w.value = t, x.value = "", C.value = -1, o(() => {
182
179
  h.value?.focus({ preventScroll: !0 });
@@ -186,91 +183,84 @@ function p(p, m, h, g, Me) {
186
183
  w.value = [e.value], g("select", e), x.value = "", C.value = -1;
187
184
  return;
188
185
  }
189
- if (M.value) {
190
- let t = [...R.value], n = t.findIndex((t) => d(t, e.value));
191
- n >= 0 ? (t.splice(n, 1), g("deselect", e)) : (t.push(e.value), g("select", e)), Y(t), X(t), x.value = "", C.value = -1, o(() => {
192
- J(h.value), h.value?.focus({ preventScroll: !0 });
186
+ if (N.value) {
187
+ let t = [...z.value], n = t.findIndex((t) => d(t, e.value));
188
+ n >= 0 ? (t.splice(n, 1), g("deselect", e)) : (t.push(e.value), g("select", e)), X(t), x.value = "", C.value = -1, o(() => {
189
+ Y(h.value), h.value?.focus({ preventScroll: !0 });
193
190
  });
194
191
  return;
195
192
  }
196
- Y(e.value), X(e.value), g("select", e), Q();
193
+ X(e.value), g("select", e), Q();
197
194
  }
198
195
  }
199
- function it() {
200
- if (M.value) Y(w.value), X(w.value);
201
- else {
202
- let e = w.value[0] ?? null;
203
- Y(e), X(e);
204
- }
205
- Q(), g("apply");
196
+ function rt() {
197
+ N.value ? X(w.value) : X(w.value[0] ?? null), Q(), g("apply");
206
198
  }
207
- function at() {
208
- w.value = [...R.value], Q(), g("cancel");
199
+ function it() {
200
+ w.value = [...z.value], Q(), g("cancel");
209
201
  }
210
- function ot(e) {
211
- e?.preventDefault(), e?.stopPropagation(), !(p.disabled || p.readonly) && (M.value ? (Y([]), X([])) : (Y(null), X(null)), g("clear"), Q());
202
+ function at(e) {
203
+ e?.preventDefault(), e?.stopPropagation(), !(p.disabled || p.readonly) && (N.value ? X([]) : X(null), g("clear"), Q());
212
204
  }
213
- function st(e, t) {
214
- if (t.preventDefault(), t.stopPropagation(), !M.value) return;
215
- let n = R.value.filter((t) => !d(t, e.value));
216
- Y(n), X(n), g("deselect", e), o(() => J(h.value));
205
+ function ot(e, t) {
206
+ t.preventDefault(), t.stopPropagation(), N.value && (X(z.value.filter((t) => !d(t, e.value))), g("deselect", e), o(() => Y(h.value)));
217
207
  }
218
- function ct() {
219
- let e = K.getHighlightedOption();
220
- e && rt(e);
208
+ function st() {
209
+ let e = q.getHighlightedOption();
210
+ e && nt(e);
221
211
  }
222
- function lt(e) {
212
+ function ct(e) {
223
213
  let t = e.target;
224
- x.value = t.value, g("search", x.value), b.value || Z(), K.resetHighlight(), H.value && O?.searchDebounced(x.value);
214
+ x.value = t.value, g("search", x.value), b.value || Z(), q.resetHighlight(), U.value && O?.searchDebounced(x.value);
225
215
  }
226
- function ut(e) {
216
+ function lt(e) {
227
217
  if (!(p.disabled || p.readonly)) switch (e.key) {
228
218
  case "ArrowDown":
229
- e.preventDefault(), b.value ? K.moveHighlight(1) : Z();
219
+ e.preventDefault(), b.value ? q.moveHighlight(1) : Z();
230
220
  break;
231
221
  case "ArrowUp":
232
- e.preventDefault(), b.value ? K.moveHighlight(-1) : Z();
222
+ e.preventDefault(), b.value ? q.moveHighlight(-1) : Z();
233
223
  break;
234
224
  case "Enter":
235
- e.preventDefault(), b.value ? ct() : Z();
225
+ e.preventDefault(), b.value ? st() : Z();
236
226
  break;
237
227
  case "Escape":
238
228
  e.preventDefault(), Q();
239
229
  break;
240
230
  case "Home":
241
- b.value && (e.preventDefault(), K.highlightFirst());
231
+ b.value && (e.preventDefault(), q.highlightFirst());
242
232
  break;
243
233
  case "End":
244
- b.value && (e.preventDefault(), K.highlightLast());
234
+ b.value && (e.preventDefault(), q.highlightLast());
245
235
  break;
246
236
  case "Backspace":
247
- if (M.value && !x.value && B.value.length > 0) {
237
+ if (N.value && !x.value && V.value.length > 0) {
248
238
  e.preventDefault();
249
- let t = B.value.at(-1);
250
- t && st(t, e);
239
+ let t = V.value.at(-1);
240
+ t && ot(t, e);
251
241
  }
252
242
  break;
253
243
  case "Tab": Q();
254
244
  }
255
245
  }
256
- async function dt(e) {
246
+ async function ut(e) {
257
247
  let t = A.value.asyncData;
258
248
  if (t) {
259
249
  S.value = !0;
260
250
  try {
261
- let { options: n, resolvedSelected: r } = await Te(t, e, R.value, (e) => Se(e, N.value));
251
+ let { options: n, resolvedSelected: r } = await Te(t, e, z.value, (e) => Se(e, P.value));
262
252
  r.length > 0 && (E.value = r), T.value = n;
263
253
  } finally {
264
254
  S.value = !1;
265
255
  }
266
256
  }
267
257
  }
268
- async function ft() {
258
+ async function dt() {
269
259
  let e = A.value.asyncData;
270
- e?.resolve && R.value.length !== 0 && (E.value = Se(await e.resolve(R.value), N.value));
260
+ e?.resolve && z.value.length !== 0 && (E.value = Se(await e.resolve(z.value), P.value));
271
261
  }
272
262
  let $ = a(() => {
273
- let e = ke(Ee, me(Ie.value, [
263
+ let e = ke(Ee, me(Fe.value, [
274
264
  "Select",
275
265
  "tokens",
276
266
  "listbox",
@@ -278,122 +268,122 @@ function p(p, m, h, g, Me) {
278
268
  ]));
279
269
  return Oe({
280
270
  tokens: e,
281
- color: q.merged.value.color,
282
- invalid: q.invalidated.value
271
+ color: J.merged.value.color,
272
+ invalid: J.invalidated.value
283
273
  });
284
- }), pt = a(() => $.value?.value), mt = a(() => {
285
- let e = !p.disabled && !p.readonly && !W.value, t = !p.disabled && !p.readonly && W.value && U.value, n = V.value && !M.value && !W.value;
274
+ }), ft = a(() => $.value?.value), pt = a(() => {
275
+ let e = !p.disabled && !p.readonly && !G.value, t = !p.disabled && !p.readonly && G.value && W.value, n = H.value && !N.value && !G.value;
286
276
  return r({
287
277
  role: "combobox",
288
- value: Ye.value,
278
+ value: Je.value,
289
279
  "aria-controls": v,
290
280
  "aria-expanded": b.value,
291
- readonly: Je.value,
292
- onKeydown: ut,
281
+ readonly: qe.value,
282
+ onKeydown: lt,
293
283
  placeholder: A.value.placeholder,
294
- "aria-autocomplete": U.value ? "list" : void 0,
295
- "aria-activedescendant": b.value ? K.activeDescendantId.value : void 0,
296
- ...M.value ? {
284
+ "aria-autocomplete": W.value ? "list" : void 0,
285
+ "aria-activedescendant": b.value ? q.activeDescendantId.value : void 0,
286
+ ...N.value ? {
297
287
  rows: 1,
298
288
  onInput: (e) => {
299
- lt(e), J(e.target);
289
+ ct(e), Y(e.target);
300
290
  }
301
- } : { onInput: lt }
302
- }, q.inputBind.value, f({
291
+ } : { onInput: ct }
292
+ }, J.inputBind.value, f({
303
293
  "cursor-text": t,
304
294
  "cursor-pointer": e,
305
- "resize-none overflow-hidden": M.value,
306
- [f(pt.value, j.value.value) ?? ""]: n
295
+ "resize-none overflow-hidden": N.value,
296
+ [f(ft.value, M.value.value) ?? ""]: n
307
297
  }));
308
298
  });
309
299
  c(() => [
310
300
  b.value,
311
- M.value,
301
+ N.value,
312
302
  h.value
313
303
  ], () => {
314
- J(h.value);
304
+ Y(h.value);
315
305
  }, { immediate: !0 }), c(() => m.value, () => {
316
- ft();
306
+ dt();
317
307
  }, { immediate: !0 }), c(() => A.value.asyncData, (e) => {
318
- if (O?.cancel(), T.value = [], ft(), !e) {
308
+ if (O?.cancel(), T.value = [], dt(), !e) {
319
309
  O = null;
320
310
  return;
321
311
  }
322
- O = ve((e) => void dt(e), we(e));
312
+ O = ve((e) => void ut(e), we(e));
323
313
  }, { immediate: !0 }), le(() => {
324
314
  O?.cancel();
325
315
  }), ue(() => {
326
- J(h.value);
316
+ Y(h.value);
327
317
  });
328
- let ht = a(() => ee(q.merged.value.size)), gt = a(() => r({}, {}, {
318
+ let mt = a(() => ee(J.merged.value.size)), ht = a(() => r({}, {}, {
329
319
  tabindex: 0,
330
320
  role: "button",
331
321
  "data-select-clear": !0,
332
- onMousedown: Ze,
322
+ onMousedown: Xe,
333
323
  class: f({
334
324
  "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-sm transition-colors duration-150": !0,
335
325
  [$.value?.clear ?? ""]: !0,
336
- [j.value.clear ?? ""]: !0
326
+ [M.value.clear ?? ""]: !0
337
327
  })
338
- })), _t = a(() => ({
328
+ })), gt = a(() => ({
339
329
  listboxId: v,
340
- isSelected: nt,
330
+ isSelected: tt,
341
331
  disableAutoFocus: !0,
342
332
  overlay: p.overlay,
343
- loading: Ke.value,
344
- multiple: M.value,
333
+ loading: Ge.value,
334
+ multiple: N.value,
345
335
  maxHeight: p.maxHeight,
346
- showFooter: z.value,
347
- entries: qe.value,
348
- options: G.value,
349
- size: q.merged.value.size,
350
- error: q.invalidated.value,
351
- color: q.merged.value.color,
352
- labelledBy: q.controlId.value,
353
- rounded: q.merged.value.rounded,
336
+ showFooter: B.value,
337
+ entries: Ke.value,
338
+ options: K.value,
339
+ size: J.merged.value.size,
340
+ error: J.invalidated.value,
341
+ color: J.merged.value.color,
342
+ labelledBy: J.controlId.value,
343
+ rounded: J.merged.value.rounded,
354
344
  highlightedIndex: C.value,
355
345
  disableMaxHeight: p.disableMaxHeight === !0,
356
346
  hideEmptyMessage: A.value.hideEmptyMessage === !0,
357
347
  emptyMessage: A.value.emptyMessage ?? y("No options"),
358
348
  loadingMessage: A.value.loadingMessage ?? y("Loading..."),
359
- ...et.value
349
+ ...$e.value
360
350
  }));
361
- function vt(e) {
351
+ function _t(e) {
362
352
  if (e.length === 0) return;
363
- let t = F.value;
353
+ let t = I.value;
364
354
  t.length === e.length && t.every((t, n) => {
365
355
  let r = e[n];
366
356
  return t.label === r?.label && t.description === r?.description && String(t.value) === String(r?.value) && !!t.disabled == !!r?.disabled;
367
- }) || (F.value = e);
357
+ }) || (I.value = e);
368
358
  }
369
359
  return {
370
360
  open: b,
371
361
  slots: _,
372
- hasValue: V,
373
- multiple: M,
362
+ hasValue: H,
363
+ multiple: N,
374
364
  listboxId: v,
375
- formField: q,
376
- isLoading: Ke,
377
- clearable: Ge,
378
- clearBind: gt,
379
- isSelected: nt,
380
- clearValue: ot,
381
- removeChip: st,
382
- triggerBind: mt,
383
- handleApply: it,
384
- selectOption: rt,
385
- handleCancel: at,
365
+ formField: J,
366
+ isLoading: Ge,
367
+ clearable: We,
368
+ clearBind: ht,
369
+ isSelected: tt,
370
+ clearValue: at,
371
+ removeChip: ot,
372
+ triggerBind: pt,
373
+ handleApply: rt,
374
+ selectOption: nt,
375
+ handleCancel: it,
386
376
  containerRef: D,
387
- listboxProps: _t,
388
- clearIconSize: ht,
389
- mergedClasses: j,
390
- showClearIcon: tt,
391
- visibleOptions: G,
392
- isSearchActive: W,
393
- selectedOptions: B,
394
- hasComposedList: I,
377
+ listboxProps: gt,
378
+ clearIconSize: mt,
379
+ mergedClasses: M,
380
+ showClearIcon: et,
381
+ visibleOptions: K,
382
+ isSearchActive: G,
383
+ selectedOptions: V,
384
+ hasComposedList: L,
395
385
  highlightedIndex: C,
396
- handleRegisteredOptionsChange: vt,
386
+ handleRegisteredOptionsChange: _t,
397
387
  hideEmptyMessage: a(() => A.value.hideEmptyMessage === !0),
398
388
  emptyMessage: a(() => A.value.emptyMessage ?? y("No options")),
399
389
  loadingMessage: a(() => A.value.loadingMessage ?? y("Loading..."))
@@ -18,9 +18,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
18
18
  }>, {
19
19
  teleportTo: false | string;
20
20
  progressbar: boolean;
21
+ position: import('@bridge-ui/core/Utils').MergeProps<import('@bridge-ui/core/Tokens').SnackbarPosition, import('./snackbar.types').SnackbarPositionOverrides>;
21
22
  closeButton: boolean;
22
23
  duration: false | number;
23
- position: import('@bridge-ui/core/Utils').MergeProps<import('@bridge-ui/core/Tokens').SnackbarPosition, import('./snackbar.types').SnackbarPositionOverrides>;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -65,12 +65,11 @@ var w = { class: "w-full max-w-sm pointer-events-auto" }, T = ["src"], E = { cla
65
65
  onClose: () => M("close"),
66
66
  onLeaveComplete: () => M("leave-complete"),
67
67
  onShowChange: (e) => M("show-change", e)
68
- }), X = i(() => !!(j.icon || q.value || I.value.img)), Z = i(() => !!(j.title || I.value.title)), Q = i(() => !!(j.description || I.value.description)), $ = i(() => !!j.right), ee = i(() => I.value.teleportTo === !1), te = i(() => I.value.teleportTo === !1 ? "body" : I.value.teleportTo);
69
- return (e, n) => b(L) ? (_(), a(r, {
68
+ }), X = i(() => !!(j.icon || q.value || I.value.img)), Z = i(() => !!(j.title || I.value.title)), Q = i(() => !!(j.description || I.value.description)), $ = i(() => !!j.right), ee = i(() => I.value.teleportTo === !1 ? "body" : I.value.teleportTo);
69
+ return (e, n) => b(L) && b(V) ? (_(), a(r, {
70
70
  key: 0,
71
- to: te.value,
72
- disabled: ee.value
73
- }, [b(L) && b(V) ? (_(), s("div", g(m({ key: 0 }, b(H))), [c("div", w, [c("div", m({ ref: b(W) }, b(z), { class: b(C)(b(z).class, { flex: $.value }) }), [
71
+ to: ee.value
72
+ }, [c("div", g(f(b(H))), [c("div", w, [c("div", m({ ref: b(W) }, b(z), { class: b(C)(b(z).class, { flex: $.value }) }), [
74
73
  c("div", g(f(b(U)($.value))), [c("div", { class: h({
75
74
  "flex items-start": !$.value,
76
75
  "w-full flex": $.value
@@ -113,7 +112,7 @@ var w = { class: "w-full max-w-sm pointer-events-auto" }, T = ["src"], E = { cla
113
112
  ], 2)], 16),
114
113
  v(e.$slots, "right"),
115
114
  b(G) ? (_(), s("div", g(m({ key: 0 }, b(K))), null, 16)) : o("", !0)
116
- ], 16)])], 16)) : b(L) ? (_(), s("div", m({
115
+ ], 16)])], 16)], 8, ["to"])) : b(L) ? (_(), s("div", m({
117
116
  key: 1,
118
117
  ref: b(W)
119
118
  }, b(z), { class: b(C)(b(z).class, { flex: $.value }) }), [
@@ -159,7 +158,7 @@ var w = { class: "w-full max-w-sm pointer-events-auto" }, T = ["src"], E = { cla
159
158
  ], 2)], 16),
160
159
  v(e.$slots, "right"),
161
160
  b(G) ? (_(), s("div", g(m({ key: 0 }, b(K))), null, 16)) : o("", !0)
162
- ], 16)) : o("", !0)], 8, ["to", "disabled"])) : o("", !0);
161
+ ], 16)) : o("", !0);
163
162
  }
164
163
  });
165
164
  //#endregion
@@ -36,7 +36,7 @@ function b(b, x, S, C) {
36
36
  }
37
37
  function F(e) {
38
38
  let t = O.get(e);
39
- t?.disabled || t?.clickable === !1 || (S.value = e, C("update:modelValue", e), C("change", e));
39
+ t?.disabled || t?.clickable === !1 || (S.value = e, C("change", e));
40
40
  }
41
41
  function I(e) {
42
42
  document.getElementById(d(E, e))?.focus();
@@ -7,6 +7,6 @@ export declare function useTableCell(props: TableCellOwnProps | TableHeadOwnProp
7
7
  rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
8
8
  scope: string | undefined;
9
9
  class: string;
10
- }, "class", import('vue').TdHTMLAttributes | import('vue').ThHTMLAttributes | undefined, Omit<TableCellProps | TableHeadProps, "classes" | "customProps" | "numeric" | "align">>>;
10
+ }, "class", import('vue').ThHTMLAttributes | import('vue').TdHTMLAttributes | undefined, Omit<TableCellProps | TableHeadProps, "classes" | "customProps" | "numeric" | "align">>>;
11
11
  };
12
12
  export {};
@@ -29,7 +29,7 @@ function y(y, b, x, S) {
29
29
  props: () => k.value.componentProps
30
30
  }), M = i(() => x.value ?? "");
31
31
  function N(e) {
32
- D.value.includes(e) || (x.value = e, S("update:modelValue", e), S("change", e));
32
+ D.value.includes(e) || (x.value = e, S("change", e));
33
33
  }
34
34
  function P(e, t = !1) {
35
35
  return E.value.includes(e) || (E.value = [...E.value, e]), t ? D.value.includes(e) || (D.value = [...D.value, e]) : D.value = D.value.filter((t) => t !== e), (x.value ?? "") === "" && !t && (x.value = e), () => {
@@ -3,7 +3,7 @@ import { TOGGLE_GROUP_INJECTION_KEY as r } from "../toggleGroupInjectionKey.js";
3
3
  import { computed as i, provide as a, ref as o, useAttrs as s, useId as c } from "vue";
4
4
  import { get as l, head as u, isArray as d } from "es-toolkit/compat";
5
5
  import { applyToggleGroupSelection as f, getAdjacentTabValue as p, normalizeToggleGroupValue as m } from "@bridge-ui/core/Domain";
6
- import { toggleGroupColorProps as h, toggleGroupOrientationProps as g, toggleGroupRoundedProps as ee, toggleGroupSizeProps as te, toggleGroupVariantProps as _ } from "@bridge-ui/core/Tokens";
6
+ import { toggleGroupColorProps as ee, toggleGroupOrientationProps as te, toggleGroupRoundedProps as h, toggleGroupSizeProps as g, toggleGroupVariantProps as _ } from "@bridge-ui/core/Tokens";
7
7
  import { cn as v, mergeBridgeUILayeredClasses as y, splitComponentProps as b } from "@bridge-ui/core/Utils";
8
8
  //#region src/Components/ToggleGroup/composables/useToggleGroup.ts
9
9
  var x = [
@@ -39,7 +39,7 @@ function w(u, d, w, T) {
39
39
  function R(e) {
40
40
  if (N.value.disabled || A.value.includes(e)) return;
41
41
  let t = f(L.value, e, F.value);
42
- w.value = t, j.value = e, T("update:modelValue", t), T("change", t);
42
+ w.value = t, j.value = e, T("change", t);
43
43
  }
44
44
  function z(e, t = !1) {
45
45
  return k.value.includes(e) || (k.value = [...k.value, e]), t ? A.value.includes(e) || (A.value = [...A.value, e]) : A.value = A.value.filter((t) => t !== e), j.value === "" && !t && (j.value = e), !F.value && !t && m(w.value, !1) === "" && (w.value = e), () => {
@@ -72,7 +72,7 @@ function w(u, d, w, T) {
72
72
  let H = n({
73
73
  entry: P,
74
74
  props: () => M.value.componentProps
75
- }), U = i(() => y(te, P.value?.tokens?.size)), W = i(() => y(_, P.value?.tokens?.variant)), G = i(() => y(h, P.value?.tokens?.color)), K = i(() => y(ee, P.value?.tokens?.rounded)), q = i(() => y(g, P.value?.tokens?.orientation)), J = i(() => l(U.value, N.value.size)), Y = i(() => l(W.value, N.value.variant)), X = i(() => l(G.value, N.value.color)), Z = i(() => l(K.value, N.value.rounded)), Q = i(() => l(q.value, N.value.orientation)), $ = i(() => ({
75
+ }), U = i(() => y(g, P.value?.tokens?.size)), W = i(() => y(_, P.value?.tokens?.variant)), G = i(() => y(ee, P.value?.tokens?.color)), K = i(() => y(h, P.value?.tokens?.rounded)), q = i(() => y(te, P.value?.tokens?.orientation)), J = i(() => l(U.value, N.value.size)), Y = i(() => l(W.value, N.value.variant)), X = i(() => l(G.value, N.value.color)), Z = i(() => l(K.value, N.value.rounded)), Q = i(() => l(q.value, N.value.orientation)), $ = i(() => ({
76
76
  toggleItem: R,
77
77
  id: O,
78
78
  focusToggleItem: B,
@@ -57,14 +57,16 @@ var x = /*@__PURE__*/ d({
57
57
  C.onShowChange?.(e), S("show-change", e);
58
58
  }
59
59
  }), P = a(() => T.value.teleportTo === !1), F = a(() => T.value.teleportTo === !1 ? "body" : T.value.teleportTo);
60
- return (n, a) => (h(), c(r, null, [v(e)(v(x), "trigger") ? (h(), c("div", m(p({ key: 0 }, v(D))), [l("div", p({ ref: v(M) }, v(k)), [g(n.$slots, "trigger")], 16)], 16)) : s("", !0), v(E) ? (h(), o(i, {
61
- key: 1,
60
+ return (n, a) => (h(), c(r, null, [v(e)(v(x), "trigger") ? (h(), c("div", m(p({ key: 0 }, v(D))), [l("div", p({ ref: v(M) }, v(k)), [g(n.$slots, "trigger")], 16)], 16)) : s("", !0), (h(), o(i, {
62
61
  to: F.value,
63
62
  disabled: P.value
64
- }, [l("div", p({ ref: v(N) }, v(A)), [v(e)(v(x), "default") ? g(n.$slots, "default", {}, void 0, void 0, 0) : v(t)(v(T).content) ? (h(), c(r, { key: 1 }, [u(_(v(T).content), 1)], 64)) : s("", !0), v(O) ? (h(), c("div", p({
63
+ }, [v(E) ? (h(), c("div", p({
64
+ key: 0,
65
+ ref: v(N)
66
+ }, v(A)), [v(e)(v(x), "default") ? g(n.$slots, "default", {}, void 0, void 0, 0) : v(t)(v(T).content) ? (h(), c(r, { key: 1 }, [u(_(v(T).content), 1)], 64)) : s("", !0), v(O) ? (h(), c("div", p({
65
67
  key: 2,
66
68
  ref: v(j)
67
- }, v(O)), null, 16)) : s("", !0)], 16)], 8, ["to", "disabled"])) : s("", !0)], 64));
69
+ }, v(O)), null, 16)) : s("", !0)], 16)) : s("", !0)], 8, ["to", "disabled"]))], 64));
68
70
  }
69
71
  });
70
72
  //#endregion