@rxap/schematic-angular 18.1.1-dev.5 → 18.2.0-dev.0
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/CHANGELOG.md +10 -0
- package/collection.json +5 -0
- package/package.json +5 -5
- package/src/lib/form/control/date-form-control.d.ts +14 -0
- package/src/lib/form/control/date-form-control.js +34 -0
- package/src/lib/form/control/date-form-control.js.map +1 -0
- package/src/lib/form/control/form-control-kind.d.ts +2 -1
- package/src/lib/form/control/form-control-kind.js +1 -0
- package/src/lib/form/control/form-control-kind.js.map +1 -1
- package/src/lib/form/control/form-control.js +3 -0
- package/src/lib/form/control/form-control.js.map +1 -1
- package/src/schema.json +50 -0
- package/src/schematic-input.schema.json +19 -0
- package/src/schematics/accordion/accordion-component/schema.json +28 -0
- package/src/schematics/accordion/accordion-item-component/schema.json +28 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +28 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/schema.json +28 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +28 -0
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +28 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +28 -0
- package/src/schematics/data-grid-component/schema.json +28 -0
- package/src/schematics/date-form-control.schema.json +33 -0
- package/src/schematics/form/control/date-form-control/index.d.ts +8 -0
- package/src/schematics/form/control/date-form-control/index.js +26 -0
- package/src/schematics/form/control/date-form-control/index.js.map +1 -0
- package/src/schematics/form/control/date-form-control/schema.d.ts +4 -0
- package/src/schematics/form/control/date-form-control/schema.json +409 -0
- package/src/schematics/form/control/date-form-control/template.schema.json +33 -0
- package/src/schematics/form/form-array/schema.json +28 -0
- package/src/schematics/form/form-component/schema.json +28 -0
- package/src/schematics/form/form-control/index.js +2 -0
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.json +28 -0
- package/src/schematics/form/form-definition/schema.json +28 -0
- package/src/schematics/form/form-group/schema.json +28 -0
- package/src/schematics/form/templates/date-form-control.hbs +18 -0
- package/src/schematics/form-control.schema.json +6 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +28 -0
- package/src/schematics/table/action/form-table-action/schema.json +28 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +28 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +28 -0
- package/src/schematics/table/action/operation-table-action/schema.json +28 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +28 -0
- package/src/schematics/table/header-button/method-table-header-button/schema.json +28 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +28 -0
- package/src/schematics/table/table-action/schema.json +28 -0
- package/src/schematics/table/table-component/schema.json +28 -0
- package/src/schematics/table/table-header-button/schema.json +28 -0
- package/src/schematics/table/tree-table-component/schema.json +28 -0
- package/src/template.schema.json +6 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeDateFormControlOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const angular_options_1 = require("../../../../lib/angular-options");
|
|
6
|
+
const date_form_control_1 = require("../../../../lib/form/control/date-form-control");
|
|
7
|
+
const form_control_1 = require("../../form-control");
|
|
8
|
+
function NormalizeDateFormControlOptions(options) {
|
|
9
|
+
return Object.freeze(Object.assign(Object.assign({}, (0, form_control_1.NormalizeFormControlOptions)(options)), (0, date_form_control_1.NormalizeDateFormControl)(options)));
|
|
10
|
+
}
|
|
11
|
+
exports.NormalizeDateFormControlOptions = NormalizeDateFormControlOptions;
|
|
12
|
+
function printOptions(options) {
|
|
13
|
+
(0, angular_options_1.PrintAngularOptions)('date-form-control', options);
|
|
14
|
+
}
|
|
15
|
+
function default_1(options) {
|
|
16
|
+
const normalizedOptions = NormalizeDateFormControlOptions(options);
|
|
17
|
+
printOptions(normalizedOptions);
|
|
18
|
+
return () => {
|
|
19
|
+
return (0, schematics_1.chain)([
|
|
20
|
+
() => console.group('[@rxap/schematics-angular:date-form-control]'.green),
|
|
21
|
+
() => console.groupEnd(),
|
|
22
|
+
]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.default = default_1;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/date-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AAEnD,qEAAsE;AACtE,sFAIwD;AACxD,qDAG4B;AAO5B,SAAgB,+BAA+B,CAC7C,OAA+B;IAE/B,OAAO,MAAM,CAAC,MAAM,iCACf,IAAA,0CAA2B,EAAC,OAAO,CAAC,GACpC,IAAA,4CAAwB,EAAC,OAAO,CAAC,EACpC,CAAC;AACL,CAAC;AAPD,0EAOC;AAED,SAAS,YAAY,CAAC,OAAyC;IAC7D,IAAA,qCAAmB,EAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,mBAAyB,OAA+B;IACtD,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,OAAO,CAAC,CAAC;IACnE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAChC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,8CAA8C,CAAC,KAAK,CAAC;YACzE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AATD,4BASC"}
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "date-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/dateFormControl"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"formName": {
|
|
15
|
+
"alias": "form",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the form where the form control should be added"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"formName"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"abstractControl": {
|
|
27
|
+
"allOf": [
|
|
28
|
+
{
|
|
29
|
+
"$ref": "#/definitions/property"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"name": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "The name of the control"
|
|
37
|
+
},
|
|
38
|
+
"isArray": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"description": "Whether the control value is an array",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"state": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The initial state of the control"
|
|
46
|
+
},
|
|
47
|
+
"isRequired": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Whether the control value is required",
|
|
50
|
+
"default": false
|
|
51
|
+
},
|
|
52
|
+
"isReadonly": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"description": "Whether the control value is readonly",
|
|
55
|
+
"default": false
|
|
56
|
+
},
|
|
57
|
+
"isDisabled": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Whether the control value is disabled",
|
|
60
|
+
"default": false
|
|
61
|
+
},
|
|
62
|
+
"validatorList": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"kind": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "The kind of the control",
|
|
71
|
+
"default": "default"
|
|
72
|
+
},
|
|
73
|
+
"importList": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"$ref": "#/definitions/type"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"template": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "The template of the control"
|
|
82
|
+
},
|
|
83
|
+
"role": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "The role of the control",
|
|
86
|
+
"enum": [
|
|
87
|
+
"control",
|
|
88
|
+
"group",
|
|
89
|
+
"array"
|
|
90
|
+
],
|
|
91
|
+
"default": "control"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": true
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"angular": {
|
|
99
|
+
"allOf": [
|
|
100
|
+
{
|
|
101
|
+
"$ref": "#/definitions/general"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"componentName": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"name": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"context": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
115
|
+
},
|
|
116
|
+
"nestModule": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "The module name for the table nest operations"
|
|
119
|
+
},
|
|
120
|
+
"controllerName": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"backend": {
|
|
124
|
+
"$ref": "#/definitions/backend"
|
|
125
|
+
},
|
|
126
|
+
"directory": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
|
|
129
|
+
},
|
|
130
|
+
"shared": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"description": "Whether the generated code is used across the project",
|
|
133
|
+
"default": false
|
|
134
|
+
},
|
|
135
|
+
"scope": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"prefix": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"openApi": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": true
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"backend": {
|
|
150
|
+
"oneOf": [
|
|
151
|
+
{
|
|
152
|
+
"type": "string",
|
|
153
|
+
"enum": [
|
|
154
|
+
"none",
|
|
155
|
+
"nestjs",
|
|
156
|
+
"open-api",
|
|
157
|
+
"local",
|
|
158
|
+
"data-source"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "object",
|
|
163
|
+
"properties": {
|
|
164
|
+
"kind": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"enum": [
|
|
167
|
+
"none",
|
|
168
|
+
"nestjs",
|
|
169
|
+
"open-api",
|
|
170
|
+
"local",
|
|
171
|
+
"data-source"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"project": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"kind"
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"description": "The backend that should be used to handel data",
|
|
184
|
+
"default": "none"
|
|
185
|
+
},
|
|
186
|
+
"baseFormControl": {
|
|
187
|
+
"allOf": [
|
|
188
|
+
{
|
|
189
|
+
"$ref": "#/definitions/abstractControl"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "object",
|
|
193
|
+
"properties": {
|
|
194
|
+
"label": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"description": "The label of the control"
|
|
197
|
+
},
|
|
198
|
+
"role": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"const": "control"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"button": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"svgIcon": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"icon": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"directiveList": {
|
|
216
|
+
"type": "array",
|
|
217
|
+
"items": {
|
|
218
|
+
"$ref": "#/definitions/type"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"importList": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"$ref": "#/definitions/type"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"cssClass": {
|
|
230
|
+
"oneOf": [
|
|
231
|
+
{
|
|
232
|
+
"type": "string"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"name": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"properties": {
|
|
253
|
+
"name": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"dateFormControl": {
|
|
262
|
+
"allOf": [
|
|
263
|
+
{
|
|
264
|
+
"$ref": "#/definitions/baseFormControl"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"kind": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"const": "date"
|
|
272
|
+
},
|
|
273
|
+
"formField": {
|
|
274
|
+
"$ref": "#/definitions/formField"
|
|
275
|
+
},
|
|
276
|
+
"placeholder": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"kind"
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"formField": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"label": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
},
|
|
292
|
+
"prefixButton": {
|
|
293
|
+
"$ref": "#/definitions/button"
|
|
294
|
+
},
|
|
295
|
+
"suffixButton": {
|
|
296
|
+
"$ref": "#/definitions/button"
|
|
297
|
+
},
|
|
298
|
+
"hasClearButton": {
|
|
299
|
+
"type": "boolean"
|
|
300
|
+
},
|
|
301
|
+
"cssClass": {
|
|
302
|
+
"$ref": "#/definitions/cssClass"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"general": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"properties": {
|
|
309
|
+
"project": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"description": "Project name where the files should be generated"
|
|
312
|
+
},
|
|
313
|
+
"feature": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "Feature name where the files should be generated"
|
|
316
|
+
},
|
|
317
|
+
"overwrite": {
|
|
318
|
+
"anyOf": [
|
|
319
|
+
{
|
|
320
|
+
"type": "boolean"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "array",
|
|
324
|
+
"items": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"description": "Overwrite existing files",
|
|
330
|
+
"default": false
|
|
331
|
+
},
|
|
332
|
+
"overwriteHtml": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"default": false
|
|
335
|
+
},
|
|
336
|
+
"replace": {
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"default": false
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"property": {
|
|
343
|
+
"oneOf": [
|
|
344
|
+
{
|
|
345
|
+
"type": "string"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "object",
|
|
349
|
+
"properties": {
|
|
350
|
+
"name": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
"type": {
|
|
354
|
+
"$ref": "#/definitions/type"
|
|
355
|
+
},
|
|
356
|
+
"isArray": {
|
|
357
|
+
"type": "boolean"
|
|
358
|
+
},
|
|
359
|
+
"isRequired": {
|
|
360
|
+
"type": "boolean"
|
|
361
|
+
},
|
|
362
|
+
"source": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"memberList": {
|
|
366
|
+
"type": "array",
|
|
367
|
+
"items": {
|
|
368
|
+
"additionalProperties": true
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"type": {
|
|
376
|
+
"oneOf": [
|
|
377
|
+
{
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"type": "object",
|
|
382
|
+
"properties": {
|
|
383
|
+
"name": {
|
|
384
|
+
"type": "string"
|
|
385
|
+
},
|
|
386
|
+
"isTypeOnly": {
|
|
387
|
+
"type": "boolean"
|
|
388
|
+
},
|
|
389
|
+
"moduleSpecifier": {
|
|
390
|
+
"type": "string"
|
|
391
|
+
},
|
|
392
|
+
"namedImport": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
},
|
|
395
|
+
"namespaceImport": {
|
|
396
|
+
"type": "string"
|
|
397
|
+
},
|
|
398
|
+
"defaultImport": {
|
|
399
|
+
"type": "string"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"required": [
|
|
403
|
+
"name"
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "date-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/dateFormControl"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"formName": {
|
|
15
|
+
"alias": "form",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the form where the form control should be added"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"formName"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"angular": {
|
|
27
|
+
"$ref": "../../../angular.schema.json"
|
|
28
|
+
},
|
|
29
|
+
"dateFormControl": {
|
|
30
|
+
"$ref": "../../../date-form-control.schema.json"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -570,6 +570,31 @@
|
|
|
570
570
|
}
|
|
571
571
|
]
|
|
572
572
|
},
|
|
573
|
+
"dateFormControl": {
|
|
574
|
+
"allOf": [
|
|
575
|
+
{
|
|
576
|
+
"$ref": "#/definitions/baseFormControl"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"type": "object",
|
|
580
|
+
"properties": {
|
|
581
|
+
"kind": {
|
|
582
|
+
"type": "string",
|
|
583
|
+
"const": "date"
|
|
584
|
+
},
|
|
585
|
+
"formField": {
|
|
586
|
+
"$ref": "#/definitions/formField"
|
|
587
|
+
},
|
|
588
|
+
"placeholder": {
|
|
589
|
+
"type": "string"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"required": [
|
|
593
|
+
"kind"
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
]
|
|
597
|
+
},
|
|
573
598
|
"formArray": {
|
|
574
599
|
"allOf": [
|
|
575
600
|
{
|
|
@@ -661,6 +686,9 @@
|
|
|
661
686
|
},
|
|
662
687
|
{
|
|
663
688
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"$ref": "#/definitions/dateFormControl"
|
|
664
692
|
}
|
|
665
693
|
]
|
|
666
694
|
}
|
|
@@ -557,6 +557,31 @@
|
|
|
557
557
|
}
|
|
558
558
|
]
|
|
559
559
|
},
|
|
560
|
+
"dateFormControl": {
|
|
561
|
+
"allOf": [
|
|
562
|
+
{
|
|
563
|
+
"$ref": "#/definitions/baseFormControl"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"type": "object",
|
|
567
|
+
"properties": {
|
|
568
|
+
"kind": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"const": "date"
|
|
571
|
+
},
|
|
572
|
+
"formField": {
|
|
573
|
+
"$ref": "#/definitions/formField"
|
|
574
|
+
},
|
|
575
|
+
"placeholder": {
|
|
576
|
+
"type": "string"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"required": [
|
|
580
|
+
"kind"
|
|
581
|
+
]
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
},
|
|
560
585
|
"formArray": {
|
|
561
586
|
"allOf": [
|
|
562
587
|
{
|
|
@@ -683,6 +708,9 @@
|
|
|
683
708
|
},
|
|
684
709
|
{
|
|
685
710
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"$ref": "#/definitions/dateFormControl"
|
|
686
714
|
}
|
|
687
715
|
]
|
|
688
716
|
}
|
|
@@ -34,6 +34,8 @@ function formControlKind(normalizedOptions) {
|
|
|
34
34
|
return (0, schematics_utilities_1.ExecuteSchematic)('autocomplete-table-select-form-control', normalizedOptions);
|
|
35
35
|
case form_control_kind_1.FormControlKinds.AUTOCOMPLETE:
|
|
36
36
|
return (0, schematics_utilities_1.ExecuteSchematic)('autocomplete-form-control', normalizedOptions);
|
|
37
|
+
case form_control_kind_1.FormControlKinds.DATE:
|
|
38
|
+
return (0, schematics_utilities_1.ExecuteSchematic)('date-form-control', normalizedOptions);
|
|
37
39
|
default:
|
|
38
40
|
return () => console.log(`No schematic for form control kind: ${normalizedOptions.kind}`.yellow);
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAA4E;AAC5E,qEAGoC;AAKpC,kEAKsC;AACtC,yEAGgD;AAChD,mFAA+E;AAE/E,kBAAgB;AAIhB,SAAgB,2BAA2B,CACzC,OAAqC;;IAErC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,+BAA+B,GAAG,IAAA,mCAAoB,EAAC,OAAO,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG,IAAA,gCAAS,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,QAAQ,CAAC;IAC1D,OAAO,MAAM,CAAC,MAAM,+CACf,wBAAwB,GACxB,+BAA+B,KAClC,QAAQ;QACR,cAAc,EACd,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,gCAAS,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5D,CAAC;AACL,CAAC;AAdD,kEA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,CAAC,GAAG,CAAC,6CAA6C,CAAC;YAChE,IAAA,qDAA+B,EAAC,iBAAiB,CAAC;YAClD,eAAe,CAAC,iBAAiB,CAAC;YAClC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAA4E;AAC5E,qEAGoC;AAKpC,kEAKsC;AACtC,yEAGgD;AAChD,mFAA+E;AAE/E,kBAAgB;AAIhB,SAAgB,2BAA2B,CACzC,OAAqC;;IAErC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,+BAA+B,GAAG,IAAA,mCAAoB,EAAC,OAAO,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG,IAAA,gCAAS,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,QAAQ,CAAC;IAC1D,OAAO,MAAM,CAAC,MAAM,+CACf,wBAAwB,GACxB,+BAA+B,KAClC,QAAQ;QACR,cAAc,EACd,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,gCAAS,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5D,CAAC;AACL,CAAC;AAdD,kEAcC;AAED,SAAS,YAAY,CAAC,OAAqC;IACzD,IAAA,qCAAmB,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,aAAa,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,eAAe,CAAC,iBAA+C;IACtE,QAAQ,iBAAiB,CAAC,IAAI,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E;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
|
|
@@ -490,6 +490,31 @@
|
|
|
490
490
|
}
|
|
491
491
|
]
|
|
492
492
|
},
|
|
493
|
+
"dateFormControl": {
|
|
494
|
+
"allOf": [
|
|
495
|
+
{
|
|
496
|
+
"$ref": "#/definitions/baseFormControl"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"type": "object",
|
|
500
|
+
"properties": {
|
|
501
|
+
"kind": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"const": "date"
|
|
504
|
+
},
|
|
505
|
+
"formField": {
|
|
506
|
+
"$ref": "#/definitions/formField"
|
|
507
|
+
},
|
|
508
|
+
"placeholder": {
|
|
509
|
+
"type": "string"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"required": [
|
|
513
|
+
"kind"
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
},
|
|
493
518
|
"formControl": {
|
|
494
519
|
"allOf": [
|
|
495
520
|
{
|
|
@@ -544,6 +569,9 @@
|
|
|
544
569
|
},
|
|
545
570
|
{
|
|
546
571
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"$ref": "#/definitions/dateFormControl"
|
|
547
575
|
}
|
|
548
576
|
]
|
|
549
577
|
}
|
|
@@ -567,6 +567,31 @@
|
|
|
567
567
|
}
|
|
568
568
|
]
|
|
569
569
|
},
|
|
570
|
+
"dateFormControl": {
|
|
571
|
+
"allOf": [
|
|
572
|
+
{
|
|
573
|
+
"$ref": "#/definitions/baseFormControl"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"type": "object",
|
|
577
|
+
"properties": {
|
|
578
|
+
"kind": {
|
|
579
|
+
"type": "string",
|
|
580
|
+
"const": "date"
|
|
581
|
+
},
|
|
582
|
+
"formField": {
|
|
583
|
+
"$ref": "#/definitions/formField"
|
|
584
|
+
},
|
|
585
|
+
"placeholder": {
|
|
586
|
+
"type": "string"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"kind"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
},
|
|
570
595
|
"formArray": {
|
|
571
596
|
"allOf": [
|
|
572
597
|
{
|
|
@@ -658,6 +683,9 @@
|
|
|
658
683
|
},
|
|
659
684
|
{
|
|
660
685
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"$ref": "#/definitions/dateFormControl"
|
|
661
689
|
}
|
|
662
690
|
]
|
|
663
691
|
}
|