bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73
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 +2 -2
- package/bin/cli.mjs +9 -3
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +2 -2
- package/dist/ai/BbDialog.md +233 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +100 -13
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +7 -5
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +242 -9
- package/dist/ai/components.json +52 -51
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +72 -26
- package/dist/ai/guides/migration/v2-to-v3.md +52 -10
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +3 -3
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +6 -5
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +152 -11
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +2 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +32 -17
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +21 -14
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +1997 -1151
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/ItemPath.d.ts +33 -4
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utilities/functions/hash.js +90 -3
- package/dist/utilities/functions/isEqual.js +61 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +0 -1
- package/llms.txt +2 -2
- package/package.json +12 -2
- package/scripts/README.md +43 -39
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +180 -5
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
|
@@ -154,7 +154,8 @@ under it.
|
|
|
154
154
|
<header class="page-shell__sidebar-chrome">
|
|
155
155
|
<BbButton
|
|
156
156
|
v-if="shell.depth.value > 1"
|
|
157
|
-
icon
|
|
157
|
+
icon-only
|
|
158
|
+
prepend:icon="lucide:arrow-left"
|
|
158
159
|
size="sm"
|
|
159
160
|
variant="ghost"
|
|
160
161
|
@click="shell.pop"
|
|
@@ -170,7 +171,8 @@ under it.
|
|
|
170
171
|
</h2>
|
|
171
172
|
<span v-else class="page-shell__sidebar-spacer" />
|
|
172
173
|
<BbButton
|
|
173
|
-
icon
|
|
174
|
+
icon-only
|
|
175
|
+
prepend:icon="lucide:x"
|
|
174
176
|
size="sm"
|
|
175
177
|
variant="ghost"
|
|
176
178
|
@click="shell.close"
|
|
@@ -753,7 +755,7 @@ read once. Default to a **topbar affordance**: a keyboard icon in
|
|
|
753
755
|
```vue
|
|
754
756
|
<BbPopover>
|
|
755
757
|
<template #activator="{ props }">
|
|
756
|
-
<BbButton v-bind="props"
|
|
758
|
+
<BbButton v-bind="props" text="Keyboard shortcuts" icon-only prepend:icon="lucide:keyboard" size="sm" variant="ghost" />
|
|
757
759
|
</template>
|
|
758
760
|
<dl class="shortcuts">…</dl>
|
|
759
761
|
</BbPopover>
|
|
@@ -652,8 +652,8 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
652
652
|
variant: 'destructive',
|
|
653
653
|
title: 'Dismiss onboarding',
|
|
654
654
|
text: 'Hide the setup checklist for everyone in this workspace? Unfinished steps stay available under Settings → Setup.',
|
|
655
|
-
|
|
656
|
-
|
|
655
|
+
ok: 'Dismiss',
|
|
656
|
+
cancel: 'Keep it',
|
|
657
657
|
});
|
|
658
658
|
if (!ok) return;
|
|
659
659
|
// A full visit, not a partial reload: the server redirects to the
|
|
@@ -1110,7 +1110,7 @@ const ctx = useOnboardingWorkspace();
|
|
|
1110
1110
|
|
|
1111
1111
|
<script setup lang="ts">
|
|
1112
1112
|
import { ref } from 'vue';
|
|
1113
|
-
import { BbButton, BbSelect, BbTag } from 'bitboss-ui';
|
|
1113
|
+
import { BbButton, BbSelect, BbTag, BbValidationError } from 'bitboss-ui';
|
|
1114
1114
|
import { useOnboardingWorkspace } from './context';
|
|
1115
1115
|
import type { InviteRole } from '@/types';
|
|
1116
1116
|
|
|
@@ -1148,9 +1148,11 @@ const send = async () => {
|
|
|
1148
1148
|
// false: the visit was cancelled; keep what was typed.
|
|
1149
1149
|
if (await ctx.sendInvites(emails.value, role.value)) emails.value = [];
|
|
1150
1150
|
} catch (errors) {
|
|
1151
|
-
// Server-side (422) validation lands here as
|
|
1152
|
-
//
|
|
1153
|
-
const bag =
|
|
1151
|
+
// Server-side (422) validation lands here as a BbValidationError
|
|
1152
|
+
// carrying Laravel's field-keyed error bag.
|
|
1153
|
+
const bag = (
|
|
1154
|
+
errors instanceof BbValidationError ? errors.errors : {}
|
|
1155
|
+
) as Record<string, string | string[] | undefined>;
|
|
1154
1156
|
const message = bag.emails ?? bag.role;
|
|
1155
1157
|
inviteError.value = Array.isArray(message)
|
|
1156
1158
|
? message[0]
|
|
@@ -1213,7 +1215,13 @@ const send = async () => {
|
|
|
1213
1215
|
|
|
1214
1216
|
<script setup lang="ts">
|
|
1215
1217
|
import { reactive, ref } from 'vue';
|
|
1216
|
-
import {
|
|
1218
|
+
import {
|
|
1219
|
+
BbButton,
|
|
1220
|
+
BbForm,
|
|
1221
|
+
BbIcon,
|
|
1222
|
+
BbTextInput,
|
|
1223
|
+
BbValidationError,
|
|
1224
|
+
} from 'bitboss-ui';
|
|
1217
1225
|
import { useOnboardingWorkspace } from './context';
|
|
1218
1226
|
|
|
1219
1227
|
const ctx = useOnboardingWorkspace();
|
|
@@ -1235,9 +1243,11 @@ const submit = async () => {
|
|
|
1235
1243
|
try {
|
|
1236
1244
|
await ctx.createProject({ name: draft.name, client: draft.client ?? '' });
|
|
1237
1245
|
} catch (errors) {
|
|
1238
|
-
// Server-side (422) validation lands here as
|
|
1239
|
-
//
|
|
1240
|
-
const bag =
|
|
1246
|
+
// Server-side (422) validation lands here as a BbValidationError
|
|
1247
|
+
// carrying Laravel's field-keyed error bag.
|
|
1248
|
+
const bag = (
|
|
1249
|
+
errors instanceof BbValidationError ? errors.errors : {}
|
|
1250
|
+
) as Record<string, string | string[] | undefined>;
|
|
1241
1251
|
const message = bag.name ?? bag.client;
|
|
1242
1252
|
nameError.value = Array.isArray(message)
|
|
1243
1253
|
? message[0]
|
|
@@ -1326,10 +1336,11 @@ const submit = async () => {
|
|
|
1326
1336
|
>
|
|
1327
1337
|
</span>
|
|
1328
1338
|
<BbButton
|
|
1329
|
-
aria-label="Remove selected file"
|
|
1330
1339
|
:disabled="ctx.importState.uploading"
|
|
1331
|
-
icon
|
|
1340
|
+
icon-only
|
|
1341
|
+
prepend:icon="lucide:x"
|
|
1332
1342
|
size="sm"
|
|
1343
|
+
text="Remove selected file"
|
|
1333
1344
|
variant="ghost"
|
|
1334
1345
|
@click="() => (file = null)"
|
|
1335
1346
|
/>
|
|
@@ -500,15 +500,14 @@ export function useOwnershipAtlas(): OwnershipAtlasContext {
|
|
|
500
500
|
text: ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all',
|
|
501
501
|
delay: 400,
|
|
502
502
|
}"
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
"
|
|
506
|
-
:icon="
|
|
503
|
+
icon-only
|
|
504
|
+
:prepend:icon="
|
|
507
505
|
ctx.allExpandedOnPage.value
|
|
508
506
|
? 'lucide:chevrons-down-up'
|
|
509
507
|
: 'lucide:chevrons-up-down'
|
|
510
508
|
"
|
|
511
509
|
size="sm"
|
|
510
|
+
:text="ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'"
|
|
512
511
|
variant="ghost"
|
|
513
512
|
@click="ctx.toggleExpandAll"
|
|
514
513
|
/>
|
|
@@ -741,12 +740,15 @@ const { isMobile } = useMobile();
|
|
|
741
740
|
* control in the actions column. On a phone Team and Region leave (the BbTable
|
|
742
741
|
* guide's "hide columns, don't scroll"): four equal tracks at 390px would
|
|
743
742
|
* break names mid-word. */
|
|
744
|
-
const columns = computed
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
743
|
+
const columns = computed(
|
|
744
|
+
() =>
|
|
745
|
+
[
|
|
746
|
+
{ key: 'name', label: 'Owner' },
|
|
747
|
+
{ key: 'team', label: 'Team', hidden: isMobile.value },
|
|
748
|
+
{ key: 'region', label: 'Region', hidden: isMobile.value },
|
|
749
|
+
{ key: 'monthlyTotal', label: '$ / mo', align: 'right' },
|
|
750
|
+
] satisfies Array<BbTableColumn<Owner>>
|
|
751
|
+
);
|
|
750
752
|
|
|
751
753
|
const money = (value: number) =>
|
|
752
754
|
new Intl.NumberFormat('en-US', {
|
|
@@ -896,12 +898,25 @@ const { isMobile } = useMobile();
|
|
|
896
898
|
* columns that snap onto them hide too: a hidden parent column has no track
|
|
897
899
|
* for a child cell to land on.
|
|
898
900
|
*/
|
|
899
|
-
const columns = computed
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
901
|
+
const columns = computed(
|
|
902
|
+
() =>
|
|
903
|
+
[
|
|
904
|
+
{ key: 'name', label: 'Resource', snap: 'name' },
|
|
905
|
+
{ key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
|
|
906
|
+
{
|
|
907
|
+
key: 'status',
|
|
908
|
+
label: 'Status',
|
|
909
|
+
snap: 'region',
|
|
910
|
+
hidden: isMobile.value,
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
key: 'monthlyCost',
|
|
914
|
+
label: '$ / mo',
|
|
915
|
+
align: 'right',
|
|
916
|
+
snap: 'monthlyTotal',
|
|
917
|
+
},
|
|
918
|
+
] satisfies Array<BbTableColumn<Holding>>
|
|
919
|
+
);
|
|
905
920
|
|
|
906
921
|
const money = (value: number) =>
|
|
907
922
|
value === 0
|
|
@@ -1041,9 +1056,10 @@ const kindOptions = (
|
|
|
1041
1056
|
<div class="floating-bottom-panel__right flex items-center gap-1">
|
|
1042
1057
|
<BbButton
|
|
1043
1058
|
v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
|
|
1044
|
-
|
|
1045
|
-
icon="lucide:x"
|
|
1059
|
+
icon-only
|
|
1060
|
+
prepend:icon="lucide:x"
|
|
1046
1061
|
size="sm"
|
|
1062
|
+
text="Clear selection"
|
|
1047
1063
|
variant="ghost"
|
|
1048
1064
|
@click="ctx.table.resetSelection"
|
|
1049
1065
|
/>
|
|
@@ -603,8 +603,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
|
|
|
603
603
|
variant: 'destructive',
|
|
604
604
|
title: 'Delete invoice',
|
|
605
605
|
text: `Delete ${invoiceNumber.value}? This cannot be undone.`,
|
|
606
|
-
|
|
607
|
-
|
|
606
|
+
ok: 'Delete',
|
|
607
|
+
cancel: 'Cancel',
|
|
608
608
|
});
|
|
609
609
|
if (!ok) return;
|
|
610
610
|
if (!(await orToast(remove(submitUrl())))) return;
|
|
@@ -1032,7 +1032,8 @@ const currency = new Intl.NumberFormat('en-US', {
|
|
|
1032
1032
|
|
|
1033
1033
|
<div class="flex shrink-0 items-center gap-1">
|
|
1034
1034
|
<BbButton
|
|
1035
|
-
icon
|
|
1035
|
+
icon-only
|
|
1036
|
+
prepend:icon="lucide:copy"
|
|
1036
1037
|
size="sm"
|
|
1037
1038
|
variant="ghost"
|
|
1038
1039
|
@click="() => ctx.duplicateLineItem(line)"
|
|
@@ -1040,7 +1041,8 @@ const currency = new Intl.NumberFormat('en-US', {
|
|
|
1040
1041
|
Duplicate line
|
|
1041
1042
|
</BbButton>
|
|
1042
1043
|
<BbButton
|
|
1043
|
-
icon
|
|
1044
|
+
icon-only
|
|
1045
|
+
prepend:icon="lucide:trash-2"
|
|
1044
1046
|
size="sm"
|
|
1045
1047
|
variant="ghost"
|
|
1046
1048
|
@click="() => ctx.removeLineItem(line)"
|
|
@@ -1182,9 +1184,10 @@ const revert = () => {
|
|
|
1182
1184
|
doesn't commit/unmount before the click lands. -->
|
|
1183
1185
|
<template #prepend:outer="{ decrease }">
|
|
1184
1186
|
<BbButton
|
|
1185
|
-
|
|
1186
|
-
icon="lucide:minus"
|
|
1187
|
+
icon-only
|
|
1188
|
+
prepend:icon="lucide:minus"
|
|
1187
1189
|
size="xs"
|
|
1190
|
+
text="Decrease quantity"
|
|
1188
1191
|
variant="ghost"
|
|
1189
1192
|
@click="decrease"
|
|
1190
1193
|
@mousedown.prevent
|
|
@@ -1192,9 +1195,10 @@ const revert = () => {
|
|
|
1192
1195
|
</template>
|
|
1193
1196
|
<template #append:outer="{ increase }">
|
|
1194
1197
|
<BbButton
|
|
1195
|
-
|
|
1196
|
-
icon="lucide:plus"
|
|
1198
|
+
icon-only
|
|
1199
|
+
prepend:icon="lucide:plus"
|
|
1197
1200
|
size="xs"
|
|
1201
|
+
text="Increase quantity"
|
|
1198
1202
|
variant="ghost"
|
|
1199
1203
|
@click="increase"
|
|
1200
1204
|
@mousedown.prevent
|
|
@@ -483,8 +483,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
|
|
|
483
483
|
variant: 'destructive',
|
|
484
484
|
title: 'Delete invoice',
|
|
485
485
|
text: `Delete ${invoice.number}? This cannot be undone.`,
|
|
486
|
-
|
|
487
|
-
|
|
486
|
+
ok: 'Delete',
|
|
487
|
+
cancel: 'Cancel',
|
|
488
488
|
});
|
|
489
489
|
if (!ok) return;
|
|
490
490
|
if (!(await orToast(remove(`/invoices/${invoice.id}`)))) return;
|
|
@@ -535,8 +535,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
|
|
|
535
535
|
variant: 'destructive',
|
|
536
536
|
title: 'Archive invoices',
|
|
537
537
|
text: `Archive ${count} invoices? They move out of every tab except Archived.`,
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
ok: 'Archive',
|
|
539
|
+
cancel: 'Cancel',
|
|
540
540
|
});
|
|
541
541
|
if (!ok) return;
|
|
542
542
|
if (!(await orToast(patch('/invoices/bulk/archive', bulkPayload()))))
|
|
@@ -1417,7 +1417,13 @@ const pillLabel = computed(() =>
|
|
|
1417
1417
|
]"
|
|
1418
1418
|
>
|
|
1419
1419
|
<template #activator="{ props }">
|
|
1420
|
-
<BbButton
|
|
1420
|
+
<BbButton
|
|
1421
|
+
v-bind="props"
|
|
1422
|
+
icon-only
|
|
1423
|
+
prepend:icon="lucide:ellipsis"
|
|
1424
|
+
size="sm"
|
|
1425
|
+
variant="ghost"
|
|
1426
|
+
>
|
|
1421
1427
|
Invoice actions
|
|
1422
1428
|
</BbButton>
|
|
1423
1429
|
</template>
|
|
@@ -1467,9 +1473,10 @@ const ctx = useInvoicesWorkspace();
|
|
|
1467
1473
|
>Archive</BbButton
|
|
1468
1474
|
>
|
|
1469
1475
|
<BbButton
|
|
1470
|
-
|
|
1471
|
-
icon="lucide:x"
|
|
1476
|
+
icon-only
|
|
1477
|
+
prepend:icon="lucide:x"
|
|
1472
1478
|
size="sm"
|
|
1479
|
+
text="Clear selection"
|
|
1473
1480
|
variant="ghost"
|
|
1474
1481
|
@click="ctx.table.resetSelection"
|
|
1475
1482
|
/>
|
|
@@ -225,7 +225,12 @@ import {
|
|
|
225
225
|
type Ref,
|
|
226
226
|
} from 'vue';
|
|
227
227
|
import { useEventListener } from '@vueuse/core';
|
|
228
|
-
import {
|
|
228
|
+
import {
|
|
229
|
+
BbValidationError,
|
|
230
|
+
useBbDialog,
|
|
231
|
+
useConfirm,
|
|
232
|
+
useToast,
|
|
233
|
+
} from 'bitboss-ui';
|
|
229
234
|
import { useConfirmOnRouteLeave } from '@/composables/inertia-helpers/useConfirmOnRouteLeave';
|
|
230
235
|
import { useProp } from '@/composables/inertia-helpers/useProp';
|
|
231
236
|
import type {
|
|
@@ -261,7 +266,7 @@ export type ServerErrors = Record<string, string | string[]> | null;
|
|
|
261
266
|
|
|
262
267
|
/** The error bag of a rejected visit; an `Error` (no Inertia answer) has none. */
|
|
263
268
|
const bagOf = (error: unknown): ServerErrors =>
|
|
264
|
-
error instanceof
|
|
269
|
+
error instanceof BbValidationError ? (error.errors as ServerErrors) : null;
|
|
265
270
|
|
|
266
271
|
export const ROLE_OPTIONS: Array<{
|
|
267
272
|
value: InvitableRole;
|
|
@@ -674,8 +679,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
674
679
|
text: invited
|
|
675
680
|
? `The link sent to ${member.email} stops working. You can invite them again later.`
|
|
676
681
|
: `${member.name} loses access to Fennel & Hart immediately. Invoices they created stay.`,
|
|
677
|
-
|
|
678
|
-
|
|
682
|
+
ok: invited ? 'Revoke invitation' : 'Remove member',
|
|
683
|
+
cancel: 'Cancel',
|
|
679
684
|
});
|
|
680
685
|
if (!ok) return;
|
|
681
686
|
if (
|
|
@@ -699,8 +704,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
699
704
|
variant: 'destructive',
|
|
700
705
|
title: `Make ${member.name} the owner`,
|
|
701
706
|
text: `${member.name} gets full control of Fennel & Hart, including deleting it. You stay on as an admin, and only the new owner can undo this.`,
|
|
702
|
-
|
|
703
|
-
|
|
707
|
+
ok: 'Transfer ownership',
|
|
708
|
+
cancel: 'Cancel',
|
|
704
709
|
});
|
|
705
710
|
if (!ok) return;
|
|
706
711
|
if (
|
|
@@ -744,8 +749,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
744
749
|
variant: 'destructive',
|
|
745
750
|
title: `Revoke ${apiKey.name}`,
|
|
746
751
|
text: `Requests signed with ${apiKey.preview} start failing immediately. This cannot be undone.`,
|
|
747
|
-
|
|
748
|
-
|
|
752
|
+
ok: 'Revoke key',
|
|
753
|
+
cancel: 'Cancel',
|
|
749
754
|
});
|
|
750
755
|
if (!ok) return;
|
|
751
756
|
if (
|
|
@@ -1829,31 +1834,34 @@ const seatsLeft = computed(() =>
|
|
|
1829
1834
|
|
|
1830
1835
|
// Rank the columns: identity + role stay on a phone; activity folds into the
|
|
1831
1836
|
// identity cell (the BbTable guide's "hide columns, don't scroll").
|
|
1832
|
-
const columns = computed
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1837
|
+
const columns = computed(
|
|
1838
|
+
() =>
|
|
1839
|
+
[
|
|
1840
|
+
// On a phone the identity track may shrink (long emails ellipse) instead of
|
|
1841
|
+
// pushing the row menu off screen.
|
|
1842
|
+
{
|
|
1843
|
+
key: 'name',
|
|
1844
|
+
label: 'Member',
|
|
1845
|
+
skeleton: 'avatar-text',
|
|
1846
|
+
width: isMobile.value ? '1fr' : undefined,
|
|
1847
|
+
// The identity cell may shrink below its content, so a long email
|
|
1848
|
+
// ellipses instead of widening the track.
|
|
1849
|
+
tdClass: 'min-w-0 overflow-hidden',
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
key: 'role',
|
|
1853
|
+
label: 'Role',
|
|
1854
|
+
width: isMobile.value ? undefined : '10rem',
|
|
1855
|
+
skeleton: 'badge',
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
key: 'lastActiveAt',
|
|
1859
|
+
label: 'Last active',
|
|
1860
|
+
width: '9rem',
|
|
1861
|
+
hidden: isMobile.value,
|
|
1862
|
+
},
|
|
1863
|
+
] satisfies Array<BbTableColumn<WorkspaceMember>>
|
|
1864
|
+
);
|
|
1857
1865
|
|
|
1858
1866
|
const activity = (member: WorkspaceMember) =>
|
|
1859
1867
|
member.status === 'invited'
|
|
@@ -1936,11 +1944,12 @@ The row menu (v-bb-dropdown).
|
|
|
1936
1944
|
<!-- The row's "…" menu (resend, copy, transfer, remove). -->
|
|
1937
1945
|
<template>
|
|
1938
1946
|
<!-- A plain items menu on a trigger we already have: the directive, not a
|
|
1939
|
-
BbDropdown wrapper. The owner and you get no menu
|
|
1947
|
+
BbDropdown wrapper. The owner and you get no menu: with no rows the
|
|
1948
|
+
directive hides the button itself. -->
|
|
1940
1949
|
<BbButton
|
|
1941
|
-
v-if="items.length"
|
|
1942
1950
|
v-bb-dropdown:bottom-end="{ items, width: 220 }"
|
|
1943
|
-
icon
|
|
1951
|
+
icon-only
|
|
1952
|
+
prepend:icon="lucide:ellipsis"
|
|
1944
1953
|
size="sm"
|
|
1945
1954
|
variant="ghost"
|
|
1946
1955
|
>
|
|
@@ -2307,24 +2316,27 @@ const INVOICE_BADGE: Record<
|
|
|
2307
2316
|
refunded: { label: 'Refunded', variant: 'soft-gray' },
|
|
2308
2317
|
};
|
|
2309
2318
|
|
|
2310
|
-
const columns = computed
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2319
|
+
const columns = computed(
|
|
2320
|
+
() =>
|
|
2321
|
+
[
|
|
2322
|
+
{ key: 'number', label: 'Invoice' },
|
|
2323
|
+
{
|
|
2324
|
+
key: 'date',
|
|
2325
|
+
label: 'Date',
|
|
2326
|
+
formatter: (date) => formatDate(String(date)),
|
|
2327
|
+
hidden: isMobile.value,
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
key: 'amount',
|
|
2331
|
+
label: 'Amount',
|
|
2332
|
+
align: 'right',
|
|
2333
|
+
formatter: (amount) =>
|
|
2334
|
+
formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
|
|
2335
|
+
tdClass: 'tabular-nums',
|
|
2336
|
+
},
|
|
2337
|
+
{ key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
|
|
2338
|
+
] satisfies Array<BbTableColumn<BillingInvoice>>
|
|
2339
|
+
);
|
|
2328
2340
|
</script>
|
|
2329
2341
|
```
|
|
2330
2342
|
|
|
@@ -2462,12 +2474,15 @@ const SCOPE_BADGE: Record<
|
|
|
2462
2474
|
admin: { label: 'Full access', variant: 'soft-amber' },
|
|
2463
2475
|
};
|
|
2464
2476
|
|
|
2465
|
-
const columns = computed
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2477
|
+
const columns = computed(
|
|
2478
|
+
() =>
|
|
2479
|
+
[
|
|
2480
|
+
{ key: 'name', label: 'Key' },
|
|
2481
|
+
{ key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
|
|
2482
|
+
{ key: 'createdAt', label: 'Created', hidden: isMobile.value },
|
|
2483
|
+
{ key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
|
|
2484
|
+
] satisfies Array<BbTableColumn<ApiKey>>
|
|
2485
|
+
);
|
|
2471
2486
|
</script>
|
|
2472
2487
|
```
|
|
2473
2488
|
|
|
@@ -532,8 +532,8 @@ export function provideUploadCenter(): UploadCenterContext {
|
|
|
532
532
|
variant: 'destructive',
|
|
533
533
|
title: 'Remove receipt',
|
|
534
534
|
text: `Remove ${receipt.filename}? The file is deleted and cannot be recovered.`,
|
|
535
|
-
|
|
536
|
-
|
|
535
|
+
ok: 'Remove',
|
|
536
|
+
cancel: 'Cancel',
|
|
537
537
|
});
|
|
538
538
|
if (!ok) return false;
|
|
539
539
|
if (!(await orToast(remove(`/receipts/${receipt.id}`)))) return false;
|
|
@@ -583,8 +583,8 @@ export function provideUploadCenter(): UploadCenterContext {
|
|
|
583
583
|
variant: 'destructive',
|
|
584
584
|
title: 'Remove receipts',
|
|
585
585
|
text: `Remove ${count} receipts? Their files are deleted and cannot be recovered.`,
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
ok: 'Remove',
|
|
587
|
+
cancel: 'Cancel',
|
|
588
588
|
});
|
|
589
589
|
if (!ok) return;
|
|
590
590
|
if (!(await orToast(post('/receipts/bulk/delete', bulkPayload())))) return;
|
|
@@ -1449,9 +1449,10 @@ const commit = (value: string | string[] | null) => {
|
|
|
1449
1449
|
<!-- Queue rows: one explicit remove (aborts the transfer). -->
|
|
1450
1450
|
<BbButton
|
|
1451
1451
|
v-if="row.kind === 'upload'"
|
|
1452
|
-
|
|
1453
|
-
icon="lucide:x"
|
|
1452
|
+
icon-only
|
|
1453
|
+
prepend:icon="lucide:x"
|
|
1454
1454
|
size="sm"
|
|
1455
|
+
:text="`Remove ${row.filename} from the queue`"
|
|
1455
1456
|
variant="ghost"
|
|
1456
1457
|
@click="() => ctx.removeUpload(row.id)"
|
|
1457
1458
|
/>
|
|
@@ -1459,7 +1460,13 @@ const commit = (value: string | string[] | null) => {
|
|
|
1459
1460
|
<!-- Server receipts: contextual dropdown, entries vary by status. -->
|
|
1460
1461
|
<BbDropdown v-else :items="items">
|
|
1461
1462
|
<template #activator="{ props }">
|
|
1462
|
-
<BbButton
|
|
1463
|
+
<BbButton
|
|
1464
|
+
v-bind="props"
|
|
1465
|
+
icon-only
|
|
1466
|
+
prepend:icon="lucide:ellipsis"
|
|
1467
|
+
size="sm"
|
|
1468
|
+
variant="ghost"
|
|
1469
|
+
>
|
|
1463
1470
|
Receipt actions
|
|
1464
1471
|
</BbButton>
|
|
1465
1472
|
</template>
|
|
@@ -1561,9 +1568,10 @@ const items = computed(() => {
|
|
|
1561
1568
|
>
|
|
1562
1569
|
<BbButton
|
|
1563
1570
|
v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
|
|
1564
|
-
|
|
1565
|
-
icon="lucide:x"
|
|
1571
|
+
icon-only
|
|
1572
|
+
prepend:icon="lucide:x"
|
|
1566
1573
|
size="sm"
|
|
1574
|
+
text="Clear selection"
|
|
1567
1575
|
variant="ghost"
|
|
1568
1576
|
@click="ctx.table.resetSelection"
|
|
1569
1577
|
/>
|
|
@@ -606,8 +606,8 @@ export function provideCampaignWizard(): CampaignWizardContext {
|
|
|
606
606
|
variant: 'destructive',
|
|
607
607
|
title: 'Discard draft',
|
|
608
608
|
text: `Delete "${campaign.value?.name ?? 'this campaign'}" and everything entered so far? This cannot be undone.`,
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
ok: 'Discard',
|
|
610
|
+
cancel: 'Keep draft',
|
|
611
611
|
});
|
|
612
612
|
if (!ok) return;
|
|
613
613
|
discarded.value = true; // don't double-prompt via the leave guard
|