bitboss-ui 3.0.0-beta.70 → 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 +4 -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/BbCheckbox.md +5 -6
- package/dist/ai/BbCheckboxGroup.md +27 -27
- package/dist/ai/BbColorInput.md +4 -5
- 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 +5 -6
- package/dist/ai/BbDialog.md +230 -164
- package/dist/ai/BbDropdown.md +87 -17
- package/dist/ai/BbDropdownButton.md +15 -15
- 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 +10 -9
- 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/BbRadio.md +5 -6
- package/dist/ai/BbRadioGroup.md +53 -37
- package/dist/ai/BbRating.md +11 -16
- package/dist/ai/BbSelect.md +25 -5
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +15 -17
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +9 -9
- package/dist/ai/BbSwitchGroup.md +11 -13
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +4 -5
- package/dist/ai/BbTextInput.md +18 -16
- package/dist/ai/BbTextarea.md +12 -11
- package/dist/ai/BbTimePickerInput.md +4 -5
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +39 -30
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonField.md +2 -10
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/OptionsContainer.md +5 -13
- package/dist/ai/changelog.json +278 -10
- package/dist/ai/components.json +59 -58
- 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 +78 -12
- 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/guides/preset-components.md +35 -10
- package/dist/ai/helpers/definePreset.json +8 -1
- package/dist/ai/helpers/definePreset.ts +35 -10
- 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 +5 -5
- 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 +2 -2
- 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/BbCheckbox.json +2 -2
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
- package/dist/ai/manifest/components/BbColorInput.json +3 -3
- package/dist/ai/manifest/components/BbColorInput.tree.json +2 -2
- 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 +2 -2
- 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 +10 -9
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +9 -10
- 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 +2 -2
- 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/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbRating.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +2 -1
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
- 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 +2 -2
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +2 -2
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +2 -2
- 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 +2 -2
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +5 -10
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
- 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 +7 -6
- 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/BbBreadcrumbs.md +31 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckbox.md +36 -42
- package/dist/ai/source/BbCheckboxGroup.md +40 -17
- package/dist/ai/source/BbColorInput.md +2 -4
- 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 +5 -5
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +360 -99
- package/dist/ai/source/BbDropdownButton.md +24 -13
- package/dist/ai/source/BbDropdownGroup.md +145 -60
- package/dist/ai/source/BbForm.md +144 -10
- package/dist/ai/source/BbNumberInput.md +2 -4
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadio.md +36 -42
- package/dist/ai/source/BbRadioGroup.md +74 -14
- package/dist/ai/source/BbRating.md +32 -36
- package/dist/ai/source/BbSelect.md +40 -13
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSlider.md +2 -4
- package/dist/ai/source/BbSwitch.md +57 -46
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +363 -49
- 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/BbTag.md +2 -4
- package/dist/ai/source/BbTextInput.md +2 -4
- package/dist/ai/source/BbTextarea.md +2 -4
- package/dist/ai/source/BbTimePickerInput.md +2 -4
- package/dist/ai/source/BbTooltip.md +9 -3
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonField.md +17 -106
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/ai/source/GuidesComponent.md +3 -0
- 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/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
- package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
- 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/BbCheckbox/types.d.ts +2 -4
- 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 +4 -6
- package/dist/components/BbColorInput/types.d.ts +2 -4
- 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 +4 -5
- 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 +384 -332
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -44
- package/dist/components/BbDropdown/types.d.ts +116 -50
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +105 -104
- 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/BbNumberInput/types.d.ts +2 -4
- 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/BbRadio/types.d.ts +2 -4
- 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 +11 -7
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +126 -119
- package/dist/components/BbRating/types.d.ts +5 -6
- package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -10
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +12 -6
- 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/BbSlider/types.d.ts +2 -4
- 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 +33 -18
- 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/BbTag/types.d.ts +2 -4
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextInput/types.d.ts +2 -4
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/types.d.ts +2 -4
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/types.d.ts +2 -4
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
- package/dist/components/BbTooltip/types.d.ts +3 -1
- 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/CommonField/types.d.ts +2 -4
- 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/useChoiceIndicator.js +67 -64
- 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 +22 -15
- 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 +2216 -1332
- 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/FieldLayout.d.ts +4 -1
- package/dist/types/ItemAccessor.d.ts +3 -1
- package/dist/types/ItemPath.d.ts +62 -0
- 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 +16 -4
- package/scripts/README.md +35 -29
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/define-preset-copy.mjs +1 -1
- 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/setup.mjs +8 -0
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/toolchain-check.mjs +125 -7
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +537 -53
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import e from "./BbOffCanvas.vue.js";
|
|
2
2
|
import { camelize as t } from "vue";
|
|
3
3
|
// src/components/BbOffCanvas/sheetAttrs.ts
|
|
4
|
-
var n = new Set(Object.keys(e.props ?? {})),
|
|
5
|
-
let
|
|
6
|
-
for (let [i, a] of Object.entries(e))
|
|
7
|
-
return
|
|
4
|
+
var n = null, r = () => n ??= new Set(Object.keys(e.props ?? {})), i = (e) => {
|
|
5
|
+
let n;
|
|
6
|
+
for (let [i, a] of Object.entries(e)) r().has(t(i)) && (n ??= { ...e }, delete n[i], n[`^${i}`] = a);
|
|
7
|
+
return n ?? e;
|
|
8
8
|
};
|
|
9
|
-
export {
|
|
9
|
+
export { i as asSheetAttrs };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BbDialogResult } from '../../composables/overlayRegistry.js';
|
|
2
2
|
import { Size } from '../../types/CommonProps.js';
|
|
3
|
+
import { ActionButtonConfig, BbAction } from '../../types/ActionButton.js';
|
|
3
4
|
import { PtCompoundProps, PtMap } from '../../types/passthrough.js';
|
|
4
5
|
import { Sizes } from '../../types/SizeScale.js';
|
|
5
6
|
import { Responsive } from '../../types/ResponsiveSize.js';
|
|
@@ -166,6 +167,23 @@ export type BbOffCanvasProps = BbOffCanvasPtProps & {
|
|
|
166
167
|
* @defaultValue `'sm'`
|
|
167
168
|
*/
|
|
168
169
|
size?: Responsive<OffCanvasSize>;
|
|
170
|
+
/**
|
|
171
|
+
* The primary footer button: `true` (the locale's OK), a label, or a
|
|
172
|
+
* button config. Clicked: its `onClick`, else it submits the one `BbForm`
|
|
173
|
+
* inside, else `complete(data)`. Unset: no button. Config sets its look.
|
|
174
|
+
*/
|
|
175
|
+
ok?: BbAction;
|
|
176
|
+
/**
|
|
177
|
+
* The dismiss button, before `ok`: `true` (the locale's Cancel), a label,
|
|
178
|
+
* or a button config. Clicked: its `onClick`, then the panel closes as a
|
|
179
|
+
* dismissal (`reason: 'close'`). Unset: no button.
|
|
180
|
+
*/
|
|
181
|
+
cancel?: BbAction;
|
|
182
|
+
/**
|
|
183
|
+
* Footer buttons replacing `ok` / `cancel`, in order: each runs its
|
|
184
|
+
* `onClick`, then completes the panel with `data`. `false`: none.
|
|
185
|
+
*/
|
|
186
|
+
actions?: false | readonly ActionButtonConfig[];
|
|
169
187
|
/**
|
|
170
188
|
* Title text announced to assistive technologies. If omitted, no header is rendered and
|
|
171
189
|
* accessibility must be handled manually.
|
|
@@ -187,6 +205,12 @@ export type BbOffCanvasProps = BbOffCanvasPtProps & {
|
|
|
187
205
|
side?: Responsive<'start' | 'end' | 'left' | 'top' | 'right' | 'bottom'>;
|
|
188
206
|
};
|
|
189
207
|
export type BbOffCanvasEvents = {
|
|
208
|
+
/**
|
|
209
|
+
* The panel completes (`ok`, `complete(value)`): the same value as the
|
|
210
|
+
* opener's `onComplete`, before it. Return a promise to keep the panel
|
|
211
|
+
* open and locked until it settles; `false` or a throw keeps it open.
|
|
212
|
+
*/
|
|
213
|
+
(e: 'complete', value: any): unknown;
|
|
190
214
|
/** Emitted as soon as the user triggers the open action (model becomes true). */
|
|
191
215
|
(e: 'show'): void;
|
|
192
216
|
/**
|
|
@@ -232,7 +232,7 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
|
|
|
232
232
|
ref: K,
|
|
233
233
|
class: "bb-pagination__pages"
|
|
234
234
|
}, [
|
|
235
|
-
h("li", null, [g(
|
|
235
|
+
h("li", null, [g(n, x(v(he.value)), {
|
|
236
236
|
default: k(() => [T(r.$slots, "previous", {}, () => [h("span", A, E(D(I)("pagination.previous").value), 1), g(e, b({
|
|
237
237
|
class: "bb-pagination__icon",
|
|
238
238
|
icon: D(t),
|
|
@@ -244,7 +244,7 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
|
|
|
244
244
|
key: 0,
|
|
245
245
|
"aria-hidden": "true",
|
|
246
246
|
class: "bb-pagination__ellipsis bb-pagination__page bb-pagination__page--ellipsis"
|
|
247
|
-
}, { ref_for: !0 }, D(F).ellipsis), [T(r.$slots, "ellipsis", {}, () => [h("span", j, E(P.ellipsis), 1)])], 16)) : (S(), ae(
|
|
247
|
+
}, { ref_for: !0 }, D(F).ellipsis), [T(r.$slots, "ellipsis", {}, () => [h("span", j, E(P.ellipsis), 1)])], 16)) : (S(), ae(n, b({
|
|
248
248
|
key: 1,
|
|
249
249
|
ref_for: !0
|
|
250
250
|
}, ge(e)), {
|
|
@@ -255,7 +255,7 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
|
|
|
255
255
|
}, () => [h("span", M, E(e.page), 1)])]),
|
|
256
256
|
_: 2
|
|
257
257
|
}, 1040))]))), 128)),
|
|
258
|
-
h("li", null, [g(
|
|
258
|
+
h("li", null, [g(n, x(v(_e.value)), {
|
|
259
259
|
default: k(() => [T(r.$slots, "next", {}, () => [h("span", N, E(D(I)("pagination.next").value), 1), g(e, b({
|
|
260
260
|
class: "bb-pagination__icon",
|
|
261
261
|
icon: D(t),
|
|
@@ -61,14 +61,12 @@ export type BbRadioProps = BbRadioPtProps & {
|
|
|
61
61
|
layout?: Responsive<FieldLayout>;
|
|
62
62
|
/**
|
|
63
63
|
* Vertical position of the label block in a side-by-side row; not
|
|
64
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
65
|
-
* meets the control's.
|
|
64
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
66
65
|
*/
|
|
67
66
|
labelAlign?: FieldCrossAlign;
|
|
68
67
|
/**
|
|
69
68
|
* Vertical position of the control in a side-by-side row; not
|
|
70
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
71
|
-
* meets the label's.
|
|
69
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
72
70
|
*/
|
|
73
71
|
inputAlign?: FieldCrossAlign;
|
|
74
72
|
/**
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ItemGetter } from '../../types/ItemAccessor.js';
|
|
2
|
+
import { ItemKeyInput, OptionValueOf } from '../../types/ItemPath.js';
|
|
1
3
|
import { BbRadioGroupProps, BbRadioGroupEvents, BbRadioGroupSlots } from './types.js';
|
|
2
4
|
export type { BbRadioGroupProps, BbRadioGroupEvents, BbRadioGroupSlots };
|
|
3
|
-
declare const __VLS_export: <T = any>(__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<{
|
|
5
|
+
declare const __VLS_export: <const T = any, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | 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
6
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
5
7
|
[x: `pt:${string}&${string}`]: unknown;
|
|
6
8
|
} & {
|
|
@@ -160,6 +162,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
160
162
|
"indicator:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
161
163
|
}) | undefined;
|
|
162
164
|
autofocus?: import('vue').InputHTMLAttributes["autofocus"];
|
|
165
|
+
clearable?: boolean;
|
|
163
166
|
compact?: boolean;
|
|
164
167
|
dependencies?: unknown[];
|
|
165
168
|
depsDebounceTime?: number;
|
|
@@ -203,10 +206,13 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
203
206
|
required?: boolean;
|
|
204
207
|
reverse?: boolean;
|
|
205
208
|
selectable?: boolean | ((item: T) => boolean) | undefined;
|
|
206
|
-
} & import('../../composables/useFormBinding.js').FormFieldProps<any> &
|
|
209
|
+
} & import('../../composables/useFormBinding.js').FormFieldProps<any> & {
|
|
210
|
+
itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
|
|
211
|
+
itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
|
|
212
|
+
} & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "variant" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | keyof import('./ptKeys.generated.js').BbRadioGroupPtKeys | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
|
|
207
213
|
onActive?: (() => any) | undefined;
|
|
208
214
|
onInput?: ((event: Event) => any) | undefined;
|
|
209
|
-
"onUpdate:modelValue"?: ((value:
|
|
215
|
+
"onUpdate:modelValue"?: ((value: OptionValueOf<T, A>) => any) | undefined;
|
|
210
216
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
211
217
|
onInactive?: (() => any) | undefined;
|
|
212
218
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -221,7 +227,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
221
227
|
expose: (exposed: {}) => void;
|
|
222
228
|
attrs: any;
|
|
223
229
|
slots: BbRadioGroupSlots<T>;
|
|
224
|
-
emit: BbRadioGroupEvents
|
|
230
|
+
emit: BbRadioGroupEvents<OptionValueOf<T, A>>;
|
|
225
231
|
}>) => import('vue').VNode & {
|
|
226
232
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
227
233
|
};
|
|
@@ -5,29 +5,31 @@ import r from "../OptionsContainer/OptionsContainer.vue.js";
|
|
|
5
5
|
import i from "../BbBaseRadioIcon/BbBaseRadioIcon.vue.js";
|
|
6
6
|
import { aliasParts as a, formControlPtActive as o, pickActive as s, usePassthrough as c, variantPt as l } from "../../composables/usePassthrough.js";
|
|
7
7
|
import { useId as u } from "../../composables/useId.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { useLocale as d } from "../../composables/useLocale.js";
|
|
9
|
+
import { isNotEmpty as ee } from "../../utilities/functions/isNotEmpty.js";
|
|
10
|
+
import { withItemDescribedby as te } from "../../utilities/functions/itemProps.js";
|
|
11
|
+
import { hash as ne } from "../../utilities/functions/hash.js";
|
|
12
|
+
import { createClickCount as re } from "../../utilities/functions/clickCount.js";
|
|
13
|
+
import { preventReadonlyClick as ie, preventReadonlyKeydown as ae, revertReadonlyChange as oe, toggleInputAttrs as se, toggleInputValue as ce } from "../../utilities/functions/toggleInput.js";
|
|
14
|
+
import { useToggleListFocus as le } from "../../composables/useToggleInput.js";
|
|
15
|
+
import { useChoiceIndicator as ue } from "../../composables/useChoiceIndicator.js";
|
|
16
|
+
import { useItemsGetter as de } from "../../composables/useItemsGetter.js";
|
|
17
|
+
import { usePrefill as fe } from "../../composables/usePrefill.js";
|
|
16
18
|
import { useIndexById as f } from "../../composables/useIndexById.js";
|
|
17
|
-
import { useBaseOptions as
|
|
18
|
-
import { useCoherence as
|
|
19
|
-
import { useHashedWatcher as
|
|
20
|
-
import { useActiveInactiveState as
|
|
21
|
-
import { useOnFalsy as
|
|
22
|
-
import { useOnTruthy as
|
|
23
|
-
import { removedPropsFor as
|
|
24
|
-
import { warnRemovedAttrs as
|
|
25
|
-
import { BB_RADIO_GROUP_PT as
|
|
26
|
-
import { useFormBinding as
|
|
27
|
-
import { Fragment as
|
|
19
|
+
import { useBaseOptions as pe } from "../../composables/useBaseOptions.js";
|
|
20
|
+
import { useCoherence as me } from "../../composables/useCoherence.js";
|
|
21
|
+
import { useHashedWatcher as p } from "../../composables/useHashedWatcher.js";
|
|
22
|
+
import { useActiveInactiveState as he } from "../../composables/useActiveInactiveState.js";
|
|
23
|
+
import { useOnFalsy as ge } from "../../composables/useOnFalsy.js";
|
|
24
|
+
import { useOnTruthy as _e } from "../../composables/useOnTruthy.js";
|
|
25
|
+
import { removedPropsFor as ve } from "../../deprecation/removedProps.js";
|
|
26
|
+
import { warnRemovedAttrs as ye } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
27
|
+
import { BB_RADIO_GROUP_PT as m } from "./types.js";
|
|
28
|
+
import { useFormBinding as be } from "../../composables/useFormBinding.js";
|
|
29
|
+
import { Fragment as xe, computed as h, createBlock as Se, createCommentVNode as Ce, createElementBlock as g, createElementVNode as we, createSlots as Te, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, nextTick as x, normalizeProps as S, openBlock as C, ref as Ee, renderList as De, renderSlot as w, shallowRef as Oe, toDisplayString as ke, toRef as T, unref as E, useAttrs as Ae, useSlots as je, withCtx as D, withDirectives as Me } from "vue";
|
|
28
30
|
// src/components/BbRadioGroup/BbRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
29
|
-
var
|
|
30
|
-
mixins: [l(
|
|
31
|
+
var Ne = ["id"], O = /*@__PURE__*/ v({
|
|
32
|
+
mixins: [l(m)],
|
|
31
33
|
inheritAttrs: !1,
|
|
32
34
|
__name: "BbRadioGroup",
|
|
33
35
|
props: {
|
|
@@ -155,6 +157,7 @@ var j = /*@__PURE__*/ b({
|
|
|
155
157
|
"pt:indicator:outline": {},
|
|
156
158
|
pt: {},
|
|
157
159
|
autofocus: { type: [Boolean, String] },
|
|
160
|
+
clearable: { type: Boolean },
|
|
158
161
|
compact: {
|
|
159
162
|
type: Boolean,
|
|
160
163
|
default: void 0
|
|
@@ -231,223 +234,235 @@ var j = /*@__PURE__*/ b({
|
|
|
231
234
|
"mouseup",
|
|
232
235
|
"update:modelValue"
|
|
233
236
|
],
|
|
234
|
-
setup(l, { emit:
|
|
235
|
-
let
|
|
237
|
+
setup(l, { emit: v }) {
|
|
238
|
+
let O = l, Pe = v, Fe = je(), k = e("BbRadioGroup", O, {
|
|
236
239
|
inputPosition: "start",
|
|
237
240
|
compact: !1,
|
|
238
241
|
itemReverse: !1,
|
|
239
242
|
reverse: !1,
|
|
240
243
|
block: !1
|
|
241
|
-
}), { props:
|
|
244
|
+
}), { props: A, emit: j, showAsterisk: Ie, errors: Le, ariaRequired: Re, readonly: M } = be(O, Pe, {
|
|
242
245
|
componentName: "BbRadioGroup",
|
|
243
|
-
identifierFallback: () =>
|
|
246
|
+
identifierFallback: () => O.legend,
|
|
244
247
|
leaveOn: "inactive"
|
|
245
|
-
}),
|
|
246
|
-
process.env.NODE_ENV !== "production" &&
|
|
247
|
-
let
|
|
248
|
-
|
|
249
|
-
}, { active:
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}),
|
|
253
|
-
|
|
248
|
+
}), N = () => !!A.legend || !!Fe.legend;
|
|
249
|
+
process.env.NODE_ENV !== "production" && ye("BbRadioGroup", ve("BbRadioGroup"));
|
|
250
|
+
let ze = u().id, P = h(() => A.name || ze.value), { t: Be } = d(), F = u().id, Ve = Be("radioGroup.clearHint"), I = h(() => A.clearable && !A.disabled && !A.readonly), He = [], L = h(() => A.items === void 0 ? He : A.items), R = Oe(null), Ue = (e) => {
|
|
251
|
+
R.value = e?.$el ?? null;
|
|
252
|
+
}, { active: z } = he(R), B = Ee(!1), We = h(() => A.persistentHint || B.value);
|
|
253
|
+
ge(z, () => {
|
|
254
|
+
B.value = !1, j("inactive");
|
|
255
|
+
}), _e(z, () => {
|
|
256
|
+
B.value = !0, j("active");
|
|
254
257
|
});
|
|
255
|
-
let { getter:
|
|
256
|
-
items:
|
|
258
|
+
let { getter: V, clientReproducible: Ge, hydratedFromSsr: Ke, items: qe, loading: H, error: Je, ssrMarker: Ye } = de({
|
|
259
|
+
items: L,
|
|
257
260
|
marker: !0
|
|
258
|
-
}),
|
|
259
|
-
|
|
260
|
-
}, { hasPrefilled:
|
|
261
|
-
alreadyLoaded:
|
|
262
|
-
clientReproducible:
|
|
261
|
+
}), U = () => {
|
|
262
|
+
A.enforceCoherence && !K.value && j("update:modelValue", null);
|
|
263
|
+
}, { hasPrefilled: W, whenPrefilled: Xe } = fe({
|
|
264
|
+
alreadyLoaded: Ke,
|
|
265
|
+
clientReproducible: Ge,
|
|
263
266
|
trigger: !0,
|
|
264
|
-
currentValue:
|
|
267
|
+
currentValue: A.modelValue,
|
|
265
268
|
multiple: !1,
|
|
266
269
|
fn: async () => {
|
|
267
|
-
await
|
|
270
|
+
await V(void 0, "initial", A.modelValue) === "applied" && U();
|
|
268
271
|
}
|
|
269
|
-
}), { data:
|
|
270
|
-
disabled:
|
|
271
|
-
items:
|
|
272
|
-
itemText:
|
|
273
|
-
itemProps:
|
|
274
|
-
itemValue:
|
|
272
|
+
}), { data: Ze } = f({ items: h(() => [A.modelValue]) }), { options: G } = pe({
|
|
273
|
+
disabled: T(() => A.disabled),
|
|
274
|
+
items: qe,
|
|
275
|
+
itemText: A.itemText,
|
|
276
|
+
itemProps: T(() => A.itemProps),
|
|
277
|
+
itemValue: A.itemValue,
|
|
275
278
|
optionDefaults: !0,
|
|
276
279
|
max: Infinity,
|
|
277
|
-
selectable:
|
|
278
|
-
selectedIndexedByHash:
|
|
279
|
-
}), { data:
|
|
280
|
-
items:
|
|
280
|
+
selectable: T(() => A.selectable),
|
|
281
|
+
selectedIndexedByHash: Ze
|
|
282
|
+
}), { data: Qe } = f({
|
|
283
|
+
items: G,
|
|
281
284
|
key: "valueHash"
|
|
282
|
-
}), { coherent:
|
|
283
|
-
modelValue:
|
|
285
|
+
}), { coherent: K } = me({
|
|
286
|
+
modelValue: T(() => A.modelValue),
|
|
284
287
|
multiple: !1,
|
|
285
|
-
iteratee: (e) => !!
|
|
286
|
-
}),
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}, { debounce:
|
|
290
|
-
|
|
291
|
-
}, { debounce:
|
|
292
|
-
let
|
|
288
|
+
iteratee: (e) => !!Qe.value[ne(e)]
|
|
289
|
+
}), q = 0;
|
|
290
|
+
p(() => A.modelValue, async () => {
|
|
291
|
+
q++, K.value || await V(void 0, "model", A.modelValue) === "applied" && U(), q--;
|
|
292
|
+
}, { debounce: A.modelValueDebounceTime === void 0 ? 0 : A.modelValueDebounceTime }), p(() => [A.dependencies, L.value], async () => {
|
|
293
|
+
W.value || await Xe(), W.value && (q++, await V(void 0, "dependencies", A.modelValue) === "applied" && q === 1 && U(), q--);
|
|
294
|
+
}, { debounce: A.depsDebounceTime === void 0 ? 0 : A.depsDebounceTime });
|
|
295
|
+
let J = h(() => ee(A.modelValue)), Y = c({
|
|
293
296
|
component: "BbRadioGroup",
|
|
294
|
-
attrs:
|
|
295
|
-
props:
|
|
296
|
-
parts:
|
|
297
|
-
states:
|
|
297
|
+
attrs: Ae(),
|
|
298
|
+
props: A,
|
|
299
|
+
parts: m.parts,
|
|
300
|
+
states: m.states,
|
|
298
301
|
variant: {
|
|
299
|
-
...
|
|
300
|
-
current: () =>
|
|
302
|
+
...m.variant,
|
|
303
|
+
current: () => A.variant
|
|
301
304
|
},
|
|
302
305
|
active: {
|
|
303
|
-
...s(o(
|
|
306
|
+
...s(o(A, () => J.value), [
|
|
304
307
|
"errors",
|
|
305
308
|
"warnings",
|
|
306
309
|
"disabled",
|
|
307
310
|
"readonly",
|
|
308
311
|
"hasValue"
|
|
309
312
|
]),
|
|
310
|
-
loading: () =>
|
|
313
|
+
loading: () => H.value
|
|
311
314
|
}
|
|
312
|
-
}),
|
|
315
|
+
}), $e = h(() => k.listLayout === "vertical"), { boxes: et, ready: tt, styleOf: nt } = ue({
|
|
313
316
|
kind: "radio",
|
|
314
|
-
variant: () =>
|
|
315
|
-
vertical: () =>
|
|
316
|
-
list: () =>
|
|
317
|
-
rows: () =>
|
|
317
|
+
variant: () => A.variant,
|
|
318
|
+
vertical: () => $e.value,
|
|
319
|
+
list: () => R.value,
|
|
320
|
+
rows: () => G.value,
|
|
318
321
|
rowClass: "bb-radio-group__item"
|
|
319
|
-
}),
|
|
322
|
+
}), rt = a(Y, { label: "legend" }), X = le(), Z = (e, t) => {
|
|
320
323
|
if (t) return [t, e.valueHash].filter(Boolean).join("-");
|
|
321
|
-
},
|
|
322
|
-
let e =
|
|
323
|
-
e.length ===
|
|
324
|
+
}, Q = () => {
|
|
325
|
+
let e = R.value?.querySelectorAll("input[type=\"radio\"]") ?? [];
|
|
326
|
+
e.length === G.value.length && G.value.forEach((t, n) => {
|
|
324
327
|
e[n].checked = !!t.selected;
|
|
325
328
|
});
|
|
326
|
-
},
|
|
329
|
+
}, $ = re(), it = (e) => !A.clearable || A.readonly || e.disabled || !e.selected ? !1 : (j("update:modelValue", null), x(Q), !0), at = (e) => ({
|
|
327
330
|
onBlur: (t) => {
|
|
328
|
-
|
|
331
|
+
X.onBlur(e.valueHash), j("blur", t);
|
|
329
332
|
},
|
|
330
333
|
onChange: (t) => {
|
|
331
|
-
|
|
334
|
+
A.readonly ? t.target instanceof HTMLInputElement && oe(t.target, A.readonly, !!e.selected) : (j("change", t), j("update:modelValue", e.value), x(Q));
|
|
332
335
|
},
|
|
333
|
-
onClick: (
|
|
334
|
-
|
|
336
|
+
onClick: (t) => {
|
|
337
|
+
ie(t, A.readonly), j("click", t), $.count(t) <= 1 && it(e);
|
|
335
338
|
},
|
|
336
339
|
onFocus: (t) => {
|
|
337
|
-
|
|
340
|
+
X.onFocus(e.valueHash, t), B.value = !0, j("focus", t);
|
|
338
341
|
},
|
|
339
|
-
onInput: (e) =>
|
|
342
|
+
onInput: (e) => j("input", e),
|
|
340
343
|
onKeydown: (e) => {
|
|
341
|
-
|
|
344
|
+
ae(e, A.readonly), j("keydown", e);
|
|
342
345
|
},
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
onKeyup: (t) => {
|
|
347
|
+
t.key === " " && it(e) && t.preventDefault();
|
|
348
|
+
},
|
|
349
|
+
onMousedown: (e) => j("mousedown", e),
|
|
350
|
+
onMouseup: (e) => j("mouseup", e)
|
|
351
|
+
}), ot = (e, t, n, r, i, a) => ({
|
|
352
|
+
...se("radio", {
|
|
353
|
+
ariaDescribedby: [te(r, a), I.value ? F.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
348
354
|
ariaLabelledby: i,
|
|
349
|
-
autofocus:
|
|
355
|
+
autofocus: A.autofocus && !t,
|
|
350
356
|
checked: !!e.selected,
|
|
351
357
|
disabled: e.disabled,
|
|
352
|
-
id:
|
|
353
|
-
name:
|
|
354
|
-
readonly:
|
|
355
|
-
required:
|
|
358
|
+
id: Z(e, n),
|
|
359
|
+
name: P.value,
|
|
360
|
+
readonly: A.readonly,
|
|
361
|
+
required: A.required,
|
|
356
362
|
value: e.value
|
|
357
363
|
}),
|
|
358
|
-
...
|
|
359
|
-
}),
|
|
364
|
+
...at(e)
|
|
365
|
+
}), st = (e, t, n, r) => ({
|
|
360
366
|
checked: !!e.selected,
|
|
361
367
|
disabled: !!e.disabled,
|
|
362
|
-
focused:
|
|
363
|
-
focusVisible:
|
|
368
|
+
focused: X.focused(e.valueHash),
|
|
369
|
+
focusVisible: X.focusVisible(e.valueHash),
|
|
364
370
|
hasErrors: !!n,
|
|
365
371
|
hasWarnings: !!r && !n,
|
|
366
|
-
id:
|
|
367
|
-
name:
|
|
368
|
-
parsedValue:
|
|
369
|
-
readonly: !!
|
|
372
|
+
id: Z(e, t),
|
|
373
|
+
name: P.value,
|
|
374
|
+
parsedValue: ce("radio", e.value),
|
|
375
|
+
readonly: !!A.readonly,
|
|
370
376
|
value: e.value
|
|
371
377
|
});
|
|
372
|
-
return (e, a) => (
|
|
378
|
+
return (e, a) => (C(), Se(n, b({
|
|
373
379
|
id: l.id,
|
|
374
380
|
class: "bb-radio-group",
|
|
375
|
-
compact:
|
|
381
|
+
compact: E(k).compact,
|
|
376
382
|
description: l.description,
|
|
377
383
|
disabled: l.disabled,
|
|
378
|
-
errors:
|
|
384
|
+
errors: E(Le),
|
|
379
385
|
"has-errors": l.hasErrors,
|
|
380
|
-
"has-value":
|
|
386
|
+
"has-value": J.value,
|
|
381
387
|
"has-warnings": l.hasWarnings,
|
|
382
388
|
"hide-label": l.hideLegend,
|
|
383
389
|
hint: l.hint,
|
|
384
390
|
"input-align": l.inputAlign,
|
|
385
|
-
"input-position":
|
|
391
|
+
"input-position": E(k).inputPosition,
|
|
386
392
|
label: l.legend,
|
|
387
393
|
"label-align": l.labelAlign,
|
|
388
394
|
"label-mode": l.legendMode,
|
|
389
395
|
"label-position": l.legendPosition,
|
|
390
396
|
"label-tag": "legend",
|
|
391
|
-
layout:
|
|
392
|
-
loading:
|
|
393
|
-
name:
|
|
394
|
-
passthrough:
|
|
395
|
-
readonly:
|
|
396
|
-
reverse:
|
|
397
|
-
"show-asterisk":
|
|
398
|
-
"show-hint":
|
|
399
|
-
"ssr-marker":
|
|
397
|
+
layout: E(k).layout,
|
|
398
|
+
loading: E(H),
|
|
399
|
+
name: P.value,
|
|
400
|
+
passthrough: E(rt),
|
|
401
|
+
readonly: E(M),
|
|
402
|
+
reverse: E(k).reverse,
|
|
403
|
+
"show-asterisk": E(Ie),
|
|
404
|
+
"show-hint": We.value,
|
|
405
|
+
"ssr-marker": E(Ye),
|
|
400
406
|
tag: "fieldset",
|
|
401
407
|
warnings: l.warnings
|
|
402
|
-
},
|
|
403
|
-
label:
|
|
404
|
-
input:
|
|
405
|
-
ref:
|
|
406
|
-
"aria-labelledby":
|
|
407
|
-
"aria-readonly":
|
|
408
|
-
"aria-required":
|
|
408
|
+
}, E(Y).forwardAttrs), Te({
|
|
409
|
+
label: D((t) => [w(e.$slots, "legend", S(y(t)))]),
|
|
410
|
+
input: D(({ id: n, hasErrors: a, hasWarnings: o, ariaDescribedby: s }) => [_(r, {
|
|
411
|
+
ref: Ue,
|
|
412
|
+
"aria-labelledby": N() ? `${n}__label` : void 0,
|
|
413
|
+
"aria-readonly": N() && E(M) ? !0 : void 0,
|
|
414
|
+
"aria-required": N() ? E(Re) : void 0,
|
|
409
415
|
block: "bb-radio-group",
|
|
410
416
|
"empty-text": l.emptyText,
|
|
411
|
-
error:
|
|
417
|
+
error: E(Je),
|
|
412
418
|
"failed-text": l.failedText,
|
|
413
419
|
"has-errors": a,
|
|
414
420
|
"has-warnings": o,
|
|
415
421
|
"hide-label": l.hideLabel,
|
|
416
|
-
"indicator-ready":
|
|
422
|
+
"indicator-ready": E(tt),
|
|
417
423
|
"item-input-align": l.itemInputAlign,
|
|
418
424
|
"item-label-align": l.itemLabelAlign,
|
|
419
|
-
"item-layout":
|
|
420
|
-
"item-reverse":
|
|
421
|
-
"list-block":
|
|
422
|
-
"list-layout":
|
|
423
|
-
loading: !!
|
|
425
|
+
"item-layout": E(k).itemLayout,
|
|
426
|
+
"item-reverse": E(k).itemReverse,
|
|
427
|
+
"list-block": E(k).block,
|
|
428
|
+
"list-layout": E(k).listLayout,
|
|
429
|
+
loading: !!E(H),
|
|
424
430
|
"loading-text": l.loadingText,
|
|
425
|
-
options:
|
|
426
|
-
passthrough:
|
|
427
|
-
role:
|
|
428
|
-
variant: l.variant
|
|
431
|
+
options: E(G),
|
|
432
|
+
passthrough: E(Y),
|
|
433
|
+
role: N() ? "radiogroup" : void 0,
|
|
434
|
+
variant: l.variant,
|
|
435
|
+
onMousedownCapture: E($).onPress
|
|
429
436
|
}, {
|
|
430
|
-
prepend:
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
437
|
+
prepend: D(() => [
|
|
438
|
+
(C(!0), g(xe, null, De(E(et), (e) => (C(), g("span", b({
|
|
439
|
+
key: e.key,
|
|
440
|
+
"aria-hidden": "true",
|
|
441
|
+
class: "bb-radio-group__indicator",
|
|
442
|
+
style: E(nt)(e)
|
|
443
|
+
}, { ref_for: !0 }, E(Y).indicator), null, 16))), 128)),
|
|
444
|
+
I.value ? (C(), g("span", {
|
|
445
|
+
key: 0,
|
|
446
|
+
id: E(F),
|
|
447
|
+
hidden: ""
|
|
448
|
+
}, ke(E(Ve)), 9, Ne)) : Ce("", !0),
|
|
449
|
+
w(e.$slots, "prepend")
|
|
450
|
+
]),
|
|
451
|
+
loading: D(() => [w(e.$slots, "loading")]),
|
|
452
|
+
empty: D((t) => [w(e.$slots, "empty", S(y(t)))]),
|
|
453
|
+
label: D((t) => [w(e.$slots, "label", S(y(t)))]),
|
|
454
|
+
input: D(({ option: r, index: c, labelId: l, descriptionId: u, rowStates: d }) => [Me(we("input", S(y(ot(r, c, n, s, l, u))), null, 16), [[E(t)]]), w(e.$slots, "icon", b({
|
|
440
455
|
item: r.item,
|
|
441
456
|
text: r.text
|
|
442
|
-
},
|
|
457
|
+
}, st(r, n, a, o)), () => [_(i, b({
|
|
443
458
|
checked: !!r.selected,
|
|
444
459
|
disabled: !!r.disabled,
|
|
445
|
-
"focus-visible":
|
|
446
|
-
focused:
|
|
460
|
+
"focus-visible": E(X).focusVisible(r.valueHash),
|
|
461
|
+
focused: E(X).focused(r.valueHash),
|
|
447
462
|
"has-errors": !!a,
|
|
448
463
|
"has-warnings": !!o && !a,
|
|
449
|
-
readonly: !!
|
|
450
|
-
},
|
|
464
|
+
readonly: !!E(M)
|
|
465
|
+
}, E(Y).part("icon", d, r.item)), null, 16, [
|
|
451
466
|
"checked",
|
|
452
467
|
"disabled",
|
|
453
468
|
"focus-visible",
|
|
@@ -456,7 +471,7 @@ var j = /*@__PURE__*/ b({
|
|
|
456
471
|
"has-warnings",
|
|
457
472
|
"readonly"
|
|
458
473
|
])])]),
|
|
459
|
-
append:
|
|
474
|
+
append: D(() => [w(e.$slots, "append")]),
|
|
460
475
|
_: 2
|
|
461
476
|
}, 1032, [
|
|
462
477
|
"aria-labelledby",
|
|
@@ -480,14 +495,15 @@ var j = /*@__PURE__*/ b({
|
|
|
480
495
|
"options",
|
|
481
496
|
"passthrough",
|
|
482
497
|
"role",
|
|
483
|
-
"variant"
|
|
498
|
+
"variant",
|
|
499
|
+
"onMousedownCapture"
|
|
484
500
|
])]),
|
|
485
501
|
_: 2
|
|
486
502
|
}, [e.$slots.description ? {
|
|
487
503
|
name: "description",
|
|
488
|
-
fn:
|
|
504
|
+
fn: D((t) => [w(e.$slots, "description", S(y(t)))]),
|
|
489
505
|
key: "0"
|
|
490
506
|
} : void 0]), 1040, /* @__PURE__ */ "id.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.input-position.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.ssr-marker.warnings".split(".")));
|
|
491
507
|
}
|
|
492
508
|
});
|
|
493
|
-
export {
|
|
509
|
+
export { O as default };
|