@bridge-ui/vue 0.1.1 → 0.2.0
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/ai/skills/bridge-ui-components/SKILL.md +1 -0
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +135 -109
- package/dist/Components/CalendarRange/calendarRange.types.d.ts +17 -5
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +4 -2
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +85 -86
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +1 -6
- package/dist/Components/Drawer/composables/useDrawer.js +1 -1
- package/dist/Components/FieldOverlay/FieldOverlay.vue_vue_type_script_setup_true_lang.js +35 -35
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.d.ts +1 -0
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.js +21 -19
- package/dist/Components/FieldOverlay/fieldOverlay.types.d.ts +11 -3
- package/dist/Components/Listbox/composables/useListbox.js +1 -1
- package/dist/Components/Modal/composables/useModal.js +1 -1
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +4 -0
- package/dist/Components/TimePanel/composables/useTimePanel.js +13 -12
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +103 -89
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +4 -2
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +55 -54
- package/dist/Components/TimeRangePicker/timeRangePicker.types.d.ts +1 -7
- package/dist/index.js +32 -32
- package/dist/theme.css +2 -0
- package/docs/README.md +4 -0
- package/docs/ScrollUtilities.md +89 -0
- package/docs/components/Autocomplete.md +2 -0
- package/docs/components/CalendarRange.md +4 -3
- package/docs/components/DateRangePicker.md +3 -2
- package/docs/components/Drawer.md +21 -21
- package/docs/components/FieldOverlay.md +19 -8
- package/docs/components/Modal.md +19 -19
- package/docs/components/Select.md +2 -0
- package/docs/components/TimePanel.md +2 -0
- package/docs/components/TimeRangePicker.md +0 -1
- package/package.json +2 -2
package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import e from "../Button/Button.js";
|
|
2
|
-
import t from "../
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import t from "../Divider/Divider.js";
|
|
3
|
+
import n from "../TimePanel/TimePanel.js";
|
|
4
|
+
import { useTimeRangePicker as r } from "./composables/useTimeRangePicker.js";
|
|
5
|
+
import { createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
5
6
|
//#region src/Components/TimeRangePicker/TimeRangePicker.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var y = /*@__PURE__*/ l({
|
|
7
8
|
inheritAttrs: !1,
|
|
8
9
|
__name: "TimeRangePicker",
|
|
9
10
|
props: {
|
|
@@ -20,7 +21,6 @@ var v = /*@__PURE__*/ c({
|
|
|
20
21
|
interval: {},
|
|
21
22
|
maxTime: {},
|
|
22
23
|
minTime: {},
|
|
23
|
-
orientation: {},
|
|
24
24
|
readOnly: { type: Boolean },
|
|
25
25
|
rounded: {},
|
|
26
26
|
showFooter: {
|
|
@@ -37,94 +37,108 @@ var v = /*@__PURE__*/ c({
|
|
|
37
37
|
"cancel",
|
|
38
38
|
"change"
|
|
39
39
|
],
|
|
40
|
-
setup(
|
|
41
|
-
let { merged:
|
|
40
|
+
setup(l, { emit: y }) {
|
|
41
|
+
let { merged: b, endBind: x, rootBind: S, endTitle: C, startBind: w, startTitle: T, footerBind: E, titlesBind: D, panelsBind: O, showFooter: k, applyLabel: A, handleApply: j, cancelLabel: M, titleGapBind: N, endTitleBind: P, handleCancel: F, startTitleBind: I, endDisplayValue: L, handleEndChange: R, applyButtonProps: z, startDisplayValue: B, cancelButtonProps: V, handleStartChange: H } = r(l, {
|
|
42
42
|
ampm: !1,
|
|
43
43
|
interval: 1,
|
|
44
44
|
rounded: "md",
|
|
45
45
|
color: "primary",
|
|
46
|
-
showSeconds: !1
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
46
|
+
showSeconds: !1
|
|
47
|
+
}, y);
|
|
48
|
+
return (r, l) => (m(), a("div", p(u(_(S))), [
|
|
49
|
+
o("div", { class: f(_(D)) }, [
|
|
50
|
+
o("p", { class: f(_(I)) }, g(_(T)), 3),
|
|
51
|
+
o("span", {
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
class: f(_(N))
|
|
54
|
+
}, null, 2),
|
|
55
|
+
o("p", { class: f(_(P)) }, g(_(C)), 3)
|
|
56
|
+
], 2),
|
|
57
|
+
o("div", p(u(_(O))), [
|
|
58
|
+
o("div", p(u(_(w))), [c(_(n), {
|
|
59
|
+
ampm: _(b).ampm,
|
|
60
|
+
fill: _(b).fill,
|
|
61
|
+
color: _(b).color,
|
|
62
|
+
error: _(b).error,
|
|
63
|
+
rounded: _(b).rounded,
|
|
64
|
+
value: _(B),
|
|
65
|
+
"max-time": _(b).maxTime,
|
|
66
|
+
"min-time": _(b).minTime,
|
|
67
|
+
disabled: _(b).disabled,
|
|
68
|
+
interval: _(b).interval,
|
|
69
|
+
"read-only": _(b).readOnly,
|
|
70
|
+
"time-zone": _(b).timeZone,
|
|
71
|
+
onChange: _(H),
|
|
72
|
+
"show-seconds": _(b).showSeconds,
|
|
73
|
+
"disable-times": _(b).disableTimes
|
|
74
|
+
}, null, 8, [
|
|
75
|
+
"ampm",
|
|
76
|
+
"fill",
|
|
77
|
+
"color",
|
|
78
|
+
"error",
|
|
79
|
+
"rounded",
|
|
80
|
+
"value",
|
|
81
|
+
"max-time",
|
|
82
|
+
"min-time",
|
|
83
|
+
"disabled",
|
|
84
|
+
"interval",
|
|
85
|
+
"read-only",
|
|
86
|
+
"time-zone",
|
|
87
|
+
"onChange",
|
|
88
|
+
"show-seconds",
|
|
89
|
+
"disable-times"
|
|
90
|
+
])], 16),
|
|
91
|
+
c(_(t), { orientation: "vertical" }),
|
|
92
|
+
o("div", p(u(_(x))), [c(_(n), {
|
|
93
|
+
ampm: _(b).ampm,
|
|
94
|
+
fill: _(b).fill,
|
|
95
|
+
color: _(b).color,
|
|
96
|
+
error: _(b).error,
|
|
97
|
+
value: _(L),
|
|
98
|
+
rounded: _(b).rounded,
|
|
99
|
+
"max-time": _(b).maxTime,
|
|
100
|
+
"min-time": _(b).minTime,
|
|
101
|
+
disabled: _(b).disabled,
|
|
102
|
+
interval: _(b).interval,
|
|
103
|
+
"read-only": _(b).readOnly,
|
|
104
|
+
"time-zone": _(b).timeZone,
|
|
105
|
+
onChange: _(R),
|
|
106
|
+
"show-seconds": _(b).showSeconds,
|
|
107
|
+
"disable-times": _(b).disableTimes
|
|
108
|
+
}, null, 8, [
|
|
109
|
+
"ampm",
|
|
110
|
+
"fill",
|
|
111
|
+
"color",
|
|
112
|
+
"error",
|
|
113
|
+
"value",
|
|
114
|
+
"rounded",
|
|
115
|
+
"max-time",
|
|
116
|
+
"min-time",
|
|
117
|
+
"disabled",
|
|
118
|
+
"interval",
|
|
119
|
+
"read-only",
|
|
120
|
+
"time-zone",
|
|
121
|
+
"onChange",
|
|
122
|
+
"show-seconds",
|
|
123
|
+
"disable-times"
|
|
124
|
+
])], 16)
|
|
125
|
+
], 16),
|
|
126
|
+
_(k) ? (m(), a("div", p(d({ key: 0 }, _(E))), [h(r.$slots, "footer", {
|
|
127
|
+
apply: _(j),
|
|
128
|
+
cancel: _(F)
|
|
129
|
+
}, () => [c(_(e), d({
|
|
130
|
+
variant: "flat",
|
|
131
|
+
color: "secondary",
|
|
132
|
+
onClick: _(F)
|
|
133
|
+
}, _(V)), {
|
|
134
|
+
default: v(() => [s(g(_(M)), 1)]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 16, ["onClick"]), c(_(e), d({ color: "primary" }, _(z), { onClick: _(j) }), {
|
|
137
|
+
default: v(() => [s(g(_(A)), 1)]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 16, ["onClick"])])], 16)) : i("", !0)
|
|
140
|
+
], 16));
|
|
127
141
|
}
|
|
128
142
|
});
|
|
129
143
|
//#endregion
|
|
130
|
-
export {
|
|
144
|
+
export { y as default };
|
|
@@ -2,7 +2,7 @@ import { MaybeRefOrGetter, SetupContext } from 'vue';
|
|
|
2
2
|
import { TimeValue } from '@bridge-ui/core/Domain';
|
|
3
3
|
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
4
4
|
import { TimeRangePickerEmits, TimeRangePickerOwnProps } from '../timeRangePicker.types';
|
|
5
|
-
type TimeRangePickerLibDefaults = LibDefaultsShape<TimeRangePickerOwnProps, "ampm" | "color" | "rounded" | "interval" | "
|
|
5
|
+
type TimeRangePickerLibDefaults = LibDefaultsShape<TimeRangePickerOwnProps, "ampm" | "color" | "rounded" | "interval" | "showSeconds">;
|
|
6
6
|
type TimeRangePickerMerged = MergeLibDefaults<TimeRangePickerOwnProps, TimeRangePickerLibDefaults>;
|
|
7
7
|
/**
|
|
8
8
|
* Owns controlled/uncontrolled range value, optional footer draft, and dual panel binds.
|
|
@@ -10,12 +10,14 @@ type TimeRangePickerMerged = MergeLibDefaults<TimeRangePickerOwnProps, TimeRange
|
|
|
10
10
|
export declare function useTimeRangePicker(props: MaybeRefOrGetter<TimeRangePickerOwnProps>, libDefaults: TimeRangePickerLibDefaults, emit: SetupContext<TimeRangePickerEmits>["emit"]): {
|
|
11
11
|
merged: import('vue').ComputedRef<TimeRangePickerMerged>;
|
|
12
12
|
endBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
13
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<TimeRangePickerOwnProps, "error" | "color" | "fill" | "
|
|
13
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<TimeRangePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "defaultValue" | "readOnly" | "timeZone" | "ampm" | "disableTimes" | "interval" | "maxTime" | "minTime" | "showSeconds" | "endTitle" | "startTitle">>>>;
|
|
14
14
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
15
15
|
footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
16
|
+
titlesBind: import('vue').ComputedRef<string>;
|
|
16
17
|
panelsBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
17
18
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
18
19
|
handleApply: () => void;
|
|
20
|
+
titleGapBind: import('vue').ComputedRef<string>;
|
|
19
21
|
displayValue: import('vue').ComputedRef<[Date, Date] | null>;
|
|
20
22
|
handleCancel: () => void;
|
|
21
23
|
endTitleBind: import('vue').ComputedRef<string>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useDateAdapter as e, useDateAdapterContext as t } from "../../../Adapters/Date/useDateAdapter.js";
|
|
2
2
|
import { useResolveMessage as n } from "../../../Adapters/I18n/useI18nAdapter.js";
|
|
3
3
|
import { mergePartBind as r, useBridgeUIComponent as i, useBridgeUIMergedRegistryClasses as a } from "../../../Utils/index.js";
|
|
4
|
-
import { FIELD_OVERLAY_INJECTION_KEY as
|
|
5
|
-
import { computed as
|
|
6
|
-
import { get as
|
|
7
|
-
import { sortTimeRangeValue as
|
|
8
|
-
import { menuRoundedProps as
|
|
9
|
-
import { cn as
|
|
4
|
+
import { FIELD_OVERLAY_INJECTION_KEY as o } from "../../FieldOverlay/fieldOverlayInjectionKey.js";
|
|
5
|
+
import { computed as s, inject as c, ref as l, toValue as u, useAttrs as d, watch as f } from "vue";
|
|
6
|
+
import { get as p, isNil as m, omit as h } from "es-toolkit/compat";
|
|
7
|
+
import { sortTimeRangeValue as g } from "@bridge-ui/core/Domain";
|
|
8
|
+
import { menuRoundedProps as _ } from "@bridge-ui/core/Tokens";
|
|
9
|
+
import { cn as v, splitComponentProps as y } from "@bridge-ui/core/Utils";
|
|
10
10
|
//#region src/Components/TimeRangePicker/composables/useTimeRangePicker.ts
|
|
11
|
-
var
|
|
11
|
+
var b = [
|
|
12
12
|
"ampm",
|
|
13
13
|
"fill",
|
|
14
14
|
"color",
|
|
@@ -26,111 +26,112 @@ var y = [
|
|
|
26
26
|
"showFooter",
|
|
27
27
|
"startTitle",
|
|
28
28
|
"customProps",
|
|
29
|
-
"orientation",
|
|
30
29
|
"showSeconds",
|
|
31
30
|
"defaultValue",
|
|
32
31
|
"disableTimes"
|
|
33
32
|
];
|
|
34
|
-
function
|
|
35
|
-
let
|
|
33
|
+
function x(x, S, C) {
|
|
34
|
+
let w = d(), T = c(o, {
|
|
36
35
|
apply: () => void 0,
|
|
37
36
|
cancel: () => void 0
|
|
38
|
-
}),
|
|
39
|
-
bridgeKeys:
|
|
37
|
+
}), E = e(), ee = t(), D = n(), O = s(() => y({
|
|
38
|
+
bridgeKeys: b,
|
|
40
39
|
props: {
|
|
41
|
-
...
|
|
42
|
-
...
|
|
40
|
+
...w,
|
|
41
|
+
...u(x)
|
|
43
42
|
}
|
|
44
43
|
})), { merged: k, entry: A } = i({
|
|
45
|
-
libDefaults:
|
|
44
|
+
libDefaults: S,
|
|
46
45
|
componentName: "TimeRangePicker",
|
|
47
46
|
props: () => O.value.componentProps
|
|
48
|
-
}), j =
|
|
47
|
+
}), j = s(() => k.value.customProps), M = s(() => h(O.value.inheritedAttrs, [
|
|
49
48
|
"onApply",
|
|
50
49
|
"onCancel",
|
|
51
50
|
"onChange"
|
|
52
51
|
])), N = a({
|
|
53
52
|
entry: A,
|
|
54
53
|
props: () => O.value.componentProps
|
|
55
|
-
}), P =
|
|
56
|
-
|
|
54
|
+
}), P = s(() => u(x)), F = s(() => ee(k.value.timeZone)), I = s(() => !m(P.value.value)), L = l(k.value.defaultValue ?? null), R = s(() => I.value ? P.value.value ?? null : L.value), z = l(R.value);
|
|
55
|
+
f(() => [R.value, k.value.showFooter], ([e, t]) => {
|
|
57
56
|
t && (z.value = e);
|
|
58
57
|
});
|
|
59
|
-
let B =
|
|
60
|
-
I.value || (L.value = e),
|
|
58
|
+
let B = s(() => k.value.showFooter ? z.value : R.value), V = s(() => B.value?.[0] ?? E.value.now(F.value)), H = s(() => B.value?.[1] ?? E.value.now(F.value)), U = (e) => {
|
|
59
|
+
I.value || (L.value = e), C("change", e);
|
|
61
60
|
}, W = (e) => {
|
|
62
|
-
let t =
|
|
61
|
+
let t = g(e, E.value, F.value);
|
|
63
62
|
if (k.value.showFooter) {
|
|
64
63
|
z.value = t;
|
|
65
64
|
return;
|
|
66
65
|
}
|
|
67
66
|
U(t);
|
|
68
67
|
}, G = (e) => {
|
|
69
|
-
if (
|
|
70
|
-
let t = B.value?.[1] ??
|
|
68
|
+
if (m(e)) return;
|
|
69
|
+
let t = B.value?.[1] ?? E.value.now(F.value);
|
|
71
70
|
W([e, t]);
|
|
72
71
|
}, K = (e) => {
|
|
73
|
-
if (
|
|
74
|
-
let t = B.value?.[0] ??
|
|
72
|
+
if (m(e)) return;
|
|
73
|
+
let t = B.value?.[0] ?? E.value.now(F.value);
|
|
75
74
|
W([t, e]);
|
|
76
75
|
}, q = () => {
|
|
77
|
-
U(z.value),
|
|
76
|
+
U(z.value), C("apply"), T.apply();
|
|
78
77
|
}, J = () => {
|
|
79
|
-
z.value = R.value,
|
|
80
|
-
}, Y =
|
|
81
|
-
let e =
|
|
82
|
-
return r(j.value?.root, M.value,
|
|
78
|
+
z.value = R.value, C("cancel"), T.cancel();
|
|
79
|
+
}, Y = s(() => {
|
|
80
|
+
let e = p(_, k.value.rounded ?? "md");
|
|
81
|
+
return r(j.value?.root, M.value, v({
|
|
83
82
|
"flex flex-col overflow-hidden bg-white shadow-lg dark:bg-dark-900": !0,
|
|
84
83
|
"w-full": k.value.fill,
|
|
85
84
|
"w-fit": !k.value.fill,
|
|
86
85
|
[e]: !0,
|
|
87
86
|
[N.value.root ?? ""]: !0
|
|
88
87
|
}));
|
|
89
|
-
}), X =
|
|
90
|
-
"flex w-full
|
|
91
|
-
"flex-row": !X.value,
|
|
92
|
-
"flex-col": X.value,
|
|
88
|
+
}), X = s(() => v({ "flex w-full px-2.5": !0 })), Z = s(() => v({ "w-px shrink-0": !0 })), Q = s(() => r(j.value?.panels, {}, v({
|
|
89
|
+
"flex w-full flex-row px-2.5 pb-2.5": !0,
|
|
93
90
|
[N.value.panels ?? ""]: !0
|
|
94
|
-
}))),
|
|
95
|
-
"flex min-w-0 flex-1 flex-col
|
|
91
|
+
}))), te = s(() => r(j.value?.start, {}, v({
|
|
92
|
+
"flex min-w-0 flex-1 flex-col pr-2.5": !0,
|
|
96
93
|
[N.value.start ?? ""]: !0
|
|
97
|
-
}))),
|
|
98
|
-
"flex min-w-0 flex-1 flex-col
|
|
94
|
+
}))), ne = s(() => r(j.value?.end, {}, v({
|
|
95
|
+
"flex min-w-0 flex-1 flex-col pl-2.5": !0,
|
|
99
96
|
[N.value.end ?? ""]: !0
|
|
100
|
-
}))), $ =
|
|
97
|
+
}))), $ = s(() => v({ "min-w-0 flex-1 px-2 py-2 text-center text-xs font-medium tracking-wide text-dark-500 uppercase dark:text-dark-400": !0 })), re = s(() => v({
|
|
101
98
|
[$.value]: !0,
|
|
99
|
+
"pr-2.5": !0,
|
|
102
100
|
[N.value.startTitle ?? ""]: !0
|
|
103
|
-
})),
|
|
101
|
+
})), ie = s(() => v({
|
|
104
102
|
[$.value]: !0,
|
|
103
|
+
"pl-2.5": !0,
|
|
105
104
|
[N.value.endTitle ?? ""]: !0
|
|
106
105
|
}));
|
|
107
106
|
return {
|
|
108
107
|
merged: k,
|
|
109
|
-
endBind:
|
|
108
|
+
endBind: ne,
|
|
110
109
|
rootBind: Y,
|
|
111
|
-
startBind:
|
|
112
|
-
footerBind:
|
|
110
|
+
startBind: te,
|
|
111
|
+
footerBind: s(() => r(j.value?.footer, {}, v({
|
|
113
112
|
"flex items-center justify-end gap-2 border-t border-dark-100 bg-dark-50 px-3 py-2 dark:border-dark-800 dark:bg-dark-950/40": !0,
|
|
114
113
|
[N.value.footer ?? ""]: !0
|
|
115
114
|
}))),
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
titlesBind: X,
|
|
116
|
+
panelsBind: Q,
|
|
117
|
+
showFooter: s(() => !!k.value.showFooter),
|
|
118
118
|
handleApply: q,
|
|
119
|
+
titleGapBind: Z,
|
|
119
120
|
displayValue: B,
|
|
120
121
|
handleCancel: J,
|
|
121
|
-
endTitleBind:
|
|
122
|
-
startTitleBind:
|
|
122
|
+
endTitleBind: ie,
|
|
123
|
+
startTitleBind: re,
|
|
123
124
|
endDisplayValue: H,
|
|
124
125
|
handleEndChange: K,
|
|
125
126
|
startDisplayValue: V,
|
|
126
127
|
handleStartChange: G,
|
|
127
|
-
applyLabel:
|
|
128
|
-
cancelLabel:
|
|
129
|
-
applyButtonProps:
|
|
130
|
-
cancelButtonProps:
|
|
131
|
-
endTitle:
|
|
132
|
-
startTitle:
|
|
128
|
+
applyLabel: s(() => D("Apply")),
|
|
129
|
+
cancelLabel: s(() => D("Cancel")),
|
|
130
|
+
applyButtonProps: s(() => j.value?.applyButton),
|
|
131
|
+
cancelButtonProps: s(() => j.value?.cancelButton),
|
|
132
|
+
endTitle: s(() => k.value.endTitle ?? D("End time")),
|
|
133
|
+
startTitle: s(() => k.value.startTitle ?? D("Start time"))
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
136
|
//#endregion
|
|
136
|
-
export {
|
|
137
|
+
export { x as useTimeRangePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, Slot } from 'vue';
|
|
2
|
-
import { DisableTimesInput, FieldOverlayFooterSlotProps,
|
|
2
|
+
import { DisableTimesInput, FieldOverlayFooterSlotProps, TimeRangeValue } from '@bridge-ui/core/Domain';
|
|
3
3
|
import { TimeColor, TimeRounded } from '@bridge-ui/core/Tokens';
|
|
4
4
|
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
5
5
|
import { ButtonProps } from '../Button/button.types';
|
|
@@ -173,12 +173,6 @@ export interface TimeRangePickerOwnProps {
|
|
|
173
173
|
* @default undefined
|
|
174
174
|
*/
|
|
175
175
|
minTime?: Date;
|
|
176
|
-
/**
|
|
177
|
-
* Layout of start / end time panels.
|
|
178
|
-
*
|
|
179
|
-
* @default "horizontal"
|
|
180
|
-
*/
|
|
181
|
-
orientation?: RangePickerOrientation;
|
|
182
176
|
/**
|
|
183
177
|
* Prevents selection.
|
|
184
178
|
*
|
package/dist/index.js
CHANGED
|
@@ -57,37 +57,37 @@ import { useCalendarYear as fe } from "./Components/CalendarYear/composables/use
|
|
|
57
57
|
import pe from "./Components/CalendarYear/CalendarYear.js";
|
|
58
58
|
import me from "./Components/Calendar/Calendar.js";
|
|
59
59
|
import { useCalendarRange as he } from "./Components/CalendarRange/composables/useCalendarRange.js";
|
|
60
|
-
import ge from "./Components/
|
|
61
|
-
import
|
|
62
|
-
import ve from "./Components/
|
|
63
|
-
import {
|
|
64
|
-
import be from "./Components/
|
|
65
|
-
import {
|
|
66
|
-
import Se from "./Components/
|
|
67
|
-
import {
|
|
68
|
-
import
|
|
69
|
-
import Te from "./Components/
|
|
70
|
-
import Ee from "./Components/
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import ke from "./Components/
|
|
74
|
-
import Ae from "./Components/
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import Ne from "./Components/
|
|
78
|
-
import Pe from "./Components/
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import {
|
|
82
|
-
import Re from "./Components/
|
|
83
|
-
import ze from "./Components/
|
|
84
|
-
import Be from "./Components/
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import Ue from "./Components/
|
|
88
|
-
import We from "./Components/
|
|
89
|
-
import
|
|
90
|
-
import Ke from "./Components/
|
|
60
|
+
import { useDivider as ge } from "./Components/Divider/composables/useDivider.js";
|
|
61
|
+
import _e from "./Components/Divider/Divider.js";
|
|
62
|
+
import ve from "./Components/CalendarRange/CalendarRange.js";
|
|
63
|
+
import { useCard as ye } from "./Components/Card/composables/useCard.js";
|
|
64
|
+
import be from "./Components/Card/Card.js";
|
|
65
|
+
import { useFormControl as xe } from "./Components/FormControl/composables/useFormControl.js";
|
|
66
|
+
import Se from "./Components/FormControl/FormControl.js";
|
|
67
|
+
import { useCheckbox as Ce } from "./Components/Checkbox/composables/useCheckbox.js";
|
|
68
|
+
import we from "./Components/Checkbox/Checkbox.js";
|
|
69
|
+
import { useColorField as Te } from "./Components/ColorField/composables/useColorField.js";
|
|
70
|
+
import { useColorPicker as Ee } from "./Components/ColorPicker/composables/useColorPicker.js";
|
|
71
|
+
import De from "./Components/ColorPicker/ColorPicker.js";
|
|
72
|
+
import Oe from "./Components/ColorField/ColorField.js";
|
|
73
|
+
import { useDateField as ke } from "./Components/DateField/composables/useDateField.js";
|
|
74
|
+
import { useDatePicker as Ae } from "./Components/DatePicker/composables/useDatePicker.js";
|
|
75
|
+
import je from "./Components/DatePicker/DatePicker.js";
|
|
76
|
+
import Me from "./Components/DateField/DateField.js";
|
|
77
|
+
import { useDateRangeField as Ne } from "./Components/DateRangeField/composables/useDateRangeField.js";
|
|
78
|
+
import { useDateRangePicker as Pe } from "./Components/DateRangePicker/composables/useDateRangePicker.js";
|
|
79
|
+
import Fe from "./Components/DateRangePicker/DateRangePicker.js";
|
|
80
|
+
import Ie from "./Components/DateRangeField/DateRangeField.js";
|
|
81
|
+
import { useDateTimeField as Le } from "./Components/DateTimeField/composables/useDateTimeField.js";
|
|
82
|
+
import { useDateTimePicker as Re } from "./Components/DateTimePicker/composables/useDateTimePicker.js";
|
|
83
|
+
import { useTimePanel as ze } from "./Components/TimePanel/composables/useTimePanel.js";
|
|
84
|
+
import Be from "./Components/TimePanel/TimePanel.js";
|
|
85
|
+
import Ve from "./Components/DateTimePicker/DateTimePicker.js";
|
|
86
|
+
import He from "./Components/DateTimeField/DateTimeField.js";
|
|
87
|
+
import { useDateTimeRangeField as Ue } from "./Components/DateTimeRangeField/composables/useDateTimeRangeField.js";
|
|
88
|
+
import { useDateTimeRangePicker as We } from "./Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js";
|
|
89
|
+
import Ge from "./Components/DateTimeRangePicker/DateTimeRangePicker.js";
|
|
90
|
+
import Ke from "./Components/DateTimeRangeField/DateTimeRangeField.js";
|
|
91
91
|
import { useLink as qe } from "./Components/Link/composables/useLink.js";
|
|
92
92
|
import Je from "./Components/Link/Link.js";
|
|
93
93
|
import { useNumberField as Ye } from "./Components/NumberField/composables/useNumberField.js";
|
|
@@ -151,4 +151,4 @@ import { createBridgeUI as Qt } from "./Provider/createBridgeUI.js";
|
|
|
151
151
|
import { SEMANTIC_ICON_NAMES as $t, resolveMessage as en } from "@bridge-ui/core/Adapters";
|
|
152
152
|
import { cn as tn } from "@bridge-ui/core/Utils";
|
|
153
153
|
import { BRIDGE_UI_DEFAULT_GLOBAL as nn, mergeBridgeUIComponents as rn, mergeBridgeUIGlobal as an, resolveBridgeUIOptions as on } from "@bridge-ui/core/Config";
|
|
154
|
-
export { l as ACCORDION_INJECTION_KEY, m as Accordion, _ as AccordionItem, y as Alert, X as Autocomplete, Z as AutocompleteOption, Q as Avatar, nn as BRIDGE_UI_DEFAULT_GLOBAL, ee as Badge, te as BaseField, oe as Breadcrumb, ae as BreadcrumbItem, Zt as BridgeUIProvider, P as Button, me as Calendar, le as CalendarDate, de as CalendarMonth,
|
|
154
|
+
export { l as ACCORDION_INJECTION_KEY, m as Accordion, _ as AccordionItem, y as Alert, X as Autocomplete, Z as AutocompleteOption, Q as Avatar, nn as BRIDGE_UI_DEFAULT_GLOBAL, ee as Badge, te as BaseField, oe as Breadcrumb, ae as BreadcrumbItem, Zt as BridgeUIProvider, P as Button, me as Calendar, le as CalendarDate, de as CalendarMonth, ve as CalendarRange, pe as CalendarYear, be as Card, we as Checkbox, O as Chip, Oe as ColorField, De as ColorPicker, Me as DateField, je as DatePicker, Ie as DateRangeField, Fe as DateRangePicker, He as DateTimeField, Ve as DateTimePicker, Ke as DateTimeRangeField, Ge as DateTimeRangePicker, _e as Divider, L as Drawer, H as FieldOverlay, Se as FormControl, j as FormField, g as Icon, A as Label, Je as Link, W as List, G as ListItem, K as ListSection, Y as Listbox, z as Menu, V as Modal, Xe as NumberField, Qe as OtpField, et as Pagination, nt as PasswordField, J as Progress, it as Radio, $t as SEMANTIC_ICON_NAMES, at as Select, ot as SelectOption, ct as Skeleton, ft as Slider, mt as Snackbar, gt as Spinner, vt as Step, bt as Stepper, St as Switch, Ct as TABS_INJECTION_KEY, Kt as TOGGLE_GROUP_INJECTION_KEY, Tt as Tab, Dt as TabItem, kt as TabList, jt as TabPanel, Nt as Tabs, Lt as TextField, Ft as Textarea, Vt as TimeField, Be as TimePanel, Bt as TimePicker, Gt as TimeRangeField, Wt as TimeRangePicker, Jt as ToggleGroup, Xt as ToggleItem, dt as Tooltip, tn as cn, Qt as createBridgeUI, x as findFirstEnabledOptionIndex, S as findLastEnabledOptionIndex, C as getListboxActiveDescendantId, w as getListboxOptionId, rn as mergeBridgeUIComponents, an as mergeBridgeUIGlobal, T as moveListboxHighlight, on as resolveBridgeUIOptions, en as resolveMessage, t as setDateAdapterForTests, i as setI18nAdapterForTests, s as setIconAdapterForTests, p as useAccordion, h as useAccordionItem, v as useAlert, $ as useBadge, ne as useBaseField, re as useBreadcrumb, ie as useBreadcrumbItem, u as useBreakpoint, e as useBridgeUI, d as useBridgeUIComponent, f as useBridgeUIMergedRegistryClasses, N as useButton, se as useCalendar, ce as useCalendarDate, ue as useCalendarMonth, he as useCalendarRange, fe as useCalendarYear, ye as useCard, Ce as useCheckbox, D as useChip, Te as useColorField, Ee as useColorPicker, n as useDateAdapter, r as useDateAdapterContext, ke as useDateField, Ae as useDatePicker, Ne as useDateRangeField, Pe as useDateRangePicker, Le as useDateTimeField, Re as useDateTimePicker, Ue as useDateTimeRangeField, We as useDateTimeRangePicker, ge as useDivider, I as useDrawer, F as useFieldOverlay, xe as useFormControl, b as useFormField, a as useI18nAdapter, c as useIconAdapter, k as useLabel, qe as useLink, U as useList, M as useListbox, E as useListboxNavigation, R as useMenu, B as useModal, Ye as useNumberField, Ze as useOtpField, $e as usePagination, tt as usePasswordField, q as useProgress, rt as useRadio, o as useResolveMessage, st as useSkeleton, lt as useSlider, pt as useSnackbar, ht as useSpinner, _t as useStep, yt as useStepper, xt as useSwitch, wt as useTab, Et as useTabItem, Ot as useTabList, At as useTabPanel, Mt as useTabs, It as useTextField, Pt as useTextarea, Rt as useTimeField, ze as useTimePanel, zt as useTimePicker, Ht as useTimeRangeField, Ut as useTimeRangePicker, qt as useToggleGroup, Yt as useToggleItem, ut as useTooltip };
|
package/dist/theme.css
CHANGED
package/docs/README.md
CHANGED
|
@@ -70,6 +70,10 @@ Component reference and adapter samples for **Vue**. This folder ships with the
|
|
|
70
70
|
- [useModalAction](./components/useModalAction.md)
|
|
71
71
|
- [useSnackbarAction](./components/useSnackbarAction.md)
|
|
72
72
|
|
|
73
|
+
## Theme CSS
|
|
74
|
+
|
|
75
|
+
- [Scroll utilities](./ScrollUtilities.md)
|
|
76
|
+
|
|
73
77
|
## Examples (adapters)
|
|
74
78
|
|
|
75
79
|
- [`examples/i18n-dictionary.ts`](./examples/i18n-dictionary.ts)
|