bitboss-ui 2.1.135 → 3.0.0-alpha.4
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/LICENSE +21 -0
- package/README.md +274 -24
- package/bin/bitboss-ui-mcp.mjs +662 -0
- package/bin/bitboss-ui.mjs +710 -0
- package/bin/bitboss-ui.node.test.mjs +113 -0
- package/dist/ai/BbAccordion.md +528 -113
- package/dist/ai/BbAlert.md +380 -197
- package/dist/ai/BbAsterisk.md +46 -0
- package/dist/ai/BbAvatar.md +458 -178
- package/dist/ai/BbBadge.md +697 -225
- package/dist/ai/BbBadgeButton.md +54 -0
- package/dist/ai/BbBaseButton.md +491 -0
- package/dist/ai/BbBaseCheckbox.md +49 -0
- package/dist/ai/BbBaseCheckboxGroup.md +64 -0
- package/dist/ai/BbBaseCheckboxIcon.md +176 -0
- package/dist/ai/BbBaseColorInput.md +64 -0
- package/dist/ai/BbBaseColorPalette.md +39 -0
- package/dist/ai/BbBaseDatePicker.md +42 -0
- package/dist/ai/BbBaseDatePickerInput.md +73 -0
- package/dist/ai/BbBaseInputContainer.md +48 -0
- package/dist/ai/BbBaseNumberInput.md +71 -0
- package/dist/ai/BbBaseRadio.md +46 -0
- package/dist/ai/BbBaseRadioGroup.md +64 -0
- package/dist/ai/BbBaseRadioIcon.md +191 -0
- package/dist/ai/BbBaseRating.md +51 -0
- package/dist/ai/BbBaseSelect.md +88 -0
- package/dist/ai/BbBaseSlider.md +56 -0
- package/dist/ai/BbBaseSwitch.md +49 -0
- package/dist/ai/BbBaseSwitchGroup.md +64 -0
- package/dist/ai/BbBaseSwitchIcon.md +186 -0
- package/dist/ai/BbBaseTag.md +68 -0
- package/dist/ai/BbBaseTextInput.md +75 -0
- package/dist/ai/BbBaseTextarea.md +62 -0
- package/dist/ai/BbBaseTimePickerInput.md +62 -0
- package/dist/ai/BbBreadcrumbs.md +553 -503
- package/dist/ai/BbButton.md +841 -636
- package/dist/ai/BbCheckbox.md +585 -254
- package/dist/ai/BbCheckboxGroup.md +573 -361
- package/dist/ai/BbCollapsible.md +425 -103
- package/dist/ai/BbColorInput.md +536 -323
- package/dist/ai/BbColorPalette.md +569 -330
- package/dist/ai/BbConfirm.md +659 -136
- package/dist/ai/BbConfirmPortal.md +28 -0
- package/dist/ai/BbDatePicker.md +244 -0
- package/dist/ai/BbDatePickerInput.md +720 -388
- package/dist/ai/BbDialog.md +778 -99
- package/dist/ai/BbDropdown.md +1072 -763
- package/dist/ai/BbDropdownButton.md +525 -614
- package/dist/ai/BbDropdownGroup.md +34 -0
- package/dist/ai/BbDropzone.md +1206 -436
- package/dist/ai/BbForm.md +239 -0
- package/dist/ai/BbIcon.md +382 -212
- package/dist/ai/BbIndicator.md +283 -0
- package/dist/ai/BbNumberInput.md +717 -355
- package/dist/ai/BbOffCanvas.md +897 -498
- package/dist/ai/BbPagination.md +489 -535
- package/dist/ai/BbPopover.md +591 -546
- package/dist/ai/BbProgress.md +462 -69
- package/dist/ai/BbRadio.md +352 -229
- package/dist/ai/BbRadioGroup.md +437 -353
- package/dist/ai/BbRating.md +372 -225
- package/dist/ai/BbSelect.md +1399 -536
- package/dist/ai/BbSelectPopover.md +1255 -1578
- package/dist/ai/BbSlider.md +500 -256
- package/dist/ai/BbSmoothHeight.md +485 -139
- package/dist/ai/BbSpinner.md +718 -131
- package/dist/ai/BbSwitch.md +573 -119
- package/dist/ai/BbSwitchGroup.md +521 -214
- package/dist/ai/BbTable.md +1996 -2365
- package/dist/ai/BbTabs.md +1147 -0
- package/dist/ai/BbTabsList.md +29 -0
- package/dist/ai/BbTabsPanes.md +27 -0
- package/dist/ai/BbTabsRoot.md +57 -0
- package/dist/ai/BbTag.md +416 -292
- package/dist/ai/BbTextInput.md +878 -333
- package/dist/ai/BbTextarea.md +850 -255
- package/dist/ai/BbTimePicker.md +231 -0
- package/dist/ai/BbTimePickerInput.md +200 -0
- package/dist/ai/BbToast.md +669 -196
- package/dist/ai/BbToastPortal.md +28 -0
- package/dist/ai/BbTooltip.md +453 -346
- package/dist/ai/BbTree.md +993 -234
- package/dist/ai/ChipsBox.md +27 -199
- package/dist/ai/ClearableButton.md +21 -55
- package/dist/ai/CommaBox.md +25 -200
- package/dist/ai/CommonInputWrapper.md +42 -0
- package/dist/ai/CommonPopover.md +30 -510
- package/dist/ai/ErrorIcon.md +19 -56
- package/dist/ai/FlatListBox.md +35 -379
- package/dist/ai/GroupedListBox.md +37 -535
- package/dist/ai/GuidesComponent.md +21 -0
- package/dist/ai/ListBox.md +38 -231
- package/dist/ai/OptionsContainer.md +34 -253
- package/dist/ai/WarningIcon.md +21 -0
- package/dist/ai/components.json +15897 -0
- package/dist/ai/composables/useBbConfig.md +80 -0
- package/dist/ai/composables/useBbFormContext.md +110 -0
- package/dist/ai/composables/useBbTableContext.md +167 -0
- package/dist/ai/composables/useBbTabsContext.md +118 -0
- package/dist/ai/composables/useBroadcastChannelInstance.md +97 -0
- package/dist/ai/composables/useConfirm.md +313 -0
- package/dist/ai/composables/useCountdown.md +86 -0
- package/dist/ai/composables/useId.md +60 -0
- package/dist/ai/composables/useMobile.md +85 -0
- package/dist/ai/composables/useToast.md +238 -0
- package/dist/ai/guides/agent-contract.md +165 -0
- package/dist/ai/guides/ai-router.md +113 -0
- package/dist/ai/guides/app-layout.md +318 -0
- package/dist/ai/guides/coherence-playbook.md +136 -0
- package/dist/ai/guides/component-picker.md +236 -0
- package/dist/ai/guides/design-language.md +478 -0
- package/dist/ai/guides/design-tokens.md +450 -0
- package/dist/ai/guides/fetch-items-playbook.md +161 -0
- package/dist/ai/guides/floating-bottom-panel.md +130 -0
- package/dist/ai/guides/icons-policy.md +257 -0
- package/dist/ai/guides/inertia-helpers.md +1443 -0
- package/dist/ai/guides/inline-edit-playbook.md +267 -0
- package/dist/ai/guides/installation-and-plugin-setup.md +440 -0
- package/dist/ai/guides/migration/components/bb-alert.md +37 -0
- package/dist/ai/guides/migration/components/bb-avatar.md +24 -0
- package/dist/ai/guides/migration/components/bb-badge.md +110 -0
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +26 -0
- package/dist/ai/guides/migration/components/bb-button.md +55 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +54 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +45 -0
- package/dist/ai/guides/migration/components/bb-chip.md +35 -0
- package/dist/ai/guides/migration/components/bb-collapsible.md +26 -0
- package/dist/ai/guides/migration/components/bb-color-input.md +23 -0
- package/dist/ai/guides/migration/components/bb-color-palette.md +31 -0
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +84 -0
- package/dist/ai/guides/migration/components/bb-dialog.md +46 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +31 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +36 -0
- package/dist/ai/guides/migration/components/bb-dropzone.md +27 -0
- package/dist/ai/guides/migration/components/bb-icon.md +27 -0
- package/dist/ai/guides/migration/components/bb-offcanvas.md +63 -0
- package/dist/ai/guides/migration/components/bb-pagination.md +24 -0
- package/dist/ai/guides/migration/components/bb-popover.md +52 -0
- package/dist/ai/guides/migration/components/bb-rating.md +24 -0
- package/dist/ai/guides/migration/components/bb-select-popover.md +59 -0
- package/dist/ai/guides/migration/components/bb-select.md +69 -0
- package/dist/ai/guides/migration/components/bb-slider.md +25 -0
- package/dist/ai/guides/migration/components/bb-smooth-height.md +45 -0
- package/dist/ai/guides/migration/components/bb-spinner.md +23 -0
- package/dist/ai/guides/migration/components/bb-table.md +66 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +47 -0
- package/dist/ai/guides/migration/components/bb-tag.md +29 -0
- package/dist/ai/guides/migration/components/bb-text-input.md +37 -0
- package/dist/ai/guides/migration/components/bb-toast.md +47 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +34 -0
- package/dist/ai/guides/migration/components/bb-tree.md +77 -0
- package/dist/ai/guides/migration/components/use-confirm.md +46 -0
- package/dist/ai/guides/migration/v2-to-v3.md +649 -0
- package/dist/ai/guides/options-items-playbook.md +222 -0
- package/dist/ai/guides/page-shell.md +113 -0
- package/dist/ai/guides/validated-forms.md +177 -0
- package/dist/ai/index.md +158 -32
- package/dist/ai/recipes/inertia/approvals-inbox.md +1635 -0
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1765 -0
- package/dist/ai/recipes/inertia/layout-scaffold.md +385 -0
- package/dist/ai/recipes/inertia/onboarding.md +1791 -0
- package/dist/ai/recipes/inertia/ownership-atlas.md +1327 -0
- package/dist/ai/recipes/inertia/record-form.md +1489 -0
- package/dist/ai/recipes/inertia/records-workspace.md +1416 -0
- package/dist/ai/recipes/inertia/upload-center.md +2003 -0
- package/dist/ai/recipes/inertia/wizard-form.md +1500 -0
- package/dist/ai/recipes/nuxt/approvals-inbox.md +1578 -0
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1703 -0
- package/dist/ai/recipes/nuxt/layout-scaffold.md +385 -0
- package/dist/ai/recipes/nuxt/onboarding.md +1724 -0
- package/dist/ai/recipes/nuxt/record-form.md +1502 -0
- package/dist/ai/recipes/nuxt/records-workspace.md +1329 -0
- package/dist/ai/recipes/nuxt/upload-center.md +1886 -0
- package/dist/ai/recipes/nuxt/wizard-form.md +1509 -0
- package/dist/ai/recipes/vue/approvals-inbox.md +1496 -0
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1594 -0
- package/dist/ai/recipes/vue/layout-scaffold.md +385 -0
- package/dist/ai/recipes/vue/onboarding.md +1679 -0
- package/dist/ai/recipes/vue/record-form.md +1586 -0
- package/dist/ai/recipes/vue/records-workspace.md +1245 -0
- package/dist/ai/recipes/vue/upload-center.md +1845 -0
- package/dist/ai/recipes/vue/wizard-form.md +1441 -0
- package/dist/ai/source/BbAccordion.md +123 -0
- package/dist/ai/source/BbAlert.md +401 -0
- package/dist/ai/source/BbAsterisk.md +32 -0
- package/dist/ai/source/BbAvatar.md +258 -0
- package/dist/ai/source/BbBadge.md +560 -0
- package/dist/ai/source/BbBadgeButton.md +490 -0
- package/dist/ai/source/BbBaseButton.md +682 -0
- package/dist/ai/source/BbBaseCheckbox.md +461 -0
- package/dist/ai/source/BbBaseCheckboxGroup.md +554 -0
- package/dist/ai/source/BbBaseCheckboxIcon.md +201 -0
- package/dist/ai/source/BbBaseColorInput.md +416 -0
- package/dist/ai/source/BbBaseColorPalette.md +934 -0
- package/dist/ai/source/BbBaseDatePicker.md +1001 -0
- package/dist/ai/source/BbBaseDatePickerInput.md +1785 -0
- package/dist/ai/source/BbBaseInputContainer.md +1210 -0
- package/dist/ai/source/BbBaseNumberInput.md +617 -0
- package/dist/ai/source/BbBaseRadio.md +377 -0
- package/dist/ai/source/BbBaseRadioGroup.md +533 -0
- package/dist/ai/source/BbBaseRadioIcon.md +153 -0
- package/dist/ai/source/BbBaseRating.md +573 -0
- package/dist/ai/source/BbBaseSelect.md +898 -0
- package/dist/ai/source/BbBaseSlider.md +1085 -0
- package/dist/ai/source/BbBaseSwitch.md +246 -0
- package/dist/ai/source/BbBaseSwitchGroup.md +302 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +206 -0
- package/dist/ai/source/BbBaseTag.md +694 -0
- package/dist/ai/source/BbBaseTextInput.md +511 -0
- package/dist/ai/source/BbBaseTextarea.md +480 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +1031 -0
- package/dist/ai/source/BbBreadcrumbs.md +815 -0
- package/dist/ai/source/BbButton.md +1006 -0
- package/dist/ai/source/BbCheckbox.md +326 -0
- package/dist/ai/source/BbCheckboxGroup.md +419 -0
- package/dist/ai/source/BbCollapsible.md +137 -0
- package/dist/ai/source/BbColorInput.md +322 -0
- package/dist/ai/source/BbColorPalette.md +371 -0
- package/dist/ai/source/BbConfirm.md +193 -0
- package/dist/ai/source/BbConfirmPortal.md +74 -0
- package/dist/ai/source/BbDatePicker.md +729 -0
- package/dist/ai/source/BbDatePickerInput.md +525 -0
- package/dist/ai/source/BbDialog.md +818 -0
- package/dist/ai/source/BbDropdown.md +2387 -0
- package/dist/ai/source/BbDropdownButton.md +315 -0
- package/dist/ai/source/BbDropdownGroup.md +1259 -0
- package/dist/ai/source/BbDropzone.md +864 -0
- package/dist/ai/source/BbForm.md +100 -0
- package/dist/ai/source/BbIcon.md +214 -0
- package/dist/ai/source/BbIndicator.md +298 -0
- package/dist/ai/source/BbNumberInput.md +374 -0
- package/dist/ai/source/BbOffCanvas.md +1266 -0
- package/dist/ai/source/BbPagination.md +835 -0
- package/dist/ai/source/BbPopover.md +860 -0
- package/dist/ai/source/BbProgress.md +140 -0
- package/dist/ai/source/BbRadio.md +303 -0
- package/dist/ai/source/BbRadioGroup.md +420 -0
- package/dist/ai/source/BbRating.md +369 -0
- package/dist/ai/source/BbSelect.md +688 -0
- package/dist/ai/source/BbSelectPopover.md +2234 -0
- package/dist/ai/source/BbSlider.md +378 -0
- package/dist/ai/source/BbSmoothHeight.md +265 -0
- package/dist/ai/source/BbSpinner.md +127 -0
- package/dist/ai/source/BbSwitch.md +175 -0
- package/dist/ai/source/BbSwitchGroup.md +240 -0
- package/dist/ai/source/BbTable.md +3433 -0
- package/dist/ai/source/BbTabs.md +403 -0
- package/dist/ai/source/BbTabsList.md +578 -0
- package/dist/ai/source/BbTabsPanes.md +368 -0
- package/dist/ai/source/BbTabsRoot.md +372 -0
- package/dist/ai/source/BbTag.md +390 -0
- package/dist/ai/source/BbTextInput.md +352 -0
- package/dist/ai/source/BbTextarea.md +337 -0
- package/dist/ai/source/BbTimePicker.md +595 -0
- package/dist/ai/source/BbTimePickerInput.md +376 -0
- package/dist/ai/source/BbToast.md +525 -0
- package/dist/ai/source/BbToastPortal.md +482 -0
- package/dist/ai/source/BbTooltip.md +522 -0
- package/dist/ai/source/BbTree.md +323 -0
- package/dist/ai/source/ChipsBox.md +201 -0
- package/dist/ai/source/ClearableButton.md +70 -0
- package/dist/ai/source/CommaBox.md +202 -0
- package/dist/ai/source/CommonInputWrapper.md +554 -0
- package/dist/ai/source/CommonPopover.md +616 -0
- package/dist/ai/source/ErrorIcon.md +43 -0
- package/dist/ai/source/FlatListBox.md +396 -0
- package/dist/ai/source/GroupedListBox.md +540 -0
- package/dist/ai/source/GuidesComponent.md +383 -0
- package/dist/ai/source/ListBox.md +238 -0
- package/dist/ai/source/OptionsContainer.md +191 -0
- package/dist/ai/source/WarningIcon.md +47 -0
- package/dist/alert-variants.d.ts +19 -0
- package/dist/assets/css/reset.css_inline.js +4 -0
- package/dist/assets/svgs/alert.svg_raw.js +4 -0
- package/dist/assets/svgs/calendar.svg_raw.js +4 -0
- package/dist/assets/svgs/check_stroke.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_down.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_right.svg_raw.js +4 -0
- package/dist/assets/svgs/clear.svg_raw.js +4 -0
- package/dist/assets/svgs/clock.svg_raw.js +4 -0
- package/dist/assets/svgs/error.svg_raw.js +4 -0
- package/dist/assets/svgs/search.svg_raw.js +4 -0
- package/dist/assets/svgs/sort.svg_raw.js +4 -0
- package/dist/assets/svgs/spinner.svg_raw.js +4 -0
- package/dist/assets/svgs/user.svg_raw.js +4 -0
- package/dist/badge-variants.d.ts +19 -0
- package/dist/button-variants.d.ts +21 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +9 -3
- package/dist/components/BbAccordion/BbAccordion.vue.js +6 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/BbAccordion/types.d.ts +12 -8
- package/dist/components/BbAlert/BbAlert.vue.d.ts +12 -3
- package/dist/components/BbAlert/BbAlert.vue.js +6 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbAlert/types.d.ts +56 -12
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.js +6 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -0
- package/dist/components/BbAvatar/BbAvatar.vue.js +6 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/BbAvatar/types.d.ts +6 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +3 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +5 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +15 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.js +5 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/BbBadge/BbBadge.vue.d.ts +8 -1
- package/dist/components/BbBadge/BbBadge.vue.js +6 -0
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +12 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.js +5 -0
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/BbBadge/badgeButtonContext.d.ts +27 -0
- package/dist/components/BbBadge/badgeButtonContext.js +5 -0
- package/dist/components/BbBadge/types.d.ts +61 -16
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue.js +6 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +171 -0
- package/dist/components/BbBaseButton/RouterComponent.vue.js +5 -0
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/BbBaseButton/types.d.ts +191 -0
- package/dist/components/BbBaseButton/types.js +33 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +40 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +6 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/components/BbBaseCheckbox/types.d.ts +224 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +6 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +257 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +6 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +47 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +42 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +6 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbBaseColorInput/types.d.ts +210 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +13 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.js +6 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +395 -0
- package/dist/components/BbBaseColorPalette/types.d.ts +40 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +6 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +300 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +44 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +310 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/BbBaseDatePicker/typeahead.d.ts +112 -0
- package/dist/components/BbBaseDatePicker/typeahead.js +37 -0
- package/dist/components/BbBaseDatePicker/types.d.ts +97 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.d.ts +58 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +11 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +716 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +204 -0
- package/dist/components/BbBaseDatePickerInput/types.d.ts +311 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +17 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +6 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +191 -0
- package/dist/components/BbBaseInputContainer/types.d.ts +197 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +52 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +6 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +215 -0
- package/dist/components/BbBaseNumberInput/types.d.ts +211 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +33 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.js +6 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/BbBaseRadio/types.d.ts +179 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.js +6 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbBaseRadioGroup/types.d.ts +223 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +6 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +41 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +38 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +6 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/components/BbBaseRating/types.d.ts +168 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +19 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +6 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +307 -0
- package/dist/components/BbBaseSelect/types.d.ts +297 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +35 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +6 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +324 -0
- package/dist/components/BbBaseSlider/types.d.ts +200 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +35 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +6 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbBaseSwitch/types.d.ts +10 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +6 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseSwitchGroup/types.d.ts +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +6 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +48 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +50 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +6 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/components/BbBaseTag/types.d.ts +160 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +45 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +6 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +200 -0
- package/dist/components/BbBaseTextInput/types.d.ts +209 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +39 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +6 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/components/BbBaseTextarea/types.d.ts +170 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +27 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +6 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +522 -0
- package/dist/components/BbBaseTimePickerInput/types.d.ts +151 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +6 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +224 -0
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +47 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +37 -22
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -5
- package/dist/components/BbButton/BbButton.vue.js +6 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/components/BbButton/types.d.ts +48 -47
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -3
- package/dist/components/BbCheckbox/BbCheckbox.vue.js +6 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbCheckbox/types.d.ts +31 -10
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -13
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +6 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +51 -23
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.js +6 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/BbCollapsible/types.d.ts +13 -8
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +10 -1
- package/dist/components/BbColorInput/BbColorInput.vue.js +6 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbColorInput/types.d.ts +44 -11
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +5 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue.js +5 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbColorPalette/types.d.ts +71 -52
- package/dist/components/BbConfirm/BbConfirm.vue.js +6 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +5 -6
- package/dist/components/BbConfirm/BbConfirmPortal.vue.js +5 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +37 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.js +6 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +319 -0
- package/dist/components/BbDatePicker/types.d.ts +159 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +6 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/components/BbDatePickerInput/types.d.ts +134 -16
- package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -6
- package/dist/components/BbDialog/BbDialog.vue.js +6 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +214 -0
- package/dist/components/BbDialog/types.d.ts +146 -1
- package/dist/components/BbDialog/useDialogStack.d.ts +5 -0
- package/dist/components/BbDialog/useDialogStack.js +20 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +14 -7
- package/dist/components/BbDropdown/BbDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +561 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +44 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.js +5 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +31 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +470 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +16 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +18 -0
- package/dist/components/BbDropdown/normalizeGroups.js +46 -0
- package/dist/components/BbDropdown/types.d.ts +468 -46
- package/dist/components/BbDropdown/types.js +4 -0
- package/dist/components/BbDropdown/useDropdownContext.d.ts +89 -0
- package/dist/components/BbDropdown/useDropdownContext.js +9 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +108 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.js +5 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -52
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -4
- package/dist/components/BbDropzone/BbDropzone.vue.js +6 -0
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/components/BbDropzone/types.d.ts +77 -8
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
- package/dist/components/BbIcon/BbIcon.vue.js +6 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbIcon/types.d.ts +6 -19
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +14 -0
- package/dist/components/BbIndicator/BbIndicator.vue.js +6 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/BbIndicator/types.d.ts +49 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -6
- package/dist/components/BbNumberInput/BbNumberInput.vue.js +6 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +194 -0
- package/dist/components/BbNumberInput/types.d.ts +40 -4
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +16 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +6 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +284 -0
- package/dist/components/BbOffCanvas/types.d.ts +71 -39
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +25 -0
- package/dist/components/BbOffCanvas/useOffCanvasStack.js +68 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +9 -4
- package/dist/components/BbPagination/BbPagination.vue.js +6 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbPagination/paginationFit.d.ts +38 -0
- package/dist/components/BbPagination/paginationFit.js +13 -0
- package/dist/components/BbPagination/types.d.ts +51 -16
- package/dist/components/BbPopover/BbPopover.vue.d.ts +16 -15
- package/dist/components/BbPopover/BbPopover.vue.js +6 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/components/BbPopover/escapeStack.d.ts +6 -0
- package/dist/components/BbPopover/escapeStack.js +10 -0
- package/dist/components/BbPopover/types.d.ts +90 -31
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -0
- package/dist/components/BbProgress/BbProgress.vue.js +6 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbProgress/types.d.ts +15 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +5 -3
- package/dist/components/BbRadio/BbRadio.vue.js +6 -0
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/components/BbRadio/types.d.ts +32 -9
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -14
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +6 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/components/BbRadioGroup/types.d.ts +48 -22
- package/dist/components/BbRating/BbRating.vue.d.ts +4 -1
- package/dist/components/BbRating/BbRating.vue.js +6 -0
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/components/BbRating/types.d.ts +44 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -11
- package/dist/components/BbSelect/BbSelect.vue.js +6 -0
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/components/BbSelect/types.d.ts +112 -59
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +1 -10
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +6 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +639 -0
- package/dist/components/BbSelectPopover/types.d.ts +197 -105
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -6
- package/dist/components/BbSlider/BbSlider.vue.js +6 -0
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +166 -0
- package/dist/components/BbSlider/types.d.ts +44 -13
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +6 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/BbSmoothHeight/types.d.ts +17 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.js +6 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbSpinner/types.d.ts +10 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +5 -3
- package/dist/components/BbSwitch/BbSwitch.vue.js +6 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/components/BbSwitch/types.d.ts +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +4 -14
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +6 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbSwitchGroup/types.d.ts +3 -22
- package/dist/components/BbTable/BbTable.vue.d.ts +58 -31
- package/dist/components/BbTable/BbTable.vue.js +6 -0
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +900 -0
- package/dist/components/BbTable/types.d.ts +213 -37
- package/dist/components/BbTable/utils.d.ts +9 -1
- package/dist/components/BbTable/utils.js +53 -0
- package/dist/components/BbTabs/BbTabs.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabs.vue.js +6 -0
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +19 -0
- package/dist/components/BbTabs/BbTabsList.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +16 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.js +5 -0
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTabs/types.d.ts +264 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +19 -6
- package/dist/components/BbTag/BbTag.vue.js +6 -0
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/BbTag/types.d.ts +55 -17
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -1
- package/dist/components/BbTextInput/BbTextInput.vue.js +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/components/BbTextInput/types.d.ts +31 -4
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -1
- package/dist/components/BbTextarea/BbTextarea.vue.js +6 -0
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbTextarea/types.d.ts +33 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +33 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.js +6 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbTimePicker/types.d.ts +133 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +25 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +6 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/components/BbTimePickerInput/types.d.ts +174 -0
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -3
- package/dist/components/BbToast/BbToast.vue.js +6 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +17 -8
- package/dist/components/BbToast/BbToastMessage.vue.js +5 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +30 -0
- package/dist/components/BbToast/BbToastPortal.vue.js +5 -0
- package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +8 -0
- package/dist/components/BbToast/BbToastRegion.vue.js +5 -0
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/BbToast/types.d.ts +69 -5
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +10 -3
- package/dist/components/BbTooltip/BbTooltip.vue.js +6 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/BbTooltip/types.d.ts +69 -11
- package/dist/components/BbTree/BbTree.vue.d.ts +28 -13
- package/dist/components/BbTree/BbTree.vue.js +6 -0
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +19 -0
- package/dist/components/BbTree/BbTreeLevel.vue.js +5 -0
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/BbTree/context.d.ts +17 -0
- package/dist/components/BbTree/context.js +4 -0
- package/dist/components/BbTree/types.d.ts +94 -41
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
- package/dist/components/ChipsBox/ChipsBox.vue.js +5 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/ChipsBox/types.d.ts +12 -5
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
- package/dist/components/ClearableButton/ClearableButton.vue.js +6 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/ClearableButton/types.d.ts +7 -1
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +5 -0
- package/dist/components/CloseIcon/CloseButton.vue.js +7 -0
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/components/CloseIcon/types.d.ts +2 -0
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
- package/dist/components/CommaBox/CommaBox.vue.js +6 -0
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/CommaBox/types.d.ts +6 -7
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +19 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +6 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/components/CommonInputWrapper/types.d.ts +96 -0
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -3
- package/dist/components/CommonPopover/CommonPopover.vue.js +6 -0
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/CommonPopover/types.d.ts +65 -16
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue.js +6 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -5
- package/dist/components/FlatListBox/FlatListBox.vue.js +5 -0
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -5
- package/dist/components/GroupedListBox/GroupedListBox.vue.js +5 -0
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/components/ListBox/ListBox.vue.d.ts +3 -6
- package/dist/components/ListBox/ListBox.vue.js +5 -0
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue.js +5 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/OptionsContainer/types.d.ts +14 -24
- package/dist/components/Transitions/ScaleFade.vue.d.ts +2 -2
- package/dist/components/Transitions/ScaleFade.vue.js +5 -0
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/Transitions/Slide.vue.d.ts +15 -0
- package/dist/components/Transitions/Slide.vue.js +7 -0
- package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +5 -0
- package/dist/components/WarningIcon/WarningIcon.vue.js +6 -0
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/WarningIcon/types.d.ts +3 -0
- package/dist/composables/__testResets.d.ts +1 -0
- package/dist/composables/useActiveInactiveState.d.ts +4 -0
- package/dist/composables/useActiveInactiveState.js +21 -0
- package/dist/composables/useBaseOptions.d.ts +3 -3
- package/dist/composables/useBaseOptions.js +31 -0
- package/dist/composables/useBbConfig.d.ts +8 -37
- package/dist/composables/useBbConfig.js +5 -0
- package/dist/composables/useBbDropdownContext.d.ts +89 -0
- package/dist/composables/useBbDropdownContext.js +46 -0
- package/dist/composables/useBbFormContext.d.ts +90 -0
- package/dist/composables/useBbFormContext.js +69 -0
- package/dist/composables/useBbTableContext.d.ts +195 -0
- package/dist/composables/useBbTableContext.js +208 -0
- package/dist/composables/useBbTabsContext.d.ts +111 -0
- package/dist/composables/useBbTabsContext.js +225 -0
- package/dist/composables/useBreakpoint.d.ts +13 -0
- package/dist/composables/useBreakpoint.js +39 -0
- package/dist/composables/useBroadcastChannelInstance.d.ts +1 -3
- package/dist/composables/useBroadcastChannelInstance.js +39 -0
- package/dist/composables/useCancelableFunction.js +37 -0
- package/dist/composables/useClosingInert.d.ts +28 -0
- package/dist/composables/useClosingInert.js +23 -0
- package/dist/composables/useCoherence.js +16 -0
- package/dist/composables/useConfirm.d.ts +278 -68
- package/dist/composables/useConfirm.js +130 -0
- package/dist/composables/useCountdown.js +42 -0
- package/dist/composables/useHashedWatcher.d.ts +17 -0
- package/dist/composables/useHashedWatcher.js +14 -0
- package/dist/composables/useId.d.ts +3 -2
- package/dist/composables/useIndexById.js +16 -0
- package/dist/composables/useInertiaPage.d.ts +10 -0
- package/dist/composables/useInertiaPage.js +8 -0
- package/dist/composables/useItemText.js +17 -0
- package/dist/composables/useItemValue.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +1 -1
- package/dist/composables/useItemsGetter.js +30 -0
- package/dist/composables/useListboxFocus.js +66 -0
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/composables/useLocale.js +11 -0
- package/dist/composables/useLogger.d.ts +1 -1
- package/dist/composables/useLogger.js +10 -0
- package/dist/composables/useMinimalQueue.d.ts +1 -1
- package/dist/composables/useMobile.js +7 -0
- package/dist/composables/useOnFalsy.d.ts +2 -0
- package/dist/composables/useOnFalsy.js +9 -0
- package/dist/composables/useOnTruthy.d.ts +7 -0
- package/dist/composables/useOnTruthy.js +9 -0
- package/dist/composables/usePrefill.d.ts +2 -1
- package/dist/composables/usePrefill.js +24 -0
- package/dist/composables/useQuery.d.ts +15 -3
- package/dist/composables/useQuery.js +42 -0
- package/dist/composables/useRoute.js +11 -0
- package/dist/composables/useRouter.js +8 -0
- package/dist/composables/useSafeArea.d.ts +51 -0
- package/dist/composables/useSafeArea.js +16 -0
- package/dist/composables/useSegmentedFields.d.ts +104 -0
- package/dist/composables/useSegmentedFields.js +159 -0
- package/dist/composables/useTableWidthContext.d.ts +5 -0
- package/dist/composables/useTableWidthContext.js +42 -0
- package/dist/composables/useToast.d.ts +40 -70
- package/dist/composables/useToast.js +58 -0
- package/dist/composables/useTopLayer.d.ts +9 -0
- package/dist/composables/useTopLayer.js +7 -0
- package/dist/composables/useUntil.js +13 -0
- package/dist/composables/useViewportWidth.d.ts +17 -0
- package/dist/composables/useViewportWidth.js +6 -0
- package/dist/confirm-variants.d.ts +17 -0
- package/dist/deprecation/ai-deprecations.json.d.ts +784 -0
- package/dist/deprecation/ai-deprecations.json.js +4 -0
- package/dist/deprecation/removedProps.d.ts +3 -0
- package/dist/deprecation/removedProps.js +13 -0
- package/dist/directives/bbColor.d.ts +65 -0
- package/dist/directives/bbColor.js +24 -0
- package/dist/directives/bbDate.d.ts +66 -0
- package/dist/directives/bbDate.js +24 -0
- package/dist/directives/bbDropdown.d.ts +15 -11
- package/dist/directives/bbDropdown.js +23 -0
- package/dist/directives/bbTime.d.ts +64 -0
- package/dist/directives/bbTime.js +24 -0
- package/dist/directives/bbTooltip.d.ts +16 -11
- package/dist/directives/bbTooltip.js +24 -0
- package/dist/directives/createPopoverDirective.js +54 -0
- package/dist/dropdown-item-variants.d.ts +17 -0
- package/dist/i18n/index.d.ts +51 -3
- package/dist/i18n/index.js +27 -0
- package/dist/i18n/locales/cs.json +115 -0
- package/dist/i18n/locales/da.json +115 -0
- package/dist/i18n/locales/de.json +115 -0
- package/dist/i18n/locales/el.json +115 -0
- package/dist/i18n/locales/en.json +115 -0
- package/dist/i18n/locales/es.json +115 -0
- package/dist/i18n/locales/fi.json +115 -0
- package/dist/i18n/locales/fr.json +115 -0
- package/dist/i18n/locales/hu.json +115 -0
- package/dist/i18n/locales/it.json +115 -0
- package/dist/i18n/locales/ja.json +115 -0
- package/dist/i18n/locales/ko.json +115 -0
- package/dist/i18n/locales/nb.json +115 -0
- package/dist/i18n/locales/nl.json +115 -0
- package/dist/i18n/locales/pl.json +115 -0
- package/dist/i18n/locales/pt.json +115 -0
- package/dist/i18n/locales/ro.json +115 -0
- package/dist/i18n/locales/ru.json +115 -0
- package/dist/i18n/locales/sv.json +115 -0
- package/dist/i18n/locales/tr.json +115 -0
- package/dist/i18n/locales/uk.json +115 -0
- package/dist/i18n/locales/zh-cn.json +115 -0
- package/dist/icons-whitelist.d.ts +8 -0
- package/dist/index.d.ts +96 -79
- package/dist/index.js +76 -82
- package/dist/indicator-variants.d.ts +20 -0
- package/dist/llms-full.txt +79703 -0
- package/dist/llms-medium.txt +1514 -0
- package/dist/llms.txt +105 -0
- package/dist/locale-blueprint.json +141 -0
- package/dist/locale-registry.d.ts +37 -0
- package/dist/nuxt-module.d.ts +3 -0
- package/dist/nuxt.js +19 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +22 -0
- package/dist/reset.css +1 -0
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +2 -0
- package/dist/runtime/nuxt-plugin.js +24 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +0 -0
- package/dist/toast-variants.d.ts +20 -0
- package/dist/tooltip-variants.d.ts +17 -0
- package/dist/types/ActionButton.d.ts +32 -0
- package/dist/types/AlertVariant.d.ts +16 -0
- package/dist/types/BadgeVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.d.ts +17 -0
- package/dist/types/Classes.d.ts +1 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +68 -277
- package/dist/types/Config.d.ts +84 -0
- package/dist/types/ConfirmVariant.d.ts +15 -0
- package/dist/types/DropdownItemVariant.d.ts +18 -0
- package/dist/types/Icon.d.ts +5 -7
- package/dist/types/IndicatorVariant.d.ts +16 -0
- package/dist/types/InputDirection.d.ts +15 -0
- package/dist/types/ItemAccessor.d.ts +21 -0
- package/dist/types/Placement.d.ts +6 -0
- package/dist/types/ResponsiveSize.d.ts +20 -0
- package/dist/types/SizeScale.d.ts +8 -0
- package/dist/types/ToastVariant.d.ts +17 -0
- package/dist/types/TooltipVariant.d.ts +18 -0
- package/dist/utilities/functions/bytesToUnit.d.ts +2 -0
- package/dist/utilities/functions/bytesToUnit.js +18 -0
- package/dist/utilities/functions/clampPrecision.js +10 -0
- package/dist/utilities/functions/convertDateValue.d.ts +23 -10
- package/dist/utilities/functions/convertDateValue.js +12 -0
- package/dist/utilities/functions/deburr.js +5 -0
- package/dist/utilities/functions/empty.js +5 -0
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/hash.js +5 -0
- package/dist/utilities/functions/isDateDisabled.d.ts +1 -0
- package/dist/utilities/functions/isDateDisabled.js +20 -0
- package/dist/utilities/functions/isEqual.js +5 -0
- package/dist/utilities/functions/isNotEmpty.js +5 -0
- package/dist/utilities/functions/matchAnyKey.d.ts +1 -1
- package/dist/utilities/functions/matchAnyKey.js +15 -0
- package/dist/utilities/functions/parseSize.d.ts +1 -1
- package/dist/utilities/functions/parseSize.js +15 -0
- package/dist/utilities/functions/percentage.js +11 -0
- package/dist/utilities/functions/pipe.d.ts +1 -1
- package/dist/utilities/functions/reject.d.ts +25 -0
- package/dist/utilities/functions/reject.js +28 -0
- package/dist/utilities/functions/resolveEnumProp.d.ts +19 -0
- package/dist/utilities/functions/resolveEnumProp.js +5 -0
- package/dist/utilities/functions/slotKey.d.ts +13 -0
- package/dist/utilities/functions/slotKey.js +4 -0
- package/dist/utilities/functions/sort.d.ts +2 -2
- package/dist/utilities/functions/sort.js +19 -0
- package/dist/utilities/functions/throttle.js +5 -0
- package/dist/utilities/functions/waitFor.d.ts +9 -2
- package/dist/utilities/functions/waitFor.js +14 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +11 -0
- package/dist/utilities/functions/warnRemovedAttrs.js +20 -0
- package/dist/utilities/functions/when.js +5 -0
- package/dist/utilities/misc/iconsInjectionKey.d.ts +15 -0
- package/dist/utilities/misc/iconsInjectionKey.js +4 -0
- package/dist/utilities/misc/transitions.d.ts +5 -0
- package/dist/utilities/misc/transitions.js +8 -0
- package/dist/utils/injectLibraryStyles.d.ts +6 -0
- package/dist/utils/injectLibraryStyles.js +38 -0
- package/dist/validated/BbCheckbox.vue.d.ts +29 -0
- package/dist/validated/BbCheckbox.vue.js +5 -0
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbCheckboxGroup.vue.d.ts +34 -0
- package/dist/validated/BbCheckboxGroup.vue.js +5 -0
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbColorInput.vue.d.ts +36 -0
- package/dist/validated/BbColorInput.vue.js +5 -0
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/validated/BbDatePickerInput.vue.d.ts +41 -0
- package/dist/validated/BbDatePickerInput.vue.js +5 -0
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/validated/BbDropzone.vue.d.ts +24 -0
- package/dist/validated/BbDropzone.vue.js +5 -0
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/validated/BbForm.vue.d.ts +28 -0
- package/dist/validated/BbForm.vue.js +5 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/validated/BbNumberInput.vue.d.ts +36 -0
- package/dist/validated/BbNumberInput.vue.js +5 -0
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbRadioGroup.vue.d.ts +34 -0
- package/dist/validated/BbRadioGroup.vue.js +5 -0
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/validated/BbRating.vue.d.ts +30 -0
- package/dist/validated/BbRating.vue.js +5 -0
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/validated/BbSelect.vue.d.ts +46 -0
- package/dist/validated/BbSelect.vue.js +5 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/validated/BbSlider.vue.d.ts +36 -0
- package/dist/validated/BbSlider.vue.js +5 -0
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/validated/BbSwitch.vue.d.ts +29 -0
- package/dist/validated/BbSwitch.vue.js +5 -0
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbSwitchGroup.vue.d.ts +34 -0
- package/dist/validated/BbSwitchGroup.vue.js +5 -0
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbTag.vue.d.ts +36 -0
- package/dist/validated/BbTag.vue.js +5 -0
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextInput.vue.d.ts +36 -0
- package/dist/validated/BbTextInput.vue.js +5 -0
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextarea.vue.d.ts +36 -0
- package/dist/validated/BbTextarea.vue.js +5 -0
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/validated/BbTimePickerInput.vue.d.ts +37 -0
- package/dist/validated/BbTimePickerInput.vue.js +5 -0
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/validated/index.d.ts +29 -0
- package/dist/validated/useValidatedField.d.ts +93 -0
- package/dist/validated/useValidatedField.js +51 -0
- package/dist/validated.js +21 -0
- package/dist/vite-plugin.d.ts +261 -0
- package/dist/vite.js +603 -0
- package/llms.txt +107 -0
- package/package.json +181 -60
- package/scripts/lib/__fixtures__/validated-manifest.json +65 -0
- package/scripts/lib/ensure-manifest.mjs +39 -0
- package/scripts/lib/eslint-plugin-autofix.node.test.mjs +109 -0
- package/scripts/lib/eslint-plugin-recommended.node.test.mjs +87 -0
- package/scripts/lib/eslint-plugin-slots.node.test.mjs +271 -0
- package/scripts/lib/eslint-plugin.mjs +702 -0
- package/scripts/lib/eslint-plugin.node.test.mjs +193 -0
- package/scripts/lib/html-attributes.mjs +191 -0
- package/scripts/lib/mcp-config.mjs +126 -0
- package/scripts/lib/migrate-fix.mjs +115 -0
- package/scripts/lib/validate-bb-markup.mjs +488 -0
- package/dist/ai/BaseButton.md +0 -449
- package/dist/ai/BaseCheckbox.md +0 -512
- package/dist/ai/BaseCheckboxGroup.md +0 -597
- package/dist/ai/BaseColorInput.md +0 -461
- package/dist/ai/BaseDatePicker.md +0 -739
- package/dist/ai/BaseDatePickerInput.md +0 -1517
- package/dist/ai/BaseDialog.md +0 -610
- package/dist/ai/BaseInputContainer.md +0 -570
- package/dist/ai/BaseNumberInput.md +0 -509
- package/dist/ai/BaseRadio.md +0 -405
- package/dist/ai/BaseRadioGroup.md +0 -535
- package/dist/ai/BaseRating.md +0 -489
- package/dist/ai/BaseSelect.md +0 -1742
- package/dist/ai/BaseSlider.md +0 -871
- package/dist/ai/BaseSwitch.md +0 -322
- package/dist/ai/BaseSwitchGroup.md +0 -298
- package/dist/ai/BaseTag.md +0 -623
- package/dist/ai/BaseTextInput.md +0 -392
- package/dist/ai/BaseTextarea.md +0 -398
- package/dist/ai/BbChip.md +0 -147
- package/dist/ai/BbIntersection.md +0 -120
- package/dist/ai/BbRatio.md +0 -61
- package/dist/ai/BbRows.md +0 -307
- package/dist/ai/BbTab.md +0 -950
- package/dist/ai/CommonInputInnerContainer.md +0 -414
- package/dist/ai/CommonInputOuterContainer.md +0 -55
- package/dist/components/BaseButton/BaseButton.vue.d.ts +0 -14
- package/dist/components/BaseButton/types.d.ts +0 -159
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -39
- package/dist/components/BaseCheckbox/types.d.ts +0 -213
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -30
- package/dist/components/BaseCheckboxGroup/types.d.ts +0 -282
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -35
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +0 -13
- package/dist/components/BaseColorInput/types.d.ts +0 -233
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +0 -15
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +0 -58
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/types.d.ts +0 -100
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -26
- package/dist/components/BaseDatePickerInput/types.d.ts +0 -206
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -37
- package/dist/components/BaseDialog/types.d.ts +0 -180
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -18
- package/dist/components/BaseInputContainer/types.d.ts +0 -126
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -46
- package/dist/components/BaseNumberInput/types.d.ts +0 -191
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +0 -31
- package/dist/components/BaseRadio/types.d.ts +0 -173
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -30
- package/dist/components/BaseRadioGroup/types.d.ts +0 -240
- package/dist/components/BaseRating/BaseRating.vue.d.ts +0 -35
- package/dist/components/BaseRating/types.d.ts +0 -144
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -28
- package/dist/components/BaseSelect/types.d.ts +0 -470
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +0 -38
- package/dist/components/BaseSlider/types.d.ts +0 -201
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +0 -34
- package/dist/components/BaseSwitch/types.d.ts +0 -25
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -30
- package/dist/components/BaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BaseTag/BaseTag.vue.d.ts +0 -37
- package/dist/components/BaseTag/types.d.ts +0 -136
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +0 -33
- package/dist/components/BaseTextInput/types.d.ts +0 -166
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -31
- package/dist/components/BaseTextarea/types.d.ts +0 -151
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -17
- package/dist/components/BbChip/types.d.ts +0 -23
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +0 -23
- package/dist/components/BbIntersection/types.d.ts +0 -36
- package/dist/components/BbRatio/BbRatio.vue.d.ts +0 -14
- package/dist/components/BbRatio/types.d.ts +0 -15
- package/dist/components/BbRows/BbRows.vue.d.ts +0 -62
- package/dist/components/BbRows/types.d.ts +0 -21
- package/dist/components/BbTab/BbTab.vue.d.ts +0 -27
- package/dist/components/BbTab/types.d.ts +0 -186
- package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +0 -15
- package/dist/components/CommonInputInnerContainer/types.d.ts +0 -47
- package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +0 -11
- package/dist/components/CommonInputOuterContainer/types.d.ts +0 -16
- package/dist/composables/useModalsState.d.ts +0 -5
- package/dist/composables/useQueue.d.ts +0 -58
- package/dist/composables/useWizard.d.ts +0 -85
- package/dist/i18n/en.d.ts +0 -67
- package/dist/i18n/it.d.ts +0 -67
- package/dist/index.css +0 -2
- package/dist/index100.js +0 -6
- package/dist/index101.js +0 -300
- package/dist/index102.js +0 -16
- package/dist/index103.js +0 -16
- package/dist/index104.js +0 -27
- package/dist/index109.js +0 -19
- package/dist/index11.js +0 -42
- package/dist/index110.js +0 -12
- package/dist/index111.js +0 -19
- package/dist/index112.js +0 -25
- package/dist/index114.js +0 -7
- package/dist/index115.js +0 -241
- package/dist/index116.js +0 -5
- package/dist/index117.js +0 -42
- package/dist/index118.js +0 -5
- package/dist/index119.js +0 -53
- package/dist/index120.js +0 -5
- package/dist/index121.js +0 -32
- package/dist/index122.js +0 -5
- package/dist/index124.js +0 -52
- package/dist/index125.js +0 -5
- package/dist/index126.js +0 -223
- package/dist/index128.js +0 -6
- package/dist/index129.js +0 -162
- package/dist/index13.js +0 -92
- package/dist/index130.js +0 -25
- package/dist/index131.js +0 -51
- package/dist/index132.js +0 -5
- package/dist/index133.js +0 -607
- package/dist/index135.js +0 -6
- package/dist/index136.js +0 -14
- package/dist/index137.js +0 -153
- package/dist/index139.js +0 -6
- package/dist/index14.js +0 -306
- package/dist/index140.js +0 -224
- package/dist/index141.js +0 -5
- package/dist/index143.js +0 -128
- package/dist/index145.js +0 -6
- package/dist/index146.js +0 -8
- package/dist/index147.js +0 -182
- package/dist/index149.js +0 -6
- package/dist/index15.js +0 -10
- package/dist/index151.js +0 -4
- package/dist/index152.js +0 -95
- package/dist/index154.js +0 -6
- package/dist/index155.js +0 -168
- package/dist/index157.js +0 -6
- package/dist/index158.js +0 -145
- package/dist/index16.js +0 -59
- package/dist/index160.js +0 -6
- package/dist/index161.js +0 -53
- package/dist/index163.js +0 -6
- package/dist/index164.js +0 -16
- package/dist/index166.js +0 -35
- package/dist/index168.js +0 -6
- package/dist/index169.js +0 -89
- package/dist/index171.js +0 -6
- package/dist/index172.js +0 -82
- package/dist/index174.js +0 -6
- package/dist/index175.js +0 -38
- package/dist/index176.js +0 -461
- package/dist/index177.js +0 -28
- package/dist/index178.js +0 -66
- package/dist/index18.js +0 -35
- package/dist/index180.js +0 -162
- package/dist/index181.js +0 -5
- package/dist/index182.js +0 -217
- package/dist/index183.js +0 -5
- package/dist/index184.js +0 -112
- package/dist/index185.js +0 -5
- package/dist/index186.js +0 -459
- package/dist/index188.js +0 -6
- package/dist/index19.js +0 -4
- package/dist/index192.js +0 -268
- package/dist/index194.js +0 -6
- package/dist/index195.js +0 -124
- package/dist/index197.js +0 -6
- package/dist/index198.js +0 -174
- package/dist/index2.js +0 -20
- package/dist/index20.js +0 -9
- package/dist/index200.js +0 -6
- package/dist/index201.js +0 -224
- package/dist/index203.js +0 -6
- package/dist/index204.js +0 -135
- package/dist/index206.js +0 -6
- package/dist/index207.js +0 -5
- package/dist/index208.js +0 -170
- package/dist/index21.js +0 -35
- package/dist/index210.js +0 -6
- package/dist/index211.js +0 -37
- package/dist/index213.js +0 -6
- package/dist/index214.js +0 -63
- package/dist/index216.js +0 -6
- package/dist/index217.js +0 -74
- package/dist/index219.js +0 -6
- package/dist/index22.js +0 -6
- package/dist/index220.js +0 -65
- package/dist/index222.js +0 -6
- package/dist/index223.js +0 -67
- package/dist/index225.js +0 -6
- package/dist/index226.js +0 -41
- package/dist/index228.js +0 -6
- package/dist/index229.js +0 -10
- package/dist/index23.js +0 -7
- package/dist/index230.js +0 -22
- package/dist/index232.js +0 -8
- package/dist/index233.js +0 -297
- package/dist/index235.js +0 -6
- package/dist/index236.js +0 -47
- package/dist/index237.js +0 -165
- package/dist/index239.js +0 -6
- package/dist/index24.js +0 -9
- package/dist/index241.js +0 -159
- package/dist/index243.js +0 -6
- package/dist/index244.js +0 -134
- package/dist/index246.js +0 -6
- package/dist/index247.js +0 -167
- package/dist/index249.js +0 -6
- package/dist/index25.js +0 -24
- package/dist/index250.js +0 -147
- package/dist/index252.js +0 -6
- package/dist/index253.js +0 -35
- package/dist/index255.js +0 -6
- package/dist/index256.js +0 -65
- package/dist/index258.js +0 -6
- package/dist/index259.js +0 -19
- package/dist/index260.js +0 -5
- package/dist/index261.js +0 -160
- package/dist/index263.js +0 -6
- package/dist/index264.js +0 -60
- package/dist/index266.js +0 -6
- package/dist/index267.js +0 -134
- package/dist/index269.js +0 -6
- package/dist/index27.js +0 -4
- package/dist/index271.js +0 -206
- package/dist/index273.js +0 -6
- package/dist/index274.js +0 -85
- package/dist/index275.js +0 -5
- package/dist/index276.js +0 -55
- package/dist/index277.js +0 -5
- package/dist/index278.js +0 -164
- package/dist/index28.js +0 -8
- package/dist/index280.js +0 -6
- package/dist/index281.js +0 -145
- package/dist/index283.js +0 -6
- package/dist/index284.js +0 -11
- package/dist/index285.js +0 -200
- package/dist/index287.js +0 -6
- package/dist/index288.js +0 -241
- package/dist/index29.js +0 -7
- package/dist/index290.js +0 -6
- package/dist/index291.js +0 -21
- package/dist/index293.js +0 -6
- package/dist/index294.js +0 -125
- package/dist/index296.js +0 -6
- package/dist/index297.js +0 -161
- package/dist/index299.js +0 -6
- package/dist/index30.js +0 -118
- package/dist/index300.js +0 -127
- package/dist/index302.js +0 -6
- package/dist/index303.js +0 -20
- package/dist/index305.js +0 -6
- package/dist/index306.js +0 -116
- package/dist/index307.js +0 -5
- package/dist/index308.js +0 -507
- package/dist/index31.js +0 -10
- package/dist/index310.js +0 -6
- package/dist/index311.js +0 -196
- package/dist/index313.js +0 -6
- package/dist/index314.js +0 -142
- package/dist/index316.js +0 -6
- package/dist/index317.js +0 -134
- package/dist/index319.js +0 -6
- package/dist/index32.js +0 -28
- package/dist/index320.js +0 -162
- package/dist/index322.js +0 -6
- package/dist/index323.js +0 -319
- package/dist/index325.js +0 -6
- package/dist/index326.js +0 -40
- package/dist/index327.js +0 -43
- package/dist/index328.js +0 -665
- package/dist/index33.js +0 -5
- package/dist/index330.js +0 -6
- package/dist/index331.js +0 -155
- package/dist/index333.js +0 -6
- package/dist/index334.js +0 -142
- package/dist/index336.js +0 -6
- package/dist/index337.js +0 -155
- package/dist/index339.js +0 -6
- package/dist/index34.js +0 -112
- package/dist/index340.js +0 -58
- package/dist/index341.js +0 -5
- package/dist/index342.js +0 -20
- package/dist/index344.js +0 -6
- package/dist/index345.js +0 -142
- package/dist/index347.js +0 -6
- package/dist/index349.js +0 -109
- package/dist/index351.js +0 -6
- package/dist/index352.js +0 -55
- package/dist/index353.js +0 -24
- package/dist/index354.js +0 -23
- package/dist/index355.js +0 -839
- package/dist/index356.js +0 -474
- package/dist/index357.js +0 -52
- package/dist/index358.js +0 -7
- package/dist/index36.js +0 -6
- package/dist/index38.js +0 -63
- package/dist/index39.js +0 -63
- package/dist/index40.js +0 -9
- package/dist/index42.js +0 -8
- package/dist/index43.js +0 -179
- package/dist/index44.js +0 -21
- package/dist/index46.js +0 -385
- package/dist/index48.js +0 -6
- package/dist/index49.js +0 -33
- package/dist/index5.js +0 -34
- package/dist/index50.js +0 -12
- package/dist/index51.js +0 -8
- package/dist/index52.js +0 -106
- package/dist/index53.js +0 -330
- package/dist/index54.js +0 -97
- package/dist/index55.js +0 -328
- package/dist/index56.js +0 -28
- package/dist/index57.js +0 -102
- package/dist/index58.js +0 -157
- package/dist/index6.js +0 -38
- package/dist/index60.js +0 -6
- package/dist/index61.js +0 -131
- package/dist/index62.js +0 -5
- package/dist/index65.js +0 -35
- package/dist/index66.js +0 -26
- package/dist/index68.js +0 -6
- package/dist/index69.js +0 -54
- package/dist/index7.js +0 -58
- package/dist/index71.js +0 -6
- package/dist/index72.js +0 -14
- package/dist/index74.js +0 -6
- package/dist/index75.js +0 -159
- package/dist/index77.js +0 -6
- package/dist/index78.js +0 -4
- package/dist/index79.js +0 -4
- package/dist/index80.js +0 -54
- package/dist/index81.js +0 -5
- package/dist/index82.js +0 -5
- package/dist/index83.js +0 -141
- package/dist/index85.js +0 -6
- package/dist/index86.js +0 -65
- package/dist/index88.js +0 -6
- package/dist/index89.js +0 -30
- package/dist/index9.js +0 -11
- package/dist/index90.js +0 -19
- package/dist/index91.js +0 -17
- package/dist/index92.js +0 -9
- package/dist/index93.js +0 -34
- package/dist/index95.js +0 -16
- package/dist/index96.js +0 -10
- package/dist/index97.js +0 -18
- package/dist/index98.js +0 -189
- package/dist/types/VoidHtmlElements.d.ts +0 -1
- package/dist/utilities/functions/add.d.ts +0 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +0 -6
- package/dist/utilities/functions/capitalize.d.ts +0 -4
- package/dist/utilities/functions/cloneDeep.d.ts +0 -1
- package/dist/utilities/functions/debounce.d.ts +0 -1
- package/dist/utilities/functions/drop.d.ts +0 -1
- package/dist/utilities/functions/exceedsPrecision.d.ts +0 -1
- package/dist/utilities/functions/findRight.d.ts +0 -4
- package/dist/utilities/functions/findRightIndex.d.ts +0 -4
- package/dist/utilities/functions/flow.d.ts +0 -1
- package/dist/utilities/functions/getHueFromRGB.d.ts +0 -9
- package/dist/utilities/functions/groupBy.d.ts +0 -6
- package/dist/utilities/functions/gt.d.ts +0 -7
- package/dist/utilities/functions/hexToRGB.d.ts +0 -7
- package/dist/utilities/functions/hslToHex.d.ts +0 -1
- package/dist/utilities/functions/includes.d.ts +0 -1
- package/dist/utilities/functions/initial.d.ts +0 -1
- package/dist/utilities/functions/isCssColor.d.ts +0 -5
- package/dist/utilities/functions/lt.d.ts +0 -7
- package/dist/utilities/functions/makeUrl.d.ts +0 -1
- package/dist/utilities/functions/mapKeys.d.ts +0 -5
- package/dist/utilities/functions/mapValues.d.ts +0 -1
- package/dist/utilities/functions/matchesPropertyInsensitive.d.ts +0 -1
- package/dist/utilities/functions/max.d.ts +0 -2
- package/dist/utilities/functions/mean.d.ts +0 -4
- package/dist/utilities/functions/merge.d.ts +0 -11
- package/dist/utilities/functions/millisecondsTo.d.ts +0 -1
- package/dist/utilities/functions/negate.d.ts +0 -4
- package/dist/utilities/functions/normalizeItemGroups.d.ts +0 -13
- package/dist/utilities/functions/omit.d.ts +0 -2
- package/dist/utilities/functions/overEvery.d.ts +0 -4
- package/dist/utilities/functions/pick.d.ts +0 -1
- package/dist/utilities/functions/replace.d.ts +0 -1
- package/dist/utilities/functions/replaceInTree.d.ts +0 -4
- package/dist/utilities/functions/retry.d.ts +0 -5
- package/dist/utilities/functions/roundToTheNearest.d.ts +0 -8
- package/dist/utilities/functions/set.d.ts +0 -15
- package/dist/utilities/functions/stub.d.ts +0 -6
- package/dist/utilities/functions/transposePercent.d.ts +0 -9
- package/dist/utilities/functions/tryTo.d.ts +0 -2
- package/dist/utilities/functions/uniqBy.d.ts +0 -1
- /package/dist/{index64.js → _virtual/_plugin-vue_export-helper.js} +0 -0
- /package/dist/components/{BaseButton → BbBaseButton}/RouterComponent.vue.d.ts +0 -0
- /package/dist/components/{BaseDatePicker/BaseDatePicker.vue.d.ts → BbBaseDatePicker/BbBaseDatePicker.vue.d.ts} +0 -0
- /package/dist/{index165.js → composables/useArray.js} +0 -0
- /package/dist/{index17.js → composables/useFrameworkDetection.js} +0 -0
- /package/dist/{index12.js → composables/useId.js} +0 -0
- /package/dist/{index107.js → utilities/functions/chunk.js} +0 -0
- /package/dist/{index8.js → utilities/functions/clamp.js} +0 -0
- /package/dist/{index150.js → utilities/functions/curry.js} +0 -0
- /package/dist/{index45.js → utilities/functions/extractDomContainer.js} +0 -0
- /package/dist/{index270.js → utilities/functions/findInTree.js} +0 -0
- /package/dist/{index348.js → utilities/functions/flattenTree.js} +0 -0
- /package/dist/{index41.js → utilities/functions/get.js} +0 -0
- /package/dist/{index189.js → utilities/functions/head.js} +0 -0
- /package/dist/{index108.js → utilities/functions/identity.js} +0 -0
- /package/dist/{index179.js → utilities/functions/indexBy.js} +0 -0
- /package/dist/{index37.js → utilities/functions/isHex.js} +0 -0
- /package/dist/{index94.js → utilities/functions/isNil.js} +0 -0
- /package/dist/{index26.js → utilities/functions/isNotNil.js} +0 -0
- /package/dist/{index105.js → utilities/functions/last.js} +0 -0
- /package/dist/{index142.js → utilities/functions/noop.js} +0 -0
- /package/dist/{index231.js → utilities/functions/parseWidthString.js} +0 -0
- /package/dist/{index240.js → utilities/functions/pickBy.js} +0 -0
- /package/dist/{index123.js → utilities/functions/range.js} +0 -0
- /package/dist/{index190.js → utilities/functions/snapToStep.js} +0 -0
- /package/dist/{index191.js → utilities/functions/transpose.js} +0 -0
- /package/dist/{index106.js → utilities/functions/validateDateFormat.js} +0 -0
- /package/dist/{index10.js → utilities/functions/wait.js} +0 -0
|
@@ -0,0 +1,1765 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Inline-Edit Workspace (Inertia)
|
|
3
|
+
summary: Linear-style sprint backlog for Laravel + Inertia where every cell autosaves — optimistic per-field overlay with rollback retired where the fresh page prop lands, commit-on-blur text cells, spinner-in-the-chevron badge pickers, URL-driven filters and tabs, bulk bar and peek workbench, all through one coopting page context.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Recipe: Inline-Edit Workspace (Inertia)
|
|
7
|
+
|
|
8
|
+
The flagship of pattern **§6.8 — autosave cells**, adapted for
|
|
9
|
+
**Laravel + Inertia**: the same Linear-grade sprint backlog where **every
|
|
10
|
+
cell persists itself and the page has no Save button anywhere** — but the
|
|
11
|
+
list arrives as a page prop (a standard Laravel paginator), filters and tab
|
|
12
|
+
live in the URL through [`useQueryObject`](../../guides/inertia-helpers.md),
|
|
13
|
+
selection and paging come from the keyed
|
|
14
|
+
[`useTableContext`](../../guides/inertia-helpers.md), and every save is a
|
|
15
|
+
promise-wrapped partial `router.visit`. Anatomy, components, the cells, the
|
|
16
|
+
overlay, copy and data are identical to the Vue recipe; only the
|
|
17
|
+
data/URL/mutation layer changes.
|
|
18
|
+
|
|
19
|
+
Sibling recipes: [Vue](../vue/inline-edit-workspace.md) ·
|
|
20
|
+
[Nuxt](../nuxt/inline-edit-workspace.md).
|
|
21
|
+
|
|
22
|
+
Domain: **Sprint 24** of a product team — fourteen issues (`BB-227` …
|
|
23
|
+
`BB-241`), four statuses, three priorities, a six-member team (Sofia Reyes,
|
|
24
|
+
Jonah Weiss, Priya Natarajan, Tom Okafor, Elif Demir, Marco Bianchi).
|
|
25
|
+
Deliberately distinct from the invoices/members/expenses of the sibling
|
|
26
|
+
recipes.
|
|
27
|
+
|
|
28
|
+
## Prerequisites
|
|
29
|
+
|
|
30
|
+
- **[Layout Scaffold](./layout-scaffold.md) — build it first.** This recipe
|
|
31
|
+
imports `PageShell`, `usePageShellContext` and `FloatingBottomPanel` from your own app.
|
|
32
|
+
They are not package exports; the scaffold recipe is their source. Copy
|
|
33
|
+
those files before anything below, and do not hand-roll replacements —
|
|
34
|
+
the peek stack, the close semantics and the sidebar's out-of-flow
|
|
35
|
+
behaviour are all load-bearing here.
|
|
36
|
+
Components: [BbTable](../../BbTable.md) ·
|
|
37
|
+
[BbSelectPopover](../../BbSelectPopover.md) (§ One popover per table row is
|
|
38
|
+
load-bearing here) · [BbBadge](../../BbBadge.md) (the `loading` /
|
|
39
|
+
`append:icon` interplay).
|
|
40
|
+
|
|
41
|
+
Guides: [Inline Edit Playbook](../../guides/inline-edit-playbook.md) (who owns
|
|
42
|
+
the edit — this page is the autosave answer) ·
|
|
43
|
+
[Inertia Helpers](../../guides/inertia-helpers.md) (the app-side toolkit this
|
|
44
|
+
recipe assumes) ·
|
|
45
|
+
[Design language](../../guides/design-language.md) (§ Using color, § Badges
|
|
46
|
+
label state) · [Page Shell](../../guides/page-shell.md) ·
|
|
47
|
+
[Floating Bottom Panel](../../guides/floating-bottom-panel.md).
|
|
48
|
+
|
|
49
|
+
From the [Inertia Helpers](../../guides/inertia-helpers.md) toolkit:
|
|
50
|
+
`useTableContext`, `useQueryObject`, `useQuery`, `useProp`,
|
|
51
|
+
`useResourceContext`. `<BbConfirm />` and `<BbToast />` mounted once in the
|
|
52
|
+
`createInertiaApp` render root — never in a page.
|
|
53
|
+
|
|
54
|
+
Controller: `Inertia::render('Sprints/Backlog', ['issues' => …, 'tabCounts'
|
|
55
|
+
=> …, 'team' => …])` — `issues` is a standard Laravel paginator
|
|
56
|
+
(`PaginatedResponse<Issue>`), already filtered/paged server-side from the
|
|
57
|
+
query string; `tabCounts` a plain `{ backlog, current, done }` map; `team`
|
|
58
|
+
the six members (small enough to always send). Mutation routes are plain
|
|
59
|
+
Laravel routes that redirect back — `PATCH /issues/:id` (any single editable
|
|
60
|
+
field), `POST /issues/:id/duplicate`, `POST /issues/:id/next-sprint`,
|
|
61
|
+
`DELETE /issues/:id`, and the bulk `PATCH|POST /issues/bulk/*` trio — plus
|
|
62
|
+
one small JSON GET endpoint (`GET /issues/:id/peek`) backing the sidebar
|
|
63
|
+
peek so opening it is never a page visit.
|
|
64
|
+
|
|
65
|
+
## Key ideas
|
|
66
|
+
|
|
67
|
+
- **No Save button anywhere.** Every cell commits itself through one context
|
|
68
|
+
action, `persistField(issue, key, value)` — optimistic write, single-field
|
|
69
|
+
PATCH visit + partial reload; failure rolls back just that field and
|
|
70
|
+
toasts. Nothing on the page is ever
|
|
71
|
+
"changed but unsaved", so there is no dirty ring and no dirty-gated
|
|
72
|
+
button — the only transient state is _saving_, and the spinner carries it.
|
|
73
|
+
- **The optimistic overlay is page state, not cell state.** `pending` maps
|
|
74
|
+
`issue.id → { field: value }` on **rung 3** of the state ladder: the grid
|
|
75
|
+
cells, the peek workbench _and the retirement watcher_ all read it. This is
|
|
76
|
+
the deliberate contrast with the one-shot §6.1 status cell (see
|
|
77
|
+
`records-workspace`), whose `saving` flag is a rung-1 local ref — in an
|
|
78
|
+
autosave grid the code that ingests fresh rows must also know what is in
|
|
79
|
+
flight, so the flag cannot live inside a cell.
|
|
80
|
+
- **The overlay is retired where the fresh prop lands, never when a save
|
|
81
|
+
resolves** — and only for fields the fresh rows actually confirm. In
|
|
82
|
+
Inertia there is no fetch you own: rows arrive as the `issues` page prop
|
|
83
|
+
(from your PATCH's reload, a tab visit, a filter visit, a poll), so
|
|
84
|
+
retirement is one watcher on the ingested rows, covering every arrival
|
|
85
|
+
path. Retiring on save-resolve instead makes a _second_ in-flight field of
|
|
86
|
+
the same row flash new → old → new, because the save's response does not
|
|
87
|
+
carry that field's value yet.
|
|
88
|
+
- **The overlay itself is deliberately platform-agnostic.** `pending`,
|
|
89
|
+
`failed`, `valueOf`, `isSaving` and `persistField`'s rollback are the Vue
|
|
90
|
+
recipe's code unchanged; only where a save goes and where fresh rows
|
|
91
|
+
arrive are Inertia's.
|
|
92
|
+
- **Typed inputs commit on `@change` (blur/Enter), never `v-model`.** A
|
|
93
|
+
`v-model` autosave is one request per keystroke. Pickers commit on pick —
|
|
94
|
+
the click already _is_ the commit.
|
|
95
|
+
- **One coopting page context.** `provideBacklogWorkspace()` joins the
|
|
96
|
+
page-shell stack and the keyed `useTableContext('issues')` once, owns
|
|
97
|
+
filters/tab/overlay, and exposes complete actions. Eleven components share
|
|
98
|
+
everything through one `useBacklogWorkspace()` call — zero prop drilling.
|
|
99
|
+
- **The table has no client-side fetch at all.** `issues` arrives as a page
|
|
100
|
+
prop; `useTableContext('issues')` turns it into `items` +
|
|
101
|
+
`totalItems`/`page`/`perPage` (URL-backed) + `selected`/`unselected`/`all`
|
|
102
|
+
(select-all-across-pages), and `BbTable` binds directly to that handle.
|
|
103
|
+
- **Filters mirror into the URL with `useQueryObject`; tabs are real
|
|
104
|
+
visits.** Typing in a pill filter performs a partial Inertia visit
|
|
105
|
+
(`only: ['issues', 'tabCounts']`); `BbTabs` items carry `href` +
|
|
106
|
+
`server: true` with the same `only` list. The server is the single source
|
|
107
|
+
of filtered, paginated truth.
|
|
108
|
+
- **Options resolve once, at page level.** Status and priority are static
|
|
109
|
+
module-level catalogs (fifty rows, zero requests); the assignee picker
|
|
110
|
+
shares **one** query provider across every row — filtering the `team` page
|
|
111
|
+
prop client-side — so unopened rows cost nothing and no picker ever makes
|
|
112
|
+
a request.
|
|
113
|
+
- **Status is color, per the soft palette.** The registered `soft-*` badge
|
|
114
|
+
variants label the closed status/priority sets; the internal trailing
|
|
115
|
+
chevron says "clickable", and the badge's `loading` swaps the spinner into
|
|
116
|
+
the chevron's place while that one field saves.
|
|
117
|
+
- **Buttons are `md` by default**; `sm` appears only in row actions, the
|
|
118
|
+
filter pills, the peek footer and the bulk bar.
|
|
119
|
+
|
|
120
|
+
## Page anatomy
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
BacklogWorkspace/
|
|
124
|
+
Index.vue ← assembly: PageShell slots, table, tabs, pagination
|
|
125
|
+
context.ts ← coopts shell + keyed table ctx; owns filters + the pending overlay + persistField
|
|
126
|
+
FilterRail.vue ← status / priority / assignee filter pills + clear-all
|
|
127
|
+
EditableTitleCell.vue ← commit-on-blur text (@change, never v-model)
|
|
128
|
+
EstimateCell.vue ← commit-on-change number cell
|
|
129
|
+
StatusCell.vue ← editable soft badge (chevron at rest, spinner in flight)
|
|
130
|
+
PriorityCell.vue ← same grammar, its own leaf (§6.3: never one EditableCell with a type prop)
|
|
131
|
+
AssigneeCell.vue ← provider-backed people picker badge (ONE shared query fn)
|
|
132
|
+
RowActions.vue ← … dropdown: duplicate, move to next sprint, delete (confirm)
|
|
133
|
+
SelectionBar.vue ← bulk status / bulk assign / bulk move (floating bottom panel)
|
|
134
|
+
IssuePeek.vue ← peek workbench reusing the SAME Status/Priority/Assignee cells
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Chrome assumed from the guides: `AppLayout` (left nav + fat footer),
|
|
138
|
+
`PageShell`, `FloatingBottomPanel`. Note what is _missing_ compared to the
|
|
139
|
+
records workspace: there is no dialog component and the shell's `#dialogs`
|
|
140
|
+
slot stays empty — on an autosave page the grid _is_ the form, so nothing
|
|
141
|
+
needs a modal to edit.
|
|
142
|
+
|
|
143
|
+
## Action inventory
|
|
144
|
+
|
|
145
|
+
| # | Action | Trigger | Mechanism |
|
|
146
|
+
| --- | ------------------------ | ---------------------------------- | ------------------------------------------------------- |
|
|
147
|
+
| 1 | New issue | topbar, the page's one `primary` | navigation (`/issues/new`) |
|
|
148
|
+
| 2 | Page search | topbar right | `filters.search` → `useQueryObject` partial visit |
|
|
149
|
+
| 3 | Switch sprint tab | href tabs with live counts | `BbTabs` `href` + `server: true` partial visit |
|
|
150
|
+
| 4 | Filter by status | rail pill | `BbSelectPopover` multiple over the static catalog |
|
|
151
|
+
| 5 | Filter by priority | rail pill | `BbSelectPopover` multiple over the static catalog |
|
|
152
|
+
| 6 | Filter by assignee | rail pill | the shared people provider, single select |
|
|
153
|
+
| 7 | Clear filters | rail right (only when active) | context `clearFilters()` |
|
|
154
|
+
| 8 | Rename issue | title cell (grid) | commit-on-blur `@change` → `persistField('title')` |
|
|
155
|
+
| 9 | Re-estimate | estimate cell (grid) | commit-on-change number → `persistField('estimate')` |
|
|
156
|
+
| 10 | Change status | status badge (grid **and** peek) | pick = commit; spinner in the chevron (§6.8) |
|
|
157
|
+
| 11 | Change priority | priority badge (grid **and** peek) | same grammar, its own leaf |
|
|
158
|
+
| 12 | Reassign | assignee badge (grid **and** peek) | people search over the `team` prop; one shared provider |
|
|
159
|
+
| 13 | Peek issue | issue ref cell | `peekIssue(id)` → shell stack, JSON fetch |
|
|
160
|
+
| 14 | Duplicate | row `…` dropdown | promise-wrapped visit + toast |
|
|
161
|
+
| 15 | Move to next sprint | row `…` **and** bulk bar | `moveToNextSprint` / `bulkMoveToNextSprint` visits |
|
|
162
|
+
| 16 | Delete | row `…`, peek footer | destructive behind `useConfirm`, then a visit |
|
|
163
|
+
| 17 | Bulk set status | bottom panel picker | `bulkStatus` on the selection context (across pages) |
|
|
164
|
+
| 18 | Bulk assign | bottom panel picker | `bulkAssign` on the selection context (across pages) |
|
|
165
|
+
| 19 | Select rows / select all | table checkboxes | `useTableContext` selection (across pages) |
|
|
166
|
+
| 20 | Open full issue | peek footer | navigation (`/issues/:id`) |
|
|
167
|
+
| 21 | Close peek | shell chrome | shell stack close |
|
|
168
|
+
|
|
169
|
+
Rows 8–12 are the recipe's reason to exist: five editable fields of three
|
|
170
|
+
different control kinds, each persisting itself, two of them able to be in
|
|
171
|
+
flight **on the same row at the same time**.
|
|
172
|
+
|
|
173
|
+
## The code
|
|
174
|
+
|
|
175
|
+
### Project setup — the soft status palette
|
|
176
|
+
|
|
177
|
+
Status and priority are small closed sets — the textbook case for the soft
|
|
178
|
+
semantic accents. The names are registered in the build plugin (that makes
|
|
179
|
+
them type-check as `BbBadge` variants); the CSS is the project's own,
|
|
180
|
+
kept in a stylesheet separate from the library defaults:
|
|
181
|
+
|
|
182
|
+
```ts
|
|
183
|
+
// vite.config.ts — the names; the library ships no CSS for them.
|
|
184
|
+
import { defineConfig } from 'vite';
|
|
185
|
+
import vue from '@vitejs/plugin-vue';
|
|
186
|
+
import laravel from 'laravel-vite-plugin';
|
|
187
|
+
import { bitbossUi } from 'bitboss-ui/vite';
|
|
188
|
+
|
|
189
|
+
export default defineConfig({
|
|
190
|
+
plugins: [
|
|
191
|
+
laravel({ input: 'resources/js/app.ts', refresh: true }),
|
|
192
|
+
vue(),
|
|
193
|
+
bitbossUi({
|
|
194
|
+
iconDir: './resources/js/assets/icons',
|
|
195
|
+
badgeVariants: [
|
|
196
|
+
'soft-gray',
|
|
197
|
+
'soft-blue',
|
|
198
|
+
'soft-green',
|
|
199
|
+
'soft-amber',
|
|
200
|
+
'soft-red',
|
|
201
|
+
],
|
|
202
|
+
}),
|
|
203
|
+
],
|
|
204
|
+
});
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
```css
|
|
208
|
+
/* resources/css/badge-variants.css — trimmed. Canonical palette + the full
|
|
209
|
+
recipe (why the selectors are doubled, why the hue lives in a local
|
|
210
|
+
--accent): design-language.md § Using color. */
|
|
211
|
+
.bb-badge.bb-badge--soft-gray {
|
|
212
|
+
--accent: #64748b;
|
|
213
|
+
}
|
|
214
|
+
.bb-badge.bb-badge--soft-blue {
|
|
215
|
+
--accent: #2563eb;
|
|
216
|
+
}
|
|
217
|
+
.bb-badge.bb-badge--soft-green {
|
|
218
|
+
--accent: #16a34a;
|
|
219
|
+
}
|
|
220
|
+
.bb-badge.bb-badge--soft-amber {
|
|
221
|
+
--accent: #d97706;
|
|
222
|
+
}
|
|
223
|
+
.bb-badge.bb-badge--soft-red {
|
|
224
|
+
--accent: #dc2626;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.bb-badge.bb-badge--soft-gray,
|
|
228
|
+
.bb-badge.bb-badge--soft-blue,
|
|
229
|
+
.bb-badge.bb-badge--soft-green,
|
|
230
|
+
.bb-badge.bb-badge--soft-amber,
|
|
231
|
+
.bb-badge.bb-badge--soft-red {
|
|
232
|
+
--bg: color-mix(in oklab, var(--accent) 15%, var(--bb-panel));
|
|
233
|
+
--color: color-mix(in oklab, var(--accent) 80%, var(--bb-text));
|
|
234
|
+
--border-width: 1px;
|
|
235
|
+
--border-color: color-mix(in oklab, var(--accent) 25%, var(--bb-panel));
|
|
236
|
+
--ring: color-mix(in oklab, var(--accent) 45%, transparent);
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### context.ts
|
|
241
|
+
|
|
242
|
+
```ts
|
|
243
|
+
// BacklogWorkspace/context.ts
|
|
244
|
+
import {
|
|
245
|
+
computed,
|
|
246
|
+
inject,
|
|
247
|
+
provide,
|
|
248
|
+
reactive,
|
|
249
|
+
ref,
|
|
250
|
+
watch,
|
|
251
|
+
type ComputedRef,
|
|
252
|
+
type InjectionKey,
|
|
253
|
+
type Ref,
|
|
254
|
+
} from 'vue';
|
|
255
|
+
import { router, usePage } from '@inertiajs/vue3';
|
|
256
|
+
import type { RequestPayload } from '@inertiajs/core';
|
|
257
|
+
import { useConfirm, useToast, type BadgeVariantType } from 'bitboss-ui';
|
|
258
|
+
import {
|
|
259
|
+
usePageShellContext,
|
|
260
|
+
type PageShellContext,
|
|
261
|
+
} from '@/components/layout/usePageShellContext';
|
|
262
|
+
import {
|
|
263
|
+
useTableContext,
|
|
264
|
+
type TableContext,
|
|
265
|
+
} from '@/composables/useTableContext';
|
|
266
|
+
import { useQueryObject } from '@/composables/useQueryObject';
|
|
267
|
+
import { useQuery } from '@/composables/useQuery';
|
|
268
|
+
import { useProp } from '@/composables/useProp';
|
|
269
|
+
import type { Issue, IssuePriority, IssueStatus, Member } from '@/types';
|
|
270
|
+
|
|
271
|
+
/** What the peek sidebar can show. Clicking an issue ref pushes one of these. */
|
|
272
|
+
export type PeekItem = { type: 'issue'; id: string };
|
|
273
|
+
|
|
274
|
+
export type SprintTab = 'backlog' | 'current' | 'done';
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Exactly what a save can carry: the subset of Issue the user edits inline.
|
|
278
|
+
* Five fields of three control kinds on purpose — the pattern only proves
|
|
279
|
+
* itself once a row can be PARTIALLY in flight (title saving while the same
|
|
280
|
+
* row's status saves), once a field is backed by a search (assignee), and
|
|
281
|
+
* once a field changes on every keystroke (title, estimate).
|
|
282
|
+
*/
|
|
283
|
+
export type IssuePatch = Partial<
|
|
284
|
+
Pick<Issue, 'title' | 'estimate' | 'status' | 'priority' | 'assignee'>
|
|
285
|
+
>;
|
|
286
|
+
export type EditableKey = keyof IssuePatch;
|
|
287
|
+
|
|
288
|
+
export interface BacklogFilters {
|
|
289
|
+
search: string;
|
|
290
|
+
status: IssueStatus[];
|
|
291
|
+
priority: IssuePriority[];
|
|
292
|
+
/** The whole member, not an id — the pill labels itself with zero fetches. */
|
|
293
|
+
assignee: Member | null;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** The props every reload of this page depends on. */
|
|
297
|
+
const RELOAD_PROPS = ['issues', 'tabCounts'] as const;
|
|
298
|
+
|
|
299
|
+
// -- Option catalogs: resolved once, at module level, for the whole page. ----
|
|
300
|
+
// Static arrays cost fifty rows zero requests; a per-row provider would cost
|
|
301
|
+
// one request per opened row (BbSelectPopover § One popover per table row).
|
|
302
|
+
export const STATUS_OPTIONS: { value: IssueStatus; label: string }[] = [
|
|
303
|
+
{ value: 'open', label: 'Open' },
|
|
304
|
+
{ value: 'in-progress', label: 'In progress' },
|
|
305
|
+
{ value: 'blocked', label: 'Blocked' },
|
|
306
|
+
{ value: 'done', label: 'Done' },
|
|
307
|
+
];
|
|
308
|
+
export const PRIORITY_OPTIONS: { value: IssuePriority; label: string }[] = [
|
|
309
|
+
{ value: 'high', label: 'High' },
|
|
310
|
+
{ value: 'normal', label: 'Normal' },
|
|
311
|
+
{ value: 'low', label: 'Low' },
|
|
312
|
+
];
|
|
313
|
+
|
|
314
|
+
// Status/priority are small closed sets — the textbook case for the soft
|
|
315
|
+
// accents (design-language.md § Using color). Registered in vite.config.ts.
|
|
316
|
+
export const STATUS_VARIANT: Record<IssueStatus, BadgeVariantType> = {
|
|
317
|
+
open: 'soft-gray',
|
|
318
|
+
'in-progress': 'soft-blue',
|
|
319
|
+
blocked: 'soft-red',
|
|
320
|
+
done: 'soft-green',
|
|
321
|
+
};
|
|
322
|
+
export const PRIORITY_VARIANT: Record<IssuePriority, BadgeVariantType> = {
|
|
323
|
+
high: 'soft-amber',
|
|
324
|
+
normal: 'secondary',
|
|
325
|
+
low: 'outline',
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* `id: null` is the real "Unassigned" option, not an absence. The assignee is
|
|
330
|
+
* stored on the row as the whole member, so a row's badge always labels
|
|
331
|
+
* itself from its own data — no client-side directory cache, and the trigger
|
|
332
|
+
* never depends on the picker having loaded.
|
|
333
|
+
*/
|
|
334
|
+
export const UNASSIGNED: Member = { id: null, name: 'Unassigned' };
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* ONE query provider shared by every assignee picker on the page — each
|
|
338
|
+
* row's cell, the peek's cell, the rail pill and the bulk-assign picker.
|
|
339
|
+
* Providers are lazy, so a row nobody opens costs nothing — and this one is
|
|
340
|
+
* cheaper still: the controller already shares the six-member `team` as a
|
|
341
|
+
* page prop, so the search filters it client-side, zero requests. Contract
|
|
342
|
+
* (fetch-items-playbook): component-initiated calls (`prefill === true`)
|
|
343
|
+
* and an empty query return the whole team, so the current selection always
|
|
344
|
+
* stays resolvable; typed queries search.
|
|
345
|
+
*/
|
|
346
|
+
export const searchMembers = async (
|
|
347
|
+
query: string,
|
|
348
|
+
prefill: boolean
|
|
349
|
+
): Promise<Member[]> => {
|
|
350
|
+
const team = usePage<{ team: Member[] }>().props.team;
|
|
351
|
+
const q = query.trim().toLowerCase();
|
|
352
|
+
const members =
|
|
353
|
+
prefill || !q
|
|
354
|
+
? team
|
|
355
|
+
: team.filter((member) => member.name.toLowerCase().includes(q));
|
|
356
|
+
return [UNASSIGNED, ...members];
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
export interface BacklogWorkspaceContext {
|
|
360
|
+
// -- Coopted contexts ------------------------------------------------------
|
|
361
|
+
shell: PageShellContext<PeekItem>;
|
|
362
|
+
table: TableContext<Issue, string>;
|
|
363
|
+
// -- Page-owned state ------------------------------------------------------
|
|
364
|
+
filters: BacklogFilters;
|
|
365
|
+
hasActiveFilters: ComputedRef<boolean>;
|
|
366
|
+
tab: Ref<SprintTab>;
|
|
367
|
+
tabCounts: ComputedRef<Record<SprintTab, number>>;
|
|
368
|
+
/** Bumped after every mutation — the peek watches it to re-fetch its JSON detail. */
|
|
369
|
+
refreshKey: Ref<number>;
|
|
370
|
+
// -- The autosave overlay (§6.8) --------------------------------------------
|
|
371
|
+
/**
|
|
372
|
+
* Optimistic values per row PER FIELD, held until the server's own data
|
|
373
|
+
* carries them. Reactive. Rung 3 on purpose: the cells, the peek and the
|
|
374
|
+
* retirement watcher all read it. Cells never touch it directly — they go
|
|
375
|
+
* through `valueOf` / `isSaving`.
|
|
376
|
+
*/
|
|
377
|
+
pending: Record<string, IssuePatch>;
|
|
378
|
+
/** Fields whose last save failed, keyed `${id}:${field}`. */
|
|
379
|
+
failed: Readonly<Ref<Set<string>>>;
|
|
380
|
+
/** Read-through: the overlay wins, the row is the fallback. */
|
|
381
|
+
valueOf: <K extends EditableKey>(issue: Issue, key: K) => Issue[K];
|
|
382
|
+
/** Whether THIS field of THIS row has a save in flight. */
|
|
383
|
+
isSaving: (issue: Issue, key: EditableKey) => boolean;
|
|
384
|
+
/** The one write path every cell commits through. */
|
|
385
|
+
persistField: <K extends EditableKey>(
|
|
386
|
+
issue: Issue,
|
|
387
|
+
key: K,
|
|
388
|
+
value: Issue[K]
|
|
389
|
+
) => Promise<void>;
|
|
390
|
+
// -- Peek ------------------------------------------------------------------
|
|
391
|
+
peekIssue: (id: string) => void;
|
|
392
|
+
// -- Actions (complete: visit + refresh + toast) ------------------------------
|
|
393
|
+
clearFilters: () => void;
|
|
394
|
+
duplicateIssue: (issue: Issue) => Promise<void>;
|
|
395
|
+
moveToNextSprint: (issue: Issue) => Promise<void>;
|
|
396
|
+
deleteIssue: (issue: Issue) => Promise<void>;
|
|
397
|
+
bulkStatus: (status: IssueStatus) => Promise<void>;
|
|
398
|
+
bulkAssign: (assignee: Member) => Promise<void>;
|
|
399
|
+
bulkMoveToNextSprint: () => Promise<void>;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
const key: InjectionKey<BacklogWorkspaceContext> = Symbol('backlog-workspace');
|
|
403
|
+
|
|
404
|
+
/** Comma-joined query value → string[] (or null when absent). */
|
|
405
|
+
const toArray = (value: unknown): string[] | null => {
|
|
406
|
+
if (value == null || value === '') return null;
|
|
407
|
+
return Array.isArray(value) ? value.map(String) : String(value).split(',');
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Inertia's callback-based visit, wrapped as a promise — so every context
|
|
412
|
+
* action stays `async`, exactly like the Vue/Nuxt versions. Always a
|
|
413
|
+
* partial reload; field saves pass just `['issues']`, everything else
|
|
414
|
+
* refreshes the tab counts too.
|
|
415
|
+
*/
|
|
416
|
+
const visit = (
|
|
417
|
+
method: 'post' | 'patch' | 'delete',
|
|
418
|
+
url: string,
|
|
419
|
+
// Inertia's own payload type — strings/numbers/booleans/arrays/files.
|
|
420
|
+
// (`Record<string, unknown>` does not satisfy it.)
|
|
421
|
+
data: RequestPayload = {},
|
|
422
|
+
only: readonly string[] = RELOAD_PROPS
|
|
423
|
+
): Promise<void> =>
|
|
424
|
+
new Promise((resolve, reject) => {
|
|
425
|
+
router.visit(url, {
|
|
426
|
+
method,
|
|
427
|
+
data,
|
|
428
|
+
only: [...only],
|
|
429
|
+
preserveScroll: true,
|
|
430
|
+
preserveState: true,
|
|
431
|
+
onSuccess: () => resolve(),
|
|
432
|
+
onError: (errors) => reject(errors),
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
export function provideBacklogWorkspace(): BacklogWorkspaceContext {
|
|
437
|
+
const { toast } = useToast();
|
|
438
|
+
const { confirm } = useConfirm();
|
|
439
|
+
|
|
440
|
+
// -- Coopt the specific contexts: once, here, for the whole page. ----------
|
|
441
|
+
const shell = usePageShellContext<PeekItem>();
|
|
442
|
+
// `Issue, string`: BbTable's `item-value="id"` resolves selection to issue
|
|
443
|
+
// ids, matching the Vue/Nuxt `table.selected: string[]` shape.
|
|
444
|
+
const table = useTableContext<Issue, string>('issues');
|
|
445
|
+
|
|
446
|
+
// -- Filters: seeded from the current URL, mirrored back by useQueryObject. -
|
|
447
|
+
const query = useQuery();
|
|
448
|
+
const team = useProp<Member[]>('team');
|
|
449
|
+
const filters = reactive<BacklogFilters>({
|
|
450
|
+
search: (query.search as string) ?? '',
|
|
451
|
+
status: (toArray(query.status) ?? []) as IssueStatus[],
|
|
452
|
+
priority: (toArray(query.priority) ?? []) as IssuePriority[],
|
|
453
|
+
// The URL carries an id; the `team` prop turns it back into the whole
|
|
454
|
+
// member, so the pill still labels itself with zero fetches. 'none' is
|
|
455
|
+
// UNASSIGNED's serialized form (`id: null`) — a real filter value.
|
|
456
|
+
assignee:
|
|
457
|
+
query.assignee === 'none'
|
|
458
|
+
? UNASSIGNED
|
|
459
|
+
: (team.value.find((m) => String(m.id) === query.assignee) ?? null),
|
|
460
|
+
});
|
|
461
|
+
// The watcher mirrors a URL-shaped projection of the filters: the
|
|
462
|
+
// whole-member assignee flattens to its id on the way out.
|
|
463
|
+
useQueryObject(
|
|
464
|
+
() => ({
|
|
465
|
+
search: filters.search,
|
|
466
|
+
status: filters.status,
|
|
467
|
+
priority: filters.priority,
|
|
468
|
+
assignee:
|
|
469
|
+
filters.assignee === null
|
|
470
|
+
? null
|
|
471
|
+
: String(filters.assignee.id ?? 'none'),
|
|
472
|
+
}),
|
|
473
|
+
{ only: [...RELOAD_PROPS] }
|
|
474
|
+
);
|
|
475
|
+
|
|
476
|
+
const hasActiveFilters = computed(
|
|
477
|
+
() =>
|
|
478
|
+
filters.search !== '' ||
|
|
479
|
+
filters.status.length > 0 ||
|
|
480
|
+
filters.priority.length > 0 ||
|
|
481
|
+
filters.assignee !== null
|
|
482
|
+
);
|
|
483
|
+
const clearFilters = () => {
|
|
484
|
+
filters.search = '';
|
|
485
|
+
filters.status = [];
|
|
486
|
+
filters.priority = [];
|
|
487
|
+
filters.assignee = null;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
// Tab: seeded from the URL; BbTabs' own `href` + `server` visit updates
|
|
491
|
+
// the URL, and its `v-model` write keeps this ref in sync with the click.
|
|
492
|
+
const tab = ref<SprintTab>((query.tab as SprintTab) ?? 'current');
|
|
493
|
+
const tabCounts = useProp<Record<SprintTab, number>>('tabCounts');
|
|
494
|
+
|
|
495
|
+
const refreshKey = ref(0);
|
|
496
|
+
|
|
497
|
+
// -- The autosave overlay -----------------------------------------------------
|
|
498
|
+
const pending = reactive<Record<string, IssuePatch>>({});
|
|
499
|
+
const failed = ref(new Set<string>());
|
|
500
|
+
|
|
501
|
+
const valueOf = <K extends EditableKey>(issue: Issue, key: K): Issue[K] => {
|
|
502
|
+
const patch = pending[issue.id];
|
|
503
|
+
// `key in patch`, not `patch[key] ?? issue[key]`: null is a legitimate
|
|
504
|
+
// committed value here (a cleared estimate), and `??` would drop that
|
|
505
|
+
// overlay and show the stale row value while the save runs.
|
|
506
|
+
return patch && key in patch ? (patch[key] as Issue[K]) : issue[key];
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
const isSaving = (issue: Issue, key: EditableKey): boolean => {
|
|
510
|
+
const patch = pending[issue.id];
|
|
511
|
+
return patch !== undefined && key in patch;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The complete autosave action, one per commit, for every control kind:
|
|
516
|
+
* no-op guard → optimistic set → single-field PATCH visit, whose own
|
|
517
|
+
* partial reload brings the fresh rows back. On failure it deletes JUST
|
|
518
|
+
* this field from the overlay (the cell snaps back to the row's value — a
|
|
519
|
+
* second field of the same row still in flight is untouched) and toasts
|
|
520
|
+
* destructive. Success does NOT toast: a page where every blur saves
|
|
521
|
+
* would toast constantly — the spinner resolving is the confirmation,
|
|
522
|
+
* failure is the exception worth announcing.
|
|
523
|
+
*/
|
|
524
|
+
const persistField = async <K extends EditableKey>(
|
|
525
|
+
issue: Issue,
|
|
526
|
+
key: K,
|
|
527
|
+
value: Issue[K]
|
|
528
|
+
): Promise<void> => {
|
|
529
|
+
// No-op-commit guard — against what the user SEES (the overlay when one
|
|
530
|
+
// is in flight, the row otherwise): a blur without a change, or
|
|
531
|
+
// re-picking the on-screen value, must not fire a request.
|
|
532
|
+
if (JSON.stringify(value) === JSON.stringify(valueOf(issue, key))) return;
|
|
533
|
+
|
|
534
|
+
const flag = `${issue.id}:${key}`;
|
|
535
|
+
(pending[issue.id] ??= {})[key] = value; // optimistic: the UI moves NOW
|
|
536
|
+
failed.value.delete(flag);
|
|
537
|
+
try {
|
|
538
|
+
// One visit is both the PATCH and the reload — the redirect back
|
|
539
|
+
// re-renders `issues`. Do NOT retire the overlay here: the watcher
|
|
540
|
+
// below drops it once the server's own data carries the value.
|
|
541
|
+
await visit('patch', `/issues/${issue.id}`, { [key]: value }, ['issues']);
|
|
542
|
+
refreshKey.value++; // the peek re-fetches its JSON detail
|
|
543
|
+
} catch {
|
|
544
|
+
// Rollback: drop just this field.
|
|
545
|
+
const patch = pending[issue.id];
|
|
546
|
+
if (patch) {
|
|
547
|
+
delete patch[key];
|
|
548
|
+
if (!Object.keys(patch).length) delete pending[issue.id];
|
|
549
|
+
}
|
|
550
|
+
failed.value.add(flag);
|
|
551
|
+
toast({
|
|
552
|
+
title: `Couldn't save the ${key} of ${issue.ref} — reverted.`,
|
|
553
|
+
variant: 'destructive',
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
// -- Overlay retirement ---------------------------------------------------------
|
|
559
|
+
// The Vue recipe retires the overlay inside its own fetchIssues; here
|
|
560
|
+
// there is no fetch you own — fresh rows land as the `issues` page prop,
|
|
561
|
+
// and the keyed table context re-syncs `items` after every successful
|
|
562
|
+
// visit. So retirement runs HERE, where the prop lands, not when a save
|
|
563
|
+
// resolves — and only for the fields the fresh rows actually CONFIRM. A
|
|
564
|
+
// PATCH's response confirms its own field, but a SECOND field of the same
|
|
565
|
+
// row still in flight is not in it yet; clearing the whole row's overlay
|
|
566
|
+
// on save-resolve snaps that field back to the stale value until its own
|
|
567
|
+
// visit lands — visibly, new → old → new. Rows also arrive through visits
|
|
568
|
+
// this code never initiates (tab, filter, poll); one watcher covers every
|
|
569
|
+
// arrival path. A field still in flight is left alone.
|
|
570
|
+
watch(table.items, (rows) => {
|
|
571
|
+
for (const issue of rows) {
|
|
572
|
+
const patch = pending[issue.id];
|
|
573
|
+
if (!patch) continue;
|
|
574
|
+
for (const field of Object.keys(patch) as EditableKey[]) {
|
|
575
|
+
if (JSON.stringify(patch[field]) === JSON.stringify(issue[field])) {
|
|
576
|
+
delete patch[field]; // the server's own data carries it now
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (!Object.keys(patch).length) delete pending[issue.id];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
|
|
583
|
+
// -- Peek ------------------------------------------------------------------------
|
|
584
|
+
// One record type on this page, so the grammar is one verb: fresh stack.
|
|
585
|
+
const peekIssue = (id: string) => shell.push({ type: 'issue', id }, true);
|
|
586
|
+
|
|
587
|
+
// -- Discrete actions (row `…`, bulk bar) -------------------------------------
|
|
588
|
+
// These are ordinary complete actions, records-workspace style: they
|
|
589
|
+
// mutate whole rows, not single fields, so they bypass the overlay — the
|
|
590
|
+
// visit's own partial reload replaces the rows — and being discrete (not
|
|
591
|
+
// a blur), they DO toast success.
|
|
592
|
+
const refresh = () => {
|
|
593
|
+
refreshKey.value++;
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
const duplicateIssue = async (issue: Issue) => {
|
|
597
|
+
await visit('post', `/issues/${issue.id}/duplicate`);
|
|
598
|
+
refresh();
|
|
599
|
+
toast({ title: `${issue.ref} duplicated.`, variant: 'success' });
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
const moveToNextSprint = async (issue: Issue) => {
|
|
603
|
+
await visit('post', `/issues/${issue.id}/next-sprint`);
|
|
604
|
+
refresh();
|
|
605
|
+
toast({ title: `${issue.ref} moved to Sprint 25.`, variant: 'success' });
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
const deleteIssue = async (issue: Issue) => {
|
|
609
|
+
const ok = await confirm({
|
|
610
|
+
variant: 'destructive',
|
|
611
|
+
title: 'Delete issue',
|
|
612
|
+
text: `Delete ${issue.ref} — “${issue.title}”? This cannot be undone.`,
|
|
613
|
+
yes: 'Delete',
|
|
614
|
+
no: 'Cancel',
|
|
615
|
+
});
|
|
616
|
+
if (!ok) return;
|
|
617
|
+
await visit('delete', `/issues/${issue.id}`);
|
|
618
|
+
refresh();
|
|
619
|
+
toast({ title: `${issue.ref} deleted.`, variant: 'success' });
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
// Bulk actions carry the full select-all-across-pages payload — the
|
|
623
|
+
// server combines `all` + `unselected` the same way BbTable does.
|
|
624
|
+
const bulkPayload = () => ({
|
|
625
|
+
ids: table.selected.value,
|
|
626
|
+
all: table.all.value,
|
|
627
|
+
unselected: table.unselected.value,
|
|
628
|
+
});
|
|
629
|
+
const bulkCount = () =>
|
|
630
|
+
table.all.value
|
|
631
|
+
? table.totalItems.value - table.unselected.value.length
|
|
632
|
+
: table.selected.value.length;
|
|
633
|
+
|
|
634
|
+
const bulkStatus = async (status: IssueStatus) => {
|
|
635
|
+
const count = bulkCount();
|
|
636
|
+
await visit('patch', '/issues/bulk/status', { ...bulkPayload(), status });
|
|
637
|
+
table.resetSelection();
|
|
638
|
+
refresh();
|
|
639
|
+
const label = STATUS_OPTIONS.find((o) => o.value === status)?.label;
|
|
640
|
+
toast({
|
|
641
|
+
title: `${count} issues moved to ${label}.`,
|
|
642
|
+
variant: 'success',
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
const bulkAssign = async (assignee: Member) => {
|
|
647
|
+
const count = bulkCount();
|
|
648
|
+
await visit('patch', '/issues/bulk/assign', {
|
|
649
|
+
...bulkPayload(),
|
|
650
|
+
assignee: assignee.id,
|
|
651
|
+
});
|
|
652
|
+
table.resetSelection();
|
|
653
|
+
refresh();
|
|
654
|
+
toast({
|
|
655
|
+
title: `${count} issues assigned to ${assignee.name}.`,
|
|
656
|
+
variant: 'success',
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
const bulkMoveToNextSprint = async () => {
|
|
661
|
+
const count = bulkCount();
|
|
662
|
+
await visit('post', '/issues/bulk/next-sprint', bulkPayload());
|
|
663
|
+
table.resetSelection();
|
|
664
|
+
refresh();
|
|
665
|
+
toast({
|
|
666
|
+
title: `${count} issues moved to Sprint 25.`,
|
|
667
|
+
variant: 'success',
|
|
668
|
+
});
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
const ctx: BacklogWorkspaceContext = {
|
|
672
|
+
shell,
|
|
673
|
+
table,
|
|
674
|
+
filters,
|
|
675
|
+
hasActiveFilters,
|
|
676
|
+
tab,
|
|
677
|
+
tabCounts,
|
|
678
|
+
refreshKey,
|
|
679
|
+
pending,
|
|
680
|
+
failed,
|
|
681
|
+
valueOf,
|
|
682
|
+
isSaving,
|
|
683
|
+
persistField,
|
|
684
|
+
peekIssue,
|
|
685
|
+
clearFilters,
|
|
686
|
+
duplicateIssue,
|
|
687
|
+
moveToNextSprint,
|
|
688
|
+
deleteIssue,
|
|
689
|
+
bulkStatus,
|
|
690
|
+
bulkAssign,
|
|
691
|
+
bulkMoveToNextSprint,
|
|
692
|
+
};
|
|
693
|
+
provide(key, ctx);
|
|
694
|
+
return ctx;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export function useBacklogWorkspace(): BacklogWorkspaceContext {
|
|
698
|
+
const ctx = inject(key);
|
|
699
|
+
if (!ctx)
|
|
700
|
+
throw new Error('useBacklogWorkspace() called outside BacklogWorkspace');
|
|
701
|
+
return ctx;
|
|
702
|
+
}
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
### Index.vue — the assembly
|
|
706
|
+
|
|
707
|
+
```vue
|
|
708
|
+
<!-- BacklogWorkspace/Index.vue -->
|
|
709
|
+
<template>
|
|
710
|
+
<PageShell>
|
|
711
|
+
<!-- Topbar: breadcrumbs left, page search + primary action right. -->
|
|
712
|
+
<template #topbar>
|
|
713
|
+
<div class="flex items-center justify-between gap-4 border-b px-4 py-2">
|
|
714
|
+
<!-- Breadcrumbs take the row's slack on a stable basis (min-w-0 flex-auto);
|
|
715
|
+
without it their overflow recompute fights the flex layout every frame. -->
|
|
716
|
+
<BbBreadcrumbs
|
|
717
|
+
class="min-w-0 flex-auto"
|
|
718
|
+
:items="[
|
|
719
|
+
{ key: 'product', text: 'Product', href: '/product' },
|
|
720
|
+
{ key: 'sprints', text: 'Sprints', href: '/sprints' },
|
|
721
|
+
{ key: 'sprint-24', text: 'Sprint 24' },
|
|
722
|
+
]"
|
|
723
|
+
/>
|
|
724
|
+
<div class="flex shrink-0 items-center gap-2">
|
|
725
|
+
<!-- `label` is required across the input family; `hide-label`
|
|
726
|
+
keeps the accessible name while hiding it visually. -->
|
|
727
|
+
<BbTextInput
|
|
728
|
+
v-model="ctx.filters.search"
|
|
729
|
+
autocomplete="off"
|
|
730
|
+
clearable
|
|
731
|
+
compact
|
|
732
|
+
hide-label
|
|
733
|
+
label="Search issues"
|
|
734
|
+
placeholder="Search ref or title…"
|
|
735
|
+
prepend:icon="lucide:search"
|
|
736
|
+
/>
|
|
737
|
+
<BbButton
|
|
738
|
+
href="/issues/new"
|
|
739
|
+
prepend:icon="lucide:plus"
|
|
740
|
+
variant="primary"
|
|
741
|
+
>
|
|
742
|
+
New issue
|
|
743
|
+
</BbButton>
|
|
744
|
+
</div>
|
|
745
|
+
</div>
|
|
746
|
+
</template>
|
|
747
|
+
|
|
748
|
+
<div class="flex flex-col gap-3 p-4">
|
|
749
|
+
<FilterRail />
|
|
750
|
+
|
|
751
|
+
<!-- Tabs are real visits: href + server (component-level `navigation`
|
|
752
|
+
is required alongside per-item `server`), each carrying the same
|
|
753
|
+
partial-reload prop list as the filter watcher. Counts come back
|
|
754
|
+
from the server on every reload. Each href is built from
|
|
755
|
+
`tabHref()`, NOT a bare `?tab=` literal: `preserve-state` keeps
|
|
756
|
+
`ctx.filters` alive across the visit, so if the href dropped the
|
|
757
|
+
filter query keys the server would render an unfiltered page
|
|
758
|
+
while the (unchanged) filter chips kept claiming the old
|
|
759
|
+
filters still applied. -->
|
|
760
|
+
<BbTabs
|
|
761
|
+
v-model="ctx.tab.value"
|
|
762
|
+
compact
|
|
763
|
+
navigation
|
|
764
|
+
preserve-scroll
|
|
765
|
+
preserve-state
|
|
766
|
+
replace
|
|
767
|
+
:items="[
|
|
768
|
+
{
|
|
769
|
+
key: 'backlog',
|
|
770
|
+
label: `Backlog · ${ctx.tabCounts.value.backlog}`,
|
|
771
|
+
href: tabHref('backlog'),
|
|
772
|
+
server: true,
|
|
773
|
+
only: ['issues', 'tabCounts'],
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
key: 'current',
|
|
777
|
+
label: `Current sprint · ${ctx.tabCounts.value.current}`,
|
|
778
|
+
href: tabHref('current'),
|
|
779
|
+
server: true,
|
|
780
|
+
only: ['issues', 'tabCounts'],
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
key: 'done',
|
|
784
|
+
label: `Done · ${ctx.tabCounts.value.done}`,
|
|
785
|
+
href: tabHref('done'),
|
|
786
|
+
server: true,
|
|
787
|
+
only: ['issues', 'tabCounts'],
|
|
788
|
+
},
|
|
789
|
+
]"
|
|
790
|
+
/>
|
|
791
|
+
|
|
792
|
+
<!-- No dependencies/items-fn: `issues` is a page prop, and selection
|
|
793
|
+
(across pages) binds straight onto the keyed table context. -->
|
|
794
|
+
<BbTable
|
|
795
|
+
v-model="ctx.table.selected.value"
|
|
796
|
+
v-model:highlighted="highlightedIssue"
|
|
797
|
+
v-model:select-all="ctx.table.all.value"
|
|
798
|
+
v-model:unselected-items="ctx.table.unselected.value"
|
|
799
|
+
actions
|
|
800
|
+
caption="Sprint 24 backlog"
|
|
801
|
+
:columns="columns"
|
|
802
|
+
compact
|
|
803
|
+
item-value="id"
|
|
804
|
+
:items="ctx.table.items.value"
|
|
805
|
+
legend="Sprint 24 backlog issues"
|
|
806
|
+
loading-text="Loading issues…"
|
|
807
|
+
:row-class="rowClass"
|
|
808
|
+
selectable
|
|
809
|
+
>
|
|
810
|
+
<!-- The ref is the peek handle — the title can't be, it's an input.
|
|
811
|
+
`.plain-link` is the project-owned inline-link helper
|
|
812
|
+
(design-language.md § Guide helper), not a BbButton variant. -->
|
|
813
|
+
<template #ref="{ item, content }">
|
|
814
|
+
<BbBaseButton
|
|
815
|
+
class="plain-link font-semibold"
|
|
816
|
+
@click="() => ctx.peekIssue(item.id)"
|
|
817
|
+
>
|
|
818
|
+
{{ content }}
|
|
819
|
+
</BbBaseButton>
|
|
820
|
+
</template>
|
|
821
|
+
|
|
822
|
+
<!-- Five self-persisting cells, three control kinds, one leaf each. -->
|
|
823
|
+
<template #title="{ item }">
|
|
824
|
+
<EditableTitleCell :issue="item" />
|
|
825
|
+
</template>
|
|
826
|
+
|
|
827
|
+
<template #estimate="{ item }">
|
|
828
|
+
<EstimateCell :issue="item" />
|
|
829
|
+
</template>
|
|
830
|
+
|
|
831
|
+
<template #status="{ item }">
|
|
832
|
+
<StatusCell :issue="item" />
|
|
833
|
+
</template>
|
|
834
|
+
|
|
835
|
+
<template #priority="{ item }">
|
|
836
|
+
<PriorityCell :issue="item" />
|
|
837
|
+
</template>
|
|
838
|
+
|
|
839
|
+
<template #assignee="{ item }">
|
|
840
|
+
<AssigneeCell :issue="item" />
|
|
841
|
+
</template>
|
|
842
|
+
|
|
843
|
+
<template #actions="{ item }">
|
|
844
|
+
<RowActions :issue="item" />
|
|
845
|
+
</template>
|
|
846
|
+
|
|
847
|
+
<template #no-data>
|
|
848
|
+
<div class="flex flex-col items-center gap-2 p-6 text-center">
|
|
849
|
+
<p class="text-sm text-[color:var(--bb-text-muted)]">
|
|
850
|
+
No issues match
|
|
851
|
+
{{
|
|
852
|
+
ctx.hasActiveFilters.value ? 'the current filters' : 'this tab'
|
|
853
|
+
}}.
|
|
854
|
+
</p>
|
|
855
|
+
<BbButton
|
|
856
|
+
v-if="ctx.hasActiveFilters.value"
|
|
857
|
+
variant="ghost"
|
|
858
|
+
@click="ctx.clearFilters"
|
|
859
|
+
>
|
|
860
|
+
Clear filters
|
|
861
|
+
</BbButton>
|
|
862
|
+
</div>
|
|
863
|
+
</template>
|
|
864
|
+
</BbTable>
|
|
865
|
+
|
|
866
|
+
<!-- No table-id: the keyed table context is the page count here. -->
|
|
867
|
+
<BbPagination
|
|
868
|
+
v-model="ctx.table.page.value"
|
|
869
|
+
label="Backlog pagination"
|
|
870
|
+
:total-pages="ctx.table.totalPages.value"
|
|
871
|
+
/>
|
|
872
|
+
</div>
|
|
873
|
+
|
|
874
|
+
<SelectionBar />
|
|
875
|
+
|
|
876
|
+
<!-- Peek sidebar: the shell owns close; we render by type. -->
|
|
877
|
+
<template #sidebar>
|
|
878
|
+
<IssuePeek
|
|
879
|
+
v-if="ctx.shell.current.value?.type === 'issue'"
|
|
880
|
+
:issue-id="ctx.shell.current.value.id"
|
|
881
|
+
/>
|
|
882
|
+
</template>
|
|
883
|
+
|
|
884
|
+
<!-- Deliberately no #dialogs content: every mutation on this page is
|
|
885
|
+
inline. The grid is the form. -->
|
|
886
|
+
</PageShell>
|
|
887
|
+
</template>
|
|
888
|
+
|
|
889
|
+
<script setup lang="ts">
|
|
890
|
+
import { computed } from 'vue';
|
|
891
|
+
import {
|
|
892
|
+
BbBaseButton,
|
|
893
|
+
BbBreadcrumbs,
|
|
894
|
+
BbButton,
|
|
895
|
+
BbPagination,
|
|
896
|
+
BbTable,
|
|
897
|
+
BbTabs,
|
|
898
|
+
BbTextInput,
|
|
899
|
+
} from 'bitboss-ui';
|
|
900
|
+
import qs from 'query-string';
|
|
901
|
+
import PageShell from '@/components/layout/PageShell.vue';
|
|
902
|
+
import { useQuery } from '@/composables/useQuery';
|
|
903
|
+
import { provideBacklogWorkspace, type SprintTab } from './context';
|
|
904
|
+
import AssigneeCell from './AssigneeCell.vue';
|
|
905
|
+
import EditableTitleCell from './EditableTitleCell.vue';
|
|
906
|
+
import EstimateCell from './EstimateCell.vue';
|
|
907
|
+
import FilterRail from './FilterRail.vue';
|
|
908
|
+
import IssuePeek from './IssuePeek.vue';
|
|
909
|
+
import PriorityCell from './PriorityCell.vue';
|
|
910
|
+
import RowActions from './RowActions.vue';
|
|
911
|
+
import SelectionBar from './SelectionBar.vue';
|
|
912
|
+
import StatusCell from './StatusCell.vue';
|
|
913
|
+
import type { Issue } from '@/types';
|
|
914
|
+
|
|
915
|
+
const ctx = provideBacklogWorkspace();
|
|
916
|
+
|
|
917
|
+
// Merge `tab` into the *current* query instead of replacing it: `useQuery()`
|
|
918
|
+
// reads the live URL, which already carries every filter `useQueryObject`
|
|
919
|
+
// mirrored there, so switching tabs keeps `search`/`status`/`priority`/
|
|
920
|
+
// `assignee` intact instead of silently resetting the results to unfiltered.
|
|
921
|
+
const tabHref = (tab: SprintTab): string =>
|
|
922
|
+
`/sprints/24?${qs.stringify({ ...useQuery(), tab }, { arrayFormat: 'comma' })}`;
|
|
923
|
+
|
|
924
|
+
// Row highlight tracks the open peek — the peeked row stays marked, and
|
|
925
|
+
// highlighting a row opens its peek; clearing the highlight closes it.
|
|
926
|
+
const highlightedIssue = computed<string | null>({
|
|
927
|
+
get: () =>
|
|
928
|
+
ctx.shell.current.value?.type === 'issue'
|
|
929
|
+
? ctx.shell.current.value.id
|
|
930
|
+
: null,
|
|
931
|
+
set: (id) => {
|
|
932
|
+
if (id == null) ctx.shell.close();
|
|
933
|
+
else ctx.peekIssue(id);
|
|
934
|
+
},
|
|
935
|
+
});
|
|
936
|
+
|
|
937
|
+
const columns = [
|
|
938
|
+
{ key: 'ref', label: 'Ref', width: 90 },
|
|
939
|
+
{ key: 'title', label: 'Title' },
|
|
940
|
+
{ key: 'estimate', label: 'Est.', width: 90 },
|
|
941
|
+
{ key: 'status', label: 'Status', width: 170 },
|
|
942
|
+
{ key: 'priority', label: 'Priority', width: 140 },
|
|
943
|
+
{ key: 'assignee', label: 'Assignee', width: 200 },
|
|
944
|
+
];
|
|
945
|
+
|
|
946
|
+
// Blocked rows get a tinted background — public row-class API, no internals.
|
|
947
|
+
// Even the tint reads THROUGH the overlay: unblock an issue and the row
|
|
948
|
+
// clears the moment the pick commits, not when the reload lands.
|
|
949
|
+
const rowClass = (item: Issue) =>
|
|
950
|
+
ctx.valueOf(item, 'status') === 'blocked'
|
|
951
|
+
? 'bg-red-50 dark:bg-red-950/20'
|
|
952
|
+
: undefined;
|
|
953
|
+
</script>
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
### FilterRail.vue
|
|
957
|
+
|
|
958
|
+
```vue
|
|
959
|
+
<!-- BacklogWorkspace/FilterRail.vue -->
|
|
960
|
+
<template>
|
|
961
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
962
|
+
<!-- Status: multi-select pill over the same static catalog the cells use.
|
|
963
|
+
`disable-writing` means there's no search field to host an in-popover
|
|
964
|
+
clear, so these tiny fixed-list filters clear from a rail-level chip
|
|
965
|
+
(×) instead — the searchable filter below clears from inside the
|
|
966
|
+
popover. -->
|
|
967
|
+
<div class="inline-flex items-center gap-1">
|
|
968
|
+
<BbSelectPopover
|
|
969
|
+
v-model="ctx.filters.status"
|
|
970
|
+
disable-writing
|
|
971
|
+
item-text="label"
|
|
972
|
+
item-value="value"
|
|
973
|
+
:items="STATUS_OPTIONS"
|
|
974
|
+
multiple
|
|
975
|
+
>
|
|
976
|
+
<template #activator="{ props }">
|
|
977
|
+
<BbButton
|
|
978
|
+
v-bind="props"
|
|
979
|
+
append:icon="lucide:chevron-down"
|
|
980
|
+
size="sm"
|
|
981
|
+
variant="outline"
|
|
982
|
+
>
|
|
983
|
+
Status{{
|
|
984
|
+
ctx.filters.status.length ? ` · ${ctx.filters.status.length}` : ''
|
|
985
|
+
}}
|
|
986
|
+
</BbButton>
|
|
987
|
+
</template>
|
|
988
|
+
</BbSelectPopover>
|
|
989
|
+
<BbButton
|
|
990
|
+
v-if="ctx.filters.status.length"
|
|
991
|
+
aria-label="Clear status filter"
|
|
992
|
+
prepend:icon="lucide:x"
|
|
993
|
+
size="sm"
|
|
994
|
+
variant="ghost"
|
|
995
|
+
@click="ctx.filters.status = []"
|
|
996
|
+
/>
|
|
997
|
+
</div>
|
|
998
|
+
|
|
999
|
+
<!-- Priority: same shape, three options. -->
|
|
1000
|
+
<div class="inline-flex items-center gap-1">
|
|
1001
|
+
<BbSelectPopover
|
|
1002
|
+
v-model="ctx.filters.priority"
|
|
1003
|
+
disable-writing
|
|
1004
|
+
item-text="label"
|
|
1005
|
+
item-value="value"
|
|
1006
|
+
:items="PRIORITY_OPTIONS"
|
|
1007
|
+
multiple
|
|
1008
|
+
>
|
|
1009
|
+
<template #activator="{ props }">
|
|
1010
|
+
<BbButton
|
|
1011
|
+
v-bind="props"
|
|
1012
|
+
append:icon="lucide:chevron-down"
|
|
1013
|
+
size="sm"
|
|
1014
|
+
variant="outline"
|
|
1015
|
+
>
|
|
1016
|
+
Priority{{
|
|
1017
|
+
ctx.filters.priority.length
|
|
1018
|
+
? ` · ${ctx.filters.priority.length}`
|
|
1019
|
+
: ''
|
|
1020
|
+
}}
|
|
1021
|
+
</BbButton>
|
|
1022
|
+
</template>
|
|
1023
|
+
</BbSelectPopover>
|
|
1024
|
+
<BbButton
|
|
1025
|
+
v-if="ctx.filters.priority.length"
|
|
1026
|
+
aria-label="Clear priority filter"
|
|
1027
|
+
prepend:icon="lucide:x"
|
|
1028
|
+
size="sm"
|
|
1029
|
+
variant="ghost"
|
|
1030
|
+
@click="ctx.filters.priority = []"
|
|
1031
|
+
/>
|
|
1032
|
+
</div>
|
|
1033
|
+
|
|
1034
|
+
<!-- Assignee: the SAME shared provider as every assignee cell. The whole
|
|
1035
|
+
member is the value, so the pill labels itself from page state with
|
|
1036
|
+
zero fetches — no watchEffect-to-resolve-a-name here. Query-aware
|
|
1037
|
+
(searchable), so the filter clears from inside the popover search. -->
|
|
1038
|
+
<BbSelectPopover
|
|
1039
|
+
v-model="ctx.filters.assignee"
|
|
1040
|
+
clearable
|
|
1041
|
+
item-text="name"
|
|
1042
|
+
:items="searchMembers"
|
|
1043
|
+
>
|
|
1044
|
+
<template #activator="{ props }">
|
|
1045
|
+
<BbButton
|
|
1046
|
+
v-bind="props"
|
|
1047
|
+
append:icon="lucide:chevron-down"
|
|
1048
|
+
size="sm"
|
|
1049
|
+
variant="outline"
|
|
1050
|
+
>
|
|
1051
|
+
{{ ctx.filters.assignee?.name ?? 'Assignee' }}
|
|
1052
|
+
</BbButton>
|
|
1053
|
+
</template>
|
|
1054
|
+
</BbSelectPopover>
|
|
1055
|
+
|
|
1056
|
+
<!-- Clear-all renders only while something is active. -->
|
|
1057
|
+
<BbButton
|
|
1058
|
+
v-if="ctx.hasActiveFilters.value"
|
|
1059
|
+
class="ml-auto"
|
|
1060
|
+
prepend:icon="lucide:x"
|
|
1061
|
+
size="sm"
|
|
1062
|
+
variant="ghost"
|
|
1063
|
+
@click="ctx.clearFilters"
|
|
1064
|
+
>
|
|
1065
|
+
Clear filters
|
|
1066
|
+
</BbButton>
|
|
1067
|
+
</div>
|
|
1068
|
+
</template>
|
|
1069
|
+
|
|
1070
|
+
<script setup lang="ts">
|
|
1071
|
+
import { BbButton, BbSelectPopover } from 'bitboss-ui';
|
|
1072
|
+
import {
|
|
1073
|
+
PRIORITY_OPTIONS,
|
|
1074
|
+
STATUS_OPTIONS,
|
|
1075
|
+
searchMembers,
|
|
1076
|
+
useBacklogWorkspace,
|
|
1077
|
+
} from './context';
|
|
1078
|
+
|
|
1079
|
+
const ctx = useBacklogWorkspace();
|
|
1080
|
+
</script>
|
|
1081
|
+
```
|
|
1082
|
+
|
|
1083
|
+
### EditableTitleCell.vue
|
|
1084
|
+
|
|
1085
|
+
```vue
|
|
1086
|
+
<!-- BacklogWorkspace/EditableTitleCell.vue -->
|
|
1087
|
+
<template>
|
|
1088
|
+
<!-- Commit on @change (blur/Enter), NEVER v-model: a v-model autosave is
|
|
1089
|
+
one request per keystroke. `:model-value` binds the read-through value
|
|
1090
|
+
down; the user's in-progress typing lives in the DOM until blur commits
|
|
1091
|
+
it. A failed save marks the field until the next commit attempt. -->
|
|
1092
|
+
<BbTextInput
|
|
1093
|
+
compact
|
|
1094
|
+
:has-errors="ctx.failed.value.has(`${issue.id}:title`)"
|
|
1095
|
+
hide-label
|
|
1096
|
+
label="Issue title"
|
|
1097
|
+
:loading="ctx.isSaving(issue, 'title')"
|
|
1098
|
+
:model-value="ctx.valueOf(issue, 'title')"
|
|
1099
|
+
@change="commit"
|
|
1100
|
+
/>
|
|
1101
|
+
</template>
|
|
1102
|
+
|
|
1103
|
+
<script setup lang="ts">
|
|
1104
|
+
import { BbTextInput } from 'bitboss-ui';
|
|
1105
|
+
import { useBacklogWorkspace } from './context';
|
|
1106
|
+
import type { Issue } from '@/types';
|
|
1107
|
+
|
|
1108
|
+
const props = defineProps<{ issue: Issue }>();
|
|
1109
|
+
|
|
1110
|
+
const ctx = useBacklogWorkspace();
|
|
1111
|
+
|
|
1112
|
+
// `@change` is the native event; the committed text is on the target.
|
|
1113
|
+
const commit = (event: Event) =>
|
|
1114
|
+
ctx.persistField(
|
|
1115
|
+
props.issue,
|
|
1116
|
+
'title',
|
|
1117
|
+
(event.target as HTMLInputElement).value
|
|
1118
|
+
);
|
|
1119
|
+
</script>
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
### EstimateCell.vue
|
|
1123
|
+
|
|
1124
|
+
```vue
|
|
1125
|
+
<!-- BacklogWorkspace/EstimateCell.vue -->
|
|
1126
|
+
<template>
|
|
1127
|
+
<BbNumberInput
|
|
1128
|
+
compact
|
|
1129
|
+
:has-errors="ctx.failed.value.has(`${issue.id}:estimate`)"
|
|
1130
|
+
hide-label
|
|
1131
|
+
label="Estimate"
|
|
1132
|
+
:loading="ctx.isSaving(issue, 'estimate')"
|
|
1133
|
+
:min="0"
|
|
1134
|
+
:model-value="ctx.valueOf(issue, 'estimate')"
|
|
1135
|
+
placeholder="—"
|
|
1136
|
+
@change="commit"
|
|
1137
|
+
/>
|
|
1138
|
+
</template>
|
|
1139
|
+
|
|
1140
|
+
<script setup lang="ts">
|
|
1141
|
+
import { BbNumberInput } from 'bitboss-ui';
|
|
1142
|
+
import { useBacklogWorkspace } from './context';
|
|
1143
|
+
import type { Issue } from '@/types';
|
|
1144
|
+
|
|
1145
|
+
const props = defineProps<{ issue: Issue }>();
|
|
1146
|
+
|
|
1147
|
+
const ctx = useBacklogWorkspace();
|
|
1148
|
+
|
|
1149
|
+
// A number input's `change` carries the RAW STRING; '' means cleared. A
|
|
1150
|
+
// cleared estimate is a real commit (estimate: null), not a no-op — which is
|
|
1151
|
+
// exactly why the context's valueOf checks `key in patch` instead of `??`.
|
|
1152
|
+
const commit = (event: Event) => {
|
|
1153
|
+
const raw = (event.target as HTMLInputElement).value;
|
|
1154
|
+
ctx.persistField(props.issue, 'estimate', raw === '' ? null : Number(raw));
|
|
1155
|
+
};
|
|
1156
|
+
</script>
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1159
|
+
### StatusCell.vue
|
|
1160
|
+
|
|
1161
|
+
```vue
|
|
1162
|
+
<!-- BacklogWorkspace/StatusCell.vue -->
|
|
1163
|
+
<template>
|
|
1164
|
+
<BbSelectPopover
|
|
1165
|
+
compact
|
|
1166
|
+
disable-writing
|
|
1167
|
+
item-text="label"
|
|
1168
|
+
item-value="value"
|
|
1169
|
+
:items="STATUS_OPTIONS"
|
|
1170
|
+
:model-value="status"
|
|
1171
|
+
width="180px"
|
|
1172
|
+
@update:model-value="
|
|
1173
|
+
(next) => ctx.persistField(issue, 'status', next as IssueStatus)
|
|
1174
|
+
"
|
|
1175
|
+
>
|
|
1176
|
+
<template #activator="{ props: activatorProps, shown }">
|
|
1177
|
+
<!-- The badge IS the trigger: BbBadgeButton turns the badge's own
|
|
1178
|
+
body into the button, so the pill is the hit target and draws its own
|
|
1179
|
+
focus ring — no wrapper element, no chrome class. The internal
|
|
1180
|
+
trailing chevron says "this can change" and sits inside the button
|
|
1181
|
+
with the label; while THIS field's save runs the badge's `loading`
|
|
1182
|
+
swaps the spinner into the chevron's place — same size, nothing
|
|
1183
|
+
shifts. Unlike the one-shot §6.1 cell there is no local `saving` ref:
|
|
1184
|
+
the flag comes from the context overlay, because in an autosave grid
|
|
1185
|
+
the code ingesting fresh rows must also know what's in flight. -->
|
|
1186
|
+
<BbBadge
|
|
1187
|
+
append:icon="lucide:chevron-down"
|
|
1188
|
+
:class="{ 'status-cell--open': shown }"
|
|
1189
|
+
:loading="ctx.isSaving(issue, 'status')"
|
|
1190
|
+
:variant="STATUS_VARIANT[status]"
|
|
1191
|
+
>
|
|
1192
|
+
<BbBadgeButton v-bind="activatorProps">{{ label }}</BbBadgeButton>
|
|
1193
|
+
</BbBadge>
|
|
1194
|
+
</template>
|
|
1195
|
+
</BbSelectPopover>
|
|
1196
|
+
</template>
|
|
1197
|
+
|
|
1198
|
+
<script setup lang="ts">
|
|
1199
|
+
import { computed } from 'vue';
|
|
1200
|
+
import { BbBadge, BbBadgeButton, BbSelectPopover } from 'bitboss-ui';
|
|
1201
|
+
import { STATUS_OPTIONS, STATUS_VARIANT, useBacklogWorkspace } from './context';
|
|
1202
|
+
import type { Issue, IssueStatus } from '@/types';
|
|
1203
|
+
|
|
1204
|
+
const props = defineProps<{ issue: Issue }>();
|
|
1205
|
+
|
|
1206
|
+
const ctx = useBacklogWorkspace();
|
|
1207
|
+
|
|
1208
|
+
// Read through the overlay, so the badge moves the instant a pick commits —
|
|
1209
|
+
// color and label both.
|
|
1210
|
+
const status = computed(() => ctx.valueOf(props.issue, 'status'));
|
|
1211
|
+
const label = computed(
|
|
1212
|
+
() =>
|
|
1213
|
+
STATUS_OPTIONS.find((option) => option.value === status.value)?.label ??
|
|
1214
|
+
status.value
|
|
1215
|
+
);
|
|
1216
|
+
</script>
|
|
1217
|
+
|
|
1218
|
+
<style scoped>
|
|
1219
|
+
/* Open = the badge's own hue, deepened, plus its variant ring — derived from
|
|
1220
|
+
the badge's --color/--ring tokens so every status keeps its identity
|
|
1221
|
+
instead of washing out to a neutral. */
|
|
1222
|
+
.status-cell--open {
|
|
1223
|
+
--bg: color-mix(in oklab, var(--color) 24%, var(--bb-panel));
|
|
1224
|
+
--border-color: color-mix(in oklab, var(--color) 45%, var(--bb-panel));
|
|
1225
|
+
box-shadow: 0 0 0 var(--bb-ring-size) var(--ring);
|
|
1226
|
+
}
|
|
1227
|
+
</style>
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
### PriorityCell.vue
|
|
1231
|
+
|
|
1232
|
+
```vue
|
|
1233
|
+
<!-- BacklogWorkspace/PriorityCell.vue -->
|
|
1234
|
+
<template>
|
|
1235
|
+
<!-- Same grammar as StatusCell, its OWN leaf (§6.3): one `EditableCell`
|
|
1236
|
+
with a `type` prop growing a renderer switch is the API-monster seed. The
|
|
1237
|
+
sixty percent that repeats is cheaper than the prop that accumulates. -->
|
|
1238
|
+
<BbSelectPopover
|
|
1239
|
+
compact
|
|
1240
|
+
disable-writing
|
|
1241
|
+
item-text="label"
|
|
1242
|
+
item-value="value"
|
|
1243
|
+
:items="PRIORITY_OPTIONS"
|
|
1244
|
+
:model-value="priority"
|
|
1245
|
+
width="160px"
|
|
1246
|
+
@update:model-value="
|
|
1247
|
+
(next) => ctx.persistField(issue, 'priority', next as IssuePriority)
|
|
1248
|
+
"
|
|
1249
|
+
>
|
|
1250
|
+
<template #activator="{ props: activatorProps, shown }">
|
|
1251
|
+
<BbBadge
|
|
1252
|
+
append:icon="lucide:chevron-down"
|
|
1253
|
+
:class="{ 'priority-cell--open': shown }"
|
|
1254
|
+
:loading="ctx.isSaving(issue, 'priority')"
|
|
1255
|
+
:variant="PRIORITY_VARIANT[priority]"
|
|
1256
|
+
>
|
|
1257
|
+
<BbBadgeButton v-bind="activatorProps">{{ label }}</BbBadgeButton>
|
|
1258
|
+
</BbBadge>
|
|
1259
|
+
</template>
|
|
1260
|
+
</BbSelectPopover>
|
|
1261
|
+
</template>
|
|
1262
|
+
|
|
1263
|
+
<script setup lang="ts">
|
|
1264
|
+
import { computed } from 'vue';
|
|
1265
|
+
import { BbBadge, BbBadgeButton, BbSelectPopover } from 'bitboss-ui';
|
|
1266
|
+
import {
|
|
1267
|
+
PRIORITY_OPTIONS,
|
|
1268
|
+
PRIORITY_VARIANT,
|
|
1269
|
+
useBacklogWorkspace,
|
|
1270
|
+
} from './context';
|
|
1271
|
+
import type { Issue, IssuePriority } from '@/types';
|
|
1272
|
+
|
|
1273
|
+
const props = defineProps<{ issue: Issue }>();
|
|
1274
|
+
|
|
1275
|
+
const ctx = useBacklogWorkspace();
|
|
1276
|
+
|
|
1277
|
+
const priority = computed(() => ctx.valueOf(props.issue, 'priority'));
|
|
1278
|
+
const label = computed(
|
|
1279
|
+
() =>
|
|
1280
|
+
PRIORITY_OPTIONS.find((option) => option.value === priority.value)?.label ??
|
|
1281
|
+
priority.value
|
|
1282
|
+
);
|
|
1283
|
+
</script>
|
|
1284
|
+
|
|
1285
|
+
<style scoped>
|
|
1286
|
+
/* Open = the badge's own hue, deepened, plus its variant ring (see
|
|
1287
|
+
StatusCell). */
|
|
1288
|
+
.priority-cell--open {
|
|
1289
|
+
--bg: color-mix(in oklab, var(--color) 24%, var(--bb-panel));
|
|
1290
|
+
--border-color: color-mix(in oklab, var(--color) 45%, var(--bb-panel));
|
|
1291
|
+
box-shadow: 0 0 0 var(--bb-ring-size) var(--ring);
|
|
1292
|
+
}
|
|
1293
|
+
</style>
|
|
1294
|
+
```
|
|
1295
|
+
|
|
1296
|
+
### AssigneeCell.vue
|
|
1297
|
+
|
|
1298
|
+
```vue
|
|
1299
|
+
<!-- BacklogWorkspace/AssigneeCell.vue -->
|
|
1300
|
+
<template>
|
|
1301
|
+
<!-- Provider-backed people picker. The provider is the ONE shared
|
|
1302
|
+
`searchMembers` — lazy per instance, so a row nobody opens never resolves.
|
|
1303
|
+
The whole member is the value (no item-value), matching how the row
|
|
1304
|
+
stores it. -->
|
|
1305
|
+
<BbSelectPopover
|
|
1306
|
+
compact
|
|
1307
|
+
item-text="name"
|
|
1308
|
+
:items="searchMembers"
|
|
1309
|
+
:model-value="assignee"
|
|
1310
|
+
width="220px"
|
|
1311
|
+
@update:model-value="
|
|
1312
|
+
(next) => ctx.persistField(issue, 'assignee', next as Member)
|
|
1313
|
+
"
|
|
1314
|
+
>
|
|
1315
|
+
<template #activator="{ props: activatorProps, shown }">
|
|
1316
|
+
<!-- Labelled from the ROW (through the overlay), never from the
|
|
1317
|
+
popover's `text`: a lazy provider has no items until first open, so
|
|
1318
|
+
`text` is empty — and the rows nobody opens must still read right on
|
|
1319
|
+
first paint. An assignee is a person, not a semantic status, so the
|
|
1320
|
+
badge stays neutral (`secondary`), no soft accent. -->
|
|
1321
|
+
<BbBadge
|
|
1322
|
+
append:icon="lucide:chevron-down"
|
|
1323
|
+
:class="{ 'assignee-cell--open': shown }"
|
|
1324
|
+
:loading="ctx.isSaving(issue, 'assignee')"
|
|
1325
|
+
variant="secondary"
|
|
1326
|
+
>
|
|
1327
|
+
<BbBadgeButton v-bind="activatorProps">{{
|
|
1328
|
+
assignee.name
|
|
1329
|
+
}}</BbBadgeButton>
|
|
1330
|
+
</BbBadge>
|
|
1331
|
+
</template>
|
|
1332
|
+
</BbSelectPopover>
|
|
1333
|
+
</template>
|
|
1334
|
+
|
|
1335
|
+
<script setup lang="ts">
|
|
1336
|
+
import { computed } from 'vue';
|
|
1337
|
+
import { BbBadge, BbBadgeButton, BbSelectPopover } from 'bitboss-ui';
|
|
1338
|
+
import { searchMembers, useBacklogWorkspace } from './context';
|
|
1339
|
+
import type { Issue, Member } from '@/types';
|
|
1340
|
+
|
|
1341
|
+
const props = defineProps<{ issue: Issue }>();
|
|
1342
|
+
|
|
1343
|
+
const ctx = useBacklogWorkspace();
|
|
1344
|
+
|
|
1345
|
+
const assignee = computed(() => ctx.valueOf(props.issue, 'assignee'));
|
|
1346
|
+
</script>
|
|
1347
|
+
|
|
1348
|
+
<style scoped>
|
|
1349
|
+
/* Open = the badge's own hue, deepened, plus its variant ring (see
|
|
1350
|
+
StatusCell). */
|
|
1351
|
+
.assignee-cell--open {
|
|
1352
|
+
--bg: color-mix(in oklab, var(--color) 24%, var(--bb-panel));
|
|
1353
|
+
--border-color: color-mix(in oklab, var(--color) 45%, var(--bb-panel));
|
|
1354
|
+
box-shadow: 0 0 0 var(--bb-ring-size) var(--ring);
|
|
1355
|
+
}
|
|
1356
|
+
</style>
|
|
1357
|
+
```
|
|
1358
|
+
|
|
1359
|
+
### RowActions.vue
|
|
1360
|
+
|
|
1361
|
+
```vue
|
|
1362
|
+
<!-- BacklogWorkspace/RowActions.vue -->
|
|
1363
|
+
<template>
|
|
1364
|
+
<BbDropdown
|
|
1365
|
+
:items="[
|
|
1366
|
+
{
|
|
1367
|
+
key: 'duplicate',
|
|
1368
|
+
text: 'Duplicate',
|
|
1369
|
+
'prepend:icon': 'lucide:copy',
|
|
1370
|
+
onClick: () => ctx.duplicateIssue(issue),
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
key: 'next-sprint',
|
|
1374
|
+
text: 'Move to next sprint',
|
|
1375
|
+
'prepend:icon': 'lucide:arrow-right',
|
|
1376
|
+
onClick: () => ctx.moveToNextSprint(issue),
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
key: 'delete',
|
|
1380
|
+
text: 'Delete',
|
|
1381
|
+
'prepend:icon': 'lucide:trash-2',
|
|
1382
|
+
variant: 'destructive',
|
|
1383
|
+
onClick: () => ctx.deleteIssue(issue),
|
|
1384
|
+
},
|
|
1385
|
+
]"
|
|
1386
|
+
>
|
|
1387
|
+
<template #activator="{ props }">
|
|
1388
|
+
<BbButton v-bind="props" icon="lucide:ellipsis" size="sm" variant="ghost">
|
|
1389
|
+
Issue actions
|
|
1390
|
+
</BbButton>
|
|
1391
|
+
</template>
|
|
1392
|
+
</BbDropdown>
|
|
1393
|
+
</template>
|
|
1394
|
+
|
|
1395
|
+
<script setup lang="ts">
|
|
1396
|
+
import { BbButton, BbDropdown } from 'bitboss-ui';
|
|
1397
|
+
import { useBacklogWorkspace } from './context';
|
|
1398
|
+
import type { Issue } from '@/types';
|
|
1399
|
+
|
|
1400
|
+
defineProps<{ issue: Issue }>();
|
|
1401
|
+
|
|
1402
|
+
const ctx = useBacklogWorkspace();
|
|
1403
|
+
</script>
|
|
1404
|
+
```
|
|
1405
|
+
|
|
1406
|
+
### SelectionBar.vue
|
|
1407
|
+
|
|
1408
|
+
```vue
|
|
1409
|
+
<!-- BacklogWorkspace/SelectionBar.vue -->
|
|
1410
|
+
<template>
|
|
1411
|
+
<FloatingBottomPanel :open="selectedCount > 0">
|
|
1412
|
+
<span class="px-2 text-sm">{{ selectedCount }} selected</span>
|
|
1413
|
+
|
|
1414
|
+
<!-- Bulk pickers are DISPATCHERS, not fields: model stays null, every
|
|
1415
|
+
pick fires the bulk action and the popover closes. The bar holds no
|
|
1416
|
+
state of its own. `placement="top"` because the bar hugs the viewport
|
|
1417
|
+
bottom — open upward instead of flipping — with an 8px `offset` so the
|
|
1418
|
+
menu clears the bar. -->
|
|
1419
|
+
<BbSelectPopover
|
|
1420
|
+
disable-writing
|
|
1421
|
+
item-text="label"
|
|
1422
|
+
item-value="value"
|
|
1423
|
+
:items="STATUS_OPTIONS"
|
|
1424
|
+
:model-value="null"
|
|
1425
|
+
:offset="8"
|
|
1426
|
+
placement="top"
|
|
1427
|
+
width="180px"
|
|
1428
|
+
@update:model-value="(next) => ctx.bulkStatus(next as IssueStatus)"
|
|
1429
|
+
>
|
|
1430
|
+
<template #activator="{ props }">
|
|
1431
|
+
<BbButton
|
|
1432
|
+
v-bind="props"
|
|
1433
|
+
append:icon="lucide:chevron-up"
|
|
1434
|
+
size="sm"
|
|
1435
|
+
variant="ghost"
|
|
1436
|
+
>
|
|
1437
|
+
Set status
|
|
1438
|
+
</BbButton>
|
|
1439
|
+
</template>
|
|
1440
|
+
</BbSelectPopover>
|
|
1441
|
+
|
|
1442
|
+
<BbSelectPopover
|
|
1443
|
+
item-text="name"
|
|
1444
|
+
:items="searchMembers"
|
|
1445
|
+
:model-value="null"
|
|
1446
|
+
:offset="8"
|
|
1447
|
+
placement="top"
|
|
1448
|
+
width="220px"
|
|
1449
|
+
@update:model-value="(next) => ctx.bulkAssign(next as Member)"
|
|
1450
|
+
>
|
|
1451
|
+
<template #activator="{ props }">
|
|
1452
|
+
<BbButton
|
|
1453
|
+
v-bind="props"
|
|
1454
|
+
append:icon="lucide:chevron-up"
|
|
1455
|
+
size="sm"
|
|
1456
|
+
variant="ghost"
|
|
1457
|
+
>
|
|
1458
|
+
Assign
|
|
1459
|
+
</BbButton>
|
|
1460
|
+
</template>
|
|
1461
|
+
</BbSelectPopover>
|
|
1462
|
+
|
|
1463
|
+
<BbButton
|
|
1464
|
+
prepend:icon="lucide:arrow-right"
|
|
1465
|
+
size="sm"
|
|
1466
|
+
variant="ghost"
|
|
1467
|
+
@click="ctx.bulkMoveToNextSprint"
|
|
1468
|
+
>
|
|
1469
|
+
Next sprint
|
|
1470
|
+
</BbButton>
|
|
1471
|
+
|
|
1472
|
+
<div class="floating-bottom-panel__right flex items-center gap-1">
|
|
1473
|
+
<BbButton
|
|
1474
|
+
aria-label="Clear selection"
|
|
1475
|
+
icon="lucide:x"
|
|
1476
|
+
size="sm"
|
|
1477
|
+
variant="ghost"
|
|
1478
|
+
@click="ctx.table.resetSelection"
|
|
1479
|
+
/>
|
|
1480
|
+
</div>
|
|
1481
|
+
</FloatingBottomPanel>
|
|
1482
|
+
</template>
|
|
1483
|
+
|
|
1484
|
+
<script setup lang="ts">
|
|
1485
|
+
import { computed } from 'vue';
|
|
1486
|
+
import { BbButton, BbSelectPopover } from 'bitboss-ui';
|
|
1487
|
+
import FloatingBottomPanel from '@/components/layout/FloatingBottomPanel.vue';
|
|
1488
|
+
import { STATUS_OPTIONS, searchMembers, useBacklogWorkspace } from './context';
|
|
1489
|
+
import type { IssueStatus, Member } from '@/types';
|
|
1490
|
+
|
|
1491
|
+
const ctx = useBacklogWorkspace();
|
|
1492
|
+
|
|
1493
|
+
// `all` (select-all-across-pages) does not enumerate rows, so the visible
|
|
1494
|
+
// count is the total minus whatever the user manually deselected.
|
|
1495
|
+
const selectedCount = computed(() =>
|
|
1496
|
+
ctx.table.all.value
|
|
1497
|
+
? ctx.table.totalItems.value - ctx.table.unselected.value.length
|
|
1498
|
+
: ctx.table.selected.value.length
|
|
1499
|
+
);
|
|
1500
|
+
</script>
|
|
1501
|
+
```
|
|
1502
|
+
|
|
1503
|
+
### IssuePeek.vue
|
|
1504
|
+
|
|
1505
|
+
```vue
|
|
1506
|
+
<!-- BacklogWorkspace/IssuePeek.vue -->
|
|
1507
|
+
<template>
|
|
1508
|
+
<div v-if="issue" class="flex flex-col gap-4 text-sm">
|
|
1509
|
+
<!-- Identity header. -->
|
|
1510
|
+
<header class="flex flex-col gap-1">
|
|
1511
|
+
<p class="text-xs font-medium text-[color:var(--bb-text-muted)]">
|
|
1512
|
+
{{ issue.ref }}
|
|
1513
|
+
</p>
|
|
1514
|
+
<h2 class="text-base font-semibold">{{ issue.title }}</h2>
|
|
1515
|
+
</header>
|
|
1516
|
+
|
|
1517
|
+
<!-- Properties: the SAME editable cells as the grid — one leaf, two
|
|
1518
|
+
call sites. Change the status here and the grid's badge (and even the
|
|
1519
|
+
blocked-row tint) moves in the same tick, because both surfaces read
|
|
1520
|
+
the same overlay; the spinner shows in both places at once. -->
|
|
1521
|
+
<dl class="grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-2">
|
|
1522
|
+
<dt class="text-[color:var(--bb-text-muted)]">Status</dt>
|
|
1523
|
+
<dd><StatusCell :issue="issue" /></dd>
|
|
1524
|
+
<dt class="text-[color:var(--bb-text-muted)]">Priority</dt>
|
|
1525
|
+
<dd><PriorityCell :issue="issue" /></dd>
|
|
1526
|
+
<dt class="text-[color:var(--bb-text-muted)]">Assignee</dt>
|
|
1527
|
+
<dd><AssigneeCell :issue="issue" /></dd>
|
|
1528
|
+
<dt class="text-[color:var(--bb-text-muted)]">Estimate</dt>
|
|
1529
|
+
<dd>
|
|
1530
|
+
{{
|
|
1531
|
+
ctx.valueOf(issue, 'estimate') === null
|
|
1532
|
+
? 'Unestimated'
|
|
1533
|
+
: `${ctx.valueOf(issue, 'estimate')} points`
|
|
1534
|
+
}}
|
|
1535
|
+
</dd>
|
|
1536
|
+
<dt class="text-[color:var(--bb-text-muted)]">Sprint</dt>
|
|
1537
|
+
<dd>{{ issue.sprint }}</dd>
|
|
1538
|
+
</dl>
|
|
1539
|
+
|
|
1540
|
+
<!-- Description. -->
|
|
1541
|
+
<section class="flex flex-col gap-1.5">
|
|
1542
|
+
<h3
|
|
1543
|
+
class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
|
|
1544
|
+
>
|
|
1545
|
+
Description
|
|
1546
|
+
</h3>
|
|
1547
|
+
<p class="whitespace-pre-line text-[color:var(--bb-text-muted)]">
|
|
1548
|
+
{{ issue.description }}
|
|
1549
|
+
</p>
|
|
1550
|
+
</section>
|
|
1551
|
+
|
|
1552
|
+
<!-- Activity feed. -->
|
|
1553
|
+
<section class="flex flex-col gap-1.5">
|
|
1554
|
+
<h3
|
|
1555
|
+
class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
|
|
1556
|
+
>
|
|
1557
|
+
Activity
|
|
1558
|
+
</h3>
|
|
1559
|
+
<ul class="flex flex-col gap-2">
|
|
1560
|
+
<li v-for="entry in issue.activity" :key="entry.id" class="flex gap-2">
|
|
1561
|
+
<BbIcon
|
|
1562
|
+
class="mt-0.5 shrink-0 text-[color:var(--bb-text-muted)]"
|
|
1563
|
+
:icon="entry.icon"
|
|
1564
|
+
size="14"
|
|
1565
|
+
/>
|
|
1566
|
+
<div class="flex flex-col">
|
|
1567
|
+
<span>{{ entry.text }}</span>
|
|
1568
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]"
|
|
1569
|
+
>{{ entry.actor }} · {{ longDate(entry.at) }}</span
|
|
1570
|
+
>
|
|
1571
|
+
</div>
|
|
1572
|
+
</li>
|
|
1573
|
+
</ul>
|
|
1574
|
+
</section>
|
|
1575
|
+
|
|
1576
|
+
<!-- Peek is a workbench: act here, or leave for the full page. -->
|
|
1577
|
+
<footer class="mt-2 flex items-center gap-2 border-t pt-3">
|
|
1578
|
+
<BbButton
|
|
1579
|
+
prepend:icon="lucide:arrow-right"
|
|
1580
|
+
size="sm"
|
|
1581
|
+
variant="secondary"
|
|
1582
|
+
@click="() => ctx.moveToNextSprint(issue!)"
|
|
1583
|
+
>
|
|
1584
|
+
Next sprint
|
|
1585
|
+
</BbButton>
|
|
1586
|
+
<BbButton
|
|
1587
|
+
size="sm"
|
|
1588
|
+
variant="destructive"
|
|
1589
|
+
@click="() => ctx.deleteIssue(issue!)"
|
|
1590
|
+
>
|
|
1591
|
+
Delete
|
|
1592
|
+
</BbButton>
|
|
1593
|
+
<BbButton
|
|
1594
|
+
append:icon="lucide:arrow-up-right"
|
|
1595
|
+
:href="`/issues/${issue.id}`"
|
|
1596
|
+
size="sm"
|
|
1597
|
+
variant="ghost"
|
|
1598
|
+
>
|
|
1599
|
+
Open full page
|
|
1600
|
+
</BbButton>
|
|
1601
|
+
</footer>
|
|
1602
|
+
</div>
|
|
1603
|
+
|
|
1604
|
+
<div v-else class="flex justify-center p-8">
|
|
1605
|
+
<BbSpinner />
|
|
1606
|
+
</div>
|
|
1607
|
+
</template>
|
|
1608
|
+
|
|
1609
|
+
<script setup lang="ts">
|
|
1610
|
+
import { watch } from 'vue';
|
|
1611
|
+
import { BbButton, BbIcon, BbSpinner } from 'bitboss-ui';
|
|
1612
|
+
import { useResourceContext } from '@/composables/useResourceContext';
|
|
1613
|
+
import AssigneeCell from './AssigneeCell.vue';
|
|
1614
|
+
import PriorityCell from './PriorityCell.vue';
|
|
1615
|
+
import StatusCell from './StatusCell.vue';
|
|
1616
|
+
import { useBacklogWorkspace } from './context';
|
|
1617
|
+
import type { IssueDetail } from '@/types';
|
|
1618
|
+
|
|
1619
|
+
const props = defineProps<{ issueId: string }>();
|
|
1620
|
+
|
|
1621
|
+
const ctx = useBacklogWorkspace();
|
|
1622
|
+
|
|
1623
|
+
// A small JSON endpoint, not a page visit — opening the peek never
|
|
1624
|
+
// re-renders the list underneath it. Re-fetches whenever the stack shows a
|
|
1625
|
+
// different issue; `refreshKey` makes every commit (from the grid OR this
|
|
1626
|
+
// panel) reflect here immediately. The cells inside don't flash across that
|
|
1627
|
+
// reload either — they read the overlay, which only retires once fresh data
|
|
1628
|
+
// confirms it.
|
|
1629
|
+
const { data: issue, refresh } = useResourceContext<IssueDetail, string>(
|
|
1630
|
+
() => props.issueId,
|
|
1631
|
+
(id) => fetch(`/issues/${id}/peek`).then((res) => res.json())
|
|
1632
|
+
);
|
|
1633
|
+
watch(() => ctx.refreshKey.value, refresh);
|
|
1634
|
+
|
|
1635
|
+
const longDate = (value: string) =>
|
|
1636
|
+
new Date(value).toLocaleDateString('en-US', {
|
|
1637
|
+
month: 'short',
|
|
1638
|
+
day: 'numeric',
|
|
1639
|
+
year: 'numeric',
|
|
1640
|
+
});
|
|
1641
|
+
</script>
|
|
1642
|
+
```
|
|
1643
|
+
|
|
1644
|
+
## Why it is built this way
|
|
1645
|
+
|
|
1646
|
+
- **`pending` sits on rung 3, and the recipe's whole shape follows from
|
|
1647
|
+
that.** Three consumers force it up the ladder: the cells read it to render
|
|
1648
|
+
optimistically, the peek reads it so the second call site of every cell
|
|
1649
|
+
agrees with the first, and the retirement watcher reads it to drop
|
|
1650
|
+
confirmed fields when fresh rows land. Contrast the records workspace's
|
|
1651
|
+
§6.1 status cell, where `saving` is a rung-1 local `ref` around one awaited
|
|
1652
|
+
action — correct **there** because nothing but that one cell ever cares.
|
|
1653
|
+
Here the code that ingests fresh rows must know what's in flight, so a
|
|
1654
|
+
local flag physically cannot work; that is why the picker cells bind
|
|
1655
|
+
`:loading="ctx.isSaving(issue, 'status')"` instead of owning a `saving`
|
|
1656
|
+
ref.
|
|
1657
|
+
- **`persistField` is one complete action for every control kind.** Text,
|
|
1658
|
+
number, and three pickers all commit through the same guard → optimistic
|
|
1659
|
+
set → PATCH visit pipeline (the visit's own partial reload is the refetch),
|
|
1660
|
+
so the failure story (drop one field, destructive toast) and the no-op
|
|
1661
|
+
story (blur without change costs nothing) are written once. The guard
|
|
1662
|
+
compares against `valueOf`, not the raw row — what the user _sees_ is the
|
|
1663
|
+
value they are re-committing.
|
|
1664
|
+
- **Retirement lives where the prop lands because that is when the truth
|
|
1665
|
+
changes.** A resolved PATCH visit proves the server accepted the value —
|
|
1666
|
+
its response even carries fresh `issues` — but the overlay must still
|
|
1667
|
+
retire per-field, only for values the fresh rows confirm: a slow title
|
|
1668
|
+
save must survive a fast status save's reload untouched, and rows also
|
|
1669
|
+
arrive through visits this page never initiates. One watcher on the
|
|
1670
|
+
ingested rows is the choke point for every arrival path. The comment above
|
|
1671
|
+
it ships with the recipe on purpose: this is the §6.8 bug everyone writes
|
|
1672
|
+
once.
|
|
1673
|
+
- **The `visit()` helper is the promise-wrapped router-visit pattern** from
|
|
1674
|
+
the records workspace: it turns Inertia's `onSuccess`/`onError` callbacks
|
|
1675
|
+
into a promise so `persistField` and every discrete action stay `async`
|
|
1676
|
+
functions — identical call sites to the Vue/Nuxt recipes. Field saves
|
|
1677
|
+
reload only `['issues']` (the hottest path on the page); discrete and bulk
|
|
1678
|
+
actions reload `tabCounts` too, because they move issues between tabs.
|
|
1679
|
+
- **One watcher for filters, one visit mechanism for tabs.**
|
|
1680
|
+
`useQueryObject(..., { only: ['issues', 'tabCounts'] })` over a URL-shaped
|
|
1681
|
+
projection of `filters` is the entire filter-to-URL wiring; `BbTabs`'
|
|
1682
|
+
`href` + `server: true` items (with the required component-level
|
|
1683
|
+
`navigation`) make tab switches real partial visits with the same `only`
|
|
1684
|
+
list — one source of server truth, reached two ways. Each `href` is built
|
|
1685
|
+
by `tabHref()`, which merges `tab` into the current query rather than
|
|
1686
|
+
replacing it — `href: '/sprints/24?tab=backlog'` alone would drop every
|
|
1687
|
+
active filter, and because `preserve-state` keeps this page instance (and
|
|
1688
|
+
`ctx.filters`) alive across the visit, the chips would keep showing the
|
|
1689
|
+
old filters as active over an unfiltered result set.
|
|
1690
|
+
- **Bulk actions carry the full select-all-across-pages payload**
|
|
1691
|
+
(`ids`/`all`/`unselected`) — never just an enumerated id list that
|
|
1692
|
+
silently drops rows outside the current page.
|
|
1693
|
+
- **`valueOf` checks `key in patch`, not `??`.** A cleared estimate commits
|
|
1694
|
+
`null`, and `null ?? row.estimate` would silently un-render the overlay
|
|
1695
|
+
while the save runs. The one-line comment in the context is load-bearing.
|
|
1696
|
+
- **No dirty ring anywhere, no success toasts for cell commits.** Autosave
|
|
1697
|
+
has no "changed but unsaved" state, so the ring (the draft-map pattern's
|
|
1698
|
+
grammar) would lie; and a page where every blur saves would toast
|
|
1699
|
+
constantly. The spinner in the chevron's place is the feedback; failure is
|
|
1700
|
+
the exception worth announcing (destructive toast + `has-errors` on the
|
|
1701
|
+
text/number cells via the `failed` set; badge cells announce by visibly
|
|
1702
|
+
snapping back). Discrete actions — duplicate, move, delete, bulk — _do_
|
|
1703
|
+
toast success: they are events, not keystrokes.
|
|
1704
|
+
- **Five cells, five leaves.** `EditableTitleCell`, `EstimateCell`,
|
|
1705
|
+
`StatusCell`, `PriorityCell`, `AssigneeCell` — never one `EditableCell`
|
|
1706
|
+
with a `type` prop growing a renderer switch (§6.3/§4). Each takes exactly
|
|
1707
|
+
one data prop (`issue`) and gets its behavior from the context.
|
|
1708
|
+
- **Typed inputs commit on `@change`; pickers commit on pick.** The text and
|
|
1709
|
+
number cells bind `:model-value` down and read the committed value from the
|
|
1710
|
+
native event (`event.target`); the number cell's change carries the raw
|
|
1711
|
+
string where `''` means cleared. No debounce machinery — blur/Enter and
|
|
1712
|
+
pick are natural commit points, so the request count equals the commit
|
|
1713
|
+
count.
|
|
1714
|
+
- **Options resolve once.** Status and priority are module-level catalogs
|
|
1715
|
+
shared by the cells, the rail pills and the bulk picker — zero requests.
|
|
1716
|
+
The assignee is genuinely query-driven, so it gets the one exception: a
|
|
1717
|
+
**single** shared provider (`searchMembers`), lazy per instance, keeping
|
|
1718
|
+
unopened rows free — filtering the `team` page prop client-side, so it
|
|
1719
|
+
never even makes a request; prefill calls return the whole six-person team
|
|
1720
|
+
so the current selection always resolves. Rows store the whole member, so every badge and the
|
|
1721
|
+
filter pill label themselves from data they already hold — no
|
|
1722
|
+
`watchEffect`-to-resolve-a-name anywhere on this page.
|
|
1723
|
+
- **The ref cell is the peek handle** because the title — the "name" of an
|
|
1724
|
+
issue — is an input here, and a click that sometimes edits and sometimes
|
|
1725
|
+
navigates is a broken affordance. One record type also collapses the stack
|
|
1726
|
+
grammar to a single verb (`peekIssue`, fresh stack).
|
|
1727
|
+
- **The peek reuses the grid's cells verbatim** — one leaf, two call sites.
|
|
1728
|
+
Both read the same overlay, so a status change made in the panel updates
|
|
1729
|
+
the grid row (badge, tint, spinner) in the same tick, and vice versa. Its
|
|
1730
|
+
detail is a JSON fetch via `useResourceContext`, not a visit, so opening
|
|
1731
|
+
it never re-renders the list underneath.
|
|
1732
|
+
- **Sizing:** topbar follows `md`-first (`compact` inputs at 28px flush
|
|
1733
|
+
beside the default buttons); `sm` appears exactly where the doctrine
|
|
1734
|
+
allows — rail pills, row actions, the bulk bar, the peek footer. Cell
|
|
1735
|
+
inputs are `compact`.
|
|
1736
|
+
- **One `variant="primary"`** (New issue). The only irreversible action
|
|
1737
|
+
(delete — row menu and peek footer) rides `useConfirm`; moving between
|
|
1738
|
+
sprints is reversible, so it deliberately does not.
|
|
1739
|
+
|
|
1740
|
+
## Variations
|
|
1741
|
+
|
|
1742
|
+
- **Keyboard triage**: add `keyboard-navigation` to the table —
|
|
1743
|
+
`v-model:highlighted` already drives the peek — the approvals-inbox recipe
|
|
1744
|
+
is the full treatment; the overlay needs no changes, since it never cared
|
|
1745
|
+
how a commit was triggered.
|
|
1746
|
+
- **Review-before-save domains**: if the product wants a batch the user
|
|
1747
|
+
confirms (accounting lines, permissions), swap the overlay for the
|
|
1748
|
+
draft-map pattern — dirty ring, dirty-gated Save — per the
|
|
1749
|
+
[Inline Edit Playbook](../../guides/inline-edit-playbook.md); the
|
|
1750
|
+
record-form recipe's line-item editor assembles it, with `usePromiseForm`
|
|
1751
|
+
as the batch's engine on this platform. Never mix both grammars on one
|
|
1752
|
+
table.
|
|
1753
|
+
- **Undo instead of confirm**: for softer destructive-ish moves (Done →
|
|
1754
|
+
reopened), a success toast with an Undo action that visits the old value
|
|
1755
|
+
back through `persistField` is more Linear than a confirm dialog.
|
|
1756
|
+
- **Live board**: because fresh rows retire the overlay per confirmed field,
|
|
1757
|
+
a polling `router.reload({ only: ['issues', 'tabCounts'] })` (or a
|
|
1758
|
+
websocket-triggered one) is safe — a poll landing mid-save cannot destroy
|
|
1759
|
+
an in-flight edit, which is exactly the property the write-back
|
|
1760
|
+
anti-pattern lacks.
|
|
1761
|
+
- **Big directory**: if the team is hundreds of people, stop sending `team`
|
|
1762
|
+
eagerly — share it as `Inertia::optional()` and adapt it with
|
|
1763
|
+
`useLazyPropGetter`, or point `searchMembers` at a small JSON search
|
|
1764
|
+
endpoint like the records-workspace customer filter. Only the provider's
|
|
1765
|
+
body changes.
|