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