@bridge-ui/vue 0.8.0 → 0.9.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 +2 -1
- package/dist/Components/Accordion/composables/useAccordion.d.ts +1 -1
- package/dist/Components/ActionFooter/ActionFooter.js +5 -0
- package/dist/Components/ActionFooter/ActionFooter.vue.d.ts +10 -0
- package/dist/Components/ActionFooter/ActionFooter.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Components/ActionFooter/actionFooter.types.d.ts +107 -0
- package/dist/Components/ActionFooter/composables/useActionFooter.d.ts +35 -0
- package/dist/Components/ActionFooter/composables/useActionFooter.js +53 -0
- package/dist/Components/ActionFooter/index.d.ts +3 -0
- package/dist/Components/ActionFooter/index.js +3 -0
- package/dist/Components/Alert/composables/useAlert.d.ts +1 -1
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +2 -2
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +1 -1
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +3 -3
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +1 -1
- package/dist/Components/Badge/composables/useBadge.d.ts +1 -1
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.d.ts +3 -3
- package/dist/Components/Button/composables/useButton.d.ts +2 -2
- package/dist/Components/ButtonGroup/composables/useButtonGroup.d.ts +1 -1
- package/dist/Components/Calendar/composables/useCalendar.d.ts +1 -1
- package/dist/Components/CalendarDate/composables/useCalendarDate.d.ts +1 -1
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +1 -1
- package/dist/Components/CalendarYear/composables/useCalendarYear.d.ts +1 -1
- package/dist/Components/Card/composables/useCard.d.ts +1 -1
- package/dist/Components/Chip/Chip.vue.d.ts +1 -1
- package/dist/Components/Chip/composables/useChip.d.ts +1 -1
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/ColorField/colorField.types.d.ts +1 -1
- package/dist/Components/ColorField/composables/useColorField.d.ts +2 -2
- package/dist/Components/ColorField/composables/useColorField.js +1 -1
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/Components/ColorPicker/composables/useColorPicker.d.ts +1 -3
- package/dist/Components/ColorPicker/composables/useColorPicker.js +0 -2
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +8 -0
- package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DataTable/composables/useDataTable.d.ts +1 -1
- package/dist/Components/DataTable/composables/useDataTable.js +86 -86
- package/dist/Components/DataTable/composables/useDataTablePagination.d.ts +1 -1
- package/dist/Components/DataTable/dataTable.types.d.ts +22 -4
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DateField/composables/useDateField.d.ts +2 -2
- package/dist/Components/DateField/composables/useDateField.js +1 -1
- package/dist/Components/DateField/dateField.types.d.ts +1 -1
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/Components/DatePicker/composables/useDatePicker.d.ts +1 -3
- package/dist/Components/DatePicker/composables/useDatePicker.js +45 -48
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +2 -2
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +1 -1
- package/dist/Components/DateRangeField/dateRangeField.types.d.ts +1 -1
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.d.ts +1 -3
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.js +45 -48
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +2 -2
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +1 -1
- package/dist/Components/DateTimeField/dateTimeField.types.d.ts +1 -1
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +25 -24
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.d.ts +1 -3
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.js +75 -78
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +2 -2
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +1 -1
- package/dist/Components/DateTimeRangeField/dateTimeRangeField.types.d.ts +1 -1
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +29 -28
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.d.ts +1 -3
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js +84 -87
- package/dist/Components/Drawer/composables/useDrawer.js +75 -72
- package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
- package/dist/Components/ListItem/ListItem.vue.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.d.ts +1 -1
- package/dist/Components/Listbox/Listbox.vue.d.ts +3 -3
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +69 -71
- package/dist/Components/Listbox/composables/useListbox.d.ts +0 -2
- package/dist/Components/Listbox/composables/useListbox.js +63 -66
- package/dist/Components/Menu/composables/useMenu.js +125 -121
- package/dist/Components/Modal/composables/useModal.js +117 -114
- package/dist/Components/NumberField/composables/useNumberField.d.ts +2 -2
- package/dist/Components/Pagination/composables/usePagination.d.ts +1 -1
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +2 -2
- package/dist/Components/Select/Select.vue.d.ts +2 -2
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Select/composables/useSelect.d.ts +3 -3
- package/dist/Components/Select/composables/useSelect.js +1 -1
- package/dist/Components/Select/select.types.d.ts +1 -1
- package/dist/Components/Slider/composables/useSlider.d.ts +1 -1
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +31 -28
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +2 -1
- package/dist/Components/Snackbar/composables/useSnackbar.js +135 -128
- package/dist/Components/Step/composables/useStep.d.ts +1 -1
- package/dist/Components/TextField/composables/useTextField.d.ts +2 -2
- package/dist/Components/Textarea/composables/useTextarea.d.ts +2 -2
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/TimeField/composables/useTimeField.d.ts +2 -2
- package/dist/Components/TimeField/composables/useTimeField.js +1 -1
- package/dist/Components/TimeField/timeField.types.d.ts +1 -1
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +1 -1
- package/dist/Components/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +38 -37
- package/dist/Components/TimePicker/composables/useTimePicker.d.ts +1 -3
- package/dist/Components/TimePicker/composables/useTimePicker.js +54 -57
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +2 -2
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +1 -1
- package/dist/Components/TimeRangeField/timeRangeField.types.d.ts +1 -1
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +61 -60
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +1 -3
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +41 -43
- package/dist/Components/ToggleGroup/composables/useToggleGroup.d.ts +1 -1
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.d.ts +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.js +6 -1
- package/dist/augments.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +162 -160
- package/docs/README.md +1 -0
- package/docs/components/ActionFooter.md +85 -0
- package/docs/components/Autocomplete.md +2 -2
- package/docs/components/BridgeUIProvider.md +17 -1
- package/docs/components/ColorField.md +1 -1
- package/docs/components/ColorPicker.md +1 -1
- package/docs/components/DataTable.md +16 -4
- package/docs/components/DateField.md +1 -1
- package/docs/components/DatePicker.md +1 -1
- package/docs/components/DateRangeField.md +1 -1
- package/docs/components/DateRangePicker.md +1 -1
- package/docs/components/DateTimeField.md +1 -1
- package/docs/components/DateTimePicker.md +1 -1
- package/docs/components/DateTimeRangeField.md +1 -1
- package/docs/components/DateTimeRangePicker.md +1 -1
- package/docs/components/Select.md +2 -2
- package/docs/components/TimeField.md +1 -1
- package/docs/components/TimePicker.md +1 -1
- package/docs/components/TimeRangeField.md +1 -1
- package/docs/components/TimeRangePicker.md +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { mergePartBind as e,
|
|
2
|
-
import { snackbarDefaultIcons as
|
|
3
|
-
import { computed as
|
|
4
|
-
import { get as
|
|
5
|
-
import { snackbarColorProps as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { LAYER_STACK_BASE_Z_INDEX as
|
|
1
|
+
import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as ee } from "../../../Utils/index.js";
|
|
2
|
+
import { snackbarDefaultIcons as r } from "../snackbarDefaultIcons.js";
|
|
3
|
+
import { computed as i, nextTick as a, onBeforeUnmount as te, ref as o, toValue as ne, useAttrs as re, watch as s } from "vue";
|
|
4
|
+
import { get as c, isNil as ie, isNull as l, isObject as ae, omit as oe } from "es-toolkit/compat";
|
|
5
|
+
import { snackbarColorProps as se, snackbarPaddingProps as ce, snackbarPositionProps as le, snackbarRoundedProps as ue, snackbarTransitionProps as de } from "@bridge-ui/core/Tokens";
|
|
6
|
+
import { cn as u, mergeBridgeUILayeredClasses as d, splitComponentProps as f } from "@bridge-ui/core/Utils";
|
|
7
|
+
import { LAYER_STACK_BASE_Z_INDEX as p, acquireLayerStackOrder as fe, getLayerStackEntry as pe, getSnackbarTransitionClass as me, hasSnackbarTransition as he, pushLayerStack as ge, subscribeLayerStack as _e } from "@bridge-ui/core/Layer";
|
|
8
8
|
//#region src/Components/Snackbar/composables/useSnackbar.ts
|
|
9
|
-
var
|
|
9
|
+
var ve = [
|
|
10
10
|
"img",
|
|
11
11
|
"icon",
|
|
12
12
|
"color",
|
|
@@ -24,202 +24,209 @@ var ge = [
|
|
|
24
24
|
"description",
|
|
25
25
|
"progressbar"
|
|
26
26
|
];
|
|
27
|
-
function
|
|
28
|
-
let
|
|
27
|
+
function m(m, ye, h = {}) {
|
|
28
|
+
let be = re(), g = o(!1), _ = o(""), v = o(1), y = o(0), b = o(!1), x = o(!1), S = o(0), C = o(!1), w = o(0), T = o(null), E = o(p), D = o("closed"), O = o(null), k = null, A = null, j = null, M = i(() => f({
|
|
29
29
|
props: {
|
|
30
|
-
...
|
|
31
|
-
...
|
|
30
|
+
...be,
|
|
31
|
+
...m
|
|
32
32
|
},
|
|
33
|
-
bridgeKeys:
|
|
34
|
-
})), { merged:
|
|
35
|
-
libDefaults:
|
|
33
|
+
bridgeKeys: ve
|
|
34
|
+
})), { merged: N, entry: P } = n({
|
|
35
|
+
libDefaults: ye,
|
|
36
36
|
componentName: "Snackbar",
|
|
37
|
-
props: () =>
|
|
38
|
-
}),
|
|
39
|
-
entry:
|
|
40
|
-
props: () =>
|
|
41
|
-
}),
|
|
42
|
-
let e =
|
|
43
|
-
return e in
|
|
44
|
-
}),
|
|
45
|
-
let e =
|
|
46
|
-
return
|
|
47
|
-
}),
|
|
48
|
-
let e =
|
|
49
|
-
return
|
|
50
|
-
}),
|
|
51
|
-
let e =
|
|
52
|
-
return
|
|
53
|
-
}),
|
|
54
|
-
if (!
|
|
55
|
-
let e =
|
|
56
|
-
return
|
|
37
|
+
props: () => M.value.componentProps
|
|
38
|
+
}), F = i(() => N.value.customProps), I = i(() => oe(M.value.inheritedAttrs, ["onShowChange"])), L = ee({
|
|
39
|
+
entry: P,
|
|
40
|
+
props: () => M.value.componentProps
|
|
41
|
+
}), R = i(() => !ie(h.show) && ne(h.show)), z = i(() => {
|
|
42
|
+
let e = N.value.transition ?? "none";
|
|
43
|
+
return e in de ? e : "none";
|
|
44
|
+
}), B = i(() => he(z.value)), xe = i(() => me(z.value)), V = i(() => {
|
|
45
|
+
let e = d(se, P.value?.tokens?.color);
|
|
46
|
+
return c(e, N.value.color);
|
|
47
|
+
}), H = i(() => {
|
|
48
|
+
let e = d(ce, P.value?.tokens?.padding);
|
|
49
|
+
return c(e, N.value.padding);
|
|
50
|
+
}), Se = i(() => {
|
|
51
|
+
let e = d(ue, P.value?.tokens?.rounded);
|
|
52
|
+
return c(e, N.value.rounded);
|
|
53
|
+
}), Ce = i(() => l(N.value.icon) ? null : N.value.icon ? N.value.icon : c(V.value, "icon") ?? c(r, N.value.color)), U = i(() => N.value.duration === !1 ? 0 : N.value.duration ?? 0), W = i(() => R.value && g.value && U.value > 0 && N.value.progressbar !== !1), G = i(() => N.value.teleportTo !== !1), K = i(() => {
|
|
54
|
+
if (!G.value) return "";
|
|
55
|
+
let e = d(le, P.value?.tokens?.position);
|
|
56
|
+
return c(e, N.value.position ?? "bottom-center");
|
|
57
57
|
});
|
|
58
58
|
function q() {
|
|
59
|
-
|
|
59
|
+
O.value &&= (clearTimeout(O.value), null);
|
|
60
60
|
}
|
|
61
61
|
function J(e) {
|
|
62
|
-
e ||
|
|
62
|
+
e || h.onClose?.(), ae(h.show) && "value" in h.show && (h.show.value = e), h.onShowChange?.(e);
|
|
63
63
|
}
|
|
64
64
|
function Y() {
|
|
65
|
-
|
|
65
|
+
x.value && (x.value = !1, D.value = "closed", q(), R.value ? J(!1) : h.onLeaveComplete?.(), g.value = !1);
|
|
66
66
|
}
|
|
67
67
|
function X() {
|
|
68
|
-
if (q(),
|
|
68
|
+
if (q(), x.value = !0, !B.value) {
|
|
69
69
|
Y();
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
D.value = "closed";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
|
|
74
|
+
function we() {
|
|
75
|
+
if (x.value = !1, !B.value) {
|
|
76
|
+
D.value = "open";
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
D.value = "closed", a(() => {
|
|
80
80
|
requestAnimationFrame(() => {
|
|
81
|
-
|
|
81
|
+
D.value = "open";
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
function Z() {
|
|
86
|
-
if (!
|
|
86
|
+
if (!B.value) {
|
|
87
87
|
J(!1);
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
g.value && X();
|
|
91
91
|
}
|
|
92
92
|
function Q(e) {
|
|
93
|
-
q(),
|
|
93
|
+
q(), y.value = e, S.value = Date.now(), w.value = e, O.value = setTimeout(() => {
|
|
94
94
|
Z();
|
|
95
95
|
}, e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
!
|
|
97
|
+
function Te() {
|
|
98
|
+
!O.value || U.value <= 0 || (q(), y.value -= Date.now() - S.value, v.value = Math.max(y.value / U.value, 0), C.value = !1, b.value = !0);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
if (
|
|
102
|
-
let e = Math.max(
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
function Ee() {
|
|
101
|
+
if (U.value <= 0 || !b.value) return;
|
|
102
|
+
let e = Math.max(y.value, 0);
|
|
103
|
+
b.value = !1, C.value = !1, requestAnimationFrame(() => {
|
|
104
|
+
C.value = !0;
|
|
105
105
|
}), Q(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
!
|
|
107
|
+
function De(e) {
|
|
108
|
+
!g.value || D.value !== "closed" || e.target === e.currentTarget && e.propertyName !== "none" && e.elapsedTime !== 0 && Y();
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
s(R, (e) => {
|
|
111
111
|
if (e) {
|
|
112
|
-
|
|
112
|
+
g.value = !0, we();
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
}, { immediate: !0 }),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
g.value && X();
|
|
116
|
+
}, { immediate: !0 }), s([
|
|
117
|
+
R,
|
|
118
|
+
g,
|
|
119
|
+
U
|
|
120
120
|
], ([e, t, n]) => {
|
|
121
121
|
if (!e || !t || n <= 0) {
|
|
122
122
|
q();
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
}, { immediate: !0 }),
|
|
125
|
+
b.value = !1, Q(n);
|
|
126
|
+
}, { immediate: !0 }), s([U, W], ([e]) => {
|
|
127
127
|
if (!e) {
|
|
128
|
-
|
|
128
|
+
C.value = !1, v.value = 1;
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
C.value = !1, v.value = 1;
|
|
132
132
|
let t = requestAnimationFrame(() => {
|
|
133
|
-
|
|
133
|
+
C.value = !0;
|
|
134
134
|
});
|
|
135
135
|
return () => {
|
|
136
136
|
cancelAnimationFrame(t);
|
|
137
137
|
};
|
|
138
138
|
}, { immediate: !0 });
|
|
139
139
|
function $() {
|
|
140
|
-
let e =
|
|
141
|
-
e && (
|
|
140
|
+
let e = pe(_.value);
|
|
141
|
+
e && (E.value = e.zIndex);
|
|
142
|
+
}
|
|
143
|
+
function Oe(e) {
|
|
144
|
+
T.value = t(e), A?.setContainer(T.value);
|
|
142
145
|
}
|
|
143
|
-
|
|
144
|
-
t && (e ? (
|
|
145
|
-
order:
|
|
146
|
+
s([g, G], ([e, t]) => {
|
|
147
|
+
t && (e ? (k = fe(), A = ge({
|
|
148
|
+
order: k,
|
|
146
149
|
lockScroll: !1,
|
|
147
|
-
id:
|
|
150
|
+
id: h.stackId,
|
|
151
|
+
container: T.value ?? void 0,
|
|
148
152
|
onEscape: () => {
|
|
149
153
|
Z();
|
|
150
154
|
}
|
|
151
|
-
}),
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
}), _.value = A.id, E.value = A.zIndex, $(), j = _e($), a(() => {
|
|
156
|
+
A?.setContainer(T.value);
|
|
157
|
+
})) : (j?.(), j = null, A?.release(), A = null, k = null, _.value = "", E.value = p));
|
|
158
|
+
}, { immediate: !0 }), te(() => {
|
|
159
|
+
q(), j?.(), j = null, A?.release(), A = null;
|
|
154
160
|
});
|
|
155
|
-
let
|
|
161
|
+
let ke = i(() => e(F.value?.portal, {
|
|
156
162
|
"data-snackbar-layer": !0,
|
|
157
|
-
style: { zIndex:
|
|
158
|
-
},
|
|
163
|
+
style: { zIndex: E.value }
|
|
164
|
+
}, u({
|
|
159
165
|
"fixed inset-0 flex pointer-events-none px-4 py-6 sm:p-5 sm:pt-4": !0,
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
}))),
|
|
163
|
-
...
|
|
166
|
+
[K.value ?? ""]: !0,
|
|
167
|
+
[c(L.value, "portal") ?? ""]: !0
|
|
168
|
+
}))), Ae = i(() => e(F.value?.root, {
|
|
169
|
+
...I.value,
|
|
164
170
|
"data-snackbar-part": "panel",
|
|
165
|
-
onMouseenter:
|
|
166
|
-
onMouseleave:
|
|
167
|
-
"data-state":
|
|
168
|
-
onTransitionend:
|
|
169
|
-
role:
|
|
170
|
-
"aria-live":
|
|
171
|
-
},
|
|
171
|
+
onMouseenter: Te,
|
|
172
|
+
onMouseleave: Ee,
|
|
173
|
+
"data-state": D.value,
|
|
174
|
+
onTransitionend: De,
|
|
175
|
+
role: I.value.role ?? "status",
|
|
176
|
+
"aria-live": I.value["aria-live"] ?? "polite"
|
|
177
|
+
}, u({
|
|
172
178
|
"relative w-full max-w-sm overflow-hidden pointer-events-auto": !0,
|
|
173
179
|
"bg-white shadow-lg ring-1 ring-black/5": !0,
|
|
174
180
|
"dark:bg-dark-800 dark:border dark:border-dark-700": !0,
|
|
175
|
-
[
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
}))),
|
|
181
|
+
[c(Se.value, "base") ?? ""]: !0,
|
|
182
|
+
[xe.value]: B.value,
|
|
183
|
+
[c(L.value, "root") ?? ""]: !0
|
|
184
|
+
}))), je = i(() => e(F.value?.icon, {}, u({
|
|
179
185
|
"w-6 h-6 shrink-0": !0,
|
|
180
|
-
[
|
|
181
|
-
[
|
|
182
|
-
}))),
|
|
186
|
+
[c(V.value, "iconColor") ?? ""]: !0,
|
|
187
|
+
[c(L.value, "icon") ?? ""]: !0
|
|
188
|
+
}))), Me = i(() => e(F.value?.title, {}, u({
|
|
183
189
|
"text-sm font-medium": !0,
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
}))),
|
|
190
|
+
[c(V.value, "titleColor") ?? ""]: !0,
|
|
191
|
+
[c(L.value, "title") ?? ""]: !0
|
|
192
|
+
}))), Ne = i(() => e(F.value?.description, {}, u({
|
|
187
193
|
"mt-1 text-sm text-dark-500 dark:text-dark-500": !0,
|
|
188
|
-
[
|
|
189
|
-
}))),
|
|
190
|
-
class:
|
|
194
|
+
[c(L.value, "description") ?? ""]: !0
|
|
195
|
+
}))), Pe = i(() => e(F.value?.progress, {}, {
|
|
196
|
+
class: u({
|
|
191
197
|
"absolute bottom-0 left-0 h-0.5 w-full rounded-full": !0,
|
|
192
|
-
[
|
|
193
|
-
[
|
|
198
|
+
[c(V.value, "progressColor") ?? ""]: !0,
|
|
199
|
+
[c(L.value, "progress") ?? ""]: !0
|
|
194
200
|
}),
|
|
195
|
-
style:
|
|
201
|
+
style: W.value ? {
|
|
196
202
|
transformOrigin: "left center",
|
|
197
|
-
transform: `scaleX(${
|
|
198
|
-
transition:
|
|
203
|
+
transform: `scaleX(${C.value && !b.value ? 0 : v.value})`,
|
|
204
|
+
transition: C.value && !b.value ? `transform ${w.value}ms linear` : "none"
|
|
199
205
|
} : void 0
|
|
200
206
|
}));
|
|
201
|
-
function
|
|
202
|
-
return e(
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
207
|
+
function Fe(t) {
|
|
208
|
+
return e(F.value?.content, {}, u({
|
|
209
|
+
[c(H.value, "contentRight") ?? ""]: t,
|
|
210
|
+
[c(H.value, "content") ?? ""]: !t,
|
|
211
|
+
[c(L.value, "content") ?? ""]: !0
|
|
206
212
|
}));
|
|
207
213
|
}
|
|
208
214
|
return {
|
|
209
|
-
merged:
|
|
210
|
-
iconBind:
|
|
211
|
-
rendered:
|
|
212
|
-
panelBind:
|
|
213
|
-
titleBind:
|
|
214
|
-
isPortaled:
|
|
215
|
-
portalBind:
|
|
216
|
-
contentBind:
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
merged: N,
|
|
216
|
+
iconBind: je,
|
|
217
|
+
rendered: g,
|
|
218
|
+
panelBind: Ae,
|
|
219
|
+
titleBind: Me,
|
|
220
|
+
isPortaled: G,
|
|
221
|
+
portalBind: ke,
|
|
222
|
+
contentBind: Fe,
|
|
223
|
+
setPanelRef: Oe,
|
|
224
|
+
showProgress: W,
|
|
225
|
+
progressBind: Pe,
|
|
219
226
|
requestClose: Z,
|
|
220
|
-
resolvedIcon:
|
|
221
|
-
descriptionBind:
|
|
227
|
+
resolvedIcon: Ce,
|
|
228
|
+
descriptionBind: Ne
|
|
222
229
|
};
|
|
223
230
|
}
|
|
224
231
|
//#endregion
|
|
225
|
-
export {
|
|
232
|
+
export { m as useSnackbar };
|
|
@@ -11,7 +11,7 @@ export declare function useStep(props: StepOwnProps): {
|
|
|
11
11
|
iconSize: import('vue').ComputedRef<keyof IconSize>;
|
|
12
12
|
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
13
13
|
class: string;
|
|
14
|
-
}, "class", import('vue').HTMLAttributes | undefined, Omit<StepProps, "error" | "icon" | "classes" | "customProps" | "
|
|
14
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<StepProps, "error" | "icon" | "classes" | "customProps" | "disabled" | "label" | "description" | "completed">>>;
|
|
15
15
|
textBind: import('vue').ComputedRef<{
|
|
16
16
|
class: string;
|
|
17
17
|
}>;
|
|
@@ -427,7 +427,7 @@ export declare function useTextField(props: TextFieldOwnProps): {
|
|
|
427
427
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
428
428
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
429
429
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
430
|
-
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "
|
|
430
|
+
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
431
431
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
432
432
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
433
433
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
@@ -678,5 +678,5 @@ export declare function useTextField(props: TextFieldOwnProps): {
|
|
|
678
678
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
679
679
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
680
680
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
681
|
-
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "
|
|
681
|
+
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
682
682
|
};
|
|
@@ -428,7 +428,7 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
|
|
|
428
428
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
429
429
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
430
430
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
431
|
-
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "
|
|
431
|
+
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
432
432
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
433
433
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
434
434
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
@@ -680,7 +680,7 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
|
|
|
680
680
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
681
681
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
682
682
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
683
|
-
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "
|
|
683
|
+
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>, {
|
|
684
684
|
rows?: string | number | undefined;
|
|
685
685
|
onInput?: ((event: Event) => void) | undefined;
|
|
686
686
|
}>>;
|
|
@@ -438,7 +438,7 @@ export declare function useTimeField(props: TimeFieldOwnProps, model: Ref<null |
|
|
|
438
438
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
439
439
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
440
440
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
441
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "
|
|
441
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
442
442
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
443
443
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
444
444
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
@@ -689,7 +689,7 @@ export declare function useTimeField(props: TimeFieldOwnProps, model: Ref<null |
|
|
|
689
689
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
690
690
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
691
691
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
692
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "
|
|
692
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>, "class", {
|
|
693
693
|
value: string;
|
|
694
694
|
readonly: boolean;
|
|
695
695
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -39,7 +39,7 @@ function C(C, w, T) {
|
|
|
39
39
|
...C
|
|
40
40
|
},
|
|
41
41
|
bridgeKeys: S
|
|
42
|
-
})), P = u(() => N.value.componentProps), F = u(() => A(P.value.timeZone)), I = u(() => w.value ?? null), L = u(() => P.value.clearable
|
|
42
|
+
})), P = u(() => N.value.componentProps), F = u(() => A(P.value.timeZone)), I = u(() => w.value ?? null), L = u(() => P.value.clearable === !0), R = u(() => !h(I.value)), z = u(() => _(P.value.overlay, k.mobile)), B = s({
|
|
43
43
|
overlay: z,
|
|
44
44
|
componentName: "TimeField",
|
|
45
45
|
fill: () => P.value.fill
|
|
@@ -22,7 +22,7 @@ export type TimePanelItem = {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function useTimePanel(props: MaybeRefOrGetter<TimePanelOwnProps>, libDefaults: TimePanelLibDefaults, emit: (event: "change", value: Date | null) => void): {
|
|
24
24
|
merged: import('vue').ComputedRef<TimePanelMerged>;
|
|
25
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<TimePanelOwnProps, "error" | "color" | "fill" | "value" | "classes" | "customProps" | "
|
|
25
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<TimePanelOwnProps, "error" | "color" | "fill" | "value" | "classes" | "customProps" | "disabled" | "rounded" | "timeZone" | "ampm" | "interval" | "showSeconds" | "readOnly" | "disableTimes" | "maxTime" | "minTime">>>>;
|
|
26
26
|
hourItems: import('vue').ComputedRef<TimePanelItem[]>;
|
|
27
27
|
columnBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
28
28
|
getHourBind: (item: TimePanelItem) => import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').ButtonHTMLAttributes | undefined, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e from "../
|
|
1
|
+
import e from "../ActionFooter/ActionFooter.js";
|
|
2
2
|
import t from "../TimePanel/TimePanel.js";
|
|
3
3
|
import { useTimePicker as n } from "./composables/useTimePicker.js";
|
|
4
|
-
import { createCommentVNode as r, createElementBlock as i, createElementVNode as a,
|
|
4
|
+
import { createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, mergeProps as l, normalizeClass as u, normalizeProps as d, openBlock as f, renderSlot as p, unref as m } from "vue";
|
|
5
5
|
//#region src/Components/TimePicker/TimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var h = /*@__PURE__*/ s({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "TimePicker",
|
|
9
9
|
props: {
|
|
@@ -34,30 +34,30 @@ var v = /*@__PURE__*/ c({
|
|
|
34
34
|
"cancel",
|
|
35
35
|
"change"
|
|
36
36
|
],
|
|
37
|
-
setup(
|
|
38
|
-
let { merged:
|
|
37
|
+
setup(s, { emit: h }) {
|
|
38
|
+
let { merged: g, rootBind: _, footerBind: v, showFooter: y, contentBind: b, handleApply: x, displayValue: S, handleCancel: C, applyButtonProps: w, cancelButtonProps: T, handlePanelChange: E } = n(s, {
|
|
39
39
|
ampm: !1,
|
|
40
40
|
interval: 1,
|
|
41
41
|
rounded: "md",
|
|
42
42
|
color: "primary",
|
|
43
43
|
showSeconds: !1
|
|
44
|
-
},
|
|
45
|
-
return (n,
|
|
46
|
-
ampm: g
|
|
47
|
-
fill: g
|
|
48
|
-
color: g
|
|
49
|
-
value:
|
|
50
|
-
error: g
|
|
51
|
-
rounded: g
|
|
52
|
-
"max-time": g
|
|
53
|
-
"min-time": g
|
|
54
|
-
disabled: g
|
|
55
|
-
interval: g
|
|
56
|
-
"read-only": g
|
|
57
|
-
"time-zone": g
|
|
58
|
-
onChange:
|
|
59
|
-
"show-seconds": g
|
|
60
|
-
"disable-times": g
|
|
44
|
+
}, h);
|
|
45
|
+
return (n, s) => (f(), i("div", d(c(m(_))), [a("div", { class: u(m(b)) }, [o(m(t), {
|
|
46
|
+
ampm: m(g).ampm,
|
|
47
|
+
fill: m(g).fill,
|
|
48
|
+
color: m(g).color,
|
|
49
|
+
value: m(S),
|
|
50
|
+
error: m(g).error,
|
|
51
|
+
rounded: m(g).rounded,
|
|
52
|
+
"max-time": m(g).maxTime,
|
|
53
|
+
"min-time": m(g).minTime,
|
|
54
|
+
disabled: m(g).disabled,
|
|
55
|
+
interval: m(g).interval,
|
|
56
|
+
"read-only": m(g).readOnly,
|
|
57
|
+
"time-zone": m(g).timeZone,
|
|
58
|
+
onChange: m(E),
|
|
59
|
+
"show-seconds": m(g).showSeconds,
|
|
60
|
+
"disable-times": m(g).disableTimes
|
|
61
61
|
}, null, 8, [
|
|
62
62
|
"ampm",
|
|
63
63
|
"fill",
|
|
@@ -74,21 +74,22 @@ var v = /*@__PURE__*/ c({
|
|
|
74
74
|
"onChange",
|
|
75
75
|
"show-seconds",
|
|
76
76
|
"disable-times"
|
|
77
|
-
])], 2),
|
|
78
|
-
apply:
|
|
79
|
-
cancel:
|
|
80
|
-
}, () => [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
77
|
+
])], 2), m(y) ? (f(), i("div", d(l({ key: 0 }, m(v))), [p(n.$slots, "footer", {
|
|
78
|
+
apply: m(x),
|
|
79
|
+
cancel: m(C)
|
|
80
|
+
}, () => [o(m(e), {
|
|
81
|
+
onApply: m(x),
|
|
82
|
+
onCancel: m(C),
|
|
83
|
+
"custom-props": {
|
|
84
|
+
applyButton: m(w),
|
|
85
|
+
cancelButton: m(T)
|
|
86
|
+
}
|
|
87
|
+
}, null, 8, [
|
|
88
|
+
"onApply",
|
|
89
|
+
"onCancel",
|
|
90
|
+
"custom-props"
|
|
91
|
+
])])], 16)) : r("", !0)], 16));
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
94
|
//#endregion
|
|
94
|
-
export {
|
|
95
|
+
export { h as default };
|
|
@@ -9,7 +9,7 @@ type TimePickerMerged = MergeLibDefaults<TimePickerOwnProps, TimePickerLibDefaul
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function useTimePicker(props: MaybeRefOrGetter<TimePickerOwnProps>, libDefaults: TimePickerLibDefaults, emit: SetupContext<TimePickerEmits>["emit"]): {
|
|
11
11
|
merged: import('vue').ComputedRef<TimePickerMerged>;
|
|
12
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<TimePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "
|
|
12
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<TimePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "disabled" | "rounded" | "timeZone" | "ampm" | "interval" | "showSeconds" | "defaultValue" | "readOnly" | "disableTimes" | "maxTime" | "minTime">>>>;
|
|
13
13
|
footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
14
14
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
15
15
|
contentBind: import('vue').ComputedRef<string>;
|
|
@@ -17,8 +17,6 @@ export declare function useTimePicker(props: MaybeRefOrGetter<TimePickerOwnProps
|
|
|
17
17
|
displayValue: import('vue').ComputedRef<Date | null>;
|
|
18
18
|
handleCancel: () => void;
|
|
19
19
|
handlePanelChange: (next: null | TimeValue) => void;
|
|
20
|
-
applyLabel: import('vue').ComputedRef<string>;
|
|
21
|
-
cancelLabel: import('vue').ComputedRef<string>;
|
|
22
20
|
applyButtonProps: import('vue').ComputedRef<Partial<import('../../Button').ButtonProps> | undefined>;
|
|
23
21
|
cancelButtonProps: import('vue').ComputedRef<Partial<import('../../Button').ButtonProps> | undefined>;
|
|
24
22
|
};
|