bitboss-ui 3.0.0-beta.63 → 3.0.0-beta.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -20
- package/bin/bitboss-ui.mjs +73 -7
- package/dist/ai/BbAlert.md +10 -1
- package/dist/ai/BbBadge.md +35 -3
- package/dist/ai/BbBadgeButton.md +4 -2
- package/dist/ai/BbBaseButton.md +9 -3
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +113 -8
- package/dist/ai/BbCheckbox.md +1 -1
- package/dist/ai/BbCheckboxGroup.md +94 -6
- package/dist/ai/BbColorInput.md +4 -1
- package/dist/ai/BbColorPalette.md +2 -1
- package/dist/ai/BbConfirm.md +7 -3
- package/dist/ai/BbDatePicker.md +2 -1
- package/dist/ai/BbDatePickerInput.md +4 -1
- package/dist/ai/BbDialog.md +12 -11
- package/dist/ai/BbDropdown.md +189 -38
- package/dist/ai/BbDropdownButton.md +27 -7
- package/dist/ai/BbForm.md +55 -22
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCard.md +7 -3
- package/dist/ai/BbIcon.md +12 -6
- package/dist/ai/BbIndicator.md +11 -1
- package/dist/ai/BbNumberInput.md +4 -1
- package/dist/ai/BbOffCanvas.md +37 -3
- package/dist/ai/BbPopover.md +2 -1
- package/dist/ai/BbRadio.md +1 -1
- package/dist/ai/BbRadioGroup.md +102 -10
- package/dist/ai/BbSelect.md +52 -17
- package/dist/ai/BbSelectPopover.md +93 -26
- package/dist/ai/BbSwitch.md +1 -1
- package/dist/ai/BbSwitchGroup.md +30 -3
- package/dist/ai/BbTable.md +17 -10
- package/dist/ai/BbTabs.md +8 -3
- package/dist/ai/BbTabsList.md +4 -1
- package/dist/ai/BbTag.md +5 -2
- package/dist/ai/BbTextInput.md +4 -1
- package/dist/ai/BbTextarea.md +4 -1
- package/dist/ai/BbTimePicker.md +2 -1
- package/dist/ai/BbTimePickerInput.md +4 -1
- package/dist/ai/BbToast.md +9 -3
- package/dist/ai/BbTooltip.md +71 -9
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonField.md +1 -1
- package/dist/ai/OptionsContainer.md +42 -0
- package/dist/ai/changelog.json +416 -6
- package/dist/ai/components.json +50 -48
- package/dist/ai/composables/useConfirm.md +39 -1
- package/dist/ai/design-tokens.json +6 -6
- package/dist/ai/guides/agent-contract.md +2 -2
- package/dist/ai/guides/ai-router.md +24 -23
- package/dist/ai/guides/app-layout.md +5 -0
- package/dist/ai/guides/component-picker.md +9 -2
- package/dist/ai/guides/design-language.md +24 -24
- package/dist/ai/guides/design-tokens.md +15 -8
- package/dist/ai/guides/icons-policy.md +9 -2
- package/dist/ai/guides/inertia-helpers.md +79 -49
- package/dist/ai/guides/installation-and-plugin-setup.md +12 -2
- package/dist/ai/guides/migration/adoption-checklist.md +235 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +9 -9
- package/dist/ai/guides/migration/components/bb-dropdown.md +7 -2
- package/dist/ai/guides/migration/components/bb-popover.md +4 -2
- package/dist/ai/guides/migration/components/bb-select.md +19 -0
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-toast.md +4 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +15 -12
- package/dist/ai/guides/migration/components/use-confirm.md +25 -2
- package/dist/ai/guides/migration/v2-to-v3.md +163 -9
- package/dist/ai/guides/migration/v3-beta-css-classes.md +7 -3
- package/dist/ai/guides/options-items-playbook.md +2 -1
- package/dist/ai/guides/passthrough.md +147 -85
- package/dist/ai/guides/preset-components.md +140 -15
- package/dist/ai/helpers/definePreset.json +7 -0
- package/dist/ai/helpers/definePreset.ts +123 -11
- package/dist/ai/helpers/inertia/manifest.json +15 -9
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +4 -4
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +39 -24
- package/dist/ai/helpers/inertia/useRouteQuery.ts +10 -4
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/common.json +0 -1
- package/dist/ai/manifest/components/BbAlert.json +7 -2
- package/dist/ai/manifest/components/BbBadge.json +13 -4
- package/dist/ai/manifest/components/BbBadge.tree.json +2 -0
- package/dist/ai/manifest/components/BbBadgeButton.json +4 -2
- package/dist/ai/manifest/components/BbBaseButton.json +4 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +14 -3
- package/dist/ai/manifest/components/BbButton.tree.json +5 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +13 -8
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +18 -15
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +4 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +1 -1
- package/dist/ai/manifest/components/BbDatePickerInput.json +17 -14
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.json +24 -19
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +33 -20
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbIndicator.json +8 -2
- package/dist/ai/manifest/components/BbNumberInput.json +5 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -2
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +17 -12
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -1
- package/dist/ai/manifest/components/BbSelect.json +21 -18
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -10
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +3 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +3 -1
- package/dist/ai/manifest/components/BbTable.tree.json +14 -1
- package/dist/ai/manifest/components/BbTabs.json +9 -6
- package/dist/ai/manifest/components/BbTabs.tree.json +1 -1
- package/dist/ai/manifest/components/BbTabsList.json +6 -3
- package/dist/ai/manifest/components/BbTag.json +19 -16
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +6 -3
- package/dist/ai/manifest/components/BbTextarea.json +6 -3
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +10 -7
- package/dist/ai/manifest/components/BbToast.json +7 -2
- package/dist/ai/manifest/components/BbToast.tree.json +4 -2
- package/dist/ai/manifest/components/BbTooltip.json +6 -5
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonField.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +3 -1
- package/dist/ai/manifest/components/OptionsContainer.tree.json +38 -0
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +5 -3
- package/dist/ai/manifest/types.advanced.json +5 -2
- package/dist/ai/manifest/types.api.json +9 -7
- package/dist/ai/recipes/inertia/layout-scaffold.md +19 -6
- package/dist/ai/recipes/inertia/records-workspace.md +49 -13
- package/dist/ai/recipes/nuxt/layout-scaffold.md +19 -6
- package/dist/ai/recipes/nuxt/records-workspace.md +42 -12
- package/dist/ai/recipes/vue/layout-scaffold.md +19 -6
- package/dist/ai/recipes/vue/records-workspace.md +42 -12
- package/dist/ai/source/BbAlert.md +94 -76
- package/dist/ai/source/BbBadge.md +174 -72
- package/dist/ai/source/BbBadgeButton.md +130 -65
- package/dist/ai/source/BbBaseButton.md +46 -124
- package/dist/ai/source/BbBaseCheckboxIcon.md +38 -0
- package/dist/ai/source/BbBaseRadioIcon.md +18 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +51 -0
- package/dist/ai/source/BbButton.md +153 -36
- package/dist/ai/source/BbCheckboxGroup.md +142 -18
- package/dist/ai/source/BbColorInput.md +240 -204
- package/dist/ai/source/BbColorPalette.md +7 -4
- package/dist/ai/source/BbConfirm.md +34 -11
- package/dist/ai/source/BbConfirmPortal.md +24 -9
- package/dist/ai/source/BbDatePicker.md +11 -7
- package/dist/ai/source/BbDatePickerInput.md +306 -269
- package/dist/ai/source/BbDialog.md +49 -14
- package/dist/ai/source/BbDropdown.md +314 -197
- package/dist/ai/source/BbDropdownButton.md +197 -31
- package/dist/ai/source/BbDropdownGroup.md +274 -176
- package/dist/ai/source/BbForm.md +50 -6
- package/dist/ai/source/BbHoverCard.md +12 -5
- package/dist/ai/source/BbIcon.md +4 -3
- package/dist/ai/source/BbIndicator.md +73 -52
- package/dist/ai/source/BbNumberInput.md +293 -257
- package/dist/ai/source/BbOffCanvas.md +55 -29
- package/dist/ai/source/BbPopover.md +14 -10
- package/dist/ai/source/BbRadioGroup.md +413 -297
- package/dist/ai/source/BbSelect.md +549 -435
- package/dist/ai/source/BbSelectPopover.md +128 -33
- package/dist/ai/source/BbSwitchGroup.md +70 -10
- package/dist/ai/source/BbTable.md +369 -37
- package/dist/ai/source/BbTabs.md +115 -39
- package/dist/ai/source/BbTabsList.md +106 -38
- package/dist/ai/source/BbTabsPanels.md +96 -36
- package/dist/ai/source/BbTabsRoot.md +96 -36
- package/dist/ai/source/BbTag.md +267 -233
- package/dist/ai/source/BbTextInput.md +261 -225
- package/dist/ai/source/BbTextarea.md +251 -215
- package/dist/ai/source/BbTimePicker.md +11 -7
- package/dist/ai/source/BbTimePickerInput.md +257 -220
- package/dist/ai/source/BbToast.md +73 -32
- package/dist/ai/source/BbToastPortal.md +65 -30
- package/dist/ai/source/BbTooltip.md +148 -113
- package/dist/ai/source/CommonPopover.md +6 -1
- package/dist/ai/source/FlatListBox.md +19 -9
- package/dist/ai/source/GroupedListBox.md +19 -9
- package/dist/ai/source/OptionsContainer.md +25 -9
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +61 -36
- package/dist/components/BbAlert/types.d.ts +9 -5
- package/dist/components/BbAlert/types.js +8 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +3 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +26 -17
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +103 -50
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +20 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +12 -1
- package/dist/components/BbBadge/types.d.ts +45 -15
- package/dist/components/BbBadge/types.js +12 -3
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +89 -126
- package/dist/components/BbBaseButton/types.d.ts +23 -4
- package/dist/components/BbBaseButton/types.js +7 -1
- package/dist/components/BbBaseButton/useLinkState.d.ts +41 -0
- package/dist/components/BbBaseButton/useLinkState.js +70 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -74
- package/dist/components/BbButton/types.d.ts +50 -13
- package/dist/components/BbButton/types.js +10 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +148 -95
- package/dist/components/BbCheckboxGroup/types.d.ts +34 -11
- package/dist/components/BbCheckboxGroup/types.js +9 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +134 -93
- package/dist/components/BbColorInput/types.d.ts +11 -4
- package/dist/components/BbColorInput/types.js +9 -3
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +82 -59
- package/dist/components/BbConfirm/types.d.ts +9 -4
- package/dist/components/BbConfirm/types.js +8 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +68 -67
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +259 -215
- package/dist/components/BbDatePickerInput/types.d.ts +12 -5
- package/dist/components/BbDatePickerInput/types.js +9 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +223 -219
- package/dist/components/BbDialog/useDialogStack.d.ts +1 -1
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +104 -89
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +323 -285
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +411 -319
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +100 -98
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +4 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +49 -28
- package/dist/components/BbDropdown/normalizeGroups.d.ts +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +21 -15
- package/dist/components/BbDropdown/types.d.ts +59 -12
- package/dist/components/BbDropdown/types.js +16 -3
- package/dist/components/BbDropdown/useDropdownContext.d.ts +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +179 -68
- package/dist/components/BbDropdownButton/types.d.ts +44 -16
- package/dist/components/BbDropdownButton/types.js +28 -3
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +111 -89
- package/dist/components/BbForm/formSchema.d.ts +13 -0
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +40 -25
- package/dist/components/BbIndicator/types.d.ts +9 -5
- package/dist/components/BbIndicator/types.js +8 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +243 -202
- package/dist/components/BbNumberInput/types.d.ts +12 -5
- package/dist/components/BbNumberInput/types.js +9 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +401 -399
- package/dist/components/BbOffCanvas/types.d.ts +6 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +158 -105
- package/dist/components/BbRadioGroup/types.d.ts +21 -7
- package/dist/components/BbRadioGroup/types.js +9 -4
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +181 -137
- package/dist/components/BbSelect/types.d.ts +36 -22
- package/dist/components/BbSelect/types.js +22 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +4 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +543 -532
- package/dist/components/BbSelectPopover/knownItems.d.ts +5 -0
- package/dist/components/BbSelectPopover/types.d.ts +46 -12
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbSwitchGroup/types.d.ts +14 -4
- package/dist/components/BbSwitchGroup/types.js +8 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1102 -995
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +25 -0
- package/dist/components/BbTable/measuredFloors.d.ts +46 -0
- package/dist/components/BbTable/measuredFloors.js +322 -0
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +27 -0
- package/dist/components/BbTable/textRuler.d.ts +71 -0
- package/dist/components/BbTable/textRuler.js +121 -0
- package/dist/components/BbTable/utils.d.ts +113 -6
- package/dist/components/BbTable/utils.js +118 -65
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +53 -35
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +62 -45
- package/dist/components/BbTabs/types.d.ts +26 -11
- package/dist/components/BbTabs/types.js +23 -8
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +205 -164
- package/dist/components/BbTag/types.d.ts +11 -4
- package/dist/components/BbTag/types.js +9 -3
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +98 -57
- package/dist/components/BbTextInput/types.d.ts +12 -5
- package/dist/components/BbTextInput/types.js +9 -3
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +137 -96
- package/dist/components/BbTextarea/types.d.ts +12 -5
- package/dist/components/BbTextarea/types.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +105 -104
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +241 -197
- package/dist/components/BbTimePickerInput/types.d.ts +12 -5
- package/dist/components/BbTimePickerInput/types.js +9 -3
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +74 -32
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbToast/types.d.ts +10 -5
- package/dist/components/BbToast/types.js +18 -3
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +85 -71
- package/dist/components/BbTooltip/types.d.ts +13 -8
- package/dist/components/BbTooltip/types.js +8 -3
- package/dist/components/CommonField/CommonField.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +53 -50
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +146 -143
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/OptionsContainer/types.d.ts +14 -3
- package/dist/composables/useBbFormContext.d.ts +4 -3
- package/dist/composables/useBbTabsContext.js +99 -85
- package/dist/composables/useChoiceIndicator.d.ts +58 -0
- package/dist/composables/useChoiceIndicator.js +197 -0
- package/dist/composables/useConfirm.d.ts +4 -4
- package/dist/composables/usePassthrough.d.ts +54 -1
- package/dist/composables/usePassthrough.js +100 -71
- package/dist/directives/bbTooltip.d.ts +12 -6
- package/dist/directives/createPopoverDirective.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/llms-full.txt +2300 -543
- package/dist/llms-medium.txt +71 -53
- package/dist/llms.txt +2 -1
- package/dist/passthrough-deduper.js +6 -3
- package/dist/project-dts.d.ts +24 -0
- package/dist/project-dts.js +43 -17
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +14 -0
- package/dist/types/AlertVariant.js +9 -0
- package/dist/types/BadgeVariant.d.ts +14 -0
- package/dist/types/BadgeVariant.js +9 -0
- package/dist/types/ButtonVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.js +11 -0
- package/dist/types/CheckboxVariant.d.ts +38 -0
- package/dist/types/CheckboxVariant.js +4 -0
- package/dist/types/CommonProps.d.ts +4 -3
- package/dist/types/Config.d.ts +7 -0
- package/dist/types/ConfirmVariant.d.ts +12 -0
- package/dist/types/ConfirmVariant.js +4 -0
- package/dist/types/DropdownItemVariant.d.ts +12 -0
- package/dist/types/DropdownItemVariant.js +4 -0
- package/dist/types/IndicatorVariant.d.ts +15 -0
- package/dist/types/IndicatorVariant.js +10 -0
- package/dist/types/InputVariant.d.ts +13 -0
- package/dist/types/InputVariant.js +8 -0
- package/dist/types/RadioVariant.d.ts +38 -0
- package/dist/types/RadioVariant.js +4 -0
- package/dist/types/TabsVariant.d.ts +13 -0
- package/dist/types/TabsVariant.js +8 -0
- package/dist/types/ToastVariant.d.ts +15 -0
- package/dist/types/ToastVariant.js +10 -0
- package/dist/types/TooltipVariant.d.ts +12 -0
- package/dist/types/TooltipVariant.js +4 -0
- package/dist/types/passthrough.d.ts +83 -15
- package/dist/types/passthrough.js +2 -2
- package/dist/types/ptComponentMap.d.ts +35 -23
- package/dist/utilities/functions/extractDomContainer.d.ts +20 -1
- package/dist/utilities/functions/extractDomContainer.js +8 -3
- package/dist/utils/focusVisibility.d.ts +6 -0
- package/dist/utils/focusVisibility.js +4 -1
- package/dist/utils/passthroughDeduper.d.ts +14 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +64 -7
- package/dist/vite.js +385 -259
- package/llms.txt +2 -1
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +312 -0
- package/scripts/lib/eslint-plugin.d.ts +13 -0
- package/scripts/lib/eslint-plugin.mjs +75 -11
- package/scripts/lib/idiom-scan.mjs +65 -0
- package/scripts/lib/mcp-config.mjs +203 -9
- package/scripts/lib/migrate-fix.mjs +42 -1
- package/scripts/lib/project-variant-dts.mjs +18 -0
- package/scripts/lib/validate-bb-markup.mjs +99 -2
package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { useLogger as e } from "../../composables/useLogger.js";
|
|
2
2
|
import { isEmpty as t } from "../../utilities/functions/empty.js";
|
|
3
3
|
import { isNotEmpty as n } from "../../utilities/functions/isNotEmpty.js";
|
|
4
|
-
import { SEGMENTED_CONTROL_NATIVE_ATTRS as r, formControlPtActive as i, usePassthrough as a } from "../../composables/usePassthrough.js";
|
|
5
|
-
import { useConfig as
|
|
6
|
-
import { hash as
|
|
7
|
-
import { removedPropsFor as
|
|
8
|
-
import { warnRemovedAttrs as
|
|
9
|
-
import { useMobile as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import
|
|
12
|
-
import { formatOfType as
|
|
13
|
-
import { toInnerValue as
|
|
14
|
-
import { useMeridiem as
|
|
15
|
-
import { formatDateOf as
|
|
16
|
-
import { normalizeDateBound as
|
|
17
|
-
import { BB_DATE_PICKER_PT as
|
|
18
|
-
import
|
|
19
|
-
import { vAutofocus as
|
|
20
|
-
import
|
|
21
|
-
import { useFormBinding as
|
|
22
|
-
import
|
|
23
|
-
import { useSegmentedFields as
|
|
24
|
-
import
|
|
25
|
-
import { BB_DATE_PICKER_INPUT_PT as
|
|
4
|
+
import { SEGMENTED_CONTROL_NATIVE_ATTRS as r, formControlPtActive as i, usePassthrough as a, variantPt as o } from "../../composables/usePassthrough.js";
|
|
5
|
+
import { useConfig as s } from "../../composables/useConfig.js";
|
|
6
|
+
import { hash as c } from "../../utilities/functions/hash.js";
|
|
7
|
+
import { removedPropsFor as l } from "../../deprecation/removedProps.js";
|
|
8
|
+
import { warnRemovedAttrs as u } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
9
|
+
import { useMobile as d } from "../../composables/useMobile.js";
|
|
10
|
+
import { useLocale as f } from "../../composables/useLocale.js";
|
|
11
|
+
import ee from "../BbIcon/BbIcon.vue.js";
|
|
12
|
+
import { formatOfType as te, isCoarseType as ne, unitOfType as re } from "../../types/DatePickerType.js";
|
|
13
|
+
import { toInnerValue as ie, toOuterValue as ae } from "../../utilities/functions/convertDateValue.js";
|
|
14
|
+
import { useMeridiem as oe } from "../CommonTimeSelector/useMeridiem.js";
|
|
15
|
+
import { formatDateOf as se, spokenDateOptionsOf as ce, timeFieldsOf as le, useDayjsLocale as ue } from "../BbCalendar/useDayjsLocale.js";
|
|
16
|
+
import { normalizeDateBound as de } from "../../utilities/functions/normalizeDateBound.js";
|
|
17
|
+
import { BB_DATE_PICKER_PT as fe, DATE_PICKER_CALENDAR_PARTS as pe } from "../BbDatePicker/types.js";
|
|
18
|
+
import me from "../BbDatePicker/BbDatePicker.vue.js";
|
|
19
|
+
import { vAutofocus as he } from "../../utilities/misc/autofocus.js";
|
|
20
|
+
import ge from "../CommonField/CommonField.vue.js";
|
|
21
|
+
import { useFormBinding as _e } from "../../composables/useFormBinding.js";
|
|
22
|
+
import ve from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
23
|
+
import { useSegmentedFields as ye } from "../../composables/useSegmentedFields.js";
|
|
24
|
+
import be from "../../assets/svgs/calendar.svg_raw.js";
|
|
25
|
+
import { BB_DATE_PICKER_INPUT_PT as p } from "./types.js";
|
|
26
26
|
import { dateLayoutFromHint as xe, monthLayoutFromHint as Se } from "./dateFieldLayout.js";
|
|
27
|
-
import { Fragment as Ce, computed as
|
|
28
|
-
import
|
|
27
|
+
import { Fragment as Ce, computed as m, createBlock as we, createCommentVNode as Te, createElementBlock as h, createElementVNode as g, createSlots as Ee, createVNode as De, defineComponent as Oe, guardReactiveProps as _, mergeProps as v, normalizeClass as ke, normalizeProps as y, normalizeStyle as Ae, onBeforeUnmount as je, onDeactivated as Me, openBlock as b, ref as x, renderList as Ne, renderSlot as S, toDisplayString as C, unref as w, useAttrs as Pe, useSlots as Fe, watch as Ie, withCtx as T, withDirectives as Le } from "vue";
|
|
28
|
+
import E from "dayjs";
|
|
29
29
|
import Re from "dayjs/plugin/customParseFormat";
|
|
30
30
|
import ze from "dayjs/plugin/isSameOrAfter";
|
|
31
31
|
import Be from "dayjs/plugin/isSameOrBefore";
|
|
@@ -53,7 +53,8 @@ var Ve = ["data-value"], He = [
|
|
|
53
53
|
"onInput",
|
|
54
54
|
"onKeydown",
|
|
55
55
|
"onPaste"
|
|
56
|
-
], Ue = ["onClick"], We = ["aria-disabled", "disabled"], Ge = ["id"],
|
|
56
|
+
], Ue = ["onClick"], We = ["aria-disabled", "disabled"], Ge = ["id"], D = "YYYY-MM-DD", Ke = "YYYY-MM-DDTHH:mm", qe = /*@__PURE__*/ Oe({
|
|
57
|
+
mixins: [o(p)],
|
|
57
58
|
inheritAttrs: !1,
|
|
58
59
|
__name: "BbDatePickerInput",
|
|
59
60
|
props: {
|
|
@@ -457,6 +458,45 @@ var Ve = ["data-value"], He = [
|
|
|
457
458
|
"pt:item:rangeEnd": {},
|
|
458
459
|
"pt:item:active": {},
|
|
459
460
|
"pt:item:highlighted": {},
|
|
461
|
+
"pt:root:outline": {},
|
|
462
|
+
"pt:root:secondary": {},
|
|
463
|
+
"pt:root:ghost": {},
|
|
464
|
+
"pt:label:outline": {},
|
|
465
|
+
"pt:label:secondary": {},
|
|
466
|
+
"pt:label:ghost": {},
|
|
467
|
+
"pt:description:outline": {},
|
|
468
|
+
"pt:description:secondary": {},
|
|
469
|
+
"pt:description:ghost": {},
|
|
470
|
+
"pt:message:outline": {},
|
|
471
|
+
"pt:message:secondary": {},
|
|
472
|
+
"pt:message:ghost": {},
|
|
473
|
+
"pt:hint:outline": {},
|
|
474
|
+
"pt:hint:secondary": {},
|
|
475
|
+
"pt:hint:ghost": {},
|
|
476
|
+
"pt:box:outline": {},
|
|
477
|
+
"pt:box:secondary": {},
|
|
478
|
+
"pt:box:ghost": {},
|
|
479
|
+
"pt:input:outline": {},
|
|
480
|
+
"pt:input:secondary": {},
|
|
481
|
+
"pt:input:ghost": {},
|
|
482
|
+
"pt:icon:outline": {},
|
|
483
|
+
"pt:icon:secondary": {},
|
|
484
|
+
"pt:icon:ghost": {},
|
|
485
|
+
"pt:spinner:outline": {},
|
|
486
|
+
"pt:spinner:secondary": {},
|
|
487
|
+
"pt:spinner:ghost": {},
|
|
488
|
+
"pt:prefix:outline": {},
|
|
489
|
+
"pt:prefix:secondary": {},
|
|
490
|
+
"pt:prefix:ghost": {},
|
|
491
|
+
"pt:suffix:outline": {},
|
|
492
|
+
"pt:suffix:secondary": {},
|
|
493
|
+
"pt:suffix:ghost": {},
|
|
494
|
+
"pt:clear:outline": {},
|
|
495
|
+
"pt:clear:secondary": {},
|
|
496
|
+
"pt:clear:ghost": {},
|
|
497
|
+
"pt:activator:outline": {},
|
|
498
|
+
"pt:activator:secondary": {},
|
|
499
|
+
"pt:activator:ghost": {},
|
|
460
500
|
pt: {},
|
|
461
501
|
adaptive: {
|
|
462
502
|
type: Boolean,
|
|
@@ -531,45 +571,49 @@ var Ve = ["data-value"], He = [
|
|
|
531
571
|
"update:modelValue",
|
|
532
572
|
"update:time"
|
|
533
573
|
],
|
|
534
|
-
setup(
|
|
535
|
-
let
|
|
574
|
+
setup(o, { emit: Oe }) {
|
|
575
|
+
let qe = o, Je = Oe, Ye = Fe(), { props: O, emit: k, showAsterisk: Xe, errors: Ze, required: Qe, ariaRequired: $e, model: et, readonly: tt, locked: nt } = _e(qe, Je, {
|
|
536
576
|
componentName: "BbDatePickerInput",
|
|
537
|
-
identifierFallback: () =>
|
|
577
|
+
identifierFallback: () => qe.label,
|
|
538
578
|
leaveOn: "inactive"
|
|
539
|
-
}),
|
|
540
|
-
process.env.NODE_ENV !== "production" &&
|
|
541
|
-
let
|
|
542
|
-
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
|
|
579
|
+
}), rt = /^\d{4}-\d{2}-\d{2}(:append)?$/, it = () => Object.keys(Ye).filter((e) => rt.test(e)), at = s();
|
|
580
|
+
process.env.NODE_ENV !== "production" && u("BbDatePickerInput", l("BbDatePickerInput"), { fixedSlots: ["append:outer"] });
|
|
581
|
+
let A = x(!1), ot = x(!1), st = () => {
|
|
582
|
+
ot.value = !1;
|
|
583
|
+
}, j = x(!1), ct = () => {
|
|
584
|
+
j.value = !0, k("show");
|
|
585
|
+
}, lt = () => {
|
|
586
|
+
j.value = !1, k("hide");
|
|
547
587
|
};
|
|
548
588
|
Me(() => {
|
|
549
|
-
|
|
550
|
-
}), je(
|
|
551
|
-
let
|
|
589
|
+
A.value ? Lt() : st();
|
|
590
|
+
}), je(st);
|
|
591
|
+
let ut = m(() => O.persistentHint || ot.value), M = m(() => n(O.modelValue)), dt = m(() => O.labelMode ?? at.defaultInputLabelMode), ft = [
|
|
552
592
|
"panel",
|
|
553
593
|
"sheet",
|
|
554
|
-
...
|
|
555
|
-
],
|
|
594
|
+
...pe
|
|
595
|
+
], N = a({
|
|
556
596
|
component: "BbDatePickerInput",
|
|
557
597
|
attrs: Pe(),
|
|
558
598
|
controlAttrs: r,
|
|
559
|
-
props:
|
|
560
|
-
parts:
|
|
561
|
-
states:
|
|
599
|
+
props: O,
|
|
600
|
+
parts: p.parts,
|
|
601
|
+
states: p.states,
|
|
562
602
|
active: {
|
|
563
|
-
...i(
|
|
564
|
-
open: () =>
|
|
603
|
+
...i(O, () => M.value),
|
|
604
|
+
open: () => j.value
|
|
605
|
+
},
|
|
606
|
+
variant: {
|
|
607
|
+
...p.variant,
|
|
608
|
+
current: () => O.variant ?? "outline"
|
|
565
609
|
}
|
|
566
|
-
}),
|
|
567
|
-
|
|
568
|
-
let { t:
|
|
569
|
-
let n = [e,
|
|
610
|
+
}), P = m(() => O.type === "datetime"), F = m(() => ne(O.type)), pt = m(() => O.floating || F.value), I = m(() => re(O.type)), mt = m(() => te(O.type));
|
|
611
|
+
E.extend(Re), E.extend(ze), E.extend(Be), ue();
|
|
612
|
+
let { t: L } = f(), R = e(), z = x(null), ht = (e) => `bdpi-description_${e}`, gt = (e, t) => {
|
|
613
|
+
let n = [e, ht(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
570
614
|
return Array.from(new Set(n)).join(" ");
|
|
571
|
-
}, { isMobile:
|
|
572
|
-
!yt.value ||
|
|
615
|
+
}, { isMobile: _t } = d(), vt = m(() => O.disableWriting === "mobile" ? !_t.value : O.disableWriting === "desktop" ? _t.value : !O.disableWriting), yt = m(() => !vt.value && !wt.value && !O.disabled && !O.readonly), bt = () => {
|
|
616
|
+
!yt.value || j.value || (z.value?.$el)?.querySelector(".bb-segmented-field__activator")?.click();
|
|
573
617
|
}, xt = (e) => {
|
|
574
618
|
let t = e.target;
|
|
575
619
|
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-date-picker__panel, [role=\"dialog\"]") || bt());
|
|
@@ -578,47 +622,47 @@ var Ve = ["data-value"], He = [
|
|
|
578
622
|
t.preventDefault(), bt();
|
|
579
623
|
return;
|
|
580
624
|
}
|
|
581
|
-
if (
|
|
625
|
+
if (O.readonly && St(t)) {
|
|
582
626
|
t.preventDefault();
|
|
583
627
|
return;
|
|
584
628
|
}
|
|
585
629
|
gn(e, t);
|
|
586
|
-
}, wt =
|
|
587
|
-
if (
|
|
588
|
-
let t =
|
|
589
|
-
return t.isValid() ? t :
|
|
630
|
+
}, wt = m(() => O.disableCalendar === "mobile" ? _t.value : O.disableCalendar === "desktop" ? !_t.value : !!O.disableCalendar), Tt = m(() => !!O.readonly || !vt.value), Et = (e) => vt.value ? on.value[e].kind === "enum" ? "none" : "numeric" : "none", Dt = (e) => e.includes("T"), B = (e) => {
|
|
631
|
+
if (F.value) {
|
|
632
|
+
let t = E(e, mt.value, !0);
|
|
633
|
+
return t.isValid() ? t : E(e);
|
|
590
634
|
}
|
|
591
|
-
return Dt(e) ?
|
|
592
|
-
}, Ot =
|
|
593
|
-
for (let [e, t] of [["min",
|
|
635
|
+
return Dt(e) ? E(e, Ke, !0) : E(e, D, !0);
|
|
636
|
+
}, Ot = m(() => de(O.min, O.type, "min", (e) => R.warn(`BbDatePickerInput: ${e}`))), kt = m(() => de(O.max, O.type, "max", (e) => R.warn(`BbDatePickerInput: ${e}`)));
|
|
637
|
+
for (let [e, t] of [["min", O.min], ["max", O.max]]) if (t && (B(t).isValid() || R.throw(F.value ? `BbDatePickerInput: ${e} must be a ${mt.value} value (a longer date is accepted and rounded to the ${I.value}) with type="${O.type}"` : `BbDatePickerInput: ${e} must be in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm`), F.value)) {
|
|
594
638
|
e === "min" ? Ot.value : kt.value;
|
|
595
639
|
continue;
|
|
596
640
|
}
|
|
597
|
-
let At =
|
|
598
|
-
!At && !jt &&
|
|
599
|
-
let Pt =
|
|
600
|
-
floating:
|
|
601
|
-
utc:
|
|
602
|
-
type:
|
|
603
|
-
})), V = (e) =>
|
|
604
|
-
|
|
641
|
+
let At = O.disableWriting !== !0 && O.disableWriting !== "desktop", jt = O.disableCalendar !== !0 && O.disableCalendar !== "desktop", Mt = O.disableWriting !== !0 && O.disableWriting !== "mobile", Nt = O.disableCalendar !== !0 && O.disableCalendar !== "mobile";
|
|
642
|
+
!At && !jt && R.throw("BbDatePickerInput: desktop users would have no interaction method — disableWriting:true (or \"desktop\") and disableCalendar:true (or \"desktop\") cannot be combined."), !Mt && !Nt && R.throw("BbDatePickerInput: mobile users would have no interaction method — combine disableWriting:\"mobile\" with disableCalendar:\"desktop\" to keep calendar interaction on mobile while staying keyboard-first on desktop.");
|
|
643
|
+
let Pt = m(() => ({
|
|
644
|
+
floating: pt.value,
|
|
645
|
+
utc: O.utc,
|
|
646
|
+
type: O.type
|
|
647
|
+
})), V = (e) => ae(e, Pt.value), Ft = (e) => ie(e, Pt.value), It = () => {
|
|
648
|
+
A.value || (ot.value = !0, k("active"), A.value = !0, document.addEventListener("focusin", H), document.addEventListener("click", H));
|
|
605
649
|
}, H = (e) => {
|
|
606
650
|
let t = e.target;
|
|
607
|
-
t instanceof HTMLElement &&
|
|
651
|
+
t instanceof HTMLElement && z.value?.$el && (z.value.$el.contains(t) || Lt());
|
|
608
652
|
}, Lt = () => {
|
|
609
|
-
$({ finalize: !0 }), Vn() && (zn(), J()),
|
|
653
|
+
$({ finalize: !0 }), Vn() && (zn(), J()), A.value = !1, st(), k("inactive"), document.removeEventListener("focusin", H), document.removeEventListener("click", H);
|
|
610
654
|
}, Rt = (e, t) => {
|
|
611
655
|
let n = Ft(t);
|
|
612
656
|
if (!n.isValid()) return;
|
|
613
657
|
let r = K.value[e];
|
|
614
658
|
r.day = n.format("DD"), r.month = n.format("MM"), r.year = n.format("YYYY");
|
|
615
659
|
}, zt = { "onUpdate:modelValue": (e) => {
|
|
616
|
-
if (e === null &&
|
|
617
|
-
|
|
660
|
+
if (e === null && O.range && (e = []), !P.value) {
|
|
661
|
+
k("update:modelValue", e);
|
|
618
662
|
return;
|
|
619
663
|
}
|
|
620
664
|
if (e === null || Array.isArray(e) && !e.length) {
|
|
621
|
-
K.value.start = q(), K.value.end = q(), J(), Q(
|
|
665
|
+
K.value.start = q(), K.value.end = q(), J(), Q(O.range ? [] : null);
|
|
622
666
|
return;
|
|
623
667
|
}
|
|
624
668
|
if (Array.isArray(e)) {
|
|
@@ -630,55 +674,55 @@ var Ve = ["data-value"], He = [
|
|
|
630
674
|
} }, Bt = (e) => {
|
|
631
675
|
let t = K.value[e];
|
|
632
676
|
return !!(t.day && t.month && t.year && t.year.length === 4);
|
|
633
|
-
}, Vt =
|
|
634
|
-
Vt.value = e.segment, _n(e),
|
|
635
|
-
}, Ut =
|
|
677
|
+
}, Vt = x("start"), Ht = (e, t) => {
|
|
678
|
+
Vt.value = e.segment, _n(e), k("focus", t);
|
|
679
|
+
}, Ut = m(() => O.range ? Bt(Vt.value) ? Vt.value : Bt("end") ? "end" : "start" : "start"), Wt = ({ unit: e, value: t }) => {
|
|
636
680
|
let n = K.value[Ut.value];
|
|
637
|
-
e === "hour" ? Tn(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = U.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour || (
|
|
638
|
-
}, Gt =
|
|
639
|
-
let t =
|
|
640
|
-
return
|
|
681
|
+
e === "hour" ? Tn(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = U.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour || (O.ampm ? n.hour = "12" : n.hour = "00"), O.ampm && !n.meridiem && (n.meridiem = U.am.value), n.minute ||= "00", O.seconds && !n.second && (n.second = "00"), J(), $({ finalize: !1 });
|
|
682
|
+
}, Gt = m(() => ce(O.type)), Kt = (e) => {
|
|
683
|
+
let t = se(e, at.locale, Gt.value);
|
|
684
|
+
return P.value ? `${t} ${se(e, at.locale, le(!!O.ampm, !!O.seconds))}` : t;
|
|
641
685
|
}, qt = (e) => {
|
|
642
686
|
if (Y(e) !== "complete") return null;
|
|
643
|
-
let t = K.value[e], n = W.value, r = n.has("day") ? t.day.padStart(2, "0") : "01", i = n.has("month") ? t.month.padStart(2, "0") : "01", a = `${t.year.padStart(4, "0")}-${i}-${r}`, o =
|
|
644
|
-
|
|
645
|
-
let s =
|
|
687
|
+
let t = K.value[e], n = W.value, r = n.has("day") ? t.day.padStart(2, "0") : "01", i = n.has("month") ? t.month.padStart(2, "0") : "01", a = `${t.year.padStart(4, "0")}-${i}-${r}`, o = D;
|
|
688
|
+
P.value && (a += `T${Gn(e)}`, o += O.seconds ? "THH:mm:ss" : "THH:mm");
|
|
689
|
+
let s = E(a, o, !0);
|
|
646
690
|
return s.isValid() ? s : null;
|
|
647
|
-
}, Jt =
|
|
648
|
-
if (
|
|
691
|
+
}, Jt = m(() => {
|
|
692
|
+
if (O.range) {
|
|
649
693
|
let e = qt("start"), t = qt("end");
|
|
650
|
-
return !e || !t ?
|
|
694
|
+
return !e || !t ? L("datePickerInput.emptyRange").value : L("datePickerInput.changeSelectionRange", Kt(e), Kt(t)).value;
|
|
651
695
|
}
|
|
652
696
|
let e = qt("start");
|
|
653
|
-
return e ?
|
|
697
|
+
return e ? L("datePickerInput.changeSelection", Kt(e)).value : L("datePickerInput.emptySelection").value;
|
|
654
698
|
}), Yt = (e) => {
|
|
655
699
|
if (!e.isValid()) return !0;
|
|
656
|
-
let t = !0, n = (e) =>
|
|
657
|
-
return r && (t &&= e.isSameOrAfter(B(r), n(r))), i && (t &&= e.isSameOrBefore(B(i), n(i))), typeof
|
|
700
|
+
let t = !0, n = (e) => F.value ? I.value : P.value && Dt(e) ? "minute" : "day", r = Ot.value, i = kt.value;
|
|
701
|
+
return r && (t &&= e.isSameOrAfter(B(r), n(r))), i && (t &&= e.isSameOrBefore(B(i), n(i))), typeof O.selectable == "function" && (t &&= O.selectable(V(e))), !t;
|
|
658
702
|
}, Xt = () => {
|
|
659
|
-
|
|
703
|
+
O.range ? (k("update:modelValue", []), P.value && (Z.value = [], k("update:time", []))) : (k("update:modelValue", null), P.value && (Z.value = null, k("update:time", null)));
|
|
660
704
|
}, Zt = /* @__PURE__ */ new Set([
|
|
661
705
|
"hour",
|
|
662
706
|
"minute",
|
|
663
707
|
"second",
|
|
664
708
|
"meridiem"
|
|
665
|
-
]), U =
|
|
709
|
+
]), U = oe(), Qt = (e, t) => U.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, $t = (e) => {
|
|
666
710
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
667
711
|
return n === 0 && (n = 12), {
|
|
668
712
|
hour: String(n).padStart(2, "0"),
|
|
669
713
|
meridiem: t
|
|
670
714
|
};
|
|
671
|
-
}, en =
|
|
672
|
-
if (
|
|
715
|
+
}, en = m(() => {
|
|
716
|
+
if (O.type === "year") return {
|
|
673
717
|
order: ["year"],
|
|
674
718
|
separator: "/"
|
|
675
719
|
};
|
|
676
|
-
let e =
|
|
677
|
-
if (
|
|
720
|
+
let e = L("datePickerInput.monthFormatSingle").value;
|
|
721
|
+
if (O.type === "month") return Se(e) ?? {
|
|
678
722
|
order: ["month", "year"],
|
|
679
723
|
separator: "/"
|
|
680
724
|
};
|
|
681
|
-
let t =
|
|
725
|
+
let t = L("datePickerInput.dateFormatSingle").value;
|
|
682
726
|
return xe(t, e) ?? {
|
|
683
727
|
order: [
|
|
684
728
|
"day",
|
|
@@ -687,27 +731,27 @@ var Ve = ["data-value"], He = [
|
|
|
687
731
|
],
|
|
688
732
|
separator: "/"
|
|
689
733
|
};
|
|
690
|
-
}), tn =
|
|
691
|
-
if (!
|
|
734
|
+
}), tn = m(() => en.value.order), W = m(() => new Set(tn.value)), nn = m(() => {
|
|
735
|
+
if (!P.value) return [];
|
|
692
736
|
let e = ["hour", "minute"];
|
|
693
|
-
return
|
|
694
|
-
}), G =
|
|
737
|
+
return O.seconds && e.push("second"), O.ampm && e.push("meridiem"), e;
|
|
738
|
+
}), G = m(() => {
|
|
695
739
|
let e = [...tn.value, ...nn.value], t = e.map((e) => ({
|
|
696
740
|
segment: "start",
|
|
697
741
|
field: e
|
|
698
742
|
}));
|
|
699
|
-
if (!
|
|
743
|
+
if (!O.range) return t;
|
|
700
744
|
let n = e.map((e) => ({
|
|
701
745
|
segment: "end",
|
|
702
746
|
field: e
|
|
703
747
|
}));
|
|
704
748
|
return [...t, ...n];
|
|
705
|
-
}), rn =
|
|
749
|
+
}), rn = m(() => {
|
|
706
750
|
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
|
|
707
751
|
return G.value.forEach((n, r) => {
|
|
708
752
|
e.has(n.segment) || (e.add(n.segment), t.add(r));
|
|
709
753
|
}), t;
|
|
710
|
-
}), an = (e) => rn.value.has(e), on =
|
|
754
|
+
}), an = (e) => rn.value.has(e), on = m(() => ({
|
|
711
755
|
day: {
|
|
712
756
|
kind: "numeric",
|
|
713
757
|
maxLength: 2,
|
|
@@ -732,7 +776,7 @@ var Ve = ["data-value"], He = [
|
|
|
732
776
|
requireFullLength: !0,
|
|
733
777
|
label: "Year"
|
|
734
778
|
},
|
|
735
|
-
hour:
|
|
779
|
+
hour: O.ampm ? {
|
|
736
780
|
kind: "numeric",
|
|
737
781
|
maxLength: 2,
|
|
738
782
|
max: 12,
|
|
@@ -770,7 +814,7 @@ var Ve = ["data-value"], He = [
|
|
|
770
814
|
if (t.field === "meridiem") return "\xA0";
|
|
771
815
|
let n = Zt.has(e.field), r = Zt.has(t.field);
|
|
772
816
|
return n && r ? ":" : !n && r ? "\xA0" : en.value.separator;
|
|
773
|
-
}, { fields: K, fieldRefs: cn, descriptorKey: ln, emptyFieldGroup: q, getSizedValue: un, minChars: dn, updateAllSizedValues: J, isOwnField: fn, focusField: pn, focusFirstField: mn, segmentStatus: Y, onFieldInput: hn, onFieldKeydown: gn, onFieldFocus: _n, onFieldBlur: vn, onFieldPaste: yn } =
|
|
817
|
+
}, { fields: K, fieldRefs: cn, descriptorKey: ln, emptyFieldGroup: q, getSizedValue: un, minChars: dn, updateAllSizedValues: J, isOwnField: fn, focusField: pn, focusFirstField: mn, segmentStatus: Y, onFieldInput: hn, onFieldKeydown: gn, onFieldFocus: _n, onFieldBlur: vn, onFieldPaste: yn } = ye({
|
|
774
818
|
fieldOrder: G,
|
|
775
819
|
specs: on,
|
|
776
820
|
segments: ["start", "end"],
|
|
@@ -806,8 +850,8 @@ var Ve = ["data-value"], He = [
|
|
|
806
850
|
for (let n of Object.values(K.value)) n.meridiem === e && (n.meridiem = t);
|
|
807
851
|
J();
|
|
808
852
|
});
|
|
809
|
-
let xn = (e, t) =>
|
|
810
|
-
if (
|
|
853
|
+
let xn = (e, t) => O.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, Sn = (e) => {
|
|
854
|
+
if (O.name) return O.range ? `${O.name}-${e.segment}-${e.field}` : `${O.name}-${e.field}`;
|
|
811
855
|
}, Cn = {
|
|
812
856
|
day: "datePickerInput.dayField",
|
|
813
857
|
month: "datePickerInput.monthField",
|
|
@@ -817,10 +861,10 @@ var Ve = ["data-value"], He = [
|
|
|
817
861
|
second: "datePickerInput.secondField",
|
|
818
862
|
meridiem: "datePickerInput.meridiemField"
|
|
819
863
|
}, wn = (e) => {
|
|
820
|
-
let t =
|
|
821
|
-
return
|
|
864
|
+
let t = L(Cn[e.field]).value;
|
|
865
|
+
return O.range ? L(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
|
|
822
866
|
}, Tn = (e, t) => {
|
|
823
|
-
if (!
|
|
867
|
+
if (!O.ampm) {
|
|
824
868
|
e.hour = String(t).padStart(2, "0");
|
|
825
869
|
return;
|
|
826
870
|
}
|
|
@@ -829,8 +873,8 @@ var Ve = ["data-value"], He = [
|
|
|
829
873
|
}, En = (e) => {
|
|
830
874
|
if (!e.hour) return 0;
|
|
831
875
|
let t = parseInt(e.hour, 10);
|
|
832
|
-
return
|
|
833
|
-
}, Dn =
|
|
876
|
+
return O.ampm ? Qt(t, e.meridiem || "AM") : t;
|
|
877
|
+
}, Dn = m(() => O.seconds ? "HH:mm:ss" : "HH:mm"), On = (e) => e.format(Dn.value), kn = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, An = (e) => {
|
|
834
878
|
if (!e) return null;
|
|
835
879
|
let t = kn.exec(e);
|
|
836
880
|
if (!t) return null;
|
|
@@ -841,28 +885,28 @@ var Ve = ["data-value"], He = [
|
|
|
841
885
|
second: (i ?? "").padStart(i ? 2 : 0, "0")
|
|
842
886
|
};
|
|
843
887
|
}, jn = (e, t) => {
|
|
844
|
-
if (!
|
|
888
|
+
if (!P.value) return;
|
|
845
889
|
let n = An(t);
|
|
846
890
|
if (!n) {
|
|
847
891
|
e.hour = "", e.minute = "", e.second = "", e.meridiem = "";
|
|
848
892
|
return;
|
|
849
893
|
}
|
|
850
|
-
Tn(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second =
|
|
851
|
-
}, Mn =
|
|
852
|
-
if (
|
|
853
|
-
let e =
|
|
854
|
-
return
|
|
894
|
+
Tn(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second = O.seconds ? n.second : "";
|
|
895
|
+
}, Mn = m(() => O.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat"), Nn = m(() => {
|
|
896
|
+
if (O.type === "month" || O.type === "year") {
|
|
897
|
+
let e = O.type === "month" ? "month" : "year";
|
|
898
|
+
return L(O.range ? `datePickerInput.${e}FormatRange` : `datePickerInput.${e}FormatSingle`).value;
|
|
855
899
|
}
|
|
856
|
-
if (!
|
|
857
|
-
let e = `${
|
|
858
|
-
return
|
|
859
|
-
}), Pn =
|
|
900
|
+
if (!P.value) return L(O.range ? "datePickerInput.dateFormatRange" : "datePickerInput.dateFormatSingle").value;
|
|
901
|
+
let e = `${L("datePickerInput.dateFormatSingle").value} ${L(Mn.value).value}`;
|
|
902
|
+
return O.range ? `${e} – ${e}` : e;
|
|
903
|
+
}), Pn = m(() => O.placeholder || Nn.value), Fn = m(() => G.value.every((e) => !K.value[e.segment][e.field])), In = (e) => {
|
|
860
904
|
if (!e) return q();
|
|
861
905
|
let t = Ft(e);
|
|
862
906
|
if (!t.isValid()) return q();
|
|
863
907
|
let n = q();
|
|
864
|
-
return W.value.has("day") && (n.day = t.format("DD")), W.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY"),
|
|
865
|
-
}, Ln = (e) => Array.isArray(
|
|
908
|
+
return W.value.has("day") && (n.day = t.format("DD")), W.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY"), P.value && !O.floating && (Tn(n, t.hour()), n.minute = t.format("mm"), n.second = O.seconds ? t.format("ss") : ""), n;
|
|
909
|
+
}, Ln = (e) => Array.isArray(O.time) ? O.time[e === "start" ? 0 : 1] : e === "start" ? O.time : void 0, Rn = (e) => {
|
|
866
910
|
if (!e) {
|
|
867
911
|
K.value = {
|
|
868
912
|
start: q(),
|
|
@@ -870,7 +914,7 @@ var Ve = ["data-value"], He = [
|
|
|
870
914
|
};
|
|
871
915
|
return;
|
|
872
916
|
}
|
|
873
|
-
if (
|
|
917
|
+
if (O.range) {
|
|
874
918
|
let [t, n] = Array.isArray(e) ? e : [];
|
|
875
919
|
K.value = {
|
|
876
920
|
start: In(t),
|
|
@@ -883,85 +927,85 @@ var Ve = ["data-value"], He = [
|
|
|
883
927
|
start: In(e),
|
|
884
928
|
end: q()
|
|
885
929
|
};
|
|
886
|
-
if (
|
|
930
|
+
if (P.value && O.floating) for (let e of ["start", "end"]) {
|
|
887
931
|
let t = K.value[e];
|
|
888
932
|
t.day && jn(t, Ln(e));
|
|
889
933
|
}
|
|
890
934
|
}, zn = () => {
|
|
891
|
-
Rn(
|
|
935
|
+
Rn(O.modelValue);
|
|
892
936
|
};
|
|
893
|
-
Rn(
|
|
937
|
+
Rn(O.modelValue), J();
|
|
894
938
|
let Bn = (e) => {
|
|
895
|
-
if (!
|
|
939
|
+
if (!P.value || O.floating) return;
|
|
896
940
|
let t;
|
|
897
|
-
t = e ? Array.isArray(e) ? e.map((e) => On(Ft(e))) : On(Ft(e)) : null, Z.value = t,
|
|
941
|
+
t = e ? Array.isArray(e) ? e.map((e) => On(Ft(e))) : On(Ft(e)) : null, Z.value = t, k("update:time", t);
|
|
898
942
|
};
|
|
899
|
-
Ie(() =>
|
|
943
|
+
Ie(() => O.modelValue, (e) => {
|
|
900
944
|
if (e === null || Array.isArray(e) && e.length === 0) {
|
|
901
945
|
Rn(e), J(), Bn(e);
|
|
902
946
|
return;
|
|
903
947
|
}
|
|
904
948
|
let t = document.activeElement;
|
|
905
949
|
t && fn(t) || (Rn(e), J(), Bn(e));
|
|
906
|
-
}), Ie(() =>
|
|
907
|
-
if (!
|
|
950
|
+
}), Ie(() => O.time, (e) => {
|
|
951
|
+
if (!P.value || c(e ?? null) === c(Z.value ?? null)) return;
|
|
908
952
|
let t = document.activeElement;
|
|
909
953
|
if (!(t && fn(t))) {
|
|
910
954
|
for (let e of ["start", "end"]) {
|
|
911
|
-
if (e === "end" && !
|
|
955
|
+
if (e === "end" && !O.range) break;
|
|
912
956
|
let t = Ln(e), n = K.value[e];
|
|
913
957
|
t !== void 0 && jn(n, t);
|
|
914
958
|
}
|
|
915
959
|
J(), $({ finalize: !1 });
|
|
916
960
|
}
|
|
917
961
|
});
|
|
918
|
-
let Vn = () => Y("start") === "partial" ? !0 :
|
|
962
|
+
let Vn = () => Y("start") === "partial" ? !0 : O.range ? Y("end") === "partial" : !1, Hn = (e) => {
|
|
919
963
|
let t = K.value[e], n = W.value;
|
|
920
964
|
if (n.has("day") && !t.day || n.has("month") && !t.month || !t.year) return null;
|
|
921
965
|
let r = n.has("day") ? parseInt(t.day, 10) : 1, i = n.has("month") ? parseInt(t.month, 10) : 1, a = parseInt(t.year, 10);
|
|
922
966
|
if (r < 1 || r > 31 || i < 1 || i > 12 || a < 1e3 || a > 9999) return null;
|
|
923
967
|
let o = t.year.padStart(4, "0"), s = String(i).padStart(2, "0"), c = String(r).padStart(2, "0"), l = "", u = "";
|
|
924
|
-
if (
|
|
925
|
-
if (
|
|
968
|
+
if (P.value) {
|
|
969
|
+
if (O.ampm && t.hour) {
|
|
926
970
|
let e = parseInt(t.hour, 10);
|
|
927
971
|
if (e < 1 || e > 12) return null;
|
|
928
972
|
}
|
|
929
|
-
let e = String(En(t)).padStart(2, "0"), n = (t.minute || "0").padStart(2, "0"), r = ((
|
|
973
|
+
let e = String(En(t)).padStart(2, "0"), n = (t.minute || "0").padStart(2, "0"), r = ((O.seconds ? t.second : "") || "0").padStart(2, "0");
|
|
930
974
|
if (parseInt(e, 10) > 23 || parseInt(n, 10) > 59 || parseInt(r, 10) > 59) return null;
|
|
931
975
|
l = `T${e}:${n}:${r}`, u = "THH:mm:ss";
|
|
932
976
|
}
|
|
933
|
-
let d =
|
|
977
|
+
let d = E(`${o}-${s}-${c}${l}`, D + u, !0);
|
|
934
978
|
if (!d.isValid()) {
|
|
935
|
-
let t =
|
|
936
|
-
d =
|
|
979
|
+
let t = E(`${o}-${s}-01`, D, !0).endOf("month").date(), n = Math.min(r, t);
|
|
980
|
+
d = E(`${o}-${s}-${String(n).padStart(2, "0")}${l}`, D + u, !0), K.value[e].day = String(n).padStart(2, "0");
|
|
937
981
|
}
|
|
938
982
|
return d.isValid() ? d : null;
|
|
939
983
|
}, Un = (e) => {
|
|
940
984
|
let t = q();
|
|
941
|
-
return W.value.has("day") && (t.day = e.format("DD")), W.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY"),
|
|
985
|
+
return W.value.has("day") && (t.day = e.format("DD")), W.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY"), P.value && (Tn(t, e.hour()), t.minute = e.format("mm"), t.second = O.seconds ? e.format("ss") : ""), t;
|
|
942
986
|
}, Wn = (e) => {
|
|
943
|
-
let t = (t, n) =>
|
|
987
|
+
let t = (t, n) => P.value && !n ? t.hour(e.hour()).minute(e.minute()).second(e.second()) : t, n = F.value ? I.value : P.value ? "minute" : "day", r = e, i = Ot.value, a = kt.value;
|
|
944
988
|
if (i) {
|
|
945
989
|
let e = Dt(i), n = B(i);
|
|
946
|
-
r.isBefore(n,
|
|
990
|
+
r.isBefore(n, F.value ? I.value : P.value && e ? "minute" : "day") && (r = F.value ? n : t(n, e));
|
|
947
991
|
}
|
|
948
992
|
if (a) {
|
|
949
993
|
let e = Dt(a), n = B(a);
|
|
950
|
-
r.isAfter(n,
|
|
994
|
+
r.isAfter(n, F.value ? I.value : P.value && e ? "minute" : "day") && (r = F.value ? n.startOf(I.value) : t(n, e));
|
|
951
995
|
}
|
|
952
996
|
return r.isSame(e, n) || Yt(r) ? null : r;
|
|
953
997
|
}, X = (e) => {
|
|
954
|
-
|
|
998
|
+
k("error", e);
|
|
955
999
|
}, Gn = (e) => {
|
|
956
1000
|
let t = K.value[e], n = String(En(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
957
|
-
return
|
|
958
|
-
}, Z =
|
|
959
|
-
if (
|
|
1001
|
+
return O.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
1002
|
+
}, Z = x(void 0), Q = (e) => {
|
|
1003
|
+
if (k("update:modelValue", e), !P.value) return;
|
|
960
1004
|
let t;
|
|
961
|
-
t = e === null ? null : Array.isArray(e) ? e.map((e, t) => Gn(t === 0 ? "start" : "end")) : Gn("start"), Z.value = t,
|
|
1005
|
+
t = e === null ? null : Array.isArray(e) ? e.map((e, t) => Gn(t === 0 ? "start" : "end")) : Gn("start"), Z.value = t, k("update:time", t);
|
|
962
1006
|
}, $ = (e = {}) => {
|
|
963
1007
|
let t = !!e.finalize, n = Y("start");
|
|
964
|
-
if (!
|
|
1008
|
+
if (!O.range) {
|
|
965
1009
|
if (n === "empty") {
|
|
966
1010
|
Q(null);
|
|
967
1011
|
return;
|
|
@@ -1042,7 +1086,7 @@ var Ve = ["data-value"], He = [
|
|
|
1042
1086
|
}
|
|
1043
1087
|
u = e, d = !0, K.value.end = Un(e);
|
|
1044
1088
|
}
|
|
1045
|
-
if (u.isBefore(c,
|
|
1089
|
+
if (u.isBefore(c, P.value ? "second" : "day")) {
|
|
1046
1090
|
if (!t) return;
|
|
1047
1091
|
let e = [V(c), V(u)], n = [V(u), V(c)], r = { ...K.value.start };
|
|
1048
1092
|
K.value.start = { ...K.value.end }, K.value.end = r, J(), Q(n), l && X({
|
|
@@ -1073,75 +1117,75 @@ var Ve = ["data-value"], He = [
|
|
|
1073
1117
|
};
|
|
1074
1118
|
return je(() => {
|
|
1075
1119
|
document.removeEventListener("focusin", H), document.removeEventListener("click", H);
|
|
1076
|
-
}), (e, n) => (
|
|
1120
|
+
}), (e, n) => (b(), we(ge, v({
|
|
1077
1121
|
id: e.id,
|
|
1078
1122
|
class: "bb-date-picker-input",
|
|
1079
|
-
clearable: e.clearable &&
|
|
1123
|
+
clearable: e.clearable && M.value,
|
|
1080
1124
|
compact: e.compact,
|
|
1081
1125
|
description: e.description,
|
|
1082
1126
|
disabled: e.disabled,
|
|
1083
|
-
errors:
|
|
1127
|
+
errors: w(Ze),
|
|
1084
1128
|
"has-errors": e.hasErrors,
|
|
1085
|
-
"has-value":
|
|
1129
|
+
"has-value": M.value,
|
|
1086
1130
|
"has-warnings": e.hasWarnings,
|
|
1087
1131
|
"hide-label": e.hideLabel,
|
|
1088
1132
|
hint: e.hint,
|
|
1089
1133
|
"input-align": e.inputAlign,
|
|
1090
1134
|
label: e.label,
|
|
1091
1135
|
"label-align": e.labelAlign,
|
|
1092
|
-
"label-mode":
|
|
1136
|
+
"label-mode": dt.value,
|
|
1093
1137
|
"label-position": e.labelPosition,
|
|
1094
1138
|
layout: e.layout,
|
|
1095
1139
|
loading: e.loading,
|
|
1096
1140
|
name: e.name,
|
|
1097
|
-
passthrough:
|
|
1098
|
-
readonly:
|
|
1141
|
+
passthrough: w(N),
|
|
1142
|
+
readonly: w(tt),
|
|
1099
1143
|
reverse: e.reverse,
|
|
1100
|
-
"show-asterisk":
|
|
1101
|
-
"show-hint":
|
|
1144
|
+
"show-asterisk": w(Xe),
|
|
1145
|
+
"show-hint": ut.value,
|
|
1102
1146
|
warnings: e.warnings
|
|
1103
|
-
},
|
|
1104
|
-
label:
|
|
1105
|
-
input:
|
|
1147
|
+
}, w(N).forwardAttrs), Ee({
|
|
1148
|
+
label: T((t) => [S(e.$slots, "label", y(_(t)))]),
|
|
1149
|
+
input: T(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [De(ve, {
|
|
1106
1150
|
ref_key: "wrapper",
|
|
1107
|
-
ref:
|
|
1108
|
-
active:
|
|
1109
|
-
"append:icon":
|
|
1151
|
+
ref: z,
|
|
1152
|
+
active: A.value,
|
|
1153
|
+
"append:icon": w(O)["append:icon"],
|
|
1110
1154
|
class: ke(["bb-date-picker-input__field", { "bb-date-picker-input__field--range": e.range }]),
|
|
1111
|
-
clearable: e.clearable && !
|
|
1155
|
+
clearable: e.clearable && !w(t)(w(et)),
|
|
1112
1156
|
compact: e.compact,
|
|
1113
1157
|
disabled: e.disabled,
|
|
1114
1158
|
"has-errors": i,
|
|
1115
|
-
"has-value":
|
|
1159
|
+
"has-value": M.value,
|
|
1116
1160
|
"has-warnings": a,
|
|
1117
1161
|
loading: e.loading,
|
|
1118
|
-
passthrough:
|
|
1119
|
-
"prepend:icon":
|
|
1120
|
-
readonly:
|
|
1162
|
+
passthrough: w(N),
|
|
1163
|
+
"prepend:icon": w(O)["prepend:icon"],
|
|
1164
|
+
readonly: w(tt),
|
|
1121
1165
|
variant: e.variant,
|
|
1122
1166
|
onClick: xt,
|
|
1123
1167
|
"onClick:clear": Xt,
|
|
1124
1168
|
onFocusin: It
|
|
1125
1169
|
}, Ee({
|
|
1126
|
-
"prepend:outer":
|
|
1127
|
-
prepend:
|
|
1128
|
-
append:
|
|
1170
|
+
"prepend:outer": T(() => [S(e.$slots, "prepend:outer")]),
|
|
1171
|
+
prepend: T(() => [S(e.$slots, "prepend")]),
|
|
1172
|
+
append: T(() => [wt.value ? Te("", !0) : (b(), we(me, {
|
|
1129
1173
|
key: 0,
|
|
1130
1174
|
"active-segment": Ut.value,
|
|
1131
1175
|
adaptive: e.adaptive,
|
|
1132
1176
|
ampm: e.ampm,
|
|
1133
|
-
anchor:
|
|
1177
|
+
anchor: z.value,
|
|
1134
1178
|
disabled: e.disabled,
|
|
1135
1179
|
"first-day-of-week": e.firstDayOfWeek,
|
|
1136
1180
|
floating: e.floating,
|
|
1137
1181
|
label: Jt.value,
|
|
1138
1182
|
max: e.max,
|
|
1139
1183
|
min: e.min,
|
|
1140
|
-
"model-value":
|
|
1184
|
+
"model-value": w(et),
|
|
1141
1185
|
"off-canvas-props": e.offCanvasProps,
|
|
1142
|
-
pt:
|
|
1186
|
+
pt: w(N).forward(ft, w(fe).states),
|
|
1143
1187
|
range: e.range,
|
|
1144
|
-
readonly:
|
|
1188
|
+
readonly: w(tt),
|
|
1145
1189
|
seconds: e.seconds,
|
|
1146
1190
|
selectable: e.selectable,
|
|
1147
1191
|
step: e.step,
|
|
@@ -1150,27 +1194,27 @@ var Ve = ["data-value"], He = [
|
|
|
1150
1194
|
type: e.type,
|
|
1151
1195
|
utc: e.utc,
|
|
1152
1196
|
onGridPick: zt["onUpdate:modelValue"],
|
|
1153
|
-
onHidden: n[1] ||= (e) =>
|
|
1154
|
-
onHide:
|
|
1155
|
-
onShow:
|
|
1156
|
-
onShown: n[2] ||= (e) =>
|
|
1197
|
+
onHidden: n[1] ||= (e) => w(k)("hidden"),
|
|
1198
|
+
onHide: lt,
|
|
1199
|
+
onShow: ct,
|
|
1200
|
+
onShown: n[2] ||= (e) => w(k)("shown"),
|
|
1157
1201
|
onTimePick: Wt
|
|
1158
1202
|
}, Ee({
|
|
1159
|
-
activator:
|
|
1160
|
-
"aria-disabled":
|
|
1203
|
+
activator: T(({ props: t }) => [g("button", v({
|
|
1204
|
+
"aria-disabled": w(nt) || void 0,
|
|
1161
1205
|
class: "bb-segmented-field__activator",
|
|
1162
1206
|
disabled: e.disabled || e.readonly,
|
|
1163
1207
|
type: "button"
|
|
1164
|
-
},
|
|
1208
|
+
}, v(t, w(N).activator)), [De(ee, {
|
|
1165
1209
|
class: "bb-segmented-field__trigger-icon",
|
|
1166
|
-
icon:
|
|
1210
|
+
icon: w(be)
|
|
1167
1211
|
}, null, 8, ["icon"])], 16, We)]),
|
|
1168
|
-
day:
|
|
1169
|
-
"day:append":
|
|
1212
|
+
day: T((t) => [S(e.$slots, "day", y(_(t)))]),
|
|
1213
|
+
"day:append": T((t) => [S(e.$slots, "day:append", y(_(t)))]),
|
|
1170
1214
|
_: 2
|
|
1171
|
-
}, [Ne(
|
|
1215
|
+
}, [Ne(it(), (t) => ({
|
|
1172
1216
|
name: t,
|
|
1173
|
-
fn:
|
|
1217
|
+
fn: T((n) => [S(e.$slots, t, y(_(n)))])
|
|
1174
1218
|
}))]), 1032, [
|
|
1175
1219
|
"active-segment",
|
|
1176
1220
|
"adaptive",
|
|
@@ -1195,30 +1239,30 @@ var Ve = ["data-value"], He = [
|
|
|
1195
1239
|
"type",
|
|
1196
1240
|
"utc",
|
|
1197
1241
|
"onGridPick"
|
|
1198
|
-
])),
|
|
1242
|
+
])), S(e.$slots, "append", {}, () => [e.$slots.suffix ? (b(), h("span", v({
|
|
1199
1243
|
key: 0,
|
|
1200
1244
|
class: "bb-field-input__suffix"
|
|
1201
|
-
},
|
|
1202
|
-
"append:outer":
|
|
1203
|
-
default:
|
|
1245
|
+
}, w(N).suffix), [S(e.$slots, "suffix")], 16)) : Te("", !0)])]),
|
|
1246
|
+
"append:outer": T(() => [S(e.$slots, "append:outer")]),
|
|
1247
|
+
default: T(() => [g("div", {
|
|
1204
1248
|
class: ke(["bb-segmented-field__fields", {
|
|
1205
1249
|
"bb-segmented-field__fields--empty": Fn.value,
|
|
1206
1250
|
"bb-segmented-field__fields--range": e.range
|
|
1207
1251
|
}]),
|
|
1208
|
-
style: Ae({ "--fields-min-ch":
|
|
1209
|
-
}, [Fn.value ? (
|
|
1252
|
+
style: Ae({ "--fields-min-ch": w(dn) })
|
|
1253
|
+
}, [Fn.value ? (b(), h("span", {
|
|
1210
1254
|
key: 0,
|
|
1211
1255
|
"aria-hidden": "true",
|
|
1212
1256
|
class: "bb-segmented-field__placeholder",
|
|
1213
|
-
onClick: n[0] ||= (...e) =>
|
|
1214
|
-
},
|
|
1257
|
+
onClick: n[0] ||= (...e) => w(mn) && w(mn)(...e)
|
|
1258
|
+
}, C(Pn.value), 1)) : Te("", !0), (b(!0), h(Ce, null, Ne(G.value, (t, n) => (b(), h(Ce, { key: w(ln)(t) }, [g("span", {
|
|
1215
1259
|
class: "bb-segmented-field__field-sizer",
|
|
1216
|
-
"data-value":
|
|
1217
|
-
}, [Le(
|
|
1260
|
+
"data-value": w(un)(t)
|
|
1261
|
+
}, [Le(g("input", v({
|
|
1218
1262
|
id: n === 0 ? r : xn(t, r),
|
|
1219
1263
|
ref_for: !0,
|
|
1220
|
-
ref: (e) =>
|
|
1221
|
-
"aria-describedby":
|
|
1264
|
+
ref: (e) => w(cn)[w(ln)(t)] = e,
|
|
1265
|
+
"aria-describedby": gt(o, r),
|
|
1222
1266
|
"aria-disabled": e.disabled || void 0,
|
|
1223
1267
|
"aria-invalid": i ? "true" : void 0,
|
|
1224
1268
|
"aria-label": wn(t),
|
|
@@ -1231,31 +1275,31 @@ var Ve = ["data-value"], He = [
|
|
|
1231
1275
|
maxlength: on.value[t.field].maxLength,
|
|
1232
1276
|
name: Sn(t),
|
|
1233
1277
|
readonly: Tt.value,
|
|
1234
|
-
required:
|
|
1235
|
-
"aria-required":
|
|
1278
|
+
required: w(Qe),
|
|
1279
|
+
"aria-required": w($e),
|
|
1236
1280
|
tabindex: an(n) ? 0 : -1,
|
|
1237
1281
|
type: "text",
|
|
1238
|
-
value:
|
|
1239
|
-
onBlur: (e) =>
|
|
1282
|
+
value: w(K)[t.segment][t.field],
|
|
1283
|
+
onBlur: (e) => w(vn)(t),
|
|
1240
1284
|
onFocus: (e) => Ht(t, e),
|
|
1241
1285
|
onInput: (e) => bn(t, e),
|
|
1242
1286
|
onKeydown: (e) => Ct(t, e),
|
|
1243
|
-
onPaste: (e) =>
|
|
1244
|
-
},
|
|
1287
|
+
onPaste: (e) => w(yn)(t, e)
|
|
1288
|
+
}, v(w(N).controlAttrs, w(N).input)), null, 16, He), [[w(he)]])], 8, Ve), n < G.value.length - 1 ? (b(), h("span", {
|
|
1245
1289
|
key: 0,
|
|
1246
1290
|
"aria-hidden": "true",
|
|
1247
1291
|
class: ke(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": G.value[n].segment !== G.value[n + 1].segment }]),
|
|
1248
1292
|
role: "presentation",
|
|
1249
|
-
onClick: (e) =>
|
|
1250
|
-
},
|
|
1251
|
-
id:
|
|
1293
|
+
onClick: (e) => w(pn)(G.value[n + 1], { select: !0 })
|
|
1294
|
+
}, C(sn(G.value[n], G.value[n + 1])), 11, Ue)) : Te("", !0)], 64))), 128))], 6), g("span", {
|
|
1295
|
+
id: ht(r),
|
|
1252
1296
|
class: "bb-date-picker-input__accessible-description",
|
|
1253
1297
|
hidden: ""
|
|
1254
|
-
},
|
|
1298
|
+
}, C(w(L)("datePickerInput.dateFormat")) + " " + C(Nn.value), 9, Ge)]),
|
|
1255
1299
|
_: 2
|
|
1256
1300
|
}, [e.$slots.prefix ? {
|
|
1257
1301
|
name: "prefix",
|
|
1258
|
-
fn:
|
|
1302
|
+
fn: T(() => [S(e.$slots, "prefix")]),
|
|
1259
1303
|
key: "0"
|
|
1260
1304
|
} : void 0]), 1032, [
|
|
1261
1305
|
"active",
|
|
@@ -1276,7 +1320,7 @@ var Ve = ["data-value"], He = [
|
|
|
1276
1320
|
_: 2
|
|
1277
1321
|
}, [e.$slots.description ? {
|
|
1278
1322
|
name: "description",
|
|
1279
|
-
fn:
|
|
1323
|
+
fn: T((t) => [S(e.$slots, "description", y(_(t)))]),
|
|
1280
1324
|
key: "0"
|
|
1281
1325
|
} : void 0]), 1040, [
|
|
1282
1326
|
"id",
|