bitboss-ui 3.0.0-beta.47 → 3.0.0-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -7
- package/bin/bitboss-ui-mcp.mjs +15 -3
- package/bin/bitboss-ui.mjs +167 -14
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +65 -65
- package/dist/ai/BbButton.md +28 -8
- package/dist/ai/BbCheckbox.md +0 -2
- package/dist/ai/BbCheckboxGroup.md +13 -20
- package/dist/ai/BbCollapsible.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +8 -0
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePickerInput.md +4 -2
- package/dist/ai/BbDialog.md +1 -8
- package/dist/ai/BbDropdown.md +231 -220
- package/dist/ai/BbDropdownButton.md +65 -65
- package/dist/ai/BbDropdownGroup.md +2 -2
- package/dist/ai/BbDropzone.md +10 -10
- package/dist/ai/BbForm.md +43 -52
- package/dist/ai/BbHoverCard.md +19 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +88 -21
- package/dist/ai/BbPopover.md +47 -40
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbProgress.md +48 -22
- package/dist/ai/BbRadioGroup.md +13 -19
- package/dist/ai/BbSelect.md +16 -36
- package/dist/ai/BbSelectPopover.md +14 -30
- package/dist/ai/BbSmoothHeight.md +0 -2
- package/dist/ai/BbSwitchGroup.md +13 -20
- package/dist/ai/BbTable.md +11 -10
- package/dist/ai/BbTabs.md +107 -106
- package/dist/ai/BbTabsList.md +2 -2
- package/dist/ai/BbTabsPanels.md +1 -1
- package/dist/ai/BbTabsRoot.md +3 -3
- package/dist/ai/BbTooltip.md +29 -13
- package/dist/ai/BbTree.md +14 -11
- package/dist/ai/CommonPopover.md +1 -1
- package/dist/ai/changelog.json +297 -6
- package/dist/ai/components.json +50 -45
- package/dist/ai/composables/useBbDropdownContext.md +16 -16
- package/dist/ai/composables/useBbFormField.md +5 -1
- package/dist/ai/composables/useBbTabsContext.md +14 -14
- package/dist/ai/guides/agent-contract.md +27 -27
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/component-picker.md +3 -3
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +10 -10
- package/dist/ai/guides/inertia-helpers.md +120 -67
- package/dist/ai/guides/installation-and-plugin-setup.md +45 -15
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +3 -2
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -16
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +9 -8
- package/dist/ai/guides/migration/components/bb-dropdown.md +15 -14
- package/dist/ai/guides/migration/components/bb-radio-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +6 -1
- package/dist/ai/guides/migration/components/bb-select.md +10 -2
- package/dist/ai/guides/migration/components/bb-switch-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-tabs.md +9 -8
- package/dist/ai/guides/migration/components/bb-tooltip.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +143 -28
- package/dist/ai/guides/migration/v3-beta-css-classes.md +29 -27
- package/dist/ai/guides/migration/v3-beta-tooling.md +11 -0
- package/dist/ai/guides/options-items-playbook.md +30 -24
- package/dist/ai/guides/passthrough.md +4 -4
- package/dist/ai/guides/preset-components.md +18 -3
- package/dist/ai/guides/typescript-generic-components.md +1 -1
- package/dist/ai/guides/validated-forms.md +11 -22
- package/dist/ai/guides/validation-providers.md +4 -3
- package/dist/ai/helpers/inertia/manifest.json +636 -0
- package/dist/ai/helpers/inertia/types.ts +15 -0
- package/dist/ai/helpers/inertia/useAsyncFn.ts +110 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +102 -0
- package/dist/ai/helpers/inertia/useDeleteCmd.ts +30 -0
- package/dist/ai/helpers/inertia/useHasChanged.ts +36 -0
- package/dist/ai/helpers/inertia/useIndexById.ts +23 -0
- package/dist/ai/helpers/inertia/useLazyProp.ts +148 -0
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +50 -0
- package/dist/ai/helpers/inertia/useLoading.ts +20 -0
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +88 -0
- package/dist/ai/helpers/inertia/usePromiseForm.ts +62 -0
- package/dist/ai/helpers/inertia/useProp.ts +63 -0
- package/dist/ai/helpers/inertia/useQuery.ts +19 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +116 -0
- package/dist/ai/helpers/inertia/useResourceContext.ts +69 -0
- package/dist/ai/helpers/inertia/useRouteQuery.ts +54 -0
- package/dist/ai/helpers/inertia/useScreenSizes.ts +23 -0
- package/dist/ai/helpers/inertia/useTableContext.ts +34 -0
- package/dist/ai/helpers/inertia/useTableSelectionContext.ts +48 -0
- package/dist/ai/helpers/inertia/useUntil.ts +33 -0
- package/dist/ai/helpers/inertia/utils.ts +24 -0
- package/dist/ai/index.md +6 -6
- package/dist/ai/manifest/components/BbAccordion.json +1 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.json +10 -6
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +2 -1
- package/dist/ai/manifest/components/BbButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCollapsible.json +1 -1
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.json +5 -2
- package/dist/ai/manifest/components/BbDropdown.json +23 -20
- package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +22 -19
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownGroup.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -0
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +2 -2
- package/dist/ai/manifest/components/BbNumberInput.json +6 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +2 -2
- package/dist/ai/manifest/components/BbProgress.json +6 -6
- package/dist/ai/manifest/components/BbProgress.tree.json +1 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +2 -2
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbTabs.json +8 -7
- package/dist/ai/manifest/components/BbTabsList.json +3 -3
- package/dist/ai/manifest/components/BbTabsPanels.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.json +2 -2
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +5 -0
- package/dist/ai/manifest/types.advanced.json +10 -9
- package/dist/ai/manifest/types.api.json +8 -5
- package/dist/ai/manifest/types.wrapper.json +1 -0
- package/dist/ai/recipes/inertia/approvals-inbox.md +16 -18
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +23 -33
- package/dist/ai/recipes/inertia/layout-scaffold.md +16 -16
- package/dist/ai/recipes/inertia/onboarding.md +6 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +15 -18
- package/dist/ai/recipes/inertia/record-form.md +11 -11
- package/dist/ai/recipes/inertia/records-workspace.md +38 -41
- package/dist/ai/recipes/inertia/settings-workspace.md +26 -38
- package/dist/ai/recipes/inertia/upload-center.md +31 -39
- package/dist/ai/recipes/inertia/wizard-form.md +10 -19
- package/dist/ai/recipes/nuxt/approvals-inbox.md +7 -8
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/nuxt/layout-scaffold.md +16 -16
- package/dist/ai/recipes/nuxt/onboarding.md +2 -6
- package/dist/ai/recipes/nuxt/ownership-atlas.md +7 -9
- package/dist/ai/recipes/nuxt/record-form.md +5 -5
- package/dist/ai/recipes/nuxt/records-workspace.md +29 -31
- package/dist/ai/recipes/nuxt/settings-workspace.md +22 -34
- package/dist/ai/recipes/nuxt/upload-center.md +22 -29
- package/dist/ai/recipes/nuxt/wizard-form.md +3 -11
- package/dist/ai/recipes/vue/approvals-inbox.md +7 -8
- package/dist/ai/recipes/vue/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/vue/layout-scaffold.md +16 -16
- package/dist/ai/recipes/vue/onboarding.md +2 -6
- package/dist/ai/recipes/vue/ownership-atlas.md +7 -9
- package/dist/ai/recipes/vue/record-form.md +5 -5
- package/dist/ai/recipes/vue/records-workspace.md +29 -31
- package/dist/ai/recipes/vue/settings-workspace.md +22 -34
- package/dist/ai/recipes/vue/upload-center.md +22 -29
- package/dist/ai/recipes/vue/wizard-form.md +3 -11
- package/dist/ai/source/BbAccordion.md +1 -1
- package/dist/ai/source/BbAlert.md +3 -3
- package/dist/ai/source/BbBadge.md +14 -10
- package/dist/ai/source/BbBadgeButton.md +17 -12
- package/dist/ai/source/BbBaseButton.md +1 -1
- package/dist/ai/source/BbBaseRadioIcon.md +1 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +1 -0
- package/dist/ai/source/BbBreadcrumbs.md +63 -42
- package/dist/ai/source/BbButton.md +84 -38
- package/dist/ai/source/BbCalendar.md +17 -16
- package/dist/ai/source/BbCheckbox.md +3 -2
- package/dist/ai/source/BbCheckboxGroup.md +11 -4
- package/dist/ai/source/BbCollapsible.md +2 -1
- package/dist/ai/source/BbColorInput.md +10 -9
- package/dist/ai/source/BbColorPalette.md +2 -1
- package/dist/ai/source/BbConfirm.md +18 -1
- package/dist/ai/source/BbConfirmPortal.md +20 -6
- package/dist/ai/source/BbDatePicker.md +2 -2
- package/dist/ai/source/BbDatePickerInput.md +47 -20
- package/dist/ai/source/BbDialog.md +5 -5
- package/dist/ai/source/BbDropdown.md +231 -158
- package/dist/ai/source/BbDropdownButton.md +19 -12
- package/dist/ai/source/BbDropdownGroup.md +127 -93
- package/dist/ai/source/BbForm.md +25 -1
- package/dist/ai/source/BbHoverCard.md +30 -3
- package/dist/ai/source/BbHoverCardPortal.md +18 -3
- package/dist/ai/source/BbIndicator.md +4 -0
- package/dist/ai/source/BbNumberInput.md +855 -19
- package/dist/ai/source/BbOffCanvas.md +27 -11
- package/dist/ai/source/BbPagination.md +3 -3
- package/dist/ai/source/BbPopover.md +185 -12
- package/dist/ai/source/BbPopoverPortal.md +30 -3
- package/dist/ai/source/BbProgress.md +82 -18
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +11 -9
- package/dist/ai/source/BbSelect.md +16 -10
- package/dist/ai/source/BbSelectPopover.md +29 -23
- package/dist/ai/source/BbSlider.md +12 -6
- package/dist/ai/source/BbSwitch.md +3 -2
- package/dist/ai/source/BbSwitchGroup.md +5 -2
- package/dist/ai/source/BbTable.md +102 -18
- package/dist/ai/source/BbTabs.md +30 -24
- package/dist/ai/source/BbTabsList.md +29 -23
- package/dist/ai/source/BbTabsPanels.md +29 -23
- package/dist/ai/source/BbTabsRoot.md +28 -22
- package/dist/ai/source/BbTag.md +10 -9
- package/dist/ai/source/BbTextInput.md +5 -4
- package/dist/ai/source/BbTextarea.md +6 -5
- package/dist/ai/source/BbTimePicker.md +1 -1
- package/dist/ai/source/BbTimePickerInput.md +46 -9
- package/dist/ai/source/BbToast.md +10 -7
- package/dist/ai/source/BbToastPortal.md +10 -7
- package/dist/ai/source/BbTooltip.md +88 -11
- package/dist/ai/source/BbTree.md +21 -3
- package/dist/ai/source/CommonField.md +6 -4
- package/dist/ai/source/CommonFieldInput.md +15 -10
- package/dist/ai/source/CommonPopover.md +8 -1
- package/dist/ai/source/CommonTimeSelector.md +5 -4
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +10 -8
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +45 -45
- package/dist/components/BbBreadcrumbs/types.d.ts +25 -17
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +88 -70
- package/dist/components/BbButton/toggleRoving.d.ts +6 -0
- package/dist/components/BbButton/toggleRoving.js +45 -0
- package/dist/components/BbButton/types.d.ts +12 -4
- package/dist/components/BbButton/types.js +5 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +178 -178
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/BbCalendar/useCalendarGrid.js +141 -139
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +38 -15
- package/dist/components/BbCalendar/useDayjsLocale.js +31 -30
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +48 -48
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbCheckboxGroup/types.d.ts +6 -2
- package/dist/components/BbCollapsible/types.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/BbColorPalette/types.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -5
- package/dist/components/BbConfirm/types.d.ts +15 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +363 -349
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +91 -86
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +298 -289
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +322 -356
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +17 -15
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +40 -0
- package/dist/components/BbDropdown/DropdownRow.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +8 -2
- package/dist/components/BbDropdown/normalizeGroups.js +60 -46
- package/dist/components/BbDropdown/types.d.ts +120 -88
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/components/BbDropdownButton/types.d.ts +2 -2
- package/dist/components/BbForm/BbForm.vue.d.ts +9 -0
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +114 -105
- package/dist/components/BbForm/BbFormCustomField.js +1 -1
- package/dist/components/BbForm/bindFormField.js +2 -1
- package/dist/components/BbForm/formFields.d.ts +5 -0
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +145 -142
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/types.d.ts +14 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +0 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +452 -125
- package/dist/components/BbNumberInput/numberDisplay.d.ts +256 -0
- package/dist/components/BbNumberInput/numberDisplay.js +499 -0
- package/dist/components/BbNumberInput/types.d.ts +54 -1
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +58 -0
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +28 -0
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +2 -0
- package/dist/components/BbNumberInput/warroom/harness.d.ts +217 -0
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +150 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +207 -162
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -2
- package/dist/components/BbPopover/types.d.ts +26 -1
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +15 -7
- package/dist/components/BbProgress/types.d.ts +23 -7
- package/dist/components/BbProgress/types.js +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +102 -101
- package/dist/components/BbRadioGroup/types.d.ts +6 -2
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +63 -63
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +156 -154
- package/dist/components/BbSelect/types.d.ts +6 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbSelectPopover/types.d.ts +6 -2
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +153 -153
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +62 -62
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +711 -676
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/types.d.ts +28 -22
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +76 -76
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +58 -58
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +246 -236
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -86
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
- package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
- package/dist/components/BbTooltip/types.d.ts +10 -3
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +29 -21
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +10 -7
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +37 -36
- package/dist/components/CommonPopover/types.d.ts +2 -1
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/composables/formSubmitLock.d.ts +6 -0
- package/dist/composables/formSubmitLock.js +4 -0
- package/dist/composables/useBaseOptions.d.ts +7 -1
- package/dist/composables/useBaseOptions.js +32 -32
- package/dist/composables/useBbDropdownContext.d.ts +8 -8
- package/dist/composables/useBbFormField.d.ts +9 -0
- package/dist/composables/useBbFormField.js +5 -3
- package/dist/composables/useBbTabsContext.d.ts +10 -10
- package/dist/composables/useBbTabsContext.js +18 -18
- package/dist/composables/useFormBinding.d.ts +11 -0
- package/dist/composables/useFormBinding.js +15 -13
- package/dist/composables/useItemText.d.ts +5 -1
- package/dist/composables/useItemText.js +8 -3
- package/dist/composables/useItemValue.d.ts +5 -1
- package/dist/composables/useItemValue.js +8 -3
- package/dist/composables/useLocale.js +10 -9
- package/dist/deprecation/ai-deprecations.json.d.ts +130 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +1 -1
- package/dist/directives/bbDropdown.js +1 -1
- package/dist/directives/directivePortal.d.ts +13 -7
- package/dist/directives/directivePortal.js +1 -4
- package/dist/i18n/index.d.ts +7 -12
- package/dist/i18n/locales/cs.json +11 -14
- package/dist/i18n/locales/da.json +13 -16
- package/dist/i18n/locales/de-CH.json +137 -0
- package/dist/i18n/locales/de.json +14 -17
- package/dist/i18n/locales/el.json +10 -13
- package/dist/i18n/locales/en-GB.json +137 -0
- package/dist/i18n/locales/en.json +8 -11
- package/dist/i18n/locales/es-MX.json +137 -0
- package/dist/i18n/locales/es.json +16 -19
- package/dist/i18n/locales/fi.json +8 -11
- package/dist/i18n/locales/fr.json +23 -26
- package/dist/i18n/locales/hu.json +8 -11
- package/dist/i18n/locales/it.json +12 -15
- package/dist/i18n/locales/ja.json +13 -16
- package/dist/i18n/locales/ko.json +10 -13
- package/dist/i18n/locales/nb.json +13 -16
- package/dist/i18n/locales/nl.json +21 -24
- package/dist/i18n/locales/pl.json +10 -13
- package/dist/i18n/locales/{pt.json → pt-BR.json} +19 -22
- package/dist/i18n/locales/pt-PT.json +137 -0
- package/dist/i18n/locales/ro.json +22 -25
- package/dist/i18n/locales/ru.json +11 -14
- package/dist/i18n/locales/sv.json +16 -19
- package/dist/i18n/locales/tr.json +14 -17
- package/dist/i18n/locales/uk.json +11 -14
- package/dist/i18n/locales/{zh-cn.json → zh-CN.json} +10 -13
- package/dist/i18n/locales/zh-HK.json +137 -0
- package/dist/i18n/locales/zh-TW.json +137 -0
- package/dist/i18n/regionHints.d.ts +16 -0
- package/dist/i18n/regionHints.js +49 -0
- package/dist/i18n/regions.d.ts +286 -0
- package/dist/i18n/regions.js +265 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/llms-full.txt +1914 -1714
- package/dist/llms-medium.txt +76 -46
- package/dist/llms.txt +7 -7
- package/dist/locale-blueprint.json +16 -13
- package/dist/styles.css +2 -2
- package/dist/types/passthrough.d.ts +1 -1
- package/dist/types/ptComponentMap.d.ts +2 -2
- package/dist/utilities/functions/slotKey.d.ts +2 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +22 -19
- package/dist/vite.js +309 -297
- package/llms.txt +7 -7
- package/package.json +5 -3
- package/scripts/lib/agent-manifest.mjs +2 -1
- package/scripts/lib/eslint-disable.mjs +17 -4
- package/scripts/lib/eslint-plugin.d.ts +9 -1
- package/scripts/lib/eslint-plugin.mjs +256 -6
- package/scripts/lib/helper-canon.mjs +176 -0
- package/scripts/lib/helpers-add.mjs +1303 -0
- package/scripts/lib/local-components.mjs +33 -4
- package/scripts/lib/locale-check.mjs +165 -0
- package/scripts/lib/portal-names.mjs +458 -0
- package/scripts/lib/redundant-item-accessor.mjs +398 -0
- package/scripts/lib/renamed-item-field.mjs +343 -0
- package/scripts/lib/slot-key.mjs +2 -2
- package/scripts/lib/slot-renames.mjs +1 -1
- package/scripts/lib/unimported-components.mjs +5 -2
- package/scripts/lib/validate-bb-markup.mjs +123 -56
- package/dist/i18n/index.js +0 -27
package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -17,16 +17,17 @@ import le from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
|
17
17
|
import { useEscapeStackEntry as ue } from "../../composables/useEscapeStackEntry.js";
|
|
18
18
|
import { useMeridiem as de } from "../CommonTimeSelector/useMeridiem.js";
|
|
19
19
|
import fe from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
20
|
-
import pe from "../
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
20
|
+
import { formatDateOf as pe, timeFieldsOf as me } from "../BbCalendar/useDayjsLocale.js";
|
|
21
|
+
import he from "../CommonField/CommonField.vue.js";
|
|
22
|
+
import { useFormBinding as ge } from "../../composables/useFormBinding.js";
|
|
23
|
+
import _e from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
24
|
+
import { useSegmentedFields as ve } from "../../composables/useSegmentedFields.js";
|
|
25
|
+
import ye from "../../assets/svgs/clock.svg_raw.js";
|
|
26
|
+
import { BB_TIME_PICKER_INPUT_PT as be } from "./types.js";
|
|
27
|
+
import { Fragment as xe, computed as c, createBlock as Se, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as Ce, createVNode as f, defineComponent as we, guardReactiveProps as p, mergeProps as m, normalizeClass as h, normalizeProps as g, normalizeStyle as Te, onBeforeUnmount as Ee, onDeactivated as De, openBlock as _, ref as v, renderList as Oe, renderSlot as y, toDisplayString as b, unref as x, useAttrs as ke, watch as Ae, withCtx as S, withModifiers as je } from "vue";
|
|
28
|
+
import { createReusableTemplate as Me } from "@vueuse/core";
|
|
28
29
|
//#region src/components/BbTimePickerInput/BbTimePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
29
|
-
var
|
|
30
|
+
var Ne = ["data-value"], Pe = [
|
|
30
31
|
"id",
|
|
31
32
|
"aria-describedby",
|
|
32
33
|
"aria-disabled",
|
|
@@ -49,12 +50,12 @@ var Ae = ["data-value"], je = [
|
|
|
49
50
|
"onInput",
|
|
50
51
|
"onKeydown",
|
|
51
52
|
"onPaste"
|
|
52
|
-
],
|
|
53
|
+
], Fe = ["onClick"], Ie = [
|
|
53
54
|
"aria-controls",
|
|
54
55
|
"aria-expanded",
|
|
55
56
|
"aria-label",
|
|
56
57
|
"disabled"
|
|
57
|
-
],
|
|
58
|
+
], Le = ["id"], Re = /*@__PURE__*/ we({
|
|
58
59
|
inheritAttrs: !1,
|
|
59
60
|
__name: "BbTimePickerInput",
|
|
60
61
|
props: {
|
|
@@ -283,67 +284,67 @@ var Ae = ["data-value"], je = [
|
|
|
283
284
|
"inactive",
|
|
284
285
|
"update:modelValue"
|
|
285
286
|
],
|
|
286
|
-
setup(
|
|
287
|
-
let
|
|
287
|
+
setup(we, { emit: Re }) {
|
|
288
|
+
let ze = we, { props: C, emit: w, showAsterisk: Be, errors: Ve, required: He, ariaRequired: Ue, model: We, readonly: T } = ge(ze, Re, {
|
|
288
289
|
componentName: "BbTimePickerInput",
|
|
289
|
-
identifierFallback: () =>
|
|
290
|
+
identifierFallback: () => ze.label,
|
|
290
291
|
leaveOn: "inactive"
|
|
291
292
|
});
|
|
292
293
|
process.env.NODE_ENV !== "production" && te("BbTimePickerInput", ee("BbTimePickerInput"));
|
|
293
|
-
let
|
|
294
|
-
|
|
294
|
+
let E = s(), { t: D } = oe(), Ge = e(), O = v(!1), k = v(!1), A = () => {
|
|
295
|
+
k.value = !1;
|
|
295
296
|
};
|
|
296
|
-
|
|
297
|
-
X.value = !1,
|
|
298
|
-
}),
|
|
299
|
-
let
|
|
297
|
+
De(() => {
|
|
298
|
+
X.value = !1, O.value ? Pt() : A();
|
|
299
|
+
}), Ee(A);
|
|
300
|
+
let Ke = c(() => C.persistentHint || k.value), j = c(() => n(C.modelValue)), qe = c(() => C.labelMode ?? E.defaultInputLabelMode), M = o({
|
|
300
301
|
component: "BbTimePickerInput",
|
|
301
|
-
attrs:
|
|
302
|
+
attrs: ke(),
|
|
302
303
|
controlAttrs: i,
|
|
303
|
-
props:
|
|
304
|
-
parts:
|
|
305
|
-
states:
|
|
304
|
+
props: C,
|
|
305
|
+
parts: be.parts,
|
|
306
|
+
states: be.states,
|
|
306
307
|
active: {
|
|
307
|
-
...a(
|
|
308
|
+
...a(C, () => j.value),
|
|
308
309
|
open: () => X.value
|
|
309
310
|
}
|
|
310
|
-
}),
|
|
311
|
+
}), N = de(), Je = (e, t) => N.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, Ye = (e) => {
|
|
311
312
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
312
313
|
return n === 0 && (n = 12), {
|
|
313
314
|
hour: String(n).padStart(2, "0"),
|
|
314
315
|
meridiem: t
|
|
315
316
|
};
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
},
|
|
319
|
-
id:
|
|
320
|
-
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet":
|
|
321
|
-
inert:
|
|
322
|
-
},
|
|
323
|
-
let n = [e,
|
|
317
|
+
}, P = v(null), F = v(null), Xe = (e) => {
|
|
318
|
+
F.value = e.el?.parentElement ?? null;
|
|
319
|
+
}, Ze = v(null), Qe = (e) => `btpi-description_${e}`, $e = (e) => `btpi-panel_${e}`, et = (e) => m({
|
|
320
|
+
id: $e(e),
|
|
321
|
+
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet": Z.value }],
|
|
322
|
+
inert: Lt.value
|
|
323
|
+
}, Z.value ? {} : M.panel ?? {}), tt = (e, t) => {
|
|
324
|
+
let n = [e, Qe(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
324
325
|
return Array.from(new Set(n)).join(" ");
|
|
325
|
-
}, { isMobile:
|
|
326
|
-
let t =
|
|
326
|
+
}, { isMobile: I } = ie(), L = c(() => C.disableWriting === "mobile" ? !I.value : C.disableWriting === "desktop" ? I.value : !C.disableWriting), nt = c(() => !!C.readonly || !L.value), rt = (e) => L.value ? at.value[e].kind === "enum" ? "none" : "numeric" : "none", it = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, R = (e) => {
|
|
327
|
+
let t = it.exec(e);
|
|
327
328
|
if (!t) return null;
|
|
328
329
|
let [, n, r] = t, i = parseInt(n, 10), a = parseInt(r, 10);
|
|
329
330
|
return i > 23 || a > 59 ? null : i * 60 + a;
|
|
330
331
|
};
|
|
331
|
-
for (let [e, t] of [["min",
|
|
332
|
-
let
|
|
332
|
+
for (let [e, t] of [["min", C.min], ["max", C.max]]) t && R(t) === null && Ge.throw(`BbTimePickerInput: ${e} must be in the format HH:mm`);
|
|
333
|
+
let z = c(() => {
|
|
333
334
|
let e = ["hour", "minute"];
|
|
334
|
-
|
|
335
|
+
C.seconds && e.push("second"), C.ampm && e.push("meridiem");
|
|
335
336
|
let t = e.map((e) => ({
|
|
336
337
|
segment: "start",
|
|
337
338
|
field: e
|
|
338
339
|
}));
|
|
339
|
-
if (!
|
|
340
|
+
if (!C.range) return t;
|
|
340
341
|
let n = e.map((e) => ({
|
|
341
342
|
segment: "end",
|
|
342
343
|
field: e
|
|
343
344
|
}));
|
|
344
345
|
return [...t, ...n];
|
|
345
|
-
}),
|
|
346
|
-
hour:
|
|
346
|
+
}), at = c(() => ({
|
|
347
|
+
hour: C.ampm ? {
|
|
347
348
|
kind: "numeric",
|
|
348
349
|
maxLength: 2,
|
|
349
350
|
max: 12,
|
|
@@ -375,10 +376,10 @@ var Ae = ["data-value"], je = [
|
|
|
375
376
|
autoAdvanceFrom: 6,
|
|
376
377
|
label: "Second"
|
|
377
378
|
},
|
|
378
|
-
meridiem:
|
|
379
|
-
})),
|
|
380
|
-
fieldOrder:
|
|
381
|
-
specs:
|
|
379
|
+
meridiem: N.fieldSpec.value
|
|
380
|
+
})), ot = (e, t) => e.segment === t.segment ? t.field === "meridiem" ? " " : ":" : "–", { fields: B, fieldRefs: st, descriptorKey: ct, emptyFieldGroup: lt, getSizedValue: ut, minChars: dt, updateAllSizedValues: V, isOwnField: ft, focusField: pt, focusFirstField: mt, segmentStatus: H, onFieldInput: ht, onFieldKeydown: gt, onFieldFocus: _t, onFieldBlur: vt, onFieldPaste: yt } = ve({
|
|
381
|
+
fieldOrder: z,
|
|
382
|
+
specs: at,
|
|
382
383
|
segments: ["start", "end"],
|
|
383
384
|
fieldKeys: [
|
|
384
385
|
"hour",
|
|
@@ -389,50 +390,50 @@ var Ae = ["data-value"], je = [
|
|
|
389
390
|
optionalGroups: [["second"]],
|
|
390
391
|
advanceKeys: [":", " "],
|
|
391
392
|
onDirty: () => J({ finalize: !1 })
|
|
392
|
-
}),
|
|
393
|
+
}), bt = (e, t) => {
|
|
393
394
|
if (e.field === "meridiem") {
|
|
394
|
-
let n = B.value[e.segment], r =
|
|
395
|
+
let n = B.value[e.segment], r = N.match(t.target.value, n.meridiem);
|
|
395
396
|
r && r !== n.meridiem && (n.meridiem = r, J({ finalize: !1 }));
|
|
396
397
|
}
|
|
397
|
-
|
|
398
|
+
ht(e, t);
|
|
398
399
|
};
|
|
399
|
-
|
|
400
|
+
N.onRelabel((e, t) => {
|
|
400
401
|
for (let n of Object.values(B.value)) n.meridiem === e && (n.meridiem = t);
|
|
401
402
|
V();
|
|
402
403
|
});
|
|
403
|
-
let
|
|
404
|
-
if (
|
|
405
|
-
},
|
|
404
|
+
let xt = (e, t) => C.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, St = (e) => {
|
|
405
|
+
if (C.name) return C.range ? `${C.name}-${e.segment}-${e.field}` : `${C.name}-${e.field}`;
|
|
406
|
+
}, Ct = {
|
|
406
407
|
hour: "datePickerInput.hourField",
|
|
407
408
|
minute: "datePickerInput.minuteField",
|
|
408
409
|
second: "datePickerInput.secondField",
|
|
409
410
|
meridiem: "datePickerInput.meridiemField"
|
|
410
|
-
},
|
|
411
|
-
let t =
|
|
412
|
-
return
|
|
413
|
-
},
|
|
414
|
-
let e =
|
|
415
|
-
return
|
|
416
|
-
}),
|
|
411
|
+
}, wt = (e) => {
|
|
412
|
+
let t = D(Ct[e.field]).value;
|
|
413
|
+
return C.range ? D(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
|
|
414
|
+
}, Tt = c(() => {
|
|
415
|
+
let e = D(C.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat").value;
|
|
416
|
+
return C.range ? `${e} – ${e}` : e;
|
|
417
|
+
}), Et = c(() => C.placeholder || Tt.value), Dt = c(() => z.value.every((e) => !B.value[e.segment][e.field])), Ot = (e) => {
|
|
417
418
|
if (!e.hour) return 0;
|
|
418
419
|
let t = parseInt(e.hour, 10);
|
|
419
|
-
return
|
|
420
|
-
},
|
|
421
|
-
if (!
|
|
420
|
+
return C.ampm ? Je(t, e.meridiem || "AM") : t;
|
|
421
|
+
}, kt = (e, t) => {
|
|
422
|
+
if (!C.ampm) {
|
|
422
423
|
e.hour = String(t).padStart(2, "0");
|
|
423
424
|
return;
|
|
424
425
|
}
|
|
425
|
-
let n =
|
|
426
|
-
e.hour = n.hour, e.meridiem =
|
|
426
|
+
let n = Ye(t);
|
|
427
|
+
e.hour = n.hour, e.meridiem = N.label(n.meridiem);
|
|
427
428
|
}, U = (e) => {
|
|
428
|
-
let t =
|
|
429
|
+
let t = lt();
|
|
429
430
|
if (!e) return t;
|
|
430
|
-
let n =
|
|
431
|
+
let n = it.exec(e);
|
|
431
432
|
if (!n) return t;
|
|
432
433
|
let [, r, i, a] = n, o = parseInt(r, 10);
|
|
433
|
-
return o > 23 || parseInt(i, 10) > 59 ? t : (
|
|
434
|
+
return o > 23 || parseInt(i, 10) > 59 ? t : (kt(t, o), t.minute = i.padStart(2, "0"), t.second = C.seconds && a ? a.padStart(2, "0") : "", t);
|
|
434
435
|
}, W = (e) => {
|
|
435
|
-
if (
|
|
436
|
+
if (C.range) {
|
|
436
437
|
let [t, n] = Array.isArray(e) ? e : [];
|
|
437
438
|
B.value = {
|
|
438
439
|
start: U(t),
|
|
@@ -442,49 +443,49 @@ var Ae = ["data-value"], je = [
|
|
|
442
443
|
}
|
|
443
444
|
B.value = {
|
|
444
445
|
start: U(typeof e == "string" ? e : void 0),
|
|
445
|
-
end:
|
|
446
|
+
end: lt()
|
|
446
447
|
};
|
|
447
|
-
},
|
|
448
|
-
W(
|
|
448
|
+
}, At = () => {
|
|
449
|
+
W(C.modelValue);
|
|
449
450
|
};
|
|
450
|
-
W(
|
|
451
|
+
W(C.modelValue), V(), Ae(() => C.modelValue, (e) => {
|
|
451
452
|
if (e === null || Array.isArray(e) && e.length === 0) {
|
|
452
453
|
W(e), V();
|
|
453
454
|
return;
|
|
454
455
|
}
|
|
455
456
|
let t = document.activeElement;
|
|
456
|
-
t &&
|
|
457
|
+
t && ft(t) || (W(e), V());
|
|
457
458
|
});
|
|
458
459
|
let G = (e) => {
|
|
459
|
-
let t = B.value[e], n = String(
|
|
460
|
-
return
|
|
461
|
-
}, K = (e) =>
|
|
462
|
-
let t =
|
|
463
|
-
return t === null ? e :
|
|
464
|
-
},
|
|
460
|
+
let t = B.value[e], n = String(Ot(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
461
|
+
return C.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
462
|
+
}, K = (e) => w("error", e), q = (e) => {
|
|
463
|
+
let t = R(e);
|
|
464
|
+
return t === null ? e : C.min && t < R(C.min) ? C.min + (C.seconds ? ":00" : "") : C.max && t > R(C.max) ? C.max + (C.seconds ? ":00" : "") : e;
|
|
465
|
+
}, jt = () => H("start") === "partial" ? !0 : C.range ? H("end") === "partial" : !1, J = (e = {}) => {
|
|
465
466
|
let t = !!e.finalize, n = H("start");
|
|
466
|
-
if (!
|
|
467
|
+
if (!C.range) {
|
|
467
468
|
if (n === "empty") {
|
|
468
|
-
|
|
469
|
+
w("update:modelValue", null);
|
|
469
470
|
return;
|
|
470
471
|
}
|
|
471
472
|
if (n === "partial") return;
|
|
472
473
|
let e = G("start"), r = q(e);
|
|
473
474
|
if (r !== e) {
|
|
474
475
|
if (!t) return;
|
|
475
|
-
B.value.start = U(r), V(),
|
|
476
|
+
B.value.start = U(r), V(), w("update:modelValue", r), K({
|
|
476
477
|
code: "disabled_time",
|
|
477
478
|
original: e,
|
|
478
479
|
normalized: r
|
|
479
480
|
});
|
|
480
481
|
return;
|
|
481
482
|
}
|
|
482
|
-
|
|
483
|
+
w("update:modelValue", e);
|
|
483
484
|
return;
|
|
484
485
|
}
|
|
485
486
|
let r = H("end");
|
|
486
487
|
if (n === "empty" && r === "empty") {
|
|
487
|
-
|
|
488
|
+
w("update:modelValue", []);
|
|
488
489
|
return;
|
|
489
490
|
}
|
|
490
491
|
if (n === "partial" || r === "partial" || n === "empty") return;
|
|
@@ -498,7 +499,7 @@ var Ae = ["data-value"], je = [
|
|
|
498
499
|
}), i = a;
|
|
499
500
|
}
|
|
500
501
|
if (r === "empty") {
|
|
501
|
-
|
|
502
|
+
w("update:modelValue", [i]);
|
|
502
503
|
return;
|
|
503
504
|
}
|
|
504
505
|
let o = G("end"), s = q(o);
|
|
@@ -510,221 +511,230 @@ var Ae = ["data-value"], je = [
|
|
|
510
511
|
normalized: s
|
|
511
512
|
}), o = s;
|
|
512
513
|
}
|
|
513
|
-
if (
|
|
514
|
+
if (R(o) < R(i)) {
|
|
514
515
|
if (!t) return;
|
|
515
516
|
let e = { ...B.value.start };
|
|
516
|
-
B.value.start = { ...B.value.end }, B.value.end = e, V(),
|
|
517
|
+
B.value.start = { ...B.value.end }, B.value.end = e, V(), w("update:modelValue", [o, i]), K({
|
|
517
518
|
code: "end_before_start",
|
|
518
519
|
original: [i, o],
|
|
519
520
|
normalized: [o, i]
|
|
520
521
|
});
|
|
521
522
|
return;
|
|
522
523
|
}
|
|
523
|
-
V(),
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
},
|
|
527
|
-
|
|
524
|
+
V(), w("update:modelValue", [i, o]);
|
|
525
|
+
}, Mt = () => {
|
|
526
|
+
w("update:modelValue", C.range ? [] : null);
|
|
527
|
+
}, Nt = () => {
|
|
528
|
+
O.value || (k.value = !0, w("active"), O.value = !0, document.addEventListener("focusin", Y), document.addEventListener("click", Y));
|
|
528
529
|
}, Y = (e) => {
|
|
529
530
|
let t = e.target;
|
|
530
|
-
t instanceof HTMLElement &&
|
|
531
|
-
},
|
|
532
|
-
J({ finalize: !0 }),
|
|
533
|
-
}, [
|
|
534
|
-
|
|
535
|
-
() =>
|
|
536
|
-
|
|
531
|
+
t instanceof HTMLElement && P.value?.$el && (P.value.$el.contains(t) || F.value?.contains(t) || Pt());
|
|
532
|
+
}, Pt = () => {
|
|
533
|
+
J({ finalize: !0 }), jt() && (At(), V()), O.value = !1, A(), w("inactive"), document.removeEventListener("focusin", Y), document.removeEventListener("click", Y);
|
|
534
|
+
}, [Ft, It] = Me(), X = v(!1), Lt = ae(X, () => C.transitionDuration ?? ne.medium), Rt = () => (C.adaptive ?? E.adaptive) && I.value ? "canvas" : "popover", zt = v(Rt()), Z = c(() => zt.value === "canvas");
|
|
535
|
+
Ae([
|
|
536
|
+
() => C.adaptive,
|
|
537
|
+
I,
|
|
537
538
|
X
|
|
538
539
|
], () => {
|
|
539
|
-
X.value || (
|
|
540
|
-
}), ue(() => X.value && !
|
|
541
|
-
let
|
|
540
|
+
X.value || (zt.value = Rt());
|
|
541
|
+
}), ue(() => X.value && !Z.value, () => X.value = !1);
|
|
542
|
+
let Bt = c(() => ({
|
|
542
543
|
side: "bottom",
|
|
543
544
|
size: "auto",
|
|
544
545
|
draggable: !0,
|
|
545
|
-
disabled:
|
|
546
|
-
transitionDuration:
|
|
546
|
+
disabled: C.disabled,
|
|
547
|
+
transitionDuration: C.transitionDuration,
|
|
547
548
|
hideClose: !0,
|
|
548
|
-
...r(
|
|
549
|
-
})),
|
|
550
|
-
|
|
551
|
-
},
|
|
549
|
+
...r(C.offCanvasProps)
|
|
550
|
+
})), Vt = () => {
|
|
551
|
+
Ze.value?.focus(), w("hidden");
|
|
552
|
+
}, Q = (e) => {
|
|
552
553
|
let t = e.target;
|
|
553
554
|
t && t instanceof HTMLDialogElement && (X.value = !1);
|
|
554
|
-
},
|
|
555
|
-
|
|
556
|
-
},
|
|
557
|
-
if (!
|
|
555
|
+
}, Ht = () => {
|
|
556
|
+
C.disabled || C.readonly || (zt.value = Rt(), X.value = !0);
|
|
557
|
+
}, Ut = c(() => !L.value && !C.disabled && !C.readonly), Wt = (e) => {
|
|
558
|
+
if (!Ut.value || X.value) return;
|
|
558
559
|
let t = e.target;
|
|
559
|
-
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") ||
|
|
560
|
-
},
|
|
561
|
-
if (
|
|
562
|
-
t.preventDefault(), X.value ||
|
|
560
|
+
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") || Ht());
|
|
561
|
+
}, Gt = (e) => e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey, Kt = (e, t) => {
|
|
562
|
+
if (Ut.value && (t.key === "Enter" || t.key === " ")) {
|
|
563
|
+
t.preventDefault(), X.value || Ht();
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
if (C.readonly && Gt(t)) {
|
|
567
|
+
t.preventDefault();
|
|
563
568
|
return;
|
|
564
569
|
}
|
|
565
|
-
|
|
570
|
+
gt(e, t);
|
|
566
571
|
};
|
|
567
|
-
|
|
568
|
-
e ?
|
|
572
|
+
Ae(X, (e) => {
|
|
573
|
+
e ? Z.value || document.addEventListener("click", Q, { passive: !0 }) : document.removeEventListener("click", Q);
|
|
569
574
|
});
|
|
570
|
-
let
|
|
571
|
-
|
|
572
|
-
}, $ = c(() =>
|
|
575
|
+
let qt = v("start"), Jt = (e, t) => {
|
|
576
|
+
qt.value = e.segment, _t(e), w("focus", t);
|
|
577
|
+
}, $ = c(() => C.range ? B.value[qt.value].hour ? qt.value : B.value.start.hour && !B.value.end.hour ? "end" : "start" : "start"), Yt = c(() => {
|
|
573
578
|
let e = B.value[$.value];
|
|
574
|
-
return e.hour ? String(
|
|
575
|
-
}),
|
|
579
|
+
return e.hour ? String(Ot(e)).padStart(2, "0") : "";
|
|
580
|
+
}), Xt = ({ unit: e, value: t }) => {
|
|
576
581
|
let n = B.value[$.value];
|
|
577
|
-
e === "hour" ?
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
+
e === "hour" ? kt(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = N.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour || (C.ampm ? n.hour = "12" : n.hour = "00"), C.ampm && !n.meridiem && (n.meridiem = N.am.value), n.minute ||= "00", C.seconds && !n.second && (n.second = "00"), V(), J({ finalize: !1 });
|
|
583
|
+
}, Zt = (e) => {
|
|
584
|
+
let t = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/.exec(e);
|
|
585
|
+
if (!t) return e;
|
|
586
|
+
let [, n, r, i] = t;
|
|
587
|
+
return pe(new Date(2e3, 0, 1, +n, +r, +(i ?? 0)), E.locale, me(!!C.ampm, !!C.seconds));
|
|
588
|
+
}, Qt = c(() => {
|
|
589
|
+
if (C.range) {
|
|
590
|
+
let [e, t] = Array.isArray(C.modelValue) ? C.modelValue : [];
|
|
591
|
+
return !e || !t ? D("timePickerInput.emptyRange").value : D("timePickerInput.changeSelectionRange", Zt(e), Zt(t)).value;
|
|
582
592
|
}
|
|
583
|
-
return typeof
|
|
593
|
+
return typeof C.modelValue == "string" && C.modelValue ? D("timePickerInput.changeSelection", Zt(C.modelValue)).value : D("timePickerInput.emptySelection").value;
|
|
584
594
|
});
|
|
585
|
-
return
|
|
586
|
-
document.removeEventListener("focusin", Y), document.removeEventListener("click", Y), document.removeEventListener("click",
|
|
587
|
-
}), (e, n) => (
|
|
595
|
+
return Ee(() => {
|
|
596
|
+
document.removeEventListener("focusin", Y), document.removeEventListener("click", Y), document.removeEventListener("click", Q);
|
|
597
|
+
}), (e, n) => (_(), Se(he, m({
|
|
588
598
|
id: e.id,
|
|
589
599
|
class: "bb-time-picker-input",
|
|
590
|
-
clearable: e.clearable &&
|
|
600
|
+
clearable: e.clearable && j.value,
|
|
591
601
|
compact: e.compact,
|
|
592
602
|
description: e.description,
|
|
593
603
|
disabled: e.disabled,
|
|
594
|
-
errors:
|
|
604
|
+
errors: x(Ve),
|
|
595
605
|
"has-errors": e.hasErrors,
|
|
596
|
-
"has-value":
|
|
606
|
+
"has-value": j.value,
|
|
597
607
|
"has-warnings": e.hasWarnings,
|
|
598
608
|
"hide-label": e.hideLabel,
|
|
599
609
|
hint: e.hint,
|
|
600
610
|
"input-align": e.inputAlign,
|
|
601
611
|
label: e.label,
|
|
602
612
|
"label-align": e.labelAlign,
|
|
603
|
-
"label-mode":
|
|
613
|
+
"label-mode": qe.value,
|
|
604
614
|
"label-position": e.labelPosition,
|
|
605
615
|
layout: e.layout,
|
|
606
616
|
loading: e.loading,
|
|
607
617
|
name: e.name,
|
|
608
|
-
passthrough:
|
|
609
|
-
readonly:
|
|
618
|
+
passthrough: x(M),
|
|
619
|
+
readonly: x(T),
|
|
610
620
|
reverse: e.reverse,
|
|
611
|
-
"show-asterisk":
|
|
612
|
-
"show-hint":
|
|
621
|
+
"show-asterisk": x(Be),
|
|
622
|
+
"show-hint": Ke.value,
|
|
613
623
|
warnings: e.warnings
|
|
614
|
-
},
|
|
615
|
-
label:
|
|
616
|
-
input:
|
|
624
|
+
}, x(M).forwardAttrs), Ce({
|
|
625
|
+
label: S((t) => [y(e.$slots, "label", g(p(t)))]),
|
|
626
|
+
input: S(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [f(_e, {
|
|
617
627
|
ref_key: "wrapper",
|
|
618
|
-
ref:
|
|
619
|
-
active:
|
|
620
|
-
"append:icon":
|
|
621
|
-
class:
|
|
622
|
-
clearable: e.clearable && !
|
|
628
|
+
ref: P,
|
|
629
|
+
active: O.value,
|
|
630
|
+
"append:icon": x(C)["append:icon"],
|
|
631
|
+
class: h(["bb-time-picker-input__field", { "bb-time-picker-input__field--range": e.range }]),
|
|
632
|
+
clearable: e.clearable && !x(t)(x(We)),
|
|
623
633
|
compact: e.compact,
|
|
624
634
|
disabled: e.disabled,
|
|
625
635
|
"has-errors": i,
|
|
626
|
-
"has-value":
|
|
636
|
+
"has-value": j.value,
|
|
627
637
|
"has-warnings": a,
|
|
628
638
|
loading: e.loading,
|
|
629
|
-
passthrough:
|
|
630
|
-
"prepend:icon":
|
|
631
|
-
readonly:
|
|
639
|
+
passthrough: x(M),
|
|
640
|
+
"prepend:icon": x(C)["prepend:icon"],
|
|
641
|
+
readonly: x(T),
|
|
632
642
|
variant: e.variant,
|
|
633
|
-
onClick:
|
|
634
|
-
"onClick:clear":
|
|
635
|
-
onFocusin:
|
|
636
|
-
},
|
|
637
|
-
"prepend:outer":
|
|
638
|
-
prepend:
|
|
639
|
-
append:
|
|
643
|
+
onClick: Wt,
|
|
644
|
+
"onClick:clear": Mt,
|
|
645
|
+
onFocusin: Nt
|
|
646
|
+
}, Ce({
|
|
647
|
+
"prepend:outer": S(() => [y(e.$slots, "prepend:outer")]),
|
|
648
|
+
prepend: S(() => [y(e.$slots, "prepend")]),
|
|
649
|
+
append: S(() => [d("button", m({
|
|
640
650
|
ref_key: "clockButton",
|
|
641
|
-
ref:
|
|
642
|
-
"aria-controls":
|
|
651
|
+
ref: Ze,
|
|
652
|
+
"aria-controls": F.value ? $e(r) : void 0,
|
|
643
653
|
"aria-expanded": X.value,
|
|
644
654
|
"aria-haspopup": "dialog",
|
|
645
|
-
"aria-label":
|
|
655
|
+
"aria-label": Qt.value,
|
|
646
656
|
class: ["bb-segmented-field__activator", { "bb-segmented-field__activator--active": X.value }],
|
|
647
|
-
disabled: e.disabled ||
|
|
657
|
+
disabled: e.disabled || x(T),
|
|
648
658
|
type: "button",
|
|
649
|
-
onClick:
|
|
650
|
-
},
|
|
659
|
+
onClick: je(Ht, ["stop"])
|
|
660
|
+
}, x(M).activator), [f(se, {
|
|
651
661
|
class: "bb-segmented-field__trigger-icon",
|
|
652
|
-
icon:
|
|
653
|
-
}, null, 8, ["icon"])], 16,
|
|
662
|
+
icon: x(ye)
|
|
663
|
+
}, null, 8, ["icon"])], 16, Ie), y(e.$slots, "append", {}, () => [e.$slots.suffix ? (_(), u("span", m({
|
|
654
664
|
key: 0,
|
|
655
665
|
class: "bb-field-input__suffix"
|
|
656
|
-
},
|
|
657
|
-
"append:outer":
|
|
658
|
-
default:
|
|
659
|
-
|
|
660
|
-
class:
|
|
661
|
-
"bb-segmented-field__fields--empty":
|
|
666
|
+
}, x(M).suffix), [y(e.$slots, "suffix")], 16)) : l("", !0)])]),
|
|
667
|
+
"append:outer": S(() => [y(e.$slots, "append:outer")]),
|
|
668
|
+
default: S(() => [
|
|
669
|
+
d("div", {
|
|
670
|
+
class: h(["bb-segmented-field__fields", {
|
|
671
|
+
"bb-segmented-field__fields--empty": Dt.value,
|
|
662
672
|
"bb-segmented-field__fields--range": e.range
|
|
663
673
|
}]),
|
|
664
|
-
style:
|
|
665
|
-
}, [
|
|
674
|
+
style: Te({ "--fields-min-ch": x(dt) })
|
|
675
|
+
}, [Dt.value ? (_(), u("span", {
|
|
666
676
|
key: 0,
|
|
667
677
|
"aria-hidden": "true",
|
|
668
678
|
class: "bb-segmented-field__placeholder",
|
|
669
|
-
onClick: n[0] ||= (...e) =>
|
|
670
|
-
},
|
|
679
|
+
onClick: n[0] ||= (...e) => x(mt) && x(mt)(...e)
|
|
680
|
+
}, b(Et.value), 1)) : l("", !0), (_(!0), u(xe, null, Oe(z.value, (t, n) => (_(), u(xe, { key: x(ct)(t) }, [d("span", {
|
|
671
681
|
class: "bb-segmented-field__field-sizer",
|
|
672
|
-
"data-value":
|
|
673
|
-
}, [
|
|
674
|
-
id: n === 0 ? r :
|
|
682
|
+
"data-value": x(ut)(t)
|
|
683
|
+
}, [d("input", m({
|
|
684
|
+
id: n === 0 ? r : xt(t, r),
|
|
675
685
|
ref_for: !0,
|
|
676
|
-
ref: (e) =>
|
|
677
|
-
"aria-describedby":
|
|
686
|
+
ref: (e) => x(st)[x(ct)(t)] = e,
|
|
687
|
+
"aria-describedby": tt(o, r),
|
|
678
688
|
"aria-disabled": e.disabled || void 0,
|
|
679
689
|
"aria-invalid": i ? "true" : void 0,
|
|
680
|
-
"aria-label":
|
|
681
|
-
"aria-readonly":
|
|
690
|
+
"aria-label": wt(t),
|
|
691
|
+
"aria-readonly": nt.value || void 0,
|
|
682
692
|
autocomplete: e.autocomplete,
|
|
683
693
|
autofocus: e.autofocus && n === 0,
|
|
684
694
|
class: ["bb-segmented-field__input", [`bb-segmented-field__input--${t.field}`, `bb-segmented-field__input--${t.segment}`]],
|
|
685
695
|
disabled: e.disabled,
|
|
686
|
-
inputmode:
|
|
687
|
-
maxlength:
|
|
688
|
-
name:
|
|
689
|
-
readonly:
|
|
690
|
-
required:
|
|
691
|
-
"aria-required":
|
|
696
|
+
inputmode: rt(t.field),
|
|
697
|
+
maxlength: at.value[t.field].maxLength,
|
|
698
|
+
name: St(t),
|
|
699
|
+
readonly: nt.value,
|
|
700
|
+
required: x(He),
|
|
701
|
+
"aria-required": x(Ue),
|
|
692
702
|
tabindex: t.field === "hour" ? 0 : -1,
|
|
693
703
|
type: "text",
|
|
694
|
-
value:
|
|
695
|
-
onBlur: (e) =>
|
|
696
|
-
onFocus: (e) =>
|
|
697
|
-
onInput: (e) =>
|
|
698
|
-
onKeydown: (e) =>
|
|
699
|
-
onPaste: (e) =>
|
|
700
|
-
},
|
|
704
|
+
value: x(B)[t.segment][t.field],
|
|
705
|
+
onBlur: (e) => x(vt)(t),
|
|
706
|
+
onFocus: (e) => Jt(t, e),
|
|
707
|
+
onInput: (e) => bt(t, e),
|
|
708
|
+
onKeydown: (e) => Kt(t, e),
|
|
709
|
+
onPaste: (e) => x(yt)(t, e)
|
|
710
|
+
}, m(x(M).controlAttrs, x(M).input)), null, 16, Pe)], 8, Ne), n < z.value.length - 1 ? (_(), u("span", {
|
|
701
711
|
key: 0,
|
|
702
712
|
"aria-hidden": "true",
|
|
703
|
-
class:
|
|
713
|
+
class: h(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": z.value[n].segment !== z.value[n + 1].segment }]),
|
|
704
714
|
role: "presentation",
|
|
705
|
-
onClick: (e) =>
|
|
706
|
-
},
|
|
707
|
-
|
|
708
|
-
id:
|
|
715
|
+
onClick: (e) => x(pt)(z.value[n + 1], { select: !0 })
|
|
716
|
+
}, b(ot(z.value[n], z.value[n + 1])), 11, Fe)) : l("", !0)], 64))), 128))], 6),
|
|
717
|
+
d("span", {
|
|
718
|
+
id: Qe(r),
|
|
709
719
|
class: "bb-time-picker-input__accessible-description",
|
|
710
720
|
hidden: ""
|
|
711
|
-
},
|
|
712
|
-
|
|
713
|
-
default:
|
|
721
|
+
}, b(Tt.value), 9, Le),
|
|
722
|
+
f(x(Ft), null, {
|
|
723
|
+
default: S(() => [f(fe, {
|
|
714
724
|
ampm: e.ampm,
|
|
715
|
-
disabled: e.disabled ||
|
|
716
|
-
hour:
|
|
725
|
+
disabled: e.disabled || x(T),
|
|
726
|
+
hour: Yt.value,
|
|
717
727
|
max: e.max,
|
|
718
|
-
meridiem:
|
|
728
|
+
meridiem: x(B)[$.value].meridiem,
|
|
719
729
|
min: e.min,
|
|
720
|
-
minute:
|
|
721
|
-
passthrough:
|
|
722
|
-
second:
|
|
730
|
+
minute: x(B)[$.value].minute,
|
|
731
|
+
passthrough: x(M),
|
|
732
|
+
second: x(B)[$.value].second,
|
|
723
733
|
seconds: e.seconds,
|
|
724
734
|
step: e.step,
|
|
725
|
-
onSelect:
|
|
726
|
-
onVnodeBeforeUnmount: n[1] ||= (e) =>
|
|
727
|
-
onVnodeMounted:
|
|
735
|
+
onSelect: Xt,
|
|
736
|
+
onVnodeBeforeUnmount: n[1] ||= (e) => F.value = null,
|
|
737
|
+
onVnodeMounted: Xe
|
|
728
738
|
}, null, 8, [
|
|
729
739
|
"ampm",
|
|
730
740
|
"disabled",
|
|
@@ -740,39 +750,39 @@ var Ae = ["data-value"], je = [
|
|
|
740
750
|
])]),
|
|
741
751
|
_: 1
|
|
742
752
|
}),
|
|
743
|
-
|
|
753
|
+
Z.value ? (_(), Se(le, m({
|
|
744
754
|
key: 0,
|
|
745
755
|
modelValue: X.value,
|
|
746
756
|
"onUpdate:modelValue": n[2] ||= (e) => X.value = e,
|
|
747
757
|
class: "bb-time-picker-input__sheet",
|
|
748
|
-
pt:
|
|
758
|
+
pt: x(M).forward({
|
|
749
759
|
panel: "root",
|
|
750
760
|
sheet: "root"
|
|
751
|
-
},
|
|
752
|
-
},
|
|
753
|
-
onHidden:
|
|
754
|
-
onHide: n[3] ||= (e) =>
|
|
755
|
-
onShow: n[4] ||= (e) =>
|
|
756
|
-
onShown: n[5] ||= (e) =>
|
|
761
|
+
}, x(ce).states, () => e.offCanvasProps?.pt)
|
|
762
|
+
}, Bt.value, {
|
|
763
|
+
onHidden: Vt,
|
|
764
|
+
onHide: n[3] ||= (e) => x(w)("hide"),
|
|
765
|
+
onShow: n[4] ||= (e) => x(w)("show"),
|
|
766
|
+
onShown: n[5] ||= (e) => x(w)("shown")
|
|
757
767
|
}), {
|
|
758
|
-
default:
|
|
768
|
+
default: S(() => [d("div", g(p(et(r))), [f(x(It))], 16)]),
|
|
759
769
|
_: 2
|
|
760
|
-
}, 1040, ["modelValue", "pt"])) : (
|
|
770
|
+
}, 1040, ["modelValue", "pt"])) : (_(), Se(re, {
|
|
761
771
|
key: 1,
|
|
762
772
|
modelValue: X.value,
|
|
763
773
|
"onUpdate:modelValue": n[6] ||= (e) => X.value = e,
|
|
764
|
-
anchor:
|
|
765
|
-
"bubble-attrs":
|
|
774
|
+
anchor: P.value,
|
|
775
|
+
"bubble-attrs": et(r),
|
|
766
776
|
class: "bb-time-picker-input__popover",
|
|
767
777
|
dialog: "",
|
|
768
778
|
offset: 4,
|
|
769
779
|
"transition-duration": e.transitionDuration,
|
|
770
|
-
onHidden: n[7] ||= (e) =>
|
|
771
|
-
onHide: n[8] ||= (e) =>
|
|
772
|
-
onShow: n[9] ||= (e) =>
|
|
773
|
-
onShown: n[10] ||= (e) =>
|
|
780
|
+
onHidden: n[7] ||= (e) => x(w)("hidden"),
|
|
781
|
+
onHide: n[8] ||= (e) => x(w)("hide"),
|
|
782
|
+
onShow: n[9] ||= (e) => x(w)("show"),
|
|
783
|
+
onShown: n[10] ||= (e) => x(w)("shown")
|
|
774
784
|
}, {
|
|
775
|
-
default:
|
|
785
|
+
default: S(() => [f(x(It))]),
|
|
776
786
|
_: 2
|
|
777
787
|
}, 1032, [
|
|
778
788
|
"modelValue",
|
|
@@ -784,7 +794,7 @@ var Ae = ["data-value"], je = [
|
|
|
784
794
|
_: 2
|
|
785
795
|
}, [e.$slots.prefix ? {
|
|
786
796
|
name: "prefix",
|
|
787
|
-
fn:
|
|
797
|
+
fn: S(() => [y(e.$slots, "prefix")]),
|
|
788
798
|
key: "0"
|
|
789
799
|
} : void 0]), 1032, [
|
|
790
800
|
"active",
|
|
@@ -805,7 +815,7 @@ var Ae = ["data-value"], je = [
|
|
|
805
815
|
_: 2
|
|
806
816
|
}, [e.$slots.description ? {
|
|
807
817
|
name: "description",
|
|
808
|
-
fn:
|
|
818
|
+
fn: S((t) => [y(e.$slots, "description", g(p(t)))]),
|
|
809
819
|
key: "0"
|
|
810
820
|
} : void 0]), 1040, [
|
|
811
821
|
"id",
|
|
@@ -837,4 +847,4 @@ var Ae = ["data-value"], je = [
|
|
|
837
847
|
}
|
|
838
848
|
});
|
|
839
849
|
//#endregion
|
|
840
|
-
export {
|
|
850
|
+
export { Re as default };
|