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
|
@@ -5,10 +5,98 @@ export type FixedColumnConfig = number | {
|
|
|
5
5
|
position: 'left' | 'right';
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Splits the grid root's *resolved* `grid-template-columns` (one
|
|
9
|
+
* `getComputedStyle` read) into its px tokens, verbatim. Returns `null` when
|
|
10
|
+
* any token is not a px length: a table hidden by `display: none` reports its
|
|
11
|
+
* SPECIFIED template (`max-content auto …`) instead of used values, and the
|
|
12
|
+
* caller must keep its last good measurement rather than publish keywords.
|
|
13
|
+
*
|
|
14
|
+
* Read the root only — a subgrid box reports the literal `subgrid [] [] …`.
|
|
10
15
|
*/
|
|
11
|
-
export declare const
|
|
16
|
+
export declare const readResolvedTracks: (root: Element) => string[] | null;
|
|
17
|
+
/**
|
|
18
|
+
* Applies sticky positioning to fixed table columns — a RECONCILE pass, not a
|
|
19
|
+
* set-only one: every cell of every processed row ends up with exactly the
|
|
20
|
+
* inline `position`/`left`/`right` its slot calls for, and nothing else.
|
|
21
|
+
*
|
|
22
|
+
* `root` is the grid root (`.bb-table__table`). Offsets are prefix sums of the
|
|
23
|
+
* resolved track list, so they hold to the subpixel regardless of what sized
|
|
24
|
+
* the track (frozen width, inherited parent track, content). Call after DOM
|
|
25
|
+
* updates (e.g. in a `flush: 'post'` watch) and after every re-measure so the
|
|
26
|
+
* offsets follow the tracks.
|
|
27
|
+
*
|
|
28
|
+
* The pass is POSITIONAL (indices into the rendered track list, `select`
|
|
29
|
+
* included); the table resolves them from `column.fixed` / `fixed-select` /
|
|
30
|
+
* `fixed-actions` against the RENDERED column list on every change, so the
|
|
31
|
+
* pin follows the column. Cells are keyed by column, so a reorder MOVES the
|
|
32
|
+
* cell element — inline styles travel with it. A cell that stops being pinned
|
|
33
|
+
* (its column un-pinned, hidden, or another column moved into the slot it
|
|
34
|
+
* used to hold) would keep `position: sticky; left: 0px` and, once the
|
|
35
|
+
* container scrolls, paint over its neighbours (a stale `left` on a
|
|
36
|
+
* right-pinned cell would linger too), which is why every non-pinned cell is
|
|
37
|
+
* cleared and every pinned cell has its opposite side cleared. Clearing an
|
|
38
|
+
* absent inline property is mutation-free, so the pass is idempotent and
|
|
39
|
+
* cheap.
|
|
40
|
+
*/
|
|
41
|
+
export declare const applyFixedTableColumns: (root: HTMLElement, fixedColumns: FixedColumnConfig[],
|
|
42
|
+
/**
|
|
43
|
+
* The resolved tracks when the caller already holds them (the measure path
|
|
44
|
+
* just read them; a `virtual` window change moves no track): skips the
|
|
45
|
+
* `getComputedStyle` read, which forces style on every call.
|
|
46
|
+
*/
|
|
47
|
+
resolvedTracks?: string[] | null,
|
|
48
|
+
/**
|
|
49
|
+
* Skip rows whose inline styles were already written for this exact track
|
|
50
|
+
* list and pin config — the caller opting in to the row stamp below. Only
|
|
51
|
+
* safe when the CELL ORDER cannot have changed since the last pass, which
|
|
52
|
+
* is the caller's knowledge, not ours: a reorder can leave the track list
|
|
53
|
+
* and the config byte-identical while every cell has moved to a different
|
|
54
|
+
* track. `virtual`'s window-move pass is exactly that case (the rows
|
|
55
|
+
* change, the columns do not).
|
|
56
|
+
*/
|
|
57
|
+
memoize?: boolean) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Completes an `order` model against the declared column keys: the
|
|
60
|
+
* model's keys first (duplicates dropped, first occurrence wins), then every
|
|
61
|
+
* declared key the model omits, in declaration order. Unknown keys (columns
|
|
62
|
+
* the consumer currently hides) are kept in place.
|
|
63
|
+
*/
|
|
64
|
+
export declare const completeColumnOrder: (model: readonly string[], declared: readonly string[]) => string[];
|
|
65
|
+
/**
|
|
66
|
+
* Declared columns in render order — the completed model restricted to the
|
|
67
|
+
* declared keys. A key declared twice keeps both columns (parity with the
|
|
68
|
+
* unordered render), adjacent, in declaration order.
|
|
69
|
+
*/
|
|
70
|
+
export declare const orderColumns: <C extends {
|
|
71
|
+
key: string;
|
|
72
|
+
}>(columns: readonly C[], model: readonly string[]) => C[];
|
|
73
|
+
/**
|
|
74
|
+
* The write-back. Moves `key` to render index `toIndex` among the RENDERED
|
|
75
|
+
* columns (the declared keys minus `hidden`) and returns the complete model
|
|
76
|
+
* to emit: the completed model with exactly ONE entry relocated — what
|
|
77
|
+
* dragging that entry in a panel listing the complete order (hidden columns
|
|
78
|
+
* included) would produce. `hidden` is the set of declared keys that render
|
|
79
|
+
* nothing (`column.hidden`); a key the consumer dropped from `columns`
|
|
80
|
+
* altogether is simply undeclared and behaves the same way.
|
|
81
|
+
*
|
|
82
|
+
* Invariants (each pinned by a unit test):
|
|
83
|
+
* 1. completeness — a permutation of `completeColumnOrder(model, declared)`,
|
|
84
|
+
* no duplicates;
|
|
85
|
+
* 2. single relocation — `result` without `key` equals the completed model
|
|
86
|
+
* without `key`: every other key, hidden ones included, keeps its
|
|
87
|
+
* relative order (this IS the "hidden columns keep their slot" guarantee);
|
|
88
|
+
* 3. render index — among the rendered keys, `key` sits at
|
|
89
|
+
* `clamp(toIndex, 0, N - 1)`;
|
|
90
|
+
* 4. adjacency — `key` lands right AFTER (moving right) / right BEFORE
|
|
91
|
+
* (moving left) the visible column it displaces, so a hidden key is never
|
|
92
|
+
* caught between the mover and its new neighbour;
|
|
93
|
+
* 5. stability — an unknown or hidden `key`, or `toIndex` equal to the
|
|
94
|
+
* current index, returns the completed model unchanged (callers compare
|
|
95
|
+
* against the completed model and emit nothing).
|
|
96
|
+
*/
|
|
97
|
+
export declare const moveColumnKey: (model: readonly string[], declared: readonly string[], key: string, toIndex: number, hidden?: ReadonlySet<string>) => string[];
|
|
98
|
+
/** Sequence equality for the commit guard. */
|
|
99
|
+
export declare const sameColumnOrder: (a: readonly string[], b: readonly string[]) => boolean;
|
|
12
100
|
/**
|
|
13
101
|
* Converts a column key (e.g. "address.nested.value") to a slot-safe name (e.g. "address_nested_value").
|
|
14
102
|
* Thin alias over the shared {@link slotKey} normalizer used across every
|
|
@@ -20,7 +108,7 @@ export declare const columnKeyToSlotName: (key: string) => string;
|
|
|
20
108
|
*/
|
|
21
109
|
export declare const mergeHeaderClasses: (base: Classes, global?: Classes, column?: Classes) => Classes;
|
|
22
110
|
/**
|
|
23
|
-
* Accumulates every row-class source for a row
|
|
111
|
+
* Accumulates every row-class source for a data row: the table-level
|
|
24
112
|
* `rowClass` prop (item function or static), then each column's `rowClass`
|
|
25
113
|
* (resolved with that column's cell content, like `tdClass`), in column order.
|
|
26
114
|
*/
|
|
@@ -1,53 +1,88 @@
|
|
|
1
1
|
import { useLogger as e } from "../../composables/useLogger.js";
|
|
2
2
|
import { slotKey as t } from "../../utilities/functions/slotKey.js";
|
|
3
3
|
//#region src/components/BbTable/utils.ts
|
|
4
|
-
var n = (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var n = /^-?\d*\.?\d+px$/, r = (e) => {
|
|
5
|
+
let t = getComputedStyle(e).gridTemplateColumns;
|
|
6
|
+
if (!t || t === "none") return null;
|
|
7
|
+
let r = t.trim().split(/\s+/);
|
|
8
|
+
return r.every((e) => n.test(e)) ? r : null;
|
|
9
|
+
}, i = [
|
|
10
|
+
"bb-table-expand__row",
|
|
11
|
+
"bb-table-no-data__row",
|
|
12
|
+
"bb-table-spacer__row",
|
|
13
|
+
"bb-table-placeholder__row"
|
|
14
|
+
], a = (t, n, a, o = !1) => {
|
|
15
|
+
let s = a ?? r(t);
|
|
16
|
+
if (!s) return;
|
|
17
|
+
let { error: c } = e(), l = s.length, u = s.map((e) => parseFloat(e)), d = n.map((e) => ({
|
|
9
18
|
index: typeof e == "number" ? e : e.index,
|
|
10
19
|
position: typeof e == "number" ? "left" : e.position
|
|
11
|
-
})).sort((e, t) => e.position === t.position ? e.position === "left" ? e.index - t.index : t.index - e.index : e.position === "left" ? -1 : 1).reduce((e, t) => {
|
|
12
|
-
let n =
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
20
|
+
})).sort((e, t) => e.position === t.position ? e.position === "left" ? e.index - t.index : t.index - e.index : e.position === "left" ? -1 : 1), f = d.reduce((e, t) => {
|
|
21
|
+
let n = u[t.index];
|
|
22
|
+
if (n === void 0) return c(`BbTable fixed columns: cannot affix the column at rendered index ${t.index}. Table has ${l} columns (valid indices: 0–${l - 1}).`), e;
|
|
23
|
+
let r = e.filter((e) => e.position === t.position).reduce((e, t) => e + t.width, 0);
|
|
15
24
|
return e.push({
|
|
16
25
|
index: t.index,
|
|
17
26
|
position: t.position,
|
|
18
|
-
width:
|
|
19
|
-
offset:
|
|
27
|
+
width: n,
|
|
28
|
+
offset: r
|
|
20
29
|
}), e;
|
|
21
|
-
}, [])
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
}, []), p = Array.from(t.querySelectorAll(":scope > .bb-table__head > [role=\"row\"], :scope > .bb-table__body > [role=\"row\"]")), m = new Map(f.map((e) => [e.index, e])), h = `${s.join(" ")}|${JSON.stringify(d)}`;
|
|
31
|
+
p.forEach((e) => {
|
|
32
|
+
if (!i.some((t) => e.classList.contains(t)) && !(e.children.length < l) && !(o && e.__bbFixedStamp === h)) {
|
|
33
|
+
for (let t = 0; t < l; t++) {
|
|
34
|
+
let n = e.children[t];
|
|
35
|
+
if (!n) continue;
|
|
36
|
+
let r = m.get(t);
|
|
37
|
+
if (!r) {
|
|
38
|
+
n.style.position === "sticky" && (n.style.removeProperty("position"), n.style.removeProperty("left"), n.style.removeProperty("right"));
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
n.style.position = "sticky", n.style[r.position] = `${r.offset}px`, n.style.removeProperty(r.position === "left" ? "right" : "left");
|
|
42
|
+
}
|
|
43
|
+
e.__bbFixedStamp = h;
|
|
44
|
+
}
|
|
28
45
|
});
|
|
29
|
-
},
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
}, o = (e, t) => {
|
|
47
|
+
let n = /* @__PURE__ */ new Set(), r = [];
|
|
48
|
+
for (let i of [...e, ...t]) n.has(i) || (n.add(i), r.push(i));
|
|
49
|
+
return r;
|
|
50
|
+
}, s = (e, t) => {
|
|
51
|
+
let n = /* @__PURE__ */ new Map();
|
|
52
|
+
for (let t of e) {
|
|
53
|
+
let e = String(t.key), r = n.get(e);
|
|
54
|
+
r ? r.push(t) : n.set(e, [t]);
|
|
55
|
+
}
|
|
56
|
+
return o(t, [...n.keys()]).flatMap((e) => n.get(e) ?? []);
|
|
57
|
+
}, c = (e, t, n, r, i = /* @__PURE__ */ new Set()) => {
|
|
58
|
+
let a = new Set(t), s = o(e, t), c = s.filter((e) => a.has(e) && !i.has(e)), l = c.indexOf(n);
|
|
59
|
+
if (l < 0) return s;
|
|
60
|
+
let u = Math.max(0, Math.min(c.length - 1, r));
|
|
61
|
+
if (u === l) return s;
|
|
62
|
+
let d = c[u], f = s.filter((e) => e !== n);
|
|
63
|
+
return f.splice(f.indexOf(d) + +(u > l), 0, n), f;
|
|
64
|
+
}, l = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), u = (e) => Array.isArray(e) ? e : [e], d = t, f = (e, t, n) => {
|
|
65
|
+
let r = [...u(e)];
|
|
66
|
+
return t && r.push(...u(t)), n && r.push(...u(n)), r;
|
|
67
|
+
}, p = (e, t, n, r) => {
|
|
68
|
+
let i = [], a = (e) => {
|
|
69
|
+
e && i.push(...u(e));
|
|
35
70
|
};
|
|
36
|
-
return
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
}),
|
|
40
|
-
},
|
|
41
|
-
let
|
|
71
|
+
return a(typeof e == "function" ? e(r) : e), t.forEach((e, t) => {
|
|
72
|
+
let i = e.rowClass;
|
|
73
|
+
i && a(typeof i == "function" ? i(n[t]?.content, String(e.key), r) : i);
|
|
74
|
+
}), i;
|
|
75
|
+
}, m = (e, t, n, r, i, a) => {
|
|
76
|
+
let o = [...u(e)], s = (e) => typeof e == "function" ? e(r, i, a) : e;
|
|
42
77
|
if (t) {
|
|
43
|
-
let e =
|
|
44
|
-
e &&
|
|
78
|
+
let e = s(t);
|
|
79
|
+
e && o.push(...u(e));
|
|
45
80
|
}
|
|
46
81
|
if (n) {
|
|
47
|
-
let e =
|
|
48
|
-
e &&
|
|
82
|
+
let e = s(n);
|
|
83
|
+
e && o.push(...u(e));
|
|
49
84
|
}
|
|
50
|
-
return
|
|
85
|
+
return o;
|
|
51
86
|
};
|
|
52
87
|
//#endregion
|
|
53
|
-
export {
|
|
88
|
+
export { a as applyFixedTableColumns, d as columnKeyToSlotName, o as completeColumnOrder, m as mergeCellClasses, f as mergeHeaderClasses, p as mergeRowClasses, c as moveColumnKey, s as orderColumns, r as readResolvedTracks, l as sameColumnOrder };
|
|
@@ -54,14 +54,6 @@ export type BbTabsInertiaOptions = {
|
|
|
54
54
|
* Only meaningful in an Inertia context.
|
|
55
55
|
*/
|
|
56
56
|
preserveState?: boolean | ((props: Record<string, unknown>) => boolean) | null;
|
|
57
|
-
/**
|
|
58
|
-
* Uses history replacement instead of push navigation.
|
|
59
|
-
*
|
|
60
|
-
* Prefer `replace` whenever `navigation` is on: the URL still carries the
|
|
61
|
-
* active tab (deep-linkable, survives reload), but switching tabs does not
|
|
62
|
-
* stack a history entry per click, so Back leaves the page instead of
|
|
63
|
-
* walking the user backwards through every tab they visited.
|
|
64
|
-
*/
|
|
65
57
|
replace?: boolean;
|
|
66
58
|
};
|
|
67
59
|
export type BbTabsEvents<K extends string = string> =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BbTagProps, BbTagEvents, BbTagSlots } from './types';
|
|
2
|
-
export type { BbTagProps, BbTagEvents, BbTagSlots };
|
|
3
2
|
type __VLS_Slots = BbTagSlots;
|
|
3
|
+
export type { BbTagProps, BbTagEvents, BbTagSlots };
|
|
4
4
|
declare const __VLS_base: import('vue').DefineComponent<BbTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
input: (event: Event) => any;
|
|
6
6
|
click: (event: MouseEvent) => any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "../
|
|
5
|
-
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 r from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
|
|
5
|
+
import i from "../BbBaseTag/BbBaseTag.vue.js";
|
|
6
6
|
import { computed as a, createBlock as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, ref as p, renderSlot as m, withCtx as h } from "vue";
|
|
7
7
|
//#region src/components/BbTag/BbTag.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var g = /*@__PURE__*/ c({
|
|
@@ -60,21 +60,21 @@ var g = /*@__PURE__*/ c({
|
|
|
60
60
|
"update:modelValue"
|
|
61
61
|
],
|
|
62
62
|
setup(c, { emit: g }) {
|
|
63
|
-
let _ = c, v = g;
|
|
64
|
-
process.env.NODE_ENV !== "production" &&
|
|
65
|
-
let
|
|
63
|
+
let _ = c, v = g, y = e();
|
|
64
|
+
process.env.NODE_ENV !== "production" && n("BbTag", t("BbTag"));
|
|
65
|
+
let b = p(!1), x = a(() => _.persistentHint || b.value), S = a(() => (_.modelValue?.length ?? 0) > 0), C = a(() => _.labelMode ?? y.defaultInputLabelMode), w = {
|
|
66
66
|
onBlur: (e) => v("blur", e),
|
|
67
67
|
onChange: (e) => v("change", e),
|
|
68
68
|
onClick: (e) => v("click", e),
|
|
69
69
|
onDuplicate: (e) => v("duplicate", e),
|
|
70
70
|
onFocus: (e) => {
|
|
71
|
-
|
|
71
|
+
b.value = !0, v("focus", e);
|
|
72
72
|
},
|
|
73
73
|
onActive: () => {
|
|
74
|
-
|
|
74
|
+
b.value = !0, v("active");
|
|
75
75
|
},
|
|
76
76
|
onInactive: () => {
|
|
77
|
-
|
|
77
|
+
b.value = !1, v("inactive");
|
|
78
78
|
},
|
|
79
79
|
onInput: (e) => v("input", e),
|
|
80
80
|
onKeydown: (e) => v("keydown", e),
|
|
@@ -87,7 +87,7 @@ var g = /*@__PURE__*/ c({
|
|
|
87
87
|
onMax: (e) => v("max", e),
|
|
88
88
|
"onUpdate:modelValue": (e) => v("update:modelValue", e)
|
|
89
89
|
};
|
|
90
|
-
return (e, t) => (f(), o(
|
|
90
|
+
return (e, t) => (f(), o(r, {
|
|
91
91
|
id: e.id,
|
|
92
92
|
class: "bb-tag",
|
|
93
93
|
compact: e.compact,
|
|
@@ -95,21 +95,21 @@ var g = /*@__PURE__*/ c({
|
|
|
95
95
|
direction: e.direction,
|
|
96
96
|
errors: e.errors,
|
|
97
97
|
"has-errors": e.hasErrors,
|
|
98
|
-
"has-value":
|
|
98
|
+
"has-value": S.value,
|
|
99
99
|
"has-warning": e.hasWarning,
|
|
100
100
|
"hide-label": e.hideLabel,
|
|
101
101
|
hint: e.hint,
|
|
102
102
|
label: e.label,
|
|
103
|
-
"label-mode":
|
|
103
|
+
"label-mode": C.value,
|
|
104
104
|
"label-position": e.labelPosition,
|
|
105
105
|
"model-value": e.modelValue,
|
|
106
106
|
name: e.name,
|
|
107
107
|
reverse: e.reverse,
|
|
108
|
-
"show-hint":
|
|
108
|
+
"show-hint": x.value,
|
|
109
109
|
warnings: e.warnings
|
|
110
110
|
}, {
|
|
111
111
|
label: h((t) => [m(e.$slots, "label", d(l(t)))]),
|
|
112
|
-
input: h(({ id: t, hasErrors: n, hasWarning:
|
|
112
|
+
input: h(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: a }) => [s(i, u({
|
|
113
113
|
id: t,
|
|
114
114
|
"append:icon": _["append:icon"],
|
|
115
115
|
"aria-describedby": a,
|
|
@@ -122,7 +122,7 @@ var g = /*@__PURE__*/ c({
|
|
|
122
122
|
disabled: e.disabled,
|
|
123
123
|
divider: e.divider,
|
|
124
124
|
"has-errors": n,
|
|
125
|
-
"has-warning":
|
|
125
|
+
"has-warning": r,
|
|
126
126
|
loading: e.loading,
|
|
127
127
|
max: e.max,
|
|
128
128
|
"model-value": e.modelValue,
|
|
@@ -131,7 +131,7 @@ var g = /*@__PURE__*/ c({
|
|
|
131
131
|
"prepend:icon": _["prepend:icon"],
|
|
132
132
|
readonly: e.readonly,
|
|
133
133
|
required: e.required
|
|
134
|
-
},
|
|
134
|
+
}, w), {
|
|
135
135
|
"prepend-outer": h((t) => [m(e.$slots, "prepend-outer", d(l(t)))]),
|
|
136
136
|
prepend: h((t) => [m(e.$slots, "prepend", d(l(t)))]),
|
|
137
137
|
prefix: h((t) => [m(e.$slots, "prefix", d(l(t)))]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BbTextInputProps, BbTextInputEvents, BbTextInputSlots } from './types';
|
|
2
|
-
export type { BbTextInputProps, BbTextInputEvents, BbTextInputSlots };
|
|
3
2
|
type __VLS_Slots = BbTextInputSlots;
|
|
3
|
+
export type { BbTextInputProps, BbTextInputEvents, BbTextInputSlots };
|
|
4
4
|
declare const __VLS_base: import('vue').DefineComponent<BbTextInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
input: (event: Event) => any;
|
|
6
6
|
click: (event: MouseEvent) => any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { useMobile as t } from "../../composables/useMobile.js";
|
|
3
|
+
import n from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
|
|
4
|
+
import { isNotEmpty as r } from "../../utilities/functions/isNotEmpty.js";
|
|
5
|
+
import i from "../BbBaseTextInput/BbBaseTextInput.vue.js";
|
|
6
6
|
import { computed as a, createBlock as o, createSlots 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, unref as g, withCtx as _ } from "vue";
|
|
7
7
|
//#region src/components/BbTextInput/BbTextInput.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var v = /*@__PURE__*/ l({
|
|
@@ -56,14 +56,14 @@ var v = /*@__PURE__*/ l({
|
|
|
56
56
|
"update:modelValue"
|
|
57
57
|
],
|
|
58
58
|
setup(l, { emit: v }) {
|
|
59
|
-
let y = l, b = v, x = m(!1),
|
|
59
|
+
let y = l, b = v, x = e(), S = m(!1), C = a(() => y.persistentHint || S.value), { isMobile: w } = t(), T = a(() => !!y.clearable && r(y.modelValue)), E = a(() => r(y.modelValue)), D = a(() => y.labelMode ?? x.defaultInputLabelMode), O = {
|
|
60
60
|
onBlur: (e) => {
|
|
61
|
-
|
|
61
|
+
S.value = !1, b("blur", e);
|
|
62
62
|
},
|
|
63
63
|
onChange: (e) => b("change", e),
|
|
64
64
|
onClick: (e) => b("click", e),
|
|
65
65
|
onFocus: (e) => {
|
|
66
|
-
|
|
66
|
+
S.value = !0, b("focus", e);
|
|
67
67
|
},
|
|
68
68
|
onInput: (e) => b("input", e),
|
|
69
69
|
onKeydown: (e) => b("keydown", e),
|
|
@@ -75,34 +75,34 @@ var v = /*@__PURE__*/ l({
|
|
|
75
75
|
onCompositionend: (e) => b("compositionend", e),
|
|
76
76
|
"onUpdate:modelValue": (e) => b("update:modelValue", e)
|
|
77
77
|
};
|
|
78
|
-
return (e,
|
|
78
|
+
return (e, t) => (p(), o(n, {
|
|
79
79
|
id: e.id,
|
|
80
80
|
class: "bb-text-input",
|
|
81
|
-
clearable:
|
|
81
|
+
clearable: T.value,
|
|
82
82
|
compact: e.compact,
|
|
83
83
|
description: e.description,
|
|
84
84
|
direction: e.direction,
|
|
85
85
|
disabled: e.disabled,
|
|
86
86
|
errors: e.errors,
|
|
87
87
|
"has-errors": e.hasErrors,
|
|
88
|
-
"has-value":
|
|
88
|
+
"has-value": E.value,
|
|
89
89
|
"has-warning": e.hasWarning,
|
|
90
90
|
"hide-label": e.hideLabel,
|
|
91
91
|
hint: e.hint,
|
|
92
92
|
label: e.label,
|
|
93
|
-
"label-mode":
|
|
93
|
+
"label-mode": D.value,
|
|
94
94
|
"label-position": e.labelPosition,
|
|
95
95
|
loading: e.loading,
|
|
96
|
-
mobile: g(
|
|
96
|
+
mobile: g(w),
|
|
97
97
|
"model-value": e.modelValue,
|
|
98
98
|
name: e.name,
|
|
99
99
|
readonly: e.readonly,
|
|
100
100
|
reverse: e.reverse,
|
|
101
|
-
"show-hint":
|
|
101
|
+
"show-hint": C.value,
|
|
102
102
|
warnings: e.warnings
|
|
103
103
|
}, {
|
|
104
104
|
label: _((t) => [h(e.$slots, "label", f(u(t)))]),
|
|
105
|
-
input: _(({ id: t, hasErrors: n, hasWarning:
|
|
105
|
+
input: _(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: a }) => [c(i, d({
|
|
106
106
|
id: t,
|
|
107
107
|
"append:icon": y["append:icon"],
|
|
108
108
|
"aria-describedby": a,
|
|
@@ -113,9 +113,9 @@ var v = /*@__PURE__*/ l({
|
|
|
113
113
|
disabled: e.disabled,
|
|
114
114
|
"emit-masked": e.emitMasked,
|
|
115
115
|
"has-errors": n,
|
|
116
|
-
"has-warning":
|
|
116
|
+
"has-warning": r,
|
|
117
117
|
"input-mode": e.inputMode,
|
|
118
|
-
"label-mode":
|
|
118
|
+
"label-mode": D.value,
|
|
119
119
|
loading: e.loading,
|
|
120
120
|
mask: e.mask,
|
|
121
121
|
"model-value": e.modelValue,
|
|
@@ -125,7 +125,7 @@ var v = /*@__PURE__*/ l({
|
|
|
125
125
|
readonly: e.readonly,
|
|
126
126
|
required: e.required,
|
|
127
127
|
type: e.type
|
|
128
|
-
},
|
|
128
|
+
}, O), s({
|
|
129
129
|
"append-outer": _(() => [h(e.$slots, "append-outer")]),
|
|
130
130
|
append: _(() => [h(e.$slots, "append")]),
|
|
131
131
|
prepend: _(() => [h(e.$slots, "prepend")]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BbTextareaProps, BbTextareaEvents, BbTextareaSlots } from './types';
|
|
2
|
-
export type { BbTextareaProps, BbTextareaEvents, BbTextareaSlots };
|
|
3
2
|
type __VLS_Slots = BbTextareaSlots;
|
|
3
|
+
export type { BbTextareaProps, BbTextareaEvents, BbTextareaSlots };
|
|
4
4
|
declare const __VLS_base: import('vue').DefineComponent<BbTextareaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
input: (event: Event) => any;
|
|
6
6
|
click: (event: MouseEvent) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import t from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
|
|
3
|
+
import { isNotEmpty as n } from "../../utilities/functions/isNotEmpty.js";
|
|
4
|
+
import r from "../BbBaseTextarea/BbBaseTextarea.vue.js";
|
|
5
5
|
import { computed as i, createBlock as a, createVNode as o, defineComponent as s, guardReactiveProps as c, mergeProps as l, normalizeProps as u, openBlock as d, ref as f, renderSlot as p, withCtx as m } from "vue";
|
|
6
6
|
//#region src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var h = /*@__PURE__*/ s({
|
|
@@ -53,14 +53,14 @@ var h = /*@__PURE__*/ s({
|
|
|
53
53
|
"update:modelValue"
|
|
54
54
|
],
|
|
55
55
|
setup(s, { emit: h }) {
|
|
56
|
-
let g = s, _ = h, v = f(!1),
|
|
56
|
+
let g = s, _ = h, v = e(), y = f(!1), b = i(() => g.persistentHint || y.value), x = i(() => !!g.clearable && n(g.modelValue)), S = i(() => n(g.modelValue)), C = i(() => g.labelMode ?? v.defaultInputLabelMode), w = {
|
|
57
57
|
onBlur: (e) => {
|
|
58
|
-
|
|
58
|
+
y.value = !1, _("blur", e);
|
|
59
59
|
},
|
|
60
60
|
onChange: (e) => _("change", e),
|
|
61
61
|
onClick: (e) => _("click", e),
|
|
62
62
|
onFocus: (e) => {
|
|
63
|
-
|
|
63
|
+
y.value = !0, _("focus", e);
|
|
64
64
|
},
|
|
65
65
|
onInput: (e) => _("input", e),
|
|
66
66
|
onKeydown: (e) => _("keydown", e),
|
|
@@ -72,59 +72,59 @@ var h = /*@__PURE__*/ s({
|
|
|
72
72
|
onCompositionend: (e) => _("compositionend", e),
|
|
73
73
|
"onUpdate:modelValue": (e) => _("update:modelValue", e)
|
|
74
74
|
};
|
|
75
|
-
return (
|
|
76
|
-
id:
|
|
75
|
+
return (e, n) => (d(), a(t, {
|
|
76
|
+
id: e.id,
|
|
77
77
|
class: "bb-textarea",
|
|
78
|
-
clearable:
|
|
79
|
-
compact:
|
|
80
|
-
description:
|
|
81
|
-
direction:
|
|
82
|
-
disabled:
|
|
83
|
-
errors:
|
|
84
|
-
"has-errors":
|
|
85
|
-
"has-value":
|
|
86
|
-
"has-warning":
|
|
87
|
-
"hide-label":
|
|
88
|
-
hint:
|
|
89
|
-
label:
|
|
90
|
-
"label-mode":
|
|
91
|
-
"label-position":
|
|
92
|
-
loading:
|
|
93
|
-
"model-value":
|
|
94
|
-
name:
|
|
95
|
-
readonly:
|
|
96
|
-
reverse:
|
|
97
|
-
"show-hint":
|
|
98
|
-
warnings:
|
|
78
|
+
clearable: x.value,
|
|
79
|
+
compact: e.compact,
|
|
80
|
+
description: e.description,
|
|
81
|
+
direction: e.direction,
|
|
82
|
+
disabled: e.disabled,
|
|
83
|
+
errors: e.errors,
|
|
84
|
+
"has-errors": e.hasErrors,
|
|
85
|
+
"has-value": S.value,
|
|
86
|
+
"has-warning": e.hasWarning,
|
|
87
|
+
"hide-label": e.hideLabel,
|
|
88
|
+
hint: e.hint,
|
|
89
|
+
label: e.label,
|
|
90
|
+
"label-mode": C.value,
|
|
91
|
+
"label-position": e.labelPosition,
|
|
92
|
+
loading: e.loading,
|
|
93
|
+
"model-value": e.modelValue,
|
|
94
|
+
name: e.name,
|
|
95
|
+
readonly: e.readonly,
|
|
96
|
+
reverse: e.reverse,
|
|
97
|
+
"show-hint": b.value,
|
|
98
|
+
warnings: e.warnings
|
|
99
99
|
}, {
|
|
100
|
-
label: m((
|
|
101
|
-
input: m(({ id:
|
|
102
|
-
id:
|
|
100
|
+
label: m((t) => [p(e.$slots, "label", u(c(t)))]),
|
|
101
|
+
input: m(({ id: t, hasErrors: n, hasWarning: i, ariaDescribedby: a }) => [o(r, l({
|
|
102
|
+
id: t,
|
|
103
103
|
"append:icon": g["append:icon"],
|
|
104
104
|
"aria-describedby": a,
|
|
105
|
-
"auto-grow":
|
|
106
|
-
autocomplete:
|
|
107
|
-
autofocus:
|
|
108
|
-
clearable:
|
|
109
|
-
compact:
|
|
110
|
-
disabled:
|
|
111
|
-
"has-errors":
|
|
105
|
+
"auto-grow": e.autoGrow,
|
|
106
|
+
autocomplete: e.autocomplete,
|
|
107
|
+
autofocus: e.autofocus,
|
|
108
|
+
clearable: e.clearable,
|
|
109
|
+
compact: e.compact,
|
|
110
|
+
disabled: e.disabled,
|
|
111
|
+
"has-errors": n,
|
|
112
112
|
"has-warning": i,
|
|
113
|
-
loading:
|
|
114
|
-
"model-value":
|
|
115
|
-
name:
|
|
116
|
-
placeholder:
|
|
113
|
+
loading: e.loading,
|
|
114
|
+
"model-value": e.modelValue,
|
|
115
|
+
name: e.name,
|
|
116
|
+
placeholder: e.placeholder,
|
|
117
117
|
"prepend:icon": g["prepend:icon"],
|
|
118
|
-
readonly:
|
|
119
|
-
required:
|
|
120
|
-
rows:
|
|
121
|
-
},
|
|
122
|
-
"append-outer": m(() => [p(
|
|
123
|
-
append: m(() => [p(
|
|
124
|
-
prepend: m(() => [p(
|
|
125
|
-
"prepend-outer": m(() => [p(
|
|
126
|
-
prefix: m((
|
|
127
|
-
suffix: m((
|
|
118
|
+
readonly: e.readonly,
|
|
119
|
+
required: e.required,
|
|
120
|
+
rows: e.rows
|
|
121
|
+
}, w), {
|
|
122
|
+
"append-outer": m(() => [p(e.$slots, "append-outer")]),
|
|
123
|
+
append: m(() => [p(e.$slots, "append")]),
|
|
124
|
+
prepend: m(() => [p(e.$slots, "prepend")]),
|
|
125
|
+
"prepend-outer": m(() => [p(e.$slots, "prepend-outer")]),
|
|
126
|
+
prefix: m((t) => [p(e.$slots, "prefix", u(c(t)))]),
|
|
127
|
+
suffix: m((t) => [p(e.$slots, "suffix", u(c(t)))]),
|
|
128
128
|
_: 2
|
|
129
129
|
}, 1040, [
|
|
130
130
|
"id",
|
|
@@ -19,9 +19,9 @@ declare const __VLS_base: import('vue').DefineComponent<BbTimePickerProps, {}, {
|
|
|
19
19
|
value: string;
|
|
20
20
|
}) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
+
adaptive: boolean;
|
|
22
23
|
offset: number;
|
|
23
24
|
transitionDuration: number;
|
|
24
|
-
adaptive: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|