@ac-design/design-system 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/charts/ChartFrame.vue.d.ts +2 -0
- package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +42 -37
- package/dist/lib/charts/cartesian.d.ts +324 -0
- package/dist/lib/charts/cartesian.js +137 -0
- package/dist/lib/charts/echarts.d.ts +86 -0
- package/dist/lib/charts/echarts.js +173 -0
- package/dist/lib/charts/graph.d.ts +77 -0
- package/dist/lib/charts/graph.js +155 -0
- package/dist/lib/charts/index.d.ts +4 -0
- package/dist/lib/charts/index.js +3 -1
- package/dist/lib/charts/shared.d.ts +0 -7
- package/dist/lib/charts/shared.js +1 -19
- package/dist/lib/charts/xy.d.ts +11 -7
- package/dist/lib/charts/xy.js +53 -72
- package/dist/lib/compat.css +1322 -278
- package/dist/lib/components/AcAlert.vue.d.ts +9 -0
- package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +121 -21
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcAreaChart.vue.d.ts +3 -0
- package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +132 -142
- package/dist/lib/components/AcAvatar.vue.d.ts +7 -4
- package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +59 -54
- package/dist/lib/components/AcBadge.vue.d.ts +7 -3
- package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +35 -28
- package/dist/lib/components/AcBarChart.vue.d.ts +3 -0
- package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +142 -146
- package/dist/lib/components/AcBreadcrumb.vue.d.ts +4 -1
- package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/lib/components/AcBulkActionBar.vue.d.ts +2 -0
- package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcButton.vue.d.ts +12 -6
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +85 -47
- package/dist/lib/components/AcCard.vue.d.ts +34 -3
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +169 -34
- package/dist/lib/components/AcCellValue.vue.d.ts +3 -3
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +171 -165
- package/dist/lib/components/AcCheckBox.vue.d.ts +1 -1
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +58 -72
- package/dist/lib/components/AcCheckList.js +5 -0
- package/dist/lib/components/AcCheckList.vue.d.ts +45 -0
- package/dist/lib/components/AcCheckList.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/lib/components/AcCheckRadio.vue.d.ts +30 -5
- package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +100 -36
- package/dist/lib/components/AcCircularProgress.vue.d.ts +4 -4
- package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +12 -9
- package/dist/lib/components/AcColorInput.vue.d.ts +5 -2
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +127 -97
- package/dist/lib/components/AcCommandBlock.js +5 -0
- package/dist/lib/components/AcCommandBlock.vue.d.ts +34 -0
- package/dist/lib/components/AcCommandBlock.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/lib/components/AcConfirmModal.vue.d.ts +1 -1
- package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +7 -3
- package/dist/lib/components/AcCopyButton.vue.d.ts +2 -2
- package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcCostSummary.js +5 -0
- package/dist/lib/components/AcCostSummary.vue.d.ts +102 -0
- package/dist/lib/components/AcCostSummary.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/lib/components/AcDatePicker.vue.d.ts +3 -3
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +606 -380
- package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +47 -41
- package/dist/lib/components/AcDonutChart.vue.d.ts +10 -0
- package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +116 -89
- package/dist/lib/components/AcDropdown.vue.d.ts +5 -2
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +88 -75
- package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +11 -10
- package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/lib/components/AcEmptyState.vue.d.ts +1 -1
- package/dist/lib/components/AcErrorState.js +5 -0
- package/dist/lib/components/AcErrorState.vue.d.ts +46 -0
- package/dist/lib/components/AcErrorState.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/lib/components/AcFeatureCard.vue.d.ts +6 -0
- package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +136 -114
- package/dist/lib/components/AcFooter.vue.d.ts +1 -1
- package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcFormFooter.vue.d.ts +1 -1
- package/dist/lib/components/AcFormSection.vue.d.ts +1 -1
- package/dist/lib/components/AcGraphChart.js +5 -0
- package/dist/lib/components/AcGraphChart.vue.d.ts +124 -0
- package/dist/lib/components/AcGraphChart.vue_vue_type_script_setup_true_lang.js +578 -0
- package/dist/lib/components/AcHeader.vue.d.ts +20 -2
- package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +84 -26
- package/dist/lib/components/AcInfoTable.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +76 -79
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +4 -4
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +199 -183
- package/dist/lib/components/AcLineChart.vue.d.ts +6 -0
- package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +113 -125
- package/dist/lib/components/AcLoader.js +5 -0
- package/dist/lib/components/AcLoader.vue.d.ts +15 -0
- package/dist/lib/components/AcLoader.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +3 -1
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +44 -36
- package/dist/lib/components/AcMapChart.js +5 -0
- package/dist/lib/components/AcMapChart.vue.d.ts +136 -0
- package/dist/lib/components/AcMapChart.vue_vue_type_script_setup_true_lang.js +518 -0
- package/dist/lib/components/AcModal.vue.d.ts +6 -3
- package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +85 -61
- package/dist/lib/components/AcNavbar.vue.d.ts +8 -5
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +25 -17
- package/dist/lib/components/AcNavbarItem.vue.d.ts +2 -2
- package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +3 -3
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +133 -168
- package/dist/lib/components/AcNumberInput.vue.d.ts +2 -2
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +137 -147
- package/dist/lib/components/AcPage.vue.d.ts +2 -2
- package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcPagination.vue.d.ts +5 -5
- package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +59 -56
- package/dist/lib/components/AcPreloader.vue.d.ts +3 -3
- package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +15 -16
- package/dist/lib/components/AcProductHero.js +5 -0
- package/dist/lib/components/AcProductHero.vue.d.ts +56 -0
- package/dist/lib/components/AcProductHero.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/lib/components/AcProgress.vue.d.ts +17 -2
- package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +83 -29
- package/dist/lib/components/AcResourceCard.vue.d.ts +1 -1
- package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
- package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/lib/components/AcSelect.vue.d.ts +3 -3
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +232 -243
- package/dist/lib/components/AcSettingsRow.js +5 -0
- package/dist/lib/components/AcSettingsRow.vue.d.ts +29 -0
- package/dist/lib/components/AcSettingsRow.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/lib/components/AcSideTabs.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebar.vue.d.ts +4 -1
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +104 -94
- package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/lib/components/AcSidebarSection.vue.d.ts +2 -2
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +23 -18
- package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcSwitch.vue.d.ts +3 -0
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +46 -39
- package/dist/lib/components/AcSwitchCard.vue.d.ts +3 -3
- package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/lib/components/AcTabs.vue.d.ts +9 -2
- package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +42 -27
- package/dist/lib/components/AcTag.vue.d.ts +1 -1
- package/dist/lib/components/AcTagInput.vue.d.ts +5 -5
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +140 -142
- package/dist/lib/components/AcTextarea.vue.d.ts +1 -1
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +69 -72
- package/dist/lib/components/AcThemeMode.vue.d.ts +3 -3
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +54 -22
- package/dist/lib/components/AcTimePicker.vue.d.ts +1 -1
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +177 -185
- package/dist/lib/components/AcToaster.vue.d.ts +6 -3
- package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +103 -64
- package/dist/lib/components/AcTooltip.vue.d.ts +34 -14
- package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +184 -70
- package/dist/lib/components/AcUserMenu.vue.d.ts +23 -1
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +181 -138
- package/dist/lib/components/index.d.ts +7 -0
- package/dist/lib/components/status.d.ts +3 -1
- package/dist/lib/components/status.js +20 -5
- package/dist/lib/composables/useToast.d.ts +17 -1
- package/dist/lib/composables/useToast.js +10 -2
- package/dist/lib/index.d.ts +7 -3
- package/dist/lib/index.js +80 -73
- package/dist/lib/theme.css +39 -54
- package/package.json +12 -3
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import {
|
|
3
|
-
import { CircleAlert as ce, Clock as le, X as ue } from "@lucide/vue";
|
|
1
|
+
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as ee, onBeforeUnmount as te, onMounted as ne, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, useAttrs as re, useId as ie, useModel as y, watch as ae, withCtx as oe } from "vue";
|
|
2
|
+
import { Clock as se, X as ce } from "@lucide/vue";
|
|
4
3
|
//#region src/lib/components/AcTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
4
|
+
var le = ["for"], ue = {
|
|
6
5
|
key: 0,
|
|
7
6
|
class: "text-danger",
|
|
8
7
|
"aria-hidden": "true"
|
|
9
|
-
},
|
|
8
|
+
}, de = { class: "relative" }, fe = [
|
|
10
9
|
"id",
|
|
11
10
|
"disabled",
|
|
12
11
|
"aria-expanded",
|
|
@@ -14,27 +13,27 @@ var de = ["for"], fe = {
|
|
|
14
13
|
"aria-describedby",
|
|
15
14
|
"aria-invalid",
|
|
16
15
|
"aria-required"
|
|
17
|
-
],
|
|
16
|
+
], pe = ["aria-label"], me = ["name", "value"], he = ["aria-label"], ge = { class: "flex h-48 min-h-0 shrink-0 items-stretch justify-center gap-1" }, _e = {
|
|
18
17
|
key: 0,
|
|
19
|
-
class: "mx-
|
|
18
|
+
class: "mx-2 mt-6 h-32 w-px shrink-0 self-center bg-border",
|
|
20
19
|
"aria-hidden": "true"
|
|
21
|
-
},
|
|
20
|
+
}, ve = {
|
|
22
21
|
key: 1,
|
|
23
|
-
class: "mt-6 self-center font-
|
|
22
|
+
class: "mt-6 self-center font-bold text-heading/50",
|
|
24
23
|
"aria-hidden": "true"
|
|
25
|
-
},
|
|
26
|
-
class: "mb-2 text-
|
|
24
|
+
}, ye = ["data-col"], be = {
|
|
25
|
+
class: "mb-2 text-xm font-bold tracking-wider text-heading/50 uppercase",
|
|
27
26
|
"aria-hidden": "true"
|
|
28
|
-
},
|
|
27
|
+
}, xe = ["aria-label", "onKeydown"], Se = { class: "flex w-full flex-col items-center py-20" }, Ce = [
|
|
29
28
|
"data-value",
|
|
30
29
|
"tabindex",
|
|
31
30
|
"aria-selected",
|
|
32
31
|
"aria-disabled",
|
|
33
32
|
"onClick"
|
|
34
|
-
],
|
|
33
|
+
], we = { class: "mt-4 flex shrink-0 justify-center gap-2 border-t border-border pt-4" }, Te = ["disabled"], b = 86399, x = /*@__PURE__*/ l({
|
|
35
34
|
inheritAttrs: !1,
|
|
36
35
|
__name: "AcTimePicker",
|
|
37
|
-
props: /*@__PURE__*/
|
|
36
|
+
props: /*@__PURE__*/ u({
|
|
38
37
|
label: { default: "" },
|
|
39
38
|
placeholder: { default: "Choose time" },
|
|
40
39
|
hourCycle: { default: 24 },
|
|
@@ -71,18 +70,19 @@ var de = ["for"], fe = {
|
|
|
71
70
|
openModifiers: {}
|
|
72
71
|
}),
|
|
73
72
|
emits: ["update:modelValue", "update:open"],
|
|
74
|
-
setup(
|
|
75
|
-
let
|
|
76
|
-
class:
|
|
77
|
-
style:
|
|
78
|
-
})),
|
|
79
|
-
let { class: e, style: t, ...n } =
|
|
73
|
+
setup(l, { expose: u }) {
|
|
74
|
+
let x = l, S = y(l, "modelValue"), C = y(l, "open"), Ee = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/, w = ie(), T = re(), De = r(() => ({
|
|
75
|
+
class: T.class,
|
|
76
|
+
style: T.style
|
|
77
|
+
})), Oe = r(() => {
|
|
78
|
+
let { class: e, style: t, ...n } = T;
|
|
80
79
|
return n;
|
|
81
|
-
}),
|
|
80
|
+
}), E = `${w}-label`, D = `${w}-value`, O = `${w}-msg`, k = `${w}-hint`, A = h(null), j = h(null), M = h(null), N = h({
|
|
82
81
|
left: 0,
|
|
83
|
-
maxHeight: 400
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
maxHeight: 400,
|
|
83
|
+
minWidth: 0
|
|
84
|
+
}), P = h(!1), F = r(() => C.value || P.value), I = r(() => G(S.value)), L = r(() => G(x.min) ?? 0), R = r(() => G(x.max) ?? b), z = r(() => I.value === null ? null : K(I.value)), B = r(() => x.hourCycle === 12), V = r(() => I.value === null ? "" : Ne(I.value)), ke = r(() => [x.hint && k, x.errorMsg && O].filter(Boolean).join(" ") || void 0), Ae = r(() => x.label ? `${x.label}: choose time` : "Choose time"), je = r(() => q(Fe())), H = r(() => {
|
|
85
|
+
let e = z.value, t = e?.h ?? null, n = e?.m ?? null, r = t === null ? 0 : t >= 12 ? 12 : 0, i = [], a = B.value ? [
|
|
86
86
|
0,
|
|
87
87
|
1,
|
|
88
88
|
2,
|
|
@@ -103,25 +103,25 @@ var de = ["for"], fe = {
|
|
|
103
103
|
selected: t,
|
|
104
104
|
cells: a.map((e) => ({
|
|
105
105
|
value: e,
|
|
106
|
-
text: U(
|
|
106
|
+
text: U(B.value ? e % 12 || 12 : e),
|
|
107
107
|
disabled: !J(e * 3600, e * 3600 + 3599)
|
|
108
108
|
}))
|
|
109
109
|
});
|
|
110
|
-
let o = t ??
|
|
110
|
+
let o = t ?? Pe();
|
|
111
111
|
if (i.push({
|
|
112
112
|
unit: "m",
|
|
113
113
|
heading: "Min",
|
|
114
114
|
name: "Minutes",
|
|
115
115
|
selected: n,
|
|
116
|
-
cells: W(0, 59, Math.max(1,
|
|
116
|
+
cells: W(0, 59, Math.max(1, x.minuteStep)).map((e) => {
|
|
117
117
|
let t = o * 3600 + e * 60;
|
|
118
118
|
return {
|
|
119
119
|
value: e,
|
|
120
120
|
text: U(e),
|
|
121
|
-
disabled: !J(t,
|
|
121
|
+
disabled: !J(t, x.showSeconds ? t + 59 : t)
|
|
122
122
|
};
|
|
123
123
|
})
|
|
124
|
-
}),
|
|
124
|
+
}), x.showSeconds) {
|
|
125
125
|
let t = n ?? 0;
|
|
126
126
|
i.push({
|
|
127
127
|
unit: "s",
|
|
@@ -135,7 +135,7 @@ var de = ["for"], fe = {
|
|
|
135
135
|
}))
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return B.value && i.push({
|
|
139
139
|
unit: "p",
|
|
140
140
|
heading: "AM/PM",
|
|
141
141
|
name: "AM or PM",
|
|
@@ -147,7 +147,7 @@ var de = ["for"], fe = {
|
|
|
147
147
|
}, {
|
|
148
148
|
value: 12,
|
|
149
149
|
text: "PM",
|
|
150
|
-
disabled: !J(43200,
|
|
150
|
+
disabled: !J(43200, b)
|
|
151
151
|
}]
|
|
152
152
|
}), i;
|
|
153
153
|
});
|
|
@@ -160,7 +160,7 @@ var de = ["for"], fe = {
|
|
|
160
160
|
return r;
|
|
161
161
|
}
|
|
162
162
|
function G(e) {
|
|
163
|
-
let t = e ?
|
|
163
|
+
let t = e ? Ee.exec(e.trim()) : null;
|
|
164
164
|
if (!t) return null;
|
|
165
165
|
let [n, r, i] = [
|
|
166
166
|
Number(t[1]),
|
|
@@ -176,77 +176,79 @@ var de = ["for"], fe = {
|
|
|
176
176
|
s: e % 60
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Me(e) {
|
|
180
180
|
let { h: t, m: n, s: r } = K(e);
|
|
181
|
-
return
|
|
181
|
+
return x.showSeconds ? `${U(t)}:${U(n)}:${U(r)}` : `${U(t)}:${U(n)}`;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
let { h: t, m: n, s: r } = K(e), i =
|
|
185
|
-
return
|
|
183
|
+
function Ne(e) {
|
|
184
|
+
let { h: t, m: n, s: r } = K(e), i = x.showSeconds ? `${U(n)}:${U(r)}` : U(n);
|
|
185
|
+
return B.value ? `${U(t % 12 || 12)}:${i} ${t >= 12 ? "PM" : "AM"}` : `${U(t)}:${i}`;
|
|
186
186
|
}
|
|
187
187
|
function q(e) {
|
|
188
|
-
return e >=
|
|
188
|
+
return e >= L.value && e <= R.value;
|
|
189
189
|
}
|
|
190
190
|
function J(e, t) {
|
|
191
|
-
return t >=
|
|
191
|
+
return t >= L.value && e <= R.value;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return Math.floor(
|
|
193
|
+
function Pe() {
|
|
194
|
+
return Math.floor(L.value / 3600);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
let e = /* @__PURE__ */ new Date(), t = Math.max(1,
|
|
198
|
-
return e.getHours() * 3600 + n * 60 + (
|
|
196
|
+
function Fe() {
|
|
197
|
+
let e = /* @__PURE__ */ new Date(), t = Math.max(1, x.minuteStep), n = Math.floor(e.getMinutes() / t) * t;
|
|
198
|
+
return e.getHours() * 3600 + n * 60 + (x.showSeconds ? e.getSeconds() : 0);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
if (q(e) &&
|
|
202
|
-
let { h: t } = K(e), n = Math.max(1,
|
|
203
|
-
for (let e = t * 3600; e < (t + 1) * 3600; e += n) if (
|
|
200
|
+
function Ie(e) {
|
|
201
|
+
if (q(e) && Le(e)) return e;
|
|
202
|
+
let { h: t } = K(e), n = Math.max(1, x.minuteStep) * 60, r = [];
|
|
203
|
+
for (let e = t * 3600; e < (t + 1) * 3600; e += n) if (x.showSeconds) for (let t = 0; t < 60; t++) r.push(e + t);
|
|
204
204
|
else r.push(e);
|
|
205
205
|
let i = r.filter(q);
|
|
206
206
|
return i.length ? i.reduce((t, n) => Math.abs(n - e) < Math.abs(t - e) ? n : t) : null;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Le(e) {
|
|
209
209
|
let { m: t, s: n } = K(e);
|
|
210
|
-
return t % Math.max(1,
|
|
210
|
+
return t % Math.max(1, x.minuteStep) === 0 && (x.showSeconds || n === 0);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
let { h: n, m: r, s: i } =
|
|
212
|
+
function Re(e, t) {
|
|
213
|
+
let { h: n, m: r, s: i } = z.value ?? K(Ie(L.value) ?? L.value);
|
|
214
214
|
e === "h" ? n = t : e === "m" ? r = t : e === "s" ? i = t : n = n % 12 + t;
|
|
215
|
-
let a =
|
|
216
|
-
a !== null && (
|
|
215
|
+
let a = Ie(n * 3600 + r * 60 + (x.showSeconds ? i : 0));
|
|
216
|
+
a !== null && (S.value = Me(a));
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
218
|
+
function ze() {
|
|
219
|
+
S.value = Me(Fe()), f(() => Z("smooth"));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
221
|
+
function Be() {
|
|
222
|
+
S.value = null, j.value?.focus();
|
|
223
223
|
}
|
|
224
224
|
function Y() {
|
|
225
|
-
let e =
|
|
225
|
+
let e = j.value;
|
|
226
226
|
if (!e) return;
|
|
227
|
-
let t = e.getBoundingClientRect(), n =
|
|
228
|
-
|
|
227
|
+
let t = e.getBoundingClientRect(), n = M.value?.offsetWidth ?? 240, r = M.value?.offsetHeight ?? 320, i = window.innerHeight - t.bottom - 6 - 8, a = t.top - 6 - 8, o = i < r && a > i, s = Math.max(8, Math.min(t.left, window.innerWidth - n - 8)), c = Math.min(t.width, 448);
|
|
228
|
+
N.value = o ? {
|
|
229
229
|
bottom: window.innerHeight - t.top + 6,
|
|
230
230
|
left: s,
|
|
231
|
-
maxHeight: Math.max(200, a)
|
|
231
|
+
maxHeight: Math.max(200, a),
|
|
232
|
+
minWidth: c
|
|
232
233
|
} : {
|
|
233
234
|
top: t.bottom + 6,
|
|
234
235
|
left: s,
|
|
235
|
-
maxHeight: Math.max(200, i)
|
|
236
|
+
maxHeight: Math.max(200, i),
|
|
237
|
+
minWidth: c
|
|
236
238
|
};
|
|
237
239
|
}
|
|
238
|
-
function
|
|
239
|
-
|
|
240
|
+
function Ve() {
|
|
241
|
+
x.disabled || C.value || (C.value = !0);
|
|
240
242
|
}
|
|
241
243
|
function X(e = !0) {
|
|
242
|
-
|
|
244
|
+
C.value && (C.value = !1, e && j.value?.focus());
|
|
243
245
|
}
|
|
244
|
-
async function
|
|
245
|
-
Y(),
|
|
246
|
+
async function He() {
|
|
247
|
+
Y(), Ze(), await f(), Y(), Z("instant"), We(0);
|
|
246
248
|
}
|
|
247
249
|
function Z(e) {
|
|
248
250
|
let t = e === "smooth" && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
249
|
-
|
|
251
|
+
M.value?.querySelectorAll("[role=listbox]").forEach((e) => {
|
|
250
252
|
let n = e.querySelector("[aria-selected=true]") ?? e.querySelector("[aria-disabled=false]");
|
|
251
253
|
n && e.scrollTo({
|
|
252
254
|
top: n.offsetTop - (e.clientHeight - n.offsetHeight) / 2,
|
|
@@ -254,22 +256,22 @@ var de = ["for"], fe = {
|
|
|
254
256
|
});
|
|
255
257
|
});
|
|
256
258
|
}
|
|
257
|
-
function
|
|
258
|
-
return [...
|
|
259
|
+
function Ue(e) {
|
|
260
|
+
return [...M.value?.querySelectorAll(`[data-col="${e}"] [role=option]`) ?? []];
|
|
259
261
|
}
|
|
260
|
-
function
|
|
261
|
-
let t =
|
|
262
|
+
function We(e) {
|
|
263
|
+
let t = Ue(e);
|
|
262
264
|
(t.find((e) => e.tabIndex === 0) ?? t[0])?.focus({ preventScroll: !0 });
|
|
263
265
|
}
|
|
264
|
-
function
|
|
266
|
+
function Ge(e, t) {
|
|
265
267
|
return (e.cells.find((t) => t.value === e.selected) ?? e.cells.find((e) => !e.disabled)) === t ? 0 : -1;
|
|
266
268
|
}
|
|
267
|
-
function
|
|
268
|
-
n.disabled || (
|
|
269
|
-
Z("smooth"),
|
|
269
|
+
function Ke(e, t, n) {
|
|
270
|
+
n.disabled || (Re(t.unit, n.value), f(() => {
|
|
271
|
+
Z("smooth"), Ue(e).find((e) => e.tabIndex === 0)?.focus({ preventScroll: !0 });
|
|
270
272
|
}));
|
|
271
273
|
}
|
|
272
|
-
function
|
|
274
|
+
function qe(e, t, n) {
|
|
273
275
|
let r = n.cells.filter((e) => !e.disabled);
|
|
274
276
|
if (!r.length) return;
|
|
275
277
|
let i = r.findIndex((e) => e.value === n.selected), a = {
|
|
@@ -283,181 +285,171 @@ var de = ["for"], fe = {
|
|
|
283
285
|
if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
284
286
|
e.preventDefault();
|
|
285
287
|
let n = t + (e.key === "ArrowRight" ? 1 : -1);
|
|
286
|
-
n >= 0 && n <
|
|
288
|
+
n >= 0 && n < H.value.length && We(n);
|
|
287
289
|
return;
|
|
288
290
|
}
|
|
289
291
|
if (e.key === "Enter") {
|
|
290
292
|
e.preventDefault();
|
|
291
293
|
let t = n.cells.find((t) => String(t.value) === e.target.dataset.value);
|
|
292
|
-
t && !t.disabled &&
|
|
294
|
+
t && !t.disabled && Re(n.unit, t.value), X();
|
|
293
295
|
return;
|
|
294
296
|
}
|
|
295
297
|
if (!(e.key in a)) return;
|
|
296
298
|
e.preventDefault();
|
|
297
299
|
let o = r[Math.max(0, Math.min(r.length - 1, a[e.key]))];
|
|
298
|
-
|
|
300
|
+
Ke(t, n, o);
|
|
299
301
|
}
|
|
300
|
-
function
|
|
302
|
+
function Je(e) {
|
|
301
303
|
if (e.key === "Escape") {
|
|
302
304
|
e.preventDefault(), e.stopPropagation(), X();
|
|
303
305
|
return;
|
|
304
306
|
}
|
|
305
|
-
if (e.key !== "Tab" || !
|
|
306
|
-
let t = [...
|
|
307
|
+
if (e.key !== "Tab" || !M.value) return;
|
|
308
|
+
let t = [...M.value.querySelectorAll("button:not([disabled])")].filter((e) => e.tabIndex >= 0);
|
|
307
309
|
if (!t.length) return;
|
|
308
310
|
let n = t[0], r = t[t.length - 1];
|
|
309
311
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
310
312
|
}
|
|
311
|
-
function
|
|
312
|
-
(e.key === "ArrowDown" || e.key === "ArrowUp" && e.altKey) && (e.preventDefault(),
|
|
313
|
+
function Ye(e) {
|
|
314
|
+
(e.key === "ArrowDown" || e.key === "ArrowUp" && e.altKey) && (e.preventDefault(), Ve());
|
|
313
315
|
}
|
|
314
|
-
function
|
|
316
|
+
function Xe(e) {
|
|
315
317
|
let t = e.target;
|
|
316
|
-
|
|
318
|
+
A.value?.contains(t) || M.value?.contains(t) || X(!1);
|
|
317
319
|
}
|
|
318
320
|
function Q(e) {
|
|
319
|
-
e?.target instanceof Node &&
|
|
321
|
+
e?.target instanceof Node && M.value?.contains(e.target) || Y();
|
|
320
322
|
}
|
|
321
|
-
function
|
|
322
|
-
document.addEventListener("pointerdown",
|
|
323
|
+
function Ze() {
|
|
324
|
+
document.addEventListener("pointerdown", Xe, !0), window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q);
|
|
323
325
|
}
|
|
324
326
|
function $() {
|
|
325
|
-
document.removeEventListener("pointerdown",
|
|
327
|
+
document.removeEventListener("pointerdown", Xe, !0), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
|
|
326
328
|
}
|
|
327
|
-
return
|
|
328
|
-
|
|
329
|
-
}),
|
|
329
|
+
return ae(C, (e) => e ? He() : $()), ne(() => {
|
|
330
|
+
C.value && He();
|
|
331
|
+
}), te($), u({ focus: () => j.value?.focus() }), (r, u) => (m(), o("div", d({
|
|
330
332
|
ref_key: "root",
|
|
331
|
-
ref:
|
|
332
|
-
},
|
|
333
|
-
class: ["w-full",
|
|
333
|
+
ref: A
|
|
334
|
+
}, De.value, {
|
|
335
|
+
class: ["w-full", l.disabled && "opacity-50"],
|
|
334
336
|
"data-ac-ds": "",
|
|
335
337
|
"data-testid": "ac-time-picker"
|
|
336
338
|
}), [
|
|
337
|
-
|
|
339
|
+
l.label ? (m(), o("label", {
|
|
338
340
|
key: 0,
|
|
339
|
-
id:
|
|
340
|
-
for: `${
|
|
341
|
+
id: E,
|
|
342
|
+
for: `${v(w)}-trigger`,
|
|
341
343
|
class: "mb-2 flex items-center gap-1 text-base font-medium text-heading"
|
|
342
|
-
}, [
|
|
343
|
-
|
|
344
|
+
}, [s("span", null, _(l.label), 1), l.required ? (m(), o("span", ue, "*")) : a("", !0)], 8, le)) : a("", !0),
|
|
345
|
+
l.hint ? (m(), o("p", {
|
|
344
346
|
key: 1,
|
|
345
|
-
id:
|
|
347
|
+
id: k,
|
|
346
348
|
class: "mb-2 text-base text-muted"
|
|
347
|
-
},
|
|
348
|
-
|
|
349
|
-
id: `${
|
|
349
|
+
}, _(l.hint), 1)) : a("", !0),
|
|
350
|
+
s("div", de, [s("button", d({
|
|
351
|
+
id: `${v(w)}-trigger`,
|
|
350
352
|
ref_key: "trigger",
|
|
351
|
-
ref:
|
|
352
|
-
},
|
|
353
|
+
ref: j
|
|
354
|
+
}, Oe.value, {
|
|
353
355
|
type: "button",
|
|
354
|
-
disabled:
|
|
356
|
+
disabled: l.disabled,
|
|
355
357
|
"aria-haspopup": "dialog",
|
|
356
|
-
"aria-expanded":
|
|
357
|
-
"aria-labelledby":
|
|
358
|
-
"aria-describedby":
|
|
359
|
-
"aria-invalid": !!
|
|
360
|
-
"aria-required":
|
|
358
|
+
"aria-expanded": C.value,
|
|
359
|
+
"aria-labelledby": l.label ? `${E} ${D}` : D,
|
|
360
|
+
"aria-describedby": ke.value,
|
|
361
|
+
"aria-invalid": !!l.errorMsg || void 0,
|
|
362
|
+
"aria-required": l.required || void 0,
|
|
361
363
|
class: ["flex w-full items-center rounded-10 border bg-background text-left text-base font-normal text-heading transition-[color,background-color,border-color,box-shadow] duration-200 outline-none disabled:cursor-not-allowed", [
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
l.size === "small" ? "h-9 pl-3" : "h-10.5 pl-4",
|
|
365
|
+
l.clearable && S.value ? "pr-20" : "pr-10",
|
|
366
|
+
l.disabled ? "" : "cursor-pointer hover:bg-accent-hover",
|
|
367
|
+
l.errorMsg ? ["border-danger/60", F.value && "border-danger shadow-[0_0_0_2px_color-mix(in_srgb,var(--color-danger)_20%,transparent)]"] : F.value ? "focus-ring" : ["border-border", !l.disabled && "hover:border-accent-active"]
|
|
366
368
|
]],
|
|
367
|
-
onClick:
|
|
368
|
-
onKeydown:
|
|
369
|
-
onFocus:
|
|
370
|
-
onBlur:
|
|
371
|
-
}), [
|
|
372
|
-
id:
|
|
373
|
-
class:
|
|
374
|
-
},
|
|
369
|
+
onClick: u[0] ||= (e) => C.value ? X() : Ve(),
|
|
370
|
+
onKeydown: Ye,
|
|
371
|
+
onFocus: u[1] ||= (e) => P.value = !0,
|
|
372
|
+
onBlur: u[2] ||= (e) => P.value = !1
|
|
373
|
+
}), [s("span", {
|
|
374
|
+
id: D,
|
|
375
|
+
class: p(["truncate tabular-nums", !V.value && "text-muted/80"])
|
|
376
|
+
}, _(V.value || S.value || l.placeholder), 3)], 16, fe), s("span", { class: p(["pointer-events-none absolute inset-y-0 flex items-center gap-4 text-muted", l.size === "small" ? "right-3" : "right-4"]) }, [l.clearable && S.value && !l.disabled ? (m(), o("button", {
|
|
375
377
|
key: 0,
|
|
376
378
|
type: "button",
|
|
377
|
-
class: "pointer-events-auto inline-flex
|
|
378
|
-
"aria-label":
|
|
379
|
-
onClick:
|
|
380
|
-
}, [
|
|
379
|
+
class: "pointer-events-auto inline-flex cursor-pointer items-center justify-center rounded-full p-1 transition-colors duration-200 hover:bg-accent-hover hover:text-primary active:bg-accent-active focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
|
|
380
|
+
"aria-label": l.label ? `Clear ${l.label}` : "Clear",
|
|
381
|
+
onClick: Be
|
|
382
|
+
}, [c(v(ce), {
|
|
381
383
|
class: "size-4",
|
|
382
384
|
"aria-hidden": "true"
|
|
383
|
-
})], 8,
|
|
384
|
-
class:
|
|
385
|
+
})], 8, pe)) : a("", !0), c(v(se), {
|
|
386
|
+
class: p(["size-4", C.value && "text-heading"]),
|
|
385
387
|
"aria-hidden": "true"
|
|
386
|
-
}, null, 8, ["class"])])]),
|
|
387
|
-
|
|
388
|
+
}, null, 8, ["class"])], 2)]),
|
|
389
|
+
l.errorMsg ? (m(), o("p", {
|
|
388
390
|
key: 2,
|
|
389
|
-
id:
|
|
390
|
-
class: "mt-1
|
|
391
|
+
id: O,
|
|
392
|
+
class: "mt-1 text-base text-danger-strong",
|
|
391
393
|
role: "alert"
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
"aria-hidden": "true"
|
|
395
|
-
}), ee(" " + v(u.errorMsg), 1)])) : o("", !0),
|
|
396
|
-
u.name ? (h(), s("input", {
|
|
394
|
+
}, _(l.errorMsg), 1)) : a("", !0),
|
|
395
|
+
l.name ? (m(), o("input", {
|
|
397
396
|
key: 3,
|
|
398
397
|
type: "hidden",
|
|
399
|
-
name:
|
|
400
|
-
value:
|
|
401
|
-
}, null, 8,
|
|
402
|
-
(
|
|
398
|
+
name: l.name,
|
|
399
|
+
value: S.value ?? ""
|
|
400
|
+
}, null, 8, me)) : a("", !0),
|
|
401
|
+
(m(), i(t, { to: "body" }, [c(n, {
|
|
403
402
|
"enter-active-class": "transition duration-150 ease-out motion-reduce:transition-opacity",
|
|
404
403
|
"enter-from-class": "opacity-0 scale-95",
|
|
405
404
|
"leave-active-class": "transition duration-100 ease-in",
|
|
406
405
|
"leave-to-class": "opacity-0"
|
|
407
406
|
}, {
|
|
408
|
-
default:
|
|
407
|
+
default: oe(() => [C.value ? (m(), o("div", {
|
|
409
408
|
key: 0,
|
|
410
409
|
ref_key: "panel",
|
|
411
|
-
ref:
|
|
410
|
+
ref: M,
|
|
412
411
|
role: "dialog",
|
|
413
412
|
"aria-modal": "true",
|
|
414
|
-
"aria-label":
|
|
415
|
-
class: "fixed z-[90] flex max-w-[calc(100vw-16px)] flex-col overflow-hidden rounded-
|
|
416
|
-
style:
|
|
417
|
-
top:
|
|
418
|
-
bottom:
|
|
419
|
-
left: `${
|
|
420
|
-
maxHeight: `${
|
|
413
|
+
"aria-label": Ae.value,
|
|
414
|
+
class: "fixed z-[90] flex max-w-[calc(100vw-16px)] flex-col overflow-hidden rounded-10 border border-border bg-surface p-3 shadow-sm",
|
|
415
|
+
style: ee({
|
|
416
|
+
top: N.value.top === void 0 ? void 0 : `${N.value.top}px`,
|
|
417
|
+
bottom: N.value.bottom === void 0 ? void 0 : `${N.value.bottom}px`,
|
|
418
|
+
left: `${N.value.left}px`,
|
|
419
|
+
maxHeight: `${N.value.maxHeight}px`,
|
|
420
|
+
minWidth: `${N.value.minWidth}px`
|
|
421
421
|
}),
|
|
422
422
|
"data-ac-ds": "",
|
|
423
423
|
"data-testid": "ac-time-picker-panel",
|
|
424
|
-
onKeydown:
|
|
425
|
-
}, [
|
|
426
|
-
class: "flex w-14
|
|
424
|
+
onKeydown: Je
|
|
425
|
+
}, [s("div", ge, [(m(!0), o(e, null, g(H.value, (t, n) => (m(), o(e, { key: t.unit }, [t.unit === "p" ? (m(), o("span", _e)) : n > 0 ? (m(), o("span", ve, ":")) : a("", !0), s("div", {
|
|
426
|
+
class: "flex h-full min-w-14 flex-1 flex-col items-center",
|
|
427
427
|
"data-col": n
|
|
428
|
-
}, [
|
|
428
|
+
}, [s("span", be, _(t.heading), 1), s("div", {
|
|
429
429
|
role: "listbox",
|
|
430
|
-
"aria-label":
|
|
431
|
-
class: "relative h-
|
|
432
|
-
onKeydown: (
|
|
433
|
-
}, [
|
|
434
|
-
key:
|
|
430
|
+
"aria-label": t.name,
|
|
431
|
+
class: "relative min-h-0 w-full flex-1 scroll-smooth overflow-y-auto [scrollbar-width:none] motion-reduce:scroll-auto [&::-webkit-scrollbar]:hidden",
|
|
432
|
+
onKeydown: (e) => qe(e, n, t)
|
|
433
|
+
}, [s("div", Se, [(m(!0), o(e, null, g(t.cells, (e) => (m(), o("button", {
|
|
434
|
+
key: e.value,
|
|
435
435
|
type: "button",
|
|
436
|
-
"data-value":
|
|
436
|
+
"data-value": e.value,
|
|
437
437
|
role: "option",
|
|
438
|
-
tabindex:
|
|
439
|
-
"aria-selected":
|
|
440
|
-
"aria-disabled":
|
|
441
|
-
class:
|
|
442
|
-
onClick: (r) =>
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}, " Now ", 8, Oe),
|
|
450
|
-
d[4] ||= c("span", { class: "flex-1" }, null, -1),
|
|
451
|
-
l(e, {
|
|
452
|
-
title: "Done",
|
|
453
|
-
size: "small",
|
|
454
|
-
onClick: d[3] ||= (e) => X()
|
|
455
|
-
})
|
|
456
|
-
])], 44, ve)) : o("", !0)]),
|
|
438
|
+
tabindex: Ge(t, e),
|
|
439
|
+
"aria-selected": e.value === t.selected,
|
|
440
|
+
"aria-disabled": e.disabled,
|
|
441
|
+
class: p(["inline-flex h-10 shrink-0 items-center justify-center rounded-8 tabular-nums transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset motion-reduce:transition-none", [t.unit === "p" ? "w-12 text-xs font-bold" : "w-10 text-base", e.disabled ? "cursor-not-allowed text-muted/50 line-through" : e.value === t.selected ? ["cursor-pointer bg-primary text-white", t.unit !== "p" && "scale-110 font-bold"] : "cursor-pointer text-heading hover:bg-accent-hover hover:font-bold active:bg-accent-active"]]),
|
|
442
|
+
onClick: (r) => Ke(n, t, e)
|
|
443
|
+
}, _(e.text), 11, Ce))), 128))])], 40, xe)], 8, ye)], 64))), 128))]), s("div", we, [s("button", {
|
|
444
|
+
type: "button",
|
|
445
|
+
class: "cursor-pointer rounded-8 bg-accent px-3 py-1.5 text-xs font-medium text-heading transition-colors duration-200 hover:bg-accent-hover active:bg-accent-active focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
446
|
+
disabled: !je.value,
|
|
447
|
+
onClick: ze
|
|
448
|
+
}, " Current time ", 8, Te)])], 44, he)) : a("", !0)]),
|
|
457
449
|
_: 1
|
|
458
450
|
})]))
|
|
459
451
|
], 16));
|
|
460
452
|
}
|
|
461
453
|
});
|
|
462
454
|
//#endregion
|
|
463
|
-
export {
|
|
455
|
+
export { x as default };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export interface Props {
|
|
2
|
-
/** Corner of the screen. On phones (under 640px) toasts span the width at the same
|
|
3
|
-
position?: "
|
|
2
|
+
/** Corner of the screen. `top-right` sits 80px from the top, under an app navbar, as cloud-ui. On phones (under 640px) toasts span the width at the same edge. */
|
|
3
|
+
position?: "top-right" | "top-center" | "bottom-right" | "bottom-center";
|
|
4
4
|
/** How many toasts show at once (phones show at most 3). Newer ones queue behind and their timers wait until they're shown. */
|
|
5
5
|
max?: number;
|
|
6
|
+
/** Shows the shrinking 2px time bar on every toast. A toast's own `progress` option wins. */
|
|
7
|
+
progress?: boolean;
|
|
6
8
|
/** Accessible name of the notification region. */
|
|
7
9
|
label?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
12
|
label: string;
|
|
13
|
+
progress: boolean;
|
|
11
14
|
max: number;
|
|
12
|
-
position: "
|
|
15
|
+
position: "top-right" | "top-center" | "bottom-right" | "bottom-center";
|
|
13
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
17
|
declare const _default: typeof __VLS_export;
|
|
15
18
|
export default _default;
|