@indielayer/ui 1.14.5 → 1.15.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/docs/pages/component/avatar/usage.vue +1 -1
- package/docs/pages/component/input/usage.vue +22 -8
- package/docs/pages/component/table/selectable.vue +1 -1
- package/docs/pages/component/table/virtual.vue +2 -1
- package/docs/pages/component/tag/usage.vue +1 -1
- package/docs/pages/component/textarea/usage.vue +22 -8
- package/lib/components/avatar/Avatar.vue2.js +20 -19
- package/lib/components/avatar/theme/Avatar.base.theme.js +9 -12
- package/lib/components/datepicker/Datepicker.vue.js +1 -1
- package/lib/components/drawer/Drawer.vue.js +66 -60
- package/lib/components/input/Input.vue.d.ts +8 -0
- package/lib/components/input/Input.vue.js +84 -69
- package/lib/components/inputFooter/InputFooter.vue.d.ts +13 -2
- package/lib/components/inputFooter/InputFooter.vue.js +35 -19
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +3 -1
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +3 -1
- package/lib/components/popover/Popover.vue.d.ts +1 -1
- package/lib/components/select/Select.vue.d.ts +38 -10
- package/lib/components/select/Select.vue.js +210 -200
- package/lib/components/table/Table.vue.d.ts +55 -19
- package/lib/components/table/Table.vue.js +256 -214
- package/lib/components/table/TableCell.vue.d.ts +9 -0
- package/lib/components/table/TableCell.vue.js +45 -21
- package/lib/components/table/TableHeader.vue.js +14 -14
- package/lib/components/table/theme/TableCell.base.theme.js +3 -3
- package/lib/components/tag/Tag.vue.d.ts +3 -0
- package/lib/components/tag/Tag.vue.js +37 -35
- package/lib/components/textarea/Textarea.vue.d.ts +19 -3
- package/lib/components/textarea/Textarea.vue.js +98 -76
- package/lib/components/textarea/theme/Textarea.base.theme.js +2 -1
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +2 -1
- package/lib/components/upload/Upload.vue.js +91 -86
- package/lib/index.js +1 -1
- package/lib/index.umd.js +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/components/avatar/Avatar.vue +2 -2
- package/src/components/avatar/theme/Avatar.base.theme.ts +0 -5
- package/src/components/datepicker/Datepicker.vue +6 -1
- package/src/components/drawer/Drawer.vue +13 -2
- package/src/components/input/Input.vue +27 -2
- package/src/components/inputFooter/InputFooter.vue +35 -3
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +2 -0
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +2 -0
- package/src/components/select/Select.vue +21 -8
- package/src/components/table/Table.vue +170 -48
- package/src/components/table/TableCell.vue +23 -0
- package/src/components/table/TableHeader.vue +2 -2
- package/src/components/table/theme/TableCell.base.theme.ts +20 -11
- package/src/components/tag/Tag.vue +8 -3
- package/src/components/textarea/Textarea.vue +63 -30
- package/src/components/textarea/theme/Textarea.base.theme.ts +2 -0
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +2 -0
- package/src/components/upload/Upload.vue +12 -2
- package/src/version.ts +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { useColors as
|
|
4
|
-
import { useCommon as
|
|
1
|
+
import { defineComponent as W, useAttrs as X, computed as c, ref as v, watch as D, openBlock as i, createBlock as s, normalizeStyle as G, unref as r, normalizeClass as a, withCtx as J, createElementVNode as w, renderSlot as S, createCommentVNode as m, mergeProps as K, toHandlers as M } from "vue";
|
|
2
|
+
import { useTheme as Q } from "../../composables/useTheme.js";
|
|
3
|
+
import { useColors as U } from "../../composables/useColors.js";
|
|
4
|
+
import { useCommon as k } from "../../composables/useCommon.js";
|
|
5
5
|
import { useInputtable as f } from "../../composables/useInputtable.js";
|
|
6
|
-
import { useInteractive as
|
|
7
|
-
import { eyeIcon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
...
|
|
13
|
-
...
|
|
14
|
-
...
|
|
6
|
+
import { useInteractive as z } from "../../composables/useInteractive.js";
|
|
7
|
+
import { closeIcon as Y, eyeIcon as Z, eyeVisibleIcon as x } from "../../common/icons.js";
|
|
8
|
+
import _ from "../label/Label.vue.js";
|
|
9
|
+
import p from "../icon/Icon.vue.js";
|
|
10
|
+
import ee from "../inputFooter/InputFooter.vue.js";
|
|
11
|
+
const re = { class: "relative" }, oe = ["id", "disabled", "min", "max", "minlength", "maxlength", "step", "dir", "name", "placeholder", "readonly", "type", "value"], ne = {
|
|
12
|
+
...k.props(),
|
|
13
|
+
...U.props("primary"),
|
|
14
|
+
...z.props(),
|
|
15
15
|
...f.props(),
|
|
16
16
|
showPasswordToggle: {
|
|
17
17
|
type: Boolean,
|
|
@@ -34,74 +34,79 @@ const x = { class: "relative" }, _ = ["id", "disabled", "min", "max", "minlength
|
|
|
34
34
|
default: "text"
|
|
35
35
|
},
|
|
36
36
|
step: [Number, String],
|
|
37
|
-
block: Boolean
|
|
38
|
-
|
|
37
|
+
block: Boolean,
|
|
38
|
+
showCounter: Boolean,
|
|
39
|
+
clearable: Boolean
|
|
40
|
+
}, te = {
|
|
39
41
|
name: "XInput",
|
|
40
42
|
validators: {
|
|
41
|
-
...
|
|
43
|
+
...k.validators()
|
|
42
44
|
}
|
|
43
|
-
},
|
|
44
|
-
...
|
|
45
|
-
props:
|
|
45
|
+
}, ge = /* @__PURE__ */ W({
|
|
46
|
+
...te,
|
|
47
|
+
props: ne,
|
|
46
48
|
emits: f.emits(),
|
|
47
|
-
setup(
|
|
48
|
-
const o =
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
setup(C, { expose: I, emit: N }) {
|
|
50
|
+
const o = C, V = N, g = X(), $ = c(() => Object.keys(g).reduce((e, n) => (n.startsWith("data-") && (e[n] = g[n]), e), {})), h = v(null), l = v(o.type);
|
|
51
|
+
D(() => o.type, (e) => {
|
|
52
|
+
l.value = e;
|
|
51
53
|
});
|
|
52
|
-
function
|
|
54
|
+
function B(e) {
|
|
53
55
|
if (!e.target)
|
|
54
56
|
return;
|
|
55
|
-
const
|
|
57
|
+
const n = e.target;
|
|
56
58
|
if (o.type === "number") {
|
|
57
|
-
const
|
|
58
|
-
typeof o.min < "u" &&
|
|
59
|
+
const u = Number(n.value);
|
|
60
|
+
typeof o.min < "u" && u < Number(o.min) && (n.value = o.min.toString()), typeof o.max < "u" && u > Number(o.max) && (n.value = o.max.toString());
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
+
function L() {
|
|
64
|
+
l.value = l.value === "password" ? "text" : "password";
|
|
63
65
|
}
|
|
64
|
-
const { focus: b, blur:
|
|
65
|
-
errorInternal:
|
|
66
|
-
hideFooterInternal:
|
|
67
|
-
isInsideForm:
|
|
68
|
-
inputListeners:
|
|
69
|
-
reset:
|
|
70
|
-
validate:
|
|
71
|
-
setError:
|
|
72
|
-
} = f(o, { focus: b, emit:
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
const R = c(() => o.clearable && o.modelValue !== ""), { focus: b, blur: P } = z(h), {
|
|
67
|
+
errorInternal: d,
|
|
68
|
+
hideFooterInternal: T,
|
|
69
|
+
isInsideForm: q,
|
|
70
|
+
inputListeners: A,
|
|
71
|
+
reset: y,
|
|
72
|
+
validate: E,
|
|
73
|
+
setError: F
|
|
74
|
+
} = f(o, { focus: b, emit: V }), j = c(() => {
|
|
75
|
+
const e = o.modelValue;
|
|
76
|
+
return e ? String(e).length : 0;
|
|
77
|
+
}), { styles: H, classes: t, className: O } = Q("Input", {}, o, { errorInternal: d });
|
|
78
|
+
return I({ focus: b, blur: P, reset: y, validate: E, setError: F }), (e, n) => (i(), s(_, {
|
|
79
|
+
style: G(r(H)),
|
|
75
80
|
block: e.block,
|
|
76
81
|
disabled: e.disabled,
|
|
77
82
|
required: e.required,
|
|
78
|
-
"is-inside-form": r(
|
|
83
|
+
"is-inside-form": r(q),
|
|
79
84
|
label: e.label,
|
|
80
85
|
class: a([
|
|
81
|
-
r(
|
|
82
|
-
r(
|
|
86
|
+
r(O),
|
|
87
|
+
r(t).wrapper
|
|
83
88
|
]),
|
|
84
89
|
tooltip: e.tooltip
|
|
85
90
|
}, {
|
|
86
|
-
default:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
e.iconLeft || e.icon ? (
|
|
91
|
+
default: J(() => [
|
|
92
|
+
w("div", re, [
|
|
93
|
+
S(e.$slots, "prefix", {}, () => [
|
|
94
|
+
e.iconLeft || e.icon ? (i(), s(p, {
|
|
90
95
|
key: 0,
|
|
91
96
|
size: e.size,
|
|
92
97
|
icon: e.iconLeft || e.icon,
|
|
93
|
-
class: a(["ml-2 left-1", r(
|
|
94
|
-
}, null, 8, ["size", "icon", "class"])) :
|
|
98
|
+
class: a(["ml-2 left-1", r(t).icon])
|
|
99
|
+
}, null, 8, ["size", "icon", "class"])) : m("", !0)
|
|
95
100
|
]),
|
|
96
|
-
|
|
101
|
+
w("input", K({
|
|
97
102
|
id: e.id,
|
|
98
103
|
ref_key: "elRef",
|
|
99
|
-
ref:
|
|
104
|
+
ref: h,
|
|
100
105
|
class: [
|
|
101
|
-
r(
|
|
106
|
+
r(t).input,
|
|
102
107
|
e.type === "password" ? "pr-10" : "",
|
|
103
108
|
// error
|
|
104
|
-
r(
|
|
109
|
+
r(d) ? "border-error-500 dark:border-error-400 focus:outline-error-500" : "focus:outline-[color:var(--x-input-border)]",
|
|
105
110
|
{
|
|
106
111
|
"!pl-10": e.iconLeft || e.icon,
|
|
107
112
|
"!pr-10": e.iconRight
|
|
@@ -117,34 +122,44 @@ const x = { class: "relative" }, _ = ["id", "disabled", "min", "max", "minlength
|
|
|
117
122
|
name: e.name,
|
|
118
123
|
placeholder: e.placeholder,
|
|
119
124
|
readonly: e.readonly,
|
|
120
|
-
type:
|
|
125
|
+
type: l.value,
|
|
121
126
|
value: typeof e.modelValue < "u" ? e.modelValue : ""
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
}, $.value, M(r(A), !0), { onChange: B }), null, 16, oe),
|
|
128
|
+
S(e.$slots, "suffix", {}, () => [
|
|
129
|
+
R.value ? (i(), s(p, {
|
|
125
130
|
key: 0,
|
|
126
131
|
size: e.size,
|
|
127
|
-
icon:
|
|
128
|
-
class: a(["mr-2 right-1", r(
|
|
129
|
-
|
|
132
|
+
icon: r(Y),
|
|
133
|
+
class: a(["mr-2 right-1 cursor-pointer", r(t).icon]),
|
|
134
|
+
onClick: n[0] || (n[0] = (u) => r(y)())
|
|
135
|
+
}, null, 8, ["size", "icon", "class"])) : m("", !0),
|
|
136
|
+
e.iconRight ? (i(), s(p, {
|
|
130
137
|
key: 1,
|
|
131
138
|
size: e.size,
|
|
132
|
-
icon:
|
|
133
|
-
class: a(["mr-2 right-1
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
icon: e.iconRight,
|
|
140
|
+
class: a(["mr-2 right-1", r(t).icon])
|
|
141
|
+
}, null, 8, ["size", "icon", "class"])) : e.type === "password" && e.showPasswordToggle ? (i(), s(p, {
|
|
142
|
+
key: 2,
|
|
143
|
+
size: e.size,
|
|
144
|
+
icon: l.value === "password" ? r(Z) : r(x),
|
|
145
|
+
class: a(["mr-2 right-1 cursor-pointer", r(t).icon]),
|
|
146
|
+
onClick: n[1] || (n[1] = (u) => L())
|
|
147
|
+
}, null, 8, ["size", "icon", "class"])) : m("", !0)
|
|
136
148
|
])
|
|
137
149
|
]),
|
|
138
|
-
r(
|
|
150
|
+
r(T) ? m("", !0) : (i(), s(ee, {
|
|
139
151
|
key: 0,
|
|
140
|
-
error: r(
|
|
141
|
-
helper: e.helper
|
|
142
|
-
|
|
152
|
+
error: r(d),
|
|
153
|
+
helper: e.helper,
|
|
154
|
+
"character-count": j.value,
|
|
155
|
+
"max-characters": e.maxlength,
|
|
156
|
+
"show-counter": e.showCounter
|
|
157
|
+
}, null, 8, ["error", "helper", "character-count", "max-characters", "show-counter"]))
|
|
143
158
|
]),
|
|
144
159
|
_: 3
|
|
145
160
|
}, 8, ["style", "block", "disabled", "required", "is-inside-form", "label", "class", "tooltip"]));
|
|
146
161
|
}
|
|
147
162
|
});
|
|
148
163
|
export {
|
|
149
|
-
|
|
164
|
+
ge as default
|
|
150
165
|
};
|
|
@@ -3,16 +3,27 @@ import { type ThemeComponent } from '../../composables/useTheme';
|
|
|
3
3
|
declare const inputFooterProps: {
|
|
4
4
|
helper: StringConstructor;
|
|
5
5
|
error: StringConstructor;
|
|
6
|
+
characterCount: NumberConstructor;
|
|
7
|
+
maxCharacters: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
showCounter: BooleanConstructor;
|
|
6
9
|
};
|
|
7
10
|
export type InputFooterProps = ExtractPublicPropTypes<typeof inputFooterProps>;
|
|
8
|
-
type InternalClasses = 'wrapper' | 'helperText' | 'errorText';
|
|
11
|
+
type InternalClasses = 'wrapper' | 'helperText' | 'errorText' | 'container' | 'counter';
|
|
9
12
|
export interface InputFooterTheme extends ThemeComponent<InputFooterProps, InternalClasses> {
|
|
10
13
|
}
|
|
11
14
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
15
|
helper: StringConstructor;
|
|
13
16
|
error: StringConstructor;
|
|
17
|
+
characterCount: NumberConstructor;
|
|
18
|
+
maxCharacters: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
showCounter: BooleanConstructor;
|
|
14
20
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
21
|
helper: StringConstructor;
|
|
16
22
|
error: StringConstructor;
|
|
17
|
-
|
|
23
|
+
characterCount: NumberConstructor;
|
|
24
|
+
maxCharacters: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
showCounter: BooleanConstructor;
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
showCounter: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
29
|
export default _default;
|
|
@@ -1,27 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as v, computed as u, openBlock as a, createElementBlock as s, normalizeClass as n, unref as r, normalizeStyle as f, createElementVNode as y, toDisplayString as l, createCommentVNode as c } from "vue";
|
|
2
|
+
import { useTheme as k } from "../../composables/useTheme.js";
|
|
3
|
+
const N = {
|
|
4
4
|
helper: String,
|
|
5
|
-
error: String
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
error: String,
|
|
6
|
+
characterCount: Number,
|
|
7
|
+
maxCharacters: [Number, String],
|
|
8
|
+
showCounter: Boolean
|
|
9
|
+
}, g = { name: "XInputFooter" }, b = /* @__PURE__ */ v({
|
|
10
|
+
...g,
|
|
11
|
+
props: N,
|
|
12
|
+
setup(i) {
|
|
13
|
+
const e = i, { styles: m, classes: o, className: h } = k("InputFooter", {}, e), p = u(() => e.maxCharacters ? Number(e.maxCharacters) : void 0), C = u(() => e.characterCount === void 0 ? "" : p.value ? `${e.characterCount}/${p.value}` : `${e.characterCount}`), d = u(() => e.error || e.helper);
|
|
14
|
+
return (t, S) => (a(), s("div", {
|
|
15
|
+
class: n([r(h), r(o).wrapper]),
|
|
16
|
+
style: f(r(m))
|
|
14
17
|
}, [
|
|
15
|
-
|
|
18
|
+
d.value || t.showCounter ? (a(), s("div", {
|
|
16
19
|
key: 0,
|
|
17
|
-
class: n(
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
class: n(r(o).container)
|
|
21
|
+
}, [
|
|
22
|
+
y("div", null, [
|
|
23
|
+
t.error ? (a(), s("p", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: n(r(o).errorText)
|
|
26
|
+
}, l(t.error), 3)) : t.helper ? (a(), s("p", {
|
|
27
|
+
key: 1,
|
|
28
|
+
class: n(r(o).helperText)
|
|
29
|
+
}, l(t.helper), 3)) : c("", !0)
|
|
30
|
+
]),
|
|
31
|
+
t.showCounter ? (a(), s("p", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: n(r(o).counter),
|
|
34
|
+
role: "status",
|
|
35
|
+
"aria-live": "polite"
|
|
36
|
+
}, l(C.value), 3)) : c("", !0)
|
|
37
|
+
], 2)) : c("", !0)
|
|
22
38
|
], 6));
|
|
23
39
|
}
|
|
24
40
|
});
|
|
25
41
|
export {
|
|
26
|
-
|
|
42
|
+
b as default
|
|
27
43
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "text-xs mt-1",
|
|
4
|
+
container: "flex justify-between items-start gap-2",
|
|
4
5
|
helperText: "text-secondary-500 dark:text-secondary-400",
|
|
5
|
-
errorText: "text-error-500 dark:text-error-400"
|
|
6
|
+
errorText: "text-error-500 dark:text-error-400",
|
|
7
|
+
counter: "text-secondary-500 dark:text-secondary-400 whitespace-nowrap"
|
|
6
8
|
}
|
|
7
9
|
}, t = e;
|
|
8
10
|
export {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "text-xs mt-1",
|
|
4
|
+
container: "flex justify-between items-start gap-2",
|
|
4
5
|
helperText: "text-secondary-500 dark:text-secondary-400",
|
|
5
|
-
errorText: "text-error-500 dark:text-error-400"
|
|
6
|
+
errorText: "text-error-500 dark:text-error-400",
|
|
7
|
+
counter: "text-secondary-500 dark:text-secondary-400 whitespace-nowrap"
|
|
6
8
|
}
|
|
7
9
|
}, t = e;
|
|
8
10
|
export {
|
|
@@ -182,11 +182,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
182
182
|
show: number;
|
|
183
183
|
hide: number;
|
|
184
184
|
};
|
|
185
|
+
container: string | boolean | Record<string, any>;
|
|
185
186
|
positioningDisabled: boolean;
|
|
186
187
|
placement: Placement;
|
|
187
188
|
triggers: TriggerEvent[];
|
|
188
189
|
hideArrow: boolean;
|
|
189
|
-
container: string | boolean | Record<string, any>;
|
|
190
190
|
strategy: "absolute" | "fixed";
|
|
191
191
|
autoHide: boolean | ((event: Event) => boolean);
|
|
192
192
|
shown: boolean;
|
|
@@ -170,8 +170,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
170
170
|
hideFooter: boolean;
|
|
171
171
|
rules: unknown[];
|
|
172
172
|
skipFormRegistry: boolean;
|
|
173
|
+
clearable: boolean;
|
|
173
174
|
showPasswordToggle: boolean;
|
|
174
175
|
dir: "rtl" | "ltr";
|
|
176
|
+
showCounter: boolean;
|
|
175
177
|
}> & Omit<{
|
|
176
178
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
177
179
|
readonly disabled: boolean;
|
|
@@ -187,8 +189,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
187
189
|
readonly hideFooter: boolean;
|
|
188
190
|
readonly rules: unknown[];
|
|
189
191
|
readonly skipFormRegistry: boolean;
|
|
192
|
+
readonly clearable: boolean;
|
|
190
193
|
readonly showPasswordToggle: boolean;
|
|
191
194
|
readonly dir: "rtl" | "ltr";
|
|
195
|
+
readonly showCounter: boolean;
|
|
192
196
|
readonly error?: string | undefined;
|
|
193
197
|
readonly name?: string | undefined;
|
|
194
198
|
readonly icon?: string | undefined;
|
|
@@ -229,6 +233,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
229
233
|
};
|
|
230
234
|
step: (StringConstructor | NumberConstructor)[];
|
|
231
235
|
block: BooleanConstructor;
|
|
236
|
+
showCounter: BooleanConstructor;
|
|
237
|
+
clearable: BooleanConstructor;
|
|
232
238
|
modelValue: {
|
|
233
239
|
readonly type: PropType<string | number | boolean | object | any[] | undefined>;
|
|
234
240
|
readonly default: undefined;
|
|
@@ -269,7 +275,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
269
275
|
};
|
|
270
276
|
}>> & Readonly<{
|
|
271
277
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
272
|
-
}>, "disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "showPasswordToggle" | "dir">;
|
|
278
|
+
}>, "disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "clearable" | "showPasswordToggle" | "dir" | "showCounter">;
|
|
273
279
|
$attrs: {
|
|
274
280
|
[x: string]: unknown;
|
|
275
281
|
};
|
|
@@ -307,6 +313,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
307
313
|
};
|
|
308
314
|
step: (StringConstructor | NumberConstructor)[];
|
|
309
315
|
block: BooleanConstructor;
|
|
316
|
+
showCounter: BooleanConstructor;
|
|
317
|
+
clearable: BooleanConstructor;
|
|
310
318
|
modelValue: {
|
|
311
319
|
readonly type: PropType<string | number | boolean | object | any[] | undefined>;
|
|
312
320
|
readonly default: undefined;
|
|
@@ -368,8 +376,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
368
376
|
hideFooter: boolean;
|
|
369
377
|
rules: unknown[];
|
|
370
378
|
skipFormRegistry: boolean;
|
|
379
|
+
clearable: boolean;
|
|
371
380
|
showPasswordToggle: boolean;
|
|
372
381
|
dir: "rtl" | "ltr";
|
|
382
|
+
showCounter: boolean;
|
|
373
383
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
374
384
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
375
385
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -405,8 +415,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
405
415
|
hideFooter: boolean;
|
|
406
416
|
rules: unknown[];
|
|
407
417
|
skipFormRegistry: boolean;
|
|
418
|
+
clearable: boolean;
|
|
408
419
|
showPasswordToggle: boolean;
|
|
409
420
|
dir: "rtl" | "ltr";
|
|
421
|
+
showCounter: boolean;
|
|
410
422
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
411
423
|
showPasswordToggle: {
|
|
412
424
|
type: BooleanConstructor;
|
|
@@ -430,6 +442,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
430
442
|
};
|
|
431
443
|
step: (StringConstructor | NumberConstructor)[];
|
|
432
444
|
block: BooleanConstructor;
|
|
445
|
+
showCounter: BooleanConstructor;
|
|
446
|
+
clearable: BooleanConstructor;
|
|
433
447
|
modelValue: {
|
|
434
448
|
readonly type: PropType<string | number | boolean | object | any[] | undefined>;
|
|
435
449
|
readonly default: undefined;
|
|
@@ -470,7 +484,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
470
484
|
};
|
|
471
485
|
}>> & Readonly<{
|
|
472
486
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
473
|
-
}>, "blur" | "focus" | "reset" | "validate" | "setError" | ("disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "showPasswordToggle" | "dir")> & import("vue").ShallowUnwrapRef<{
|
|
487
|
+
}>, "blur" | "focus" | "reset" | "validate" | "setError" | ("disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "clearable" | "showPasswordToggle" | "dir" | "showCounter")> & import("vue").ShallowUnwrapRef<{
|
|
474
488
|
focus: () => void | undefined;
|
|
475
489
|
blur: () => void | undefined;
|
|
476
490
|
reset: () => void;
|
|
@@ -499,8 +513,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
499
513
|
hideFooter: boolean;
|
|
500
514
|
rules: unknown[];
|
|
501
515
|
skipFormRegistry: boolean;
|
|
516
|
+
clearable: boolean;
|
|
502
517
|
showPasswordToggle: boolean;
|
|
503
518
|
dir: "rtl" | "ltr";
|
|
519
|
+
showCounter: boolean;
|
|
504
520
|
}> & Omit<{
|
|
505
521
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
506
522
|
readonly disabled: boolean;
|
|
@@ -516,8 +532,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
516
532
|
readonly hideFooter: boolean;
|
|
517
533
|
readonly rules: unknown[];
|
|
518
534
|
readonly skipFormRegistry: boolean;
|
|
535
|
+
readonly clearable: boolean;
|
|
519
536
|
readonly showPasswordToggle: boolean;
|
|
520
537
|
readonly dir: "rtl" | "ltr";
|
|
538
|
+
readonly showCounter: boolean;
|
|
521
539
|
readonly error?: string | undefined;
|
|
522
540
|
readonly name?: string | undefined;
|
|
523
541
|
readonly icon?: string | undefined;
|
|
@@ -558,6 +576,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
558
576
|
};
|
|
559
577
|
step: (StringConstructor | NumberConstructor)[];
|
|
560
578
|
block: BooleanConstructor;
|
|
579
|
+
showCounter: BooleanConstructor;
|
|
580
|
+
clearable: BooleanConstructor;
|
|
561
581
|
modelValue: {
|
|
562
582
|
readonly type: PropType<string | number | boolean | object | any[] | undefined>;
|
|
563
583
|
readonly default: undefined;
|
|
@@ -598,7 +618,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
598
618
|
};
|
|
599
619
|
}>> & Readonly<{
|
|
600
620
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
601
|
-
}>, "disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "showPasswordToggle" | "dir">;
|
|
621
|
+
}>, "disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "clearable" | "showPasswordToggle" | "dir" | "showCounter">;
|
|
602
622
|
$attrs: {
|
|
603
623
|
[x: string]: unknown;
|
|
604
624
|
};
|
|
@@ -636,6 +656,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
636
656
|
};
|
|
637
657
|
step: (StringConstructor | NumberConstructor)[];
|
|
638
658
|
block: BooleanConstructor;
|
|
659
|
+
showCounter: BooleanConstructor;
|
|
660
|
+
clearable: BooleanConstructor;
|
|
639
661
|
modelValue: {
|
|
640
662
|
readonly type: PropType<string | number | boolean | object | any[] | undefined>;
|
|
641
663
|
readonly default: undefined;
|
|
@@ -697,8 +719,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
697
719
|
hideFooter: boolean;
|
|
698
720
|
rules: unknown[];
|
|
699
721
|
skipFormRegistry: boolean;
|
|
722
|
+
clearable: boolean;
|
|
700
723
|
showPasswordToggle: boolean;
|
|
701
724
|
dir: "rtl" | "ltr";
|
|
725
|
+
showCounter: boolean;
|
|
702
726
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
703
727
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
704
728
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -734,8 +758,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
734
758
|
hideFooter: boolean;
|
|
735
759
|
rules: unknown[];
|
|
736
760
|
skipFormRegistry: boolean;
|
|
761
|
+
clearable: boolean;
|
|
737
762
|
showPasswordToggle: boolean;
|
|
738
763
|
dir: "rtl" | "ltr";
|
|
764
|
+
showCounter: boolean;
|
|
739
765
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
740
766
|
showPasswordToggle: {
|
|
741
767
|
type: BooleanConstructor;
|
|
@@ -759,6 +785,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
759
785
|
};
|
|
760
786
|
step: (StringConstructor | NumberConstructor)[];
|
|
761
787
|
block: BooleanConstructor;
|
|
788
|
+
showCounter: BooleanConstructor;
|
|
789
|
+
clearable: BooleanConstructor;
|
|
762
790
|
modelValue: {
|
|
763
791
|
readonly type: PropType<string | number | boolean | object | any[] | undefined>;
|
|
764
792
|
readonly default: undefined;
|
|
@@ -799,7 +827,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
799
827
|
};
|
|
800
828
|
}>> & Readonly<{
|
|
801
829
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
802
|
-
}>, "blur" | "focus" | "reset" | "validate" | "setError" | ("disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "showPasswordToggle" | "dir")> & import("vue").ShallowUnwrapRef<{
|
|
830
|
+
}>, "blur" | "focus" | "reset" | "validate" | "setError" | ("disabled" | "type" | "color" | "size" | "block" | "loading" | "loadingStatus" | "modelValue" | "readonly" | "required" | "validateOnInput" | "hideFooter" | "rules" | "skipFormRegistry" | "clearable" | "showPasswordToggle" | "dir" | "showCounter")> & import("vue").ShallowUnwrapRef<{
|
|
803
831
|
focus: () => void | undefined;
|
|
804
832
|
blur: () => void | undefined;
|
|
805
833
|
reset: () => void;
|
|
@@ -913,11 +941,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
913
941
|
show: number;
|
|
914
942
|
hide: number;
|
|
915
943
|
};
|
|
944
|
+
container: string | boolean | Record<string, any>;
|
|
916
945
|
positioningDisabled: boolean;
|
|
917
946
|
placement: import("floating-vue").Placement;
|
|
918
947
|
triggers: import("floating-vue").TriggerEvent[];
|
|
919
948
|
hideArrow: boolean;
|
|
920
|
-
container: string | boolean | Record<string, any>;
|
|
921
949
|
strategy: "absolute" | "fixed";
|
|
922
950
|
autoHide: boolean | ((event: Event) => boolean);
|
|
923
951
|
shown: boolean;
|
|
@@ -931,11 +959,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
931
959
|
show: number;
|
|
932
960
|
hide: number;
|
|
933
961
|
};
|
|
962
|
+
readonly container: string | boolean | Record<string, any>;
|
|
934
963
|
readonly positioningDisabled: boolean;
|
|
935
964
|
readonly placement: import("floating-vue").Placement;
|
|
936
965
|
readonly triggers: import("floating-vue").TriggerEvent[];
|
|
937
966
|
readonly hideArrow: boolean;
|
|
938
|
-
readonly container: string | boolean | Record<string, any>;
|
|
939
967
|
readonly strategy: "absolute" | "fixed";
|
|
940
968
|
readonly autoHide: boolean | ((event: Event) => boolean);
|
|
941
969
|
readonly shown: boolean;
|
|
@@ -1022,7 +1050,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
1022
1050
|
"onClose-group"?: ((...args: any[]) => any) | undefined;
|
|
1023
1051
|
"onClose-directive"?: ((...args: any[]) => any) | undefined;
|
|
1024
1052
|
"onAuto-hide"?: ((...args: any[]) => any) | undefined;
|
|
1025
|
-
}>, "disabled" | "delay" | "
|
|
1053
|
+
}>, "disabled" | "delay" | "container" | "positioningDisabled" | "placement" | "triggers" | "hideArrow" | "strategy" | "autoHide" | "shown" | "handleResize" | "instantMove" | "eagerMount" | "computeTransformOrigin">;
|
|
1026
1054
|
$attrs: {
|
|
1027
1055
|
[x: string]: unknown;
|
|
1028
1056
|
};
|
|
@@ -1109,11 +1137,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
1109
1137
|
show: number;
|
|
1110
1138
|
hide: number;
|
|
1111
1139
|
};
|
|
1140
|
+
container: string | boolean | Record<string, any>;
|
|
1112
1141
|
positioningDisabled: boolean;
|
|
1113
1142
|
placement: import("floating-vue").Placement;
|
|
1114
1143
|
triggers: import("floating-vue").TriggerEvent[];
|
|
1115
1144
|
hideArrow: boolean;
|
|
1116
|
-
container: string | boolean | Record<string, any>;
|
|
1117
1145
|
strategy: "absolute" | "fixed";
|
|
1118
1146
|
autoHide: boolean | ((event: Event) => boolean);
|
|
1119
1147
|
shown: boolean;
|
|
@@ -1147,11 +1175,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
1147
1175
|
show: number;
|
|
1148
1176
|
hide: number;
|
|
1149
1177
|
};
|
|
1178
|
+
container: string | boolean | Record<string, any>;
|
|
1150
1179
|
positioningDisabled: boolean;
|
|
1151
1180
|
placement: import("floating-vue").Placement;
|
|
1152
1181
|
triggers: import("floating-vue").TriggerEvent[];
|
|
1153
1182
|
hideArrow: boolean;
|
|
1154
|
-
container: string | boolean | Record<string, any>;
|
|
1155
1183
|
strategy: "absolute" | "fixed";
|
|
1156
1184
|
autoHide: boolean | ((event: Event) => boolean);
|
|
1157
1185
|
shown: boolean;
|
|
@@ -1220,7 +1248,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
1220
1248
|
"onClose-group"?: ((...args: any[]) => any) | undefined;
|
|
1221
1249
|
"onClose-directive"?: ((...args: any[]) => any) | undefined;
|
|
1222
1250
|
"onAuto-hide"?: ((...args: any[]) => any) | undefined;
|
|
1223
|
-
}>, "toggle" | "show" | "hide" | "isOpen" | ("disabled" | "delay" | "
|
|
1251
|
+
}>, "toggle" | "show" | "hide" | "isOpen" | ("disabled" | "delay" | "container" | "positioningDisabled" | "placement" | "triggers" | "hideArrow" | "strategy" | "autoHide" | "shown" | "handleResize" | "instantMove" | "eagerMount" | "computeTransformOrigin")> & import("vue").ShallowUnwrapRef<{
|
|
1224
1252
|
show: () => void;
|
|
1225
1253
|
hide: () => void;
|
|
1226
1254
|
toggle: () => void;
|