bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.21
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 +72 -33
- package/dist/ai/BbAccordion.md +3 -3
- package/dist/ai/BbAlert.md +9 -5
- package/dist/ai/BbAsterisk.md +17 -0
- package/dist/ai/BbAvatar.md +12 -3
- package/dist/ai/BbBadge.md +15 -10
- package/dist/ai/BbBadgeButton.md +16 -16
- package/dist/ai/BbBaseButton.md +16 -16
- package/dist/ai/BbBaseCheckbox.md +8 -8
- package/dist/ai/BbBaseCheckboxGroup.md +13 -13
- package/dist/ai/BbBaseCheckboxIcon.md +26 -9
- package/dist/ai/BbBaseColorInput.md +11 -11
- package/dist/ai/BbBaseDatePicker.md +6 -6
- package/dist/ai/BbBaseDatePickerInput.md +15 -15
- package/dist/ai/BbBaseInputContainer.md +12 -12
- package/dist/ai/BbBaseNumberInput.md +8 -8
- package/dist/ai/BbBaseRadio.md +5 -5
- package/dist/ai/BbBaseRadioGroup.md +7 -7
- package/dist/ai/BbBaseRadioIcon.md +25 -9
- package/dist/ai/BbBaseRating.md +5 -5
- package/dist/ai/BbBaseSelect.md +22 -21
- package/dist/ai/BbBaseSlider.md +9 -9
- package/dist/ai/BbBaseSwitch.md +8 -8
- package/dist/ai/BbBaseSwitchGroup.md +13 -13
- package/dist/ai/BbBaseSwitchIcon.md +28 -10
- package/dist/ai/BbBaseTag.md +10 -10
- package/dist/ai/BbBaseTextInput.md +9 -9
- package/dist/ai/BbBaseTextarea.md +9 -9
- package/dist/ai/BbBaseTimePickerInput.md +13 -13
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +15 -15
- package/dist/ai/BbCheckbox.md +18 -17
- package/dist/ai/BbCheckboxGroup.md +15 -14
- package/dist/ai/BbCollapsible.md +11 -9
- package/dist/ai/BbColorInput.md +15 -15
- package/dist/ai/BbColorPalette.md +12 -6
- package/dist/ai/BbConfirm.md +12 -5
- package/dist/ai/BbDatePicker.md +13 -13
- package/dist/ai/BbDatePickerInput.md +20 -20
- package/dist/ai/BbDialog.md +78 -12
- package/dist/ai/BbDropdown.md +132 -22
- package/dist/ai/BbDropdownButton.md +12 -12
- package/dist/ai/BbDropdownGroup.md +1 -1
- package/dist/ai/BbDropzone.md +4 -4
- package/dist/ai/BbForm.md +49 -14
- package/dist/ai/BbIcon.md +6 -0
- package/dist/ai/BbIndicator.md +5 -5
- package/dist/ai/BbNumberInput.md +11 -11
- package/dist/ai/BbOffCanvas.md +90 -20
- package/dist/ai/BbPagination.md +3 -3
- package/dist/ai/BbPopover.md +32 -17
- package/dist/ai/BbProgress.md +7 -4
- package/dist/ai/BbRadio.md +16 -15
- package/dist/ai/BbRadioGroup.md +20 -17
- package/dist/ai/BbRating.md +11 -11
- package/dist/ai/BbSelect.md +138 -37
- package/dist/ai/BbSelectPopover.md +40 -41
- package/dist/ai/BbSlider.md +37 -22
- package/dist/ai/BbSmoothHeight.md +1 -1
- package/dist/ai/BbSwitch.md +25 -10
- package/dist/ai/BbSwitchGroup.md +17 -14
- package/dist/ai/BbTable.md +920 -109
- package/dist/ai/BbTabs.md +28 -14
- package/dist/ai/BbTabsList.md +1 -1
- package/dist/ai/BbTabsPanes.md +1 -1
- package/dist/ai/BbTabsRoot.md +10 -10
- package/dist/ai/BbTag.md +14 -14
- package/dist/ai/BbTextInput.md +16 -15
- package/dist/ai/BbTextarea.md +13 -13
- package/dist/ai/BbTimePicker.md +10 -10
- package/dist/ai/BbTimePickerInput.md +17 -17
- package/dist/ai/BbToast.md +1 -1
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/BbTooltip.md +12 -10
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonInputWrapper.md +10 -10
- package/dist/ai/CommonPopover.md +6 -6
- package/dist/ai/FlatListBox.md +5 -5
- package/dist/ai/GroupedListBox.md +5 -5
- package/dist/ai/ListBox.md +4 -4
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +128 -2
- package/dist/ai/components.json +917 -100
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useConfirm.md +5 -3
- package/dist/ai/guides/ai-router.md +9 -4
- package/dist/ai/guides/component-picker.md +18 -18
- package/dist/ai/guides/design-language.md +14 -14
- package/dist/ai/guides/design-tokens.md +25 -18
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +11 -5
- package/dist/ai/guides/installation-and-plugin-setup.md +85 -23
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
- package/dist/ai/guides/migration/components/bb-rating.md +8 -2
- package/dist/ai/guides/migration/components/bb-select.md +5 -2
- package/dist/ai/guides/migration/components/bb-table.md +560 -28
- package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
- package/dist/ai/guides/migration/v2-to-v3.md +260 -89
- package/dist/ai/guides/ssr-prefill.md +120 -0
- package/dist/ai/index.md +10 -9
- package/dist/ai/recipes/inertia/approvals-inbox.md +0 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
- package/dist/ai/recipes/inertia/ownership-atlas.md +49 -29
- package/dist/ai/recipes/inertia/record-form.md +0 -1
- package/dist/ai/recipes/inertia/records-workspace.md +26 -8
- package/dist/ai/recipes/inertia/upload-center.md +0 -1
- package/dist/ai/recipes/nuxt/approvals-inbox.md +0 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
- package/dist/ai/recipes/nuxt/record-form.md +0 -1
- package/dist/ai/recipes/nuxt/records-workspace.md +26 -8
- package/dist/ai/recipes/nuxt/upload-center.md +0 -1
- package/dist/ai/recipes/vue/approvals-inbox.md +0 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
- package/dist/ai/recipes/vue/records-workspace.md +26 -8
- package/dist/ai/recipes/vue/upload-center.md +0 -1
- package/dist/ai/source/BbAlert.md +60 -2
- package/dist/ai/source/BbAvatar.md +3 -3
- package/dist/ai/source/BbBadge.md +60 -15
- package/dist/ai/source/BbBadgeButton.md +8 -2
- package/dist/ai/source/BbBaseButton.md +3 -1
- package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
- package/dist/ai/source/BbBaseDatePicker.md +3 -1
- package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
- package/dist/ai/source/BbBaseInputContainer.md +52 -1
- package/dist/ai/source/BbBaseRadioGroup.md +4 -0
- package/dist/ai/source/BbBaseRating.md +3 -1
- package/dist/ai/source/BbBaseSelect.md +71 -16
- package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
- package/dist/ai/source/BbBreadcrumbs.md +31 -0
- package/dist/ai/source/BbButton.md +51 -24
- package/dist/ai/source/BbCheckbox.md +15 -1
- package/dist/ai/source/BbCheckboxGroup.md +2 -1
- package/dist/ai/source/BbCollapsible.md +7 -1
- package/dist/ai/source/BbColorInput.md +3 -4
- package/dist/ai/source/BbColorPalette.md +3 -4
- package/dist/ai/source/BbDatePicker.md +5 -1
- package/dist/ai/source/BbDatePickerInput.md +5 -1
- package/dist/ai/source/BbDialog.md +175 -19
- package/dist/ai/source/BbDropdown.md +376 -69
- package/dist/ai/source/BbDropdownGroup.md +330 -59
- package/dist/ai/source/BbForm.md +93 -5
- package/dist/ai/source/BbIcon.md +46 -36
- package/dist/ai/source/BbNumberInput.md +3 -4
- package/dist/ai/source/BbOffCanvas.md +474 -194
- package/dist/ai/source/BbPopover.md +24 -17
- package/dist/ai/source/BbProgress.md +2 -2
- package/dist/ai/source/BbRadio.md +15 -1
- package/dist/ai/source/BbRadioGroup.md +3 -1
- package/dist/ai/source/BbSelect.md +50 -2
- package/dist/ai/source/BbSelectPopover.md +171 -23
- package/dist/ai/source/BbSlider.md +3 -4
- package/dist/ai/source/BbSwitch.md +15 -1
- package/dist/ai/source/BbSwitchGroup.md +8 -5
- package/dist/ai/source/BbTable.md +5092 -1446
- package/dist/ai/source/BbTabs.md +6 -7
- package/dist/ai/source/BbTabsList.md +6 -7
- package/dist/ai/source/BbTabsPanes.md +6 -7
- package/dist/ai/source/BbTabsRoot.md +6 -7
- package/dist/ai/source/BbTag.md +3 -4
- package/dist/ai/source/BbTextInput.md +3 -4
- package/dist/ai/source/BbTextarea.md +3 -4
- package/dist/ai/source/BbTimePicker.md +4 -1
- package/dist/ai/source/BbTimePickerInput.md +5 -1
- package/dist/ai/source/BbToast.md +3 -1
- package/dist/ai/source/BbTooltip.md +5 -1
- package/dist/ai/source/CommonInputWrapper.md +4 -0
- package/dist/ai/source/CommonPopover.md +6 -0
- package/dist/ai/source/FlatListBox.md +11 -5
- package/dist/ai/source/GroupedListBox.md +7 -5
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAlert/types.d.ts +10 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
- package/dist/components/BbBadge/types.d.ts +8 -2
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
- package/dist/components/BbBaseSelect/types.d.ts +22 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
- package/dist/components/BbCollapsible/types.d.ts +7 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
- package/dist/components/BbDialog/types.d.ts +29 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDropdown/types.d.ts +20 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
- package/dist/components/BbIcon/iconCache.d.ts +33 -0
- package/dist/components/BbIcon/iconCache.js +17 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
- package/dist/components/BbOffCanvas/types.d.ts +30 -5
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
- package/dist/components/BbPopover/types.d.ts +3 -2
- package/dist/components/BbRadioGroup/types.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
- package/dist/components/BbSelect/types.d.ts +32 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
- package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/components/BbTable/BbTable.vue.d.ts +10 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1433 -600
- package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
- package/dist/components/BbTable/BbTableDataRow.js +136 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
- package/dist/components/BbTable/BbTableExpandRow.js +52 -0
- package/dist/components/BbTable/types.d.ts +324 -111
- package/dist/components/BbTable/utils.d.ts +92 -4
- package/dist/components/BbTable/utils.js +71 -36
- package/dist/components/BbTabs/types.d.ts +0 -8
- package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/BbTooltip/types.d.ts +5 -1
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/composables/useBaseOptions.js +30 -20
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +5 -5
- package/dist/composables/usePrefill.d.ts +21 -2
- package/dist/composables/usePrefill.js +25 -19
- package/dist/composables/useSsrState.d.ts +20 -0
- package/dist/composables/useSsrState.js +13 -0
- package/dist/composables/useTableWidthContext.d.ts +24 -4
- package/dist/composables/useTableWidthContext.js +31 -28
- package/dist/composables/useToast.js +5 -5
- package/dist/deprecation/ai-deprecations.json.d.ts +121 -11
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +63 -23
- package/dist/i18n/locales/cs.json +4 -1
- package/dist/i18n/locales/da.json +4 -1
- package/dist/i18n/locales/de.json +4 -1
- package/dist/i18n/locales/el.json +4 -1
- package/dist/i18n/locales/en.json +4 -1
- package/dist/i18n/locales/es.json +4 -1
- package/dist/i18n/locales/fi.json +4 -1
- package/dist/i18n/locales/fr.json +4 -1
- package/dist/i18n/locales/hu.json +4 -1
- package/dist/i18n/locales/it.json +4 -1
- package/dist/i18n/locales/ja.json +4 -1
- package/dist/i18n/locales/ko.json +4 -1
- package/dist/i18n/locales/nb.json +4 -1
- package/dist/i18n/locales/nl.json +4 -1
- package/dist/i18n/locales/pl.json +4 -1
- package/dist/i18n/locales/pt.json +4 -1
- package/dist/i18n/locales/ro.json +4 -1
- package/dist/i18n/locales/ru.json +4 -1
- package/dist/i18n/locales/sv.json +4 -1
- package/dist/i18n/locales/tr.json +4 -1
- package/dist/i18n/locales/uk.json +4 -1
- package/dist/i18n/locales/zh-cn.json +4 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +69 -67
- package/dist/llms-full.txt +3997 -1458
- package/dist/llms-medium.txt +140 -73
- package/dist/llms.txt +7 -6
- package/dist/locale-blueprint.json +4 -1
- package/dist/nuxt-auto-imports.d.ts +100 -0
- package/dist/nuxt-auto-imports.js +55 -0
- package/dist/nuxt-module.d.ts +22 -1
- package/dist/nuxt.js +22 -8
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +20 -19
- package/dist/runtime/nuxt-plugin.js +28 -21
- package/dist/styles.css +1 -1
- package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
- package/dist/utilities/misc/listboxMetrics.js +2 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
- package/dist/validated/BbSelect.vue.d.ts +2 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/useValidatedField.js +25 -23
- package/dist/vite.js +7 -3
- package/llms.txt +8 -7
- package/package.json +2 -2
- package/scripts/lib/eslint-plugin.d.ts +19 -1
- package/scripts/lib/eslint-plugin.mjs +155 -14
- package/scripts/lib/html-attributes.mjs +91 -0
- package/scripts/lib/validate-bb-markup.mjs +59 -11
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useLogger as e } from "../../composables/useLogger.js";
|
|
2
2
|
import t from "../BbBaseButton/BbBaseButton.vue.js";
|
|
3
|
-
import n from "
|
|
4
|
-
import
|
|
5
|
-
import i from "../../
|
|
6
|
-
import
|
|
3
|
+
import { useLocale as n } from "../../composables/useLocale.js";
|
|
4
|
+
import r from "../BbIcon/BbIcon.vue.js";
|
|
5
|
+
import { slotKey as i } from "../../utilities/functions/slotKey.js";
|
|
6
|
+
import a from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
7
7
|
import o from "../BbDropdown/BbDropdown.vue.js";
|
|
8
8
|
import { estimateBreadcrumbItemWidth as s, estimateEllipsisWidth as c } from "./estimateBreadcrumbItemWidth.js";
|
|
9
9
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as te, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeProps as v, normalizeProps as y, normalizeStyle as ne, onBeforeUnmount as b, openBlock as x, ref as S, renderList as C, renderSlot as w, unref as T, useSlots as re, watch as ie, withCtx as E } from "vue";
|
|
@@ -41,7 +41,7 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
41
41
|
ellipsisWidth: {}
|
|
42
42
|
},
|
|
43
43
|
setup(g) {
|
|
44
|
-
let N = g, { t: P } =
|
|
44
|
+
let N = g, { t: P } = n();
|
|
45
45
|
e();
|
|
46
46
|
let F = re(), ye = /* @__PURE__ */ new Set([
|
|
47
47
|
"prepend",
|
|
@@ -49,7 +49,7 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
49
49
|
"ellipsis",
|
|
50
50
|
"divider",
|
|
51
51
|
"activator"
|
|
52
|
-
]), I = (e) =>
|
|
52
|
+
]), I = (e) => i(e.key), be = (e) => {
|
|
53
53
|
let { "prepend:icon": t, "append:icon": n, ...r } = e;
|
|
54
54
|
return r;
|
|
55
55
|
}, L = (e, t) => {
|
|
@@ -143,7 +143,7 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
143
143
|
...e,
|
|
144
144
|
text: e.text ?? e.key
|
|
145
145
|
})));
|
|
146
|
-
return (e,
|
|
146
|
+
return (e, n) => (x(), p("nav", {
|
|
147
147
|
ref_key: "navRef",
|
|
148
148
|
ref: R,
|
|
149
149
|
"aria-label": Ce.value,
|
|
@@ -166,54 +166,54 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
166
166
|
disabled: e.disabled,
|
|
167
167
|
overflowCount: z.value,
|
|
168
168
|
ellipsisWidth: H.value
|
|
169
|
-
})), () => [
|
|
169
|
+
})), () => [n[0] ||= te(" … ")])], 16, ue)])]),
|
|
170
170
|
_: 2
|
|
171
171
|
}, [C(xe.value, (t) => ({
|
|
172
172
|
name: t,
|
|
173
173
|
fn: E((n) => [w(e.$slots, t, y(_(n)))])
|
|
174
|
-
}))]), 1032, ["items"]), z.value < e.items.length ? (x(), p("span", de, [w(e.$slots, "divider", {}, () => [h(
|
|
175
|
-
icon: T(
|
|
174
|
+
}))]), 1032, ["items"]), z.value < e.items.length ? (x(), p("span", de, [w(e.$slots, "divider", {}, () => [h(r, {
|
|
175
|
+
icon: T(a),
|
|
176
176
|
size: "14"
|
|
177
|
-
}, null, 8, ["icon"])])])) : f("", !0)])) : f("", !0), (x(!0), p(l, null, C(e.items, (
|
|
178
|
-
w(e.$slots, L(
|
|
179
|
-
disabled: !!(
|
|
180
|
-
index:
|
|
181
|
-
item:
|
|
182
|
-
text:
|
|
177
|
+
}, null, 8, ["icon"])])])) : f("", !0)])) : f("", !0), (x(!0), p(l, null, C(e.items, (n, i) => (x(), p(l, { key: n.key }, [i >= z.value ? (x(), p("li", fe, [m("span", pe, [
|
|
178
|
+
w(e.$slots, L(n, "prepend").name, {
|
|
179
|
+
disabled: !!(n.disabled || e.disabled),
|
|
180
|
+
index: i,
|
|
181
|
+
item: n,
|
|
182
|
+
text: n.text
|
|
183
183
|
}),
|
|
184
|
-
!L(
|
|
184
|
+
!L(n, "prepend").exists && n["prepend:icon"] ? (x(), d(r, {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--prepend",
|
|
187
|
-
icon:
|
|
187
|
+
icon: n["prepend:icon"],
|
|
188
188
|
size: "14"
|
|
189
189
|
}, null, 8, ["icon"])) : f("", !0),
|
|
190
|
-
h(t, v({ ref_for: !0 }, be(
|
|
191
|
-
"aria-current":
|
|
190
|
+
h(t, v({ ref_for: !0 }, be(n), {
|
|
191
|
+
"aria-current": i === e.items.length - 1 ? "page" : void 0,
|
|
192
192
|
class: "bb-breadcrumbs__breadcrumb",
|
|
193
|
-
disabled:
|
|
193
|
+
disabled: n.disabled || e.disabled
|
|
194
194
|
}), {
|
|
195
|
-
default: E(() => [w(e.$slots, I(
|
|
196
|
-
disabled: !!(
|
|
197
|
-
index:
|
|
198
|
-
item:
|
|
199
|
-
text:
|
|
195
|
+
default: E(() => [w(e.$slots, I(n), {
|
|
196
|
+
disabled: !!(n.disabled || e.disabled),
|
|
197
|
+
index: i,
|
|
198
|
+
item: n,
|
|
199
|
+
text: n.text
|
|
200
200
|
})]),
|
|
201
201
|
_: 2
|
|
202
202
|
}, 1040, ["aria-current", "disabled"]),
|
|
203
|
-
w(e.$slots, L(
|
|
204
|
-
disabled: !!(
|
|
205
|
-
index:
|
|
206
|
-
item:
|
|
207
|
-
text:
|
|
203
|
+
w(e.$slots, L(n, "append").name, {
|
|
204
|
+
disabled: !!(n.disabled || e.disabled),
|
|
205
|
+
index: i,
|
|
206
|
+
item: n,
|
|
207
|
+
text: n.text
|
|
208
208
|
}),
|
|
209
|
-
!L(
|
|
209
|
+
!L(n, "append").exists && n["append:icon"] ? (x(), d(r, {
|
|
210
210
|
key: 1,
|
|
211
211
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--append",
|
|
212
|
-
icon:
|
|
212
|
+
icon: n["append:icon"],
|
|
213
213
|
size: "14"
|
|
214
214
|
}, null, 8, ["icon"])) : f("", !0)
|
|
215
|
-
]),
|
|
216
|
-
icon: T(
|
|
215
|
+
]), i < e.items.length - 1 ? (x(), p("span", me, [w(e.$slots, "divider", {}, () => [h(r, {
|
|
216
|
+
icon: T(a),
|
|
217
217
|
size: "14"
|
|
218
218
|
}, null, 8, ["icon"])])])) : f("", !0)])) : f("", !0)], 64))), 128))]),
|
|
219
219
|
e.$slots.append ? (x(), p("div", k, [w(e.$slots, "append", { disabled: e.disabled })])) : f("", !0)
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "../
|
|
1
|
+
import { useUntil as e } from "../../composables/useUntil.js";
|
|
2
|
+
import { removedPropsFor as t } from "../../deprecation/removedProps.js";
|
|
3
|
+
import { useLogger as n } from "../../composables/useLogger.js";
|
|
4
|
+
import { warnRemovedAttrs as r } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
5
|
+
import { extractDomContainer as i } from "../../utilities/functions/extractDomContainer.js";
|
|
6
|
+
import a from "../BbBaseButton/BbBaseButton.vue.js";
|
|
7
7
|
import { useLocale as o } from "../../composables/useLocale.js";
|
|
8
|
-
import s from "../
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import s from "../BbIcon/BbIcon.vue.js";
|
|
9
|
+
import c from "../BbSpinner/BbSpinner.vue.js";
|
|
10
|
+
import { pickBy as l } from "../../utilities/functions/pickBy.js";
|
|
11
|
+
import { noop as u } from "../../utilities/functions/noop.js";
|
|
12
|
+
import { isEqual as d } from "../../utilities/functions/isEqual.js";
|
|
13
|
+
import { Transition as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, defineComponent as y, mergeModels as b, mergeProps as x, normalizeClass as S, openBlock as C, ref as w, renderSlot as T, toDisplayString as E, unref as D, useAttrs as O, useModel as k, watchEffect as A, withCtx as j } from "vue";
|
|
13
14
|
//#region src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
15
|
-
key:
|
|
15
|
+
var M = {
|
|
16
|
+
key: 3,
|
|
16
17
|
class: "bb-button__loading-label sr-only"
|
|
17
|
-
},
|
|
18
|
+
}, N = /*@__PURE__*/ y({
|
|
18
19
|
inheritAttrs: !1,
|
|
19
20
|
__name: "BbButton",
|
|
20
21
|
props: /*@__PURE__*/ b({
|
|
@@ -84,105 +85,108 @@ var N = {
|
|
|
84
85
|
}),
|
|
85
86
|
emits: ["update:modelValue"],
|
|
86
87
|
setup(y, { expose: b }) {
|
|
87
|
-
let
|
|
88
|
-
process.env.NODE_ENV !== "production" &&
|
|
89
|
-
let
|
|
88
|
+
let N = k(y, "modelValue"), P = y;
|
|
89
|
+
process.env.NODE_ENV !== "production" && r("BbButton", t("BbButton"));
|
|
90
|
+
let F = [
|
|
90
91
|
"xs",
|
|
91
92
|
"sm",
|
|
92
93
|
"md",
|
|
93
94
|
"lg",
|
|
94
95
|
"xl",
|
|
95
96
|
"2xl"
|
|
96
|
-
],
|
|
97
|
-
process.env.NODE_ENV !== "production" &&
|
|
98
|
-
|
|
97
|
+
], I = n(), L = p(() => N.value !== void 0), R = p(() => d(N.value, P.trueValue)), { t: z } = o(), B = O(), V = w();
|
|
98
|
+
process.env.NODE_ENV !== "production" && A(() => {
|
|
99
|
+
L.value || "aria-pressed" in B && I.warn("BbButton: `aria-pressed` is managed by the component and your binding is ignored. Bind `v-model` (with `true-value`/`false-value` when the state is not boolean) — that sets `aria-pressed`, applies `bb-button--active`, and flips the value on click.");
|
|
99
100
|
});
|
|
100
|
-
let
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
let { onClick: e, ...t } =
|
|
101
|
+
let H = (e) => {
|
|
102
|
+
V.value = i(e) ?? void 0;
|
|
103
|
+
}, U = p(() => {
|
|
104
|
+
let { onClick: e, ...t } = B;
|
|
104
105
|
return t;
|
|
105
|
-
}),
|
|
106
|
-
if (
|
|
107
|
-
if (
|
|
108
|
-
let e =
|
|
109
|
-
|
|
106
|
+
}), W = w(0), G = p(() => P.loading || !!W.value && !P.disableAutoLoading), K = e(G), q = async (e) => {
|
|
107
|
+
if (G.value && !P.interactiveWhileLoading) return (P.type === "submit" || P.href || P.to) && e.preventDefault(), null;
|
|
108
|
+
if (L.value) {
|
|
109
|
+
let e = P.trueValue, t = P.falseValue;
|
|
110
|
+
N.value = d(N.value, e) ? t : e;
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
+
let t = (B.onClick ?? u)(e);
|
|
113
|
+
if (!t || typeof t.then != "function") return t;
|
|
114
|
+
W.value++;
|
|
112
115
|
try {
|
|
113
|
-
await
|
|
116
|
+
return await t;
|
|
114
117
|
} finally {
|
|
115
|
-
|
|
118
|
+
W.value--;
|
|
116
119
|
}
|
|
117
|
-
}, J =
|
|
118
|
-
let e = typeof
|
|
120
|
+
}, J = p(() => {
|
|
121
|
+
let e = typeof P.size == "string" ? { default: P.size } : {
|
|
119
122
|
default: "md",
|
|
120
|
-
...
|
|
123
|
+
...P.size
|
|
121
124
|
};
|
|
122
125
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => {
|
|
123
126
|
let n = t;
|
|
124
|
-
return
|
|
127
|
+
return F.includes(t) || (I.warn(`Invalid size: "${t}" in BbButton. Expected one of: ${F.join(", ")}. Falling back to "md".`), n = "md"), [e === "default" ? `bb-button--${n}` : `bb-button--${e}-${n}`, !0];
|
|
125
128
|
}));
|
|
126
|
-
}), Y =
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
129
|
+
}), Y = /* @__PURE__ */ new Set([
|
|
130
|
+
"append:icon",
|
|
131
|
+
"disableAutoLoading",
|
|
132
|
+
"disabled",
|
|
133
|
+
"interactiveWhileLoading",
|
|
134
|
+
"falseValue",
|
|
135
|
+
"group",
|
|
136
|
+
"icon",
|
|
137
|
+
"loading",
|
|
138
|
+
"modelValue",
|
|
139
|
+
"prepend:icon",
|
|
140
|
+
"size",
|
|
141
|
+
"trueValue",
|
|
142
|
+
"variant"
|
|
143
|
+
]), X = p(() => ({
|
|
144
|
+
...U.value,
|
|
145
|
+
...l(P, (e, t) => !Y.has(t))
|
|
143
146
|
}));
|
|
144
|
-
return b({ $el:
|
|
145
|
-
"aria-disabled":
|
|
146
|
-
"aria-pressed":
|
|
147
|
+
return b({ $el: V }), (e, t) => (C(), m(D(a), x({ ref: H }, X.value, {
|
|
148
|
+
"aria-disabled": G.value ? !0 : void 0,
|
|
149
|
+
"aria-pressed": L.value ? R.value : void 0,
|
|
147
150
|
class: ["bb-button", {
|
|
148
151
|
...J.value,
|
|
149
|
-
"bb-button--loading":
|
|
150
|
-
"bb-button--group":
|
|
152
|
+
"bb-button--loading": G.value,
|
|
153
|
+
"bb-button--group": P.group,
|
|
151
154
|
"bb-button--icon": !!e.icon,
|
|
152
|
-
"bb-button--active":
|
|
153
|
-
[`bb-button--${
|
|
155
|
+
"bb-button--active": L.value && R.value,
|
|
156
|
+
[`bb-button--${P.variant}`]: P.variant !== "none"
|
|
154
157
|
}],
|
|
155
|
-
disabled:
|
|
156
|
-
tabindex:
|
|
158
|
+
disabled: P.disabled,
|
|
159
|
+
tabindex: G.value ? -1 : void 0,
|
|
157
160
|
onClick: q
|
|
158
161
|
}), {
|
|
159
|
-
default:
|
|
160
|
-
|
|
162
|
+
default: j(() => [
|
|
163
|
+
D(K) ? (C(), m(f, {
|
|
164
|
+
key: 0,
|
|
161
165
|
appear: "",
|
|
162
166
|
name: "bb-button-spinner"
|
|
163
167
|
}, {
|
|
164
|
-
default:
|
|
168
|
+
default: j(() => [G.value ? (C(), m(D(c), {
|
|
165
169
|
key: 0,
|
|
166
170
|
class: "bb-button__spinner"
|
|
167
|
-
})) :
|
|
171
|
+
})) : h("", !0)]),
|
|
168
172
|
_: 1
|
|
169
|
-
}),
|
|
170
|
-
|
|
171
|
-
key: 0,
|
|
172
|
-
class: "bb-button__icon",
|
|
173
|
-
icon: F.icon
|
|
174
|
-
}, null, 8, ["icon"])) : F["prepend:icon"] ? (C(), p(a, {
|
|
173
|
+
})) : h("", !0),
|
|
174
|
+
P.icon ? (C(), m(s, {
|
|
175
175
|
key: 1,
|
|
176
|
+
class: "bb-button__icon",
|
|
177
|
+
icon: P.icon
|
|
178
|
+
}, null, 8, ["icon"])) : P["prepend:icon"] ? (C(), m(s, {
|
|
179
|
+
key: 2,
|
|
176
180
|
class: "bb-button__prepend-icon",
|
|
177
|
-
icon:
|
|
178
|
-
}, null, 8, ["icon"])) :
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
!e.icon &&
|
|
182
|
-
key:
|
|
181
|
+
icon: P["prepend:icon"]
|
|
182
|
+
}, null, 8, ["icon"])) : h("", !0),
|
|
183
|
+
_("span", { class: S(["bb-button__content", { "sr-only": !!e.icon }]) }, [T(e.$slots, "default", {}, () => [v(E(e.text), 1)])], 2),
|
|
184
|
+
G.value ? (C(), g("span", M, E(D(z)("common.loadingText")), 1)) : h("", !0),
|
|
185
|
+
!e.icon && P["append:icon"] ? (C(), m(s, {
|
|
186
|
+
key: 4,
|
|
183
187
|
class: "bb-button__append-icon",
|
|
184
|
-
icon:
|
|
185
|
-
}, null, 8, ["icon"])) :
|
|
188
|
+
icon: P["append:icon"]
|
|
189
|
+
}, null, 8, ["icon"])) : h("", !0)
|
|
186
190
|
]),
|
|
187
191
|
_: 3
|
|
188
192
|
}, 16, [
|
|
@@ -195,4 +199,4 @@ var N = {
|
|
|
195
199
|
}
|
|
196
200
|
});
|
|
197
201
|
//#endregion
|
|
198
|
-
export {
|
|
202
|
+
export { N as default };
|
|
@@ -118,7 +118,8 @@ export type BbCheckboxGroupProps<T> = {
|
|
|
118
118
|
/**
|
|
119
119
|
* Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow;
|
|
120
120
|
* `'inside'` overlays the legend inside the fieldset border.
|
|
121
|
-
* Floating mode is not supported for checkbox
|
|
121
|
+
* Floating mode is not supported for option groups (checkbox, radio or
|
|
122
|
+
* switch) — there is no single field for the legend to float against.
|
|
122
123
|
*/
|
|
123
124
|
legendMode?: 'outside' | 'inside';
|
|
124
125
|
/**
|
|
@@ -12,9 +12,15 @@ export type BbCollapsibleProps = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Used by v-model to trigger opening / closing the collapsible.
|
|
14
14
|
*
|
|
15
|
+
* Optional, matching the runtime: `withDefaults` supplies `false`, so an
|
|
16
|
+
* omitted binding renders closed and Vue never warns. It was typed required
|
|
17
|
+
* while carrying that default, which made the manifest publish a row that
|
|
18
|
+
* was `required: true` AND `default: false` — a contradiction that read as
|
|
19
|
+
* a generator bug.
|
|
20
|
+
*
|
|
15
21
|
* @defaultValue `false`
|
|
16
22
|
*/
|
|
17
|
-
modelValue
|
|
23
|
+
modelValue?: boolean;
|
|
18
24
|
};
|
|
19
25
|
export type BbCollapsibleSlots = {
|
|
20
26
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BbColorInputProps, BbColorInputEvents, BbColorInputSlots } from './types';
|
|
2
|
-
export type { BbColorInputProps, BbColorInputEvents, BbColorInputSlots };
|
|
3
2
|
type __VLS_Slots = BbColorInputSlots;
|
|
3
|
+
export type { BbColorInputProps, BbColorInputEvents, BbColorInputSlots };
|
|
4
4
|
declare const __VLS_base: import('vue').DefineComponent<BbColorInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
input: (event: Event) => any;
|
|
6
6
|
click: (event: MouseEvent) => any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "../
|
|
6
|
-
import
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { removedPropsFor as t } from "../../deprecation/removedProps.js";
|
|
3
|
+
import { warnRemovedAttrs as n } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
4
|
+
import { isNotNil as r } from "../../utilities/functions/isNotNil.js";
|
|
5
|
+
import i from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
|
|
6
|
+
import a from "../BbBaseColorInput/BbBaseColorInput.vue.js";
|
|
7
7
|
import { computed as o, createBlock as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, openBlock as p, ref as m, renderSlot as h, withCtx as g } from "vue";
|
|
8
8
|
//#region src/components/BbColorInput/BbColorInput.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _ = /*@__PURE__*/ l({
|
|
@@ -60,16 +60,16 @@ var _ = /*@__PURE__*/ l({
|
|
|
60
60
|
"update:modelValue"
|
|
61
61
|
],
|
|
62
62
|
setup(l, { emit: _ }) {
|
|
63
|
-
let v = l, y = _;
|
|
64
|
-
process.env.NODE_ENV !== "production" &&
|
|
65
|
-
let
|
|
63
|
+
let v = l, y = _, b = e();
|
|
64
|
+
process.env.NODE_ENV !== "production" && n("BbColorInput", t("BbColorInput"));
|
|
65
|
+
let x = m(!1), S = o(() => v.persistentHint || x.value), C = o(() => r(v.modelValue)), w = o(() => v.labelMode ?? b.defaultInputLabelMode), T = {
|
|
66
66
|
onBlur: (e) => {
|
|
67
|
-
|
|
67
|
+
x.value = !1, y("blur", e);
|
|
68
68
|
},
|
|
69
69
|
onChange: (e) => y("change", e),
|
|
70
70
|
onClick: (e) => y("click", e),
|
|
71
71
|
onFocus: (e) => {
|
|
72
|
-
|
|
72
|
+
x.value = !0, y("focus", e);
|
|
73
73
|
},
|
|
74
74
|
onInput: (e) => y("input", e),
|
|
75
75
|
onKeydown: (e) => y("keydown", e),
|
|
@@ -81,7 +81,7 @@ var _ = /*@__PURE__*/ l({
|
|
|
81
81
|
onCompositionend: (e) => y("compositionend", e),
|
|
82
82
|
"onUpdate:modelValue": (e) => y("update:modelValue", e)
|
|
83
83
|
};
|
|
84
|
-
return (e, t) => (p(), s(
|
|
84
|
+
return (e, t) => (p(), s(i, {
|
|
85
85
|
id: e.id,
|
|
86
86
|
class: "bb-color-input",
|
|
87
87
|
compact: e.compact,
|
|
@@ -89,26 +89,26 @@ var _ = /*@__PURE__*/ l({
|
|
|
89
89
|
direction: e.direction,
|
|
90
90
|
errors: e.errors,
|
|
91
91
|
"has-errors": e.hasErrors,
|
|
92
|
-
"has-value":
|
|
92
|
+
"has-value": C.value,
|
|
93
93
|
"has-warning": e.hasWarning,
|
|
94
94
|
"hide-label": e.hideLabel,
|
|
95
95
|
hint: e.hint,
|
|
96
96
|
label: e.label,
|
|
97
|
-
"label-mode":
|
|
97
|
+
"label-mode": w.value,
|
|
98
98
|
"label-position": e.labelPosition,
|
|
99
99
|
"model-value": e.modelValue,
|
|
100
100
|
name: e.name,
|
|
101
101
|
reverse: e.reverse,
|
|
102
|
-
"show-hint":
|
|
102
|
+
"show-hint": S.value,
|
|
103
103
|
warnings: e.warnings
|
|
104
104
|
}, {
|
|
105
105
|
label: g((t) => [h(e.$slots, "label", f(u(t)))]),
|
|
106
|
-
input: g(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby:
|
|
106
|
+
input: g(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: i }) => [c(a, d({
|
|
107
107
|
id: t,
|
|
108
108
|
adaptive: e.adaptive,
|
|
109
109
|
alpha: e.alpha,
|
|
110
110
|
"append:icon": v["append:icon"],
|
|
111
|
-
"aria-describedby":
|
|
111
|
+
"aria-describedby": i,
|
|
112
112
|
autocomplete: e.autocomplete,
|
|
113
113
|
autofocus: e.autofocus,
|
|
114
114
|
clearable: e.clearable,
|
|
@@ -125,7 +125,7 @@ var _ = /*@__PURE__*/ l({
|
|
|
125
125
|
readonly: e.readonly,
|
|
126
126
|
required: e.required,
|
|
127
127
|
swatches: e.swatches
|
|
128
|
-
},
|
|
128
|
+
}, T), {
|
|
129
129
|
"append-outer": g(() => [h(e.$slots, "append-outer")]),
|
|
130
130
|
append: g(() => [h(e.$slots, "append")]),
|
|
131
131
|
prefix: g(() => [h(e.$slots, "prefix")]),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BbColorPaletteProps, BbColorPaletteEvents, BbColorPaletteSlots } from './types';
|
|
2
|
-
export type { BbColorPaletteProps, BbColorPaletteEvents, BbColorPaletteSlots };
|
|
3
2
|
type __VLS_Slots = BbColorPaletteSlots;
|
|
3
|
+
export type { BbColorPaletteProps, BbColorPaletteEvents, BbColorPaletteSlots };
|
|
4
4
|
declare const __VLS_base: import('vue').DefineComponent<BbColorPaletteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
"update:modelValue": (value: string) => any;
|
|
6
6
|
}, string, import('vue').PublicProps, Readonly<BbColorPaletteProps> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
+
adaptive: boolean;
|
|
9
10
|
eyeDropper: boolean;
|
|
10
11
|
offset: number;
|
|
11
12
|
padding: number;
|
|
12
13
|
transitionDuration: number;
|
|
13
|
-
adaptive: boolean;
|
|
14
14
|
alpha: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|