bitboss-ui 3.0.0-beta.72 → 3.0.0-beta.74
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 +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +34 -7
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbCalendar.md +4 -3
- package/dist/ai/BbColorPalette.md +8 -9
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +4 -3
- package/dist/ai/BbDialog.md +17 -4
- package/dist/ai/BbDropdown.md +23 -10
- package/dist/ai/BbDropdownButton.md +2 -2
- package/dist/ai/BbForm.md +11 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +5 -3
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbTable.md +43 -19
- package/dist/ai/BbTimePicker.md +4 -3
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/changelog.json +60 -4
- package/dist/ai/components.json +56 -20
- package/dist/ai/guides/design-tokens.md +20 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/use-confirm.md +4 -1
- package/dist/ai/guides/migration/v2-to-v3.md +24 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +3 -0
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbColorPalette.json +3 -3
- package/dist/ai/manifest/components/BbConfirm.removed.json +4 -4
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -3
- package/dist/ai/manifest/components/BbDialog.tree.json +5 -1
- package/dist/ai/manifest/components/BbDropdown.json +3 -3
- package/dist/ai/manifest/components/BbDropdown.tree.json +3 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -1
- package/dist/ai/manifest/components/BbTable.tree.json +12 -6
- package/dist/ai/manifest/components/BbTimePicker.json +3 -3
- package/dist/ai/manifest/components/BbToast.removed.json +1 -1
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -0
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +66 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +2 -0
- package/dist/ai/source/BbBreadcrumbs.md +4 -1
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbColorPalette.md +41 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +53 -22
- package/dist/ai/source/BbDatePickerInput.md +32 -8
- package/dist/ai/source/BbDialog.md +31 -1
- package/dist/ai/source/BbDropdown.md +52 -24
- package/dist/ai/source/BbDropdownGroup.md +17 -21
- package/dist/ai/source/BbForm.md +80 -6
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +5 -6
- package/dist/ai/source/BbOffCanvas.md +34 -1
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +7 -5
- package/dist/ai/source/BbTable.md +54 -6
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +50 -15
- package/dist/ai/source/BbTimePickerInput.md +30 -7
- package/dist/ai/source/BbToast.md +14 -0
- package/dist/ai/source/BbToastPortal.md +16 -4
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +4 -1
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +197 -192
- package/dist/components/BbColorPalette/types.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +145 -139
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +337 -335
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +253 -245
- package/dist/components/BbDialog/leaveGhost.js +33 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +11 -3
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +119 -120
- package/dist/components/BbDropdown/types.d.ts +8 -17
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +385 -377
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +10 -12
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +231 -231
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +214 -213
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +5 -0
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- package/dist/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/index.d.ts +34 -30
- package/dist/llms-full.txt +874 -136
- package/dist/llms.txt +3 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/utilities/functions/hash.js +123 -3
- package/dist/utilities/functions/isEqual.js +69 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +8 -5
- package/llms.txt +3 -1
- package/package.json +2 -3
- package/scripts/README.md +43 -43
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +54 -6
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +153 -6
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +17 -2
package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -25,12 +25,13 @@ import ve from "../CommonPopover/CommonPopover.vue.js";
|
|
|
25
25
|
import ye from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
26
26
|
import { useMeridiem as be } from "../CommonTimeSelector/useMeridiem.js";
|
|
27
27
|
import { spokenTimeOf as xe } from "../BbCalendar/useDayjsLocale.js";
|
|
28
|
-
import {
|
|
28
|
+
import { useHydrated as Se } from "../../composables/useHydrated.js";
|
|
29
|
+
import { localeOf as Ce } from "../../utilities/calendar/index.js";
|
|
29
30
|
import { BB_TIME_PICKER_INPUT_PT as l } from "./types.js";
|
|
30
|
-
import { Fragment as u, computed as d, createBlock as
|
|
31
|
-
import { createReusableTemplate as
|
|
31
|
+
import { Fragment as u, computed as d, createBlock as we, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Te, createVNode as h, defineComponent as Ee, guardReactiveProps as De, mergeProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as Oe, onBeforeUnmount as ke, onDeactivated as Ae, openBlock as y, ref as b, renderList as je, renderSlot as x, toDisplayString as S, unref as C, useAttrs as Me, watch as Ne, withCtx as w, withDirectives as Pe, withModifiers as Fe } from "vue";
|
|
32
|
+
import { createReusableTemplate as Ie } from "@vueuse/core";
|
|
32
33
|
// src/components/BbTimePickerInput/BbTimePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
33
|
-
var
|
|
34
|
+
var Le = ["dir"], Re = ["data-value"], ze = [
|
|
34
35
|
"id",
|
|
35
36
|
"aria-describedby",
|
|
36
37
|
"aria-disabled",
|
|
@@ -53,13 +54,13 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
53
54
|
"onInput",
|
|
54
55
|
"onKeydown",
|
|
55
56
|
"onPaste"
|
|
56
|
-
],
|
|
57
|
+
], Be = ["onClick"], Ve = ["onClick"], He = [
|
|
57
58
|
"aria-controls",
|
|
58
59
|
"aria-disabled",
|
|
59
60
|
"aria-expanded",
|
|
60
61
|
"aria-label",
|
|
61
62
|
"disabled"
|
|
62
|
-
],
|
|
63
|
+
], Ue = ["id"], T = /*@__PURE__*/ Ee({
|
|
63
64
|
mixins: [c(l)],
|
|
64
65
|
inheritAttrs: !1,
|
|
65
66
|
__name: "BbTimePickerInput",
|
|
@@ -315,63 +316,63 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
315
316
|
"inactive",
|
|
316
317
|
"update:modelValue"
|
|
317
318
|
],
|
|
318
|
-
setup(c, { emit:
|
|
319
|
-
let
|
|
319
|
+
setup(c, { emit: Ee }) {
|
|
320
|
+
let T = c, { props: E, emit: D, showAsterisk: We, errors: Ge, required: Ke, ariaRequired: qe, model: Je, readonly: Ye, locked: Xe } = o(T, Ee, {
|
|
320
321
|
componentName: "BbTimePickerInput",
|
|
321
|
-
identifierFallback: () =>
|
|
322
|
+
identifierFallback: () => T.label,
|
|
322
323
|
leaveOn: "inactive"
|
|
323
324
|
});
|
|
324
325
|
process.env.NODE_ENV !== "production" && n("BbTimePickerInput", t("BbTimePickerInput"));
|
|
325
|
-
let
|
|
326
|
-
|
|
326
|
+
let Ze = i(), { t: O } = ee(), Qe = te(), k = b(!1), $e = b(!1), A = () => {
|
|
327
|
+
$e.value = !1;
|
|
327
328
|
};
|
|
328
|
-
|
|
329
|
-
Z.value = !1,
|
|
330
|
-
}),
|
|
331
|
-
let
|
|
329
|
+
Ae(() => {
|
|
330
|
+
Z.value = !1, k.value ? Kt() : A();
|
|
331
|
+
}), ke(A);
|
|
332
|
+
let et = d(() => E.persistentHint || $e.value), j = d(() => ue(E.modelValue)), M = a("BbTimePickerInput", E, {
|
|
332
333
|
labelMode: "outside",
|
|
333
334
|
adaptive: !0,
|
|
334
335
|
autocomplete: "off",
|
|
335
336
|
compact: !1,
|
|
336
337
|
reverse: !1
|
|
337
|
-
}),
|
|
338
|
+
}), tt = d(() => M.labelMode), N = oe({
|
|
338
339
|
component: "BbTimePickerInput",
|
|
339
|
-
attrs:
|
|
340
|
+
attrs: Me(),
|
|
340
341
|
controlAttrs: ie,
|
|
341
342
|
props: E,
|
|
342
343
|
parts: l.parts,
|
|
343
344
|
states: l.states,
|
|
344
345
|
active: {
|
|
345
|
-
...ae(E, () =>
|
|
346
|
+
...ae(E, () => j.value),
|
|
346
347
|
open: () => Z.value
|
|
347
348
|
},
|
|
348
349
|
variant: {
|
|
349
350
|
...l.variant,
|
|
350
351
|
current: () => E.variant ?? "outline"
|
|
351
352
|
}
|
|
352
|
-
}),
|
|
353
|
+
}), P = be(), nt = (e, t) => P.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, rt = (e) => {
|
|
353
354
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
354
355
|
return n === 0 && (n = 12), {
|
|
355
356
|
hour: String(n).padStart(2, "0"),
|
|
356
357
|
meridiem: t
|
|
357
358
|
};
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
id:
|
|
359
|
+
}, F = b(null), I = b(null), it = (e) => {
|
|
360
|
+
I.value = e.el?.parentElement ?? null;
|
|
361
|
+
}, at = b(null), ot = (e) => `btpi-description_${e}`, st = (e) => `btpi-panel_${e}`, ct = (e) => g({
|
|
362
|
+
id: st(e),
|
|
362
363
|
class: ["bb-time-picker-input__panel", { "bb-time-picker-input__panel--sheet": Q.value }],
|
|
363
|
-
inert:
|
|
364
|
-
}, Q.value ? {} :
|
|
365
|
-
let n = [e,
|
|
364
|
+
inert: Yt.value
|
|
365
|
+
}, Q.value ? {} : N.panel ?? {}), lt = (e, t) => {
|
|
366
|
+
let n = [e, ot(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
366
367
|
return Array.from(new Set(n)).join(" ");
|
|
367
|
-
}, { isMobile:
|
|
368
|
-
let t =
|
|
368
|
+
}, { isMobile: L } = re(), ut = d(() => E.disableWriting === "mobile" ? !L.value : E.disableWriting === "desktop" ? L.value : !E.disableWriting), dt = d(() => !!E.readonly || !ut.value), ft = (e) => ut.value ? B.value[e].kind === "enum" ? "none" : "numeric" : "none", pt = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, R = (e) => {
|
|
369
|
+
let t = pt.exec(e);
|
|
369
370
|
if (!t) return null;
|
|
370
371
|
let [, n, r] = t, i = parseInt(n, 10), a = parseInt(r, 10);
|
|
371
372
|
return i > 23 || a > 59 ? null : i * 60 + a;
|
|
372
373
|
};
|
|
373
|
-
for (let [e, t] of [["min", E.min], ["max", E.max]]) t &&
|
|
374
|
-
let
|
|
374
|
+
for (let [e, t] of [["min", E.min], ["max", E.max]]) t && R(t) === null && Qe.throw(`BbTimePickerInput: ${e} must be in the format HH:mm`);
|
|
375
|
+
let z = d(() => {
|
|
375
376
|
let e = ["hour", "minute"];
|
|
376
377
|
E.seconds && e.push("second"), E.ampm && e.push("meridiem");
|
|
377
378
|
let t = e.map((e) => ({
|
|
@@ -384,7 +385,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
384
385
|
field: e
|
|
385
386
|
}));
|
|
386
387
|
return [...t, ...n];
|
|
387
|
-
}),
|
|
388
|
+
}), B = d(() => ({
|
|
388
389
|
hour: E.ampm ? {
|
|
389
390
|
kind: "numeric",
|
|
390
391
|
maxLength: 2,
|
|
@@ -417,10 +418,10 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
417
418
|
autoAdvanceFrom: 6,
|
|
418
419
|
label: "Second"
|
|
419
420
|
},
|
|
420
|
-
meridiem:
|
|
421
|
-
})),
|
|
422
|
-
fieldOrder:
|
|
423
|
-
specs:
|
|
421
|
+
meridiem: P.fieldSpec.value
|
|
422
|
+
})), mt = (e) => B.value[e].kind === "numeric" ? void 0 : B.value[e].maxLength, ht = d(() => se(z.value, (e) => e === "meridiem" ? "meridiem" : "time")), V = (e) => e.items.at(-1).index, gt = (e, t) => e.segment === t.segment ? t.field === "meridiem" ? " " : ":" : "–", { fields: H, fieldRefs: _t, descriptorKey: vt, emptyFieldGroup: yt, getSizedValue: bt, minChars: xt, updateAllSizedValues: U, isOwnField: St, focusField: Ct, focusFirstField: wt, segmentStatus: W, onFieldInput: Tt, onFieldKeydown: Et, onFieldFocus: Dt, onFieldBlur: Ot, onFieldPaste: kt, displayOf: At } = ce({
|
|
423
|
+
fieldOrder: z,
|
|
424
|
+
specs: B,
|
|
424
425
|
segments: ["start", "end"],
|
|
425
426
|
fieldKeys: [
|
|
426
427
|
"hour",
|
|
@@ -431,49 +432,49 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
431
432
|
optionalGroups: [["second"]],
|
|
432
433
|
advanceKeys: [":", " "],
|
|
433
434
|
onDirty: () => Y({ finalize: !1 }),
|
|
434
|
-
numberingSystem: () =>
|
|
435
|
-
}),
|
|
435
|
+
numberingSystem: () => Ce(Ze.locale).numberingSystem
|
|
436
|
+
}), jt = (e, t) => {
|
|
436
437
|
if (e.field === "meridiem") {
|
|
437
|
-
let n = H.value[e.segment], r =
|
|
438
|
+
let n = H.value[e.segment], r = P.match(t.target.value, n.meridiem);
|
|
438
439
|
r && r !== n.meridiem && (n.meridiem = r, Y({ finalize: !1 }));
|
|
439
440
|
}
|
|
440
|
-
|
|
441
|
+
Tt(e, t);
|
|
441
442
|
};
|
|
442
|
-
|
|
443
|
+
P.onRelabel((e, t) => {
|
|
443
444
|
for (let n of Object.values(H.value)) n.meridiem === e && (n.meridiem = t);
|
|
444
445
|
U();
|
|
445
446
|
});
|
|
446
|
-
let
|
|
447
|
+
let Mt = (e, t) => E.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, Nt = (e) => {
|
|
447
448
|
if (E.name) return E.range ? `${E.name}-${e.segment}-${e.field}` : `${E.name}-${e.field}`;
|
|
448
|
-
},
|
|
449
|
+
}, Pt = {
|
|
449
450
|
hour: "datePickerInput.hourField",
|
|
450
451
|
minute: "datePickerInput.minuteField",
|
|
451
452
|
second: "datePickerInput.secondField",
|
|
452
453
|
meridiem: "datePickerInput.meridiemField"
|
|
453
|
-
},
|
|
454
|
-
let t =
|
|
455
|
-
return E.range ?
|
|
456
|
-
},
|
|
457
|
-
let e =
|
|
454
|
+
}, Ft = (e) => {
|
|
455
|
+
let t = O(Pt[e.field]).value;
|
|
456
|
+
return E.range ? O(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
|
|
457
|
+
}, It = d(() => {
|
|
458
|
+
let e = O(E.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat").value;
|
|
458
459
|
return E.range ? `${e} – ${e}` : e;
|
|
459
|
-
}),
|
|
460
|
+
}), Lt = d(() => E.placeholder || It.value), Rt = d(() => z.value.every((e) => !H.value[e.segment][e.field])), zt = (e) => {
|
|
460
461
|
if (!e.hour) return 0;
|
|
461
462
|
let t = parseInt(e.hour, 10);
|
|
462
|
-
return E.ampm ?
|
|
463
|
-
},
|
|
463
|
+
return E.ampm ? nt(t, e.meridiem || "AM") : t;
|
|
464
|
+
}, Bt = (e, t) => {
|
|
464
465
|
if (!E.ampm) {
|
|
465
466
|
e.hour = String(t).padStart(2, "0");
|
|
466
467
|
return;
|
|
467
468
|
}
|
|
468
|
-
let n =
|
|
469
|
-
e.hour = n.hour, e.meridiem =
|
|
469
|
+
let n = rt(t);
|
|
470
|
+
e.hour = n.hour, e.meridiem = P.label(n.meridiem);
|
|
470
471
|
}, G = (e) => {
|
|
471
|
-
let t =
|
|
472
|
+
let t = yt();
|
|
472
473
|
if (!e) return t;
|
|
473
|
-
let n =
|
|
474
|
+
let n = pt.exec(e);
|
|
474
475
|
if (!n) return t;
|
|
475
476
|
let [, r, i, a] = n, o = parseInt(r, 10);
|
|
476
|
-
return o > 23 || parseInt(i, 10) > 59 || (
|
|
477
|
+
return o > 23 || parseInt(i, 10) > 59 || (Bt(t, o), t.minute = i.padStart(2, "0"), t.second = E.seconds && a ? a.padStart(2, "0") : ""), t;
|
|
477
478
|
}, K = (e) => {
|
|
478
479
|
if (E.range) {
|
|
479
480
|
let [t, n] = Array.isArray(e) ? e : [];
|
|
@@ -483,26 +484,26 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
483
484
|
};
|
|
484
485
|
} else H.value = {
|
|
485
486
|
start: G(typeof e == "string" ? e : void 0),
|
|
486
|
-
end:
|
|
487
|
+
end: yt()
|
|
487
488
|
};
|
|
488
|
-
},
|
|
489
|
+
}, Vt = () => {
|
|
489
490
|
K(E.modelValue);
|
|
490
491
|
};
|
|
491
|
-
K(E.modelValue), U(),
|
|
492
|
+
K(E.modelValue), U(), Ne(() => E.modelValue, (e) => {
|
|
492
493
|
if (e === null || Array.isArray(e) && e.length === 0) {
|
|
493
494
|
K(e), U();
|
|
494
495
|
return;
|
|
495
496
|
}
|
|
496
497
|
let t = document.activeElement;
|
|
497
|
-
t &&
|
|
498
|
+
t && St(t) || (K(e), U());
|
|
498
499
|
});
|
|
499
500
|
let q = (e) => {
|
|
500
|
-
let t = H.value[e], n = String(
|
|
501
|
+
let t = H.value[e], n = String(zt(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
501
502
|
return E.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
502
|
-
}, J = (e) => D("error", e),
|
|
503
|
-
let t =
|
|
504
|
-
return t === null ? e : E.min && t <
|
|
505
|
-
},
|
|
503
|
+
}, J = (e) => D("error", e), Ht = (e) => {
|
|
504
|
+
let t = R(e);
|
|
505
|
+
return t === null ? e : E.min && t < R(E.min) ? E.min + (E.seconds ? ":00" : "") : E.max && t > R(E.max) ? E.max + (E.seconds ? ":00" : "") : e;
|
|
506
|
+
}, Ut = () => W("start") === "partial" ? !0 : E.range ? W("end") === "partial" : !1, Y = (e = {}) => {
|
|
506
507
|
let t = !!e.finalize, n = W("start");
|
|
507
508
|
if (!E.range) {
|
|
508
509
|
if (n === "empty") {
|
|
@@ -510,7 +511,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
510
511
|
return;
|
|
511
512
|
}
|
|
512
513
|
if (n === "partial") return;
|
|
513
|
-
let e = q("start"), r =
|
|
514
|
+
let e = q("start"), r = Ht(e);
|
|
514
515
|
if (r !== e) {
|
|
515
516
|
if (!t) return;
|
|
516
517
|
H.value.start = G(r), U(), D("update:modelValue", r), J({
|
|
@@ -529,7 +530,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
529
530
|
return;
|
|
530
531
|
}
|
|
531
532
|
if (n === "partial" || r === "partial" || n === "empty") return;
|
|
532
|
-
let i = q("start"), a =
|
|
533
|
+
let i = q("start"), a = Ht(i);
|
|
533
534
|
if (a !== i) {
|
|
534
535
|
if (!t) return;
|
|
535
536
|
H.value.start = G(a), J({
|
|
@@ -542,7 +543,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
542
543
|
D("update:modelValue", [i]);
|
|
543
544
|
return;
|
|
544
545
|
}
|
|
545
|
-
let o = q("end"), s =
|
|
546
|
+
let o = q("end"), s = Ht(o);
|
|
546
547
|
if (s !== o) {
|
|
547
548
|
if (!t) return;
|
|
548
549
|
H.value.end = G(s), J({
|
|
@@ -551,7 +552,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
551
552
|
normalized: s
|
|
552
553
|
}), o = s;
|
|
553
554
|
}
|
|
554
|
-
if (
|
|
555
|
+
if (R(o) < R(i)) {
|
|
555
556
|
if (!t) return;
|
|
556
557
|
let e = { ...H.value.start };
|
|
557
558
|
H.value.start = { ...H.value.end }, H.value.end = e, U(), D("update:modelValue", [o, i]), J({
|
|
@@ -560,215 +561,215 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
560
561
|
normalized: [o, i]
|
|
561
562
|
});
|
|
562
563
|
} else U(), D("update:modelValue", [i, o]);
|
|
563
|
-
},
|
|
564
|
+
}, Wt = () => {
|
|
564
565
|
D("update:modelValue", E.range ? [] : null);
|
|
565
|
-
},
|
|
566
|
-
|
|
566
|
+
}, Gt = () => {
|
|
567
|
+
k.value || ($e.value = !0, D("active"), k.value = !0, document.addEventListener("focusin", X), document.addEventListener("click", X, !0));
|
|
567
568
|
}, X = (e) => {
|
|
568
569
|
let t = e.target;
|
|
569
|
-
t instanceof HTMLElement &&
|
|
570
|
-
},
|
|
571
|
-
Y({ finalize: !0 }),
|
|
572
|
-
}, [
|
|
573
|
-
|
|
574
|
-
() =>
|
|
575
|
-
|
|
570
|
+
t instanceof HTMLElement && F.value?.$el && (e.type === "focusin" && t.contains(F.value.$el) || F.value.$el.contains(t) || I.value?.contains(t) || Kt());
|
|
571
|
+
}, Kt = () => {
|
|
572
|
+
Y({ finalize: !0 }), Ut() && (Vt(), U()), k.value = !1, A(), D("inactive"), document.removeEventListener("focusin", X), document.removeEventListener("click", X, !0);
|
|
573
|
+
}, [qt, Jt] = Ie(), Z = b(!1), Yt = s(Z, () => E.transitionDuration ?? de.medium), Xt = () => M.adaptive && L.value ? "canvas" : "popover", Zt = b(Xt()), Q = d(() => Zt.value === "canvas");
|
|
574
|
+
Ne([
|
|
575
|
+
() => M.adaptive,
|
|
576
|
+
L,
|
|
576
577
|
Z
|
|
577
578
|
], () => {
|
|
578
|
-
Z.value || (
|
|
579
|
+
Z.value || (Zt.value = Xt());
|
|
579
580
|
}), ne(() => Z.value && !Q.value, () => Z.value = !1);
|
|
580
|
-
let
|
|
581
|
+
let Qt = d(() => ({
|
|
581
582
|
side: "bottom",
|
|
582
583
|
size: "auto",
|
|
583
584
|
draggable: !0,
|
|
584
585
|
transitionDuration: E.transitionDuration,
|
|
585
586
|
hideClose: !0,
|
|
586
587
|
...r(E.offCanvasProps)
|
|
587
|
-
})),
|
|
588
|
-
|
|
589
|
-
},
|
|
588
|
+
})), $t = () => {
|
|
589
|
+
at.value?.focus(), D("hidden");
|
|
590
|
+
}, en = (e) => {
|
|
590
591
|
let t = e.target;
|
|
591
592
|
t && t instanceof HTMLDialogElement && (Z.value = !1);
|
|
592
|
-
},
|
|
593
|
-
E.disabled || E.readonly || (
|
|
594
|
-
},
|
|
595
|
-
if (!
|
|
593
|
+
}, tn = () => {
|
|
594
|
+
E.disabled || E.readonly || (Zt.value = Xt(), Z.value = !0);
|
|
595
|
+
}, nn = d(() => !ut.value && !E.disabled && !E.readonly), rn = (e) => {
|
|
596
|
+
if (!nn.value || Z.value) return;
|
|
596
597
|
let t = e.target;
|
|
597
|
-
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") ||
|
|
598
|
-
},
|
|
599
|
-
|
|
598
|
+
t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-time-picker-input__panel, [role=\"dialog\"]") || tn());
|
|
599
|
+
}, an = (e) => e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey, on = (e, t) => {
|
|
600
|
+
nn.value && (t.key === "Enter" || t.key === " ") ? (t.preventDefault(), Z.value || tn()) : E.readonly && an(t) ? t.preventDefault() : Et(e, t);
|
|
600
601
|
};
|
|
601
|
-
|
|
602
|
-
e ? Q.value || document.addEventListener("click",
|
|
602
|
+
Ne(Z, (e) => {
|
|
603
|
+
e ? Q.value || document.addEventListener("click", en, { passive: !0 }) : document.removeEventListener("click", en);
|
|
603
604
|
});
|
|
604
|
-
let
|
|
605
|
-
|
|
606
|
-
}, $ = d(() => E.range ? H.value[
|
|
605
|
+
let sn = b("start"), cn = (e, t) => {
|
|
606
|
+
sn.value = e.segment, Dt(e, t), D("focus", t);
|
|
607
|
+
}, $ = d(() => E.range ? H.value[sn.value].hour ? sn.value : H.value.start.hour && !H.value.end.hour ? "end" : "start" : "start"), ln = d(() => {
|
|
607
608
|
let e = H.value[$.value];
|
|
608
|
-
return e.hour ? String(
|
|
609
|
-
}),
|
|
609
|
+
return e.hour ? String(zt(e)).padStart(2, "0") : "";
|
|
610
|
+
}), un = ({ unit: e, value: t }) => {
|
|
610
611
|
let n = H.value[$.value];
|
|
611
|
-
e === "hour" ?
|
|
612
|
-
},
|
|
612
|
+
e === "hour" ? Bt(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = P.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour ||= E.ampm ? "12" : "00", E.ampm && !n.meridiem && (n.meridiem = P.am.value), n.minute ||= "00", E.seconds && !n.second && (n.second = "00"), U(), Y({ finalize: !1 });
|
|
613
|
+
}, { isHydrated: dn } = Se(), fn = (e) => xe(e, Ze.locale, !!E.ampm, !!E.seconds, dn.value), pn = d(() => {
|
|
613
614
|
if (E.range) {
|
|
614
615
|
let [e, t] = Array.isArray(E.modelValue) ? E.modelValue : [];
|
|
615
|
-
return !e || !t ?
|
|
616
|
+
return !e || !t ? O("timePickerInput.emptyRange").value : O("timePickerInput.changeSelectionRange", fn(e), fn(t)).value;
|
|
616
617
|
}
|
|
617
|
-
return typeof E.modelValue == "string" && E.modelValue ?
|
|
618
|
+
return typeof E.modelValue == "string" && E.modelValue ? O("timePickerInput.changeSelection", fn(E.modelValue)).value : O("timePickerInput.emptySelection").value;
|
|
618
619
|
});
|
|
619
|
-
return
|
|
620
|
-
document.removeEventListener("focusin", X), document.removeEventListener("click", X), document.removeEventListener("click",
|
|
621
|
-
}), (t, n) => (
|
|
620
|
+
return ke(() => {
|
|
621
|
+
document.removeEventListener("focusin", X), document.removeEventListener("click", X, !0), document.removeEventListener("click", en);
|
|
622
|
+
}), (t, n) => (y(), we(ge, g({
|
|
622
623
|
id: c.id,
|
|
623
624
|
class: "bb-time-picker-input",
|
|
624
|
-
clearable: c.clearable &&
|
|
625
|
-
compact:
|
|
625
|
+
clearable: c.clearable && j.value,
|
|
626
|
+
compact: C(M).compact,
|
|
626
627
|
description: c.description,
|
|
627
628
|
disabled: c.disabled,
|
|
628
|
-
errors:
|
|
629
|
+
errors: C(Ge),
|
|
629
630
|
"has-errors": c.hasErrors,
|
|
630
|
-
"has-value":
|
|
631
|
+
"has-value": j.value,
|
|
631
632
|
"has-warnings": c.hasWarnings,
|
|
632
633
|
"hide-label": c.hideLabel,
|
|
633
634
|
hint: c.hint,
|
|
634
635
|
"input-align": c.inputAlign,
|
|
635
636
|
label: c.label,
|
|
636
637
|
"label-align": c.labelAlign,
|
|
637
|
-
"label-mode":
|
|
638
|
+
"label-mode": tt.value,
|
|
638
639
|
"label-position": c.labelPosition,
|
|
639
|
-
layout:
|
|
640
|
+
layout: C(M).layout,
|
|
640
641
|
loading: c.loading,
|
|
641
642
|
name: c.name,
|
|
642
|
-
passthrough:
|
|
643
|
-
readonly:
|
|
644
|
-
reverse:
|
|
645
|
-
"show-asterisk":
|
|
646
|
-
"show-hint":
|
|
643
|
+
passthrough: C(N),
|
|
644
|
+
readonly: C(Ye),
|
|
645
|
+
reverse: C(M).reverse,
|
|
646
|
+
"show-asterisk": C(We),
|
|
647
|
+
"show-hint": et.value,
|
|
647
648
|
warnings: c.warnings
|
|
648
|
-
},
|
|
649
|
-
label:
|
|
650
|
-
input:
|
|
649
|
+
}, C(N).forwardAttrs), Te({
|
|
650
|
+
label: w((e) => [x(t.$slots, "label", v(De(e)))]),
|
|
651
|
+
input: w(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [h(_e, {
|
|
651
652
|
ref_key: "wrapper",
|
|
652
|
-
ref:
|
|
653
|
-
active:
|
|
654
|
-
"append:icon":
|
|
655
|
-
class:
|
|
656
|
-
clearable: c.clearable && !
|
|
657
|
-
compact:
|
|
653
|
+
ref: F,
|
|
654
|
+
active: k.value,
|
|
655
|
+
"append:icon": C(E)["append:icon"],
|
|
656
|
+
class: _(["bb-time-picker-input__field", { "bb-time-picker-input__field--range": c.range }]),
|
|
657
|
+
clearable: c.clearable && !C(le)(C(Je)),
|
|
658
|
+
compact: C(M).compact,
|
|
658
659
|
disabled: c.disabled,
|
|
659
660
|
"has-errors": i,
|
|
660
|
-
"has-value":
|
|
661
|
+
"has-value": j.value,
|
|
661
662
|
"has-warnings": a,
|
|
662
663
|
loading: c.loading,
|
|
663
|
-
passthrough:
|
|
664
|
-
"prepend:icon":
|
|
665
|
-
readonly:
|
|
664
|
+
passthrough: C(N),
|
|
665
|
+
"prepend:icon": C(E)["prepend:icon"],
|
|
666
|
+
readonly: C(Ye),
|
|
666
667
|
variant: c.variant,
|
|
667
|
-
onClick:
|
|
668
|
-
"onClick:clear":
|
|
669
|
-
onFocusin:
|
|
670
|
-
},
|
|
671
|
-
"prepend:outer":
|
|
672
|
-
prepend:
|
|
673
|
-
append:
|
|
668
|
+
onClick: rn,
|
|
669
|
+
"onClick:clear": Wt,
|
|
670
|
+
onFocusin: Gt
|
|
671
|
+
}, Te({
|
|
672
|
+
"prepend:outer": w(() => [x(t.$slots, "prepend:outer")]),
|
|
673
|
+
prepend: w(() => [x(t.$slots, "prepend")]),
|
|
674
|
+
append: w(() => [m("button", g({
|
|
674
675
|
ref_key: "clockButton",
|
|
675
|
-
ref:
|
|
676
|
-
"aria-controls":
|
|
677
|
-
"aria-disabled":
|
|
676
|
+
ref: at,
|
|
677
|
+
"aria-controls": I.value ? st(r) : void 0,
|
|
678
|
+
"aria-disabled": C(Xe) || void 0,
|
|
678
679
|
"aria-expanded": Z.value,
|
|
679
680
|
"aria-haspopup": "dialog",
|
|
680
|
-
"aria-label":
|
|
681
|
+
"aria-label": pn.value,
|
|
681
682
|
class: ["bb-segmented-field__activator", { "bb-segmented-field__activator--active": Z.value }],
|
|
682
683
|
disabled: c.disabled || c.readonly,
|
|
683
684
|
type: "button",
|
|
684
|
-
onClick:
|
|
685
|
-
},
|
|
685
|
+
onClick: Fe(tn, ["stop"])
|
|
686
|
+
}, C(N).activator), [h(pe, {
|
|
686
687
|
class: "bb-segmented-field__trigger-icon",
|
|
687
|
-
icon:
|
|
688
|
-
}, null, 8, ["icon"])], 16,
|
|
688
|
+
icon: C(fe)
|
|
689
|
+
}, null, 8, ["icon"])], 16, He), x(t.$slots, "append", {}, () => [t.$slots.suffix ? (y(), p("span", g({
|
|
689
690
|
key: 0,
|
|
690
691
|
class: "bb-field-input__suffix"
|
|
691
|
-
},
|
|
692
|
-
"append:outer":
|
|
693
|
-
default:
|
|
692
|
+
}, C(N).suffix), [x(t.$slots, "suffix")], 16)) : f("", !0)])]),
|
|
693
|
+
"append:outer": w(() => [x(t.$slots, "append:outer")]),
|
|
694
|
+
default: w(() => [
|
|
694
695
|
m("div", {
|
|
695
|
-
class:
|
|
696
|
-
"bb-segmented-field__fields--empty":
|
|
696
|
+
class: _(["bb-segmented-field__fields", {
|
|
697
|
+
"bb-segmented-field__fields--empty": Rt.value,
|
|
697
698
|
"bb-segmented-field__fields--range": c.range
|
|
698
699
|
}]),
|
|
699
|
-
style:
|
|
700
|
-
}, [
|
|
700
|
+
style: Oe({ "--fields-min-ch": C(xt) })
|
|
701
|
+
}, [Rt.value ? (y(), p("span", {
|
|
701
702
|
key: 0,
|
|
702
703
|
"aria-hidden": "true",
|
|
703
704
|
class: "bb-segmented-field__placeholder",
|
|
704
|
-
onClick: n[0] ||= (...e) =>
|
|
705
|
-
},
|
|
706
|
-
class:
|
|
705
|
+
onClick: n[0] ||= (...e) => C(wt) && C(wt)(...e)
|
|
706
|
+
}, S(Lt.value), 1)) : f("", !0), (y(!0), p(u, null, je(ht.value, (t, n) => (y(), p(u, { key: t.key }, [m("span", {
|
|
707
|
+
class: _(["bb-segmented-field__run", `bb-segmented-field__run--${t.kind}`]),
|
|
707
708
|
dir: t.kind === "time" ? "ltr" : void 0
|
|
708
|
-
}, [(
|
|
709
|
+
}, [(y(!0), p(u, null, je(t.items, ({ descriptor: n, index: a }, s) => (y(), p(u, { key: C(vt)(n) }, [m("span", {
|
|
709
710
|
class: "bb-segmented-field__field-sizer",
|
|
710
|
-
"data-value":
|
|
711
|
-
}, [
|
|
712
|
-
id: a === 0 ? r :
|
|
711
|
+
"data-value": C(bt)(n)
|
|
712
|
+
}, [Pe(m("input", g({
|
|
713
|
+
id: a === 0 ? r : Mt(n, r),
|
|
713
714
|
ref_for: !0,
|
|
714
|
-
ref: (e) =>
|
|
715
|
-
"aria-describedby":
|
|
715
|
+
ref: (e) => C(_t)[C(vt)(n)] = e,
|
|
716
|
+
"aria-describedby": lt(o, r),
|
|
716
717
|
"aria-disabled": c.disabled || void 0,
|
|
717
718
|
"aria-invalid": i ? "true" : void 0,
|
|
718
|
-
"aria-label":
|
|
719
|
-
"aria-readonly":
|
|
720
|
-
autocomplete:
|
|
719
|
+
"aria-label": Ft(n),
|
|
720
|
+
"aria-readonly": dt.value || void 0,
|
|
721
|
+
autocomplete: C(M).autocomplete,
|
|
721
722
|
autofocus: c.autofocus && a === 0,
|
|
722
723
|
class: ["bb-segmented-field__input", [`bb-segmented-field__input--${n.field}`, `bb-segmented-field__input--${n.segment}`]],
|
|
723
724
|
disabled: c.disabled,
|
|
724
|
-
inputmode:
|
|
725
|
-
maxlength:
|
|
726
|
-
name:
|
|
727
|
-
readonly:
|
|
728
|
-
required:
|
|
729
|
-
"aria-required":
|
|
725
|
+
inputmode: ft(n.field),
|
|
726
|
+
maxlength: mt(n.field),
|
|
727
|
+
name: Nt(n),
|
|
728
|
+
readonly: dt.value,
|
|
729
|
+
required: C(Ke),
|
|
730
|
+
"aria-required": C(qe),
|
|
730
731
|
tabindex: n.field === "hour" ? 0 : -1,
|
|
731
732
|
type: "text",
|
|
732
|
-
value:
|
|
733
|
-
onBlur: (e) =>
|
|
734
|
-
onFocus: (e) =>
|
|
735
|
-
onInput: (e) =>
|
|
736
|
-
onKeydown: (e) =>
|
|
737
|
-
onPaste: (e) =>
|
|
738
|
-
}, { ref_for: !0 },
|
|
733
|
+
value: C(At)(C(H)[n.segment][n.field]),
|
|
734
|
+
onBlur: (e) => C(Ot)(n),
|
|
735
|
+
onFocus: (e) => cn(n, e),
|
|
736
|
+
onInput: (e) => jt(n, e),
|
|
737
|
+
onKeydown: (e) => on(n, e),
|
|
738
|
+
onPaste: (e) => C(kt)(n, e)
|
|
739
|
+
}, { ref_for: !0 }, g(C(N).controlAttrs, C(N).input)), null, 16, ze), [[C(e)]])], 8, Re), s < t.items.length - 1 ? (y(), p("span", {
|
|
739
740
|
key: 0,
|
|
740
741
|
"aria-hidden": "true",
|
|
741
742
|
class: "bb-segmented-field__separator",
|
|
742
743
|
role: "presentation",
|
|
743
|
-
onClick: (e) =>
|
|
744
|
-
},
|
|
744
|
+
onClick: (e) => C(Ct)(z.value[a + 1], { select: !0 })
|
|
745
|
+
}, S(gt(z.value[a], z.value[a + 1])), 9, Be)) : f("", !0)], 64))), 128))], 10, Le), n < ht.value.length - 1 ? (y(), p("span", {
|
|
745
746
|
key: 0,
|
|
746
747
|
"aria-hidden": "true",
|
|
747
|
-
class:
|
|
748
|
+
class: _(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": z.value[V(t)].segment !== z.value[V(t) + 1].segment }]),
|
|
748
749
|
role: "presentation",
|
|
749
|
-
onClick: (e) =>
|
|
750
|
-
},
|
|
750
|
+
onClick: (e) => C(Ct)(z.value[V(t) + 1], { select: !0 })
|
|
751
|
+
}, S(gt(z.value[V(t)], z.value[V(t) + 1])), 11, Ve)) : f("", !0)], 64))), 128))], 6),
|
|
751
752
|
m("span", {
|
|
752
|
-
id:
|
|
753
|
+
id: ot(r),
|
|
753
754
|
class: "bb-time-picker-input__accessible-description",
|
|
754
755
|
hidden: ""
|
|
755
|
-
},
|
|
756
|
-
h(
|
|
757
|
-
default:
|
|
756
|
+
}, S(It.value), 9, Ue),
|
|
757
|
+
h(C(qt), null, {
|
|
758
|
+
default: w(() => [h(ye, {
|
|
758
759
|
ampm: c.ampm,
|
|
759
|
-
disabled: c.disabled ||
|
|
760
|
-
hour:
|
|
760
|
+
disabled: c.disabled || C(Ye),
|
|
761
|
+
hour: ln.value,
|
|
761
762
|
max: c.max,
|
|
762
|
-
meridiem:
|
|
763
|
+
meridiem: C(H)[$.value].meridiem,
|
|
763
764
|
min: c.min,
|
|
764
|
-
minute:
|
|
765
|
-
passthrough:
|
|
766
|
-
second:
|
|
765
|
+
minute: C(H)[$.value].minute,
|
|
766
|
+
passthrough: C(N),
|
|
767
|
+
second: C(H)[$.value].second,
|
|
767
768
|
seconds: c.seconds,
|
|
768
769
|
step: c.step,
|
|
769
|
-
onSelect:
|
|
770
|
-
onVnodeBeforeUnmount: n[1] ||= (e) =>
|
|
771
|
-
onVnodeMounted:
|
|
770
|
+
onSelect: un,
|
|
771
|
+
onVnodeBeforeUnmount: n[1] ||= (e) => I.value = null,
|
|
772
|
+
onVnodeMounted: it
|
|
772
773
|
}, null, 8, [
|
|
773
774
|
"ampm",
|
|
774
775
|
"disabled",
|
|
@@ -784,39 +785,39 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
784
785
|
])]),
|
|
785
786
|
_: 1
|
|
786
787
|
}),
|
|
787
|
-
Q.value ? (
|
|
788
|
+
Q.value ? (y(), we(me, g({
|
|
788
789
|
key: 0,
|
|
789
790
|
modelValue: Z.value,
|
|
790
791
|
"onUpdate:modelValue": n[2] ||= (e) => Z.value = e,
|
|
791
792
|
class: "bb-time-picker-input__sheet",
|
|
792
|
-
pt:
|
|
793
|
+
pt: C(N).forward({
|
|
793
794
|
panel: "root",
|
|
794
795
|
sheet: "root"
|
|
795
|
-
},
|
|
796
|
-
},
|
|
797
|
-
onHidden:
|
|
798
|
-
onHide: n[3] ||= (e) =>
|
|
799
|
-
onShow: n[4] ||= (e) =>
|
|
800
|
-
onShown: n[5] ||= (e) =>
|
|
796
|
+
}, C(he).states, () => c.offCanvasProps?.pt)
|
|
797
|
+
}, Qt.value, {
|
|
798
|
+
onHidden: $t,
|
|
799
|
+
onHide: n[3] ||= (e) => C(D)("hide"),
|
|
800
|
+
onShow: n[4] ||= (e) => C(D)("show"),
|
|
801
|
+
onShown: n[5] ||= (e) => C(D)("shown")
|
|
801
802
|
}), {
|
|
802
|
-
default:
|
|
803
|
+
default: w(() => [m("div", v(De(ct(r))), [h(C(Jt))], 16)]),
|
|
803
804
|
_: 2
|
|
804
|
-
}, 1040, ["modelValue", "pt"])) : (
|
|
805
|
+
}, 1040, ["modelValue", "pt"])) : (y(), we(ve, {
|
|
805
806
|
key: 1,
|
|
806
807
|
modelValue: Z.value,
|
|
807
808
|
"onUpdate:modelValue": n[6] ||= (e) => Z.value = e,
|
|
808
|
-
anchor:
|
|
809
|
-
"bubble-attrs":
|
|
809
|
+
anchor: F.value,
|
|
810
|
+
"bubble-attrs": ct(r),
|
|
810
811
|
class: "bb-time-picker-input__popover",
|
|
811
812
|
dialog: "",
|
|
812
813
|
offset: 4,
|
|
813
814
|
"transition-duration": c.transitionDuration,
|
|
814
|
-
onHidden: n[7] ||= (e) =>
|
|
815
|
-
onHide: n[8] ||= (e) =>
|
|
816
|
-
onShow: n[9] ||= (e) =>
|
|
817
|
-
onShown: n[10] ||= (e) =>
|
|
815
|
+
onHidden: n[7] ||= (e) => C(D)("hidden"),
|
|
816
|
+
onHide: n[8] ||= (e) => C(D)("hide"),
|
|
817
|
+
onShow: n[9] ||= (e) => C(D)("show"),
|
|
818
|
+
onShown: n[10] ||= (e) => C(D)("shown")
|
|
818
819
|
}, {
|
|
819
|
-
default:
|
|
820
|
+
default: w(() => [h(C(Jt))]),
|
|
820
821
|
_: 1
|
|
821
822
|
}, 8, [
|
|
822
823
|
"modelValue",
|
|
@@ -828,7 +829,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
828
829
|
_: 2
|
|
829
830
|
}, [t.$slots.prefix ? {
|
|
830
831
|
name: "prefix",
|
|
831
|
-
fn:
|
|
832
|
+
fn: w(() => [x(t.$slots, "prefix")]),
|
|
832
833
|
key: "0"
|
|
833
834
|
} : void 0]), 1032, [
|
|
834
835
|
"active",
|
|
@@ -849,7 +850,7 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
849
850
|
_: 2
|
|
850
851
|
}, [t.$slots.description ? {
|
|
851
852
|
name: "description",
|
|
852
|
-
fn:
|
|
853
|
+
fn: w((e) => [x(t.$slots, "description", v(De(e)))]),
|
|
853
854
|
key: "0"
|
|
854
855
|
} : void 0]), 1040, [
|
|
855
856
|
"id",
|
|
@@ -880,4 +881,4 @@ var Fe = ["dir"], Ie = ["data-value"], Le = [
|
|
|
880
881
|
]));
|
|
881
882
|
}
|
|
882
883
|
});
|
|
883
|
-
export {
|
|
884
|
+
export { T as default };
|