st-comp 0.0.279 → 0.0.281
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +377 -376
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +294 -294
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +19 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +260 -260
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +579 -553
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +23 -24
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +30 -29
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +517 -425
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +43 -43
- package/es/User.cjs +1 -1
- package/es/User.js +898 -866
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +110 -109
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +615 -464
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +3079 -2913
- package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1927 -2259
- package/es/_baseClone-f8e5d3ba.cjs +1 -0
- package/es/_baseClone-fb6a3947.js +210 -0
- package/es/base-d987e5c9.cjs +5 -0
- package/es/base-dd156b8e.js +790 -0
- package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
- package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
- package/es/clamp-17c4d8aa.cjs +1 -0
- package/es/clamp-c7512966.js +10 -0
- package/es/config-provider-06d8207f.js +86 -0
- package/es/config-provider-bb61bd3e.cjs +1 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-8fa21bfd.cjs +1 -0
- package/es/dropdown-bcf8d198.js +178 -0
- package/es/el-autocomplete-13b9e372.cjs +1 -0
- package/es/el-autocomplete-419bfbcf.js +434 -0
- package/es/el-button-ee9fe159.js +343 -0
- package/es/el-button-fac5e058.cjs +1 -0
- package/es/el-checkbox-6cf1a71c.cjs +1 -0
- package/es/el-checkbox-b5ac7f04.js +566 -0
- package/es/el-dialog-060b3735.js +252 -0
- package/es/el-dialog-54aebacd.cjs +1 -0
- package/es/el-divider-3f0320be.cjs +1 -0
- package/es/el-divider-c5d72961.js +51 -0
- package/es/el-empty-552baf04.js +159 -0
- package/es/el-empty-58bc2a10.cjs +1 -0
- package/es/el-form-item-2be6b683.js +1265 -0
- package/es/el-form-item-758dfefa.cjs +12 -0
- package/es/el-input-7fe53030.cjs +1 -0
- package/es/el-input-d23f5442.js +761 -0
- package/es/el-input-number-484fb184.js +390 -0
- package/es/el-input-number-f0f4eedb.cjs +1 -0
- package/es/el-loading-9d3e405c.js +190 -0
- package/es/el-loading-fafaaa7b.cjs +1 -0
- package/es/el-menu-item-0ac22681.js +824 -0
- package/es/el-menu-item-c91ae430.cjs +1 -0
- package/es/el-message-box-568a0aa6.js +481 -0
- package/es/el-message-box-ceacb54e.cjs +1 -0
- package/es/el-overlay-9f36e73c.cjs +1 -0
- package/es/el-overlay-cb5c85aa.js +444 -0
- package/es/el-popconfirm-4a8cd35c.cjs +1 -0
- package/es/el-popconfirm-6f8e65c8.js +190 -0
- package/es/el-popper-0454c8e8.js +2235 -0
- package/es/el-popper-acd0ff35.cjs +1 -0
- package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
- package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
- package/es/el-segmented-64dc7258.js +168 -0
- package/es/el-segmented-eb3c8e65.cjs +1 -0
- package/es/el-select-a573c78b.js +1535 -0
- package/es/el-select-c317294a.cjs +1 -0
- package/es/el-table-column-1c443963.js +3651 -0
- package/es/el-table-column-f555115d.cjs +14 -0
- package/es/el-tag-2d8a3fe7.js +77 -0
- package/es/el-tag-dca1292c.cjs +1 -0
- package/es/el-text-649c986a.cjs +1 -0
- package/es/el-text-761e6717.js +84 -0
- package/es/index-11181b5f.cjs +1 -0
- package/es/index-21a3dc89.cjs +1 -0
- package/es/index-33e039e3.cjs +1 -0
- package/es/index-3806160e.js +710 -0
- package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
- package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
- package/es/index-5cada1ed.cjs +1 -0
- package/es/index-6a36e1fc.cjs +1 -0
- package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-78dab605.js +141 -0
- package/es/index-798fec2d.cjs +1 -0
- package/es/index-9573f74b.js +372 -0
- package/es/index-a181f161.js +429 -0
- package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
- package/es/index-beb5cb7d.cjs +1 -0
- package/es/index-c09fc6f5.js +131 -0
- package/es/index-ceae4c47.cjs +1 -0
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-d9379af4.js +413 -0
- package/es/index-dddacf80.js +47 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/index-e2e58ea9.js +468 -0
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
- package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
- package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
- package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
- package/es/scroll-07bade1e.cjs +1 -0
- package/es/scroll-70271cb1.js +35 -0
- package/es/style.css +1 -1
- package/es/toNumber-b47ceb68.cjs +1 -0
- package/es/toNumber-f077c66a.js +31 -0
- package/es/use-form-item-76516e50.cjs +2 -0
- package/es/use-form-item-784142b4.js +422 -0
- package/es/use-global-config-7ff9a1c2.cjs +1 -0
- package/es/use-global-config-9a4ccf33.js +71 -0
- package/es/validator-1926345b.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
- package/es/zh-cn-ad12d9f5.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +265 -246
- package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
- package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_initCloneObject-5e73c9c8.js +0 -81
- package/es/_initCloneObject-a5832933.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/config-provider-06ea6b42.cjs +0 -1
- package/es/config-provider-88b637a8.js +0 -59
- package/es/dayjs.min-2c20abe6.cjs +0 -1
- package/es/dayjs.min-8313b006.js +0 -299
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/debounce-8d53f4dd.js +0 -83
- package/es/dropdown-4ce4c3e2.cjs +0 -1
- package/es/dropdown-72fbc15d.js +0 -178
- package/es/el-autocomplete-6cafcdf1.js +0 -329
- package/es/el-autocomplete-e0857c5b.cjs +0 -1
- package/es/el-button-613e0bb2.cjs +0 -1
- package/es/el-button-94d3de38.js +0 -272
- package/es/el-checkbox-6d4cb393.js +0 -459
- package/es/el-checkbox-e90762df.cjs +0 -1
- package/es/el-dialog-02942e22.cjs +0 -1
- package/es/el-dialog-5e30161f.js +0 -276
- package/es/el-divider-4713d74c.cjs +0 -1
- package/es/el-divider-4e059794.js +0 -45
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-empty-33cb66f1.js +0 -183
- package/es/el-form-item-44f060d8.cjs +0 -12
- package/es/el-form-item-9e8969ea.js +0 -1269
- package/es/el-input-342b2def.js +0 -531
- package/es/el-input-9a9a7f7f.cjs +0 -1
- package/es/el-input-number-65c847d6.cjs +0 -1
- package/es/el-input-number-c22b803a.js +0 -311
- package/es/el-loading-8179b497.cjs +0 -1
- package/es/el-loading-bcc51e3d.js +0 -203
- package/es/el-menu-item-339baf6d.js +0 -768
- package/es/el-menu-item-83186444.cjs +0 -1
- package/es/el-message-box-035b699c.js +0 -489
- package/es/el-message-box-c62d3217.cjs +0 -1
- package/es/el-overlay-3e17604b.js +0 -324
- package/es/el-overlay-8f1da9e8.cjs +0 -1
- package/es/el-popconfirm-4e32ec1b.cjs +0 -1
- package/es/el-popconfirm-f8a86e2c.js +0 -162
- package/es/el-popper-a4f3ae4d.cjs +0 -1
- package/es/el-popper-fbd0dcea.js +0 -2094
- package/es/el-segmented-56bd58a8.js +0 -142
- package/es/el-segmented-833ac177.cjs +0 -1
- package/es/el-select-44fa547d.js +0 -1256
- package/es/el-select-70806166.cjs +0 -1
- package/es/el-table-column-3e2cdfca.cjs +0 -14
- package/es/el-table-column-b74a857d.js +0 -3432
- package/es/el-tag-66c83156.js +0 -117
- package/es/el-tag-9c2f329f.cjs +0 -1
- package/es/el-text-034bd3f4.js +0 -67
- package/es/el-text-6b2374bb.cjs +0 -1
- package/es/index-00f6ca75.cjs +0 -1
- package/es/index-185792a7.cjs +0 -1
- package/es/index-1e2a38ab.js +0 -113
- package/es/index-2e331d74.js +0 -10
- package/es/index-3153c1db.cjs +0 -1
- package/es/index-5216d5f5.js +0 -406
- package/es/index-5c0dd943.cjs +0 -1
- package/es/index-657047bb.js +0 -513
- package/es/index-870b6c9d.cjs +0 -1
- package/es/index-8c2d7e05.js +0 -368
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9d16cea8.cjs +0 -1
- package/es/index-ac8dc53d.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c5f2d372.js +0 -326
- package/es/index-c6584658.js +0 -163
- package/es/index-d77a7336.js +0 -204
- package/es/index-eea0bcb3.cjs +0 -1
- package/es/index-f034b910.js +0 -60
- package/es/index-f1c702f6.cjs +0 -1
- package/es/index-f58b2920.cjs +0 -1
- package/es/scroll-679bd6bf.js +0 -35
- package/es/scroll-b108dabd.cjs +0 -1
- package/es/use-form-common-props-ac666630.cjs +0 -1
- package/es/use-form-common-props-ed72e914.js +0 -364
- package/es/use-global-config-23472471.cjs +0 -1
- package/es/use-global-config-ee406d58.js +0 -72
- package/es/validator-366dbf39.cjs +0 -1
- package/es/vnode-5ddb7ed1.js +0 -14
- package/es/vnode-b906ae6d.cjs +0 -1
- package/es/zh-cn-c21d12d8.cjs +0 -1
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
import { v as tt, X as Ct, b as Nt, c as L, a as Ce, s as Ke, u as Xe, l as Ne, N as D, y as Pt, k as Ye, w as zt } from "./base-dd156b8e.js";
|
|
2
|
+
import { u as Mt, U as he, v as ot, I as Pe, C as Ze } from "./el-popper-0454c8e8.js";
|
|
3
|
+
import { h as Vt, i as ze, d as kt, f as Tt, e as Lt, g as Rt, V as Bt, u as Ft } from "./use-form-item-784142b4.js";
|
|
4
|
+
import { r as Ot, c as qe } from "./raf-b4fd1e12.js";
|
|
5
|
+
import { computed as u, getCurrentInstance as $t, markRaw as At, defineComponent as Gt, useAttrs as Ht, useSlots as Dt, shallowRef as Me, ref as j, watch as fe, nextTick as U, onMounted as jt, onBeforeUnmount as Ut, toRef as Wt, openBlock as d, createElementBlock as M, normalizeClass as h, unref as a, normalizeStyle as ve, createCommentVNode as v, Fragment as Ve, renderSlot as te, createElementVNode as W, createBlock as C, withCtx as K, resolveDynamicComponent as X, mergeProps as Je, withModifiers as pe, toDisplayString as me } from "vue";
|
|
6
|
+
import { u as Kt } from "./index-a181f161.js";
|
|
7
|
+
import { a as Xt, u as Yt } from "./index-dddacf80.js";
|
|
8
|
+
import { t as at, H as Zt, I as qt, E as Y } from "./index-6a52dc7c.js";
|
|
9
|
+
import { m as Jt } from "./typescript-7ae59c4c.js";
|
|
10
|
+
const Qt = ["class", "style"], _t = /^on[A-Z]/, eo = (e = {}) => {
|
|
11
|
+
const { excludeListeners: r = !1, excludeKeys: I } = e, t = u(() => ((I == null ? void 0 : I.value) || []).concat(Qt)), l = $t();
|
|
12
|
+
return l ? u(() => {
|
|
13
|
+
var c;
|
|
14
|
+
return Ct(Object.entries((c = l.proxy) == null ? void 0 : c.$attrs).filter(([p]) => !t.value.includes(p) && !(r && _t.test(p))));
|
|
15
|
+
}) : (tt("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), u(() => ({})));
|
|
16
|
+
};
|
|
17
|
+
function to(e) {
|
|
18
|
+
let r;
|
|
19
|
+
function I() {
|
|
20
|
+
if (e.value == null)
|
|
21
|
+
return;
|
|
22
|
+
const { selectionStart: l, selectionEnd: c, value: p } = e.value;
|
|
23
|
+
l == null || c == null || (r = {
|
|
24
|
+
selectionStart: l,
|
|
25
|
+
selectionEnd: c,
|
|
26
|
+
value: p,
|
|
27
|
+
beforeTxt: p.slice(0, Math.max(0, l)),
|
|
28
|
+
afterTxt: p.slice(Math.max(0, c))
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function t() {
|
|
32
|
+
if (e.value == null || r == null)
|
|
33
|
+
return;
|
|
34
|
+
const { value: l } = e.value, { beforeTxt: c, afterTxt: p, selectionStart: g } = r;
|
|
35
|
+
if (c == null || p == null || g == null)
|
|
36
|
+
return;
|
|
37
|
+
let N = l.length;
|
|
38
|
+
if (l.endsWith(p))
|
|
39
|
+
N = l.length - p.length;
|
|
40
|
+
else if (l.startsWith(c))
|
|
41
|
+
N = c.length;
|
|
42
|
+
else {
|
|
43
|
+
const R = c[g - 1], x = l.indexOf(R, g - 1);
|
|
44
|
+
x !== -1 && (N = x + 1);
|
|
45
|
+
}
|
|
46
|
+
e.value.setSelectionRange(N, N);
|
|
47
|
+
}
|
|
48
|
+
return [I, t];
|
|
49
|
+
}
|
|
50
|
+
const oo = Nt({
|
|
51
|
+
/**
|
|
52
|
+
* @description native input id
|
|
53
|
+
*/
|
|
54
|
+
id: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* @description input box size
|
|
60
|
+
*/
|
|
61
|
+
size: Vt,
|
|
62
|
+
/**
|
|
63
|
+
* @description whether to disable
|
|
64
|
+
*/
|
|
65
|
+
disabled: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: void 0
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @description binding value
|
|
71
|
+
*/
|
|
72
|
+
modelValue: {
|
|
73
|
+
type: L([
|
|
74
|
+
String,
|
|
75
|
+
Number,
|
|
76
|
+
Object
|
|
77
|
+
]),
|
|
78
|
+
default: ""
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* @description v-model modifiers, reference [Vue modifiers](https://vuejs.org/guide/essentials/forms.html#modifiers)
|
|
82
|
+
*/
|
|
83
|
+
modelModifiers: {
|
|
84
|
+
type: L(Object),
|
|
85
|
+
default: () => ({})
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* @description same as `maxlength` in native input
|
|
89
|
+
*/
|
|
90
|
+
maxlength: { type: [String, Number] },
|
|
91
|
+
/**
|
|
92
|
+
* @description same as `minlength` in native input
|
|
93
|
+
*/
|
|
94
|
+
minlength: { type: [String, Number] },
|
|
95
|
+
/**
|
|
96
|
+
* @description type of input, see more in [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types)
|
|
97
|
+
*/
|
|
98
|
+
type: {
|
|
99
|
+
type: L(String),
|
|
100
|
+
default: "text"
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* @description control the resizability
|
|
104
|
+
*/
|
|
105
|
+
resize: {
|
|
106
|
+
type: String,
|
|
107
|
+
values: [
|
|
108
|
+
"none",
|
|
109
|
+
"both",
|
|
110
|
+
"horizontal",
|
|
111
|
+
"vertical"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* @description whether textarea has an adaptive height
|
|
116
|
+
*/
|
|
117
|
+
autosize: {
|
|
118
|
+
type: L([Boolean, Object]),
|
|
119
|
+
default: !1
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
* @description native input autocomplete
|
|
123
|
+
*/
|
|
124
|
+
autocomplete: {
|
|
125
|
+
type: L(String),
|
|
126
|
+
default: "off"
|
|
127
|
+
},
|
|
128
|
+
/**
|
|
129
|
+
* @description format content
|
|
130
|
+
*/
|
|
131
|
+
formatter: { type: Function },
|
|
132
|
+
/**
|
|
133
|
+
* @description parse content
|
|
134
|
+
*/
|
|
135
|
+
parser: { type: Function },
|
|
136
|
+
/**
|
|
137
|
+
* @description placeholder
|
|
138
|
+
*/
|
|
139
|
+
placeholder: { type: String },
|
|
140
|
+
/**
|
|
141
|
+
* @description native input form
|
|
142
|
+
*/
|
|
143
|
+
form: { type: String },
|
|
144
|
+
/**
|
|
145
|
+
* @description native input readonly
|
|
146
|
+
*/
|
|
147
|
+
readonly: Boolean,
|
|
148
|
+
/**
|
|
149
|
+
* @description whether to show clear button
|
|
150
|
+
*/
|
|
151
|
+
clearable: Boolean,
|
|
152
|
+
/**
|
|
153
|
+
* @description custom clear icon component
|
|
154
|
+
*/
|
|
155
|
+
clearIcon: {
|
|
156
|
+
type: ze,
|
|
157
|
+
default: at
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* @description toggleable password input
|
|
161
|
+
*/
|
|
162
|
+
showPassword: Boolean,
|
|
163
|
+
/**
|
|
164
|
+
* @description word count
|
|
165
|
+
*/
|
|
166
|
+
showWordLimit: Boolean,
|
|
167
|
+
/**
|
|
168
|
+
* @description word count position, valid when `show-word-limit` is true
|
|
169
|
+
*/
|
|
170
|
+
wordLimitPosition: {
|
|
171
|
+
type: String,
|
|
172
|
+
values: ["inside", "outside"],
|
|
173
|
+
default: "inside"
|
|
174
|
+
},
|
|
175
|
+
/**
|
|
176
|
+
* @description suffix icon
|
|
177
|
+
*/
|
|
178
|
+
suffixIcon: { type: ze },
|
|
179
|
+
/**
|
|
180
|
+
* @description prefix icon
|
|
181
|
+
*/
|
|
182
|
+
prefixIcon: { type: ze },
|
|
183
|
+
/**
|
|
184
|
+
* @description container role, internal properties provided for use by the picker component
|
|
185
|
+
*/
|
|
186
|
+
containerRole: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: void 0
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* @description input tabindex
|
|
192
|
+
*/
|
|
193
|
+
tabindex: {
|
|
194
|
+
type: [String, Number],
|
|
195
|
+
default: 0
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* @description whether to trigger form validation
|
|
199
|
+
*/
|
|
200
|
+
validateEvent: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: !0
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* @description input or textarea element style
|
|
206
|
+
*/
|
|
207
|
+
inputStyle: {
|
|
208
|
+
type: L([
|
|
209
|
+
Object,
|
|
210
|
+
Array,
|
|
211
|
+
String,
|
|
212
|
+
Boolean
|
|
213
|
+
]),
|
|
214
|
+
default: () => Jt({})
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* @description Count graphemes of input value. If it's set, native maxlength and minlength won't be used.
|
|
218
|
+
*/
|
|
219
|
+
countGraphemes: { type: L(Function) },
|
|
220
|
+
/**
|
|
221
|
+
* @description native input autofocus
|
|
222
|
+
*/
|
|
223
|
+
autofocus: Boolean,
|
|
224
|
+
rows: {
|
|
225
|
+
type: Number,
|
|
226
|
+
default: 2
|
|
227
|
+
},
|
|
228
|
+
...Mt(["ariaLabel"]),
|
|
229
|
+
/**
|
|
230
|
+
* @description native input mode for virtual keyboards
|
|
231
|
+
*/
|
|
232
|
+
inputmode: {
|
|
233
|
+
type: L(String),
|
|
234
|
+
default: void 0
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* @description same as `name` in native input
|
|
238
|
+
*/
|
|
239
|
+
name: String
|
|
240
|
+
}), ao = {
|
|
241
|
+
[he]: (e) => Ce(e),
|
|
242
|
+
input: (e) => Ce(e),
|
|
243
|
+
change: (e, r) => Ce(e) && (r instanceof Event || r === void 0),
|
|
244
|
+
focus: (e) => e instanceof FocusEvent,
|
|
245
|
+
blur: (e) => e instanceof FocusEvent,
|
|
246
|
+
clear: (e) => e === void 0 || e instanceof MouseEvent,
|
|
247
|
+
mouseleave: (e) => e instanceof MouseEvent,
|
|
248
|
+
mouseenter: (e) => e instanceof MouseEvent,
|
|
249
|
+
keydown: (e) => e instanceof Event,
|
|
250
|
+
compositionstart: (e) => e instanceof CompositionEvent,
|
|
251
|
+
compositionupdate: (e) => e instanceof CompositionEvent,
|
|
252
|
+
compositionend: (e) => e instanceof CompositionEvent
|
|
253
|
+
};
|
|
254
|
+
At(at);
|
|
255
|
+
let b;
|
|
256
|
+
const no = {
|
|
257
|
+
height: "0",
|
|
258
|
+
visibility: "hidden",
|
|
259
|
+
overflow: ot() ? "" : "hidden",
|
|
260
|
+
position: "absolute",
|
|
261
|
+
"z-index": "-1000",
|
|
262
|
+
top: "0",
|
|
263
|
+
right: "0"
|
|
264
|
+
}, so = [
|
|
265
|
+
"letter-spacing",
|
|
266
|
+
"line-height",
|
|
267
|
+
"padding-top",
|
|
268
|
+
"padding-bottom",
|
|
269
|
+
"font-family",
|
|
270
|
+
"font-weight",
|
|
271
|
+
"font-size",
|
|
272
|
+
"text-rendering",
|
|
273
|
+
"text-transform",
|
|
274
|
+
"width",
|
|
275
|
+
"text-indent",
|
|
276
|
+
"padding-left",
|
|
277
|
+
"padding-right",
|
|
278
|
+
"border-width",
|
|
279
|
+
"box-sizing",
|
|
280
|
+
"word-break"
|
|
281
|
+
], Qe = (e) => {
|
|
282
|
+
const r = Number.parseFloat(e);
|
|
283
|
+
return Number.isNaN(r) ? e : r;
|
|
284
|
+
};
|
|
285
|
+
function io(e) {
|
|
286
|
+
const r = window.getComputedStyle(e), I = r.getPropertyValue("box-sizing"), t = Number.parseFloat(r.getPropertyValue("padding-bottom")) + Number.parseFloat(r.getPropertyValue("padding-top")), l = Number.parseFloat(r.getPropertyValue("border-bottom-width")) + Number.parseFloat(r.getPropertyValue("border-top-width"));
|
|
287
|
+
return {
|
|
288
|
+
contextStyle: so.map((c) => [c, r.getPropertyValue(c)]),
|
|
289
|
+
paddingSize: t,
|
|
290
|
+
borderSize: l,
|
|
291
|
+
boxSizing: I
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function _e(e, r = 1, I) {
|
|
295
|
+
var x;
|
|
296
|
+
if (!b) {
|
|
297
|
+
b = document.createElement("textarea");
|
|
298
|
+
let f = document.body;
|
|
299
|
+
!ot() && e.parentNode && (f = e.parentNode), f.appendChild(b);
|
|
300
|
+
}
|
|
301
|
+
const { paddingSize: t, borderSize: l, boxSizing: c, contextStyle: p } = io(e);
|
|
302
|
+
p.forEach(([f, m]) => b == null ? void 0 : b.style.setProperty(f, m)), Object.entries(no).forEach(([f, m]) => b == null ? void 0 : b.style.setProperty(f, m, "important")), b.value = e.value || e.placeholder || "";
|
|
303
|
+
let g = b.scrollHeight;
|
|
304
|
+
const N = {};
|
|
305
|
+
c === "border-box" ? g = g + l : c === "content-box" && (g = g - t), b.value = "";
|
|
306
|
+
const R = b.scrollHeight - t;
|
|
307
|
+
if (Ke(r)) {
|
|
308
|
+
let f = R * r;
|
|
309
|
+
c === "border-box" && (f = f + t + l), g = Math.max(f, g), N.minHeight = `${f}px`;
|
|
310
|
+
}
|
|
311
|
+
if (Ke(I)) {
|
|
312
|
+
let f = R * I;
|
|
313
|
+
c === "border-box" && (f = f + t + l), g = Math.min(f, g);
|
|
314
|
+
}
|
|
315
|
+
return N.height = `${g}px`, (x = b.parentNode) == null || x.removeChild(b), b = void 0, N;
|
|
316
|
+
}
|
|
317
|
+
const lo = [
|
|
318
|
+
"id",
|
|
319
|
+
"name",
|
|
320
|
+
"minlength",
|
|
321
|
+
"maxlength",
|
|
322
|
+
"type",
|
|
323
|
+
"disabled",
|
|
324
|
+
"readonly",
|
|
325
|
+
"autocomplete",
|
|
326
|
+
"tabindex",
|
|
327
|
+
"aria-label",
|
|
328
|
+
"placeholder",
|
|
329
|
+
"form",
|
|
330
|
+
"autofocus",
|
|
331
|
+
"role",
|
|
332
|
+
"inputmode"
|
|
333
|
+
], ro = ["aria-label"], uo = [
|
|
334
|
+
"id",
|
|
335
|
+
"name",
|
|
336
|
+
"minlength",
|
|
337
|
+
"maxlength",
|
|
338
|
+
"tabindex",
|
|
339
|
+
"disabled",
|
|
340
|
+
"readonly",
|
|
341
|
+
"autocomplete",
|
|
342
|
+
"aria-label",
|
|
343
|
+
"placeholder",
|
|
344
|
+
"form",
|
|
345
|
+
"autofocus",
|
|
346
|
+
"rows",
|
|
347
|
+
"role",
|
|
348
|
+
"inputmode"
|
|
349
|
+
], co = ["aria-label"], et = "ElInput";
|
|
350
|
+
var fo = /* @__PURE__ */ Gt({
|
|
351
|
+
name: et,
|
|
352
|
+
inheritAttrs: !1,
|
|
353
|
+
__name: "input",
|
|
354
|
+
props: oo,
|
|
355
|
+
emits: ao,
|
|
356
|
+
setup(e, { expose: r, emit: I }) {
|
|
357
|
+
const t = e, l = I, c = Ht(), p = Dt(), g = u(() => [
|
|
358
|
+
t.type === "textarea" ? Z.b() : i.b(),
|
|
359
|
+
i.m(nt.value),
|
|
360
|
+
i.is("disabled", B.value),
|
|
361
|
+
i.is("exceed", ut.value),
|
|
362
|
+
{
|
|
363
|
+
[i.b("group")]: p.prepend || p.append,
|
|
364
|
+
[i.m("prefix")]: p.prefix || t.prefixIcon,
|
|
365
|
+
[i.m("suffix")]: p.suffix || t.suffixIcon || t.clearable || t.showPassword,
|
|
366
|
+
[i.bm("suffix", "password-clear")]: se.value && xe.value,
|
|
367
|
+
[i.b("hidden")]: t.type === "hidden"
|
|
368
|
+
},
|
|
369
|
+
c.class
|
|
370
|
+
]), N = u(() => [i.e("wrapper"), i.is("focus", be.value)]), R = eo(), x = u(() => {
|
|
371
|
+
var o;
|
|
372
|
+
return (o = t.maxlength) == null ? void 0 : o.toString();
|
|
373
|
+
}), { form: f, formItem: m } = kt(), { inputId: ke } = Tt(t, { formItemContext: m }), nt = Lt(), B = Rt(), i = Xe("input"), Z = Xe("textarea"), { t: st } = Kt(), oe = Me(), z = Me(), ye = j(!1), F = j(!1), Te = j(), Le = j(), ae = Me(t.inputStyle), q = j("");
|
|
374
|
+
let O;
|
|
375
|
+
const ne = j(), w = u(() => oe.value || z.value), { wrapperRef: it, isFocused: be, handleFocus: Re, handleBlur: Be } = Xt(w, {
|
|
376
|
+
disabled: B,
|
|
377
|
+
afterFocus() {
|
|
378
|
+
var o;
|
|
379
|
+
t.showPassword && (O = (o = w.value) == null ? void 0 : o.value);
|
|
380
|
+
},
|
|
381
|
+
beforeBlur(o) {
|
|
382
|
+
var s;
|
|
383
|
+
if (t.showPassword) {
|
|
384
|
+
const n = w.value;
|
|
385
|
+
if (o.relatedTarget && ((s = n == null ? void 0 : n.parentElement) != null && s.contains(o.relatedTarget)))
|
|
386
|
+
return;
|
|
387
|
+
const y = n == null ? void 0 : n.value;
|
|
388
|
+
!Ne(y) && !Ne(O) && y !== O && (n == null || n.dispatchEvent(new Event("change", { bubbles: !0 }))), O = void 0;
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
afterBlur() {
|
|
392
|
+
var o;
|
|
393
|
+
t.validateEvent && ((o = m == null ? void 0 : m.validate) == null || o.call(m, "blur").catch(D));
|
|
394
|
+
}
|
|
395
|
+
}), Fe = u(() => (f == null ? void 0 : f.statusIcon) ?? !1), J = u(() => (m == null ? void 0 : m.validateState) || ""), Oe = u(() => J.value && Bt[J.value]), lt = u(() => F.value ? Zt : qt), rt = u(() => [c.style]), $e = u(() => [
|
|
396
|
+
t.inputStyle,
|
|
397
|
+
ae.value,
|
|
398
|
+
{ resize: t.resize },
|
|
399
|
+
ne.value ? { height: ne.value } : void 0
|
|
400
|
+
]), V = u(() => Ne(t.modelValue) ? "" : String(t.modelValue)), ge = u(() => t.clearable && !B.value && !t.readonly), se = u(() => ge.value && !!V.value && (be.value || ye.value)), xe = u(() => t.showPassword && !B.value && !!V.value), $ = u(() => t.showWordLimit && !!x.value && (t.type === "text" || t.type === "textarea") && !B.value && !t.readonly && !t.showPassword), ie = u(() => t.countGraphemes && t.showWordLimit ? t.countGraphemes(V.value) : V.value.length), Ae = u(() => st("el.input.characters", {
|
|
401
|
+
count: ie.value,
|
|
402
|
+
max: x.value ?? ""
|
|
403
|
+
})), ut = u(() => !!$.value && ie.value > Number(x.value)), ct = u(() => !!p.suffix || !!t.suffixIcon || t.clearable || t.showPassword || $.value || !!J.value && Fe.value), dt = u(() => !!Object.keys(t.modelModifiers).length), [ft, vt] = to(oe);
|
|
404
|
+
let A;
|
|
405
|
+
Ft(z, (o) => {
|
|
406
|
+
if (pt(), !$.value && !ge.value || t.resize !== "both" && t.resize !== "horizontal")
|
|
407
|
+
return;
|
|
408
|
+
const { width: s } = o[0].target.getBoundingClientRect(), n = () => {
|
|
409
|
+
A = void 0, Te.value = {
|
|
410
|
+
/** right: 100% - (width - right(10)) */
|
|
411
|
+
right: `calc(100% - ${s - 10}px)`
|
|
412
|
+
}, Le.value = {
|
|
413
|
+
/** right: 100% - (width - right(11)) */
|
|
414
|
+
right: `calc(100% - ${s - 11}px)`
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
A && qe(A), A = Ot(n);
|
|
418
|
+
});
|
|
419
|
+
const Q = () => {
|
|
420
|
+
const { type: o, autosize: s } = t;
|
|
421
|
+
if (!(!Pt || o !== "textarea" || !z.value))
|
|
422
|
+
if (s) {
|
|
423
|
+
const n = Ye(s) ? s.minRows : void 0, y = Ye(s) ? s.maxRows : void 0, E = _e(z.value, n, y);
|
|
424
|
+
ae.value = {
|
|
425
|
+
overflowY: "hidden",
|
|
426
|
+
...E
|
|
427
|
+
}, U(() => {
|
|
428
|
+
z.value.offsetHeight, ae.value = E;
|
|
429
|
+
});
|
|
430
|
+
} else
|
|
431
|
+
ae.value = { minHeight: _e(z.value).minHeight };
|
|
432
|
+
}, pt = ((o) => {
|
|
433
|
+
let s = !1;
|
|
434
|
+
return () => {
|
|
435
|
+
var n;
|
|
436
|
+
if (s || !t.autosize) {
|
|
437
|
+
t.resize !== "none" && setTimeout(() => {
|
|
438
|
+
var y;
|
|
439
|
+
ne.value = (y = z.value) == null ? void 0 : y.style.height;
|
|
440
|
+
});
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
((n = z.value) == null ? void 0 : n.offsetParent) !== null && (setTimeout(o), s = !0);
|
|
444
|
+
};
|
|
445
|
+
})(Q), G = () => {
|
|
446
|
+
const o = w.value, s = t.formatter ? t.formatter(V.value) : V.value;
|
|
447
|
+
!o || o.value === s || t.type === "file" || (o.value = s);
|
|
448
|
+
}, Ge = (o) => {
|
|
449
|
+
const { trim: s, number: n } = t.modelModifiers;
|
|
450
|
+
return s && (o = o.trim()), n && (o = `${Qe(o)}`), t.formatter && t.parser && (o = t.parser(o)), o;
|
|
451
|
+
}, we = async (o) => {
|
|
452
|
+
if (De.value)
|
|
453
|
+
return;
|
|
454
|
+
const { lazy: s } = t.modelModifiers;
|
|
455
|
+
let { value: n } = o.target, y = !1;
|
|
456
|
+
if (s) {
|
|
457
|
+
l(Pe, n);
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
if (n = Ge(n), t.countGraphemes && x.value != null) {
|
|
461
|
+
const E = Number(x.value), ce = t.countGraphemes(n), H = t.countGraphemes(q.value);
|
|
462
|
+
if (ce > E && ce > H)
|
|
463
|
+
if (H > E)
|
|
464
|
+
n = q.value, y = !0;
|
|
465
|
+
else {
|
|
466
|
+
const k = q.value, P = n;
|
|
467
|
+
let S = 0;
|
|
468
|
+
for (; S < k.length && S < P.length && k[S] === P[S]; )
|
|
469
|
+
S++;
|
|
470
|
+
let T = k.length, _ = P.length;
|
|
471
|
+
for (; T > S && _ > S && k[T - 1] === P[_ - 1]; )
|
|
472
|
+
T--, _--;
|
|
473
|
+
const wt = P.slice(0, S), St = k.slice(S, T), Ue = P.slice(S, _), Et = P.slice(_), It = H - t.countGraphemes(St), Ee = Math.max(0, E - It);
|
|
474
|
+
let ee = "";
|
|
475
|
+
if (Ee > 0)
|
|
476
|
+
if (typeof Intl < "u" && "Segmenter" in Intl) {
|
|
477
|
+
const Ie = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
478
|
+
for (const { segment: de } of Ie.segment(Ue)) {
|
|
479
|
+
const We = ee + de;
|
|
480
|
+
if (t.countGraphemes(We) > Ee)
|
|
481
|
+
break;
|
|
482
|
+
ee = We;
|
|
483
|
+
}
|
|
484
|
+
} else
|
|
485
|
+
for (const Ie of Array.from(Ue)) {
|
|
486
|
+
const de = ee + Ie;
|
|
487
|
+
if (t.countGraphemes(de) > Ee)
|
|
488
|
+
break;
|
|
489
|
+
ee = de;
|
|
490
|
+
}
|
|
491
|
+
n = wt + ee + Et, y = !0;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
if (String(n) === V.value) {
|
|
495
|
+
if (t.formatter || y) {
|
|
496
|
+
const E = o.target, ce = E.value, H = E.selectionStart, k = E.selectionEnd;
|
|
497
|
+
if (G(), y && w.value && H != null && k != null) {
|
|
498
|
+
const P = w.value.value, S = ce.slice(Math.max(0, k));
|
|
499
|
+
let T = Math.min(H, P.length);
|
|
500
|
+
S && P.endsWith(S) && (T = P.length - S.length), w.value.setSelectionRange(T, T);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
q.value = n, ft(), l(he, n), l(Pe, n), await U(), (t.formatter && t.parser || !dt.value) && G(), vt();
|
|
506
|
+
}, He = async (o) => {
|
|
507
|
+
let { value: s } = o.target;
|
|
508
|
+
t.showPassword && (O = s), s = Ge(s), t.modelModifiers.lazy && l(he, s), l(Ze, s, o), await U(), G();
|
|
509
|
+
}, { isComposing: De, handleCompositionStart: le, handleCompositionUpdate: re, handleCompositionEnd: ue } = Yt({
|
|
510
|
+
emit: l,
|
|
511
|
+
afterComposition: we
|
|
512
|
+
}), mt = () => {
|
|
513
|
+
F.value = !F.value;
|
|
514
|
+
}, ht = () => {
|
|
515
|
+
var o;
|
|
516
|
+
return (o = w.value) == null ? void 0 : o.focus();
|
|
517
|
+
}, yt = () => {
|
|
518
|
+
var o;
|
|
519
|
+
return (o = w.value) == null ? void 0 : o.blur();
|
|
520
|
+
}, bt = (o) => {
|
|
521
|
+
ye.value = !1, l("mouseleave", o);
|
|
522
|
+
}, gt = (o) => {
|
|
523
|
+
ye.value = !0, l("mouseenter", o);
|
|
524
|
+
}, je = (o) => {
|
|
525
|
+
l("keydown", o);
|
|
526
|
+
}, xt = () => {
|
|
527
|
+
var o;
|
|
528
|
+
(o = w.value) == null || o.select();
|
|
529
|
+
}, Se = (o) => {
|
|
530
|
+
l(he, ""), O = "", l(Ze, ""), l("clear", o), l(Pe, "");
|
|
531
|
+
};
|
|
532
|
+
return fe(() => t.modelValue, () => {
|
|
533
|
+
var o;
|
|
534
|
+
U(() => {
|
|
535
|
+
Q(), t.autosize && (ne.value = void 0);
|
|
536
|
+
}), t.validateEvent && ((o = m == null ? void 0 : m.validate) == null || o.call(m, "change").catch(D));
|
|
537
|
+
}), fe(() => V.value, (o) => {
|
|
538
|
+
q.value = o;
|
|
539
|
+
}, { immediate: !0 }), fe(V, (o) => {
|
|
540
|
+
if (!w.value)
|
|
541
|
+
return;
|
|
542
|
+
const { trim: s, number: n } = t.modelModifiers, y = w.value.value, E = (n || t.type === "number") && !/^0\d/.test(y) ? `${Qe(y)}` : y;
|
|
543
|
+
E !== o && (document.activeElement === w.value && w.value.type !== "range" && s && E.trim() === o || G());
|
|
544
|
+
}), fe(() => t.type, async () => {
|
|
545
|
+
await U(), G(), Q();
|
|
546
|
+
}), jt(() => {
|
|
547
|
+
!t.formatter && t.parser && tt(et, "If you set the parser, you also need to set the formatter."), G(), U(Q);
|
|
548
|
+
}), Ut(() => {
|
|
549
|
+
A && qe(A);
|
|
550
|
+
}), r({
|
|
551
|
+
/** @description HTML input element */
|
|
552
|
+
input: oe,
|
|
553
|
+
/** @description HTML textarea element */
|
|
554
|
+
textarea: z,
|
|
555
|
+
/** @description HTML element, input or textarea */
|
|
556
|
+
ref: w,
|
|
557
|
+
/** @description style of textarea. */
|
|
558
|
+
textareaStyle: $e,
|
|
559
|
+
/** @description from props (used on unit test) */
|
|
560
|
+
autosize: Wt(t, "autosize"),
|
|
561
|
+
/** @description is input composing */
|
|
562
|
+
isComposing: De,
|
|
563
|
+
/** @description whether the password is visible */
|
|
564
|
+
passwordVisible: F,
|
|
565
|
+
/** @description HTML input element native method */
|
|
566
|
+
focus: ht,
|
|
567
|
+
/** @description HTML input element native method */
|
|
568
|
+
blur: yt,
|
|
569
|
+
/** @description HTML input element native method */
|
|
570
|
+
select: xt,
|
|
571
|
+
/** @description clear input value */
|
|
572
|
+
clear: Se,
|
|
573
|
+
/** @description resize textarea. */
|
|
574
|
+
resizeTextarea: Q
|
|
575
|
+
}), (o, s) => (d(), M("div", {
|
|
576
|
+
class: h([g.value, {
|
|
577
|
+
[a(i).bm("group", "append")]: o.$slots.append,
|
|
578
|
+
[a(i).bm("group", "prepend")]: o.$slots.prepend
|
|
579
|
+
}]),
|
|
580
|
+
style: ve(rt.value),
|
|
581
|
+
onMouseenter: gt,
|
|
582
|
+
onMouseleave: bt
|
|
583
|
+
}, [v(" input "), e.type !== "textarea" ? (d(), M(Ve, { key: 0 }, [
|
|
584
|
+
v(" prepend slot "),
|
|
585
|
+
o.$slots.prepend ? (d(), M("div", {
|
|
586
|
+
key: 0,
|
|
587
|
+
class: h(a(i).be("group", "prepend"))
|
|
588
|
+
}, [te(o.$slots, "prepend")], 2)) : v("v-if", !0),
|
|
589
|
+
W("div", {
|
|
590
|
+
ref_key: "wrapperRef",
|
|
591
|
+
ref: it,
|
|
592
|
+
class: h(N.value)
|
|
593
|
+
}, [
|
|
594
|
+
v(" prefix slot "),
|
|
595
|
+
o.$slots.prefix || e.prefixIcon ? (d(), M("span", {
|
|
596
|
+
key: 0,
|
|
597
|
+
class: h(a(i).e("prefix"))
|
|
598
|
+
}, [W("span", { class: h(a(i).e("prefix-inner")) }, [te(o.$slots, "prefix"), e.prefixIcon ? (d(), C(a(Y), {
|
|
599
|
+
key: 0,
|
|
600
|
+
class: h(a(i).e("icon"))
|
|
601
|
+
}, {
|
|
602
|
+
default: K(() => [(d(), C(X(e.prefixIcon)))]),
|
|
603
|
+
_: 1
|
|
604
|
+
}, 8, ["class"])) : v("v-if", !0)], 2)], 2)) : v("v-if", !0),
|
|
605
|
+
W("input", Je({
|
|
606
|
+
id: a(ke),
|
|
607
|
+
ref_key: "input",
|
|
608
|
+
ref: oe,
|
|
609
|
+
class: a(i).e("inner")
|
|
610
|
+
}, a(R), {
|
|
611
|
+
name: e.name,
|
|
612
|
+
minlength: e.countGraphemes ? void 0 : e.minlength,
|
|
613
|
+
maxlength: e.countGraphemes ? void 0 : x.value,
|
|
614
|
+
type: e.showPassword ? F.value ? "text" : "password" : e.type,
|
|
615
|
+
disabled: a(B),
|
|
616
|
+
readonly: e.readonly,
|
|
617
|
+
autocomplete: e.autocomplete,
|
|
618
|
+
tabindex: e.tabindex,
|
|
619
|
+
"aria-label": e.ariaLabel,
|
|
620
|
+
placeholder: e.placeholder,
|
|
621
|
+
style: e.inputStyle,
|
|
622
|
+
form: e.form,
|
|
623
|
+
autofocus: e.autofocus,
|
|
624
|
+
role: e.containerRole,
|
|
625
|
+
inputmode: e.inputmode,
|
|
626
|
+
onCompositionstart: s[0] || (s[0] = (...n) => a(le) && a(le)(...n)),
|
|
627
|
+
onCompositionupdate: s[1] || (s[1] = (...n) => a(re) && a(re)(...n)),
|
|
628
|
+
onCompositionend: s[2] || (s[2] = (...n) => a(ue) && a(ue)(...n)),
|
|
629
|
+
onInput: we,
|
|
630
|
+
onChange: He,
|
|
631
|
+
onKeydown: je
|
|
632
|
+
}), null, 16, lo),
|
|
633
|
+
v(" suffix slot "),
|
|
634
|
+
ct.value ? (d(), M("span", {
|
|
635
|
+
key: 1,
|
|
636
|
+
class: h(a(i).e("suffix"))
|
|
637
|
+
}, [W("span", { class: h(a(i).e("suffix-inner")) }, [
|
|
638
|
+
ge.value ? (d(), C(a(Y), {
|
|
639
|
+
key: 0,
|
|
640
|
+
class: h([a(i).e("icon"), a(i).e("clear")]),
|
|
641
|
+
style: ve({ visibility: se.value ? "visible" : "hidden" }),
|
|
642
|
+
onMousedown: pe(a(D), ["prevent"]),
|
|
643
|
+
onClick: Se
|
|
644
|
+
}, {
|
|
645
|
+
default: K(() => [(d(), C(X(e.clearIcon)))]),
|
|
646
|
+
_: 1
|
|
647
|
+
}, 8, [
|
|
648
|
+
"class",
|
|
649
|
+
"style",
|
|
650
|
+
"onMousedown"
|
|
651
|
+
])) : v("v-if", !0),
|
|
652
|
+
!se.value || !xe.value || !$.value ? (d(), M(Ve, { key: 1 }, [te(o.$slots, "suffix"), e.suffixIcon ? (d(), C(a(Y), {
|
|
653
|
+
key: 0,
|
|
654
|
+
class: h(a(i).e("icon"))
|
|
655
|
+
}, {
|
|
656
|
+
default: K(() => [(d(), C(X(e.suffixIcon)))]),
|
|
657
|
+
_: 1
|
|
658
|
+
}, 8, ["class"])) : v("v-if", !0)], 64)) : v("v-if", !0),
|
|
659
|
+
xe.value ? (d(), C(a(Y), {
|
|
660
|
+
key: 2,
|
|
661
|
+
class: h([a(i).e("icon"), a(i).e("password")]),
|
|
662
|
+
onClick: mt,
|
|
663
|
+
onMousedown: pe(a(D), ["prevent"]),
|
|
664
|
+
onMouseup: pe(a(D), ["prevent"])
|
|
665
|
+
}, {
|
|
666
|
+
default: K(() => [te(o.$slots, "password-icon", { visible: F.value }, () => [(d(), C(X(lt.value)))])]),
|
|
667
|
+
_: 3
|
|
668
|
+
}, 8, [
|
|
669
|
+
"class",
|
|
670
|
+
"onMousedown",
|
|
671
|
+
"onMouseup"
|
|
672
|
+
])) : v("v-if", !0),
|
|
673
|
+
$.value ? (d(), M("span", {
|
|
674
|
+
key: 3,
|
|
675
|
+
class: h([a(i).e("count"), a(i).is("outside", e.wordLimitPosition === "outside")]),
|
|
676
|
+
"aria-label": Ae.value,
|
|
677
|
+
role: "status"
|
|
678
|
+
}, [W("span", { class: h(a(i).e("count-inner")) }, me(ie.value) + " / " + me(x.value), 3)], 10, ro)) : v("v-if", !0),
|
|
679
|
+
J.value && Oe.value && Fe.value ? (d(), C(a(Y), {
|
|
680
|
+
key: 4,
|
|
681
|
+
class: h([
|
|
682
|
+
a(i).e("icon"),
|
|
683
|
+
a(i).e("validateIcon"),
|
|
684
|
+
a(i).is("loading", J.value === "validating")
|
|
685
|
+
])
|
|
686
|
+
}, {
|
|
687
|
+
default: K(() => [(d(), C(X(Oe.value)))]),
|
|
688
|
+
_: 1
|
|
689
|
+
}, 8, ["class"])) : v("v-if", !0)
|
|
690
|
+
], 2)], 2)) : v("v-if", !0)
|
|
691
|
+
], 2),
|
|
692
|
+
v(" append slot "),
|
|
693
|
+
o.$slots.append ? (d(), M("div", {
|
|
694
|
+
key: 1,
|
|
695
|
+
class: h(a(i).be("group", "append"))
|
|
696
|
+
}, [te(o.$slots, "append")], 2)) : v("v-if", !0)
|
|
697
|
+
], 64)) : (d(), M(Ve, { key: 1 }, [
|
|
698
|
+
v(" textarea "),
|
|
699
|
+
W("textarea", Je({
|
|
700
|
+
id: a(ke),
|
|
701
|
+
ref_key: "textarea",
|
|
702
|
+
ref: z,
|
|
703
|
+
class: [
|
|
704
|
+
a(Z).e("inner"),
|
|
705
|
+
a(i).is("focus", a(be)),
|
|
706
|
+
a(Z).is("clearable", e.clearable)
|
|
707
|
+
]
|
|
708
|
+
}, a(R), {
|
|
709
|
+
name: e.name,
|
|
710
|
+
minlength: e.countGraphemes ? void 0 : e.minlength,
|
|
711
|
+
maxlength: e.countGraphemes ? void 0 : x.value,
|
|
712
|
+
tabindex: e.tabindex,
|
|
713
|
+
disabled: a(B),
|
|
714
|
+
readonly: e.readonly,
|
|
715
|
+
autocomplete: e.autocomplete,
|
|
716
|
+
style: $e.value,
|
|
717
|
+
"aria-label": e.ariaLabel,
|
|
718
|
+
placeholder: e.placeholder,
|
|
719
|
+
form: e.form,
|
|
720
|
+
autofocus: e.autofocus,
|
|
721
|
+
rows: e.rows,
|
|
722
|
+
role: e.containerRole,
|
|
723
|
+
inputmode: e.inputmode,
|
|
724
|
+
onCompositionstart: s[3] || (s[3] = (...n) => a(le) && a(le)(...n)),
|
|
725
|
+
onCompositionupdate: s[4] || (s[4] = (...n) => a(re) && a(re)(...n)),
|
|
726
|
+
onCompositionend: s[5] || (s[5] = (...n) => a(ue) && a(ue)(...n)),
|
|
727
|
+
onInput: we,
|
|
728
|
+
onFocus: s[6] || (s[6] = (...n) => a(Re) && a(Re)(...n)),
|
|
729
|
+
onBlur: s[7] || (s[7] = (...n) => a(Be) && a(Be)(...n)),
|
|
730
|
+
onChange: He,
|
|
731
|
+
onKeydown: je
|
|
732
|
+
}), null, 16, uo),
|
|
733
|
+
se.value ? (d(), C(a(Y), {
|
|
734
|
+
key: 0,
|
|
735
|
+
class: h([a(Z).e("icon"), a(Z).e("clear")]),
|
|
736
|
+
style: ve(Le.value),
|
|
737
|
+
onMousedown: pe(a(D), ["prevent"]),
|
|
738
|
+
onClick: Se
|
|
739
|
+
}, {
|
|
740
|
+
default: K(() => [(d(), C(X(e.clearIcon)))]),
|
|
741
|
+
_: 1
|
|
742
|
+
}, 8, [
|
|
743
|
+
"class",
|
|
744
|
+
"style",
|
|
745
|
+
"onMousedown"
|
|
746
|
+
])) : v("v-if", !0),
|
|
747
|
+
$.value ? (d(), M("span", {
|
|
748
|
+
key: 1,
|
|
749
|
+
style: ve(Te.value),
|
|
750
|
+
class: h([a(i).e("count"), a(i).is("outside", e.wordLimitPosition === "outside")]),
|
|
751
|
+
"aria-label": Ae.value,
|
|
752
|
+
role: "status"
|
|
753
|
+
}, me(ie.value) + " / " + me(x.value), 15, co)) : v("v-if", !0)
|
|
754
|
+
], 64))], 38));
|
|
755
|
+
}
|
|
756
|
+
}), vo = fo;
|
|
757
|
+
const Io = zt(vo);
|
|
758
|
+
export {
|
|
759
|
+
Io as E,
|
|
760
|
+
oo as i
|
|
761
|
+
};
|