@web-utils/form-ui 1.0.0-beta39 → 1.0.0-beta40
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/chunks/DF9fJMQS.mjs +105 -0
- package/form-textarea/index.d.ts +12 -31
- package/form-textarea/index.mjs +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
- package/chunks/DtsuMuSg.mjs +0 -32
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { n as e } from "./Cj59E77g.mjs";
|
|
2
|
+
import { n as t, t as n } from "./CSyJ-vEx.mjs";
|
|
3
|
+
import { t as r } from "./CFOGMFgo.mjs";
|
|
4
|
+
import { createVNode as i, isVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
5
|
+
//#region src/components/form/props/textarea.ts
|
|
6
|
+
var c = {
|
|
7
|
+
...t,
|
|
8
|
+
...n,
|
|
9
|
+
modelValue: [String, Number],
|
|
10
|
+
modelModifiers: Object,
|
|
11
|
+
maxlength: {
|
|
12
|
+
type: [String, Number],
|
|
13
|
+
default: 800
|
|
14
|
+
},
|
|
15
|
+
minlength: [String, Number],
|
|
16
|
+
showWordLimit: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
wordLimitPosition: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "inside"
|
|
23
|
+
},
|
|
24
|
+
placeholder: String,
|
|
25
|
+
clearIcon: [String, Object],
|
|
26
|
+
formatter: Function,
|
|
27
|
+
parser: Function,
|
|
28
|
+
showPassword: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
prefixIcon: [String, Object],
|
|
33
|
+
suffixIcon: [String, Object],
|
|
34
|
+
rows: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 4
|
|
37
|
+
},
|
|
38
|
+
autosize: [Boolean, Object],
|
|
39
|
+
autocomplete: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "off"
|
|
42
|
+
},
|
|
43
|
+
name: String,
|
|
44
|
+
readonly: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
max: [String, Number],
|
|
49
|
+
min: [String, Number],
|
|
50
|
+
step: [String, Number],
|
|
51
|
+
resize: String,
|
|
52
|
+
autofocus: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
form: String,
|
|
57
|
+
ariaLabel: String,
|
|
58
|
+
tabindex: [String, Number],
|
|
59
|
+
validateEvent: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
62
|
+
},
|
|
63
|
+
inputStyle: [String, Object],
|
|
64
|
+
inputmode: String,
|
|
65
|
+
countGraphemes: Function,
|
|
66
|
+
readonlyGrey: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !0
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/form/FormTextarea.vue?vue&type=script&lang.jsx
|
|
73
|
+
function l(e) {
|
|
74
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/form/FormTextarea.vue
|
|
78
|
+
var u = {
|
|
79
|
+
name: "FormTextarea",
|
|
80
|
+
inheritAttrs: !1,
|
|
81
|
+
props: {
|
|
82
|
+
...c,
|
|
83
|
+
maxlength: {
|
|
84
|
+
type: [String, Number],
|
|
85
|
+
default: 800
|
|
86
|
+
},
|
|
87
|
+
block: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !0
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
emits: { ...e },
|
|
93
|
+
setup(e, { slots: t, attrs: n }) {
|
|
94
|
+
let a = s(e, "modelValue");
|
|
95
|
+
return () => i(r, o(e, n, {
|
|
96
|
+
maxlength: e.maxlength,
|
|
97
|
+
block: e.block,
|
|
98
|
+
modelValue: a.value,
|
|
99
|
+
"onUpdate:modelValue": (e) => a.value = e,
|
|
100
|
+
type: "textarea"
|
|
101
|
+
}), l(t) ? t : { default: () => [t] });
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { u as t };
|
package/form-textarea/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
3
3
|
type: (StringConstructor | NumberConstructor)[];
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
type:
|
|
8
|
-
default:
|
|
6
|
+
block: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
modelValue: (StringConstructor | NumberConstructor)[];
|
|
11
11
|
modelModifiers: ObjectConstructor;
|
|
@@ -19,10 +19,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
placeholder: StringConstructor;
|
|
22
|
-
clearable: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
22
|
clearIcon: (StringConstructor | ObjectConstructor)[];
|
|
27
23
|
formatter: FunctionConstructor;
|
|
28
24
|
parser: FunctionConstructor;
|
|
@@ -30,7 +26,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
30
26
|
type: BooleanConstructor;
|
|
31
27
|
default: boolean;
|
|
32
28
|
};
|
|
33
|
-
size: StringConstructor;
|
|
34
29
|
prefixIcon: (StringConstructor | ObjectConstructor)[];
|
|
35
30
|
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
36
31
|
rows: {
|
|
@@ -65,15 +60,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
65
60
|
inputStyle: (StringConstructor | ObjectConstructor)[];
|
|
66
61
|
inputmode: StringConstructor;
|
|
67
62
|
countGraphemes: FunctionConstructor;
|
|
68
|
-
prepend: StringConstructor;
|
|
69
|
-
append: StringConstructor;
|
|
70
|
-
prefix: StringConstructor;
|
|
71
|
-
suffix: StringConstructor;
|
|
72
|
-
picker: BooleanConstructor;
|
|
73
63
|
readonlyGrey: {
|
|
74
64
|
type: BooleanConstructor;
|
|
75
65
|
default: boolean;
|
|
76
66
|
};
|
|
67
|
+
size: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
};
|
|
77
70
|
wrapFormItem: {
|
|
78
71
|
type: BooleanConstructor;
|
|
79
72
|
default: boolean;
|
|
@@ -148,7 +141,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
148
141
|
default: boolean;
|
|
149
142
|
};
|
|
150
143
|
fixedSpan: NumberConstructor;
|
|
151
|
-
block: BooleanConstructor;
|
|
152
144
|
unwrap: BooleanConstructor;
|
|
153
145
|
half: BooleanConstructor;
|
|
154
146
|
formItemClass: StringConstructor;
|
|
@@ -171,9 +163,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
171
163
|
type: (StringConstructor | NumberConstructor)[];
|
|
172
164
|
default: number;
|
|
173
165
|
};
|
|
174
|
-
|
|
175
|
-
type:
|
|
176
|
-
default:
|
|
166
|
+
block: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
177
169
|
};
|
|
178
170
|
modelValue: (StringConstructor | NumberConstructor)[];
|
|
179
171
|
modelModifiers: ObjectConstructor;
|
|
@@ -187,10 +179,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
187
179
|
default: string;
|
|
188
180
|
};
|
|
189
181
|
placeholder: StringConstructor;
|
|
190
|
-
clearable: {
|
|
191
|
-
type: BooleanConstructor;
|
|
192
|
-
default: boolean;
|
|
193
|
-
};
|
|
194
182
|
clearIcon: (StringConstructor | ObjectConstructor)[];
|
|
195
183
|
formatter: FunctionConstructor;
|
|
196
184
|
parser: FunctionConstructor;
|
|
@@ -198,7 +186,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
198
186
|
type: BooleanConstructor;
|
|
199
187
|
default: boolean;
|
|
200
188
|
};
|
|
201
|
-
size: StringConstructor;
|
|
202
189
|
prefixIcon: (StringConstructor | ObjectConstructor)[];
|
|
203
190
|
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
204
191
|
rows: {
|
|
@@ -233,15 +220,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
233
220
|
inputStyle: (StringConstructor | ObjectConstructor)[];
|
|
234
221
|
inputmode: StringConstructor;
|
|
235
222
|
countGraphemes: FunctionConstructor;
|
|
236
|
-
prepend: StringConstructor;
|
|
237
|
-
append: StringConstructor;
|
|
238
|
-
prefix: StringConstructor;
|
|
239
|
-
suffix: StringConstructor;
|
|
240
|
-
picker: BooleanConstructor;
|
|
241
223
|
readonlyGrey: {
|
|
242
224
|
type: BooleanConstructor;
|
|
243
225
|
default: boolean;
|
|
244
226
|
};
|
|
227
|
+
size: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
};
|
|
245
230
|
wrapFormItem: {
|
|
246
231
|
type: BooleanConstructor;
|
|
247
232
|
default: boolean;
|
|
@@ -316,7 +301,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
316
301
|
default: boolean;
|
|
317
302
|
};
|
|
318
303
|
fixedSpan: NumberConstructor;
|
|
319
|
-
block: BooleanConstructor;
|
|
320
304
|
unwrap: BooleanConstructor;
|
|
321
305
|
half: BooleanConstructor;
|
|
322
306
|
formItemClass: StringConstructor;
|
|
@@ -337,7 +321,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
337
321
|
}>, {
|
|
338
322
|
disabled: boolean;
|
|
339
323
|
autofocus: boolean;
|
|
340
|
-
type: string;
|
|
341
324
|
push: number;
|
|
342
325
|
col: boolean;
|
|
343
326
|
span: number;
|
|
@@ -356,10 +339,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
356
339
|
inlineMessage: boolean;
|
|
357
340
|
pull: number;
|
|
358
341
|
wrapFormItem: boolean;
|
|
359
|
-
clearable: boolean;
|
|
360
342
|
validateEvent: boolean;
|
|
361
343
|
readonlyGrey: boolean;
|
|
362
|
-
picker: boolean;
|
|
363
344
|
maxlength: string | number;
|
|
364
345
|
showWordLimit: boolean;
|
|
365
346
|
wordLimitPosition: string;
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DF9fJMQS.mjs";
|
|
2
2
|
export { e as default };
|
package/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ import { t as F } from "./chunks/DXYgAmil.mjs";
|
|
|
37
37
|
import { t as I } from "./chunks/CqTcEefA.mjs";
|
|
38
38
|
import { t as L } from "./chunks/BH_JJ8Xh.mjs";
|
|
39
39
|
import { t as R } from "./chunks/Ct5bDJ50.mjs";
|
|
40
|
-
import { t as z } from "./chunks/
|
|
40
|
+
import { t as z } from "./chunks/DF9fJMQS.mjs";
|
|
41
41
|
import { t as B } from "./chunks/CTKmEf2M.mjs";
|
|
42
42
|
import V from "./form-view/index.mjs";
|
|
43
43
|
import H from "./iframe-window/index.mjs";
|