@plasmicpkgs/antd 2.0.19 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -0
- package/dist/antd.esm.js +703 -616
- package/dist/antd.esm.js.map +1 -1
- package/dist/customControls.d.ts +17 -17
- package/dist/index.d.ts +16 -16
- package/dist/index.js +2352 -5
- package/dist/index.js.map +1 -0
- package/dist/registerButton.d.ts +5 -5
- package/dist/registerCarousel.d.ts +5 -5
- package/dist/registerCheckbox.d.ts +8 -8
- package/dist/registerCollapse.d.ts +14 -14
- package/dist/registerDropdown.d.ts +11 -11
- package/dist/registerInput.d.ts +14 -14
- package/dist/registerMenu.d.ts +15 -15
- package/dist/registerOption.d.ts +8 -8
- package/dist/registerRate.d.ts +5 -5
- package/dist/registerSelect.d.ts +8 -8
- package/dist/registerSlider.d.ts +19 -19
- package/dist/registerSwitch.d.ts +5 -5
- package/dist/registerTable.d.ts +30 -30
- package/dist/registerTabs.d.ts +14 -13
- package/dist/registerable.d.ts +4 -4
- package/package.json +10 -9
- package/skinny/customControls-fb0b7e5f.js +22 -0
- package/skinny/{customControls-ff79afdf.js.map → customControls-fb0b7e5f.js.map} +1 -1
- package/skinny/customControls.d.ts +17 -17
- package/skinny/registerButton.d.ts +5 -5
- package/skinny/registerButton.js +80 -81
- package/skinny/registerButton.js.map +1 -1
- package/skinny/registerCarousel.d.ts +5 -5
- package/skinny/registerCarousel.js +66 -67
- package/skinny/registerCarousel.js.map +1 -1
- package/skinny/registerCheckbox.d.ts +8 -8
- package/skinny/registerCheckbox.js +125 -121
- package/skinny/registerCheckbox.js.map +1 -1
- package/skinny/registerCollapse.d.ts +14 -14
- package/skinny/registerCollapse.js +174 -153
- package/skinny/registerCollapse.js.map +1 -1
- package/skinny/registerDropdown.d.ts +11 -11
- package/skinny/registerDropdown.js +175 -171
- package/skinny/registerDropdown.js.map +1 -1
- package/skinny/registerInput.d.ts +14 -14
- package/skinny/registerInput.js +362 -312
- package/skinny/registerInput.js.map +1 -1
- package/skinny/registerMenu.d.ts +15 -15
- package/skinny/registerMenu.js +275 -298
- package/skinny/registerMenu.js.map +1 -1
- package/skinny/registerOption.d.ts +8 -8
- package/skinny/registerOption.js +73 -81
- package/skinny/registerOption.js.map +1 -1
- package/skinny/registerRate.d.ts +5 -5
- package/skinny/registerRate.js +66 -0
- package/skinny/registerRate.js.map +1 -0
- package/skinny/registerSelect.d.ts +8 -8
- package/skinny/registerSelect.js +129 -130
- package/skinny/registerSelect.js.map +1 -1
- package/skinny/registerSlider.d.ts +19 -19
- package/skinny/registerSlider.js +132 -104
- package/skinny/registerSlider.js.map +1 -1
- package/skinny/registerSwitch.d.ts +5 -5
- package/skinny/registerSwitch.js +55 -56
- package/skinny/registerSwitch.js.map +1 -1
- package/skinny/registerTable.d.ts +30 -30
- package/skinny/registerTable.js +202 -183
- package/skinny/registerTable.js.map +1 -1
- package/skinny/registerTabs.d.ts +14 -13
- package/skinny/registerTabs.js +344 -311
- package/skinny/registerTabs.js.map +1 -1
- package/skinny/registerable.d.ts +4 -4
- package/skinny/registerable.js +3 -0
- package/skinny/registerable.js.map +1 -0
- package/dist/antd.cjs.development.js +0 -2243
- package/dist/antd.cjs.development.js.map +0 -1
- package/dist/antd.cjs.production.min.js +0 -2
- package/dist/antd.cjs.production.min.js.map +0 -1
- package/skinny/customControls-ff79afdf.js +0 -27
- package/skinny/index.d.ts +0 -16
- package/skinny/tslib.es6-b92c4a81.js +0 -59
- package/skinny/tslib.es6-b92c4a81.js.map +0 -1
package/skinny/registerInput.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-b92c4a81.js');
|
|
4
3
|
var registerComponent = require('@plasmicapp/host/registerComponent');
|
|
5
4
|
var Input = require('antd/lib/input');
|
|
6
5
|
var InputGroup = require('antd/lib/input/Group');
|
|
@@ -8,317 +7,368 @@ var Password = require('antd/lib/input/Password');
|
|
|
8
7
|
var Search = require('antd/lib/input/Search');
|
|
9
8
|
var TextArea = require('antd/lib/input/TextArea');
|
|
10
9
|
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
|
|
13
|
+
var Input__default = /*#__PURE__*/_interopDefault(Input);
|
|
14
|
+
var InputGroup__default = /*#__PURE__*/_interopDefault(InputGroup);
|
|
15
|
+
var Password__default = /*#__PURE__*/_interopDefault(Password);
|
|
16
|
+
var Search__default = /*#__PURE__*/_interopDefault(Search);
|
|
17
|
+
var TextArea__default = /*#__PURE__*/_interopDefault(TextArea);
|
|
18
|
+
|
|
19
|
+
var __defProp = Object.defineProperty;
|
|
20
|
+
var __defProps = Object.defineProperties;
|
|
21
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
22
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
23
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
24
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
25
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
26
|
+
var __spreadValues = (a, b) => {
|
|
27
|
+
for (var prop in b || (b = {}))
|
|
28
|
+
if (__hasOwnProp.call(b, prop))
|
|
29
|
+
__defNormalProp(a, prop, b[prop]);
|
|
30
|
+
if (__getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
32
|
+
if (__propIsEnum.call(b, prop))
|
|
33
|
+
__defNormalProp(a, prop, b[prop]);
|
|
34
|
+
}
|
|
35
|
+
return a;
|
|
36
|
+
};
|
|
37
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
38
|
+
function sortObjectKeys(obj) {
|
|
39
|
+
return Object.fromEntries(Object.entries(obj).sort());
|
|
40
|
+
}
|
|
41
|
+
function sortProps(props) {
|
|
42
|
+
return sortObjectKeys(props);
|
|
43
|
+
}
|
|
44
|
+
const commonHtmlAttributes = {
|
|
45
|
+
"aria-label": {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "The ARIA label for this input"
|
|
48
|
+
},
|
|
49
|
+
"aria-labelledby": {
|
|
50
|
+
type: "string",
|
|
51
|
+
description: "Identifies the element(s) that labels this input"
|
|
52
|
+
},
|
|
53
|
+
name: {
|
|
54
|
+
type: "string",
|
|
55
|
+
description: "The HTML name of the input"
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const inputMeta = {
|
|
59
|
+
name: "AntdInput",
|
|
60
|
+
displayName: "Antd Input",
|
|
61
|
+
props: sortProps(__spreadProps(__spreadValues({}, commonHtmlAttributes), {
|
|
62
|
+
addonAfter: {
|
|
63
|
+
type: "slot",
|
|
64
|
+
hidePlaceholder: true
|
|
65
|
+
},
|
|
66
|
+
addonBefore: {
|
|
67
|
+
type: "slot",
|
|
68
|
+
hidePlaceholder: true
|
|
69
|
+
},
|
|
70
|
+
allowClear: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
description: "If allow to remove input content with clear icon",
|
|
73
|
+
defaultValueHint: false
|
|
74
|
+
},
|
|
75
|
+
bordered: {
|
|
76
|
+
type: "boolean",
|
|
77
|
+
description: "Whether has border style",
|
|
78
|
+
defaultValueHint: true
|
|
79
|
+
},
|
|
80
|
+
disabled: {
|
|
81
|
+
type: "boolean",
|
|
82
|
+
description: "Whether the input is disabled",
|
|
83
|
+
defaultValueHint: false
|
|
84
|
+
},
|
|
85
|
+
id: {
|
|
86
|
+
type: "string",
|
|
87
|
+
description: "The ID for input"
|
|
88
|
+
},
|
|
89
|
+
maxLength: {
|
|
90
|
+
type: "number",
|
|
91
|
+
description: "The max length"
|
|
92
|
+
},
|
|
93
|
+
placeholder: {
|
|
94
|
+
type: "string",
|
|
95
|
+
description: "Placeholder for the input"
|
|
96
|
+
},
|
|
97
|
+
prefix: {
|
|
98
|
+
type: "slot",
|
|
99
|
+
hidePlaceholder: true
|
|
100
|
+
},
|
|
101
|
+
size: {
|
|
102
|
+
type: "choice",
|
|
103
|
+
options: ["small", "middle", "large"],
|
|
104
|
+
description: "The size of the input box",
|
|
105
|
+
defaultValueHint: "middle,"
|
|
106
|
+
},
|
|
107
|
+
suffix: {
|
|
108
|
+
type: "slot",
|
|
109
|
+
hidePlaceholder: true
|
|
110
|
+
},
|
|
111
|
+
type: {
|
|
112
|
+
type: "string",
|
|
113
|
+
description: "The type of input",
|
|
114
|
+
defaultValueHint: "text"
|
|
115
|
+
},
|
|
116
|
+
value: {
|
|
117
|
+
type: "string",
|
|
118
|
+
editOnly: true,
|
|
119
|
+
uncontrolledProp: "defaultValue"
|
|
120
|
+
}
|
|
121
|
+
})),
|
|
122
|
+
importPath: "antd/lib/input",
|
|
123
|
+
importName: "Input",
|
|
124
|
+
isDefaultExport: true
|
|
125
|
+
};
|
|
126
|
+
function registerInput(loader, customInputMeta) {
|
|
127
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
128
|
+
doRegisterComponent(Input__default.default, customInputMeta != null ? customInputMeta : inputMeta);
|
|
129
|
+
}
|
|
130
|
+
const inputTextAreaMeta = {
|
|
131
|
+
name: "AntdInputTextArea",
|
|
132
|
+
displayName: "Antd Input Text Area",
|
|
133
|
+
props: sortProps(__spreadProps(__spreadValues({}, commonHtmlAttributes), {
|
|
134
|
+
allowClear: {
|
|
135
|
+
type: "boolean",
|
|
136
|
+
description: "If allow to remove input content with clear icon",
|
|
137
|
+
defaultValueHint: false
|
|
138
|
+
},
|
|
139
|
+
autoSize: {
|
|
140
|
+
type: "object",
|
|
141
|
+
description: "Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }"
|
|
142
|
+
},
|
|
143
|
+
disabled: {
|
|
144
|
+
type: "boolean",
|
|
145
|
+
description: "Whether the input is disabled",
|
|
146
|
+
defaultValueHint: false
|
|
147
|
+
},
|
|
148
|
+
bordered: {
|
|
149
|
+
type: "boolean",
|
|
150
|
+
description: "Whether has border style",
|
|
151
|
+
defaultValueHint: true
|
|
152
|
+
},
|
|
153
|
+
showCount: {
|
|
154
|
+
type: "boolean",
|
|
155
|
+
description: "Whether show text count",
|
|
156
|
+
defaultValueHint: false
|
|
157
|
+
},
|
|
158
|
+
id: {
|
|
159
|
+
type: "string",
|
|
160
|
+
description: "The ID for input"
|
|
161
|
+
},
|
|
162
|
+
maxLength: {
|
|
163
|
+
type: "number",
|
|
164
|
+
description: "The max length"
|
|
165
|
+
},
|
|
166
|
+
placeholder: {
|
|
167
|
+
type: "string",
|
|
168
|
+
description: "Placeholder for the input"
|
|
169
|
+
},
|
|
170
|
+
value: {
|
|
171
|
+
type: "string",
|
|
172
|
+
editOnly: true,
|
|
173
|
+
uncontrolledProp: "defaultValue"
|
|
174
|
+
}
|
|
175
|
+
})),
|
|
176
|
+
importPath: "antd/lib/input/TextArea",
|
|
177
|
+
importName: "TextArea",
|
|
178
|
+
isDefaultExport: true,
|
|
179
|
+
parentComponentName: "AntdInput"
|
|
180
|
+
};
|
|
181
|
+
function registerInputTextArea(loader, customInputTextAreaMeta) {
|
|
182
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
183
|
+
doRegisterComponent(TextArea__default.default, customInputTextAreaMeta != null ? customInputTextAreaMeta : inputTextAreaMeta);
|
|
184
|
+
}
|
|
185
|
+
const inputSearchMeta = {
|
|
186
|
+
name: "AntdInputSearch",
|
|
187
|
+
displayName: "Antd Input Search",
|
|
188
|
+
props: sortProps(__spreadProps(__spreadValues({}, commonHtmlAttributes), {
|
|
189
|
+
addonBefore: {
|
|
190
|
+
type: "slot",
|
|
191
|
+
hidePlaceholder: true
|
|
192
|
+
},
|
|
193
|
+
allowClear: {
|
|
194
|
+
type: "boolean",
|
|
195
|
+
description: "If allow to remove input content with clear icon",
|
|
196
|
+
defaultValueHint: false
|
|
197
|
+
},
|
|
198
|
+
bordered: {
|
|
199
|
+
type: "boolean",
|
|
200
|
+
description: "Whether has border style",
|
|
201
|
+
defaultValueHint: true
|
|
202
|
+
},
|
|
203
|
+
disabled: {
|
|
204
|
+
type: "boolean",
|
|
205
|
+
description: "Whether the input is disabled",
|
|
206
|
+
defaultValueHint: false
|
|
207
|
+
},
|
|
208
|
+
enterButton: {
|
|
209
|
+
type: "slot",
|
|
210
|
+
hidePlaceholder: true
|
|
211
|
+
},
|
|
212
|
+
id: {
|
|
213
|
+
type: "string",
|
|
214
|
+
description: "The ID for input"
|
|
215
|
+
},
|
|
216
|
+
loading: {
|
|
217
|
+
type: "boolean",
|
|
218
|
+
description: "Search box with loading",
|
|
219
|
+
defaultValueHint: false
|
|
220
|
+
},
|
|
221
|
+
maxLength: {
|
|
222
|
+
type: "number",
|
|
223
|
+
description: "The max length"
|
|
224
|
+
},
|
|
225
|
+
placeholder: {
|
|
226
|
+
type: "string",
|
|
227
|
+
description: "Placeholder for the input"
|
|
228
|
+
},
|
|
229
|
+
prefix: {
|
|
230
|
+
type: "slot",
|
|
231
|
+
hidePlaceholder: true
|
|
232
|
+
},
|
|
233
|
+
size: {
|
|
234
|
+
type: "choice",
|
|
235
|
+
options: ["small", "middle", "large"],
|
|
236
|
+
description: "The size of the input box",
|
|
237
|
+
defaultValueHint: "middle"
|
|
238
|
+
},
|
|
239
|
+
suffix: {
|
|
240
|
+
type: "slot",
|
|
241
|
+
hidePlaceholder: true
|
|
242
|
+
},
|
|
243
|
+
type: {
|
|
244
|
+
type: "string",
|
|
245
|
+
description: "The type of input"
|
|
246
|
+
},
|
|
247
|
+
value: {
|
|
248
|
+
type: "string",
|
|
249
|
+
editOnly: true,
|
|
250
|
+
uncontrolledProp: "defaultValue"
|
|
251
|
+
}
|
|
252
|
+
})),
|
|
253
|
+
importPath: "antd/lib/input/Search",
|
|
254
|
+
importName: "Search",
|
|
255
|
+
isDefaultExport: true,
|
|
256
|
+
parentComponentName: "AntdInput"
|
|
257
|
+
};
|
|
258
|
+
function registerInputSearch(loader, customInputSearchMeta) {
|
|
259
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
260
|
+
doRegisterComponent(Search__default.default, customInputSearchMeta != null ? customInputSearchMeta : inputSearchMeta);
|
|
261
|
+
}
|
|
262
|
+
const inputPasswordMeta = {
|
|
263
|
+
name: "AntdInputPassword",
|
|
264
|
+
displayName: "Antd Input Password",
|
|
265
|
+
props: sortProps(__spreadProps(__spreadValues({}, commonHtmlAttributes), {
|
|
266
|
+
addonAfter: {
|
|
267
|
+
type: "slot",
|
|
268
|
+
hidePlaceholder: true
|
|
269
|
+
},
|
|
270
|
+
addonBefore: {
|
|
271
|
+
type: "slot",
|
|
272
|
+
hidePlaceholder: true
|
|
273
|
+
},
|
|
274
|
+
allowClear: {
|
|
275
|
+
type: "boolean",
|
|
276
|
+
description: "If allow to remove input content with clear icon",
|
|
277
|
+
defaultValueHint: false
|
|
278
|
+
},
|
|
279
|
+
bordered: {
|
|
280
|
+
type: "boolean",
|
|
281
|
+
description: "Whether has border style",
|
|
282
|
+
defaultValueHint: true
|
|
283
|
+
},
|
|
284
|
+
disabled: {
|
|
285
|
+
type: "boolean",
|
|
286
|
+
description: "Whether the input is disabled",
|
|
287
|
+
defaultValueHint: false
|
|
288
|
+
},
|
|
289
|
+
id: {
|
|
290
|
+
type: "string",
|
|
291
|
+
description: "The ID for input"
|
|
292
|
+
},
|
|
293
|
+
maxLength: {
|
|
294
|
+
type: "number",
|
|
295
|
+
description: "The max length"
|
|
296
|
+
},
|
|
297
|
+
placeholder: {
|
|
298
|
+
type: "string",
|
|
299
|
+
description: "Placeholder for the input"
|
|
300
|
+
},
|
|
301
|
+
prefix: {
|
|
302
|
+
type: "slot",
|
|
303
|
+
hidePlaceholder: true
|
|
304
|
+
},
|
|
305
|
+
size: {
|
|
306
|
+
type: "choice",
|
|
307
|
+
options: ["small", "middle", "large"],
|
|
308
|
+
description: "The size of the input box",
|
|
309
|
+
defaultValueHint: "middle"
|
|
310
|
+
},
|
|
311
|
+
type: {
|
|
312
|
+
type: "string",
|
|
313
|
+
description: "The type of input"
|
|
314
|
+
},
|
|
315
|
+
value: {
|
|
316
|
+
type: "string",
|
|
317
|
+
editOnly: true,
|
|
318
|
+
uncontrolledProp: "defaultValue"
|
|
319
|
+
},
|
|
320
|
+
visibilityToggle: {
|
|
321
|
+
type: "boolean",
|
|
322
|
+
description: "Whether show toggle button",
|
|
323
|
+
defaultValueHint: true
|
|
324
|
+
}
|
|
325
|
+
})),
|
|
326
|
+
importPath: "antd/lib/input/Password",
|
|
327
|
+
importName: "Password",
|
|
328
|
+
isDefaultExport: true,
|
|
329
|
+
parentComponentName: "AntdInput"
|
|
330
|
+
};
|
|
331
|
+
function registerInputPassword(loader, customInputPasswordMeta) {
|
|
332
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
333
|
+
doRegisterComponent(Password__default.default, customInputPasswordMeta != null ? customInputPasswordMeta : inputPasswordMeta);
|
|
334
|
+
}
|
|
335
|
+
const inputGroupMeta = {
|
|
336
|
+
name: "AntdInputGroup",
|
|
337
|
+
displayName: "Antd Input Group",
|
|
338
|
+
props: {
|
|
339
|
+
compact: {
|
|
340
|
+
type: "boolean",
|
|
341
|
+
description: "Whether use compact style",
|
|
342
|
+
defaultValueHint: false
|
|
343
|
+
},
|
|
344
|
+
size: {
|
|
345
|
+
type: "choice",
|
|
346
|
+
options: ["small", "default", "large"],
|
|
347
|
+
description: "The size of Input.Group specifies the size of the included Input fields",
|
|
348
|
+
defaultValueHint: "default"
|
|
349
|
+
},
|
|
350
|
+
children: {
|
|
351
|
+
type: "slot",
|
|
352
|
+
defaultValue: [
|
|
353
|
+
{
|
|
354
|
+
type: "component",
|
|
355
|
+
name: "AntdInput"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
type: "component",
|
|
359
|
+
name: "AntdInput"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
importPath: "antd/lib/input/Group",
|
|
365
|
+
importName: "InputGroup",
|
|
366
|
+
isDefaultExport: true,
|
|
367
|
+
parentComponentName: "AntdInput"
|
|
368
|
+
};
|
|
369
|
+
function registerInputGroup(loader, customInputGroupMeta) {
|
|
370
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
371
|
+
doRegisterComponent(InputGroup__default.default, customInputGroupMeta != null ? customInputGroupMeta : inputGroupMeta);
|
|
322
372
|
}
|
|
323
373
|
|
|
324
374
|
exports.inputGroupMeta = inputGroupMeta;
|