bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.21
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 +72 -33
- package/dist/ai/BbAccordion.md +3 -3
- package/dist/ai/BbAlert.md +9 -5
- package/dist/ai/BbAsterisk.md +17 -0
- package/dist/ai/BbAvatar.md +12 -3
- package/dist/ai/BbBadge.md +15 -10
- package/dist/ai/BbBadgeButton.md +16 -16
- package/dist/ai/BbBaseButton.md +16 -16
- package/dist/ai/BbBaseCheckbox.md +8 -8
- package/dist/ai/BbBaseCheckboxGroup.md +13 -13
- package/dist/ai/BbBaseCheckboxIcon.md +26 -9
- package/dist/ai/BbBaseColorInput.md +11 -11
- package/dist/ai/BbBaseDatePicker.md +6 -6
- package/dist/ai/BbBaseDatePickerInput.md +15 -15
- package/dist/ai/BbBaseInputContainer.md +12 -12
- package/dist/ai/BbBaseNumberInput.md +8 -8
- package/dist/ai/BbBaseRadio.md +5 -5
- package/dist/ai/BbBaseRadioGroup.md +7 -7
- package/dist/ai/BbBaseRadioIcon.md +25 -9
- package/dist/ai/BbBaseRating.md +5 -5
- package/dist/ai/BbBaseSelect.md +22 -21
- package/dist/ai/BbBaseSlider.md +9 -9
- package/dist/ai/BbBaseSwitch.md +8 -8
- package/dist/ai/BbBaseSwitchGroup.md +13 -13
- package/dist/ai/BbBaseSwitchIcon.md +28 -10
- package/dist/ai/BbBaseTag.md +10 -10
- package/dist/ai/BbBaseTextInput.md +9 -9
- package/dist/ai/BbBaseTextarea.md +9 -9
- package/dist/ai/BbBaseTimePickerInput.md +13 -13
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +15 -15
- package/dist/ai/BbCheckbox.md +18 -17
- package/dist/ai/BbCheckboxGroup.md +15 -14
- package/dist/ai/BbCollapsible.md +11 -9
- package/dist/ai/BbColorInput.md +15 -15
- package/dist/ai/BbColorPalette.md +12 -6
- package/dist/ai/BbConfirm.md +12 -5
- package/dist/ai/BbDatePicker.md +13 -13
- package/dist/ai/BbDatePickerInput.md +20 -20
- package/dist/ai/BbDialog.md +78 -12
- package/dist/ai/BbDropdown.md +132 -22
- package/dist/ai/BbDropdownButton.md +12 -12
- package/dist/ai/BbDropdownGroup.md +1 -1
- package/dist/ai/BbDropzone.md +4 -4
- package/dist/ai/BbForm.md +49 -14
- package/dist/ai/BbIcon.md +6 -0
- package/dist/ai/BbIndicator.md +5 -5
- package/dist/ai/BbNumberInput.md +11 -11
- package/dist/ai/BbOffCanvas.md +90 -20
- package/dist/ai/BbPagination.md +3 -3
- package/dist/ai/BbPopover.md +32 -17
- package/dist/ai/BbProgress.md +7 -4
- package/dist/ai/BbRadio.md +16 -15
- package/dist/ai/BbRadioGroup.md +20 -17
- package/dist/ai/BbRating.md +11 -11
- package/dist/ai/BbSelect.md +138 -37
- package/dist/ai/BbSelectPopover.md +40 -41
- package/dist/ai/BbSlider.md +37 -22
- package/dist/ai/BbSmoothHeight.md +1 -1
- package/dist/ai/BbSwitch.md +25 -10
- package/dist/ai/BbSwitchGroup.md +17 -14
- package/dist/ai/BbTable.md +920 -109
- package/dist/ai/BbTabs.md +28 -14
- package/dist/ai/BbTabsList.md +1 -1
- package/dist/ai/BbTabsPanes.md +1 -1
- package/dist/ai/BbTabsRoot.md +10 -10
- package/dist/ai/BbTag.md +14 -14
- package/dist/ai/BbTextInput.md +16 -15
- package/dist/ai/BbTextarea.md +13 -13
- package/dist/ai/BbTimePicker.md +10 -10
- package/dist/ai/BbTimePickerInput.md +17 -17
- package/dist/ai/BbToast.md +1 -1
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/BbTooltip.md +12 -10
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonInputWrapper.md +10 -10
- package/dist/ai/CommonPopover.md +6 -6
- package/dist/ai/FlatListBox.md +5 -5
- package/dist/ai/GroupedListBox.md +5 -5
- package/dist/ai/ListBox.md +4 -4
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +128 -2
- package/dist/ai/components.json +917 -100
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useConfirm.md +5 -3
- package/dist/ai/guides/ai-router.md +9 -4
- package/dist/ai/guides/component-picker.md +18 -18
- package/dist/ai/guides/design-language.md +14 -14
- package/dist/ai/guides/design-tokens.md +25 -18
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +11 -5
- package/dist/ai/guides/installation-and-plugin-setup.md +85 -23
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
- package/dist/ai/guides/migration/components/bb-rating.md +8 -2
- package/dist/ai/guides/migration/components/bb-select.md +5 -2
- package/dist/ai/guides/migration/components/bb-table.md +560 -28
- package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
- package/dist/ai/guides/migration/v2-to-v3.md +260 -89
- package/dist/ai/guides/ssr-prefill.md +120 -0
- package/dist/ai/index.md +10 -9
- package/dist/ai/recipes/inertia/approvals-inbox.md +0 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
- package/dist/ai/recipes/inertia/ownership-atlas.md +49 -29
- package/dist/ai/recipes/inertia/record-form.md +0 -1
- package/dist/ai/recipes/inertia/records-workspace.md +26 -8
- package/dist/ai/recipes/inertia/upload-center.md +0 -1
- package/dist/ai/recipes/nuxt/approvals-inbox.md +0 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
- package/dist/ai/recipes/nuxt/record-form.md +0 -1
- package/dist/ai/recipes/nuxt/records-workspace.md +26 -8
- package/dist/ai/recipes/nuxt/upload-center.md +0 -1
- package/dist/ai/recipes/vue/approvals-inbox.md +0 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
- package/dist/ai/recipes/vue/records-workspace.md +26 -8
- package/dist/ai/recipes/vue/upload-center.md +0 -1
- package/dist/ai/source/BbAlert.md +60 -2
- package/dist/ai/source/BbAvatar.md +3 -3
- package/dist/ai/source/BbBadge.md +60 -15
- package/dist/ai/source/BbBadgeButton.md +8 -2
- package/dist/ai/source/BbBaseButton.md +3 -1
- package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
- package/dist/ai/source/BbBaseDatePicker.md +3 -1
- package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
- package/dist/ai/source/BbBaseInputContainer.md +52 -1
- package/dist/ai/source/BbBaseRadioGroup.md +4 -0
- package/dist/ai/source/BbBaseRating.md +3 -1
- package/dist/ai/source/BbBaseSelect.md +71 -16
- package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
- package/dist/ai/source/BbBreadcrumbs.md +31 -0
- package/dist/ai/source/BbButton.md +51 -24
- package/dist/ai/source/BbCheckbox.md +15 -1
- package/dist/ai/source/BbCheckboxGroup.md +2 -1
- package/dist/ai/source/BbCollapsible.md +7 -1
- package/dist/ai/source/BbColorInput.md +3 -4
- package/dist/ai/source/BbColorPalette.md +3 -4
- package/dist/ai/source/BbDatePicker.md +5 -1
- package/dist/ai/source/BbDatePickerInput.md +5 -1
- package/dist/ai/source/BbDialog.md +175 -19
- package/dist/ai/source/BbDropdown.md +376 -69
- package/dist/ai/source/BbDropdownGroup.md +330 -59
- package/dist/ai/source/BbForm.md +93 -5
- package/dist/ai/source/BbIcon.md +46 -36
- package/dist/ai/source/BbNumberInput.md +3 -4
- package/dist/ai/source/BbOffCanvas.md +474 -194
- package/dist/ai/source/BbPopover.md +24 -17
- package/dist/ai/source/BbProgress.md +2 -2
- package/dist/ai/source/BbRadio.md +15 -1
- package/dist/ai/source/BbRadioGroup.md +3 -1
- package/dist/ai/source/BbSelect.md +50 -2
- package/dist/ai/source/BbSelectPopover.md +171 -23
- package/dist/ai/source/BbSlider.md +3 -4
- package/dist/ai/source/BbSwitch.md +15 -1
- package/dist/ai/source/BbSwitchGroup.md +8 -5
- package/dist/ai/source/BbTable.md +5092 -1446
- package/dist/ai/source/BbTabs.md +6 -7
- package/dist/ai/source/BbTabsList.md +6 -7
- package/dist/ai/source/BbTabsPanes.md +6 -7
- package/dist/ai/source/BbTabsRoot.md +6 -7
- package/dist/ai/source/BbTag.md +3 -4
- package/dist/ai/source/BbTextInput.md +3 -4
- package/dist/ai/source/BbTextarea.md +3 -4
- package/dist/ai/source/BbTimePicker.md +4 -1
- package/dist/ai/source/BbTimePickerInput.md +5 -1
- package/dist/ai/source/BbToast.md +3 -1
- package/dist/ai/source/BbTooltip.md +5 -1
- package/dist/ai/source/CommonInputWrapper.md +4 -0
- package/dist/ai/source/CommonPopover.md +6 -0
- package/dist/ai/source/FlatListBox.md +11 -5
- package/dist/ai/source/GroupedListBox.md +7 -5
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAlert/types.d.ts +10 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
- package/dist/components/BbBadge/types.d.ts +8 -2
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
- package/dist/components/BbBaseSelect/types.d.ts +22 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
- package/dist/components/BbCollapsible/types.d.ts +7 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
- package/dist/components/BbDialog/types.d.ts +29 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDropdown/types.d.ts +20 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
- package/dist/components/BbIcon/iconCache.d.ts +33 -0
- package/dist/components/BbIcon/iconCache.js +17 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
- package/dist/components/BbOffCanvas/types.d.ts +30 -5
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
- package/dist/components/BbPopover/types.d.ts +3 -2
- package/dist/components/BbRadioGroup/types.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
- package/dist/components/BbSelect/types.d.ts +32 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
- package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/components/BbTable/BbTable.vue.d.ts +10 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1433 -600
- package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
- package/dist/components/BbTable/BbTableDataRow.js +136 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
- package/dist/components/BbTable/BbTableExpandRow.js +52 -0
- package/dist/components/BbTable/types.d.ts +324 -111
- package/dist/components/BbTable/utils.d.ts +92 -4
- package/dist/components/BbTable/utils.js +71 -36
- package/dist/components/BbTabs/types.d.ts +0 -8
- package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/BbTooltip/types.d.ts +5 -1
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/composables/useBaseOptions.js +30 -20
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +5 -5
- package/dist/composables/usePrefill.d.ts +21 -2
- package/dist/composables/usePrefill.js +25 -19
- package/dist/composables/useSsrState.d.ts +20 -0
- package/dist/composables/useSsrState.js +13 -0
- package/dist/composables/useTableWidthContext.d.ts +24 -4
- package/dist/composables/useTableWidthContext.js +31 -28
- package/dist/composables/useToast.js +5 -5
- package/dist/deprecation/ai-deprecations.json.d.ts +121 -11
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +63 -23
- package/dist/i18n/locales/cs.json +4 -1
- package/dist/i18n/locales/da.json +4 -1
- package/dist/i18n/locales/de.json +4 -1
- package/dist/i18n/locales/el.json +4 -1
- package/dist/i18n/locales/en.json +4 -1
- package/dist/i18n/locales/es.json +4 -1
- package/dist/i18n/locales/fi.json +4 -1
- package/dist/i18n/locales/fr.json +4 -1
- package/dist/i18n/locales/hu.json +4 -1
- package/dist/i18n/locales/it.json +4 -1
- package/dist/i18n/locales/ja.json +4 -1
- package/dist/i18n/locales/ko.json +4 -1
- package/dist/i18n/locales/nb.json +4 -1
- package/dist/i18n/locales/nl.json +4 -1
- package/dist/i18n/locales/pl.json +4 -1
- package/dist/i18n/locales/pt.json +4 -1
- package/dist/i18n/locales/ro.json +4 -1
- package/dist/i18n/locales/ru.json +4 -1
- package/dist/i18n/locales/sv.json +4 -1
- package/dist/i18n/locales/tr.json +4 -1
- package/dist/i18n/locales/uk.json +4 -1
- package/dist/i18n/locales/zh-cn.json +4 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +69 -67
- package/dist/llms-full.txt +3997 -1458
- package/dist/llms-medium.txt +140 -73
- package/dist/llms.txt +7 -6
- package/dist/locale-blueprint.json +4 -1
- package/dist/nuxt-auto-imports.d.ts +100 -0
- package/dist/nuxt-auto-imports.js +55 -0
- package/dist/nuxt-module.d.ts +22 -1
- package/dist/nuxt.js +22 -8
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +20 -19
- package/dist/runtime/nuxt-plugin.js +28 -21
- package/dist/styles.css +1 -1
- package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
- package/dist/utilities/misc/listboxMetrics.js +2 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
- package/dist/validated/BbSelect.vue.d.ts +2 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/useValidatedField.js +25 -23
- package/dist/vite.js +7 -3
- package/llms.txt +8 -7
- package/package.json +2 -2
- package/scripts/lib/eslint-plugin.d.ts +19 -1
- package/scripts/lib/eslint-plugin.mjs +155 -14
- package/scripts/lib/html-attributes.mjs +91 -0
- package/scripts/lib/validate-bb-markup.mjs +59 -11
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLogger as e } from "../../composables/useLogger.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { hash as t } from "../../utilities/functions/hash.js";
|
|
3
|
+
import { useItemsGetter as n } from "../../composables/useItemsGetter.js";
|
|
4
4
|
import { useHashedWatcher as r } from "../../composables/useHashedWatcher.js";
|
|
5
5
|
import i from "../OptionsContainer/OptionsContainer.vue.js";
|
|
6
6
|
import { useIndexById as a } from "../../composables/useIndexById.js";
|
|
@@ -69,54 +69,56 @@ var D = /*@__PURE__*/ g({
|
|
|
69
69
|
});
|
|
70
70
|
let j = T("container"), { active: M } = l(j);
|
|
71
71
|
u(M, () => k("inactive")), d(M, () => k("active"));
|
|
72
|
-
let { getter: N,
|
|
73
|
-
O.enforceCoherence && !
|
|
74
|
-
}, { hasPrefilled:
|
|
72
|
+
let { getter: N, clientReproducible: P, hydratedFromSsr: F, items: I, loading: L } = n({ items: C(O, "items") }), R = () => {
|
|
73
|
+
O.enforceCoherence && !K.value && k("update:modelValue", q.value);
|
|
74
|
+
}, { hasPrefilled: z } = c({
|
|
75
|
+
alreadyLoaded: F,
|
|
76
|
+
clientReproducible: P,
|
|
75
77
|
trigger: !0,
|
|
76
78
|
currentValue: O.modelValue,
|
|
77
79
|
multiple: O.multiple,
|
|
78
80
|
fn: async (e) => {
|
|
79
|
-
await N(e, O.modelValue),
|
|
81
|
+
await N(e, O.modelValue), R();
|
|
80
82
|
}
|
|
81
|
-
}),
|
|
83
|
+
}), B = p(() => [].concat(O.modelValue)), { data: V } = a({ items: B }), { options: H } = o({
|
|
82
84
|
disabled: C(O, "disabled"),
|
|
83
|
-
items:
|
|
85
|
+
items: I,
|
|
84
86
|
itemText: O.itemText,
|
|
85
87
|
itemValue: O.itemValue,
|
|
86
88
|
max: O.max,
|
|
87
89
|
selectable: C(O, "selectable"),
|
|
88
|
-
selectedIndexedByHash:
|
|
89
|
-
}),
|
|
90
|
+
selectedIndexedByHash: V
|
|
91
|
+
}), U = (e) => {
|
|
90
92
|
if (O.multiple) {
|
|
91
|
-
k("update:modelValue",
|
|
93
|
+
k("update:modelValue", B.value.concat(e.value));
|
|
92
94
|
return;
|
|
93
95
|
}
|
|
94
96
|
k("update:modelValue", e.value);
|
|
95
|
-
},
|
|
97
|
+
}, W = (e) => {
|
|
96
98
|
if (!O.multiple) {
|
|
97
99
|
k("update:modelValue", null);
|
|
98
100
|
return;
|
|
99
101
|
}
|
|
100
|
-
let t = { ...
|
|
102
|
+
let t = { ...V.value };
|
|
101
103
|
delete t[e.valueHash], k("update:modelValue", Object.values(t));
|
|
102
|
-
}, { data:
|
|
103
|
-
items:
|
|
104
|
+
}, { data: G } = a({
|
|
105
|
+
items: H,
|
|
104
106
|
key: "valueHash"
|
|
105
|
-
}), { coherent:
|
|
107
|
+
}), { coherent: K, coherentValue: q } = s({
|
|
106
108
|
modelValue: C(O, "modelValue"),
|
|
107
109
|
multiple: O.multiple,
|
|
108
|
-
iteratee: (e) => !!
|
|
109
|
-
}),
|
|
110
|
+
iteratee: (e) => !!G.value[t(e)]
|
|
111
|
+
}), J = 0;
|
|
110
112
|
r(() => O.modelValue, async () => {
|
|
111
|
-
|
|
113
|
+
J++, K.value || (await N(!0, O.modelValue), R()), J--;
|
|
112
114
|
}, { debounce: O.modelValueDebounceTime }), r(() => [O.dependencies, O.items], async () => {
|
|
113
|
-
|
|
115
|
+
z.value && (J++, await N(!0, O.modelValue), J === 1 && R(), J--);
|
|
114
116
|
}, { debounce: O.depsDebounceTime });
|
|
115
|
-
let
|
|
117
|
+
let Y = (e) => {
|
|
116
118
|
if (O.id) return [O.id, e.valueHash].filter(Boolean).join("-");
|
|
117
|
-
},
|
|
118
|
-
k("change", e), t.selected ?
|
|
119
|
-
},
|
|
119
|
+
}, X = (e, t) => {
|
|
120
|
+
k("change", e), t.selected ? W(t) : U(t);
|
|
121
|
+
}, Z = {
|
|
120
122
|
onBlur: (e) => k("blur", e),
|
|
121
123
|
onClick: (e) => k("click", e),
|
|
122
124
|
onFocus: (e) => k("focus", e),
|
|
@@ -133,17 +135,17 @@ var D = /*@__PURE__*/ g({
|
|
|
133
135
|
"has-errors": e.hasErrors,
|
|
134
136
|
"has-warning": e.hasWarning,
|
|
135
137
|
"hide-label": e.hideLabel,
|
|
136
|
-
loading: !!w(
|
|
138
|
+
loading: !!w(L),
|
|
137
139
|
"loading-text": e.loadingText,
|
|
138
140
|
"no-data-text": e.noDataText,
|
|
139
|
-
options: w(
|
|
141
|
+
options: w(H)
|
|
140
142
|
}, {
|
|
141
143
|
prepend: E(() => [S(e.$slots, "prepend")]),
|
|
142
144
|
loading: E(() => [S(e.$slots, "loading")]),
|
|
143
145
|
"no-data": E(() => [S(e.$slots, "no-data")]),
|
|
144
146
|
label: E((t) => [S(e.$slots, "label", y(_(t)))]),
|
|
145
147
|
input: E(({ option: t, index: n }) => [h(f, v({
|
|
146
|
-
id:
|
|
148
|
+
id: Y(t),
|
|
147
149
|
"aria-describedby": e.ariaDescribedby,
|
|
148
150
|
autofocus: e.autofocus && !n,
|
|
149
151
|
checked: t.selected,
|
|
@@ -153,7 +155,7 @@ var D = /*@__PURE__*/ g({
|
|
|
153
155
|
name: e.name,
|
|
154
156
|
readonly: e.readonly,
|
|
155
157
|
"true-value": t.value
|
|
156
|
-
},
|
|
158
|
+
}, Z, { onChange: (e) => X(e, t) }), {
|
|
157
159
|
icon: E((n) => [S(e.$slots, "icon", v({
|
|
158
160
|
item: t.item,
|
|
159
161
|
text: t.text
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import('vue').DefineComponent<BaseTimePickerInputProps
|
|
|
13
13
|
onActive?: (() => any) | undefined;
|
|
14
14
|
onInactive?: (() => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
disableWriting: boolean | "mobile" | "desktop";
|
|
17
16
|
adaptive: boolean;
|
|
17
|
+
disableWriting: boolean | "mobile" | "desktop";
|
|
18
18
|
autocomplete: string;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import o from "
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { useId as t } from "../../composables/useId.js";
|
|
3
|
+
import { useLogger as n } from "../../composables/useLogger.js";
|
|
4
|
+
import { transitions as r } from "../../utilities/misc/transitions.js";
|
|
5
|
+
import i from "../CommonPopover/CommonPopover.vue.js";
|
|
6
|
+
import { useMobile as a } from "../../composables/useMobile.js";
|
|
7
|
+
import { useClosingInert as o } from "../../composables/useClosingInert.js";
|
|
8
8
|
import { useLocale as s } from "../../composables/useLocale.js";
|
|
9
|
-
import ee from "../
|
|
10
|
-
import te from "../
|
|
11
|
-
import ne from "../
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import oe from "../../
|
|
16
|
-
import
|
|
17
|
-
import { Fragment as ce, computed as c, createBlock as l, createCommentVNode as
|
|
9
|
+
import ee from "../BbIcon/BbIcon.vue.js";
|
|
10
|
+
import te from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
11
|
+
import ne from "../BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js";
|
|
12
|
+
import re from "../CommonInputWrapper/CommonInputWrapper.vue.js";
|
|
13
|
+
import { isEmpty as ie } from "../../utilities/functions/empty.js";
|
|
14
|
+
import { useSegmentedFields as ae } from "../../composables/useSegmentedFields.js";
|
|
15
|
+
import { isNotEmpty as oe } from "../../utilities/functions/isNotEmpty.js";
|
|
16
|
+
import se from "../../assets/svgs/clock.svg_raw.js";
|
|
17
|
+
import { Fragment as ce, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as le, createVNode as p, defineComponent as ue, mergeProps as de, normalizeClass as m, normalizeStyle as fe, onBeforeUnmount as pe, openBlock as h, ref as g, renderList as me, renderSlot as _, toDisplayString as v, unref as y, watch as b, withCtx as x, withModifiers as he } from "vue";
|
|
18
18
|
import { createReusableTemplate as ge } from "@vueuse/core";
|
|
19
19
|
//#region src/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
20
20
|
var _e = ["data-value"], ve = [
|
|
@@ -43,7 +43,7 @@ var _e = ["data-value"], ve = [
|
|
|
43
43
|
"aria-expanded",
|
|
44
44
|
"aria-label",
|
|
45
45
|
"disabled"
|
|
46
|
-
], xe = ["inert"], S = /*@__PURE__*/
|
|
46
|
+
], xe = ["inert"], S = /*@__PURE__*/ ue({
|
|
47
47
|
__name: "BbBaseTimePickerInput",
|
|
48
48
|
props: {
|
|
49
49
|
adaptive: {
|
|
@@ -87,23 +87,23 @@ var _e = ["data-value"], ve = [
|
|
|
87
87
|
"inactive",
|
|
88
88
|
"update:modelValue"
|
|
89
89
|
],
|
|
90
|
-
setup(
|
|
91
|
-
let C =
|
|
90
|
+
setup(ue, { emit: S }) {
|
|
91
|
+
let C = ue, w = S, Se = e(), { t: T } = s(), Ce = n(), we = (e, t) => t === "PM" ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, Te = (e) => {
|
|
92
92
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
93
93
|
return n === 0 && (n = 12), {
|
|
94
94
|
hour: String(n).padStart(2, "0"),
|
|
95
95
|
meridiem: t
|
|
96
96
|
};
|
|
97
|
-
}, E = g(null), D = g(null), O = g(null), k = C.id || `btpi-${
|
|
97
|
+
}, E = g(null), D = g(null), O = g(null), k = C.id || `btpi-${t().id.value}`, A = `btpi-description_${k}`, j = `btpi-panel_${k}`, Ee = c(() => {
|
|
98
98
|
let e = [C.ariaDescribedby, A].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
99
99
|
return Array.from(new Set(e)).join(" ");
|
|
100
|
-
}), De = c(() =>
|
|
101
|
-
let t =
|
|
100
|
+
}), De = c(() => oe(C.modelValue)), { isMobile: M } = a(), Oe = c(() => C.disableWriting === "mobile" ? !M.value : C.disableWriting === "desktop" ? M.value : !C.disableWriting), ke = c(() => !!C.readonly || !Oe.value), Ae = (e) => Oe.value ? F.value[e].kind === "enum" ? "none" : "numeric" : "none", je = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, N = (e) => {
|
|
101
|
+
let t = je.exec(e);
|
|
102
102
|
if (!t) return null;
|
|
103
103
|
let [, n, r] = t, i = parseInt(n, 10), a = parseInt(r, 10);
|
|
104
104
|
return i > 23 || a > 59 ? null : i * 60 + a;
|
|
105
105
|
};
|
|
106
|
-
for (let [e, t] of [["min", C.min], ["max", C.max]]) t && N(t) === null &&
|
|
106
|
+
for (let [e, t] of [["min", C.min], ["max", C.max]]) t && N(t) === null && Ce.throw(`BaseTimePickerInput: ${e} must be in the format HH:mm`);
|
|
107
107
|
let P = c(() => {
|
|
108
108
|
let e = ["hour", "minute"];
|
|
109
109
|
C.seconds && e.push("second"), C.ampm && e.push("meridiem");
|
|
@@ -163,7 +163,7 @@ var _e = ["data-value"], ve = [
|
|
|
163
163
|
sizerMin: "AM",
|
|
164
164
|
label: "AM/PM"
|
|
165
165
|
}
|
|
166
|
-
})),
|
|
166
|
+
})), Me = (e, t) => e.segment === t.segment ? t.field === "meridiem" ? " " : ":" : "–", { fields: I, fieldRefs: Ne, descriptorKey: Pe, emptyFieldGroup: Fe, getSizedValue: Ie, minChars: Le, updateAllSizedValues: L, isOwnField: Re, focusField: ze, focusFirstField: Be, segmentStatus: R, onFieldInput: Ve, onFieldKeydown: He, onFieldFocus: Ue, onFieldBlur: We, onFieldPaste: Ge } = ae({
|
|
167
167
|
fieldOrder: P,
|
|
168
168
|
specs: F,
|
|
169
169
|
segments: ["start", "end"],
|
|
@@ -176,37 +176,37 @@ var _e = ["data-value"], ve = [
|
|
|
176
176
|
optionalGroups: [["second"]],
|
|
177
177
|
advanceKeys: [":", " "],
|
|
178
178
|
onDirty: () => W({ finalize: !1 })
|
|
179
|
-
}),
|
|
179
|
+
}), Ke = (e) => C.range ? `${k}-${e.segment}-${e.field}` : `${k}-${e.field}`, qe = (e) => {
|
|
180
180
|
if (C.name) return C.range ? `${C.name}-${e.segment}-${e.field}` : `${C.name}-${e.field}`;
|
|
181
|
-
},
|
|
181
|
+
}, Je = {
|
|
182
182
|
hour: "baseDatePickerInput.hourField",
|
|
183
183
|
minute: "baseDatePickerInput.minuteField",
|
|
184
184
|
second: "baseDatePickerInput.secondField",
|
|
185
185
|
meridiem: "baseDatePickerInput.meridiemField"
|
|
186
|
-
},
|
|
187
|
-
let t = T(
|
|
186
|
+
}, Ye = (e) => {
|
|
187
|
+
let t = T(Je[e.field]).value;
|
|
188
188
|
return C.range ? T(e.segment === "start" ? "baseDatePickerInput.startFieldLabel" : "baseDatePickerInput.endFieldLabel", t).value : t;
|
|
189
|
-
},
|
|
189
|
+
}, Xe = c(() => {
|
|
190
190
|
let e = T(C.seconds ? "baseDatePickerInput.timeFormatSeconds" : "baseDatePickerInput.timeFormat").value;
|
|
191
191
|
return C.range ? `${e} – ${e}` : e;
|
|
192
|
-
}),
|
|
192
|
+
}), Ze = c(() => C.placeholder || Xe.value), Qe = c(() => P.value.every((e) => !I.value[e.segment][e.field])), $e = (e) => {
|
|
193
193
|
if (!e.hour) return 0;
|
|
194
194
|
let t = parseInt(e.hour, 10);
|
|
195
|
-
return C.ampm ?
|
|
196
|
-
},
|
|
195
|
+
return C.ampm ? we(t, e.meridiem || "AM") : t;
|
|
196
|
+
}, et = (e, t) => {
|
|
197
197
|
if (!C.ampm) {
|
|
198
198
|
e.hour = String(t).padStart(2, "0");
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
let n =
|
|
201
|
+
let n = Te(t);
|
|
202
202
|
e.hour = n.hour, e.meridiem = n.meridiem;
|
|
203
203
|
}, z = (e) => {
|
|
204
|
-
let t =
|
|
204
|
+
let t = Fe();
|
|
205
205
|
if (!e) return t;
|
|
206
|
-
let n =
|
|
206
|
+
let n = je.exec(e);
|
|
207
207
|
if (!n) return t;
|
|
208
208
|
let [, r, i, a] = n, o = parseInt(r, 10);
|
|
209
|
-
return o > 23 || parseInt(i, 10) > 59 ? t : (
|
|
209
|
+
return o > 23 || parseInt(i, 10) > 59 ? t : (et(t, o), t.minute = i.padStart(2, "0"), t.second = C.seconds && a ? a.padStart(2, "0") : "", t);
|
|
210
210
|
}, B = (e) => {
|
|
211
211
|
if (C.range) {
|
|
212
212
|
let [t, n] = Array.isArray(e) ? e : [];
|
|
@@ -218,9 +218,9 @@ var _e = ["data-value"], ve = [
|
|
|
218
218
|
}
|
|
219
219
|
I.value = {
|
|
220
220
|
start: z(typeof e == "string" ? e : void 0),
|
|
221
|
-
end:
|
|
221
|
+
end: Fe()
|
|
222
222
|
};
|
|
223
|
-
},
|
|
223
|
+
}, tt = () => {
|
|
224
224
|
B(C.modelValue);
|
|
225
225
|
};
|
|
226
226
|
B(C.modelValue), L(), b(() => C.modelValue, (e) => {
|
|
@@ -229,15 +229,15 @@ var _e = ["data-value"], ve = [
|
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
let t = document.activeElement;
|
|
232
|
-
t &&
|
|
232
|
+
t && Re(t) || (B(e), L());
|
|
233
233
|
});
|
|
234
234
|
let V = (e) => {
|
|
235
|
-
let t = I.value[e], n = String(
|
|
235
|
+
let t = I.value[e], n = String($e(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
236
236
|
return C.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
237
237
|
}, H = (e) => w("error", e), U = (e) => {
|
|
238
238
|
let t = N(e);
|
|
239
239
|
return t === null ? e : C.min && t < N(C.min) ? C.min + (C.seconds ? ":00" : "") : C.max && t > N(C.max) ? C.max + (C.seconds ? ":00" : "") : e;
|
|
240
|
-
},
|
|
240
|
+
}, nt = () => R("start") === "partial" ? !0 : C.range ? R("end") === "partial" : !1, W = (e = {}) => {
|
|
241
241
|
let t = !!e.finalize, n = R("start");
|
|
242
242
|
if (!C.range) {
|
|
243
243
|
if (n === "empty") {
|
|
@@ -297,48 +297,48 @@ var _e = ["data-value"], ve = [
|
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
299
|
L(), w("update:modelValue", [i, o]);
|
|
300
|
-
},
|
|
300
|
+
}, rt = () => {
|
|
301
301
|
w("update:modelValue", C.range ? [] : null);
|
|
302
|
-
}, G = g(!1),
|
|
302
|
+
}, G = g(!1), it = () => {
|
|
303
303
|
G.value || (w("active"), G.value = !0, document.addEventListener("focusin", K), document.addEventListener("click", K));
|
|
304
304
|
}, K = (e) => {
|
|
305
305
|
let t = e.target;
|
|
306
|
-
t instanceof HTMLElement && E.value?.$el && (E.value.$el.contains(t) || D.value?.contains(t) || (W({ finalize: !0 }),
|
|
307
|
-
}, [
|
|
306
|
+
t instanceof HTMLElement && E.value?.$el && (E.value.$el.contains(t) || D.value?.contains(t) || (W({ finalize: !0 }), nt() && (tt(), L()), G.value = !1, w("inactive"), document.removeEventListener("focusin", K), document.removeEventListener("click", K)));
|
|
307
|
+
}, [at, ot] = ge(), q = g(!1), st = o(q, () => C.transitionDuration ?? r.medium), J = () => (C.adaptive ?? Se.adaptive) && M.value ? "canvas" : "popover", Y = g(J()), X = c(() => Y.value === "canvas");
|
|
308
308
|
b([
|
|
309
309
|
() => C.adaptive,
|
|
310
|
-
|
|
310
|
+
M,
|
|
311
311
|
q
|
|
312
312
|
], () => {
|
|
313
313
|
q.value || (Y.value = J());
|
|
314
314
|
});
|
|
315
|
-
let
|
|
315
|
+
let ct = c(() => ({
|
|
316
316
|
side: "bottom",
|
|
317
317
|
size: "auto",
|
|
318
318
|
draggable: !0,
|
|
319
319
|
disabled: C.disabled,
|
|
320
320
|
transitionDuration: C.transitionDuration,
|
|
321
321
|
...C.offCanvasProps
|
|
322
|
-
})),
|
|
322
|
+
})), lt = () => {
|
|
323
323
|
O.value?.focus();
|
|
324
324
|
}, Z = (e) => {
|
|
325
325
|
let t = e.target;
|
|
326
326
|
t && t instanceof HTMLDialogElement && (q.value = !1);
|
|
327
|
-
},
|
|
327
|
+
}, ut = () => {
|
|
328
328
|
C.disabled || C.readonly || (Y.value = J(), q.value = !0);
|
|
329
329
|
};
|
|
330
330
|
b(q, (e) => {
|
|
331
331
|
e ? X.value || document.addEventListener("click", Z, { passive: !0 }) : document.removeEventListener("click", Z);
|
|
332
332
|
});
|
|
333
|
-
let Q = g("start"),
|
|
334
|
-
Q.value = e.segment,
|
|
335
|
-
}, $ = c(() => C.range ? I.value[Q.value].hour ? Q.value : I.value.start.hour && !I.value.end.hour ? "end" : "start" : "start"),
|
|
333
|
+
let Q = g("start"), dt = (e) => {
|
|
334
|
+
Q.value = e.segment, Ue(e);
|
|
335
|
+
}, $ = c(() => C.range ? I.value[Q.value].hour ? Q.value : I.value.start.hour && !I.value.end.hour ? "end" : "start" : "start"), ft = c(() => {
|
|
336
336
|
let e = I.value[$.value];
|
|
337
|
-
return e.hour ? String(
|
|
338
|
-
}),
|
|
337
|
+
return e.hour ? String($e(e)).padStart(2, "0") : "";
|
|
338
|
+
}), pt = ({ unit: e, value: t }) => {
|
|
339
339
|
let n = I.value[$.value];
|
|
340
|
-
e === "hour" ?
|
|
341
|
-
},
|
|
340
|
+
e === "hour" ? et(n, parseInt(t, 10)) : n[e] = t, n.hour || (C.ampm ? n.hour = "12" : n.hour = "00"), C.ampm && !n.meridiem && (n.meridiem = "AM"), n.minute ||= "00", C.seconds && !n.second && (n.second = "00"), L(), W({ finalize: !1 });
|
|
341
|
+
}, mt = c(() => {
|
|
342
342
|
if (C.range) {
|
|
343
343
|
let [e, t] = Array.isArray(C.modelValue) ? C.modelValue : [];
|
|
344
344
|
return !e || !t ? T("baseTimePickerInput.emptyRange").value : T("baseTimePickerInput.changeSelectionRange", e, t).value;
|
|
@@ -347,13 +347,13 @@ var _e = ["data-value"], ve = [
|
|
|
347
347
|
});
|
|
348
348
|
return pe(() => {
|
|
349
349
|
document.removeEventListener("focusin", K), document.removeEventListener("click", K), document.removeEventListener("click", Z);
|
|
350
|
-
}), (e, t) => (h(), l(
|
|
350
|
+
}), (e, t) => (h(), l(re, {
|
|
351
351
|
ref_key: "wrapper",
|
|
352
352
|
ref: E,
|
|
353
353
|
active: G.value,
|
|
354
354
|
"append:icon": C["append:icon"],
|
|
355
355
|
class: m(["bb-base-time-picker-input", { "bb-base-time-picker-input--range": C.range }]),
|
|
356
|
-
clearable: C.clearable && !y(
|
|
356
|
+
clearable: C.clearable && !y(ie)(e.modelValue),
|
|
357
357
|
compact: C.compact,
|
|
358
358
|
disabled: C.disabled,
|
|
359
359
|
"has-errors": C.hasErrors,
|
|
@@ -362,96 +362,96 @@ var _e = ["data-value"], ve = [
|
|
|
362
362
|
loading: C.loading,
|
|
363
363
|
"prepend:icon": C["prepend:icon"],
|
|
364
364
|
readonly: C.readonly,
|
|
365
|
-
"onClick:clear":
|
|
366
|
-
onFocusin:
|
|
367
|
-
},
|
|
365
|
+
"onClick:clear": rt,
|
|
366
|
+
onFocusin: it
|
|
367
|
+
}, le({
|
|
368
368
|
"prepend-outer": x(() => [_(e.$slots, "prepend-outer")]),
|
|
369
369
|
prepend: x(() => [_(e.$slots, "prepend")]),
|
|
370
|
-
append: x(() => [
|
|
370
|
+
append: x(() => [f("button", {
|
|
371
371
|
ref_key: "clockButton",
|
|
372
372
|
ref: O,
|
|
373
|
-
"aria-controls":
|
|
373
|
+
"aria-controls": j,
|
|
374
374
|
"aria-expanded": q.value,
|
|
375
375
|
"aria-haspopup": "dialog",
|
|
376
|
-
"aria-label":
|
|
376
|
+
"aria-label": mt.value,
|
|
377
377
|
class: m(["bb-segmented-field__trigger-btn", { "bb-segmented-field__trigger-btn--active": q.value }]),
|
|
378
378
|
disabled: e.disabled || e.readonly,
|
|
379
379
|
type: "button",
|
|
380
|
-
onClick: he(
|
|
381
|
-
}, [
|
|
380
|
+
onClick: he(ut, ["stop"])
|
|
381
|
+
}, [p(ee, {
|
|
382
382
|
class: "bb-segmented-field__trigger-icon",
|
|
383
|
-
icon: y(
|
|
383
|
+
icon: y(se)
|
|
384
384
|
}, null, 8, ["icon"])], 10, be), _(e.$slots, "append")]),
|
|
385
385
|
"append-outer": x(() => [_(e.$slots, "append-outer")]),
|
|
386
386
|
default: x(() => [
|
|
387
|
-
|
|
387
|
+
f("div", {
|
|
388
388
|
class: m(["bb-segmented-field__fields", {
|
|
389
|
-
"bb-segmented-field__fields--empty":
|
|
389
|
+
"bb-segmented-field__fields--empty": Qe.value,
|
|
390
390
|
"bb-segmented-field__fields--range": e.range
|
|
391
391
|
}]),
|
|
392
|
-
style: fe({ "--fields-min-ch": y(
|
|
393
|
-
}, [
|
|
392
|
+
style: fe({ "--fields-min-ch": y(Le) })
|
|
393
|
+
}, [Qe.value ? (h(), d("span", {
|
|
394
394
|
key: 0,
|
|
395
395
|
"aria-hidden": "true",
|
|
396
396
|
class: "bb-segmented-field__placeholder",
|
|
397
|
-
onClick: t[0] ||= (...e) => y(
|
|
398
|
-
}, v(
|
|
397
|
+
onClick: t[0] ||= (...e) => y(Be) && y(Be)(...e)
|
|
398
|
+
}, v(Ze.value), 1)) : u("", !0), (h(!0), d(ce, null, me(P.value, (t, n) => (h(), d(ce, { key: y(Pe)(t) }, [f("span", {
|
|
399
399
|
class: "bb-segmented-field__field-sizer",
|
|
400
|
-
"data-value": y(
|
|
401
|
-
}, [
|
|
402
|
-
id: n === 0 ? y(k) :
|
|
400
|
+
"data-value": y(Ie)(t)
|
|
401
|
+
}, [f("input", {
|
|
402
|
+
id: n === 0 ? y(k) : Ke(t),
|
|
403
403
|
ref_for: !0,
|
|
404
|
-
ref: (e) => y(
|
|
404
|
+
ref: (e) => y(Ne)[y(Pe)(t)] = e,
|
|
405
405
|
"aria-describedby": Ee.value,
|
|
406
406
|
"aria-disabled": e.disabled || void 0,
|
|
407
407
|
"aria-invalid": C.hasErrors ? "true" : void 0,
|
|
408
|
-
"aria-label":
|
|
409
|
-
"aria-readonly":
|
|
408
|
+
"aria-label": Ye(t),
|
|
409
|
+
"aria-readonly": ke.value || void 0,
|
|
410
410
|
autocomplete: e.autocomplete,
|
|
411
411
|
autofocus: e.autofocus && n === 0,
|
|
412
412
|
class: m(["bb-segmented-field__field", [`bb-segmented-field__field--${t.field}`, `bb-segmented-field__field--${t.segment}`]]),
|
|
413
413
|
disabled: e.disabled,
|
|
414
|
-
inputmode:
|
|
414
|
+
inputmode: Ae(t.field),
|
|
415
415
|
maxlength: F.value[t.field].maxLength,
|
|
416
|
-
name:
|
|
417
|
-
readonly:
|
|
416
|
+
name: qe(t),
|
|
417
|
+
readonly: ke.value,
|
|
418
418
|
required: e.required,
|
|
419
419
|
tabindex: t.field === "hour" ? 0 : -1,
|
|
420
420
|
type: "text",
|
|
421
421
|
value: y(I)[t.segment][t.field],
|
|
422
|
-
onBlur: (e) => y(
|
|
423
|
-
onFocus: (e) =>
|
|
424
|
-
onInput: (e) => y(
|
|
425
|
-
onKeydown: (e) => y(
|
|
426
|
-
onPaste: (e) => y(
|
|
427
|
-
}, null, 42, ve)], 8, _e), n < P.value.length - 1 ? (h(),
|
|
422
|
+
onBlur: (e) => y(We)(t),
|
|
423
|
+
onFocus: (e) => dt(t),
|
|
424
|
+
onInput: (e) => y(Ve)(t, e),
|
|
425
|
+
onKeydown: (e) => y(He)(t, e),
|
|
426
|
+
onPaste: (e) => y(Ge)(t, e)
|
|
427
|
+
}, null, 42, ve)], 8, _e), n < P.value.length - 1 ? (h(), d("span", {
|
|
428
428
|
key: 0,
|
|
429
429
|
"aria-hidden": "true",
|
|
430
430
|
class: m(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": P.value[n].segment !== P.value[n + 1].segment }]),
|
|
431
431
|
role: "presentation",
|
|
432
|
-
onClick: (e) => y(
|
|
433
|
-
}, v(
|
|
434
|
-
|
|
432
|
+
onClick: (e) => y(ze)(P.value[n + 1], { select: !0 })
|
|
433
|
+
}, v(Me(P.value[n], P.value[n + 1])), 11, ye)) : u("", !0)], 64))), 128))], 6),
|
|
434
|
+
f("span", {
|
|
435
435
|
id: A,
|
|
436
436
|
class: "bb-base-time-picker-input__accessible-description sr-only"
|
|
437
|
-
}, v(
|
|
438
|
-
|
|
439
|
-
default: x(() => [
|
|
440
|
-
id:
|
|
437
|
+
}, v(Xe.value), 1),
|
|
438
|
+
p(y(at), null, {
|
|
439
|
+
default: x(() => [f("div", {
|
|
440
|
+
id: j,
|
|
441
441
|
ref_key: "panel",
|
|
442
442
|
ref: D,
|
|
443
443
|
class: m(["bb-base-time-picker-input__panel", { "bb-base-time-picker-input__panel--sheet": X.value }]),
|
|
444
|
-
inert: y(
|
|
445
|
-
}, [
|
|
444
|
+
inert: y(st)
|
|
445
|
+
}, [p(ne, {
|
|
446
446
|
ampm: e.ampm,
|
|
447
447
|
disabled: e.disabled || e.readonly,
|
|
448
|
-
hour:
|
|
448
|
+
hour: ft.value,
|
|
449
449
|
meridiem: y(I)[$.value].meridiem,
|
|
450
450
|
minute: y(I)[$.value].minute,
|
|
451
451
|
second: y(I)[$.value].second,
|
|
452
452
|
seconds: e.seconds,
|
|
453
453
|
step: e.step,
|
|
454
|
-
onSelect:
|
|
454
|
+
onSelect: pt
|
|
455
455
|
}, null, 8, [
|
|
456
456
|
"ampm",
|
|
457
457
|
"disabled",
|
|
@@ -464,15 +464,15 @@ var _e = ["data-value"], ve = [
|
|
|
464
464
|
])], 10, xe)]),
|
|
465
465
|
_: 1
|
|
466
466
|
}),
|
|
467
|
-
X.value ? (h(), l(
|
|
467
|
+
X.value ? (h(), l(te, de({
|
|
468
468
|
key: 0,
|
|
469
469
|
modelValue: q.value,
|
|
470
470
|
"onUpdate:modelValue": t[1] ||= (e) => q.value = e,
|
|
471
471
|
class: "bb-base-time-picker-input-offcanvas"
|
|
472
|
-
},
|
|
473
|
-
default: x(() => [
|
|
472
|
+
}, ct.value, { onHidden: lt }), {
|
|
473
|
+
default: x(() => [p(y(ot))]),
|
|
474
474
|
_: 1
|
|
475
|
-
}, 16, ["modelValue"])) : (h(), l(
|
|
475
|
+
}, 16, ["modelValue"])) : (h(), l(i, {
|
|
476
476
|
key: 1,
|
|
477
477
|
modelValue: q.value,
|
|
478
478
|
"onUpdate:modelValue": t[2] ||= (e) => q.value = e,
|
|
@@ -482,7 +482,7 @@ var _e = ["data-value"], ve = [
|
|
|
482
482
|
offset: 4,
|
|
483
483
|
"transition-duration": e.transitionDuration
|
|
484
484
|
}, {
|
|
485
|
-
default: x(() => [
|
|
485
|
+
default: x(() => [p(y(ot))]),
|
|
486
486
|
_: 1
|
|
487
487
|
}, 8, [
|
|
488
488
|
"modelValue",
|