bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.74

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 (179) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbBadge.md +4 -4
  6. package/dist/ai/BbCalendar.md +4 -3
  7. package/dist/ai/BbColorPalette.md +8 -9
  8. package/dist/ai/BbConfirmPortal.md +1 -1
  9. package/dist/ai/BbDatePicker.md +4 -3
  10. package/dist/ai/BbDialog.md +14 -4
  11. package/dist/ai/BbDropdown.md +23 -10
  12. package/dist/ai/BbDropdownButton.md +2 -2
  13. package/dist/ai/BbForm.md +4 -1
  14. package/dist/ai/BbHoverCardPortal.md +1 -1
  15. package/dist/ai/BbNumberInput.md +5 -3
  16. package/dist/ai/BbPopoverPortal.md +1 -1
  17. package/dist/ai/BbTable.md +43 -19
  18. package/dist/ai/BbTimePicker.md +4 -3
  19. package/dist/ai/BbToastPortal.md +1 -1
  20. package/dist/ai/changelog.json +56 -4
  21. package/dist/ai/components.json +54 -18
  22. package/dist/ai/guides/design-tokens.md +20 -0
  23. package/dist/ai/guides/eslint-rules.md +1 -1
  24. package/dist/ai/guides/inertia-helpers.md +613 -53
  25. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  26. package/dist/ai/guides/migration/v2-to-v3.md +24 -0
  27. package/dist/ai/guides/migration/v3-beta-tooling.md +3 -0
  28. package/dist/ai/guides/preset-components.md +15 -2
  29. package/dist/ai/guides/reporting.md +49 -0
  30. package/dist/ai/helpers/inertia/manifest.json +33 -38
  31. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  32. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  33. package/dist/ai/helpers/inertia/utils.ts +552 -3
  34. package/dist/ai/index.md +1 -0
  35. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  36. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  37. package/dist/ai/manifest/components/BbColorPalette.json +3 -3
  38. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  39. package/dist/ai/manifest/components/BbDatePicker.json +3 -3
  40. package/dist/ai/manifest/components/BbDialog.tree.json +5 -1
  41. package/dist/ai/manifest/components/BbDropdown.json +3 -3
  42. package/dist/ai/manifest/components/BbDropdown.tree.json +3 -2
  43. package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
  44. package/dist/ai/manifest/components/BbForm.json +1 -1
  45. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  46. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  47. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  48. package/dist/ai/manifest/components/BbPopover.json +1 -1
  49. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  50. package/dist/ai/manifest/components/BbSelectPopover.json +1 -1
  51. package/dist/ai/manifest/components/BbTable.tree.json +12 -6
  52. package/dist/ai/manifest/components/BbTimePicker.json +3 -3
  53. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  54. package/dist/ai/manifest/components/CommonPopover.json +1 -1
  55. package/dist/ai/manifest/index.json +2 -2
  56. package/dist/ai/manifest/meta.json +36 -0
  57. package/dist/ai/manifest/types.advanced.json +81 -80
  58. package/dist/ai/manifest/types.api.json +66 -65
  59. package/dist/ai/manifest/types.wrapper.json +155 -118
  60. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  61. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  62. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  63. package/dist/ai/source/BbAlert.md +16 -4
  64. package/dist/ai/source/BbAvatar.md +2 -0
  65. package/dist/ai/source/BbBreadcrumbs.md +4 -1
  66. package/dist/ai/source/BbCalendar.md +22 -12
  67. package/dist/ai/source/BbColorPalette.md +41 -12
  68. package/dist/ai/source/BbConfirm.md +7 -0
  69. package/dist/ai/source/BbConfirmPortal.md +9 -4
  70. package/dist/ai/source/BbDatePicker.md +53 -22
  71. package/dist/ai/source/BbDatePickerInput.md +32 -8
  72. package/dist/ai/source/BbDialog.md +31 -1
  73. package/dist/ai/source/BbDropdown.md +52 -24
  74. package/dist/ai/source/BbDropdownGroup.md +17 -21
  75. package/dist/ai/source/BbForm.md +73 -6
  76. package/dist/ai/source/BbHoverCard.md +7 -0
  77. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  78. package/dist/ai/source/BbNumberInput.md +5 -6
  79. package/dist/ai/source/BbOffCanvas.md +34 -1
  80. package/dist/ai/source/BbPopover.md +7 -0
  81. package/dist/ai/source/BbPopoverPortal.md +9 -5
  82. package/dist/ai/source/BbRadio.md +4 -3
  83. package/dist/ai/source/BbRadioGroup.md +7 -5
  84. package/dist/ai/source/BbTable.md +54 -6
  85. package/dist/ai/source/BbTag.md +10 -3
  86. package/dist/ai/source/BbTimePicker.md +50 -15
  87. package/dist/ai/source/BbTimePickerInput.md +30 -7
  88. package/dist/ai/source/BbToast.md +14 -0
  89. package/dist/ai/source/BbToastPortal.md +16 -4
  90. package/dist/ai/source/CommonFieldInput.md +11 -5
  91. package/dist/ai/source/CommonPopover.md +4 -1
  92. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  93. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +1 -1
  94. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  95. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  96. package/dist/components/BbCalendar/types.d.ts +2 -2
  97. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  98. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +197 -192
  99. package/dist/components/BbColorPalette/types.d.ts +1 -1
  100. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  101. package/dist/components/BbConfirm/types.d.ts +5 -0
  102. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  103. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +145 -139
  104. package/dist/components/BbDatePicker/types.d.ts +2 -2
  105. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +337 -335
  106. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +253 -245
  107. package/dist/components/BbDialog/leaveGhost.js +33 -0
  108. package/dist/components/BbDialog/overlayActions.js +34 -20
  109. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +11 -3
  110. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +4 -4
  111. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +119 -120
  112. package/dist/components/BbDropdown/types.d.ts +8 -17
  113. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  114. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  115. package/dist/components/BbForm/types.d.ts +31 -0
  116. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  117. package/dist/components/BbHoverCard/types.d.ts +5 -0
  118. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  119. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  120. package/dist/components/BbNumberInput/types.d.ts +4 -3
  121. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +385 -377
  122. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  123. package/dist/components/BbPopover/types.d.ts +5 -0
  124. package/dist/components/BbRadio/types.d.ts +4 -3
  125. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +10 -12
  126. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +231 -231
  127. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  128. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  129. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
  130. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +106 -100
  131. package/dist/components/BbTimePicker/types.d.ts +2 -2
  132. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +214 -213
  133. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  134. package/dist/components/BbToast/types.d.ts +5 -0
  135. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  136. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +1 -1
  137. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  138. package/dist/composables/formSubmitLock.js +2 -1
  139. package/dist/composables/overlayRegistry.js +52 -42
  140. package/dist/composables/useActiveInactiveState.js +8 -4
  141. package/dist/composables/useBbDialog.js +5 -5
  142. package/dist/composables/useOwnModel.js +16 -0
  143. package/dist/composables/useSegmentedFields.js +31 -20
  144. package/dist/i18n/currencyDigits.js +58 -0
  145. package/dist/i18n/regionDates.js +250 -0
  146. package/dist/i18n/regionHints.js +30 -41
  147. package/dist/index.d.ts +34 -30
  148. package/dist/llms-full.txt +860 -129
  149. package/dist/llms.txt +3 -1
  150. package/dist/styles.css +2 -2
  151. package/dist/types/ActionButton.d.ts +3 -1
  152. package/dist/types/CommonProps.d.ts +8 -0
  153. package/dist/utilities/functions/hash.js +97 -64
  154. package/dist/utilities/functions/isEqual.js +33 -25
  155. package/dist/utils/versionCheck.js +1 -1
  156. package/dist/vite-plugin.d.ts +2 -1
  157. package/dist/vite.js +8 -4
  158. package/llms.txt +3 -1
  159. package/package.json +1 -2
  160. package/scripts/README.md +1 -1
  161. package/scripts/lib/adoption-checklist.json +6 -5
  162. package/scripts/lib/agent-manifest.mjs +33 -6
  163. package/scripts/lib/agent-setup.mjs +54 -6
  164. package/scripts/lib/cldr-pins.ts +182 -0
  165. package/scripts/lib/engines-include.d.mts +5 -0
  166. package/scripts/lib/engines-include.mjs +40 -0
  167. package/scripts/lib/eslint-plugin.mjs +8 -2
  168. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  169. package/scripts/lib/idiom-scan.mjs +30 -3
  170. package/scripts/lib/legacy-agent-files.json +152 -0
  171. package/scripts/lib/mcp-config.mjs +74 -7
  172. package/scripts/lib/portal-names.mjs +78 -8
  173. package/scripts/lib/release-results.mjs +5 -2
  174. package/scripts/lib/report.mjs +340 -0
  175. package/scripts/lib/run-beat.mjs +14 -0
  176. package/scripts/lib/run-records.mjs +313 -0
  177. package/scripts/lib/selector-log.mjs +98 -0
  178. package/scripts/lib/ticket-beat.mjs +30 -0
  179. package/scripts/lib/validate-bb-markup.mjs +17 -2
@@ -0,0 +1,33 @@
1
+ import { wait as e } from "../../utilities/functions/wait.js";
2
+ // src/components/BbDialog/leaveGhost.ts
3
+ var t = "bb-overlay-ghost", n = 50, r = 0, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = !0, s = (e) => {
4
+ i.set(e, ++r);
5
+ }, c = (e) => {
6
+ i.delete(e);
7
+ }, l = (e) => {
8
+ let t = i.get(e);
9
+ if (t === void 0) return !1;
10
+ for (let e of i.values()) if (e > t) return !1;
11
+ return !0;
12
+ }, u = (e) => {
13
+ for (let t of [e, ...e.querySelectorAll("*")]) t.removeAttribute("id"), t.removeAttribute("autofocus"), t !== e && t instanceof HTMLDialogElement && t.removeAttribute("open");
14
+ }, d = (r, i) => {
15
+ let s = typeof document < "u" && !!r?.open && o && i.duration > 0 && l(i.id) && (i.closingSince === null || performance.now() - i.closingSince <= n);
16
+ if (c(i.id), !r?.open) return !1;
17
+ let d = s ? r.cloneNode(!0) : null;
18
+ r.close();
19
+ let f = document.activeElement, p = f instanceof HTMLElement && f !== document.body ? f : i.opener instanceof HTMLElement && i.opener.isConnected ? i.opener : null;
20
+ if (!d) return p && p !== f && p.focus({ preventScroll: !0 }), !1;
21
+ d.removeAttribute("open"), u(d), d.inert = !0, d.setAttribute("aria-hidden", "true"), d.setAttribute("data-bb-leaving", ""), d.classList.add(t, i.openClass), document.body.append(d);
22
+ try {
23
+ d.showModal();
24
+ } catch {
25
+ return d.remove(), !1;
26
+ }
27
+ return a.add(d), d.getBoundingClientRect(), d.classList.remove(t, i.openClass), e(i.duration).then(() => {
28
+ if (!a.has(d)) return;
29
+ let e = document.activeElement, t = !e || e === document.body || e === p || d.contains(e);
30
+ d.open && d.close(), d.remove(), a.delete(d), t && p?.isConnected && p.focus({ preventScroll: !0 });
31
+ }), !0;
32
+ };
33
+ export { d as leaveAsGhost, c as surfaceGone, s as surfaceShown };
@@ -48,30 +48,43 @@ var m = Symbol.for("bitboss-ui:overlay-action-attrs"), h = (e) => e === !0 || e
48
48
  return n.length === 1 ? n[0] : null;
49
49
  }, D = (e) => {
50
50
  i(e) || u(e, y, o.COMPONENT_EVENT_HANDLER);
51
- }, O = null;
51
+ }, O = null, k = p(0);
52
52
  _.surface.onSubmitted = (e, t) => {
53
53
  if (!t || e !== E()) return;
54
54
  let n = t.value === void 0 ? t.values : t.value;
55
- O = _.complete(n).catch(D);
55
+ k.value++, O = _.complete(n).catch(D).finally(() => k.value--);
56
56
  };
57
- let k = p(null), A = async (e, t) => {
58
- if (k.value === null) {
59
- k.value = e.key;
60
- try {
61
- if (e.onClick && await e.onClick() === !1) return;
62
- if (e.kind === "cancel") return _.close();
63
- let n = e.kind === "ok" ? E() : null;
64
- if (n) {
65
- O = null, await n.submit(t) && await O;
66
- return;
57
+ let A = p(null), j = () => _.surface.pending() || k.value > 0, M = (e) => A.value === null ? j() && (e.kind !== "cancel" || _.closeLocked()) : A.value !== e.key, N = {
58
+ class: "bb-button--soft-disabled",
59
+ "aria-disabled": !0,
60
+ tabindex: -1
61
+ }, P = async (e, t) => {
62
+ if (A.value === null) {
63
+ if (M(e)) e.kind === "cancel" && _.close();
64
+ else {
65
+ A.value = e.key;
66
+ try {
67
+ if (e.onClick && await e.onClick() === !1) return;
68
+ if (e.kind === "cancel") return _.close();
69
+ let n = e.kind === "ok" ? E() : null;
70
+ if (n) {
71
+ O = null, await n.submit(t) && await O;
72
+ return;
73
+ }
74
+ await _.complete(_.data());
75
+ } catch (e) {
76
+ D(e);
77
+ } finally {
78
+ A.value = null;
67
79
  }
68
- await _.complete(_.data());
69
- } catch (e) {
70
- D(e);
71
- } finally {
72
- k.value = null;
73
80
  }
74
81
  }
82
+ }, F = (e) => {
83
+ let t = e.kind === "ok" ? E() : null;
84
+ return t ? {
85
+ type: "submit",
86
+ form: t.id()
87
+ } : {};
75
88
  };
76
89
  return {
77
90
  resolved: w,
@@ -80,9 +93,10 @@ var m = Symbol.for("bitboss-ui:overlay-action-attrs"), h = (e) => e === !0 || e
80
93
  key: t.key,
81
94
  class: `${_.block}__action`,
82
95
  ...g(a(t)),
83
- loading: k.value === t.key,
84
- disabled: k.value !== null && k.value !== t.key,
85
- onClick: (e) => A(t, e?.currentTarget ?? void 0)
96
+ ...F(t),
97
+ loading: A.value === t.key,
98
+ ...M(t) ? N : {},
99
+ onClick: (e) => (e?.preventDefault(), P(t, e?.currentTarget ?? void 0))
86
100
  }, S?.() ?? {})))
87
101
  };
88
102
  }, v = (e) => {
@@ -621,7 +621,9 @@ var We = [
621
621
  gn = !0, setTimeout(() => gn = !1, 0);
622
622
  }, Z = (e) => {
623
623
  let t = e.target;
624
- t instanceof HTMLElement && (e.type === "focusin" && gn && k.value?.contains(t) || t.closest(`[data-bb-dropdown-surface="${E}"]`) || e.type === "focusin" && t.querySelector(`[data-bb-dropdown-surface="${E}"]`) || $());
624
+ if (!(t instanceof HTMLElement) || e.type === "focusin" && gn && k.value?.contains(t) || t.closest(`[data-bb-dropdown-surface="${E}"]`) || e.type === "focusin" && t.querySelector(`[data-bb-dropdown-surface="${E}"]`) || e.type !== "focusin" && k.value?.contains(t) || ($(), e.type === "focusin")) return;
625
+ let n = document.activeElement, r = k.value;
626
+ r?.isConnected && n && n !== document.body && n !== r && n.contains(r) && r.focus({ preventScroll: !0 });
625
627
  }, vn = (e) => {
626
628
  let t = e.detail;
627
629
  t && t.surfaceId !== E && (t.activator?.closest(`[data-bb-dropdown-surface="${E}"]`) || $());
@@ -634,7 +636,13 @@ var We = [
634
636
  K.value || (lt.value = ct(), _t = !0, j.value = !0, document.dispatchEvent(new CustomEvent(Ke, { detail: {
635
637
  surfaceId: E,
636
638
  activator: k.value
637
- } })), M.value || (vt(), i(D, { element: () => document.querySelector(`[data-bb-dropdown-surface="${CSS.escape(String(E))}"]`) }), document.addEventListener("click", Z, { passive: !0 }), document.addEventListener("contextmenu", Z, { passive: !0 }), document.addEventListener("focusin", Z, { passive: !0 }), document.addEventListener("keydown", bn, { capture: !0 }), document.addEventListener(Ke, vn)));
639
+ } })), M.value || (vt(), i(D, { element: () => document.querySelector(`[data-bb-dropdown-surface="${CSS.escape(String(E))}"]`) }), document.addEventListener("click", Z, {
640
+ passive: !0,
641
+ capture: !0
642
+ }), document.addEventListener("contextmenu", Z, {
643
+ passive: !0,
644
+ capture: !0
645
+ }), document.addEventListener("focusin", Z, { passive: !0 }), document.addEventListener("keydown", bn, { capture: !0 }), document.addEventListener(Ke, vn)));
638
646
  }, $ = async () => {
639
647
  j.value = !1, yt();
640
648
  };
@@ -646,7 +654,7 @@ var We = [
646
654
  isOpen: () => j.value
647
655
  });
648
656
  let xn = () => {
649
- a(D), document.removeEventListener("click", Z), document.removeEventListener("contextmenu", Z), document.removeEventListener("focusin", Z), document.removeEventListener("keydown", bn, { capture: !0 }), document.removeEventListener(Ke, vn);
657
+ a(D), document.removeEventListener("click", Z, { capture: !0 }), document.removeEventListener("contextmenu", Z, { capture: !0 }), document.removeEventListener("focusin", Z), document.removeEventListener("keydown", bn, { capture: !0 }), document.removeEventListener(Ke, vn);
650
658
  };
651
659
  C(j, (e) => {
652
660
  if (!e) {
@@ -229,7 +229,7 @@ var Ne = {
229
229
  exactActiveLink: !!r?.exactActiveLink
230
230
  }, F(t), t.variant ?? "default");
231
231
  }
232
- let It = (e) => D.passthrough.part("submenu", {}, F(e), e.variant ?? "default"), P = (e) => e.placeholder ? D.slots[e.placeholder === "loading" ? "loading" : "empty"] : void 0, F = (e) => {
232
+ let It = (e) => D.passthrough.part("submenu", {}, F(e), e.variant ?? "default"), P = (e) => e.placeholder === "loading" ? D.slots.loading : e.placeholder === "empty" ? D.slots.empty : void 0, F = (e) => {
233
233
  let { rowKey: t, domKey: n, keyless: r, section: i, ...a } = e;
234
234
  return a;
235
235
  }, Lt = (e) => ({
@@ -600,12 +600,12 @@ var Ne = {
600
600
  role: "presentation"
601
601
  }, [P(n) ? (v(), d(x(P(n)), g({
602
602
  key: 0,
603
- error: n.placeholder === "loading" ? void 0 : n.error ?? null
604
- }, { ref_for: !0 }, {
603
+ ref_for: !0
604
+ }, {
605
605
  groupId: e.id,
606
606
  query: e.id ? C(D).queryFor(e.id) : "",
607
607
  text: n.label
608
- }), null, 16, ["error"])) : (v(), p(l, { key: 1 }, [n.placeholder === "failed" ? (v(), d(i, {
608
+ }), null, 16)) : (v(), p(l, { key: 1 }, [n.placeholder === "failed" ? (v(), d(i, {
609
609
  key: 0,
610
610
  class: "bb-dropdown__placeholder-icon"
611
611
  })) : f("", !0), m("span", We, S(n.label), 1)], 64))], 2)) : (v(), p(l, { key: 1 }, [Ce(te, {
@@ -2,23 +2,23 @@ import { useArray as e } from "../../composables/useArray.js";
2
2
  import { useItemsGetter as t } from "../../composables/useItemsGetter.js";
3
3
  import { useItemText as n } from "../../composables/useItemText.js";
4
4
  import { useItemValue as r } from "../../composables/useItemValue.js";
5
- import { asDescription as i, createItemPropsResolver as ee } from "../../utilities/functions/itemProps.js";
6
- import { useLocale as te } from "../../composables/useLocale.js";
7
- import { sectionTitle as a } from "./normalizeGroups.js";
8
- import { useHashedWatcher as o } from "../../composables/useHashedWatcher.js";
9
- import { hash as s } from "../../utilities/functions/hash.js";
10
- import { keyHaystacks as c, rankByQuery as ne } from "../../utilities/functions/searchRank.js";
11
- import { slotKey as l } from "../../utilities/functions/slotKey.js";
12
- import { useDropdownContext as re } from "./useDropdownContext.js";
13
- import { useDropdownGroupRegistry as ie } from "./useDropdownGroupRegistry.js";
14
- import { selectablePredicateOf as ae } from "./types.js";
15
- import { computed as u, defineComponent as d, getCurrentInstance as oe, onUnmounted as f, ref as se, renderSlot as p, watch as m, watchEffect as h } from "vue";
5
+ import { asDescription as i, createItemPropsResolver as a } from "../../utilities/functions/itemProps.js";
6
+ import { useLocale as ee } from "../../composables/useLocale.js";
7
+ import { sectionTitle as o } from "./normalizeGroups.js";
8
+ import { useHashedWatcher as s } from "../../composables/useHashedWatcher.js";
9
+ import { hash as c } from "../../utilities/functions/hash.js";
10
+ import { keyHaystacks as l, rankByQuery as te } from "../../utilities/functions/searchRank.js";
11
+ import { slotKey as u } from "../../utilities/functions/slotKey.js";
12
+ import { useDropdownContext as ne } from "./useDropdownContext.js";
13
+ import { useDropdownGroupRegistry as re } from "./useDropdownGroupRegistry.js";
14
+ import { selectablePredicateOf as ie } from "./types.js";
15
+ import { computed as d, defineComponent as f, getCurrentInstance as ae, onUnmounted as p, ref as oe, renderSlot as m, watch as h, watchEffect as g } from "vue";
16
16
  // src/components/BbDropdown/DropdownPipelineResolver.vue?vue&type=script&setup=true&lang.ts
17
- var g = "__bb-dropdown-group:loading__", _ = "__bb-dropdown-group:no-data__", ce = "__bb-dropdown-group:failed__", v = /*@__PURE__*/ d({
17
+ var _ = "__bb-dropdown-group:loading__", v = "__bb-dropdown-group:no-data__", se = "__bb-dropdown-group:failed__", y = /*@__PURE__*/ f({
18
18
  __name: "DropdownPipelineResolver",
19
19
  props: { id: {} },
20
- setup(d) {
21
- let v = d, le = /* @__PURE__ */ new Set([
20
+ setup(f) {
21
+ let y = f, ce = /* @__PURE__ */ new Set([
22
22
  "value",
23
23
  "label",
24
24
  "rowKey",
@@ -30,117 +30,117 @@ var g = "__bb-dropdown-group:loading__", _ = "__bb-dropdown-group:no-data__", ce
30
30
  "placeholder",
31
31
  "slotKey",
32
32
  "disabled"
33
- ]), y = ie(), b = re(), x = oe().uid, S = u(() => y?.configFor(v.id)), { t: C } = te(), w = C("common.loadingText"), ue = C("common.emptyText"), de = C("common.failedText"), fe = C("select.searchToStart"), T = u(() => !!S.value?.searchable), E = u(() => b.queryFor(v.id)), D = u(() => S.value?.filterBy ?? []), O = u(() => S.value?.prefill ?? "interaction"), pe = u(() => O.value === !1), me = () => y?.modelValueFor(v.id), k = (e) => [
34
- T.value ? E.value : void 0,
33
+ ]), b = re(), x = ne(), S = ae().uid, C = d(() => b?.configFor(y.id)), { t: w } = ee(), T = w("common.loadingText"), le = w("common.emptyText"), ue = w("common.failedText"), de = w("select.searchToStart"), E = d(() => !!C.value?.searchable), D = d(() => x.queryFor(y.id)), O = d(() => C.value?.filterBy ?? []), k = d(() => C.value?.prefill ?? "interaction"), fe = d(() => k.value === !1), pe = () => b?.modelValueFor(y.id), A = (e) => [
34
+ E.value ? D.value : void 0,
35
35
  e,
36
- me()
37
- ], A = (e) => ve(...k(e)), j = se(!1), M = u(() => !!S.value?.stash), { array: N, add: P, remove: F } = e(), { getOptionText: I } = n(), { getOptionValue: L } = r(), R = (e) => L(e, S.value?.itemValue), z = (e) => I(e, S.value?.itemText), B = u(() => ee(S.value?.itemProps)), V = u(() => S.value ? ae(S.value) : void 0), he = (e) => i(B.value.field(e, "description")), ge = (e) => !!B.value.field(e, "hidden"), H = (e) => {
38
- if (Array.isArray(e)) return e.map((e) => H(e));
36
+ pe()
37
+ ], j = (e) => _e(...A(e)), M = oe(!1), N = d(() => !!C.value?.stash), { array: P, add: F, remove: I } = e(), { getOptionText: L } = n(), { getOptionValue: R } = r(), z = (e) => R(e, C.value?.itemValue), B = (e) => L(e, C.value?.itemText), V = d(() => a(C.value?.itemProps)), H = d(() => C.value ? ie(C.value) : void 0), me = (e) => i(V.value.field(e, "description")), he = (e) => !!V.value.field(e, "hidden"), U = (e) => {
38
+ if (Array.isArray(e)) return e.map((e) => U(e));
39
39
  if (!e || typeof e != "object") return e;
40
40
  let t = e;
41
- return Object.keys(t).sort().reduce((e, n) => (e[n] = H(t[n]), e), {});
42
- }, _e = (e) => {
43
- if (typeof e == "string") return l(e);
44
- if (e == null || typeof e == "number" || typeof e == "boolean") return l(String(e));
41
+ return Object.keys(t).sort().reduce((e, n) => (e[n] = U(t[n]), e), {});
42
+ }, ge = (e) => {
43
+ if (typeof e == "string") return u(e);
44
+ if (e == null || typeof e == "number" || typeof e == "boolean") return u(String(e));
45
45
  try {
46
- let t = JSON.stringify(H(e));
47
- return l(t ?? String(e));
46
+ let t = JSON.stringify(U(e));
47
+ return u(t ?? String(e));
48
48
  } catch {
49
- return l(String(e));
49
+ return u(String(e));
50
50
  }
51
- }, { getter: ve, debouncedGetter: ye, items: U, loading: W, error: G } = t({
52
- items: u(() => S.value?.items),
53
- debounce: b.queryDebounceTime.value
54
- }), K = u(() => {
51
+ }, { getter: _e, debouncedGetter: ve, items: W, loading: G, error: K } = t({
52
+ items: d(() => C.value?.items),
53
+ debounce: x.queryDebounceTime.value
54
+ }), q = d(() => {
55
55
  let e = /* @__PURE__ */ new Map();
56
- for (let t of U.value) e.set(s(R(t)), t);
56
+ for (let t of W.value) e.set(c(z(t)), t);
57
57
  return e;
58
- }), be = u(() => {
59
- let e = U.value;
60
- if (!M.value || !N.value.length) return e;
61
- let t = new Set(e.map((e) => s(R(e)))), n = N.value.filter((e) => !t.has(s(R(e))));
58
+ }), ye = d(() => {
59
+ let e = W.value;
60
+ if (!N.value || !P.value.length) return e;
61
+ let t = new Set(e.map((e) => c(z(e)))), n = P.value.filter((e) => !t.has(c(z(e))));
62
62
  return n.length ? [...e, ...n] : e;
63
- }), q = /* @__PURE__ */ new Map();
64
- y?.onPick(v.id, (e) => {
65
- if (!M.value) return;
66
- let t = K.value.get(e);
67
- t !== void 0 && q.set(e, t);
68
- }), f(() => y?.onPick(v.id, null)), h(() => {
69
- if (!M.value) return;
70
- let e = y?.selectionFor(v.id) ?? [];
63
+ }), J = /* @__PURE__ */ new Map();
64
+ b?.onPick(y.id, (e) => {
65
+ if (!N.value) return;
66
+ let t = q.value.get(e);
67
+ t !== void 0 && J.set(e, t);
68
+ }), p(() => b?.onPick(y.id, null)), g(() => {
69
+ if (!N.value) return;
70
+ let e = b?.selectionFor(y.id) ?? [];
71
71
  if (!e.length) return;
72
- let t = new Set(N.value.map((e) => s(R(e))));
72
+ let t = new Set(P.value.map((e) => c(z(e))));
73
73
  for (let n of e) {
74
74
  if (t.has(n)) continue;
75
- let e = K.value.get(n) ?? q.get(n);
76
- e !== void 0 && P(e), q.delete(n);
75
+ let e = q.value.get(n) ?? J.get(n);
76
+ e !== void 0 && F(e), J.delete(n);
77
77
  }
78
78
  });
79
- let J = u(() => be.value.map((e) => ({
79
+ let Y = d(() => ye.value.map((e) => ({
80
80
  item: e,
81
- value: R(e),
82
- key: s(R(e)),
83
- slotToken: _e(R(e)),
84
- text: z(e),
85
- description: he(e),
86
- hidden: ge(e)
87
- }))), Y = u(() => J.value.filter((e) => !e.hidden)), xe = u(() => {
88
- if (!T.value || !E.value || D.value === !1) return Y.value;
89
- let e = D.value, t = S.value?.groupBy;
90
- return ne(Y.value, (t) => e.length ? c(t.item, e) : c({
81
+ value: z(e),
82
+ key: c(z(e)),
83
+ slotToken: ge(z(e)),
84
+ text: B(e),
85
+ description: me(e),
86
+ hidden: he(e)
87
+ }))), X = d(() => Y.value.filter((e) => !e.hidden)), be = d(() => {
88
+ if (!E.value || !D.value || O.value === !1) return X.value;
89
+ let e = O.value, t = C.value?.groupBy;
90
+ return te(X.value, (t) => e.length ? l(t.item, e) : l({
91
91
  text: t.text,
92
92
  description: t.description
93
- }, t.description == null ? ["text"] : ["text", "description"]), E.value, t == null ? void 0 : (e) => a(t, e.item));
94
- }), Se = u(() => {
93
+ }, t.description == null ? ["text"] : ["text", "description"]), D.value, t == null ? void 0 : (e) => o(t, e.item));
94
+ }), xe = d(() => {
95
95
  let e = /* @__PURE__ */ new Map();
96
- for (let t of J.value) e.set(t.key, t.value);
96
+ for (let t of Y.value) e.set(t.key, t.value);
97
97
  return e;
98
- }), Ce = u(() => {
98
+ }), Se = d(() => {
99
99
  let e = /* @__PURE__ */ new Map();
100
- for (let t of J.value) e.set(t.key, t.item);
100
+ for (let t of Y.value) e.set(t.key, t.item);
101
101
  return e;
102
- }), X = u(() => {
102
+ }), Ce = d(() => {
103
103
  let e = /* @__PURE__ */ new Map();
104
- for (let t of J.value) e.set(t.key, t.text);
104
+ for (let t of Y.value) e.set(t.key, t.text);
105
105
  return e;
106
- }), we = u(() => {
106
+ }), we = d(() => {
107
107
  let e = /* @__PURE__ */ new Map();
108
- for (let t of J.value) t.description != null && e.set(t.key, t.description);
108
+ for (let t of Y.value) t.description != null && e.set(t.key, t.description);
109
109
  return e;
110
- }), Z = u(() => y?.selectionFor(v.id) ?? []);
111
- m(Z, (e) => {
112
- if (!M.value || !N.value.length) return;
110
+ }), Z = d(() => b?.selectionFor(y.id) ?? []);
111
+ h(Z, (e) => {
112
+ if (!N.value || !P.value.length) return;
113
113
  let t = new Set(e);
114
- F((e) => t.has(s(R(e))));
114
+ I((e) => t.has(c(z(e))));
115
115
  });
116
- let Te = u(() => S.value?.multiple ?? y?.multipleFor(v.id) ?? !1), Q = u(() => W.value && J.value.length > 0), Ee = u(() => {
117
- if (W.value && !J.value.length) return [{
118
- rowKey: g,
116
+ let Te = d(() => C.value?.multiple ?? b?.multipleFor(y.id) ?? !1), Q = d(() => G.value && Y.value.length > 0), Ee = d(() => {
117
+ if (G.value && !Y.value.length) return [{
118
+ rowKey: _,
119
119
  placeholder: "loading",
120
- label: S.value?.loadingText ?? b.loadingText.value ?? w.value,
120
+ label: C.value?.loadingText ?? x.loadingText.value ?? T.value,
121
121
  disabled: !0
122
122
  }];
123
- if (T.value && pe.value && !j.value) return [{
124
- rowKey: _,
123
+ if (E.value && fe.value && !M.value) return [{
124
+ rowKey: v,
125
125
  placeholder: "empty",
126
- label: fe.value,
126
+ label: de.value,
127
127
  disabled: !0
128
128
  }];
129
- let e = xe.value;
129
+ let e = be.value;
130
130
  if (!e.length) return Q.value ? [{
131
- rowKey: g,
131
+ rowKey: _,
132
132
  placeholder: "loading",
133
- label: S.value?.loadingText ?? b.loadingText.value ?? w.value,
133
+ label: C.value?.loadingText ?? x.loadingText.value ?? T.value,
134
134
  disabled: !0
135
- }] : G.value === null ? !E.value && J.value.length && !Y.value.length ? [] : [{
136
- rowKey: _,
135
+ }] : K.value === null ? !D.value && Y.value.length && !X.value.length ? [] : [{
136
+ rowKey: v,
137
137
  placeholder: "empty",
138
- label: S.value?.emptyText ?? b.emptyText.value ?? ue.value,
138
+ label: C.value?.emptyText ?? x.emptyText.value ?? le.value,
139
139
  disabled: !0
140
140
  }] : [$()];
141
- let t = S.value?.max ?? Infinity, n = Te.value && Z.value.length >= t, r = e.map((e) => {
141
+ let t = C.value?.max ?? Infinity, n = Te.value && Z.value.length >= t, r = e.map((e) => {
142
142
  let t = {};
143
- for (let [n, r] of Object.entries(B.value.all(e.item))) le.has(n) || (t[n] = r);
143
+ for (let [n, r] of Object.entries(V.value.all(e.item))) ce.has(n) || (t[n] = r);
144
144
  return {
145
145
  ...t,
146
146
  rowKey: e.key,
@@ -148,54 +148,53 @@ var g = "__bb-dropdown-group:loading__", _ = "__bb-dropdown-group:no-data__", ce
148
148
  label: e.text,
149
149
  description: e.description,
150
150
  fetched: !0,
151
- ...S.value?.groupBy == null ? {} : { section: a(S.value.groupBy, e.item) },
152
- disabled: (V.value ? !V.value(e.item) : !1) || n && !Z.value.includes(e.key)
151
+ ...C.value?.groupBy == null ? {} : { section: o(C.value.groupBy, e.item) },
152
+ disabled: (H.value ? !H.value(e.item) : !1) || n && !Z.value.includes(e.key)
153
153
  };
154
154
  });
155
- return G.value !== null && r.push($()), r;
155
+ return K.value !== null && r.push($()), r;
156
156
  }), $ = () => ({
157
- rowKey: ce,
157
+ rowKey: se,
158
158
  placeholder: "failed",
159
- error: G.value,
160
- label: S.value?.failedText ?? b.failedText.value ?? de.value,
159
+ label: C.value?.failedText ?? x.failedText.value ?? ue.value,
161
160
  disabled: !0
162
161
  });
163
- if (y) {
164
- let e = u(() => ({
165
- key: v.id,
162
+ if (b) {
163
+ let e = d(() => ({
164
+ key: y.id,
166
165
  items: Ee.value,
167
- order: x
166
+ order: S
168
167
  }));
169
- y.register(x, e), h(() => {
170
- y.publishPipeline(v.id, {
171
- valueByKey: Se.value,
172
- itemByKey: Ce.value,
173
- textByKey: X.value,
168
+ b.register(S, e), g(() => {
169
+ b.publishPipeline(y.id, {
170
+ valueByKey: xe.value,
171
+ itemByKey: Se.value,
172
+ textByKey: Ce.value,
174
173
  descriptionByKey: we.value
175
174
  });
176
- }), h(() => y.publishLoading(v.id, Q.value)), h(() => y.publishFetching(v.id, W.value));
177
- let t = u(() => S.value?.enforceCoherence ?? b.enforceCoherence.value ?? !1), n = () => {
178
- if (!y || !t.value) return;
179
- let e = K.value, n = y.selectionFor(v.id), r = n.filter((t) => e.has(t));
180
- r.length !== n.length && (y.isControlled(v.id) ? y.request(v.id, { keep: new Set(e.keys()) }) : y.setSelection(v.id, r));
181
- }, r = u(() => b.isTopLevelPipeline(v.id) ? b.open.value : b.isActivated(v.id)), i = u(() => O.value === !0 ? !0 : O.value === "interaction" || !T.value ? r.value : !1);
182
- m(i, async (e) => {
183
- e && !j.value && (j.value = !0, await A("initial") === "applied" && n());
184
- }, { immediate: !0 }), m(E, () => {
185
- if (T.value) {
186
- if (!j.value) {
187
- if (!E.value) return;
188
- j.value = !0;
175
+ }), g(() => b.publishLoading(y.id, Q.value)), g(() => b.publishFetching(y.id, G.value));
176
+ let t = d(() => C.value?.enforceCoherence ?? x.enforceCoherence.value ?? !1), n = () => {
177
+ if (!b || !t.value) return;
178
+ let e = q.value, n = b.selectionFor(y.id), r = n.filter((t) => e.has(t));
179
+ r.length !== n.length && (b.isControlled(y.id) ? b.request(y.id, { keep: new Set(e.keys()) }) : b.setSelection(y.id, r));
180
+ }, r = d(() => x.isTopLevelPipeline(y.id) ? x.open.value : x.isActivated(y.id)), i = d(() => k.value === !0 ? !0 : k.value === "interaction" || !E.value ? r.value : !1);
181
+ h(i, async (e) => {
182
+ e && !M.value && (M.value = !0, await j("initial") === "applied" && n());
183
+ }, { immediate: !0 }), h(D, () => {
184
+ if (E.value) {
185
+ if (!M.value) {
186
+ if (!D.value) return;
187
+ M.value = !0;
189
188
  }
190
- ye(() => k("search"));
189
+ ve(() => A("search"));
191
190
  }
192
- }), o(() => [S.value?.dependencies], async () => {
193
- j.value && await A("dependencies") === "applied" && n();
194
- }, { debounce: S.value?.depsDebounceTime ?? 0 }), f(() => {
195
- y.unregister(x), y.publishPipeline(v.id, null), y.publishLoading(v.id, !1), y.publishFetching(v.id, !1);
191
+ }), s(() => [C.value?.dependencies], async () => {
192
+ M.value && await j("dependencies") === "applied" && n();
193
+ }, { debounce: C.value?.depsDebounceTime ?? 0 }), p(() => {
194
+ b.unregister(S), b.publishPipeline(y.id, null), b.publishLoading(y.id, !1), b.publishFetching(y.id, !1);
196
195
  });
197
196
  }
198
- return (e, t) => p(e.$slots, "default");
197
+ return (e, t) => m(e.$slots, "default");
199
198
  }
200
199
  });
201
- export { v as default };
200
+ export { y as default };
@@ -156,18 +156,12 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
156
156
  * async items load (`'loading'`), when it resolved empty (`'empty'`), or
157
157
  * when its latest load FAILED (`'failed'`: the footer under whatever rows a
158
158
  * `stash` keeps listed). Rendered as a non-interactive row that
159
- * shows `label` or, when provided, the dropdown's `loading` / `empty` slot.
159
+ * shows `label` or, when provided, the dropdown's `loading` / `empty` slot (a
160
+ * `'failed'` row always shows its own).
160
161
  *
161
162
  * @internal Set by `BbDropdownGroup`.
162
163
  */
163
164
  placeholder?: 'loading' | 'empty' | 'failed';
164
- /**
165
- * On a `'failed'` placeholder: what the group's `items` load rejected
166
- * with, handed to the `empty` slot as `error`.
167
- *
168
- * @internal Set by the pipeline resolver.
169
- */
170
- error?: unknown;
171
165
  /**
172
166
  * Marks a row built by the pipeline resolver from a fetched item. Its
173
167
  * `selectable` predicate already ran against the RAW item there, so
@@ -215,7 +209,9 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
215
209
  * `failedText` with the error. Zero-argument providers keep working. An
216
210
  * unannotated getter reads its context typed (`query` a string on a
217
211
  * `searchable` group); a provider shared with other components is annotated
218
- * `BbDropdownGroupItemsContext`.
212
+ * `BbDropdownGroupItemsContext`. A group whose `searchable` is a runtime
213
+ * boolean takes rows or such a provider; a value typed as this union does
214
+ * not fit it (its query-only member needs `searchable: true`).
219
215
  */
220
216
  export type DropdownGroupItemsGetter = PlainGetter | SearchGetter;
221
217
  /** A group without a search box: no `query` arrives. */
@@ -962,14 +958,8 @@ export type BbDropdownPlaceholderSlotProps = {
962
958
  * e.g. for "Type at least 2 characters" under a remote search's minimum.
963
959
  */
964
960
  query: string;
965
- /** Resolved placeholder text (group `loadingText`/`emptyText`/`failedText` → dropdown default). */
961
+ /** Resolved placeholder text (group `loadingText`/`emptyText` → dropdown default). */
966
962
  text: string;
967
- /**
968
- * `empty` slot only: what the group's latest failed `items` load rejected
969
- * with, untouched (a nullish rejection becomes an `Error`); `null` when the
970
- * group is genuinely empty. Absent on the `loading` slot.
971
- */
972
- error?: unknown;
973
963
  };
974
964
  /**
975
965
  * Besides the fixed slots, every row gets named slots from its `value` (a
@@ -1004,7 +994,8 @@ export type BbDropdownSlots = {
1004
994
  loading?: (props: BbDropdownPlaceholderSlotProps) => any;
1005
995
  /**
1006
996
  * Replaces the default "no data" placeholder row shown in a pipeline group
1007
- * that resolved to no items. Rendered once per empty group.
997
+ * that resolved to no items. Rendered once per empty group. A failed load
998
+ * is not empty: it keeps its own row (the error icon and `failedText`).
1008
999
  */
1009
1000
  empty?: (props: BbDropdownPlaceholderSlotProps) => any;
1010
1001
  /**
@@ -1,6 +1,6 @@
1
1
  import { MaybeRef, Ref } from 'vue';
2
- import { BbFormFieldEntry, BbFormServerErrors, BbFormSetErrorsOptions } from '../../composables/useBbForm.js';
3
2
  import { ValidationMode } from '../../types/Config.js';
3
+ import { BbFormSlots } from './types.js';
4
4
  import { BbFormInvalidPayload, BbFormSchema, BbFormSubmitMeta, BbFormSubmitValues } from './formSchema.js';
5
5
  declare const __VLS_export: <S extends BbFormSchema = BbFormSchema>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: import('vue').PublicProps & __VLS_PrettifyLocal<({
@@ -110,26 +110,7 @@ declare const __VLS_export: <S extends BbFormSchema = BbFormSchema>(__VLS_props:
110
110
  $el: Readonly<import('vue').ShallowRef<HTMLFormElement | null>>;
111
111
  }>) => void;
112
112
  attrs: any;
113
- slots: {
114
- default?: (props: {
115
- touched: boolean;
116
- dirty: boolean;
117
- valid: boolean;
118
- pending: boolean;
119
- initialValues?: Partial<import('vee-validate').GenericObject> | undefined;
120
- errors: Record<string, string[]>;
121
- fields: Record<string, BbFormFieldEntry>;
122
- isSubmitting: boolean;
123
- removeField: (path: string) => void;
124
- resetForm: (state?: Partial<import('vee-validate').FormState<import('vee-validate').GenericObject>> | undefined, opts?: Partial<import('vee-validate').ResetFormOpts>) => void;
125
- setErrors: (serverErrors: BbFormServerErrors, options?: BbFormSetErrorsOptions) => void;
126
- snapshot: (next?: Record<string, unknown>) => void;
127
- submitCount: number;
128
- unmatchedErrors: Record<string, string[]>;
129
- validate: (opts?: Partial<import('vee-validate').ValidationOptions>) => Promise<import('vee-validate').FormValidationResult<import('vee-validate').GenericObject, import('vee-validate').GenericObject>>;
130
- values: import('vee-validate').GenericObject;
131
- }) => any;
132
- };
113
+ slots: BbFormSlots;
133
114
  emit: ((evt: "submit", values: BbFormSubmitValues<S>, meta: BbFormSubmitMeta) => void) & ((evt: "invalid", payload: BbFormInvalidPayload) => void) & ((evt: "submit-error", error: unknown) => void);
134
115
  }>) => import('vue').VNode & {
135
116
  __ctx?: Awaited<typeof __VLS_setup>;