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
|
@@ -163,9 +163,11 @@ export type BbButtonOwnProps = {
|
|
|
163
163
|
*/
|
|
164
164
|
external?: boolean;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Shows only the button's icon (`prepend:icon` when it has both); the
|
|
167
|
+
* label is hidden but stays its accessible name, so always write it.
|
|
168
|
+
* `true`, or per breakpoint: `{ default: true, md: false }`.
|
|
167
169
|
*/
|
|
168
|
-
|
|
170
|
+
iconOnly?: Responsive<boolean>;
|
|
169
171
|
/**
|
|
170
172
|
* Triggers a loading indicator. A loading button is soft-disabled on its
|
|
171
173
|
* own (`aria-disabled`, out of the tab order, clicks and navigation
|
|
@@ -393,11 +395,10 @@ export type BbButtonSlots = {
|
|
|
393
395
|
*/
|
|
394
396
|
default?: (props: BbLinkSlotProps) => any;
|
|
395
397
|
/**
|
|
396
|
-
* The
|
|
397
|
-
* the `icon` part: `pt:icon`, `--icon-size` and the loading
|
|
398
|
+
* The leading icon, replacing `prepend:icon` (the one `icon-only` shows).
|
|
399
|
+
* Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading
|
|
400
|
+
* spinner apply.
|
|
398
401
|
*/
|
|
399
|
-
icon?: (props: BbButtonIconSlotProps) => any;
|
|
400
|
-
/** The leading icon, replacing `prepend:icon`; inside the `icon` part. */
|
|
401
402
|
'prepend:icon'?: (props: BbButtonIconSlotProps) => any;
|
|
402
403
|
/** The trailing icon, replacing `append:icon`; inside the `icon` part. */
|
|
403
404
|
'append:icon'?: (props: BbButtonIconSlotProps) => any;
|
|
@@ -40,7 +40,8 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
40
40
|
utc?: boolean;
|
|
41
41
|
disabled?: boolean;
|
|
42
42
|
readonly?: boolean;
|
|
43
|
-
|
|
43
|
+
clearable?: boolean;
|
|
44
|
+
} & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "max" | "selectable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
|
|
44
45
|
"onUpdate:modelValue"?: ((value: import('./types.js').BbDateValue<R, M>) => any) | undefined;
|
|
45
46
|
"onUpdate:activeSegment"?: ((value: BbCalendarSegment) => any) | undefined;
|
|
46
47
|
"onTime-pick"?: ((payload: {
|
|
@@ -152,7 +152,8 @@ var De = ["role"], Oe = {
|
|
|
152
152
|
firstDayOfWeek: {},
|
|
153
153
|
utc: { type: Boolean },
|
|
154
154
|
disabled: { type: Boolean },
|
|
155
|
-
readonly: { type: Boolean }
|
|
155
|
+
readonly: { type: Boolean },
|
|
156
|
+
clearable: { type: Boolean }
|
|
156
157
|
},
|
|
157
158
|
emits: [
|
|
158
159
|
"update:modelValue",
|
|
@@ -225,6 +225,11 @@ export type BbCalendarBaseProps = BbCalendarPtProps & {
|
|
|
225
225
|
disabled?: boolean;
|
|
226
226
|
/** Shows the calendar and lets the user page through it, but no pick changes the value. */
|
|
227
227
|
readonly?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Clicking the selected date (week, month, year) again clears a single
|
|
230
|
+
* value. Off: re-picking keeps it. `multiple` and `range` ignore it.
|
|
231
|
+
*/
|
|
232
|
+
clearable?: boolean;
|
|
228
233
|
};
|
|
229
234
|
/**
|
|
230
235
|
* The v-model of `BbCalendar`, typed by the mode props (vmodel): what the
|
|
@@ -224,7 +224,7 @@ var x = ({ props: x, firstDayOfWeek: S, floating: Me, min: Ne, max: Pe, modelVal
|
|
|
224
224
|
} else if (x.multiple) {
|
|
225
225
|
if (!Array.isArray(i)) return;
|
|
226
226
|
$(r.selected ? i.filter((e) => e !== n) : Te([...i, n]));
|
|
227
|
-
} else $(r.selected ? null : n);
|
|
227
|
+
} else $(r.selected && x.clearable ? null : n);
|
|
228
228
|
};
|
|
229
229
|
De({
|
|
230
230
|
passthrough: Ie,
|
|
@@ -192,7 +192,7 @@ var D = ({ props: D, cursor: O, panes: k, system: A, nu: j, setCursor: M, pick:
|
|
|
192
192
|
} else N(m([...t, s(e.original, I.value)]));
|
|
193
193
|
}
|
|
194
194
|
}, we = (e) => {
|
|
195
|
-
e.selected ? N(null) : N(s(e.original, I.value));
|
|
195
|
+
e.selected && D.clearable ? N(null) : N(s(e.original, I.value));
|
|
196
196
|
}, $ = (e, t) => {
|
|
197
197
|
let n = O.value.clone();
|
|
198
198
|
for (let r = 0; r < 366; r++) if (n = n.add(e, t), !G(n)) return n;
|
|
@@ -67,14 +67,12 @@ export type BbCheckboxFieldProps = {
|
|
|
67
67
|
layout?: Responsive<FieldLayout>;
|
|
68
68
|
/**
|
|
69
69
|
* Vertical position of the label block in a side-by-side row; not
|
|
70
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
71
|
-
* meets the control's.
|
|
70
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
72
71
|
*/
|
|
73
72
|
labelAlign?: FieldCrossAlign;
|
|
74
73
|
/**
|
|
75
74
|
* Vertical position of the control in a side-by-side row; not
|
|
76
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
77
|
-
* meets the label's.
|
|
75
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
78
76
|
*/
|
|
79
77
|
inputAlign?: FieldCrossAlign;
|
|
80
78
|
/**
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ItemGetter } from '../../types/ItemAccessor.js';
|
|
2
|
+
import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
|
|
1
3
|
import { BbCheckboxGroupEvents, BbCheckboxGroupSlots } from './types.js';
|
|
2
|
-
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<{
|
|
4
|
+
declare const __VLS_export: <const T = any, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = true>(__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
|
} & {
|
|
@@ -204,10 +206,14 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
204
206
|
"indicator:line"?: import('../../types/passthrough.js').PtValue | undefined;
|
|
205
207
|
}) | undefined;
|
|
206
208
|
variant?: import('../../index.js').CheckboxVariantType;
|
|
207
|
-
} &
|
|
209
|
+
} & {
|
|
210
|
+
itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
|
|
211
|
+
itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
|
|
212
|
+
multiple?: MultipleInput<M, true>;
|
|
213
|
+
} & 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" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | keyof import('./ptKeys.generated.js').BbCheckboxGroupPtKeys | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
|
|
208
214
|
onActive?: (() => any) | undefined;
|
|
209
215
|
onInput?: ((event: Event) => any) | undefined;
|
|
210
|
-
"onUpdate:modelValue"?: ((value:
|
|
216
|
+
"onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
|
|
211
217
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
212
218
|
onInactive?: (() => any) | undefined;
|
|
213
219
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -222,7 +228,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
222
228
|
expose: (exposed: {}) => void;
|
|
223
229
|
attrs: any;
|
|
224
230
|
slots: BbCheckboxGroupSlots<T>;
|
|
225
|
-
emit: BbCheckboxGroupEvents
|
|
231
|
+
emit: BbCheckboxGroupEvents<SelectModelOf<OptionValueOf<T, A>, M>>;
|
|
226
232
|
}>) => import('vue').VNode & {
|
|
227
233
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
228
234
|
};
|
package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -271,7 +271,7 @@ var A = /*@__PURE__*/ x({
|
|
|
271
271
|
clientReproducible: Fe,
|
|
272
272
|
trigger: !0,
|
|
273
273
|
currentValue: M.modelValue,
|
|
274
|
-
multiple: M.multiple,
|
|
274
|
+
multiple: !!M.multiple,
|
|
275
275
|
fn: async () => {
|
|
276
276
|
await z(void 0, "initial", M.modelValue) === "applied" && V();
|
|
277
277
|
}
|
|
@@ -299,7 +299,7 @@ var A = /*@__PURE__*/ x({
|
|
|
299
299
|
key: "valueHash"
|
|
300
300
|
}), { coherent: K, coherentValue: We } = h({
|
|
301
301
|
modelValue: D(() => M.modelValue),
|
|
302
|
-
multiple: M.multiple,
|
|
302
|
+
multiple: !!M.multiple,
|
|
303
303
|
iteratee: (e) => !!Ue.value[ee(e)]
|
|
304
304
|
}), q = 0;
|
|
305
305
|
g(() => M.modelValue, async () => {
|
|
@@ -77,14 +77,12 @@ export type BbCheckboxGroupBaseProps<T> = {
|
|
|
77
77
|
layout?: Responsive<FieldLayout>;
|
|
78
78
|
/**
|
|
79
79
|
* Vertical position of the label block in a side-by-side row; not
|
|
80
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
81
|
-
* meets the control's.
|
|
80
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
82
81
|
*/
|
|
83
82
|
labelAlign?: FieldCrossAlign;
|
|
84
83
|
/**
|
|
85
84
|
* Vertical position of the control in a side-by-side row; not
|
|
86
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
87
|
-
* meets the label's.
|
|
85
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
88
86
|
*/
|
|
89
87
|
inputAlign?: FieldCrossAlign;
|
|
90
88
|
/**
|
|
@@ -293,7 +291,7 @@ export type BbCheckboxGroupBaseProps<T> = {
|
|
|
293
291
|
*/
|
|
294
292
|
selectable?: boolean | ((item: T) => boolean);
|
|
295
293
|
} & FormFieldProps<any>;
|
|
296
|
-
export type BbCheckboxGroupEvents = {
|
|
294
|
+
export type BbCheckboxGroupEvents<V = any> = {
|
|
297
295
|
/**
|
|
298
296
|
* Emitted when one of the generated checkbox inputs loses focus.
|
|
299
297
|
* Forwards the original DOM `FocusEvent`.
|
|
@@ -344,7 +342,7 @@ export type BbCheckboxGroupEvents = {
|
|
|
344
342
|
/**
|
|
345
343
|
* Emitted with the coherent next selection array whenever selection changes.
|
|
346
344
|
*/
|
|
347
|
-
(e: 'update:modelValue', value:
|
|
345
|
+
(e: 'update:modelValue', value: V): void;
|
|
348
346
|
};
|
|
349
347
|
/**
|
|
350
348
|
* BbCheckboxGroup's `pt:*` attributes: the documented keys, and the patterns
|
|
@@ -145,14 +145,12 @@ export type BbColorInputProps = BbColorInputPtProps & {
|
|
|
145
145
|
layout?: Responsive<FieldLayout>;
|
|
146
146
|
/**
|
|
147
147
|
* Vertical position of the label block in a side-by-side row; not
|
|
148
|
-
* `labelPosition`, the horizontal one. Omitted,
|
|
149
|
-
* meets the control's.
|
|
148
|
+
* `labelPosition`, the horizontal one. Omitted, `'top'`.
|
|
150
149
|
*/
|
|
151
150
|
labelAlign?: FieldCrossAlign;
|
|
152
151
|
/**
|
|
153
152
|
* Vertical position of the control in a side-by-side row; not
|
|
154
|
-
* `inputPosition`, the horizontal one. Omitted,
|
|
155
|
-
* meets the label's.
|
|
153
|
+
* `inputPosition`, the horizontal one. Omitted, `'top'`.
|
|
156
154
|
*/
|
|
157
155
|
inputAlign?: FieldCrossAlign;
|
|
158
156
|
/**
|
|
@@ -12,16 +12,16 @@ var d = /*@__PURE__*/ o({
|
|
|
12
12
|
setup(o) {
|
|
13
13
|
let d = o;
|
|
14
14
|
r();
|
|
15
|
-
let f = s(n, null), p = t, m = process.env.NODE_ENV === "production" ? null : e(), h = /* @__PURE__ */ new Set(), g, _, v = a(() => {
|
|
15
|
+
let f = s(n, null), p = t, m = process.env.NODE_ENV === "production" ? null : e(), h = /* @__PURE__ */ new Set(), g = (e) => Array.isArray(e) ? e.map(g) : e && typeof e == "object" && [Object.prototype, null].includes(Object.getPrototypeOf(u(e))) ? Object.fromEntries(Object.entries(u(e)).map(([e, t]) => [e, g(t)])) : e, _, v, y = a(() => {
|
|
16
16
|
let e = d.config;
|
|
17
|
-
if (!e) return
|
|
18
|
-
let t = JSON.stringify(u(e));
|
|
19
|
-
if (t ===
|
|
17
|
+
if (!e) return _ = v = void 0;
|
|
18
|
+
let t = JSON.stringify(u(e), (e, t) => typeof t == "function" ? `fn:${String(t)}` : t);
|
|
19
|
+
if (t === _ && v) return v;
|
|
20
20
|
if (m) for (let [t, n] of Object.entries(e)) for (let e of Object.keys(n ?? {})) (e === "variants" || p[t]?.includes(e)) && !h.has(`${t}.${e}`) && (h.add(`${t}.${e}`), m.warn(`BbConfigScope: \`config.${t}.${e}\` is app-wide only and is ignored here. Set it in the plugin's \`components\` map.`));
|
|
21
|
-
return
|
|
21
|
+
return _ = t, v = {
|
|
22
22
|
source: "<BbConfigScope :config>",
|
|
23
|
-
map:
|
|
24
|
-
},
|
|
23
|
+
map: g(u(e))
|
|
24
|
+
}, v;
|
|
25
25
|
});
|
|
26
26
|
return c(n, a(() => {
|
|
27
27
|
let e = [...f?.value ?? []];
|
|
@@ -29,7 +29,7 @@ var d = /*@__PURE__*/ o({
|
|
|
29
29
|
source: `configScopes.${d.name}`,
|
|
30
30
|
map: i.value[d.name] ?? {}
|
|
31
31
|
});
|
|
32
|
-
let t =
|
|
32
|
+
let t = y.value;
|
|
33
33
|
return t && e.push(t), e;
|
|
34
34
|
})), (e, t) => l(e.$slots, "default");
|
|
35
35
|
}
|
|
@@ -7,13 +7,14 @@ import { usePassthrough as c, variantPt as l } from "../../composables/usePassth
|
|
|
7
7
|
import { BB_DIALOG_PT as u } from "../BbDialog/types.js";
|
|
8
8
|
import { BB_CONFIRM_PT as d } from "./types.js";
|
|
9
9
|
import { CONFIRM_ENTRY as f } from "./confirmEntry.js";
|
|
10
|
-
import p from "../
|
|
11
|
-
import {
|
|
10
|
+
import { BB_OVERLAY_ACTION_ATTRS as p } from "../BbDialog/overlayActions.js";
|
|
11
|
+
import { ACTION_LOOK_KEYS as m } from "../../types/ConfigDefaults.js";
|
|
12
|
+
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, defineComponent as y, inject as b, markRaw as x, mergeProps as S, normalizeProps as C, onMounted as w, openBlock as T, provide as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, useAttrs as A, withCtx as j } from "vue";
|
|
12
13
|
// src/components/BbConfirm/BbConfirm.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
+
var M = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "bb-confirm__content"
|
|
16
|
-
},
|
|
17
|
+
}, N = /*@__PURE__*/ y({
|
|
17
18
|
mixins: [l(d)],
|
|
18
19
|
inheritAttrs: !1,
|
|
19
20
|
__name: "BbConfirm",
|
|
@@ -66,160 +67,98 @@ var N = {
|
|
|
66
67
|
pt: {}
|
|
67
68
|
},
|
|
68
69
|
setup(l) {
|
|
69
|
-
let
|
|
70
|
+
let y = l, N = b(f), P = N.state, F = h(() => N.message), { isMobile: I } = o(), L = A(), R = d.parts.filter((e) => e !== "text" && e !== "action"), z = c({
|
|
70
71
|
component: "BbConfirm",
|
|
71
|
-
attrs:
|
|
72
|
-
props:
|
|
72
|
+
attrs: L,
|
|
73
|
+
props: y,
|
|
73
74
|
parts: d.parts,
|
|
74
75
|
states: d.states,
|
|
75
76
|
active: {
|
|
76
|
-
open: () =>
|
|
77
|
-
fullscreen: () =>
|
|
77
|
+
open: () => P.processing,
|
|
78
|
+
fullscreen: () => F.value?.fullscreen === !0 || F.value?.fullscreen === "mobile" && I.value
|
|
78
79
|
},
|
|
79
80
|
variant: {
|
|
80
81
|
...d.variant,
|
|
81
|
-
current: () =>
|
|
82
|
+
current: () => F.value?.variant ?? "default"
|
|
82
83
|
}
|
|
83
|
-
}),
|
|
84
|
-
let { class: e, ...t } =
|
|
84
|
+
}), B = h(() => {
|
|
85
|
+
let { class: e, ...t } = L, n = {
|
|
85
86
|
role: "alertdialog",
|
|
86
87
|
...t
|
|
87
88
|
};
|
|
88
|
-
return
|
|
89
|
-
"aria-labelledby":
|
|
89
|
+
return W.value && !F.value?.title ? {
|
|
90
|
+
"aria-labelledby": V,
|
|
90
91
|
...n
|
|
91
92
|
} : n;
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
}), V = `confirm_text_${i().id.value}`, H = a("BbConfirm", "size");
|
|
94
|
+
w(() => {
|
|
95
|
+
P.processing || r(N);
|
|
95
96
|
});
|
|
96
|
-
let
|
|
97
|
-
data:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
let e =
|
|
97
|
+
let U = h(() => P.okBusy || P.cancelBusy || P.actionBusy !== null), W = h(() => !!F.value?.text), G = {
|
|
98
|
+
data: F.value.data ?? {},
|
|
99
|
+
ok: () => n(!0, !1, N),
|
|
100
|
+
cancel: () => n(!1, !0, N)
|
|
101
|
+
}, K = h(() => {
|
|
102
|
+
let e = F.value?.portal;
|
|
102
103
|
if (!e) return null;
|
|
103
104
|
if (typeof e != "string") return e;
|
|
104
105
|
let n = t.get(e);
|
|
105
|
-
return n ?
|
|
106
|
-
}),
|
|
107
|
-
let { portal: e, data: t } =
|
|
106
|
+
return n ? x(() => n(G)) : null;
|
|
107
|
+
}), q = h(() => W.value || !!K.value), J = h(() => {
|
|
108
|
+
let { portal: e, data: t } = F.value ?? {};
|
|
108
109
|
return !e || typeof e == "string" || !t ? {} : t;
|
|
109
|
-
}),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
}), Y = a("BbConfirm", m.ok), X = a("BbConfirm", m.cancel), Z = (e, t) => {
|
|
111
|
+
if (!e) return !1;
|
|
112
|
+
let { onClick: n, defaulted: r = [], ...i } = e, a = { ...i };
|
|
113
|
+
for (let [e, n] of Object.entries(t ?? {})) n !== void 0 && (a[e] === void 0 || r.includes(e)) && (a[e] = n);
|
|
114
|
+
return {
|
|
115
|
+
...a,
|
|
116
|
+
onClick: async () => (await n(), !1)
|
|
117
|
+
};
|
|
118
|
+
}, Q = h(() => Z(F.value?.ok, Y())), $ = h(() => Z(F.value?.cancel, X())), ee = h(() => {
|
|
119
|
+
let e = F.value?.actions;
|
|
120
|
+
return e === !1 ? !1 : Array.isArray(e) && e.length ? e.map((e) => Z(e)) : void 0;
|
|
121
|
+
});
|
|
122
|
+
E(p, () => S({ class: "bb-confirm__action" }, z.action));
|
|
123
|
+
let te = h(() => ["bb-confirm", `bb-confirm--${F.value?.variant ?? "default"}`]), ne = (e) => {
|
|
124
|
+
e || n(!1, !1, N);
|
|
114
125
|
};
|
|
115
|
-
return (t, n) => (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
126
|
+
return (t, n) => (T(), g(s, S({
|
|
127
|
+
actions: ee.value,
|
|
128
|
+
"aria-describedby": W.value && F.value?.title ? V : void 0,
|
|
129
|
+
cancel: $.value,
|
|
130
|
+
class: te.value,
|
|
131
|
+
"focus-target": F.value?.focusTarget,
|
|
132
|
+
fullscreen: F.value?.fullscreen,
|
|
133
|
+
"hide-close": U.value || !!F.value?.hideClose,
|
|
134
|
+
"model-value": k(P).processing,
|
|
135
|
+
ok: Q.value,
|
|
136
|
+
persistent: U.value || !!F.value?.persistent,
|
|
137
|
+
pt: k(z).forward(k(R), k(u).states)
|
|
138
|
+
}, B.value, {
|
|
139
|
+
size: F.value?.size ?? k(H)(),
|
|
140
|
+
stack: F.value?.stack ?? k("bb-confirm"),
|
|
141
|
+
title: F.value?.title,
|
|
142
|
+
"transition-duration": k(e),
|
|
143
|
+
onHidden: n[0] ||= (e) => k(r)(k(N)),
|
|
144
|
+
"onUpdate:modelValue": ne
|
|
145
|
+
}), {
|
|
146
|
+
default: j(() => [q.value ? (T(), v("div", M, [W.value ? (T(), v("div", S({
|
|
133
147
|
key: 0,
|
|
134
|
-
id:
|
|
148
|
+
id: V,
|
|
135
149
|
class: "bb-confirm__text"
|
|
136
|
-
},
|
|
137
|
-
_:
|
|
138
|
-
}, [
|
|
139
|
-
|
|
140
|
-
fn: M(() => [
|
|
141
|
-
Z.value ? (E(!0), v(m, { key: 0 }, D(Z.value, (e, t) => (E(), g(p, C({
|
|
142
|
-
key: t,
|
|
143
|
-
"append:icon": e["append:icon"],
|
|
144
|
-
block: e.block,
|
|
145
|
-
disabled: A(F).actionBusy !== null && A(F).actionBusy !== t,
|
|
146
|
-
icon: e.icon,
|
|
147
|
-
loading: A(F).actionBusy === t,
|
|
148
|
-
"prepend:icon": e["prepend:icon"],
|
|
149
|
-
size: e.size,
|
|
150
|
-
text: e.text,
|
|
151
|
-
variant: e.variant,
|
|
152
|
-
onClick: (t) => e.onClick(),
|
|
153
|
-
class: "bb-confirm__action"
|
|
154
|
-
}, { ref_for: !0 }, A(B).action), null, 16, [
|
|
155
|
-
"append:icon",
|
|
156
|
-
"block",
|
|
157
|
-
"disabled",
|
|
158
|
-
"icon",
|
|
159
|
-
"loading",
|
|
160
|
-
"prepend:icon",
|
|
161
|
-
"size",
|
|
162
|
-
"text",
|
|
163
|
-
"variant",
|
|
164
|
-
"onClick"
|
|
165
|
-
]))), 128)) : _("", !0),
|
|
166
|
-
Q.value ? (E(), g(p, C({
|
|
167
|
-
key: 1,
|
|
168
|
-
"append:icon": Q.value["append:icon"],
|
|
169
|
-
block: Q.value.block,
|
|
170
|
-
disabled: A(F).yesBusy,
|
|
171
|
-
icon: Q.value.icon,
|
|
172
|
-
loading: A(F).noBusy,
|
|
173
|
-
"prepend:icon": Q.value["prepend:icon"],
|
|
174
|
-
size: Q.value.size,
|
|
175
|
-
text: Q.value.text,
|
|
176
|
-
variant: Q.value.variant,
|
|
177
|
-
onClick: n[0] ||= (e) => Q.value.onClick(),
|
|
178
|
-
class: "bb-confirm__action"
|
|
179
|
-
}, A(B).action), null, 16, [
|
|
180
|
-
"append:icon",
|
|
181
|
-
"block",
|
|
182
|
-
"disabled",
|
|
183
|
-
"icon",
|
|
184
|
-
"loading",
|
|
185
|
-
"prepend:icon",
|
|
186
|
-
"size",
|
|
187
|
-
"text",
|
|
188
|
-
"variant"
|
|
189
|
-
])) : _("", !0),
|
|
190
|
-
$.value ? (E(), g(p, C({
|
|
191
|
-
key: 2,
|
|
192
|
-
"append:icon": $.value["append:icon"],
|
|
193
|
-
block: $.value.block,
|
|
194
|
-
disabled: A(F).noBusy,
|
|
195
|
-
icon: $.value.icon,
|
|
196
|
-
loading: A(F).yesBusy,
|
|
197
|
-
"prepend:icon": $.value["prepend:icon"],
|
|
198
|
-
size: $.value.size,
|
|
199
|
-
text: $.value.text,
|
|
200
|
-
variant: $.value.variant,
|
|
201
|
-
onClick: n[1] ||= (e) => $.value.onClick(),
|
|
202
|
-
class: "bb-confirm__action"
|
|
203
|
-
}, A(B).action), null, 16, [
|
|
204
|
-
"append:icon",
|
|
205
|
-
"block",
|
|
206
|
-
"disabled",
|
|
207
|
-
"icon",
|
|
208
|
-
"loading",
|
|
209
|
-
"prepend:icon",
|
|
210
|
-
"size",
|
|
211
|
-
"text",
|
|
212
|
-
"variant"
|
|
213
|
-
])) : _("", !0)
|
|
214
|
-
]),
|
|
215
|
-
key: "0"
|
|
216
|
-
} : void 0]), 1040, [
|
|
150
|
+
}, k(z).text), O(F.value?.text), 17)) : (T(), g(D(K.value), C(S({ key: 1 }, J.value)), null, 16))])) : _("", !0)]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 16, [
|
|
153
|
+
"actions",
|
|
217
154
|
"aria-describedby",
|
|
155
|
+
"cancel",
|
|
218
156
|
"class",
|
|
219
157
|
"focus-target",
|
|
220
158
|
"fullscreen",
|
|
221
159
|
"hide-close",
|
|
222
160
|
"model-value",
|
|
161
|
+
"ok",
|
|
223
162
|
"persistent",
|
|
224
163
|
"pt",
|
|
225
164
|
"size",
|
|
@@ -229,4 +168,4 @@ var N = {
|
|
|
229
168
|
]));
|
|
230
169
|
}
|
|
231
170
|
});
|
|
232
|
-
export {
|
|
171
|
+
export { N as default };
|
|
@@ -162,23 +162,23 @@ export interface BbConfirmPtKeys {
|
|
|
162
162
|
*/
|
|
163
163
|
'pt:close:destructive'?: PtValue;
|
|
164
164
|
/**
|
|
165
|
-
* Every footer button —
|
|
165
|
+
* Every footer button — ok, cancel and each custom `actions` entry — at the button's root. A broadcast.
|
|
166
166
|
*/
|
|
167
167
|
'pt:action'?: PtValue;
|
|
168
168
|
/**
|
|
169
|
-
* Every footer button —
|
|
169
|
+
* Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `open`: a confirm is showing. See `pt:action`.
|
|
170
170
|
*/
|
|
171
171
|
'pt:action:open'?: PtValue;
|
|
172
172
|
/**
|
|
173
|
-
* Every footer button —
|
|
173
|
+
* Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `fullscreen`: the showing confirm is fullscreen (its `fullscreen` option, or `'mobile'` on a phone). See `pt:action`.
|
|
174
174
|
*/
|
|
175
175
|
'pt:action:fullscreen'?: PtValue;
|
|
176
176
|
/**
|
|
177
|
-
* Every footer button —
|
|
177
|
+
* Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `default`: component-wide, from the message: `variant: 'default'`. Merged after the part's base entry and before its states, so the real states still win. See `pt:action`.
|
|
178
178
|
*/
|
|
179
179
|
'pt:action:default'?: PtValue;
|
|
180
180
|
/**
|
|
181
|
-
* Every footer button —
|
|
181
|
+
* Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `destructive`: component-wide, from the message: `variant: 'destructive'`. Below the real states, like every variant. See `pt:action`.
|
|
182
182
|
*/
|
|
183
183
|
'pt:action:destructive'?: PtValue;
|
|
184
184
|
}
|
|
@@ -18,7 +18,7 @@ import { BbConfirmPtKeys } from './ptKeys.generated.js';
|
|
|
18
18
|
* @part text - The confirm's plain-text body — not a portal's content.
|
|
19
19
|
* @part footer - The action buttons' band.
|
|
20
20
|
* @part close - The ✕.
|
|
21
|
-
* @part action - Every footer button —
|
|
21
|
+
* @part action - Every footer button — ok, cancel and each custom `actions`
|
|
22
22
|
* entry — at the button's root. A broadcast.
|
|
23
23
|
*/
|
|
24
24
|
export type BbConfirmPtPart = 'root' | 'sheet' | 'header' | 'title' | 'content' | 'text' | 'footer' | 'close' | 'action';
|
|
@@ -65,9 +65,9 @@ export type BbConfirmProps = BbConfirmPtProps & {
|
|
|
65
65
|
export type BbConfirmPortalSlotProps<P = any> = {
|
|
66
66
|
/** The `data` the `confirm()` passed. */
|
|
67
67
|
data: P;
|
|
68
|
-
/** Resolves the confirm with `true
|
|
69
|
-
|
|
70
|
-
/** Resolves the confirm with `false
|
|
71
|
-
|
|
68
|
+
/** Resolves the confirm with `true` (through `ok.onClick` when set). */
|
|
69
|
+
ok: () => void;
|
|
70
|
+
/** Resolves the confirm with `false` (through `cancel.onClick` when set). */
|
|
71
|
+
cancel: () => void;
|
|
72
72
|
};
|
|
73
73
|
export {};
|
|
@@ -41,6 +41,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
41
41
|
utc?: boolean;
|
|
42
42
|
disabled?: boolean;
|
|
43
43
|
readonly?: boolean;
|
|
44
|
+
clearable?: boolean;
|
|
44
45
|
adaptive?: boolean;
|
|
45
46
|
offCanvasProps?: Partial<import('../../index.js').BbOffCanvasProps>;
|
|
46
47
|
transitionDuration?: number;
|
|
@@ -51,7 +52,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
51
52
|
disableFlip?: boolean;
|
|
52
53
|
eager?: boolean;
|
|
53
54
|
label?: string;
|
|
54
|
-
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
|
|
55
|
+
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
|
|
55
56
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, M>) => any) | undefined;
|
|
56
57
|
onHide?: (() => any) | undefined;
|
|
57
58
|
onShow?: (() => any) | undefined;
|
|
@@ -133,6 +133,7 @@ var k = /*@__PURE__*/ v({
|
|
|
133
133
|
utc: { type: Boolean },
|
|
134
134
|
disabled: { type: Boolean },
|
|
135
135
|
readonly: { type: Boolean },
|
|
136
|
+
clearable: { type: Boolean },
|
|
136
137
|
adaptive: {
|
|
137
138
|
type: Boolean,
|
|
138
139
|
default: void 0
|
|
@@ -285,6 +286,7 @@ var k = /*@__PURE__*/ v({
|
|
|
285
286
|
default: D(() => [_(ee, {
|
|
286
287
|
"active-segment": d.activeSegment,
|
|
287
288
|
ampm: d.ampm,
|
|
289
|
+
clearable: d.clearable,
|
|
288
290
|
disabled: d.disabled,
|
|
289
291
|
"first-day-of-week": d.firstDayOfWeek,
|
|
290
292
|
floating: d.floating,
|
|
@@ -317,6 +319,7 @@ var k = /*@__PURE__*/ v({
|
|
|
317
319
|
}))]), 1032, [
|
|
318
320
|
"active-segment",
|
|
319
321
|
"ampm",
|
|
322
|
+
"clearable",
|
|
320
323
|
"disabled",
|
|
321
324
|
"first-day-of-week",
|
|
322
325
|
"floating",
|
|
@@ -193,6 +193,11 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
|
|
|
193
193
|
disabled?: boolean;
|
|
194
194
|
/** Prevents opening while keeping the activator visible. */
|
|
195
195
|
readonly?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Clicking the selected date (week, month, year) again clears a single
|
|
198
|
+
* value. Off: re-picking keeps it. `multiple` and `range` ignore it.
|
|
199
|
+
*/
|
|
200
|
+
clearable?: boolean;
|
|
196
201
|
/**
|
|
197
202
|
* On mobile, open in a bottom off-canvas sheet instead of a floating popover.
|
|
198
203
|
* When unset, falls back to the global `all.adaptive`.
|
|
@@ -78,7 +78,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
|
|
|
78
78
|
time?: string | string[] | null;
|
|
79
79
|
transitionDuration?: number;
|
|
80
80
|
utc?: boolean;
|
|
81
|
-
} & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "
|
|
81
|
+
} & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
|
|
82
82
|
onActive?: (() => any) | undefined;
|
|
83
83
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, false>) => any) | undefined;
|
|
84
84
|
onInactive?: (() => any) | undefined;
|