bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.72
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 +6 -1
- 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 +230 -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 +93 -7
- 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 +238 -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 +69 -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 +144 -10
- 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 +240 -198
- 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 +1984 -1145
- 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/utils/versionCheck.js +1 -1
- package/llms.txt +2 -2
- package/package.json +11 -1
- package/scripts/README.md +31 -27
- 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/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +32 -1
- 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
|
@@ -558,8 +558,8 @@ export function provideCampaignWizard(): CampaignWizardContext {
|
|
|
558
558
|
variant: 'destructive',
|
|
559
559
|
title: 'Leave campaign setup?',
|
|
560
560
|
text: 'You have unsaved changes. Leave and lose them, or stay and save the draft.',
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
ok: 'Leave',
|
|
562
|
+
cancel: 'Keep editing',
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
|
|
@@ -652,8 +652,8 @@ export function provideCampaignWizard(): CampaignWizardContext {
|
|
|
652
652
|
variant: 'destructive',
|
|
653
653
|
title: 'Discard draft',
|
|
654
654
|
text: `Delete "${campaign.value?.name ?? 'this campaign'}" and everything entered so far? This cannot be undone.`,
|
|
655
|
-
|
|
656
|
-
|
|
655
|
+
ok: 'Discard',
|
|
656
|
+
cancel: 'Keep draft',
|
|
657
657
|
});
|
|
658
658
|
if (!ok) return;
|
|
659
659
|
snapshot.value = JSON.stringify(draft); // don't double-prompt via the leave guard
|
|
@@ -480,8 +480,8 @@ export function provideApprovalsInbox(): ApprovalsInboxContext {
|
|
|
480
480
|
variant: 'destructive',
|
|
481
481
|
title: 'Reject expenses',
|
|
482
482
|
text: `Reject ${count} expenses? The submitters are notified.`,
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
ok: 'Reject',
|
|
484
|
+
cancel: 'Cancel',
|
|
485
485
|
});
|
|
486
486
|
if (!ok) return;
|
|
487
487
|
await api.expenses.rejectMany(bulkSelection(), reason);
|
|
@@ -913,10 +913,11 @@ const submitterLabel = computed(
|
|
|
913
913
|
<template #activator="{ props }">
|
|
914
914
|
<BbButton
|
|
915
915
|
v-bind="props"
|
|
916
|
-
aria-label="Approve highlighted expense"
|
|
917
916
|
:disabled="!ctx.highlightedExpense.value"
|
|
918
|
-
icon
|
|
917
|
+
icon-only
|
|
918
|
+
prepend:icon="lucide:check"
|
|
919
919
|
size="xs"
|
|
920
|
+
text="Approve highlighted expense"
|
|
920
921
|
variant="ghost"
|
|
921
922
|
@click="ctx.approveHighlighted"
|
|
922
923
|
/>
|
|
@@ -933,10 +934,11 @@ const submitterLabel = computed(
|
|
|
933
934
|
<template #activator="{ props }">
|
|
934
935
|
<BbButton
|
|
935
936
|
v-bind="props"
|
|
936
|
-
aria-label="Reject highlighted expense"
|
|
937
937
|
:disabled="!ctx.highlightedExpense.value"
|
|
938
|
-
icon
|
|
938
|
+
icon-only
|
|
939
|
+
prepend:icon="lucide:x"
|
|
939
940
|
size="xs"
|
|
941
|
+
text="Reject highlighted expense"
|
|
940
942
|
variant="ghost"
|
|
941
943
|
@click="ctx.rejectHighlighted"
|
|
942
944
|
/>
|
|
@@ -953,10 +955,11 @@ const submitterLabel = computed(
|
|
|
953
955
|
<template #activator="{ props }">
|
|
954
956
|
<BbButton
|
|
955
957
|
v-bind="props"
|
|
956
|
-
aria-label="Snooze highlighted expense"
|
|
957
958
|
:disabled="!ctx.highlightedExpense.value"
|
|
958
|
-
icon
|
|
959
|
+
icon-only
|
|
960
|
+
prepend:icon="lucide:clock"
|
|
959
961
|
size="xs"
|
|
962
|
+
text="Snooze highlighted expense"
|
|
960
963
|
variant="ghost"
|
|
961
964
|
@click="ctx.snoozeHighlighted"
|
|
962
965
|
/>
|
|
@@ -1018,10 +1021,11 @@ defineProps<{ expense: Expense }>();
|
|
|
1018
1021
|
<template #activator="{ props }">
|
|
1019
1022
|
<BbButton
|
|
1020
1023
|
v-bind="props"
|
|
1021
|
-
aria-label="Approve"
|
|
1022
1024
|
:disabled="resolved"
|
|
1023
|
-
icon
|
|
1025
|
+
icon-only
|
|
1026
|
+
prepend:icon="lucide:check"
|
|
1024
1027
|
size="xs"
|
|
1028
|
+
text="Approve"
|
|
1025
1029
|
variant="ghost"
|
|
1026
1030
|
@click="() => ctx.approve(expense)"
|
|
1027
1031
|
/>
|
|
@@ -1032,10 +1036,11 @@ defineProps<{ expense: Expense }>();
|
|
|
1032
1036
|
<BbButton
|
|
1033
1037
|
v-bb-dialog="{ id: 'reject-expense', data: expense }"
|
|
1034
1038
|
v-bind="props"
|
|
1035
|
-
aria-label="Reject"
|
|
1036
1039
|
:disabled="resolved"
|
|
1037
|
-
icon
|
|
1040
|
+
icon-only
|
|
1041
|
+
prepend:icon="lucide:x"
|
|
1038
1042
|
size="xs"
|
|
1043
|
+
text="Reject"
|
|
1039
1044
|
variant="ghost"
|
|
1040
1045
|
/>
|
|
1041
1046
|
</template>
|
|
@@ -1045,10 +1050,11 @@ defineProps<{ expense: Expense }>();
|
|
|
1045
1050
|
<BbButton
|
|
1046
1051
|
v-bb-dialog="{ id: 'snooze-expense', data: expense }"
|
|
1047
1052
|
v-bind="props"
|
|
1048
|
-
aria-label="Snooze"
|
|
1049
1053
|
:disabled="resolved"
|
|
1050
|
-
icon
|
|
1054
|
+
icon-only
|
|
1055
|
+
prepend:icon="lucide:clock"
|
|
1051
1056
|
size="xs"
|
|
1057
|
+
text="Snooze"
|
|
1052
1058
|
variant="ghost"
|
|
1053
1059
|
/>
|
|
1054
1060
|
</template>
|
|
@@ -1285,9 +1291,10 @@ const submit = () =>
|
|
|
1285
1291
|
Reject
|
|
1286
1292
|
</BbButton>
|
|
1287
1293
|
<BbButton
|
|
1288
|
-
|
|
1289
|
-
icon="lucide:x"
|
|
1294
|
+
icon-only
|
|
1295
|
+
prepend:icon="lucide:x"
|
|
1290
1296
|
size="sm"
|
|
1297
|
+
text="Clear selection"
|
|
1291
1298
|
variant="ghost"
|
|
1292
1299
|
@click="ctx.clearSelection"
|
|
1293
1300
|
/>
|
|
@@ -636,8 +636,8 @@ export function provideBacklogWorkspace(): BacklogWorkspaceContext {
|
|
|
636
636
|
variant: 'destructive',
|
|
637
637
|
title: 'Delete issue',
|
|
638
638
|
text: `Delete ${issue.ref} — “${issue.title}”? This cannot be undone.`,
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
ok: 'Delete',
|
|
640
|
+
cancel: 'Cancel',
|
|
641
641
|
});
|
|
642
642
|
if (!ok) return;
|
|
643
643
|
await api.issues.delete(issue.id);
|
|
@@ -1440,7 +1440,13 @@ const assignee = computed(() => ctx.valueOf(props.issue, 'assignee'));
|
|
|
1440
1440
|
]"
|
|
1441
1441
|
>
|
|
1442
1442
|
<template #activator="{ props }">
|
|
1443
|
-
<BbButton
|
|
1443
|
+
<BbButton
|
|
1444
|
+
v-bind="props"
|
|
1445
|
+
icon-only
|
|
1446
|
+
prepend:icon="lucide:ellipsis"
|
|
1447
|
+
size="sm"
|
|
1448
|
+
variant="ghost"
|
|
1449
|
+
>
|
|
1444
1450
|
Issue actions
|
|
1445
1451
|
</BbButton>
|
|
1446
1452
|
</template>
|
|
@@ -1531,9 +1537,10 @@ const ctx = useBacklogWorkspace();
|
|
|
1531
1537
|
|
|
1532
1538
|
<div class="floating-bottom-panel__right flex items-center gap-1">
|
|
1533
1539
|
<BbButton
|
|
1534
|
-
|
|
1535
|
-
icon="lucide:x"
|
|
1540
|
+
icon-only
|
|
1541
|
+
prepend:icon="lucide:x"
|
|
1536
1542
|
size="sm"
|
|
1543
|
+
text="Clear selection"
|
|
1537
1544
|
variant="ghost"
|
|
1538
1545
|
@click="ctx.clearSelection"
|
|
1539
1546
|
/>
|
|
@@ -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>
|
|
@@ -574,8 +574,8 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
|
|
|
574
574
|
variant: 'destructive',
|
|
575
575
|
title: 'Dismiss onboarding',
|
|
576
576
|
text: 'Hide the setup checklist for everyone in this workspace? Unfinished steps stay available under Settings → Setup.',
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
ok: 'Dismiss',
|
|
578
|
+
cancel: 'Keep it',
|
|
579
579
|
});
|
|
580
580
|
if (!ok) return;
|
|
581
581
|
await api.onboarding.dismiss();
|
|
@@ -1228,10 +1228,11 @@ const submit = () => {
|
|
|
1228
1228
|
>
|
|
1229
1229
|
</span>
|
|
1230
1230
|
<BbButton
|
|
1231
|
-
aria-label="Remove selected file"
|
|
1232
1231
|
:disabled="ctx.importState.uploading"
|
|
1233
|
-
icon
|
|
1232
|
+
icon-only
|
|
1233
|
+
prepend:icon="lucide:x"
|
|
1234
1234
|
size="sm"
|
|
1235
|
+
text="Remove selected file"
|
|
1235
1236
|
variant="ghost"
|
|
1236
1237
|
@click="() => (file = null)"
|
|
1237
1238
|
/>
|
|
@@ -535,15 +535,14 @@ export function useOwnershipAtlas(): OwnershipAtlasContext {
|
|
|
535
535
|
text: ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all',
|
|
536
536
|
delay: 400,
|
|
537
537
|
}"
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
"
|
|
541
|
-
:icon="
|
|
538
|
+
icon-only
|
|
539
|
+
:prepend:icon="
|
|
542
540
|
ctx.allExpandedOnPage.value
|
|
543
541
|
? 'lucide:chevrons-down-up'
|
|
544
542
|
: 'lucide:chevrons-up-down'
|
|
545
543
|
"
|
|
546
544
|
size="sm"
|
|
545
|
+
:text="ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'"
|
|
547
546
|
variant="ghost"
|
|
548
547
|
@click="ctx.toggleExpandAll"
|
|
549
548
|
/>
|
|
@@ -752,12 +751,15 @@ const { isMobile } = useMobile();
|
|
|
752
751
|
* control in the actions column. On a phone Team and Region leave (the BbTable
|
|
753
752
|
* guide's "hide columns, don't scroll"): four equal tracks at 390px would
|
|
754
753
|
* break names mid-word. */
|
|
755
|
-
const columns = computed
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
754
|
+
const columns = computed(
|
|
755
|
+
() =>
|
|
756
|
+
[
|
|
757
|
+
{ key: 'name', label: 'Owner' },
|
|
758
|
+
{ key: 'team', label: 'Team', hidden: isMobile.value },
|
|
759
|
+
{ key: 'region', label: 'Region', hidden: isMobile.value },
|
|
760
|
+
{ key: 'monthlyTotal', label: '$ / mo', align: 'right' },
|
|
761
|
+
] satisfies Array<BbTableColumn<Owner>>
|
|
762
|
+
);
|
|
761
763
|
|
|
762
764
|
const money = (value: number) =>
|
|
763
765
|
new Intl.NumberFormat('en-US', {
|
|
@@ -907,12 +909,25 @@ const { isMobile } = useMobile();
|
|
|
907
909
|
* columns that snap onto them hide too: a hidden parent column has no track
|
|
908
910
|
* for a child cell to land on.
|
|
909
911
|
*/
|
|
910
|
-
const columns = computed
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
912
|
+
const columns = computed(
|
|
913
|
+
() =>
|
|
914
|
+
[
|
|
915
|
+
{ key: 'name', label: 'Resource', snap: 'name' },
|
|
916
|
+
{ key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
|
|
917
|
+
{
|
|
918
|
+
key: 'status',
|
|
919
|
+
label: 'Status',
|
|
920
|
+
snap: 'region',
|
|
921
|
+
hidden: isMobile.value,
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
key: 'monthlyCost',
|
|
925
|
+
label: '$ / mo',
|
|
926
|
+
align: 'right',
|
|
927
|
+
snap: 'monthlyTotal',
|
|
928
|
+
},
|
|
929
|
+
] satisfies Array<BbTableColumn<Holding>>
|
|
930
|
+
);
|
|
916
931
|
|
|
917
932
|
const money = (value: number) =>
|
|
918
933
|
value === 0
|
|
@@ -1054,9 +1069,10 @@ const kindOptions = (
|
|
|
1054
1069
|
<div class="floating-bottom-panel__right flex items-center gap-1">
|
|
1055
1070
|
<BbButton
|
|
1056
1071
|
v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
|
|
1057
|
-
|
|
1058
|
-
icon="lucide:x"
|
|
1072
|
+
icon-only
|
|
1073
|
+
prepend:icon="lucide:x"
|
|
1059
1074
|
size="sm"
|
|
1075
|
+
text="Clear selection"
|
|
1060
1076
|
variant="ghost"
|
|
1061
1077
|
@click="ctx.clearSelection"
|
|
1062
1078
|
/>
|
|
@@ -610,8 +610,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
|
|
|
610
610
|
variant: 'destructive',
|
|
611
611
|
title: 'Delete invoice',
|
|
612
612
|
text: `Delete ${invoiceNumber.value}? This cannot be undone.`,
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
ok: 'Delete',
|
|
614
|
+
cancel: 'Cancel',
|
|
615
615
|
});
|
|
616
616
|
if (!ok) return;
|
|
617
617
|
await api.invoices.delete(invoiceId);
|
|
@@ -633,8 +633,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
|
|
|
633
633
|
variant: 'destructive',
|
|
634
634
|
title: 'Unsaved changes',
|
|
635
635
|
text: 'You have unsaved changes on this invoice. Leave without saving?',
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
ok: 'Discard changes',
|
|
637
|
+
cancel: 'Keep editing',
|
|
638
638
|
});
|
|
639
639
|
});
|
|
640
640
|
|
|
@@ -1066,7 +1066,8 @@ const currency = new Intl.NumberFormat('en-US', {
|
|
|
1066
1066
|
|
|
1067
1067
|
<div class="flex shrink-0 items-center gap-1">
|
|
1068
1068
|
<BbButton
|
|
1069
|
-
icon
|
|
1069
|
+
icon-only
|
|
1070
|
+
prepend:icon="lucide:copy"
|
|
1070
1071
|
size="sm"
|
|
1071
1072
|
variant="ghost"
|
|
1072
1073
|
@click="() => ctx.duplicateLineItem(line)"
|
|
@@ -1074,7 +1075,8 @@ const currency = new Intl.NumberFormat('en-US', {
|
|
|
1074
1075
|
Duplicate line
|
|
1075
1076
|
</BbButton>
|
|
1076
1077
|
<BbButton
|
|
1077
|
-
icon
|
|
1078
|
+
icon-only
|
|
1079
|
+
prepend:icon="lucide:trash-2"
|
|
1078
1080
|
size="sm"
|
|
1079
1081
|
variant="ghost"
|
|
1080
1082
|
@click="() => ctx.removeLineItem(line)"
|
|
@@ -1216,9 +1218,10 @@ const revert = () => {
|
|
|
1216
1218
|
doesn't commit/unmount before the click lands. -->
|
|
1217
1219
|
<template #prepend:outer="{ decrease }">
|
|
1218
1220
|
<BbButton
|
|
1219
|
-
|
|
1220
|
-
icon="lucide:minus"
|
|
1221
|
+
icon-only
|
|
1222
|
+
prepend:icon="lucide:minus"
|
|
1221
1223
|
size="xs"
|
|
1224
|
+
text="Decrease quantity"
|
|
1222
1225
|
variant="ghost"
|
|
1223
1226
|
@click="decrease"
|
|
1224
1227
|
@mousedown.prevent
|
|
@@ -1226,9 +1229,10 @@ const revert = () => {
|
|
|
1226
1229
|
</template>
|
|
1227
1230
|
<template #append:outer="{ increase }">
|
|
1228
1231
|
<BbButton
|
|
1229
|
-
|
|
1230
|
-
icon="lucide:plus"
|
|
1232
|
+
icon-only
|
|
1233
|
+
prepend:icon="lucide:plus"
|
|
1231
1234
|
size="xs"
|
|
1235
|
+
text="Increase quantity"
|
|
1232
1236
|
variant="ghost"
|
|
1233
1237
|
@click="increase"
|
|
1234
1238
|
@mousedown.prevent
|
|
@@ -476,8 +476,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
|
|
|
476
476
|
variant: 'destructive',
|
|
477
477
|
title: 'Delete invoice',
|
|
478
478
|
text: `Delete ${invoice.number}? This cannot be undone.`,
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
ok: 'Delete',
|
|
480
|
+
cancel: 'Cancel',
|
|
481
481
|
});
|
|
482
482
|
if (!ok) return;
|
|
483
483
|
await api.invoices.delete(invoice.id);
|
|
@@ -539,8 +539,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
|
|
|
539
539
|
variant: 'destructive',
|
|
540
540
|
title: 'Archive invoices',
|
|
541
541
|
text: `Archive ${count} invoices? They move out of every tab except Archived.`,
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
ok: 'Archive',
|
|
543
|
+
cancel: 'Cancel',
|
|
544
544
|
});
|
|
545
545
|
if (!ok) return;
|
|
546
546
|
await api.invoices.archiveMany(bulkSelection());
|
|
@@ -1410,7 +1410,13 @@ const pillLabel = computed(() =>
|
|
|
1410
1410
|
]"
|
|
1411
1411
|
>
|
|
1412
1412
|
<template #activator="{ props }">
|
|
1413
|
-
<BbButton
|
|
1413
|
+
<BbButton
|
|
1414
|
+
v-bind="props"
|
|
1415
|
+
icon-only
|
|
1416
|
+
prepend:icon="lucide:ellipsis"
|
|
1417
|
+
size="sm"
|
|
1418
|
+
variant="ghost"
|
|
1419
|
+
>
|
|
1414
1420
|
Invoice actions
|
|
1415
1421
|
</BbButton>
|
|
1416
1422
|
</template>
|
|
@@ -1460,9 +1466,10 @@ const ctx = useInvoicesWorkspace();
|
|
|
1460
1466
|
>Archive</BbButton
|
|
1461
1467
|
>
|
|
1462
1468
|
<BbButton
|
|
1463
|
-
|
|
1464
|
-
icon="lucide:x"
|
|
1469
|
+
icon-only
|
|
1470
|
+
prepend:icon="lucide:x"
|
|
1465
1471
|
size="sm"
|
|
1472
|
+
text="Clear selection"
|
|
1466
1473
|
variant="ghost"
|
|
1467
1474
|
@click="ctx.clearSelection"
|
|
1468
1475
|
/>
|
|
@@ -673,8 +673,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
673
673
|
text: invited
|
|
674
674
|
? `The link sent to ${member.email} stops working. You can invite them again later.`
|
|
675
675
|
: `${member.name} loses access to Fennel & Hart immediately. Invoices they created stay.`,
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
ok: invited ? 'Revoke invitation' : 'Remove member',
|
|
677
|
+
cancel: 'Cancel',
|
|
678
678
|
});
|
|
679
679
|
if (!ok) return;
|
|
680
680
|
await api.settings.removeMember(member.id);
|
|
@@ -692,8 +692,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
692
692
|
variant: 'destructive',
|
|
693
693
|
title: `Make ${member.name} the owner`,
|
|
694
694
|
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.`,
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
ok: 'Transfer ownership',
|
|
696
|
+
cancel: 'Cancel',
|
|
697
697
|
});
|
|
698
698
|
if (!ok) return;
|
|
699
699
|
members.value = await api.settings.transferOwnership(member.id);
|
|
@@ -729,8 +729,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
729
729
|
variant: 'destructive',
|
|
730
730
|
title: `Revoke ${apiKey.name}`,
|
|
731
731
|
text: `Requests signed with ${apiKey.preview} start failing immediately. This cannot be undone.`,
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
ok: 'Revoke key',
|
|
733
|
+
cancel: 'Cancel',
|
|
734
734
|
});
|
|
735
735
|
if (!ok) return;
|
|
736
736
|
await api.settings.revokeApiKey(apiKey.id);
|
|
@@ -786,8 +786,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
|
|
|
786
786
|
variant: 'destructive',
|
|
787
787
|
title: 'Discard unsaved changes',
|
|
788
788
|
text: 'Your profile has changes that are not saved yet. Leave anyway?',
|
|
789
|
-
|
|
790
|
-
|
|
789
|
+
ok: 'Discard changes',
|
|
790
|
+
cancel: 'Keep editing',
|
|
791
791
|
});
|
|
792
792
|
});
|
|
793
793
|
// Closing the tab or reloading: the browser's own prompt (it ignores copy).
|
|
@@ -1808,31 +1808,34 @@ const seatsLeft = computed(() =>
|
|
|
1808
1808
|
|
|
1809
1809
|
// Rank the columns: identity + role stay on a phone; activity folds into the
|
|
1810
1810
|
// identity cell (the BbTable guide's "hide columns, don't scroll").
|
|
1811
|
-
const columns = computed
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1811
|
+
const columns = computed(
|
|
1812
|
+
() =>
|
|
1813
|
+
[
|
|
1814
|
+
// On a phone the identity track may shrink (long emails ellipse) instead of
|
|
1815
|
+
// pushing the row menu off screen.
|
|
1816
|
+
{
|
|
1817
|
+
key: 'name',
|
|
1818
|
+
label: 'Member',
|
|
1819
|
+
skeleton: 'avatar-text',
|
|
1820
|
+
width: isMobile.value ? '1fr' : undefined,
|
|
1821
|
+
// The identity cell may shrink below its content, so a long email
|
|
1822
|
+
// ellipses instead of widening the track.
|
|
1823
|
+
tdClass: 'min-w-0 overflow-hidden',
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
key: 'role',
|
|
1827
|
+
label: 'Role',
|
|
1828
|
+
width: isMobile.value ? undefined : '10rem',
|
|
1829
|
+
skeleton: 'badge',
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
key: 'lastActiveAt',
|
|
1833
|
+
label: 'Last active',
|
|
1834
|
+
width: '9rem',
|
|
1835
|
+
hidden: isMobile.value,
|
|
1836
|
+
},
|
|
1837
|
+
] satisfies Array<BbTableColumn<WorkspaceMember>>
|
|
1838
|
+
);
|
|
1836
1839
|
|
|
1837
1840
|
const activity = (member: WorkspaceMember) =>
|
|
1838
1841
|
member.status === 'invited'
|
|
@@ -1915,11 +1918,12 @@ The row menu (v-bb-dropdown).
|
|
|
1915
1918
|
<!-- The row's "…" menu (resend, copy, transfer, remove). -->
|
|
1916
1919
|
<template>
|
|
1917
1920
|
<!-- A plain items menu on a trigger we already have: the directive, not a
|
|
1918
|
-
BbDropdown wrapper. The owner and you get no menu
|
|
1921
|
+
BbDropdown wrapper. The owner and you get no menu: with no rows the
|
|
1922
|
+
directive hides the button itself. -->
|
|
1919
1923
|
<BbButton
|
|
1920
|
-
v-if="items.length"
|
|
1921
1924
|
v-bb-dropdown:bottom-end="{ items, width: 220 }"
|
|
1922
|
-
icon
|
|
1925
|
+
icon-only
|
|
1926
|
+
prepend:icon="lucide:ellipsis"
|
|
1923
1927
|
size="sm"
|
|
1924
1928
|
variant="ghost"
|
|
1925
1929
|
>
|
|
@@ -2286,24 +2290,27 @@ const INVOICE_BADGE: Record<
|
|
|
2286
2290
|
refunded: { label: 'Refunded', variant: 'soft-gray' },
|
|
2287
2291
|
};
|
|
2288
2292
|
|
|
2289
|
-
const columns = computed
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2293
|
+
const columns = computed(
|
|
2294
|
+
() =>
|
|
2295
|
+
[
|
|
2296
|
+
{ key: 'number', label: 'Invoice' },
|
|
2297
|
+
{
|
|
2298
|
+
key: 'date',
|
|
2299
|
+
label: 'Date',
|
|
2300
|
+
formatter: (date) => formatDate(String(date)),
|
|
2301
|
+
hidden: isMobile.value,
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
key: 'amount',
|
|
2305
|
+
label: 'Amount',
|
|
2306
|
+
align: 'right',
|
|
2307
|
+
formatter: (amount) =>
|
|
2308
|
+
formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
|
|
2309
|
+
tdClass: 'tabular-nums',
|
|
2310
|
+
},
|
|
2311
|
+
{ key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
|
|
2312
|
+
] satisfies Array<BbTableColumn<BillingInvoice>>
|
|
2313
|
+
);
|
|
2307
2314
|
</script>
|
|
2308
2315
|
```
|
|
2309
2316
|
|
|
@@ -2441,12 +2448,15 @@ const SCOPE_BADGE: Record<
|
|
|
2441
2448
|
admin: { label: 'Full access', variant: 'soft-amber' },
|
|
2442
2449
|
};
|
|
2443
2450
|
|
|
2444
|
-
const columns = computed
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2451
|
+
const columns = computed(
|
|
2452
|
+
() =>
|
|
2453
|
+
[
|
|
2454
|
+
{ key: 'name', label: 'Key' },
|
|
2455
|
+
{ key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
|
|
2456
|
+
{ key: 'createdAt', label: 'Created', hidden: isMobile.value },
|
|
2457
|
+
{ key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
|
|
2458
|
+
] satisfies Array<BbTableColumn<ApiKey>>
|
|
2459
|
+
);
|
|
2450
2460
|
</script>
|
|
2451
2461
|
```
|
|
2452
2462
|
|