@wssto2/vue-core 0.4.15 → 0.4.17
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/{ActionRow.vue_vue_type_script_setup_true_lang-CkvS5W6K.js → ActionRow.vue_vue_type_script_setup_true_lang-DOjn7fqy.js} +1 -1
- package/dist/{Activity-4q26REYj.js → Activity-DnFB6WXf.js} +5 -5
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js} +64 -63
- package/dist/{Changes-CKIuGF8O.js → Changes-DMrQYv2e.js} +4 -4
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js → CollectionPage.vue_vue_type_script_setup_true_lang-CVnZzaBm.js} +5 -5
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-ChS9ULwk.js → DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js} +1 -1
- package/dist/DateField.vue_vue_type_script_setup_true_lang-BIXzNzYo.js +278 -0
- package/dist/{DeadLetters-DPGcQOz1.js → DeadLetters-BF9PS4mA.js} +3 -3
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-noYI9QMk.js → FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js → FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js} +1 -1
- package/dist/{General-CUA9b3ML.js → General-yInbmj6I.js} +8 -8
- package/dist/{NewRolePage-DBfCvDWA.js → NewRolePage-09C3P6fE.js} +3 -3
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js +150 -0
- package/dist/{ProfilePage-On-eAiJ-.js → ProfilePage-CvV44C0m.js} +8 -8
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js → RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Da0M-hen.js → ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-fvAf3rQm.js → RoleEditor.vue_vue_type_script_setup_true_lang-BqWoby16.js} +7 -7
- package/dist/{RolePage-B8oul55j.js → RolePage-DuIFjSKH.js} +8 -8
- package/dist/{RolesPage-DsXVivdj.js → RolesPage-BzqBqils.js} +5 -5
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js → SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D5Cnb4_O.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js} +2 -2
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMBkEmxr.js +81 -0
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-DedKLLQK.js → SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js} +161 -139
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-CirlMdHb.js → SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js} +3 -3
- package/dist/{Sessions-BTyXDEuY.js → Sessions-_qmODKw2.js} +2 -2
- package/dist/{SettingsPage-DHTmMgif.js → SettingsPage-Bz48sO08.js} +9 -9
- package/dist/{SignIn-DU4DE2wj.js → SignIn-DJsTGQ79.js} +5 -5
- package/dist/{SignInPage-BA22kyOp.js → SignInPage-Bb78MIDk.js} +3 -3
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CIv34nRn.js → SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js} +1 -1
- package/dist/{SignIns-C8QAZBaL.js → SignIns-yRjJrf47.js} +2 -2
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js +87 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js +292 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-4wC3c0BM.js +91 -0
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-DrLtIexs.js +187 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js → Timestamp.vue_vue_type_script_setup_true_lang-CU2Y5oYl.js} +1 -1
- package/dist/{UserRecord-D1BNmYp9.js → UserRecord-4L0FrCty.js} +9 -9
- package/dist/{UsersList-ltx3G23-.js → UsersList-ww_-FoAq.js} +9 -9
- package/dist/access/index.js +1 -1
- package/dist/app/application.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/collection/index.js +3 -3
- package/dist/content/index.js +1 -1
- package/dist/{control-CX9BG2UB.js → control-B_Nwtmag.js} +96 -82
- package/dist/{fieldMessages-DV6sESpn.js → fieldMessages-6HVzSDqG.js} +1 -1
- package/dist/form/CardSelectField.vue.d.ts +2 -2
- package/dist/form/ChoiceChips.vue.d.ts +2 -2
- package/dist/form/ComboField.vue.d.ts +2 -2
- package/dist/form/CommandDialog.vue.d.ts +3 -0
- package/dist/form/DateField.vue.d.ts +9 -2
- package/dist/form/DateTimeField.vue.d.ts +9 -2
- package/dist/form/Field.vue.d.ts +1 -1
- package/dist/form/FileField.vue.d.ts +9 -2
- package/dist/form/I18nField.vue.d.ts +9 -2
- package/dist/form/MoneyField.vue.d.ts +9 -2
- package/dist/form/MonthYearField.vue.d.ts +9 -2
- package/dist/form/MultiSelectField.vue.d.ts +2 -2
- package/dist/form/NumberField.vue.d.ts +20 -2
- package/dist/form/PhotoField.vue.d.ts +9 -2
- package/dist/form/SegmentedField.vue.d.ts +2 -2
- package/dist/form/SelectField.vue.d.ts +2 -2
- package/dist/form/SwitchField.vue.d.ts +2 -2
- package/dist/form/TextField.vue.d.ts +9 -2
- package/dist/form/TextareaField.vue.d.ts +9 -2
- package/dist/form/TimeField.vue.d.ts +9 -2
- package/dist/form/field.d.ts +9 -0
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +1176 -977
- package/dist/format/index.js +1 -1
- package/dist/format-D8X4zsx6.js +78 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.js +31 -28
- package/dist/identity/index.js +1 -1
- package/dist/{index-BCw_Ki6z.js → index-C6vCe149.js} +3 -3
- package/dist/{index-Chh4z9xW.js → index-DW9gyWL1.js} +8 -8
- package/dist/{index-DwdVrW6q.js → index-JjALCpwi.js} +13 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/intlLocale.d.ts +2 -0
- package/dist/intlLocale-CeRU44qJ.js +4 -0
- package/dist/notifications/index.js +1 -1
- package/dist/page/index.js +5 -5
- package/dist/phone/index.js +112 -111
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-D1cYQghV.js → rowLayout-BFz4Kdoy.js} +2 -2
- package/dist/{status-cWCAMAmW.js → status-Cz54-7z7.js} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/{useCommand-B-N6HJOz.js → useCommand-YN9EMb7s.js} +41 -38
- package/dist/{useTypedEntry-aTfPBAhw.js → useTypedEntry-C7k7Dyl-.js} +237 -236
- package/package.json +1 -1
- package/dist/DateField.vue_vue_type_script_setup_true_lang-DehwWm78.js +0 -256
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-Dm6FfJ2T.js +0 -126
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-B2d55hrh.js +0 -59
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-B2Z2hy_h.js +0 -65
- package/dist/TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js +0 -270
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-BgIQyYtf.js +0 -69
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-Dr0h-V_8.js +0 -165
- package/dist/format-B8mJm946.js +0 -77
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as B, ref as z, computed as r, onBeforeUnmount as A, defineComponent as C, useSlots as F, openBlock as a, createBlock as L, resolveDynamicComponent as T, unref as t, normalizeClass as b, withCtx as _, createElementBlock as s, renderSlot as f, createCommentVNode as n, createElementVNode as g, createTextVNode as h, toDisplayString as v, createVNode as V, useAttrs as G, useId as K, mergeProps as j, createSlots as P, mergeDefaults as M } from "vue";
|
|
2
2
|
import { useI18n as O } from "vue-i18n";
|
|
3
3
|
import { _ as I } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
4
4
|
import { RouterLink as U } from "vue-router";
|
|
@@ -15,9 +15,9 @@ const W = {
|
|
|
15
15
|
lockedReason: void 0,
|
|
16
16
|
presentation: "control",
|
|
17
17
|
name: void 0
|
|
18
|
-
}, X = Symbol("vue-core.formGroup"), Z = Symbol("vue-core.formRowIndent"), ee = Symbol("vue-core.formEditable"),
|
|
18
|
+
}, X = Symbol("vue-core.formGroup"), Z = Symbol("vue-core.formRowIndent"), ee = Symbol("vue-core.formEditable"), R = () => B(X, null), te = () => B(Z, 0);
|
|
19
19
|
function oe(i) {
|
|
20
|
-
const e =
|
|
20
|
+
const e = R(), d = B(ee, z(!0)), c = Q(), k = r(() => !!e && !!i.disabled && (c.value || i.presentation === "value")), m = r(() => (i.editable ?? !0) && d.value && !k.value), o = r(() => !!e && !!i.disabled && m.value);
|
|
21
21
|
if (e) {
|
|
22
22
|
const u = e.registerLocked(r(() => !!i.disabled && d.value && i.presentation !== "value"));
|
|
23
23
|
A(u);
|
|
@@ -25,7 +25,7 @@ function oe(i) {
|
|
|
25
25
|
return { editable: m, locked: o };
|
|
26
26
|
}
|
|
27
27
|
const le = ["label", "labelHidden", "hint", "error", "required", "editable", "disabled", "lockedReason", "presentation", "name"];
|
|
28
|
-
function
|
|
28
|
+
function Re(i) {
|
|
29
29
|
return Object.fromEntries(le.map((e) => [e, i[e]]));
|
|
30
30
|
}
|
|
31
31
|
const ae = {
|
|
@@ -68,8 +68,8 @@ const ae = {
|
|
|
68
68
|
default:
|
|
69
69
|
return "flex flex-col gap-1";
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
72
|
-
return (
|
|
71
|
+
}), y = r(() => e.labelHidden ? "sr-only" : u.value === "stacked" ? "text-footnote text-content-muted" : e.layout === "value" ? "text-body text-content-muted" : "text-body text-content-strong"), w = r(() => e.value !== void 0 && e.value !== null && e.value !== "");
|
|
72
|
+
return (p, x) => (a(), L(T(e.to ? t(U) : "div"), {
|
|
73
73
|
to: e.to,
|
|
74
74
|
"data-test": "form-row",
|
|
75
75
|
"data-layout": u.value,
|
|
@@ -77,50 +77,50 @@ const ae = {
|
|
|
77
77
|
class: b(["form-row flex min-w-0 items-stretch gap-3 transition-colors duration-motion-fast first:rounded-t-group last:rounded-b-group focus-within:bg-tint-soft/50 [&:first-child>.row-body]:border-t-0", [m[Math.min(k.value, 2)], e.to ? "hover:bg-fill focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus" : ""]])
|
|
78
78
|
}, {
|
|
79
79
|
default: _(() => [
|
|
80
|
-
d.leading ? (
|
|
81
|
-
|
|
80
|
+
d.leading ? (a(), s("div", ae, [
|
|
81
|
+
f(p.$slots, "leading")
|
|
82
82
|
])) : n("", !0),
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
g("div", re, [
|
|
84
|
+
g("div", {
|
|
85
85
|
class: b(["min-w-0", S.value])
|
|
86
86
|
}, [
|
|
87
|
-
e.label || e.sub || d.sub ? (
|
|
87
|
+
e.label || e.sub || d.sub ? (a(), s("div", {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: b([e.labelHidden && !e.sub && !d.sub ? "contents" : u.value === "setting" ? "min-w-min flex-1" : "min-w-0", e.labelAlign === "top" ? "self-start pt-1" : ""])
|
|
90
90
|
}, [
|
|
91
|
-
|
|
91
|
+
g("div", {
|
|
92
92
|
class: b(d["label-trailing"] ? "flex items-center justify-between gap-3" : "")
|
|
93
93
|
}, [
|
|
94
|
-
(
|
|
94
|
+
(a(), L(T(e.for ? "label" : "span"), {
|
|
95
95
|
for: e.for,
|
|
96
|
-
class: b(["break-words", [
|
|
96
|
+
class: b(["break-words", [y.value, e.labelHidden ? "" : e.labelLines ? o[e.labelLines] : "block"]])
|
|
97
97
|
}, {
|
|
98
98
|
default: _(() => [
|
|
99
|
-
h(
|
|
100
|
-
e.required ? (
|
|
99
|
+
h(v(e.label), 1),
|
|
100
|
+
e.required ? (a(), s("span", se, " *")) : n("", !0)
|
|
101
101
|
]),
|
|
102
102
|
_: 1
|
|
103
103
|
}, 8, ["for", "class"])),
|
|
104
|
-
|
|
104
|
+
f(p.$slots, "label-trailing")
|
|
105
105
|
], 2),
|
|
106
|
-
e.sub || d.sub ? (
|
|
106
|
+
e.sub || d.sub ? (a(), s("small", {
|
|
107
107
|
key: 0,
|
|
108
108
|
id: e.subId,
|
|
109
109
|
class: "mt-0.5 block text-footnote text-content-muted"
|
|
110
110
|
}, [
|
|
111
|
-
|
|
112
|
-
h(
|
|
111
|
+
f(p.$slots, "sub", {}, () => [
|
|
112
|
+
h(v(e.sub), 1)
|
|
113
113
|
])
|
|
114
114
|
], 8, ne)) : n("", !0)
|
|
115
115
|
], 2)) : n("", !0),
|
|
116
|
-
|
|
116
|
+
g("div", {
|
|
117
117
|
class: b(["flex min-w-0 items-center gap-2", u.value === "value" ? "justify-end text-right" : u.value === "setting" ? "flex-wrap justify-end text-right" : u.value === "entry" ? "compact:justify-end" : ""])
|
|
118
118
|
}, [
|
|
119
|
-
|
|
120
|
-
w.value ? (
|
|
119
|
+
f(p.$slots, "default", {}, () => [
|
|
120
|
+
w.value ? (a(), s("span", ie, v(e.value), 1)) : n("", !0)
|
|
121
121
|
]),
|
|
122
|
-
|
|
123
|
-
e.to ? (
|
|
122
|
+
f(p.$slots, "trailing"),
|
|
123
|
+
e.to ? (a(), L(t(I), {
|
|
124
124
|
key: 0,
|
|
125
125
|
name: "arrowRightSLine",
|
|
126
126
|
size: 18,
|
|
@@ -128,7 +128,7 @@ const ae = {
|
|
|
128
128
|
})) : n("", !0)
|
|
129
129
|
], 2)
|
|
130
130
|
], 2),
|
|
131
|
-
e.error ? (
|
|
131
|
+
e.error ? (a(), s("p", {
|
|
132
132
|
key: 0,
|
|
133
133
|
id: e.errorId,
|
|
134
134
|
class: "mt-1 flex items-start gap-1.5 text-footnote text-content-destructive",
|
|
@@ -139,7 +139,7 @@ const ae = {
|
|
|
139
139
|
size: 14,
|
|
140
140
|
class: "mt-px shrink-0"
|
|
141
141
|
}),
|
|
142
|
-
h(" " +
|
|
142
|
+
h(" " + v(e.error), 1)
|
|
143
143
|
], 8, de)) : n("", !0)
|
|
144
144
|
])
|
|
145
145
|
]),
|
|
@@ -162,7 +162,10 @@ const ae = {
|
|
|
162
162
|
key: 0,
|
|
163
163
|
class: "text-content-destructive",
|
|
164
164
|
"aria-hidden": "true"
|
|
165
|
-
}, xe =
|
|
165
|
+
}, xe = {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: "flex min-w-0 items-center gap-2"
|
|
168
|
+
}, he = { class: "min-w-0 flex-1" }, ke = ["id"], we = ["id"], Ee = /* @__PURE__ */ C({
|
|
166
169
|
__name: "Field",
|
|
167
170
|
props: /* @__PURE__ */ M({
|
|
168
171
|
label: {},
|
|
@@ -183,111 +186,122 @@ const ae = {
|
|
|
183
186
|
rowLabelAlign: {}
|
|
184
187
|
}, { ...W, value: void 0, prefix: void 0, suffix: void 0, valueStyle: void 0, rowLayout: "entry", rowLabelAlign: "center" }),
|
|
185
188
|
setup(i) {
|
|
186
|
-
const e = i, { t: d } = O(), c = F(), k = G(), m =
|
|
189
|
+
const e = i, { t: d } = O(), c = F(), k = G(), m = R(), { editable: o, locked: u } = oe(e), S = K(), y = r(() => e.name ?? S), w = r(() => `${y.value}-hint`), p = r(() => `${y.value}-error`);
|
|
187
190
|
if (m?.registerField) {
|
|
188
|
-
const
|
|
191
|
+
const l = k["data-field-key"], N = m.registerField(typeof l == "string" ? l : void 0, r(() => e.disabled));
|
|
189
192
|
A(N);
|
|
190
193
|
}
|
|
191
|
-
const
|
|
192
|
-
const
|
|
193
|
-
return
|
|
194
|
-
}),
|
|
195
|
-
const
|
|
196
|
-
return e.labelHidden && (
|
|
194
|
+
const x = r(() => {
|
|
195
|
+
const l = e.value;
|
|
196
|
+
return l == null ? !1 : typeof l == "string" ? l.length > 0 : typeof l == "number" ? !Number.isNaN(l) : !0;
|
|
197
|
+
}), E = r(() => typeof e.value == "boolean" ? e.value ? d("core.form.yes") : d("core.form.no") : e.value), D = r(() => !!m && !o.value && m.hideEmpty.value && !x.value && !c.readonly), q = r(() => [e.hint && o.value ? w.value : null, e.error ? p.value : null].filter(Boolean).join(" ") || void 0), $ = r(() => {
|
|
198
|
+
const l = o.value ? e.rowLayout : e.rowLayout === "stacked" ? "stacked" : "value";
|
|
199
|
+
return e.labelHidden && (l === "entry" || l === "value") ? "stacked" : l;
|
|
197
200
|
}), H = r(
|
|
198
|
-
() => o.value && !u.value && e.required ? { "data-field-required": "true", "data-field-filled":
|
|
201
|
+
() => o.value && !u.value && e.required ? { "data-field-required": "true", "data-field-filled": x.value ? "true" : void 0 } : {}
|
|
199
202
|
);
|
|
200
|
-
return (
|
|
203
|
+
return (l, N) => t(m) && !D.value ? (a(), L(ue, j({ key: 0 }, H.value, {
|
|
201
204
|
label: e.label,
|
|
202
205
|
"label-hidden": e.labelHidden,
|
|
203
|
-
for: t(o) ?
|
|
206
|
+
for: t(o) ? y.value : void 0,
|
|
204
207
|
sub: t(o) ? e.hint : void 0,
|
|
205
208
|
"sub-id": w.value,
|
|
206
209
|
required: t(o) && !t(u) && e.required,
|
|
207
210
|
layout: $.value,
|
|
208
211
|
"label-align": $.value === "entry" ? e.rowLabelAlign : void 0,
|
|
209
212
|
error: t(o) ? e.error : void 0,
|
|
210
|
-
"error-id":
|
|
213
|
+
"error-id": p.value,
|
|
211
214
|
"data-field-locked": t(u) ? "true" : void 0
|
|
212
215
|
}), P({
|
|
213
216
|
default: _(() => [
|
|
214
|
-
|
|
217
|
+
g("div", {
|
|
215
218
|
class: "relative w-full min-w-0",
|
|
216
219
|
title: t(u) ? e.lockedReason : void 0
|
|
217
220
|
}, [
|
|
218
|
-
|
|
221
|
+
g("div", {
|
|
219
222
|
class: b(t(o) ? $.value === "setting" ? "flex min-w-0 flex-col items-end" : $.value === "stacked" ? "flex min-w-0 flex-col items-stretch" : "flex min-w-0 flex-col items-start compact:items-end" : "")
|
|
220
223
|
}, [
|
|
221
|
-
t(o) ?
|
|
222
|
-
id:
|
|
223
|
-
describedby:
|
|
224
|
+
t(o) ? f(l.$slots, "default", {
|
|
225
|
+
id: y.value,
|
|
226
|
+
describedby: q.value,
|
|
224
227
|
invalid: !!e.error,
|
|
225
228
|
required: e.required,
|
|
226
229
|
disabled: e.disabled
|
|
227
|
-
}, void 0, void 0, 0) : t(c).readonly ?
|
|
230
|
+
}, void 0, void 0, 0) : t(c).readonly ? f(l.$slots, "readonly", {}, void 0, void 0, 1) : x.value ? (a(), s("span", {
|
|
228
231
|
key: 2,
|
|
229
232
|
class: b(["block break-words text-body text-content-strong", e.valueStyle === "mono" ? "font-mono" : e.valueStyle === "numeric" ? "tabular-nums" : ""])
|
|
230
233
|
}, [
|
|
231
|
-
e.prefix ? (
|
|
232
|
-
h(
|
|
233
|
-
e.suffix ? (
|
|
234
|
-
], 2)) : (
|
|
234
|
+
e.prefix ? (a(), s("span", fe, v(e.prefix), 1)) : n("", !0),
|
|
235
|
+
h(v(E.value), 1),
|
|
236
|
+
e.suffix ? (a(), s("span", ve, v(e.suffix), 1)) : n("", !0)
|
|
237
|
+
], 2)) : (a(), s("span", me, v(t(d)("core.state.no_value")), 1))
|
|
235
238
|
], 2)
|
|
236
239
|
], 8, ce),
|
|
237
|
-
t(u) && e.lockedReason ? (
|
|
240
|
+
t(u) && e.lockedReason ? (a(), s("span", be, v(e.lockedReason), 1)) : n("", !0)
|
|
238
241
|
]),
|
|
239
242
|
_: 2
|
|
240
243
|
}, [
|
|
241
244
|
t(o) && t(c).trailing ? {
|
|
242
245
|
name: "trailing",
|
|
243
246
|
fn: _(() => [
|
|
244
|
-
|
|
247
|
+
f(l.$slots, "trailing")
|
|
245
248
|
]),
|
|
246
249
|
key: "0"
|
|
247
250
|
} : void 0,
|
|
248
251
|
t(o) && t(c).labelTrailing ? {
|
|
249
252
|
name: "label-trailing",
|
|
250
253
|
fn: _(() => [
|
|
251
|
-
|
|
254
|
+
f(l.$slots, "labelTrailing")
|
|
252
255
|
]),
|
|
253
256
|
key: "1"
|
|
254
257
|
} : void 0
|
|
255
|
-
]), 1040, ["label", "label-hidden", "for", "sub", "sub-id", "required", "layout", "label-align", "error", "error-id", "data-field-locked"])) : t(m) ? n("", !0) : (
|
|
258
|
+
]), 1040, ["label", "label-hidden", "for", "sub", "sub-id", "required", "layout", "label-align", "error", "error-id", "data-field-locked"])) : t(m) ? n("", !0) : (a(), s("div", j({ key: 1 }, H.value, {
|
|
256
259
|
"data-field-error": e.error ? "true" : void 0,
|
|
257
260
|
class: "flex min-w-0 flex-col gap-1"
|
|
258
261
|
}), [
|
|
259
|
-
e.label || t(o) && t(c).labelTrailing ? (
|
|
262
|
+
e.label || t(o) && t(c).labelTrailing ? (a(), s("div", {
|
|
260
263
|
key: 0,
|
|
261
264
|
class: b(e.labelHidden && !(t(o) && t(c).labelTrailing) ? "contents" : "flex items-center justify-between gap-3")
|
|
262
265
|
}, [
|
|
263
|
-
e.label ? (
|
|
266
|
+
e.label ? (a(), s("label", {
|
|
264
267
|
key: 0,
|
|
265
|
-
for: t(o) ?
|
|
268
|
+
for: t(o) ? y.value : void 0,
|
|
266
269
|
class: b(e.labelHidden ? "sr-only" : "text-footnote font-medium text-content-muted")
|
|
267
270
|
}, [
|
|
268
|
-
h(
|
|
269
|
-
t(o) && e.required ? (
|
|
271
|
+
h(v(e.label), 1),
|
|
272
|
+
t(o) && e.required ? (a(), s("span", ge, " *")) : n("", !0)
|
|
270
273
|
], 10, pe)) : n("", !0),
|
|
271
|
-
t(o) ?
|
|
274
|
+
t(o) ? f(l.$slots, "labelTrailing", {}, void 0, void 0, 1) : n("", !0)
|
|
272
275
|
], 2)) : n("", !0),
|
|
273
|
-
t(o) ?
|
|
274
|
-
|
|
275
|
-
|
|
276
|
+
t(o) && t(c).trailing ? (a(), s("div", xe, [
|
|
277
|
+
g("div", he, [
|
|
278
|
+
f(l.$slots, "default", {
|
|
279
|
+
id: y.value,
|
|
280
|
+
describedby: q.value,
|
|
281
|
+
invalid: !!e.error,
|
|
282
|
+
required: e.required,
|
|
283
|
+
disabled: e.disabled
|
|
284
|
+
})
|
|
285
|
+
]),
|
|
286
|
+
f(l.$slots, "trailing")
|
|
287
|
+
])) : t(o) ? f(l.$slots, "default", {
|
|
288
|
+
id: y.value,
|
|
289
|
+
describedby: q.value,
|
|
276
290
|
invalid: !!e.error,
|
|
277
291
|
required: e.required,
|
|
278
292
|
disabled: e.disabled
|
|
279
|
-
}, void 0, void 0,
|
|
280
|
-
key: 3,
|
|
281
|
-
class: b(["text-body", g.value ? "text-content-strong" : "text-content-disabled"])
|
|
282
|
-
}, f(g.value ? `${e.prefix ?? ""}${R.value}${e.suffix ?? ""}` : t(d)("core.state.no_value")), 3)),
|
|
283
|
-
e.hint && t(o) ? (l(), s("p", {
|
|
293
|
+
}, void 0, void 0, 2) : t(c).readonly ? f(l.$slots, "readonly", {}, void 0, void 0, 3) : (a(), s("span", {
|
|
284
294
|
key: 4,
|
|
295
|
+
class: b(["text-body", x.value ? "text-content-strong" : "text-content-disabled"])
|
|
296
|
+
}, v(x.value ? `${e.prefix ?? ""}${E.value}${e.suffix ?? ""}` : t(d)("core.state.no_value")), 3)),
|
|
297
|
+
e.hint && t(o) ? (a(), s("p", {
|
|
298
|
+
key: 5,
|
|
285
299
|
id: w.value,
|
|
286
300
|
class: "text-footnote text-content-muted"
|
|
287
|
-
},
|
|
288
|
-
e.error ? (
|
|
289
|
-
key:
|
|
290
|
-
id:
|
|
301
|
+
}, v(e.hint), 9, ke)) : n("", !0),
|
|
302
|
+
e.error ? (a(), s("p", {
|
|
303
|
+
key: 6,
|
|
304
|
+
id: p.value,
|
|
291
305
|
role: "alert",
|
|
292
306
|
class: "flex items-start gap-1.5 text-footnote text-content-destructive"
|
|
293
307
|
}, [
|
|
@@ -296,23 +310,23 @@ const ae = {
|
|
|
296
310
|
size: 14,
|
|
297
311
|
class: "mt-px shrink-0"
|
|
298
312
|
}),
|
|
299
|
-
h(" " +
|
|
300
|
-
], 8,
|
|
313
|
+
h(" " + v(e.error), 1)
|
|
314
|
+
], 8, we)) : n("", !0)
|
|
301
315
|
], 16, ye));
|
|
302
316
|
}
|
|
303
|
-
}),
|
|
304
|
-
function
|
|
305
|
-
const d = !!
|
|
306
|
-
return r(() => d ? Y({ kind: i, state: e() }) : [
|
|
317
|
+
}), _e = "rounded-control transition-[background-color,box-shadow,opacity] duration-motion-fast ease-motion-standard";
|
|
318
|
+
function He(i, e) {
|
|
319
|
+
const d = !!R();
|
|
320
|
+
return r(() => d ? Y({ kind: i, state: e() }) : [_e, ...J(i, e()).map(([c]) => c)].join(" "));
|
|
307
321
|
}
|
|
308
322
|
export {
|
|
309
|
-
|
|
310
|
-
|
|
323
|
+
Ee as _,
|
|
324
|
+
R as a,
|
|
311
325
|
W as b,
|
|
312
|
-
|
|
326
|
+
He as c,
|
|
313
327
|
ee as d,
|
|
314
328
|
ue as e,
|
|
315
|
-
|
|
329
|
+
Re as f,
|
|
316
330
|
X as g,
|
|
317
331
|
Z as h,
|
|
318
332
|
te as i,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useI18n as f } from "vue-i18n";
|
|
2
2
|
import { a as c } from "./error-CD7x0Jrz.js";
|
|
3
|
-
import { u as m } from "./format-
|
|
3
|
+
import { u as m } from "./format-D8X4zsx6.js";
|
|
4
4
|
import { u as l } from "./describeError-B-NMa--w.js";
|
|
5
5
|
function E() {
|
|
6
6
|
const { t: i, te: u } = f(), a = m(), d = l(), s = (e) => [`errors.${e}`, `core.errors.${e}`].find((t) => u(t));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IconName } from "../icon";
|
|
2
|
-
import { type FieldProps } from "./field";
|
|
2
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
3
3
|
import type { SelectOption } from "./options";
|
|
4
4
|
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -14,7 +14,7 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
14
14
|
}) & Partial<{}>> & import("vue").PublicProps;
|
|
15
15
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
16
16
|
attrs: any;
|
|
17
|
-
slots:
|
|
17
|
+
slots: FieldSlots;
|
|
18
18
|
emit: (evt: "update:modelValue", value: Value) => void;
|
|
19
19
|
}>) => import("vue").VNode & {
|
|
20
20
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldProps } from "./field";
|
|
1
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
2
2
|
import type { SelectOption } from "./options";
|
|
3
3
|
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -10,7 +10,7 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
10
10
|
}) & Partial<{}>> & import("vue").PublicProps;
|
|
11
11
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
12
12
|
attrs: any;
|
|
13
|
-
slots:
|
|
13
|
+
slots: FieldSlots;
|
|
14
14
|
emit: (evt: "update:modelValue", value: Value[]) => void;
|
|
15
15
|
}>) => import("vue").VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ControlWidth } from "../controls";
|
|
2
|
-
import { type FieldProps } from "./field";
|
|
2
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
3
3
|
import type { SelectOption } from "./options";
|
|
4
4
|
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -31,7 +31,7 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
31
31
|
focus: () => void | undefined;
|
|
32
32
|
}>): void;
|
|
33
33
|
attrs: any;
|
|
34
|
-
slots:
|
|
34
|
+
slots: FieldSlots;
|
|
35
35
|
emit: ((evt: "picked", option: SelectOption<Value>) => void) & ((evt: "update:modelValue", value: Value | null) => void);
|
|
36
36
|
}>) => import("vue").VNode & {
|
|
37
37
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -21,6 +21,8 @@ type __VLS_Props = {
|
|
|
21
21
|
subtitle?: string;
|
|
22
22
|
/** What the primary action says: exactly what it does ("Assign"). */
|
|
23
23
|
confirmLabel: string;
|
|
24
|
+
/** Disables the primary action while true (a proposal still loading). The inputs, Cancel and the leave guard work as before, and `run()` does nothing. */
|
|
25
|
+
confirmDisabled?: boolean;
|
|
24
26
|
/** What it says once done; by default "Saved". */
|
|
25
27
|
doneLabel?: string;
|
|
26
28
|
/** What it says while working; by default "Saving…". */
|
|
@@ -51,6 +53,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
51
53
|
subtitle: string;
|
|
52
54
|
fieldLabel: (field: string) => string;
|
|
53
55
|
doneLabel: string;
|
|
56
|
+
confirmDisabled: boolean;
|
|
54
57
|
busyLabel: string;
|
|
55
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
59
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Day, type DisabledDates } from "./date/days";
|
|
2
2
|
import type { QuickPick } from "./date/quickPicks";
|
|
3
|
-
import { type FieldProps } from "./field";
|
|
3
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
4
4
|
/**
|
|
5
5
|
* A calendar day, without a time or a zone: `"2026-09-30"`, or `null`. Typing is the main way in and is forgiving: the
|
|
6
6
|
* app's own format (`30.09.2026.`), `30.9.` (this year), `+7` and `-1` (days from today) and the words for today and
|
|
@@ -22,10 +22,11 @@ type __VLS_Props = FieldProps & {
|
|
|
22
22
|
openOn?: Day;
|
|
23
23
|
quickPicks?: readonly QuickPick[];
|
|
24
24
|
};
|
|
25
|
+
type __VLS_Slots = FieldSlots;
|
|
25
26
|
type __VLS_PublicProps = __VLS_Props & {
|
|
26
27
|
modelValue?: string | null;
|
|
27
28
|
};
|
|
28
|
-
declare const
|
|
29
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
29
30
|
focus: () => void | undefined;
|
|
30
31
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
32
|
"update:modelValue": (value: string | null) => any;
|
|
@@ -48,4 +49,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
49
|
openOn: Day;
|
|
49
50
|
quickPicks: readonly QuickPick[];
|
|
50
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
51
53
|
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Day, type DisabledDates } from "./date/days";
|
|
2
2
|
import type { QuickPick } from "./date/quickPicks";
|
|
3
|
-
import { type FieldProps } from "./field";
|
|
3
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
4
4
|
/**
|
|
5
5
|
* A calendar day and a time on the clock of the user, without a zone: `"2026-09-30T14:35"`, or `null`; turning this
|
|
6
6
|
* wall-clock time into an instant (or back) is the feature's mapping. Typing is the main way in (`15.10.2026. 14:35`,
|
|
@@ -22,10 +22,11 @@ type __VLS_Props = FieldProps & {
|
|
|
22
22
|
minuteStep?: number;
|
|
23
23
|
quickPicks?: readonly QuickPick[];
|
|
24
24
|
};
|
|
25
|
+
type __VLS_Slots = FieldSlots;
|
|
25
26
|
type __VLS_PublicProps = __VLS_Props & {
|
|
26
27
|
modelValue?: string | null;
|
|
27
28
|
};
|
|
28
|
-
declare const
|
|
29
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
29
30
|
focus: () => void | undefined;
|
|
30
31
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
32
|
"update:modelValue": (value: string | null) => any;
|
|
@@ -49,4 +50,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
50
|
quickPicks: readonly QuickPick[];
|
|
50
51
|
minuteStep: number;
|
|
51
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
52
54
|
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
package/dist/form/Field.vue.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ type __VLS_Slots = {
|
|
|
36
36
|
}) => unknown;
|
|
37
37
|
/** A custom read-only presentation (a picked record's card) when `value` is not enough. */
|
|
38
38
|
readonly?: () => unknown;
|
|
39
|
-
/** A row action after the control (a per-row Save). */
|
|
39
|
+
/** A row action after the control (a per-row Save), in a group's row and on a field of its own. */
|
|
40
40
|
trailing?: () => unknown;
|
|
41
41
|
/** At the end of the label's line while editing (the language tabs of `I18nField`). */
|
|
42
42
|
labelTrailing?: () => unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldProps } from "./field";
|
|
1
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
2
2
|
/**
|
|
3
3
|
* A file to upload. The field holds the chosen `File` and checks what it can (type and size) before the form does;
|
|
4
4
|
* the upload itself is the app's (the form's `send` puts the file in a multipart body, or hands it to an uploader).
|
|
@@ -17,10 +17,11 @@ type __VLS_Props = FieldProps & {
|
|
|
17
17
|
maxSize?: number;
|
|
18
18
|
};
|
|
19
19
|
declare function clear(): void;
|
|
20
|
+
type __VLS_Slots = FieldSlots;
|
|
20
21
|
type __VLS_PublicProps = __VLS_Props & {
|
|
21
22
|
modelValue?: File | null;
|
|
22
23
|
};
|
|
23
|
-
declare const
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
24
25
|
clear: typeof clear;
|
|
25
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
27
|
"update:modelValue": (value: File | null) => any;
|
|
@@ -41,4 +42,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
41
42
|
accept: readonly string[];
|
|
42
43
|
maxSize: number;
|
|
43
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
44
46
|
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldProps } from "./field";
|
|
1
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
2
2
|
import { type I18nText } from "./i18nText";
|
|
3
3
|
/**
|
|
4
4
|
* One text in several languages: the title of an advert, a product name. A segment per language sits next to the label,
|
|
@@ -21,10 +21,11 @@ type __VLS_Props = FieldProps & {
|
|
|
21
21
|
placeholder?: string;
|
|
22
22
|
maxLength?: number;
|
|
23
23
|
};
|
|
24
|
+
type __VLS_Slots = Pick<FieldSlots, "trailing">;
|
|
24
25
|
type __VLS_PublicProps = __VLS_Props & {
|
|
25
26
|
modelValue?: I18nText;
|
|
26
27
|
};
|
|
27
|
-
declare const
|
|
28
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
28
29
|
focus: () => void | undefined;
|
|
29
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
31
|
"update:modelValue": (value: I18nText) => any;
|
|
@@ -49,4 +50,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
50
|
multiline: boolean;
|
|
50
51
|
maxLength: number;
|
|
51
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
52
54
|
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ControlWidth } from "../controls";
|
|
2
|
-
import { type FieldProps } from "./field";
|
|
2
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
3
3
|
/**
|
|
4
4
|
* An amount of money: a `NumberField` with two decimals and the currency after the number. The currency is
|
|
5
5
|
* shown as given ("EUR", "€"); the amount is a plain number (what the payload carries is the feature's mapping).
|
|
@@ -12,10 +12,11 @@ type __VLS_Props = FieldProps & {
|
|
|
12
12
|
negative?: boolean;
|
|
13
13
|
width?: Exclude<ControlWidth, "content">;
|
|
14
14
|
};
|
|
15
|
+
type __VLS_Slots = FieldSlots;
|
|
15
16
|
type __VLS_PublicProps = __VLS_Props & {
|
|
16
17
|
modelValue?: number | null;
|
|
17
18
|
};
|
|
18
|
-
declare const
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
19
20
|
focus: () => void | undefined;
|
|
20
21
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
22
|
"update:modelValue": (value: number | null) => any;
|
|
@@ -36,4 +37,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
36
37
|
decimals: number;
|
|
37
38
|
negative: boolean;
|
|
38
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
41
|
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldProps } from "./field";
|
|
1
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
2
2
|
/**
|
|
3
3
|
* A month and a year shown as one date button, kept as two numbers (`month` 1 to 12, `year`), the way a record stores a
|
|
4
4
|
* first registration. The button opens a popover with the year (arrows step it; clicking it opens a grid of twelve years,
|
|
@@ -12,11 +12,12 @@ type __VLS_Props = FieldProps & {
|
|
|
12
12
|
minYear?: number;
|
|
13
13
|
maxYear?: number;
|
|
14
14
|
};
|
|
15
|
+
type __VLS_Slots = FieldSlots;
|
|
15
16
|
type __VLS_PublicProps = __VLS_Props & {
|
|
16
17
|
"month"?: number | null;
|
|
17
18
|
"year"?: number | null;
|
|
18
19
|
};
|
|
19
|
-
declare const
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
21
|
"update:month": (value: number | null) => any;
|
|
21
22
|
"update:year": (value: number | null) => any;
|
|
22
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -36,4 +37,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
36
37
|
minYear: number;
|
|
37
38
|
maxYear: number;
|
|
38
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
41
|
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldProps } from "./field";
|
|
1
|
+
import { type FieldProps, type FieldSlots } from "./field";
|
|
2
2
|
import type { SelectOption } from "./options";
|
|
3
3
|
import { type OptionsSource } from "./useOptions";
|
|
4
4
|
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -15,7 +15,7 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
15
15
|
}) & Partial<{}>> & import("vue").PublicProps;
|
|
16
16
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
17
17
|
attrs: any;
|
|
18
|
-
slots:
|
|
18
|
+
slots: FieldSlots;
|
|
19
19
|
emit: (evt: "update:modelValue", value: Value[]) => void;
|
|
20
20
|
}>) => import("vue").VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|