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
|
@@ -7,110 +7,110 @@ import { useFrameworkDetection as a } from "./useFrameworkDetection.js";
|
|
|
7
7
|
import { isNil as o } from "../utilities/functions/isNil.js";
|
|
8
8
|
import { isNotNil as s } from "../utilities/functions/isNotNil.js";
|
|
9
9
|
import { slotKey as c } from "../utilities/functions/slotKey.js";
|
|
10
|
-
import { hash as
|
|
11
|
-
import { computed as
|
|
10
|
+
import { hash as l } from "../utilities/functions/hash.js";
|
|
11
|
+
import { computed as u, getCurrentInstance as d, inject as f, nextTick as ee, onMounted as p, onScopeDispose as m, onUnmounted as h, provide as g, ref as _, shallowReactive as v, watch as y } from "vue";
|
|
12
12
|
// src/composables/useBbTabs.ts
|
|
13
|
-
var
|
|
14
|
-
let
|
|
13
|
+
var b = Symbol("BbTabsContext"), x = v(/* @__PURE__ */ new Map()), S = /* @__PURE__ */ new Map(), C = (f, C) => {
|
|
14
|
+
let w = t("BbTabs", f, {
|
|
15
15
|
block: !1,
|
|
16
16
|
compact: !1
|
|
17
|
-
}),
|
|
18
|
-
|
|
19
|
-
e.value ? (
|
|
17
|
+
}), T = r(() => f.queryKey), { route: E, router: D } = T, { error: O, warn: k } = i(), { isInertia: te } = a(), ne = d(), A = n().id.value, j = f.id ?? A, M = `bb-tabs_${j}`, N = _(null), P = u(() => f.items.filter((e) => !e.hidden)), F = u(() => P.value.findIndex((e) => e.value === N.value)), I = u(() => F.value === 0), L = u(() => F.value !== -1 && F.value === P.value.length - 1), R = u(() => f.items.some((e) => e.href != null || e.to != null));
|
|
18
|
+
f.items.forEach((e) => {
|
|
19
|
+
e.value ? (f.server || e.server) && !f.navigation && !R.value && O(`A tab item has a server property but the navigation prop is false: ${JSON.stringify(e, null, 2)}`) : O(`A tab item has no value: ${JSON.stringify(e, null, 2)}`);
|
|
20
20
|
});
|
|
21
|
-
let
|
|
22
|
-
let t =
|
|
21
|
+
let re = T.tracked, ie = (e) => String(e).split(/\W+/g).join("_").toLowerCase(), z = (e) => {
|
|
22
|
+
let t = P.value.find((t) => c(t.value) === e);
|
|
23
23
|
if (t) return {
|
|
24
24
|
key: t.value,
|
|
25
25
|
legacy: !1
|
|
26
26
|
};
|
|
27
|
-
let n =
|
|
27
|
+
let n = P.value.find((t) => ie(t.value) === e);
|
|
28
28
|
return n ? {
|
|
29
29
|
key: n.value,
|
|
30
30
|
legacy: !0
|
|
31
31
|
} : null;
|
|
32
|
-
}, B =
|
|
32
|
+
}, B = T.readLive, V = (e) => {
|
|
33
33
|
if (typeof window > "u") return;
|
|
34
34
|
let t = c(e);
|
|
35
|
-
(
|
|
35
|
+
(D && E.value ? E.value.query?.[f.queryKey] : B()) !== t && T.write(t, "replace");
|
|
36
36
|
}, H = () => {
|
|
37
|
-
if (
|
|
38
|
-
|
|
37
|
+
if (R.value) {
|
|
38
|
+
N.value = f.modelValue ?? null;
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
let e =
|
|
42
|
-
if (
|
|
43
|
-
else if (
|
|
44
|
-
else if (
|
|
45
|
-
let e =
|
|
46
|
-
e && (
|
|
41
|
+
let e = T.read(), t = e ? z(e) : null, n = t?.key ?? null;
|
|
42
|
+
if (f.navigation && n) N.value = n, t?.legacy && typeof window < "u" && queueMicrotask(() => V(n));
|
|
43
|
+
else if (f.modelValue) N.value = f.modelValue;
|
|
44
|
+
else if (P.value[0]) {
|
|
45
|
+
let e = P.value.find((e) => !e.disabled);
|
|
46
|
+
e && (N.value = e.value);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
H();
|
|
50
50
|
let U = (e) => ({
|
|
51
|
-
headers: e.headers ??
|
|
52
|
-
only: e.only ??
|
|
53
|
-
preserveScroll: e.preserveScroll ??
|
|
54
|
-
preserveState: e.preserveState ??
|
|
55
|
-
replace:
|
|
56
|
-
onBefore: e.onBefore ??
|
|
57
|
-
onStart: e.onStart ??
|
|
58
|
-
onProgress: e.onProgress ??
|
|
59
|
-
onSuccess: e.onSuccess ??
|
|
60
|
-
onError: e.onError ??
|
|
61
|
-
onCancel: e.onCancel ??
|
|
62
|
-
onFinish: e.onFinish ??
|
|
51
|
+
headers: e.headers ?? f.headers,
|
|
52
|
+
only: e.only ?? f.only,
|
|
53
|
+
preserveScroll: e.preserveScroll ?? f.preserveScroll,
|
|
54
|
+
preserveState: e.preserveState ?? f.preserveState,
|
|
55
|
+
replace: f.replace,
|
|
56
|
+
onBefore: e.onBefore ?? f.onBefore,
|
|
57
|
+
onStart: e.onStart ?? f.onStart,
|
|
58
|
+
onProgress: e.onProgress ?? f.onProgress,
|
|
59
|
+
onSuccess: e.onSuccess ?? f.onSuccess,
|
|
60
|
+
onError: e.onError ?? f.onError,
|
|
61
|
+
onCancel: e.onCancel ?? f.onCancel,
|
|
62
|
+
onFinish: e.onFinish ?? f.onFinish
|
|
63
63
|
}), W = (e) => {
|
|
64
|
-
|
|
65
|
-
}, G = (e, t =
|
|
66
|
-
let n =
|
|
64
|
+
f.modelValue !== e && C("update:modelValue", e), N.value = e;
|
|
65
|
+
}, G = (e, t = f.replace) => {
|
|
66
|
+
let n = f.items.find((t) => t.value === e);
|
|
67
67
|
if (o(n)) {
|
|
68
|
-
|
|
68
|
+
k(`Cannot select tab "${e}" on tabs "${j}": no item with this key. Available keys: ${f.items.map((e) => e.value).join(", ")}. Selection unchanged.`);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
if (n.value ===
|
|
71
|
+
if (n.value === N.value || R.value) return;
|
|
72
72
|
let r = c(e);
|
|
73
|
-
if (
|
|
74
|
-
else if (
|
|
73
|
+
if (f.navigation && E.value && D && re.value !== r) T.write(r, t ? "replace" : "push");
|
|
74
|
+
else if (f.navigation && te && B() !== r) {
|
|
75
75
|
let i = globalThis.location.href;
|
|
76
|
-
if (
|
|
77
|
-
let t =
|
|
78
|
-
c.searchParams.set(
|
|
76
|
+
if (f.server || n.server) {
|
|
77
|
+
let t = ne?.proxy?.$inertia, a = U(n), o = Object.fromEntries(Object.entries(a).filter(([e, t]) => s(t))), c = new URL(i, window.location.origin);
|
|
78
|
+
c.searchParams.set(f.queryKey, r), t.visit(c.toString(), {
|
|
79
79
|
...o,
|
|
80
80
|
onSuccess: (...t) => (W(e), a.onSuccess?.(...t))
|
|
81
81
|
});
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
T.write(r, t ? "replace" : "push", i);
|
|
85
85
|
}
|
|
86
86
|
W(e);
|
|
87
87
|
}, K = () => {
|
|
88
|
-
|
|
88
|
+
R.value || N.value && f.modelValue !== N.value && C("update:modelValue", N.value);
|
|
89
89
|
};
|
|
90
90
|
K();
|
|
91
91
|
let q = (e, t) => {
|
|
92
|
-
let n = null;
|
|
92
|
+
let n = P.value, r = t === -1 ? n.length : n.length - 1, i = null;
|
|
93
93
|
switch (e) {
|
|
94
94
|
case "first":
|
|
95
|
-
for (
|
|
95
|
+
for (i = 0; i < n.length - 1 && n[i].disabled;) i++;
|
|
96
96
|
break;
|
|
97
97
|
case "previous": {
|
|
98
|
-
let e = 1;
|
|
99
|
-
for (;
|
|
98
|
+
let e = t === -1 ? n.length : t, a = 1;
|
|
99
|
+
for (; a <= r && (i = (e + n.length - a) % n.length, n[i].disabled);) a++;
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
case "next": {
|
|
103
103
|
let e = 1;
|
|
104
|
-
for (; e
|
|
104
|
+
for (; e <= r && (i = (t + e) % n.length, n[i].disabled);) e++;
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
107
|
-
case "last": for (
|
|
107
|
+
case "last": for (i = n.length - 1; i >= 0 && n[i].disabled;) i--;
|
|
108
108
|
}
|
|
109
|
-
if (
|
|
110
|
-
let
|
|
111
|
-
return !
|
|
109
|
+
if (i === null) return null;
|
|
110
|
+
let a = P.value[i];
|
|
111
|
+
return !a || a.disabled ? null : i;
|
|
112
112
|
}, J = (e) => {
|
|
113
|
-
document.getElementById(`${
|
|
113
|
+
document.getElementById(`${M}_tab_${c(P.value[e].value)}`)?.focus();
|
|
114
114
|
}, Y = (e) => {
|
|
115
115
|
if (![
|
|
116
116
|
"first",
|
|
@@ -118,142 +118,142 @@ var _ = Symbol("BbTabsContext"), v = h(/* @__PURE__ */ new Map()), y = /* @__PUR
|
|
|
118
118
|
"next",
|
|
119
119
|
"last"
|
|
120
120
|
].includes(e)) {
|
|
121
|
-
|
|
121
|
+
k(`Invalid goTo target "${e}" on tabs "${j}". Valid targets: 'first', 'previous', 'next', 'last'. Selection unchanged.`);
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
if (!
|
|
125
|
-
let t = q(e,
|
|
126
|
-
t !== null && (J(t), G(
|
|
127
|
-
},
|
|
128
|
-
if (!
|
|
124
|
+
if (!P.value.length) return;
|
|
125
|
+
let t = q(e, F.value);
|
|
126
|
+
t !== null && (J(t), G(P.value[t].value));
|
|
127
|
+
}, ae = u(() => f.manualActivation ?? (!!f.server || f.items.some((e) => !!e.server))), X = (e, t) => {
|
|
128
|
+
if (!ae.value) {
|
|
129
129
|
Y(e);
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
-
if (!
|
|
133
|
-
let n = t.currentTarget?.id, r =
|
|
132
|
+
if (!P.value.length) return;
|
|
133
|
+
let n = t.currentTarget?.id, r = P.value.findIndex((e) => `${M}_tab_${c(e.value)}` === n), i = r === -1 ? F.value : r, a = q(e, i);
|
|
134
134
|
a !== null && J(a);
|
|
135
|
-
},
|
|
136
|
-
if (
|
|
137
|
-
let n =
|
|
135
|
+
}, oe = (t) => {
|
|
136
|
+
if (f.disabled) return;
|
|
137
|
+
let n = f.direction === "vertical", r = e(t.key, t.currentTarget);
|
|
138
138
|
r === "next" || n && t.key === "ArrowDown" ? (t.preventDefault(), X("next", t)) : r === "prev" || n && t.key === "ArrowUp" ? (t.preventDefault(), X("previous", t)) : t.key === "Home" ? (t.preventDefault(), X("first", t)) : t.key === "End" && (t.preventDefault(), X("last", t));
|
|
139
|
-
},
|
|
140
|
-
let e =
|
|
141
|
-
return
|
|
142
|
-
let { value:
|
|
139
|
+
}, se = u(() => {
|
|
140
|
+
let e = N.value, t = F.value, n = t === -1 && e != null ? P.value.find((e) => !e.disabled)?.value : e;
|
|
141
|
+
return P.value.map((r) => {
|
|
142
|
+
let { value: i, label: a, eager: o } = r, s = i === e, l = !!(r.disabled || f.disabled);
|
|
143
143
|
return {
|
|
144
|
-
item:
|
|
145
|
-
value:
|
|
146
|
-
label:
|
|
147
|
-
eager:
|
|
148
|
-
tabId: `${
|
|
149
|
-
panelId: `${
|
|
150
|
-
labelSlotName: `${c(
|
|
151
|
-
panelSlotName: c(
|
|
152
|
-
active:
|
|
153
|
-
ariaSelected:
|
|
154
|
-
tabindex:
|
|
155
|
-
disabled:
|
|
144
|
+
item: r,
|
|
145
|
+
value: i,
|
|
146
|
+
label: a,
|
|
147
|
+
eager: o,
|
|
148
|
+
tabId: `${M}_tab_${c(i)}`,
|
|
149
|
+
panelId: `${M}_tabpanel_${c(i)}`,
|
|
150
|
+
labelSlotName: `${c(i)}:label`,
|
|
151
|
+
panelSlotName: c(i),
|
|
152
|
+
active: s,
|
|
153
|
+
ariaSelected: s,
|
|
154
|
+
tabindex: i === n ? 0 : -1,
|
|
155
|
+
disabled: l,
|
|
156
156
|
slotProps: {
|
|
157
157
|
current: e,
|
|
158
158
|
currentIndex: t,
|
|
159
|
-
disabled:
|
|
160
|
-
isFirst:
|
|
161
|
-
isLast:
|
|
162
|
-
selected:
|
|
163
|
-
label:
|
|
164
|
-
value:
|
|
159
|
+
disabled: l,
|
|
160
|
+
isFirst: I.value,
|
|
161
|
+
isLast: L.value,
|
|
162
|
+
selected: s,
|
|
163
|
+
label: a,
|
|
164
|
+
value: i,
|
|
165
165
|
goTo: Y
|
|
166
166
|
},
|
|
167
|
-
onClick: () => G(
|
|
168
|
-
onKeydown:
|
|
167
|
+
onClick: () => G(i),
|
|
168
|
+
onKeydown: oe
|
|
169
169
|
};
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}),
|
|
175
|
-
if (!e ||
|
|
172
|
+
y(() => f.modelValue, (e) => {
|
|
173
|
+
R.value ? N.value = e ?? null : e && G(e);
|
|
174
|
+
}), T.onExternalChange((e) => {
|
|
175
|
+
if (!e || R.value || !D && !f.navigation) return;
|
|
176
176
|
let t = z(e);
|
|
177
177
|
t && (G(t.key, t.legacy || void 0), t.legacy && V(t.key));
|
|
178
178
|
});
|
|
179
|
-
let Z =
|
|
180
|
-
|
|
179
|
+
let Z = _("right");
|
|
180
|
+
y(N, (e, t) => {
|
|
181
181
|
if (e && t) {
|
|
182
|
-
let n =
|
|
182
|
+
let n = f.items.findIndex((t) => t.value === e), r = f.items.findIndex((e) => e.value === t);
|
|
183
183
|
Z.value = n > r ? "right" : "left";
|
|
184
184
|
}
|
|
185
|
-
}, { flush: "sync" }),
|
|
186
|
-
|
|
185
|
+
}, { flush: "sync" }), y(() => l(f.items), () => {
|
|
186
|
+
N.value && !f.items.find((e) => e.value === N.value) && (H(), K());
|
|
187
187
|
}, {
|
|
188
188
|
immediate: !0,
|
|
189
189
|
deep: !0
|
|
190
190
|
});
|
|
191
|
-
let Q =
|
|
192
|
-
id:
|
|
193
|
-
instanceid:
|
|
194
|
-
items:
|
|
195
|
-
disabled:
|
|
196
|
-
eager:
|
|
197
|
-
animateX:
|
|
198
|
-
animateY:
|
|
199
|
-
block:
|
|
200
|
-
compact:
|
|
201
|
-
direction:
|
|
202
|
-
variant:
|
|
203
|
-
currentTab:
|
|
204
|
-
currentTabIndex:
|
|
205
|
-
isFirst:
|
|
206
|
-
isLast:
|
|
207
|
-
mappedItems:
|
|
191
|
+
let Q = v(/* @__PURE__ */ new Set()), $ = {
|
|
192
|
+
id: j,
|
|
193
|
+
instanceid: M,
|
|
194
|
+
items: u(() => f.items),
|
|
195
|
+
disabled: u(() => !!f.disabled),
|
|
196
|
+
eager: u(() => !!f.eager),
|
|
197
|
+
animateX: u(() => !f.disableAnimateX),
|
|
198
|
+
animateY: u(() => !f.disableAnimateY),
|
|
199
|
+
block: u(() => !!w.block),
|
|
200
|
+
compact: u(() => !!w.compact),
|
|
201
|
+
direction: u(() => f.direction),
|
|
202
|
+
variant: u(() => f.variant),
|
|
203
|
+
currentTab: N,
|
|
204
|
+
currentTabIndex: F,
|
|
205
|
+
isFirst: I,
|
|
206
|
+
isLast: L,
|
|
207
|
+
mappedItems: se,
|
|
208
208
|
animationDirection: Z,
|
|
209
209
|
select: G,
|
|
210
210
|
goTo: Y,
|
|
211
211
|
hasPanels: () => [...Q].some((e) => e()),
|
|
212
|
-
linkMode:
|
|
212
|
+
linkMode: R,
|
|
213
213
|
linkProps: (e) => Object.fromEntries(Object.entries({
|
|
214
214
|
href: e.href,
|
|
215
215
|
to: e.to,
|
|
216
216
|
...U(e)
|
|
217
217
|
}).filter(([, e]) => s(e))),
|
|
218
218
|
registerPanels: (e) => {
|
|
219
|
-
Q.add(e),
|
|
219
|
+
Q.add(e), h(() => Q.delete(e));
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
if (
|
|
223
|
-
|
|
222
|
+
if (g(b, $), typeof window < "u") {
|
|
223
|
+
x.set(j, $);
|
|
224
224
|
let e = {};
|
|
225
|
-
|
|
226
|
-
let t =
|
|
227
|
-
t.add(e),
|
|
228
|
-
let t =
|
|
229
|
-
t && t.size > 1 && [...t].at(-1) === e &&
|
|
225
|
+
p(() => {
|
|
226
|
+
let t = S.get(j) ?? /* @__PURE__ */ new Set();
|
|
227
|
+
t.add(e), S.set(j, t), ee(() => {
|
|
228
|
+
let t = S.get(j);
|
|
229
|
+
t && t.size > 1 && [...t].at(-1) === e && O(`Duplicate tabs id "${j}": useBbTabs("${j}") will resolve to the most recently mounted instance.`);
|
|
230
230
|
});
|
|
231
|
-
}),
|
|
232
|
-
let t =
|
|
233
|
-
t?.delete(e), t?.size ||
|
|
234
|
-
}),
|
|
235
|
-
|
|
231
|
+
}), h(() => {
|
|
232
|
+
let t = S.get(j);
|
|
233
|
+
t?.delete(e), t?.size || S.delete(j);
|
|
234
|
+
}), m(() => {
|
|
235
|
+
x.get(j) === $ && x.delete(j);
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
return $;
|
|
239
|
-
},
|
|
239
|
+
}, w = () => f(b, null), T = (e) => {
|
|
240
240
|
let { warn: t } = i(), n = (n) => {
|
|
241
|
-
let r =
|
|
241
|
+
let r = x.get(e);
|
|
242
242
|
r ? n(r) : t(`[useBbTabs] No mounted <BbTabs>/<BbTabsRoot> with id "${e}"; call ignored.`);
|
|
243
243
|
};
|
|
244
244
|
return {
|
|
245
|
-
isReady:
|
|
246
|
-
current:
|
|
247
|
-
get: () =>
|
|
245
|
+
isReady: u(() => x.has(e)),
|
|
246
|
+
current: u({
|
|
247
|
+
get: () => x.get(e)?.currentTab.value ?? null,
|
|
248
248
|
set: (r) => {
|
|
249
249
|
r == null ? t(`[useBbTabs] "current" cannot be set to null for id "${e}"; a tab is always selected. Assignment ignored.`) : n((e) => e.select(r));
|
|
250
250
|
}
|
|
251
251
|
}),
|
|
252
|
-
currentIndex:
|
|
253
|
-
isFirst:
|
|
254
|
-
isLast:
|
|
252
|
+
currentIndex: u(() => x.get(e)?.currentTabIndex.value ?? -1),
|
|
253
|
+
isFirst: u(() => x.get(e)?.isFirst.value ?? !1),
|
|
254
|
+
isLast: u(() => x.get(e)?.isLast.value ?? !1),
|
|
255
255
|
goTo: (e) => n((t) => t.goTo(e)),
|
|
256
256
|
select: (e) => n((t) => t.select(e))
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
|
-
export {
|
|
259
|
+
export { C as createTabsContext, T as useBbTabs, w as useInternalTabsContext };
|