bitboss-ui 3.0.0-beta.48 → 3.0.0-beta.49
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 +24 -7
- package/bin/bitboss-ui-mcp.mjs +15 -3
- package/bin/bitboss-ui.mjs +115 -13
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +65 -65
- package/dist/ai/BbButton.md +16 -5
- package/dist/ai/BbCheckbox.md +0 -2
- package/dist/ai/BbCheckboxGroup.md +13 -20
- package/dist/ai/BbDatePickerInput.md +4 -2
- package/dist/ai/BbDialog.md +1 -8
- package/dist/ai/BbDropdown.md +231 -220
- package/dist/ai/BbDropdownButton.md +65 -65
- package/dist/ai/BbDropdownGroup.md +2 -2
- package/dist/ai/BbDropzone.md +10 -10
- package/dist/ai/BbForm.md +43 -52
- package/dist/ai/BbHoverCard.md +4 -2
- package/dist/ai/BbNumberInput.md +88 -21
- package/dist/ai/BbPopover.md +29 -23
- package/dist/ai/BbProgress.md +48 -22
- package/dist/ai/BbRadioGroup.md +13 -19
- package/dist/ai/BbSelect.md +16 -36
- package/dist/ai/BbSelectPopover.md +14 -30
- package/dist/ai/BbSmoothHeight.md +0 -2
- package/dist/ai/BbSwitchGroup.md +13 -20
- package/dist/ai/BbTable.md +11 -10
- package/dist/ai/BbTabs.md +106 -105
- package/dist/ai/BbTabsList.md +2 -2
- package/dist/ai/BbTabsPanels.md +1 -1
- package/dist/ai/BbTabsRoot.md +2 -2
- package/dist/ai/BbTooltip.md +24 -10
- package/dist/ai/BbTree.md +14 -11
- package/dist/ai/changelog.json +256 -5
- package/dist/ai/components.json +36 -34
- package/dist/ai/composables/useBbDropdownContext.md +16 -16
- package/dist/ai/composables/useBbFormField.md +5 -1
- package/dist/ai/composables/useBbTabsContext.md +14 -14
- package/dist/ai/guides/agent-contract.md +27 -27
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/component-picker.md +3 -3
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +10 -10
- package/dist/ai/guides/inertia-helpers.md +120 -67
- package/dist/ai/guides/installation-and-plugin-setup.md +43 -15
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +3 -2
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -16
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +9 -8
- package/dist/ai/guides/migration/components/bb-dropdown.md +15 -14
- package/dist/ai/guides/migration/components/bb-radio-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +6 -1
- package/dist/ai/guides/migration/components/bb-select.md +10 -2
- package/dist/ai/guides/migration/components/bb-switch-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-tabs.md +9 -8
- package/dist/ai/guides/migration/components/bb-tooltip.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +114 -17
- package/dist/ai/guides/migration/v3-beta-tooling.md +11 -0
- package/dist/ai/guides/options-items-playbook.md +30 -24
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/guides/preset-components.md +18 -3
- package/dist/ai/guides/typescript-generic-components.md +1 -1
- package/dist/ai/guides/validated-forms.md +11 -22
- package/dist/ai/guides/validation-providers.md +4 -3
- package/dist/ai/helpers/inertia/manifest.json +636 -0
- package/dist/ai/helpers/inertia/types.ts +15 -0
- package/dist/ai/helpers/inertia/useAsyncFn.ts +110 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +102 -0
- package/dist/ai/helpers/inertia/useDeleteCmd.ts +30 -0
- package/dist/ai/helpers/inertia/useHasChanged.ts +36 -0
- package/dist/ai/helpers/inertia/useIndexById.ts +23 -0
- package/dist/ai/helpers/inertia/useLazyProp.ts +148 -0
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +50 -0
- package/dist/ai/helpers/inertia/useLoading.ts +20 -0
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +88 -0
- package/dist/ai/helpers/inertia/usePromiseForm.ts +62 -0
- package/dist/ai/helpers/inertia/useProp.ts +63 -0
- package/dist/ai/helpers/inertia/useQuery.ts +19 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +116 -0
- package/dist/ai/helpers/inertia/useResourceContext.ts +69 -0
- package/dist/ai/helpers/inertia/useRouteQuery.ts +54 -0
- package/dist/ai/helpers/inertia/useScreenSizes.ts +23 -0
- package/dist/ai/helpers/inertia/useTableContext.ts +34 -0
- package/dist/ai/helpers/inertia/useTableSelectionContext.ts +48 -0
- package/dist/ai/helpers/inertia/useUntil.ts +33 -0
- package/dist/ai/helpers/inertia/utils.ts +24 -0
- package/dist/ai/index.md +6 -6
- package/dist/ai/manifest/components/BbBreadcrumbs.json +10 -6
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +23 -20
- package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +22 -19
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownGroup.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -0
- package/dist/ai/manifest/components/BbNumberInput.json +6 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -0
- package/dist/ai/manifest/components/BbProgress.json +6 -6
- package/dist/ai/manifest/components/BbProgress.tree.json +1 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbTabs.json +7 -6
- package/dist/ai/manifest/components/BbTabsList.json +3 -3
- package/dist/ai/manifest/components/BbTabsPanels.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +5 -4
- package/dist/ai/manifest/components/BbTooltip.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +2 -0
- package/dist/ai/manifest/types.advanced.json +10 -9
- package/dist/ai/manifest/types.api.json +5 -4
- package/dist/ai/recipes/inertia/approvals-inbox.md +16 -18
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +23 -33
- package/dist/ai/recipes/inertia/layout-scaffold.md +16 -16
- package/dist/ai/recipes/inertia/onboarding.md +6 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +15 -18
- package/dist/ai/recipes/inertia/record-form.md +11 -11
- package/dist/ai/recipes/inertia/records-workspace.md +38 -41
- package/dist/ai/recipes/inertia/settings-workspace.md +26 -38
- package/dist/ai/recipes/inertia/upload-center.md +31 -39
- package/dist/ai/recipes/inertia/wizard-form.md +10 -19
- package/dist/ai/recipes/nuxt/approvals-inbox.md +7 -8
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/nuxt/layout-scaffold.md +16 -16
- package/dist/ai/recipes/nuxt/onboarding.md +2 -6
- package/dist/ai/recipes/nuxt/ownership-atlas.md +7 -9
- package/dist/ai/recipes/nuxt/record-form.md +5 -5
- package/dist/ai/recipes/nuxt/records-workspace.md +29 -31
- package/dist/ai/recipes/nuxt/settings-workspace.md +22 -34
- package/dist/ai/recipes/nuxt/upload-center.md +22 -29
- package/dist/ai/recipes/nuxt/wizard-form.md +3 -11
- package/dist/ai/recipes/vue/approvals-inbox.md +7 -8
- package/dist/ai/recipes/vue/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/vue/layout-scaffold.md +16 -16
- package/dist/ai/recipes/vue/onboarding.md +2 -6
- package/dist/ai/recipes/vue/ownership-atlas.md +7 -9
- package/dist/ai/recipes/vue/record-form.md +5 -5
- package/dist/ai/recipes/vue/records-workspace.md +29 -31
- package/dist/ai/recipes/vue/settings-workspace.md +22 -34
- package/dist/ai/recipes/vue/upload-center.md +22 -29
- package/dist/ai/recipes/vue/wizard-form.md +3 -11
- package/dist/ai/source/BbAccordion.md +1 -1
- package/dist/ai/source/BbAlert.md +3 -3
- package/dist/ai/source/BbBadge.md +2 -2
- package/dist/ai/source/BbBadgeButton.md +5 -4
- package/dist/ai/source/BbBaseButton.md +1 -1
- package/dist/ai/source/BbBaseRadioIcon.md +1 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +1 -0
- package/dist/ai/source/BbBreadcrumbs.md +63 -42
- package/dist/ai/source/BbButton.md +71 -33
- package/dist/ai/source/BbCalendar.md +17 -16
- package/dist/ai/source/BbCheckbox.md +3 -2
- package/dist/ai/source/BbCheckboxGroup.md +11 -4
- package/dist/ai/source/BbColorInput.md +10 -9
- package/dist/ai/source/BbConfirm.md +1 -1
- package/dist/ai/source/BbConfirmPortal.md +1 -1
- package/dist/ai/source/BbDatePicker.md +2 -2
- package/dist/ai/source/BbDatePickerInput.md +47 -20
- package/dist/ai/source/BbDialog.md +5 -5
- package/dist/ai/source/BbDropdown.md +230 -158
- package/dist/ai/source/BbDropdownButton.md +19 -12
- package/dist/ai/source/BbDropdownGroup.md +126 -93
- package/dist/ai/source/BbForm.md +25 -1
- package/dist/ai/source/BbIndicator.md +4 -0
- package/dist/ai/source/BbNumberInput.md +855 -19
- package/dist/ai/source/BbOffCanvas.md +27 -11
- package/dist/ai/source/BbPagination.md +3 -3
- package/dist/ai/source/BbPopover.md +152 -8
- package/dist/ai/source/BbPopoverPortal.md +11 -0
- package/dist/ai/source/BbProgress.md +82 -18
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +11 -9
- package/dist/ai/source/BbSelect.md +16 -10
- package/dist/ai/source/BbSelectPopover.md +29 -23
- package/dist/ai/source/BbSlider.md +12 -6
- package/dist/ai/source/BbSwitch.md +3 -2
- package/dist/ai/source/BbSwitchGroup.md +5 -2
- package/dist/ai/source/BbTable.md +102 -18
- package/dist/ai/source/BbTabs.md +27 -23
- package/dist/ai/source/BbTabsList.md +26 -22
- package/dist/ai/source/BbTabsPanels.md +26 -22
- package/dist/ai/source/BbTabsRoot.md +25 -21
- package/dist/ai/source/BbTag.md +10 -9
- package/dist/ai/source/BbTextInput.md +5 -4
- package/dist/ai/source/BbTextarea.md +6 -5
- package/dist/ai/source/BbTimePicker.md +1 -1
- package/dist/ai/source/BbTimePickerInput.md +46 -9
- package/dist/ai/source/BbToast.md +10 -7
- package/dist/ai/source/BbToastPortal.md +10 -7
- package/dist/ai/source/BbTooltip.md +54 -8
- package/dist/ai/source/BbTree.md +21 -3
- package/dist/ai/source/CommonField.md +6 -4
- package/dist/ai/source/CommonFieldInput.md +15 -10
- package/dist/ai/source/CommonPopover.md +6 -0
- package/dist/ai/source/CommonTimeSelector.md +5 -4
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +10 -8
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +45 -45
- package/dist/components/BbBreadcrumbs/types.d.ts +25 -17
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +84 -71
- package/dist/components/BbButton/toggleRoving.d.ts +6 -0
- package/dist/components/BbButton/toggleRoving.js +45 -0
- package/dist/components/BbButton/types.d.ts +4 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +178 -178
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/BbCalendar/useCalendarGrid.js +141 -139
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +38 -15
- package/dist/components/BbCalendar/useDayjsLocale.js +31 -30
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +48 -48
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbCheckboxGroup/types.d.ts +6 -2
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +363 -349
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +91 -86
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +298 -289
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +322 -356
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +17 -15
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +40 -0
- package/dist/components/BbDropdown/DropdownRow.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +8 -2
- package/dist/components/BbDropdown/normalizeGroups.js +60 -46
- package/dist/components/BbDropdown/types.d.ts +119 -88
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/components/BbDropdownButton/types.d.ts +2 -2
- package/dist/components/BbForm/BbForm.vue.d.ts +9 -0
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +114 -105
- package/dist/components/BbForm/BbFormCustomField.js +1 -1
- package/dist/components/BbForm/bindFormField.js +2 -1
- package/dist/components/BbForm/formFields.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +0 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +452 -125
- package/dist/components/BbNumberInput/numberDisplay.d.ts +256 -0
- package/dist/components/BbNumberInput/numberDisplay.js +499 -0
- package/dist/components/BbNumberInput/types.d.ts +54 -1
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +58 -0
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +28 -0
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +2 -0
- package/dist/components/BbNumberInput/warroom/harness.d.ts +217 -0
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +150 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +207 -164
- package/dist/components/BbPopover/types.d.ts +11 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +15 -7
- package/dist/components/BbProgress/types.d.ts +23 -7
- package/dist/components/BbProgress/types.js +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +102 -101
- package/dist/components/BbRadioGroup/types.d.ts +6 -2
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +63 -63
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +156 -154
- package/dist/components/BbSelect/types.d.ts +6 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbSelectPopover/types.d.ts +6 -2
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +153 -153
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +62 -62
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +711 -676
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/types.d.ts +25 -21
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +76 -76
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +58 -58
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +246 -236
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +102 -97
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
- package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
- package/dist/components/BbTooltip/types.d.ts +7 -2
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +29 -21
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +10 -7
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +37 -36
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/composables/formSubmitLock.d.ts +6 -0
- package/dist/composables/formSubmitLock.js +4 -0
- package/dist/composables/useBaseOptions.d.ts +7 -1
- package/dist/composables/useBaseOptions.js +32 -32
- package/dist/composables/useBbDropdownContext.d.ts +8 -8
- package/dist/composables/useBbFormField.d.ts +9 -0
- package/dist/composables/useBbFormField.js +5 -3
- package/dist/composables/useBbTabsContext.d.ts +10 -10
- package/dist/composables/useBbTabsContext.js +18 -18
- package/dist/composables/useFormBinding.d.ts +11 -0
- package/dist/composables/useFormBinding.js +15 -13
- package/dist/composables/useItemText.d.ts +5 -1
- package/dist/composables/useItemText.js +8 -3
- package/dist/composables/useItemValue.d.ts +5 -1
- package/dist/composables/useItemValue.js +8 -3
- package/dist/composables/useLocale.js +10 -9
- package/dist/deprecation/ai-deprecations.json.d.ts +130 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +1 -1
- package/dist/directives/bbDropdown.js +1 -1
- package/dist/i18n/index.d.ts +7 -12
- package/dist/i18n/locales/cs.json +11 -14
- package/dist/i18n/locales/da.json +13 -16
- package/dist/i18n/locales/de-CH.json +137 -0
- package/dist/i18n/locales/de.json +14 -17
- package/dist/i18n/locales/el.json +10 -13
- package/dist/i18n/locales/en-GB.json +137 -0
- package/dist/i18n/locales/en.json +8 -11
- package/dist/i18n/locales/es-MX.json +137 -0
- package/dist/i18n/locales/es.json +16 -19
- package/dist/i18n/locales/fi.json +8 -11
- package/dist/i18n/locales/fr.json +23 -26
- package/dist/i18n/locales/hu.json +8 -11
- package/dist/i18n/locales/it.json +12 -15
- package/dist/i18n/locales/ja.json +13 -16
- package/dist/i18n/locales/ko.json +10 -13
- package/dist/i18n/locales/nb.json +13 -16
- package/dist/i18n/locales/nl.json +21 -24
- package/dist/i18n/locales/pl.json +10 -13
- package/dist/i18n/locales/{pt.json → pt-BR.json} +19 -22
- package/dist/i18n/locales/pt-PT.json +137 -0
- package/dist/i18n/locales/ro.json +22 -25
- package/dist/i18n/locales/ru.json +11 -14
- package/dist/i18n/locales/sv.json +16 -19
- package/dist/i18n/locales/tr.json +14 -17
- package/dist/i18n/locales/uk.json +11 -14
- package/dist/i18n/locales/{zh-cn.json → zh-CN.json} +10 -13
- package/dist/i18n/locales/zh-HK.json +137 -0
- package/dist/i18n/locales/zh-TW.json +137 -0
- package/dist/i18n/regionHints.d.ts +16 -0
- package/dist/i18n/regionHints.js +49 -0
- package/dist/i18n/regions.d.ts +286 -0
- package/dist/i18n/regions.js +265 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/llms-full.txt +1785 -1637
- package/dist/llms-medium.txt +74 -46
- package/dist/llms.txt +7 -7
- package/dist/locale-blueprint.json +16 -13
- package/dist/styles.css +2 -2
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/slotKey.d.ts +2 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +22 -19
- package/dist/vite.js +309 -297
- package/llms.txt +7 -7
- package/package.json +5 -3
- package/scripts/lib/agent-manifest.mjs +2 -1
- package/scripts/lib/eslint-disable.mjs +12 -4
- package/scripts/lib/eslint-plugin.d.ts +5 -1
- package/scripts/lib/eslint-plugin.mjs +187 -6
- package/scripts/lib/helper-canon.mjs +176 -0
- package/scripts/lib/helpers-add.mjs +1303 -0
- package/scripts/lib/local-components.mjs +33 -4
- package/scripts/lib/locale-check.mjs +165 -0
- package/scripts/lib/redundant-item-accessor.mjs +398 -0
- package/scripts/lib/renamed-item-field.mjs +343 -0
- package/scripts/lib/slot-key.mjs +2 -2
- package/scripts/lib/slot-renames.mjs +1 -1
- package/scripts/lib/validate-bb-markup.mjs +123 -56
- package/dist/i18n/index.js +0 -27
|
@@ -13,27 +13,28 @@ import { useFormBinding as l } from "../../composables/useFormBinding.js";
|
|
|
13
13
|
import ie from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
14
14
|
import u from "../../assets/svgs/chevron_down.svg_raw.js";
|
|
15
15
|
import { provideSheetChipAttrs as ae } from "../BbSelectPopover/sheetChipAttrs.js";
|
|
16
|
-
import { BB_SELECT_POPOVER_PT as
|
|
17
|
-
import
|
|
18
|
-
import { throttle as
|
|
19
|
-
import { when as
|
|
20
|
-
import { reject as
|
|
21
|
-
import { BB_SELECT_PT as
|
|
22
|
-
import { Fragment as
|
|
16
|
+
import { BB_SELECT_POPOVER_PT as oe } from "../BbSelectPopover/types.js";
|
|
17
|
+
import se from "../BbSelectPopover/BbSelectPopover.vue.js";
|
|
18
|
+
import { throttle as ce } from "../../utilities/functions/throttle.js";
|
|
19
|
+
import { when as le } from "../../utilities/functions/when.js";
|
|
20
|
+
import { reject as ue } from "../../utilities/functions/reject.js";
|
|
21
|
+
import { BB_SELECT_PT as de } from "./types.js";
|
|
22
|
+
import { Fragment as d, computed as f, createBlock as fe, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as pe, createVNode as _, defineComponent as me, getCurrentInstance as he, guardReactiveProps as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, onMounted as ge, onUnmounted as _e, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useAttrs as ve, watch as k, withCtx as A, withModifiers as ye } from "vue";
|
|
23
23
|
//#region src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var
|
|
24
|
+
var be = ["id"], xe = [
|
|
25
25
|
"id",
|
|
26
26
|
"aria-labelledby",
|
|
27
|
+
"aria-readonly",
|
|
27
28
|
"aria-required",
|
|
28
29
|
"autofocus",
|
|
29
30
|
"disabled"
|
|
30
|
-
],
|
|
31
|
+
], Se = {
|
|
31
32
|
key: 1,
|
|
32
33
|
class: "bb-select__max-reached"
|
|
33
|
-
},
|
|
34
|
+
}, Ce = {
|
|
34
35
|
key: 2,
|
|
35
36
|
class: "bb-select__display-value bb-select__placeholder"
|
|
36
|
-
},
|
|
37
|
+
}, we = ["id"], Te = /*@__PURE__*/ me({
|
|
37
38
|
inheritAttrs: !1,
|
|
38
39
|
__name: "BbSelect",
|
|
39
40
|
props: {
|
|
@@ -344,164 +345,164 @@ var ye = ["id"], be = [
|
|
|
344
345
|
"update:modelValue",
|
|
345
346
|
"option:add"
|
|
346
347
|
],
|
|
347
|
-
setup(
|
|
348
|
-
let
|
|
348
|
+
setup(me, { emit: Te }) {
|
|
349
|
+
let j = me, { props: M, emit: N, showAsterisk: Ee, errors: De, ariaRequired: Oe, required: ke, model: Ae, readonly: P } = l(j, Te, {
|
|
349
350
|
componentName: "BbSelect",
|
|
350
|
-
identifierFallback: () =>
|
|
351
|
+
identifierFallback: () => j.label,
|
|
351
352
|
leaveOn: "inactive"
|
|
352
|
-
}),
|
|
353
|
+
}), je = f(() => Oe.value ?? (ke.value ? !0 : void 0)), Me = r(), { t: Ne } = s();
|
|
353
354
|
process.env.NODE_ENV !== "production" && a("BbSelect", i("BbSelect"));
|
|
354
|
-
let
|
|
355
|
+
let F = w(!1), { isMobile: Pe } = o(), Fe = f(() => M.persistentHint || F.value), I = f(() => e(M.modelValue)), Ie = f(() => !!M.clearable && I.value), Le = f(() => M.labelMode ?? Me.defaultInputLabelMode), L = w(!1), R = ee({
|
|
355
356
|
component: "BbSelect",
|
|
356
|
-
attrs:
|
|
357
|
+
attrs: ve(),
|
|
357
358
|
controlAttrs: t,
|
|
358
|
-
props:
|
|
359
|
-
parts:
|
|
360
|
-
states:
|
|
359
|
+
props: M,
|
|
360
|
+
parts: de.parts,
|
|
361
|
+
states: de.states,
|
|
361
362
|
active: {
|
|
362
|
-
...n(
|
|
363
|
-
open: () =>
|
|
363
|
+
...n(M, () => I.value),
|
|
364
|
+
open: () => L.value
|
|
364
365
|
}
|
|
365
366
|
});
|
|
366
|
-
ae((e) =>
|
|
367
|
-
let
|
|
368
|
-
...
|
|
367
|
+
ae((e) => R.part("badge", {}, e));
|
|
368
|
+
let Re = () => ({
|
|
369
|
+
...R.forward([
|
|
369
370
|
"panel",
|
|
370
371
|
"sheet",
|
|
371
372
|
"header",
|
|
372
373
|
"footer",
|
|
373
374
|
"input",
|
|
374
375
|
"list"
|
|
375
|
-
],
|
|
376
|
-
...
|
|
376
|
+
], oe.states.filter((e) => e !== "disabled")),
|
|
377
|
+
...R.forward([
|
|
377
378
|
"option",
|
|
378
379
|
"itemText",
|
|
379
380
|
"itemIcon",
|
|
380
381
|
"itemDescription"
|
|
381
|
-
],
|
|
382
|
-
}),
|
|
382
|
+
], oe.states)
|
|
383
|
+
}), ze = [
|
|
383
384
|
"box",
|
|
384
385
|
"icon",
|
|
385
386
|
"spinner",
|
|
386
387
|
"clear",
|
|
387
388
|
"prefix",
|
|
388
389
|
"suffix"
|
|
389
|
-
],
|
|
390
|
-
title:
|
|
391
|
-
...
|
|
392
|
-
})),
|
|
393
|
-
if (
|
|
394
|
-
let t =
|
|
395
|
-
|
|
396
|
-
} else
|
|
397
|
-
},
|
|
398
|
-
(
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
if (
|
|
403
|
-
let e = getComputedStyle(
|
|
404
|
-
|
|
405
|
-
}, Z =
|
|
406
|
-
if (!
|
|
407
|
-
|
|
390
|
+
], Be = (e) => Object.fromEntries(ze.map((t) => [t, R.part(t, { loading: e })])), Ve = f(() => ({
|
|
391
|
+
title: M.label,
|
|
392
|
+
...M.offCanvasProps
|
|
393
|
+
})), He = f(() => M["append:icon"] === void 0 ? u : M["append:icon"]), z = f(() => M.maxSelectedLabels === void 0 ? Infinity : M.maxSelectedLabels), Ue = f(() => I.value ? !0 : M.prefill ?? "interaction"), B = w(), V = w(), H = w(), U = f(() => M.multiple ? Array.isArray(M.modelValue) ? M.modelValue.length : M.modelValue == null ? 0 : 1 : 0), We = f(() => z.value !== Infinity), W = f(() => !We.value), G = w(!1), K = w(0), q = w(!1), J = f(() => U.value <= 1 ? !1 : We.value ? U.value > z.value : G.value), Y = f(() => !M.disabled && !M.readonly), X = (e) => {
|
|
394
|
+
if (Y.value) if (M.multiple) {
|
|
395
|
+
let t = ue(M.modelValue, e.value);
|
|
396
|
+
N("update:modelValue", t);
|
|
397
|
+
} else N("update:modelValue", null);
|
|
398
|
+
}, Ge = () => {
|
|
399
|
+
(B.value?.$el)?.querySelector(".bb-select__activator")?.focus();
|
|
400
|
+
}, Ke = f(() => M.selectedLabelsFn ? M.selectedLabelsFn(U.value) : Ne("select.multipleMaxReached", U.value).value), qe = (e) => M.multiple && J.value ? Ke.value : e || M.placeholder || "", Je = () => {
|
|
401
|
+
q.value = !1, K.value = 0;
|
|
402
|
+
}, Ye = () => {
|
|
403
|
+
if (q.value || !H.value) return;
|
|
404
|
+
let e = getComputedStyle(H.value), t = Number.parseFloat(e.marginLeft || "0");
|
|
405
|
+
K.value = Math.max(0, -t), q.value = !0;
|
|
406
|
+
}, Z = ce(() => {
|
|
407
|
+
if (!W.value || !H.value || !V.value || U.value <= 1) {
|
|
408
|
+
G.value = !1;
|
|
408
409
|
return;
|
|
409
410
|
}
|
|
410
|
-
|
|
411
|
-
let e =
|
|
412
|
-
|
|
411
|
+
Ye();
|
|
412
|
+
let e = V.value.clientWidth + K.value;
|
|
413
|
+
G.value = H.value.scrollWidth > e + 1;
|
|
413
414
|
}, 100, {
|
|
414
415
|
leading: !0,
|
|
415
416
|
trailing: !0
|
|
416
|
-
}), Q = null,
|
|
417
|
-
Q?.disconnect(), Q = null,
|
|
417
|
+
}), Q = null, Xe = () => {
|
|
418
|
+
Q?.disconnect(), Q = null, W.value && (Q = new ResizeObserver(Z), V.value && Q.observe(V.value), b(() => {
|
|
418
419
|
Z();
|
|
419
420
|
}));
|
|
420
421
|
};
|
|
421
|
-
|
|
422
|
+
ge(Xe), k(W, Xe, { flush: "post" }), _e(() => {
|
|
422
423
|
Q?.disconnect(), Z.cancel();
|
|
423
|
-
}),
|
|
424
|
-
|
|
424
|
+
}), k(() => [M.modelValue, z.value], () => {
|
|
425
|
+
W.value && b(() => {
|
|
425
426
|
Z();
|
|
426
427
|
});
|
|
427
|
-
}),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
428
|
+
}), k(() => [
|
|
429
|
+
M.compact,
|
|
430
|
+
M.comma,
|
|
431
|
+
M["prepend:icon"]
|
|
431
432
|
], () => {
|
|
432
|
-
|
|
433
|
+
W.value && (Je(), b(() => {
|
|
433
434
|
Z();
|
|
434
435
|
}));
|
|
435
436
|
});
|
|
436
|
-
let
|
|
437
|
-
disabled:
|
|
438
|
-
name:
|
|
439
|
-
required:
|
|
437
|
+
let Ze = le((e) => typeof e != "string", JSON.stringify), Qe = f(() => (M.multiple ? [].concat(M.modelValue ?? []) : [M.modelValue]).filter((e) => e != null).map((e) => ({
|
|
438
|
+
disabled: M.disabled,
|
|
439
|
+
name: M.name,
|
|
440
|
+
required: M.required,
|
|
440
441
|
type: "hidden",
|
|
441
|
-
value:
|
|
442
|
+
value: Ze(e)
|
|
442
443
|
}))), $ = {
|
|
443
444
|
onBlur: (e) => {
|
|
444
|
-
|
|
445
|
+
F.value = !1, N("blur", e);
|
|
445
446
|
},
|
|
446
|
-
onChange: (e) =>
|
|
447
|
-
onClick: (e) =>
|
|
447
|
+
onChange: (e) => N("change", e),
|
|
448
|
+
onClick: (e) => N("click", e),
|
|
448
449
|
onFocus: (e) => {
|
|
449
|
-
|
|
450
|
+
F.value = !0, N("focus", e);
|
|
450
451
|
},
|
|
451
452
|
onActive: () => {
|
|
452
|
-
|
|
453
|
+
F.value = !0, N("active");
|
|
453
454
|
},
|
|
454
455
|
onShow: () => {
|
|
455
|
-
|
|
456
|
+
L.value = !0, N("show");
|
|
456
457
|
},
|
|
457
|
-
onShown: () =>
|
|
458
|
+
onShown: () => N("shown"),
|
|
458
459
|
onHide: () => {
|
|
459
|
-
|
|
460
|
+
L.value = !1, N("hide");
|
|
460
461
|
},
|
|
461
|
-
onHidden: () =>
|
|
462
|
+
onHidden: () => N("hidden"),
|
|
462
463
|
onInactive: () => {
|
|
463
|
-
|
|
464
|
+
F.value = !1, N("inactive");
|
|
464
465
|
},
|
|
465
|
-
onInput: (e) =>
|
|
466
|
-
"onUpdate:modelValue": (e) =>
|
|
467
|
-
},
|
|
466
|
+
onInput: (e) => N("input", e),
|
|
467
|
+
"onUpdate:modelValue": (e) => N("update:modelValue", e)
|
|
468
|
+
}, $e = {
|
|
468
469
|
...$,
|
|
469
|
-
"onOption:add": (e) =>
|
|
470
|
-
},
|
|
471
|
-
return (e, t) => (
|
|
470
|
+
"onOption:add": (e) => N("option:add", e)
|
|
471
|
+
}, et = he(), tt = () => c(et, "option:add") ? $e : $;
|
|
472
|
+
return (e, t) => (C(), fe(re, y({
|
|
472
473
|
id: e.id,
|
|
473
474
|
class: "bb-select",
|
|
474
|
-
clearable:
|
|
475
|
+
clearable: Ie.value,
|
|
475
476
|
compact: e.compact,
|
|
476
477
|
description: e.description,
|
|
477
478
|
disabled: e.disabled,
|
|
478
|
-
errors:
|
|
479
|
+
errors: O(De),
|
|
479
480
|
"has-errors": e.hasErrors,
|
|
480
|
-
"has-value":
|
|
481
|
+
"has-value": I.value,
|
|
481
482
|
"has-warnings": e.hasWarnings,
|
|
482
483
|
"hide-label": e.hideLabel,
|
|
483
484
|
hint: e.hint,
|
|
484
485
|
"input-align": e.inputAlign,
|
|
485
486
|
label: e.label,
|
|
486
487
|
"label-align": e.labelAlign,
|
|
487
|
-
"label-mode":
|
|
488
|
+
"label-mode": Le.value,
|
|
488
489
|
"label-position": e.labelPosition,
|
|
489
490
|
layout: e.layout,
|
|
490
491
|
loading: e.loading,
|
|
491
|
-
mobile:
|
|
492
|
+
mobile: O(Pe),
|
|
492
493
|
name: e.name,
|
|
493
|
-
passthrough:
|
|
494
|
-
readonly:
|
|
494
|
+
passthrough: O(R),
|
|
495
|
+
readonly: O(P),
|
|
495
496
|
reverse: e.reverse,
|
|
496
|
-
"show-asterisk":
|
|
497
|
-
"show-hint":
|
|
497
|
+
"show-asterisk": O(Ee),
|
|
498
|
+
"show-hint": Fe.value,
|
|
498
499
|
warnings: e.warnings
|
|
499
|
-
},
|
|
500
|
-
label:
|
|
501
|
-
input:
|
|
500
|
+
}, O(R).forwardAttrs), g({
|
|
501
|
+
label: A((t) => [E(e.$slots, "label", S(v(t)))]),
|
|
502
|
+
input: A(({ id: t, hasErrors: n, hasWarnings: ee, ariaDescribedby: r }) => [_(se, y({
|
|
502
503
|
id: t,
|
|
503
504
|
adaptive: e.adaptive,
|
|
504
|
-
anchor:
|
|
505
|
+
anchor: B.value,
|
|
505
506
|
"aria-describedby": r,
|
|
506
507
|
"aria-invalid": n || void 0,
|
|
507
508
|
autocomplete: e.autocomplete,
|
|
@@ -524,123 +525,124 @@ var ye = ["id"], be = [
|
|
|
524
525
|
loading: e.loading,
|
|
525
526
|
"loading-text": e.loadingText,
|
|
526
527
|
max: e.max,
|
|
527
|
-
"model-value":
|
|
528
|
+
"model-value": O(Ae),
|
|
528
529
|
"model-value-debounce-time": e.modelValueDebounceTime,
|
|
529
530
|
multiple: e.multiple,
|
|
530
|
-
"off-canvas-props":
|
|
531
|
-
prefill:
|
|
532
|
-
pt:
|
|
531
|
+
"off-canvas-props": Ve.value,
|
|
532
|
+
prefill: Ue.value,
|
|
533
|
+
pt: Re(),
|
|
533
534
|
"query-debounce-time": e.queryDebounceTime,
|
|
534
|
-
readonly:
|
|
535
|
+
readonly: O(P),
|
|
535
536
|
selectable: e.selectable,
|
|
536
537
|
stash: e.stash,
|
|
537
538
|
"transition-duration": e.transitionDuration,
|
|
538
539
|
width: "100%"
|
|
539
|
-
},
|
|
540
|
-
activator:
|
|
540
|
+
}, tt()), g({
|
|
541
|
+
activator: A(({ props: r, shown: i, loading: a, text: o, selectedOptions: s, clear: re, query: c, focus: l, close: u, toggle: ae }) => [_(ie, {
|
|
541
542
|
ref_key: "wrapperRef",
|
|
542
|
-
ref:
|
|
543
|
+
ref: B,
|
|
543
544
|
active: i,
|
|
544
|
-
"append:icon":
|
|
545
|
-
class:
|
|
545
|
+
"append:icon": He.value,
|
|
546
|
+
class: x(["bb-select__field", {
|
|
546
547
|
"bb-select__field--shown": i,
|
|
547
548
|
"bb-select__field--disabled": e.disabled,
|
|
548
|
-
"bb-select__field--readonly":
|
|
549
|
+
"bb-select__field--readonly": O(P)
|
|
549
550
|
}]),
|
|
550
551
|
clearable: e.clearable,
|
|
551
552
|
compact: e.compact,
|
|
552
553
|
disabled: e.disabled,
|
|
553
554
|
"has-errors": n,
|
|
554
|
-
"has-value":
|
|
555
|
+
"has-value": I.value,
|
|
555
556
|
"has-warnings": ee,
|
|
556
557
|
loading: a,
|
|
557
|
-
passthrough:
|
|
558
|
-
"prepend:icon":
|
|
559
|
-
readonly:
|
|
558
|
+
passthrough: Be(a),
|
|
559
|
+
"prepend:icon": j["prepend:icon"],
|
|
560
|
+
readonly: O(P),
|
|
560
561
|
variant: e.variant,
|
|
561
562
|
"onClick:clear": () => {
|
|
562
|
-
re(),
|
|
563
|
+
re(), b(Ge);
|
|
563
564
|
},
|
|
564
565
|
"onContainer:click": ae
|
|
565
|
-
},
|
|
566
|
-
"append:outer":
|
|
566
|
+
}, g({
|
|
567
|
+
"append:outer": A(() => [E(e.$slots, "append:outer", S(v({
|
|
567
568
|
query: c,
|
|
568
569
|
close: u
|
|
569
570
|
})))]),
|
|
570
|
-
append:
|
|
571
|
+
append: A(() => [E(e.$slots, "append", S(v({
|
|
571
572
|
query: c,
|
|
572
573
|
focus: l,
|
|
573
574
|
close: u
|
|
574
575
|
})))]),
|
|
575
|
-
prepend:
|
|
576
|
+
prepend: A(() => [E(e.$slots, "prepend", S(v({
|
|
576
577
|
query: c,
|
|
577
578
|
focus: l,
|
|
578
579
|
close: u
|
|
579
580
|
})))]),
|
|
580
|
-
"prepend:outer":
|
|
581
|
+
"prepend:outer": A(() => [E(e.$slots, "prepend:outer", S(v({
|
|
581
582
|
query: c,
|
|
582
583
|
close: u
|
|
583
584
|
})))]),
|
|
584
|
-
default:
|
|
585
|
+
default: A(() => [h("span", {
|
|
585
586
|
id: `${t}__value`,
|
|
586
587
|
ref_key: "valueRef",
|
|
587
|
-
ref:
|
|
588
|
+
ref: V,
|
|
588
589
|
class: "bb-select__value"
|
|
589
|
-
}, [
|
|
590
|
+
}, [h("input", y({
|
|
590
591
|
id: t,
|
|
591
592
|
"aria-labelledby": `${t}__label ${t}__selection`,
|
|
592
|
-
"aria-
|
|
593
|
+
"aria-readonly": O(P) || void 0,
|
|
594
|
+
"aria-required": je.value,
|
|
593
595
|
autofocus: e.autofocus,
|
|
594
596
|
class: "bb-select__activator",
|
|
595
597
|
disabled: e.disabled,
|
|
596
598
|
type: "button"
|
|
597
|
-
},
|
|
598
|
-
|
|
599
|
+
}, y(r, O(R).part("activator", { loading: a }))), null, 16, xe), e.multiple ? (C(), m(d, { key: 0 }, [
|
|
600
|
+
W.value || !J.value ? (C(), m("span", {
|
|
599
601
|
key: 0,
|
|
600
602
|
ref_key: "chipsContainerRef",
|
|
601
|
-
ref:
|
|
602
|
-
class:
|
|
603
|
-
"bb-select__chips-row--hidden":
|
|
603
|
+
ref: H,
|
|
604
|
+
class: x(["bb-select__chips-row", {
|
|
605
|
+
"bb-select__chips-row--hidden": J.value,
|
|
604
606
|
"bb-select__chips-row--chips": !e.comma && !!s.length
|
|
605
607
|
}])
|
|
606
|
-
}, [e.comma ? (
|
|
607
|
-
key:
|
|
608
|
+
}, [e.comma ? (C(!0), m(d, { key: 0 }, T(s, (e) => (C(), m("span", y({
|
|
609
|
+
key: O(te)(e.value),
|
|
608
610
|
class: "bb-select__comma",
|
|
609
611
|
ref_for: !0
|
|
610
|
-
},
|
|
611
|
-
key:
|
|
612
|
-
deselect: () =>
|
|
613
|
-
disabled: !
|
|
612
|
+
}, O(R).part("comma", {}, e.item)), D(e.text), 17))), 128)) : (C(!0), m(d, { key: 1 }, T(s, (t) => E(e.$slots, "chip", {
|
|
613
|
+
key: O(te)(t.value),
|
|
614
|
+
deselect: () => X(t),
|
|
615
|
+
disabled: !Y.value,
|
|
614
616
|
item: t.item,
|
|
615
617
|
text: t.text,
|
|
616
618
|
value: t.value
|
|
617
|
-
}, () => [
|
|
619
|
+
}, () => [_(ne, y({
|
|
618
620
|
class: "bb-select__badge",
|
|
619
|
-
clearable:
|
|
621
|
+
clearable: Y.value,
|
|
620
622
|
size: "lg",
|
|
621
623
|
variant: "secondary",
|
|
622
624
|
ref_for: !0
|
|
623
|
-
},
|
|
624
|
-
default:
|
|
625
|
+
}, O(R).part("badge", {}, t.item), { "onClick:clear": ye((e) => X(t), ["stop"]) }), {
|
|
626
|
+
default: A(() => [pe(D(t.text), 1)]),
|
|
625
627
|
_: 2
|
|
626
|
-
}, 1040, ["clearable", "onClick:clear"])])), 128))], 2)) :
|
|
627
|
-
|
|
628
|
-
!s.length && e.placeholder ? (
|
|
629
|
-
], 64)) : (
|
|
628
|
+
}, 1040, ["clearable", "onClick:clear"])])), 128))], 2)) : p("", !0),
|
|
629
|
+
J.value ? (C(), m("span", Se, D(Ke.value), 1)) : p("", !0),
|
|
630
|
+
!s.length && e.placeholder ? (C(), m("span", Ce, D(e.placeholder), 1)) : p("", !0)
|
|
631
|
+
], 64)) : (C(), m("span", {
|
|
630
632
|
key: 1,
|
|
631
|
-
class:
|
|
632
|
-
},
|
|
633
|
+
class: x(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
|
|
634
|
+
}, D(o || e.placeholder), 3))], 8, be), h("span", {
|
|
633
635
|
id: `${t}__selection`,
|
|
634
636
|
hidden: ""
|
|
635
|
-
},
|
|
637
|
+
}, D(qe(o)), 9, we)]),
|
|
636
638
|
_: 2
|
|
637
639
|
}, [e.$slots.prefix ? {
|
|
638
640
|
name: "prefix",
|
|
639
|
-
fn:
|
|
641
|
+
fn: A(() => [E(e.$slots, "prefix")]),
|
|
640
642
|
key: "0"
|
|
641
643
|
} : void 0, e.$slots.suffix ? {
|
|
642
644
|
name: "suffix",
|
|
643
|
-
fn:
|
|
645
|
+
fn: A(() => [E(e.$slots, "suffix")]),
|
|
644
646
|
key: "1"
|
|
645
647
|
} : void 0]), 1032, [
|
|
646
648
|
"active",
|
|
@@ -659,38 +661,38 @@ var ye = ["id"], be = [
|
|
|
659
661
|
"variant",
|
|
660
662
|
"onClick:clear",
|
|
661
663
|
"onContainer:click"
|
|
662
|
-
]), (
|
|
664
|
+
]), (C(!0), m(d, null, T(Qe.value, (e) => (C(), m("input", y({
|
|
663
665
|
key: e.value,
|
|
664
666
|
ref_for: !0
|
|
665
|
-
},
|
|
666
|
-
loading:
|
|
667
|
-
empty:
|
|
668
|
-
group:
|
|
667
|
+
}, y(e, O(R).controlAttrs)), null, 16))), 128))]),
|
|
668
|
+
loading: A((t) => [E(e.$slots, "loading", S(v(t)))]),
|
|
669
|
+
empty: A((t) => [E(e.$slots, "empty", S(v(t)))]),
|
|
670
|
+
group: A((t) => [E(e.$slots, "group", S(v(t)))]),
|
|
669
671
|
_: 2
|
|
670
672
|
}, [
|
|
671
673
|
e.$slots.header ? {
|
|
672
674
|
name: "header",
|
|
673
|
-
fn:
|
|
675
|
+
fn: A((t) => [E(e.$slots, "header", S(v(t)))]),
|
|
674
676
|
key: "0"
|
|
675
677
|
} : void 0,
|
|
676
678
|
e.$slots.footer ? {
|
|
677
679
|
name: "footer",
|
|
678
|
-
fn:
|
|
680
|
+
fn: A((t) => [E(e.$slots, "footer", S(v(t)))]),
|
|
679
681
|
key: "1"
|
|
680
682
|
} : void 0,
|
|
681
683
|
e.$slots.option ? {
|
|
682
684
|
name: "option",
|
|
683
|
-
fn:
|
|
685
|
+
fn: A((t) => [E(e.$slots, "option", y({ hasErrors: n }, t))]),
|
|
684
686
|
key: "2"
|
|
685
687
|
} : void 0
|
|
686
688
|
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
|
|
687
689
|
_: 2
|
|
688
690
|
}, [e.$slots.description ? {
|
|
689
691
|
name: "description",
|
|
690
|
-
fn:
|
|
692
|
+
fn: A((t) => [E(e.$slots, "description", S(v(t)))]),
|
|
691
693
|
key: "0"
|
|
692
694
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.mobile.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
|
|
693
695
|
}
|
|
694
696
|
});
|
|
695
697
|
//#endregion
|
|
696
|
-
export {
|
|
698
|
+
export { Te as default };
|
|
@@ -303,7 +303,9 @@ export type BbSelectProps<T> = {
|
|
|
303
303
|
* Defines a path that returns a property of the object to use as text or a function
|
|
304
304
|
* that returns a string.
|
|
305
305
|
*
|
|
306
|
-
*
|
|
306
|
+
* Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
|
|
307
|
+
*
|
|
308
|
+
* @defaultValue own `label`, else `text`, else `JSON.stringify(item)`
|
|
307
309
|
*/
|
|
308
310
|
itemText?: ItemAccessor<T, string>;
|
|
309
311
|
/**
|
|
@@ -331,7 +333,9 @@ export type BbSelectProps<T> = {
|
|
|
331
333
|
* Defines a path that returns a property of the object to use as value or a function
|
|
332
334
|
* that returns any value.
|
|
333
335
|
*
|
|
334
|
-
*
|
|
336
|
+
* Unset: own `value`, even `null`.
|
|
337
|
+
*
|
|
338
|
+
* @defaultValue own `value`, else the whole item
|
|
335
339
|
*/
|
|
336
340
|
itemValue?: ItemAccessor<T>;
|
|
337
341
|
/**
|
package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -407,10 +407,11 @@ var pt = {
|
|
|
407
407
|
itemText: T.itemText,
|
|
408
408
|
itemProps: y(T, "itemProps"),
|
|
409
409
|
itemValue: T.itemValue,
|
|
410
|
+
optionDefaults: !0,
|
|
410
411
|
max: y(T, "max"),
|
|
411
412
|
selectable: y(T, "selectable"),
|
|
412
413
|
selectedIndexedByHash: qn
|
|
413
|
-
}), {
|
|
414
|
+
}), { getOptionValue: Yn } = Ne();
|
|
414
415
|
x(qn, (e) => {
|
|
415
416
|
!T.stash || !Pn.value.length || In((t) => e[o(Yn(t, T.itemValue))] !== void 0);
|
|
416
417
|
});
|
|
@@ -276,7 +276,9 @@ export type BbSelectPopoverProps<Item> = {
|
|
|
276
276
|
/**
|
|
277
277
|
* Path to item property for display text or function to extract it.
|
|
278
278
|
*
|
|
279
|
-
*
|
|
279
|
+
* Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
|
|
280
|
+
*
|
|
281
|
+
* @defaultValue own `label`, else `text`, else `JSON.stringify(item)`
|
|
280
282
|
*/
|
|
281
283
|
itemText?: ItemAccessor<Item, string>;
|
|
282
284
|
/**
|
|
@@ -303,7 +305,9 @@ export type BbSelectPopoverProps<Item> = {
|
|
|
303
305
|
/**
|
|
304
306
|
* Path to item property for value or function to extract it.
|
|
305
307
|
*
|
|
306
|
-
*
|
|
308
|
+
* Unset: own `value`, even `null`.
|
|
309
|
+
*
|
|
310
|
+
* @defaultValue own `value`, else the whole item
|
|
307
311
|
*/
|
|
308
312
|
itemValue?: ItemAccessor<Item>;
|
|
309
313
|
/**
|