bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +230 -91
- package/bin/bitboss-ui-mcp.mjs +368 -142
- package/bin/bitboss-ui.mjs +24 -2073
- package/bin/cli.mjs +1922 -0
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAlert.md +16 -12
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +3 -3
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBadgeButton.md +1 -1
- package/dist/ai/BbBaseButton.md +1 -1
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +63 -10
- package/dist/ai/BbCalendar.md +15 -2
- package/dist/ai/BbCarousel.md +1093 -0
- package/dist/ai/BbCheckbox.md +28 -8
- package/dist/ai/BbCheckboxGroup.md +65 -32
- package/dist/ai/BbColorInput.md +18 -15
- package/dist/ai/BbColorPalette.md +9 -6
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +25 -22
- package/dist/ai/BbDatePicker.md +12 -6
- package/dist/ai/BbDatePickerInput.md +29 -18
- package/dist/ai/BbDialog.md +11 -10
- package/dist/ai/BbDropdown.md +36 -29
- package/dist/ai/BbDropdownButton.md +21 -21
- package/dist/ai/BbDropzone.md +5 -16
- package/dist/ai/BbForm.md +14 -8
- package/dist/ai/BbHost.md +20 -14
- package/dist/ai/BbHoverCard.md +2 -2
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +20 -16
- package/dist/ai/BbOffCanvas.md +15 -10
- package/dist/ai/BbPagination.md +15 -6
- package/dist/ai/BbPopover.md +16 -9
- package/dist/ai/BbRadio.md +30 -9
- package/dist/ai/BbRadioGroup.md +78 -35
- package/dist/ai/BbRating.md +13 -11
- package/dist/ai/BbSelect.md +84 -49
- package/dist/ai/BbSelectPopover.md +33 -31
- package/dist/ai/BbSlider.md +266 -66
- package/dist/ai/BbSpinner.md +3 -3
- package/dist/ai/BbSwitch.md +33 -9
- package/dist/ai/BbSwitchGroup.md +27 -18
- package/dist/ai/BbTable.md +28 -25
- package/dist/ai/BbTabs.md +29 -32
- package/dist/ai/BbTabsList.md +4 -4
- package/dist/ai/BbTabsRoot.md +2 -2
- package/dist/ai/BbTag.md +15 -14
- package/dist/ai/BbTextInput.md +32 -22
- package/dist/ai/BbTextarea.md +20 -18
- package/dist/ai/BbTimePicker.md +5 -5
- package/dist/ai/BbTimePickerInput.md +15 -14
- package/dist/ai/BbToast.md +72 -28
- package/dist/ai/BbTooltip.md +7 -6
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/ClearableButton.md +1 -1
- package/dist/ai/CommonField.md +5 -5
- package/dist/ai/CommonFieldInput.md +3 -2
- package/dist/ai/CommonPopover.md +4 -4
- package/dist/ai/CommonTimeSelector.md +1 -1
- package/dist/ai/ErrorIcon.md +1 -1
- package/dist/ai/FlatListBox.md +5 -4
- package/dist/ai/GroupedListBox.md +5 -4
- package/dist/ai/ListBox.md +6 -5
- package/dist/ai/OptionsContainer.md +20 -4
- package/dist/ai/WarningIcon.md +1 -1
- package/dist/ai/changelog.json +1002 -39
- package/dist/ai/components.json +117 -246
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +15 -10
- package/dist/ai/guides/ai-router.md +15 -10
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +123 -0
- package/dist/ai/guides/component-picker.md +1 -1
- package/dist/ai/guides/design-language.md +18 -14
- package/dist/ai/guides/design-tokens.md +85 -43
- package/dist/ai/guides/eslint-rules.md +21 -2
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +322 -41
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +498 -189
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-rating.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +33 -15
- package/dist/ai/guides/migration/components/bb-toast.md +10 -9
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +345 -76
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +30 -13
- package/dist/ai/guides/options-items-playbook.md +5 -1
- package/dist/ai/guides/passthrough.md +150 -135
- package/dist/ai/guides/ssr-prefill.md +7 -1
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +14 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +23 -14
- package/dist/ai/helpers/inertia/useQuery.ts +74 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +33 -1
- package/dist/ai/helpers/inertia/useRouteQuery.ts +158 -30
- package/dist/ai/index.md +5 -3
- package/dist/ai/manifest/common.json +13 -15
- package/dist/ai/manifest/components/BbAccordion.tree.json +22 -4
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAlert.tree.json +26 -3
- package/dist/ai/manifest/components/BbAsterisk.tree.json +7 -1
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbAvatar.tree.json +16 -2
- package/dist/ai/manifest/components/BbBadge.json +4 -3
- package/dist/ai/manifest/components/BbBadge.tree.json +39 -4
- package/dist/ai/manifest/components/BbBadgeButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbBaseButton.tree.json +16 -1
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +23 -2
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +21 -4
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +26 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +34 -4
- package/dist/ai/manifest/components/BbButton.json +5 -4
- package/dist/ai/manifest/components/BbButton.tree.json +78 -5
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbCalendar.tree.json +81 -5
- package/dist/ai/manifest/components/BbCarousel.json +59 -0
- package/dist/ai/manifest/components/BbCarousel.tree.json +135 -0
- package/dist/ai/manifest/components/BbCheckbox.json +5 -4
- package/dist/ai/manifest/components/BbCheckbox.tree.json +31 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.json +18 -15
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +89 -5
- package/dist/ai/manifest/components/BbCollapsible.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +7 -6
- package/dist/ai/manifest/components/BbColorInput.tree.json +49 -4
- package/dist/ai/manifest/components/BbColorPalette.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.tree.json +36 -2
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +3 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +27 -3
- package/dist/ai/manifest/components/BbDatePicker.json +7 -6
- package/dist/ai/manifest/components/BbDatePicker.tree.json +42 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +7 -6
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +86 -5
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +28 -3
- package/dist/ai/manifest/components/BbDropdown.json +14 -10
- package/dist/ai/manifest/components/BbDropdown.tree.json +80 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +14 -11
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +47 -4
- package/dist/ai/manifest/components/BbDropzone.json +2 -1
- package/dist/ai/manifest/components/BbDropzone.tree.json +27 -1
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +3 -3
- package/dist/ai/manifest/components/BbHoverCard.tree.json +18 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIcon.tree.json +7 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.tree.json +27 -1
- package/dist/ai/manifest/components/BbNumberInput.json +6 -5
- package/dist/ai/manifest/components/BbNumberInput.tree.json +40 -3
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +55 -2
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +23 -3
- package/dist/ai/manifest/components/BbPopover.json +5 -4
- package/dist/ai/manifest/components/BbPopover.tree.json +20 -2
- package/dist/ai/manifest/components/BbProgress.tree.json +9 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +30 -2
- package/dist/ai/manifest/components/BbRadioGroup.json +22 -19
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +88 -5
- package/dist/ai/manifest/components/BbRating.json +6 -5
- package/dist/ai/manifest/components/BbRating.removed.json +1 -0
- package/dist/ai/manifest/components/BbRating.tree.json +37 -2
- package/dist/ai/manifest/components/BbSelect.json +13 -11
- package/dist/ai/manifest/components/BbSelect.tree.json +70 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +17 -13
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +94 -8
- package/dist/ai/manifest/components/BbSlider.json +30 -27
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +48 -3
- package/dist/ai/manifest/components/BbSmoothHeight.tree.json +10 -1
- package/dist/ai/manifest/components/BbSpinner.tree.json +21 -2
- package/dist/ai/manifest/components/BbSwitch.json +3 -2
- package/dist/ai/manifest/components/BbSwitch.tree.json +31 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +9 -7
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +65 -3
- package/dist/ai/manifest/components/BbTable.json +10 -9
- package/dist/ai/manifest/components/BbTable.tree.json +144 -5
- package/dist/ai/manifest/components/BbTabs.json +7 -6
- package/dist/ai/manifest/components/BbTabs.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabs.tree.json +34 -3
- package/dist/ai/manifest/components/BbTabsList.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabsList.tree.json +24 -2
- package/dist/ai/manifest/components/BbTabsPanels.tree.json +16 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +3 -3
- package/dist/ai/manifest/components/BbTag.json +7 -6
- package/dist/ai/manifest/components/BbTag.tree.json +49 -4
- package/dist/ai/manifest/components/BbTextInput.json +6 -5
- package/dist/ai/manifest/components/BbTextInput.tree.json +43 -3
- package/dist/ai/manifest/components/BbTextarea.json +7 -6
- package/dist/ai/manifest/components/BbTextarea.tree.json +46 -3
- package/dist/ai/manifest/components/BbTimePicker.json +7 -6
- package/dist/ai/manifest/components/BbTimePicker.tree.json +30 -3
- package/dist/ai/manifest/components/BbTimePickerInput.json +7 -6
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +58 -6
- package/dist/ai/manifest/components/BbToast.json +3 -2
- package/dist/ai/manifest/components/BbToast.tree.json +46 -2
- package/dist/ai/manifest/components/BbTooltip.json +4 -3
- package/dist/ai/manifest/components/BbTooltip.tree.json +17 -1
- package/dist/ai/manifest/components/BbTree.tree.json +14 -1
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/ClearableButton.tree.json +8 -2
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +68 -1
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +38 -6
- package/dist/ai/manifest/components/CommonPopover.json +7 -5
- package/dist/ai/manifest/components/CommonPopover.tree.json +11 -1
- package/dist/ai/manifest/components/CommonTimeSelector.tree.json +18 -2
- package/dist/ai/manifest/components/ErrorIcon.tree.json +8 -2
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +4 -3
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +4 -3
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +4 -3
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/components/WarningIcon.tree.json +8 -2
- package/dist/ai/manifest/index.json +6 -5
- package/dist/ai/manifest/meta.json +23 -153
- package/dist/ai/manifest/types.advanced.json +78 -77
- package/dist/ai/manifest/types.api.json +29 -19
- package/dist/ai/manifest/types.wrapper.json +115 -112
- package/dist/ai/recipes/inertia/approvals-inbox.md +10 -10
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +24 -20
- package/dist/ai/recipes/inertia/onboarding.md +10 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +8 -8
- package/dist/ai/recipes/inertia/record-form.md +16 -16
- package/dist/ai/recipes/inertia/records-workspace.md +13 -12
- package/dist/ai/recipes/inertia/settings-workspace.md +16 -15
- package/dist/ai/recipes/inertia/upload-center.md +13 -13
- package/dist/ai/recipes/inertia/wizard-form.md +16 -16
- package/dist/ai/recipes/nuxt/approvals-inbox.md +13 -13
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +26 -22
- package/dist/ai/recipes/nuxt/onboarding.md +10 -10
- package/dist/ai/recipes/nuxt/ownership-atlas.md +12 -12
- package/dist/ai/recipes/nuxt/record-form.md +16 -16
- package/dist/ai/recipes/nuxt/records-workspace.md +16 -15
- package/dist/ai/recipes/nuxt/settings-workspace.md +15 -14
- package/dist/ai/recipes/nuxt/upload-center.md +15 -15
- package/dist/ai/recipes/nuxt/wizard-form.md +17 -17
- package/dist/ai/recipes/vue/approvals-inbox.md +15 -13
- package/dist/ai/recipes/vue/inline-edit-workspace.md +26 -22
- package/dist/ai/recipes/vue/onboarding.md +16 -11
- package/dist/ai/recipes/vue/ownership-atlas.md +12 -12
- package/dist/ai/recipes/vue/record-form.md +18 -16
- package/dist/ai/recipes/vue/records-workspace.md +18 -15
- package/dist/ai/recipes/vue/settings-workspace.md +18 -15
- package/dist/ai/recipes/vue/upload-center.md +15 -15
- package/dist/ai/recipes/vue/wizard-form.md +18 -16
- package/dist/ai/source/BbAccordion.md +11 -14
- package/dist/ai/source/BbAlert.md +103 -91
- package/dist/ai/source/BbAsterisk.md +6 -7
- package/dist/ai/source/BbAvatar.md +42 -41
- package/dist/ai/source/BbBadge.md +100 -89
- package/dist/ai/source/BbBadgeButton.md +80 -76
- package/dist/ai/source/BbBaseButton.md +284 -276
- package/dist/ai/source/BbBaseCheckboxIcon.md +76 -68
- package/dist/ai/source/BbBaseRadioIcon.md +80 -68
- package/dist/ai/source/BbBaseSwitchIcon.md +98 -74
- package/dist/ai/source/BbBreadcrumbs.md +76 -63
- package/dist/ai/source/BbButton.md +101 -77
- package/dist/ai/source/BbCalendar.md +166 -176
- package/dist/ai/source/BbCarousel.md +2897 -0
- package/dist/ai/source/BbCheckbox.md +230 -192
- package/dist/ai/source/BbCheckboxGroup.md +172 -79
- package/dist/ai/source/BbCollapsible.md +7 -10
- package/dist/ai/source/BbColorInput.md +256 -243
- package/dist/ai/source/BbColorPalette.md +239 -160
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +38 -32
- package/dist/ai/source/BbConfirmPortal.md +30 -26
- package/dist/ai/source/BbDatePicker.md +218 -187
- package/dist/ai/source/BbDatePickerInput.md +789 -428
- package/dist/ai/source/BbDialog.md +207 -191
- package/dist/ai/source/BbDropdown.md +326 -234
- package/dist/ai/source/BbDropdownButton.md +115 -68
- package/dist/ai/source/BbDropdownGroup.md +271 -216
- package/dist/ai/source/BbDropzone.md +101 -100
- package/dist/ai/source/BbForm.md +29 -29
- package/dist/ai/source/BbHost.md +6 -6
- package/dist/ai/source/BbHoverCard.md +34 -20
- package/dist/ai/source/BbHoverCardPortal.md +9 -12
- package/dist/ai/source/BbIcon.md +32 -30
- package/dist/ai/source/BbIndicator.md +76 -70
- package/dist/ai/source/BbNumberInput.md +334 -313
- package/dist/ai/source/BbOffCanvas.md +245 -216
- package/dist/ai/source/BbPagination.md +144 -116
- package/dist/ai/source/BbPopover.md +49 -31
- package/dist/ai/source/BbPopoverPortal.md +11 -14
- package/dist/ai/source/BbProgress.md +20 -12
- package/dist/ai/source/BbRadio.md +205 -181
- package/dist/ai/source/BbRadioGroup.md +461 -364
- package/dist/ai/source/BbRating.md +212 -177
- package/dist/ai/source/BbSelect.md +514 -482
- package/dist/ai/source/BbSelectPopover.md +497 -413
- package/dist/ai/source/BbSlider.md +1208 -777
- package/dist/ai/source/BbSmoothHeight.md +8 -9
- package/dist/ai/source/BbSpinner.md +20 -20
- package/dist/ai/source/BbSwitch.md +25 -13
- package/dist/ai/source/BbSwitchGroup.md +115 -34
- package/dist/ai/source/BbTable.md +577 -531
- package/dist/ai/source/BbTabs.md +134 -116
- package/dist/ai/source/BbTabsList.md +164 -136
- package/dist/ai/source/BbTabsPanels.md +128 -113
- package/dist/ai/source/BbTabsRoot.md +125 -110
- package/dist/ai/source/BbTag.md +286 -281
- package/dist/ai/source/BbTextInput.md +59 -50
- package/dist/ai/source/BbTextarea.md +85 -71
- package/dist/ai/source/BbTimePicker.md +145 -126
- package/dist/ai/source/BbTimePickerInput.md +383 -316
- package/dist/ai/source/BbToast.md +97 -44
- package/dist/ai/source/BbToastPortal.md +56 -36
- package/dist/ai/source/BbTooltip.md +155 -129
- package/dist/ai/source/BbTree.md +16 -12
- package/dist/ai/source/CommonField.md +94 -59
- package/dist/ai/source/CommonFieldInput.md +18 -13
- package/dist/ai/source/CommonPopover.md +28 -9
- package/dist/ai/source/CommonTimeSelector.md +41 -8
- package/dist/ai/source/FlatListBox.md +16 -5
- package/dist/ai/source/GroupedListBox.md +18 -6
- package/dist/ai/source/ListBox.md +2 -1
- package/dist/ai/source/OptionsContainer.md +82 -4
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/pause.svg_raw.js +3 -0
- package/dist/assets/svgs/play.svg_raw.js +3 -0
- package/dist/assets/svgs/star.svg_raw.js +1 -1
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/calendar-runtime.js +112 -0
- package/dist/calendars.js +83 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbAccordion/types.d.ts +5 -6
- package/dist/components/BbAlert/BbAlert.vue.d.ts +5 -4
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +52 -48
- package/dist/components/BbAlert/ptKeys.generated.d.ts +104 -0
- package/dist/components/BbAlert/types.d.ts +16 -9
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +2 -2
- package/dist/components/BbAsterisk/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbAsterisk/types.d.ts +4 -5
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +12 -0
- package/dist/components/BbAvatar/types.d.ts +5 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +4 -4
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +75 -71
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +2 -2
- package/dist/components/BbBadge/badgeButtonContext.d.ts +5 -5
- package/dist/components/BbBadge/ptKeys.generated.d.ts +160 -0
- package/dist/components/BbBadge/types.d.ts +17 -10
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +2 -2
- package/dist/components/BbBaseButton/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbBaseButton/types.d.ts +13 -6
- package/dist/components/BbBaseButton/useLinkState.d.ts +1 -1
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseCheckboxIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +12 -6
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseRadioIcon/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +12 -6
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseSwitchIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +12 -6
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +2 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBreadcrumbs/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +15 -8
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -4
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -118
- package/dist/components/BbButton/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbButton/toggleRoving.js +29 -28
- package/dist/components/BbButton/types.d.ts +29 -21
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +9 -71
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +327 -340
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +67 -65
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +76 -67
- package/dist/components/BbCalendar/calendarHost.d.ts +1 -1
- package/dist/components/BbCalendar/calendarMath.d.ts +102 -0
- package/dist/components/BbCalendar/calendarMath.js +124 -0
- package/dist/components/BbCalendar/ptKeys.generated.d.ts +248 -0
- package/dist/components/BbCalendar/types.d.ts +15 -9
- package/dist/components/BbCalendar/useCalendarContext.d.ts +43 -17
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +71 -4
- package/dist/components/BbCalendar/useCalendarGrid.js +264 -209
- package/dist/components/BbCalendar/useDayGrid.d.ts +26 -8
- package/dist/components/BbCalendar/useDayGrid.js +178 -172
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +18 -3
- package/dist/components/BbCalendar/useDayjsLocale.js +28 -28
- package/dist/components/BbCalendar/useToday.d.ts +5 -3
- package/dist/components/BbCalendar/useToday.js +22 -12
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +51 -0
- package/dist/components/BbCarousel/BbCarousel.vue.js +5 -0
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +818 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +60 -0
- package/dist/components/BbCarousel/types.d.ts +213 -0
- package/dist/components/BbCarousel/types.js +27 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +8 -6
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +123 -111
- package/dist/components/BbCheckbox/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbCheckbox/types.d.ts +30 -14
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +167 -306
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +222 -189
- package/dist/components/BbCheckboxGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +42 -28
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +4 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCollapsible/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbCollapsible/types.d.ts +5 -6
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +16 -14
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +206 -195
- package/dist/components/BbColorInput/ptKeys.generated.d.ts +656 -0
- package/dist/components/BbColorInput/types.d.ts +30 -20
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +331 -296
- package/dist/components/BbColorPalette/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbColorPalette/types.d.ts +17 -10
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -1
- package/dist/components/BbConfirm/confirmEntry.d.ts +2 -2
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +184 -0
- package/dist/components/BbConfirm/types.d.ts +14 -7
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -97
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +201 -197
- package/dist/components/BbDatePicker/ptKeys.generated.d.ts +324 -0
- package/dist/components/BbDatePicker/types.d.ts +22 -15
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +20 -309
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +793 -660
- package/dist/components/BbDatePickerInput/calendarFields.d.ts +91 -0
- package/dist/components/BbDatePickerInput/calendarFields.js +188 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +6 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.js +11 -1
- package/dist/components/BbDatePickerInput/ptKeys.generated.d.ts +1156 -0
- package/dist/components/BbDatePickerInput/types.d.ts +36 -26
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -8
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +211 -204
- package/dist/components/BbDialog/ptKeys.generated.d.ts +100 -0
- package/dist/components/BbDialog/types.d.ts +26 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +7 -6
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +399 -377
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +297 -292
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +3 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/normalizeGroups.d.ts +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +228 -0
- package/dist/components/BbDropdown/types.d.ts +65 -48
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +3 -3
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +5 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +7 -6
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +168 -144
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +616 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -23
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +7 -26
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbDropzone/ptKeys.generated.d.ts +76 -0
- package/dist/components/BbDropzone/types.d.ts +15 -8
- package/dist/components/BbForm/BbForm.vue.d.ts +5 -5
- package/dist/components/BbForm/BbFormCustomField.d.ts +1 -1
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.d.ts +4 -4
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbForm/formFields.d.ts +5 -5
- package/dist/components/BbForm/formSchema.d.ts +4 -4
- package/dist/components/BbHost/BbHost.vue.d.ts +1 -1
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +4 -4
- package/dist/components/BbHost/types.d.ts +3 -3
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +4 -4
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +169 -162
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +1 -1
- package/dist/components/BbHoverCard/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbHoverCard/types.d.ts +8 -9
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -3
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIcon/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbIcon/types.d.ts +7 -8
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +4 -4
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbIndicator/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbIndicator/types.d.ts +15 -8
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +15 -12
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +327 -311
- package/dist/components/BbNumberInput/numberDisplay.d.ts +10 -11
- package/dist/components/BbNumberInput/ptKeys.generated.d.ts +476 -0
- package/dist/components/BbNumberInput/types.d.ts +33 -22
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +408 -406
- package/dist/components/BbOffCanvas/ptKeys.generated.d.ts +88 -0
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +1 -1
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -2
- package/dist/components/BbOffCanvas/types.d.ts +30 -23
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +3 -3
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +110 -114
- package/dist/components/BbPagination/paginationFit.d.ts +1 -1
- package/dist/components/BbPagination/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbPagination/types.d.ts +16 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +121 -115
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +1 -1
- package/dist/components/BbPopover/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbPopover/types.d.ts +10 -11
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -2
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbProgress/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbProgress/types.d.ts +4 -5
- package/dist/components/BbRadio/BbRadio.vue.d.ts +8 -6
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +134 -122
- package/dist/components/BbRadio/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbRadio/types.d.ts +24 -13
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +152 -248
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +248 -215
- package/dist/components/BbRadioGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbRadioGroup/types.d.ts +41 -24
- package/dist/components/BbRating/BbRating.vue.d.ts +9 -7
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +153 -142
- package/dist/components/BbRating/ptKeys.generated.d.ts +152 -0
- package/dist/components/BbRating/types.d.ts +31 -20
- package/dist/components/BbRating/types.js +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +269 -483
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +362 -341
- package/dist/components/BbSelect/ptKeys.generated.d.ts +960 -0
- package/dist/components/BbSelect/types.d.ts +50 -37
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +23 -50
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +750 -730
- package/dist/components/BbSelectPopover/knownItems.d.ts +4 -4
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +148 -0
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +1 -1
- package/dist/components/BbSelectPopover/types.d.ts +44 -31
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +27 -86
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +414 -331
- package/dist/components/BbSlider/ptKeys.generated.d.ts +316 -0
- package/dist/components/BbSlider/types.d.ts +162 -61
- package/dist/components/BbSlider/types.js +2 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
- package/dist/components/BbSmoothHeight/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSmoothHeight/types.d.ts +5 -6
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -3
- package/dist/components/BbSpinner/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSpinner/types.d.ts +5 -6
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +6 -6
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/components/BbSwitch/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbSwitch/types.d.ts +15 -5
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -116
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +13 -10
- package/dist/components/BbSwitchGroup/ptKeys.generated.d.ts +332 -0
- package/dist/components/BbSwitchGroup/types.d.ts +14 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +13 -13
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1360 -1366
- package/dist/components/BbTable/BbTableDataRow.d.ts +4 -4
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +5 -5
- package/dist/components/BbTable/BbTableExpandRow.d.ts +2 -2
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +3 -3
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +1 -1
- package/dist/components/BbTable/gridWidgets.d.ts +1 -1
- package/dist/components/BbTable/measuredFloors.d.ts +1 -1
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +1 -1
- package/dist/components/BbTable/ptKeys.generated.d.ts +280 -0
- package/dist/components/BbTable/types.d.ts +30 -22
- package/dist/components/BbTable/utils.d.ts +5 -5
- package/dist/components/BbTable/utils.js +89 -88
- package/dist/components/BbTabs/BbTabs.vue.d.ts +41 -69
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +21 -15
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +121 -122
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +2 -2
- package/dist/components/BbTabs/ptKeys.generated.d.ts +226 -0
- package/dist/components/BbTabs/types.d.ts +41 -23
- package/dist/components/BbTag/BbTag.vue.d.ts +18 -16
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +248 -238
- package/dist/components/BbTag/ptKeys.generated.d.ts +540 -0
- package/dist/components/BbTag/types.d.ts +28 -18
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +19 -171
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +176 -165
- package/dist/components/BbTextInput/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextInput/types.d.ts +30 -21
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +19 -171
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +206 -196
- package/dist/components/BbTextarea/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextarea/types.d.ts +29 -20
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +13 -33
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +137 -136
- package/dist/components/BbTimePicker/ptKeys.generated.d.ts +80 -0
- package/dist/components/BbTimePicker/types.d.ts +19 -13
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +18 -201
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +421 -397
- package/dist/components/BbTimePickerInput/ptKeys.generated.d.ts +732 -0
- package/dist/components/BbTimePickerInput/types.d.ts +35 -23
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -2
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +60 -53
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +2 -2
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +5 -3
- package/dist/components/BbToast/ptKeys.generated.d.ts +232 -0
- package/dist/components/BbToast/types.d.ts +22 -13
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -6
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -88
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +2 -2
- package/dist/components/BbTooltip/types.d.ts +16 -9
- package/dist/components/BbTree/BbTree.vue.d.ts +7 -11
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
- package/dist/components/BbTree/context.d.ts +2 -2
- package/dist/components/BbTree/ptKeys.generated.d.ts +16 -0
- package/dist/components/BbTree/types.d.ts +5 -6
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -2
- package/dist/components/ChipsBox/types.d.ts +2 -2
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -2
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +2 -2
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -2
- package/dist/components/CommaBox/types.d.ts +2 -2
- package/dist/components/CommonField/CommonField.vue.d.ts +7 -7
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +9 -4
- package/dist/components/CommonField/messageHeightMatrix.d.ts +1 -1
- package/dist/components/CommonField/types.d.ts +18 -14
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +3 -3
- package/dist/components/CommonFieldInput/types.d.ts +4 -4
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +4 -4
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +56 -55
- package/dist/components/CommonPopover/resolvePlacement.d.ts +9 -0
- package/dist/components/CommonPopover/resolvePlacement.js +9 -0
- package/dist/components/CommonPopover/types.d.ts +5 -5
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +2 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +110 -99
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +1 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -2
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -2
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +3 -3
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +3 -3
- package/dist/components/ListBox/ListBox.vue.d.ts +2 -2
- package/dist/components/ListBox/types.d.ts +3 -3
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +101 -69
- package/dist/components/OptionsContainer/types.d.ts +8 -3
- package/dist/components/Transitions/Slide.vue.d.ts +5 -3
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +2 -2
- package/dist/composables/autoHost.d.ts +1 -1
- package/dist/composables/formSubmitLock.d.ts +5 -5
- package/dist/composables/hostOpenings.d.ts +6 -6
- package/dist/composables/hostRegistry.d.ts +2 -2
- package/dist/composables/overlayRegistry.d.ts +25 -25
- package/dist/composables/overlayRegistry.js +13 -7
- package/dist/composables/useBaseOptions.d.ts +2 -2
- package/dist/composables/useBbConfig.d.ts +5 -5
- package/dist/composables/useBbDialog.d.ts +17 -17
- package/dist/composables/useBbDialog.js +2 -1
- package/dist/composables/useBbDropdown.d.ts +1 -1
- package/dist/composables/useBbForm.d.ts +2 -2
- package/dist/composables/useBbFormField.d.ts +4 -4
- package/dist/composables/useBbOffCanvas.d.ts +6 -6
- package/dist/composables/useBbTable.d.ts +4 -4
- package/dist/composables/useBbTabs.d.ts +4 -4
- package/dist/composables/useBbTabs.js +99 -94
- package/dist/composables/useBreakpoint.d.ts +1 -1
- package/dist/composables/useCharacterCounter.d.ts +2 -2
- package/dist/composables/useChoiceIndicator.d.ts +2 -2
- package/dist/composables/useClosingInert.d.ts +1 -1
- package/dist/composables/useConfig.d.ts +3 -3
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +18 -18
- package/dist/composables/useDirection.d.ts +43 -0
- package/dist/composables/useDirection.js +12 -0
- package/dist/composables/useFormBinding.d.ts +5 -5
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/useId.d.ts +1 -1
- package/dist/composables/useItemsGetter.d.ts +3 -3
- package/dist/composables/useKeyboardInset.d.ts +1 -1
- package/dist/composables/useListboxFocus.d.ts +1 -1
- package/dist/composables/useLocale.d.ts +2 -2
- package/dist/composables/useOnDemandOpener.d.ts +3 -3
- package/dist/composables/useOverlayNavigation.d.ts +1 -1
- package/dist/composables/useOverlayYield.d.ts +1 -1
- package/dist/composables/usePassthrough.d.ts +13 -11
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useQuery.d.ts +1 -1
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +1 -1
- package/dist/composables/useSafeArea.d.ts +1 -1
- package/dist/composables/useSafeAreaInternal.d.ts +1 -1
- package/dist/composables/useSegmentedFields.d.ts +25 -0
- package/dist/composables/useSegmentedFields.js +165 -115
- package/dist/composables/useServerPrefetch.d.ts +2 -2
- package/dist/composables/useSheetSurface.d.ts +1 -1
- package/dist/composables/useSsrState.d.ts +2 -2
- package/dist/composables/useToast.d.ts +13 -5
- package/dist/composables/useToast.js +52 -38
- package/dist/composables/useTypeahead.js +22 -21
- package/dist/deprecation/ai-deprecations.json.d.ts +160 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.d.ts +1 -1
- package/dist/directives/bbColor.d.ts +1 -1
- package/dist/directives/bbDate.d.ts +1 -1
- package/dist/directives/bbDialog.d.ts +3 -3
- package/dist/directives/bbDropdown.d.ts +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/directives/bbHoverCard.d.ts +3 -3
- package/dist/directives/bbOffCanvas.d.ts +2 -2
- package/dist/directives/bbPopover.d.ts +3 -3
- package/dist/directives/bbTime.d.ts +1 -1
- package/dist/directives/bbTooltip.d.ts +4 -4
- package/dist/directives/directivePortal.d.ts +4 -4
- package/dist/directives/overlayTrigger.d.ts +4 -4
- package/dist/directives/overlayTrigger.js +2 -1
- package/dist/i18n/eraNames.d.ts +2 -0
- package/dist/i18n/eraNames.js +2013 -0
- package/dist/i18n/index.d.ts +9 -7
- package/dist/i18n/localeTags.d.ts +36 -0
- package/dist/i18n/locales/ar.json +176 -0
- package/dist/i18n/locales/cs.json +23 -3
- package/dist/i18n/locales/da.json +23 -3
- package/dist/i18n/locales/de-CH.json +23 -3
- package/dist/i18n/locales/de.json +23 -3
- package/dist/i18n/locales/el.json +23 -3
- package/dist/i18n/locales/en-GB.json +23 -3
- package/dist/i18n/locales/en.json +23 -3
- package/dist/i18n/locales/es-MX.json +23 -3
- package/dist/i18n/locales/es.json +23 -3
- package/dist/i18n/locales/fa.json +176 -0
- package/dist/i18n/locales/fi.json +23 -3
- package/dist/i18n/locales/fr.json +23 -3
- package/dist/i18n/locales/he.json +176 -0
- package/dist/i18n/locales/hu.json +23 -3
- package/dist/i18n/locales/it.json +23 -3
- package/dist/i18n/locales/ja.json +23 -3
- package/dist/i18n/locales/ko.json +23 -3
- package/dist/i18n/locales/nb.json +23 -3
- package/dist/i18n/locales/nl.json +23 -3
- package/dist/i18n/locales/pl.json +23 -3
- package/dist/i18n/locales/pt-BR.json +23 -3
- package/dist/i18n/locales/pt-PT.json +23 -3
- package/dist/i18n/locales/ro.json +23 -3
- package/dist/i18n/locales/ru.json +23 -3
- package/dist/i18n/locales/sv.json +23 -3
- package/dist/i18n/locales/tr.json +23 -3
- package/dist/i18n/locales/uk.json +23 -3
- package/dist/i18n/locales/zh-CN.json +23 -3
- package/dist/i18n/locales/zh-HK.json +23 -3
- package/dist/i18n/locales/zh-TW.json +23 -3
- package/dist/i18n/regionHints.js +22 -22
- package/dist/i18n/regions.d.ts +73 -24
- package/dist/i18n/regions.js +57 -12
- package/dist/index.d.ts +192 -190
- package/dist/index.js +55 -54
- package/dist/llms-full.txt +8848 -5872
- package/dist/llms-medium.txt +830 -506
- package/dist/llms.txt +6 -5
- package/dist/locale-blueprint.json +26 -3
- package/dist/locale-tags.js +81 -0
- package/dist/mcp-sdk.LICENSES.txt +210 -0
- package/dist/mcp-sdk.mjs +78 -0
- package/dist/nuxt-auto-imports.d.ts +1 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +5 -5
- package/dist/nuxt.js +26 -23
- package/dist/plugin.d.ts +2 -2
- package/dist/project-dts.d.ts +76 -14
- package/dist/project-dts.js +117 -63
- package/dist/setup-kit.LICENSES.txt +23 -0
- package/dist/setup-kit.mjs +9 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -3
- package/dist/types/AlertVariant.d.ts +2 -2
- package/dist/types/BadgeVariant.d.ts +2 -2
- package/dist/types/ButtonVariant.d.ts +2 -2
- package/dist/types/CheckboxVariant.d.ts +9 -6
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +25 -3
- package/dist/types/Config.d.ts +24 -110
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +2 -2
- package/dist/types/DatePickerType.d.ts +29 -2
- package/dist/types/DatePickerType.js +6 -2
- package/dist/types/DropdownItemVariant.d.ts +2 -2
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +2 -2
- package/dist/types/InputVariant.d.ts +58 -25
- package/dist/types/ItemAccessor.d.ts +7 -1
- package/dist/types/ItemProps.d.ts +3 -3
- package/dist/types/ItemsProvider.d.ts +2 -2
- package/dist/types/Placement.d.ts +7 -2
- package/dist/types/RadioVariant.d.ts +9 -6
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/ShapeErased.d.ts +1 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +2 -2
- package/dist/types/ToastVariant.d.ts +2 -2
- package/dist/types/TooltipVariant.d.ts +2 -2
- package/dist/types/fallthrough.d.ts +1 -1
- package/dist/types/passthrough.d.ts +23 -23
- package/dist/types/ptComponentMap.d.ts +29 -28
- package/dist/utilities/calendar/canonicalParts.d.ts +29 -0
- package/dist/utilities/calendar/canonicalParts.js +12 -0
- package/dist/utilities/calendar/digits.d.ts +18 -0
- package/dist/utilities/calendar/digits.js +26 -0
- package/dist/utilities/calendar/gregorian.d.ts +2 -0
- package/dist/utilities/calendar/gregorian.js +36 -0
- package/dist/utilities/calendar/index.d.ts +3 -0
- package/dist/utilities/calendar/index.js +1 -0
- package/dist/utilities/calendar/international.d.ts +19 -0
- package/dist/utilities/calendar/resolve.d.ts +32 -0
- package/dist/utilities/calendar/resolve.js +12 -0
- package/dist/utilities/calendar/runtime.d.ts +49 -0
- package/dist/utilities/calendar/types.d.ts +140 -0
- package/dist/utilities/calendar/types.js +83 -0
- package/dist/utilities/functions/convertDateValue.d.ts +15 -2
- package/dist/utilities/functions/convertDateValue.js +22 -17
- package/dist/utilities/functions/elementLabel.d.ts +1 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +1 -1
- package/dist/utilities/functions/isDateDisabled.d.ts +9 -1
- package/dist/utilities/functions/isDateDisabled.js +38 -21
- package/dist/utilities/functions/itemProps.d.ts +1 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +45 -2
- package/dist/utilities/functions/normalizeDateBound.js +52 -11
- package/dist/utilities/functions/parseSize.d.ts +2 -2
- package/dist/utilities/functions/readableValue.d.ts +1 -1
- package/dist/utilities/functions/responsiveDefault.d.ts +1 -1
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/functions/slotKey.d.ts +1 -1
- package/dist/utilities/functions/toggleInput.d.ts +1 -1
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +3 -3
- package/dist/utilities/functions/when.d.ts +1 -1
- package/dist/utilities/misc/autofocus.d.ts +2 -2
- package/dist/utilities/misc/listboxMetrics.d.ts +2 -2
- package/dist/utilities/misc/maskaDataOptions.d.ts +1 -1
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +1 -1
- package/dist/utilities/misc/ssrValue.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +43 -0
- package/dist/utils/configDefaults.js +170 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/copyData.d.ts +2 -2
- package/dist/utils/cssLayers.d.ts +1 -1
- package/dist/utils/focusVisibility.d.ts +1 -1
- package/dist/utils/injectLibraryStyles.d.ts +1 -1
- package/dist/utils/overlayEscapeStack.d.ts +1 -1
- package/dist/utils/passthrough.d.ts +5 -8
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/passthroughDeduper.d.ts +1 -1
- package/dist/utils/releasedActivator.d.ts +20 -0
- package/dist/utils/releasedActivator.js +11 -0
- package/dist/utils/versionCheck.d.ts +1 -1
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +139 -218
- package/dist/vite.js +451 -425
- package/llms.txt +6 -5
- package/package.json +51 -19
- package/scripts/README.md +2 -1
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +107 -22
- package/scripts/lib/agent-refresh.mjs +151 -0
- package/scripts/lib/agent-setup.mjs +679 -0
- package/scripts/lib/carousel-items-without-slide.mjs +263 -0
- package/scripts/lib/carousel-prop-or-local.mjs +117 -0
- package/scripts/lib/check-fix.mjs +1 -1
- package/scripts/lib/collapsible-trigger-aria.mjs +1 -1
- package/scripts/lib/css-class-check.mjs +3 -3
- package/scripts/lib/css-local-check.mjs +25 -17
- package/scripts/lib/css-surface-answer.mjs +117 -0
- package/scripts/lib/define-preset-copy.mjs +1 -1
- package/scripts/lib/distributed-alias.mjs +81 -0
- package/scripts/lib/doc-sections.mjs +12 -4
- package/scripts/lib/dropdown-default-slot.mjs +1 -1
- package/scripts/lib/eslint-disable.mjs +60 -2
- package/scripts/lib/eslint-plugin.d.ts +13 -2
- package/scripts/lib/eslint-plugin.mjs +609 -64
- package/scripts/lib/form-v-model.mjs +1 -1
- package/scripts/lib/hand-imported-styles.mjs +2 -2
- package/scripts/lib/hand-roll-hints.mjs +25 -3
- package/scripts/lib/helper-canon.mjs +4 -4
- package/scripts/lib/helpers-add.mjs +39 -24
- package/scripts/lib/hidden-label-placeholder.mjs +1 -1
- package/scripts/lib/idiom-scan.mjs +12 -11
- package/scripts/lib/is-direct-run.mjs +20 -0
- package/scripts/lib/items-provider-context.mjs +1 -1
- package/scripts/lib/linked-target.mjs +26 -2
- package/scripts/lib/local-components.mjs +2 -2
- package/scripts/lib/locale-check.mjs +109 -13
- package/scripts/lib/mcp-config.mjs +140 -75
- package/scripts/lib/mcp-sdk.mjs +199 -0
- package/scripts/lib/migrate-fix.mjs +3 -3
- package/scripts/lib/plugin-options-check.mjs +170 -0
- package/scripts/lib/pnp.mjs +165 -0
- package/scripts/lib/portal-names.mjs +4 -4
- package/scripts/lib/prefer-v-bb-dialog.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +182 -48
- package/scripts/lib/reactive-v-model.mjs +2 -2
- package/scripts/lib/redundant-item-accessor.mjs +1 -1
- package/scripts/lib/renamed-item-field.mjs +1 -1
- package/scripts/lib/renamed-slot-prop.mjs +524 -0
- package/scripts/lib/rule-registry.mjs +1 -1
- package/scripts/lib/setup-edits.mjs +1845 -0
- package/scripts/lib/setup.mjs +440 -0
- package/scripts/lib/slot-key.mjs +1 -1
- package/scripts/lib/slot-renames.mjs +3 -3
- package/scripts/lib/squashed-slot-words.mjs +1 -1
- package/scripts/lib/tab-links.mjs +2 -2
- package/scripts/lib/text-null-value.mjs +1 -1
- package/scripts/lib/toolchain-check.mjs +3 -3
- package/scripts/lib/tooling-options.mjs +87 -0
- package/scripts/lib/unimported-components.mjs +1 -1
- package/scripts/lib/unstyled-variants.mjs +1 -1
- package/scripts/lib/valid-locale.mjs +119 -0
- package/scripts/lib/validate-bb-markup.mjs +219 -115
- package/scripts/lib/wrapper-props.mjs +2 -2
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +0 -58
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +0 -28
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +0 -2
- package/dist/components/BbNumberInput/warroom/harness.d.ts +0 -217
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +0 -150
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/components/BbTable/warroom/harness.d.ts +0 -260
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utilities/functions/pipe.d.ts +0 -3
- package/dist/utilities/functions/range.js +0 -7
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
- package/scripts/lib/check-queue.mjs +0 -102
- package/scripts/lib/component-attr-targets.ts +0 -123
- package/scripts/lib/component-tree.ts +0 -648
- package/scripts/lib/consumer-install.mjs +0 -64
- package/scripts/lib/css-class-surface.mjs +0 -328
- package/scripts/lib/css-color-resolve.mjs +0 -296
- package/scripts/lib/css-comment-text.mjs +0 -16
- package/scripts/lib/design-token-manifest.mjs +0 -506
- package/scripts/lib/ensure-manifest.mjs +0 -135
- package/scripts/lib/example-checks.mjs +0 -337
- package/scripts/lib/guide-claims.mjs +0 -452
- package/scripts/lib/manifest-pointers.mjs +0 -71
- package/scripts/lib/pack.mjs +0 -55
- package/scripts/lib/public-type-exports.mjs +0 -273
- package/scripts/lib/quiet-gate.mjs +0 -385
- package/scripts/lib/recipe-excerpts.mjs +0 -98
- package/scripts/lib/swap-noun.mjs +0 -33
- package/scripts/lib/token-color-mix.mjs +0 -114
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<legend v-if="selectable" class="bb-sr-only">{{ legendText }}</legend>
|
|
12
12
|
<!-- The caption lives OUTSIDE the table role (a `caption` role is invalid
|
|
13
13
|
there for a div table) and names the table through `aria-labelledby`.
|
|
14
|
-
Not displayed, it is `hidden
|
|
14
|
+
Not displayed, it is `hidden`: still the table's name (accname
|
|
15
15
|
2B), never a second, page-text copy of it in browse mode. -->
|
|
16
16
|
<div
|
|
17
17
|
v-if="caption"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
t('table.resizeInstructions').value
|
|
39
39
|
}}</template>
|
|
40
40
|
</div>
|
|
41
|
-
<!-- Joined to a sortable header's description
|
|
41
|
+
<!-- Joined to a sortable header's description: nothing else
|
|
42
42
|
tells a screen-reader user that Shift+Enter adds the column. -->
|
|
43
43
|
<div v-if="sortHint" :id="sortInstructionsId" hidden>
|
|
44
44
|
{{ t('table.sortInstructions').value }}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<!-- The busy announcement belongs to the loading STATE, not to the
|
|
47
47
|
skeleton: it fires for a first load and for a refetch over existing rows
|
|
48
48
|
alike, and for a custom `#loading` slot that replaces the skeleton.
|
|
49
|
-
PERSISTENT and empty at rest, and OUTSIDE `role="table"
|
|
49
|
+
PERSISTENT and empty at rest, and OUTSIDE `role="table"`. It used to
|
|
50
50
|
be mounted with its text already in it, one frame before the announcement
|
|
51
51
|
was wanted, and whether a reader announces a live region that appears
|
|
52
52
|
pre-filled is reader-dependent — the robust shape is a region that is
|
|
@@ -92,23 +92,12 @@
|
|
|
92
92
|
>
|
|
93
93
|
<!-- The four-way move glyph AG Grid puts on its drag chip: "this column
|
|
94
94
|
is being moved", distinct from the sort arrow. -->
|
|
95
|
-
<
|
|
96
|
-
aria-hidden="true"
|
|
95
|
+
<BbIcon
|
|
97
96
|
class="bb-table__drag-icon"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
stroke="currentColor"
|
|
101
|
-
stroke-linecap="round"
|
|
102
|
-
stroke-linejoin="round"
|
|
103
|
-
stroke-width="2"
|
|
104
|
-
viewBox="0 0 24 24"
|
|
105
|
-
width="1em"
|
|
97
|
+
:icon="moveSvg"
|
|
98
|
+
size="1em"
|
|
106
99
|
v-bind="passthrough.dragIcon"
|
|
107
|
-
|
|
108
|
-
<path
|
|
109
|
-
d="M12 2v20M2 12h20M5 9l-3 3 3 3M9 5l3-3 3 3M15 19l-3 3-3-3M19 9l3 3-3 3"
|
|
110
|
-
/>
|
|
111
|
-
</svg>
|
|
100
|
+
/>
|
|
112
101
|
<span>{{ dragGhostLabel }}</span>
|
|
113
102
|
</div>
|
|
114
103
|
</template>
|
|
@@ -327,23 +316,14 @@
|
|
|
327
316
|
<!-- One up arrow (ascending, AG Grid convention); the desc state
|
|
328
317
|
rotates it 180° (the glyph is its own mirror), so the flip
|
|
329
318
|
between directions animates. -->
|
|
330
|
-
<
|
|
331
|
-
aria-hidden="true"
|
|
319
|
+
<BbIcon
|
|
332
320
|
class="bb-table__sort-icon"
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
stroke="currentColor"
|
|
336
|
-
stroke-linecap="round"
|
|
337
|
-
stroke-linejoin="round"
|
|
338
|
-
stroke-width="2"
|
|
339
|
-
viewBox="0 0 24 24"
|
|
340
|
-
width="1em"
|
|
321
|
+
:icon="arrowUpSvg"
|
|
322
|
+
size="1em"
|
|
341
323
|
v-bind="
|
|
342
324
|
passthrough.part('sortIcon', sortStates(header.sortOrder))
|
|
343
325
|
"
|
|
344
|
-
|
|
345
|
-
<path d="M12 20V4m-7 7l7-7l7 7" />
|
|
346
|
-
</svg>
|
|
326
|
+
/>
|
|
347
327
|
</BbBaseButton>
|
|
348
328
|
<span v-else class="bb-table-header__content">{{
|
|
349
329
|
header.label
|
|
@@ -537,7 +517,7 @@
|
|
|
537
517
|
getter (see `BodyRow`) that projects the item on first access, and a
|
|
538
518
|
destructuring pattern would resolve it for every spacer and skeleton
|
|
539
519
|
placeholder too — exactly the work the window exists to avoid. -->
|
|
540
|
-
<!--
|
|
520
|
+
<!-- the `#<key>:first` / `#<key>:last` rows, in the body so the
|
|
541
521
|
pin pass sticks their pinned cells; with rows only (they need the column
|
|
542
522
|
sizes), never under `#tbody`. -->
|
|
543
523
|
<BbTableEdgeRow
|
|
@@ -638,7 +618,11 @@
|
|
|
638
618
|
lang="ts"
|
|
639
619
|
generic="Item = any, T extends ItemKey<Item> = string & {}"
|
|
640
620
|
>
|
|
621
|
+
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
622
|
+
import moveSvg from '@/assets/svgs/move.svg?raw';
|
|
623
|
+
import arrowUpSvg from '@/assets/svgs/arrow_up.svg?raw';
|
|
641
624
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
625
|
+
import { useConfigDefaults } from '@/composables/useConfigDefaults';
|
|
642
626
|
import {
|
|
643
627
|
computed,
|
|
644
628
|
getCurrentInstance,
|
|
@@ -758,6 +742,7 @@ import type { ColumnProfile, FixedColumnConfig, TrackEstimate } from './utils';
|
|
|
758
742
|
import { createMeasuredFloors, type MeasuredColumn } from './measuredFloors';
|
|
759
743
|
import { useBbTableHost } from '../../composables/useBbTable';
|
|
760
744
|
import { useLogger } from '@/composables/useLogger';
|
|
745
|
+
import { flowsRtl, isRtl } from '@/composables/useDirection';
|
|
761
746
|
import {
|
|
762
747
|
escapeStackDepth,
|
|
763
748
|
isTopEscapeEntry,
|
|
@@ -791,11 +776,13 @@ const order = defineModel<string[]>('order', {
|
|
|
791
776
|
|
|
792
777
|
// Highlight: documented on `BbTableProps.highlighted` (a JSDoc block here
|
|
793
778
|
// would be appended to the prop's description in the manifest).
|
|
779
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the model's values, read through `item-value` (a key, a dot path or a function) and not resolved at the type level, like the public `modelValue`
|
|
794
780
|
const highlighted = defineModel<any>('highlighted', {
|
|
795
781
|
required: false,
|
|
796
782
|
default: undefined,
|
|
797
783
|
});
|
|
798
784
|
|
|
785
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the model's values, read through `item-value` (a key, a dot path or a function) and not resolved at the type level, like the public `modelValue`
|
|
799
786
|
const expandedItems = defineModel<any[]>('expandedItems', {
|
|
800
787
|
required: false,
|
|
801
788
|
default: () => [],
|
|
@@ -809,11 +796,11 @@ const props = withDefaults(
|
|
|
809
796
|
/* @vue-ignore */ FallthroughAttrs<
|
|
810
797
|
'div' | 'fieldset',
|
|
811
798
|
InternalProps<T>,
|
|
812
|
-
BbTableEvents
|
|
799
|
+
BbTableEvents<Item>
|
|
813
800
|
>
|
|
814
801
|
>(),
|
|
815
802
|
{
|
|
816
|
-
align: '
|
|
803
|
+
align: 'start',
|
|
817
804
|
columns: () => [],
|
|
818
805
|
dependencies: () => [],
|
|
819
806
|
depsDebounceTime: 0,
|
|
@@ -824,10 +811,11 @@ const props = withDefaults(
|
|
|
824
811
|
unselectedItems: () => [],
|
|
825
812
|
// Unset follows the binding: on exactly when `highlighted` is bound.
|
|
826
813
|
highlightable: undefined,
|
|
814
|
+
// Tri-state: unset lets the components map show through.
|
|
815
|
+
compact: undefined,
|
|
827
816
|
}
|
|
828
817
|
);
|
|
829
|
-
|
|
830
|
-
const emit = defineEmits<BbTableEvents>();
|
|
818
|
+
const emit = defineEmits<BbTableEvents<Item>>();
|
|
831
819
|
|
|
832
820
|
const slots = defineSlots<
|
|
833
821
|
BbTableSlots<Item> &
|
|
@@ -848,8 +836,10 @@ const slots = defineSlots<
|
|
|
848
836
|
>
|
|
849
837
|
>();
|
|
850
838
|
|
|
839
|
+
const configDefaults = useConfigDefaults('BbTable', props, { compact: false });
|
|
840
|
+
|
|
851
841
|
/**
|
|
852
|
-
* Passthrough
|
|
842
|
+
* Passthrough. `row`, `cell` and the rows'
|
|
853
843
|
* `selectIcon` are resolved per row inside BbTableDataRow through the row
|
|
854
844
|
* context (`selected` / `highlighted` / `expanded` / `disabled` are the
|
|
855
845
|
* row's); `cellColumnHeader` and `sortIcon` per header (`sortStates`).
|
|
@@ -897,7 +887,7 @@ const hasExpandSlot = ref(!!slots.expand);
|
|
|
897
887
|
const hasTbodySlot = ref(!!slots.tbody);
|
|
898
888
|
const hasTheadSlot = ref(!!slots.thead);
|
|
899
889
|
/**
|
|
900
|
-
*
|
|
890
|
+
* the provided `#<key>:first` / `#<key>:last` slot names, sampled the
|
|
901
891
|
* same way (a slot's presence is not reactive), joined so an unchanged set
|
|
902
892
|
* writes nothing.
|
|
903
893
|
*/
|
|
@@ -919,7 +909,7 @@ onBeforeUpdate(() => {
|
|
|
919
909
|
});
|
|
920
910
|
|
|
921
911
|
/**
|
|
922
|
-
* THE ROLE RULE
|
|
912
|
+
* THE ROLE RULE. The role is a promise about the keyboard, so it follows
|
|
923
913
|
* the keyboard the table actually implements:
|
|
924
914
|
*
|
|
925
915
|
* - `grid` — `keyboardNavigation` on and the table's own body (no `#tbody`,
|
|
@@ -943,7 +933,7 @@ const tableRole = computed(() =>
|
|
|
943
933
|
);
|
|
944
934
|
/** `gridcell` inside a grid / treegrid, `cell` inside a table. */
|
|
945
935
|
const cellRole = computed(() => (gridMode.value ? 'gridcell' : 'cell'));
|
|
946
|
-
/** The `rowHeader` columns' keys: their body cells are `rowheader`s
|
|
936
|
+
/** The `rowHeader` columns' keys: their body cells are `rowheader`s. */
|
|
947
937
|
const rowHeaderKeys = computed(
|
|
948
938
|
() =>
|
|
949
939
|
new Set(
|
|
@@ -1081,7 +1071,7 @@ const headerDescribedBy = (header: MappedHeader) => {
|
|
|
1081
1071
|
/** Header cells are keyboard targets when either header interaction is on. */
|
|
1082
1072
|
const headerKeyboard = computed(() => !!(props.reorderable || props.resizable));
|
|
1083
1073
|
|
|
1084
|
-
/* --- Row reorder (POC
|
|
1074
|
+
/* --- Row reorder (POC) -----------------------------------
|
|
1085
1075
|
`reorderable-rows` renders a handle column at the far left (before
|
|
1086
1076
|
`select`); dragging a handle, or lifting it with the keyboard, reports
|
|
1087
1077
|
`reorder:rows` with `{ item, from, to }` — indexes into the items the table
|
|
@@ -1255,7 +1245,7 @@ watch(
|
|
|
1255
1245
|
const declaredKeys = computed(() => props.columns.map((c) => String(c.key)));
|
|
1256
1246
|
|
|
1257
1247
|
/**
|
|
1258
|
-
*
|
|
1248
|
+
* the declared keys of columns with `reorderable: false`. They render
|
|
1259
1249
|
* at their declared slot whatever the model says, and no move crosses them.
|
|
1260
1250
|
*/
|
|
1261
1251
|
const lockedColumnKeys = computed(
|
|
@@ -1302,7 +1292,7 @@ const orderedColumns = computed(() => {
|
|
|
1302
1292
|
const columns = visibleColumns.value;
|
|
1303
1293
|
const raw = dragOrder.value ?? order.value;
|
|
1304
1294
|
if (!raw.length) return columns;
|
|
1305
|
-
//
|
|
1295
|
+
// an external write that moves a locked column still renders it at
|
|
1306
1296
|
// its declared slot; the model is not rewritten.
|
|
1307
1297
|
const model = lockedColumnKeys.value.size ? lockedOrderOf(raw) : raw;
|
|
1308
1298
|
const ordered = orderColumns(columns, model);
|
|
@@ -1343,7 +1333,7 @@ const nextColumnOrder = (key: string, toIndex: number): string[] | null => {
|
|
|
1343
1333
|
};
|
|
1344
1334
|
|
|
1345
1335
|
/**
|
|
1346
|
-
*
|
|
1336
|
+
* `toIndex` clamped to the slots between the locked columns around
|
|
1347
1337
|
* `key` in render order; `null` when `key` is itself locked.
|
|
1348
1338
|
*/
|
|
1349
1339
|
const clampToLocks = (key: string, toIndex: number): number | null => {
|
|
@@ -1490,7 +1480,7 @@ const onHeaderKeydown = async (event: KeyboardEvent, key: string) => {
|
|
|
1490
1480
|
// Keys typed into an affix control keep their meaning; the built-in sort
|
|
1491
1481
|
// button (focused by a mouse click) shares the cell's grammar.
|
|
1492
1482
|
if (target !== cell && !target.closest('.bb-table-sort')) return;
|
|
1493
|
-
const rtl =
|
|
1483
|
+
const rtl = isRtl(cell);
|
|
1494
1484
|
// Alt + Arrow resizes (AG Grid's chord); every other Alt/Cmd/Ctrl chord
|
|
1495
1485
|
// keeps its platform meaning (browser back/forward, document top/bottom).
|
|
1496
1486
|
if (event.altKey && !event.ctrlKey && !event.metaKey) {
|
|
@@ -1554,7 +1544,7 @@ const onHeaderKeydown = async (event: KeyboardEvent, key: string) => {
|
|
|
1554
1544
|
activeHeaderKey.value = key;
|
|
1555
1545
|
await nextTick();
|
|
1556
1546
|
focusMovedHeader(key, inGrid);
|
|
1557
|
-
//
|
|
1547
|
+
// an app that applies the model after an `await` (save, then write)
|
|
1558
1548
|
// re-renders the columns AFTER this tick, and Vue's keyed move blurs the
|
|
1559
1549
|
// cell it detaches. Remember the move, so that re-render can put focus back.
|
|
1560
1550
|
// Already applied (a synchronous model, or unbound): nothing to wait for.
|
|
@@ -1589,7 +1579,7 @@ const focusMovedHeader = (key: string, inGrid: boolean) => {
|
|
|
1589
1579
|
};
|
|
1590
1580
|
|
|
1591
1581
|
/**
|
|
1592
|
-
*
|
|
1582
|
+
* the keyboard move still waiting for the app to apply it. Only THIS
|
|
1593
1583
|
* move can pull focus back, only within `PENDING_MOVE_MS`, only once the
|
|
1594
1584
|
* rendered order puts its column where the move sent it, and only if focus is
|
|
1595
1585
|
* still the table's (on it, or dropped to `<body>` by the keyed move). An
|
|
@@ -1977,7 +1967,7 @@ const onResizerPointerDown = (event: PointerEvent, key: string) => {
|
|
|
1977
1967
|
nextKey && nextCell
|
|
1978
1968
|
? { key: nextKey, startWidth: nextCell.getBoundingClientRect().width }
|
|
1979
1969
|
: null,
|
|
1980
|
-
rtl:
|
|
1970
|
+
rtl: flowsRtl(cell),
|
|
1981
1971
|
};
|
|
1982
1972
|
resizingKey.value = key;
|
|
1983
1973
|
document.addEventListener('pointermove', onResizePointerMove);
|
|
@@ -2127,7 +2117,7 @@ const positionGhost = (x: number, y: number) => {
|
|
|
2127
2117
|
* first because they paint over their scrolled siblings.
|
|
2128
2118
|
*
|
|
2129
2119
|
* The dragged column takes the slot of whichever header the pointer is
|
|
2130
|
-
* INSIDE, the moment it enters it (
|
|
2120
|
+
* INSIDE, the moment it enters it (no midpoint —
|
|
2131
2121
|
* a header with a short label and wide whitespace must react as soon as the
|
|
2132
2122
|
* pointer is in its area). Stability with unequal widths comes from the
|
|
2133
2123
|
* direction gate: after a swap the displaced header sits on the other side
|
|
@@ -2182,7 +2172,7 @@ const placeDraggedColumn = (rawX: number) => {
|
|
|
2182
2172
|
toIndex = rendered.indexOf(targetKey);
|
|
2183
2173
|
}
|
|
2184
2174
|
if (toIndex < 0) return;
|
|
2185
|
-
//
|
|
2175
|
+
// a drop past a locked column stops at it.
|
|
2186
2176
|
toIndex = clampToLocks(drag.key, toIndex) ?? from;
|
|
2187
2177
|
if (toIndex === from) return;
|
|
2188
2178
|
const after = toIndex > from;
|
|
@@ -2296,7 +2286,7 @@ const startDrag = () => {
|
|
|
2296
2286
|
}
|
|
2297
2287
|
drag.row.addEventListener('lostpointercapture', onLostPointerCapture);
|
|
2298
2288
|
drag.base = lockedOrderOf(order.value);
|
|
2299
|
-
drag.rtl =
|
|
2289
|
+
drag.rtl = flowsRtl(drag.row);
|
|
2300
2290
|
drag.scrollport = resolveScrollport();
|
|
2301
2291
|
drag.lastMoveX = drag.x0;
|
|
2302
2292
|
drag.target = null;
|
|
@@ -2398,7 +2388,7 @@ const onHeaderPointerDown = (event: PointerEvent) => {
|
|
|
2398
2388
|
const key = cell.dataset.columnKey;
|
|
2399
2389
|
const column = orderedColumns.value.find((c) => String(c.key) === key);
|
|
2400
2390
|
if (!column) return;
|
|
2401
|
-
//
|
|
2391
|
+
// a locked column's header is not a grab surface (a click sorts).
|
|
2402
2392
|
if (lockedColumnKeys.value.has(key)) return;
|
|
2403
2393
|
|
|
2404
2394
|
drag = {
|
|
@@ -2456,7 +2446,7 @@ const { data: highlightedIndexedByHash } = useIndexById({
|
|
|
2456
2446
|
});
|
|
2457
2447
|
|
|
2458
2448
|
/*
|
|
2459
|
-
* Declared up here, not beside the expand controllers that use it
|
|
2449
|
+
* Declared up here, not beside the expand controllers that use it:
|
|
2460
2450
|
* `flatRows` reads it, and `watch(bodyRows)` evaluates `flatRows` during
|
|
2461
2451
|
* setup. With rows already present at setup (items the server resolved),
|
|
2462
2452
|
* a later declaration threw "Cannot access … before initialization" on
|
|
@@ -2466,7 +2456,7 @@ const { data: expandedItemsIndexedByHash } = useIndexById({
|
|
|
2466
2456
|
items: expandedItems,
|
|
2467
2457
|
});
|
|
2468
2458
|
|
|
2469
|
-
// Row reorder
|
|
2459
|
+
// Row reorder: a row expanded or collapsed while a
|
|
2470
2460
|
// row drag or keyboard lift runs changes the units under it — the drag ends,
|
|
2471
2461
|
// nothing is emitted.
|
|
2472
2462
|
watch(
|
|
@@ -2649,7 +2639,7 @@ const { state: contextState, isReady: contextIsReady } = useBbTableHost(
|
|
|
2649
2639
|
sort.value = value;
|
|
2650
2640
|
},
|
|
2651
2641
|
},
|
|
2652
|
-
//
|
|
2642
|
+
// the column order, like `sort` — a "Columns" menu outside the
|
|
2653
2643
|
// table reads and resets it by id.
|
|
2654
2644
|
order: {
|
|
2655
2645
|
get: () => order.value,
|
|
@@ -3100,7 +3090,7 @@ const columnIntervals = computed(() => {
|
|
|
3100
3090
|
}
|
|
3101
3091
|
// An overflow sits past the parent's edge, not in its order: it leaves
|
|
3102
3092
|
// the cursor where it was, or every later claim would read as "before
|
|
3103
|
-
// the cursor" and be demoted with it
|
|
3093
|
+
// the cursor" and be demoted with it.
|
|
3104
3094
|
if (!interval.overflow) cursor = Math.max(cursor, interval.end);
|
|
3105
3095
|
return interval;
|
|
3106
3096
|
});
|
|
@@ -3240,7 +3230,7 @@ const fillColumnIndex = computed(() => {
|
|
|
3240
3230
|
// folded into the edge columns as the structural offset, keeping the table
|
|
3241
3231
|
// aligned to the parent. `offsetStartValue` becomes the first column's padding.
|
|
3242
3232
|
/*
|
|
3243
|
-
* Nested geometry — the decision tree
|
|
3233
|
+
* Nested geometry — the decision tree.
|
|
3244
3234
|
*
|
|
3245
3235
|
* Every table publishes three kinds of rail: `select` = the START REGION
|
|
3246
3236
|
* (everything left of the first content column), `0…N-1` = the pure content
|
|
@@ -3461,7 +3451,7 @@ const parentTracksPublished = computed(
|
|
|
3461
3451
|
* length — `toLength()` passes these through verbatim. They size the track
|
|
3462
3452
|
* directly and must never be wrapped in `calc()`/`minmax()`: `minmax(0, 1fr)`
|
|
3463
3453
|
* used as the floor of the all-frozen `minmax(<width>, <n>fr)` made the
|
|
3464
|
-
* template invalid, and an invalid template drops EVERY track
|
|
3454
|
+
* template invalid, and an invalid template drops EVERY track.
|
|
3465
3455
|
*/
|
|
3466
3456
|
const isTrackKeyword = (value: string): boolean =>
|
|
3467
3457
|
/^(auto|min-content|max-content|(fit-content|minmax)\(.*\)|-?[\d.]+fr)$/.test(
|
|
@@ -3887,7 +3877,7 @@ const measureTracks = () => {
|
|
|
3887
3877
|
const signature = `${columnOrderKey.value}|${joined}`;
|
|
3888
3878
|
// A pin config the pin watch could not apply (the table was hidden then)
|
|
3889
3879
|
// is still owed even when the tracks match the last publish — a re-show
|
|
3890
|
-
// changes no track
|
|
3880
|
+
// changes no track.
|
|
3891
3881
|
const pinsOwed = fixedColumnsKey.value !== appliedPinsKey;
|
|
3892
3882
|
if (signature === publishedTracks) {
|
|
3893
3883
|
if (pinsOwed) applyPins(root, resolved);
|
|
@@ -4068,6 +4058,7 @@ watch(
|
|
|
4068
4058
|
* text fills a template (`Select {0}`, `{0} auswählen`, `{0}を選択`), so each
|
|
4069
4059
|
* locale puts the verb where its grammar wants it.
|
|
4070
4060
|
*/
|
|
4061
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the row arrives from the table's row projection erased (`MappedItem.item`) and goes to the typed `accessibleLabel` as is
|
|
4071
4062
|
const getAccessibleLabel = (columns: MappedCell[], item: any) =>
|
|
4072
4063
|
props.accessibleLabel
|
|
4073
4064
|
? props.accessibleLabel(columns, item)
|
|
@@ -4076,7 +4067,7 @@ const getAccessibleLabel = (columns: MappedCell[], item: any) =>
|
|
|
4076
4067
|
const containerTag = computed(() => (props.selectable ? 'fieldset' : 'div'));
|
|
4077
4068
|
|
|
4078
4069
|
/**
|
|
4079
|
-
* The fieldset's accessible name
|
|
4070
|
+
* The fieldset's accessible name. `legend` is the specific,
|
|
4080
4071
|
* consumer-authored source; without it we reuse `caption` (already
|
|
4081
4072
|
* describing the table's content) rather than leave the fieldset nameless;
|
|
4082
4073
|
* only when NEITHER is set does it fall back to a generic localized string.
|
|
@@ -4116,7 +4107,7 @@ const hasProvidedAccessibilityData = computed(
|
|
|
4116
4107
|
const containerClass = computed(() => ({
|
|
4117
4108
|
'bb-table': true,
|
|
4118
4109
|
[`bb-table--align-${props.align}`]: true,
|
|
4119
|
-
'bb-table--compact':
|
|
4110
|
+
'bb-table--compact': configDefaults.compact,
|
|
4120
4111
|
'bb-table--reorderable': !!props.reorderable,
|
|
4121
4112
|
'bb-table--rows-reorderable': rowDragActive.value,
|
|
4122
4113
|
'bb-table--resizable': canResize.value,
|
|
@@ -4137,7 +4128,7 @@ const containerClass = computed(() => ({
|
|
|
4137
4128
|
'bb-table--overflow-left': overflowLeft.value,
|
|
4138
4129
|
'bb-table--overflow-right': overflowRight.value,
|
|
4139
4130
|
// A side with pinned columns: its cue is the pinned edge's strip, not the
|
|
4140
|
-
// mask
|
|
4131
|
+
// mask.
|
|
4141
4132
|
'bb-table--pinned-left': pinnedLeft.value,
|
|
4142
4133
|
'bb-table--pinned-right': pinnedRight.value,
|
|
4143
4134
|
'scrollbar-border': true,
|
|
@@ -4174,8 +4165,8 @@ const { hasPrefilled, whenPrefilled } = usePrefill({
|
|
|
4174
4165
|
clientReproducible,
|
|
4175
4166
|
trigger: true,
|
|
4176
4167
|
fn: async () => {
|
|
4177
|
-
// The table has no search field: no `query` in the context
|
|
4178
|
-
// `pruneIncoherent` runs on an APPLIED result only
|
|
4168
|
+
// The table has no search field: no `query` in the context.
|
|
4169
|
+
// `pruneIncoherent` runs on an APPLIED result only: a
|
|
4179
4170
|
// superseded or failed load did not write the rows it would prune against.
|
|
4180
4171
|
const outcome = await getter(undefined, 'initial', contextState.selected);
|
|
4181
4172
|
if (outcome === 'applied') pruneIncoherent();
|
|
@@ -4204,7 +4195,7 @@ const { options, baseOptions } = useBaseOptions({
|
|
|
4204
4195
|
});
|
|
4205
4196
|
|
|
4206
4197
|
/**
|
|
4207
|
-
*
|
|
4198
|
+
* the body shows its empty row (no row, the load settled), for the
|
|
4208
4199
|
* `#thead` / `#tfoot` scopes.
|
|
4209
4200
|
*/
|
|
4210
4201
|
const tableEmpty = computed(() => !loading.value && !options.value.length);
|
|
@@ -4214,7 +4205,7 @@ const tableEmpty = computed(() => !loading.value && !options.value.length);
|
|
|
4214
4205
|
watch(baseOptions, () => rowReorder.sync(), { flush: 'post' });
|
|
4215
4206
|
|
|
4216
4207
|
/**
|
|
4217
|
-
*
|
|
4208
|
+
* which edge rows render. A row exists while a RENDERED column has its
|
|
4218
4209
|
* `#<key>:first` / `#<key>:last` slot (a hidden column's slot creates
|
|
4219
4210
|
* nothing), and only over rows: the empty state and the first-load skeleton
|
|
4220
4211
|
* show neither (the cells need the column sizes), a refetch over rows keeps
|
|
@@ -4272,8 +4263,8 @@ useHashedWatcher(
|
|
|
4272
4263
|
if (!hasPrefilled.value) {
|
|
4273
4264
|
return;
|
|
4274
4265
|
}
|
|
4275
|
-
// A page or page-size move alone reports `'pagination'
|
|
4276
|
-
//
|
|
4266
|
+
// A page or page-size move alone reports `'pagination'`;
|
|
4267
|
+
// a `dependencies` / `items` change, with or without a page
|
|
4277
4268
|
// move, reports `'dependencies'`.
|
|
4278
4269
|
const changed = (index: number) =>
|
|
4279
4270
|
hash(value?.[index]) !== hash(oldValue?.[index]);
|
|
@@ -4304,6 +4295,7 @@ const pruneIncoherent = () => {
|
|
|
4304
4295
|
const isCoherent = (value: unknown) => rowHashes.has(hash(value));
|
|
4305
4296
|
|
|
4306
4297
|
if (props.multiple) {
|
|
4298
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the model's values, read through `item-value` (a key, a dot path or a function) and not resolved at the type level, like the public `modelValue`
|
|
4307
4299
|
const selected: any[] = contextState.selected ?? [];
|
|
4308
4300
|
if (!selected.every(isCoherent)) {
|
|
4309
4301
|
contextState.selected = selected.filter(isCoherent);
|
|
@@ -4331,7 +4323,7 @@ const pruneIncoherent = () => {
|
|
|
4331
4323
|
|
|
4332
4324
|
/**
|
|
4333
4325
|
* A cell's value as the table shows it: formatter, then placeholder. `kind`
|
|
4334
|
-
* names what came out
|
|
4326
|
+
* names what came out: a `value`, the column's `placeholder`, or
|
|
4335
4327
|
* nothing (`null`: a nil result and no placeholder).
|
|
4336
4328
|
*/
|
|
4337
4329
|
const cellResultOf = (
|
|
@@ -4357,7 +4349,7 @@ const mapColumnToCell = (
|
|
|
4357
4349
|
): MappedCell => {
|
|
4358
4350
|
const content = () => result().content;
|
|
4359
4351
|
const slotName = slotNamesByKey.value[column.key];
|
|
4360
|
-
const align = column.align ?? '
|
|
4352
|
+
const align = column.align ?? 'start';
|
|
4361
4353
|
|
|
4362
4354
|
return {
|
|
4363
4355
|
align,
|
|
@@ -4396,7 +4388,7 @@ const mapColumnToCell = (
|
|
|
4396
4388
|
};
|
|
4397
4389
|
|
|
4398
4390
|
/**
|
|
4399
|
-
* CONTENT-ESTIMATED FLOORS
|
|
4391
|
+
* CONTENT-ESTIMATED FLOORS. An unsized column of a root table is an
|
|
4400
4392
|
* `auto` track, whose minimum is the longest word in it: a long description
|
|
4401
4393
|
* collapses to a ribbon of one word per line while an email next to it
|
|
4402
4394
|
* refuses to shrink, and a table of many columns overflows for no reason.
|
|
@@ -4534,7 +4526,7 @@ const columnEstimates = computed(() => {
|
|
|
4534
4526
|
const profiles = columnProfiles.value;
|
|
4535
4527
|
const padEm = floorMetrics.value?.padEm ?? 1.5;
|
|
4536
4528
|
const headerType = floorMetrics.value?.head;
|
|
4537
|
-
// Before
|
|
4529
|
+
// Before the floors were figured in em of the table root (16px),
|
|
4538
4530
|
// not of the body text: the old floor AS IT RENDERED is the one a table
|
|
4539
4531
|
// fitted at, so the balance rule ("a table that fitted must not start to
|
|
4540
4532
|
// scroll", see `fitFloors`) compares against that.
|
|
@@ -4562,7 +4554,7 @@ const columnEstimates = computed(() => {
|
|
|
4562
4554
|
measured.labelOf(key, arrowEm)
|
|
4563
4555
|
);
|
|
4564
4556
|
estimate.squeeze = (estimate.squeeze - legacyPadEm) * legacyScale + padEm;
|
|
4565
|
-
// Only our own label wraps
|
|
4557
|
+
// Only our own label wraps: a header slot or an affix keeps
|
|
4566
4558
|
// its heading on one line, so the fit must not count on two.
|
|
4567
4559
|
if (!ownsHeading(column)) {
|
|
4568
4560
|
estimate.labelWrap = estimate.label;
|
|
@@ -4625,7 +4617,7 @@ const fluidColumnKeys = computed(
|
|
|
4625
4617
|
* column its wish, in `--bb-fs` (the body text's size, the estimate's em).
|
|
4626
4618
|
*/
|
|
4627
4619
|
/**
|
|
4628
|
-
* The header's type, read on the client (engines gate
|
|
4620
|
+
* The header's type, read on the client (engines gate): a
|
|
4629
4621
|
* `header-row-class` with letter-spacing, a larger size or `uppercase` made
|
|
4630
4622
|
* the label wider than its estimate, clipped by 14px off Chromium.
|
|
4631
4623
|
*/
|
|
@@ -4681,7 +4673,7 @@ const holdClass = computed(() => {
|
|
|
4681
4673
|
? `bb-table__table--hold-${hold}`
|
|
4682
4674
|
: undefined;
|
|
4683
4675
|
});
|
|
4684
|
-
/** Headings given two lines so the table fits
|
|
4676
|
+
/** Headings given two lines so the table fits: `--wrap`. */
|
|
4685
4677
|
const wrapLabelKeys = computed(() => fittedFloors.value.wrapLabels);
|
|
4686
4678
|
|
|
4687
4679
|
/** Header style per estimated column: `--floor`, the spacer's width. */
|
|
@@ -4887,7 +4879,7 @@ onBeforeUnmount(() => {
|
|
|
4887
4879
|
});
|
|
4888
4880
|
|
|
4889
4881
|
/**
|
|
4890
|
-
* THE SCROLL CUE
|
|
4882
|
+
* THE SCROLL CUE. A table wider than its box used to give no sign
|
|
4891
4883
|
* of it on a phone — a column cut at the right edge was the only hint. Each
|
|
4892
4884
|
* side with content hidden past it now carries a state class
|
|
4893
4885
|
* (`--overflow-left` / `--overflow-right`), and the CSS fades the content at
|
|
@@ -4902,7 +4894,7 @@ onBeforeUnmount(() => {
|
|
|
4902
4894
|
* pinned columns on a side the fade starts at their inner edge (`--pin-l` /
|
|
4903
4895
|
* `--pin-r`, published here).
|
|
4904
4896
|
*
|
|
4905
|
-
* A side WITH pinned columns is not masked
|
|
4897
|
+
* A side WITH pinned columns is not masked: the mask faded the row
|
|
4906
4898
|
* tints in its band, so a hovered or highlighted row showed a pale strip
|
|
4907
4899
|
* beside the opaque pinned cell. There the root carries `--pinned-left` /
|
|
4908
4900
|
* `--pinned-right`, and the innermost pinned cell (`data-pin-edge`, stamped
|
|
@@ -4965,7 +4957,7 @@ const readOverflow = () => {
|
|
|
4965
4957
|
overflowRange = isInheriting.value
|
|
4966
4958
|
? 0
|
|
4967
4959
|
: container.scrollWidth - container.clientWidth;
|
|
4968
|
-
overflowRtl =
|
|
4960
|
+
overflowRtl = flowsRtl(container);
|
|
4969
4961
|
scrollable.value =
|
|
4970
4962
|
!isInheriting.value &&
|
|
4971
4963
|
(overflowRange > 1 || container.scrollHeight - container.clientHeight > 1);
|
|
@@ -4988,7 +4980,7 @@ const readOverflow = () => {
|
|
|
4988
4980
|
};
|
|
4989
4981
|
|
|
4990
4982
|
/**
|
|
4991
|
-
* The scroller's keyboard stop (engines gate
|
|
4983
|
+
* The scroller's keyboard stop (engines gate). Chromium makes a
|
|
4992
4984
|
* scroller a tab stop only when nothing inside can take focus; Firefox makes
|
|
4993
4985
|
* any scroller one (a `keyboardNavigation` table had TWO stops, the root and
|
|
4994
4986
|
* the grid's cell); WebKit never does (an overflowing plain table could not
|
|
@@ -5065,8 +5057,8 @@ onBeforeUnmount(() => {
|
|
|
5065
5057
|
|
|
5066
5058
|
const mappedHeaders = computed(() =>
|
|
5067
5059
|
orderedColumns.value.map((column: BbTableColumn<Item>): MappedHeader => {
|
|
5068
|
-
const align = column.align ?? '
|
|
5069
|
-
// Key first
|
|
5060
|
+
const align = column.align ?? 'start';
|
|
5061
|
+
// Key first: `#<key>:header`, never the table-wide
|
|
5070
5062
|
// `#header:prepend` / `#header:append`, whatever the key.
|
|
5071
5063
|
const slotName = `${slotNamesByKey.value[column.key]}:header`;
|
|
5072
5064
|
// The live sort model wins over the static `sorted` column flag.
|
|
@@ -5440,7 +5432,7 @@ const mappedItemAt = (row: FlatRow): MappedItem => {
|
|
|
5440
5432
|
return mapped;
|
|
5441
5433
|
};
|
|
5442
5434
|
|
|
5443
|
-
/* --- Grid tab stop
|
|
5435
|
+
/* --- Grid tab stop -------------------------------------------------
|
|
5444
5436
|
Under `role="grid"` / `role="treegrid"` (`tableRole`) the table is ONE tab
|
|
5445
5437
|
stop, a roving tabindex over its cells (and, in a treegrid, its rows). The
|
|
5446
5438
|
state lives here, ahead of the virtualizer, because the virtualizer's range
|
|
@@ -5449,7 +5441,7 @@ const mappedItemAt = (row: FlatRow): MappedItem => {
|
|
|
5449
5441
|
|
|
5450
5442
|
/**
|
|
5451
5443
|
* The grammar's ids of the rows that are not body rows: the header row and the
|
|
5452
|
-
*
|
|
5444
|
+
* Edge rows (`#<key>:first` / `#<key>:last`). Body rows are their
|
|
5453
5445
|
* flat index, `0` and up.
|
|
5454
5446
|
*/
|
|
5455
5447
|
const HEADER_ROW = -1;
|
|
@@ -5584,12 +5576,12 @@ const flatRows = computed<FlatRow[]>(() => {
|
|
|
5584
5576
|
let expandedRows = 0;
|
|
5585
5577
|
const indexPageOffset =
|
|
5586
5578
|
((contextState.page ?? 0) - 1) * (contextState.perPage ?? 0);
|
|
5587
|
-
// The header row, and the `first` edge row when there is one
|
|
5579
|
+
// The header row, and the `first` edge row when there is one.
|
|
5588
5580
|
const headRowOffset = 1 + Number(edgeRows.value.first);
|
|
5589
5581
|
baseOptions.value.forEach((base, index) => {
|
|
5590
5582
|
// `in`, not `[hash] ?? false`: the index stores the VALUE, so an item whose
|
|
5591
5583
|
// `item-value` is `0` (or `''`, or `false`) indexed to a falsy hit and read
|
|
5592
|
-
// as "not expanded" — the row simply never opened
|
|
5584
|
+
// as "not expanded" — the row simply never opened. Highlight and
|
|
5593
5585
|
// selection already test membership rather than truthiness.
|
|
5594
5586
|
const expanded = base.valueHash in expandedItemsIndexedByHash.value;
|
|
5595
5587
|
const rowIndex = indexPageOffset + headRowOffset + index + 1 + expandedRows;
|
|
@@ -5705,7 +5697,7 @@ const syncVirtualScroller = () => {
|
|
|
5705
5697
|
el = el.parentElement;
|
|
5706
5698
|
}
|
|
5707
5699
|
}
|
|
5708
|
-
// The data rows start below the `first` edge row
|
|
5700
|
+
// The data rows start below the `first` edge row: its LAYOUT
|
|
5709
5701
|
// height, which a stuck row keeps.
|
|
5710
5702
|
const firstRow = body.querySelector<HTMLElement>(
|
|
5711
5703
|
':scope > .bb-table__edge-row--first'
|
|
@@ -5719,7 +5711,7 @@ const syncVirtualScroller = () => {
|
|
|
5719
5711
|
(scroller as HTMLElement).getBoundingClientRect().top +
|
|
5720
5712
|
(scroller as HTMLElement).scrollTop;
|
|
5721
5713
|
// Assign only on a real change. This is what makes the synchronous call in
|
|
5722
|
-
// the container's ResizeObserver safe
|
|
5714
|
+
// the container's ResizeObserver safe: resolving to the same scroller
|
|
5723
5715
|
// and the same margin writes nothing, so it triggers no render, so it cannot
|
|
5724
5716
|
// resize the box that just notified us — which is how a ResizeObserver loop
|
|
5725
5717
|
// starts.
|
|
@@ -5792,7 +5784,7 @@ let virtualFlushFrame = 0;
|
|
|
5792
5784
|
*
|
|
5793
5785
|
* THE TRIGGER IS NOT A VELOCITY. It used to be — 6px/ms — and a brisk
|
|
5794
5786
|
* two-finger drag crossed it on a machine that had no trouble keeping up,
|
|
5795
|
-
* which is the whole of the owner's complaint
|
|
5787
|
+
* which is the whole of the owner's complaint. What matters
|
|
5796
5788
|
* is not how fast the reader scrolls but whether THIS table, on THIS machine,
|
|
5797
5789
|
* with THIS row shape, can put a window on screen before the scroll has
|
|
5798
5790
|
* carried it away. Both halves of that are measured, not assumed:
|
|
@@ -5881,7 +5873,7 @@ const noteVirtualScroll = (offset: number) => {
|
|
|
5881
5873
|
* every entry to the end — O(rows). A mean over a list whose rows are 32px and
|
|
5882
5874
|
* 114px lands near 44 and therefore matches NOTHING, so every row scrolled into
|
|
5883
5875
|
* view for the first time paid that rebuild: at 50,000 rows a drag stalled
|
|
5884
|
-
* 300–460ms (
|
|
5876
|
+
* 300–460ms (named by the CPU profile as `Virtualizer.getMeasurements`).
|
|
5885
5877
|
* The mode matches the majority exactly — a uniform table then never disagrees
|
|
5886
5878
|
* at all, and the 32/114 table disagrees only on the tall minority. Rounded
|
|
5887
5879
|
* because a measured height is a whole number of device pixels and a fractional
|
|
@@ -5910,7 +5902,7 @@ const syncVirtualMean = () => {
|
|
|
5910
5902
|
virtualMeanCacheSize = cache.size;
|
|
5911
5903
|
// Latched (below): the estimate no longer moves until the row list changes,
|
|
5912
5904
|
// so the tally would be computed only to be thrown away — a full walk of a
|
|
5913
|
-
// cache that grows with every row scrolled into view
|
|
5905
|
+
// cache that grows with every row scrolled into view. The
|
|
5914
5906
|
// placeholder height still follows on this cadence.
|
|
5915
5907
|
if (virtualEstimateLatched) {
|
|
5916
5908
|
syncPlaceholderRowHeight();
|
|
@@ -6144,6 +6136,7 @@ const rowVirtualizer = useVirtualizer(
|
|
|
6144
6136
|
onChange: virtualOnChange,
|
|
6145
6137
|
count: virtualActive.value ? flatRows.value.length : 0,
|
|
6146
6138
|
enabled: virtualActive.value,
|
|
6139
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TanStack Virtual's options are typed per scroll element (an `Element` or the `Window`); this one object serves both, picked at runtime by `isWindow`
|
|
6147
6140
|
getScrollElement: () => scroller as any,
|
|
6148
6141
|
estimateSize: virtualEstimateSize,
|
|
6149
6142
|
getItemKey: virtualItemKey,
|
|
@@ -6174,6 +6167,7 @@ const rowVirtualizer = useVirtualizer(
|
|
|
6174
6167
|
? observeWindowOffset
|
|
6175
6168
|
: observeElementOffset,
|
|
6176
6169
|
scrollToFn: isWindow ? windowScroll : elementScroll,
|
|
6170
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TanStack Virtual's options are typed per scroll element (an `Element` or the `Window`); this one object serves both, picked at runtime by `isWindow`
|
|
6177
6171
|
} as any;
|
|
6178
6172
|
})
|
|
6179
6173
|
);
|
|
@@ -6235,7 +6229,7 @@ const measureVirtualRow = (el: unknown) => {
|
|
|
6235
6229
|
* first frame. Both reach `bodyRows` with the rows in hand and the virtualizer
|
|
6236
6230
|
* still counting zero: its options are pushed by a watcher, which never runs
|
|
6237
6231
|
* on the server and lands after the first client render, so `flushVirtual`
|
|
6238
|
-
* had nothing to publish (
|
|
6232
|
+
* had nothing to publish (a virtual table server-rendered an empty
|
|
6239
6233
|
* body, and the client's hydration frame was just as empty). Rendering this
|
|
6240
6234
|
* window on both sides keeps the server HTML and the hydration frame identical
|
|
6241
6235
|
* AND painted; the first real flush replaces it with the virtualizer's own
|
|
@@ -6451,7 +6445,7 @@ const armVirtualObserver = () => {
|
|
|
6451
6445
|
});
|
|
6452
6446
|
};
|
|
6453
6447
|
if (virtualScroller.value === container) {
|
|
6454
|
-
// Synchronously, not deferred
|
|
6448
|
+
// Synchronously, not deferred. The container losing its bound —
|
|
6455
6449
|
// a `max-height` dropped at a breakpoint — means the page is the scroller
|
|
6456
6450
|
// now, and until that is resolved the window is computed against a
|
|
6457
6451
|
// scrollport that no longer exists: for one frame the range extractor's
|
|
@@ -6463,7 +6457,7 @@ const armVirtualObserver = () => {
|
|
|
6463
6457
|
virtualContainerObserver.observe(container);
|
|
6464
6458
|
} else {
|
|
6465
6459
|
window.addEventListener('resize', schedule);
|
|
6466
|
-
//
|
|
6460
|
+
// In page mode the window position depends on `scrollMargin` — how
|
|
6467
6461
|
// far the body sits from the top of the document — and a window resize is
|
|
6468
6462
|
// not the only thing that moves it. Anything ABOVE the table changing
|
|
6469
6463
|
// height does: an accordion opening, a banner arriving, an image finally
|
|
@@ -6489,7 +6483,7 @@ const armVirtualObserver = () => {
|
|
|
6489
6483
|
watch(virtualScroller, armVirtualObserver);
|
|
6490
6484
|
|
|
6491
6485
|
/**
|
|
6492
|
-
*
|
|
6486
|
+
* the `first` edge row sits between the body's top and the data rows,
|
|
6493
6487
|
* so its height is part of `scrollMargin`. Re-read it when the row comes or
|
|
6494
6488
|
* goes and whenever it resizes — in a bounded container nothing else would
|
|
6495
6489
|
* notice (the container keeps its size).
|
|
@@ -6592,7 +6586,7 @@ onBeforeUnmount(() => {
|
|
|
6592
6586
|
if (virtualFlushFrame) cancelAnimationFrame(virtualFlushFrame);
|
|
6593
6587
|
});
|
|
6594
6588
|
|
|
6595
|
-
/* --- Grid keyboard
|
|
6589
|
+
/* --- Grid keyboard --------------------------------------------------
|
|
6596
6590
|
The APG data grid (role="grid") and treegrid (role="treegrid") grammars, on
|
|
6597
6591
|
ONE delegated listener on the grid root. Focus is on cells; a treegrid's rows
|
|
6598
6592
|
take focus too. Header cells keep their own reorder / resize / sort chords
|
|
@@ -6621,7 +6615,7 @@ const bodyRowElement = (index: number) =>
|
|
|
6621
6615
|
`:scope > [role="row"][data-index="${index}"]`
|
|
6622
6616
|
) ?? null;
|
|
6623
6617
|
|
|
6624
|
-
/** An edge row
|
|
6618
|
+
/** An edge row, by its grammar id. */
|
|
6625
6619
|
const edgeRowElement = (row: number) =>
|
|
6626
6620
|
bodyRef.value?.querySelector<HTMLElement>(
|
|
6627
6621
|
`:scope > .bb-table__edge-row--${row === EDGE_FIRST_ROW ? 'first' : 'last'}`
|
|
@@ -6913,7 +6907,7 @@ const onGridFocusOut = (event: FocusEvent) => {
|
|
|
6913
6907
|
|
|
6914
6908
|
/**
|
|
6915
6909
|
* Shift+Space: the row's selection, as a Shift+click on its checkbox — the
|
|
6916
|
-
* range from the last toggled row
|
|
6910
|
+
* range from the last toggled row, or the row alone without one.
|
|
6917
6911
|
*/
|
|
6918
6912
|
const toggleGridRowSelection = (row: number) => {
|
|
6919
6913
|
const flat = flatRows.value[row];
|
|
@@ -6938,7 +6932,7 @@ const activateGridRow = (hit: GridHit) => {
|
|
|
6938
6932
|
* The rows a vertical move goes through, top to bottom, as a rank: the header
|
|
6939
6933
|
* (when navigable), the first edge row, the body rows (rank = flat index), the
|
|
6940
6934
|
* last edge row — each only when it exists, so the ranks have no holes and a
|
|
6941
|
-
* table without edge rows moves exactly as before
|
|
6935
|
+
* table without edge rows moves exactly as before.
|
|
6942
6936
|
*/
|
|
6943
6937
|
const gridRowRank = (row: number) => {
|
|
6944
6938
|
if (row >= 0) return row;
|
|
@@ -7016,7 +7010,7 @@ const onGridKeydown = (event: KeyboardEvent) => {
|
|
|
7016
7010
|
// have (selection is by row): only Shift+Space is ours.
|
|
7017
7011
|
if (event.shiftKey && key !== ' ') return;
|
|
7018
7012
|
const ctrl = event.ctrlKey;
|
|
7019
|
-
const rtl =
|
|
7013
|
+
const rtl = isRtl(hit.rowEl);
|
|
7020
7014
|
const forward = rtl ? 'ArrowLeft' : 'ArrowRight';
|
|
7021
7015
|
const backward = rtl ? 'ArrowRight' : 'ArrowLeft';
|
|
7022
7016
|
const last = flatRows.value.length - 1;
|
|
@@ -7325,7 +7319,7 @@ const isSelectToggleBlocked = (item: MappedItem): boolean => {
|
|
|
7325
7319
|
};
|
|
7326
7320
|
|
|
7327
7321
|
/**
|
|
7328
|
-
*
|
|
7322
|
+
* the row a Shift+click extends from — the last row toggled, by value
|
|
7329
7323
|
* hash. Plain, not reactive: nothing renders from it.
|
|
7330
7324
|
*/
|
|
7331
7325
|
let selectionAnchor: string | undefined;
|
|
@@ -7337,8 +7331,8 @@ const toggleSelectedFor = (item: MappedItem) => {
|
|
|
7337
7331
|
};
|
|
7338
7332
|
|
|
7339
7333
|
/**
|
|
7340
|
-
* Shift+click on a row's built-in checkbox, and Shift+Space in the grid
|
|
7341
|
-
*
|
|
7334
|
+
* Shift+click on a row's built-in checkbox, and Shift+Space in the grid:
|
|
7335
|
+
* every row from the anchor to this one takes the
|
|
7342
7336
|
* clicked row's NEW state, in the order the rows show. Rules:
|
|
7343
7337
|
* - the rows are this page's (`options`): an anchor on another page, or gone
|
|
7344
7338
|
* after a refetch, means no anchor, and the click toggles this row alone;
|
|
@@ -7566,7 +7560,7 @@ const dataRowContext = computed<DataRowContext>(() => ({
|
|
|
7566
7560
|
rowReorder: rowReorderContext.value,
|
|
7567
7561
|
}));
|
|
7568
7562
|
|
|
7569
|
-
/** The edge rows' shared context
|
|
7563
|
+
/** The edge rows' shared context, stable across window moves. */
|
|
7570
7564
|
const edgeRowContext = computed<EdgeRowContext>(() => ({
|
|
7571
7565
|
passthrough,
|
|
7572
7566
|
slots,
|
|
@@ -7578,7 +7572,7 @@ const edgeRowContext = computed<EdgeRowContext>(() => ({
|
|
|
7578
7572
|
rowHeaderKeys: rowHeaderKeys.value,
|
|
7579
7573
|
contentInert: contentInert.value,
|
|
7580
7574
|
columns: orderedColumns.value.map((column) => {
|
|
7581
|
-
const align = column.align ?? '
|
|
7575
|
+
const align = column.align ?? 'start';
|
|
7582
7576
|
return {
|
|
7583
7577
|
key: String(column.key),
|
|
7584
7578
|
slotName: slotNamesByKey.value[column.key],
|
|
@@ -7604,7 +7598,7 @@ const edgeRowIndex = computed(() => {
|
|
|
7604
7598
|
});
|
|
7605
7599
|
|
|
7606
7600
|
/**
|
|
7607
|
-
*
|
|
7601
|
+
* the `aria-rowindex` of the body's final row, once the pager facts
|
|
7608
7602
|
* are known — the header, every item (`totalItems`, not the page or the
|
|
7609
7603
|
* virtual window), the edge rows and the open expand rows. Expand rows are
|
|
7610
7604
|
* counted where the table knows them: the rows it holds (every row under
|
|
@@ -7630,7 +7624,7 @@ const lastBodyRowIndex = computed(() => {
|
|
|
7630
7624
|
});
|
|
7631
7625
|
|
|
7632
7626
|
/**
|
|
7633
|
-
*
|
|
7627
|
+
* the `#tfoot` rows. They are the consumer's markup, so the table
|
|
7634
7628
|
* numbers them after render: each `role="row"` the foot rowgroup owns gets the
|
|
7635
7629
|
* next `aria-rowindex` after the body, kept current as the footer's content or
|
|
7636
7630
|
* the body's count changes, and counts in `aria-rowcount`. An `aria-rowindex`
|
|
@@ -7790,7 +7784,7 @@ watch(
|
|
|
7790
7784
|
// need a fresh read — it moves cells between tracks and this
|
|
7791
7785
|
// post-flush watch can run before the header cells' resize is
|
|
7792
7786
|
// delivered — so that identity check stays.
|
|
7793
|
-
// Not gated on `virtual` any more
|
|
7787
|
+
// Not gated on `virtual` any more. The argument was always about
|
|
7794
7788
|
// GEOMETRY, not about windowing: `lastResolvedTracks` is republished by
|
|
7795
7789
|
// `measureTracks`, which runs from the header cells' ResizeObserver —
|
|
7796
7790
|
// a header cell is a stretched subgrid item whose border box IS the
|
|
@@ -7865,6 +7859,7 @@ import type { ItemAccessor } from '@/types/ItemAccessor';
|
|
|
7865
7859
|
import type { BbTableItemsContext } from '@/types/ItemsProvider';
|
|
7866
7860
|
import type { Option } from '@/types/Option';
|
|
7867
7861
|
import type { InputHTMLAttributes } from 'vue';
|
|
7862
|
+
import type { BbTablePtKeys } from './ptKeys.generated';
|
|
7868
7863
|
|
|
7869
7864
|
/**
|
|
7870
7865
|
* Recursively builds dot-notation paths from a type's keys.
|
|
@@ -7875,7 +7870,7 @@ type NestedPaths<T, Depth extends unknown[] = []> = Depth['length'] extends 3
|
|
|
7875
7870
|
: 0 extends 1 & T
|
|
7876
7871
|
? string
|
|
7877
7872
|
: T extends object
|
|
7878
|
-
? // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- type-level filter must match any function shape
|
|
7873
|
+
? // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type, @typescript-eslint/no-explicit-any -- type-level filter must match any function, array, Map and Set shape
|
|
7879
7874
|
T extends any[] | Date | Function | RegExp | Map<any, any> | Set<any>
|
|
7880
7875
|
? never
|
|
7881
7876
|
: {
|
|
@@ -7940,6 +7935,7 @@ export type BaseColumn<Item = any> = {
|
|
|
7940
7935
|
* @param key Key of the column taken from the column definition.
|
|
7941
7936
|
* @param item Item of the row.
|
|
7942
7937
|
*/
|
|
7938
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `content` is the cell's value read through the column `key` (a dot path, unresolved at the type level); the return is rendered as text, so any value a formatter returns is accepted
|
|
7943
7939
|
formatter?: (content: any, key: string, item: Item) => any;
|
|
7944
7940
|
/**
|
|
7945
7941
|
* Key identifying the column.
|
|
@@ -7962,9 +7958,10 @@ export type BaseColumn<Item = any> = {
|
|
|
7962
7958
|
*/
|
|
7963
7959
|
export type BbTableColumn<Item = any> = BaseColumn<Item> & {
|
|
7964
7960
|
/**
|
|
7965
|
-
* Text alignment of the column.
|
|
7961
|
+
* Text alignment of the column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it.
|
|
7962
|
+
* Unset, the column takes the table's `align`.
|
|
7966
7963
|
*/
|
|
7967
|
-
align?: 'left' | 'right' | '
|
|
7964
|
+
align?: 'left' | 'center' | 'right' | 'start' | 'end';
|
|
7968
7965
|
|
|
7969
7966
|
/**
|
|
7970
7967
|
* Skeleton placeholder style shown during loading. Defaults to `'text'`.
|
|
@@ -8107,7 +8104,7 @@ export type BbTableColumn<Item = any> = BaseColumn<Item> & {
|
|
|
8107
8104
|
};
|
|
8108
8105
|
|
|
8109
8106
|
/**
|
|
8110
|
-
* Passthrough parts of `BbTable
|
|
8107
|
+
* Passthrough parts of `BbTable`.
|
|
8111
8108
|
*
|
|
8112
8109
|
* Per-item functions: on the instance, `row` and `expand` also accept `({ item, highlighted, … }) => PtValue | false | null | undefined` — `item` is the row's raw item (the element of `items`), and every state a boolean beside it, on for it (`highlighted`, `selected`, …) — in the `pt` object or the `:pt:row` / `:pt:expand` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the node as it was. It runs once per rendered row per render, so keep it cheap on a large table; `cell` takes no function (use `tdClass` for a per-cell hook). See the passthrough guide, _Per-item functions_.
|
|
8113
8110
|
*
|
|
@@ -8328,395 +8325,397 @@ export const BB_TABLE_PT = {
|
|
|
8328
8325
|
except: Partial<Record<BbTablePtPart, readonly BbTablePtState[]>>;
|
|
8329
8326
|
};
|
|
8330
8327
|
|
|
8328
|
+
/**
|
|
8329
|
+
* BbTable's `pt:*` attributes: the documented keys, and the patterns
|
|
8330
|
+
* Vue's SFC resolver skips (compound keys, an app's own variant states; the
|
|
8331
|
+
* vue-ignore marker). This alias keeps the marker on a member right after its
|
|
8332
|
+
* `=`: the declaration emit drops it at the start of a line or ahead of a whole type.
|
|
8333
|
+
*/
|
|
8334
|
+
type BbTablePtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_TABLE_PT> &
|
|
8335
|
+
BbTablePtKeys;
|
|
8336
|
+
|
|
8331
8337
|
// Spelled INLINE with this component's own unions (Vue's SFC type resolver
|
|
8332
8338
|
// does not substitute a generic alias's type parameters — PASSTHROUGH.md T20).
|
|
8333
|
-
|
|
8334
|
-
export type BbTableProps<Item = any> = {
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
|
8339
|
-
|
|
|
8340
|
-
|
|
8341
|
-
|
|
|
8342
|
-
|
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
* once, from the first rows. Ignored when inheriting widths and under a
|
|
8714
|
-
* `#tbody` slot.
|
|
8715
|
-
*
|
|
8716
|
-
* @defaultValue `false`
|
|
8717
|
-
*/
|
|
8718
|
-
virtual?: boolean;
|
|
8719
|
-
};
|
|
8339
|
+
|
|
8340
|
+
export type BbTableProps<Item = any> = BbTablePtProps & {
|
|
8341
|
+
// `row` and `expand` also take a per-item function, called with the row's
|
|
8342
|
+
// item. Literal function types, not `PtItemFn` (PASSTHROUGH.md T23).
|
|
8343
|
+
'pt:row'?:
|
|
8344
|
+
| PtValue
|
|
8345
|
+
| ((ctx: PtItemCtx<PtNoInfer<Item>, BbTablePtState>) => PtItemResult);
|
|
8346
|
+
'pt:expand'?:
|
|
8347
|
+
| PtValue
|
|
8348
|
+
| ((ctx: PtItemCtx<PtNoInfer<Item>, BbTablePtState>) => PtItemResult);
|
|
8349
|
+
/**
|
|
8350
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
8351
|
+
* without the prefix. See the `pt:<part>` row.
|
|
8352
|
+
*/
|
|
8353
|
+
pt?: PtScopedItemMap<
|
|
8354
|
+
BbTablePtKey,
|
|
8355
|
+
'row' | 'expand',
|
|
8356
|
+
BbTablePtState,
|
|
8357
|
+
PtNoInfer<Item>
|
|
8358
|
+
>;
|
|
8359
|
+
/**
|
|
8360
|
+
* The label of each row's selection checkbox, from `(columns, item)`. Unset:
|
|
8361
|
+
* the row's name in the locale's select template (its `rowHeader` cells,
|
|
8362
|
+
* else its first column: "Select INV-1041"). The cells arrive in render
|
|
8363
|
+
* order: look one up by `key`, never by position.
|
|
8364
|
+
*/
|
|
8365
|
+
accessibleLabel?: (columns: MappedCell[], item: PtNoInfer<Item>) => string;
|
|
8366
|
+
/**
|
|
8367
|
+
* Label used in the header of the actions column.
|
|
8368
|
+
*/
|
|
8369
|
+
actionsText?: string;
|
|
8370
|
+
/**
|
|
8371
|
+
* Text alignment of the columns. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it.
|
|
8372
|
+
* The default, `'start'`, follows the page direction.
|
|
8373
|
+
*
|
|
8374
|
+
* @defaultValue `'start'`
|
|
8375
|
+
*/
|
|
8376
|
+
align?: 'left' | 'center' | 'right' | 'start' | 'end';
|
|
8377
|
+
/**
|
|
8378
|
+
* Caption describing the table's content, for accessibility.
|
|
8379
|
+
*/
|
|
8380
|
+
caption?: string;
|
|
8381
|
+
/**
|
|
8382
|
+
* Array of definitions of how the columns should be rendered.
|
|
8383
|
+
*
|
|
8384
|
+
* Optional: the component defaults to `[]` (columns can also come entirely
|
|
8385
|
+
* from slots/virtual keys), so the type no longer demands what the runtime
|
|
8386
|
+
* never required.
|
|
8387
|
+
*/
|
|
8388
|
+
columns?: Array<BbTableColumn<Item>>;
|
|
8389
|
+
/**
|
|
8390
|
+
* Adds a CSS class that applies a compact style to the component.
|
|
8391
|
+
*/
|
|
8392
|
+
compact?: boolean;
|
|
8393
|
+
/**
|
|
8394
|
+
* Defines an array of dependencies that will trigger actions in the component upon change.
|
|
8395
|
+
*
|
|
8396
|
+
* @defaultValue `[]`
|
|
8397
|
+
*/
|
|
8398
|
+
dependencies?: unknown[];
|
|
8399
|
+
/**
|
|
8400
|
+
* Timeout used to debounce response to changes to dependencies.
|
|
8401
|
+
*
|
|
8402
|
+
* @defaultValue `0`
|
|
8403
|
+
*/
|
|
8404
|
+
depsDebounceTime?: number;
|
|
8405
|
+
/**
|
|
8406
|
+
* Disables the component
|
|
8407
|
+
*/
|
|
8408
|
+
disabled?: boolean;
|
|
8409
|
+
/**
|
|
8410
|
+
* Hides the "Select all" checkbox that selectable multi-row tables
|
|
8411
|
+
* display by default.
|
|
8412
|
+
*
|
|
8413
|
+
* @defaultValue `false`
|
|
8414
|
+
*/
|
|
8415
|
+
disableSelectAll?: boolean;
|
|
8416
|
+
/**
|
|
8417
|
+
* Shows the caption as a visible title. Off by default: the caption is
|
|
8418
|
+
* hidden, and screen readers still hear it as the table's name.
|
|
8419
|
+
*/
|
|
8420
|
+
displayCaption?: boolean;
|
|
8421
|
+
/**
|
|
8422
|
+
* After every load, prunes `modelValue`, `unselected-items`, `highlighted`
|
|
8423
|
+
* and `expanded-items` of values whose row is gone (a single value resets
|
|
8424
|
+
* to `null`). Never on a provider-paginated table: a page change would
|
|
8425
|
+
* prune the other pages' selection; reconcile in the provider instead.
|
|
8426
|
+
*
|
|
8427
|
+
* @defaultValue `false`
|
|
8428
|
+
*/
|
|
8429
|
+
enforceCoherence?: boolean;
|
|
8430
|
+
/**
|
|
8431
|
+
* Used by `v-model:expandedItems`: the expanded items, toggled by the row
|
|
8432
|
+
* expand control and by external writes, like the `highlighted` / `sort`
|
|
8433
|
+
* v-models. Drives the `#expand` rows and their `aria-expanded` /
|
|
8434
|
+
* `aria-controls` wiring.
|
|
8435
|
+
*
|
|
8436
|
+
* @defaultValue `[]`
|
|
8437
|
+
*/
|
|
8438
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the expanded rows' values, read through `item-value` (a key, a dot path or a function) the table does not resolve at the type level
|
|
8439
|
+
expandedItems?: any[];
|
|
8440
|
+
/**
|
|
8441
|
+
* Gives the columns that declare no `width` an equal share of the width (a
|
|
8442
|
+
* `minmax(0, 1fr)` track each).
|
|
8443
|
+
*/
|
|
8444
|
+
fixed?: boolean;
|
|
8445
|
+
/**
|
|
8446
|
+
* Pins the actions column (the one the `#actions` slot creates) to the
|
|
8447
|
+
* right edge, `position: sticky`, in place. It has no column definition, so
|
|
8448
|
+
* this is its `column.fixed`. No effect without an `#actions` slot.
|
|
8449
|
+
*
|
|
8450
|
+
* @defaultValue `false`
|
|
8451
|
+
*/
|
|
8452
|
+
fixedActions?: boolean;
|
|
8453
|
+
/**
|
|
8454
|
+
* Sticks the `#<key>:first` row to the top of the scrollport (under a
|
|
8455
|
+
* stuck header).
|
|
8456
|
+
*
|
|
8457
|
+
* @defaultValue `false`
|
|
8458
|
+
*/
|
|
8459
|
+
fixedFirst?: boolean;
|
|
8460
|
+
/**
|
|
8461
|
+
* Sticks the headers to the top of the table.
|
|
8462
|
+
*/
|
|
8463
|
+
fixedHeaders?: boolean;
|
|
8464
|
+
/**
|
|
8465
|
+
* Sticks the `#<key>:last` row (a totals row) to the bottom of the
|
|
8466
|
+
* scrollport.
|
|
8467
|
+
*
|
|
8468
|
+
* @defaultValue `false`
|
|
8469
|
+
*/
|
|
8470
|
+
fixedLast?: boolean;
|
|
8471
|
+
/**
|
|
8472
|
+
* Pins the selection column to the left edge, `position: sticky`, in
|
|
8473
|
+
* place. It has no column definition, so this is its `column.fixed`. No
|
|
8474
|
+
* effect unless the table is `selectable`.
|
|
8475
|
+
*
|
|
8476
|
+
* @defaultValue `false`
|
|
8477
|
+
*/
|
|
8478
|
+
fixedSelect?: boolean;
|
|
8479
|
+
/**
|
|
8480
|
+
* Classes for the header row.
|
|
8481
|
+
*/
|
|
8482
|
+
headerRowClass?: Classes;
|
|
8483
|
+
/**
|
|
8484
|
+
* Which rows a click, Enter or `toggleHighlighted` may highlight: `false`
|
|
8485
|
+
* for none, or a function of the row's item. Unset: every row, when
|
|
8486
|
+
* `highlighted` is bound. A value the app sets still shows on a refused row.
|
|
8487
|
+
*/
|
|
8488
|
+
highlightable?: boolean | ((item: Item) => boolean);
|
|
8489
|
+
/**
|
|
8490
|
+
* Used by `v-model:highlighted`: the one row the UI is about (say, whose
|
|
8491
|
+
* details are open), a single item value or `null`. Opt-in: bound,
|
|
8492
|
+
* a row click highlights; unbound, it only emits `click:row`. The row gets
|
|
8493
|
+
* `aria-current="true"` and a shipped tint.
|
|
8494
|
+
*/
|
|
8495
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
8496
|
+
highlighted?: any;
|
|
8497
|
+
/**
|
|
8498
|
+
* Stable id for this table's width context. When omitted a unique id is
|
|
8499
|
+
* generated. Nested tables use the nearest ancestor id to inherit widths.
|
|
8500
|
+
*/
|
|
8501
|
+
id?: string;
|
|
8502
|
+
/**
|
|
8503
|
+
* Snaps a nested table's columns to an ancestor table's tracks: `true` = the
|
|
8504
|
+
* nearest one, a table `id` = that one (when a table in between has a
|
|
8505
|
+
* different column count). Off by default: a nested table sizes itself.
|
|
8506
|
+
*/
|
|
8507
|
+
inheritColumnWidths?: boolean | string;
|
|
8508
|
+
/**
|
|
8509
|
+
* Keeps the header and rows interactive while loading (by default they are
|
|
8510
|
+
* `inert`: a refetch is about to replace them). For background refreshes
|
|
8511
|
+
* that must not interrupt an open editor.
|
|
8512
|
+
*/
|
|
8513
|
+
interactiveWhileLoading?: boolean;
|
|
8514
|
+
/**
|
|
8515
|
+
* Rows to render: an array, or a provider called with a
|
|
8516
|
+
* `BbTableItemsContext` (`reason`, `modelValue`, `signal`), sync or async.
|
|
8517
|
+
* A provider fails by THROWING, never by returning `[]`: the rows clear and
|
|
8518
|
+
* `#empty` gets the `error`. Return the page as it is.
|
|
8519
|
+
*
|
|
8520
|
+
* @defaultValue `[]`
|
|
8521
|
+
*/
|
|
8522
|
+
items: Item[] | ((context: BbTableItemsContext) => Item[] | Promise<Item[]>);
|
|
8523
|
+
/**
|
|
8524
|
+
* The row's value, as a property path or a function returning any value;
|
|
8525
|
+
* the selection, `expandedItems` and row keys compare by it.
|
|
8526
|
+
*/
|
|
8527
|
+
itemValue?: ItemAccessor<Item>;
|
|
8528
|
+
/**
|
|
8529
|
+
* Opt-in keyboard navigation: the table becomes an ARIA `grid` (`treegrid`
|
|
8530
|
+
* with an `#expand` slot) with ONE tab stop and roving focus over its cells.
|
|
8531
|
+
* Controls in cells leave the tab order (Enter/F2 go in). Ignored with a
|
|
8532
|
+
* `#tbody` slot.
|
|
8533
|
+
*/
|
|
8534
|
+
keyboardNavigation?: boolean;
|
|
8535
|
+
/**
|
|
8536
|
+
* The `<legend>` of a `selectable` table (it renders as a `<fieldset>`):
|
|
8537
|
+
* the selection's accessible name. Falls back to `caption`, then to a
|
|
8538
|
+
* localized default.
|
|
8539
|
+
*/
|
|
8540
|
+
legend?: string;
|
|
8541
|
+
/**
|
|
8542
|
+
* Loading state: skeletons with no rows yet, else the rows stay on screen,
|
|
8543
|
+
* dimmed, under an indeterminate bar. A refetch never blanks a table the
|
|
8544
|
+
* user is reading.
|
|
8545
|
+
*/
|
|
8546
|
+
loading?: boolean;
|
|
8547
|
+
/**
|
|
8548
|
+
* Screen-reader announcement for the loading row's `aria-live` status.
|
|
8549
|
+
* Visually hidden — the skeleton (or the `#loading` slot) is the visible
|
|
8550
|
+
* signal.
|
|
8551
|
+
*
|
|
8552
|
+
* @defaultValue the localized `common.loadingText` ("Loading...")
|
|
8553
|
+
*/
|
|
8554
|
+
loadingText?: string;
|
|
8555
|
+
/**
|
|
8556
|
+
* Maximum number of items that can be selected.
|
|
8557
|
+
*
|
|
8558
|
+
* @defaultValue `Infinity`
|
|
8559
|
+
*/
|
|
8560
|
+
max?: number;
|
|
8561
|
+
/**
|
|
8562
|
+
* Used by v-model. Can be any serializable type.
|
|
8563
|
+
*
|
|
8564
|
+
* @defaultValue `[]`
|
|
8565
|
+
*/
|
|
8566
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `any` lets a typed ref (`ref<number[]>`) bind both ways through `v-model`
|
|
8567
|
+
modelValue?: any;
|
|
8568
|
+
/**
|
|
8569
|
+
* A plain click on a sortable header adds the column to the sort, as
|
|
8570
|
+
* Shift+click always does. Off, a plain click makes the sort that column
|
|
8571
|
+
* alone.
|
|
8572
|
+
*
|
|
8573
|
+
* @defaultValue `false`
|
|
8574
|
+
*/
|
|
8575
|
+
multiSort?: boolean;
|
|
8576
|
+
/**
|
|
8577
|
+
* Allows the selection of multiple items.
|
|
8578
|
+
*
|
|
8579
|
+
* @defaultValue `true`
|
|
8580
|
+
*/
|
|
8581
|
+
multiple?: boolean;
|
|
8582
|
+
/**
|
|
8583
|
+
* Defines the name of the input.
|
|
8584
|
+
*/
|
|
8585
|
+
name?: InputHTMLAttributes['name'];
|
|
8586
|
+
/**
|
|
8587
|
+
* Text shown when there are no items.
|
|
8588
|
+
*
|
|
8589
|
+
* @defaultValue the localized `common.emptyText` ("No data to display")
|
|
8590
|
+
*/
|
|
8591
|
+
emptyText?: string;
|
|
8592
|
+
/**
|
|
8593
|
+
* String displayed in the empty state while the latest load FAILED (the
|
|
8594
|
+
* `items` provider threw): the twin of `emptyText` for that case.
|
|
8595
|
+
*
|
|
8596
|
+
* @defaultValue the localized `common.failedText` ("Couldn't load items")
|
|
8597
|
+
*/
|
|
8598
|
+
failedText?: string;
|
|
8599
|
+
/**
|
|
8600
|
+
* Used by `v-model:order`: the column keys in render order. Columns it
|
|
8601
|
+
* omits follow in declaration order; unknown keys stay put.
|
|
8602
|
+
* A `reorderable` move writes it back complete. Works unbound, like `sort`;
|
|
8603
|
+
* never holds `select` / `actions`.
|
|
8604
|
+
*
|
|
8605
|
+
* @defaultValue `[]`
|
|
8606
|
+
*/
|
|
8607
|
+
order?: string[];
|
|
8608
|
+
/**
|
|
8609
|
+
* Current page (from 1), for the rows' `aria-rowindex` and a `BbPagination`
|
|
8610
|
+
* paired through `id`. Doesn't slice `items`: pass the current page's rows.
|
|
8611
|
+
* Numeric strings are coerced.
|
|
8612
|
+
*/
|
|
8613
|
+
page?: number | string;
|
|
8614
|
+
/**
|
|
8615
|
+
* Rows per page, for `aria-rowindex` and a paired `BbPagination`. Doesn't
|
|
8616
|
+
* slice `items`. Unset, an array `items` infers it from its length.
|
|
8617
|
+
* Numeric strings are coerced.
|
|
8618
|
+
*/
|
|
8619
|
+
perPage?: number | string;
|
|
8620
|
+
/**
|
|
8621
|
+
* Sets the input in a readonly state.
|
|
8622
|
+
*/
|
|
8623
|
+
readonly?: boolean;
|
|
8624
|
+
/**
|
|
8625
|
+
* Lets the user reorder the data columns: drag a header, or Shift+←/→ on a
|
|
8626
|
+
* focused header. Every move writes `v-model:order`; a column panel that
|
|
8627
|
+
* only writes `order` does not need it. `select` / `actions` and a custom
|
|
8628
|
+
* `#thead` never move.
|
|
8629
|
+
*
|
|
8630
|
+
* @defaultValue `false`
|
|
8631
|
+
*/
|
|
8632
|
+
reorderable?: boolean;
|
|
8633
|
+
/**
|
|
8634
|
+
* Adds a drag handle at the start of each row: the user drags a row, or lifts it
|
|
8635
|
+
* with Space / Enter and the arrow keys, and `reorder:rows` reports
|
|
8636
|
+
* `{ item, from, to }`. The table never reorders `items`: splice it in the
|
|
8637
|
+
* handler.
|
|
8638
|
+
*
|
|
8639
|
+
* @defaultValue `false`
|
|
8640
|
+
*/
|
|
8641
|
+
reorderableRows?: boolean;
|
|
8642
|
+
/**
|
|
8643
|
+
* Lets the user resize the data columns (drag a header's trailing edge, or
|
|
8644
|
+
* Alt+←/→; double-click resets). Each commit fires `resize:column(key,
|
|
8645
|
+
* width)` once: write the width back into the column definition to keep it.
|
|
8646
|
+
* Ignored when inheriting widths.
|
|
8647
|
+
*
|
|
8648
|
+
* @defaultValue `false`
|
|
8649
|
+
*/
|
|
8650
|
+
resizable?: boolean;
|
|
8651
|
+
/**
|
|
8652
|
+
* Classes for each data row, or a function of the row's item.
|
|
8653
|
+
*/
|
|
8654
|
+
rowClass?: RowClasses<Item>;
|
|
8655
|
+
/**
|
|
8656
|
+
* Makes rows selectable: a boolean for every row, or a function of the
|
|
8657
|
+
* row's item deciding for that row.
|
|
8658
|
+
*/
|
|
8659
|
+
selectable?: boolean | ((item: Item) => boolean);
|
|
8660
|
+
/**
|
|
8661
|
+
* Whether the "Select all" checkbox is checked.
|
|
8662
|
+
*
|
|
8663
|
+
* @defaultValue `false`
|
|
8664
|
+
*/
|
|
8665
|
+
selectAll?: boolean;
|
|
8666
|
+
/**
|
|
8667
|
+
* Label of the "Select all" checkbox.
|
|
8668
|
+
*/
|
|
8669
|
+
selectAllLabel?: string;
|
|
8670
|
+
/**
|
|
8671
|
+
* Header text of the radio column when the table is not `multiple`.
|
|
8672
|
+
*/
|
|
8673
|
+
selectText?: string;
|
|
8674
|
+
/**
|
|
8675
|
+
* Used by `v-model:sort`: `[columnKey, direction]` entries in priority
|
|
8676
|
+
* order, written by the `sortable` headers and shown by them. Doesn't sort
|
|
8677
|
+
* `items`: apply it to your data or your server query.
|
|
8678
|
+
*
|
|
8679
|
+
* @defaultValue `[]`
|
|
8680
|
+
*/
|
|
8681
|
+
sort?: BbTableSortEntry[];
|
|
8682
|
+
/**
|
|
8683
|
+
* Classes for every data cell, or a function of `(content, key, item)`.
|
|
8684
|
+
*/
|
|
8685
|
+
tdClass?: ColumnClasses<Item>;
|
|
8686
|
+
/**
|
|
8687
|
+
* Classes for every header cell.
|
|
8688
|
+
*/
|
|
8689
|
+
thClass?: Classes;
|
|
8690
|
+
/**
|
|
8691
|
+
* Total row count, for `aria-rowcount` and a paired `BbPagination`'s page
|
|
8692
|
+
* count. Unset, an array `items` infers it from its length. Numeric strings
|
|
8693
|
+
* are coerced.
|
|
8694
|
+
*/
|
|
8695
|
+
totalItems?: number | string;
|
|
8696
|
+
/**
|
|
8697
|
+
* Seeds a paired `BbPagination`'s page count when the server reports pages,
|
|
8698
|
+
* not rows; the table renders nothing from it. A known total (`totalItems`)
|
|
8699
|
+
* always wins. Numeric strings are coerced.
|
|
8700
|
+
*/
|
|
8701
|
+
totalPages?: number | string;
|
|
8702
|
+
/**
|
|
8703
|
+
* Items that are not selected.
|
|
8704
|
+
*
|
|
8705
|
+
* @defaultValue `[]`
|
|
8706
|
+
*/
|
|
8707
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the unselected rows' values, read through `item-value`, which the table does not resolve at the type level
|
|
8708
|
+
unselectedItems?: any[];
|
|
8709
|
+
/**
|
|
8710
|
+
* Windows the body: only the rows near the scrollport are mounted. Bound
|
|
8711
|
+
* the table's height to make it the scroller; column widths are measured
|
|
8712
|
+
* once, from the first rows. Ignored when inheriting widths and under a
|
|
8713
|
+
* `#tbody` slot.
|
|
8714
|
+
*
|
|
8715
|
+
* @defaultValue `false`
|
|
8716
|
+
*/
|
|
8717
|
+
virtual?: boolean;
|
|
8718
|
+
};
|
|
8720
8719
|
|
|
8721
8720
|
/**
|
|
8722
8721
|
* We allow table data classes to be a function so it can depend on the item.
|
|
@@ -8725,6 +8724,7 @@ export type BbTableProps<Item = any> = {
|
|
|
8725
8724
|
*/
|
|
8726
8725
|
export type ColumnClasses<Item = any> =
|
|
8727
8726
|
| Classes
|
|
8727
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a cell's content is read through its column `key`, a dot path into the row the table does not resolve at the type level (the nested-key cost the types avoid)
|
|
8728
8728
|
| ((content: any, key: string, item: Item) => Classes | undefined);
|
|
8729
8729
|
|
|
8730
8730
|
/**
|
|
@@ -8789,6 +8789,7 @@ export type MappedHeader = {
|
|
|
8789
8789
|
export type MappedCell = {
|
|
8790
8790
|
align: string;
|
|
8791
8791
|
classes: Classes;
|
|
8792
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a cell's content is read through its column `key`, a dot path into the row the table does not resolve at the type level (the nested-key cost the types avoid)
|
|
8792
8793
|
content: any;
|
|
8793
8794
|
/** What the formatter / placeholder pipeline produced; `null` when nothing. */
|
|
8794
8795
|
kind: 'value' | 'placeholder' | null;
|
|
@@ -8804,20 +8805,25 @@ export type ExpandControllerProps = {
|
|
|
8804
8805
|
onKeydown: (event: KeyboardEvent) => void;
|
|
8805
8806
|
};
|
|
8806
8807
|
|
|
8807
|
-
|
|
8808
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the default: an untyped table reads its rows freely, like the component's own `Item = any`
|
|
8809
|
+
export type BbTableEvents<Item = any> = {
|
|
8808
8810
|
// Row events carry `(event, item)` only, where `item` is the RAW record
|
|
8809
|
-
// from `items` — not the table's internal row wrapper
|
|
8810
|
-
//
|
|
8811
|
+
// from `items` — not the table's internal row wrapper — typed as the
|
|
8812
|
+
// table's row (`PtNoInfer`: a handler's annotation never infers `Item`;
|
|
8813
|
+
// it comes from `items`). Selection state is derivable from the selection
|
|
8814
|
+
// v-model, so it is not repeated here.
|
|
8811
8815
|
/**
|
|
8812
8816
|
* A body row was clicked, or activated with Enter/Space under
|
|
8813
8817
|
* `keyboardNavigation`. Carries the DOM `MouseEvent` and the raw record.
|
|
8814
8818
|
*/
|
|
8815
|
-
(e: 'click:row', event: MouseEvent, item:
|
|
8819
|
+
(e: 'click:row', event: MouseEvent, item: PtNoInfer<Item>): void;
|
|
8816
8820
|
/** A body row was right-clicked. Carries the DOM `MouseEvent` and the raw record. */
|
|
8817
|
-
(e: 'contextmenu:row', event: MouseEvent, item:
|
|
8821
|
+
(e: 'contextmenu:row', event: MouseEvent, item: PtNoInfer<Item>): void;
|
|
8818
8822
|
/** A body row was double-clicked. Carries the DOM `MouseEvent` and the raw record. */
|
|
8819
|
-
(e: 'dblclick:row', event: MouseEvent, item:
|
|
8823
|
+
(e: 'dblclick:row', event: MouseEvent, item: PtNoInfer<Item>): void;
|
|
8824
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `unknown` would reject a handler annotated `(id: number)`
|
|
8820
8825
|
(e: 'update:highlighted', value: any): void;
|
|
8826
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `unknown` would reject a handler annotated `(ids: number[])`
|
|
8821
8827
|
(e: 'update:modelValue', value: any): void;
|
|
8822
8828
|
(e: 'update:selectAll', value: boolean): void;
|
|
8823
8829
|
(e: 'update:sort', value: BbTableSortEntry[]): void;
|
|
@@ -8827,7 +8833,10 @@ export type BbTableEvents = {
|
|
|
8827
8833
|
* `to` index the `items` the table holds. Splice `items` in the handler; a
|
|
8828
8834
|
* drop in place emits nothing.
|
|
8829
8835
|
*/
|
|
8830
|
-
(
|
|
8836
|
+
(
|
|
8837
|
+
e: 'reorder:rows',
|
|
8838
|
+
payload: { item: PtNoInfer<Item>; from: number; to: number }
|
|
8839
|
+
): void;
|
|
8831
8840
|
/**
|
|
8832
8841
|
* The user resized a column (`resizable`): the new width in px, or `null`
|
|
8833
8842
|
* after a double-click on the handle reset it to its declared width.
|
|
@@ -8838,14 +8847,18 @@ export type BbTableEvents = {
|
|
|
8838
8847
|
* write `hidden: true` into the column definition to persist it.
|
|
8839
8848
|
*/
|
|
8840
8849
|
(e: 'hide:column', key: string): void;
|
|
8850
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the expanded rows' values (see `expandedItems`); `unknown[]` would reject a handler annotated `(ids: number[])`
|
|
8841
8851
|
(e: 'update:expandedItems', value: any[]): void;
|
|
8852
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the unselected rows' values (see `unselectedItems`); `unknown[]` would reject a handler annotated `(ids: number[])`
|
|
8842
8853
|
(e: 'update:unselectedItems', value: any[]): void;
|
|
8843
8854
|
/**
|
|
8844
8855
|
* The user selected one row. Carries the row's value (read through
|
|
8845
8856
|
* `itemValue`, the same value the selection v-model holds).
|
|
8846
8857
|
*/
|
|
8858
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `unknown` would reject a handler annotated `(id: number)`
|
|
8847
8859
|
(e: 'item:selected', value: any): void;
|
|
8848
8860
|
/** The user unselected one row. Carries the row's value, like `item:selected`. */
|
|
8861
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `unknown` would reject a handler annotated `(id: number)`
|
|
8849
8862
|
(e: 'item:unselected', value: any): void;
|
|
8850
8863
|
};
|
|
8851
8864
|
|
|
@@ -8884,7 +8897,7 @@ export type BbTableHeaderAffixSlotProps<Item = any> = {
|
|
|
8884
8897
|
};
|
|
8885
8898
|
|
|
8886
8899
|
/**
|
|
8887
|
-
* Scope of a column's edge-row slots `#<key>:first` / `#<key>:last
|
|
8900
|
+
* Scope of a column's edge-row slots `#<key>:first` / `#<key>:last`.
|
|
8888
8901
|
*/
|
|
8889
8902
|
export type BbTableEdgeCellSlotProps<Item = any> = {
|
|
8890
8903
|
/** The raw key of the column. */
|
|
@@ -8899,6 +8912,7 @@ export type BbTableEdgeCellSlotProps<Item = any> = {
|
|
|
8899
8912
|
*/
|
|
8900
8913
|
export type BbTableCellSlotProps<Item = any> = {
|
|
8901
8914
|
classes?: Classes;
|
|
8915
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a cell's content is read through its column `key`, a dot path into the row the table does not resolve at the type level (the nested-key cost the types avoid)
|
|
8902
8916
|
content?: any;
|
|
8903
8917
|
expanded?: boolean;
|
|
8904
8918
|
expandProps?: ExpandControllerProps;
|
|
@@ -8909,12 +8923,14 @@ export type BbTableCellSlotProps<Item = any> = {
|
|
|
8909
8923
|
toggleSelected?: () => void;
|
|
8910
8924
|
sortOrder?: 'asc' | 'desc' | null;
|
|
8911
8925
|
item: Item;
|
|
8926
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
8912
8927
|
value?: any;
|
|
8913
8928
|
};
|
|
8914
8929
|
|
|
8915
8930
|
/** Scope of a column's header slot `#<key>:header`. Headers have no row. */
|
|
8916
8931
|
export type BbTableHeaderSlotProps<Item = any> = {
|
|
8917
8932
|
classes?: Classes;
|
|
8933
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a header's content is the column's label or what its header formatter returned
|
|
8918
8934
|
content?: any;
|
|
8919
8935
|
items?: Item[];
|
|
8920
8936
|
label?: string;
|
|
@@ -8926,7 +8942,7 @@ export type BbTableHeaderSlotProps<Item = any> = {
|
|
|
8926
8942
|
};
|
|
8927
8943
|
|
|
8928
8944
|
/**
|
|
8929
|
-
* The per-column slots, by name shape.
|
|
8945
|
+
* The per-column slots, by name shape. One `Record<string, …>` used to
|
|
8930
8946
|
* type them all, so `#<key>` got an optional `item` and `#<key>:header` the
|
|
8931
8947
|
* body scope wherever the column keys are not literal (a wrapper declaring
|
|
8932
8948
|
* `defineSlots<BbTableSlots<Row>>()`, a `BbTableColumn<Row>[]` variable). A key
|
|
@@ -9063,6 +9079,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9063
9079
|
selected?: boolean;
|
|
9064
9080
|
toggleSelected?: () => void;
|
|
9065
9081
|
item: Item;
|
|
9082
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
9066
9083
|
value: any;
|
|
9067
9084
|
}) => any;
|
|
9068
9085
|
/**
|
|
@@ -9086,6 +9103,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9086
9103
|
selected?: boolean;
|
|
9087
9104
|
toggleSelected?: () => void;
|
|
9088
9105
|
item: Item;
|
|
9106
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
9089
9107
|
value: any;
|
|
9090
9108
|
}) => any;
|
|
9091
9109
|
/**
|
|
@@ -9100,6 +9118,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9100
9118
|
*/
|
|
9101
9119
|
select?: (props: {
|
|
9102
9120
|
item: Item;
|
|
9121
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- a row's value is read through `item-value` (a key, a dot path or a function), which the table does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
9103
9122
|
value: any;
|
|
9104
9123
|
checked: boolean;
|
|
9105
9124
|
disabled: boolean;
|
|
@@ -9182,7 +9201,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9182
9201
|
|
|
9183
9202
|
position: relative;
|
|
9184
9203
|
|
|
9185
|
-
/* The scroll cue
|
|
9204
|
+
/* The scroll cue. An edge with content hidden past it fades
|
|
9186
9205
|
what sits against it, so a table that scrolls sideways says so at rest
|
|
9187
9206
|
(the classes are set by the component, see `readOverflow`). A mask on
|
|
9188
9207
|
the root, which is the scrollport: it is fixed to the visible box
|
|
@@ -9193,7 +9212,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9193
9212
|
published by the component). No motion: a state flip just repaints.
|
|
9194
9213
|
|
|
9195
9214
|
A side WITH pinned columns (`--pinned-left` / `--pinned-right`) is not
|
|
9196
|
-
masked
|
|
9215
|
+
masked: a mask fades everything in its band, row tints
|
|
9197
9216
|
included, so a hovered or highlighted row showed a pale strip beside
|
|
9198
9217
|
the opaque pinned cell. There the innermost pinned cell
|
|
9199
9218
|
(`[data-pin-edge]`, stamped by the component) casts a strip over the
|
|
@@ -9248,7 +9267,15 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9248
9267
|
}
|
|
9249
9268
|
}
|
|
9250
9269
|
|
|
9270
|
+
/* `start` / `end` follow the page direction; `left` / `right` are
|
|
9271
|
+
physical. A column without its own `align` inherits this. */
|
|
9251
9272
|
&--align {
|
|
9273
|
+
&-start {
|
|
9274
|
+
text-align: start;
|
|
9275
|
+
}
|
|
9276
|
+
&-end {
|
|
9277
|
+
text-align: end;
|
|
9278
|
+
}
|
|
9252
9279
|
&-left {
|
|
9253
9280
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list -- geometry: the column `align` prop names a physical side */
|
|
9254
9281
|
text-align: left;
|
|
@@ -9405,7 +9432,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9405
9432
|
width with the tracks overflowing it — row backgrounds and the busy bar
|
|
9406
9433
|
would paint short and `%` widths would resolve against the wrong box.
|
|
9407
9434
|
Nothing paints on the root itself: rowgroups and rows are the paint
|
|
9408
|
-
surfaces. `--min-w` (
|
|
9435
|
+
surfaces. `--min-w` (4) raises the floor for a wide table:
|
|
9409
9436
|
`<BbTable style="--min-w: 1020px">` scrolls inside its card instead
|
|
9410
9437
|
of shrinking to it. */
|
|
9411
9438
|
min-width: max(100%, var(--min-w));
|
|
@@ -9498,7 +9525,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9498
9525
|
}
|
|
9499
9526
|
}
|
|
9500
9527
|
|
|
9501
|
-
/*
|
|
9528
|
+
/* `fixed-first` / `fixed-last` stick the edge rows. A body ROW can
|
|
9502
9529
|
stick where a cell cannot: its sticky slack is the body rowgroup, the
|
|
9503
9530
|
whole run of rows. The first row sits under a stuck head (the body
|
|
9504
9531
|
publishes `--stuck-top`, see above); both paint opaque like the head, and
|
|
@@ -9530,7 +9557,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9530
9557
|
— a click inside the pinned header sorted the hidden column — and a
|
|
9531
9558
|
scrolled-under header's resize handle (z 1, it overhangs its neighbour)
|
|
9532
9559
|
slid over the pinned header at the same level. */
|
|
9533
|
-
/* The colour is forced OPAQUE
|
|
9560
|
+
/* The colour is forced OPAQUE: a glass theme's
|
|
9534
9561
|
translucent `--bb-panel` let the rows show through a pinned column and
|
|
9535
9562
|
painted a band. `rgb(from … / 1)` keeps the resolved colour and drops
|
|
9536
9563
|
only its alpha, so an opaque theme renders exactly as before, and a row
|
|
@@ -9549,7 +9576,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9549
9576
|
z-index: 2;
|
|
9550
9577
|
}
|
|
9551
9578
|
|
|
9552
|
-
/* The pinned side's scroll cue (
|
|
9579
|
+
/* The pinned side's scroll cue (see the root): the innermost
|
|
9553
9580
|
pinned cell casts it over the content scrolled beneath. `--cue-l` /
|
|
9554
9581
|
`--cue-r` come from this cell's own table, so they are 0 (nothing
|
|
9555
9582
|
painted) unless that side overflows. Never takes a click. */
|
|
@@ -9694,7 +9721,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9694
9721
|
min-width: 0;
|
|
9695
9722
|
}
|
|
9696
9723
|
|
|
9697
|
-
/*
|
|
9724
|
+
/* an unsized column's estimated floor (`--floor`, set inline from
|
|
9698
9725
|
the text the column shows). A zero-height spacer widens the header's
|
|
9699
9726
|
min-content, so the `auto` track floors at the larger of the estimate
|
|
9700
9727
|
and the header's own content: the heading still never clips. */
|
|
@@ -9705,7 +9732,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9705
9732
|
width: var(--floor, 0);
|
|
9706
9733
|
}
|
|
9707
9734
|
|
|
9708
|
-
/*
|
|
9735
|
+
/* a long heading of several words, given two lines because
|
|
9709
9736
|
the alternative was a sideways scroll. Only the label wraps (the
|
|
9710
9737
|
cell stays `nowrap`, so an affix keeps to its line); words never
|
|
9711
9738
|
break, so it still never clips. */
|
|
@@ -9719,10 +9746,20 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9719
9746
|
cursor: pointer;
|
|
9720
9747
|
}
|
|
9721
9748
|
|
|
9749
|
+
/* A column's own `align`; `--start` (unset) inherits the table's. */
|
|
9750
|
+
&--end {
|
|
9751
|
+
text-align: end;
|
|
9752
|
+
}
|
|
9753
|
+
|
|
9722
9754
|
&--center {
|
|
9723
9755
|
text-align: center;
|
|
9724
9756
|
}
|
|
9725
9757
|
|
|
9758
|
+
&--left {
|
|
9759
|
+
/* stylelint-disable-next-line declaration-property-value-disallowed-list -- geometry: the column `align` prop names a physical side */
|
|
9760
|
+
text-align: left;
|
|
9761
|
+
}
|
|
9762
|
+
|
|
9726
9763
|
&--right {
|
|
9727
9764
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list -- geometry: the column `align` prop names a physical side */
|
|
9728
9765
|
text-align: right;
|
|
@@ -9765,7 +9802,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9765
9802
|
/* Clips like the plain label: the label track shrinks to an ellipsis
|
|
9766
9803
|
and then to nothing while the arrow (`flex-shrink: 0`) stays. */
|
|
9767
9804
|
max-width: 100%;
|
|
9768
|
-
/* The focus ring is the outline
|
|
9805
|
+
/* The focus ring is the outline: full width from rest, transparent; only its colour fades, in on the focused state's `--ring-t`, out on this one's. A BbBaseButton: the scaffold's transitions, the ring on `--ring-t` */
|
|
9769
9806
|
outline: var(--bb-ring-size) solid transparent;
|
|
9770
9807
|
outline-offset: 0;
|
|
9771
9808
|
overflow: hidden;
|
|
@@ -9834,12 +9871,13 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9834
9871
|
}
|
|
9835
9872
|
}
|
|
9836
9873
|
|
|
9837
|
-
/* A right-aligned column puts the arrow on the label's LEADING side
|
|
9838
|
-
|
|
9874
|
+
/* A right-aligned column puts the arrow on the label's LEADING side.
|
|
9875
|
+
After the label, its slot — reserved while unsorted so nothing jumps
|
|
9839
9876
|
when it appears — pushed the label ~18px left of the figures under it.
|
|
9840
9877
|
Leading, the label lines up with its cells sorted or not, and the arrow
|
|
9841
9878
|
still never moves the label. */
|
|
9842
|
-
&__cell-column-header--right .bb-table-sort
|
|
9879
|
+
&__cell-column-header--right .bb-table-sort,
|
|
9880
|
+
&__cell-column-header--end .bb-table-sort {
|
|
9843
9881
|
flex-direction: row-reverse;
|
|
9844
9882
|
}
|
|
9845
9883
|
|
|
@@ -9870,7 +9908,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
9870
9908
|
}
|
|
9871
9909
|
}
|
|
9872
9910
|
|
|
9873
|
-
/* A `reorderable: false` column
|
|
9911
|
+
/* A `reorderable: false` column is no grab surface: the sort
|
|
9874
9912
|
button keeps its own `pointer`. */
|
|
9875
9913
|
&--reorderable .bb-table__cell-column-header--locked[data-column-key] {
|
|
9876
9914
|
cursor: auto;
|
|
@@ -10022,7 +10060,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10022
10060
|
grip and checkbox: the table has no spacing scale below `--px`, and a
|
|
10023
10061
|
quarter is its smallest step that still reads (3px, 2px compact). Three
|
|
10024
10062
|
quarters before it (9px, 6px compact), not a half: a compact grip sat
|
|
10025
|
-
1px from the highlighted row's 3px accent bar
|
|
10063
|
+
1px from the highlighted row's 3px accent bar. */
|
|
10026
10064
|
&__head > [role='row'] > .bb-table__cell-column-header--row-drag,
|
|
10027
10065
|
&__body > [role='row'] > .bb-table__cell--row-drag {
|
|
10028
10066
|
align-items: center;
|
|
@@ -10135,7 +10173,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10135
10173
|
/* Review r4 (touch target): on a coarse pointer the grip's invisible
|
|
10136
10174
|
`::after` fills its own cell (the row's `--cell-h`, the cell's paddings),
|
|
10137
10175
|
so a thumb anywhere in the grip column takes the handle while the look
|
|
10138
|
-
stays the glyph. The select toggle's own touch box
|
|
10176
|
+
stays the glyph. The select toggle's own touch box reaches a
|
|
10139
10177
|
full `--px` back; after the grip it stops at the half `--px` its cell
|
|
10140
10178
|
now has, so the two boxes never overlap. */
|
|
10141
10179
|
@media (pointer: coarse) {
|
|
@@ -10376,7 +10414,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10376
10414
|
text-align: center;
|
|
10377
10415
|
}
|
|
10378
10416
|
|
|
10379
|
-
/*
|
|
10417
|
+
/* the cell is as wide as the grid, which the header keeps
|
|
10380
10418
|
wide, so on a scrolling table a message centred on the cell sat off
|
|
10381
10419
|
screen. The content is as wide as the scrollport instead (`--vw`, the
|
|
10382
10420
|
root's client width, written by the overflow observer; an inheriting
|
|
@@ -10437,10 +10475,10 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10437
10475
|
background-color: var(--row-bg);
|
|
10438
10476
|
}
|
|
10439
10477
|
|
|
10440
|
-
/*
|
|
10478
|
+
/* on hover a pinned cell takes the row's OWN fill, so an
|
|
10441
10479
|
app's `pt:row` hover colour (`hover:bg-*`) reaches it as it reaches
|
|
10442
10480
|
the rest of the row (it kept the library's tint before). The row
|
|
10443
|
-
then has to be opaque for the pinned cell to stay opaque
|
|
10481
|
+
then has to be opaque for the pinned cell to stay opaque,
|
|
10444
10482
|
so the library's own hover is forced opaque on a row that has one;
|
|
10445
10483
|
an opaque theme renders exactly as before. A translucent app hover
|
|
10446
10484
|
colour shows through the pinned cell while the row is hovered: give
|
|
@@ -10469,8 +10507,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10469
10507
|
}
|
|
10470
10508
|
|
|
10471
10509
|
/* Default cursor for `v-model:highlighted` / `keyboard-navigation` —
|
|
10472
|
-
without this, the row only gets `aria-current` and a bare class
|
|
10473
|
-
(BTG-014).
|
|
10510
|
+
without this, the row only gets `aria-current` and a bare class.
|
|
10474
10511
|
|
|
10475
10512
|
The FILL is neutral, from the shared surface ladder in
|
|
10476
10513
|
variables.css, which is built on --bb-text and therefore contrasts
|
|
@@ -10514,14 +10551,14 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10514
10551
|
}
|
|
10515
10552
|
|
|
10516
10553
|
&__cell {
|
|
10517
|
-
/*
|
|
10554
|
+
/* a value longer than its column (an email, a URL, an ID) breaks
|
|
10518
10555
|
inside the cell instead of painting over the next one. `break-word`,
|
|
10519
10556
|
not `anywhere`: it only breaks what would overflow and leaves the
|
|
10520
10557
|
min-content size alone, so column sizing is unchanged and ordinary
|
|
10521
10558
|
words never split. */
|
|
10522
10559
|
overflow-wrap: break-word;
|
|
10523
10560
|
|
|
10524
|
-
/*
|
|
10561
|
+
/* in a column with an estimated floor (see `--floored` above) the
|
|
10525
10562
|
floor is the minimum, not the longest word: a value too long for it
|
|
10526
10563
|
wraps, or breaks, rather than widening every row. The values the fit
|
|
10527
10564
|
promises are held instead, by the root's hold level (below). */
|
|
@@ -10529,10 +10566,19 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10529
10566
|
min-width: 0;
|
|
10530
10567
|
}
|
|
10531
10568
|
|
|
10569
|
+
&--end {
|
|
10570
|
+
text-align: end;
|
|
10571
|
+
}
|
|
10572
|
+
|
|
10532
10573
|
&--center {
|
|
10533
10574
|
text-align: center;
|
|
10534
10575
|
}
|
|
10535
10576
|
|
|
10577
|
+
&--left {
|
|
10578
|
+
/* stylelint-disable-next-line declaration-property-value-disallowed-list -- geometry: the column `align` prop names a physical side */
|
|
10579
|
+
text-align: left;
|
|
10580
|
+
}
|
|
10581
|
+
|
|
10536
10582
|
&--right {
|
|
10537
10583
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list -- geometry: the column `align` prop names a physical side */
|
|
10538
10584
|
text-align: right;
|
|
@@ -10614,7 +10660,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10614
10660
|
}
|
|
10615
10661
|
|
|
10616
10662
|
/* The selection toggle inside its label: the native input and the glyph,
|
|
10617
|
-
stacked in one cell (
|
|
10663
|
+
stacked in one cell (`.bb-toggle-input`). */
|
|
10618
10664
|
&-check,
|
|
10619
10665
|
&-radio {
|
|
10620
10666
|
display: inline-grid;
|
|
@@ -10653,7 +10699,7 @@ export type BbTableSlots<Item = any> = BbTableColumnSlots<Item> & {
|
|
|
10653
10699
|
}
|
|
10654
10700
|
}
|
|
10655
10701
|
|
|
10656
|
-
/* --- Touch target: the select toggle
|
|
10702
|
+
/* --- Touch target: the select toggle -------------------------------
|
|
10657
10703
|
* The checkbox / radio label is a 16×20 glyph in a 40×36 cell: a thumb that
|
|
10658
10704
|
* lands on the cell's padding hits the row instead. On a coarse pointer only,
|
|
10659
10705
|
* its invisible `::after` fills the select cell: across the cell's inline
|