bitboss-ui 3.0.0-beta.47 → 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 +167 -14
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +65 -65
- package/dist/ai/BbButton.md +28 -8
- package/dist/ai/BbCheckbox.md +0 -2
- package/dist/ai/BbCheckboxGroup.md +13 -20
- package/dist/ai/BbCollapsible.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +8 -0
- package/dist/ai/BbConfirmPortal.md +1 -1
- 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 +19 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +88 -21
- package/dist/ai/BbPopover.md +47 -40
- package/dist/ai/BbPopoverPortal.md +1 -1
- 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 +107 -106
- package/dist/ai/BbTabsList.md +2 -2
- package/dist/ai/BbTabsPanels.md +1 -1
- package/dist/ai/BbTabsRoot.md +3 -3
- package/dist/ai/BbTooltip.md +29 -13
- package/dist/ai/BbTree.md +14 -11
- package/dist/ai/CommonPopover.md +1 -1
- package/dist/ai/changelog.json +297 -6
- package/dist/ai/components.json +50 -45
- 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 +45 -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 +143 -28
- package/dist/ai/guides/migration/v3-beta-css-classes.md +29 -27
- 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 +4 -4
- 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/BbAccordion.json +1 -1
- 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 +2 -1
- package/dist/ai/manifest/components/BbButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCollapsible.json +1 -1
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.json +5 -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/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +2 -2
- 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 +2 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +2 -2
- 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/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbTabs.json +8 -7
- 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 +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.json +2 -2
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +5 -0
- package/dist/ai/manifest/types.advanced.json +10 -9
- package/dist/ai/manifest/types.api.json +8 -5
- package/dist/ai/manifest/types.wrapper.json +1 -0
- 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 +14 -10
- package/dist/ai/source/BbBadgeButton.md +17 -12
- 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 +84 -38
- 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/BbCollapsible.md +2 -1
- package/dist/ai/source/BbColorInput.md +10 -9
- package/dist/ai/source/BbColorPalette.md +2 -1
- package/dist/ai/source/BbConfirm.md +18 -1
- package/dist/ai/source/BbConfirmPortal.md +20 -6
- 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 +231 -158
- package/dist/ai/source/BbDropdownButton.md +19 -12
- package/dist/ai/source/BbDropdownGroup.md +127 -93
- package/dist/ai/source/BbForm.md +25 -1
- package/dist/ai/source/BbHoverCard.md +30 -3
- package/dist/ai/source/BbHoverCardPortal.md +18 -3
- 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 +185 -12
- package/dist/ai/source/BbPopoverPortal.md +30 -3
- 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 +30 -24
- package/dist/ai/source/BbTabsList.md +29 -23
- package/dist/ai/source/BbTabsPanels.md +29 -23
- package/dist/ai/source/BbTabsRoot.md +28 -22
- 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 +88 -11
- 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 +8 -1
- 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 +88 -70
- package/dist/components/BbButton/toggleRoving.d.ts +6 -0
- package/dist/components/BbButton/toggleRoving.js +45 -0
- package/dist/components/BbButton/types.d.ts +12 -4
- package/dist/components/BbButton/types.js +5 -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/BbCollapsible/types.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/BbColorPalette/types.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -5
- package/dist/components/BbConfirm/types.d.ts +15 -0
- 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 +120 -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/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +145 -142
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/types.d.ts +14 -1
- 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 -162
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -2
- package/dist/components/BbPopover/types.d.ts +26 -1
- 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 +28 -22
- 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 +99 -86
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
- package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
- package/dist/components/BbTooltip/types.d.ts +10 -3
- 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/CommonPopover/types.d.ts +2 -1
- 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/directives/directivePortal.d.ts +13 -7
- package/dist/directives/directivePortal.js +1 -4
- 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 +4 -4
- package/dist/index.js +4 -4
- package/dist/llms-full.txt +1914 -1714
- package/dist/llms-medium.txt +76 -46
- package/dist/llms.txt +7 -7
- package/dist/locale-blueprint.json +16 -13
- package/dist/styles.css +2 -2
- package/dist/types/passthrough.d.ts +1 -1
- package/dist/types/ptComponentMap.d.ts +2 -2
- 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 +17 -4
- package/scripts/lib/eslint-plugin.d.ts +9 -1
- package/scripts/lib/eslint-plugin.mjs +256 -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/portal-names.mjs +458 -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/unimported-components.mjs +5 -2
- package/scripts/lib/validate-bb-markup.mjs +123 -56
- package/dist/i18n/index.js +0 -27
|
@@ -8,10 +8,10 @@ import { useMobile as te } from "../../composables/useMobile.js";
|
|
|
8
8
|
import s from "../CommonField/CommonField.vue.js";
|
|
9
9
|
import { useFormBinding as ne } from "../../composables/useFormBinding.js";
|
|
10
10
|
import re from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
11
|
-
import { vSsrValue as
|
|
12
|
-
import { useCharacterCounter as
|
|
13
|
-
import { BB_TEXT_INPUT_PT as
|
|
14
|
-
import { computed as
|
|
11
|
+
import { vSsrValue as c } from "../../utilities/misc/ssrValue.js";
|
|
12
|
+
import { useCharacterCounter as l } from "../../composables/useCharacterCounter.js";
|
|
13
|
+
import { BB_TEXT_INPUT_PT as u } from "./types.js";
|
|
14
|
+
import { computed as d, createBlock as ie, createElementVNode as ae, createSlots as f, createVNode as oe, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, onBeforeUnmount as se, onMounted as _, openBlock as v, ref as y, renderSlot as b, unref as x, useAttrs as S, watch as C, withCtx as w, withDirectives as T } from "vue";
|
|
15
15
|
import { Mask as ce, MaskInput as le } from "maska";
|
|
16
16
|
//#region src/components/BbTextInput/BbTextInput.vue?vue&type=script&setup=true&lang.ts
|
|
17
17
|
var ue = [
|
|
@@ -31,7 +31,7 @@ var ue = [
|
|
|
31
31
|
"required",
|
|
32
32
|
"aria-required",
|
|
33
33
|
"type"
|
|
34
|
-
], E = /*@__PURE__*/
|
|
34
|
+
], E = /*@__PURE__*/ p({
|
|
35
35
|
inheritAttrs: !1,
|
|
36
36
|
__name: "BbTextInput",
|
|
37
37
|
props: {
|
|
@@ -209,30 +209,30 @@ var ue = [
|
|
|
209
209
|
"paste",
|
|
210
210
|
"update:modelValue"
|
|
211
211
|
],
|
|
212
|
-
setup(
|
|
213
|
-
let D =
|
|
212
|
+
setup(p, { emit: E }) {
|
|
213
|
+
let D = p, { props: O, emit: k, showAsterisk: A, errors: j, required: M, ariaRequired: N, readonly: P } = ne(D, E, {
|
|
214
214
|
componentName: "BbTextInput",
|
|
215
215
|
identifierFallback: () => D.label,
|
|
216
216
|
leaveOn: "blur"
|
|
217
217
|
});
|
|
218
218
|
process.env.NODE_ENV !== "production" && ee("BbTextInput", o("BbTextInput"));
|
|
219
|
-
let
|
|
219
|
+
let F = i(), I = () => (D.nullValue ?? F.formControls?.textInputNullValue) === "string" ? "" : null, L = (e, t) => (e || null) === (t || null), R = y(!1), z = d(() => O.persistentHint || R.value), { isMobile: B } = te(), V = d(() => e(O.modelValue)), H = d(() => !!O.clearable && V.value), de = d(() => O.labelMode ?? F.defaultInputLabelMode), U = S(), W = l({
|
|
220
220
|
enabled: () => !!O.counter,
|
|
221
221
|
value: () => O.modelValue,
|
|
222
222
|
maxlength: () => U.maxlength ?? U.maxLength
|
|
223
223
|
}), G = r({
|
|
224
224
|
component: "BbTextInput",
|
|
225
|
-
attrs:
|
|
225
|
+
attrs: S(),
|
|
226
226
|
controlAttrs: t,
|
|
227
227
|
props: O,
|
|
228
|
-
parts:
|
|
229
|
-
states:
|
|
228
|
+
parts: u.parts,
|
|
229
|
+
states: u.states,
|
|
230
230
|
active: {
|
|
231
|
-
...n(O, () =>
|
|
231
|
+
...n(O, () => V.value),
|
|
232
232
|
nearLimit: () => W.value?.state === "near",
|
|
233
233
|
atLimit: () => W.value?.state === "limit"
|
|
234
234
|
}
|
|
235
|
-
}), K =
|
|
235
|
+
}), K = y(null), q = y(null), fe = d(() => a(O.mask ?? null)), J = () => !!O.mask, Y = () => {
|
|
236
236
|
q.value?.destroy(), q.value = null;
|
|
237
237
|
}, X = (e) => {
|
|
238
238
|
K.value && (K.value.value = e ?? "", J() && q.value?.updateValue(K.value));
|
|
@@ -244,104 +244,104 @@ var ue = [
|
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
246
|
Y(), q.value = new le(K.value, e), X(O.modelValue);
|
|
247
|
-
}, Q = null,
|
|
247
|
+
}, Q = null, pe = (e) => {
|
|
248
248
|
if (!J()) return;
|
|
249
|
-
let t = e.detail.unmasked ? O.emitMasked ? e.detail.masked : e.detail.unmasked :
|
|
250
|
-
|
|
251
|
-
},
|
|
249
|
+
let t = e.detail.unmasked ? O.emitMasked ? e.detail.masked : e.detail.unmasked : I();
|
|
250
|
+
L(t, O.modelValue) || (Q = { value: t }, k("update:modelValue", t));
|
|
251
|
+
}, me = () => {
|
|
252
252
|
let e = O.modelValue ?? "";
|
|
253
253
|
if (!e || !O.mask) return e;
|
|
254
254
|
let { onMaska: t, preProcess: n, postProcess: r, ...i } = O.mask, a = new ce(i).masked(n ? n(e) : e);
|
|
255
255
|
return r ? r(a) : a;
|
|
256
256
|
};
|
|
257
|
-
|
|
257
|
+
_(() => {
|
|
258
258
|
Z();
|
|
259
|
-
}),
|
|
259
|
+
}), se(() => {
|
|
260
260
|
Y();
|
|
261
|
-
}),
|
|
261
|
+
}), C(() => O.modelValue, (e) => {
|
|
262
262
|
let t = Q;
|
|
263
263
|
Q = null, !(t && t.value === e) && X(e);
|
|
264
|
-
}),
|
|
264
|
+
}), C(() => fe.value, () => {
|
|
265
265
|
Z();
|
|
266
|
-
}),
|
|
266
|
+
}), C(() => O.emitMasked, () => {
|
|
267
267
|
!K.value || !J() || X(O.modelValue);
|
|
268
268
|
});
|
|
269
269
|
let $ = {
|
|
270
270
|
onBlur: (e) => {
|
|
271
|
-
|
|
271
|
+
R.value = !1, k("blur", e);
|
|
272
272
|
},
|
|
273
273
|
onChange: (e) => k("change", e),
|
|
274
274
|
onClick: (e) => k("click", e),
|
|
275
275
|
onCompositionend: (e) => k("compositionend", e),
|
|
276
276
|
onCompositionstart: (e) => k("compositionstart", e),
|
|
277
277
|
onFocus: (e) => {
|
|
278
|
-
|
|
278
|
+
R.value = !0, k("focus", e);
|
|
279
279
|
},
|
|
280
280
|
onKeydown: (e) => k("keydown", e),
|
|
281
281
|
onKeyup: (e) => k("keyup", e),
|
|
282
282
|
onInput: (e) => {
|
|
283
283
|
if (e.stopPropagation(), !J() && e.target instanceof HTMLInputElement) {
|
|
284
284
|
let t = e.target.value;
|
|
285
|
-
k("update:modelValue", t === "" ?
|
|
285
|
+
k("update:modelValue", t === "" ? I() : t);
|
|
286
286
|
}
|
|
287
287
|
k("input", e);
|
|
288
288
|
},
|
|
289
289
|
onMousedown: (e) => k("mousedown", e),
|
|
290
290
|
onMouseup: (e) => k("mouseup", e),
|
|
291
291
|
onPaste: (e) => k("paste", e)
|
|
292
|
-
},
|
|
293
|
-
return (e, t) => (
|
|
292
|
+
}, he = d(() => G.input ? h($, G.input) : $);
|
|
293
|
+
return (e, t) => (v(), ie(s, h({
|
|
294
294
|
id: e.id,
|
|
295
295
|
class: "bb-text-input",
|
|
296
|
-
clearable:
|
|
296
|
+
clearable: H.value,
|
|
297
297
|
compact: e.compact,
|
|
298
|
-
counter:
|
|
298
|
+
counter: x(W),
|
|
299
299
|
description: e.description,
|
|
300
300
|
disabled: e.disabled,
|
|
301
|
-
errors:
|
|
301
|
+
errors: x(j),
|
|
302
302
|
"has-errors": e.hasErrors,
|
|
303
|
-
"has-value":
|
|
303
|
+
"has-value": V.value,
|
|
304
304
|
"has-warnings": e.hasWarnings,
|
|
305
305
|
"hide-label": e.hideLabel,
|
|
306
306
|
hint: e.hint,
|
|
307
307
|
"input-align": e.inputAlign,
|
|
308
308
|
label: e.label,
|
|
309
309
|
"label-align": e.labelAlign,
|
|
310
|
-
"label-mode":
|
|
310
|
+
"label-mode": de.value,
|
|
311
311
|
"label-position": e.labelPosition,
|
|
312
312
|
layout: e.layout,
|
|
313
313
|
loading: e.loading,
|
|
314
|
-
mobile:
|
|
314
|
+
mobile: x(B),
|
|
315
315
|
name: e.name,
|
|
316
|
-
passthrough:
|
|
317
|
-
readonly:
|
|
316
|
+
passthrough: x(G),
|
|
317
|
+
readonly: x(P),
|
|
318
318
|
reverse: e.reverse,
|
|
319
|
-
"show-asterisk":
|
|
320
|
-
"show-hint":
|
|
319
|
+
"show-asterisk": x(A),
|
|
320
|
+
"show-hint": z.value,
|
|
321
321
|
warnings: e.warnings
|
|
322
|
-
},
|
|
323
|
-
label:
|
|
324
|
-
input:
|
|
322
|
+
}, x(G).forwardAttrs), f({
|
|
323
|
+
label: w((t) => [b(e.$slots, "label", g(m(t)))]),
|
|
324
|
+
input: w(({ id: n, hasErrors: r, hasWarnings: i, ariaDescribedby: a, ariaLabelledby: o }) => [oe(re, {
|
|
325
325
|
"append:icon": D["append:icon"],
|
|
326
326
|
clearable: e.clearable,
|
|
327
327
|
compact: e.compact,
|
|
328
328
|
disabled: e.disabled,
|
|
329
329
|
"has-errors": r,
|
|
330
|
-
"has-value":
|
|
330
|
+
"has-value": V.value,
|
|
331
331
|
"has-warnings": i,
|
|
332
332
|
loading: e.loading,
|
|
333
|
-
passthrough:
|
|
333
|
+
passthrough: x(G),
|
|
334
334
|
"prepend:icon": D["prepend:icon"],
|
|
335
|
-
readonly:
|
|
335
|
+
readonly: x(P),
|
|
336
336
|
"reserve-append-space": e.clearable,
|
|
337
337
|
variant: e.variant,
|
|
338
|
-
"onClick:clear": t[0] ||= (e) =>
|
|
338
|
+
"onClick:clear": t[0] ||= (e) => x(k)("update:modelValue", I())
|
|
339
339
|
}, f({
|
|
340
|
-
"prepend:outer":
|
|
341
|
-
prepend:
|
|
342
|
-
append:
|
|
343
|
-
"append:outer":
|
|
344
|
-
default:
|
|
340
|
+
"prepend:outer": w(() => [b(e.$slots, "prepend:outer")]),
|
|
341
|
+
prepend: w(() => [b(e.$slots, "prepend")]),
|
|
342
|
+
append: w(() => [b(e.$slots, "append")]),
|
|
343
|
+
"append:outer": w(() => [b(e.$slots, "append:outer")]),
|
|
344
|
+
default: w(() => [T(ae("input", h({
|
|
345
345
|
id: n,
|
|
346
346
|
ref_key: "input",
|
|
347
347
|
ref: K,
|
|
@@ -349,7 +349,7 @@ var ue = [
|
|
|
349
349
|
"aria-disabled": e.disabled || void 0,
|
|
350
350
|
"aria-invalid": r || void 0,
|
|
351
351
|
"aria-labelledby": o,
|
|
352
|
-
"aria-readonly":
|
|
352
|
+
"aria-readonly": x(P) || void 0,
|
|
353
353
|
autocomplete: e.autocomplete,
|
|
354
354
|
autofocus: e.autofocus,
|
|
355
355
|
class: "bb-text-input__input",
|
|
@@ -357,21 +357,21 @@ var ue = [
|
|
|
357
357
|
inputmode: e.inputMode,
|
|
358
358
|
name: e.name,
|
|
359
359
|
placeholder: e.placeholder,
|
|
360
|
-
readonly:
|
|
361
|
-
required:
|
|
362
|
-
"aria-required":
|
|
360
|
+
readonly: x(P),
|
|
361
|
+
required: x(M),
|
|
362
|
+
"aria-required": x(N),
|
|
363
363
|
size: "1",
|
|
364
364
|
type: e.type,
|
|
365
|
-
onMaska:
|
|
366
|
-
},
|
|
365
|
+
onMaska: pe
|
|
366
|
+
}, h(x(G).controlAttrs, he.value)), null, 16, ue), [[x(c), me]])]),
|
|
367
367
|
_: 2
|
|
368
368
|
}, [e.$slots.prefix ? {
|
|
369
369
|
name: "prefix",
|
|
370
|
-
fn:
|
|
370
|
+
fn: w(() => [b(e.$slots, "prefix")]),
|
|
371
371
|
key: "0"
|
|
372
372
|
} : void 0, e.$slots.suffix ? {
|
|
373
373
|
name: "suffix",
|
|
374
|
-
fn:
|
|
374
|
+
fn: w(() => [b(e.$slots, "suffix")]),
|
|
375
375
|
key: "1"
|
|
376
376
|
} : void 0]), 1032, [
|
|
377
377
|
"append:icon",
|
|
@@ -391,7 +391,7 @@ var ue = [
|
|
|
391
391
|
_: 2
|
|
392
392
|
}, [e.$slots.description ? {
|
|
393
393
|
name: "description",
|
|
394
|
-
fn:
|
|
394
|
+
fn: w((t) => [b(e.$slots, "description", g(m(t)))]),
|
|
395
395
|
key: "0"
|
|
396
396
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.counter.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(".")));
|
|
397
397
|
}
|
|
@@ -5,14 +5,14 @@ import { removedPropsFor as a } from "../../deprecation/removedProps.js";
|
|
|
5
5
|
import { warnRemovedAttrs as o } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
6
6
|
import s from "../BbSmoothHeight/BbSmoothHeight.vue.js";
|
|
7
7
|
import c from "../CommonField/CommonField.vue.js";
|
|
8
|
-
import { useFormBinding as
|
|
9
|
-
import
|
|
10
|
-
import { useCharacterCounter as
|
|
11
|
-
import { BB_TEXTAREA_PT as
|
|
12
|
-
import { computed as
|
|
13
|
-
import { useResizeObserver as
|
|
8
|
+
import { useFormBinding as l } from "../../composables/useFormBinding.js";
|
|
9
|
+
import u from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
10
|
+
import { useCharacterCounter as ee } from "../../composables/useCharacterCounter.js";
|
|
11
|
+
import { BB_TEXTAREA_PT as d } from "./types.js";
|
|
12
|
+
import { computed as f, createBlock as p, createElementVNode as m, createSlots as h, createVNode as g, defineComponent as _, guardReactiveProps as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, onMounted as C, openBlock as w, ref as T, renderSlot as E, unref as D, useAttrs as O, watch as k, withCtx as A } from "vue";
|
|
13
|
+
import { useResizeObserver as j } from "@vueuse/core";
|
|
14
14
|
//#region src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
15
|
+
var M = [
|
|
16
16
|
"id",
|
|
17
17
|
"aria-describedby",
|
|
18
18
|
"aria-disabled",
|
|
@@ -29,7 +29,7 @@ var j = [
|
|
|
29
29
|
"aria-required",
|
|
30
30
|
"rows",
|
|
31
31
|
"value"
|
|
32
|
-
],
|
|
32
|
+
], N = /*@__PURE__*/ _({
|
|
33
33
|
inheritAttrs: !1,
|
|
34
34
|
__name: "BbTextarea",
|
|
35
35
|
props: {
|
|
@@ -205,46 +205,46 @@ var j = [
|
|
|
205
205
|
"compositionend",
|
|
206
206
|
"update:modelValue"
|
|
207
207
|
],
|
|
208
|
-
setup(
|
|
209
|
-
let
|
|
208
|
+
setup(_, { emit: N }) {
|
|
209
|
+
let P = _, { props: F, emit: I, showAsterisk: te, errors: ne, required: re, ariaRequired: L, readonly: R } = l(P, N, {
|
|
210
210
|
componentName: "BbTextarea",
|
|
211
|
-
identifierFallback: () =>
|
|
211
|
+
identifierFallback: () => P.label,
|
|
212
212
|
leaveOn: "blur"
|
|
213
213
|
});
|
|
214
214
|
process.env.NODE_ENV !== "production" && o("BbTextarea", a("BbTextarea"));
|
|
215
|
-
let z = i(), B = () => (
|
|
216
|
-
enabled: () => !!
|
|
217
|
-
value: () =>
|
|
215
|
+
let z = i(), B = () => (P.nullValue ?? z.formControls?.textareaNullValue) === "string" ? "" : null, V = T(!1), H = f(() => F.persistentHint || V.value), U = f(() => e(F.modelValue)), W = f(() => !!F.clearable && U.value), G = f(() => F.labelMode ?? z.defaultInputLabelMode), K = O(), q = ee({
|
|
216
|
+
enabled: () => !!F.counter,
|
|
217
|
+
value: () => F.modelValue,
|
|
218
218
|
maxlength: () => K.maxlength ?? K.maxLength
|
|
219
219
|
}), J = r({
|
|
220
220
|
component: "BbTextarea",
|
|
221
|
-
attrs:
|
|
221
|
+
attrs: O(),
|
|
222
222
|
controlAttrs: t,
|
|
223
|
-
props:
|
|
224
|
-
parts:
|
|
225
|
-
states:
|
|
223
|
+
props: F,
|
|
224
|
+
parts: d.parts,
|
|
225
|
+
states: d.states,
|
|
226
226
|
active: {
|
|
227
|
-
...n(
|
|
227
|
+
...n(F, () => U.value),
|
|
228
228
|
nearLimit: () => q.value?.state === "near",
|
|
229
229
|
atLimit: () => q.value?.state === "limit"
|
|
230
230
|
}
|
|
231
|
-
}), Y =
|
|
232
|
-
if (!
|
|
231
|
+
}), Y = T(null), X = f(() => F.modelValue ?? ""), ie = f(() => {
|
|
232
|
+
if (!F.autoGrow) return F.rows;
|
|
233
233
|
let e = String(X.value).split("\n").length;
|
|
234
|
-
return Math.max(Number(
|
|
234
|
+
return Math.max(Number(F.rows ?? 1), e);
|
|
235
235
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}),
|
|
239
|
-
|
|
240
|
-
}),
|
|
236
|
+
C(() => {
|
|
237
|
+
F.autoGrow && $();
|
|
238
|
+
}), k(() => F.modelValue, () => {
|
|
239
|
+
F.autoGrow && b($);
|
|
240
|
+
}), k(() => F.autoGrow, (e) => {
|
|
241
241
|
if (e) {
|
|
242
|
-
|
|
242
|
+
b($);
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
|
|
246
|
-
}),
|
|
247
|
-
if (
|
|
245
|
+
ce();
|
|
246
|
+
}), j(Y, () => {
|
|
247
|
+
if (F.autoGrow) {
|
|
248
248
|
if (Q && Y.value) {
|
|
249
249
|
let e = Y.value.getBoundingClientRect();
|
|
250
250
|
if (Math.abs(e.width - Q.width) < .5 && Math.abs(e.height - Q.height) < .5) return;
|
|
@@ -252,52 +252,52 @@ var j = [
|
|
|
252
252
|
$();
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
function
|
|
255
|
+
function ae(e) {
|
|
256
256
|
if (e.target instanceof HTMLTextAreaElement) {
|
|
257
257
|
let t = e.target.value, n = t === "" ? B() : t;
|
|
258
|
-
|
|
258
|
+
I("input", e), I("update:modelValue", n), F.autoGrow && $();
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && e.stopPropagation(), e.target instanceof HTMLTextAreaElement &&
|
|
261
|
+
function oe(e) {
|
|
262
|
+
e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && e.stopPropagation(), e.target instanceof HTMLTextAreaElement && I("keydown", e);
|
|
263
263
|
}
|
|
264
264
|
let Z = {
|
|
265
265
|
onBlur: (e) => {
|
|
266
|
-
V.value = !1,
|
|
266
|
+
V.value = !1, I("blur", e);
|
|
267
267
|
},
|
|
268
|
-
onChange: (e) =>
|
|
269
|
-
onClick: (e) =>
|
|
268
|
+
onChange: (e) => I("change", e),
|
|
269
|
+
onClick: (e) => I("click", e),
|
|
270
270
|
onFocus: (e) => {
|
|
271
|
-
V.value = !0,
|
|
271
|
+
V.value = !0, I("focus", e);
|
|
272
272
|
},
|
|
273
|
-
onKeyup: (e) =>
|
|
274
|
-
onMousedown: (e) =>
|
|
275
|
-
onMouseup: (e) =>
|
|
276
|
-
onPaste: (e) =>
|
|
277
|
-
onCompositionstart: (e) =>
|
|
278
|
-
onCompositionend: (e) =>
|
|
279
|
-
},
|
|
273
|
+
onKeyup: (e) => I("keyup", e),
|
|
274
|
+
onMousedown: (e) => I("mousedown", e),
|
|
275
|
+
onMouseup: (e) => I("mouseup", e),
|
|
276
|
+
onPaste: (e) => I("paste", e),
|
|
277
|
+
onCompositionstart: (e) => I("compositionstart", e),
|
|
278
|
+
onCompositionend: (e) => I("compositionend", e)
|
|
279
|
+
}, se = f(() => J.input ? y(Z, J.input) : Z), Q = null;
|
|
280
280
|
function $() {
|
|
281
281
|
if (!Y.value) return;
|
|
282
|
-
Y.value.style.height =
|
|
282
|
+
Y.value.style.height = F.rows ? "auto" : "0px", Y.value.style.height = `${Y.value.scrollHeight}px`;
|
|
283
283
|
let e = Y.value.getBoundingClientRect();
|
|
284
284
|
Q = {
|
|
285
285
|
width: e.width,
|
|
286
286
|
height: e.height
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function ce() {
|
|
290
290
|
Y.value && (Y.value.style.removeProperty("height"), Q = null);
|
|
291
291
|
}
|
|
292
|
-
return (e, t) => (
|
|
292
|
+
return (e, t) => (w(), p(c, y({
|
|
293
293
|
id: e.id,
|
|
294
294
|
class: "bb-textarea",
|
|
295
295
|
clearable: W.value,
|
|
296
296
|
compact: e.compact,
|
|
297
|
-
counter:
|
|
297
|
+
counter: D(q),
|
|
298
298
|
description: e.description,
|
|
299
299
|
disabled: e.disabled,
|
|
300
|
-
errors:
|
|
300
|
+
errors: D(ne),
|
|
301
301
|
"has-errors": e.hasErrors,
|
|
302
302
|
"has-value": U.value,
|
|
303
303
|
"has-warnings": e.hasWarnings,
|
|
@@ -311,17 +311,17 @@ var j = [
|
|
|
311
311
|
layout: e.layout,
|
|
312
312
|
loading: e.loading,
|
|
313
313
|
name: e.name,
|
|
314
|
-
passthrough:
|
|
315
|
-
readonly:
|
|
314
|
+
passthrough: D(J),
|
|
315
|
+
readonly: D(R),
|
|
316
316
|
reverse: e.reverse,
|
|
317
|
-
"show-asterisk":
|
|
317
|
+
"show-asterisk": D(te),
|
|
318
318
|
"show-hint": H.value,
|
|
319
319
|
warnings: e.warnings
|
|
320
|
-
},
|
|
321
|
-
label:
|
|
322
|
-
input:
|
|
323
|
-
"append:icon":
|
|
324
|
-
class:
|
|
320
|
+
}, D(J).forwardAttrs), h({
|
|
321
|
+
label: A((t) => [E(e.$slots, "label", S(v(t)))]),
|
|
322
|
+
input: A(({ id: n, hasErrors: r, hasWarnings: i, ariaDescribedby: a, ariaLabelledby: o }) => [g(u, {
|
|
323
|
+
"append:icon": P["append:icon"],
|
|
324
|
+
class: x(["bb-textarea__field", { "bb-textarea__field--auto-grow": e.autoGrow }]),
|
|
325
325
|
clearable: e.clearable,
|
|
326
326
|
compact: e.compact,
|
|
327
327
|
disabled: e.disabled,
|
|
@@ -329,22 +329,22 @@ var j = [
|
|
|
329
329
|
"has-value": U.value,
|
|
330
330
|
"has-warnings": i,
|
|
331
331
|
loading: e.loading,
|
|
332
|
-
passthrough:
|
|
333
|
-
"prepend:icon":
|
|
334
|
-
readonly:
|
|
332
|
+
passthrough: D(J),
|
|
333
|
+
"prepend:icon": P["prepend:icon"],
|
|
334
|
+
readonly: D(R),
|
|
335
335
|
"reserve-append-space": e.clearable,
|
|
336
336
|
variant: e.variant,
|
|
337
|
-
"onClick:clear": t[0] ||= (e) =>
|
|
338
|
-
},
|
|
339
|
-
"prepend:outer":
|
|
340
|
-
prepend:
|
|
341
|
-
append:
|
|
342
|
-
"append:outer":
|
|
343
|
-
default:
|
|
337
|
+
"onClick:clear": t[0] ||= (e) => D(I)("update:modelValue", B())
|
|
338
|
+
}, h({
|
|
339
|
+
"prepend:outer": A(() => [E(e.$slots, "prepend:outer")]),
|
|
340
|
+
prepend: A(() => [E(e.$slots, "prepend")]),
|
|
341
|
+
append: A(() => [E(e.$slots, "append")]),
|
|
342
|
+
"append:outer": A(() => [E(e.$slots, "append:outer")]),
|
|
343
|
+
default: A(() => [g(s, {
|
|
344
344
|
disabled: !e.autoGrow,
|
|
345
345
|
tag: "span"
|
|
346
346
|
}, {
|
|
347
|
-
default:
|
|
347
|
+
default: A(() => [m("textarea", y({
|
|
348
348
|
id: n,
|
|
349
349
|
ref_key: "textarea",
|
|
350
350
|
ref: Y,
|
|
@@ -352,31 +352,31 @@ var j = [
|
|
|
352
352
|
"aria-disabled": e.disabled || void 0,
|
|
353
353
|
"aria-invalid": r || void 0,
|
|
354
354
|
"aria-labelledby": o,
|
|
355
|
-
"aria-readonly":
|
|
355
|
+
"aria-readonly": D(R) || void 0,
|
|
356
356
|
autocomplete: e.autocomplete,
|
|
357
357
|
autofocus: e.autofocus,
|
|
358
358
|
class: "bb-textarea__input scrollbar-border",
|
|
359
359
|
disabled: e.disabled,
|
|
360
360
|
name: e.name,
|
|
361
361
|
placeholder: e.placeholder,
|
|
362
|
-
readonly:
|
|
363
|
-
required:
|
|
364
|
-
"aria-required":
|
|
365
|
-
rows:
|
|
362
|
+
readonly: D(R),
|
|
363
|
+
required: D(re),
|
|
364
|
+
"aria-required": D(L),
|
|
365
|
+
rows: ie.value,
|
|
366
366
|
value: X.value,
|
|
367
|
-
onInput:
|
|
368
|
-
onKeydown:
|
|
369
|
-
},
|
|
367
|
+
onInput: ae,
|
|
368
|
+
onKeydown: oe
|
|
369
|
+
}, y(D(J).controlAttrs, se.value)), null, 16, M)]),
|
|
370
370
|
_: 2
|
|
371
371
|
}, 1032, ["disabled"])]),
|
|
372
372
|
_: 2
|
|
373
373
|
}, [e.$slots.prefix ? {
|
|
374
374
|
name: "prefix",
|
|
375
|
-
fn:
|
|
375
|
+
fn: A(() => [E(e.$slots, "prefix")]),
|
|
376
376
|
key: "0"
|
|
377
377
|
} : void 0, e.$slots.suffix ? {
|
|
378
378
|
name: "suffix",
|
|
379
|
-
fn:
|
|
379
|
+
fn: A(() => [E(e.$slots, "suffix")]),
|
|
380
380
|
key: "1"
|
|
381
381
|
} : void 0]), 1032, [
|
|
382
382
|
"append:icon",
|
|
@@ -397,10 +397,10 @@ var j = [
|
|
|
397
397
|
_: 2
|
|
398
398
|
}, [e.$slots.description ? {
|
|
399
399
|
name: "description",
|
|
400
|
-
fn:
|
|
400
|
+
fn: A((t) => [E(e.$slots, "description", S(v(t)))]),
|
|
401
401
|
key: "0"
|
|
402
402
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.counter.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
//#endregion
|
|
406
|
-
export {
|
|
406
|
+
export { N as default };
|