bitboss-ui 3.0.0-beta.72 → 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.
- package/README.md +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +34 -7
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbCalendar.md +4 -3
- package/dist/ai/BbColorPalette.md +8 -9
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +4 -3
- package/dist/ai/BbDialog.md +17 -4
- package/dist/ai/BbDropdown.md +23 -10
- package/dist/ai/BbDropdownButton.md +2 -2
- package/dist/ai/BbForm.md +11 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +5 -3
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbTable.md +43 -19
- package/dist/ai/BbTimePicker.md +4 -3
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/changelog.json +60 -4
- package/dist/ai/components.json +56 -20
- package/dist/ai/guides/design-tokens.md +20 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/use-confirm.md +4 -1
- package/dist/ai/guides/migration/v2-to-v3.md +24 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +3 -0
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbColorPalette.json +3 -3
- package/dist/ai/manifest/components/BbConfirm.removed.json +4 -4
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -3
- package/dist/ai/manifest/components/BbDialog.tree.json +5 -1
- package/dist/ai/manifest/components/BbDropdown.json +3 -3
- package/dist/ai/manifest/components/BbDropdown.tree.json +3 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -1
- package/dist/ai/manifest/components/BbTable.tree.json +12 -6
- package/dist/ai/manifest/components/BbTimePicker.json +3 -3
- package/dist/ai/manifest/components/BbToast.removed.json +1 -1
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -0
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +66 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +2 -0
- package/dist/ai/source/BbBreadcrumbs.md +4 -1
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbColorPalette.md +41 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +53 -22
- package/dist/ai/source/BbDatePickerInput.md +32 -8
- package/dist/ai/source/BbDialog.md +31 -1
- package/dist/ai/source/BbDropdown.md +52 -24
- package/dist/ai/source/BbDropdownGroup.md +17 -21
- package/dist/ai/source/BbForm.md +80 -6
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +5 -6
- package/dist/ai/source/BbOffCanvas.md +34 -1
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +7 -5
- package/dist/ai/source/BbTable.md +54 -6
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +50 -15
- package/dist/ai/source/BbTimePickerInput.md +30 -7
- package/dist/ai/source/BbToast.md +14 -0
- package/dist/ai/source/BbToastPortal.md +16 -4
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +4 -1
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +197 -192
- package/dist/components/BbColorPalette/types.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +145 -139
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +337 -335
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +253 -245
- package/dist/components/BbDialog/leaveGhost.js +33 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +11 -3
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +119 -120
- package/dist/components/BbDropdown/types.d.ts +8 -17
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +385 -377
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +10 -12
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +231 -231
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +214 -213
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +5 -0
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- package/dist/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/index.d.ts +34 -30
- package/dist/llms-full.txt +874 -136
- package/dist/llms.txt +3 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/utilities/functions/hash.js +123 -3
- package/dist/utilities/functions/isEqual.js +69 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +8 -5
- package/llms.txt +3 -1
- package/package.json +2 -3
- package/scripts/README.md +43 -43
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +54 -6
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +153 -6
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- 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
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
|
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, {
|
|
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
|
|
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
|
-
|
|
604
|
-
}, {
|
|
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
|
|
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, {
|
package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -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
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import { sectionTitle as
|
|
8
|
-
import { useHashedWatcher as
|
|
9
|
-
import { hash as
|
|
10
|
-
import { keyHaystacks as
|
|
11
|
-
import { slotKey as
|
|
12
|
-
import { useDropdownContext as
|
|
13
|
-
import { useDropdownGroupRegistry as
|
|
14
|
-
import { selectablePredicateOf as
|
|
15
|
-
import { computed as
|
|
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
|
|
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(
|
|
21
|
-
let
|
|
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
|
-
]),
|
|
34
|
-
|
|
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
|
-
|
|
37
|
-
],
|
|
38
|
-
if (Array.isArray(e)) return e.map((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] =
|
|
42
|
-
},
|
|
43
|
-
if (typeof e == "string") return
|
|
44
|
-
if (e == null || typeof e == "number" || typeof e == "boolean") return
|
|
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(
|
|
47
|
-
return
|
|
46
|
+
let t = JSON.stringify(U(e));
|
|
47
|
+
return u(t ?? String(e));
|
|
48
48
|
} catch {
|
|
49
|
-
return
|
|
49
|
+
return u(String(e));
|
|
50
50
|
}
|
|
51
|
-
}, { getter:
|
|
52
|
-
items:
|
|
53
|
-
debounce:
|
|
54
|
-
}),
|
|
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
|
|
56
|
+
for (let t of W.value) e.set(c(z(t)), t);
|
|
57
57
|
return e;
|
|
58
|
-
}),
|
|
59
|
-
let e =
|
|
60
|
-
if (!
|
|
61
|
-
let t = new Set(e.map((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
|
-
}),
|
|
64
|
-
|
|
65
|
-
if (!
|
|
66
|
-
let t =
|
|
67
|
-
t !== void 0 &&
|
|
68
|
-
}),
|
|
69
|
-
if (!
|
|
70
|
-
let e =
|
|
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(
|
|
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 =
|
|
76
|
-
e !== void 0 &&
|
|
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
|
|
79
|
+
let Y = d(() => ye.value.map((e) => ({
|
|
80
80
|
item: e,
|
|
81
|
-
value:
|
|
82
|
-
key:
|
|
83
|
-
slotToken:
|
|
84
|
-
text:
|
|
85
|
-
description:
|
|
86
|
-
hidden:
|
|
87
|
-
}))),
|
|
88
|
-
if (!
|
|
89
|
-
let e =
|
|
90
|
-
return
|
|
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"]),
|
|
94
|
-
}),
|
|
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
|
|
96
|
+
for (let t of Y.value) e.set(t.key, t.value);
|
|
97
97
|
return e;
|
|
98
|
-
}),
|
|
98
|
+
}), Se = d(() => {
|
|
99
99
|
let e = /* @__PURE__ */ new Map();
|
|
100
|
-
for (let t of
|
|
100
|
+
for (let t of Y.value) e.set(t.key, t.item);
|
|
101
101
|
return e;
|
|
102
|
-
}),
|
|
102
|
+
}), Ce = d(() => {
|
|
103
103
|
let e = /* @__PURE__ */ new Map();
|
|
104
|
-
for (let t of
|
|
104
|
+
for (let t of Y.value) e.set(t.key, t.text);
|
|
105
105
|
return e;
|
|
106
|
-
}), we =
|
|
106
|
+
}), we = d(() => {
|
|
107
107
|
let e = /* @__PURE__ */ new Map();
|
|
108
|
-
for (let t of
|
|
108
|
+
for (let t of Y.value) t.description != null && e.set(t.key, t.description);
|
|
109
109
|
return e;
|
|
110
|
-
}), Z =
|
|
111
|
-
|
|
112
|
-
if (!
|
|
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
|
-
|
|
114
|
+
I((e) => t.has(c(z(e))));
|
|
115
115
|
});
|
|
116
|
-
let Te =
|
|
117
|
-
if (
|
|
118
|
-
rowKey:
|
|
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:
|
|
120
|
+
label: C.value?.loadingText ?? x.loadingText.value ?? T.value,
|
|
121
121
|
disabled: !0
|
|
122
122
|
}];
|
|
123
|
-
if (
|
|
124
|
-
rowKey:
|
|
123
|
+
if (E.value && fe.value && !M.value) return [{
|
|
124
|
+
rowKey: v,
|
|
125
125
|
placeholder: "empty",
|
|
126
|
-
label:
|
|
126
|
+
label: de.value,
|
|
127
127
|
disabled: !0
|
|
128
128
|
}];
|
|
129
|
-
let e =
|
|
129
|
+
let e = be.value;
|
|
130
130
|
if (!e.length) return Q.value ? [{
|
|
131
|
-
rowKey:
|
|
131
|
+
rowKey: _,
|
|
132
132
|
placeholder: "loading",
|
|
133
|
-
label:
|
|
133
|
+
label: C.value?.loadingText ?? x.loadingText.value ?? T.value,
|
|
134
134
|
disabled: !0
|
|
135
|
-
}] :
|
|
136
|
-
rowKey:
|
|
135
|
+
}] : K.value === null ? !D.value && Y.value.length && !X.value.length ? [] : [{
|
|
136
|
+
rowKey: v,
|
|
137
137
|
placeholder: "empty",
|
|
138
|
-
label:
|
|
138
|
+
label: C.value?.emptyText ?? x.emptyText.value ?? le.value,
|
|
139
139
|
disabled: !0
|
|
140
140
|
}] : [$()];
|
|
141
|
-
let t =
|
|
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(
|
|
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
|
-
...
|
|
152
|
-
disabled: (
|
|
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
|
|
155
|
+
return K.value !== null && r.push($()), r;
|
|
156
156
|
}), $ = () => ({
|
|
157
|
-
rowKey:
|
|
157
|
+
rowKey: se,
|
|
158
158
|
placeholder: "failed",
|
|
159
|
-
|
|
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 (
|
|
164
|
-
let e =
|
|
165
|
-
key:
|
|
162
|
+
if (b) {
|
|
163
|
+
let e = d(() => ({
|
|
164
|
+
key: y.id,
|
|
166
165
|
items: Ee.value,
|
|
167
|
-
order:
|
|
166
|
+
order: S
|
|
168
167
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
valueByKey:
|
|
172
|
-
itemByKey:
|
|
173
|
-
textByKey:
|
|
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
|
-
}),
|
|
177
|
-
let t =
|
|
178
|
-
if (!
|
|
179
|
-
let e =
|
|
180
|
-
r.length !== n.length && (
|
|
181
|
-
}, r =
|
|
182
|
-
|
|
183
|
-
e && !
|
|
184
|
-
}, { immediate: !0 }),
|
|
185
|
-
if (
|
|
186
|
-
if (!
|
|
187
|
-
if (!
|
|
188
|
-
|
|
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
|
-
|
|
189
|
+
ve(() => A("search"));
|
|
191
190
|
}
|
|
192
|
-
}),
|
|
193
|
-
|
|
194
|
-
}, { debounce:
|
|
195
|
-
|
|
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) =>
|
|
197
|
+
return (e, t) => m(e.$slots, "default");
|
|
199
198
|
}
|
|
200
199
|
});
|
|
201
|
-
export {
|
|
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
|
|
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>;
|