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
|
@@ -7,21 +7,22 @@ import { extractDomContainer as a } from "../../utilities/functions/extractDomCo
|
|
|
7
7
|
import { transitions as o } from "../../utilities/misc/transitions.js";
|
|
8
8
|
import s from "../CommonPopover/CommonPopover.vue.js";
|
|
9
9
|
import { useMobile as c } from "../../composables/useMobile.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import ne from "../BbOffCanvas/
|
|
13
|
-
import
|
|
14
|
-
import ie from "
|
|
15
|
-
import
|
|
10
|
+
import { firstFocusableMatch as ee } from "../../utils/focusVisibility.js";
|
|
11
|
+
import { useLocale as te } from "../../composables/useLocale.js";
|
|
12
|
+
import { BB_OFF_CANVAS_PT as ne } from "../BbOffCanvas/types.js";
|
|
13
|
+
import re from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
14
|
+
import { useEscapeStackEntry as ie } from "../../composables/useEscapeStackEntry.js";
|
|
15
|
+
import ae from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
16
|
+
import { spokenTimeOf as oe } from "../BbCalendar/useDayjsLocale.js";
|
|
16
17
|
import { BB_TIME_PICKER_PT as l } from "./types.js";
|
|
17
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as
|
|
18
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as se, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, guardReactiveProps as ce, mergeProps as _, nextTick as le, normalizeClass as ue, normalizeProps as v, onBeforeUnmount as de, onDeactivated as fe, openBlock as y, ref as b, renderList as pe, renderSlot as me, toDisplayString as x, unref as S, useAttrs as he, watch as C, withCtx as w } from "vue";
|
|
18
19
|
import { createReusableTemplate as ge } from "@vueuse/core";
|
|
19
20
|
//#region src/components/BbTimePicker/BbTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
20
21
|
var _e = ["aria-label"], ve = [
|
|
21
22
|
"aria-pressed",
|
|
22
23
|
"disabled",
|
|
23
24
|
"onClick"
|
|
24
|
-
],
|
|
25
|
+
], T = /*@__PURE__*/ g({
|
|
25
26
|
inheritAttrs: !1,
|
|
26
27
|
__name: "BbTimePicker",
|
|
27
28
|
props: {
|
|
@@ -86,104 +87,104 @@ var _e = ["aria-label"], ve = [
|
|
|
86
87
|
"error",
|
|
87
88
|
"time-pick"
|
|
88
89
|
],
|
|
89
|
-
setup(o, { emit:
|
|
90
|
-
let
|
|
90
|
+
setup(o, { emit: g }) {
|
|
91
|
+
let T = o, E = g, D = n({
|
|
91
92
|
component: "BbTimePicker",
|
|
92
|
-
props:
|
|
93
|
+
props: T,
|
|
93
94
|
parts: l.parts,
|
|
94
95
|
states: l.states,
|
|
95
96
|
active: {
|
|
96
97
|
open: () => B.value,
|
|
97
|
-
disabled: () => !!
|
|
98
|
+
disabled: () => !!T.disabled
|
|
98
99
|
},
|
|
99
100
|
attrs: he()
|
|
100
|
-
}),
|
|
101
|
-
let e = (e) =>
|
|
101
|
+
}), O = r(), ye = d(() => {
|
|
102
|
+
let e = (e) => oe(e, O.locale, !!T.ampm, !!T.seconds), t = T.modelValue;
|
|
102
103
|
return Array.isArray(t) ? t.filter(Boolean).map(e).join(" – ") : t ? e(t) : "";
|
|
103
|
-
}), { t:
|
|
104
|
-
id:
|
|
104
|
+
}), { t: k } = te(), { isMobile: A } = c(), be = e(), [xe, j] = ge(), M = i().id.value, N = `${M}-panel`, P = d(() => _({
|
|
105
|
+
id: N,
|
|
105
106
|
class: ["bb-time-picker__panel", { "bb-time-picker__panel--sheet": Z.value }]
|
|
106
|
-
}, Z.value ? {} :
|
|
107
|
-
let t =
|
|
107
|
+
}, Z.value ? {} : D.panel ?? {})), F = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, I = (e) => {
|
|
108
|
+
let t = F.exec(e);
|
|
108
109
|
if (!t) return null;
|
|
109
110
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
110
111
|
return n > 23 || r > 59 ? null : n * 60 + r;
|
|
111
112
|
};
|
|
112
|
-
for (let [e, t] of [["min",
|
|
113
|
-
let
|
|
114
|
-
|
|
115
|
-
},
|
|
113
|
+
for (let [e, t] of [["min", T.min], ["max", T.max]]) t && I(t) === null && be.throw(`BbTimePicker: ${e} must be in the format HH:mm`);
|
|
114
|
+
let L = d(() => T.activeSegment ?? Se.value), Se = b("start"), Ce = (e) => {
|
|
115
|
+
Se.value = e, E("update:activeSegment", e);
|
|
116
|
+
}, we = d(() => [{
|
|
116
117
|
value: "start",
|
|
117
|
-
label:
|
|
118
|
+
label: k("timePickerInput.start").value
|
|
118
119
|
}, {
|
|
119
120
|
value: "end",
|
|
120
|
-
label:
|
|
121
|
-
}]),
|
|
121
|
+
label: k("timePickerInput.end").value
|
|
122
|
+
}]), Te = d(() => `${k("timePickerInput.start").value} / ${k("timePickerInput.end").value}`), R = b(), z = b(), Ee = d(() => T.activator != null), De = (e) => {
|
|
122
123
|
R.value = a(e) ?? void 0;
|
|
123
|
-
},
|
|
124
|
+
}, Oe = (e) => {
|
|
124
125
|
z.value = a(e) ?? void 0;
|
|
125
126
|
};
|
|
126
|
-
|
|
127
|
+
C(() => T.activator, (e) => {
|
|
127
128
|
R.value = a(e) ?? void 0;
|
|
128
|
-
}, { immediate: !0 }),
|
|
129
|
+
}, { immediate: !0 }), C(() => T.anchor, (e) => {
|
|
129
130
|
z.value = e == null ? void 0 : a(e) ?? void 0;
|
|
130
131
|
}, { immediate: !0 });
|
|
131
|
-
let
|
|
132
|
-
|
|
132
|
+
let ke = d(() => z.value ?? R.value), B = b(!1), V = null, H = (e) => {
|
|
133
|
+
T.disabled || T.readonly || (e.stopPropagation(), B.value || (X.value = Y()), B.value = !B.value);
|
|
133
134
|
}, U = (e) => {
|
|
134
135
|
e.target instanceof HTMLDialogElement && (B.value = !1);
|
|
135
136
|
};
|
|
136
|
-
|
|
137
|
-
e ? (V = document.activeElement instanceof HTMLElement ? document.activeElement : null, Z.value || document.addEventListener("click", U, { passive: !0 }), await
|
|
137
|
+
C(B, async (e) => {
|
|
138
|
+
e ? (V = document.activeElement instanceof HTMLElement ? document.activeElement : null, Z.value || document.addEventListener("click", U, { passive: !0 }), await le(), ee(document.getElementById(N), "[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", U), V?.focus(), V = null);
|
|
138
139
|
});
|
|
139
140
|
let W = null, G = b();
|
|
140
|
-
|
|
141
|
+
C(R, (e) => {
|
|
141
142
|
if (W?.(), W = null, !e) return;
|
|
142
143
|
let t = !e.id;
|
|
143
|
-
t && (e.id = `${
|
|
144
|
+
t && (e.id = `${M}_activator`), G.value = e.id, e.addEventListener("click", H), W = () => {
|
|
144
145
|
e.removeEventListener("click", H), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), t && e.removeAttribute("id"), G.value = void 0;
|
|
145
146
|
};
|
|
146
147
|
}, { immediate: !0 });
|
|
147
|
-
let K = d(() =>
|
|
148
|
-
|
|
149
|
-
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${q} ${e.id}`), t ? e.setAttribute("aria-controls",
|
|
150
|
-
}, { immediate: !0 }),
|
|
148
|
+
let K = d(() => T.label ?? k("timePickerInput.openPicker").value), q = `${M}_label`, J = d(() => G.value ? `${q} ${G.value}` : q);
|
|
149
|
+
C([R, B], ([e, t]) => {
|
|
150
|
+
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${q} ${e.id}`), t ? e.setAttribute("aria-controls", N) : e.removeAttribute("aria-controls"));
|
|
151
|
+
}, { immediate: !0 }), de(() => {
|
|
151
152
|
W?.(), document.removeEventListener("click", U);
|
|
152
153
|
});
|
|
153
|
-
let Y = () => (
|
|
154
|
-
|
|
155
|
-
() =>
|
|
156
|
-
|
|
154
|
+
let Y = () => (T.adaptive ?? O.adaptive) && A.value ? "canvas" : "popover", X = b(Y()), Z = d(() => X.value === "canvas");
|
|
155
|
+
C([
|
|
156
|
+
() => T.adaptive,
|
|
157
|
+
A,
|
|
157
158
|
B
|
|
158
159
|
], () => {
|
|
159
160
|
B.value || (X.value = Y());
|
|
160
|
-
}),
|
|
161
|
-
let
|
|
161
|
+
}), ie(() => B.value && !Z.value, () => B.value = !1);
|
|
162
|
+
let Ae = d(() => ({
|
|
162
163
|
side: "bottom",
|
|
163
164
|
size: "auto",
|
|
164
165
|
draggable: !0,
|
|
165
|
-
transitionDuration:
|
|
166
|
+
transitionDuration: T.transitionDuration,
|
|
166
167
|
hideClose: !0,
|
|
167
|
-
...
|
|
168
|
-
...t(
|
|
169
|
-
})),
|
|
170
|
-
R.value?.focus(),
|
|
171
|
-
},
|
|
172
|
-
let t =
|
|
173
|
-
return t == null ? null : Array.isArray(t) ? t[
|
|
174
|
-
},
|
|
175
|
-
let t = Q(e), n = t ?
|
|
168
|
+
...T.offCanvasProps?.title ? {} : { "aria-labelledby": J.value },
|
|
169
|
+
...t(T.offCanvasProps)
|
|
170
|
+
})), je = () => {
|
|
171
|
+
R.value?.focus(), E("hidden");
|
|
172
|
+
}, Me = (e) => +(e === "end"), Q = (e) => {
|
|
173
|
+
let t = T.modelValue;
|
|
174
|
+
return t == null ? null : Array.isArray(t) ? t[Me(e)] ?? null : e === "start" && typeof t == "string" ? t : null;
|
|
175
|
+
}, Ne = (e) => {
|
|
176
|
+
let t = Q(e), n = t ? F.exec(t) : null;
|
|
176
177
|
return n ? {
|
|
177
178
|
hour: n[1].padStart(2, "0"),
|
|
178
179
|
minute: n[2].padStart(2, "0"),
|
|
179
180
|
second: (n[3] ?? "").padStart(n[3] ? 2 : 0, "0")
|
|
180
181
|
} : null;
|
|
181
|
-
}, $ = d(() =>
|
|
182
|
-
let t =
|
|
183
|
-
return t === null ? e :
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
let t =
|
|
182
|
+
}, $ = d(() => Ne(L.value)), Pe = d(() => $.value?.hour ?? ""), Fe = d(() => $.value?.minute ?? ""), Ie = d(() => $.value?.second ?? ""), Le = (e) => T.seconds ? `${e.hour}:${e.minute}:${e.second || "00"}` : `${e.hour}:${e.minute}`, Re = (e) => {
|
|
183
|
+
let t = I(e);
|
|
184
|
+
return t === null ? e : T.min && t < I(T.min) ? T.min + (T.seconds ? ":00" : "") : T.max && t > I(T.max) ? T.max + (T.seconds ? ":00" : "") : e;
|
|
185
|
+
}, ze = (e) => {
|
|
186
|
+
E("time-pick", e);
|
|
187
|
+
let t = L.value, n = $.value ? { ...$.value } : {
|
|
187
188
|
hour: "",
|
|
188
189
|
minute: "",
|
|
189
190
|
second: ""
|
|
@@ -192,64 +193,64 @@ var _e = ["aria-label"], ve = [
|
|
|
192
193
|
let t = n.hour ? parseInt(n.hour, 10) : 0, r = e.value === "PM";
|
|
193
194
|
r && t < 12 && (t += 12), !r && t >= 12 && (t -= 12), n.hour = String(t).padStart(2, "0");
|
|
194
195
|
} else n[e.unit] = e.value;
|
|
195
|
-
n.hour ||= "00", n.minute ||= "00",
|
|
196
|
-
let r =
|
|
197
|
-
if (i !== r &&
|
|
196
|
+
n.hour ||= "00", n.minute ||= "00", T.seconds && !n.second && (n.second = "00");
|
|
197
|
+
let r = Le(n), i = Re(r);
|
|
198
|
+
if (i !== r && E("error", {
|
|
198
199
|
code: "disabled_time",
|
|
199
200
|
original: r,
|
|
200
201
|
normalized: i
|
|
201
|
-
}), !
|
|
202
|
-
|
|
202
|
+
}), !T.range) {
|
|
203
|
+
E("update:modelValue", i);
|
|
203
204
|
return;
|
|
204
205
|
}
|
|
205
206
|
let a = Q(t === "start" ? "end" : "start"), o = t === "start" ? i : a, s = t === "start" ? a : i, c = [];
|
|
206
|
-
o && c.push(o), s && c.push(s),
|
|
207
|
+
o && c.push(o), s && c.push(s), E("update:modelValue", c);
|
|
207
208
|
};
|
|
208
|
-
return
|
|
209
|
+
return fe(() => {
|
|
209
210
|
B.value = !1;
|
|
210
|
-
}), (e, t) => (y(),
|
|
211
|
-
|
|
211
|
+
}), (e, t) => (y(), p(u, null, [
|
|
212
|
+
Ee.value ? se("", !0) : me(e.$slots, "activator", v(_({ key: 0 }, {
|
|
212
213
|
props: {
|
|
213
|
-
ref:
|
|
214
|
+
ref: De,
|
|
214
215
|
"aria-haspopup": "dialog",
|
|
215
216
|
"aria-expanded": B.value ? "true" : "false",
|
|
216
217
|
"aria-labelledby": J.value
|
|
217
218
|
},
|
|
218
|
-
anchorProps: { ref:
|
|
219
|
+
anchorProps: { ref: Oe },
|
|
219
220
|
open: B.value,
|
|
220
221
|
value: e.modelValue,
|
|
221
222
|
text: ye.value,
|
|
222
223
|
disabled: !!e.disabled
|
|
223
224
|
}))),
|
|
224
|
-
|
|
225
|
+
m("span", {
|
|
225
226
|
id: q,
|
|
226
227
|
hidden: ""
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
default:
|
|
228
|
+
}, x(K.value), 1),
|
|
229
|
+
h(S(xe), null, {
|
|
230
|
+
default: w(() => [e.range ? (y(), p("div", {
|
|
230
231
|
key: 0,
|
|
231
|
-
"aria-label":
|
|
232
|
+
"aria-label": Te.value,
|
|
232
233
|
class: "bb-time-picker__segments",
|
|
233
234
|
role: "group"
|
|
234
|
-
}, [(y(!0),
|
|
235
|
+
}, [(y(!0), p(u, null, pe(we.value, (t) => (y(), p("button", {
|
|
235
236
|
key: t.value,
|
|
236
|
-
"aria-pressed":
|
|
237
|
-
class:
|
|
237
|
+
"aria-pressed": L.value === t.value,
|
|
238
|
+
class: ue(["bb-time-picker__segment", { "bb-time-picker__segment--active": L.value === t.value }]),
|
|
238
239
|
disabled: e.disabled || e.readonly,
|
|
239
240
|
type: "button",
|
|
240
|
-
onClick: (e) =>
|
|
241
|
-
},
|
|
241
|
+
onClick: (e) => Ce(t.value)
|
|
242
|
+
}, x(t.label), 11, ve))), 128))], 8, _e)) : se("", !0), h(ae, {
|
|
242
243
|
ampm: e.ampm,
|
|
243
244
|
disabled: e.disabled || e.readonly,
|
|
244
|
-
hour:
|
|
245
|
+
hour: Pe.value,
|
|
245
246
|
max: e.max,
|
|
246
247
|
min: e.min,
|
|
247
|
-
minute:
|
|
248
|
-
passthrough:
|
|
249
|
-
second:
|
|
248
|
+
minute: Fe.value,
|
|
249
|
+
passthrough: S(D),
|
|
250
|
+
second: Ie.value,
|
|
250
251
|
seconds: e.seconds,
|
|
251
252
|
step: e.step,
|
|
252
|
-
onSelect:
|
|
253
|
+
onSelect: ze
|
|
253
254
|
}, null, 8, [
|
|
254
255
|
"ampm",
|
|
255
256
|
"disabled",
|
|
@@ -264,31 +265,31 @@ var _e = ["aria-label"], ve = [
|
|
|
264
265
|
])]),
|
|
265
266
|
_: 1
|
|
266
267
|
}),
|
|
267
|
-
Z.value ? (y(), f(
|
|
268
|
+
Z.value ? (y(), f(re, _({
|
|
268
269
|
key: 1,
|
|
269
270
|
modelValue: B.value,
|
|
270
271
|
"onUpdate:modelValue": t[0] ||= (e) => B.value = e,
|
|
271
272
|
class: "bb-time-picker__sheet",
|
|
272
|
-
pt:
|
|
273
|
+
pt: S(D).forward({
|
|
273
274
|
panel: "root",
|
|
274
275
|
sheet: "root"
|
|
275
|
-
},
|
|
276
|
-
}, _(
|
|
277
|
-
onHidden:
|
|
278
|
-
onHide: t[1] ||= (e) =>
|
|
279
|
-
onShow: t[2] ||= (e) =>
|
|
280
|
-
onShown: t[3] ||= (e) =>
|
|
276
|
+
}, S(ne).states, () => e.offCanvasProps?.pt)
|
|
277
|
+
}, _(Ae.value, S(D).forwardAttrs), {
|
|
278
|
+
onHidden: je,
|
|
279
|
+
onHide: t[1] ||= (e) => E("hide"),
|
|
280
|
+
onShow: t[2] ||= (e) => E("show"),
|
|
281
|
+
onShown: t[3] ||= (e) => E("shown")
|
|
281
282
|
}), {
|
|
282
|
-
default:
|
|
283
|
+
default: w(() => [m("div", v(ce(P.value)), [h(S(j))], 16)]),
|
|
283
284
|
_: 1
|
|
284
285
|
}, 16, ["modelValue", "pt"])) : (y(), f(s, _({
|
|
285
286
|
key: 2,
|
|
286
287
|
modelValue: B.value,
|
|
287
288
|
"onUpdate:modelValue": t[4] ||= (e) => B.value = e,
|
|
288
|
-
anchor:
|
|
289
|
+
anchor: ke.value,
|
|
289
290
|
"aria-label": K.value,
|
|
290
291
|
boundary: e.boundary,
|
|
291
|
-
"bubble-attrs":
|
|
292
|
+
"bubble-attrs": P.value,
|
|
292
293
|
class: "bb-time-picker",
|
|
293
294
|
dialog: "",
|
|
294
295
|
"disable-flip": e.disableFlip,
|
|
@@ -298,12 +299,12 @@ var _e = ["aria-label"], ve = [
|
|
|
298
299
|
padding: e.padding,
|
|
299
300
|
placement: e.placement,
|
|
300
301
|
"transition-duration": e.transitionDuration,
|
|
301
|
-
onHidden: t[5] ||= (e) =>
|
|
302
|
-
onHide: t[6] ||= (e) =>
|
|
303
|
-
onShow: t[7] ||= (e) =>
|
|
304
|
-
onShown: t[8] ||= (e) =>
|
|
305
|
-
},
|
|
306
|
-
default:
|
|
302
|
+
onHidden: t[5] ||= (e) => E("hidden"),
|
|
303
|
+
onHide: t[6] ||= (e) => E("hide"),
|
|
304
|
+
onShow: t[7] ||= (e) => E("show"),
|
|
305
|
+
onShown: t[8] ||= (e) => E("shown")
|
|
306
|
+
}, S(D).rootAttrs), {
|
|
307
|
+
default: w(() => [h(S(j))]),
|
|
307
308
|
_: 1
|
|
308
309
|
}, 16, [
|
|
309
310
|
"modelValue",
|
|
@@ -322,4 +323,4 @@ var _e = ["aria-label"], ve = [
|
|
|
322
323
|
}
|
|
323
324
|
});
|
|
324
325
|
//#endregion
|
|
325
|
-
export {
|
|
326
|
+
export { T as default };
|