@rxap/schematic-angular 16.2.0-dev.2 → 16.2.0-dev.20
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 +146 -0
- package/README.md +1 -1
- package/package.json +11 -9
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +9 -3
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +4 -0
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +25 -17
- package/src/lib/accordion-item.js +72 -33
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- package/src/lib/coerce-accordion-component.js +7 -3
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-accordion-item-table-component.js +1 -1
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +5 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +9 -3
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +16 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +46 -11
- package/src/lib/data-grid-item.js +80 -5
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-mode.d.ts +4 -0
- package/src/lib/data-grid-mode.js +9 -0
- package/src/lib/data-grid-mode.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +12 -5
- package/src/lib/data-grid-options.js +43 -13
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form-component-control.d.ts +2 -6
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-control.d.ts +136 -0
- package/src/lib/form-control.js +265 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +3 -57
- package/src/lib/form-definition-control.js +18 -144
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +4 -0
- package/src/lib/load-handlebars-template.js +28 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/merge-with-column-list.js +3 -1
- package/src/lib/merge-with-column-list.js.map +1 -1
- package/src/lib/minimum-table-component-options.d.ts +12 -2
- package/src/lib/minimum-table-component-options.js +14 -17
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +1 -1
- package/src/lib/minimum-table-options.js +2 -2
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/pipe-option.d.ts +11 -0
- package/src/lib/pipe-option.js +75 -0
- package/src/lib/pipe-option.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.d.ts +13 -0
- package/src/lib/table/table-filter-column-rule.js +88 -0
- package/src/lib/table/table-filter-column-rule.js.map +1 -0
- package/src/lib/table-column.d.ts +19 -9
- package/src/lib/table-column.js +132 -113
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +1 -1
- package/src/lib/tree-table-options.d.ts +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
- package/src/lib/value-option.d.ts +12 -0
- package/src/lib/value-option.js +66 -0
- package/src/lib/value-option.js.map +1 -0
- package/src/schema.json +2368 -0
- package/src/schematic-input.schema.json +607 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
- package/src/schematics/accordion/accordion-component/index.js +56 -122
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
- package/src/schematics/accordion/accordion-component/schema.json +314 -132
- package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
- package/src/schematics/accordion/accordion-item-component/index.js +112 -86
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/schema.json +282 -70
- package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +35 -51
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +454 -85
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +322 -190
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +81 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +16 -19
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +615 -278
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +43 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +48 -84
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +591 -271
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +43 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-identifier.schema.json +25 -0
- package/src/schematics/accordion-item.schema.json +59 -0
- package/src/schematics/angular.schema.json +11 -11
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +35 -0
- package/src/schematics/data-grid-component/index.d.ts +2 -4
- package/src/schematics/data-grid-component/index.js +83 -52
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +413 -141
- package/src/schematics/data-grid-component/template.schema.json +20 -0
- package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
- package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
- package/src/schematics/data-grid-item.schema.json +50 -0
- package/src/schematics/data-grid.schema.json +66 -0
- package/src/schematics/dialog-component/schema.json +141 -65
- package/src/schematics/dialog-component/template.schema.json +62 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -27
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/schema.json +182 -105
- package/src/schematics/form/control/input-form-control/template.schema.json +20 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +132 -96
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/select-form-control/schema.json +194 -86
- package/src/schematics/form/control/select-form-control/template.schema.json +20 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +9 -5
- package/src/schematics/form/control/table-select-form-control/index.js +199 -143
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
- package/src/schematics/form/control/table-select-form-control/schema.json +245 -100
- package/src/schematics/form/control/table-select-form-control/template.schema.json +83 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
- package/src/schematics/form/form-component/index.d.ts +2 -0
- package/src/schematics/form/form-component/index.js +22 -7
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +3 -1
- package/src/schematics/form/form-component/schema.json +275 -150
- package/src/schematics/form/form-component/template.schema.json +20 -0
- package/src/schematics/form/form-control/index.d.ts +3 -1
- package/src/schematics/form/form-control/index.js +19 -8
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.json +203 -75
- package/src/schematics/form/form-control/template.schema.json +34 -0
- package/src/schematics/form/form-definition/index.js +14 -1
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.json +210 -127
- package/src/schematics/form/form-definition/template.schema.json +30 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-component.schema.json +45 -0
- package/src/schematics/form-control.schema.json +68 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +55 -0
- package/src/schematics/minimum-table.schema.json +60 -0
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +31 -0
- package/src/schematics/select-form-control.schema.json +64 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +209 -125
- package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
- package/src/schematics/table/action/form-table-action/schema.json +383 -153
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +187 -80
- package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +206 -97
- package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
- package/src/schematics/table/action/operation-table-action/schema.json +174 -84
- package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +272 -114
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
- package/src/schematics/table/table-action/schema.json +165 -78
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
- package/src/schematics/table/table-component/index.d.ts +1 -3
- package/src/schematics/table/table-component/index.js +14 -120
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +524 -277
- package/src/schematics/table/table-component/template.schema.json +20 -0
- package/src/schematics/table/table-header-button/schema.json +146 -64
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
- package/src/schematics/table/templates/component-table-column.hbs +12 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
- package/src/schematics/table/templates/date-table-column.hbs +11 -0
- package/src/schematics/table/templates/default-table-column.hbs +8 -0
- package/src/schematics/table/templates/icon-table-column.hbs +10 -0
- package/src/schematics/table/templates/link-table-column.hbs +10 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +255 -0
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +28 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +514 -260
- package/src/schematics/table/tree-table-component/template.schema.json +20 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +75 -0
- package/src/schematics/table.schema.json +57 -0
- package/src/schematics/templates/pipe.hbs +4 -0
- package/src/schematics/tree-component/schema.json +115 -70
- package/src/schematics/tree-component/template.schema.json +36 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +173 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
|
@@ -1,133 +1,502 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "accordion-item-data-grid-component",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"alias": "name",
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the accordion item",
|
|
10
|
-
"x-prompt": "Which name should the accordion item module have?"
|
|
3
|
+
"$id": "accordion-item-data-grid-component-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
11
7
|
},
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"description": "The target project where the accordion item module should be added.",
|
|
15
|
-
"x-prompt": "To which project should the accordion item module be added?"
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/accordionItem"
|
|
16
10
|
},
|
|
17
|
-
|
|
18
|
-
"type": "
|
|
19
|
-
"
|
|
20
|
-
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"dataGrid": {
|
|
15
|
+
"$ref": "#/definitions/dataGrid"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"definitions": {
|
|
21
|
+
"accordionItem": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"kind": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"default",
|
|
28
|
+
"table",
|
|
29
|
+
"data-grid",
|
|
30
|
+
"data-grid-collection",
|
|
31
|
+
"tree-table",
|
|
32
|
+
"switch"
|
|
33
|
+
],
|
|
34
|
+
"description": "The type of the accordion item",
|
|
35
|
+
"default": "panel"
|
|
36
|
+
},
|
|
37
|
+
"modifiers": {
|
|
38
|
+
"alias": "modifier",
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"description": "The modifiers to apply to the accordion item type"
|
|
44
|
+
},
|
|
45
|
+
"identifier": {
|
|
46
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
47
|
+
},
|
|
48
|
+
"title": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"description": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"upstream": {
|
|
55
|
+
"$ref": "#/definitions/upstream"
|
|
56
|
+
},
|
|
57
|
+
"propertyList": {
|
|
58
|
+
"alias": "property",
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"$ref": "#/definitions/property"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"additionalProperties": true
|
|
21
66
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
67
|
+
"angular": {
|
|
68
|
+
"allOf": [
|
|
69
|
+
{
|
|
70
|
+
"$ref": "#/definitions/general"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"componentName": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"name": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"context": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
84
|
+
},
|
|
85
|
+
"nestModule": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "The module name for the table nest operations"
|
|
88
|
+
},
|
|
89
|
+
"controllerName": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"backend": {
|
|
93
|
+
"$ref": "#/definitions/backend"
|
|
94
|
+
},
|
|
95
|
+
"directory": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"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"
|
|
98
|
+
},
|
|
99
|
+
"shared": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "Whether the generated code is used across the project",
|
|
102
|
+
"default": false
|
|
103
|
+
},
|
|
104
|
+
"scope": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"prefix": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"openApi": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": true
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
26
117
|
},
|
|
27
|
-
"
|
|
28
|
-
"type": "
|
|
29
|
-
"
|
|
30
|
-
|
|
118
|
+
"dataGrid": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"mode": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "The mode of the form",
|
|
124
|
+
"enum": [
|
|
125
|
+
"form",
|
|
126
|
+
"plain"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"collection": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"description": "Whether the data grid is used as collection."
|
|
132
|
+
},
|
|
133
|
+
"title": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "The title of the data grid card component"
|
|
136
|
+
},
|
|
137
|
+
"subtitle": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "The subtitle of the data grid card component"
|
|
140
|
+
},
|
|
141
|
+
"itemList": {
|
|
142
|
+
"alias": "item",
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": {
|
|
145
|
+
"$ref": "#/definitions/dataGridItem"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"inCard": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"description": "Whether the data grid is used in a card.",
|
|
151
|
+
"default": true
|
|
152
|
+
},
|
|
153
|
+
"upstream": {
|
|
154
|
+
"$ref": "#/definitions/upstream"
|
|
155
|
+
},
|
|
156
|
+
"propertyList": {
|
|
157
|
+
"alias": "property",
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"$ref": "#/definitions/property"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"identifier": {
|
|
164
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"accordionIdentifier": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"property": {
|
|
172
|
+
"$ref": "#/definitions/property"
|
|
173
|
+
},
|
|
174
|
+
"source": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"enum": [
|
|
177
|
+
"route"
|
|
178
|
+
],
|
|
179
|
+
"default": "route"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"required": [
|
|
183
|
+
"property"
|
|
184
|
+
]
|
|
31
185
|
},
|
|
32
186
|
"backend": {
|
|
33
187
|
"type": "string",
|
|
34
188
|
"description": "The backend that should be used to handel data",
|
|
35
189
|
"enum": [
|
|
36
190
|
"none",
|
|
37
|
-
"local",
|
|
38
191
|
"nestjs",
|
|
39
|
-
"open-api"
|
|
192
|
+
"open-api",
|
|
193
|
+
"local"
|
|
40
194
|
],
|
|
41
195
|
"default": "none"
|
|
42
196
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
197
|
+
"dataGridItem": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"name": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "The name of the data grid item"
|
|
203
|
+
},
|
|
204
|
+
"header": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"description": "The name of the control"
|
|
207
|
+
},
|
|
208
|
+
"pipeList": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"$ref": "#/definitions/pipe"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"formControl": {
|
|
215
|
+
"$ref": "#/definitions/formControl"
|
|
216
|
+
},
|
|
217
|
+
"template": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
"kind": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"enum": [
|
|
223
|
+
"default",
|
|
224
|
+
"link"
|
|
225
|
+
],
|
|
226
|
+
"default": "default"
|
|
227
|
+
},
|
|
228
|
+
"type": {
|
|
229
|
+
"$ref": "#/definitions/type"
|
|
230
|
+
},
|
|
231
|
+
"isArray": {
|
|
46
232
|
"type": "boolean"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"name"
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
"formControl": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"properties": {
|
|
242
|
+
"name": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"description": "The name of the control"
|
|
47
245
|
},
|
|
48
|
-
{
|
|
246
|
+
"type": {
|
|
247
|
+
"$ref": "#/definitions/type"
|
|
248
|
+
},
|
|
249
|
+
"isArray": {
|
|
250
|
+
"type": "boolean",
|
|
251
|
+
"description": "Whether the control value is an array",
|
|
252
|
+
"default": false
|
|
253
|
+
},
|
|
254
|
+
"state": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"description": "The initial state of the control"
|
|
257
|
+
},
|
|
258
|
+
"isRequired": {
|
|
259
|
+
"type": "boolean",
|
|
260
|
+
"description": "Whether the control value is required",
|
|
261
|
+
"default": false
|
|
262
|
+
},
|
|
263
|
+
"isReadonly": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"description": "Whether the control value is readonly",
|
|
266
|
+
"default": false
|
|
267
|
+
},
|
|
268
|
+
"isDisabled": {
|
|
269
|
+
"type": "boolean",
|
|
270
|
+
"description": "Whether the control value is disabled",
|
|
271
|
+
"default": false
|
|
272
|
+
},
|
|
273
|
+
"validatorList": {
|
|
49
274
|
"type": "array",
|
|
50
275
|
"items": {
|
|
51
276
|
"type": "string"
|
|
52
277
|
}
|
|
278
|
+
},
|
|
279
|
+
"kind": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "The name of the template",
|
|
282
|
+
"enum": [
|
|
283
|
+
"default",
|
|
284
|
+
"input",
|
|
285
|
+
"select",
|
|
286
|
+
"checkbox",
|
|
287
|
+
"autocomplete-table-select",
|
|
288
|
+
"table-select",
|
|
289
|
+
"textarea",
|
|
290
|
+
"slide-toggle"
|
|
291
|
+
],
|
|
292
|
+
"default": "default"
|
|
53
293
|
}
|
|
294
|
+
},
|
|
295
|
+
"required": [
|
|
296
|
+
"name"
|
|
54
297
|
],
|
|
55
|
-
"
|
|
56
|
-
"default": false
|
|
298
|
+
"additionalProperties": true
|
|
57
299
|
},
|
|
58
|
-
"
|
|
59
|
-
"alias": "data-grid",
|
|
300
|
+
"general": {
|
|
60
301
|
"type": "object",
|
|
61
302
|
"properties": {
|
|
62
|
-
"
|
|
303
|
+
"project": {
|
|
63
304
|
"type": "string",
|
|
64
|
-
"description": "
|
|
305
|
+
"description": "Project name where the files should be generated"
|
|
65
306
|
},
|
|
66
|
-
"
|
|
307
|
+
"feature": {
|
|
67
308
|
"type": "string",
|
|
68
|
-
"description": "
|
|
309
|
+
"description": "Feature name where the files should be generated"
|
|
69
310
|
},
|
|
70
|
-
"
|
|
71
|
-
"alias": "item",
|
|
311
|
+
"overwrite": {
|
|
72
312
|
"anyOf": [
|
|
73
313
|
{
|
|
74
|
-
"type": "
|
|
75
|
-
"items": {
|
|
76
|
-
"type": "object",
|
|
77
|
-
"properties": {
|
|
78
|
-
"name": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"description": "The name of the control"
|
|
81
|
-
},
|
|
82
|
-
"header": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"description": "The name of the control"
|
|
85
|
-
},
|
|
86
|
-
"type": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"description": "The type of the control",
|
|
89
|
-
"enum": [
|
|
90
|
-
"string",
|
|
91
|
-
"number",
|
|
92
|
-
"boolean"
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"required": [
|
|
97
|
-
"name"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
314
|
+
"type": "boolean"
|
|
100
315
|
},
|
|
101
316
|
{
|
|
102
317
|
"type": "array",
|
|
103
318
|
"items": {
|
|
104
319
|
"type": "string"
|
|
105
320
|
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"description": "Overwrite existing files",
|
|
324
|
+
"default": false
|
|
325
|
+
},
|
|
326
|
+
"overwriteHtml": {
|
|
327
|
+
"type": "boolean",
|
|
328
|
+
"default": false
|
|
329
|
+
},
|
|
330
|
+
"replace": {
|
|
331
|
+
"type": "boolean",
|
|
332
|
+
"default": false
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"pipe": {
|
|
337
|
+
"oneOf": [
|
|
338
|
+
{
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"allOf": [
|
|
343
|
+
{
|
|
344
|
+
"$ref": "#/definitions/type"
|
|
106
345
|
},
|
|
107
346
|
{
|
|
108
|
-
"type": "
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"argumentList": {
|
|
350
|
+
"type": "array",
|
|
351
|
+
"items": {
|
|
352
|
+
"$ref": "#/definitions/value"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"required": [
|
|
357
|
+
"name"
|
|
358
|
+
]
|
|
109
359
|
}
|
|
110
360
|
]
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
"property": {
|
|
365
|
+
"oneOf": [
|
|
366
|
+
{
|
|
367
|
+
"type": "string"
|
|
111
368
|
},
|
|
112
|
-
|
|
113
|
-
"type": "
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
369
|
+
{
|
|
370
|
+
"type": "object",
|
|
371
|
+
"properties": {
|
|
372
|
+
"name": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
"type": {
|
|
376
|
+
"$ref": "#/definitions/type"
|
|
377
|
+
},
|
|
378
|
+
"isArray": {
|
|
379
|
+
"type": "boolean"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"required": [
|
|
383
|
+
"name"
|
|
118
384
|
]
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
"type": {
|
|
389
|
+
"oneOf": [
|
|
390
|
+
{
|
|
391
|
+
"type": "string"
|
|
119
392
|
},
|
|
120
|
-
|
|
121
|
-
"type": "
|
|
122
|
-
"
|
|
393
|
+
{
|
|
394
|
+
"type": "object",
|
|
395
|
+
"properties": {
|
|
396
|
+
"name": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
399
|
+
"isTypeOnly": {
|
|
400
|
+
"type": "boolean"
|
|
401
|
+
},
|
|
402
|
+
"moduleSpecifier": {
|
|
403
|
+
"type": "string"
|
|
404
|
+
},
|
|
405
|
+
"namedImport": {
|
|
406
|
+
"type": "string"
|
|
407
|
+
},
|
|
408
|
+
"namespaceImport": {
|
|
409
|
+
"type": "string"
|
|
410
|
+
},
|
|
411
|
+
"defaultImport": {
|
|
412
|
+
"type": "string"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": [
|
|
416
|
+
"name"
|
|
417
|
+
]
|
|
123
418
|
}
|
|
124
|
-
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
"upstream": {
|
|
422
|
+
"oneOf": [
|
|
423
|
+
{
|
|
424
|
+
"type": "object",
|
|
425
|
+
"properties": {
|
|
426
|
+
"kind": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"enum": [
|
|
429
|
+
"open-api"
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
"operationId": {
|
|
433
|
+
"type": "string"
|
|
434
|
+
},
|
|
435
|
+
"scope": {
|
|
436
|
+
"type": "string"
|
|
437
|
+
},
|
|
438
|
+
"mapper": {
|
|
439
|
+
"type": "object",
|
|
440
|
+
"properties": {
|
|
441
|
+
"pageIndex": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
},
|
|
444
|
+
"pageSize": {
|
|
445
|
+
"type": "string"
|
|
446
|
+
},
|
|
447
|
+
"sortBy": {
|
|
448
|
+
"type": "string"
|
|
449
|
+
},
|
|
450
|
+
"sortDirection": {
|
|
451
|
+
"type": "string"
|
|
452
|
+
},
|
|
453
|
+
"list": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
},
|
|
456
|
+
"total": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
},
|
|
459
|
+
"filter": {
|
|
460
|
+
"type": "object",
|
|
461
|
+
"properties": {
|
|
462
|
+
"eq": {
|
|
463
|
+
"type": "string"
|
|
464
|
+
},
|
|
465
|
+
"join": {
|
|
466
|
+
"type": "string"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"required": [
|
|
474
|
+
"kind",
|
|
475
|
+
"operationId"
|
|
476
|
+
]
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
"value": {
|
|
481
|
+
"oneOf": [
|
|
482
|
+
{
|
|
483
|
+
"type": "string"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"type": {
|
|
489
|
+
"$ref": "#/definitions/type"
|
|
490
|
+
},
|
|
491
|
+
"value": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"required": [
|
|
496
|
+
"value"
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
]
|
|
125
500
|
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
"itemName",
|
|
129
|
-
"project",
|
|
130
|
-
"feature",
|
|
131
|
-
"accordionName"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "accordion-item-data-grid-component-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/accordionItem"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"dataGrid": {
|
|
15
|
+
"$ref": "#/definitions/dataGrid"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"definitions": {
|
|
21
|
+
"accordionItem": {
|
|
22
|
+
"$ref": "../../../accordion-item.schema.json"
|
|
23
|
+
},
|
|
24
|
+
"angular": {
|
|
25
|
+
"$ref": "../../../angular.schema.json"
|
|
26
|
+
},
|
|
27
|
+
"dataGrid": {
|
|
28
|
+
"$ref": "../../../data-grid.schema.json"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -3,7 +3,7 @@ import { NormalizedSwitchAccordionItem } from '../../../../lib/accordion-item';
|
|
|
3
3
|
import { NormalizedAngularOptions } from '../../../../lib/angular-options';
|
|
4
4
|
import { NormalizedAccordionItemStandaloneComponentOptions } from '../../accordion-item-component';
|
|
5
5
|
import { AccordionItemSwitchComponentOptions } from './schema';
|
|
6
|
-
export interface NormalizedAccordionItemSwitchComponentOptions extends Omit<Readonly<Normalized<AccordionItemSwitchComponentOptions> & NormalizedAngularOptions & NormalizedAccordionItemStandaloneComponentOptions>, 'switch' | 'importList'>, Omit<NormalizedSwitchAccordionItem, '
|
|
6
|
+
export interface NormalizedAccordionItemSwitchComponentOptions extends Omit<Readonly<Normalized<AccordionItemSwitchComponentOptions> & NormalizedAngularOptions & NormalizedAccordionItemStandaloneComponentOptions>, 'switch' | 'importList' | 'propertyList'>, Omit<NormalizedSwitchAccordionItem, 'kind'> {
|
|
7
7
|
}
|
|
8
8
|
export declare function NormalizeAccordionItemSwitchComponentOptions(options: Readonly<AccordionItemSwitchComponentOptions>): Readonly<NormalizedAccordionItemSwitchComponentOptions>;
|
|
9
9
|
export default function (options: AccordionItemSwitchComponentOptions): () => import("@angular-devkit/schematics").Rule;
|
|
@@ -3,28 +3,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NormalizeAccordionItemSwitchComponentOptions = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
+
const utilities_1 = require("@rxap/utilities");
|
|
6
7
|
const accordion_item_1 = require("../../../../lib/accordion-item");
|
|
7
|
-
const
|
|
8
|
-
const angular_options_1 = require("../../../../lib/angular-options");
|
|
8
|
+
const accordion_itme_kinds_1 = require("../../../../lib/accordion-itme-kinds");
|
|
9
9
|
const accordion_item_component_1 = require("../../accordion-item-component");
|
|
10
10
|
function NormalizeAccordionItemSwitchComponentOptions(options) {
|
|
11
11
|
const normalizedAccordionItemComponentOptions = (0, accordion_item_component_1.NormalizeAccordionItemStandaloneComponentOptions)(options);
|
|
12
|
-
return Object.freeze(Object.assign(Object.assign({}, normalizedAccordionItemComponentOptions), (0, accordion_item_1.NormalizeSwitchAccordionItem)(Object.assign(Object.assign({}, options), {
|
|
12
|
+
return Object.freeze(Object.assign(Object.assign({}, normalizedAccordionItemComponentOptions), (0, accordion_item_1.NormalizeSwitchAccordionItem)(Object.assign(Object.assign({}, options), { kind: accordion_itme_kinds_1.AccordionItemKinds.Switch }))));
|
|
13
13
|
}
|
|
14
14
|
exports.NormalizeAccordionItemSwitchComponentOptions = NormalizeAccordionItemSwitchComponentOptions;
|
|
15
15
|
function printOptions(options) {
|
|
16
|
-
(0,
|
|
16
|
+
(0, accordion_item_component_1.printAccordionItemComponentOptions)(options, 'accordion-item-switch-component');
|
|
17
17
|
}
|
|
18
18
|
function caseRule(normalizedOptions, item) {
|
|
19
|
-
const { project, feature, backend, accordionName,
|
|
19
|
+
const { overwrite, directory, project, feature, replace, nestModule, backend, accordionName, shared, prefix, identifier, } = normalizedOptions;
|
|
20
20
|
if (!directory) {
|
|
21
21
|
throw new Error('The directory option is not defined! Ensure the accordion item switch component normalizer is correct!');
|
|
22
22
|
}
|
|
23
|
+
const itemOptions = Object.assign(Object.assign({}, (0, utilities_1.DeleteEmptyProperties)(Object.assign({}, item))), { project,
|
|
24
|
+
feature,
|
|
25
|
+
replace,
|
|
26
|
+
nestModule,
|
|
27
|
+
backend,
|
|
28
|
+
accordionName,
|
|
29
|
+
shared,
|
|
30
|
+
prefix,
|
|
31
|
+
identifier, overwrite: overwrite || item.modifiers.includes('overwrite') });
|
|
32
|
+
console.log('itemOptions', itemOptions);
|
|
23
33
|
return (0, schematics_1.chain)([
|
|
24
34
|
() => console.log(`Create accordion switch item component '${item.name}' ...`),
|
|
25
|
-
(0, schematics_utilities_1.ExecuteSchematic)('accordion-item-component',
|
|
26
|
-
feature,
|
|
27
|
-
accordionName, overwrite: overwrite || item.modifiers.includes('overwrite'), backend })),
|
|
35
|
+
(0, schematics_utilities_1.ExecuteSchematic)('accordion-item-component', itemOptions),
|
|
28
36
|
]);
|
|
29
37
|
}
|
|
30
38
|
function caseListRule(normalizedOptions) {
|