bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/cli.mjs +6 -1
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +2 -2
- package/dist/ai/BbDialog.md +230 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +93 -7
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +7 -5
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +238 -9
- package/dist/ai/components.json +52 -51
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +69 -26
- package/dist/ai/guides/migration/v2-to-v3.md +52 -10
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +3 -3
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +6 -5
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +144 -10
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +2 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +32 -17
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +21 -14
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +1984 -1145
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/ItemPath.d.ts +33 -4
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utils/versionCheck.js +1 -1
- package/llms.txt +2 -2
- package/package.json +11 -1
- package/scripts/README.md +31 -27
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +32 -1
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { inject as e, provide as t } from "vue";
|
|
2
|
+
// src/components/BbDropdown/dropdownHandle.ts
|
|
3
|
+
var n = Symbol("bb-dropdown-handle"), r = (e) => t(n, e), i = (r) => {
|
|
4
|
+
e(n, null)?.(r), t(n, null);
|
|
5
|
+
};
|
|
6
|
+
export { r as provideDropdownHandle, i as registerDropdownHandle };
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { slotKey as e } from "../../utilities/functions/slotKey.js";
|
|
2
2
|
import { hash as t } from "../../utilities/functions/hash.js";
|
|
3
3
|
import { get as n } from "../../utilities/functions/get.js";
|
|
4
|
-
import { groupItemsAsArray as r, isGroup as i,
|
|
4
|
+
import { groupItemsAsArray as r, isGroup as i, isPrimitiveRow as a, isSelectableGroup as o, selectablePredicateOf as s } from "./types.js";
|
|
5
5
|
// src/components/BbDropdown/normalizeGroups.ts
|
|
6
|
-
var
|
|
7
|
-
|
|
6
|
+
var c = (e) => e.some((e) => !!e.searchable && !!e.id), l = (e) => a(e) ? !0 : Array.isArray(e) ? e.some(l) : i(e) ? e.hidden ? !1 : typeof e.items == "function" || r(e.items).some((e) => l(e)) : e.hidden ? !1 : Array.isArray(e.items) && e.items.length ? e.items.some(l) : !0, u = (e = []) => e.some(l);
|
|
7
|
+
function d(e) {
|
|
8
|
+
return a(e) ? {
|
|
9
|
+
value: e,
|
|
10
|
+
label: String(e)
|
|
11
|
+
} : e;
|
|
12
|
+
}
|
|
13
|
+
var f = (e) => e.map(d).filter((e) => l(e)), p = (e = []) => {
|
|
14
|
+
let t = [], n = [], a = () => {
|
|
8
15
|
n.length && (t.push({
|
|
9
16
|
selectable: !1,
|
|
10
17
|
multiple: !1,
|
|
@@ -13,48 +20,51 @@ var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray
|
|
|
13
20
|
divider: !1
|
|
14
21
|
}), n = []);
|
|
15
22
|
};
|
|
16
|
-
for (let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
disabled:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
23
|
+
for (let c of e) {
|
|
24
|
+
let e = d(c);
|
|
25
|
+
if (i(e)) {
|
|
26
|
+
if (a(), e.hidden) continue;
|
|
27
|
+
let n = f(r(e.items).flat());
|
|
28
|
+
if (!n.length) continue;
|
|
29
|
+
let i = o(e) && e.id != null && e.id !== "", c = s(e), l = c ? n.map((e) => e.fetched || e.placeholder || e.disabled || c(e) ? e : {
|
|
30
|
+
...e,
|
|
31
|
+
disabled: !0
|
|
32
|
+
}) : n;
|
|
33
|
+
t.push({
|
|
34
|
+
id: e.id,
|
|
35
|
+
label: e.label,
|
|
36
|
+
hideLabel: e.hideLabel,
|
|
37
|
+
selectable: i,
|
|
38
|
+
multiple: e.multiple ?? !1,
|
|
39
|
+
clearable: e.clearable,
|
|
40
|
+
selected: [],
|
|
41
|
+
items: l,
|
|
42
|
+
"prepend:icon": e["prepend:icon"],
|
|
43
|
+
"append:icon": e["append:icon"],
|
|
44
|
+
variant: e.variant,
|
|
45
|
+
onClick: e.onClick,
|
|
46
|
+
searchable: e.searchable,
|
|
47
|
+
searchPlaceholder: e.searchPlaceholder,
|
|
48
|
+
groupBy: e.groupBy,
|
|
49
|
+
filterBy: e.filterBy,
|
|
50
|
+
maxHeight: e.maxHeight,
|
|
51
|
+
meta: e.meta,
|
|
52
|
+
divider: !1
|
|
53
|
+
});
|
|
54
|
+
} else if (Array.isArray(e)) {
|
|
55
|
+
a();
|
|
56
|
+
let n = f(e);
|
|
57
|
+
n.length && t.push({
|
|
58
|
+
selectable: !1,
|
|
59
|
+
multiple: !1,
|
|
60
|
+
selected: [],
|
|
61
|
+
items: n,
|
|
62
|
+
divider: t.length > 0
|
|
63
|
+
});
|
|
64
|
+
} else l(e) && n.push(e);
|
|
65
|
+
}
|
|
66
|
+
return a(), h(t);
|
|
67
|
+
}, m = (e) => e.value !== void 0, h = (n) => {
|
|
58
68
|
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
59
69
|
let t = e || "row";
|
|
60
70
|
for (let n = 2; r.has(t); n++) t = `${e || "row"}-${n}`;
|
|
@@ -67,7 +77,7 @@ var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray
|
|
|
67
77
|
return n.map((n) => ({
|
|
68
78
|
...n,
|
|
69
79
|
items: n.items.map((r) => {
|
|
70
|
-
if (r.rowKey != null ||
|
|
80
|
+
if (r.rowKey != null || m(r)) {
|
|
71
81
|
let e = r.rowKey ?? t(r.value);
|
|
72
82
|
return {
|
|
73
83
|
...r,
|
|
@@ -85,9 +95,9 @@ var s = (e) => e.some((e) => !!e.searchable && !!e.id), c = (e) => Array.isArray
|
|
|
85
95
|
};
|
|
86
96
|
})
|
|
87
97
|
}));
|
|
88
|
-
},
|
|
98
|
+
}, g = (e, t) => {
|
|
89
99
|
if (e == null || t == null) return;
|
|
90
100
|
let r = typeof e == "function" ? e(t) : n(t, e);
|
|
91
101
|
return r == null || r === "" ? void 0 : String(r);
|
|
92
102
|
};
|
|
93
|
-
export {
|
|
103
|
+
export { m as hasRowValue, u as hasVisibleRow, c as levelHasSearch, p as normalizeGroups, g as sectionTitle };
|
|
@@ -84,7 +84,7 @@ export type BbDropdownItemProps<T = any> = ItemProps<T, DropdownItemFields>;
|
|
|
84
84
|
* discriminates `group`/`selectable`/`multiple` a few lines below.
|
|
85
85
|
*/
|
|
86
86
|
type SubmenuExclusive = {
|
|
87
|
-
items:
|
|
87
|
+
items: ItemEntry[];
|
|
88
88
|
/** A submenu row opens its submenu; it cannot also run an action. */
|
|
89
89
|
onClick?: never;
|
|
90
90
|
/** A submenu row opens its submenu; it cannot also navigate. */
|
|
@@ -95,6 +95,8 @@ type SubmenuExclusive = {
|
|
|
95
95
|
items?: undefined;
|
|
96
96
|
};
|
|
97
97
|
export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 'text'> & SubmenuExclusive & DropdownEntryBase & {
|
|
98
|
+
/** Rows have no search box (a group has); declared so a group's `searchable` discriminates. */
|
|
99
|
+
searchable?: never;
|
|
98
100
|
/** The row's text. */
|
|
99
101
|
label: string;
|
|
100
102
|
/**
|
|
@@ -155,27 +157,32 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
|
|
|
155
157
|
* when its latest load FAILED (`'failed'`: the footer under whatever rows a
|
|
156
158
|
* `stash` keeps listed). Rendered as a non-interactive row that
|
|
157
159
|
* shows `label` or, when provided, the dropdown's `loading` / `empty` slot.
|
|
158
|
-
*
|
|
160
|
+
*
|
|
161
|
+
* @internal Set by `BbDropdownGroup`.
|
|
159
162
|
*/
|
|
160
163
|
placeholder?: 'loading' | 'empty' | 'failed';
|
|
161
164
|
/**
|
|
162
165
|
* On a `'failed'` placeholder: what the group's `items` load rejected
|
|
163
|
-
* with
|
|
164
|
-
*
|
|
166
|
+
* with, handed to the `empty` slot as `error`.
|
|
167
|
+
*
|
|
168
|
+
* @internal Set by the pipeline resolver.
|
|
165
169
|
*/
|
|
166
170
|
error?: unknown;
|
|
167
171
|
/**
|
|
168
172
|
* Marks a row built by the pipeline resolver from a fetched item. Its
|
|
169
173
|
* `selectable` predicate already ran against the RAW item there, so
|
|
170
174
|
* `normalizeGroups` must not run it again against this row object.
|
|
171
|
-
*
|
|
175
|
+
*
|
|
176
|
+
* @internal
|
|
172
177
|
*/
|
|
173
178
|
fetched?: true;
|
|
174
179
|
/**
|
|
175
180
|
* Optional slot token used to resolve per-item named slots. Primarily set
|
|
176
181
|
* by the pipeline resolver so slot names can be derived from the resolved
|
|
177
182
|
* `itemValue` (readable), while `rowKey` remains the hash-based selection
|
|
178
|
-
* id.
|
|
183
|
+
* id.
|
|
184
|
+
*
|
|
185
|
+
* @internal
|
|
179
186
|
*/
|
|
180
187
|
slotKey?: string;
|
|
181
188
|
};
|
|
@@ -205,12 +212,18 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
|
|
|
205
212
|
*
|
|
206
213
|
* A provider signals a failure by THROWING, never by returning `[]`: the
|
|
207
214
|
* rows are cleared, nothing is pruned, and the `empty` placeholder shows
|
|
208
|
-
* `failedText` with the error. Zero-argument providers keep working.
|
|
209
|
-
*
|
|
215
|
+
* `failedText` with the error. Zero-argument providers keep working. An
|
|
216
|
+
* unannotated getter reads its context typed (`query` a string on a
|
|
217
|
+
* `searchable` group); a provider shared with other components is annotated
|
|
218
|
+
* `BbDropdownGroupItemsContext`.
|
|
210
219
|
*/
|
|
211
|
-
export type DropdownGroupItemsGetter =
|
|
220
|
+
export type DropdownGroupItemsGetter = PlainGetter | SearchGetter;
|
|
221
|
+
/** A group without a search box: no `query` arrives. */
|
|
222
|
+
type PlainGetter = (context: BbDropdownGroupItemsContext) => any[] | Promise<any[]>;
|
|
223
|
+
/** A `searchable` group: `query` always arrives, `''` until typed. */
|
|
224
|
+
type SearchGetter = (context: BbDropdownGroupItemsContext & {
|
|
212
225
|
query: string;
|
|
213
|
-
}) => any[] | Promise<any[]
|
|
226
|
+
}) => any[] | Promise<any[]>;
|
|
214
227
|
export type InternalGroup = DropdownEntryBase & {
|
|
215
228
|
/**
|
|
216
229
|
* The group's identity: REQUIRED on a `selectable` group (its picks are
|
|
@@ -249,19 +262,9 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
249
262
|
*/
|
|
250
263
|
group?: true;
|
|
251
264
|
/**
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* `({ reason, modelValue, signal }) => Item[] | Promise<Item[]>` (plus
|
|
256
|
-
* `query` when the group is `searchable`; see {@link DropdownGroupItemsGetter})
|
|
257
|
-
* and pair it with `itemText`/`itemValue`. A `<BbDropdownGroup :id v-model>`
|
|
258
|
-
* companion resolves such a group and surfaces the selected `itemValue`(s)
|
|
259
|
-
* through `v-model`.
|
|
260
|
-
*/
|
|
261
|
-
items: Array<InternalItem | InternalItem[]> | any[] | DropdownGroupItemsGetter;
|
|
262
|
-
/**
|
|
263
|
-
* Pipeline groups only. Path/getter producing each item's display text
|
|
264
|
-
* (a primitive item is its own text; a getter still maps it).
|
|
265
|
+
* Pipeline groups only. Path/getter producing each item's display text.
|
|
266
|
+
* A string or number row needs none, fetched or written: it is its own
|
|
267
|
+
* text and value (a getter here still maps a fetched one).
|
|
265
268
|
*
|
|
266
269
|
* Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
|
|
267
270
|
*
|
|
@@ -356,17 +359,6 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
356
359
|
* @defaultValue `'interaction'`
|
|
357
360
|
*/
|
|
358
361
|
prefill?: boolean | 'interaction';
|
|
359
|
-
/**
|
|
360
|
-
* Renders a search field at the top of THIS group (so, inside its submenu when
|
|
361
|
-
* the group is one), scoped to this group alone — the nested "category ›
|
|
362
|
-
* searchable options" pattern. Typing narrows this group's rows by
|
|
363
|
-
* the ranked search (see `filterBy`) and, for an async group, passes
|
|
364
|
-
* the typed text to its getter as the context's `query` (a user search arrives
|
|
365
|
-
* with `reason: 'search'`, as on `BbSelect`; see
|
|
366
|
-
* `BbDropdownGroupItemsContext`). Each searchable group owns its own query,
|
|
367
|
-
* independent of its siblings.
|
|
368
|
-
*/
|
|
369
|
-
searchable?: boolean;
|
|
370
362
|
/** Placeholder for this group's search field. Defaults to the localized label. */
|
|
371
363
|
searchPlaceholder?: string;
|
|
372
364
|
/**
|
|
@@ -421,7 +413,55 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
421
413
|
* category, yet still wants a label for chips.
|
|
422
414
|
*/
|
|
423
415
|
hideLabel?: boolean;
|
|
416
|
+
} & GroupSource;
|
|
417
|
+
type GroupSource = {
|
|
418
|
+
/**
|
|
419
|
+
* Renders a search field at the top of THIS group (so, inside its submenu when
|
|
420
|
+
* the group is one), scoped to this group alone — the nested "category ›
|
|
421
|
+
* searchable options" pattern. Typing narrows this group's rows by
|
|
422
|
+
* the ranked search (see `filterBy`) and, for an async group, passes
|
|
423
|
+
* the typed text to its getter as the context's `query` (a user search arrives
|
|
424
|
+
* with `reason: 'search'`, as on `BbSelect`; see
|
|
425
|
+
* `BbDropdownGroupItemsContext`). Each searchable group owns its own query,
|
|
426
|
+
* independent of its siblings.
|
|
427
|
+
*/
|
|
428
|
+
searchable: true;
|
|
429
|
+
/**
|
|
430
|
+
* Items of the group. Plain arrays are flattened.
|
|
431
|
+
*
|
|
432
|
+
* For a **pipeline group**, pass raw objects (`any[]`) or an (async) getter
|
|
433
|
+
* `({ reason, modelValue, signal }) => Item[] | Promise<Item[]>` (plus
|
|
434
|
+
* `query` when the group is `searchable`; see {@link DropdownGroupItemsGetter})
|
|
435
|
+
* and pair it with `itemText`/`itemValue`. A `<BbDropdownGroup :id v-model>`
|
|
436
|
+
* companion resolves such a group and surfaces the selected `itemValue`(s)
|
|
437
|
+
* through `v-model`.
|
|
438
|
+
*/
|
|
439
|
+
items: GroupRows | SearchGetter;
|
|
440
|
+
} | {
|
|
441
|
+
/**
|
|
442
|
+
* Renders a search field at the top of THIS group (so, inside its submenu when
|
|
443
|
+
* the group is one), scoped to this group alone — the nested "category ›
|
|
444
|
+
* searchable options" pattern. Typing narrows this group's rows by
|
|
445
|
+
* the ranked search (see `filterBy`) and, for an async group, passes
|
|
446
|
+
* the typed text to its getter as the context's `query` (a user search arrives
|
|
447
|
+
* with `reason: 'search'`, as on `BbSelect`; see
|
|
448
|
+
* `BbDropdownGroupItemsContext`). Each searchable group owns its own query,
|
|
449
|
+
* independent of its siblings.
|
|
450
|
+
*/
|
|
451
|
+
searchable?: false;
|
|
452
|
+
/**
|
|
453
|
+
* Items of the group. Plain arrays are flattened.
|
|
454
|
+
*
|
|
455
|
+
* For a **pipeline group**, pass raw objects (`any[]`) or an (async) getter
|
|
456
|
+
* `({ reason, modelValue, signal }) => Item[] | Promise<Item[]>` (plus
|
|
457
|
+
* `query` when the group is `searchable`; see {@link DropdownGroupItemsGetter})
|
|
458
|
+
* and pair it with `itemText`/`itemValue`. A `<BbDropdownGroup :id v-model>`
|
|
459
|
+
* companion resolves such a group and surfaces the selected `itemValue`(s)
|
|
460
|
+
* through `v-model`.
|
|
461
|
+
*/
|
|
462
|
+
items: GroupRows | PlainGetter;
|
|
424
463
|
};
|
|
464
|
+
type GroupRows = Array<InternalItem | InternalItem[]> | any[];
|
|
425
465
|
/**
|
|
426
466
|
* A group's items as a raw array, or `[]` when the items are still an
|
|
427
467
|
* unresolved async getter. Used by the synchronous traversal/normalization,
|
|
@@ -429,6 +469,17 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
429
469
|
* the `<BbDropdownGroup>` companion before they reach here).
|
|
430
470
|
*/
|
|
431
471
|
export declare const groupItemsAsArray: (items: InternalGroup["items"] | undefined) => Array<InternalItem | InternalItem[]>;
|
|
472
|
+
/**
|
|
473
|
+
* A string or number row: its own text and value (`'Google'` reads "Google"
|
|
474
|
+
* and picks `'Google'`), loose, in a section, in a group's `items` or in a
|
|
475
|
+
* submenu's `items`. It declares `searchable` like every entry, so a group
|
|
476
|
+
* literal beside it still picks its plain or searchable getter.
|
|
477
|
+
*/
|
|
478
|
+
export type PrimitiveRow = (string | number) & {
|
|
479
|
+
searchable?: never;
|
|
480
|
+
};
|
|
481
|
+
/** One entry of an `items` array: an {@link Item} or a {@link PrimitiveRow}. */
|
|
482
|
+
export type ItemEntry = Item | PrimitiveRow;
|
|
432
483
|
/**
|
|
433
484
|
* Items accepted by the dropdown. Entries can be:
|
|
434
485
|
* - a single {@link InternalItem};
|
|
@@ -437,7 +488,9 @@ export declare const groupItemsAsArray: (items: InternalGroup["items"] | undefin
|
|
|
437
488
|
*
|
|
438
489
|
* The shapes can be mixed, e.g. `[item, [item, item], { id, label, items }]`.
|
|
439
490
|
*/
|
|
440
|
-
export type Item = InternalItem | InternalGroup |
|
|
491
|
+
export type Item = InternalItem | InternalGroup | (ItemEntry[] & {
|
|
492
|
+
searchable?: never;
|
|
493
|
+
});
|
|
441
494
|
/** Unwraps the item type out of the (possibly nested) {@link Items} shape. */
|
|
442
495
|
export type FlatItem<T> = T extends Array<infer U> ? U : T;
|
|
443
496
|
/**
|
|
@@ -457,7 +510,9 @@ export type FlatItem<T> = T extends Array<infer U> ? U : T;
|
|
|
457
510
|
export declare const isSelectableGroup: (entry: Pick<InternalGroup, "selectable" | "multiple">) => boolean;
|
|
458
511
|
/** The group's per-row `selectable` predicate, when it passed one. */
|
|
459
512
|
export declare const selectablePredicateOf: (entry: Pick<InternalGroup, "selectable">) => ((item: any) => boolean) | undefined;
|
|
460
|
-
|
|
513
|
+
/** A string or number row: its own text and value (normalizeGroups maps it). */
|
|
514
|
+
export declare const isPrimitiveRow: (entry: ItemEntry | InternalItem | InternalItem[]) => entry is PrimitiveRow;
|
|
515
|
+
export declare const isGroup: (entry: ItemEntry) => entry is InternalGroup;
|
|
461
516
|
/**
|
|
462
517
|
* A group after normalization: anonymous arrays and loose items become
|
|
463
518
|
* non-selectable groups; {@link InternalGroup} objects keep their metadata. Selection
|
|
@@ -695,7 +750,13 @@ export type BbDropdownProps = BbDropdownPtProps & {
|
|
|
695
750
|
*
|
|
696
751
|
* @defaultValue `[]`
|
|
697
752
|
*/
|
|
698
|
-
items: Item
|
|
753
|
+
items: Array<Item | PrimitiveRow>;
|
|
754
|
+
/**
|
|
755
|
+
* Keeps the trigger when no row is visible (by default it is hidden):
|
|
756
|
+
* inert, no popup ARIA, `empty` in the activator slot. A `contextMenu`
|
|
757
|
+
* trigger always stays.
|
|
758
|
+
*/
|
|
759
|
+
keepActivator?: boolean;
|
|
699
760
|
/**
|
|
700
761
|
* Default placeholder text shown while a pipeline group's async items load.
|
|
701
762
|
* A group's own `loadingText` overrides this; both fall back to the localized
|
|
@@ -734,9 +795,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
|
|
|
734
795
|
*/
|
|
735
796
|
padding?: number;
|
|
736
797
|
/**
|
|
737
|
-
* Position
|
|
738
|
-
*
|
|
739
|
-
* (No arrow is drawn either way — arrows are tooltip-only in v3.)
|
|
798
|
+
* Position relative to the activator; `'cursor'` anchors at the
|
|
799
|
+
* mouse/touch point. No arrow (tooltips only).
|
|
740
800
|
*
|
|
741
801
|
* @defaultValue `'bottom'`
|
|
742
802
|
*/
|
|
@@ -784,8 +844,7 @@ export type BbDropdownEvents = {
|
|
|
784
844
|
/**
|
|
785
845
|
* The user selected a row in a selectable group, at the click — also when a
|
|
786
846
|
* controlled companion's app then refuses the value. The payload is the
|
|
787
|
-
* row's value (its `item-value` for pipeline groups, else its `value`)
|
|
788
|
-
* symmetric with `BbTable`'s `item:selected`.
|
|
847
|
+
* row's value (its `item-value` for pipeline groups, else its `value`).
|
|
789
848
|
*/
|
|
790
849
|
(e: 'item:selected', value: any): void;
|
|
791
850
|
/**
|
|
@@ -804,6 +863,8 @@ export type BbDropdownActivatorProps = {
|
|
|
804
863
|
export type BbDropdownActivatorSlotProps = {
|
|
805
864
|
/** Whether the dropdown is globally disabled. */
|
|
806
865
|
disabled?: boolean;
|
|
866
|
+
/** No row is visible: the trigger is inert. */
|
|
867
|
+
empty: boolean;
|
|
807
868
|
/**
|
|
808
869
|
* Whether any item's async `onClick` is currently in flight. Use to reflect a
|
|
809
870
|
* global busy state on the trigger.
|
|
@@ -951,9 +1012,8 @@ export type BbDropdownSlots = {
|
|
|
951
1012
|
*/
|
|
952
1013
|
activator?: (props: BbDropdownActivatorSlotProps) => any;
|
|
953
1014
|
/**
|
|
954
|
-
*
|
|
955
|
-
*
|
|
956
|
-
* divider — for a title or a filter field.
|
|
1015
|
+
* Pinned above the rows, outside their scroll, with a divider — for a
|
|
1016
|
+
* title or a filter field.
|
|
957
1017
|
*/
|
|
958
1018
|
header?: (props: BbDropdownEdgeSlotProps) => any;
|
|
959
1019
|
/**
|
|
@@ -968,9 +1028,8 @@ export type BbDropdownSlots = {
|
|
|
968
1028
|
*/
|
|
969
1029
|
'item:append'?: (props: BbDropdownItemSlotProps) => any;
|
|
970
1030
|
/**
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
* divider — for action buttons.
|
|
1031
|
+
* Pinned below the rows, outside their scroll, with a divider — for
|
|
1032
|
+
* action buttons.
|
|
974
1033
|
*/
|
|
975
1034
|
footer?: (props: BbDropdownEdgeSlotProps) => any;
|
|
976
1035
|
} & Record<string, (props: BbDropdownItemSlotProps) => any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DROPDOWN_ITEM_VARIANTS as e } from "../../types/DropdownItemVariant.js";
|
|
2
2
|
// src/components/BbDropdown/types.ts
|
|
3
|
-
var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.multiple != null : !!e.selectable, r = (e) => typeof e.selectable == "function" ? e.selectable : void 0, i = (e) => !Array.isArray(e) && (e.group === !0 || "selectable" in e || "multiple" in e || typeof e.items == "function"),
|
|
3
|
+
var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.multiple != null : !!e.selectable, r = (e) => typeof e.selectable == "function" ? e.selectable : void 0, i = (e) => typeof e == "string" || typeof e == "number", a = (e) => typeof e == "object" && !!e && !Array.isArray(e) && (e.group === !0 || "selectable" in e || "multiple" in e || typeof e.items == "function"), o = {
|
|
4
4
|
parts: [
|
|
5
5
|
"root",
|
|
6
6
|
"panel",
|
|
@@ -68,4 +68,4 @@ var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.mu
|
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
export {
|
|
71
|
+
export { o as BB_DROPDOWN_PT, t as groupItemsAsArray, a as isGroup, i as isPrimitiveRow, n as isSelectableGroup, r as selectablePredicateOf };
|