@rxap/schematic-angular 18.0.3-dev.1 → 18.1.0-dev.1
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 +22 -0
- package/package.json +12 -11
- package/src/lib/accordion/accordion-header-kind.d.ts +6 -0
- package/src/lib/accordion/accordion-header-kind.js +11 -0
- package/src/lib/accordion/accordion-header-kind.js.map +1 -0
- package/src/lib/accordion/accordion-header.d.ts +6 -0
- package/src/lib/accordion/accordion-header.js +22 -0
- package/src/lib/accordion/accordion-header.js.map +1 -0
- package/src/lib/{accordion-itme-kinds.js → accordion/accordion-item-kind.js} +1 -1
- package/src/lib/accordion/accordion-item-kind.js.map +1 -0
- package/src/lib/accordion/accordion-item.d.ts +9 -0
- package/src/lib/accordion/accordion-item.js +29 -0
- package/src/lib/accordion/accordion-item.js.map +1 -0
- package/src/lib/accordion/header/base-accordion-header.d.ts +18 -0
- package/src/lib/accordion/header/base-accordion-header.js +35 -0
- package/src/lib/accordion/header/base-accordion-header.js.map +1 -0
- package/src/lib/accordion/header/property-accordion-header.d.ts +14 -0
- package/src/lib/accordion/header/property-accordion-header.js +23 -0
- package/src/lib/accordion/header/property-accordion-header.js.map +1 -0
- package/src/lib/accordion/header/static-accordion-header.d.ts +11 -0
- package/src/lib/accordion/header/static-accordion-header.js +13 -0
- package/src/lib/accordion/header/static-accordion-header.js.map +1 -0
- package/src/lib/accordion/item/base-accordion-item.d.ts +31 -0
- package/src/lib/accordion/item/base-accordion-item.js +59 -0
- package/src/lib/accordion/item/base-accordion-item.js.map +1 -0
- package/src/lib/accordion/item/data-grid-accordion-item.d.ts +14 -0
- package/src/lib/accordion/item/data-grid-accordion-item.js +29 -0
- package/src/lib/accordion/item/data-grid-accordion-item.js.map +1 -0
- package/src/lib/accordion/item/switch-accordion-item.d.ts +32 -0
- package/src/lib/accordion/item/switch-accordion-item.js +89 -0
- package/src/lib/accordion/item/switch-accordion-item.js.map +1 -0
- package/src/lib/accordion/item/table-accordion-item.d.ts +14 -0
- package/src/lib/accordion/item/table-accordion-item.js +21 -0
- package/src/lib/accordion/item/table-accordion-item.js.map +1 -0
- package/src/lib/accordion/item/tree-table-accordion-item.d.ts +14 -0
- package/src/lib/accordion/item/tree-table-accordion-item.js +21 -0
- package/src/lib/accordion/item/tree-table-accordion-item.js.map +1 -0
- package/src/lib/coerce-accordion-component.js +9 -6
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +9 -2
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/form/control/form-control.d.ts +1 -0
- package/src/lib/form/control/form-control.js +6 -1
- package/src/lib/form/control/form-control.js.map +1 -1
- package/src/lib/form/form-component.d.ts +15 -0
- package/src/lib/form/form-component.js +12 -0
- package/src/lib/form/form-component.js.map +1 -0
- package/src/lib/form/form-definition.d.ts +8 -0
- package/src/lib/form/form-definition.js +11 -0
- package/src/lib/form/form-definition.js.map +1 -0
- package/src/lib/load-handlebars-template.js +3 -0
- package/src/lib/load-handlebars-template.js.map +1 -1
- package/src/lib/mat-form-field-default-options.d.ts +8 -2
- package/src/lib/mat-form-field-default-options.js +8 -1
- package/src/lib/mat-form-field-default-options.js.map +1 -1
- package/src/lib/minimum-table-component-options.js +28 -35
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +6 -3
- package/src/lib/minimum-table-options.js +4 -1
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/table/action/base-table-action.d.ts +25 -0
- package/src/lib/table/action/base-table-action.js +32 -0
- package/src/lib/table/action/base-table-action.js.map +1 -0
- package/src/lib/table/action/dialog-table-action.d.ts +15 -0
- package/src/lib/table/action/dialog-table-action.js +23 -0
- package/src/lib/table/action/dialog-table-action.js.map +1 -0
- package/src/lib/table/action/form-table-action.d.ts +19 -0
- package/src/lib/table/action/form-table-action.js +26 -0
- package/src/lib/table/action/form-table-action.js.map +1 -0
- package/src/lib/table/action/navigation-table-action.d.ts +12 -0
- package/src/lib/table/action/navigation-table-action.js +14 -0
- package/src/lib/table/action/navigation-table-action.js.map +1 -0
- package/src/lib/table/action/open-api-table-action.d.ts +16 -0
- package/src/lib/table/action/open-api-table-action.js +14 -0
- package/src/lib/table/action/open-api-table-action.js.map +1 -0
- package/src/lib/table/action/operation-table-action.d.ts +8 -0
- package/src/lib/table/action/operation-table-action.js +10 -0
- package/src/lib/table/action/operation-table-action.js.map +1 -0
- package/src/lib/table/table-action-kind.d.ts +9 -0
- package/src/lib/table/table-action-kind.js +17 -0
- package/src/lib/table/table-action-kind.js.map +1 -0
- package/src/lib/table/table-action.d.ts +11 -0
- package/src/lib/table/table-action.js +35 -0
- package/src/lib/table/table-action.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.js +9 -5
- package/src/lib/table/table-filter-column-rule.js.map +1 -1
- package/src/lib/table-options.d.ts +5 -9
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +5 -10
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +3 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.js +19 -5
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -1
- package/src/lib/utilities/if-truthy.d.ts +8 -0
- package/src/lib/utilities/if-truthy.js +14 -0
- package/src/lib/utilities/if-truthy.js.map +1 -0
- package/src/schema.json +309 -86
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +6 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -4
- package/src/schematics/accordion/accordion-component/index.js +29 -12
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +5 -3
- package/src/schematics/accordion/accordion-component/schema.json +488 -72
- package/src/schematics/accordion/accordion-component/template.schema.json +4 -20
- package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/index.js +17 -14
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +388 -48
- 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 +5 -4
- 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-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +3 -3
- 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 +388 -48
- 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 +3 -3
- 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 +542 -48
- 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 +6 -4
- 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 +542 -48
- package/src/schematics/accordion/templates/default-accordion-header.hbs +2 -0
- package/src/schematics/accordion/templates/{accordion-header.hbs → property-accordion-header.hbs} +0 -5
- package/src/schematics/accordion/templates/static-accordion-header.hbs +3 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +12 -0
- package/src/schematics/accordion-header.schema.json +40 -0
- package/src/schematics/base-accordion-header.schema.json +35 -0
- package/src/schematics/base-table-action.schema.json +62 -0
- package/src/schematics/data-grid-component/index.js +4 -2
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/dialog-table-action.schema.json +65 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +7 -4
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/index.js +2 -1
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/index.js +5 -3
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/form-component/index.d.ts +2 -7
- package/src/schematics/form/form-component/index.js +7 -6
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +2 -9
- package/src/schematics/form-table-action.schema.json +92 -0
- package/src/schematics/minimum-table.schema.json +11 -0
- package/src/schematics/navigation-table-action.schema.json +35 -0
- package/src/schematics/open-api-table-action.schema.json +60 -0
- package/src/schematics/operation-table-action.schema.json +26 -0
- package/src/schematics/property-accordion-header.schema.json +31 -0
- package/src/schematics/static-accordion-header.schema.json +29 -0
- package/src/schematics/table/action/dialog-table-action/index.d.ts +5 -9
- package/src/schematics/table/action/dialog-table-action/index.js +13 -21
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/schema.d.ts +4 -6
- package/src/schematics/table/action/dialog-table-action/schema.json +1293 -100
- package/src/schematics/table/action/dialog-table-action/template.schema.json +4 -42
- package/src/schematics/table/action/form-table-action/index.d.ts +3 -11
- package/src/schematics/table/action/form-table-action/index.js +20 -18
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.d.ts +4 -14
- package/src/schematics/table/action/form-table-action/schema.json +331 -104
- package/src/schematics/table/action/form-table-action/template.schema.json +4 -59
- package/src/schematics/table/action/navigation-table-action/index.d.ts +3 -3
- package/src/schematics/table/action/navigation-table-action/index.js +2 -3
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/navigation-table-action/schema.d.ts +4 -4
- package/src/schematics/table/action/navigation-table-action/schema.json +1293 -70
- package/src/schematics/table/action/navigation-table-action/template.schema.json +4 -12
- package/src/schematics/table/action/open-api-table-action/index.d.ts +2 -4
- package/src/schematics/table/action/open-api-table-action/index.js +2 -4
- package/src/schematics/table/action/open-api-table-action/index.js.map +1 -1
- package/src/schematics/table/action/open-api-table-action/schema.d.ts +4 -6
- package/src/schematics/table/action/open-api-table-action/schema.json +1286 -91
- package/src/schematics/table/action/open-api-table-action/template.schema.json +4 -40
- package/src/schematics/table/action/operation-table-action/index.d.ts +2 -1
- package/src/schematics/table/action/operation-table-action/index.js +8 -6
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/schema.d.ts +5 -3
- package/src/schematics/table/action/operation-table-action/schema.json +1296 -59
- package/src/schematics/table/action/operation-table-action/template.schema.json +6 -0
- package/src/schematics/table/table-action/index.d.ts +2 -1
- package/src/schematics/table/table-action/index.js +3 -2
- package/src/schematics/table/table-action/index.js.map +1 -1
- package/src/schematics/table/table-action/schema.d.ts +2 -2
- package/src/schematics/table/table-action/schema.json +1286 -52
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +19 -1
- package/src/schematics/table/table-component/index.js +6 -5
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +542 -48
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +19 -1
- package/src/schematics/table/tree-table-component/index.js +5 -3
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +542 -48
- package/src/schematics/table-action.schema.json +47 -53
- package/src/schematics/tree-component/index.js +2 -1
- package/src/schematics/tree-component/index.js.map +1 -1
- package/src/template.schema.json +30 -0
- package/src/lib/accordion-header.d.ts +0 -32
- package/src/lib/accordion-header.js +0 -57
- package/src/lib/accordion-header.js.map +0 -1
- package/src/lib/accordion-item.d.ts +0 -91
- package/src/lib/accordion-item.js +0 -206
- package/src/lib/accordion-item.js.map +0 -1
- package/src/lib/accordion-itme-kinds.js.map +0 -1
- package/src/lib/table-action.d.ts +0 -13
- package/src/lib/table-action.js +0 -102
- package/src/lib/table-action.js.map +0 -1
- package/src/lib/table-row-action.d.ts +0 -21
- package/src/lib/table-row-action.js +0 -25
- package/src/lib/table-row-action.js.map +0 -1
- /package/src/lib/{accordion-itme-kinds.d.ts → accordion/accordion-item-kind.d.ts} +0 -0
|
@@ -44,30 +44,7 @@
|
|
|
44
44
|
"$ref": "#/definitions/accordionIdentifier"
|
|
45
45
|
},
|
|
46
46
|
"header": {
|
|
47
|
-
"
|
|
48
|
-
{
|
|
49
|
-
"type": "object",
|
|
50
|
-
"properties": {
|
|
51
|
-
"title": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"required": [
|
|
56
|
-
"title"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "object",
|
|
61
|
-
"properties": {
|
|
62
|
-
"property": {
|
|
63
|
-
"$ref": "#/definitions/property"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"required": [
|
|
67
|
-
"property"
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
]
|
|
47
|
+
"$ref": "#/definitions/accordionHeader"
|
|
71
48
|
},
|
|
72
49
|
"itemList": {
|
|
73
50
|
"alias": "item",
|
|
@@ -163,6 +140,33 @@
|
|
|
163
140
|
}
|
|
164
141
|
]
|
|
165
142
|
},
|
|
143
|
+
"accordionHeader": {
|
|
144
|
+
"oneOf": [
|
|
145
|
+
{
|
|
146
|
+
"allOf": [
|
|
147
|
+
{
|
|
148
|
+
"$ref": "#/definitions/baseAccordionHeader"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"kind": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"const": "default",
|
|
156
|
+
"default": "default"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"$ref": "#/definitions/staticAccordionHeader"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"$ref": "#/definitions/propertyAccordionHeader"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
166
170
|
"accordionIdentifier": {
|
|
167
171
|
"type": "object",
|
|
168
172
|
"properties": {
|
|
@@ -384,6 +388,31 @@
|
|
|
384
388
|
"description": "The backend that should be used to handel data",
|
|
385
389
|
"default": "none"
|
|
386
390
|
},
|
|
391
|
+
"baseAccordionHeader": {
|
|
392
|
+
"type": "object",
|
|
393
|
+
"properties": {
|
|
394
|
+
"kind": {
|
|
395
|
+
"type": "string"
|
|
396
|
+
},
|
|
397
|
+
"template": {
|
|
398
|
+
"type": "string"
|
|
399
|
+
},
|
|
400
|
+
"importList": {
|
|
401
|
+
"alias": "import",
|
|
402
|
+
"type": "array",
|
|
403
|
+
"items": {
|
|
404
|
+
"$ref": "#/definitions/type"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"propertyList": {
|
|
408
|
+
"type": "array",
|
|
409
|
+
"items": {
|
|
410
|
+
"$ref": "#/definitions/property"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"required": []
|
|
415
|
+
},
|
|
387
416
|
"baseAccordionItem": {
|
|
388
417
|
"type": "object",
|
|
389
418
|
"properties": {
|
|
@@ -512,6 +541,61 @@
|
|
|
512
541
|
}
|
|
513
542
|
]
|
|
514
543
|
},
|
|
544
|
+
"baseTableAction": {
|
|
545
|
+
"type": "object",
|
|
546
|
+
"properties": {
|
|
547
|
+
"type": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
"refresh": {
|
|
551
|
+
"type": "boolean"
|
|
552
|
+
},
|
|
553
|
+
"confirm": {
|
|
554
|
+
"type": "boolean"
|
|
555
|
+
},
|
|
556
|
+
"tooltip": {
|
|
557
|
+
"type": "string"
|
|
558
|
+
},
|
|
559
|
+
"errorMessage": {
|
|
560
|
+
"type": "string"
|
|
561
|
+
},
|
|
562
|
+
"successMessage": {
|
|
563
|
+
"type": "string"
|
|
564
|
+
},
|
|
565
|
+
"priority": {
|
|
566
|
+
"type": "number"
|
|
567
|
+
},
|
|
568
|
+
"checkFunction": {
|
|
569
|
+
"type": "string"
|
|
570
|
+
},
|
|
571
|
+
"inHeader": {
|
|
572
|
+
"type": "boolean"
|
|
573
|
+
},
|
|
574
|
+
"kind": {
|
|
575
|
+
"alias": "role",
|
|
576
|
+
"type": "string"
|
|
577
|
+
},
|
|
578
|
+
"icon": {
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"svgIcon": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
},
|
|
584
|
+
"permission": {
|
|
585
|
+
"type": "string"
|
|
586
|
+
},
|
|
587
|
+
"color": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
590
|
+
},
|
|
591
|
+
"cssClass": {
|
|
592
|
+
"$ref": "#/definitions/cssClass"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"required": [
|
|
596
|
+
"type"
|
|
597
|
+
]
|
|
598
|
+
},
|
|
515
599
|
"baseTableColumn": {
|
|
516
600
|
"type": "object",
|
|
517
601
|
"properties": {
|
|
@@ -892,6 +976,66 @@
|
|
|
892
976
|
}
|
|
893
977
|
]
|
|
894
978
|
},
|
|
979
|
+
"dialogTableAction": {
|
|
980
|
+
"allOf": [
|
|
981
|
+
{
|
|
982
|
+
"$ref": "#/definitions/baseTableAction"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"type": "object",
|
|
986
|
+
"properties": {
|
|
987
|
+
"kind": {
|
|
988
|
+
"type": "string",
|
|
989
|
+
"const": "dialog",
|
|
990
|
+
"default": "dialog"
|
|
991
|
+
},
|
|
992
|
+
"withoutBody": {
|
|
993
|
+
"type": "boolean",
|
|
994
|
+
"description": "Whether the table action operation should be without body",
|
|
995
|
+
"default": false
|
|
996
|
+
},
|
|
997
|
+
"actionList": {
|
|
998
|
+
"alias": "action",
|
|
999
|
+
"type": "array",
|
|
1000
|
+
"description": "The list of actions to be added to the dialog",
|
|
1001
|
+
"items": {
|
|
1002
|
+
"oneOf": [
|
|
1003
|
+
{
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"type": "object",
|
|
1008
|
+
"properties": {
|
|
1009
|
+
"label": {
|
|
1010
|
+
"type": "string"
|
|
1011
|
+
},
|
|
1012
|
+
"color": {
|
|
1013
|
+
"type": "string"
|
|
1014
|
+
},
|
|
1015
|
+
"role": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"enum": [
|
|
1018
|
+
"submit",
|
|
1019
|
+
"close"
|
|
1020
|
+
]
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
]
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
"title": {
|
|
1028
|
+
"type": "string",
|
|
1029
|
+
"description": "The title for the dialog"
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"required": [
|
|
1033
|
+
"kind",
|
|
1034
|
+
"title"
|
|
1035
|
+
]
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
895
1039
|
"formArray": {
|
|
896
1040
|
"allOf": [
|
|
897
1041
|
{
|
|
@@ -929,6 +1073,41 @@
|
|
|
929
1073
|
}
|
|
930
1074
|
]
|
|
931
1075
|
},
|
|
1076
|
+
"formComponent": {
|
|
1077
|
+
"allOf": [
|
|
1078
|
+
{
|
|
1079
|
+
"$ref": "#/definitions/formDefinition"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"type": "object",
|
|
1083
|
+
"properties": {
|
|
1084
|
+
"window": {
|
|
1085
|
+
"type": "boolean",
|
|
1086
|
+
"description": "Whether the form can be opened in a window"
|
|
1087
|
+
},
|
|
1088
|
+
"role": {
|
|
1089
|
+
"type": "string",
|
|
1090
|
+
"description": "Define the role of the form"
|
|
1091
|
+
},
|
|
1092
|
+
"matFormFieldDefaultOptions": {
|
|
1093
|
+
"appearance": {
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"description": "The appearance of the mat form field",
|
|
1096
|
+
"enum": [
|
|
1097
|
+
"legacy",
|
|
1098
|
+
"standard",
|
|
1099
|
+
"fill",
|
|
1100
|
+
"outline"
|
|
1101
|
+
]
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"identifier": {
|
|
1105
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
932
1111
|
"formControl": {
|
|
933
1112
|
"allOf": [
|
|
934
1113
|
{
|
|
@@ -985,6 +1164,21 @@
|
|
|
985
1164
|
}
|
|
986
1165
|
]
|
|
987
1166
|
},
|
|
1167
|
+
"formDefinition": {
|
|
1168
|
+
"type": "object",
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"controlList": {
|
|
1171
|
+
"alias": "control",
|
|
1172
|
+
"type": "array",
|
|
1173
|
+
"items": {
|
|
1174
|
+
"$ref": "#/definitions/control"
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
"required": [
|
|
1179
|
+
"controlList"
|
|
1180
|
+
]
|
|
1181
|
+
},
|
|
988
1182
|
"formField": {
|
|
989
1183
|
"type": "object",
|
|
990
1184
|
"properties": {
|
|
@@ -1042,6 +1236,89 @@
|
|
|
1042
1236
|
}
|
|
1043
1237
|
]
|
|
1044
1238
|
},
|
|
1239
|
+
"formTableAction": {
|
|
1240
|
+
"allOf": [
|
|
1241
|
+
{
|
|
1242
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"type": "object",
|
|
1246
|
+
"properties": {
|
|
1247
|
+
"kind": {
|
|
1248
|
+
"type": "string",
|
|
1249
|
+
"const": "form",
|
|
1250
|
+
"default": "form"
|
|
1251
|
+
},
|
|
1252
|
+
"formInitial": {
|
|
1253
|
+
"oneOf": [
|
|
1254
|
+
{
|
|
1255
|
+
"type": "object",
|
|
1256
|
+
"description": "The mapping from the row object to the form initial object"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"type": "boolean",
|
|
1260
|
+
"description": "If true the row object will be used as form initial object. If false the form initial object will be empty. Default is false.",
|
|
1261
|
+
"default": false
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1264
|
+
},
|
|
1265
|
+
"formComponent": {
|
|
1266
|
+
"type": "string"
|
|
1267
|
+
},
|
|
1268
|
+
"customComponent": {
|
|
1269
|
+
"type": "boolean",
|
|
1270
|
+
"default": false,
|
|
1271
|
+
"description": "If true the schematic will not coerce the form component"
|
|
1272
|
+
},
|
|
1273
|
+
"loadFrom": {
|
|
1274
|
+
"type": "object",
|
|
1275
|
+
"properties": {
|
|
1276
|
+
"operationId": {
|
|
1277
|
+
"type": "string"
|
|
1278
|
+
},
|
|
1279
|
+
"scope": {
|
|
1280
|
+
"type": "string",
|
|
1281
|
+
"description": "The scope of package for the openapi classes"
|
|
1282
|
+
},
|
|
1283
|
+
"body": {
|
|
1284
|
+
"oneOf": [
|
|
1285
|
+
{
|
|
1286
|
+
"type": "boolean",
|
|
1287
|
+
"description": "Pass the full row as body for the operation request"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"type": "object",
|
|
1291
|
+
"description": "Mapping of table columns to body properties - [request property]: [table column]",
|
|
1292
|
+
"additionalProperties": true
|
|
1293
|
+
}
|
|
1294
|
+
]
|
|
1295
|
+
},
|
|
1296
|
+
"parameters": {
|
|
1297
|
+
"oneOf": [
|
|
1298
|
+
{
|
|
1299
|
+
"type": "boolean",
|
|
1300
|
+
"description": "Pass the full row as parameters for the operation request"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"type": "object",
|
|
1304
|
+
"description": "Mapping of table columns to parameters properties - [request property]: [table column]",
|
|
1305
|
+
"additionalProperties": true
|
|
1306
|
+
}
|
|
1307
|
+
]
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
"form": {
|
|
1312
|
+
"alias": "formOptions",
|
|
1313
|
+
"$ref": "#/definitions/formComponent"
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
"required": [
|
|
1317
|
+
"kind"
|
|
1318
|
+
]
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1321
|
+
},
|
|
1045
1322
|
"general": {
|
|
1046
1323
|
"type": "object",
|
|
1047
1324
|
"properties": {
|
|
@@ -1224,6 +1501,14 @@
|
|
|
1224
1501
|
"rowId": {
|
|
1225
1502
|
"$ref": "#/definitions/property"
|
|
1226
1503
|
},
|
|
1504
|
+
"filterList": {
|
|
1505
|
+
"alias": "filter",
|
|
1506
|
+
"type": "array",
|
|
1507
|
+
"items": {
|
|
1508
|
+
"$ref": "#/definitions/formControl"
|
|
1509
|
+
},
|
|
1510
|
+
"description": "List of table filter controls"
|
|
1511
|
+
},
|
|
1227
1512
|
"columnList": {
|
|
1228
1513
|
"alias": "column",
|
|
1229
1514
|
"type": "array",
|
|
@@ -1296,6 +1581,111 @@
|
|
|
1296
1581
|
}
|
|
1297
1582
|
}
|
|
1298
1583
|
},
|
|
1584
|
+
"navigationTableAction": {
|
|
1585
|
+
"allOf": [
|
|
1586
|
+
{
|
|
1587
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"type": "object",
|
|
1591
|
+
"properties": {
|
|
1592
|
+
"kind": {
|
|
1593
|
+
"type": "string",
|
|
1594
|
+
"const": "navigation",
|
|
1595
|
+
"default": "navigation"
|
|
1596
|
+
},
|
|
1597
|
+
"route": {
|
|
1598
|
+
"type": "string",
|
|
1599
|
+
"description": "The route for the table action"
|
|
1600
|
+
},
|
|
1601
|
+
"relativeTo": {
|
|
1602
|
+
"type": "boolean",
|
|
1603
|
+
"description": "Use the current ActivatedRoute to resolve the route or not",
|
|
1604
|
+
"default": false
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
"required": [
|
|
1608
|
+
"kind",
|
|
1609
|
+
"route"
|
|
1610
|
+
]
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
|
+
"openApiTableAction": {
|
|
1615
|
+
"allOf": [
|
|
1616
|
+
{
|
|
1617
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"type": "object",
|
|
1621
|
+
"properties": {
|
|
1622
|
+
"kind": {
|
|
1623
|
+
"type": "string",
|
|
1624
|
+
"const": "open-api",
|
|
1625
|
+
"default": "open-api"
|
|
1626
|
+
},
|
|
1627
|
+
"operationId": {
|
|
1628
|
+
"type": "string",
|
|
1629
|
+
"description": "The open api operationId for the table action"
|
|
1630
|
+
},
|
|
1631
|
+
"scope": {
|
|
1632
|
+
"type": "string",
|
|
1633
|
+
"description": "The scope of package for the openapi classes"
|
|
1634
|
+
},
|
|
1635
|
+
"body": {
|
|
1636
|
+
"oneOf": [
|
|
1637
|
+
{
|
|
1638
|
+
"type": "boolean",
|
|
1639
|
+
"description": "Pass the full row as body for the operation request"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"type": "object",
|
|
1643
|
+
"description": "Mapping of table columns to body properties - [request property]: [table column]",
|
|
1644
|
+
"additionalProperties": true
|
|
1645
|
+
}
|
|
1646
|
+
]
|
|
1647
|
+
},
|
|
1648
|
+
"parameters": {
|
|
1649
|
+
"oneOf": [
|
|
1650
|
+
{
|
|
1651
|
+
"type": "boolean",
|
|
1652
|
+
"description": "Pass the full row as parameters for the operation request"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
"type": "object",
|
|
1656
|
+
"description": "Mapping of table columns to parameters properties - [request property]: [table column]",
|
|
1657
|
+
"additionalProperties": true
|
|
1658
|
+
}
|
|
1659
|
+
]
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"required": [
|
|
1663
|
+
"kind",
|
|
1664
|
+
"operationId"
|
|
1665
|
+
]
|
|
1666
|
+
}
|
|
1667
|
+
]
|
|
1668
|
+
},
|
|
1669
|
+
"operationTableAction": {
|
|
1670
|
+
"allOf": [
|
|
1671
|
+
{
|
|
1672
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"type": "object",
|
|
1676
|
+
"properties": {
|
|
1677
|
+
"kind": {
|
|
1678
|
+
"type": "string",
|
|
1679
|
+
"const": "operation",
|
|
1680
|
+
"default": "operation"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
"required": [
|
|
1684
|
+
"kind"
|
|
1685
|
+
]
|
|
1686
|
+
}
|
|
1687
|
+
]
|
|
1688
|
+
},
|
|
1299
1689
|
"option": {
|
|
1300
1690
|
"type": "object",
|
|
1301
1691
|
"properties": {
|
|
@@ -1408,6 +1798,29 @@
|
|
|
1408
1798
|
}
|
|
1409
1799
|
]
|
|
1410
1800
|
},
|
|
1801
|
+
"propertyAccordionHeader": {
|
|
1802
|
+
"allOf": [
|
|
1803
|
+
{
|
|
1804
|
+
"$ref": "#/definitions/baseAccordionHeader"
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"type": "object",
|
|
1808
|
+
"properties": {
|
|
1809
|
+
"kind": {
|
|
1810
|
+
"type": "string",
|
|
1811
|
+
"const": "static",
|
|
1812
|
+
"default": "static"
|
|
1813
|
+
},
|
|
1814
|
+
"property": {
|
|
1815
|
+
"$ref": "#/definitions/property"
|
|
1816
|
+
}
|
|
1817
|
+
},
|
|
1818
|
+
"required": [
|
|
1819
|
+
"property"
|
|
1820
|
+
]
|
|
1821
|
+
}
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1411
1824
|
"selectFormControl": {
|
|
1412
1825
|
"allOf": [
|
|
1413
1826
|
{
|
|
@@ -1492,6 +1905,30 @@
|
|
|
1492
1905
|
}
|
|
1493
1906
|
]
|
|
1494
1907
|
},
|
|
1908
|
+
"staticAccordionHeader": {
|
|
1909
|
+
"allOf": [
|
|
1910
|
+
{
|
|
1911
|
+
"$ref": "#/definitions/baseAccordionHeader"
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
"type": "object",
|
|
1915
|
+
"properties": {
|
|
1916
|
+
"kind": {
|
|
1917
|
+
"type": "string",
|
|
1918
|
+
"const": "static",
|
|
1919
|
+
"default": "static"
|
|
1920
|
+
},
|
|
1921
|
+
"title": {
|
|
1922
|
+
"type": "string",
|
|
1923
|
+
"description": "The title of the accordion header"
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1926
|
+
"required": [
|
|
1927
|
+
"title"
|
|
1928
|
+
]
|
|
1929
|
+
}
|
|
1930
|
+
]
|
|
1931
|
+
},
|
|
1495
1932
|
"switchAccordionItem": {
|
|
1496
1933
|
"allOf": [
|
|
1497
1934
|
{
|
|
@@ -1655,60 +2092,39 @@
|
|
|
1655
2092
|
},
|
|
1656
2093
|
"tableAction": {
|
|
1657
2094
|
"type": "object",
|
|
1658
|
-
"
|
|
1659
|
-
|
|
1660
|
-
"
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
"type": "string"
|
|
1676
|
-
},
|
|
1677
|
-
"priority": {
|
|
1678
|
-
"type": "number"
|
|
1679
|
-
},
|
|
1680
|
-
"checkFunction": {
|
|
1681
|
-
"type": "string"
|
|
1682
|
-
},
|
|
1683
|
-
"inHeader": {
|
|
1684
|
-
"type": "boolean"
|
|
1685
|
-
},
|
|
1686
|
-
"role": {
|
|
1687
|
-
"type": "string"
|
|
1688
|
-
},
|
|
1689
|
-
"icon": {
|
|
1690
|
-
"type": "string"
|
|
2095
|
+
"oneOf": [
|
|
2096
|
+
{
|
|
2097
|
+
"allOf": [
|
|
2098
|
+
{
|
|
2099
|
+
"$ref": "#/definitions/baseTableAction"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"type": "object",
|
|
2103
|
+
"properties": {
|
|
2104
|
+
"kind": {
|
|
2105
|
+
"type": "string",
|
|
2106
|
+
"const": "default",
|
|
2107
|
+
"default": "default"
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
]
|
|
1691
2112
|
},
|
|
1692
|
-
|
|
1693
|
-
"
|
|
2113
|
+
{
|
|
2114
|
+
"$ref": "#/definitions/dialogTableAction"
|
|
1694
2115
|
},
|
|
1695
|
-
|
|
1696
|
-
"
|
|
2116
|
+
{
|
|
2117
|
+
"$ref": "#/definitions/formTableAction"
|
|
1697
2118
|
},
|
|
1698
|
-
|
|
1699
|
-
"
|
|
1700
|
-
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
2119
|
+
{
|
|
2120
|
+
"$ref": "#/definitions/navigationTableAction"
|
|
1701
2121
|
},
|
|
1702
|
-
|
|
1703
|
-
"$ref": "#/definitions/
|
|
2122
|
+
{
|
|
2123
|
+
"$ref": "#/definitions/openApiTableAction"
|
|
1704
2124
|
},
|
|
1705
|
-
|
|
1706
|
-
"
|
|
1707
|
-
"additionalProperties": true
|
|
2125
|
+
{
|
|
2126
|
+
"$ref": "#/definitions/operationTableAction"
|
|
1708
2127
|
}
|
|
1709
|
-
},
|
|
1710
|
-
"required": [
|
|
1711
|
-
"type"
|
|
1712
2128
|
]
|
|
1713
2129
|
},
|
|
1714
2130
|
"tableColumn": {
|
|
@@ -40,26 +40,7 @@
|
|
|
40
40
|
"$ref": "#/definitions/accordionIdentifier"
|
|
41
41
|
},
|
|
42
42
|
"header": {
|
|
43
|
-
"
|
|
44
|
-
{
|
|
45
|
-
"type": "object",
|
|
46
|
-
"properties": {
|
|
47
|
-
"title": {
|
|
48
|
-
"type": "string"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"required": ["title"]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"type": "object",
|
|
55
|
-
"properties": {
|
|
56
|
-
"property": {
|
|
57
|
-
"$ref": "#/definitions/property"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"required": ["property"]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
43
|
+
"$ref": "#/definitions/accordionHeader"
|
|
63
44
|
},
|
|
64
45
|
"itemList": {
|
|
65
46
|
"alias": "item",
|
|
@@ -98,6 +79,9 @@
|
|
|
98
79
|
"accordionIdentifier": {
|
|
99
80
|
"$ref": "../../accordion-identifier.schema.json"
|
|
100
81
|
},
|
|
82
|
+
"accordionHeader": {
|
|
83
|
+
"$ref": "../../accordion-header.schema.json"
|
|
84
|
+
},
|
|
101
85
|
"upstream": {
|
|
102
86
|
"$ref": "../../upstream.schema.json"
|
|
103
87
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
import { Normalized } from '@rxap/utilities';
|
|
3
|
-
import { NormalizedBaseAccordionItem } from '../../../lib/accordion-item';
|
|
3
|
+
import { BaseAccordionItem, NormalizedBaseAccordionItem } from '../../../lib/accordion/item/base-accordion-item';
|
|
4
4
|
import { AngularOptions, NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
5
5
|
import { AccordionItemComponentOptions } from './schema';
|
|
6
6
|
export type AccordionItemStandaloneComponentOptions = Omit<AccordionItemComponentOptions, 'kind'>;
|
|
7
|
-
export interface NormalizedAccordionItemStandaloneComponentOptions extends Readonly<Normalized<Omit<AccordionItemStandaloneComponentOptions, keyof AngularOptions |
|
|
7
|
+
export interface NormalizedAccordionItemStandaloneComponentOptions extends Readonly<Normalized<Omit<AccordionItemStandaloneComponentOptions, keyof AngularOptions | keyof BaseAccordionItem>> & NormalizedAngularOptions & NormalizedBaseAccordionItem> {
|
|
8
8
|
componentName: string;
|
|
9
9
|
controllerName: string;
|
|
10
10
|
}
|