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
|
@@ -540,8 +540,8 @@ export function provideApprovalsInbox(): ApprovalsInboxContext {
|
|
|
540
540
|
variant: 'destructive',
|
|
541
541
|
title: 'Reject expenses',
|
|
542
542
|
text: `Reject ${count} expenses? The submitters are notified.`,
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
ok: 'Reject',
|
|
544
|
+
cancel: 'Cancel',
|
|
545
545
|
});
|
|
546
546
|
if (!ok) return;
|
|
547
547
|
await $fetch('/api/expenses/bulk/reject', {
|
|
@@ -974,10 +974,11 @@ const submitterLabel = computed(
|
|
|
974
974
|
<template #activator="{ props }">
|
|
975
975
|
<BbButton
|
|
976
976
|
v-bind="props"
|
|
977
|
-
aria-label="Approve highlighted expense"
|
|
978
977
|
:disabled="!ctx.highlightedExpense.value"
|
|
979
|
-
icon
|
|
978
|
+
icon-only
|
|
979
|
+
prepend:icon="lucide:check"
|
|
980
980
|
size="xs"
|
|
981
|
+
text="Approve highlighted expense"
|
|
981
982
|
variant="ghost"
|
|
982
983
|
@click="ctx.approveHighlighted"
|
|
983
984
|
/>
|
|
@@ -994,10 +995,11 @@ const submitterLabel = computed(
|
|
|
994
995
|
<template #activator="{ props }">
|
|
995
996
|
<BbButton
|
|
996
997
|
v-bind="props"
|
|
997
|
-
aria-label="Reject highlighted expense"
|
|
998
998
|
:disabled="!ctx.highlightedExpense.value"
|
|
999
|
-
icon
|
|
999
|
+
icon-only
|
|
1000
|
+
prepend:icon="lucide:x"
|
|
1000
1001
|
size="xs"
|
|
1002
|
+
text="Reject highlighted expense"
|
|
1001
1003
|
variant="ghost"
|
|
1002
1004
|
@click="ctx.rejectHighlighted"
|
|
1003
1005
|
/>
|
|
@@ -1014,10 +1016,11 @@ const submitterLabel = computed(
|
|
|
1014
1016
|
<template #activator="{ props }">
|
|
1015
1017
|
<BbButton
|
|
1016
1018
|
v-bind="props"
|
|
1017
|
-
aria-label="Snooze highlighted expense"
|
|
1018
1019
|
:disabled="!ctx.highlightedExpense.value"
|
|
1019
|
-
icon
|
|
1020
|
+
icon-only
|
|
1021
|
+
prepend:icon="lucide:clock"
|
|
1020
1022
|
size="xs"
|
|
1023
|
+
text="Snooze highlighted expense"
|
|
1021
1024
|
variant="ghost"
|
|
1022
1025
|
@click="ctx.snoozeHighlighted"
|
|
1023
1026
|
/>
|
|
@@ -1079,10 +1082,11 @@ defineProps<{ expense: Expense }>();
|
|
|
1079
1082
|
<template #activator="{ props }">
|
|
1080
1083
|
<BbButton
|
|
1081
1084
|
v-bind="props"
|
|
1082
|
-
aria-label="Approve"
|
|
1083
1085
|
:disabled="resolved"
|
|
1084
|
-
icon
|
|
1086
|
+
icon-only
|
|
1087
|
+
prepend:icon="lucide:check"
|
|
1085
1088
|
size="xs"
|
|
1089
|
+
text="Approve"
|
|
1086
1090
|
variant="ghost"
|
|
1087
1091
|
@click="() => ctx.approve(expense)"
|
|
1088
1092
|
/>
|
|
@@ -1093,10 +1097,11 @@ defineProps<{ expense: Expense }>();
|
|
|
1093
1097
|
<BbButton
|
|
1094
1098
|
v-bb-dialog="{ id: 'reject-expense', data: expense }"
|
|
1095
1099
|
v-bind="props"
|
|
1096
|
-
aria-label="Reject"
|
|
1097
1100
|
:disabled="resolved"
|
|
1098
|
-
icon
|
|
1101
|
+
icon-only
|
|
1102
|
+
prepend:icon="lucide:x"
|
|
1099
1103
|
size="xs"
|
|
1104
|
+
text="Reject"
|
|
1100
1105
|
variant="ghost"
|
|
1101
1106
|
/>
|
|
1102
1107
|
</template>
|
|
@@ -1106,10 +1111,11 @@ defineProps<{ expense: Expense }>();
|
|
|
1106
1111
|
<BbButton
|
|
1107
1112
|
v-bb-dialog="{ id: 'snooze-expense', data: expense }"
|
|
1108
1113
|
v-bind="props"
|
|
1109
|
-
aria-label="Snooze"
|
|
1110
1114
|
:disabled="resolved"
|
|
1111
|
-
icon
|
|
1115
|
+
icon-only
|
|
1116
|
+
prepend:icon="lucide:clock"
|
|
1112
1117
|
size="xs"
|
|
1118
|
+
text="Snooze"
|
|
1113
1119
|
variant="ghost"
|
|
1114
1120
|
/>
|
|
1115
1121
|
</template>
|
|
@@ -1346,9 +1352,10 @@ const submit = () =>
|
|
|
1346
1352
|
Reject
|
|
1347
1353
|
</BbButton>
|
|
1348
1354
|
<BbButton
|
|
1349
|
-
|
|
1350
|
-
icon="lucide:x"
|
|
1355
|
+
icon-only
|
|
1356
|
+
prepend:icon="lucide:x"
|
|
1351
1357
|
size="sm"
|
|
1358
|
+
text="Clear selection"
|
|
1352
1359
|
variant="ghost"
|
|
1353
1360
|
@click="ctx.clearSelection"
|
|
1354
1361
|
/>
|
|
@@ -708,8 +708,8 @@ export function provideBacklogWorkspace(): BacklogWorkspaceContext {
|
|
|
708
708
|
variant: 'destructive',
|
|
709
709
|
title: 'Delete issue',
|
|
710
710
|
text: `Delete ${issue.ref} — “${issue.title}”? This cannot be undone.`,
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
ok: 'Delete',
|
|
712
|
+
cancel: 'Cancel',
|
|
713
713
|
});
|
|
714
714
|
if (!ok) return;
|
|
715
715
|
await $fetch(`/api/issues/${issue.id}`, { method: 'DELETE' });
|
|
@@ -1533,7 +1533,13 @@ const assignee = computed(() => ctx.valueOf(props.issue, 'assignee'));
|
|
|
1533
1533
|
]"
|
|
1534
1534
|
>
|
|
1535
1535
|
<template #activator="{ props }">
|
|
1536
|
-
<BbButton
|
|
1536
|
+
<BbButton
|
|
1537
|
+
v-bind="props"
|
|
1538
|
+
icon-only
|
|
1539
|
+
prepend:icon="lucide:ellipsis"
|
|
1540
|
+
size="sm"
|
|
1541
|
+
variant="ghost"
|
|
1542
|
+
>
|
|
1537
1543
|
Issue actions
|
|
1538
1544
|
</BbButton>
|
|
1539
1545
|
</template>
|
|
@@ -1624,9 +1630,10 @@ const ctx = useBacklogWorkspace();
|
|
|
1624
1630
|
|
|
1625
1631
|
<div class="floating-bottom-panel__right flex items-center gap-1">
|
|
1626
1632
|
<BbButton
|
|
1627
|
-
|
|
1628
|
-
icon="lucide:x"
|
|
1633
|
+
icon-only
|
|
1634
|
+
prepend:icon="lucide:x"
|
|
1629
1635
|
size="sm"
|
|
1636
|
+
text="Clear selection"
|
|
1630
1637
|
variant="ghost"
|
|
1631
1638
|
@click="ctx.clearSelection"
|
|
1632
1639
|
/>
|
|
@@ -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>
|
|
@@ -638,8 +638,8 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
638
638
|
variant: 'destructive',
|
|
639
639
|
title: 'Dismiss onboarding',
|
|
640
640
|
text: 'Hide the setup checklist for everyone in this workspace? Unfinished steps stay available under Settings → Setup.',
|
|
641
|
-
|
|
642
|
-
|
|
641
|
+
ok: 'Dismiss',
|
|
642
|
+
cancel: 'Keep it',
|
|
643
643
|
});
|
|
644
644
|
if (!ok) return;
|
|
645
645
|
await $fetch('/api/onboarding/dismiss', { method: 'POST' });
|
|
@@ -1296,10 +1296,11 @@ const submit = () => {
|
|
|
1296
1296
|
>
|
|
1297
1297
|
</span>
|
|
1298
1298
|
<BbButton
|
|
1299
|
-
aria-label="Remove selected file"
|
|
1300
1299
|
:disabled="ctx.importState.uploading"
|
|
1301
|
-
icon
|
|
1300
|
+
icon-only
|
|
1301
|
+
prepend:icon="lucide:x"
|
|
1302
1302
|
size="sm"
|
|
1303
|
+
text="Remove selected file"
|
|
1303
1304
|
variant="ghost"
|
|
1304
1305
|
@click="() => (file = null)"
|
|
1305
1306
|
/>
|
|
@@ -585,15 +585,14 @@ export function useOwnershipAtlas(): OwnershipAtlasContext {
|
|
|
585
585
|
text: ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all',
|
|
586
586
|
delay: 400,
|
|
587
587
|
}"
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
"
|
|
591
|
-
:icon="
|
|
588
|
+
icon-only
|
|
589
|
+
:prepend:icon="
|
|
592
590
|
ctx.allExpandedOnPage.value
|
|
593
591
|
? 'lucide:chevrons-down-up'
|
|
594
592
|
: 'lucide:chevrons-up-down'
|
|
595
593
|
"
|
|
596
594
|
size="sm"
|
|
595
|
+
:text="ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'"
|
|
597
596
|
variant="ghost"
|
|
598
597
|
@click="ctx.toggleExpandAll"
|
|
599
598
|
/>
|
|
@@ -798,12 +797,15 @@ const { isMobile } = useMobile();
|
|
|
798
797
|
* control in the actions column. On a phone Team and Region leave (the BbTable
|
|
799
798
|
* guide's "hide columns, don't scroll"): four equal tracks at 390px would
|
|
800
799
|
* break names mid-word. */
|
|
801
|
-
const columns = computed
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
800
|
+
const columns = computed(
|
|
801
|
+
() =>
|
|
802
|
+
[
|
|
803
|
+
{ key: 'name', label: 'Owner' },
|
|
804
|
+
{ key: 'team', label: 'Team', hidden: isMobile.value },
|
|
805
|
+
{ key: 'region', label: 'Region', hidden: isMobile.value },
|
|
806
|
+
{ key: 'monthlyTotal', label: '$ / mo', align: 'right' },
|
|
807
|
+
] satisfies Array<BbTableColumn<Owner>>
|
|
808
|
+
);
|
|
807
809
|
|
|
808
810
|
const money = (value: number) =>
|
|
809
811
|
new Intl.NumberFormat('en-US', {
|
|
@@ -953,12 +955,25 @@ const { isMobile } = useMobile();
|
|
|
953
955
|
* columns that snap onto them hide too: a hidden parent column has no track
|
|
954
956
|
* for a child cell to land on.
|
|
955
957
|
*/
|
|
956
|
-
const columns = computed
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
958
|
+
const columns = computed(
|
|
959
|
+
() =>
|
|
960
|
+
[
|
|
961
|
+
{ key: 'name', label: 'Resource', snap: 'name' },
|
|
962
|
+
{ key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
|
|
963
|
+
{
|
|
964
|
+
key: 'status',
|
|
965
|
+
label: 'Status',
|
|
966
|
+
snap: 'region',
|
|
967
|
+
hidden: isMobile.value,
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
key: 'monthlyCost',
|
|
971
|
+
label: '$ / mo',
|
|
972
|
+
align: 'right',
|
|
973
|
+
snap: 'monthlyTotal',
|
|
974
|
+
},
|
|
975
|
+
] satisfies Array<BbTableColumn<Holding>>
|
|
976
|
+
);
|
|
962
977
|
|
|
963
978
|
const money = (value: number) =>
|
|
964
979
|
value === 0
|
|
@@ -1100,9 +1115,10 @@ const kindOptions = (
|
|
|
1100
1115
|
<div class="floating-bottom-panel__right flex items-center gap-1">
|
|
1101
1116
|
<BbButton
|
|
1102
1117
|
v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
|
|
1103
|
-
|
|
1104
|
-
icon="lucide:x"
|
|
1118
|
+
icon-only
|
|
1119
|
+
prepend:icon="lucide:x"
|
|
1105
1120
|
size="sm"
|
|
1121
|
+
text="Clear selection"
|
|
1106
1122
|
variant="ghost"
|
|
1107
1123
|
@click="ctx.clearSelection"
|
|
1108
1124
|
/>
|
|
@@ -678,8 +678,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
|
|
|
678
678
|
variant: 'destructive',
|
|
679
679
|
title: 'Delete invoice',
|
|
680
680
|
text: `Delete ${invoiceNumber.value}? This cannot be undone.`,
|
|
681
|
-
|
|
682
|
-
|
|
681
|
+
ok: 'Delete',
|
|
682
|
+
cancel: 'Cancel',
|
|
683
683
|
});
|
|
684
684
|
if (!ok) return;
|
|
685
685
|
await $fetch(`/api/invoices/${invoiceId}`, { method: 'DELETE' });
|
|
@@ -701,8 +701,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
|
|
|
701
701
|
variant: 'destructive',
|
|
702
702
|
title: 'Unsaved changes',
|
|
703
703
|
text: 'You have unsaved changes on this invoice. Leave without saving?',
|
|
704
|
-
|
|
705
|
-
|
|
704
|
+
ok: 'Discard changes',
|
|
705
|
+
cancel: 'Keep editing',
|
|
706
706
|
});
|
|
707
707
|
});
|
|
708
708
|
|
|
@@ -1134,7 +1134,8 @@ const currency = new Intl.NumberFormat('en-US', {
|
|
|
1134
1134
|
|
|
1135
1135
|
<div class="flex shrink-0 items-center gap-1">
|
|
1136
1136
|
<BbButton
|
|
1137
|
-
icon
|
|
1137
|
+
icon-only
|
|
1138
|
+
prepend:icon="lucide:copy"
|
|
1138
1139
|
size="sm"
|
|
1139
1140
|
variant="ghost"
|
|
1140
1141
|
@click="() => ctx.duplicateLineItem(line)"
|
|
@@ -1142,7 +1143,8 @@ const currency = new Intl.NumberFormat('en-US', {
|
|
|
1142
1143
|
Duplicate line
|
|
1143
1144
|
</BbButton>
|
|
1144
1145
|
<BbButton
|
|
1145
|
-
icon
|
|
1146
|
+
icon-only
|
|
1147
|
+
prepend:icon="lucide:trash-2"
|
|
1146
1148
|
size="sm"
|
|
1147
1149
|
variant="ghost"
|
|
1148
1150
|
@click="() => ctx.removeLineItem(line)"
|
|
@@ -1284,9 +1286,10 @@ const revert = () => {
|
|
|
1284
1286
|
doesn't commit/unmount before the click lands. -->
|
|
1285
1287
|
<template #prepend:outer="{ decrease }">
|
|
1286
1288
|
<BbButton
|
|
1287
|
-
|
|
1288
|
-
icon="lucide:minus"
|
|
1289
|
+
icon-only
|
|
1290
|
+
prepend:icon="lucide:minus"
|
|
1289
1291
|
size="xs"
|
|
1292
|
+
text="Decrease quantity"
|
|
1290
1293
|
variant="ghost"
|
|
1291
1294
|
@click="decrease"
|
|
1292
1295
|
@mousedown.prevent
|
|
@@ -1294,9 +1297,10 @@ const revert = () => {
|
|
|
1294
1297
|
</template>
|
|
1295
1298
|
<template #append:outer="{ increase }">
|
|
1296
1299
|
<BbButton
|
|
1297
|
-
|
|
1298
|
-
icon="lucide:plus"
|
|
1300
|
+
icon-only
|
|
1301
|
+
prepend:icon="lucide:plus"
|
|
1299
1302
|
size="xs"
|
|
1303
|
+
text="Increase quantity"
|
|
1300
1304
|
variant="ghost"
|
|
1301
1305
|
@click="increase"
|
|
1302
1306
|
@mousedown.prevent
|
|
@@ -540,8 +540,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
|
|
|
540
540
|
variant: 'destructive',
|
|
541
541
|
title: 'Delete invoice',
|
|
542
542
|
text: `Delete ${invoice.number}? This cannot be undone.`,
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
ok: 'Delete',
|
|
544
|
+
cancel: 'Cancel',
|
|
545
545
|
});
|
|
546
546
|
if (!ok) return;
|
|
547
547
|
await $fetch(`/api/invoices/${invoice.id}`, { method: 'DELETE' });
|
|
@@ -613,8 +613,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
|
|
|
613
613
|
variant: 'destructive',
|
|
614
614
|
title: 'Archive invoices',
|
|
615
615
|
text: `Archive ${count} invoices? They move out of every tab except Archived.`,
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
ok: 'Archive',
|
|
617
|
+
cancel: 'Cancel',
|
|
618
618
|
});
|
|
619
619
|
if (!ok) return;
|
|
620
620
|
await $fetch('/api/invoices/bulk/archive', {
|
|
@@ -1484,7 +1484,13 @@ const pillLabel = computed(() =>
|
|
|
1484
1484
|
]"
|
|
1485
1485
|
>
|
|
1486
1486
|
<template #activator="{ props }">
|
|
1487
|
-
<BbButton
|
|
1487
|
+
<BbButton
|
|
1488
|
+
v-bind="props"
|
|
1489
|
+
icon-only
|
|
1490
|
+
prepend:icon="lucide:ellipsis"
|
|
1491
|
+
size="sm"
|
|
1492
|
+
variant="ghost"
|
|
1493
|
+
>
|
|
1488
1494
|
Invoice actions
|
|
1489
1495
|
</BbButton>
|
|
1490
1496
|
</template>
|
|
@@ -1534,9 +1540,10 @@ const ctx = useInvoicesWorkspace();
|
|
|
1534
1540
|
>Archive</BbButton
|
|
1535
1541
|
>
|
|
1536
1542
|
<BbButton
|
|
1537
|
-
|
|
1538
|
-
icon="lucide:x"
|
|
1543
|
+
icon-only
|
|
1544
|
+
prepend:icon="lucide:x"
|
|
1539
1545
|
size="sm"
|
|
1546
|
+
text="Clear selection"
|
|
1540
1547
|
variant="ghost"
|
|
1541
1548
|
@click="ctx.clearSelection"
|
|
1542
1549
|
/>
|
|
@@ -711,8 +711,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
711
711
|
text: invited
|
|
712
712
|
? `The link sent to ${member.email} stops working. You can invite them again later.`
|
|
713
713
|
: `${member.name} loses access to Fennel & Hart immediately. Invoices they created stay.`,
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
ok: invited ? 'Revoke invitation' : 'Remove member',
|
|
715
|
+
cancel: 'Cancel',
|
|
716
716
|
});
|
|
717
717
|
if (!ok) return;
|
|
718
718
|
await $fetch(`/api/settings/members/${member.id}`, { method: 'DELETE' });
|
|
@@ -730,8 +730,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
730
730
|
variant: 'destructive',
|
|
731
731
|
title: `Make ${member.name} the owner`,
|
|
732
732
|
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.`,
|
|
733
|
-
|
|
734
|
-
|
|
733
|
+
ok: 'Transfer ownership',
|
|
734
|
+
cancel: 'Cancel',
|
|
735
735
|
});
|
|
736
736
|
if (!ok) return;
|
|
737
737
|
members.value = await $fetch<WorkspaceMember[]>(
|
|
@@ -773,8 +773,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
773
773
|
variant: 'destructive',
|
|
774
774
|
title: `Revoke ${apiKey.name}`,
|
|
775
775
|
text: `Requests signed with ${apiKey.preview} start failing immediately. This cannot be undone.`,
|
|
776
|
-
|
|
777
|
-
|
|
776
|
+
ok: 'Revoke key',
|
|
777
|
+
cancel: 'Cancel',
|
|
778
778
|
});
|
|
779
779
|
if (!ok) return;
|
|
780
780
|
await $fetch(`/api/settings/api-keys/${apiKey.id}`, { method: 'DELETE' });
|
|
@@ -833,8 +833,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
833
833
|
variant: 'destructive',
|
|
834
834
|
title: 'Discard unsaved changes',
|
|
835
835
|
text: 'Your profile has changes that are not saved yet. Leave anyway?',
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
ok: 'Discard changes',
|
|
837
|
+
cancel: 'Keep editing',
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
840
|
// Closing the tab or reloading: the browser's own prompt (it ignores copy).
|
|
@@ -1865,31 +1865,34 @@ const seatsLeft = computed(() =>
|
|
|
1865
1865
|
|
|
1866
1866
|
// Rank the columns: identity + role stay on a phone; activity folds into the
|
|
1867
1867
|
// identity cell (the BbTable guide's "hide columns, don't scroll").
|
|
1868
|
-
const columns = computed
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1868
|
+
const columns = computed(
|
|
1869
|
+
() =>
|
|
1870
|
+
[
|
|
1871
|
+
// On a phone the identity track may shrink (long emails ellipse) instead of
|
|
1872
|
+
// pushing the row menu off screen.
|
|
1873
|
+
{
|
|
1874
|
+
key: 'name',
|
|
1875
|
+
label: 'Member',
|
|
1876
|
+
skeleton: 'avatar-text',
|
|
1877
|
+
width: isMobile.value ? '1fr' : undefined,
|
|
1878
|
+
// The identity cell may shrink below its content, so a long email
|
|
1879
|
+
// ellipses instead of widening the track.
|
|
1880
|
+
tdClass: 'min-w-0 overflow-hidden',
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
key: 'role',
|
|
1884
|
+
label: 'Role',
|
|
1885
|
+
width: isMobile.value ? undefined : '10rem',
|
|
1886
|
+
skeleton: 'badge',
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
key: 'lastActiveAt',
|
|
1890
|
+
label: 'Last active',
|
|
1891
|
+
width: '9rem',
|
|
1892
|
+
hidden: isMobile.value,
|
|
1893
|
+
},
|
|
1894
|
+
] satisfies Array<BbTableColumn<WorkspaceMember>>
|
|
1895
|
+
);
|
|
1893
1896
|
|
|
1894
1897
|
const activity = (member: WorkspaceMember) =>
|
|
1895
1898
|
member.status === 'invited'
|
|
@@ -1972,11 +1975,12 @@ The row menu (v-bb-dropdown).
|
|
|
1972
1975
|
<!-- The row's "…" menu (resend, copy, transfer, remove). -->
|
|
1973
1976
|
<template>
|
|
1974
1977
|
<!-- A plain items menu on a trigger we already have: the directive, not a
|
|
1975
|
-
BbDropdown wrapper. The owner and you get no menu
|
|
1978
|
+
BbDropdown wrapper. The owner and you get no menu: with no rows the
|
|
1979
|
+
directive hides the button itself. -->
|
|
1976
1980
|
<BbButton
|
|
1977
|
-
v-if="items.length"
|
|
1978
1981
|
v-bb-dropdown:bottom-end="{ items, width: 220 }"
|
|
1979
|
-
icon
|
|
1982
|
+
icon-only
|
|
1983
|
+
prepend:icon="lucide:ellipsis"
|
|
1980
1984
|
size="sm"
|
|
1981
1985
|
variant="ghost"
|
|
1982
1986
|
>
|
|
@@ -2343,24 +2347,27 @@ const INVOICE_BADGE: Record<
|
|
|
2343
2347
|
refunded: { label: 'Refunded', variant: 'soft-gray' },
|
|
2344
2348
|
};
|
|
2345
2349
|
|
|
2346
|
-
const columns = computed
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2350
|
+
const columns = computed(
|
|
2351
|
+
() =>
|
|
2352
|
+
[
|
|
2353
|
+
{ key: 'number', label: 'Invoice' },
|
|
2354
|
+
{
|
|
2355
|
+
key: 'date',
|
|
2356
|
+
label: 'Date',
|
|
2357
|
+
formatter: (date) => formatDate(String(date)),
|
|
2358
|
+
hidden: isMobile.value,
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
key: 'amount',
|
|
2362
|
+
label: 'Amount',
|
|
2363
|
+
align: 'right',
|
|
2364
|
+
formatter: (amount) =>
|
|
2365
|
+
formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
|
|
2366
|
+
tdClass: 'tabular-nums',
|
|
2367
|
+
},
|
|
2368
|
+
{ key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
|
|
2369
|
+
] satisfies Array<BbTableColumn<BillingInvoice>>
|
|
2370
|
+
);
|
|
2364
2371
|
</script>
|
|
2365
2372
|
```
|
|
2366
2373
|
|
|
@@ -2498,12 +2505,15 @@ const SCOPE_BADGE: Record<
|
|
|
2498
2505
|
admin: { label: 'Full access', variant: 'soft-amber' },
|
|
2499
2506
|
};
|
|
2500
2507
|
|
|
2501
|
-
const columns = computed
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2508
|
+
const columns = computed(
|
|
2509
|
+
() =>
|
|
2510
|
+
[
|
|
2511
|
+
{ key: 'name', label: 'Key' },
|
|
2512
|
+
{ key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
|
|
2513
|
+
{ key: 'createdAt', label: 'Created', hidden: isMobile.value },
|
|
2514
|
+
{ key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
|
|
2515
|
+
] satisfies Array<BbTableColumn<ApiKey>>
|
|
2516
|
+
);
|
|
2507
2517
|
</script>
|
|
2508
2518
|
```
|
|
2509
2519
|
|
|
@@ -583,8 +583,8 @@ export function provideUploadCenter(): UploadCenterContext {
|
|
|
583
583
|
variant: 'destructive',
|
|
584
584
|
title: 'Remove receipt',
|
|
585
585
|
text: `Remove ${receipt.filename}? The file is deleted and cannot be recovered.`,
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
ok: 'Remove',
|
|
587
|
+
cancel: 'Cancel',
|
|
588
588
|
});
|
|
589
589
|
if (!ok) return false;
|
|
590
590
|
try {
|
|
@@ -650,8 +650,8 @@ export function provideUploadCenter(): UploadCenterContext {
|
|
|
650
650
|
variant: 'destructive',
|
|
651
651
|
title: 'Remove receipts',
|
|
652
652
|
text: `Remove ${count} receipts? Their files are deleted and cannot be recovered.`,
|
|
653
|
-
|
|
654
|
-
|
|
653
|
+
ok: 'Remove',
|
|
654
|
+
cancel: 'Cancel',
|
|
655
655
|
});
|
|
656
656
|
if (!ok) return;
|
|
657
657
|
await $fetch('/api/receipts/bulk/delete', {
|
|
@@ -1489,9 +1489,10 @@ const commit = (value: string | string[] | null) => {
|
|
|
1489
1489
|
<!-- Queue rows: one explicit remove (aborts the transfer). -->
|
|
1490
1490
|
<BbButton
|
|
1491
1491
|
v-if="row.kind === 'upload'"
|
|
1492
|
-
|
|
1493
|
-
icon="lucide:x"
|
|
1492
|
+
icon-only
|
|
1493
|
+
prepend:icon="lucide:x"
|
|
1494
1494
|
size="sm"
|
|
1495
|
+
:text="`Remove ${row.filename} from the queue`"
|
|
1495
1496
|
variant="ghost"
|
|
1496
1497
|
@click="() => ctx.removeUpload(row.id)"
|
|
1497
1498
|
/>
|
|
@@ -1499,7 +1500,13 @@ const commit = (value: string | string[] | null) => {
|
|
|
1499
1500
|
<!-- Server receipts: contextual dropdown, entries vary by status. -->
|
|
1500
1501
|
<BbDropdown v-else :items="items">
|
|
1501
1502
|
<template #activator="{ props }">
|
|
1502
|
-
<BbButton
|
|
1503
|
+
<BbButton
|
|
1504
|
+
v-bind="props"
|
|
1505
|
+
icon-only
|
|
1506
|
+
prepend:icon="lucide:ellipsis"
|
|
1507
|
+
size="sm"
|
|
1508
|
+
variant="ghost"
|
|
1509
|
+
>
|
|
1503
1510
|
Receipt actions
|
|
1504
1511
|
</BbButton>
|
|
1505
1512
|
</template>
|
|
@@ -1594,9 +1601,10 @@ const items = computed(() => {
|
|
|
1594
1601
|
>Remove</BbButton
|
|
1595
1602
|
>
|
|
1596
1603
|
<BbButton
|
|
1597
|
-
|
|
1598
|
-
icon="lucide:x"
|
|
1604
|
+
icon-only
|
|
1605
|
+
prepend:icon="lucide:x"
|
|
1599
1606
|
size="sm"
|
|
1607
|
+
text="Clear selection"
|
|
1600
1608
|
variant="ghost"
|
|
1601
1609
|
@click="ctx.clearSelection"
|
|
1602
1610
|
/>
|