bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/cli.mjs +9 -3
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +2 -2
- package/dist/ai/BbDialog.md +233 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +100 -13
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +7 -5
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +242 -9
- package/dist/ai/components.json +52 -51
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +72 -26
- package/dist/ai/guides/migration/v2-to-v3.md +52 -10
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +3 -3
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +6 -5
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +152 -11
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +2 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +32 -17
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +21 -14
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +1997 -1151
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/ItemPath.d.ts +33 -4
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utilities/functions/hash.js +90 -3
- package/dist/utilities/functions/isEqual.js +61 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +0 -1
- package/llms.txt +2 -2
- package/package.json +12 -2
- package/scripts/README.md +43 -39
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +180 -5
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
|
@@ -340,6 +340,14 @@ export type BbSelectPopoverProps<Item, Known extends BbSelectKnownItems | undefi
|
|
|
340
340
|
* @defaultValue `Infinity`
|
|
341
341
|
*/
|
|
342
342
|
max?: number;
|
|
343
|
+
/**
|
|
344
|
+
* Characters to type (trimmed) before the query searches. Below it the
|
|
345
|
+
* query counts as empty: no `'search'` call, no filtering, and the panel
|
|
346
|
+
* says how many characters to type. Slots still get the typed `query`.
|
|
347
|
+
*
|
|
348
|
+
* @defaultValue `0`
|
|
349
|
+
*/
|
|
350
|
+
minQueryLength?: number;
|
|
343
351
|
/**
|
|
344
352
|
* v-model value. Single value for single select, array for multiple select.
|
|
345
353
|
*/
|
|
@@ -439,7 +447,7 @@ export type BbSelectPopoverProps<Item, Known extends BbSelectKnownItems | undefi
|
|
|
439
447
|
*/
|
|
440
448
|
width?: number | string;
|
|
441
449
|
};
|
|
442
|
-
export type BbSelectPopoverEvents = {
|
|
450
|
+
export type BbSelectPopoverEvents<V = any> = {
|
|
443
451
|
/** Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone). */
|
|
444
452
|
(e: 'show'): void;
|
|
445
453
|
/** Emitted once the options surface is open and its open transition has finished. */
|
|
@@ -477,7 +485,7 @@ export type BbSelectPopoverEvents = {
|
|
|
477
485
|
/**
|
|
478
486
|
* Emitted with the next selection value whenever selection changes.
|
|
479
487
|
*/
|
|
480
|
-
(e: 'update:modelValue', value:
|
|
488
|
+
(e: 'update:modelValue', value: V): void;
|
|
481
489
|
/**
|
|
482
490
|
* Emitted when the user types a new value and confirms it (Enter key) while
|
|
483
491
|
* writing is enabled (i.e. `disableWriting` does not suppress the search
|
|
@@ -24,7 +24,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
24
24
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
25
25
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
+
reverse: boolean;
|
|
27
28
|
checked: boolean;
|
|
29
|
+
compact: boolean;
|
|
28
30
|
layout: import('../../index.js').Responsive<import('../../index.js').FieldLayout>;
|
|
29
31
|
inputPosition: "left" | "center" | "right" | "start" | "end";
|
|
30
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { vAutofocus as e } from "../../utilities/misc/autofocus.js";
|
|
2
2
|
import { withResponsiveDefault as t } from "../../utilities/functions/responsiveDefault.js";
|
|
3
3
|
import n from "../CommonField/CommonField.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import { formControlPtActive as
|
|
6
|
-
import { usePaintedChecked as
|
|
7
|
-
import { isEqual as
|
|
8
|
-
import { hiddenSubmitAttrs as
|
|
4
|
+
import ee from "../BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js";
|
|
5
|
+
import { formControlPtActive as r, pickActive as i, usePassthrough as a } from "../../composables/usePassthrough.js";
|
|
6
|
+
import { usePaintedChecked as o, useToggleFocus as s } from "../../composables/useToggleInput.js";
|
|
7
|
+
import { isEqual as c } from "../../utilities/functions/isEqual.js";
|
|
8
|
+
import { hiddenSubmitAttrs as l, isMembershipModel as u, nextToggleModel as d, preventReadonlyClick as f, preventReadonlyKeydown as p, revertReadonlyChange as m, syncCheckedToData as h, syncIndeterminate as g, toggleInputAttrs as _, toggleInputValue as te, toggleModelChecked as ne } from "../../utilities/functions/toggleInput.js";
|
|
9
9
|
import { BB_SWITCH_PT as v } from "./types.js";
|
|
10
10
|
import { useFormBinding as re } from "../../composables/useFormBinding.js";
|
|
11
|
-
import {
|
|
11
|
+
import { useConfigDefaults as ie } from "../../composables/useConfigDefaults.js";
|
|
12
|
+
import { computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as ae, createVNode as oe, defineComponent as w, guardReactiveProps as T, mergeProps as E, normalizeProps as D, openBlock as O, ref as k, renderSlot as A, unref as j, useAttrs as M, withCtx as N, withDirectives as P } from "vue";
|
|
12
13
|
// src/components/BbSwitch/BbSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
+
var F = /*@__PURE__*/ w({
|
|
14
15
|
inheritAttrs: !1,
|
|
15
16
|
__name: "BbSwitch",
|
|
16
17
|
props: {
|
|
@@ -70,13 +71,16 @@ var L = /*@__PURE__*/ E({
|
|
|
70
71
|
"pt:icon:focusVisible": {},
|
|
71
72
|
pt: {},
|
|
72
73
|
autofocus: { type: [Boolean, String] },
|
|
73
|
-
compact: {
|
|
74
|
+
compact: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: void 0
|
|
77
|
+
},
|
|
74
78
|
checked: {
|
|
75
79
|
type: Boolean,
|
|
76
80
|
default: void 0
|
|
77
81
|
},
|
|
78
82
|
description: {},
|
|
79
|
-
layout: { default:
|
|
83
|
+
layout: { default: void 0 },
|
|
80
84
|
labelAlign: {},
|
|
81
85
|
inputAlign: {},
|
|
82
86
|
disabled: { type: Boolean },
|
|
@@ -89,7 +93,7 @@ var L = /*@__PURE__*/ E({
|
|
|
89
93
|
hint: {},
|
|
90
94
|
id: {},
|
|
91
95
|
indeterminate: { type: Boolean },
|
|
92
|
-
inputPosition: { default:
|
|
96
|
+
inputPosition: { default: void 0 },
|
|
93
97
|
label: {},
|
|
94
98
|
labelPosition: {},
|
|
95
99
|
modelValue: {},
|
|
@@ -97,7 +101,10 @@ var L = /*@__PURE__*/ E({
|
|
|
97
101
|
persistentHint: { type: Boolean },
|
|
98
102
|
readonly: { type: Boolean },
|
|
99
103
|
required: { type: Boolean },
|
|
100
|
-
reverse: {
|
|
104
|
+
reverse: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: void 0
|
|
107
|
+
},
|
|
101
108
|
submitWhenFalse: { type: Boolean },
|
|
102
109
|
trueValue: {},
|
|
103
110
|
validationLabel: {},
|
|
@@ -116,26 +123,31 @@ var L = /*@__PURE__*/ E({
|
|
|
116
123
|
"mouseup",
|
|
117
124
|
"update:modelValue"
|
|
118
125
|
],
|
|
119
|
-
setup(
|
|
120
|
-
let
|
|
126
|
+
setup(w, { emit: F }) {
|
|
127
|
+
let I = w, L = F, R = ie("BbSwitch", I, {
|
|
128
|
+
layout: "auto",
|
|
129
|
+
inputPosition: "start",
|
|
130
|
+
compact: !1,
|
|
131
|
+
reverse: !1
|
|
132
|
+
}), { props: z, emit: B, showAsterisk: V, errors: H, ariaRequired: U, readonly: W } = re(I, L, {
|
|
121
133
|
componentName: "BbSwitch",
|
|
122
|
-
identifierFallback: () =>
|
|
134
|
+
identifierFallback: () => I.label,
|
|
123
135
|
leaveOn: "blur",
|
|
124
136
|
commits: !0
|
|
125
|
-
}), G = y(() => z.trueValue === void 0 || z.trueValue), K = y(() => z.falseValue !== void 0 && z.falseValue), q =
|
|
137
|
+
}), G = y(() => z.trueValue === void 0 || z.trueValue), K = y(() => z.falseValue !== void 0 && z.falseValue), q = k(null), { focused: J, focusVisible: Y, onFocus: se, onBlur: ce } = s(), le = y(() => z.persistentHint || J.value), ue = y(() => !R.reverse), X = y(() => ({
|
|
126
138
|
trueValue: G.value,
|
|
127
139
|
falseValue: K.value
|
|
128
|
-
})),
|
|
140
|
+
})), de = y(() => u(z.modelValue, X.value)), Z = y(() => z.checked !== void 0 || z.modelValue !== void 0), Q = o(() => z.checked === void 0 ? ne(z.modelValue, X.value, c) : z.checked, {
|
|
129
141
|
indeterminate: () => z.indeterminate,
|
|
130
142
|
input: q
|
|
131
|
-
}), $ =
|
|
143
|
+
}), $ = a({
|
|
132
144
|
component: "BbSwitch",
|
|
133
|
-
attrs:
|
|
145
|
+
attrs: M(),
|
|
134
146
|
props: z,
|
|
135
147
|
parts: v.parts,
|
|
136
148
|
states: v.states,
|
|
137
149
|
active: {
|
|
138
|
-
...
|
|
150
|
+
...i(r(z), [
|
|
139
151
|
"errors",
|
|
140
152
|
"warnings",
|
|
141
153
|
"disabled",
|
|
@@ -146,27 +158,27 @@ var L = /*@__PURE__*/ E({
|
|
|
146
158
|
focusVisible: () => Y.value,
|
|
147
159
|
indeterminate: () => !!z.indeterminate
|
|
148
160
|
}
|
|
149
|
-
}),
|
|
161
|
+
}), fe = {
|
|
150
162
|
onBlur: (e) => {
|
|
151
|
-
|
|
163
|
+
ce(), B("blur", e);
|
|
152
164
|
},
|
|
153
165
|
onChange: (e) => {
|
|
154
|
-
e.target instanceof HTMLInputElement && (
|
|
166
|
+
e.target instanceof HTMLInputElement && (m(e.target, z.readonly, Q.value) ? g(q.value, z.indeterminate) : (Z.value || (Q.value = e.target.checked), g(q.value, z.indeterminate), B("change", e), B("update:modelValue", d(z.modelValue, e.target.checked, X.value, c)), Z.value && h(() => q.value, () => Q.value, () => z.indeterminate)));
|
|
155
167
|
},
|
|
156
168
|
onFocus: (e) => {
|
|
157
|
-
|
|
169
|
+
se(e), B("focus", e);
|
|
158
170
|
},
|
|
159
171
|
onClick: (e) => {
|
|
160
|
-
|
|
172
|
+
f(e, z.readonly), B("click", e);
|
|
161
173
|
},
|
|
162
174
|
onInput: (e) => B("input", e),
|
|
163
175
|
onKeydown: (e) => {
|
|
164
|
-
|
|
176
|
+
p(e, z.readonly), B("keydown", e);
|
|
165
177
|
},
|
|
166
178
|
onMousedown: (e) => B("mousedown", e),
|
|
167
179
|
onMouseup: (e) => B("mouseup", e)
|
|
168
|
-
},
|
|
169
|
-
...
|
|
180
|
+
}, pe = (e, t, n) => ({
|
|
181
|
+
..._("switch", {
|
|
170
182
|
ariaDescribedby: t,
|
|
171
183
|
ariaLabelledby: n,
|
|
172
184
|
autofocus: z.autofocus,
|
|
@@ -180,8 +192,8 @@ var L = /*@__PURE__*/ E({
|
|
|
180
192
|
ariaRequired: U.value,
|
|
181
193
|
value: G.value
|
|
182
194
|
}),
|
|
183
|
-
...
|
|
184
|
-
}),
|
|
195
|
+
...fe
|
|
196
|
+
}), me = (e, t, n) => ({
|
|
185
197
|
checked: Q.value,
|
|
186
198
|
disabled: !!z.disabled,
|
|
187
199
|
falseValue: K.value,
|
|
@@ -192,59 +204,59 @@ var L = /*@__PURE__*/ E({
|
|
|
192
204
|
id: e,
|
|
193
205
|
indeterminate: z.indeterminate,
|
|
194
206
|
name: z.name,
|
|
195
|
-
parsedValue:
|
|
207
|
+
parsedValue: te("switch", G.value),
|
|
196
208
|
readonly: !!z.readonly,
|
|
197
209
|
trueValue: G.value,
|
|
198
210
|
value: Q.value ? G.value : K.value
|
|
199
211
|
});
|
|
200
|
-
return (
|
|
201
|
-
id:
|
|
212
|
+
return (r, i) => (O(), b(n, E({
|
|
213
|
+
id: w.id,
|
|
202
214
|
class: "bb-switch",
|
|
203
|
-
compact:
|
|
204
|
-
description:
|
|
205
|
-
disabled:
|
|
206
|
-
errors:
|
|
207
|
-
"has-errors":
|
|
208
|
-
"has-warnings":
|
|
209
|
-
"hide-label":
|
|
210
|
-
hint:
|
|
211
|
-
"input-align":
|
|
212
|
-
"input-position":
|
|
213
|
-
label:
|
|
214
|
-
"label-align":
|
|
215
|
-
"label-position":
|
|
215
|
+
compact: j(R).compact,
|
|
216
|
+
description: w.description,
|
|
217
|
+
disabled: w.disabled,
|
|
218
|
+
errors: j(H),
|
|
219
|
+
"has-errors": w.hasErrors,
|
|
220
|
+
"has-warnings": w.hasWarnings,
|
|
221
|
+
"hide-label": w.hideLabel,
|
|
222
|
+
hint: w.hint,
|
|
223
|
+
"input-align": w.inputAlign,
|
|
224
|
+
"input-position": j(R).inputPosition,
|
|
225
|
+
label: w.label,
|
|
226
|
+
"label-align": w.labelAlign,
|
|
227
|
+
"label-position": w.labelPosition,
|
|
216
228
|
"label-tag": "span",
|
|
217
|
-
layout:
|
|
218
|
-
name:
|
|
219
|
-
passthrough:
|
|
220
|
-
readonly:
|
|
221
|
-
reverse:
|
|
222
|
-
"show-asterisk":
|
|
223
|
-
"show-hint":
|
|
229
|
+
layout: j(t)(j(R).layout, "auto"),
|
|
230
|
+
name: w.name,
|
|
231
|
+
passthrough: j($),
|
|
232
|
+
readonly: j(W),
|
|
233
|
+
reverse: ue.value,
|
|
234
|
+
"show-asterisk": j(V),
|
|
235
|
+
"show-hint": le.value,
|
|
224
236
|
tag: "label",
|
|
225
|
-
warnings:
|
|
226
|
-
},
|
|
227
|
-
label:
|
|
228
|
-
input:
|
|
229
|
-
!
|
|
230
|
-
disabled:
|
|
237
|
+
warnings: w.warnings
|
|
238
|
+
}, j($).forwardAttrs), ae({
|
|
239
|
+
label: N((e) => [A(r.$slots, "label", D(T(e)))]),
|
|
240
|
+
input: N(({ id: t, hasErrors: n, hasWarnings: i, ariaDescribedby: a, ariaLabelledby: o }) => [
|
|
241
|
+
!j(Q) && w.submitWhenFalse && !de.value ? (O(), S("input", D(E({ key: 0 }, j(l)({
|
|
242
|
+
disabled: w.disabled,
|
|
231
243
|
falseValue: K.value,
|
|
232
|
-
name:
|
|
244
|
+
name: w.name
|
|
233
245
|
}))), null, 16)) : x("", !0),
|
|
234
|
-
|
|
246
|
+
P(C("input", E({
|
|
235
247
|
ref_key: "switchInput",
|
|
236
248
|
ref: q
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
checked:
|
|
240
|
-
disabled: !!
|
|
241
|
-
"focus-visible":
|
|
242
|
-
focused:
|
|
249
|
+
}, pe(t, a, o)), null, 16), [[j(e)]]),
|
|
250
|
+
A(r.$slots, "icon", E(me(t, n, i), { text: w.label }), () => [oe(ee, E({
|
|
251
|
+
checked: j(Q),
|
|
252
|
+
disabled: !!w.disabled,
|
|
253
|
+
"focus-visible": j(Y),
|
|
254
|
+
focused: j(J),
|
|
243
255
|
"has-errors": !!n,
|
|
244
|
-
"has-warnings": !!
|
|
245
|
-
indeterminate: !!
|
|
246
|
-
readonly: !!
|
|
247
|
-
},
|
|
256
|
+
"has-warnings": !!i && !n,
|
|
257
|
+
indeterminate: !!w.indeterminate,
|
|
258
|
+
readonly: !!j(W)
|
|
259
|
+
}, j($).icon), null, 16, [
|
|
248
260
|
"checked",
|
|
249
261
|
"disabled",
|
|
250
262
|
"focus-visible",
|
|
@@ -256,9 +268,9 @@ var L = /*@__PURE__*/ E({
|
|
|
256
268
|
])])
|
|
257
269
|
]),
|
|
258
270
|
_: 2
|
|
259
|
-
}, [
|
|
271
|
+
}, [r.$slots.description ? {
|
|
260
272
|
name: "description",
|
|
261
|
-
fn:
|
|
273
|
+
fn: N((e) => [A(r.$slots, "description", D(T(e)))]),
|
|
262
274
|
key: "0"
|
|
263
275
|
} : void 0]), 1040, [
|
|
264
276
|
"id",
|
|
@@ -286,4 +298,4 @@ var L = /*@__PURE__*/ E({
|
|
|
286
298
|
]));
|
|
287
299
|
}
|
|
288
300
|
});
|
|
289
|
-
export {
|
|
301
|
+
export { F as default };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ItemGetter } from '../../types/ItemAccessor.js';
|
|
2
|
+
import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
|
|
1
3
|
import { BbSwitchGroupProps, BbSwitchGroupEvents, BbSwitchGroupSlots } from './types.js';
|
|
2
4
|
export type { BbSwitchGroupProps, BbSwitchGroupEvents, BbSwitchGroupSlots };
|
|
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, 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<{
|
|
4
6
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
5
7
|
[x: `pt:${string}&${string}`]: unknown;
|
|
6
8
|
} & {
|
|
@@ -67,10 +69,14 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
67
69
|
selectable?: boolean | ((item: T) => boolean) | undefined;
|
|
68
70
|
} & import('../../composables/useFormBinding.js').FormFieldProps<any> & {
|
|
69
71
|
pt?: import('../../types/passthrough.js').GroupPtMap<import('../../types/passthrough.js').PtNoInfer<T>> | undefined;
|
|
70
|
-
} &
|
|
72
|
+
} & {
|
|
73
|
+
itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
|
|
74
|
+
itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
|
|
75
|
+
multiple?: MultipleInput<M, true>;
|
|
76
|
+
} & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | keyof import('./ptKeys.generated.js').BbSwitchGroupPtKeys | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
|
|
71
77
|
onActive?: (() => any) | undefined;
|
|
72
78
|
onInput?: ((event: Event) => any) | undefined;
|
|
73
|
-
"onUpdate:modelValue"?: ((value:
|
|
79
|
+
"onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
|
|
74
80
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
75
81
|
onInactive?: (() => any) | undefined;
|
|
76
82
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -85,7 +91,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
|
|
|
85
91
|
expose: (exposed: {}) => void;
|
|
86
92
|
attrs: any;
|
|
87
93
|
slots: BbSwitchGroupSlots<T>;
|
|
88
|
-
emit:
|
|
94
|
+
emit: BbSwitchGroupEvents<SelectModelOf<OptionValueOf<T, A>, M>>;
|
|
89
95
|
}>) => import('vue').VNode & {
|
|
90
96
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
91
97
|
};
|