bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.75
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/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +11 -6
- package/dist/ai/BbDatePicker.md +12 -0
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +3 -1
- package/dist/ai/BbDropdown.md +155 -60
- package/dist/ai/BbDropdownButton.md +25 -6
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +17 -16
- package/dist/ai/BbTimePicker.md +12 -0
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +163 -6
- package/dist/ai/components.json +32 -34
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +22 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -0
- package/dist/ai/manifest/components/BbDropdown.json +20 -14
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +13 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +13 -7
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +6 -3
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +4 -0
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/source/BbAvatar.md +119 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +52 -54
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +18 -0
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +40 -1
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +211 -39
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +104 -38
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +72 -26
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +15 -0
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +213 -202
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +495 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +412 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +382 -338
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +65 -41
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1086 -1069
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +3 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +268 -259
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +573 -276
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +4 -1
- package/llms.txt +1 -1
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/validate-bb-markup.mjs +20 -0
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -7,31 +7,32 @@ import { useConfigDefaults as a } from "../../composables/useConfigDefaults.js";
|
|
|
7
7
|
import { useFormBinding as o } from "../../composables/useFormBinding.js";
|
|
8
8
|
import { useClosingInert as s } from "../../composables/useClosingInert.js";
|
|
9
9
|
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import fe from "../../
|
|
19
|
-
import pe from "
|
|
20
|
-
import me from "../
|
|
21
|
-
import
|
|
22
|
-
import ge from "../
|
|
23
|
-
import _e from "../
|
|
24
|
-
import ve from "../
|
|
25
|
-
import ye from "../
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
10
|
+
import { useOpenModel as te } from "../../composables/useOpenModel.js";
|
|
11
|
+
import { useLogger as ne } from "../../composables/useLogger.js";
|
|
12
|
+
import { useEscapeStackEntry as re } from "../../composables/useEscapeStackEntry.js";
|
|
13
|
+
import { useMobile as ie } from "../../composables/useMobile.js";
|
|
14
|
+
import { SEGMENTED_CONTROL_NATIVE_ATTRS as ae, formControlPtActive as oe, usePassthrough as se, variantPt as c } from "../../composables/usePassthrough.js";
|
|
15
|
+
import { fieldRuns as ce, useSegmentedFields as le } from "../../composables/useSegmentedFields.js";
|
|
16
|
+
import { isEmpty as ue } from "../../utilities/functions/empty.js";
|
|
17
|
+
import { isNotEmpty as de } from "../../utilities/functions/isNotEmpty.js";
|
|
18
|
+
import { transitions as fe } from "../../utilities/misc/transitions.js";
|
|
19
|
+
import pe from "../../assets/svgs/clock.svg_raw.js";
|
|
20
|
+
import me from "../BbIcon/BbIcon.vue.js";
|
|
21
|
+
import he from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
22
|
+
import { BB_OFF_CANVAS_PT as ge } from "../BbOffCanvas/types.js";
|
|
23
|
+
import _e from "../CommonField/CommonField.vue.js";
|
|
24
|
+
import ve from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
25
|
+
import ye from "../CommonPopover/CommonPopover.vue.js";
|
|
26
|
+
import be from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
27
|
+
import { useMeridiem as xe } from "../CommonTimeSelector/useMeridiem.js";
|
|
28
|
+
import { spokenTimeOf as Se } from "../BbCalendar/useDayjsLocale.js";
|
|
29
|
+
import { useHydrated as Ce } from "../../composables/useHydrated.js";
|
|
30
|
+
import { localeOf as we } from "../../utilities/calendar/index.js";
|
|
30
31
|
import { BB_TIME_PICKER_INPUT_PT as l } from "./types.js";
|
|
31
|
-
import { Fragment as u, computed as d, createBlock as
|
|
32
|
-
import { createReusableTemplate as
|
|
32
|
+
import { Fragment as u, computed as d, createBlock as Te, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ee, createVNode as h, defineComponent as De, guardReactiveProps as Oe, mergeProps as g, normalizeClass as _, normalizeProps as ke, normalizeStyle as Ae, onBeforeUnmount as je, onDeactivated as Me, openBlock as v, ref as y, renderList as Ne, renderSlot as b, toDisplayString as x, unref as S, useAttrs as Pe, watch as C, withCtx as w, withDirectives as Fe, withModifiers as Ie } from "vue";
|
|
33
|
+
import { createReusableTemplate as Le } from "@vueuse/core";
|
|
33
34
|
// src/components/BbTimePickerInput/BbTimePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
34
|
-
var
|
|
35
|
+
var Re = ["dir"], ze = ["data-value"], Be = [
|
|
35
36
|
"id",
|
|
36
37
|
"aria-describedby",
|
|
37
38
|
"aria-disabled",
|
|
@@ -54,13 +55,13 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
54
55
|
"onInput",
|
|
55
56
|
"onKeydown",
|
|
56
57
|
"onPaste"
|
|
57
|
-
],
|
|
58
|
+
], Ve = ["onClick"], He = ["onClick"], Ue = [
|
|
58
59
|
"aria-controls",
|
|
59
60
|
"aria-disabled",
|
|
60
61
|
"aria-expanded",
|
|
61
62
|
"aria-label",
|
|
62
63
|
"disabled"
|
|
63
|
-
],
|
|
64
|
+
], We = ["id"], T = /*@__PURE__*/ De({
|
|
64
65
|
mixins: [c(l)],
|
|
65
66
|
inheritAttrs: !1,
|
|
66
67
|
__name: "BbTimePickerInput",
|
|
@@ -247,6 +248,7 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
247
248
|
"pt:item:errors": {},
|
|
248
249
|
"pt:item:open": {},
|
|
249
250
|
"pt:item:loading": {},
|
|
251
|
+
open: { type: Boolean },
|
|
250
252
|
pt: {},
|
|
251
253
|
adaptive: {
|
|
252
254
|
type: Boolean,
|
|
@@ -309,6 +311,7 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
309
311
|
"show",
|
|
310
312
|
"shown",
|
|
311
313
|
"hide",
|
|
314
|
+
"update:open",
|
|
312
315
|
"hidden",
|
|
313
316
|
"active",
|
|
314
317
|
"error",
|
|
@@ -316,63 +319,63 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
316
319
|
"inactive",
|
|
317
320
|
"update:modelValue"
|
|
318
321
|
],
|
|
319
|
-
setup(c, { emit:
|
|
320
|
-
let T = c, { props: E, emit: D, showAsterisk:
|
|
322
|
+
setup(c, { emit: De }) {
|
|
323
|
+
let T = c, { props: E, emit: D, showAsterisk: Ge, errors: Ke, required: qe, ariaRequired: Je, model: Ye, readonly: Xe, locked: Ze } = o(T, De, {
|
|
321
324
|
componentName: "BbTimePickerInput",
|
|
322
325
|
identifierFallback: () => T.label,
|
|
323
326
|
leaveOn: "inactive"
|
|
324
327
|
});
|
|
325
328
|
process.env.NODE_ENV !== "production" && n("BbTimePickerInput", t("BbTimePickerInput"));
|
|
326
|
-
let
|
|
327
|
-
|
|
329
|
+
let Qe = i(), { t: O } = ee(), $e = ne(), k = y(!1), et = y(!1), tt = () => {
|
|
330
|
+
et.value = !1;
|
|
328
331
|
};
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}),
|
|
332
|
-
let
|
|
332
|
+
Me(() => {
|
|
333
|
+
Y.value = !1, k.value ? Yt() : tt();
|
|
334
|
+
}), je(tt);
|
|
335
|
+
let nt = d(() => E.persistentHint || et.value), A = d(() => de(E.modelValue)), j = a("BbTimePickerInput", E, {
|
|
333
336
|
labelMode: "outside",
|
|
334
337
|
adaptive: !0,
|
|
335
338
|
autocomplete: "off",
|
|
336
339
|
compact: !1,
|
|
337
340
|
reverse: !1
|
|
338
|
-
}),
|
|
341
|
+
}), rt = d(() => j.labelMode), M = se({
|
|
339
342
|
component: "BbTimePickerInput",
|
|
340
|
-
attrs:
|
|
341
|
-
controlAttrs:
|
|
343
|
+
attrs: Pe(),
|
|
344
|
+
controlAttrs: ae,
|
|
342
345
|
props: E,
|
|
343
346
|
parts: l.parts,
|
|
344
347
|
states: l.states,
|
|
345
348
|
active: {
|
|
346
|
-
...
|
|
347
|
-
open: () =>
|
|
349
|
+
...oe(E, () => A.value),
|
|
350
|
+
open: () => Y.value
|
|
348
351
|
},
|
|
349
352
|
variant: {
|
|
350
353
|
...l.variant,
|
|
351
354
|
current: () => E.variant ?? "outline"
|
|
352
355
|
}
|
|
353
|
-
}),
|
|
356
|
+
}), N = xe(), it = (e, t) => N.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, at = (e) => {
|
|
354
357
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
355
358
|
return n === 0 && (n = 12), {
|
|
356
359
|
hour: String(n).padStart(2, "0"),
|
|
357
360
|
meridiem: t
|
|
358
361
|
};
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
id:
|
|
363
|
-
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet":
|
|
364
|
-
inert:
|
|
365
|
-
},
|
|
366
|
-
let n = [e,
|
|
362
|
+
}, P = y(null), F = y(null), ot = (e) => {
|
|
363
|
+
F.value = e.el?.parentElement ?? null;
|
|
364
|
+
}, st = y(null), ct = (e) => `btpi-description_${e}`, lt = (e) => `btpi-panel_${e}`, ut = (e) => g({
|
|
365
|
+
id: lt(e),
|
|
366
|
+
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet": X.value }],
|
|
367
|
+
inert: Qt.value
|
|
368
|
+
}, X.value ? {} : M.panel ?? {}), dt = (e, t) => {
|
|
369
|
+
let n = [e, ct(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
367
370
|
return Array.from(new Set(n)).join(" ");
|
|
368
|
-
}, { isMobile:
|
|
369
|
-
let t =
|
|
371
|
+
}, { isMobile: I } = ie(), ft = d(() => E.disableWriting === "mobile" ? !I.value : E.disableWriting === "desktop" ? I.value : !E.disableWriting), pt = d(() => !!E.readonly || !ft.value), mt = (e) => ft.value ? z.value[e].kind === "enum" ? "none" : "numeric" : "none", ht = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, L = (e) => {
|
|
372
|
+
let t = ht.exec(e);
|
|
370
373
|
if (!t) return null;
|
|
371
374
|
let [, n, r] = t, i = parseInt(n, 10), a = parseInt(r, 10);
|
|
372
375
|
return i > 23 || a > 59 ? null : i * 60 + a;
|
|
373
376
|
};
|
|
374
|
-
for (let [e, t] of [["min", E.min], ["max", E.max]]) t &&
|
|
375
|
-
let
|
|
377
|
+
for (let [e, t] of [["min", E.min], ["max", E.max]]) t && L(t) === null && $e.throw(`BbTimePickerInput: ${e} must be in the format HH:mm`);
|
|
378
|
+
let R = d(() => {
|
|
376
379
|
let e = ["hour", "minute"];
|
|
377
380
|
E.seconds && e.push("second"), E.ampm && e.push("meridiem");
|
|
378
381
|
let t = e.map((e) => ({
|
|
@@ -385,7 +388,7 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
385
388
|
field: e
|
|
386
389
|
}));
|
|
387
390
|
return [...t, ...n];
|
|
388
|
-
}),
|
|
391
|
+
}), z = d(() => ({
|
|
389
392
|
hour: E.ampm ? {
|
|
390
393
|
kind: "numeric",
|
|
391
394
|
maxLength: 2,
|
|
@@ -418,10 +421,10 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
418
421
|
autoAdvanceFrom: 6,
|
|
419
422
|
label: "Second"
|
|
420
423
|
},
|
|
421
|
-
meridiem:
|
|
422
|
-
})),
|
|
423
|
-
fieldOrder:
|
|
424
|
-
specs:
|
|
424
|
+
meridiem: N.fieldSpec.value
|
|
425
|
+
})), gt = (e) => z.value[e].kind === "numeric" ? void 0 : z.value[e].maxLength, _t = d(() => ce(R.value, (e) => e === "meridiem" ? "meridiem" : "time")), B = (e) => e.items.at(-1).index, vt = (e, t) => e.segment === t.segment ? t.field === "meridiem" ? " " : ":" : "–", { fields: V, fieldRefs: yt, descriptorKey: bt, emptyFieldGroup: xt, getSizedValue: St, minChars: Ct, updateAllSizedValues: H, isOwnField: wt, focusField: Tt, focusFirstField: Et, segmentStatus: U, onFieldInput: Dt, onFieldKeydown: Ot, onFieldFocus: kt, onFieldBlur: At, onFieldPaste: jt, displayOf: Mt } = le({
|
|
426
|
+
fieldOrder: R,
|
|
427
|
+
specs: z,
|
|
425
428
|
segments: ["start", "end"],
|
|
426
429
|
fieldKeys: [
|
|
427
430
|
"hour",
|
|
@@ -431,90 +434,90 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
431
434
|
],
|
|
432
435
|
optionalGroups: [["second"]],
|
|
433
436
|
advanceKeys: [":", " "],
|
|
434
|
-
onDirty: () =>
|
|
435
|
-
numberingSystem: () =>
|
|
436
|
-
}),
|
|
437
|
+
onDirty: () => q({ finalize: !1 }),
|
|
438
|
+
numberingSystem: () => we(Qe.locale).numberingSystem
|
|
439
|
+
}), Nt = (e, t) => {
|
|
437
440
|
if (e.field === "meridiem") {
|
|
438
|
-
let n =
|
|
439
|
-
r && r !== n.meridiem && (n.meridiem = r,
|
|
441
|
+
let n = V.value[e.segment], r = N.match(t.target.value, n.meridiem);
|
|
442
|
+
r && r !== n.meridiem && (n.meridiem = r, q({ finalize: !1 }));
|
|
440
443
|
}
|
|
441
|
-
|
|
444
|
+
Dt(e, t);
|
|
442
445
|
};
|
|
443
|
-
|
|
444
|
-
for (let n of Object.values(
|
|
445
|
-
|
|
446
|
+
N.onRelabel((e, t) => {
|
|
447
|
+
for (let n of Object.values(V.value)) n.meridiem === e && (n.meridiem = t);
|
|
448
|
+
H();
|
|
446
449
|
});
|
|
447
|
-
let
|
|
450
|
+
let Pt = (e, t) => E.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, Ft = (e) => {
|
|
448
451
|
if (E.name) return E.range ? `${E.name}-${e.segment}-${e.field}` : `${E.name}-${e.field}`;
|
|
449
|
-
},
|
|
452
|
+
}, It = {
|
|
450
453
|
hour: "datePickerInput.hourField",
|
|
451
454
|
minute: "datePickerInput.minuteField",
|
|
452
455
|
second: "datePickerInput.secondField",
|
|
453
456
|
meridiem: "datePickerInput.meridiemField"
|
|
454
|
-
},
|
|
455
|
-
let t = O(
|
|
457
|
+
}, Lt = (e) => {
|
|
458
|
+
let t = O(It[e.field]).value;
|
|
456
459
|
return E.range ? O(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
|
|
457
|
-
},
|
|
460
|
+
}, Rt = d(() => {
|
|
458
461
|
let e = O(E.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat").value;
|
|
459
462
|
return E.range ? `${e} – ${e}` : e;
|
|
460
|
-
}),
|
|
463
|
+
}), zt = d(() => E.placeholder || Rt.value), Bt = d(() => R.value.every((e) => !V.value[e.segment][e.field])), Vt = (e) => {
|
|
461
464
|
if (!e.hour) return 0;
|
|
462
465
|
let t = parseInt(e.hour, 10);
|
|
463
|
-
return E.ampm ?
|
|
464
|
-
},
|
|
466
|
+
return E.ampm ? it(t, e.meridiem || "AM") : t;
|
|
467
|
+
}, Ht = (e, t) => {
|
|
465
468
|
if (!E.ampm) {
|
|
466
469
|
e.hour = String(t).padStart(2, "0");
|
|
467
470
|
return;
|
|
468
471
|
}
|
|
469
|
-
let n =
|
|
470
|
-
e.hour = n.hour, e.meridiem =
|
|
471
|
-
},
|
|
472
|
-
let t =
|
|
472
|
+
let n = at(t);
|
|
473
|
+
e.hour = n.hour, e.meridiem = N.label(n.meridiem);
|
|
474
|
+
}, W = (e) => {
|
|
475
|
+
let t = xt();
|
|
473
476
|
if (!e) return t;
|
|
474
|
-
let n =
|
|
477
|
+
let n = ht.exec(e);
|
|
475
478
|
if (!n) return t;
|
|
476
479
|
let [, r, i, a] = n, o = parseInt(r, 10);
|
|
477
|
-
return o > 23 || parseInt(i, 10) > 59 || (
|
|
478
|
-
},
|
|
480
|
+
return o > 23 || parseInt(i, 10) > 59 || (Ht(t, o), t.minute = i.padStart(2, "0"), t.second = E.seconds && a ? a.padStart(2, "0") : ""), t;
|
|
481
|
+
}, G = (e) => {
|
|
479
482
|
if (E.range) {
|
|
480
483
|
let [t, n] = Array.isArray(e) ? e : [];
|
|
481
|
-
|
|
482
|
-
start:
|
|
483
|
-
end:
|
|
484
|
+
V.value = {
|
|
485
|
+
start: W(t),
|
|
486
|
+
end: W(n)
|
|
484
487
|
};
|
|
485
|
-
} else
|
|
486
|
-
start:
|
|
487
|
-
end:
|
|
488
|
+
} else V.value = {
|
|
489
|
+
start: W(typeof e == "string" ? e : void 0),
|
|
490
|
+
end: xt()
|
|
488
491
|
};
|
|
489
|
-
},
|
|
490
|
-
|
|
492
|
+
}, Ut = () => {
|
|
493
|
+
G(E.modelValue);
|
|
491
494
|
};
|
|
492
|
-
|
|
495
|
+
G(E.modelValue), H(), C(() => E.modelValue, (e) => {
|
|
493
496
|
if (e === null || Array.isArray(e) && e.length === 0) {
|
|
494
|
-
|
|
497
|
+
G(e), H();
|
|
495
498
|
return;
|
|
496
499
|
}
|
|
497
500
|
let t = document.activeElement;
|
|
498
|
-
t &&
|
|
501
|
+
t && wt(t) || (G(e), H());
|
|
499
502
|
});
|
|
500
|
-
let
|
|
501
|
-
let t =
|
|
503
|
+
let Wt = (e) => {
|
|
504
|
+
let t = V.value[e], n = String(Vt(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
502
505
|
return E.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
503
|
-
},
|
|
504
|
-
let t =
|
|
505
|
-
return t === null ? e : E.min && t <
|
|
506
|
-
},
|
|
507
|
-
let t = !!e.finalize, n =
|
|
506
|
+
}, K = (e) => D("error", e), Gt = (e) => {
|
|
507
|
+
let t = L(e);
|
|
508
|
+
return t === null ? e : E.min && t < L(E.min) ? E.min + (E.seconds ? ":00" : "") : E.max && t > L(E.max) ? E.max + (E.seconds ? ":00" : "") : e;
|
|
509
|
+
}, Kt = () => U("start") === "partial" ? !0 : E.range ? U("end") === "partial" : !1, q = (e = {}) => {
|
|
510
|
+
let t = !!e.finalize, n = U("start");
|
|
508
511
|
if (!E.range) {
|
|
509
512
|
if (n === "empty") {
|
|
510
513
|
D("update:modelValue", null);
|
|
511
514
|
return;
|
|
512
515
|
}
|
|
513
516
|
if (n === "partial") return;
|
|
514
|
-
let e =
|
|
517
|
+
let e = Wt("start"), r = Gt(e);
|
|
515
518
|
if (r !== e) {
|
|
516
519
|
if (!t) return;
|
|
517
|
-
|
|
520
|
+
V.value.start = W(r), H(), D("update:modelValue", r), K({
|
|
518
521
|
code: "disabled_time",
|
|
519
522
|
original: e,
|
|
520
523
|
normalized: r
|
|
@@ -524,16 +527,16 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
524
527
|
D("update:modelValue", e);
|
|
525
528
|
return;
|
|
526
529
|
}
|
|
527
|
-
let r =
|
|
530
|
+
let r = U("end");
|
|
528
531
|
if (n === "empty" && r === "empty") {
|
|
529
532
|
D("update:modelValue", []);
|
|
530
533
|
return;
|
|
531
534
|
}
|
|
532
535
|
if (n === "partial" || r === "partial" || n === "empty") return;
|
|
533
|
-
let i =
|
|
536
|
+
let i = Wt("start"), a = Gt(i);
|
|
534
537
|
if (a !== i) {
|
|
535
538
|
if (!t) return;
|
|
536
|
-
|
|
539
|
+
V.value.start = W(a), K({
|
|
537
540
|
code: "disabled_time",
|
|
538
541
|
original: i,
|
|
539
542
|
normalized: a
|
|
@@ -543,233 +546,239 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
543
546
|
D("update:modelValue", [i]);
|
|
544
547
|
return;
|
|
545
548
|
}
|
|
546
|
-
let o =
|
|
549
|
+
let o = Wt("end"), s = Gt(o);
|
|
547
550
|
if (s !== o) {
|
|
548
551
|
if (!t) return;
|
|
549
|
-
|
|
552
|
+
V.value.end = W(s), K({
|
|
550
553
|
code: "disabled_time",
|
|
551
554
|
original: o,
|
|
552
555
|
normalized: s
|
|
553
556
|
}), o = s;
|
|
554
557
|
}
|
|
555
|
-
if (
|
|
558
|
+
if (L(o) < L(i)) {
|
|
556
559
|
if (!t) return;
|
|
557
|
-
let e = { ...
|
|
558
|
-
|
|
560
|
+
let e = { ...V.value.start };
|
|
561
|
+
V.value.start = { ...V.value.end }, V.value.end = e, H(), D("update:modelValue", [o, i]), K({
|
|
559
562
|
code: "end_before_start",
|
|
560
563
|
original: [i, o],
|
|
561
564
|
normalized: [o, i]
|
|
562
565
|
});
|
|
563
|
-
} else
|
|
564
|
-
},
|
|
566
|
+
} else H(), D("update:modelValue", [i, o]);
|
|
567
|
+
}, qt = () => {
|
|
565
568
|
D("update:modelValue", E.range ? [] : null);
|
|
566
|
-
},
|
|
567
|
-
k.value || (
|
|
568
|
-
},
|
|
569
|
+
}, Jt = () => {
|
|
570
|
+
k.value || (et.value = !0, D("active"), k.value = !0, document.addEventListener("focusin", J), document.addEventListener("click", J, !0));
|
|
571
|
+
}, J = (e) => {
|
|
569
572
|
let t = e.target;
|
|
570
|
-
t instanceof HTMLElement &&
|
|
571
|
-
},
|
|
572
|
-
|
|
573
|
-
}, [
|
|
574
|
-
|
|
575
|
-
() =>
|
|
576
|
-
|
|
577
|
-
|
|
573
|
+
t instanceof HTMLElement && P.value?.$el && (e.type === "focusin" && t.contains(P.value.$el) || P.value.$el.contains(t) || F.value?.contains(t) || Yt());
|
|
574
|
+
}, Yt = () => {
|
|
575
|
+
q({ finalize: !0 }), Kt() && (Ut(), H()), k.value = !1, tt(), D("inactive"), document.removeEventListener("focusin", J), document.removeEventListener("click", J, !0);
|
|
576
|
+
}, [Xt, Zt] = Le(), Y = y(!1), Qt = s(Y, () => E.transitionDuration ?? fe.medium), $t = () => j.adaptive && I.value ? "canvas" : "popover", en = y($t()), X = d(() => en.value === "canvas");
|
|
577
|
+
C([
|
|
578
|
+
() => j.adaptive,
|
|
579
|
+
I,
|
|
580
|
+
Y
|
|
578
581
|
], () => {
|
|
579
|
-
|
|
580
|
-
}),
|
|
581
|
-
let
|
|
582
|
+
Y.value || (en.value = $t());
|
|
583
|
+
}), re(() => Y.value && !X.value, () => Y.value = !1);
|
|
584
|
+
let tn = d(() => ({
|
|
582
585
|
side: "bottom",
|
|
583
586
|
size: "auto",
|
|
584
587
|
draggable: !0,
|
|
585
588
|
transitionDuration: E.transitionDuration,
|
|
586
589
|
hideClose: !0,
|
|
587
590
|
...r(E.offCanvasProps)
|
|
588
|
-
})),
|
|
589
|
-
|
|
590
|
-
},
|
|
591
|
+
})), nn = () => {
|
|
592
|
+
st.value?.focus(), D("hidden");
|
|
593
|
+
}, Z = (e) => {
|
|
591
594
|
let t = e.target;
|
|
592
|
-
t && t instanceof HTMLDialogElement && (
|
|
593
|
-
},
|
|
594
|
-
E.disabled || E.readonly || (
|
|
595
|
-
}
|
|
596
|
-
|
|
595
|
+
t && t instanceof HTMLDialogElement && (Y.value = !1);
|
|
596
|
+
}, Q = () => {
|
|
597
|
+
E.disabled || E.readonly || (en.value = $t(), Y.value = !0);
|
|
598
|
+
};
|
|
599
|
+
te(E, D, {
|
|
600
|
+
isOpen: () => Y.value,
|
|
601
|
+
open: Q,
|
|
602
|
+
close: () => Y.value = !1
|
|
603
|
+
});
|
|
604
|
+
let rn = d(() => !ft.value && !E.disabled && !E.readonly), an = (e) => {
|
|
605
|
+
if (!rn.value || Y.value) return;
|
|
597
606
|
let t = e.target;
|
|
598
|
-
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") ||
|
|
599
|
-
},
|
|
600
|
-
|
|
607
|
+
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") || Q());
|
|
608
|
+
}, on = (e) => e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey, sn = (e, t) => {
|
|
609
|
+
rn.value && (t.key === "Enter" || t.key === " ") ? (t.preventDefault(), Y.value || Q()) : E.readonly && on(t) ? t.preventDefault() : Ot(e, t);
|
|
601
610
|
};
|
|
602
|
-
|
|
603
|
-
e ?
|
|
611
|
+
C(Y, (e) => {
|
|
612
|
+
e ? X.value || document.addEventListener("click", Z, { passive: !0 }) : document.removeEventListener("click", Z);
|
|
604
613
|
});
|
|
605
|
-
let
|
|
606
|
-
|
|
607
|
-
}, $ = d(() => E.range ?
|
|
608
|
-
let e =
|
|
609
|
-
return e.hour ? String(
|
|
610
|
-
}),
|
|
611
|
-
let n =
|
|
612
|
-
e === "hour" ?
|
|
613
|
-
}, { isHydrated:
|
|
614
|
+
let cn = y("start"), ln = (e, t) => {
|
|
615
|
+
cn.value = e.segment, kt(e, t), D("focus", t);
|
|
616
|
+
}, $ = d(() => E.range ? V.value[cn.value].hour ? cn.value : V.value.start.hour && !V.value.end.hour ? "end" : "start" : "start"), un = d(() => {
|
|
617
|
+
let e = V.value[$.value];
|
|
618
|
+
return e.hour ? String(Vt(e)).padStart(2, "0") : "";
|
|
619
|
+
}), dn = ({ unit: e, value: t }) => {
|
|
620
|
+
let n = V.value[$.value];
|
|
621
|
+
e === "hour" ? Ht(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = N.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour ||= E.ampm ? "12" : "00", E.ampm && !n.meridiem && (n.meridiem = N.am.value), n.minute ||= "00", E.seconds && !n.second && (n.second = "00"), H(), q({ finalize: !1 });
|
|
622
|
+
}, { isHydrated: fn } = Ce(), pn = (e) => Se(e, Qe.locale, !!E.ampm, !!E.seconds, fn.value), mn = d(() => {
|
|
614
623
|
if (E.range) {
|
|
615
624
|
let [e, t] = Array.isArray(E.modelValue) ? E.modelValue : [];
|
|
616
|
-
return !e || !t ? O("timePickerInput.emptyRange").value : O("timePickerInput.changeSelectionRange",
|
|
625
|
+
return !e || !t ? O("timePickerInput.emptyRange").value : O("timePickerInput.changeSelectionRange", pn(e), pn(t)).value;
|
|
617
626
|
}
|
|
618
|
-
return typeof E.modelValue == "string" && E.modelValue ? O("timePickerInput.changeSelection",
|
|
627
|
+
return typeof E.modelValue == "string" && E.modelValue ? O("timePickerInput.changeSelection", pn(E.modelValue)).value : O("timePickerInput.emptySelection").value;
|
|
619
628
|
});
|
|
620
|
-
return
|
|
621
|
-
document.removeEventListener("focusin",
|
|
622
|
-
}), (t, n) => (
|
|
629
|
+
return je(() => {
|
|
630
|
+
document.removeEventListener("focusin", J), document.removeEventListener("click", J, !0), document.removeEventListener("click", Z);
|
|
631
|
+
}), (t, n) => (v(), Te(_e, g({
|
|
623
632
|
id: c.id,
|
|
624
633
|
class: "bb-time-picker-input",
|
|
625
|
-
clearable: c.clearable &&
|
|
626
|
-
compact:
|
|
634
|
+
clearable: c.clearable && A.value,
|
|
635
|
+
compact: S(j).compact,
|
|
627
636
|
description: c.description,
|
|
628
637
|
disabled: c.disabled,
|
|
629
|
-
errors:
|
|
638
|
+
errors: S(Ke),
|
|
630
639
|
"has-errors": c.hasErrors,
|
|
631
|
-
"has-value":
|
|
640
|
+
"has-value": A.value,
|
|
632
641
|
"has-warnings": c.hasWarnings,
|
|
633
642
|
"hide-label": c.hideLabel,
|
|
634
643
|
hint: c.hint,
|
|
635
644
|
"input-align": c.inputAlign,
|
|
636
645
|
label: c.label,
|
|
637
646
|
"label-align": c.labelAlign,
|
|
638
|
-
"label-mode":
|
|
647
|
+
"label-mode": rt.value,
|
|
639
648
|
"label-position": c.labelPosition,
|
|
640
|
-
layout:
|
|
649
|
+
layout: S(j).layout,
|
|
641
650
|
loading: c.loading,
|
|
642
651
|
name: c.name,
|
|
643
|
-
passthrough:
|
|
644
|
-
readonly:
|
|
645
|
-
reverse:
|
|
646
|
-
"show-asterisk":
|
|
647
|
-
"show-hint":
|
|
652
|
+
passthrough: S(M),
|
|
653
|
+
readonly: S(Xe),
|
|
654
|
+
reverse: S(j).reverse,
|
|
655
|
+
"show-asterisk": S(Ge),
|
|
656
|
+
"show-hint": nt.value,
|
|
648
657
|
warnings: c.warnings
|
|
649
|
-
},
|
|
650
|
-
label: w((e) => [
|
|
651
|
-
input: w(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [h(
|
|
658
|
+
}, S(M).forwardAttrs), Ee({
|
|
659
|
+
label: w((e) => [b(t.$slots, "label", ke(Oe(e)))]),
|
|
660
|
+
input: w(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [h(ve, {
|
|
652
661
|
ref_key: "wrapper",
|
|
653
|
-
ref:
|
|
662
|
+
ref: P,
|
|
654
663
|
active: k.value,
|
|
655
|
-
"append:icon":
|
|
664
|
+
"append:icon": S(E)["append:icon"],
|
|
656
665
|
class: _(["bb-time-picker-input__field", { "bb-time-picker-input__field--range": c.range }]),
|
|
657
|
-
clearable: c.clearable && !
|
|
658
|
-
compact:
|
|
666
|
+
clearable: c.clearable && !S(ue)(S(Ye)),
|
|
667
|
+
compact: S(j).compact,
|
|
659
668
|
disabled: c.disabled,
|
|
660
669
|
"has-errors": i,
|
|
661
|
-
"has-value":
|
|
670
|
+
"has-value": A.value,
|
|
662
671
|
"has-warnings": a,
|
|
663
672
|
loading: c.loading,
|
|
664
|
-
passthrough:
|
|
665
|
-
"prepend:icon":
|
|
666
|
-
readonly:
|
|
673
|
+
passthrough: S(M),
|
|
674
|
+
"prepend:icon": S(E)["prepend:icon"],
|
|
675
|
+
readonly: S(Xe),
|
|
667
676
|
variant: c.variant,
|
|
668
|
-
onClick:
|
|
669
|
-
"onClick:clear":
|
|
670
|
-
onFocusin:
|
|
671
|
-
},
|
|
672
|
-
"prepend:outer": w(() => [
|
|
673
|
-
prepend: w(() => [
|
|
677
|
+
onClick: an,
|
|
678
|
+
"onClick:clear": qt,
|
|
679
|
+
onFocusin: Jt
|
|
680
|
+
}, Ee({
|
|
681
|
+
"prepend:outer": w(() => [b(t.$slots, "prepend:outer")]),
|
|
682
|
+
prepend: w(() => [b(t.$slots, "prepend")]),
|
|
674
683
|
append: w(() => [m("button", g({
|
|
675
684
|
ref_key: "clockButton",
|
|
676
|
-
ref:
|
|
677
|
-
"aria-controls":
|
|
678
|
-
"aria-disabled":
|
|
679
|
-
"aria-expanded":
|
|
685
|
+
ref: st,
|
|
686
|
+
"aria-controls": F.value ? lt(r) : void 0,
|
|
687
|
+
"aria-disabled": S(Ze) || void 0,
|
|
688
|
+
"aria-expanded": Y.value,
|
|
680
689
|
"aria-haspopup": "dialog",
|
|
681
|
-
"aria-label":
|
|
682
|
-
class: ["bb-segmented-field__activator", { "bb-segmented-field__activator--active":
|
|
690
|
+
"aria-label": mn.value,
|
|
691
|
+
class: ["bb-segmented-field__activator", { "bb-segmented-field__activator--active": Y.value }],
|
|
683
692
|
disabled: c.disabled || c.readonly,
|
|
684
693
|
type: "button",
|
|
685
|
-
onClick:
|
|
686
|
-
},
|
|
694
|
+
onClick: Ie(Q, ["stop"])
|
|
695
|
+
}, S(M).activator), [h(me, {
|
|
687
696
|
class: "bb-segmented-field__trigger-icon",
|
|
688
|
-
icon:
|
|
689
|
-
}, null, 8, ["icon"])], 16,
|
|
697
|
+
icon: S(pe)
|
|
698
|
+
}, null, 8, ["icon"])], 16, Ue), b(t.$slots, "append", {}, () => [t.$slots.suffix ? (v(), p("span", g({
|
|
690
699
|
key: 0,
|
|
691
700
|
class: "bb-field-input__suffix"
|
|
692
|
-
},
|
|
693
|
-
"append:outer": w(() => [
|
|
701
|
+
}, S(M).suffix), [b(t.$slots, "suffix")], 16)) : f("", !0)])]),
|
|
702
|
+
"append:outer": w(() => [b(t.$slots, "append:outer")]),
|
|
694
703
|
default: w(() => [
|
|
695
704
|
m("div", {
|
|
696
705
|
class: _(["bb-segmented-field__fields", {
|
|
697
|
-
"bb-segmented-field__fields--empty":
|
|
706
|
+
"bb-segmented-field__fields--empty": Bt.value,
|
|
698
707
|
"bb-segmented-field__fields--range": c.range
|
|
699
708
|
}]),
|
|
700
|
-
style:
|
|
701
|
-
}, [
|
|
709
|
+
style: Ae({ "--fields-min-ch": S(Ct) })
|
|
710
|
+
}, [Bt.value ? (v(), p("span", {
|
|
702
711
|
key: 0,
|
|
703
712
|
"aria-hidden": "true",
|
|
704
713
|
class: "bb-segmented-field__placeholder",
|
|
705
|
-
onClick: n[0] ||= (...e) =>
|
|
706
|
-
},
|
|
714
|
+
onClick: n[0] ||= (...e) => S(Et) && S(Et)(...e)
|
|
715
|
+
}, x(zt.value), 1)) : f("", !0), (v(!0), p(u, null, Ne(_t.value, (t, n) => (v(), p(u, { key: t.key }, [m("span", {
|
|
707
716
|
class: _(["bb-segmented-field__run", `bb-segmented-field__run--${t.kind}`]),
|
|
708
717
|
dir: t.kind === "time" ? "ltr" : void 0
|
|
709
|
-
}, [(
|
|
718
|
+
}, [(v(!0), p(u, null, Ne(t.items, ({ descriptor: n, index: a }, s) => (v(), p(u, { key: S(bt)(n) }, [m("span", {
|
|
710
719
|
class: "bb-segmented-field__field-sizer",
|
|
711
|
-
"data-value":
|
|
712
|
-
}, [
|
|
713
|
-
id: a === 0 ? r :
|
|
720
|
+
"data-value": S(St)(n)
|
|
721
|
+
}, [Fe(m("input", g({
|
|
722
|
+
id: a === 0 ? r : Pt(n, r),
|
|
714
723
|
ref_for: !0,
|
|
715
|
-
ref: (e) =>
|
|
716
|
-
"aria-describedby":
|
|
724
|
+
ref: (e) => S(yt)[S(bt)(n)] = e,
|
|
725
|
+
"aria-describedby": dt(o, r),
|
|
717
726
|
"aria-disabled": c.disabled || void 0,
|
|
718
727
|
"aria-invalid": i ? "true" : void 0,
|
|
719
|
-
"aria-label":
|
|
720
|
-
"aria-readonly":
|
|
721
|
-
autocomplete:
|
|
728
|
+
"aria-label": Lt(n),
|
|
729
|
+
"aria-readonly": pt.value || void 0,
|
|
730
|
+
autocomplete: S(j).autocomplete,
|
|
722
731
|
autofocus: c.autofocus && a === 0,
|
|
723
732
|
class: ["bb-segmented-field__input", [`bb-segmented-field__input--${n.field}`, `bb-segmented-field__input--${n.segment}`]],
|
|
724
733
|
disabled: c.disabled,
|
|
725
|
-
inputmode:
|
|
726
|
-
maxlength:
|
|
727
|
-
name:
|
|
728
|
-
readonly:
|
|
729
|
-
required:
|
|
730
|
-
"aria-required":
|
|
734
|
+
inputmode: mt(n.field),
|
|
735
|
+
maxlength: gt(n.field),
|
|
736
|
+
name: Ft(n),
|
|
737
|
+
readonly: pt.value,
|
|
738
|
+
required: S(qe),
|
|
739
|
+
"aria-required": S(Je),
|
|
731
740
|
tabindex: n.field === "hour" ? 0 : -1,
|
|
732
741
|
type: "text",
|
|
733
|
-
value:
|
|
734
|
-
onBlur: (e) =>
|
|
735
|
-
onFocus: (e) =>
|
|
736
|
-
onInput: (e) =>
|
|
737
|
-
onKeydown: (e) =>
|
|
738
|
-
onPaste: (e) =>
|
|
739
|
-
}, { ref_for: !0 }, g(
|
|
742
|
+
value: S(Mt)(S(V)[n.segment][n.field]),
|
|
743
|
+
onBlur: (e) => S(At)(n),
|
|
744
|
+
onFocus: (e) => ln(n, e),
|
|
745
|
+
onInput: (e) => Nt(n, e),
|
|
746
|
+
onKeydown: (e) => sn(n, e),
|
|
747
|
+
onPaste: (e) => S(jt)(n, e)
|
|
748
|
+
}, { ref_for: !0 }, g(S(M).controlAttrs, S(M).input)), null, 16, Be), [[S(e)]])], 8, ze), s < t.items.length - 1 ? (v(), p("span", {
|
|
740
749
|
key: 0,
|
|
741
750
|
"aria-hidden": "true",
|
|
742
751
|
class: "bb-segmented-field__separator",
|
|
743
752
|
role: "presentation",
|
|
744
|
-
onClick: (e) =>
|
|
745
|
-
},
|
|
753
|
+
onClick: (e) => S(Tt)(R.value[a + 1], { select: !0 })
|
|
754
|
+
}, x(vt(R.value[a], R.value[a + 1])), 9, Ve)) : f("", !0)], 64))), 128))], 10, Re), n < _t.value.length - 1 ? (v(), p("span", {
|
|
746
755
|
key: 0,
|
|
747
756
|
"aria-hidden": "true",
|
|
748
|
-
class: _(["bb-segmented-field__separator", { "bb-segmented-field__separator--range":
|
|
757
|
+
class: _(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": R.value[B(t)].segment !== R.value[B(t) + 1].segment }]),
|
|
749
758
|
role: "presentation",
|
|
750
|
-
onClick: (e) =>
|
|
751
|
-
},
|
|
759
|
+
onClick: (e) => S(Tt)(R.value[B(t) + 1], { select: !0 })
|
|
760
|
+
}, x(vt(R.value[B(t)], R.value[B(t) + 1])), 11, He)) : f("", !0)], 64))), 128))], 6),
|
|
752
761
|
m("span", {
|
|
753
|
-
id:
|
|
762
|
+
id: ct(r),
|
|
754
763
|
class: "bb-time-picker-input__accessible-description",
|
|
755
764
|
hidden: ""
|
|
756
|
-
},
|
|
757
|
-
h(
|
|
758
|
-
default: w(() => [h(
|
|
765
|
+
}, x(Rt.value), 9, We),
|
|
766
|
+
h(S(Xt), null, {
|
|
767
|
+
default: w(() => [h(be, {
|
|
759
768
|
ampm: c.ampm,
|
|
760
|
-
disabled: c.disabled ||
|
|
761
|
-
hour:
|
|
769
|
+
disabled: c.disabled || S(Xe),
|
|
770
|
+
hour: un.value,
|
|
762
771
|
max: c.max,
|
|
763
|
-
meridiem:
|
|
772
|
+
meridiem: S(V)[$.value].meridiem,
|
|
764
773
|
min: c.min,
|
|
765
|
-
minute:
|
|
766
|
-
passthrough:
|
|
767
|
-
second:
|
|
774
|
+
minute: S(V)[$.value].minute,
|
|
775
|
+
passthrough: S(M),
|
|
776
|
+
second: S(V)[$.value].second,
|
|
768
777
|
seconds: c.seconds,
|
|
769
778
|
step: c.step,
|
|
770
|
-
onSelect:
|
|
771
|
-
onVnodeBeforeUnmount: n[1] ||= (e) =>
|
|
772
|
-
onVnodeMounted:
|
|
779
|
+
onSelect: dn,
|
|
780
|
+
onVnodeBeforeUnmount: n[1] ||= (e) => F.value = null,
|
|
781
|
+
onVnodeMounted: ot
|
|
773
782
|
}, null, 8, [
|
|
774
783
|
"ampm",
|
|
775
784
|
"disabled",
|
|
@@ -785,39 +794,39 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
785
794
|
])]),
|
|
786
795
|
_: 1
|
|
787
796
|
}),
|
|
788
|
-
|
|
797
|
+
X.value ? (v(), Te(he, g({
|
|
789
798
|
key: 0,
|
|
790
|
-
modelValue:
|
|
791
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
799
|
+
modelValue: Y.value,
|
|
800
|
+
"onUpdate:modelValue": n[2] ||= (e) => Y.value = e,
|
|
792
801
|
class: "bb-time-picker-input__sheet",
|
|
793
|
-
pt:
|
|
802
|
+
pt: S(M).forward({
|
|
794
803
|
panel: "root",
|
|
795
804
|
sheet: "root"
|
|
796
|
-
},
|
|
797
|
-
},
|
|
798
|
-
onHidden:
|
|
799
|
-
onHide: n[3] ||= (e) =>
|
|
800
|
-
onShow: n[4] ||= (e) =>
|
|
801
|
-
onShown: n[5] ||= (e) =>
|
|
805
|
+
}, S(ge).states, () => c.offCanvasProps?.pt)
|
|
806
|
+
}, tn.value, {
|
|
807
|
+
onHidden: nn,
|
|
808
|
+
onHide: n[3] ||= (e) => S(D)("hide"),
|
|
809
|
+
onShow: n[4] ||= (e) => S(D)("show"),
|
|
810
|
+
onShown: n[5] ||= (e) => S(D)("shown")
|
|
802
811
|
}), {
|
|
803
|
-
default: w(() => [m("div",
|
|
812
|
+
default: w(() => [m("div", ke(Oe(ut(r))), [h(S(Zt))], 16)]),
|
|
804
813
|
_: 2
|
|
805
|
-
}, 1040, ["modelValue", "pt"])) : (
|
|
814
|
+
}, 1040, ["modelValue", "pt"])) : (v(), Te(ye, {
|
|
806
815
|
key: 1,
|
|
807
|
-
modelValue:
|
|
808
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
809
|
-
anchor:
|
|
810
|
-
"bubble-attrs":
|
|
816
|
+
modelValue: Y.value,
|
|
817
|
+
"onUpdate:modelValue": n[6] ||= (e) => Y.value = e,
|
|
818
|
+
anchor: P.value,
|
|
819
|
+
"bubble-attrs": ut(r),
|
|
811
820
|
class: "bb-time-picker-input__popover",
|
|
812
821
|
dialog: "",
|
|
813
822
|
offset: 4,
|
|
814
823
|
"transition-duration": c.transitionDuration,
|
|
815
|
-
onHidden: n[7] ||= (e) =>
|
|
816
|
-
onHide: n[8] ||= (e) =>
|
|
817
|
-
onShow: n[9] ||= (e) =>
|
|
818
|
-
onShown: n[10] ||= (e) =>
|
|
824
|
+
onHidden: n[7] ||= (e) => S(D)("hidden"),
|
|
825
|
+
onHide: n[8] ||= (e) => S(D)("hide"),
|
|
826
|
+
onShow: n[9] ||= (e) => S(D)("show"),
|
|
827
|
+
onShown: n[10] ||= (e) => S(D)("shown")
|
|
819
828
|
}, {
|
|
820
|
-
default: w(() => [h(
|
|
829
|
+
default: w(() => [h(S(Zt))]),
|
|
821
830
|
_: 1
|
|
822
831
|
}, 8, [
|
|
823
832
|
"modelValue",
|
|
@@ -829,7 +838,7 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
829
838
|
_: 2
|
|
830
839
|
}, [t.$slots.prefix ? {
|
|
831
840
|
name: "prefix",
|
|
832
|
-
fn: w(() => [
|
|
841
|
+
fn: w(() => [b(t.$slots, "prefix")]),
|
|
833
842
|
key: "0"
|
|
834
843
|
} : void 0]), 1032, [
|
|
835
844
|
"active",
|
|
@@ -850,7 +859,7 @@ var Le = ["dir"], Re = ["data-value"], ze = [
|
|
|
850
859
|
_: 2
|
|
851
860
|
}, [t.$slots.description ? {
|
|
852
861
|
name: "description",
|
|
853
|
-
fn: w((e) => [
|
|
862
|
+
fn: w((e) => [b(t.$slots, "description", ke(Oe(e)))]),
|
|
854
863
|
key: "0"
|
|
855
864
|
} : void 0]), 1040, [
|
|
856
865
|
"id",
|