bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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 +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import e from "../BbIcon/BbIcon.vue.js";
|
|
2
|
+
import t from "../../assets/svgs/eyedropper.svg_raw.js";
|
|
3
|
+
import { asSheetAttrs as n } from "../BbOffCanvas/sheetAttrs.js";
|
|
4
|
+
import { useConfigDefaults as r, useConfigSetting as i } from "../../composables/useConfigDefaults.js";
|
|
5
|
+
import { extractDomContainer as a } from "../../utilities/functions/extractDomContainer.js";
|
|
6
|
+
import { useClosingInert as o } from "../../composables/useClosingInert.js";
|
|
7
|
+
import { useId as s } from "../../composables/useId.js";
|
|
8
|
+
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
9
|
+
import { useEscapeStackEntry as te } from "../../composables/useEscapeStackEntry.js";
|
|
10
|
+
import { useMobile as c } from "../../composables/useMobile.js";
|
|
11
|
+
import ne from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
12
|
+
import { BB_OFF_CANVAS_PT as re } from "../BbOffCanvas/types.js";
|
|
13
|
+
import ie from "../CommonPopover/CommonPopover.vue.js";
|
|
14
|
+
import { removedPropsFor as ae } from "../../deprecation/removedProps.js";
|
|
15
|
+
import { warnRemovedAttrs as oe } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
16
|
+
import { BB_COLOR_PALETTE_PT as se } from "./types.js";
|
|
17
|
+
import { usePassthrough as ce } from "../../composables/usePassthrough.js";
|
|
18
|
+
import { withoutPt as le } from "../../utils/passthrough.js";
|
|
17
19
|
import { transitions as l } from "../../utilities/misc/transitions.js";
|
|
18
|
-
import { Fragment as u, computed as d, createBlock as
|
|
19
|
-
import { createReusableTemplate as
|
|
20
|
+
import { Fragment as u, computed as d, createBlock as ue, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as de, guardReactiveProps as fe, mergeProps as g, nextTick as pe, normalizeClass as me, normalizeProps as he, normalizeStyle as _, onBeforeUnmount as ge, onDeactivated as _e, openBlock as v, ref as y, renderList as ve, renderSlot as ye, toDisplayString as be, unref as b, useAttrs as xe, watch as x, withCtx as Se } from "vue";
|
|
21
|
+
import { createReusableTemplate as Ce } from "@vueuse/core";
|
|
20
22
|
// src/components/BbColorPalette/BbColorPalette.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
-
var
|
|
23
|
+
var we = ["aria-label"], Te = {
|
|
22
24
|
"aria-live": "polite",
|
|
23
25
|
class: "bb-color-palette__canvas-announcer",
|
|
24
26
|
role: "status"
|
|
25
|
-
},
|
|
27
|
+
}, Ee = { class: "bb-color-palette__controls" }, De = { class: "bb-color-palette__preview-wrap" }, Oe = { class: "bb-color-palette__sliders" }, ke = ["aria-label", "aria-valuenow"], Ae = ["aria-label", "aria-valuenow"], je = ["aria-label", "disabled"], Me = {
|
|
26
28
|
key: 0,
|
|
27
29
|
class: "bb-color-palette__swatches"
|
|
28
|
-
},
|
|
30
|
+
}, Ne = [
|
|
29
31
|
"aria-label",
|
|
30
32
|
"aria-pressed",
|
|
31
33
|
"onClick"
|
|
32
|
-
], S = /*@__PURE__*/
|
|
34
|
+
], S = /*@__PURE__*/ de({
|
|
33
35
|
inheritAttrs: !1,
|
|
34
36
|
__name: "BbColorPalette",
|
|
35
37
|
props: {
|
|
@@ -64,7 +66,7 @@ var xe = ["aria-label"], Se = {
|
|
|
64
66
|
},
|
|
65
67
|
label: {},
|
|
66
68
|
modelValue: {},
|
|
67
|
-
offset: { default:
|
|
69
|
+
offset: { default: void 0 },
|
|
68
70
|
padding: { default: 6 },
|
|
69
71
|
placement: {},
|
|
70
72
|
readonly: { type: Boolean },
|
|
@@ -78,75 +80,75 @@ var xe = ["aria-label"], Se = {
|
|
|
78
80
|
"hidden",
|
|
79
81
|
"update:modelValue"
|
|
80
82
|
],
|
|
81
|
-
setup(l, { emit:
|
|
82
|
-
let S = l, C =
|
|
83
|
+
setup(l, { emit: de }) {
|
|
84
|
+
let S = l, C = de, Pe = i(null, "popoverOffset"), w = ce({
|
|
83
85
|
component: "BbColorPalette",
|
|
84
86
|
props: S,
|
|
85
|
-
parts:
|
|
86
|
-
states:
|
|
87
|
+
parts: se.parts,
|
|
88
|
+
states: se.states,
|
|
87
89
|
active: { open: () => O.value },
|
|
88
|
-
attrs:
|
|
89
|
-
})
|
|
90
|
-
process.env.NODE_ENV !== "production" &&
|
|
91
|
-
let { t: T } =
|
|
92
|
-
D.value =
|
|
93
|
-
},
|
|
94
|
-
|
|
90
|
+
attrs: xe()
|
|
91
|
+
});
|
|
92
|
+
process.env.NODE_ENV !== "production" && oe("BbColorPalette", ae("BbColorPalette"));
|
|
93
|
+
let { t: T } = ee(), { isMobile: Fe } = c(), E = s().id.value, Ie = `${E}_panel`, [Le, Re] = Ce(), D = y(), ze = y(), Be = d(() => S.activator != null), Ve = (e) => {
|
|
94
|
+
D.value = a(e) ?? void 0;
|
|
95
|
+
}, He = (e) => {
|
|
96
|
+
ze.value = a(e) ?? void 0;
|
|
95
97
|
};
|
|
96
98
|
x(() => S.activator, (e) => {
|
|
97
|
-
D.value =
|
|
99
|
+
D.value = a(e) ?? void 0;
|
|
98
100
|
}, { immediate: !0 }), x(() => S.anchor, (e) => {
|
|
99
|
-
|
|
101
|
+
ze.value = e == null ? void 0 : a(e) ?? void 0;
|
|
100
102
|
}, { immediate: !0 });
|
|
101
|
-
let
|
|
103
|
+
let Ue = d(() => ze.value ?? D.value), O = y(!1), We = o(O, () => S.transitionDuration), Ge = null, Ke = (e) => {
|
|
102
104
|
S.disabled || S.readonly || (e.stopPropagation(), O.value = !O.value);
|
|
103
|
-
},
|
|
105
|
+
}, qe = (e) => {
|
|
104
106
|
e.target instanceof HTMLDialogElement && (O.value = !1);
|
|
105
107
|
};
|
|
106
108
|
x(O, async (e) => {
|
|
107
|
-
e ? (
|
|
109
|
+
e ? (Xe.value = Ye(), Ge = document.activeElement instanceof HTMLElement ? document.activeElement : null, k.value || document.addEventListener("click", qe, { passive: !0 }), await pe(), U.value?.focus()) : (document.removeEventListener("click", qe), Ge?.focus(), Ge = null);
|
|
108
110
|
});
|
|
109
|
-
let
|
|
111
|
+
let Je = r("BbColorPalette", S, { adaptive: !0 }), Ye = () => Je.adaptive && Fe.value ? "canvas" : "popover", Xe = y(Ye()), k = d(() => Xe.value === "canvas");
|
|
110
112
|
x([
|
|
111
|
-
() =>
|
|
112
|
-
|
|
113
|
+
() => Je.adaptive,
|
|
114
|
+
Fe,
|
|
113
115
|
O
|
|
114
116
|
], () => {
|
|
115
|
-
O.value || (
|
|
116
|
-
}),
|
|
117
|
-
let
|
|
117
|
+
O.value || (Xe.value = Ye());
|
|
118
|
+
}), te(() => O.value && !k.value, () => O.value = !1);
|
|
119
|
+
let Ze = d(() => ({
|
|
118
120
|
side: "bottom",
|
|
119
121
|
size: "auto",
|
|
120
122
|
draggable: !0,
|
|
121
123
|
hideClose: !0,
|
|
122
124
|
eager: S.eager,
|
|
123
125
|
transitionDuration: S.transitionDuration,
|
|
124
|
-
...S.offCanvasProps?.title ? {} : { "aria-labelledby":
|
|
125
|
-
...
|
|
126
|
-
})),
|
|
126
|
+
...S.offCanvasProps?.title ? {} : { "aria-labelledby": et.value },
|
|
127
|
+
...le(S.offCanvasProps)
|
|
128
|
+
})), Qe = () => {
|
|
127
129
|
D.value?.focus(), C("hidden");
|
|
128
130
|
}, A = null, j = y();
|
|
129
131
|
x(D, (e) => {
|
|
130
132
|
if (A?.(), A = null, !e) return;
|
|
131
133
|
let t = !e.id;
|
|
132
|
-
t && (e.id = `${E}_activator`), j.value = e.id, e.addEventListener("click",
|
|
133
|
-
e.removeEventListener("click",
|
|
134
|
+
t && (e.id = `${E}_activator`), j.value = e.id, e.addEventListener("click", Ke), A = () => {
|
|
135
|
+
e.removeEventListener("click", Ke), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), t && e.removeAttribute("id"), j.value = void 0;
|
|
134
136
|
};
|
|
135
137
|
}, { immediate: !0 });
|
|
136
|
-
let
|
|
137
|
-
ref:
|
|
138
|
+
let $e = d(() => S.label ?? T("colorInput.openPicker").value), M = `${E}_label`, et = d(() => j.value ? `${M} ${j.value}` : M), N = /* @__PURE__ */ new WeakSet(), tt = d(() => S.disabled ? {
|
|
139
|
+
ref: Ve,
|
|
138
140
|
disabled: !0,
|
|
139
141
|
"aria-disabled": "true"
|
|
140
|
-
} : { ref:
|
|
142
|
+
} : { ref: Ve });
|
|
141
143
|
x([
|
|
142
144
|
D,
|
|
143
145
|
O,
|
|
144
146
|
() => S.disabled,
|
|
145
147
|
() => S.readonly
|
|
146
148
|
], ([e, t, n, r]) => {
|
|
147
|
-
e && (e.setAttribute("aria-labelledby", `${M} ${e.id}`), n ? (e.setAttribute("disabled", ""), e.setAttribute("aria-disabled", "true"), N.add(e)) : N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), n || r ? (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls")) : (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), t ? e.setAttribute("aria-controls",
|
|
148
|
-
}, { immediate: !0 }),
|
|
149
|
-
A?.(), document.removeEventListener("click",
|
|
149
|
+
e && (e.setAttribute("aria-labelledby", `${M} ${e.id}`), n ? (e.setAttribute("disabled", ""), e.setAttribute("aria-disabled", "true"), N.add(e)) : N.has(e) && (e.removeAttribute("disabled"), e.removeAttribute("aria-disabled"), N.delete(e)), n || r ? (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls")) : (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), t ? e.setAttribute("aria-controls", Ie) : e.removeAttribute("aria-controls")));
|
|
150
|
+
}, { immediate: !0 }), ge(() => {
|
|
151
|
+
A?.(), document.removeEventListener("click", qe);
|
|
150
152
|
});
|
|
151
153
|
function P(e, t, n) {
|
|
152
154
|
let r = (r) => {
|
|
@@ -159,7 +161,7 @@ var xe = ["aria-label"], Se = {
|
|
|
159
161
|
Math.round(r(1) * 255)
|
|
160
162
|
];
|
|
161
163
|
}
|
|
162
|
-
function
|
|
164
|
+
function nt(e, t, n) {
|
|
163
165
|
let r = e / 255, i = t / 255, a = n / 255, o = Math.max(r, i, a), s = o - Math.min(r, i, a), ee = o === 0 ? 0 : s / o, te = o, c = 0;
|
|
164
166
|
return s !== 0 && (c = o === r ? ((i - a) / s + (i < a ? 6 : 0)) / 6 : o === i ? ((a - r) / s + 2) / 6 : ((r - i) / s + 4) / 6), [
|
|
165
167
|
c * 360,
|
|
@@ -167,7 +169,7 @@ var xe = ["aria-label"], Se = {
|
|
|
167
169
|
te
|
|
168
170
|
];
|
|
169
171
|
}
|
|
170
|
-
function
|
|
172
|
+
function rt(e) {
|
|
171
173
|
let t = e.replace(/^#/, "");
|
|
172
174
|
return t.length === 3 ? [
|
|
173
175
|
parseInt(t[0] + t[0], 16),
|
|
@@ -194,11 +196,11 @@ var xe = ["aria-label"], Se = {
|
|
|
194
196
|
function F(e) {
|
|
195
197
|
return Math.round(Math.max(0, Math.min(255, e))).toString(16).padStart(2, "0");
|
|
196
198
|
}
|
|
197
|
-
function
|
|
199
|
+
function it(e, t, n, r, i) {
|
|
198
200
|
let a = `#${F(e)}${F(t)}${F(n)}`;
|
|
199
201
|
return i ? a + F(r * 255) : a;
|
|
200
202
|
}
|
|
201
|
-
let
|
|
203
|
+
let at = [
|
|
202
204
|
[
|
|
203
205
|
"#FFCDD2",
|
|
204
206
|
"#EF9A9A",
|
|
@@ -243,11 +245,11 @@ var xe = ["aria-label"], Se = {
|
|
|
243
245
|
]
|
|
244
246
|
], I = y(0), L = y(1), R = y(1), z = y(1), B = d(() => {
|
|
245
247
|
let [e, t, n] = P(I.value, L.value, R.value);
|
|
246
|
-
return
|
|
247
|
-
}),
|
|
248
|
+
return it(e, t, n, z.value, S.alpha);
|
|
249
|
+
}), ot = d(() => {
|
|
248
250
|
let [e, t, n] = P(I.value, L.value, R.value);
|
|
249
251
|
return S.alpha ? `rgba(${e},${t},${n},${z.value})` : `rgb(${e},${t},${n})`;
|
|
250
|
-
}),
|
|
252
|
+
}), st = d(() => !!S.swatches), ct = d(() => Array.isArray(S.swatches) ? S.swatches : at), V = y(null), lt = y(null), H = y(null), U = y(null), W = y(null), G = y(null), K = () => {
|
|
251
253
|
let e = V.value;
|
|
252
254
|
if (!e || e.width === 0 || e.height === 0) return;
|
|
253
255
|
let t = e.getContext("2d");
|
|
@@ -256,8 +258,8 @@ var xe = ["aria-label"], Se = {
|
|
|
256
258
|
a.addColorStop(0, "#ffffff"), a.addColorStop(1, `rgb(${n},${r},${i})`), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height);
|
|
257
259
|
let o = t.createLinearGradient(0, 0, 0, e.height);
|
|
258
260
|
o.addColorStop(0, "rgba(0,0,0,0)"), o.addColorStop(1, "rgba(0,0,0,1)"), t.fillStyle = o, t.fillRect(0, 0, e.width, e.height);
|
|
259
|
-
},
|
|
260
|
-
let e =
|
|
261
|
+
}, ut = () => {
|
|
262
|
+
let e = lt.value;
|
|
261
263
|
if (!e || e.width === 0 || e.height === 0) return;
|
|
262
264
|
let t = e.getContext("2d");
|
|
263
265
|
if (!t) return;
|
|
@@ -272,33 +274,33 @@ var xe = ["aria-label"], Se = {
|
|
|
272
274
|
t.clearRect(0, 0, e.width, e.height);
|
|
273
275
|
let [n, r, i] = P(I.value, L.value, R.value), a = t.createLinearGradient(0, 0, e.width, 0);
|
|
274
276
|
a.addColorStop(0, `rgba(${n},${r},${i},0)`), a.addColorStop(1, `rgba(${n},${r},${i},1)`), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height);
|
|
275
|
-
},
|
|
276
|
-
K(),
|
|
277
|
-
}, J = null,
|
|
277
|
+
}, dt = () => {
|
|
278
|
+
K(), ut(), S.alpha && q();
|
|
279
|
+
}, J = null, ft = (e) => {
|
|
278
280
|
e.width = e.offsetWidth, e.height = e.offsetHeight;
|
|
279
|
-
}, lt = () => {
|
|
280
|
-
let e = V.value, t = at.value;
|
|
281
|
-
e && t && e.offsetWidth !== 0 && (ct(e), ct(t), S.alpha && H.value && ct(H.value), st());
|
|
282
|
-
}, ut = !1, dt = () => {
|
|
283
|
-
I.value = 0, L.value = 1, R.value = 1, z.value = 1, yt.value = "", X.value = !1, Z.value = !1, Q.value = !1, $.value = !1, Nt = void 0;
|
|
284
|
-
}, ft = () => {
|
|
285
|
-
ut = !0, J = new ResizeObserver(lt), V.value && J.observe(V.value), ht(S.modelValue), lt();
|
|
286
281
|
}, pt = () => {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
282
|
+
let e = V.value, t = lt.value;
|
|
283
|
+
e && t && e.offsetWidth !== 0 && (ft(e), ft(t), S.alpha && H.value && ft(H.value), dt());
|
|
284
|
+
}, mt = !1, ht = () => {
|
|
285
|
+
I.value = 0, L.value = 1, R.value = 1, z.value = 1, Ct.value = "", X.value = !1, Z.value = !1, Q.value = !1, $.value = !1, Lt = void 0;
|
|
286
|
+
}, gt = () => {
|
|
287
|
+
mt = !0, J = new ResizeObserver(pt), V.value && J.observe(V.value), yt(S.modelValue), pt();
|
|
288
|
+
}, _t = () => {
|
|
289
|
+
mt = !1, J?.disconnect(), J = null, ht();
|
|
290
|
+
}, vt = d(() => g({
|
|
291
|
+
id: Ie,
|
|
290
292
|
class: "bb-color-palette__panel",
|
|
291
|
-
inert:
|
|
292
|
-
}, k.value ? {} : w.panel ?? {})),
|
|
293
|
+
inert: We.value
|
|
294
|
+
}, k.value ? {} : w.panel ?? {})), yt = (e) => {
|
|
293
295
|
if (e) try {
|
|
294
|
-
let [t, n, r, i] =
|
|
296
|
+
let [t, n, r, i] = rt(e), [a, o, s] = nt(t, n, r);
|
|
295
297
|
o > .01 && (I.value = a), L.value = o, R.value = s, z.value = i;
|
|
296
298
|
} catch {}
|
|
297
299
|
};
|
|
298
300
|
x(() => S.modelValue, (e) => {
|
|
299
|
-
|
|
301
|
+
mt && (e && e === B.value || (e ? yt(e) : (I.value = 0, L.value = 1, R.value = 1, z.value = 1), K(), S.alpha && q()));
|
|
300
302
|
});
|
|
301
|
-
let Y = () => C("update:modelValue", B.value), X = y(!1),
|
|
303
|
+
let Y = () => C("update:modelValue", B.value), X = y(!1), bt = (e) => {
|
|
302
304
|
let t = U.value;
|
|
303
305
|
if (!t) return {
|
|
304
306
|
s: L.value,
|
|
@@ -309,19 +311,19 @@ var xe = ["aria-label"], Se = {
|
|
|
309
311
|
s: Math.max(0, Math.min(1, (e.clientX - n.left) / n.width)),
|
|
310
312
|
v: Math.max(0, Math.min(1, 1 - (e.clientY - n.top) / n.height))
|
|
311
313
|
};
|
|
312
|
-
},
|
|
314
|
+
}, xt = (e) => {
|
|
313
315
|
U.value?.setPointerCapture(e.pointerId), X.value = !0;
|
|
314
|
-
let { s: t, v: n } =
|
|
316
|
+
let { s: t, v: n } = bt(e);
|
|
315
317
|
L.value = t, R.value = n, S.alpha && q(), Y();
|
|
316
|
-
},
|
|
318
|
+
}, St = (e) => {
|
|
317
319
|
if (!X.value) return;
|
|
318
|
-
let { s: t, v: n } =
|
|
320
|
+
let { s: t, v: n } = bt(e);
|
|
319
321
|
L.value = t, R.value = n, S.alpha && q(), Y();
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
U.value?.releasePointerCapture(e.pointerId), X.value &&
|
|
324
|
-
},
|
|
322
|
+
}, Ct = y(""), wt = () => {
|
|
323
|
+
Ct.value = T("colorInput.mainCanvasSelectedColor", B.value).value;
|
|
324
|
+
}, Tt = (e) => {
|
|
325
|
+
U.value?.releasePointerCapture(e.pointerId), X.value && wt(), X.value = !1;
|
|
326
|
+
}, Et = (e) => {
|
|
325
327
|
let t = e.shiftKey ? .05 : .01;
|
|
326
328
|
switch (e.key) {
|
|
327
329
|
case "ArrowLeft":
|
|
@@ -338,19 +340,19 @@ var xe = ["aria-label"], Se = {
|
|
|
338
340
|
break;
|
|
339
341
|
default: return;
|
|
340
342
|
}
|
|
341
|
-
S.alpha && q(), Y(),
|
|
342
|
-
}, Z = y(!1),
|
|
343
|
+
S.alpha && q(), Y(), wt(), e.preventDefault();
|
|
344
|
+
}, Z = y(!1), Dt = (e) => {
|
|
343
345
|
let t = W.value;
|
|
344
346
|
if (!t) return I.value;
|
|
345
347
|
let n = t.getBoundingClientRect();
|
|
346
348
|
return Math.max(0, Math.min(360, (e.clientX - n.left) / n.width * 360));
|
|
347
|
-
},
|
|
348
|
-
W.value?.setPointerCapture(e.pointerId), Z.value = !0, I.value =
|
|
349
|
-
},
|
|
350
|
-
Z.value && (I.value =
|
|
351
|
-
},
|
|
349
|
+
}, Ot = (e) => {
|
|
350
|
+
W.value?.setPointerCapture(e.pointerId), Z.value = !0, I.value = Dt(e), K(), S.alpha && q(), Y();
|
|
351
|
+
}, kt = (e) => {
|
|
352
|
+
Z.value && (I.value = Dt(e), K(), S.alpha && q(), Y());
|
|
353
|
+
}, At = (e) => {
|
|
352
354
|
W.value?.releasePointerCapture(e.pointerId), Z.value = !1;
|
|
353
|
-
},
|
|
355
|
+
}, jt = (e) => {
|
|
354
356
|
let t = e.shiftKey ? 10 : 1;
|
|
355
357
|
switch (e.key) {
|
|
356
358
|
case "ArrowLeft":
|
|
@@ -362,18 +364,18 @@ var xe = ["aria-label"], Se = {
|
|
|
362
364
|
default: return;
|
|
363
365
|
}
|
|
364
366
|
K(), S.alpha && q(), Y(), e.preventDefault();
|
|
365
|
-
}, Q = y(!1),
|
|
367
|
+
}, Q = y(!1), Mt = (e) => {
|
|
366
368
|
let t = G.value;
|
|
367
369
|
if (!t) return z.value;
|
|
368
370
|
let n = t.getBoundingClientRect();
|
|
369
371
|
return Math.max(0, Math.min(1, (e.clientX - n.left) / n.width));
|
|
370
|
-
},
|
|
371
|
-
G.value?.setPointerCapture(e.pointerId), Q.value = !0, z.value =
|
|
372
|
-
},
|
|
373
|
-
Q.value && (z.value =
|
|
374
|
-
},
|
|
372
|
+
}, Nt = (e) => {
|
|
373
|
+
G.value?.setPointerCapture(e.pointerId), Q.value = !0, z.value = Mt(e), Y();
|
|
374
|
+
}, Pt = (e) => {
|
|
375
|
+
Q.value && (z.value = Mt(e), Y());
|
|
376
|
+
}, Ft = (e) => {
|
|
375
377
|
G.value?.releasePointerCapture(e.pointerId), Q.value = !1;
|
|
376
|
-
},
|
|
378
|
+
}, It = (e) => {
|
|
377
379
|
let t = e.shiftKey ? .05 : .01;
|
|
378
380
|
switch (e.key) {
|
|
379
381
|
case "ArrowLeft":
|
|
@@ -385,24 +387,24 @@ var xe = ["aria-label"], Se = {
|
|
|
385
387
|
default: return;
|
|
386
388
|
}
|
|
387
389
|
Y(), e.preventDefault();
|
|
388
|
-
},
|
|
389
|
-
if (
|
|
390
|
+
}, Lt, Rt = () => Lt ??= typeof window < "u" && "EyeDropper" in window, $ = y(!1), zt = async () => {
|
|
391
|
+
if (Rt()) try {
|
|
390
392
|
$.value = !0;
|
|
391
393
|
let e = await new window.EyeDropper().open();
|
|
392
|
-
|
|
394
|
+
Vt(e.sRGBHex);
|
|
393
395
|
} catch {} finally {
|
|
394
396
|
$.value = !1;
|
|
395
397
|
}
|
|
396
|
-
},
|
|
397
|
-
let [t, n, r, i] =
|
|
398
|
+
}, Bt = (e) => B.value.slice(0, 7).toLowerCase() === e.slice(0, 7).toLowerCase(), Vt = (e) => {
|
|
399
|
+
let [t, n, r, i] = rt(e), [a, o, s] = nt(t, n, r);
|
|
398
400
|
o > .01 && (I.value = a), L.value = o, R.value = s, z.value = i, K(), S.alpha && q(), Y();
|
|
399
401
|
};
|
|
400
|
-
return
|
|
402
|
+
return _e(() => {
|
|
401
403
|
O.value = !1;
|
|
402
|
-
}), (
|
|
403
|
-
|
|
404
|
-
props:
|
|
405
|
-
anchorProps: { ref:
|
|
404
|
+
}), (r, i) => (v(), p(u, null, [
|
|
405
|
+
Be.value ? f("", !0) : ye(r.$slots, "activator", he(fe({
|
|
406
|
+
props: tt.value,
|
|
407
|
+
anchorProps: { ref: He },
|
|
406
408
|
open: O.value,
|
|
407
409
|
value: l.modelValue,
|
|
408
410
|
disabled: l.disabled
|
|
@@ -410,9 +412,9 @@ var xe = ["aria-label"], Se = {
|
|
|
410
412
|
m("span", {
|
|
411
413
|
id: M,
|
|
412
414
|
hidden: ""
|
|
413
|
-
},
|
|
414
|
-
h(b(
|
|
415
|
-
default:
|
|
415
|
+
}, be($e.value), 1),
|
|
416
|
+
h(b(Le), null, {
|
|
417
|
+
default: Se(() => [
|
|
416
418
|
m("div", {
|
|
417
419
|
ref_key: "canvasWrapRef",
|
|
418
420
|
ref: U,
|
|
@@ -421,13 +423,13 @@ var xe = ["aria-label"], Se = {
|
|
|
421
423
|
"data-bb-no-drag": "",
|
|
422
424
|
role: "application",
|
|
423
425
|
tabindex: "0",
|
|
424
|
-
onKeydown:
|
|
425
|
-
onPointercancel:
|
|
426
|
-
onPointerdown:
|
|
427
|
-
onPointermove:
|
|
428
|
-
onPointerup:
|
|
429
|
-
onVnodeBeforeUnmount:
|
|
430
|
-
onVnodeMounted:
|
|
426
|
+
onKeydown: Et,
|
|
427
|
+
onPointercancel: Tt,
|
|
428
|
+
onPointerdown: xt,
|
|
429
|
+
onPointermove: St,
|
|
430
|
+
onPointerup: Tt,
|
|
431
|
+
onVnodeBeforeUnmount: _t,
|
|
432
|
+
onVnodeMounted: gt
|
|
431
433
|
}, [m("canvas", {
|
|
432
434
|
ref_key: "mainCanvasRef",
|
|
433
435
|
ref: V,
|
|
@@ -440,14 +442,14 @@ var xe = ["aria-label"], Se = {
|
|
|
440
442
|
left: `${L.value * 100}%`,
|
|
441
443
|
top: `${(1 - R.value) * 100}%`
|
|
442
444
|
})
|
|
443
|
-
}, null, 4)], 40,
|
|
444
|
-
m("div",
|
|
445
|
-
m("div",
|
|
446
|
-
m("div",
|
|
447
|
-
class:
|
|
448
|
-
style: _({ "--picker-preview-color":
|
|
445
|
+
}, null, 4)], 40, we),
|
|
446
|
+
m("div", Te, be(Ct.value), 1),
|
|
447
|
+
m("div", Ee, [
|
|
448
|
+
m("div", De, [m("div", {
|
|
449
|
+
class: me(["bb-color-palette__preview", { "bb-color-palette__preview--alpha": l.alpha }]),
|
|
450
|
+
style: _({ "--picker-preview-color": ot.value })
|
|
449
451
|
}, null, 6)]),
|
|
450
|
-
m("div",
|
|
452
|
+
m("div", Oe, [m("div", {
|
|
451
453
|
ref_key: "hueWrapRef",
|
|
452
454
|
ref: W,
|
|
453
455
|
"aria-label": b(T)("colorInput.hueCanvasDesc").value,
|
|
@@ -458,21 +460,21 @@ var xe = ["aria-label"], Se = {
|
|
|
458
460
|
"data-bb-no-drag": "",
|
|
459
461
|
role: "slider",
|
|
460
462
|
tabindex: "0",
|
|
461
|
-
onKeydown:
|
|
462
|
-
onPointercancel:
|
|
463
|
-
onPointerdown:
|
|
464
|
-
onPointermove:
|
|
465
|
-
onPointerup:
|
|
463
|
+
onKeydown: jt,
|
|
464
|
+
onPointercancel: At,
|
|
465
|
+
onPointerdown: Ot,
|
|
466
|
+
onPointermove: kt,
|
|
467
|
+
onPointerup: At
|
|
466
468
|
}, [m("canvas", {
|
|
467
469
|
ref_key: "hueCanvasRef",
|
|
468
|
-
ref:
|
|
470
|
+
ref: lt,
|
|
469
471
|
"aria-hidden": "true",
|
|
470
472
|
class: "bb-color-palette__slider-track"
|
|
471
473
|
}, null, 512), m("div", {
|
|
472
474
|
"aria-hidden": "true",
|
|
473
475
|
class: "bb-color-palette__slider-thumb",
|
|
474
476
|
style: _({ left: `${I.value / 360 * 100}%` })
|
|
475
|
-
}, null, 4)], 40,
|
|
477
|
+
}, null, 4)], 40, ke), l.alpha ? (v(), p("div", {
|
|
476
478
|
key: 0,
|
|
477
479
|
ref_key: "alphaWrapRef",
|
|
478
480
|
ref: G,
|
|
@@ -484,11 +486,11 @@ var xe = ["aria-label"], Se = {
|
|
|
484
486
|
"data-bb-no-drag": "",
|
|
485
487
|
role: "slider",
|
|
486
488
|
tabindex: "0",
|
|
487
|
-
onKeydown:
|
|
488
|
-
onPointercancel:
|
|
489
|
-
onPointerdown:
|
|
490
|
-
onPointermove:
|
|
491
|
-
onPointerup:
|
|
489
|
+
onKeydown: It,
|
|
490
|
+
onPointercancel: Ft,
|
|
491
|
+
onPointerdown: Nt,
|
|
492
|
+
onPointermove: Pt,
|
|
493
|
+
onPointerup: Ft
|
|
492
494
|
}, [m("canvas", {
|
|
493
495
|
ref_key: "alphaCanvasRef",
|
|
494
496
|
ref: H,
|
|
@@ -498,78 +500,74 @@ var xe = ["aria-label"], Se = {
|
|
|
498
500
|
"aria-hidden": "true",
|
|
499
501
|
class: "bb-color-palette__slider-thumb",
|
|
500
502
|
style: _({ left: `${z.value * 100}%` })
|
|
501
|
-
}, null, 4)], 40,
|
|
502
|
-
|
|
503
|
+
}, null, 4)], 40, Ae)) : f("", !0)]),
|
|
504
|
+
Rt() && l.eyeDropper ? (v(), p("button", {
|
|
503
505
|
key: 0,
|
|
504
506
|
"aria-label": b(T)("colorInput.eyeDropper").value,
|
|
505
507
|
class: "bb-color-palette__eyedropper",
|
|
506
508
|
disabled: $.value || void 0,
|
|
507
509
|
type: "button",
|
|
508
|
-
onClick:
|
|
509
|
-
}, [
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
viewBox: "0 0 24 24",
|
|
514
|
-
width: "16",
|
|
515
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
516
|
-
}, [m("path", { d: "M20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L13.71,3.71L12.29,5.12L13.41,6.24L3,16.59V21H7.41L17.76,10.59L18.88,11.71L20.29,10.29L18.88,8.88L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63M6.58,19H5V17.42L13.29,9.12L14.88,10.71L6.58,19Z" })], -1)]], 8, Oe)) : f("", !0)
|
|
510
|
+
onClick: zt
|
|
511
|
+
}, [h(e, {
|
|
512
|
+
icon: b(t),
|
|
513
|
+
size: "16"
|
|
514
|
+
}, null, 8, ["icon"])], 8, je)) : f("", !0)
|
|
517
515
|
]),
|
|
518
|
-
|
|
516
|
+
st.value ? (v(), p("div", Me, [(v(!0), p(u, null, ve(ct.value, (e, t) => (v(), p("div", {
|
|
519
517
|
key: t,
|
|
520
518
|
class: "bb-color-palette__swatch-group"
|
|
521
|
-
}, [(v(!0), p(u, null,
|
|
519
|
+
}, [(v(!0), p(u, null, ve(e, (e) => (v(), p("button", g({
|
|
522
520
|
key: e,
|
|
523
521
|
"aria-label": e,
|
|
524
|
-
"aria-pressed":
|
|
525
|
-
class: ["bb-color-palette__swatch", { "bb-color-palette__swatch--active":
|
|
522
|
+
"aria-pressed": Bt(e),
|
|
523
|
+
class: ["bb-color-palette__swatch", { "bb-color-palette__swatch--active": Bt(e) }],
|
|
526
524
|
style: { background: e },
|
|
527
525
|
type: "button",
|
|
528
|
-
onClick: (t) =>
|
|
529
|
-
}, { ref_for: !0 }, b(w).part?.("swatch", { selected:
|
|
526
|
+
onClick: (t) => Vt(e)
|
|
527
|
+
}, { ref_for: !0 }, b(w).part?.("swatch", { selected: Bt(e) })), null, 16, Ne))), 128))]))), 128))])) : f("", !0)
|
|
530
528
|
]),
|
|
531
529
|
_: 1
|
|
532
530
|
}),
|
|
533
|
-
k.value ? (v(),
|
|
531
|
+
k.value ? (v(), ue(ne, g({
|
|
534
532
|
key: 1,
|
|
535
533
|
modelValue: O.value,
|
|
536
|
-
"onUpdate:modelValue":
|
|
534
|
+
"onUpdate:modelValue": i[0] ||= (e) => O.value = e,
|
|
537
535
|
class: "bb-color-palette__sheet",
|
|
538
536
|
pt: b(w).forward({
|
|
539
537
|
panel: "root",
|
|
540
538
|
sheet: "root"
|
|
541
|
-
}, b(
|
|
542
|
-
}, g(
|
|
543
|
-
onHidden:
|
|
544
|
-
onHide:
|
|
545
|
-
onShow:
|
|
546
|
-
onShown:
|
|
539
|
+
}, b(re).states, () => l.offCanvasProps?.pt)
|
|
540
|
+
}, g(Ze.value, b(n)(b(w).forwardAttrs)), {
|
|
541
|
+
onHidden: Qe,
|
|
542
|
+
onHide: i[1] ||= (e) => C("hide"),
|
|
543
|
+
onShow: i[2] ||= (e) => C("show"),
|
|
544
|
+
onShown: i[3] ||= (e) => C("shown")
|
|
547
545
|
}), {
|
|
548
|
-
default:
|
|
546
|
+
default: Se(() => [m("div", he(fe(vt.value)), [h(b(Re))], 16)]),
|
|
549
547
|
_: 1
|
|
550
|
-
}, 16, ["modelValue", "pt"])) : (v(),
|
|
548
|
+
}, 16, ["modelValue", "pt"])) : (v(), ue(ie, g({
|
|
551
549
|
key: 2,
|
|
552
550
|
modelValue: O.value,
|
|
553
|
-
"onUpdate:modelValue":
|
|
554
|
-
anchor:
|
|
551
|
+
"onUpdate:modelValue": i[4] ||= (e) => O.value = e,
|
|
552
|
+
anchor: Ue.value,
|
|
555
553
|
"aria-label": b(T)("colorInput.dialogLabel").value,
|
|
556
554
|
boundary: l.boundary,
|
|
557
|
-
"bubble-attrs":
|
|
555
|
+
"bubble-attrs": vt.value,
|
|
558
556
|
class: "bb-color-palette",
|
|
559
557
|
dialog: "",
|
|
560
558
|
"disable-flip": l.disableFlip,
|
|
561
559
|
eager: l.eager,
|
|
562
560
|
"hide-arrow": "",
|
|
563
|
-
offset: l.offset,
|
|
561
|
+
offset: l.offset ?? b(Pe)() ?? 4,
|
|
564
562
|
padding: l.padding,
|
|
565
563
|
placement: l.placement,
|
|
566
564
|
"transition-duration": l.transitionDuration,
|
|
567
|
-
onHidden:
|
|
568
|
-
onHide:
|
|
569
|
-
onShow:
|
|
570
|
-
onShown:
|
|
565
|
+
onHidden: i[5] ||= (e) => C("hidden"),
|
|
566
|
+
onHide: i[6] ||= (e) => C("hide"),
|
|
567
|
+
onShow: i[7] ||= (e) => C("show"),
|
|
568
|
+
onShown: i[8] ||= (e) => C("shown")
|
|
571
569
|
}, b(w).rootAttrs), {
|
|
572
|
-
default:
|
|
570
|
+
default: Se(() => [h(b(Re))]),
|
|
573
571
|
_: 1
|
|
574
572
|
}, 16, [
|
|
575
573
|
"modelValue",
|
|
@@ -60,8 +60,8 @@ export type BbColorPaletteProps = {
|
|
|
60
60
|
* viewports instead of a floating popover; on desktop it stays a popover.
|
|
61
61
|
* Mirrors the adaptive behaviour of `BbPopover`/`BbDropdown`/`BbDatePicker`.
|
|
62
62
|
*
|
|
63
|
-
* When unset, falls back to the global `
|
|
64
|
-
* @defaultValue `
|
|
63
|
+
* When unset, falls back to the global `all.adaptive`.
|
|
64
|
+
* @defaultValue `all.adaptive` (`true`)
|
|
65
65
|
*/
|
|
66
66
|
adaptive?: boolean;
|
|
67
67
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BbConfigScopeProps, BbConfigScopeSlots } from './types';
|
|
2
|
+
export type { BbConfigScopeProps, BbConfigScopeSlots };
|
|
3
|
+
type __VLS_Slots = BbConfigScopeSlots;
|
|
4
|
+
declare const __VLS_base: import('vue').DefineComponent<BbConfigScopeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbConfigScopeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|