bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/cli.mjs +9 -3
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +2 -2
- package/dist/ai/BbDialog.md +233 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +100 -13
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +7 -5
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +242 -9
- package/dist/ai/components.json +52 -51
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +72 -26
- package/dist/ai/guides/migration/v2-to-v3.md +52 -10
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +3 -3
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +6 -5
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +152 -11
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +2 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +32 -17
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +21 -14
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +1997 -1151
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/ItemPath.d.ts +33 -4
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utilities/functions/hash.js +90 -3
- package/dist/utilities/functions/isEqual.js +61 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +0 -1
- package/llms.txt +2 -2
- package/package.json +12 -2
- package/scripts/README.md +43 -39
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +180 -5
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
|
@@ -3,27 +3,28 @@ import t from "../BbIcon/BbIcon.vue.js";
|
|
|
3
3
|
import n from "../CommonField/CommonField.vue.js";
|
|
4
4
|
import ee from "../../assets/svgs/star.svg_raw.js";
|
|
5
5
|
import { aliasParts as r, formControlPtActive as i, pickActive as a, usePassthrough as o } from "../../composables/usePassthrough.js";
|
|
6
|
-
import { useActiveInactiveState as
|
|
7
|
-
import { useConfigDefaults as
|
|
8
|
-
import { ICON_SIZES as
|
|
9
|
-
import { useFormBinding as
|
|
10
|
-
import { useId as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { useLogger as
|
|
13
|
-
import { useOnFalsy as
|
|
14
|
-
import { useOnTruthy as
|
|
15
|
-
import { removedPropsFor as
|
|
16
|
-
import { parseSize as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
6
|
+
import { useActiveInactiveState as s } from "../../composables/useActiveInactiveState.js";
|
|
7
|
+
import { useConfigDefaults as c, useSizeMap as l } from "../../composables/useConfigDefaults.js";
|
|
8
|
+
import { ICON_SIZES as te } from "../../types/SizeScale.js";
|
|
9
|
+
import { useFormBinding as ne } from "../../composables/useFormBinding.js";
|
|
10
|
+
import { useId as u } from "../../composables/useId.js";
|
|
11
|
+
import { useLocale as re } from "../../composables/useLocale.js";
|
|
12
|
+
import { useLogger as ie } from "../../composables/useLogger.js";
|
|
13
|
+
import { useOnFalsy as ae } from "../../composables/useOnFalsy.js";
|
|
14
|
+
import { useOnTruthy as oe } from "../../composables/useOnTruthy.js";
|
|
15
|
+
import { removedPropsFor as se } from "../../deprecation/removedProps.js";
|
|
16
|
+
import { parseSize as ce } from "../../utilities/functions/parseSize.js";
|
|
17
|
+
import { createClickCount as le } from "../../utilities/functions/clickCount.js";
|
|
18
|
+
import { warnRemovedAttrs as ue } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
19
|
+
import { BB_RATING_PT as d } from "./types.js";
|
|
20
|
+
import { Fragment as f, computed as p, createBlock as de, createCommentVNode as fe, createElementBlock as m, createElementVNode as h, createSlots as pe, createVNode as me, defineComponent as g, guardReactiveProps as _, mergeProps as v, normalizeClass as he, normalizeProps as y, normalizeStyle as ge, openBlock as b, ref as x, renderList as _e, renderSlot as S, toDisplayString as C, unref as w, useAttrs as ve, useSlots as ye, useTemplateRef as T, withCtx as E, withDirectives as D } from "vue";
|
|
20
21
|
// src/components/BbRating/BbRating.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
-
var
|
|
22
|
+
var O = [
|
|
22
23
|
"aria-labelledby",
|
|
23
24
|
"aria-readonly",
|
|
24
25
|
"aria-required",
|
|
25
26
|
"role"
|
|
26
|
-
],
|
|
27
|
+
], k = ["id"], A = { class: "bb-rating__label-text bb-sr-only" }, j = [
|
|
27
28
|
"id",
|
|
28
29
|
"aria-describedby",
|
|
29
30
|
"autofocus",
|
|
@@ -32,7 +33,7 @@ var A = [
|
|
|
32
33
|
"name",
|
|
33
34
|
"required",
|
|
34
35
|
"value"
|
|
35
|
-
],
|
|
36
|
+
], M = /*@__PURE__*/ g({
|
|
36
37
|
inheritAttrs: !1,
|
|
37
38
|
__name: "BbRating",
|
|
38
39
|
props: {
|
|
@@ -128,55 +129,61 @@ var A = [
|
|
|
128
129
|
"mouseup",
|
|
129
130
|
"update:modelValue"
|
|
130
131
|
],
|
|
131
|
-
setup(g, { emit:
|
|
132
|
-
let
|
|
132
|
+
setup(g, { emit: M }) {
|
|
133
|
+
let N = g, P = M, be = ye(), F = c("BbRating", N, {
|
|
133
134
|
inputPosition: "start",
|
|
134
135
|
compact: !1,
|
|
135
136
|
reverse: !1
|
|
136
|
-
}), { props:
|
|
137
|
+
}), { props: I, emit: L, showAsterisk: xe, errors: Se, required: Ce, ariaRequired: we, model: Te, readonly: R } = ne(N, P, {
|
|
137
138
|
componentName: "BbRating",
|
|
138
|
-
identifierFallback: () =>
|
|
139
|
+
identifierFallback: () => N.legend,
|
|
139
140
|
leaveOn: "inactive"
|
|
140
|
-
}),
|
|
141
|
-
process.env.NODE_ENV !== "production" &&
|
|
142
|
-
let
|
|
141
|
+
}), Ee = l("BbRating", te), { t: z } = re(), De = ie(), B = () => !!I.legend || !!be.legend;
|
|
142
|
+
process.env.NODE_ENV !== "production" && ue("BbRating", se("BbRating"));
|
|
143
|
+
let V = x(!1), Oe = p(() => I.persistentHint || V.value), ke = u().id, H = p(() => I.name || ke.value), U = u().id, W = o({
|
|
143
144
|
component: "BbRating",
|
|
144
|
-
attrs:
|
|
145
|
-
props:
|
|
146
|
-
parts:
|
|
147
|
-
states:
|
|
148
|
-
active: a(i(
|
|
145
|
+
attrs: ve(),
|
|
146
|
+
props: I,
|
|
147
|
+
parts: d.parts,
|
|
148
|
+
states: d.states,
|
|
149
|
+
active: a(i(I, () => !!I.modelValue), [
|
|
149
150
|
"errors",
|
|
150
151
|
"warnings",
|
|
151
152
|
"disabled",
|
|
152
153
|
"readonly",
|
|
153
154
|
"hasValue"
|
|
154
155
|
])
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}),
|
|
159
|
-
|
|
156
|
+
}), Ae = r(W, { label: "legend" }), je = T("container-el"), { active: G } = s(je);
|
|
157
|
+
ae(G, () => {
|
|
158
|
+
V.value = !1, L("inactive");
|
|
159
|
+
}), oe(G, () => {
|
|
160
|
+
V.value = !0, L("active");
|
|
160
161
|
});
|
|
161
|
-
let
|
|
162
|
-
let t = [e,
|
|
162
|
+
let K = x(!1), q = () => B() ? "radiogroup" : void 0, J = p(() => I.clearable && !I.disabled && !I.readonly), Me = z("rating.clearHint"), Y = (e, t) => `${e}_${t}`, Ne = (e) => {
|
|
163
|
+
let t = [e, J.value ? U.value : void 0].filter(Boolean);
|
|
163
164
|
return t.length ? t.join(" ") : void 0;
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
}, X = (e) => {
|
|
166
|
+
I.readonly ? e.target instanceof HTMLInputElement && (e.target.checked = +e.target.value === I.modelValue) : (L("change", e), e.target instanceof HTMLInputElement && e.target.checked && L("update:modelValue", +e.target.value));
|
|
167
|
+
}, Z = le(), Q = (e) => {
|
|
168
|
+
if (I.readonly || !I.clearable) return !1;
|
|
169
|
+
let t = e.target;
|
|
170
|
+
return !(t instanceof HTMLInputElement) || !t.checked || +t.value !== I.modelValue ? !1 : (K.value = !0, L("update:modelValue", null), !0);
|
|
171
|
+
}, Pe = (e) => {
|
|
172
|
+
I.readonly && e.preventDefault(), L("click", e), Z.count(e) <= 1 && Q(e);
|
|
173
|
+
}, Fe = (e) => {
|
|
174
|
+
e.key === " " && Q(e) && e.preventDefault();
|
|
175
|
+
}, Ie = () => {
|
|
176
|
+
K.value &&= !1;
|
|
177
|
+
}, Le = {
|
|
178
|
+
onBlur: (e) => L("blur", e),
|
|
179
|
+
onChange: X,
|
|
180
|
+
onClick: Pe,
|
|
174
181
|
onFocus: (e) => {
|
|
175
|
-
|
|
182
|
+
V.value = !0, L("focus", e);
|
|
176
183
|
},
|
|
177
|
-
onInput: (e) =>
|
|
184
|
+
onInput: (e) => L("input", e),
|
|
178
185
|
onKeydown: (e) => {
|
|
179
|
-
|
|
186
|
+
I.readonly && [
|
|
180
187
|
" ",
|
|
181
188
|
"Spacebar",
|
|
182
189
|
"Enter",
|
|
@@ -188,128 +195,130 @@ var A = [
|
|
|
188
195
|
"ArrowDown",
|
|
189
196
|
"Home",
|
|
190
197
|
"End"
|
|
191
|
-
].includes(e.key) && e.preventDefault(),
|
|
198
|
+
].includes(e.key) && e.preventDefault(), L("keydown", e);
|
|
192
199
|
},
|
|
193
|
-
|
|
194
|
-
|
|
200
|
+
onKeyup: Fe,
|
|
201
|
+
onMousedown: (e) => L("mousedown", e),
|
|
202
|
+
onMouseup: (e) => L("mouseup", e)
|
|
195
203
|
}, $ = p(() => {
|
|
196
|
-
if (
|
|
197
|
-
return
|
|
204
|
+
if (I.size != null) try {
|
|
205
|
+
return ce(I.size, Ee.value);
|
|
198
206
|
} catch {
|
|
199
|
-
|
|
207
|
+
De.warn(`Invalid size: "${I.size}" in BbRating. Falling back to the default star size.`);
|
|
200
208
|
return;
|
|
201
209
|
}
|
|
202
|
-
}),
|
|
203
|
-
let t = e ===
|
|
210
|
+
}), Re = p(() => Array.from({ length: I.stars }, (e, t) => t + 1).map((e) => {
|
|
211
|
+
let t = e === I.modelValue, n = e <= (I.modelValue ?? 0);
|
|
204
212
|
return {
|
|
205
213
|
checked: t,
|
|
206
|
-
disabled: !!
|
|
214
|
+
disabled: !!I.disabled,
|
|
207
215
|
filled: n,
|
|
208
|
-
name:
|
|
216
|
+
name: H.value,
|
|
209
217
|
size: $.value,
|
|
210
218
|
value: e
|
|
211
219
|
};
|
|
212
|
-
})),
|
|
220
|
+
})), ze = p(() => {
|
|
213
221
|
let e = {};
|
|
214
222
|
return $.value && (e["--size"] = $.value), e;
|
|
215
223
|
});
|
|
216
|
-
return (r, i) => (b(),
|
|
224
|
+
return (r, i) => (b(), de(n, v({
|
|
217
225
|
id: g.id,
|
|
218
226
|
class: "bb-rating",
|
|
219
|
-
compact: w(
|
|
227
|
+
compact: w(F).compact,
|
|
220
228
|
description: g.description,
|
|
221
229
|
disabled: g.disabled,
|
|
222
|
-
errors: w(
|
|
230
|
+
errors: w(Se),
|
|
223
231
|
"has-errors": g.hasErrors,
|
|
224
232
|
"has-warnings": g.hasWarnings,
|
|
225
233
|
"hide-label": g.hideLegend,
|
|
226
234
|
hint: g.hint,
|
|
227
235
|
"input-align": g.inputAlign,
|
|
228
|
-
"input-position": w(
|
|
236
|
+
"input-position": w(F).inputPosition,
|
|
229
237
|
label: g.legend,
|
|
230
238
|
"label-align": g.labelAlign,
|
|
231
239
|
"label-mode": g.legendMode,
|
|
232
240
|
"label-position": g.legendPosition,
|
|
233
241
|
"label-tag": "legend",
|
|
234
|
-
layout: w(
|
|
235
|
-
name:
|
|
236
|
-
passthrough: w(
|
|
237
|
-
readonly: w(
|
|
238
|
-
reverse: w(
|
|
239
|
-
"show-asterisk": w(
|
|
240
|
-
"show-hint":
|
|
242
|
+
layout: w(F).layout,
|
|
243
|
+
name: H.value,
|
|
244
|
+
passthrough: w(Ae),
|
|
245
|
+
readonly: w(R),
|
|
246
|
+
reverse: w(F).reverse,
|
|
247
|
+
"show-asterisk": w(xe),
|
|
248
|
+
"show-hint": Oe.value,
|
|
241
249
|
tag: "fieldset",
|
|
242
250
|
warnings: g.warnings
|
|
243
|
-
}, w(
|
|
244
|
-
label:
|
|
245
|
-
input:
|
|
251
|
+
}, w(W).forwardAttrs), pe({
|
|
252
|
+
label: E((e) => [S(r.$slots, "legend", y(_(e)))]),
|
|
253
|
+
input: E(({ id: n, hasErrors: a, hasWarnings: o, ariaDescribedby: s }) => [h("span", {
|
|
246
254
|
ref: "container-el",
|
|
247
|
-
class:
|
|
248
|
-
"bb-rating__stars--has-value": w(
|
|
255
|
+
class: he(["bb-rating__stars", {
|
|
256
|
+
"bb-rating__stars--has-value": w(Te),
|
|
249
257
|
"bb-rating__stars--disabled": g.disabled,
|
|
250
|
-
"bb-rating__stars--errors":
|
|
251
|
-
"bb-rating__stars--warnings": !!
|
|
252
|
-
"bb-rating__stars--readonly": w(
|
|
253
|
-
"bb-rating__stars--forced-clear":
|
|
258
|
+
"bb-rating__stars--errors": a,
|
|
259
|
+
"bb-rating__stars--warnings": !!o && !a,
|
|
260
|
+
"bb-rating__stars--readonly": w(R),
|
|
261
|
+
"bb-rating__stars--forced-clear": K.value
|
|
254
262
|
}]),
|
|
255
263
|
"data-bb-no-drag": "",
|
|
256
|
-
style:
|
|
257
|
-
|
|
264
|
+
style: ge(ze.value),
|
|
265
|
+
onMousedownCapture: i[0] ||= (...e) => w(Z).onPress && w(Z).onPress(...e),
|
|
266
|
+
onPointermove: Ie
|
|
258
267
|
}, [h("span", {
|
|
259
|
-
"aria-labelledby":
|
|
260
|
-
"aria-readonly":
|
|
261
|
-
"aria-required":
|
|
268
|
+
"aria-labelledby": B() ? `${n}__label` : void 0,
|
|
269
|
+
"aria-readonly": q() && w(R) ? !0 : void 0,
|
|
270
|
+
"aria-required": q() ? w(we) : void 0,
|
|
262
271
|
class: "bb-rating__options",
|
|
263
|
-
role:
|
|
272
|
+
role: q()
|
|
264
273
|
}, [
|
|
265
274
|
S(r.$slots, "prepend"),
|
|
266
|
-
|
|
275
|
+
J.value ? (b(), m("span", {
|
|
267
276
|
key: 0,
|
|
268
|
-
id: w(
|
|
277
|
+
id: w(U),
|
|
269
278
|
hidden: ""
|
|
270
|
-
}, C(w(
|
|
271
|
-
(b(!0), m(
|
|
279
|
+
}, C(w(Me)), 9, k)) : fe("", !0),
|
|
280
|
+
(b(!0), m(f, null, _e(Re.value, (i, a) => (b(), m("label", v({
|
|
272
281
|
key: i.value,
|
|
273
282
|
class: ["bb-rating__item", {
|
|
274
283
|
"bb-rating__item--filled": i.filled,
|
|
275
284
|
"bb-rating__item--empty": !i.filled,
|
|
276
285
|
"bb-rating__item--disabled": i.disabled,
|
|
277
|
-
"bb-rating__item--readonly": w(
|
|
286
|
+
"bb-rating__item--readonly": w(R)
|
|
278
287
|
}]
|
|
279
|
-
}, { ref_for: !0 }, w(
|
|
288
|
+
}, { ref_for: !0 }, w(W).part("item", {
|
|
280
289
|
selected: i.filled,
|
|
281
290
|
disabled: i.disabled || void 0
|
|
282
291
|
})), [
|
|
283
|
-
h("span",
|
|
284
|
-
|
|
285
|
-
id:
|
|
286
|
-
"aria-describedby":
|
|
292
|
+
h("span", A, C(i.value == 1 ? w(z)("rating.singleStar", i.value, w(I).stars).value : w(z)("rating.multipleStars", i.value, w(I).stars).value), 1),
|
|
293
|
+
D(h("input", v({
|
|
294
|
+
id: Y(n, i.value),
|
|
295
|
+
"aria-describedby": Ne(s),
|
|
287
296
|
autofocus: g.autofocus && !a,
|
|
288
297
|
checked: i.checked,
|
|
289
298
|
class: "bb-sr-only",
|
|
290
299
|
disabled: i.disabled,
|
|
291
300
|
name: i.name,
|
|
292
|
-
required: w(
|
|
301
|
+
required: w(R) ? void 0 : w(Ce) || void 0,
|
|
293
302
|
type: "radio",
|
|
294
303
|
value: i.value
|
|
295
|
-
}, { ref_for: !0 },
|
|
304
|
+
}, { ref_for: !0 }, Le), null, 16, j), [[w(e)]]),
|
|
296
305
|
S(r.$slots, "icon", {
|
|
297
|
-
id:
|
|
306
|
+
id: Y(n, i.value),
|
|
298
307
|
checked: i.filled,
|
|
299
308
|
disabled: i.disabled,
|
|
300
309
|
size: i.size,
|
|
301
310
|
value: i.value
|
|
302
|
-
}, () => [
|
|
311
|
+
}, () => [me(t, {
|
|
303
312
|
class: "bb-rating__icon",
|
|
304
313
|
icon: w(ee)
|
|
305
314
|
}, null, 8, ["icon"])])
|
|
306
315
|
], 16))), 128)),
|
|
307
316
|
S(r.$slots, "append")
|
|
308
|
-
], 8,
|
|
317
|
+
], 8, O)], 38)]),
|
|
309
318
|
_: 2
|
|
310
319
|
}, [r.$slots.description ? {
|
|
311
320
|
name: "description",
|
|
312
|
-
fn:
|
|
321
|
+
fn: E((e) => [S(r.$slots, "description", y(_(e)))]),
|
|
313
322
|
key: "0"
|
|
314
323
|
} : void 0]), 1040, [
|
|
315
324
|
"id",
|
|
@@ -338,4 +347,4 @@ var A = [
|
|
|
338
347
|
]));
|
|
339
348
|
}
|
|
340
349
|
});
|
|
341
|
-
export {
|
|
350
|
+
export { M as default };
|
|
@@ -90,7 +90,7 @@ export type BbRatingProps = BbRatingPtProps & {
|
|
|
90
90
|
*/
|
|
91
91
|
disabled?: boolean;
|
|
92
92
|
/**
|
|
93
|
-
* Allows clearing the selected rating
|
|
93
|
+
* Allows clearing the selected rating: click the selected star, or Space on it.
|
|
94
94
|
* @defaultValue `false`
|
|
95
95
|
*/
|
|
96
96
|
clearable?: boolean;
|
|
@@ -253,7 +253,8 @@ export type BbRatingEvents = {
|
|
|
253
253
|
(e: 'mouseup', event: MouseEvent): void;
|
|
254
254
|
/**
|
|
255
255
|
* Emitted with the selected rating (1 to `stars`) when clicked. Emits `null`
|
|
256
|
-
* only when `clearable` is enabled and the already-selected star is clicked
|
|
256
|
+
* only when `clearable` is enabled and the already-selected star is clicked
|
|
257
|
+
* (or gets Space).
|
|
257
258
|
*/
|
|
258
259
|
(e: 'update:modelValue', value: number | null): void;
|
|
259
260
|
};
|
|
@@ -3,7 +3,7 @@ import { ItemGetter } from '../../types/ItemAccessor.js';
|
|
|
3
3
|
import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
|
|
4
4
|
import { BbSelectKnownItems, BbSelectSlotRow } from '../BbSelectPopover/types.js';
|
|
5
5
|
import { BbSelectEvents, BbSelectSlots } from './types.js';
|
|
6
|
-
declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefined = undefined, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
declare const __VLS_export: <const T = any, Known extends BbSelectKnownItems | undefined = undefined, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
8
8
|
[x: `pt:${string}&${string}`]: unknown;
|
|
9
9
|
} & {
|
|
@@ -100,6 +100,7 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
|
|
|
100
100
|
"itemDescription:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
101
101
|
"spinner:disabled"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
102
102
|
"spinner:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
103
|
+
header?: import('../../types/passthrough.js').PtValue | undefined;
|
|
103
104
|
"clear:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
104
105
|
panel?: import('../../types/passthrough.js').PtValue | undefined;
|
|
105
106
|
sheet?: import('../../types/passthrough.js').PtValue | undefined;
|
|
@@ -161,9 +162,13 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
|
|
|
161
162
|
"sheet:open"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
162
163
|
"sheet:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
163
164
|
activator?: import('../../types/passthrough.js').PtValue | undefined;
|
|
164
|
-
header?: import('../../types/passthrough.js').PtValue | undefined;
|
|
165
165
|
"header:disabled"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
166
166
|
"header:open"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
167
|
+
"header:hasValue"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
168
|
+
"header:readonly"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
169
|
+
"header:warnings"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
170
|
+
"header:errors"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
171
|
+
"header:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
167
172
|
"activator:hasValue"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
168
173
|
"activator:readonly"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
169
174
|
"activator:disabled"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
@@ -171,11 +176,6 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
|
|
|
171
176
|
"activator:errors"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
172
177
|
"activator:open"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
173
178
|
"activator:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
174
|
-
"header:hasValue"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
175
|
-
"header:readonly"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
176
|
-
"header:warnings"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
177
|
-
"header:errors"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
178
|
-
"header:loading"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
179
179
|
footer?: import('../../types/passthrough.js').PtValue | undefined;
|
|
180
180
|
"footer:open"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
181
181
|
"list:open"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
@@ -320,6 +320,7 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
|
|
|
320
320
|
loadingText?: string;
|
|
321
321
|
max?: number;
|
|
322
322
|
maxSelectedLabels?: number;
|
|
323
|
+
minQueryLength?: number;
|
|
323
324
|
modelValue?: any;
|
|
324
325
|
modelValueDebounceTime?: number;
|
|
325
326
|
multiple?: boolean;
|
|
@@ -342,7 +343,7 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
|
|
|
342
343
|
itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
|
|
343
344
|
itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
|
|
344
345
|
multiple?: MultipleInput<M>;
|
|
345
|
-
} & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt" | "prepend:icon" | "append:icon" | "dependencies" | "
|
|
346
|
+
} & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt" | "onClick" | "variant" | "prepend:icon" | "append:icon" | "dependencies" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "disableWriting" | "queryDebounceTime" | "comma" | keyof import('./ptKeys.generated.js').BbSelectPtKeys | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "maxSelectedLabels" | "minQueryLength" | "prefill" | "selectedLabelsFn" | "stash" | "onFocus" | "onBlur" | "onChange" | "onInput"> & {} & ControlAttrs<"input", "form">) & {
|
|
346
347
|
onActive?: (() => any) | undefined;
|
|
347
348
|
onInput?: ((event: Event) => any) | undefined;
|
|
348
349
|
"onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
|
|
@@ -335,6 +335,7 @@ var Te = ["id"], Ee = [
|
|
|
335
335
|
loadingText: {},
|
|
336
336
|
max: {},
|
|
337
337
|
maxSelectedLabels: {},
|
|
338
|
+
minQueryLength: {},
|
|
338
339
|
modelValue: {},
|
|
339
340
|
modelValueDebounceTime: {},
|
|
340
341
|
multiple: { type: Boolean },
|
|
@@ -569,6 +570,7 @@ var Te = ["id"], Ee = [
|
|
|
569
570
|
loading: c.loading,
|
|
570
571
|
"loading-text": c.loadingText,
|
|
571
572
|
max: c.max,
|
|
573
|
+
"min-query-length": c.minQueryLength,
|
|
572
574
|
"model-value": A(Pe),
|
|
573
575
|
"model-value-debounce-time": c.modelValueDebounceTime,
|
|
574
576
|
multiple: c.multiple,
|
|
@@ -723,7 +725,7 @@ var Te = ["id"], Ee = [
|
|
|
723
725
|
fn: M((e) => [O(n.$slots, "option", x({ hasErrors: r }, e))]),
|
|
724
726
|
key: "2"
|
|
725
727
|
} : void 0
|
|
726
|
-
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
|
|
728
|
+
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
|
|
727
729
|
_: 2
|
|
728
730
|
}, 1024)]),
|
|
729
731
|
_: 2
|
|
@@ -372,6 +372,14 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
372
372
|
* @defaultValue `Infinity`
|
|
373
373
|
*/
|
|
374
374
|
maxSelectedLabels?: number;
|
|
375
|
+
/**
|
|
376
|
+
* Characters to type (trimmed) before the query searches. Below it the
|
|
377
|
+
* query counts as empty: no `'search'` call, no filtering, and the panel
|
|
378
|
+
* says how many characters to type. Slots still get the typed `query`.
|
|
379
|
+
*
|
|
380
|
+
* @defaultValue `0`
|
|
381
|
+
*/
|
|
382
|
+
minQueryLength?: number;
|
|
375
383
|
/**
|
|
376
384
|
* Used by v-model. Can be any serializable type.
|
|
377
385
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ItemGetter } from '../../types/ItemAccessor.js';
|
|
2
|
+
import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
|
|
1
3
|
import { BbSelectKnownItems, BbSelectPopoverEvents, BbSelectPopoverSlots } from './types.js';
|
|
2
|
-
declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems | undefined = undefined, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
5
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
4
6
|
[x: `pt:${string}&${string}`]: unknown;
|
|
5
7
|
} & {
|
|
@@ -54,6 +56,7 @@ declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | unde
|
|
|
54
56
|
loading?: boolean;
|
|
55
57
|
loadingText?: string;
|
|
56
58
|
max?: number;
|
|
59
|
+
minQueryLength?: number;
|
|
57
60
|
modelValue: any;
|
|
58
61
|
modelValueDebounceTime?: number;
|
|
59
62
|
multiple?: boolean;
|
|
@@ -70,13 +73,17 @@ declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | unde
|
|
|
70
73
|
stash?: boolean;
|
|
71
74
|
transitionDuration?: number;
|
|
72
75
|
width?: number | string;
|
|
73
|
-
} &
|
|
76
|
+
} & {
|
|
77
|
+
itemValue?: ItemKeyInput<Item, A> | ItemGetter<Item, any>;
|
|
78
|
+
itemText?: ItemKeyInput<Item, Tx> | ItemGetter<Item, string>;
|
|
79
|
+
multiple?: MultipleInput<M>;
|
|
80
|
+
} & Omit<import('vue').DialogHTMLAttributes & import('vue').HTMLAttributes, `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "loading" | "pt" | "onClick" | "dependencies" | "compact" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "hasErrors" | "hasWarnings" | "id" | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "offset" | "padding" | "placement" | "disableWriting" | "queryDebounceTime" | "width" | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "minQueryLength" | "prefill" | "stash" | keyof import('./ptKeys.generated.js').BbSelectPopoverPtKeys | "ariaDescribedby" | "ariaInvalid" | "searchInputAriaLabel" | "onFocus" | "onBlur" | "onChange" | "onInput" | "aria-describedby" | "aria-invalid"> & {
|
|
74
81
|
"aria-describedby"?: string | string[] | undefined;
|
|
75
82
|
"aria-invalid"?: boolean | undefined;
|
|
76
83
|
}) & {
|
|
77
84
|
onActive?: (() => any) | undefined;
|
|
78
85
|
onInput?: ((event: Event) => any) | undefined;
|
|
79
|
-
"onUpdate:modelValue"?: ((value:
|
|
86
|
+
"onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<Item, A>, M>) => any) | undefined;
|
|
80
87
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
81
88
|
onInactive?: (() => any) | undefined;
|
|
82
89
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -93,7 +100,7 @@ declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | unde
|
|
|
93
100
|
expose: (exposed: {}) => void;
|
|
94
101
|
attrs: any;
|
|
95
102
|
slots: BbSelectPopoverSlots<Item, Known>;
|
|
96
|
-
emit: BbSelectPopoverEvents
|
|
103
|
+
emit: BbSelectPopoverEvents<SelectModelOf<OptionValueOf<Item, A>, M>>;
|
|
97
104
|
}>) => import('vue').VNode & {
|
|
98
105
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
99
106
|
};
|