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
|
@@ -8,23 +8,24 @@ import { withItemDescribedby as l } from "../../utilities/functions/itemProps.js
|
|
|
8
8
|
import { hash as u } from "../../utilities/functions/hash.js";
|
|
9
9
|
import { preventReadonlyClick as d, preventReadonlyKeydown as ee, revertReadonlyChange as te, syncCheckedToData as ne, syncIndeterminate as f, toggleInputAttrs as re, toggleInputValue as ie } from "../../utilities/functions/toggleInput.js";
|
|
10
10
|
import { useToggleListFocus as ae } from "../../composables/useToggleInput.js";
|
|
11
|
-
import { useItemsGetter as
|
|
12
|
-
import { useIndexById as
|
|
13
|
-
import { useBaseOptions as
|
|
14
|
-
import { useCoherence as
|
|
15
|
-
import { useHashedWatcher as
|
|
16
|
-
import { usePrefill as
|
|
17
|
-
import { useLogger as
|
|
18
|
-
import { useActiveInactiveState as
|
|
19
|
-
import { useOnFalsy as
|
|
11
|
+
import { useItemsGetter as oe } from "../../composables/useItemsGetter.js";
|
|
12
|
+
import { useIndexById as p } from "../../composables/useIndexById.js";
|
|
13
|
+
import { useBaseOptions as se } from "../../composables/useBaseOptions.js";
|
|
14
|
+
import { useCoherence as ce } from "../../composables/useCoherence.js";
|
|
15
|
+
import { useHashedWatcher as m } from "../../composables/useHashedWatcher.js";
|
|
16
|
+
import { usePrefill as le } from "../../composables/usePrefill.js";
|
|
17
|
+
import { useLogger as ue } from "../../composables/useLogger.js";
|
|
18
|
+
import { useActiveInactiveState as h } from "../../composables/useActiveInactiveState.js";
|
|
19
|
+
import { useOnFalsy as g } from "../../composables/useOnFalsy.js";
|
|
20
20
|
import { useOnTruthy as de } from "../../composables/useOnTruthy.js";
|
|
21
21
|
import { removedPropsFor as fe } from "../../deprecation/removedProps.js";
|
|
22
22
|
import { warnRemovedAttrs as pe } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
23
23
|
import { BB_SWITCH_GROUP_PT as _ } from "./types.js";
|
|
24
24
|
import { useFormBinding as me } from "../../composables/useFormBinding.js";
|
|
25
|
-
import {
|
|
25
|
+
import { useConfigDefaults as he } from "../../composables/useConfigDefaults.js";
|
|
26
|
+
import { computed as v, createBlock as ge, createElementVNode as _e, createSlots as ve, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeProps as S, normalizeProps as C, onBeforeMount as ye, openBlock as be, ref as xe, renderSlot as w, shallowRef as Se, toRef as T, unref as E, useAttrs as Ce, withCtx as D, withDirectives as O } from "vue";
|
|
26
27
|
// src/components/BbSwitchGroup/BbSwitchGroup.vue?vue&type=script&setup=true&lang.ts
|
|
27
|
-
var
|
|
28
|
+
var k = /*@__PURE__*/ b({
|
|
28
29
|
inheritAttrs: !1,
|
|
29
30
|
__name: "BbSwitchGroup",
|
|
30
31
|
props: {
|
|
@@ -111,7 +112,10 @@ var j = /*@__PURE__*/ S({
|
|
|
111
112
|
"pt:itemDescription:focusVisible": {},
|
|
112
113
|
"pt:itemDescription:loading": {},
|
|
113
114
|
autofocus: { type: [Boolean, String] },
|
|
114
|
-
compact: {
|
|
115
|
+
compact: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: void 0
|
|
118
|
+
},
|
|
115
119
|
dependencies: {},
|
|
116
120
|
depsDebounceTime: {},
|
|
117
121
|
description: {},
|
|
@@ -128,20 +132,26 @@ var j = /*@__PURE__*/ S({
|
|
|
128
132
|
hideLegend: { type: Boolean },
|
|
129
133
|
hint: {},
|
|
130
134
|
id: {},
|
|
131
|
-
inputPosition: { default:
|
|
135
|
+
inputPosition: { default: void 0 },
|
|
132
136
|
items: {},
|
|
133
137
|
itemText: {},
|
|
134
138
|
itemValue: {},
|
|
135
139
|
itemProps: {},
|
|
136
140
|
itemLayout: {},
|
|
137
|
-
itemReverse: {
|
|
141
|
+
itemReverse: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: void 0
|
|
144
|
+
},
|
|
138
145
|
itemLabelAlign: {},
|
|
139
146
|
itemInputAlign: {},
|
|
140
147
|
legendPosition: {},
|
|
141
148
|
legend: {},
|
|
142
149
|
legendMode: {},
|
|
143
150
|
listLayout: {},
|
|
144
|
-
block: {
|
|
151
|
+
block: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: void 0
|
|
154
|
+
},
|
|
145
155
|
loadingText: {},
|
|
146
156
|
max: {},
|
|
147
157
|
modelValue: {},
|
|
@@ -155,7 +165,10 @@ var j = /*@__PURE__*/ S({
|
|
|
155
165
|
failedText: {},
|
|
156
166
|
persistentHint: { type: Boolean },
|
|
157
167
|
readonly: { type: Boolean },
|
|
158
|
-
reverse: {
|
|
168
|
+
reverse: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
default: void 0
|
|
171
|
+
},
|
|
159
172
|
selectable: {
|
|
160
173
|
type: [Boolean, Function],
|
|
161
174
|
default: !0
|
|
@@ -179,134 +192,140 @@ var j = /*@__PURE__*/ S({
|
|
|
179
192
|
"mouseup",
|
|
180
193
|
"update:modelValue"
|
|
181
194
|
],
|
|
182
|
-
setup(
|
|
183
|
-
let
|
|
195
|
+
setup(b, { emit: k }) {
|
|
196
|
+
let A = b, we = k, j = he("BbSwitchGroup", A, {
|
|
197
|
+
inputPosition: "start",
|
|
198
|
+
compact: !1,
|
|
199
|
+
itemReverse: !1,
|
|
200
|
+
reverse: !1,
|
|
201
|
+
block: !1
|
|
202
|
+
}), { props: M, emit: N, showAsterisk: Te, errors: Ee, readonly: P } = me(A, we, {
|
|
184
203
|
componentName: "BbSwitchGroup",
|
|
185
|
-
identifierFallback: () =>
|
|
204
|
+
identifierFallback: () => A.legend,
|
|
186
205
|
emptyValue: () => [],
|
|
187
206
|
leaveOn: "inactive"
|
|
188
207
|
});
|
|
189
208
|
process.env.NODE_ENV !== "production" && pe("BbSwitchGroup", fe("BbSwitchGroup"));
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
|
|
209
|
+
let De = ue();
|
|
210
|
+
ye(() => {
|
|
211
|
+
M.multiple && !Array.isArray(M.modelValue) && De.throw("BbSwitchGroup: multiple is set to \"true\" but modelValue is not an array.");
|
|
193
212
|
});
|
|
194
|
-
let
|
|
195
|
-
|
|
196
|
-
}, { active:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}), de(
|
|
200
|
-
|
|
213
|
+
let Oe = [], F = v(() => M.items === void 0 ? Oe : M.items), I = Se(null), ke = (e) => {
|
|
214
|
+
I.value = e?.$el ?? null;
|
|
215
|
+
}, { active: L } = h(I), R = xe(!1), Ae = v(() => M.persistentHint || R.value);
|
|
216
|
+
g(L, () => {
|
|
217
|
+
R.value = !1, N("inactive");
|
|
218
|
+
}), de(L, () => {
|
|
219
|
+
R.value = !0, N("active");
|
|
201
220
|
});
|
|
202
|
-
let { getter:
|
|
203
|
-
items:
|
|
221
|
+
let { getter: z, clientReproducible: je, hydratedFromSsr: Me, items: Ne, loading: B, error: Pe, ssrMarker: Fe } = oe({
|
|
222
|
+
items: F,
|
|
204
223
|
marker: !0
|
|
205
|
-
}),
|
|
206
|
-
|
|
207
|
-
}, { hasPrefilled:
|
|
208
|
-
alreadyLoaded:
|
|
209
|
-
clientReproducible:
|
|
224
|
+
}), V = () => {
|
|
225
|
+
M.enforceCoherence && !K.value && N("update:modelValue", Be.value);
|
|
226
|
+
}, { hasPrefilled: H, whenPrefilled: Ie } = le({
|
|
227
|
+
alreadyLoaded: Me,
|
|
228
|
+
clientReproducible: je,
|
|
210
229
|
trigger: !0,
|
|
211
|
-
currentValue:
|
|
212
|
-
multiple:
|
|
230
|
+
currentValue: M.modelValue,
|
|
231
|
+
multiple: !!M.multiple,
|
|
213
232
|
fn: async () => {
|
|
214
|
-
await
|
|
233
|
+
await z(void 0, "initial", M.modelValue) === "applied" && V();
|
|
215
234
|
}
|
|
216
|
-
}),
|
|
217
|
-
disabled:
|
|
218
|
-
items:
|
|
219
|
-
itemText:
|
|
220
|
-
itemProps:
|
|
221
|
-
itemValue:
|
|
235
|
+
}), U = v(() => M.multiple ? [].concat(M.modelValue) : [M.modelValue]), { data: W } = p({ items: U }), { options: G } = se({
|
|
236
|
+
disabled: T(() => M.disabled),
|
|
237
|
+
items: Ne,
|
|
238
|
+
itemText: M.itemText,
|
|
239
|
+
itemProps: T(() => M.itemProps),
|
|
240
|
+
itemValue: M.itemValue,
|
|
222
241
|
optionDefaults: !0,
|
|
223
|
-
max:
|
|
224
|
-
selectable:
|
|
225
|
-
selectedIndexedByHash:
|
|
226
|
-
}),
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
if (!
|
|
230
|
-
|
|
242
|
+
max: T(() => M.max),
|
|
243
|
+
selectable: T(() => M.selectable),
|
|
244
|
+
selectedIndexedByHash: W
|
|
245
|
+
}), Le = (e) => {
|
|
246
|
+
M.multiple ? N("update:modelValue", [...U.value, e.value]) : N("update:modelValue", e.value);
|
|
247
|
+
}, Re = (e) => {
|
|
248
|
+
if (!M.multiple) {
|
|
249
|
+
N("update:modelValue", null);
|
|
231
250
|
return;
|
|
232
251
|
}
|
|
233
|
-
let t = { ...
|
|
234
|
-
delete t[e.valueHash],
|
|
235
|
-
}, { data:
|
|
236
|
-
items:
|
|
252
|
+
let t = { ...W.value };
|
|
253
|
+
delete t[e.valueHash], N("update:modelValue", Object.values(t));
|
|
254
|
+
}, { data: ze } = p({
|
|
255
|
+
items: G,
|
|
237
256
|
key: "valueHash"
|
|
238
|
-
}), { coherent:
|
|
239
|
-
modelValue:
|
|
240
|
-
multiple:
|
|
241
|
-
iteratee: (e) => !!
|
|
242
|
-
}),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}, { debounce:
|
|
246
|
-
|
|
247
|
-
}, { debounce:
|
|
248
|
-
let
|
|
257
|
+
}), { coherent: K, coherentValue: Be } = ce({
|
|
258
|
+
modelValue: T(() => M.modelValue),
|
|
259
|
+
multiple: !!M.multiple,
|
|
260
|
+
iteratee: (e) => !!ze.value[u(e)]
|
|
261
|
+
}), q = 0;
|
|
262
|
+
m(() => M.modelValue, async () => {
|
|
263
|
+
q++, K.value || await z(void 0, "model", M.modelValue) === "applied" && V(), q--;
|
|
264
|
+
}, { debounce: M.modelValueDebounceTime === void 0 ? 0 : M.modelValueDebounceTime }), m(() => [M.dependencies, F.value], async () => {
|
|
265
|
+
H.value || await Ie(), H.value && (q++, await z(void 0, "dependencies", M.modelValue) === "applied" && q === 1 && V(), q--);
|
|
266
|
+
}, { debounce: M.depsDebounceTime === void 0 ? 0 : M.depsDebounceTime });
|
|
267
|
+
let J = v(() => c(M.modelValue)), Y = s({
|
|
249
268
|
component: "BbSwitchGroup",
|
|
250
|
-
attrs:
|
|
251
|
-
props:
|
|
269
|
+
attrs: Ce(),
|
|
270
|
+
props: M,
|
|
252
271
|
parts: _.parts,
|
|
253
272
|
states: _.states,
|
|
254
273
|
active: {
|
|
255
|
-
...o(a(
|
|
274
|
+
...o(a(M, () => J.value), [
|
|
256
275
|
"errors",
|
|
257
276
|
"warnings",
|
|
258
277
|
"disabled",
|
|
259
278
|
"readonly",
|
|
260
279
|
"hasValue"
|
|
261
280
|
]),
|
|
262
|
-
loading: () =>
|
|
281
|
+
loading: () => B.value
|
|
263
282
|
}
|
|
264
|
-
}),
|
|
283
|
+
}), X = i(Y, { label: "legend" }), Z = ae(), Q = (e) => e.value === void 0 || e.value, $ = (e, t) => {
|
|
265
284
|
if (t) return [t, e.valueHash].filter(Boolean).join("-");
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
},
|
|
285
|
+
}, Ve = (e, t) => {
|
|
286
|
+
N("change", e), t.selected ? Re(t) : Le(t);
|
|
287
|
+
}, He = (e) => ({
|
|
269
288
|
onBlur: (t) => {
|
|
270
|
-
Z.onBlur(e.valueHash),
|
|
289
|
+
Z.onBlur(e.valueHash), N("blur", t);
|
|
271
290
|
},
|
|
272
291
|
onChange: (t) => {
|
|
273
292
|
if (!(t.target instanceof HTMLInputElement)) return;
|
|
274
|
-
if (te(t.target,
|
|
293
|
+
if (te(t.target, M.readonly, !!e.selected)) {
|
|
275
294
|
f(t.target, !1);
|
|
276
295
|
return;
|
|
277
296
|
}
|
|
278
|
-
f(t.target, !1),
|
|
297
|
+
f(t.target, !1), Ve(t, e);
|
|
279
298
|
let n = t.target;
|
|
280
|
-
ne(() => n, () => !!
|
|
299
|
+
ne(() => n, () => !!G.value.find((t) => t.valueHash === e.valueHash)?.selected);
|
|
281
300
|
},
|
|
282
301
|
onFocus: (t) => {
|
|
283
|
-
Z.onFocus(e.valueHash, t),
|
|
302
|
+
Z.onFocus(e.valueHash, t), R.value = !0, N("focus", t);
|
|
284
303
|
},
|
|
285
304
|
onClick: (e) => {
|
|
286
|
-
d(e,
|
|
305
|
+
d(e, M.readonly), N("click", e);
|
|
287
306
|
},
|
|
288
|
-
onInput: (e) =>
|
|
307
|
+
onInput: (e) => N("input", e),
|
|
289
308
|
onKeydown: (e) => {
|
|
290
|
-
ee(e,
|
|
309
|
+
ee(e, M.readonly), N("keydown", e);
|
|
291
310
|
},
|
|
292
|
-
onMousedown: (e) =>
|
|
293
|
-
onMouseup: (e) =>
|
|
294
|
-
}),
|
|
311
|
+
onMousedown: (e) => N("mousedown", e),
|
|
312
|
+
onMouseup: (e) => N("mouseup", e)
|
|
313
|
+
}), Ue = (e, t, n, r, i, a) => ({
|
|
295
314
|
...re("switch", {
|
|
296
315
|
ariaDescribedby: l(r, a),
|
|
297
316
|
ariaLabelledby: i,
|
|
298
|
-
autofocus:
|
|
317
|
+
autofocus: M.autofocus && !t,
|
|
299
318
|
checked: !!e.selected,
|
|
300
319
|
disabled: e.disabled,
|
|
301
320
|
id: $(e, n),
|
|
302
321
|
indeterminate: !1,
|
|
303
|
-
name:
|
|
304
|
-
readonly:
|
|
322
|
+
name: M.name,
|
|
323
|
+
readonly: M.readonly,
|
|
305
324
|
required: !1,
|
|
306
325
|
value: Q(e)
|
|
307
326
|
}),
|
|
308
|
-
...
|
|
309
|
-
}),
|
|
327
|
+
...He(e)
|
|
328
|
+
}), We = (e, t, n, r) => {
|
|
310
329
|
let i = !!e.selected;
|
|
311
330
|
return {
|
|
312
331
|
checked: i,
|
|
@@ -318,82 +337,82 @@ var j = /*@__PURE__*/ S({
|
|
|
318
337
|
hasWarnings: !!r && !n,
|
|
319
338
|
id: $(e, t),
|
|
320
339
|
indeterminate: !1,
|
|
321
|
-
name:
|
|
340
|
+
name: M.name,
|
|
322
341
|
parsedValue: ie("switch", Q(e)),
|
|
323
|
-
readonly: !!
|
|
342
|
+
readonly: !!M.readonly,
|
|
324
343
|
trueValue: Q(e),
|
|
325
344
|
value: i ? Q(e) : !1
|
|
326
345
|
};
|
|
327
346
|
};
|
|
328
|
-
return (i, a) => (
|
|
329
|
-
id:
|
|
347
|
+
return (i, a) => (be(), ge(t, S({
|
|
348
|
+
id: b.id,
|
|
330
349
|
class: "bb-switch-group",
|
|
331
|
-
compact:
|
|
332
|
-
description:
|
|
333
|
-
disabled:
|
|
334
|
-
errors:
|
|
335
|
-
"has-errors":
|
|
336
|
-
"has-value":
|
|
337
|
-
"has-warnings":
|
|
338
|
-
"hide-label":
|
|
339
|
-
hint:
|
|
340
|
-
"input-align":
|
|
341
|
-
"input-position":
|
|
342
|
-
label:
|
|
343
|
-
"label-align":
|
|
344
|
-
"label-mode":
|
|
345
|
-
"label-position":
|
|
350
|
+
compact: E(j).compact,
|
|
351
|
+
description: b.description,
|
|
352
|
+
disabled: b.disabled,
|
|
353
|
+
errors: E(Ee),
|
|
354
|
+
"has-errors": b.hasErrors,
|
|
355
|
+
"has-value": J.value,
|
|
356
|
+
"has-warnings": b.hasWarnings,
|
|
357
|
+
"hide-label": b.hideLegend,
|
|
358
|
+
hint: b.hint,
|
|
359
|
+
"input-align": b.inputAlign,
|
|
360
|
+
"input-position": E(j).inputPosition,
|
|
361
|
+
label: b.legend,
|
|
362
|
+
"label-align": b.labelAlign,
|
|
363
|
+
"label-mode": b.legendMode,
|
|
364
|
+
"label-position": b.legendPosition,
|
|
346
365
|
"label-tag": "legend",
|
|
347
|
-
layout:
|
|
348
|
-
loading:
|
|
349
|
-
name:
|
|
350
|
-
passthrough:
|
|
351
|
-
readonly:
|
|
352
|
-
reverse:
|
|
353
|
-
"show-asterisk":
|
|
354
|
-
"show-hint":
|
|
355
|
-
"ssr-marker":
|
|
366
|
+
layout: E(j).layout,
|
|
367
|
+
loading: E(B),
|
|
368
|
+
name: b.name,
|
|
369
|
+
passthrough: E(X),
|
|
370
|
+
readonly: E(P),
|
|
371
|
+
reverse: E(j).reverse,
|
|
372
|
+
"show-asterisk": E(Te),
|
|
373
|
+
"show-hint": Ae.value,
|
|
374
|
+
"ssr-marker": E(Fe),
|
|
356
375
|
tag: "fieldset",
|
|
357
|
-
warnings:
|
|
358
|
-
},
|
|
359
|
-
label:
|
|
360
|
-
input:
|
|
361
|
-
ref:
|
|
376
|
+
warnings: b.warnings
|
|
377
|
+
}, E(Y).forwardAttrs), ve({
|
|
378
|
+
label: D((e) => [w(i.$slots, "legend", C(x(e)))]),
|
|
379
|
+
input: D(({ id: t, hasErrors: a, hasWarnings: o, ariaDescribedby: s }) => [y(n, {
|
|
380
|
+
ref: ke,
|
|
362
381
|
block: "bb-switch-group",
|
|
363
|
-
"empty-text":
|
|
364
|
-
error:
|
|
365
|
-
"failed-text":
|
|
382
|
+
"empty-text": b.emptyText,
|
|
383
|
+
error: E(Pe),
|
|
384
|
+
"failed-text": b.failedText,
|
|
366
385
|
"has-errors": a,
|
|
367
386
|
"has-warnings": o,
|
|
368
|
-
"hide-label":
|
|
369
|
-
"item-input-align":
|
|
370
|
-
"item-label-align":
|
|
371
|
-
"item-layout":
|
|
372
|
-
"item-reverse":
|
|
373
|
-
"list-block":
|
|
374
|
-
"list-layout":
|
|
375
|
-
loading: !!
|
|
376
|
-
"loading-text":
|
|
377
|
-
options:
|
|
378
|
-
passthrough:
|
|
387
|
+
"hide-label": b.hideLabel,
|
|
388
|
+
"item-input-align": b.itemInputAlign,
|
|
389
|
+
"item-label-align": b.itemLabelAlign,
|
|
390
|
+
"item-layout": E(j).itemLayout,
|
|
391
|
+
"item-reverse": E(j).itemReverse,
|
|
392
|
+
"list-block": E(j).block,
|
|
393
|
+
"list-layout": E(j).listLayout,
|
|
394
|
+
loading: !!E(B),
|
|
395
|
+
"loading-text": b.loadingText,
|
|
396
|
+
options: E(G),
|
|
397
|
+
passthrough: E(Y)
|
|
379
398
|
}, {
|
|
380
|
-
prepend:
|
|
381
|
-
loading:
|
|
382
|
-
empty:
|
|
383
|
-
label:
|
|
384
|
-
input:
|
|
399
|
+
prepend: D(() => [w(i.$slots, "prepend")]),
|
|
400
|
+
loading: D(() => [w(i.$slots, "loading")]),
|
|
401
|
+
empty: D((e) => [w(i.$slots, "empty", C(x(e)))]),
|
|
402
|
+
label: D((e) => [w(i.$slots, "label", C(x(e)))]),
|
|
403
|
+
input: D(({ option: n, index: c, labelId: l, descriptionId: u, rowStates: d }) => [O(_e("input", C(x(Ue(n, c, t, s, l, u))), null, 16), [[E(e)]]), w(i.$slots, "icon", S({
|
|
385
404
|
item: n.item,
|
|
386
405
|
text: n.text
|
|
387
|
-
},
|
|
406
|
+
}, We(n, t, a, o)), () => [y(r, S({
|
|
388
407
|
checked: !!n.selected,
|
|
389
408
|
disabled: !!n.disabled,
|
|
390
|
-
"focus-visible":
|
|
391
|
-
focused:
|
|
409
|
+
"focus-visible": E(Z).focusVisible(n.valueHash),
|
|
410
|
+
focused: E(Z).focused(n.valueHash),
|
|
392
411
|
"has-errors": !!a,
|
|
393
412
|
"has-warnings": !!o && !a,
|
|
394
413
|
indeterminate: !1,
|
|
395
|
-
readonly: !!
|
|
396
|
-
},
|
|
414
|
+
readonly: !!E(P)
|
|
415
|
+
}, E(Y).part("icon", d, n.item)), null, 16, [
|
|
397
416
|
"checked",
|
|
398
417
|
"disabled",
|
|
399
418
|
"focus-visible",
|
|
@@ -402,7 +421,7 @@ var j = /*@__PURE__*/ S({
|
|
|
402
421
|
"has-warnings",
|
|
403
422
|
"readonly"
|
|
404
423
|
])])]),
|
|
405
|
-
append:
|
|
424
|
+
append: D(() => [w(i.$slots, "append")]),
|
|
406
425
|
_: 2
|
|
407
426
|
}, 1032, [
|
|
408
427
|
"empty-text",
|
|
@@ -425,9 +444,9 @@ var j = /*@__PURE__*/ S({
|
|
|
425
444
|
_: 2
|
|
426
445
|
}, [i.$slots.description ? {
|
|
427
446
|
name: "description",
|
|
428
|
-
fn:
|
|
447
|
+
fn: D((e) => [w(i.$slots, "description", C(x(e)))]),
|
|
429
448
|
key: "0"
|
|
430
449
|
} : void 0]), 1040, /* @__PURE__ */ "id.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.input-position.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.ssr-marker.warnings".split(".")));
|
|
431
450
|
}
|
|
432
451
|
});
|
|
433
|
-
export {
|
|
452
|
+
export { k as default };
|
|
@@ -36,7 +36,7 @@ export type BbSwitchGroupProps<T = any> = BbSwitchGroupPtProps & BbCheckboxGroup
|
|
|
36
36
|
pt?: GroupPtMap<PtNoInfer<T>>;
|
|
37
37
|
};
|
|
38
38
|
/** Re-export for consumers importing events type from BbSwitchGroup. */
|
|
39
|
-
export type BbSwitchGroupEvents = BbCheckboxGroupEvents
|
|
39
|
+
export type BbSwitchGroupEvents<V = any> = BbCheckboxGroupEvents<V>;
|
|
40
40
|
/** Props exposed by the `description` slot. */
|
|
41
41
|
export type BbSwitchGroupDescriptionSlotProps = {
|
|
42
42
|
/** The `description` prop value (empty when only the slot is provided). */
|
|
@@ -1,47 +1,58 @@
|
|
|
1
1
|
import { ColumnName } from '../../types/ColumnName.js';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { ColumnContentOf, ColumnKeyInput, ItemKeyInput, MultipleInput, SelectModelOf, TableValueOf } from '../../types/ItemPath.js';
|
|
3
|
+
import { ItemGetter } from '../../types/ItemAccessor.js';
|
|
4
|
+
import { PtNoInfer } from '../../types/passthrough.js';
|
|
5
|
+
import { BbTableCellSlotProps, BbTableColumn, BbTableEdgeCellSlotProps, BbTableEvents, BbTableHeaderAffixSlotProps, BbTableHeaderSlotProps, BbTableProps, BbTableSortEntry, ItemKey, ReservedColumnKey } from './types.js';
|
|
6
|
+
declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {}, A extends string | ((...args: never[]) => unknown) | 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
7
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(Omit<BbTableProps<Item>, "columns"> & {
|
|
5
8
|
/**
|
|
6
9
|
* Array of definitions of how the columns should be rendered.
|
|
7
10
|
*
|
|
8
11
|
* @defaultValue `[]`
|
|
9
12
|
*/
|
|
10
|
-
columns?: (Omit<BbTableColumn<Item>, "key"> & {
|
|
13
|
+
columns?: ([string] extends [T] ? Omit<BbTableColumn<Item>, "key"> & {
|
|
11
14
|
key: T;
|
|
12
|
-
}
|
|
13
|
-
|
|
15
|
+
} : { [P in T]: Omit<BbTableColumn<Item>, "key" | "formatter"> & {
|
|
16
|
+
key: P extends ReservedColumnKey ? {
|
|
17
|
+
actions: "reserved: the #actions slot adds this column";
|
|
18
|
+
select: "reserved: the selectable prop adds this column";
|
|
19
|
+
}[P] : ColumnKeyInput<PtNoInfer<Item>, P>;
|
|
20
|
+
formatter?(content: ColumnContentOf<Item, P>, key: string, item: Item): any;
|
|
21
|
+
}; }[T])[] | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
itemValue?: ItemKeyInput<Item, A> | ItemGetter<Item, any>;
|
|
24
|
+
multiple?: MultipleInput<M, true>;
|
|
25
|
+
} & Omit<import('vue').HTMLAttributes & import('vue').FieldsetHTMLAttributes, "legend" | "sort" | `pt:${string}&${string}` | "fixed" | "readonly" | "disabled" | "highlighted" | "loading" | "page" | "pt" | "dependencies" | "compact" | "modelValue" | "interactiveWhileLoading" | "id" | "name" | "depsDebounceTime" | "enforceCoherence" | "items" | "itemValue" | "loadingText" | "max" | "multiple" | "emptyText" | "failedText" | "selectable" | "caption" | keyof import('./ptKeys.generated.js').BbTablePtKeys | "accessibleLabel" | "actionsText" | "align" | "columns" | "disableSelectAll" | "displayCaption" | "expandedItems" | "fixedActions" | "fixedFirst" | "fixedHeaders" | "fixedLast" | "fixedSelect" | "headerRowClass" | "highlightable" | "inheritColumnWidths" | "keyboardNavigation" | "multiSort" | "order" | "perPage" | "reorderable" | "reorderableRows" | "resizable" | "rowClass" | "rowMenu" | "selectAll" | "selectAllLabel" | "selectText" | "tdClass" | "thClass" | "totalItems" | "totalPages" | "unselectedItems" | "virtual"> & {} & {
|
|
14
26
|
selectAll?: boolean;
|
|
15
27
|
sort?: BbTableSortEntry[];
|
|
16
28
|
order?: string[];
|
|
17
|
-
highlighted?:
|
|
18
|
-
expandedItems?: any[];
|
|
29
|
+
highlighted?: TableValueOf<Item, A> | null;
|
|
19
30
|
}) & {
|
|
20
|
-
"onUpdate:modelValue"?: ((value:
|
|
21
|
-
"onItem:selected"?: ((value:
|
|
22
|
-
"onItem:unselected"?: ((value:
|
|
23
|
-
"onClick:row"?: ((event: MouseEvent, item:
|
|
24
|
-
"onContextmenu:row"?: ((event: MouseEvent, item:
|
|
25
|
-
"onDblclick:row"?: ((event: MouseEvent, item:
|
|
26
|
-
"onUpdate:highlighted"?: ((value:
|
|
31
|
+
"onUpdate:modelValue"?: ((value: SelectModelOf<TableValueOf<Item, A>, M>) => any) | undefined;
|
|
32
|
+
"onItem:selected"?: ((value: TableValueOf<Item, A>) => any) | undefined;
|
|
33
|
+
"onItem:unselected"?: ((value: TableValueOf<Item, A>) => any) | undefined;
|
|
34
|
+
"onClick:row"?: ((event: MouseEvent, item: PtNoInfer<Item>) => any) | undefined;
|
|
35
|
+
"onContextmenu:row"?: ((event: MouseEvent, item: PtNoInfer<Item>) => any) | undefined;
|
|
36
|
+
"onDblclick:row"?: ((event: MouseEvent, item: PtNoInfer<Item>) => any) | undefined;
|
|
37
|
+
"onUpdate:highlighted"?: ((value: TableValueOf<Item, A> | null) => any) | undefined;
|
|
27
38
|
"onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
|
|
28
39
|
"onUpdate:sort"?: ((value: BbTableSortEntry[]) => any) | undefined;
|
|
29
40
|
"onUpdate:order"?: ((value: string[]) => any) | undefined;
|
|
30
41
|
"onReorder:rows"?: ((payload: {
|
|
31
|
-
item:
|
|
42
|
+
item: PtNoInfer<Item>;
|
|
32
43
|
from: number;
|
|
33
44
|
to: number;
|
|
34
45
|
}) => any) | undefined;
|
|
35
46
|
"onResize:column"?: ((key: string, width: number | null) => any) | undefined;
|
|
36
47
|
"onHide:column"?: ((key: string) => any) | undefined;
|
|
37
|
-
"onUpdate:expandedItems"?: ((value:
|
|
38
|
-
"onUpdate:unselectedItems"?: ((value:
|
|
48
|
+
"onUpdate:expandedItems"?: ((value: TableValueOf<Item, A>[]) => any) | undefined;
|
|
49
|
+
"onUpdate:unselectedItems"?: ((value: TableValueOf<Item, A>[]) => any) | undefined;
|
|
39
50
|
}> & (typeof globalThis extends {
|
|
40
|
-
__VLS_PROPS_FALLBACK: infer
|
|
41
|
-
} ?
|
|
51
|
+
__VLS_PROPS_FALLBACK: infer P_1;
|
|
52
|
+
} ? P_1 : {});
|
|
42
53
|
expose: (exposed: {}) => void;
|
|
43
54
|
attrs: any;
|
|
44
|
-
slots: Record<string, (props: BbTableCellSlotProps<Item
|
|
55
|
+
slots: Record<string, (props: BbTableCellSlotProps<Item, TableValueOf<Item, A>>) => any> & Record<`${string}:first` | `${string}:last`, (props: BbTableEdgeCellSlotProps<Item>) => any> & Record<`${string}:header`, (props: BbTableHeaderSlotProps<Item>) => any> & Record<`${string}:header:prepend` | `${string}:header:append`, (props: BbTableHeaderAffixSlotProps<Item>) => any> & {
|
|
45
56
|
thead?: (props: {
|
|
46
57
|
empty: boolean;
|
|
47
58
|
}) => any;
|
|
@@ -75,7 +86,7 @@ declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {}>(
|
|
|
75
86
|
selected?: boolean;
|
|
76
87
|
toggleSelected?: () => void;
|
|
77
88
|
item: Item;
|
|
78
|
-
value:
|
|
89
|
+
value: TableValueOf<Item, A>;
|
|
79
90
|
}) => any) | undefined;
|
|
80
91
|
expand?: ((props: {
|
|
81
92
|
expanded: boolean;
|
|
@@ -86,19 +97,19 @@ declare const __VLS_export: <Item = any, T extends ItemKey<Item> = string & {}>(
|
|
|
86
97
|
selected?: boolean;
|
|
87
98
|
toggleSelected?: () => void;
|
|
88
99
|
item: Item;
|
|
89
|
-
value:
|
|
100
|
+
value: TableValueOf<Item, A>;
|
|
90
101
|
}) => any) | undefined;
|
|
91
102
|
select?: ((props: {
|
|
92
103
|
item: Item;
|
|
93
|
-
value:
|
|
104
|
+
value: TableValueOf<Item, A>;
|
|
94
105
|
checked: boolean;
|
|
95
106
|
disabled: boolean;
|
|
96
107
|
inputName: string;
|
|
97
108
|
readonly: boolean;
|
|
98
109
|
toggleSelected?: () => void;
|
|
99
110
|
}) => any) | undefined;
|
|
100
|
-
} & Partial<Record<ColumnName<T>, (props: BbTableCellSlotProps<Item
|
|
101
|
-
emit: BbTableEvents<Item
|
|
111
|
+
} & Partial<Record<ColumnName<T>, (props: BbTableCellSlotProps<Item, TableValueOf<Item, A>>) => any>> & Partial<Record<`${ColumnName<T>}:header`, (props: BbTableHeaderSlotProps<Item>) => any>> & Partial<Record<`${ColumnName<T>}:header:prepend` | `${ColumnName<T>}:header:append`, (props: BbTableHeaderAffixSlotProps<Item>) => any>> & Partial<Record<`${ColumnName<T>}:first` | `${ColumnName<T>}:last`, (props: BbTableEdgeCellSlotProps<Item>) => any>>;
|
|
112
|
+
emit: BbTableEvents<Item, TableValueOf<Item, A>, SelectModelOf<TableValueOf<Item, A>, M>> & (((event: "update:highlighted", value: TableValueOf<Item, A> | null) => void) & ((event: "update:selectAll", value: boolean) => void) & ((event: "update:sort", value: BbTableSortEntry[]) => void) & ((event: "update:order", value: string[]) => void));
|
|
102
113
|
}>) => import('vue').VNode & {
|
|
103
114
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
104
115
|
};
|