bitboss-ui 3.0.0-beta.63 → 3.0.0-beta.64
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 +25 -20
- package/bin/bitboss-ui.mjs +73 -7
- package/dist/ai/BbAlert.md +10 -1
- package/dist/ai/BbBadge.md +35 -3
- package/dist/ai/BbBadgeButton.md +4 -2
- package/dist/ai/BbBaseButton.md +9 -3
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +113 -8
- package/dist/ai/BbCheckbox.md +1 -1
- package/dist/ai/BbCheckboxGroup.md +94 -6
- package/dist/ai/BbColorInput.md +4 -1
- package/dist/ai/BbColorPalette.md +2 -1
- package/dist/ai/BbConfirm.md +7 -3
- package/dist/ai/BbDatePicker.md +2 -1
- package/dist/ai/BbDatePickerInput.md +4 -1
- package/dist/ai/BbDialog.md +12 -11
- package/dist/ai/BbDropdown.md +189 -38
- package/dist/ai/BbDropdownButton.md +27 -7
- package/dist/ai/BbForm.md +55 -22
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCard.md +7 -3
- package/dist/ai/BbIcon.md +12 -6
- package/dist/ai/BbIndicator.md +11 -1
- package/dist/ai/BbNumberInput.md +4 -1
- package/dist/ai/BbOffCanvas.md +37 -3
- package/dist/ai/BbPopover.md +2 -1
- package/dist/ai/BbRadio.md +1 -1
- package/dist/ai/BbRadioGroup.md +102 -10
- package/dist/ai/BbSelect.md +52 -17
- package/dist/ai/BbSelectPopover.md +93 -26
- package/dist/ai/BbSwitch.md +1 -1
- package/dist/ai/BbSwitchGroup.md +30 -3
- package/dist/ai/BbTable.md +17 -10
- package/dist/ai/BbTabs.md +8 -3
- package/dist/ai/BbTabsList.md +4 -1
- package/dist/ai/BbTag.md +5 -2
- package/dist/ai/BbTextInput.md +4 -1
- package/dist/ai/BbTextarea.md +4 -1
- package/dist/ai/BbTimePicker.md +2 -1
- package/dist/ai/BbTimePickerInput.md +4 -1
- package/dist/ai/BbToast.md +9 -3
- package/dist/ai/BbTooltip.md +71 -9
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonField.md +1 -1
- package/dist/ai/OptionsContainer.md +42 -0
- package/dist/ai/changelog.json +416 -6
- package/dist/ai/components.json +50 -48
- package/dist/ai/composables/useConfirm.md +39 -1
- package/dist/ai/design-tokens.json +6 -6
- package/dist/ai/guides/agent-contract.md +2 -2
- package/dist/ai/guides/ai-router.md +24 -23
- package/dist/ai/guides/app-layout.md +5 -0
- package/dist/ai/guides/component-picker.md +9 -2
- package/dist/ai/guides/design-language.md +24 -24
- package/dist/ai/guides/design-tokens.md +15 -8
- package/dist/ai/guides/icons-policy.md +9 -2
- package/dist/ai/guides/inertia-helpers.md +79 -49
- package/dist/ai/guides/installation-and-plugin-setup.md +12 -2
- package/dist/ai/guides/migration/adoption-checklist.md +235 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +9 -9
- package/dist/ai/guides/migration/components/bb-dropdown.md +7 -2
- package/dist/ai/guides/migration/components/bb-popover.md +4 -2
- package/dist/ai/guides/migration/components/bb-select.md +19 -0
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-toast.md +4 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +15 -12
- package/dist/ai/guides/migration/components/use-confirm.md +25 -2
- package/dist/ai/guides/migration/v2-to-v3.md +163 -9
- package/dist/ai/guides/migration/v3-beta-css-classes.md +7 -3
- package/dist/ai/guides/options-items-playbook.md +2 -1
- package/dist/ai/guides/passthrough.md +147 -85
- package/dist/ai/guides/preset-components.md +140 -15
- package/dist/ai/helpers/definePreset.json +7 -0
- package/dist/ai/helpers/definePreset.ts +123 -11
- package/dist/ai/helpers/inertia/manifest.json +15 -9
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +4 -4
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +39 -24
- package/dist/ai/helpers/inertia/useRouteQuery.ts +10 -4
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/common.json +0 -1
- package/dist/ai/manifest/components/BbAlert.json +7 -2
- package/dist/ai/manifest/components/BbBadge.json +13 -4
- package/dist/ai/manifest/components/BbBadge.tree.json +2 -0
- package/dist/ai/manifest/components/BbBadgeButton.json +4 -2
- package/dist/ai/manifest/components/BbBaseButton.json +4 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +14 -3
- package/dist/ai/manifest/components/BbButton.tree.json +5 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +13 -8
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +18 -15
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +4 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +1 -1
- package/dist/ai/manifest/components/BbDatePickerInput.json +17 -14
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.json +24 -19
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +33 -20
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbIndicator.json +8 -2
- package/dist/ai/manifest/components/BbNumberInput.json +5 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -2
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +17 -12
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -1
- package/dist/ai/manifest/components/BbSelect.json +21 -18
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -10
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +3 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +3 -1
- package/dist/ai/manifest/components/BbTable.tree.json +14 -1
- package/dist/ai/manifest/components/BbTabs.json +9 -6
- package/dist/ai/manifest/components/BbTabs.tree.json +1 -1
- package/dist/ai/manifest/components/BbTabsList.json +6 -3
- package/dist/ai/manifest/components/BbTag.json +19 -16
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +6 -3
- package/dist/ai/manifest/components/BbTextarea.json +6 -3
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +10 -7
- package/dist/ai/manifest/components/BbToast.json +7 -2
- package/dist/ai/manifest/components/BbToast.tree.json +4 -2
- package/dist/ai/manifest/components/BbTooltip.json +6 -5
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonField.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +3 -1
- package/dist/ai/manifest/components/OptionsContainer.tree.json +38 -0
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +5 -3
- package/dist/ai/manifest/types.advanced.json +5 -2
- package/dist/ai/manifest/types.api.json +9 -7
- package/dist/ai/recipes/inertia/layout-scaffold.md +19 -6
- package/dist/ai/recipes/inertia/records-workspace.md +49 -13
- package/dist/ai/recipes/nuxt/layout-scaffold.md +19 -6
- package/dist/ai/recipes/nuxt/records-workspace.md +42 -12
- package/dist/ai/recipes/vue/layout-scaffold.md +19 -6
- package/dist/ai/recipes/vue/records-workspace.md +42 -12
- package/dist/ai/source/BbAlert.md +94 -76
- package/dist/ai/source/BbBadge.md +174 -72
- package/dist/ai/source/BbBadgeButton.md +130 -65
- package/dist/ai/source/BbBaseButton.md +46 -124
- package/dist/ai/source/BbBaseCheckboxIcon.md +38 -0
- package/dist/ai/source/BbBaseRadioIcon.md +18 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +51 -0
- package/dist/ai/source/BbButton.md +153 -36
- package/dist/ai/source/BbCheckboxGroup.md +142 -18
- package/dist/ai/source/BbColorInput.md +240 -204
- package/dist/ai/source/BbColorPalette.md +7 -4
- package/dist/ai/source/BbConfirm.md +34 -11
- package/dist/ai/source/BbConfirmPortal.md +24 -9
- package/dist/ai/source/BbDatePicker.md +11 -7
- package/dist/ai/source/BbDatePickerInput.md +306 -269
- package/dist/ai/source/BbDialog.md +49 -14
- package/dist/ai/source/BbDropdown.md +314 -197
- package/dist/ai/source/BbDropdownButton.md +197 -31
- package/dist/ai/source/BbDropdownGroup.md +274 -176
- package/dist/ai/source/BbForm.md +50 -6
- package/dist/ai/source/BbHoverCard.md +12 -5
- package/dist/ai/source/BbIcon.md +4 -3
- package/dist/ai/source/BbIndicator.md +73 -52
- package/dist/ai/source/BbNumberInput.md +293 -257
- package/dist/ai/source/BbOffCanvas.md +55 -29
- package/dist/ai/source/BbPopover.md +14 -10
- package/dist/ai/source/BbRadioGroup.md +413 -297
- package/dist/ai/source/BbSelect.md +549 -435
- package/dist/ai/source/BbSelectPopover.md +128 -33
- package/dist/ai/source/BbSwitchGroup.md +70 -10
- package/dist/ai/source/BbTable.md +369 -37
- package/dist/ai/source/BbTabs.md +115 -39
- package/dist/ai/source/BbTabsList.md +106 -38
- package/dist/ai/source/BbTabsPanels.md +96 -36
- package/dist/ai/source/BbTabsRoot.md +96 -36
- package/dist/ai/source/BbTag.md +267 -233
- package/dist/ai/source/BbTextInput.md +261 -225
- package/dist/ai/source/BbTextarea.md +251 -215
- package/dist/ai/source/BbTimePicker.md +11 -7
- package/dist/ai/source/BbTimePickerInput.md +257 -220
- package/dist/ai/source/BbToast.md +73 -32
- package/dist/ai/source/BbToastPortal.md +65 -30
- package/dist/ai/source/BbTooltip.md +148 -113
- package/dist/ai/source/CommonPopover.md +6 -1
- package/dist/ai/source/FlatListBox.md +19 -9
- package/dist/ai/source/GroupedListBox.md +19 -9
- package/dist/ai/source/OptionsContainer.md +25 -9
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +61 -36
- package/dist/components/BbAlert/types.d.ts +9 -5
- package/dist/components/BbAlert/types.js +8 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +3 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +26 -17
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +103 -50
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +20 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +12 -1
- package/dist/components/BbBadge/types.d.ts +45 -15
- package/dist/components/BbBadge/types.js +12 -3
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +89 -126
- package/dist/components/BbBaseButton/types.d.ts +23 -4
- package/dist/components/BbBaseButton/types.js +7 -1
- package/dist/components/BbBaseButton/useLinkState.d.ts +41 -0
- package/dist/components/BbBaseButton/useLinkState.js +70 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -74
- package/dist/components/BbButton/types.d.ts +50 -13
- package/dist/components/BbButton/types.js +10 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +148 -95
- package/dist/components/BbCheckboxGroup/types.d.ts +34 -11
- package/dist/components/BbCheckboxGroup/types.js +9 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +134 -93
- package/dist/components/BbColorInput/types.d.ts +11 -4
- package/dist/components/BbColorInput/types.js +9 -3
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +82 -59
- package/dist/components/BbConfirm/types.d.ts +9 -4
- package/dist/components/BbConfirm/types.js +8 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +68 -67
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +259 -215
- package/dist/components/BbDatePickerInput/types.d.ts +12 -5
- package/dist/components/BbDatePickerInput/types.js +9 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +223 -219
- package/dist/components/BbDialog/useDialogStack.d.ts +1 -1
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +104 -89
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +323 -285
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +411 -319
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +100 -98
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +4 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +49 -28
- package/dist/components/BbDropdown/normalizeGroups.d.ts +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +21 -15
- package/dist/components/BbDropdown/types.d.ts +59 -12
- package/dist/components/BbDropdown/types.js +16 -3
- package/dist/components/BbDropdown/useDropdownContext.d.ts +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +179 -68
- package/dist/components/BbDropdownButton/types.d.ts +44 -16
- package/dist/components/BbDropdownButton/types.js +28 -3
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +111 -89
- package/dist/components/BbForm/formSchema.d.ts +13 -0
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +40 -25
- package/dist/components/BbIndicator/types.d.ts +9 -5
- package/dist/components/BbIndicator/types.js +8 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +243 -202
- package/dist/components/BbNumberInput/types.d.ts +12 -5
- package/dist/components/BbNumberInput/types.js +9 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +401 -399
- package/dist/components/BbOffCanvas/types.d.ts +6 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +158 -105
- package/dist/components/BbRadioGroup/types.d.ts +21 -7
- package/dist/components/BbRadioGroup/types.js +9 -4
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +181 -137
- package/dist/components/BbSelect/types.d.ts +36 -22
- package/dist/components/BbSelect/types.js +22 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +4 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +543 -532
- package/dist/components/BbSelectPopover/knownItems.d.ts +5 -0
- package/dist/components/BbSelectPopover/types.d.ts +46 -12
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbSwitchGroup/types.d.ts +14 -4
- package/dist/components/BbSwitchGroup/types.js +8 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1102 -995
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +25 -0
- package/dist/components/BbTable/measuredFloors.d.ts +46 -0
- package/dist/components/BbTable/measuredFloors.js +322 -0
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +27 -0
- package/dist/components/BbTable/textRuler.d.ts +71 -0
- package/dist/components/BbTable/textRuler.js +121 -0
- package/dist/components/BbTable/utils.d.ts +113 -6
- package/dist/components/BbTable/utils.js +118 -65
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +53 -35
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +62 -45
- package/dist/components/BbTabs/types.d.ts +26 -11
- package/dist/components/BbTabs/types.js +23 -8
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +205 -164
- package/dist/components/BbTag/types.d.ts +11 -4
- package/dist/components/BbTag/types.js +9 -3
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +98 -57
- package/dist/components/BbTextInput/types.d.ts +12 -5
- package/dist/components/BbTextInput/types.js +9 -3
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +137 -96
- package/dist/components/BbTextarea/types.d.ts +12 -5
- package/dist/components/BbTextarea/types.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +105 -104
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +241 -197
- package/dist/components/BbTimePickerInput/types.d.ts +12 -5
- package/dist/components/BbTimePickerInput/types.js +9 -3
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +74 -32
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbToast/types.d.ts +10 -5
- package/dist/components/BbToast/types.js +18 -3
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +85 -71
- package/dist/components/BbTooltip/types.d.ts +13 -8
- package/dist/components/BbTooltip/types.js +8 -3
- package/dist/components/CommonField/CommonField.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +53 -50
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +146 -143
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/OptionsContainer/types.d.ts +14 -3
- package/dist/composables/useBbFormContext.d.ts +4 -3
- package/dist/composables/useBbTabsContext.js +99 -85
- package/dist/composables/useChoiceIndicator.d.ts +58 -0
- package/dist/composables/useChoiceIndicator.js +197 -0
- package/dist/composables/useConfirm.d.ts +4 -4
- package/dist/composables/usePassthrough.d.ts +54 -1
- package/dist/composables/usePassthrough.js +100 -71
- package/dist/directives/bbTooltip.d.ts +12 -6
- package/dist/directives/createPopoverDirective.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/llms-full.txt +2300 -543
- package/dist/llms-medium.txt +71 -53
- package/dist/llms.txt +2 -1
- package/dist/passthrough-deduper.js +6 -3
- package/dist/project-dts.d.ts +24 -0
- package/dist/project-dts.js +43 -17
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +14 -0
- package/dist/types/AlertVariant.js +9 -0
- package/dist/types/BadgeVariant.d.ts +14 -0
- package/dist/types/BadgeVariant.js +9 -0
- package/dist/types/ButtonVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.js +11 -0
- package/dist/types/CheckboxVariant.d.ts +38 -0
- package/dist/types/CheckboxVariant.js +4 -0
- package/dist/types/CommonProps.d.ts +4 -3
- package/dist/types/Config.d.ts +7 -0
- package/dist/types/ConfirmVariant.d.ts +12 -0
- package/dist/types/ConfirmVariant.js +4 -0
- package/dist/types/DropdownItemVariant.d.ts +12 -0
- package/dist/types/DropdownItemVariant.js +4 -0
- package/dist/types/IndicatorVariant.d.ts +15 -0
- package/dist/types/IndicatorVariant.js +10 -0
- package/dist/types/InputVariant.d.ts +13 -0
- package/dist/types/InputVariant.js +8 -0
- package/dist/types/RadioVariant.d.ts +38 -0
- package/dist/types/RadioVariant.js +4 -0
- package/dist/types/TabsVariant.d.ts +13 -0
- package/dist/types/TabsVariant.js +8 -0
- package/dist/types/ToastVariant.d.ts +15 -0
- package/dist/types/ToastVariant.js +10 -0
- package/dist/types/TooltipVariant.d.ts +12 -0
- package/dist/types/TooltipVariant.js +4 -0
- package/dist/types/passthrough.d.ts +83 -15
- package/dist/types/passthrough.js +2 -2
- package/dist/types/ptComponentMap.d.ts +35 -23
- package/dist/utilities/functions/extractDomContainer.d.ts +20 -1
- package/dist/utilities/functions/extractDomContainer.js +8 -3
- package/dist/utils/focusVisibility.d.ts +6 -0
- package/dist/utils/focusVisibility.js +4 -1
- package/dist/utils/passthroughDeduper.d.ts +14 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +64 -7
- package/dist/vite.js +385 -259
- package/llms.txt +2 -1
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +312 -0
- package/scripts/lib/eslint-plugin.d.ts +13 -0
- package/scripts/lib/eslint-plugin.mjs +75 -11
- package/scripts/lib/idiom-scan.mjs +65 -0
- package/scripts/lib/mcp-config.mjs +203 -9
- package/scripts/lib/migrate-fix.mjs +42 -1
- package/scripts/lib/project-variant-dts.mjs +18 -0
- package/scripts/lib/validate-bb-markup.mjs +99 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { useLogger as e } from "../../composables/useLogger.js";
|
|
2
|
-
import { TEXT_CONTROL_NATIVE_ATTRS as t, formControlPtActive as n, usePassthrough as r } from "../../composables/usePassthrough.js";
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { removedPropsFor as
|
|
5
|
-
import { warnRemovedAttrs as
|
|
6
|
-
import { isImeComposing as
|
|
7
|
-
import
|
|
8
|
-
import { vAutofocus as
|
|
9
|
-
import
|
|
10
|
-
import { useFormBinding as
|
|
11
|
-
import { useIndexById as
|
|
12
|
-
import { useBaseOptions as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
2
|
+
import { TEXT_CONTROL_NATIVE_ATTRS as t, formControlPtActive as n, usePassthrough as r, variantPt as i } from "../../composables/usePassthrough.js";
|
|
3
|
+
import { useConfig as a } from "../../composables/useConfig.js";
|
|
4
|
+
import { removedPropsFor as o } from "../../deprecation/removedProps.js";
|
|
5
|
+
import { warnRemovedAttrs as ee } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
6
|
+
import { isImeComposing as te } from "../../utilities/functions/isImeComposing.js";
|
|
7
|
+
import ne from "../BbSmoothHeight/BbSmoothHeight.vue.js";
|
|
8
|
+
import { vAutofocus as re } from "../../utilities/misc/autofocus.js";
|
|
9
|
+
import ie from "../CommonField/CommonField.vue.js";
|
|
10
|
+
import { useFormBinding as ae } from "../../composables/useFormBinding.js";
|
|
11
|
+
import { useIndexById as oe } from "../../composables/useIndexById.js";
|
|
12
|
+
import { useBaseOptions as se } from "../../composables/useBaseOptions.js";
|
|
13
|
+
import ce from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
14
|
+
import le from "../ChipsBox/ChipsBox.vue.js";
|
|
15
|
+
import ue from "../CommaBox/CommaBox.vue.js";
|
|
16
16
|
import { BB_TAG_PT as s } from "./types.js";
|
|
17
|
-
import { computed as c, createBlock as l, createElementVNode as u, createSlots as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as
|
|
17
|
+
import { computed as c, createBlock as l, createElementVNode as u, createSlots as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as de, normalizeClass as fe, normalizeProps as g, onBeforeUnmount as pe, onDeactivated as me, openBlock as _, ref as v, renderSlot as y, toRaw as he, toRef as b, unref as x, useAttrs as ge, vModelText as _e, watch as S, withCtx as C, withDirectives as ve, withModifiers as w } from "vue";
|
|
18
18
|
//#region src/components/BbTag/BbTag.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var
|
|
19
|
+
var ye = { class: "bb-tag__input-container" }, be = [
|
|
20
20
|
"id",
|
|
21
21
|
"aria-describedby",
|
|
22
22
|
"aria-disabled",
|
|
@@ -31,6 +31,7 @@ var ve = { class: "bb-tag__input-container" }, ye = [
|
|
|
31
31
|
"required",
|
|
32
32
|
"aria-required"
|
|
33
33
|
], T = /*@__PURE__*/ p({
|
|
34
|
+
mixins: [i(s)],
|
|
34
35
|
inheritAttrs: !1,
|
|
35
36
|
__name: "BbTag",
|
|
36
37
|
props: {
|
|
@@ -132,6 +133,42 @@ var ve = { class: "bb-tag__input-container" }, ye = [
|
|
|
132
133
|
"pt:comma:hasValue": {},
|
|
133
134
|
"pt:badge:highlighted": {},
|
|
134
135
|
"pt:comma:highlighted": {},
|
|
136
|
+
"pt:root:outline": {},
|
|
137
|
+
"pt:root:secondary": {},
|
|
138
|
+
"pt:root:ghost": {},
|
|
139
|
+
"pt:label:outline": {},
|
|
140
|
+
"pt:label:secondary": {},
|
|
141
|
+
"pt:label:ghost": {},
|
|
142
|
+
"pt:description:outline": {},
|
|
143
|
+
"pt:description:secondary": {},
|
|
144
|
+
"pt:description:ghost": {},
|
|
145
|
+
"pt:message:outline": {},
|
|
146
|
+
"pt:message:secondary": {},
|
|
147
|
+
"pt:message:ghost": {},
|
|
148
|
+
"pt:hint:outline": {},
|
|
149
|
+
"pt:hint:secondary": {},
|
|
150
|
+
"pt:hint:ghost": {},
|
|
151
|
+
"pt:box:outline": {},
|
|
152
|
+
"pt:box:secondary": {},
|
|
153
|
+
"pt:box:ghost": {},
|
|
154
|
+
"pt:input:outline": {},
|
|
155
|
+
"pt:input:secondary": {},
|
|
156
|
+
"pt:input:ghost": {},
|
|
157
|
+
"pt:icon:outline": {},
|
|
158
|
+
"pt:icon:secondary": {},
|
|
159
|
+
"pt:icon:ghost": {},
|
|
160
|
+
"pt:spinner:outline": {},
|
|
161
|
+
"pt:spinner:secondary": {},
|
|
162
|
+
"pt:spinner:ghost": {},
|
|
163
|
+
"pt:prefix:outline": {},
|
|
164
|
+
"pt:prefix:secondary": {},
|
|
165
|
+
"pt:prefix:ghost": {},
|
|
166
|
+
"pt:suffix:outline": {},
|
|
167
|
+
"pt:suffix:secondary": {},
|
|
168
|
+
"pt:suffix:ghost": {},
|
|
169
|
+
"pt:clear:outline": {},
|
|
170
|
+
"pt:clear:secondary": {},
|
|
171
|
+
"pt:clear:ghost": {},
|
|
135
172
|
"pt:badge": {},
|
|
136
173
|
"pt:comma": {},
|
|
137
174
|
pt: {},
|
|
@@ -193,249 +230,253 @@ var ve = { class: "bb-tag__input-container" }, ye = [
|
|
|
193
230
|
"max",
|
|
194
231
|
"update:modelValue"
|
|
195
232
|
],
|
|
196
|
-
setup(
|
|
197
|
-
let
|
|
233
|
+
setup(i, { emit: p }) {
|
|
234
|
+
let T = i, { props: E, emit: D, showAsterisk: xe, errors: Se, required: O, ariaRequired: Ce, model: k, readonly: A } = ae(T, p, {
|
|
198
235
|
componentName: "BbTag",
|
|
199
|
-
identifierFallback: () =>
|
|
236
|
+
identifierFallback: () => T.label,
|
|
200
237
|
emptyValue: () => [],
|
|
201
238
|
leaveOn: "inactive"
|
|
202
|
-
}),
|
|
203
|
-
process.env.NODE_ENV !== "production" &&
|
|
204
|
-
let
|
|
239
|
+
}), we = c(() => Ce.value ?? (O.value && k.value.length ? !0 : void 0)), Te = a();
|
|
240
|
+
process.env.NODE_ENV !== "production" && ee("BbTag", o("BbTag"));
|
|
241
|
+
let j = v("idle"), M = c(() => j.value === "active"), Ee = c(() => E.persistentHint || j.value !== "idle"), N = c(() => (E.modelValue?.length ?? 0) > 0), De = c(() => E.labelMode ?? Te.defaultInputLabelMode), P = r({
|
|
205
242
|
component: "BbTag",
|
|
206
|
-
attrs:
|
|
243
|
+
attrs: ge(),
|
|
207
244
|
controlAttrs: t,
|
|
208
|
-
props:
|
|
245
|
+
props: E,
|
|
209
246
|
parts: s.parts,
|
|
210
247
|
states: s.states,
|
|
211
|
-
active: n(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
248
|
+
active: n(E, () => N.value),
|
|
249
|
+
variant: {
|
|
250
|
+
...s.variant,
|
|
251
|
+
current: () => E.variant ?? "outline"
|
|
252
|
+
}
|
|
253
|
+
}), Oe = e();
|
|
254
|
+
Array.isArray(E.modelValue) || Oe.throw("BbTag: modelValue must be an array.");
|
|
255
|
+
let F = v(null), I = v(null), L = v(null), R = c(() => E.comma ? I.value : L.value), z = v(null), ke = () => {
|
|
256
|
+
z.value instanceof HTMLInputElement && z.value.focus();
|
|
257
|
+
}, B = v(""), V = c(() => je.value.filter((e) => e.selected)), { data: H } = oe({ items: b(E, "modelValue") }), U = (e) => E.caseSensitive ? e : e.toLowerCase(), Ae = c(() => new Set(E.modelValue.map((e) => U(String(e))))), { options: je } = se({
|
|
258
|
+
disabled: b(E, "disabled"),
|
|
259
|
+
items: c(() => E.modelValue),
|
|
219
260
|
itemText: void 0,
|
|
220
261
|
itemValue: void 0,
|
|
221
|
-
max: b(
|
|
262
|
+
max: b(E, "max"),
|
|
222
263
|
selectable: !0,
|
|
223
|
-
selectedIndexedByHash:
|
|
224
|
-
}),
|
|
225
|
-
|
|
226
|
-
},
|
|
227
|
-
if (
|
|
228
|
-
let t = { ...
|
|
229
|
-
delete t[e.valueHash],
|
|
230
|
-
},
|
|
231
|
-
S(() =>
|
|
232
|
-
if (
|
|
233
|
-
|
|
264
|
+
selectedIndexedByHash: H
|
|
265
|
+
}), W = () => {
|
|
266
|
+
B.value = "";
|
|
267
|
+
}, G = async (e) => {
|
|
268
|
+
if (E.disabled || E.readonly) return;
|
|
269
|
+
let t = { ...H.value };
|
|
270
|
+
delete t[e.valueHash], D("update:modelValue", Object.values(t)), ke();
|
|
271
|
+
}, K;
|
|
272
|
+
S(() => E.modelValue, async (e) => {
|
|
273
|
+
if (he(e) === K) {
|
|
274
|
+
K = void 0;
|
|
234
275
|
return;
|
|
235
276
|
}
|
|
236
|
-
|
|
237
|
-
}), S(() =>
|
|
238
|
-
e &&
|
|
239
|
-
}), S(() =>
|
|
240
|
-
e &&
|
|
277
|
+
W();
|
|
278
|
+
}), S(() => E.disabled, (e) => {
|
|
279
|
+
e && R.value?.blur();
|
|
280
|
+
}), S(() => E.readonly, (e) => {
|
|
281
|
+
e && R.value?.blur();
|
|
241
282
|
});
|
|
242
|
-
let
|
|
243
|
-
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
},
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
},
|
|
253
|
-
!
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
}, Ie = (e) => {
|
|
257
|
-
!Y.value || V.value || (e.preventDefault(), H.value.length && z.value?.focusFirst());
|
|
283
|
+
let Me = () => {
|
|
284
|
+
j.value = "active", D("active");
|
|
285
|
+
}, q = () => {
|
|
286
|
+
j.value = "idle", D("inactive");
|
|
287
|
+
}, Ne = () => {
|
|
288
|
+
M.value || (Me(), document.addEventListener("click", Z), document.addEventListener("focusin", Z));
|
|
289
|
+
}, J = c(() => !(E.readonly || E.disabled || !R.value)), Pe = (e) => {
|
|
290
|
+
J.value && (B.value || (e.preventDefault(), V.value.length && R.value?.focusPrevious()));
|
|
291
|
+
}, Fe = (e) => {
|
|
292
|
+
J.value && (B.value || (e.preventDefault(), V.value.length && R.value?.focusNext()));
|
|
293
|
+
}, Y = async () => {
|
|
294
|
+
!J.value || B.value || !V.value.length || (R.value?.getHighlighted() && R.value.confirmOption(), await de(), R.value?.focusPrevious());
|
|
295
|
+
}, Ie = () => {
|
|
296
|
+
R.value?.blur();
|
|
258
297
|
}, Le = (e) => {
|
|
259
|
-
!
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
|
|
298
|
+
!J.value || B.value || (e.preventDefault(), V.value.length && R.value?.focusFirst());
|
|
299
|
+
}, Re = (e) => {
|
|
300
|
+
!J.value || B.value || (e.preventDefault(), V.value.length && R.value?.focusLast());
|
|
301
|
+
}, X = c(() => Array.isArray(E.divider) ? E.divider : [E.divider]), ze = async (e) => {
|
|
302
|
+
if (D("keydown", e), e.key === "Tab") {
|
|
303
|
+
R.value?.blur();
|
|
263
304
|
return;
|
|
264
305
|
}
|
|
265
|
-
if (
|
|
306
|
+
if (E.readonly || E.disabled) {
|
|
266
307
|
e.preventDefault();
|
|
267
308
|
return;
|
|
268
309
|
}
|
|
269
|
-
/^[A-Za-z0-9]$/.test(e.key) &&
|
|
270
|
-
},
|
|
271
|
-
let e = [
|
|
272
|
-
for (let t of
|
|
310
|
+
/^[A-Za-z0-9]$/.test(e.key) && R.value?.blur(), (X.value.find((t) => t === e.key) ?? (e.key === "Unidentified" ? X.value.find((e) => B.value.includes(e)) : void 0)) !== void 0 && Ve(e);
|
|
311
|
+
}, Be = () => {
|
|
312
|
+
let e = [B.value];
|
|
313
|
+
for (let t of X.value) t.length === 1 && (e = e.flatMap((e) => e.split(t)));
|
|
273
314
|
return e.map((e) => e.trim()).filter(Boolean);
|
|
274
|
-
},
|
|
275
|
-
let t =
|
|
315
|
+
}, Ve = (e) => {
|
|
316
|
+
let t = Be();
|
|
276
317
|
if (!t.length) {
|
|
277
|
-
|
|
318
|
+
B.value = "";
|
|
278
319
|
return;
|
|
279
320
|
}
|
|
280
321
|
e.preventDefault();
|
|
281
|
-
let n = new Set(
|
|
322
|
+
let n = new Set(Ae.value), r = [], i = [];
|
|
282
323
|
for (let [e, a] of t.entries()) {
|
|
283
|
-
if (n.has(
|
|
284
|
-
|
|
324
|
+
if (n.has(U(a))) {
|
|
325
|
+
D("duplicate", a);
|
|
285
326
|
continue;
|
|
286
327
|
}
|
|
287
|
-
if (
|
|
288
|
-
|
|
328
|
+
if (E.max !== void 0 && V.value.length + r.length >= E.max) {
|
|
329
|
+
D("max", a), i = t.slice(e);
|
|
289
330
|
break;
|
|
290
331
|
}
|
|
291
|
-
n.add(
|
|
332
|
+
n.add(U(a)), r.push(a);
|
|
292
333
|
}
|
|
293
|
-
if (
|
|
294
|
-
let a =
|
|
295
|
-
|
|
296
|
-
},
|
|
297
|
-
ArrowLeft:
|
|
298
|
-
ArrowRight:
|
|
299
|
-
Backspace:
|
|
300
|
-
Delete:
|
|
301
|
-
End:
|
|
334
|
+
if (B.value = i.join(`${X.value.find((e) => e.length === 1) ?? ","} `), !r.length) return;
|
|
335
|
+
let a = E.modelValue.concat(r);
|
|
336
|
+
K = i.length ? a : void 0, D("update:modelValue", a);
|
|
337
|
+
}, He = {
|
|
338
|
+
ArrowLeft: Pe,
|
|
339
|
+
ArrowRight: Fe,
|
|
340
|
+
Backspace: Y,
|
|
341
|
+
Delete: Y,
|
|
342
|
+
End: Re,
|
|
302
343
|
Escape: (e) => {
|
|
303
|
-
e.preventDefault(),
|
|
344
|
+
e.preventDefault(), Ie();
|
|
304
345
|
},
|
|
305
|
-
Home:
|
|
306
|
-
},
|
|
307
|
-
if (
|
|
308
|
-
|
|
346
|
+
Home: Le
|
|
347
|
+
}, Ue = (e) => {
|
|
348
|
+
if (te(e)) {
|
|
349
|
+
D("keydown", e);
|
|
309
350
|
return;
|
|
310
351
|
}
|
|
311
|
-
|
|
312
|
-
}, Ue = (e) => {
|
|
313
|
-
M.value === "idle" && (M.value = "focused"), O("focus", e);
|
|
352
|
+
ze(e), He[e.key]?.(e);
|
|
314
353
|
}, We = (e) => {
|
|
315
|
-
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
|
|
354
|
+
j.value === "idle" && (j.value = "focused"), D("focus", e);
|
|
355
|
+
}, Ge = (e) => {
|
|
356
|
+
D("click", e);
|
|
357
|
+
}, Z = async (e) => {
|
|
358
|
+
if (e.target instanceof Node && F.value && !F.value.$el.contains(e.target)) {
|
|
359
|
+
q(), document.removeEventListener("click", Z), document.removeEventListener("focusin", Z), W();
|
|
319
360
|
return;
|
|
320
361
|
}
|
|
321
|
-
},
|
|
322
|
-
onBlur: (e) =>
|
|
323
|
-
onChange: (e) =>
|
|
324
|
-
onKeyup: (e) =>
|
|
325
|
-
onInput: (e) =>
|
|
326
|
-
onMousedown: (e) =>
|
|
327
|
-
onMouseup: (e) =>
|
|
328
|
-
onPaste: (e) =>
|
|
329
|
-
onCompositionstart: (e) =>
|
|
330
|
-
onCompositionend: (e) =>
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
},
|
|
334
|
-
|
|
362
|
+
}, Q = {
|
|
363
|
+
onBlur: (e) => D("blur", e),
|
|
364
|
+
onChange: (e) => D("change", e),
|
|
365
|
+
onKeyup: (e) => D("keyup", e),
|
|
366
|
+
onInput: (e) => D("input", e),
|
|
367
|
+
onMousedown: (e) => D("mousedown", e),
|
|
368
|
+
onMouseup: (e) => D("mouseup", e),
|
|
369
|
+
onPaste: (e) => D("paste", e),
|
|
370
|
+
onCompositionstart: (e) => D("compositionstart", e),
|
|
371
|
+
onCompositionend: (e) => D("compositionend", e)
|
|
372
|
+
}, Ke = c(() => P.input ? h(Q, P.input) : Q), qe = () => {
|
|
373
|
+
D("update:modelValue", []);
|
|
374
|
+
}, $ = () => {
|
|
375
|
+
M.value ? (q(), W()) : j.value = "idle", document.removeEventListener("click", Z), document.removeEventListener("focusin", Z);
|
|
335
376
|
};
|
|
336
|
-
return
|
|
377
|
+
return me($), pe($), (e, t) => (_(), l(ie, h({
|
|
337
378
|
id: e.id,
|
|
338
379
|
class: "bb-tag",
|
|
339
|
-
clearable: e.clearable &&
|
|
380
|
+
clearable: e.clearable && N.value,
|
|
340
381
|
compact: e.compact,
|
|
341
382
|
description: e.description,
|
|
342
383
|
disabled: e.disabled,
|
|
343
|
-
errors: x(
|
|
384
|
+
errors: x(Se),
|
|
344
385
|
"has-errors": e.hasErrors,
|
|
345
|
-
"has-value":
|
|
386
|
+
"has-value": N.value,
|
|
346
387
|
"has-warnings": e.hasWarnings,
|
|
347
388
|
"hide-label": e.hideLabel,
|
|
348
389
|
hint: e.hint,
|
|
349
390
|
"input-align": e.inputAlign,
|
|
350
391
|
label: e.label,
|
|
351
392
|
"label-align": e.labelAlign,
|
|
352
|
-
"label-mode":
|
|
393
|
+
"label-mode": De.value,
|
|
353
394
|
"label-position": e.labelPosition,
|
|
354
395
|
layout: e.layout,
|
|
355
396
|
loading: e.loading,
|
|
356
397
|
name: e.name,
|
|
357
|
-
passthrough: x(
|
|
358
|
-
readonly: x(
|
|
398
|
+
passthrough: x(P),
|
|
399
|
+
readonly: x(A),
|
|
359
400
|
reverse: e.reverse,
|
|
360
|
-
"show-asterisk": x(
|
|
361
|
-
"show-hint":
|
|
401
|
+
"show-asterisk": x(xe),
|
|
402
|
+
"show-hint": Ee.value,
|
|
362
403
|
warnings: e.warnings
|
|
363
|
-
}, x(
|
|
404
|
+
}, x(P).forwardAttrs), d({
|
|
364
405
|
label: C((t) => [y(e.$slots, "label", g(m(t)))]),
|
|
365
|
-
input: C(({ id: n, hasErrors: r, hasWarnings: i, ariaDescribedby: a, ariaLabelledby: o }) => [f(
|
|
406
|
+
input: C(({ id: n, hasErrors: r, hasWarnings: i, ariaDescribedby: a, ariaLabelledby: o }) => [f(ce, {
|
|
366
407
|
ref_key: "wrapper",
|
|
367
|
-
ref:
|
|
368
|
-
active:
|
|
369
|
-
"append:icon": x(
|
|
370
|
-
class:
|
|
371
|
-
"bb-tag__field--active":
|
|
408
|
+
ref: F,
|
|
409
|
+
active: M.value,
|
|
410
|
+
"append:icon": x(E)["append:icon"],
|
|
411
|
+
class: fe(["bb-tag__field", {
|
|
412
|
+
"bb-tag__field--active": M.value,
|
|
372
413
|
"bb-tag__field--compact": e.compact
|
|
373
414
|
}]),
|
|
374
415
|
clearable: e.clearable,
|
|
375
416
|
compact: e.compact,
|
|
376
417
|
disabled: e.disabled,
|
|
377
418
|
"has-errors": r,
|
|
378
|
-
"has-value":
|
|
419
|
+
"has-value": N.value,
|
|
379
420
|
"has-warnings": i,
|
|
380
421
|
loading: e.loading,
|
|
381
|
-
passthrough: x(
|
|
382
|
-
"prepend:icon": x(
|
|
383
|
-
readonly: x(
|
|
422
|
+
passthrough: x(P),
|
|
423
|
+
"prepend:icon": x(E)["prepend:icon"],
|
|
424
|
+
readonly: x(A),
|
|
384
425
|
variant: e.variant,
|
|
385
|
-
onClick:
|
|
386
|
-
"onClick:clear":
|
|
387
|
-
onFocusin:
|
|
426
|
+
onClick: Ge,
|
|
427
|
+
"onClick:clear": qe,
|
|
428
|
+
onFocusin: Ne
|
|
388
429
|
}, d({
|
|
389
430
|
"prepend:outer": C(() => [y(e.$slots, "prepend:outer")]),
|
|
390
431
|
prepend: C(() => [y(e.$slots, "prepend")]),
|
|
391
432
|
append: C(() => [y(e.$slots, "append")]),
|
|
392
433
|
"append:outer": C(() => [y(e.$slots, "append:outer")]),
|
|
393
|
-
default: C(() => [f(
|
|
394
|
-
default: C(() => [u("span",
|
|
434
|
+
default: C(() => [f(ne, { tag: "span" }, {
|
|
435
|
+
default: C(() => [u("span", ye, [e.comma ? (_(), l(ue, {
|
|
395
436
|
key: 0,
|
|
396
437
|
ref_key: "commaBox",
|
|
397
|
-
ref:
|
|
398
|
-
options:
|
|
399
|
-
passthrough: x(
|
|
400
|
-
"onOption:unselected":
|
|
401
|
-
}, null, 8, ["options", "passthrough"])) : (_(), l(
|
|
438
|
+
ref: I,
|
|
439
|
+
options: V.value,
|
|
440
|
+
passthrough: x(P),
|
|
441
|
+
"onOption:unselected": G
|
|
442
|
+
}, null, 8, ["options", "passthrough"])) : (_(), l(le, {
|
|
402
443
|
key: 1,
|
|
403
444
|
ref_key: "chipsBox",
|
|
404
|
-
ref:
|
|
405
|
-
disabled: e.disabled || x(
|
|
406
|
-
options:
|
|
407
|
-
passthrough: x(
|
|
445
|
+
ref: L,
|
|
446
|
+
disabled: e.disabled || x(A),
|
|
447
|
+
options: V.value,
|
|
448
|
+
passthrough: x(P),
|
|
408
449
|
size: "lg",
|
|
409
|
-
"onOption:unselected":
|
|
450
|
+
"onOption:unselected": G
|
|
410
451
|
}, null, 8, [
|
|
411
452
|
"disabled",
|
|
412
453
|
"options",
|
|
413
454
|
"passthrough"
|
|
414
|
-
])),
|
|
455
|
+
])), ve(u("input", h({
|
|
415
456
|
id: n,
|
|
416
457
|
ref_key: "input",
|
|
417
|
-
ref:
|
|
418
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
458
|
+
ref: z,
|
|
459
|
+
"onUpdate:modelValue": t[0] ||= (e) => B.value = e,
|
|
419
460
|
"aria-describedby": a,
|
|
420
461
|
"aria-disabled": e.disabled || void 0,
|
|
421
462
|
"aria-invalid": r || void 0,
|
|
422
463
|
"aria-labelledby": o,
|
|
423
|
-
"aria-readonly": x(
|
|
464
|
+
"aria-readonly": x(A) || void 0,
|
|
424
465
|
autocomplete: e.autocomplete,
|
|
425
466
|
autofocus: e.autofocus,
|
|
426
467
|
class: "bb-tag__input",
|
|
427
468
|
disabled: e.disabled,
|
|
428
469
|
enterkeyhint: "done",
|
|
429
470
|
placeholder: e.placeholder,
|
|
430
|
-
readonly: x(
|
|
431
|
-
required: x(
|
|
432
|
-
"aria-required":
|
|
471
|
+
readonly: x(A),
|
|
472
|
+
required: x(O) && !x(k).length,
|
|
473
|
+
"aria-required": we.value,
|
|
433
474
|
size: "1",
|
|
434
|
-
style: { "--characters":
|
|
475
|
+
style: { "--characters": B.value.length },
|
|
435
476
|
type: "text",
|
|
436
|
-
onFocus: w(
|
|
437
|
-
onKeydown: w(
|
|
438
|
-
}, h(x(
|
|
477
|
+
onFocus: w(We, ["stop"]),
|
|
478
|
+
onKeydown: w(Ue, ["stop"])
|
|
479
|
+
}, h(x(P).controlAttrs, Ke.value)), null, 16, be), [[_e, B.value], [x(re)]])])]),
|
|
439
480
|
_: 2
|
|
440
481
|
}, 1024)]),
|
|
441
482
|
_: 2
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Responsive } from '../../types/ResponsiveSize';
|
|
2
|
-
import { InputVariantType } from '../../types/InputVariant';
|
|
2
|
+
import { InputVariantBuiltIn, InputVariantRegistry, InputVariantType } from '../../types/InputVariant';
|
|
3
3
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
|
-
import { FormControlPtState, PtItemCtx, PtItemFn, PtItemResult, PtMap, PtValue, TextControlPtPart } from '../../types/passthrough';
|
|
4
|
+
import { FormControlPtState, PtItemCtx, PtItemFn, PtItemResult, PtMap, PtValue, TextControlPtPart, PtVariantAttrs } from '../../types/passthrough';
|
|
5
5
|
import { FieldCrossAlign, FieldLayout } from '../../types/FieldLayout';
|
|
6
6
|
import { IconType } from '../../types/Icon';
|
|
7
7
|
import { FormFieldProps } from '../../composables/useFormBinding';
|
|
@@ -39,10 +39,15 @@ export declare const BB_TAG_PT: {
|
|
|
39
39
|
/** `rowStates` are declared on `rowParts` only. */
|
|
40
40
|
readonly rowParts: readonly ["badge", "comma"];
|
|
41
41
|
readonly rowStates: readonly ["highlighted"];
|
|
42
|
+
readonly variant: {
|
|
43
|
+
readonly names: readonly ["outline", "secondary", "ghost"];
|
|
44
|
+
readonly option: "inputVariants";
|
|
45
|
+
readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "input", "icon", "spinner", "prefix", "suffix", "clear"];
|
|
46
|
+
};
|
|
42
47
|
};
|
|
43
48
|
export type BbTagProps = {
|
|
44
|
-
[K in `pt:${TextControlPtPart}` | `pt:${BbTagPtPart}:${FormControlPtState}` | 'pt:badge:highlighted' | 'pt:comma:highlighted']?: PtValue;
|
|
45
|
-
} & {
|
|
49
|
+
[K in `pt:${TextControlPtPart}` | `pt:${BbTagPtPart}:${FormControlPtState}` | 'pt:badge:highlighted' | 'pt:comma:highlighted' | `pt:${TextControlPtPart}:${InputVariantBuiltIn}`]?: PtValue;
|
|
50
|
+
} & /* @vue-ignore */ PtVariantAttrs<TextControlPtPart, keyof InputVariantRegistry> & {
|
|
46
51
|
[K in `pt:${BbTagItemPtPart}`]?: PtValue | ((ctx: PtItemCtx<string, BbTagPtState>) => PtItemResult);
|
|
47
52
|
} & {
|
|
48
53
|
/**
|
|
@@ -53,6 +58,8 @@ export type BbTagProps = {
|
|
|
53
58
|
[K in `${BbTagItemPtPart}:${FormControlPtState}` | 'badge:highlighted' | 'comma:highlighted']?: PtValue;
|
|
54
59
|
} & {
|
|
55
60
|
[K in BbTagItemPtPart]?: PtValue | PtItemFn<string, BbTagPtState>;
|
|
61
|
+
} & {
|
|
62
|
+
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof InputVariantRegistry}`]?: PtValue;
|
|
56
63
|
};
|
|
57
64
|
/**
|
|
58
65
|
* Name of the icon to be added at the end of the input.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TEXT_CONTROL_PT_PARTS as e } from "../../types/passthrough.js";
|
|
2
|
+
import { INPUT_VARIANTS as t } from "../../types/InputVariant.js";
|
|
2
3
|
//#region src/components/BbTag/types.ts
|
|
3
|
-
var
|
|
4
|
+
var n = {
|
|
4
5
|
parts: [
|
|
5
6
|
...e,
|
|
6
7
|
"badge",
|
|
@@ -16,7 +17,12 @@ var t = {
|
|
|
16
17
|
"loading"
|
|
17
18
|
],
|
|
18
19
|
rowParts: ["badge", "comma"],
|
|
19
|
-
rowStates: ["highlighted"]
|
|
20
|
+
rowStates: ["highlighted"],
|
|
21
|
+
variant: {
|
|
22
|
+
names: t,
|
|
23
|
+
option: "inputVariants",
|
|
24
|
+
parts: e
|
|
25
|
+
}
|
|
20
26
|
};
|
|
21
27
|
//#endregion
|
|
22
|
-
export {
|
|
28
|
+
export { n as BB_TAG_PT };
|