@rxap/schematic-angular 18.1.1-dev.6 → 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 +6 -0
- package/collection.json +5 -0
- package/package.json +2 -2
- 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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [18.2.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@18.1.1-dev.6...@rxap/schematic-angular@18.2.0-dev.0) (2024-06-26)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add data control ([20cf6b8](https://gitlab.com/rxap/packages/commit/20cf6b8b6902c7dce81c8b84735f3b8f5eae8401))
|
|
11
|
+
|
|
6
12
|
## [18.1.1-dev.6](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@18.1.1-dev.5...@rxap/schematic-angular@18.1.1-dev.6) (2024-06-25)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @rxap/schematic-angular
|
package/collection.json
CHANGED
|
@@ -90,6 +90,11 @@
|
|
|
90
90
|
"factory": "./src/schematics/form/control/input-form-control/index",
|
|
91
91
|
"description": "The input-form-control schematic"
|
|
92
92
|
},
|
|
93
|
+
"date-form-control": {
|
|
94
|
+
"schema": "./src/schematics/form/control/date-form-control/schema.json",
|
|
95
|
+
"factory": "./src/schematics/form/control/date-form-control/index",
|
|
96
|
+
"description": "The date-form-control schematic"
|
|
97
|
+
},
|
|
93
98
|
"select-form-control": {
|
|
94
99
|
"schema": "./src/schematics/form/control/select-form-control/schema.json",
|
|
95
100
|
"factory": "./src/schematics/form/control/select-form-control/index",
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "18.
|
|
2
|
+
"version": "18.2.0-dev.0",
|
|
3
3
|
"name": "@rxap/schematic-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
},
|
|
45
45
|
"schematics": "./collection.json",
|
|
46
46
|
"type": "commonjs",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "c772ae5c1db17da7b8103e55c2a8d5e99b51bd55",
|
|
48
48
|
"main": "./src/index.js"
|
|
49
49
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Normalized } from '@rxap/utilities';
|
|
2
|
+
import { BaseFormControl, NormalizedBaseFormControl } from './base-form-control';
|
|
3
|
+
import { FormControlKinds } from './form-control-kind';
|
|
4
|
+
import { FormField, FormFieldFormControl, NormalizedFormFieldFormControl } from './form-field-form-control';
|
|
5
|
+
export interface DateFormControl extends FormFieldFormControl {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
formField?: FormField;
|
|
8
|
+
}
|
|
9
|
+
export interface NormalizedDateFormControl extends Omit<Readonly<Normalized<DateFormControl>>, keyof NormalizedFormFieldFormControl>, NormalizedFormFieldFormControl {
|
|
10
|
+
kind: FormControlKinds.DATE;
|
|
11
|
+
}
|
|
12
|
+
export declare function IsDateFormControlOptions(options: BaseFormControl): options is DateFormControl;
|
|
13
|
+
export declare function IsNormalizedDateFormControlOptions(template: NormalizedBaseFormControl): template is NormalizedDateFormControl;
|
|
14
|
+
export declare function NormalizeDateFormControl(control: DateFormControl): NormalizedDateFormControl;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeDateFormControl = exports.IsNormalizedDateFormControlOptions = exports.IsDateFormControlOptions = void 0;
|
|
4
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
5
|
+
const utilities_1 = require("@rxap/utilities");
|
|
6
|
+
const form_control_kind_1 = require("./form-control-kind");
|
|
7
|
+
const form_field_form_control_1 = require("./form-field-form-control");
|
|
8
|
+
function IsDateFormControlOptions(options) {
|
|
9
|
+
return options.kind === form_control_kind_1.FormControlKinds.DATE;
|
|
10
|
+
}
|
|
11
|
+
exports.IsDateFormControlOptions = IsDateFormControlOptions;
|
|
12
|
+
function IsNormalizedDateFormControlOptions(template) {
|
|
13
|
+
return template.kind === form_control_kind_1.FormControlKinds.DATE;
|
|
14
|
+
}
|
|
15
|
+
exports.IsNormalizedDateFormControlOptions = IsNormalizedDateFormControlOptions;
|
|
16
|
+
function NormalizeDateFormControl(control) {
|
|
17
|
+
var _a, _b, _c;
|
|
18
|
+
const type = (0, ts_morph_1.NormalizeTypeImport)(control.type, 'Date');
|
|
19
|
+
const validatorList = (_a = control.validatorList) !== null && _a !== void 0 ? _a : [];
|
|
20
|
+
const importList = (_b = control.importList) !== null && _b !== void 0 ? _b : [];
|
|
21
|
+
(0, utilities_1.CoerceArrayItems)(importList, [
|
|
22
|
+
{
|
|
23
|
+
name: 'MatInputModule',
|
|
24
|
+
moduleSpecifier: '@angular/material/input',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'MatDatepickerModule',
|
|
28
|
+
moduleSpecifier: '@angular/material/datepicker',
|
|
29
|
+
}
|
|
30
|
+
], (a, b) => a.name === b.name);
|
|
31
|
+
return Object.freeze(Object.assign(Object.assign({}, (0, form_field_form_control_1.NormalizeFormFieldFormControl)(control, importList, validatorList, type, false)), { validatorList, kind: form_control_kind_1.FormControlKinds.DATE, placeholder: (_c = control.placeholder) !== null && _c !== void 0 ? _c : null }));
|
|
32
|
+
}
|
|
33
|
+
exports.NormalizeDateFormControl = NormalizeDateFormControl;
|
|
34
|
+
//# sourceMappingURL=date-form-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-form-control.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/date-form-control.ts"],"names":[],"mappings":";;;AAAA,6CAAqD;AACrD,+CAGyB;AAMzB,2DAAuD;AACvD,uEAKmC;AAanC,SAAgB,wBAAwB,CAAC,OAAwB;IAC/D,OAAO,OAAO,CAAC,IAAI,KAAK,oCAAgB,CAAC,IAAI,CAAC;AAChD,CAAC;AAFD,4DAEC;AAED,SAAgB,kCAAkC,CAAC,QAAmC;IACpF,OAAO,QAAQ,CAAC,IAAI,KAAK,oCAAgB,CAAC,IAAI,CAAC;AACjD,CAAC;AAFD,gFAEC;AAED,SAAgB,wBAAwB,CACtC,OAAwB;;IAExB,MAAM,IAAI,GAAG,IAAA,8BAAmB,EAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvD,MAAM,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,EAAE,CAAC;IAClD,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,EAAE,CAAC;IAC5C,IAAA,4BAAgB,EAAC,UAAU,EAAE;QAC3B;YACE,IAAI,EAAE,gBAAgB;YACtB,eAAe,EAAE,yBAAyB;SAC3C;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,eAAe,EAAE,8BAA8B;SAChD;KACF,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC,MAAM,iCACf,IAAA,uDAA6B,EAAC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,CAAC,KACjF,aAAa,EACb,IAAI,EAAE,oCAAgB,CAAC,IAAI,EAC3B,WAAW,EAAE,MAAA,OAAO,CAAC,WAAW,mCAAI,IAAI,IACxC,CAAC;AACL,CAAC;AAtBD,4DAsBC"}
|
|
@@ -12,5 +12,6 @@ var FormControlKinds;
|
|
|
12
12
|
FormControlKinds["AUTOCOMPLETE_TABLE_SELECT"] = "autocomplete-table-select";
|
|
13
13
|
FormControlKinds["AUTOCOMPLETE"] = "autocomplete";
|
|
14
14
|
FormControlKinds["TEXTAREA"] = "textarea";
|
|
15
|
+
FormControlKinds["DATE"] = "date";
|
|
15
16
|
})(FormControlKinds || (exports.FormControlKinds = FormControlKinds = {}));
|
|
16
17
|
//# sourceMappingURL=form-control-kind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-kind.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control-kind.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"form-control-kind.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control-kind.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,2EAAuD,CAAA;IACvD,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAXW,gBAAgB,gCAAhB,gBAAgB,QAW3B"}
|
|
@@ -6,6 +6,7 @@ const autocomplete_form_control_1 = require("./autocomplete-form-control");
|
|
|
6
6
|
const autocomplete_table_select_form_control_1 = require("./autocomplete-table-select-form-control");
|
|
7
7
|
const base_form_control_1 = require("./base-form-control");
|
|
8
8
|
const checkbox_form_control_1 = require("./checkbox-form-control");
|
|
9
|
+
const date_form_control_1 = require("./date-form-control");
|
|
9
10
|
const form_control_kind_1 = require("./form-control-kind");
|
|
10
11
|
const input_form_control_1 = require("./input-form-control");
|
|
11
12
|
const select_form_control_1 = require("./select-form-control");
|
|
@@ -40,6 +41,8 @@ function NormalizeFormControl(control) {
|
|
|
40
41
|
return (0, textarea_form_control_1.NormalizeTextareaFormControl)(control);
|
|
41
42
|
case form_control_kind_1.FormControlKinds.AUTOCOMPLETE:
|
|
42
43
|
return (0, autocomplete_form_control_1.NormalizeAutocompleteFormControl)(control);
|
|
44
|
+
case form_control_kind_1.FormControlKinds.DATE:
|
|
45
|
+
return (0, date_form_control_1.NormalizeDateFormControl)(control);
|
|
43
46
|
case form_control_kind_1.FormControlKinds.DEFAULT:
|
|
44
47
|
default:
|
|
45
48
|
return (0, base_form_control_1.NormalizeBaseFormControl)(control);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control.ts"],"names":[],"mappings":";;;AAAA,0DAA2D;AAK3D,2EAA+E;AAC/E,qGAAuG;AACvG,2DAI6B;AAC7B,mEAIiC;AACjC,2DAAuD;AAKvD,6DAI8B;AAC9B,+DAI+B;AAC/B,2EAIqC;AACrC,2EAIqC;AACrC,mEAAuE;AAMvE,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,sCAEC;AAED,SAAgB,uBAAuB,CAAC,OAA0B;IAChE,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,0DAEC;AAED,SAAgB,oBAAoB,CAAC,OAAoB;;IACvD,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,oCAAgB,CAAC,OAAO,CAAC;IACtD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,oCAAgB,CAAC,KAAK;YACzB,OAAO,IAAA,8CAAyB,EAAC,OAAO,CAAC,CAAC;QAC5C,KAAK,oCAAgB,CAAC,MAAM;YAC1B,OAAO,IAAA,gDAA0B,EAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,oCAAgB,CAAC,QAAQ;YAC5B,OAAO,IAAA,oDAA4B,EAAC,OAAO,CAAC,CAAC;QAC/C,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,yBAAyB;YAC7C,OAAO,IAAA,oFAA2C,EAAC,OAAO,CAAC,CAAC;QAC9D,KAAK,oCAAgB,CAAC,QAAQ;YAC5B,OAAO,IAAA,oDAA4B,EAAC,OAAO,CAAC,CAAC;QAC/C,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,4DAAgC,EAAC,OAAO,CAAC,CAAC;QACnD,KAAK,oCAAgB,CAAC,OAAO,CAAC;QAC9B;YACE,OAAO,IAAA,4CAAwB,EAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC;
|
|
1
|
+
{"version":3,"file":"form-control.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control.ts"],"names":[],"mappings":";;;AAAA,0DAA2D;AAK3D,2EAA+E;AAC/E,qGAAuG;AACvG,2DAI6B;AAC7B,mEAIiC;AACjC,2DAA+D;AAC/D,2DAAuD;AAKvD,6DAI8B;AAC9B,+DAI+B;AAC/B,2EAIqC;AACrC,2EAIqC;AACrC,mEAAuE;AAMvE,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,sCAEC;AAED,SAAgB,uBAAuB,CAAC,OAA0B;IAChE,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,0DAEC;AAED,SAAgB,oBAAoB,CAAC,OAAoB;;IACvD,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,oCAAgB,CAAC,OAAO,CAAC;IACtD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,oCAAgB,CAAC,KAAK;YACzB,OAAO,IAAA,8CAAyB,EAAC,OAAO,CAAC,CAAC;QAC5C,KAAK,oCAAgB,CAAC,MAAM;YAC1B,OAAO,IAAA,gDAA0B,EAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,oCAAgB,CAAC,QAAQ;YAC5B,OAAO,IAAA,oDAA4B,EAAC,OAAO,CAAC,CAAC;QAC/C,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,yBAAyB;YAC7C,OAAO,IAAA,oFAA2C,EAAC,OAAO,CAAC,CAAC;QAC9D,KAAK,oCAAgB,CAAC,QAAQ;YAC5B,OAAO,IAAA,oDAA4B,EAAC,OAAO,CAAC,CAAC;QAC/C,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,4DAAgC,EAAC,OAAO,CAAC,CAAC;QACnD,KAAK,oCAAgB,CAAC,IAAI;YACxB,OAAO,IAAA,4CAAwB,EAAC,OAAO,CAAC,CAAC;QAC3C,KAAK,oCAAgB,CAAC,OAAO,CAAC;QAC9B;YACE,OAAO,IAAA,4CAAwB,EAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC;AAzBD,oDAyBC;AAED,SAAgB,wBAAwB,CAAC,QAAqC;;IAC5E,OAAO,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,oBAAoB,CAAC,mCAAI,EAAE,CAAC;AACnD,CAAC;AAFD,4DAEC"}
|
package/src/schema.json
CHANGED
|
@@ -1272,6 +1272,31 @@
|
|
|
1272
1272
|
}
|
|
1273
1273
|
]
|
|
1274
1274
|
},
|
|
1275
|
+
"dateFormControl": {
|
|
1276
|
+
"allOf": [
|
|
1277
|
+
{
|
|
1278
|
+
"$ref": "#/definitions/baseFormControl"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"type": "object",
|
|
1282
|
+
"properties": {
|
|
1283
|
+
"kind": {
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"const": "date"
|
|
1286
|
+
},
|
|
1287
|
+
"formField": {
|
|
1288
|
+
"$ref": "#/definitions/formField"
|
|
1289
|
+
},
|
|
1290
|
+
"placeholder": {
|
|
1291
|
+
"type": "string"
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
"required": [
|
|
1295
|
+
"kind"
|
|
1296
|
+
]
|
|
1297
|
+
}
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1275
1300
|
"dateTableColumn": {
|
|
1276
1301
|
"allOf": [
|
|
1277
1302
|
{
|
|
@@ -1578,6 +1603,9 @@
|
|
|
1578
1603
|
},
|
|
1579
1604
|
{
|
|
1580
1605
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1581
1609
|
}
|
|
1582
1610
|
]
|
|
1583
1611
|
}
|
|
@@ -1978,6 +2006,12 @@
|
|
|
1978
2006
|
}
|
|
1979
2007
|
]
|
|
1980
2008
|
},
|
|
2009
|
+
"init": {
|
|
2010
|
+
"title": "",
|
|
2011
|
+
"type": "object",
|
|
2012
|
+
"properties": {},
|
|
2013
|
+
"required": []
|
|
2014
|
+
},
|
|
1981
2015
|
"inputFormControl": {
|
|
1982
2016
|
"allOf": [
|
|
1983
2017
|
{
|
|
@@ -2621,6 +2655,22 @@
|
|
|
2621
2655
|
"schematicInput": {
|
|
2622
2656
|
"type": "object",
|
|
2623
2657
|
"oneOf": [
|
|
2658
|
+
{
|
|
2659
|
+
"type": "object",
|
|
2660
|
+
"properties": {
|
|
2661
|
+
"package": {
|
|
2662
|
+
"type": "string",
|
|
2663
|
+
"const": "@rxap/schematic-angular"
|
|
2664
|
+
},
|
|
2665
|
+
"name": {
|
|
2666
|
+
"type": "string",
|
|
2667
|
+
"const": "init"
|
|
2668
|
+
},
|
|
2669
|
+
"options": {
|
|
2670
|
+
"$ref": "#/definitions/init"
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
},
|
|
2624
2674
|
{
|
|
2625
2675
|
"type": "object",
|
|
2626
2676
|
"properties": {
|
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
"$id": "schematic-input",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"package": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "@rxap/schematic-angular"
|
|
12
|
+
},
|
|
13
|
+
"name": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "init"
|
|
16
|
+
},
|
|
17
|
+
"options": {
|
|
18
|
+
"$ref": "#/definitions/init"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
6
22
|
{
|
|
7
23
|
"type": "object",
|
|
8
24
|
"properties": {
|
|
@@ -533,6 +549,9 @@
|
|
|
533
549
|
}
|
|
534
550
|
],
|
|
535
551
|
"definitions": {
|
|
552
|
+
"init": {
|
|
553
|
+
"$ref": "generators/init/schema.json"
|
|
554
|
+
},
|
|
536
555
|
"tableComponentSchematic": {
|
|
537
556
|
"$ref": "schematics/table/table-component/template.schema.json"
|
|
538
557
|
},
|
|
@@ -1117,6 +1117,31 @@
|
|
|
1117
1117
|
}
|
|
1118
1118
|
]
|
|
1119
1119
|
},
|
|
1120
|
+
"dateFormControl": {
|
|
1121
|
+
"allOf": [
|
|
1122
|
+
{
|
|
1123
|
+
"$ref": "#/definitions/baseFormControl"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "object",
|
|
1127
|
+
"properties": {
|
|
1128
|
+
"kind": {
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"const": "date"
|
|
1131
|
+
},
|
|
1132
|
+
"formField": {
|
|
1133
|
+
"$ref": "#/definitions/formField"
|
|
1134
|
+
},
|
|
1135
|
+
"placeholder": {
|
|
1136
|
+
"type": "string"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"required": [
|
|
1140
|
+
"kind"
|
|
1141
|
+
]
|
|
1142
|
+
}
|
|
1143
|
+
]
|
|
1144
|
+
},
|
|
1120
1145
|
"dateTableColumn": {
|
|
1121
1146
|
"allOf": [
|
|
1122
1147
|
{
|
|
@@ -1325,6 +1350,9 @@
|
|
|
1325
1350
|
},
|
|
1326
1351
|
{
|
|
1327
1352
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1328
1356
|
}
|
|
1329
1357
|
]
|
|
1330
1358
|
}
|
|
@@ -1129,6 +1129,31 @@
|
|
|
1129
1129
|
}
|
|
1130
1130
|
]
|
|
1131
1131
|
},
|
|
1132
|
+
"dateFormControl": {
|
|
1133
|
+
"allOf": [
|
|
1134
|
+
{
|
|
1135
|
+
"$ref": "#/definitions/baseFormControl"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"type": "object",
|
|
1139
|
+
"properties": {
|
|
1140
|
+
"kind": {
|
|
1141
|
+
"type": "string",
|
|
1142
|
+
"const": "date"
|
|
1143
|
+
},
|
|
1144
|
+
"formField": {
|
|
1145
|
+
"$ref": "#/definitions/formField"
|
|
1146
|
+
},
|
|
1147
|
+
"placeholder": {
|
|
1148
|
+
"type": "string"
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
"required": [
|
|
1152
|
+
"kind"
|
|
1153
|
+
]
|
|
1154
|
+
}
|
|
1155
|
+
]
|
|
1156
|
+
},
|
|
1132
1157
|
"dateTableColumn": {
|
|
1133
1158
|
"allOf": [
|
|
1134
1159
|
{
|
|
@@ -1337,6 +1362,9 @@
|
|
|
1337
1362
|
},
|
|
1338
1363
|
{
|
|
1339
1364
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1340
1368
|
}
|
|
1341
1369
|
]
|
|
1342
1370
|
}
|
|
@@ -717,6 +717,31 @@
|
|
|
717
717
|
}
|
|
718
718
|
]
|
|
719
719
|
},
|
|
720
|
+
"dateFormControl": {
|
|
721
|
+
"allOf": [
|
|
722
|
+
{
|
|
723
|
+
"$ref": "#/definitions/baseFormControl"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"type": "object",
|
|
727
|
+
"properties": {
|
|
728
|
+
"kind": {
|
|
729
|
+
"type": "string",
|
|
730
|
+
"const": "date"
|
|
731
|
+
},
|
|
732
|
+
"formField": {
|
|
733
|
+
"$ref": "#/definitions/formField"
|
|
734
|
+
},
|
|
735
|
+
"placeholder": {
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"required": [
|
|
740
|
+
"kind"
|
|
741
|
+
]
|
|
742
|
+
}
|
|
743
|
+
]
|
|
744
|
+
},
|
|
720
745
|
"formArray": {
|
|
721
746
|
"allOf": [
|
|
722
747
|
{
|
|
@@ -808,6 +833,9 @@
|
|
|
808
833
|
},
|
|
809
834
|
{
|
|
810
835
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"$ref": "#/definitions/dateFormControl"
|
|
811
839
|
}
|
|
812
840
|
]
|
|
813
841
|
}
|
|
@@ -1117,6 +1117,31 @@
|
|
|
1117
1117
|
}
|
|
1118
1118
|
]
|
|
1119
1119
|
},
|
|
1120
|
+
"dateFormControl": {
|
|
1121
|
+
"allOf": [
|
|
1122
|
+
{
|
|
1123
|
+
"$ref": "#/definitions/baseFormControl"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "object",
|
|
1127
|
+
"properties": {
|
|
1128
|
+
"kind": {
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"const": "date"
|
|
1131
|
+
},
|
|
1132
|
+
"formField": {
|
|
1133
|
+
"$ref": "#/definitions/formField"
|
|
1134
|
+
},
|
|
1135
|
+
"placeholder": {
|
|
1136
|
+
"type": "string"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"required": [
|
|
1140
|
+
"kind"
|
|
1141
|
+
]
|
|
1142
|
+
}
|
|
1143
|
+
]
|
|
1144
|
+
},
|
|
1120
1145
|
"dateTableColumn": {
|
|
1121
1146
|
"allOf": [
|
|
1122
1147
|
{
|
|
@@ -1325,6 +1350,9 @@
|
|
|
1325
1350
|
},
|
|
1326
1351
|
{
|
|
1327
1352
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1328
1356
|
}
|
|
1329
1357
|
]
|
|
1330
1358
|
}
|
|
@@ -1117,6 +1117,31 @@
|
|
|
1117
1117
|
}
|
|
1118
1118
|
]
|
|
1119
1119
|
},
|
|
1120
|
+
"dateFormControl": {
|
|
1121
|
+
"allOf": [
|
|
1122
|
+
{
|
|
1123
|
+
"$ref": "#/definitions/baseFormControl"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "object",
|
|
1127
|
+
"properties": {
|
|
1128
|
+
"kind": {
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"const": "date"
|
|
1131
|
+
},
|
|
1132
|
+
"formField": {
|
|
1133
|
+
"$ref": "#/definitions/formField"
|
|
1134
|
+
},
|
|
1135
|
+
"placeholder": {
|
|
1136
|
+
"type": "string"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"required": [
|
|
1140
|
+
"kind"
|
|
1141
|
+
]
|
|
1142
|
+
}
|
|
1143
|
+
]
|
|
1144
|
+
},
|
|
1120
1145
|
"dateTableColumn": {
|
|
1121
1146
|
"allOf": [
|
|
1122
1147
|
{
|
|
@@ -1325,6 +1350,9 @@
|
|
|
1325
1350
|
},
|
|
1326
1351
|
{
|
|
1327
1352
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1328
1356
|
}
|
|
1329
1357
|
]
|
|
1330
1358
|
}
|
|
@@ -837,6 +837,31 @@
|
|
|
837
837
|
}
|
|
838
838
|
]
|
|
839
839
|
},
|
|
840
|
+
"dateFormControl": {
|
|
841
|
+
"allOf": [
|
|
842
|
+
{
|
|
843
|
+
"$ref": "#/definitions/baseFormControl"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"type": "object",
|
|
847
|
+
"properties": {
|
|
848
|
+
"kind": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"const": "date"
|
|
851
|
+
},
|
|
852
|
+
"formField": {
|
|
853
|
+
"$ref": "#/definitions/formField"
|
|
854
|
+
},
|
|
855
|
+
"placeholder": {
|
|
856
|
+
"type": "string"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"required": [
|
|
860
|
+
"kind"
|
|
861
|
+
]
|
|
862
|
+
}
|
|
863
|
+
]
|
|
864
|
+
},
|
|
840
865
|
"dateTableColumn": {
|
|
841
866
|
"allOf": [
|
|
842
867
|
{
|
|
@@ -1045,6 +1070,9 @@
|
|
|
1045
1070
|
},
|
|
1046
1071
|
{
|
|
1047
1072
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1048
1076
|
}
|
|
1049
1077
|
]
|
|
1050
1078
|
}
|
|
@@ -837,6 +837,31 @@
|
|
|
837
837
|
}
|
|
838
838
|
]
|
|
839
839
|
},
|
|
840
|
+
"dateFormControl": {
|
|
841
|
+
"allOf": [
|
|
842
|
+
{
|
|
843
|
+
"$ref": "#/definitions/baseFormControl"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"type": "object",
|
|
847
|
+
"properties": {
|
|
848
|
+
"kind": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"const": "date"
|
|
851
|
+
},
|
|
852
|
+
"formField": {
|
|
853
|
+
"$ref": "#/definitions/formField"
|
|
854
|
+
},
|
|
855
|
+
"placeholder": {
|
|
856
|
+
"type": "string"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"required": [
|
|
860
|
+
"kind"
|
|
861
|
+
]
|
|
862
|
+
}
|
|
863
|
+
]
|
|
864
|
+
},
|
|
840
865
|
"dateTableColumn": {
|
|
841
866
|
"allOf": [
|
|
842
867
|
{
|
|
@@ -1045,6 +1070,9 @@
|
|
|
1045
1070
|
},
|
|
1046
1071
|
{
|
|
1047
1072
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"$ref": "#/definitions/dateFormControl"
|
|
1048
1076
|
}
|
|
1049
1077
|
]
|
|
1050
1078
|
}
|
|
@@ -649,6 +649,31 @@
|
|
|
649
649
|
}
|
|
650
650
|
]
|
|
651
651
|
},
|
|
652
|
+
"dateFormControl": {
|
|
653
|
+
"allOf": [
|
|
654
|
+
{
|
|
655
|
+
"$ref": "#/definitions/baseFormControl"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"type": "object",
|
|
659
|
+
"properties": {
|
|
660
|
+
"kind": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"const": "date"
|
|
663
|
+
},
|
|
664
|
+
"formField": {
|
|
665
|
+
"$ref": "#/definitions/formField"
|
|
666
|
+
},
|
|
667
|
+
"placeholder": {
|
|
668
|
+
"type": "string"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"required": [
|
|
672
|
+
"kind"
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
},
|
|
652
677
|
"formArray": {
|
|
653
678
|
"allOf": [
|
|
654
679
|
{
|
|
@@ -740,6 +765,9 @@
|
|
|
740
765
|
},
|
|
741
766
|
{
|
|
742
767
|
"$ref": "#/definitions/autocompleteFormControl"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"$ref": "#/definitions/dateFormControl"
|
|
743
771
|
}
|
|
744
772
|
]
|
|
745
773
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "date-form-control",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "date"
|
|
14
|
+
},
|
|
15
|
+
"formField": {
|
|
16
|
+
"$ref": "#/definitions/formField"
|
|
17
|
+
},
|
|
18
|
+
"placeholder": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": ["kind"]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"formField": {
|
|
27
|
+
"$ref": "./form-field.schema.json"
|
|
28
|
+
},
|
|
29
|
+
"baseFormControl": {
|
|
30
|
+
"$ref": "./base-form-control.schema.json"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Normalized } from '@rxap/utilities';
|
|
2
|
+
import { DateFormControl, NormalizedDateFormControl } from '../../../../lib/form/control/date-form-control';
|
|
3
|
+
import { NormalizedFormControlOptions } from '../../form-control';
|
|
4
|
+
import { FormControlOptions } from '../../form-control/schema';
|
|
5
|
+
import { DateFormControlOptions } from './schema';
|
|
6
|
+
export type NormalizedDateFormControlOptions = Readonly<Normalized<Omit<DateFormControlOptions, keyof FormControlOptions | keyof DateFormControl>>> & NormalizedFormControlOptions & NormalizedDateFormControl;
|
|
7
|
+
export declare function NormalizeDateFormControlOptions(options: DateFormControlOptions): NormalizedDateFormControlOptions;
|
|
8
|
+
export default function (options: DateFormControlOptions): () => import("@angular-devkit/schematics").Rule;
|
|
@@ -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
|