@ac-design/design-system 2.3.0 → 2.4.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/dist/lib/compat.css +211 -0
- package/dist/lib/components/AcAppSwitcher.vue.d.ts +1 -1
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/lib/components/AcAreaChart.vue.d.ts +1 -1
- package/dist/lib/components/AcBarChart.vue.d.ts +1 -1
- package/dist/lib/components/AcButton.vue.d.ts +7 -1
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +90 -69
- package/dist/lib/components/AcCellValue.vue.d.ts +3 -3
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/lib/components/AcCheckBox.vue.d.ts +4 -1
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/lib/components/AcCircularProgress.vue.d.ts +1 -1
- package/dist/lib/components/AcCodeEditor.vue.d.ts +12 -0
- package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +240 -207
- package/dist/lib/components/AcColorInput.vue.d.ts +3 -3
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +72 -66
- package/dist/lib/components/AcCostSummary.vue.d.ts +1 -1
- package/dist/lib/components/AcDatePicker.vue.d.ts +14 -7
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +417 -372
- package/dist/lib/components/AcDeleteModal.vue.d.ts +1 -1
- package/dist/lib/components/AcDonutChart.vue.d.ts +2 -2
- package/dist/lib/components/AcDropdown.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcGraphChart.vue.d.ts +2 -2
- package/dist/lib/components/AcInput.vue.d.ts +75 -54
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +253 -89
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +34 -54
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +134 -106
- package/dist/lib/components/AcLineChart.vue.d.ts +1 -1
- package/dist/lib/components/AcMapChart.vue.d.ts +2 -2
- package/dist/lib/components/AcModal.vue.d.ts +1 -1
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +1 -1
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +24 -24
- package/dist/lib/components/AcNumberInput.vue.d.ts +55 -45
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +159 -99
- package/dist/lib/components/AcRadioCard.vue.d.ts +2 -2
- package/dist/lib/components/AcRadioCard.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcSelect.vue.d.ts +35 -6
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +272 -176
- package/dist/lib/components/AcSidePanel.vue.d.ts +1 -1
- package/dist/lib/components/AcSlider.vue.d.ts +2 -2
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/lib/components/AcTable.vue.d.ts +37 -4
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +239 -131
- package/dist/lib/components/AcTagInput.vue.d.ts +22 -3
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +126 -114
- package/dist/lib/components/AcTaintInput.js +5 -0
- package/dist/lib/components/AcTaintInput.vue.d.ts +44 -0
- package/dist/lib/components/AcTaintInput.vue_vue_type_script_setup_true_lang.js +208 -0
- package/dist/lib/components/AcTextarea.vue.d.ts +38 -4
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +113 -53
- package/dist/lib/components/AcTimePicker.vue.d.ts +15 -8
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +102 -70
- package/dist/lib/components/AcTooltip.vue.d.ts +3 -3
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/composables/useToast.d.ts +2 -2
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.js +31 -30
- package/package.json +1 -1
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
34
34
|
onConfirm?: ((itemName: string) => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
36
|
title: string;
|
|
37
|
-
loading: boolean;
|
|
38
37
|
message: string;
|
|
38
|
+
loading: boolean;
|
|
39
39
|
confirmText: string;
|
|
40
40
|
itemName: string;
|
|
41
41
|
detail: string;
|
|
@@ -58,10 +58,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
58
58
|
value: ChartAccessor<number>;
|
|
59
59
|
description: string;
|
|
60
60
|
height: number;
|
|
61
|
-
loading: boolean;
|
|
62
61
|
animation: boolean;
|
|
63
|
-
index: ChartAccessor<string>;
|
|
64
62
|
tooltip: boolean;
|
|
63
|
+
loading: boolean;
|
|
64
|
+
index: ChartAccessor<string>;
|
|
65
65
|
emptyText: string;
|
|
66
66
|
renderer: ChartRenderer;
|
|
67
67
|
categories: Record<string, ChartCategory>;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
34
34
|
variant: "menu" | "panel";
|
|
35
35
|
label: string;
|
|
36
36
|
disabled: boolean;
|
|
37
|
-
align: "start" | "end";
|
|
38
37
|
placement: "bottom" | "top";
|
|
38
|
+
align: "start" | "end";
|
|
39
39
|
menuLabel: string;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import
|
|
1
|
+
import { fixedFrame as e } from "./fixedFrame.js";
|
|
2
|
+
import t from "./AcButton.js";
|
|
3
3
|
import { Teleport as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeModels as u, nextTick as d, normalizeClass as f, normalizeStyle as ee, onBeforeUnmount as te, onMounted as p, onUpdated as m, openBlock as h, provide as g, ref as _, renderSlot as v, toRef as y, unref as b, useId as x, useModel as S, useSlots as C, watch as w, withCtx as T } from "vue";
|
|
4
4
|
import { ChevronDown as E, Ellipsis as D } from "@lucide/vue";
|
|
5
5
|
//#region src/lib/components/AcDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -55,11 +55,11 @@ var O = ["aria-label", "disabled"], k = ["aria-labelledby", "aria-label"], A = "
|
|
|
55
55
|
}
|
|
56
56
|
function X() {
|
|
57
57
|
if (!B || !I.value) return;
|
|
58
|
-
let
|
|
58
|
+
let t = B.getBoundingClientRect(), n = e(), r = `${Math.min(Math.max(t.width, ne[u.variant]), n.width - 16)}px`;
|
|
59
59
|
I.value.style.minWidth = r;
|
|
60
|
-
let { offsetWidth: i, offsetHeight: a } = I.value, o = n.bottom -
|
|
60
|
+
let { offsetWidth: i, offsetHeight: a } = I.value, o = n.bottom - t.bottom - 8 - 8, s = t.top - n.top - 8 - 8, c = u.placement === "top" ? s >= a || s > o : o < a && s > o, l = (u.align === "end" ? t.right - i : t.left) - n.left;
|
|
61
61
|
R.value = !c, L.value = {
|
|
62
|
-
[c ? "bottom" : "top"]: `${c ? n.bottom -
|
|
62
|
+
[c ? "bottom" : "top"]: `${c ? n.bottom - t.top + 8 : t.bottom + 8 - n.top}px`,
|
|
63
63
|
left: `${Math.max(8, Math.min(l, n.width - i - 8))}px`,
|
|
64
64
|
minWidth: r,
|
|
65
65
|
maxHeight: `${Math.max(c ? s : o, 120)}px`
|
|
@@ -108,7 +108,7 @@ var O = ["aria-label", "disabled"], k = ["aria-labelledby", "aria-label"], A = "
|
|
|
108
108
|
G(), $(e), e && (await d(), X(), V === "menu" ? I.value?.focus() : q(V), V = "menu");
|
|
109
109
|
}), p(G), m(G), te(() => {
|
|
110
110
|
$(!1), clearTimeout(U);
|
|
111
|
-
}), (
|
|
111
|
+
}), (e, i) => (h(), s("div", {
|
|
112
112
|
ref_key: "root",
|
|
113
113
|
ref: F,
|
|
114
114
|
class: "inline-flex",
|
|
@@ -116,7 +116,7 @@ var O = ["aria-label", "disabled"], k = ["aria-labelledby", "aria-label"], A = "
|
|
|
116
116
|
"data-testid": "ac-dropdown",
|
|
117
117
|
onClick: ae,
|
|
118
118
|
onKeydown: oe
|
|
119
|
-
}, [M.trigger ? v(
|
|
119
|
+
}, [M.trigger ? v(e.$slots, "trigger", { open: j.value }, void 0, void 0, 0) : l.label ? (h(), a(t, {
|
|
120
120
|
key: 1,
|
|
121
121
|
title: l.label,
|
|
122
122
|
color: "white",
|
|
@@ -157,7 +157,7 @@ var O = ["aria-label", "disabled"], k = ["aria-labelledby", "aria-label"], A = "
|
|
|
157
157
|
"data-ac-ds": "",
|
|
158
158
|
"data-testid": "ac-dropdown-menu",
|
|
159
159
|
onKeydown: se
|
|
160
|
-
}, [v(
|
|
160
|
+
}, [v(e.$slots, "default")], 46, k)) : o("", !0)]),
|
|
161
161
|
_: 3
|
|
162
162
|
})]))], 544));
|
|
163
163
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import
|
|
1
|
+
import { fixedFrame as e } from "./fixedFrame.js";
|
|
2
|
+
import t from "./AcButton.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, inject as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, watch as _ } from "vue";
|
|
4
4
|
//#region src/lib/components/AcFormFooter.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var v = { class: "flex min-w-0 items-center gap-2 text-base text-muted" }, y = { class: "ml-auto flex items-center gap-3" }, b = /*@__PURE__*/ c({
|
|
@@ -34,10 +34,10 @@ var v = { class: "flex min-w-0 items-center gap-2 text-base text-muted" }, y = {
|
|
|
34
34
|
}
|
|
35
35
|
function A() {
|
|
36
36
|
if (!w.value || !T.value) return;
|
|
37
|
-
let
|
|
37
|
+
let t = w.value.getBoundingClientRect();
|
|
38
38
|
E.value = {
|
|
39
|
-
left:
|
|
40
|
-
width:
|
|
39
|
+
left: t.left - e().left,
|
|
40
|
+
width: t.width,
|
|
41
41
|
height: T.value.offsetHeight
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -47,7 +47,7 @@ var v = { class: "flex min-w-0 items-center gap-2 text-base text-muted" }, y = {
|
|
|
47
47
|
function M() {
|
|
48
48
|
D?.disconnect(), D = void 0, window.removeEventListener("resize", A);
|
|
49
49
|
}
|
|
50
|
-
return _(() => x.sticky, j, { flush: "post" }), p(j), f(M), (
|
|
50
|
+
return _(() => x.sticky, j, { flush: "post" }), p(j), f(M), (e, n) => (m(), a("div", {
|
|
51
51
|
ref_key: "root",
|
|
52
52
|
ref: w,
|
|
53
53
|
class: u(["mt-4 w-full", [c.sticky === "container" && "sticky bottom-0 z-10", c.sticky !== "viewport" && O.value]]),
|
|
@@ -62,13 +62,13 @@ var v = { class: "flex min-w-0 items-center gap-2 text-base text-muted" }, y = {
|
|
|
62
62
|
left: `${E.value.left}px`,
|
|
63
63
|
width: `${E.value.width}px`
|
|
64
64
|
} : void 0)
|
|
65
|
-
}, [o("div", { class: u(["flex w-full flex-wrap items-center justify-between gap-x-4 gap-y-2", O.value]) }, [o("div", v, [g(
|
|
65
|
+
}, [o("div", { class: u(["flex w-full flex-wrap items-center justify-between gap-x-4 gap-y-2", O.value]) }, [o("div", v, [g(e.$slots, "left")]), o("div", y, [g(e.$slots, "right", {}, () => [c.hideCancel ? i("", !0) : (m(), r(t, {
|
|
66
66
|
key: 0,
|
|
67
67
|
title: c.cancelLabel,
|
|
68
68
|
color: "white",
|
|
69
69
|
disabled: c.loading,
|
|
70
70
|
onClick: n[0] ||= (e) => S("cancel")
|
|
71
|
-
}, null, 8, ["title", "disabled"])), s(
|
|
71
|
+
}, null, 8, ["title", "disabled"])), s(t, {
|
|
72
72
|
title: c.submitLabel,
|
|
73
73
|
type: "submit",
|
|
74
74
|
form: c.form || void 0,
|
|
@@ -102,10 +102,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
102
102
|
description: string;
|
|
103
103
|
height: number;
|
|
104
104
|
direction: "LR" | "TB";
|
|
105
|
-
loading: boolean;
|
|
106
105
|
animation: boolean;
|
|
107
|
-
shape: "circle" | "square";
|
|
108
106
|
tooltip: boolean;
|
|
107
|
+
loading: boolean;
|
|
108
|
+
shape: "circle" | "square";
|
|
109
109
|
emptyText: string;
|
|
110
110
|
links: GraphLink[];
|
|
111
111
|
renderer: ChartRenderer;
|
|
@@ -4,28 +4,56 @@ export interface Props {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
/** Native `name` attribute. */
|
|
6
6
|
name?: string;
|
|
7
|
+
/** Example value shown inside the empty field. */
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
/** Native `autocomplete` hint, e.g. `off`, `email` or `new-password`. Cloud-ui fields passed `off`. */
|
|
10
|
+
autocomplete?: string;
|
|
7
11
|
/** Native input type. `password` adds a show/hide toggle. */
|
|
8
|
-
type?: "text" | "password" | "email" | "number" | "url" | "search";
|
|
12
|
+
type?: "text" | "password" | "email" | "number" | "url" | "search" | "tel" | "date" | "file";
|
|
9
13
|
/** Marks the field required and adds a red asterisk. */
|
|
10
14
|
required?: boolean;
|
|
11
15
|
/** Adds the red asterisk without native `required`, for forms that run their own validation on submit. */
|
|
12
16
|
requiredMark?: boolean;
|
|
17
|
+
/** Error shown under the field when the viewer clears it or leaves it empty, e.g. "Please enter a VPC name". `error-msg` shows when this one doesn't. */
|
|
18
|
+
requiredMessage?: string;
|
|
19
|
+
/** With `required-message`, an empty field emits no `input` or `focusout`, as cloud-ui's v1 AcInput did. */
|
|
20
|
+
silentWhenEmpty?: boolean;
|
|
13
21
|
/** Disables the field. */
|
|
14
22
|
disabled?: boolean;
|
|
15
23
|
/** Read-only field: a muted fill, and "(read only)" after the label. */
|
|
16
24
|
readonly?: boolean;
|
|
25
|
+
/** Text after the label of a read-only field, e.g. "(Read Only)". */
|
|
26
|
+
readonlyText?: string;
|
|
27
|
+
/** Keeps the editable fill on a read-only field, as cloud-ui's v1 AcInput did. */
|
|
28
|
+
plainReadonly?: boolean;
|
|
29
|
+
/** Disables the field without dimming it or changing the cursor, as cloud-ui's v1 AcInput did. */
|
|
30
|
+
plainDisabled?: boolean;
|
|
31
|
+
/** Cloud-ui v1 error look: no field fill while it shows an error, and the message in the base `text-danger` red instead of the AA `-strong` shade. */
|
|
32
|
+
plainError?: boolean;
|
|
33
|
+
/** No gap around `#label-icon` and `#label-extra`, for slot content that brings its own margin. */
|
|
34
|
+
flushLabelSlots?: boolean;
|
|
35
|
+
/** Lays `#prefix` over the field's left padding (a 12–24px box, 10–20px in) and starts the value 40px in, like cloud-ui's v1 `left-icon`. */
|
|
36
|
+
prefixOverlay?: boolean;
|
|
17
37
|
/** Error text under the field. Turns the border and label red and sets `aria-invalid`. */
|
|
18
38
|
errorMsg?: string;
|
|
19
39
|
/** Turns the border red and sets `aria-invalid` without a message, for forms that print their own. */
|
|
20
40
|
invalid?: boolean;
|
|
21
41
|
/** Help text between the label and the field. */
|
|
22
42
|
hint?: string;
|
|
23
|
-
/** `xsmall` 34px, `small` 36px
|
|
24
|
-
size?: "xsmall" | "small" | "normal";
|
|
43
|
+
/** Height: `xs` 26px with 12px text, `xsmall` 34px, `small` 36px, `medium` 38px, `normal` 42px or `large` 50px with 16px text. */
|
|
44
|
+
size?: "xs" | "xsmall" | "small" | "medium" | "normal" | "large";
|
|
45
|
+
/** Field look: `outline` (border on the page fill), `soft` (grey fill, no border), `ghost` (no fill or border until focus) or `none` (bare text, no focus style). */
|
|
46
|
+
variant?: "outline" | "soft" | "ghost" | "none";
|
|
47
|
+
/** Draws a 2px primary halo around the field to point the viewer at it. */
|
|
48
|
+
highlight?: boolean;
|
|
25
49
|
/** Classes for the `<input>` element itself, e.g. `font-mono`. `class` goes on the wrapper. */
|
|
26
50
|
inputClass?: HTMLAttributes["class"];
|
|
51
|
+
/** Keeps the model a string with `type="number"`, instead of the number Vue casts it to. */
|
|
52
|
+
numberAsString?: boolean;
|
|
27
53
|
/** Shows a spinner in the password toggle and disables it, e.g. while `update:showValue` fetches a stored secret. */
|
|
28
54
|
revealing?: boolean;
|
|
55
|
+
/** Fetches a stored password the first time the viewer shows it while the field is empty; the result fills the model. A rejected promise leaves the field masked. */
|
|
56
|
+
reveal?: () => Promise<string>;
|
|
29
57
|
/** Text of a button attached to the right edge, such as "Copy", "Generate" or "Browse". It emits `addon` when clicked. Also its accessible name when `addon-icon-only` is set. */
|
|
30
58
|
addonLabel?: string;
|
|
31
59
|
/** A Lucide icon component shown in the attached button, before `addon-label`. */
|
|
@@ -33,57 +61,50 @@ export interface Props {
|
|
|
33
61
|
/** Shows only `addon-icon` in the attached button; `addon-label` becomes its `aria-label` and tooltip. */
|
|
34
62
|
addonIconOnly?: boolean;
|
|
35
63
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
64
|
+
declare const __VLS_export: <V extends string | number = string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
65
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(Props & {
|
|
66
|
+
modelValue?: V;
|
|
67
|
+
/** Whether a password shows as plain text. Bind `v-model:show-value` to fetch a stored value before it shows. */
|
|
68
|
+
showValue?: boolean;
|
|
69
|
+
}) & {
|
|
70
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
71
|
+
"onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
72
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
73
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
74
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
75
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
76
|
+
onFocusout?: ((event: FocusEvent) => any) | undefined;
|
|
77
|
+
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
78
|
+
onAddon?: ((event: MouseEvent) => any) | undefined;
|
|
79
|
+
"onUpdate:showValue"?: ((value: boolean) => any) | undefined;
|
|
80
|
+
}> & (typeof globalThis extends {
|
|
81
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
82
|
+
} ? P : {});
|
|
83
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
84
|
+
/** Moves focus to the input. */
|
|
85
|
+
focus: () => void | undefined;
|
|
86
|
+
}>) => void;
|
|
87
|
+
attrs: any;
|
|
88
|
+
slots: {
|
|
89
|
+
/** Content inside the field before the value: a 16px icon or fixed text such as `https://`. */
|
|
90
|
+
prefix?: () => unknown;
|
|
91
|
+
/** Content inside the field after the value: a unit such as `Gi` or `%`, or a status icon. */
|
|
92
|
+
suffix?: () => unknown;
|
|
93
|
+
/** Content before the label text, such as a 14px icon. */
|
|
94
|
+
"label-icon"?: () => unknown;
|
|
95
|
+
/** Content after the label text, such as "(Optional)" or an info tooltip. */
|
|
96
|
+
"label-extra"?: () => unknown;
|
|
97
|
+
/** Content under the field and its error, such as a note or a helper button. */
|
|
98
|
+
message?: () => unknown;
|
|
99
|
+
};
|
|
100
|
+
emit: (((evt: "input", event: Event) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "focusout", event: FocusEvent) => void) & ((evt: "keyup", event: KeyboardEvent) => void) & ((evt: "addon", event: MouseEvent) => void)) & (((event: "update:modelValue", value: V) => void) & ((event: "update:showValue", value: boolean) => void));
|
|
101
|
+
}>) => import("vue").VNode & {
|
|
102
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
51
103
|
};
|
|
52
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
53
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
54
|
-
/** Moves focus to the input. */
|
|
55
|
-
focus: () => void | undefined;
|
|
56
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
-
"update:modelValue": (value: string | number) => any;
|
|
58
|
-
addon: (event: MouseEvent) => any;
|
|
59
|
-
"update:showValue": (value: boolean) => any;
|
|
60
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
61
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
62
|
-
onAddon?: ((event: MouseEvent) => any) | undefined;
|
|
63
|
-
"onUpdate:showValue"?: ((value: boolean) => any) | undefined;
|
|
64
|
-
}>, {
|
|
65
|
-
type: "text" | "password" | "email" | "number" | "url" | "search";
|
|
66
|
-
required: boolean;
|
|
67
|
-
label: string;
|
|
68
|
-
disabled: boolean;
|
|
69
|
-
name: string;
|
|
70
|
-
size: "xsmall" | "small" | "normal";
|
|
71
|
-
hint: string;
|
|
72
|
-
invalid: boolean;
|
|
73
|
-
readonly: boolean;
|
|
74
|
-
errorMsg: string;
|
|
75
|
-
requiredMark: boolean;
|
|
76
|
-
inputClass: string | false | Record<string, any> | import("vue").ClassValue[] | null;
|
|
77
|
-
revealing: boolean;
|
|
78
|
-
addonLabel: string;
|
|
79
|
-
addonIcon: Component;
|
|
80
|
-
addonIconOnly: boolean;
|
|
81
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
82
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
83
104
|
declare const _default: typeof __VLS_export;
|
|
84
105
|
export default _default;
|
|
85
|
-
type
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
};
|
|
106
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
107
|
+
[K in keyof T]: T[K];
|
|
108
|
+
} : {
|
|
109
|
+
[K in keyof T as K]: T[K];
|
|
110
|
+
}) & {};
|