@layers.digital/layers-design-system-vue3 1.0.13 → 1.0.15

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.
Files changed (107) hide show
  1. package/dist/components/LLinearProgress/LLinearProgress.vue.d.ts +29 -0
  2. package/dist/helpers/convertIconToSVG.d.ts +1 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/layers-design-system-vue3.cjs +1 -1
  5. package/dist/layers-design-system-vue3.js +21 -16
  6. package/dist/layers-design-system-vue310.cjs +1 -1
  7. package/dist/layers-design-system-vue310.js +3 -3
  8. package/dist/layers-design-system-vue311.cjs +1 -1
  9. package/dist/layers-design-system-vue311.js +21 -13
  10. package/dist/layers-design-system-vue312.cjs +1 -1
  11. package/dist/layers-design-system-vue312.js +2 -46
  12. package/dist/layers-design-system-vue313.cjs +1 -1
  13. package/dist/layers-design-system-vue313.js +13 -2
  14. package/dist/layers-design-system-vue314.cjs +1 -1
  15. package/dist/layers-design-system-vue314.js +9 -6
  16. package/dist/layers-design-system-vue315.cjs +1 -1
  17. package/dist/layers-design-system-vue315.js +40 -21
  18. package/dist/layers-design-system-vue317.cjs +1 -1
  19. package/dist/layers-design-system-vue317.js +7 -2
  20. package/dist/layers-design-system-vue318.cjs +1 -1
  21. package/dist/layers-design-system-vue318.js +17 -36
  22. package/dist/layers-design-system-vue32.cjs +1 -1
  23. package/dist/layers-design-system-vue32.js +3 -3
  24. package/dist/layers-design-system-vue320.cjs +1 -1
  25. package/dist/layers-design-system-vue320.js +1 -1
  26. package/dist/layers-design-system-vue321.cjs +1 -1
  27. package/dist/layers-design-system-vue321.js +46 -2
  28. package/dist/layers-design-system-vue322.cjs +1 -1
  29. package/dist/layers-design-system-vue322.js +2 -24
  30. package/dist/layers-design-system-vue323.cjs +1 -1
  31. package/dist/layers-design-system-vue323.js +2 -2
  32. package/dist/layers-design-system-vue324.cjs +1 -1
  33. package/dist/layers-design-system-vue324.js +1 -1
  34. package/dist/layers-design-system-vue325.cjs +1 -1
  35. package/dist/layers-design-system-vue325.js +24 -2
  36. package/dist/layers-design-system-vue326.cjs +1 -1
  37. package/dist/layers-design-system-vue326.js +2 -1203
  38. package/dist/layers-design-system-vue327.cjs +1 -1
  39. package/dist/layers-design-system-vue327.js +2 -1287
  40. package/dist/layers-design-system-vue328.cjs +1 -1
  41. package/dist/layers-design-system-vue328.js +2 -2
  42. package/dist/layers-design-system-vue329.cjs +1 -1
  43. package/dist/layers-design-system-vue329.js +3 -2
  44. package/dist/layers-design-system-vue33.cjs +1 -1
  45. package/dist/layers-design-system-vue33.js +3 -3
  46. package/dist/layers-design-system-vue330.cjs +1 -38
  47. package/dist/layers-design-system-vue330.js +1107 -27096
  48. package/dist/layers-design-system-vue331.cjs +1 -1
  49. package/dist/layers-design-system-vue331.js +1287 -2
  50. package/dist/layers-design-system-vue332.cjs +1 -1
  51. package/dist/layers-design-system-vue332.js +2 -240
  52. package/dist/layers-design-system-vue333.cjs +1 -9
  53. package/dist/layers-design-system-vue333.js +2 -536
  54. package/dist/layers-design-system-vue334.cjs +38 -12
  55. package/dist/layers-design-system-vue334.js +27139 -1120
  56. package/dist/layers-design-system-vue335.cjs +1 -5
  57. package/dist/layers-design-system-vue335.js +237 -1007
  58. package/dist/layers-design-system-vue336.cjs +12 -13
  59. package/dist/layers-design-system-vue336.js +1102 -1892
  60. package/dist/layers-design-system-vue337.cjs +13 -1
  61. package/dist/layers-design-system-vue337.js +1963 -2
  62. package/dist/layers-design-system-vue339.cjs +1 -1
  63. package/dist/layers-design-system-vue339.js +2 -1737
  64. package/dist/layers-design-system-vue34.cjs +1 -1
  65. package/dist/layers-design-system-vue34.js +4 -4
  66. package/dist/layers-design-system-vue340.cjs +9 -1
  67. package/dist/layers-design-system-vue340.js +489 -2050
  68. package/dist/layers-design-system-vue341.cjs +5 -1
  69. package/dist/layers-design-system-vue341.js +1010 -2
  70. package/dist/layers-design-system-vue343.cjs +1 -1
  71. package/dist/layers-design-system-vue343.js +1737 -2
  72. package/dist/layers-design-system-vue344.cjs +1 -1
  73. package/dist/layers-design-system-vue344.js +2097 -2
  74. package/dist/layers-design-system-vue345.cjs +1 -1
  75. package/dist/layers-design-system-vue345.js +2 -2
  76. package/dist/layers-design-system-vue346.cjs +1 -1
  77. package/dist/layers-design-system-vue346.js +2 -2
  78. package/dist/layers-design-system-vue347.cjs +1 -1
  79. package/dist/layers-design-system-vue347.js +2 -113
  80. package/dist/layers-design-system-vue348.cjs +1 -1
  81. package/dist/layers-design-system-vue348.js +2 -2
  82. package/dist/layers-design-system-vue349.cjs +1 -1
  83. package/dist/layers-design-system-vue349.js +2 -87
  84. package/dist/layers-design-system-vue35.cjs +1 -1
  85. package/dist/layers-design-system-vue35.js +3 -3
  86. package/dist/layers-design-system-vue350.cjs +1 -1
  87. package/dist/layers-design-system-vue350.js +2 -2
  88. package/dist/layers-design-system-vue351.cjs +1 -1
  89. package/dist/layers-design-system-vue351.js +9 -9
  90. package/dist/layers-design-system-vue356.cjs +1 -0
  91. package/dist/layers-design-system-vue356.js +89 -0
  92. package/dist/layers-design-system-vue357.cjs +1 -0
  93. package/dist/layers-design-system-vue357.js +4 -0
  94. package/dist/layers-design-system-vue358.cjs +1 -0
  95. package/dist/layers-design-system-vue358.js +115 -0
  96. package/dist/layers-design-system-vue359.cjs +1 -0
  97. package/dist/layers-design-system-vue359.js +4 -0
  98. package/dist/layers-design-system-vue36.cjs +1 -1
  99. package/dist/layers-design-system-vue36.js +9 -9
  100. package/dist/layers-design-system-vue37.cjs +1 -1
  101. package/dist/layers-design-system-vue37.js +5 -5
  102. package/dist/layers-design-system-vue38.cjs +1 -1
  103. package/dist/layers-design-system-vue38.js +3 -3
  104. package/dist/layers-design-system-vue39.cjs +1 -1
  105. package/dist/layers-design-system-vue39.js +5 -5
  106. package/dist/style.css +1 -1
  107. package/package.json +1 -1
@@ -1,538 +1,4 @@
1
- import { useFormItem as De, useFormItemInputId as Ke, useFormSize as je, useFormDisabled as We, useSizeProp as Ue, UPDATE_MODEL_EVENT as se } from "./layers-design-system-vue334.js";
2
- import { ValidateComponentsMap as Ye, view_default as Xe, hide_default as Ze, ElIcon as A, circle_close_default as qe, iconPropType as xe } from "./layers-design-system-vue335.js";
3
- import { buildProps as Ge, useNamespace as we, isNil_default as Je, useResizeObserver as Qe, debugWarn as Se, NOOP as et, withInstall as tt, fromPairs_default as ot, useEventListener as at, definePropType as te, isString as oe, isClient as nt, isObject as Ce, isNumber as Ie, _export_sfc as st, isFirefox as rt } from "./layers-design-system-vue336.js";
4
- import { defineComponent as ze, useAttrs as lt, useSlots as it, computed as p, shallowRef as X, ref as N, watch as Z, nextTick as F, onMounted as ut, toRef as dt, withDirectives as ct, openBlock as m, createElementBlock as S, mergeProps as ae, unref as t, createCommentVNode as y, Fragment as ne, normalizeClass as b, renderSlot as W, createElementVNode as V, createBlock as I, withCtx as B, resolveDynamicComponent as U, withModifiers as pt, createVNode as ft, toDisplayString as Y, normalizeStyle as vt, vShow as mt, getCurrentInstance as ke } from "vue";
5
- var yt = (a) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(a), ht = (a) => a, bt = ["class", "style"], gt = /^on[A-Z]/, xt = (a = {}) => {
6
- const { excludeListeners: f = !1, excludeKeys: i } = a, o = p(() => ((i == null ? void 0 : i.value) || []).concat(bt)), l = ke();
7
- return l ? p(() => {
8
- var r;
9
- return ot(Object.entries((r = l.proxy) == null ? void 0 : r.$attrs).filter(([u]) => !o.value.includes(u) && !(f && gt.test(u))));
10
- }) : p(() => ({}));
11
- };
12
- function wt(a) {
13
- const f = N();
14
- function i() {
15
- if (a.value == null)
16
- return;
17
- const { selectionStart: l, selectionEnd: r, value: u } = a.value;
18
- if (l == null || r == null)
19
- return;
20
- const x = u.slice(0, Math.max(0, l)), d = u.slice(Math.max(0, r));
21
- f.value = {
22
- selectionStart: l,
23
- selectionEnd: r,
24
- value: u,
25
- beforeTxt: x,
26
- afterTxt: d
27
- };
28
- }
29
- function o() {
30
- if (a.value == null || f.value == null)
31
- return;
32
- const { value: l } = a.value, { beforeTxt: r, afterTxt: u, selectionStart: x } = f.value;
33
- if (r == null || u == null || x == null)
34
- return;
35
- let d = l.length;
36
- if (l.endsWith(u))
37
- d = l.length - u.length;
38
- else if (l.startsWith(r))
39
- d = r.length;
40
- else {
41
- const g = r[x - 1], v = l.indexOf(g, x - 1);
42
- v !== -1 && (d = v + 1);
43
- }
44
- a.value.setSelectionRange(d, d);
45
- }
46
- return [i, o];
47
- }
48
- function St(a, { afterFocus: f, afterBlur: i } = {}) {
49
- const o = ke(), { emit: l } = o, r = X(), u = N(!1), x = (v) => {
50
- u.value || (u.value = !0, l("focus", v), f == null || f());
51
- }, d = (v) => {
52
- var c;
53
- v.relatedTarget && ((c = r.value) != null && c.contains(v.relatedTarget)) || (u.value = !1, l("blur", v), i == null || i());
54
- }, g = () => {
55
- var v;
56
- (v = a.value) == null || v.focus();
57
- };
58
- return Z(r, (v) => {
59
- v && v.setAttribute("tabindex", "-1");
60
- }), at(r, "click", g), {
61
- wrapperRef: r,
62
- isFocused: u,
63
- handleFocus: x,
64
- handleBlur: d
65
- };
66
- }
67
- var w = void 0, Ct = `
68
- height:0 !important;
69
- visibility:hidden !important;
70
- ${rt() ? "" : "overflow:hidden !important;"}
71
- position:absolute !important;
72
- z-index:-1000 !important;
73
- top:0 !important;
74
- right:0 !important;
75
- `, It = [
76
- "letter-spacing",
77
- "line-height",
78
- "padding-top",
79
- "padding-bottom",
80
- "font-family",
81
- "font-weight",
82
- "font-size",
83
- "text-rendering",
84
- "text-transform",
85
- "width",
86
- "text-indent",
87
- "padding-left",
88
- "padding-right",
89
- "border-width",
90
- "box-sizing"
91
- ];
92
- function Et(a) {
93
- const f = window.getComputedStyle(a), i = f.getPropertyValue("box-sizing"), o = Number.parseFloat(f.getPropertyValue("padding-bottom")) + Number.parseFloat(f.getPropertyValue("padding-top")), l = Number.parseFloat(f.getPropertyValue("border-bottom-width")) + Number.parseFloat(f.getPropertyValue("border-top-width"));
94
- return { contextStyle: It.map((u) => `${u}:${f.getPropertyValue(u)}`).join(";"), paddingSize: o, borderSize: l, boxSizing: i };
95
- }
96
- function Ee(a, f = 1, i) {
97
- var o;
98
- w || (w = document.createElement("textarea"), document.body.appendChild(w));
99
- const { paddingSize: l, borderSize: r, boxSizing: u, contextStyle: x } = Et(a);
100
- w.setAttribute("style", `${x};${Ct}`), w.value = a.value || a.placeholder || "";
101
- let d = w.scrollHeight;
102
- const g = {};
103
- u === "border-box" ? d = d + r : u === "content-box" && (d = d - l), w.value = "";
104
- const v = w.scrollHeight - l;
105
- if (Ie(f)) {
106
- let c = v * f;
107
- u === "border-box" && (c = c + l + r), d = Math.max(c, d), g.minHeight = `${c}px`;
108
- }
109
- if (Ie(i)) {
110
- let c = v * i;
111
- u === "border-box" && (c = c + l + r), d = Math.min(c, d);
112
- }
113
- return g.height = `${d}px`, (o = w.parentNode) == null || o.removeChild(w), w = void 0, g;
114
- }
115
- var zt = Ge({
116
- id: {
117
- type: String,
118
- default: void 0
119
- },
120
- size: Ue,
121
- disabled: Boolean,
122
- modelValue: {
123
- type: te([
124
- String,
125
- Number,
126
- Object
127
- ]),
128
- default: ""
129
- },
130
- type: {
131
- type: String,
132
- default: "text"
133
- },
134
- resize: {
135
- type: String,
136
- values: ["none", "both", "horizontal", "vertical"]
137
- },
138
- autosize: {
139
- type: te([Boolean, Object]),
140
- default: !1
141
- },
142
- autocomplete: {
143
- type: String,
144
- default: "off"
145
- },
146
- formatter: {
147
- type: Function
148
- },
149
- parser: {
150
- type: Function
151
- },
152
- placeholder: {
153
- type: String
154
- },
155
- form: {
156
- type: String
157
- },
158
- readonly: {
159
- type: Boolean,
160
- default: !1
161
- },
162
- clearable: {
163
- type: Boolean,
164
- default: !1
165
- },
166
- showPassword: {
167
- type: Boolean,
168
- default: !1
169
- },
170
- showWordLimit: {
171
- type: Boolean,
172
- default: !1
173
- },
174
- suffixIcon: {
175
- type: xe
176
- },
177
- prefixIcon: {
178
- type: xe
179
- },
180
- containerRole: {
181
- type: String,
182
- default: void 0
183
- },
184
- label: {
185
- type: String,
186
- default: void 0
187
- },
188
- tabindex: {
189
- type: [String, Number],
190
- default: 0
191
- },
192
- validateEvent: {
193
- type: Boolean,
194
- default: !0
195
- },
196
- inputStyle: {
197
- type: te([Object, Array, String]),
198
- default: () => ht({})
199
- }
200
- }), kt = {
201
- [se]: (a) => oe(a),
202
- input: (a) => oe(a),
203
- change: (a) => oe(a),
204
- focus: (a) => a instanceof FocusEvent,
205
- blur: (a) => a instanceof FocusEvent,
206
- clear: () => !0,
207
- mouseleave: (a) => a instanceof MouseEvent,
208
- mouseenter: (a) => a instanceof MouseEvent,
209
- keydown: (a) => a instanceof Event,
210
- compositionstart: (a) => a instanceof CompositionEvent,
211
- compositionupdate: (a) => a instanceof CompositionEvent,
212
- compositionend: (a) => a instanceof CompositionEvent
213
- }, Pt = ["role"], Ft = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], Vt = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], Nt = ze({
214
- name: "ElInput",
215
- inheritAttrs: !1
216
- }), Tt = /* @__PURE__ */ ze({
217
- ...Nt,
218
- props: zt,
219
- emits: kt,
220
- setup(a, { expose: f, emit: i }) {
221
- const o = a, l = lt(), r = it(), u = p(() => {
222
- const e = {};
223
- return o.containerRole === "combobox" && (e["aria-haspopup"] = l["aria-haspopup"], e["aria-owns"] = l["aria-owns"], e["aria-expanded"] = l["aria-expanded"]), e;
224
- }), x = p(() => [
225
- o.type === "textarea" ? le.b() : s.b(),
226
- s.m(Pe.value),
227
- s.is("disabled", z.value),
228
- s.is("exceed", Te.value),
229
- {
230
- [s.b("group")]: r.prepend || r.append,
231
- [s.bm("group", "append")]: r.append,
232
- [s.bm("group", "prepend")]: r.prepend,
233
- [s.m("prefix")]: r.prefix || o.prefixIcon,
234
- [s.m("suffix")]: r.suffix || o.suffixIcon || o.clearable || o.showPassword,
235
- [s.bm("suffix", "password-clear")]: K.value && J.value
236
- },
237
- l.class
238
- ]), d = p(() => [
239
- s.e("wrapper"),
240
- s.is("focus", G.value)
241
- ]), g = xt({
242
- excludeKeys: p(() => Object.keys(u.value))
243
- }), { form: v, formItem: c } = De(), { inputId: re } = Ke(o, {
244
- formItemContext: c
245
- }), Pe = je(), z = We(), s = we("input"), le = we("textarea"), L = X(), C = X(), q = N(!1), T = N(!1), O = N(!1), ie = N(), _ = X(o.inputStyle), k = p(() => L.value || C.value), { wrapperRef: Fe, isFocused: G, handleFocus: H, handleBlur: D } = St(k, {
246
- afterBlur() {
247
- var e;
248
- o.validateEvent && ((e = c == null ? void 0 : c.validate) == null || e.call(c, "blur").catch((n) => Se()));
249
- }
250
- }), ue = p(() => {
251
- var e;
252
- return (e = v == null ? void 0 : v.statusIcon) != null ? e : !1;
253
- }), R = p(() => (c == null ? void 0 : c.validateState) || ""), de = p(() => R.value && Ye[R.value]), Ve = p(() => O.value ? Xe : Ze), Ne = p(() => [
254
- l.style,
255
- o.inputStyle
256
- ]), ce = p(() => [
257
- o.inputStyle,
258
- _.value,
259
- { resize: o.resize }
260
- ]), E = p(() => Je(o.modelValue) ? "" : String(o.modelValue)), K = p(() => o.clearable && !z.value && !o.readonly && !!E.value && (G.value || q.value)), J = p(() => o.showPassword && !z.value && !o.readonly && !!E.value && (!!E.value || G.value)), P = p(() => o.showWordLimit && !!g.value.maxlength && (o.type === "text" || o.type === "textarea") && !z.value && !o.readonly && !o.showPassword), Q = p(() => E.value.length), Te = p(() => !!P.value && Q.value > Number(g.value.maxlength)), Re = p(() => !!r.suffix || !!o.suffixIcon || K.value || o.showPassword || P.value || !!R.value && ue.value), [$e, Me] = wt(L);
261
- Qe(C, (e) => {
262
- if (Ae(), !P.value || o.resize !== "both")
263
- return;
264
- const n = e[0], { width: h } = n.contentRect;
265
- ie.value = {
266
- right: `calc(100% - ${h + 15 + 6}px)`
267
- };
268
- });
269
- const $ = () => {
270
- const { type: e, autosize: n } = o;
271
- if (!(!nt || e !== "textarea" || !C.value))
272
- if (n) {
273
- const h = Ce(n) ? n.minRows : void 0, j = Ce(n) ? n.maxRows : void 0, ge = Ee(C.value, h, j);
274
- _.value = {
275
- overflowY: "hidden",
276
- ...ge
277
- }, F(() => {
278
- C.value.offsetHeight, _.value = ge;
279
- });
280
- } else
281
- _.value = {
282
- minHeight: Ee(C.value).minHeight
283
- };
284
- }, Ae = ((e) => {
285
- let n = !1;
286
- return () => {
287
- var h;
288
- if (n || !o.autosize)
289
- return;
290
- ((h = C.value) == null ? void 0 : h.offsetParent) === null || (e(), n = !0);
291
- };
292
- })($), M = () => {
293
- const e = k.value, n = o.formatter ? o.formatter(E.value) : E.value;
294
- !e || e.value === n || (e.value = n);
295
- }, ee = async (e) => {
296
- $e();
297
- let { value: n } = e.target;
298
- if (o.formatter && (n = o.parser ? o.parser(n) : n), !T.value) {
299
- if (n === E.value) {
300
- M();
301
- return;
302
- }
303
- i(se, n), i("input", n), await F(), M(), Me();
304
- }
305
- }, pe = (e) => {
306
- i("change", e.target.value);
307
- }, fe = (e) => {
308
- i("compositionstart", e), T.value = !0;
309
- }, ve = (e) => {
310
- var n;
311
- i("compositionupdate", e);
312
- const h = (n = e.target) == null ? void 0 : n.value, j = h[h.length - 1] || "";
313
- T.value = !yt(j);
314
- }, me = (e) => {
315
- i("compositionend", e), T.value && (T.value = !1, ee(e));
316
- }, Be = () => {
317
- O.value = !O.value, ye();
318
- }, ye = async () => {
319
- var e;
320
- await F(), (e = k.value) == null || e.focus();
321
- }, Le = () => {
322
- var e;
323
- return (e = k.value) == null ? void 0 : e.blur();
324
- }, Oe = (e) => {
325
- q.value = !1, i("mouseleave", e);
326
- }, _e = (e) => {
327
- q.value = !0, i("mouseenter", e);
328
- }, he = (e) => {
329
- i("keydown", e);
330
- }, He = () => {
331
- var e;
332
- (e = k.value) == null || e.select();
333
- }, be = () => {
334
- i(se, ""), i("change", ""), i("clear"), i("input", "");
335
- };
336
- return Z(() => o.modelValue, () => {
337
- var e;
338
- F(() => $()), o.validateEvent && ((e = c == null ? void 0 : c.validate) == null || e.call(c, "change").catch((n) => Se()));
339
- }), Z(E, () => M()), Z(() => o.type, async () => {
340
- await F(), M(), $();
341
- }), ut(() => {
342
- !o.formatter && o.parser, M(), F($);
343
- }), f({
344
- input: L,
345
- textarea: C,
346
- ref: k,
347
- textareaStyle: ce,
348
- autosize: dt(o, "autosize"),
349
- focus: ye,
350
- blur: Le,
351
- select: He,
352
- clear: be,
353
- resizeTextarea: $
354
- }), (e, n) => ct((m(), S("div", ae(t(u), {
355
- class: t(x),
356
- style: t(Ne),
357
- role: e.containerRole,
358
- onMouseenter: _e,
359
- onMouseleave: Oe
360
- }), [
361
- y(" input "),
362
- e.type !== "textarea" ? (m(), S(ne, { key: 0 }, [
363
- y(" prepend slot "),
364
- e.$slots.prepend ? (m(), S("div", {
365
- key: 0,
366
- class: b(t(s).be("group", "prepend"))
367
- }, [
368
- W(e.$slots, "prepend")
369
- ], 2)) : y("v-if", !0),
370
- V("div", {
371
- ref_key: "wrapperRef",
372
- ref: Fe,
373
- class: b(t(d))
374
- }, [
375
- y(" prefix slot "),
376
- e.$slots.prefix || e.prefixIcon ? (m(), S("span", {
377
- key: 0,
378
- class: b(t(s).e("prefix"))
379
- }, [
380
- V("span", {
381
- class: b(t(s).e("prefix-inner"))
382
- }, [
383
- W(e.$slots, "prefix"),
384
- e.prefixIcon ? (m(), I(t(A), {
385
- key: 0,
386
- class: b(t(s).e("icon"))
387
- }, {
388
- default: B(() => [
389
- (m(), I(U(e.prefixIcon)))
390
- ]),
391
- _: 1
392
- }, 8, ["class"])) : y("v-if", !0)
393
- ], 2)
394
- ], 2)) : y("v-if", !0),
395
- V("input", ae({
396
- id: t(re),
397
- ref_key: "input",
398
- ref: L,
399
- class: t(s).e("inner")
400
- }, t(g), {
401
- type: e.showPassword ? O.value ? "text" : "password" : e.type,
402
- disabled: t(z),
403
- formatter: e.formatter,
404
- parser: e.parser,
405
- readonly: e.readonly,
406
- autocomplete: e.autocomplete,
407
- tabindex: e.tabindex,
408
- "aria-label": e.label,
409
- placeholder: e.placeholder,
410
- style: e.inputStyle,
411
- form: o.form,
412
- onCompositionstart: fe,
413
- onCompositionupdate: ve,
414
- onCompositionend: me,
415
- onInput: ee,
416
- onFocus: n[0] || (n[0] = (...h) => t(H) && t(H)(...h)),
417
- onBlur: n[1] || (n[1] = (...h) => t(D) && t(D)(...h)),
418
- onChange: pe,
419
- onKeydown: he
420
- }), null, 16, Ft),
421
- y(" suffix slot "),
422
- t(Re) ? (m(), S("span", {
423
- key: 1,
424
- class: b(t(s).e("suffix"))
425
- }, [
426
- V("span", {
427
- class: b(t(s).e("suffix-inner"))
428
- }, [
429
- !t(K) || !t(J) || !t(P) ? (m(), S(ne, { key: 0 }, [
430
- W(e.$slots, "suffix"),
431
- e.suffixIcon ? (m(), I(t(A), {
432
- key: 0,
433
- class: b(t(s).e("icon"))
434
- }, {
435
- default: B(() => [
436
- (m(), I(U(e.suffixIcon)))
437
- ]),
438
- _: 1
439
- }, 8, ["class"])) : y("v-if", !0)
440
- ], 64)) : y("v-if", !0),
441
- t(K) ? (m(), I(t(A), {
442
- key: 1,
443
- class: b([t(s).e("icon"), t(s).e("clear")]),
444
- onMousedown: pt(t(et), ["prevent"]),
445
- onClick: be
446
- }, {
447
- default: B(() => [
448
- ft(t(qe))
449
- ]),
450
- _: 1
451
- }, 8, ["class", "onMousedown"])) : y("v-if", !0),
452
- t(J) ? (m(), I(t(A), {
453
- key: 2,
454
- class: b([t(s).e("icon"), t(s).e("password")]),
455
- onClick: Be
456
- }, {
457
- default: B(() => [
458
- (m(), I(U(t(Ve))))
459
- ]),
460
- _: 1
461
- }, 8, ["class"])) : y("v-if", !0),
462
- t(P) ? (m(), S("span", {
463
- key: 3,
464
- class: b(t(s).e("count"))
465
- }, [
466
- V("span", {
467
- class: b(t(s).e("count-inner"))
468
- }, Y(t(Q)) + " / " + Y(t(g).maxlength), 3)
469
- ], 2)) : y("v-if", !0),
470
- t(R) && t(de) && t(ue) ? (m(), I(t(A), {
471
- key: 4,
472
- class: b([
473
- t(s).e("icon"),
474
- t(s).e("validateIcon"),
475
- t(s).is("loading", t(R) === "validating")
476
- ])
477
- }, {
478
- default: B(() => [
479
- (m(), I(U(t(de))))
480
- ]),
481
- _: 1
482
- }, 8, ["class"])) : y("v-if", !0)
483
- ], 2)
484
- ], 2)) : y("v-if", !0)
485
- ], 2),
486
- y(" append slot "),
487
- e.$slots.append ? (m(), S("div", {
488
- key: 1,
489
- class: b(t(s).be("group", "append"))
490
- }, [
491
- W(e.$slots, "append")
492
- ], 2)) : y("v-if", !0)
493
- ], 64)) : (m(), S(ne, { key: 1 }, [
494
- y(" textarea "),
495
- V("textarea", ae({
496
- id: t(re),
497
- ref_key: "textarea",
498
- ref: C,
499
- class: t(le).e("inner")
500
- }, t(g), {
501
- tabindex: e.tabindex,
502
- disabled: t(z),
503
- readonly: e.readonly,
504
- autocomplete: e.autocomplete,
505
- style: t(ce),
506
- "aria-label": e.label,
507
- placeholder: e.placeholder,
508
- form: o.form,
509
- onCompositionstart: fe,
510
- onCompositionupdate: ve,
511
- onCompositionend: me,
512
- onInput: ee,
513
- onFocus: n[2] || (n[2] = (...h) => t(H) && t(H)(...h)),
514
- onBlur: n[3] || (n[3] = (...h) => t(D) && t(D)(...h)),
515
- onChange: pe,
516
- onKeydown: he
517
- }), null, 16, Vt),
518
- t(P) ? (m(), S("span", {
519
- key: 0,
520
- style: vt(ie.value),
521
- class: b(t(s).e("count"))
522
- }, Y(t(Q)) + " / " + Y(t(g).maxlength), 7)) : y("v-if", !0)
523
- ], 64))
524
- ], 16, Pt)), [
525
- [mt, e.type !== "hidden"]
526
- ]);
527
- }
528
- }), Rt = /* @__PURE__ */ st(Tt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]), Ot = tt(Rt);
1
+ const t = "";
529
2
  export {
530
- Ot as ElInput,
531
- kt as inputEmits,
532
- zt as inputProps,
533
- yt as isKorean,
534
- ht as mutable,
535
- xt as useAttrs,
536
- wt as useCursor,
537
- St as useFocusController
3
+ t as default
538
4
  };