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/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -3,32 +3,33 @@ import { removedPropsFor as t } from "../../deprecation/removedProps.js";
|
|
|
3
3
|
import { warnRemovedAttrs as n } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
4
4
|
import { withoutPt as r } from "../../utils/passthrough.js";
|
|
5
5
|
import { useConfig as i } from "../../composables/useConfig.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import ue from "../../
|
|
18
|
-
import de from "
|
|
19
|
-
import fe from "../
|
|
20
|
-
import
|
|
21
|
-
import me from "../
|
|
22
|
-
import he from "../
|
|
23
|
-
import ge from "../
|
|
24
|
-
import _e from "../
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
6
|
+
import { useConfigDefaults as a } from "../../composables/useConfigDefaults.js";
|
|
7
|
+
import { useFormBinding as o } from "../../composables/useFormBinding.js";
|
|
8
|
+
import { useClosingInert as s } from "../../composables/useClosingInert.js";
|
|
9
|
+
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
10
|
+
import { useLogger as te } from "../../composables/useLogger.js";
|
|
11
|
+
import { useEscapeStackEntry as ne } from "../../composables/useEscapeStackEntry.js";
|
|
12
|
+
import { useMobile as re } from "../../composables/useMobile.js";
|
|
13
|
+
import { SEGMENTED_CONTROL_NATIVE_ATTRS as ie, formControlPtActive as ae, usePassthrough as oe, variantPt as c } from "../../composables/usePassthrough.js";
|
|
14
|
+
import { useSegmentedFields as se } from "../../composables/useSegmentedFields.js";
|
|
15
|
+
import { isEmpty as ce } from "../../utilities/functions/empty.js";
|
|
16
|
+
import { isNotEmpty as le } from "../../utilities/functions/isNotEmpty.js";
|
|
17
|
+
import { transitions as ue } from "../../utilities/misc/transitions.js";
|
|
18
|
+
import de from "../../assets/svgs/clock.svg_raw.js";
|
|
19
|
+
import fe from "../BbIcon/BbIcon.vue.js";
|
|
20
|
+
import pe from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
21
|
+
import { BB_OFF_CANVAS_PT as me } from "../BbOffCanvas/types.js";
|
|
22
|
+
import he from "../CommonField/CommonField.vue.js";
|
|
23
|
+
import ge from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
24
|
+
import _e from "../CommonPopover/CommonPopover.vue.js";
|
|
25
|
+
import ve from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
26
|
+
import { useMeridiem as ye } from "../CommonTimeSelector/useMeridiem.js";
|
|
27
|
+
import { spokenTimeOf as be } from "../BbCalendar/useDayjsLocale.js";
|
|
27
28
|
import { BB_TIME_PICKER_INPUT_PT as l } from "./types.js";
|
|
28
|
-
import { Fragment as
|
|
29
|
-
import { createReusableTemplate as
|
|
29
|
+
import { Fragment as xe, computed as u, createBlock as d, createCommentVNode as Se, createElementBlock as f, createElementVNode as p, createSlots as Ce, createVNode as m, defineComponent as we, guardReactiveProps as h, mergeProps as g, normalizeClass as Te, normalizeProps as Ee, normalizeStyle as De, onBeforeUnmount as Oe, onDeactivated as ke, openBlock as _, ref as v, renderList as Ae, renderSlot as y, toDisplayString as b, unref as x, useAttrs as je, watch as S, withCtx as C, withDirectives as Me, withModifiers as Ne } from "vue";
|
|
30
|
+
import { createReusableTemplate as Pe } from "@vueuse/core";
|
|
30
31
|
// src/components/BbTimePickerInput/BbTimePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
31
|
-
var
|
|
32
|
+
var Fe = ["data-value"], Ie = [
|
|
32
33
|
"id",
|
|
33
34
|
"aria-describedby",
|
|
34
35
|
"aria-disabled",
|
|
@@ -51,13 +52,13 @@ var Ne = ["data-value"], Pe = [
|
|
|
51
52
|
"onInput",
|
|
52
53
|
"onKeydown",
|
|
53
54
|
"onPaste"
|
|
54
|
-
],
|
|
55
|
+
], Le = ["onClick"], Re = [
|
|
55
56
|
"aria-controls",
|
|
56
57
|
"aria-disabled",
|
|
57
58
|
"aria-expanded",
|
|
58
59
|
"aria-label",
|
|
59
60
|
"disabled"
|
|
60
|
-
],
|
|
61
|
+
], ze = ["id"], w = /*@__PURE__*/ we({
|
|
61
62
|
mixins: [c(l)],
|
|
62
63
|
inheritAttrs: !1,
|
|
63
64
|
__name: "BbTimePickerInput",
|
|
@@ -251,10 +252,13 @@ var Ne = ["data-value"], Pe = [
|
|
|
251
252
|
},
|
|
252
253
|
ampm: { type: Boolean },
|
|
253
254
|
"append:icon": {},
|
|
254
|
-
autocomplete: { default:
|
|
255
|
+
autocomplete: { default: void 0 },
|
|
255
256
|
autofocus: { type: [Boolean, String] },
|
|
256
257
|
clearable: { type: Boolean },
|
|
257
|
-
compact: {
|
|
258
|
+
compact: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
default: void 0
|
|
261
|
+
},
|
|
258
262
|
variant: {},
|
|
259
263
|
description: {},
|
|
260
264
|
layout: {},
|
|
@@ -287,7 +291,10 @@ var Ne = ["data-value"], Pe = [
|
|
|
287
291
|
range: { type: Boolean },
|
|
288
292
|
readonly: { type: Boolean },
|
|
289
293
|
required: { type: Boolean },
|
|
290
|
-
reverse: {
|
|
294
|
+
reverse: {
|
|
295
|
+
type: Boolean,
|
|
296
|
+
default: void 0
|
|
297
|
+
},
|
|
291
298
|
seconds: { type: Boolean },
|
|
292
299
|
step: {},
|
|
293
300
|
transitionDuration: {},
|
|
@@ -308,70 +315,76 @@ var Ne = ["data-value"], Pe = [
|
|
|
308
315
|
"update:modelValue"
|
|
309
316
|
],
|
|
310
317
|
setup(c, { emit: we }) {
|
|
311
|
-
let
|
|
318
|
+
let w = c, { props: T, emit: E, showAsterisk: Be, errors: Ve, required: He, ariaRequired: Ue, model: We, readonly: Ge, locked: Ke } = o(w, we, {
|
|
312
319
|
componentName: "BbTimePickerInput",
|
|
313
|
-
identifierFallback: () =>
|
|
320
|
+
identifierFallback: () => w.label,
|
|
314
321
|
leaveOn: "inactive"
|
|
315
322
|
});
|
|
316
323
|
process.env.NODE_ENV !== "production" && n("BbTimePickerInput", t("BbTimePickerInput"));
|
|
317
|
-
let
|
|
318
|
-
|
|
324
|
+
let qe = i(), { t: D } = ee(), Je = te(), O = v(!1), k = v(!1), A = () => {
|
|
325
|
+
k.value = !1;
|
|
319
326
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}),
|
|
323
|
-
let
|
|
327
|
+
ke(() => {
|
|
328
|
+
Z.value = !1, O.value ? Lt() : A();
|
|
329
|
+
}), Oe(A);
|
|
330
|
+
let Ye = u(() => T.persistentHint || k.value), j = u(() => le(T.modelValue)), M = a("BbTimePickerInput", T, {
|
|
331
|
+
labelMode: "outside",
|
|
332
|
+
adaptive: !0,
|
|
333
|
+
autocomplete: "off",
|
|
334
|
+
compact: !1,
|
|
335
|
+
reverse: !1
|
|
336
|
+
}), Xe = u(() => M.labelMode), N = oe({
|
|
324
337
|
component: "BbTimePickerInput",
|
|
325
|
-
attrs:
|
|
326
|
-
controlAttrs:
|
|
327
|
-
props:
|
|
338
|
+
attrs: je(),
|
|
339
|
+
controlAttrs: ie,
|
|
340
|
+
props: T,
|
|
328
341
|
parts: l.parts,
|
|
329
342
|
states: l.states,
|
|
330
343
|
active: {
|
|
331
|
-
...
|
|
332
|
-
open: () =>
|
|
344
|
+
...ae(T, () => j.value),
|
|
345
|
+
open: () => Z.value
|
|
333
346
|
},
|
|
334
347
|
variant: {
|
|
335
348
|
...l.variant,
|
|
336
|
-
current: () =>
|
|
349
|
+
current: () => T.variant ?? "outline"
|
|
337
350
|
}
|
|
338
|
-
}),
|
|
351
|
+
}), P = ye(), Ze = (e, t) => P.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, Qe = (e) => {
|
|
339
352
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
340
353
|
return n === 0 && (n = 12), {
|
|
341
354
|
hour: String(n).padStart(2, "0"),
|
|
342
355
|
meridiem: t
|
|
343
356
|
};
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
},
|
|
347
|
-
id:
|
|
348
|
-
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet":
|
|
349
|
-
inert:
|
|
350
|
-
},
|
|
351
|
-
let n = [e,
|
|
357
|
+
}, F = v(null), I = v(null), $e = (e) => {
|
|
358
|
+
I.value = e.el?.parentElement ?? null;
|
|
359
|
+
}, et = v(null), tt = (e) => `btpi-description_${e}`, nt = (e) => `btpi-panel_${e}`, rt = (e) => g({
|
|
360
|
+
id: nt(e),
|
|
361
|
+
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet": Q.value }],
|
|
362
|
+
inert: Bt.value
|
|
363
|
+
}, Q.value ? {} : N.panel ?? {}), it = (e, t) => {
|
|
364
|
+
let n = [e, tt(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
352
365
|
return Array.from(new Set(n)).join(" ");
|
|
353
|
-
}, { isMobile:
|
|
354
|
-
let t =
|
|
366
|
+
}, { isMobile: L } = re(), R = u(() => T.disableWriting === "mobile" ? !L.value : T.disableWriting === "desktop" ? L.value : !T.disableWriting), at = u(() => !!T.readonly || !R.value), ot = (e) => R.value ? V.value[e].kind === "enum" ? "none" : "numeric" : "none", st = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, z = (e) => {
|
|
367
|
+
let t = st.exec(e);
|
|
355
368
|
if (!t) return null;
|
|
356
369
|
let [, n, r] = t, i = parseInt(n, 10), a = parseInt(r, 10);
|
|
357
370
|
return i > 23 || a > 59 ? null : i * 60 + a;
|
|
358
371
|
};
|
|
359
|
-
for (let [e, t] of [["min",
|
|
360
|
-
let
|
|
372
|
+
for (let [e, t] of [["min", T.min], ["max", T.max]]) t && z(t) === null && Je.throw(`BbTimePickerInput: ${e} must be in the format HH:mm`);
|
|
373
|
+
let B = u(() => {
|
|
361
374
|
let e = ["hour", "minute"];
|
|
362
|
-
|
|
375
|
+
T.seconds && e.push("second"), T.ampm && e.push("meridiem");
|
|
363
376
|
let t = e.map((e) => ({
|
|
364
377
|
segment: "start",
|
|
365
378
|
field: e
|
|
366
379
|
}));
|
|
367
|
-
if (!
|
|
380
|
+
if (!T.range) return t;
|
|
368
381
|
let n = e.map((e) => ({
|
|
369
382
|
segment: "end",
|
|
370
383
|
field: e
|
|
371
384
|
}));
|
|
372
385
|
return [...t, ...n];
|
|
373
|
-
}),
|
|
374
|
-
hour:
|
|
386
|
+
}), V = u(() => ({
|
|
387
|
+
hour: T.ampm ? {
|
|
375
388
|
kind: "numeric",
|
|
376
389
|
maxLength: 2,
|
|
377
390
|
max: 12,
|
|
@@ -403,10 +416,10 @@ var Ne = ["data-value"], Pe = [
|
|
|
403
416
|
autoAdvanceFrom: 6,
|
|
404
417
|
label: "Second"
|
|
405
418
|
},
|
|
406
|
-
meridiem:
|
|
407
|
-
})),
|
|
408
|
-
fieldOrder:
|
|
409
|
-
specs:
|
|
419
|
+
meridiem: P.fieldSpec.value
|
|
420
|
+
})), ct = (e, t) => e.segment === t.segment ? t.field === "meridiem" ? " " : ":" : "–", { fields: H, fieldRefs: lt, descriptorKey: ut, emptyFieldGroup: dt, getSizedValue: ft, minChars: pt, updateAllSizedValues: U, isOwnField: mt, focusField: ht, focusFirstField: gt, segmentStatus: W, onFieldInput: _t, onFieldKeydown: vt, onFieldFocus: yt, onFieldBlur: bt, onFieldPaste: xt } = se({
|
|
421
|
+
fieldOrder: B,
|
|
422
|
+
specs: V,
|
|
410
423
|
segments: ["start", "end"],
|
|
411
424
|
fieldKeys: [
|
|
412
425
|
"hour",
|
|
@@ -416,51 +429,51 @@ var Ne = ["data-value"], Pe = [
|
|
|
416
429
|
],
|
|
417
430
|
optionalGroups: [["second"]],
|
|
418
431
|
advanceKeys: [":", " "],
|
|
419
|
-
onDirty: () =>
|
|
420
|
-
}),
|
|
432
|
+
onDirty: () => Y({ finalize: !1 })
|
|
433
|
+
}), St = (e, t) => {
|
|
421
434
|
if (e.field === "meridiem") {
|
|
422
|
-
let n = H.value[e.segment], r =
|
|
423
|
-
r && r !== n.meridiem && (n.meridiem = r,
|
|
435
|
+
let n = H.value[e.segment], r = P.match(t.target.value, n.meridiem);
|
|
436
|
+
r && r !== n.meridiem && (n.meridiem = r, Y({ finalize: !1 }));
|
|
424
437
|
}
|
|
425
|
-
|
|
438
|
+
_t(e, t);
|
|
426
439
|
};
|
|
427
|
-
|
|
440
|
+
P.onRelabel((e, t) => {
|
|
428
441
|
for (let n of Object.values(H.value)) n.meridiem === e && (n.meridiem = t);
|
|
429
442
|
U();
|
|
430
443
|
});
|
|
431
|
-
let
|
|
432
|
-
if (
|
|
433
|
-
},
|
|
444
|
+
let Ct = (e, t) => T.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, wt = (e) => {
|
|
445
|
+
if (T.name) return T.range ? `${T.name}-${e.segment}-${e.field}` : `${T.name}-${e.field}`;
|
|
446
|
+
}, Tt = {
|
|
434
447
|
hour: "datePickerInput.hourField",
|
|
435
448
|
minute: "datePickerInput.minuteField",
|
|
436
449
|
second: "datePickerInput.secondField",
|
|
437
450
|
meridiem: "datePickerInput.meridiemField"
|
|
438
|
-
},
|
|
439
|
-
let t =
|
|
440
|
-
return
|
|
441
|
-
},
|
|
442
|
-
let e =
|
|
443
|
-
return
|
|
444
|
-
}),
|
|
451
|
+
}, Et = (e) => {
|
|
452
|
+
let t = D(Tt[e.field]).value;
|
|
453
|
+
return T.range ? D(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
|
|
454
|
+
}, Dt = u(() => {
|
|
455
|
+
let e = D(T.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat").value;
|
|
456
|
+
return T.range ? `${e} – ${e}` : e;
|
|
457
|
+
}), Ot = u(() => T.placeholder || Dt.value), kt = u(() => B.value.every((e) => !H.value[e.segment][e.field])), At = (e) => {
|
|
445
458
|
if (!e.hour) return 0;
|
|
446
459
|
let t = parseInt(e.hour, 10);
|
|
447
|
-
return
|
|
448
|
-
},
|
|
449
|
-
if (!
|
|
460
|
+
return T.ampm ? Ze(t, e.meridiem || "AM") : t;
|
|
461
|
+
}, jt = (e, t) => {
|
|
462
|
+
if (!T.ampm) {
|
|
450
463
|
e.hour = String(t).padStart(2, "0");
|
|
451
464
|
return;
|
|
452
465
|
}
|
|
453
|
-
let n =
|
|
454
|
-
e.hour = n.hour, e.meridiem =
|
|
466
|
+
let n = Qe(t);
|
|
467
|
+
e.hour = n.hour, e.meridiem = P.label(n.meridiem);
|
|
455
468
|
}, G = (e) => {
|
|
456
|
-
let t =
|
|
469
|
+
let t = dt();
|
|
457
470
|
if (!e) return t;
|
|
458
|
-
let n =
|
|
471
|
+
let n = st.exec(e);
|
|
459
472
|
if (!n) return t;
|
|
460
473
|
let [, r, i, a] = n, o = parseInt(r, 10);
|
|
461
|
-
return o > 23 || parseInt(i, 10) > 59 || (
|
|
474
|
+
return o > 23 || parseInt(i, 10) > 59 || (jt(t, o), t.minute = i.padStart(2, "0"), t.second = T.seconds && a ? a.padStart(2, "0") : ""), t;
|
|
462
475
|
}, K = (e) => {
|
|
463
|
-
if (
|
|
476
|
+
if (T.range) {
|
|
464
477
|
let [t, n] = Array.isArray(e) ? e : [];
|
|
465
478
|
H.value = {
|
|
466
479
|
start: G(t),
|
|
@@ -468,283 +481,283 @@ var Ne = ["data-value"], Pe = [
|
|
|
468
481
|
};
|
|
469
482
|
} else H.value = {
|
|
470
483
|
start: G(typeof e == "string" ? e : void 0),
|
|
471
|
-
end:
|
|
484
|
+
end: dt()
|
|
472
485
|
};
|
|
473
|
-
},
|
|
474
|
-
K(
|
|
486
|
+
}, Mt = () => {
|
|
487
|
+
K(T.modelValue);
|
|
475
488
|
};
|
|
476
|
-
K(
|
|
489
|
+
K(T.modelValue), U(), S(() => T.modelValue, (e) => {
|
|
477
490
|
if (e === null || Array.isArray(e) && e.length === 0) {
|
|
478
491
|
K(e), U();
|
|
479
492
|
return;
|
|
480
493
|
}
|
|
481
494
|
let t = document.activeElement;
|
|
482
|
-
t &&
|
|
495
|
+
t && mt(t) || (K(e), U());
|
|
483
496
|
});
|
|
484
|
-
let
|
|
485
|
-
let t = H.value[e], n = String(
|
|
486
|
-
return
|
|
487
|
-
},
|
|
488
|
-
let t =
|
|
489
|
-
return t === null ? e :
|
|
490
|
-
},
|
|
497
|
+
let q = (e) => {
|
|
498
|
+
let t = H.value[e], n = String(At(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
499
|
+
return T.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
500
|
+
}, J = (e) => E("error", e), Nt = (e) => {
|
|
501
|
+
let t = z(e);
|
|
502
|
+
return t === null ? e : T.min && t < z(T.min) ? T.min + (T.seconds ? ":00" : "") : T.max && t > z(T.max) ? T.max + (T.seconds ? ":00" : "") : e;
|
|
503
|
+
}, Pt = () => W("start") === "partial" ? !0 : T.range ? W("end") === "partial" : !1, Y = (e = {}) => {
|
|
491
504
|
let t = !!e.finalize, n = W("start");
|
|
492
|
-
if (!
|
|
505
|
+
if (!T.range) {
|
|
493
506
|
if (n === "empty") {
|
|
494
|
-
|
|
507
|
+
E("update:modelValue", null);
|
|
495
508
|
return;
|
|
496
509
|
}
|
|
497
510
|
if (n === "partial") return;
|
|
498
|
-
let e =
|
|
511
|
+
let e = q("start"), r = Nt(e);
|
|
499
512
|
if (r !== e) {
|
|
500
513
|
if (!t) return;
|
|
501
|
-
H.value.start = G(r), U(),
|
|
514
|
+
H.value.start = G(r), U(), E("update:modelValue", r), J({
|
|
502
515
|
code: "disabled_time",
|
|
503
516
|
original: e,
|
|
504
517
|
normalized: r
|
|
505
518
|
});
|
|
506
519
|
return;
|
|
507
520
|
}
|
|
508
|
-
|
|
521
|
+
E("update:modelValue", e);
|
|
509
522
|
return;
|
|
510
523
|
}
|
|
511
524
|
let r = W("end");
|
|
512
525
|
if (n === "empty" && r === "empty") {
|
|
513
|
-
|
|
526
|
+
E("update:modelValue", []);
|
|
514
527
|
return;
|
|
515
528
|
}
|
|
516
529
|
if (n === "partial" || r === "partial" || n === "empty") return;
|
|
517
|
-
let i =
|
|
530
|
+
let i = q("start"), a = Nt(i);
|
|
518
531
|
if (a !== i) {
|
|
519
532
|
if (!t) return;
|
|
520
|
-
H.value.start = G(a),
|
|
533
|
+
H.value.start = G(a), J({
|
|
521
534
|
code: "disabled_time",
|
|
522
535
|
original: i,
|
|
523
536
|
normalized: a
|
|
524
537
|
}), i = a;
|
|
525
538
|
}
|
|
526
539
|
if (r === "empty") {
|
|
527
|
-
|
|
540
|
+
E("update:modelValue", [i]);
|
|
528
541
|
return;
|
|
529
542
|
}
|
|
530
|
-
let o =
|
|
543
|
+
let o = q("end"), s = Nt(o);
|
|
531
544
|
if (s !== o) {
|
|
532
545
|
if (!t) return;
|
|
533
|
-
H.value.end = G(s),
|
|
546
|
+
H.value.end = G(s), J({
|
|
534
547
|
code: "disabled_time",
|
|
535
548
|
original: o,
|
|
536
549
|
normalized: s
|
|
537
550
|
}), o = s;
|
|
538
551
|
}
|
|
539
|
-
if (
|
|
552
|
+
if (z(o) < z(i)) {
|
|
540
553
|
if (!t) return;
|
|
541
554
|
let e = { ...H.value.start };
|
|
542
|
-
H.value.start = { ...H.value.end }, H.value.end = e, U(),
|
|
555
|
+
H.value.start = { ...H.value.end }, H.value.end = e, U(), E("update:modelValue", [o, i]), J({
|
|
543
556
|
code: "end_before_start",
|
|
544
557
|
original: [i, o],
|
|
545
558
|
normalized: [o, i]
|
|
546
559
|
});
|
|
547
|
-
} else U(),
|
|
548
|
-
}, Pt = () => {
|
|
549
|
-
D("update:modelValue", E.range ? [] : null);
|
|
560
|
+
} else U(), E("update:modelValue", [i, o]);
|
|
550
561
|
}, Ft = () => {
|
|
551
|
-
|
|
552
|
-
}, Y = (e) => {
|
|
553
|
-
let t = e.target;
|
|
554
|
-
t instanceof HTMLElement && L.value?.$el && (L.value.$el.contains(t) || R.value?.contains(t) || It());
|
|
562
|
+
E("update:modelValue", T.range ? [] : null);
|
|
555
563
|
}, It = () => {
|
|
556
|
-
|
|
557
|
-
},
|
|
558
|
-
|
|
559
|
-
()
|
|
560
|
-
|
|
561
|
-
X
|
|
564
|
+
O.value || (k.value = !0, E("active"), O.value = !0, document.addEventListener("focusin", X), document.addEventListener("click", X));
|
|
565
|
+
}, X = (e) => {
|
|
566
|
+
let t = e.target;
|
|
567
|
+
t instanceof HTMLElement && F.value?.$el && (F.value.$el.contains(t) || I.value?.contains(t) || Lt());
|
|
568
|
+
}, Lt = () => {
|
|
569
|
+
Y({ finalize: !0 }), Pt() && (Mt(), U()), O.value = !1, A(), E("inactive"), document.removeEventListener("focusin", X), document.removeEventListener("click", X);
|
|
570
|
+
}, [Rt, zt] = Pe(), Z = v(!1), Bt = s(Z, () => T.transitionDuration ?? ue.medium), Vt = () => M.adaptive && L.value ? "canvas" : "popover", Ht = v(Vt()), Q = u(() => Ht.value === "canvas");
|
|
571
|
+
S([
|
|
572
|
+
() => M.adaptive,
|
|
573
|
+
L,
|
|
574
|
+
Z
|
|
562
575
|
], () => {
|
|
563
|
-
|
|
564
|
-
}),
|
|
565
|
-
let
|
|
576
|
+
Z.value || (Ht.value = Vt());
|
|
577
|
+
}), ne(() => Z.value && !Q.value, () => Z.value = !1);
|
|
578
|
+
let Ut = u(() => ({
|
|
566
579
|
side: "bottom",
|
|
567
580
|
size: "auto",
|
|
568
581
|
draggable: !0,
|
|
569
|
-
transitionDuration:
|
|
582
|
+
transitionDuration: T.transitionDuration,
|
|
570
583
|
hideClose: !0,
|
|
571
|
-
...r(
|
|
572
|
-
})),
|
|
573
|
-
|
|
574
|
-
},
|
|
584
|
+
...r(T.offCanvasProps)
|
|
585
|
+
})), Wt = () => {
|
|
586
|
+
et.value?.focus(), E("hidden");
|
|
587
|
+
}, Gt = (e) => {
|
|
575
588
|
let t = e.target;
|
|
576
|
-
t && t instanceof HTMLDialogElement && (
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
},
|
|
580
|
-
if (!
|
|
589
|
+
t && t instanceof HTMLDialogElement && (Z.value = !1);
|
|
590
|
+
}, Kt = () => {
|
|
591
|
+
T.disabled || T.readonly || (Ht.value = Vt(), Z.value = !0);
|
|
592
|
+
}, qt = u(() => !R.value && !T.disabled && !T.readonly), Jt = (e) => {
|
|
593
|
+
if (!qt.value || Z.value) return;
|
|
581
594
|
let t = e.target;
|
|
582
|
-
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") ||
|
|
583
|
-
},
|
|
584
|
-
|
|
595
|
+
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") || Kt());
|
|
596
|
+
}, Yt = (e) => e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey, Xt = (e, t) => {
|
|
597
|
+
qt.value && (t.key === "Enter" || t.key === " ") ? (t.preventDefault(), Z.value || Kt()) : T.readonly && Yt(t) ? t.preventDefault() : vt(e, t);
|
|
585
598
|
};
|
|
586
|
-
|
|
587
|
-
e ?
|
|
599
|
+
S(Z, (e) => {
|
|
600
|
+
e ? Q.value || document.addEventListener("click", Gt, { passive: !0 }) : document.removeEventListener("click", Gt);
|
|
588
601
|
});
|
|
589
|
-
let
|
|
590
|
-
|
|
591
|
-
},
|
|
592
|
-
let e = H.value[
|
|
593
|
-
return e.hour ? String(
|
|
594
|
-
}),
|
|
595
|
-
let n = H.value[
|
|
596
|
-
e === "hour" ?
|
|
597
|
-
},
|
|
598
|
-
if (
|
|
599
|
-
let [e, t] = Array.isArray(
|
|
600
|
-
return !e || !t ?
|
|
602
|
+
let Zt = v("start"), Qt = (e, t) => {
|
|
603
|
+
Zt.value = e.segment, yt(e), E("focus", t);
|
|
604
|
+
}, $ = u(() => T.range ? H.value[Zt.value].hour ? Zt.value : H.value.start.hour && !H.value.end.hour ? "end" : "start" : "start"), $t = u(() => {
|
|
605
|
+
let e = H.value[$.value];
|
|
606
|
+
return e.hour ? String(At(e)).padStart(2, "0") : "";
|
|
607
|
+
}), en = ({ unit: e, value: t }) => {
|
|
608
|
+
let n = H.value[$.value];
|
|
609
|
+
e === "hour" ? jt(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = P.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour ||= T.ampm ? "12" : "00", T.ampm && !n.meridiem && (n.meridiem = P.am.value), n.minute ||= "00", T.seconds && !n.second && (n.second = "00"), U(), Y({ finalize: !1 });
|
|
610
|
+
}, tn = (e) => be(e, qe.locale, !!T.ampm, !!T.seconds), nn = u(() => {
|
|
611
|
+
if (T.range) {
|
|
612
|
+
let [e, t] = Array.isArray(T.modelValue) ? T.modelValue : [];
|
|
613
|
+
return !e || !t ? D("timePickerInput.emptyRange").value : D("timePickerInput.changeSelectionRange", tn(e), tn(t)).value;
|
|
601
614
|
}
|
|
602
|
-
return typeof
|
|
615
|
+
return typeof T.modelValue == "string" && T.modelValue ? D("timePickerInput.changeSelection", tn(T.modelValue)).value : D("timePickerInput.emptySelection").value;
|
|
603
616
|
});
|
|
604
|
-
return
|
|
605
|
-
document.removeEventListener("focusin",
|
|
606
|
-
}), (t, n) => (
|
|
617
|
+
return Oe(() => {
|
|
618
|
+
document.removeEventListener("focusin", X), document.removeEventListener("click", X), document.removeEventListener("click", Gt);
|
|
619
|
+
}), (t, n) => (_(), d(he, g({
|
|
607
620
|
id: c.id,
|
|
608
621
|
class: "bb-time-picker-input",
|
|
609
|
-
clearable: c.clearable &&
|
|
610
|
-
compact:
|
|
622
|
+
clearable: c.clearable && j.value,
|
|
623
|
+
compact: x(M).compact,
|
|
611
624
|
description: c.description,
|
|
612
625
|
disabled: c.disabled,
|
|
613
|
-
errors:
|
|
626
|
+
errors: x(Ve),
|
|
614
627
|
"has-errors": c.hasErrors,
|
|
615
|
-
"has-value":
|
|
628
|
+
"has-value": j.value,
|
|
616
629
|
"has-warnings": c.hasWarnings,
|
|
617
630
|
"hide-label": c.hideLabel,
|
|
618
631
|
hint: c.hint,
|
|
619
632
|
"input-align": c.inputAlign,
|
|
620
633
|
label: c.label,
|
|
621
634
|
"label-align": c.labelAlign,
|
|
622
|
-
"label-mode":
|
|
635
|
+
"label-mode": Xe.value,
|
|
623
636
|
"label-position": c.labelPosition,
|
|
624
|
-
layout:
|
|
637
|
+
layout: x(M).layout,
|
|
625
638
|
loading: c.loading,
|
|
626
639
|
name: c.name,
|
|
627
|
-
passthrough:
|
|
628
|
-
readonly:
|
|
629
|
-
reverse:
|
|
630
|
-
"show-asterisk":
|
|
631
|
-
"show-hint":
|
|
640
|
+
passthrough: x(N),
|
|
641
|
+
readonly: x(Ge),
|
|
642
|
+
reverse: x(M).reverse,
|
|
643
|
+
"show-asterisk": x(Be),
|
|
644
|
+
"show-hint": Ye.value,
|
|
632
645
|
warnings: c.warnings
|
|
633
|
-
},
|
|
634
|
-
label:
|
|
635
|
-
input:
|
|
646
|
+
}, x(N).forwardAttrs), Ce({
|
|
647
|
+
label: C((e) => [y(t.$slots, "label", Ee(h(e)))]),
|
|
648
|
+
input: C(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [m(ge, {
|
|
636
649
|
ref_key: "wrapper",
|
|
637
|
-
ref:
|
|
638
|
-
active:
|
|
639
|
-
"append:icon":
|
|
640
|
-
class:
|
|
641
|
-
clearable: c.clearable && !
|
|
642
|
-
compact:
|
|
650
|
+
ref: F,
|
|
651
|
+
active: O.value,
|
|
652
|
+
"append:icon": x(T)["append:icon"],
|
|
653
|
+
class: Te(["bb-time-picker-input__field", { "bb-time-picker-input__field--range": c.range }]),
|
|
654
|
+
clearable: c.clearable && !x(ce)(x(We)),
|
|
655
|
+
compact: x(M).compact,
|
|
643
656
|
disabled: c.disabled,
|
|
644
657
|
"has-errors": i,
|
|
645
|
-
"has-value":
|
|
658
|
+
"has-value": j.value,
|
|
646
659
|
"has-warnings": a,
|
|
647
660
|
loading: c.loading,
|
|
648
|
-
passthrough:
|
|
649
|
-
"prepend:icon":
|
|
650
|
-
readonly:
|
|
661
|
+
passthrough: x(N),
|
|
662
|
+
"prepend:icon": x(T)["prepend:icon"],
|
|
663
|
+
readonly: x(Ge),
|
|
651
664
|
variant: c.variant,
|
|
652
|
-
onClick:
|
|
653
|
-
"onClick:clear":
|
|
654
|
-
onFocusin:
|
|
665
|
+
onClick: Jt,
|
|
666
|
+
"onClick:clear": Ft,
|
|
667
|
+
onFocusin: It
|
|
655
668
|
}, Ce({
|
|
656
|
-
"prepend:outer":
|
|
657
|
-
prepend:
|
|
658
|
-
append:
|
|
669
|
+
"prepend:outer": C(() => [y(t.$slots, "prepend:outer")]),
|
|
670
|
+
prepend: C(() => [y(t.$slots, "prepend")]),
|
|
671
|
+
append: C(() => [p("button", g({
|
|
659
672
|
ref_key: "clockButton",
|
|
660
|
-
ref:
|
|
661
|
-
"aria-controls":
|
|
662
|
-
"aria-disabled":
|
|
663
|
-
"aria-expanded":
|
|
673
|
+
ref: et,
|
|
674
|
+
"aria-controls": I.value ? nt(r) : void 0,
|
|
675
|
+
"aria-disabled": x(Ke) || void 0,
|
|
676
|
+
"aria-expanded": Z.value,
|
|
664
677
|
"aria-haspopup": "dialog",
|
|
665
|
-
"aria-label":
|
|
666
|
-
class: ["bb-segmented-field__activator", { "bb-segmented-field__activator--active":
|
|
678
|
+
"aria-label": nn.value,
|
|
679
|
+
class: ["bb-segmented-field__activator", { "bb-segmented-field__activator--active": Z.value }],
|
|
667
680
|
disabled: c.disabled || c.readonly,
|
|
668
681
|
type: "button",
|
|
669
|
-
onClick:
|
|
670
|
-
},
|
|
682
|
+
onClick: Ne(Kt, ["stop"])
|
|
683
|
+
}, x(N).activator), [m(fe, {
|
|
671
684
|
class: "bb-segmented-field__trigger-icon",
|
|
672
|
-
icon:
|
|
673
|
-
}, null, 8, ["icon"])], 16,
|
|
685
|
+
icon: x(de)
|
|
686
|
+
}, null, 8, ["icon"])], 16, Re), y(t.$slots, "append", {}, () => [t.$slots.suffix ? (_(), f("span", g({
|
|
674
687
|
key: 0,
|
|
675
688
|
class: "bb-field-input__suffix"
|
|
676
|
-
},
|
|
677
|
-
"append:outer":
|
|
678
|
-
default:
|
|
679
|
-
|
|
680
|
-
class:
|
|
681
|
-
"bb-segmented-field__fields--empty":
|
|
689
|
+
}, x(N).suffix), [y(t.$slots, "suffix")], 16)) : Se("", !0)])]),
|
|
690
|
+
"append:outer": C(() => [y(t.$slots, "append:outer")]),
|
|
691
|
+
default: C(() => [
|
|
692
|
+
p("div", {
|
|
693
|
+
class: Te(["bb-segmented-field__fields", {
|
|
694
|
+
"bb-segmented-field__fields--empty": kt.value,
|
|
682
695
|
"bb-segmented-field__fields--range": c.range
|
|
683
696
|
}]),
|
|
684
|
-
style:
|
|
685
|
-
}, [
|
|
697
|
+
style: De({ "--fields-min-ch": x(pt) })
|
|
698
|
+
}, [kt.value ? (_(), f("span", {
|
|
686
699
|
key: 0,
|
|
687
700
|
"aria-hidden": "true",
|
|
688
701
|
class: "bb-segmented-field__placeholder",
|
|
689
|
-
onClick: n[0] ||= (...e) =>
|
|
690
|
-
},
|
|
702
|
+
onClick: n[0] ||= (...e) => x(gt) && x(gt)(...e)
|
|
703
|
+
}, b(Ot.value), 1)) : Se("", !0), (_(!0), f(xe, null, Ae(B.value, (t, n) => (_(), f(xe, { key: x(ut)(t) }, [p("span", {
|
|
691
704
|
class: "bb-segmented-field__field-sizer",
|
|
692
|
-
"data-value":
|
|
693
|
-
}, [
|
|
694
|
-
id: n === 0 ? r :
|
|
705
|
+
"data-value": x(ft)(t)
|
|
706
|
+
}, [Me(p("input", g({
|
|
707
|
+
id: n === 0 ? r : Ct(t, r),
|
|
695
708
|
ref_for: !0,
|
|
696
|
-
ref: (e) =>
|
|
697
|
-
"aria-describedby":
|
|
709
|
+
ref: (e) => x(lt)[x(ut)(t)] = e,
|
|
710
|
+
"aria-describedby": it(o, r),
|
|
698
711
|
"aria-disabled": c.disabled || void 0,
|
|
699
712
|
"aria-invalid": i ? "true" : void 0,
|
|
700
|
-
"aria-label":
|
|
701
|
-
"aria-readonly":
|
|
702
|
-
autocomplete:
|
|
713
|
+
"aria-label": Et(t),
|
|
714
|
+
"aria-readonly": at.value || void 0,
|
|
715
|
+
autocomplete: x(M).autocomplete,
|
|
703
716
|
autofocus: c.autofocus && n === 0,
|
|
704
717
|
class: ["bb-segmented-field__input", [`bb-segmented-field__input--${t.field}`, `bb-segmented-field__input--${t.segment}`]],
|
|
705
718
|
disabled: c.disabled,
|
|
706
|
-
inputmode:
|
|
707
|
-
maxlength:
|
|
708
|
-
name:
|
|
709
|
-
readonly:
|
|
710
|
-
required:
|
|
711
|
-
"aria-required":
|
|
719
|
+
inputmode: ot(t.field),
|
|
720
|
+
maxlength: V.value[t.field].maxLength,
|
|
721
|
+
name: wt(t),
|
|
722
|
+
readonly: at.value,
|
|
723
|
+
required: x(He),
|
|
724
|
+
"aria-required": x(Ue),
|
|
712
725
|
tabindex: t.field === "hour" ? 0 : -1,
|
|
713
726
|
type: "text",
|
|
714
|
-
value:
|
|
715
|
-
onBlur: (e) =>
|
|
716
|
-
onFocus: (e) =>
|
|
717
|
-
onInput: (e) =>
|
|
718
|
-
onKeydown: (e) =>
|
|
719
|
-
onPaste: (e) =>
|
|
720
|
-
}, { ref_for: !0 },
|
|
727
|
+
value: x(H)[t.segment][t.field],
|
|
728
|
+
onBlur: (e) => x(bt)(t),
|
|
729
|
+
onFocus: (e) => Qt(t, e),
|
|
730
|
+
onInput: (e) => St(t, e),
|
|
731
|
+
onKeydown: (e) => Xt(t, e),
|
|
732
|
+
onPaste: (e) => x(xt)(t, e)
|
|
733
|
+
}, { ref_for: !0 }, g(x(N).controlAttrs, x(N).input)), null, 16, Ie), [[x(e)]])], 8, Fe), n < B.value.length - 1 ? (_(), f("span", {
|
|
721
734
|
key: 0,
|
|
722
735
|
"aria-hidden": "true",
|
|
723
|
-
class:
|
|
736
|
+
class: Te(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": B.value[n].segment !== B.value[n + 1].segment }]),
|
|
724
737
|
role: "presentation",
|
|
725
|
-
onClick: (e) =>
|
|
726
|
-
},
|
|
727
|
-
|
|
728
|
-
id:
|
|
738
|
+
onClick: (e) => x(ht)(B.value[n + 1], { select: !0 })
|
|
739
|
+
}, b(ct(B.value[n], B.value[n + 1])), 11, Le)) : Se("", !0)], 64))), 128))], 6),
|
|
740
|
+
p("span", {
|
|
741
|
+
id: tt(r),
|
|
729
742
|
class: "bb-time-picker-input__accessible-description",
|
|
730
743
|
hidden: ""
|
|
731
|
-
},
|
|
732
|
-
|
|
733
|
-
default:
|
|
744
|
+
}, b(Dt.value), 9, ze),
|
|
745
|
+
m(x(Rt), null, {
|
|
746
|
+
default: C(() => [m(ve, {
|
|
734
747
|
ampm: c.ampm,
|
|
735
|
-
disabled: c.disabled ||
|
|
736
|
-
hour:
|
|
748
|
+
disabled: c.disabled || x(Ge),
|
|
749
|
+
hour: $t.value,
|
|
737
750
|
max: c.max,
|
|
738
|
-
meridiem:
|
|
751
|
+
meridiem: x(H)[$.value].meridiem,
|
|
739
752
|
min: c.min,
|
|
740
|
-
minute:
|
|
741
|
-
passthrough:
|
|
742
|
-
second:
|
|
753
|
+
minute: x(H)[$.value].minute,
|
|
754
|
+
passthrough: x(N),
|
|
755
|
+
second: x(H)[$.value].second,
|
|
743
756
|
seconds: c.seconds,
|
|
744
757
|
step: c.step,
|
|
745
|
-
onSelect:
|
|
746
|
-
onVnodeBeforeUnmount: n[1] ||= (e) =>
|
|
747
|
-
onVnodeMounted:
|
|
758
|
+
onSelect: en,
|
|
759
|
+
onVnodeBeforeUnmount: n[1] ||= (e) => I.value = null,
|
|
760
|
+
onVnodeMounted: $e
|
|
748
761
|
}, null, 8, [
|
|
749
762
|
"ampm",
|
|
750
763
|
"disabled",
|
|
@@ -760,39 +773,39 @@ var Ne = ["data-value"], Pe = [
|
|
|
760
773
|
])]),
|
|
761
774
|
_: 1
|
|
762
775
|
}),
|
|
763
|
-
|
|
776
|
+
Q.value ? (_(), d(pe, g({
|
|
764
777
|
key: 0,
|
|
765
|
-
modelValue:
|
|
766
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
778
|
+
modelValue: Z.value,
|
|
779
|
+
"onUpdate:modelValue": n[2] ||= (e) => Z.value = e,
|
|
767
780
|
class: "bb-time-picker-input__sheet",
|
|
768
|
-
pt:
|
|
781
|
+
pt: x(N).forward({
|
|
769
782
|
panel: "root",
|
|
770
783
|
sheet: "root"
|
|
771
|
-
},
|
|
772
|
-
},
|
|
773
|
-
onHidden:
|
|
774
|
-
onHide: n[3] ||= (e) =>
|
|
775
|
-
onShow: n[4] ||= (e) =>
|
|
776
|
-
onShown: n[5] ||= (e) =>
|
|
784
|
+
}, x(me).states, () => c.offCanvasProps?.pt)
|
|
785
|
+
}, Ut.value, {
|
|
786
|
+
onHidden: Wt,
|
|
787
|
+
onHide: n[3] ||= (e) => x(E)("hide"),
|
|
788
|
+
onShow: n[4] ||= (e) => x(E)("show"),
|
|
789
|
+
onShown: n[5] ||= (e) => x(E)("shown")
|
|
777
790
|
}), {
|
|
778
|
-
default:
|
|
791
|
+
default: C(() => [p("div", Ee(h(rt(r))), [m(x(zt))], 16)]),
|
|
779
792
|
_: 2
|
|
780
|
-
}, 1040, ["modelValue", "pt"])) : (
|
|
793
|
+
}, 1040, ["modelValue", "pt"])) : (_(), d(_e, {
|
|
781
794
|
key: 1,
|
|
782
|
-
modelValue:
|
|
783
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
784
|
-
anchor:
|
|
785
|
-
"bubble-attrs":
|
|
795
|
+
modelValue: Z.value,
|
|
796
|
+
"onUpdate:modelValue": n[6] ||= (e) => Z.value = e,
|
|
797
|
+
anchor: F.value,
|
|
798
|
+
"bubble-attrs": rt(r),
|
|
786
799
|
class: "bb-time-picker-input__popover",
|
|
787
800
|
dialog: "",
|
|
788
801
|
offset: 4,
|
|
789
802
|
"transition-duration": c.transitionDuration,
|
|
790
|
-
onHidden: n[7] ||= (e) =>
|
|
791
|
-
onHide: n[8] ||= (e) =>
|
|
792
|
-
onShow: n[9] ||= (e) =>
|
|
793
|
-
onShown: n[10] ||= (e) =>
|
|
803
|
+
onHidden: n[7] ||= (e) => x(E)("hidden"),
|
|
804
|
+
onHide: n[8] ||= (e) => x(E)("hide"),
|
|
805
|
+
onShow: n[9] ||= (e) => x(E)("show"),
|
|
806
|
+
onShown: n[10] ||= (e) => x(E)("shown")
|
|
794
807
|
}, {
|
|
795
|
-
default:
|
|
808
|
+
default: C(() => [m(x(zt))]),
|
|
796
809
|
_: 1
|
|
797
810
|
}, 8, [
|
|
798
811
|
"modelValue",
|
|
@@ -804,7 +817,7 @@ var Ne = ["data-value"], Pe = [
|
|
|
804
817
|
_: 2
|
|
805
818
|
}, [t.$slots.prefix ? {
|
|
806
819
|
name: "prefix",
|
|
807
|
-
fn:
|
|
820
|
+
fn: C(() => [y(t.$slots, "prefix")]),
|
|
808
821
|
key: "0"
|
|
809
822
|
} : void 0]), 1032, [
|
|
810
823
|
"active",
|
|
@@ -825,7 +838,7 @@ var Ne = ["data-value"], Pe = [
|
|
|
825
838
|
_: 2
|
|
826
839
|
}, [t.$slots.description ? {
|
|
827
840
|
name: "description",
|
|
828
|
-
fn:
|
|
841
|
+
fn: C((e) => [y(t.$slots, "description", Ee(h(e)))]),
|
|
829
842
|
key: "0"
|
|
830
843
|
} : void 0]), 1040, [
|
|
831
844
|
"id",
|
|
@@ -856,4 +869,4 @@ var Ne = ["data-value"], Pe = [
|
|
|
856
869
|
]));
|
|
857
870
|
}
|
|
858
871
|
});
|
|
859
|
-
export {
|
|
872
|
+
export { w as default };
|