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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BbPopoverPortalSlots } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Content for `v-bb-popover="'<name>'"` (or `{ portal: '<name>' }`),
|
|
4
4
|
* declared once in a template. Renders nothing in place: the popover renders the
|
|
@@ -8,10 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
/** The name a `v-bb-popover` passes as its value (`"'name'"`) or as `portal: 'name'`. */
|
|
9
9
|
name: string;
|
|
10
10
|
};
|
|
11
|
-
type __VLS_Slots =
|
|
12
|
-
/** The popover body. `data` is the directive's `data`; `close` closes the popover. */
|
|
13
|
-
default?: (scope: BbPopoverPortalSlotProps) => any;
|
|
14
|
-
};
|
|
11
|
+
type __VLS_Slots = BbPopoverPortalSlots;
|
|
15
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -216,3 +216,8 @@ export type BbPopoverPortalSlotProps<P = any> = {
|
|
|
216
216
|
/** Closes the popover. */
|
|
217
217
|
close: () => void;
|
|
218
218
|
};
|
|
219
|
+
/** BbPopoverPortal's slots; index it for one slot's type: `BbPopoverPortalSlots<MyData>['default']`. */
|
|
220
|
+
export type BbPopoverPortalSlots<P = any> = {
|
|
221
|
+
/** The popover body. `data` is the directive's `data`; `close` closes the popover. */
|
|
222
|
+
default?: (scope: BbPopoverPortalSlotProps<P>) => any;
|
|
223
|
+
};
|
|
@@ -259,14 +259,15 @@ export type BbRadioIconSlotProps = {
|
|
|
259
259
|
*/
|
|
260
260
|
hasWarnings: boolean;
|
|
261
261
|
/**
|
|
262
|
-
* The `id` attribute of the underlying input
|
|
262
|
+
* The `id` attribute of the underlying input (always set: generated when
|
|
263
|
+
* no `id` is passed).
|
|
263
264
|
*/
|
|
264
|
-
id:
|
|
265
|
+
id: string;
|
|
265
266
|
/**
|
|
266
267
|
* The `name` attribute of the underlying input (the generated fallback when
|
|
267
268
|
* no `name` is passed).
|
|
268
269
|
*/
|
|
269
|
-
name:
|
|
270
|
+
name: string;
|
|
270
271
|
/**
|
|
271
272
|
* The radio value serialized to a string for form submission.
|
|
272
273
|
*/
|
|
@@ -319,14 +319,12 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
319
319
|
list: () => R.value,
|
|
320
320
|
rows: () => G.value,
|
|
321
321
|
rowClass: "bb-radio-group__item"
|
|
322
|
-
}), rt = a(Y, { label: "legend" }), X = le(), Z = (e, t) => {
|
|
323
|
-
if (t) return [t, e.valueHash].filter(Boolean).join("-");
|
|
324
|
-
}, Q = () => {
|
|
322
|
+
}), rt = a(Y, { label: "legend" }), X = le(), Z = (e, t) => [t, e.valueHash].filter(Boolean).join("-"), it = (e, t) => t ? Z(e, t) : void 0, Q = () => {
|
|
325
323
|
let e = R.value?.querySelectorAll("input[type=\"radio\"]") ?? [];
|
|
326
324
|
e.length === G.value.length && G.value.forEach((t, n) => {
|
|
327
325
|
e[n].checked = !!t.selected;
|
|
328
326
|
});
|
|
329
|
-
}, $ = re(),
|
|
327
|
+
}, $ = re(), at = (e) => !A.clearable || A.readonly || e.disabled || !e.selected ? !1 : (j("update:modelValue", null), x(Q), !0), ot = (e) => ({
|
|
330
328
|
onBlur: (t) => {
|
|
331
329
|
X.onBlur(e.valueHash), j("blur", t);
|
|
332
330
|
},
|
|
@@ -334,7 +332,7 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
334
332
|
A.readonly ? t.target instanceof HTMLInputElement && oe(t.target, A.readonly, !!e.selected) : (j("change", t), j("update:modelValue", e.value), x(Q));
|
|
335
333
|
},
|
|
336
334
|
onClick: (t) => {
|
|
337
|
-
ie(t, A.readonly), j("click", t), $.count(t) <= 1 &&
|
|
335
|
+
ie(t, A.readonly), j("click", t), $.count(t) <= 1 && at(e);
|
|
338
336
|
},
|
|
339
337
|
onFocus: (t) => {
|
|
340
338
|
X.onFocus(e.valueHash, t), B.value = !0, j("focus", t);
|
|
@@ -344,25 +342,25 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
344
342
|
ae(e, A.readonly), j("keydown", e);
|
|
345
343
|
},
|
|
346
344
|
onKeyup: (t) => {
|
|
347
|
-
t.key === " " &&
|
|
345
|
+
t.key === " " && at(e) && t.preventDefault();
|
|
348
346
|
},
|
|
349
347
|
onMousedown: (e) => j("mousedown", e),
|
|
350
348
|
onMouseup: (e) => j("mouseup", e)
|
|
351
|
-
}),
|
|
349
|
+
}), st = (e, t, n, r, i, a) => ({
|
|
352
350
|
...se("radio", {
|
|
353
351
|
ariaDescribedby: [te(r, a), I.value ? F.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
354
352
|
ariaLabelledby: i,
|
|
355
353
|
autofocus: A.autofocus && !t,
|
|
356
354
|
checked: !!e.selected,
|
|
357
355
|
disabled: e.disabled,
|
|
358
|
-
id:
|
|
356
|
+
id: it(e, n),
|
|
359
357
|
name: P.value,
|
|
360
358
|
readonly: A.readonly,
|
|
361
359
|
required: A.required,
|
|
362
360
|
value: e.value
|
|
363
361
|
}),
|
|
364
|
-
...
|
|
365
|
-
}),
|
|
362
|
+
...ot(e)
|
|
363
|
+
}), ct = (e, t, n, r) => ({
|
|
366
364
|
checked: !!e.selected,
|
|
367
365
|
disabled: !!e.disabled,
|
|
368
366
|
focused: X.focused(e.valueHash),
|
|
@@ -451,10 +449,10 @@ var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
|
451
449
|
loading: D(() => [w(e.$slots, "loading")]),
|
|
452
450
|
empty: D((t) => [w(e.$slots, "empty", S(y(t)))]),
|
|
453
451
|
label: D((t) => [w(e.$slots, "label", S(y(t)))]),
|
|
454
|
-
input: D(({ option: r, index: c, labelId: l, descriptionId: u, rowStates: d }) => [Me(we("input", S(y(
|
|
452
|
+
input: D(({ option: r, index: c, labelId: l, descriptionId: u, rowStates: d }) => [Me(we("input", S(y(st(r, c, n, s, l, u))), null, 16), [[E(t)]]), w(e.$slots, "icon", b({
|
|
455
453
|
item: r.item,
|
|
456
454
|
text: r.text
|
|
457
|
-
},
|
|
455
|
+
}, ct(r, n, a, o)), () => [_(i, b({
|
|
458
456
|
checked: !!r.selected,
|
|
459
457
|
disabled: !!r.disabled,
|
|
460
458
|
"focus-visible": E(X).focusVisible(r.valueHash),
|