@rxap/schematic-angular 18.0.3-dev.0 → 18.1.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 +22 -0
- package/package.json +10 -9
- package/src/lib/backend/nest-js-backend-options.d.ts +1 -1
- package/src/lib/backend/nest-js-backend-options.js +1 -1
- package/src/lib/backend/nest-js-backend-options.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/control.d.ts +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/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/schema.json +201 -62
- package/src/schematics/accordion/accordion-component/index.js +5 -2
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.json +380 -48
- package/src/schematics/accordion/accordion-item-component/index.js +7 -4
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +380 -48
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +2 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +380 -48
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +534 -48
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +3 -1
- 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.json +534 -48
- 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/table/action/dialog-table-action/index.d.ts +5 -9
- package/src/schematics/table/action/dialog-table-action/index.js +14 -22
- 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 +21 -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 +534 -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 +534 -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 +18 -0
- 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
|
@@ -311,6 +311,41 @@
|
|
|
311
311
|
"name"
|
|
312
312
|
]
|
|
313
313
|
},
|
|
314
|
+
"baseFormArray": {
|
|
315
|
+
"allOf": [
|
|
316
|
+
{
|
|
317
|
+
"$ref": "#/definitions/abstractControl"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"type": "object",
|
|
321
|
+
"properties": {
|
|
322
|
+
"controlList": {
|
|
323
|
+
"type": "array",
|
|
324
|
+
"description": "The list of controls in the group",
|
|
325
|
+
"items": {
|
|
326
|
+
"$ref": "#/definitions/control"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"legend": {
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
"groupLegend": {
|
|
333
|
+
"type": "string"
|
|
334
|
+
},
|
|
335
|
+
"kind": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"description": "The kind of the array",
|
|
338
|
+
"const": "default",
|
|
339
|
+
"default": "default"
|
|
340
|
+
},
|
|
341
|
+
"role": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"const": "array"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
314
349
|
"baseFormControl": {
|
|
315
350
|
"allOf": [
|
|
316
351
|
{
|
|
@@ -331,6 +366,93 @@
|
|
|
331
366
|
}
|
|
332
367
|
]
|
|
333
368
|
},
|
|
369
|
+
"baseFormGroup": {
|
|
370
|
+
"allOf": [
|
|
371
|
+
{
|
|
372
|
+
"$ref": "#/definitions/abstractControl"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"type": "object",
|
|
376
|
+
"properties": {
|
|
377
|
+
"controlList": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"description": "The list of controls in the group",
|
|
380
|
+
"items": {
|
|
381
|
+
"$ref": "#/definitions/control"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"legend": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
"kind": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "The kind of the group",
|
|
390
|
+
"const": "default",
|
|
391
|
+
"default": "default"
|
|
392
|
+
},
|
|
393
|
+
"role": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"const": "group"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"baseTableAction": {
|
|
402
|
+
"type": "object",
|
|
403
|
+
"properties": {
|
|
404
|
+
"type": {
|
|
405
|
+
"type": "string"
|
|
406
|
+
},
|
|
407
|
+
"refresh": {
|
|
408
|
+
"type": "boolean"
|
|
409
|
+
},
|
|
410
|
+
"confirm": {
|
|
411
|
+
"type": "boolean"
|
|
412
|
+
},
|
|
413
|
+
"tooltip": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"errorMessage": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"successMessage": {
|
|
420
|
+
"type": "string"
|
|
421
|
+
},
|
|
422
|
+
"priority": {
|
|
423
|
+
"type": "number"
|
|
424
|
+
},
|
|
425
|
+
"checkFunction": {
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
"inHeader": {
|
|
429
|
+
"type": "boolean"
|
|
430
|
+
},
|
|
431
|
+
"kind": {
|
|
432
|
+
"alias": "role",
|
|
433
|
+
"type": "string"
|
|
434
|
+
},
|
|
435
|
+
"icon": {
|
|
436
|
+
"type": "string"
|
|
437
|
+
},
|
|
438
|
+
"svgIcon": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
"permission": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
},
|
|
444
|
+
"color": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
447
|
+
},
|
|
448
|
+
"cssClass": {
|
|
449
|
+
"$ref": "#/definitions/cssClass"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"required": [
|
|
453
|
+
"type"
|
|
454
|
+
]
|
|
455
|
+
},
|
|
334
456
|
"baseTableColumn": {
|
|
335
457
|
"type": "object",
|
|
336
458
|
"properties": {
|
|
@@ -483,6 +605,19 @@
|
|
|
483
605
|
}
|
|
484
606
|
]
|
|
485
607
|
},
|
|
608
|
+
"control": {
|
|
609
|
+
"oneOf": [
|
|
610
|
+
{
|
|
611
|
+
"$ref": "#/definitions/formGroup"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"$ref": "#/definitions/formArray"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"$ref": "#/definitions/formControl"
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
},
|
|
486
621
|
"copyToClipboardTableColumn": {
|
|
487
622
|
"allOf": [
|
|
488
623
|
{
|
|
@@ -579,6 +714,138 @@
|
|
|
579
714
|
}
|
|
580
715
|
]
|
|
581
716
|
},
|
|
717
|
+
"dialogTableAction": {
|
|
718
|
+
"allOf": [
|
|
719
|
+
{
|
|
720
|
+
"$ref": "#/definitions/baseTableAction"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"type": "object",
|
|
724
|
+
"properties": {
|
|
725
|
+
"kind": {
|
|
726
|
+
"type": "string",
|
|
727
|
+
"const": "dialog",
|
|
728
|
+
"default": "dialog"
|
|
729
|
+
},
|
|
730
|
+
"withoutBody": {
|
|
731
|
+
"type": "boolean",
|
|
732
|
+
"description": "Whether the table action operation should be without body",
|
|
733
|
+
"default": false
|
|
734
|
+
},
|
|
735
|
+
"actionList": {
|
|
736
|
+
"alias": "action",
|
|
737
|
+
"type": "array",
|
|
738
|
+
"description": "The list of actions to be added to the dialog",
|
|
739
|
+
"items": {
|
|
740
|
+
"oneOf": [
|
|
741
|
+
{
|
|
742
|
+
"type": "string"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"type": "object",
|
|
746
|
+
"properties": {
|
|
747
|
+
"label": {
|
|
748
|
+
"type": "string"
|
|
749
|
+
},
|
|
750
|
+
"color": {
|
|
751
|
+
"type": "string"
|
|
752
|
+
},
|
|
753
|
+
"role": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"enum": [
|
|
756
|
+
"submit",
|
|
757
|
+
"close"
|
|
758
|
+
]
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
"title": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "The title for the dialog"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"required": [
|
|
771
|
+
"kind",
|
|
772
|
+
"title"
|
|
773
|
+
]
|
|
774
|
+
}
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
"formArray": {
|
|
778
|
+
"allOf": [
|
|
779
|
+
{
|
|
780
|
+
"type": "object",
|
|
781
|
+
"properties": {
|
|
782
|
+
"role": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"const": "array"
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"required": [
|
|
788
|
+
"role"
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"oneOf": [
|
|
793
|
+
{
|
|
794
|
+
"allOf": [
|
|
795
|
+
{
|
|
796
|
+
"$ref": "#/definitions/baseFormArray"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"type": "object",
|
|
800
|
+
"properties": {
|
|
801
|
+
"kind": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"const": "default",
|
|
804
|
+
"default": "default"
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
]
|
|
811
|
+
}
|
|
812
|
+
]
|
|
813
|
+
},
|
|
814
|
+
"formComponent": {
|
|
815
|
+
"allOf": [
|
|
816
|
+
{
|
|
817
|
+
"$ref": "#/definitions/formDefinition"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"type": "object",
|
|
821
|
+
"properties": {
|
|
822
|
+
"window": {
|
|
823
|
+
"type": "boolean",
|
|
824
|
+
"description": "Whether the form can be opened in a window"
|
|
825
|
+
},
|
|
826
|
+
"role": {
|
|
827
|
+
"type": "string",
|
|
828
|
+
"description": "Define the role of the form"
|
|
829
|
+
},
|
|
830
|
+
"matFormFieldDefaultOptions": {
|
|
831
|
+
"appearance": {
|
|
832
|
+
"type": "string",
|
|
833
|
+
"description": "The appearance of the mat form field",
|
|
834
|
+
"enum": [
|
|
835
|
+
"legacy",
|
|
836
|
+
"standard",
|
|
837
|
+
"fill",
|
|
838
|
+
"outline"
|
|
839
|
+
]
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"identifier": {
|
|
843
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
]
|
|
848
|
+
},
|
|
582
849
|
"formControl": {
|
|
583
850
|
"allOf": [
|
|
584
851
|
{
|
|
@@ -635,6 +902,21 @@
|
|
|
635
902
|
}
|
|
636
903
|
]
|
|
637
904
|
},
|
|
905
|
+
"formDefinition": {
|
|
906
|
+
"type": "object",
|
|
907
|
+
"properties": {
|
|
908
|
+
"controlList": {
|
|
909
|
+
"alias": "control",
|
|
910
|
+
"type": "array",
|
|
911
|
+
"items": {
|
|
912
|
+
"$ref": "#/definitions/control"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"required": [
|
|
917
|
+
"controlList"
|
|
918
|
+
]
|
|
919
|
+
},
|
|
638
920
|
"formField": {
|
|
639
921
|
"type": "object",
|
|
640
922
|
"properties": {
|
|
@@ -655,6 +937,126 @@
|
|
|
655
937
|
}
|
|
656
938
|
}
|
|
657
939
|
},
|
|
940
|
+
"formGroup": {
|
|
941
|
+
"allOf": [
|
|
942
|
+
{
|
|
943
|
+
"type": "object",
|
|
944
|
+
"properties": {
|
|
945
|
+
"role": {
|
|
946
|
+
"type": "string",
|
|
947
|
+
"const": "group"
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"required": [
|
|
951
|
+
"role"
|
|
952
|
+
]
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"oneOf": [
|
|
956
|
+
{
|
|
957
|
+
"allOf": [
|
|
958
|
+
{
|
|
959
|
+
"$ref": "#/definitions/baseFormGroup"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"type": "object",
|
|
963
|
+
"properties": {
|
|
964
|
+
"kind": {
|
|
965
|
+
"type": "string",
|
|
966
|
+
"const": "default",
|
|
967
|
+
"default": "default"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
]
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
]
|
|
976
|
+
},
|
|
977
|
+
"formTableAction": {
|
|
978
|
+
"allOf": [
|
|
979
|
+
{
|
|
980
|
+
"$ref": "#/definitions/baseTableAction"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"type": "object",
|
|
984
|
+
"properties": {
|
|
985
|
+
"kind": {
|
|
986
|
+
"type": "string",
|
|
987
|
+
"const": "form",
|
|
988
|
+
"default": "form"
|
|
989
|
+
},
|
|
990
|
+
"formInitial": {
|
|
991
|
+
"oneOf": [
|
|
992
|
+
{
|
|
993
|
+
"type": "object",
|
|
994
|
+
"description": "The mapping from the row object to the form initial object"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"type": "boolean",
|
|
998
|
+
"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.",
|
|
999
|
+
"default": false
|
|
1000
|
+
}
|
|
1001
|
+
]
|
|
1002
|
+
},
|
|
1003
|
+
"formComponent": {
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
"customComponent": {
|
|
1007
|
+
"type": "boolean",
|
|
1008
|
+
"default": false,
|
|
1009
|
+
"description": "If true the schematic will not coerce the form component"
|
|
1010
|
+
},
|
|
1011
|
+
"loadFrom": {
|
|
1012
|
+
"type": "object",
|
|
1013
|
+
"properties": {
|
|
1014
|
+
"operationId": {
|
|
1015
|
+
"type": "string"
|
|
1016
|
+
},
|
|
1017
|
+
"scope": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"description": "The scope of package for the openapi classes"
|
|
1020
|
+
},
|
|
1021
|
+
"body": {
|
|
1022
|
+
"oneOf": [
|
|
1023
|
+
{
|
|
1024
|
+
"type": "boolean",
|
|
1025
|
+
"description": "Pass the full row as body for the operation request"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"type": "object",
|
|
1029
|
+
"description": "Mapping of table columns to body properties - [request property]: [table column]",
|
|
1030
|
+
"additionalProperties": true
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
"parameters": {
|
|
1035
|
+
"oneOf": [
|
|
1036
|
+
{
|
|
1037
|
+
"type": "boolean",
|
|
1038
|
+
"description": "Pass the full row as parameters for the operation request"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"type": "object",
|
|
1042
|
+
"description": "Mapping of table columns to parameters properties - [request property]: [table column]",
|
|
1043
|
+
"additionalProperties": true
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
"form": {
|
|
1050
|
+
"alias": "formOptions",
|
|
1051
|
+
"$ref": "#/definitions/formComponent"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"required": [
|
|
1055
|
+
"kind"
|
|
1056
|
+
]
|
|
1057
|
+
}
|
|
1058
|
+
]
|
|
1059
|
+
},
|
|
658
1060
|
"general": {
|
|
659
1061
|
"type": "object",
|
|
660
1062
|
"properties": {
|
|
@@ -909,6 +1311,111 @@
|
|
|
909
1311
|
}
|
|
910
1312
|
}
|
|
911
1313
|
},
|
|
1314
|
+
"navigationTableAction": {
|
|
1315
|
+
"allOf": [
|
|
1316
|
+
{
|
|
1317
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"type": "object",
|
|
1321
|
+
"properties": {
|
|
1322
|
+
"kind": {
|
|
1323
|
+
"type": "string",
|
|
1324
|
+
"const": "navigation",
|
|
1325
|
+
"default": "navigation"
|
|
1326
|
+
},
|
|
1327
|
+
"route": {
|
|
1328
|
+
"type": "string",
|
|
1329
|
+
"description": "The route for the table action"
|
|
1330
|
+
},
|
|
1331
|
+
"relativeTo": {
|
|
1332
|
+
"type": "boolean",
|
|
1333
|
+
"description": "Use the current ActivatedRoute to resolve the route or not",
|
|
1334
|
+
"default": false
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"required": [
|
|
1338
|
+
"kind",
|
|
1339
|
+
"route"
|
|
1340
|
+
]
|
|
1341
|
+
}
|
|
1342
|
+
]
|
|
1343
|
+
},
|
|
1344
|
+
"openApiTableAction": {
|
|
1345
|
+
"allOf": [
|
|
1346
|
+
{
|
|
1347
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"type": "object",
|
|
1351
|
+
"properties": {
|
|
1352
|
+
"kind": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"const": "open-api",
|
|
1355
|
+
"default": "open-api"
|
|
1356
|
+
},
|
|
1357
|
+
"operationId": {
|
|
1358
|
+
"type": "string",
|
|
1359
|
+
"description": "The open api operationId for the table action"
|
|
1360
|
+
},
|
|
1361
|
+
"scope": {
|
|
1362
|
+
"type": "string",
|
|
1363
|
+
"description": "The scope of package for the openapi classes"
|
|
1364
|
+
},
|
|
1365
|
+
"body": {
|
|
1366
|
+
"oneOf": [
|
|
1367
|
+
{
|
|
1368
|
+
"type": "boolean",
|
|
1369
|
+
"description": "Pass the full row as body for the operation request"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"type": "object",
|
|
1373
|
+
"description": "Mapping of table columns to body properties - [request property]: [table column]",
|
|
1374
|
+
"additionalProperties": true
|
|
1375
|
+
}
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1378
|
+
"parameters": {
|
|
1379
|
+
"oneOf": [
|
|
1380
|
+
{
|
|
1381
|
+
"type": "boolean",
|
|
1382
|
+
"description": "Pass the full row as parameters for the operation request"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"type": "object",
|
|
1386
|
+
"description": "Mapping of table columns to parameters properties - [request property]: [table column]",
|
|
1387
|
+
"additionalProperties": true
|
|
1388
|
+
}
|
|
1389
|
+
]
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"required": [
|
|
1393
|
+
"kind",
|
|
1394
|
+
"operationId"
|
|
1395
|
+
]
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
},
|
|
1399
|
+
"operationTableAction": {
|
|
1400
|
+
"allOf": [
|
|
1401
|
+
{
|
|
1402
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"type": "object",
|
|
1406
|
+
"properties": {
|
|
1407
|
+
"kind": {
|
|
1408
|
+
"type": "string",
|
|
1409
|
+
"const": "operation",
|
|
1410
|
+
"default": "operation"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
"required": [
|
|
1414
|
+
"kind"
|
|
1415
|
+
]
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
912
1419
|
"option": {
|
|
913
1420
|
"type": "object",
|
|
914
1421
|
"properties": {
|
|
@@ -1107,60 +1614,39 @@
|
|
|
1107
1614
|
},
|
|
1108
1615
|
"tableAction": {
|
|
1109
1616
|
"type": "object",
|
|
1110
|
-
"
|
|
1111
|
-
|
|
1112
|
-
"
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
"type": "string"
|
|
1128
|
-
},
|
|
1129
|
-
"priority": {
|
|
1130
|
-
"type": "number"
|
|
1131
|
-
},
|
|
1132
|
-
"checkFunction": {
|
|
1133
|
-
"type": "string"
|
|
1134
|
-
},
|
|
1135
|
-
"inHeader": {
|
|
1136
|
-
"type": "boolean"
|
|
1137
|
-
},
|
|
1138
|
-
"role": {
|
|
1139
|
-
"type": "string"
|
|
1140
|
-
},
|
|
1141
|
-
"icon": {
|
|
1142
|
-
"type": "string"
|
|
1617
|
+
"oneOf": [
|
|
1618
|
+
{
|
|
1619
|
+
"allOf": [
|
|
1620
|
+
{
|
|
1621
|
+
"$ref": "#/definitions/baseTableAction"
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"type": "object",
|
|
1625
|
+
"properties": {
|
|
1626
|
+
"kind": {
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"const": "default",
|
|
1629
|
+
"default": "default"
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
]
|
|
1143
1634
|
},
|
|
1144
|
-
|
|
1145
|
-
"
|
|
1635
|
+
{
|
|
1636
|
+
"$ref": "#/definitions/dialogTableAction"
|
|
1146
1637
|
},
|
|
1147
|
-
|
|
1148
|
-
"
|
|
1638
|
+
{
|
|
1639
|
+
"$ref": "#/definitions/formTableAction"
|
|
1149
1640
|
},
|
|
1150
|
-
|
|
1151
|
-
"
|
|
1152
|
-
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
1641
|
+
{
|
|
1642
|
+
"$ref": "#/definitions/navigationTableAction"
|
|
1153
1643
|
},
|
|
1154
|
-
|
|
1155
|
-
"$ref": "#/definitions/
|
|
1644
|
+
{
|
|
1645
|
+
"$ref": "#/definitions/openApiTableAction"
|
|
1156
1646
|
},
|
|
1157
|
-
|
|
1158
|
-
"
|
|
1159
|
-
"additionalProperties": true
|
|
1647
|
+
{
|
|
1648
|
+
"$ref": "#/definitions/operationTableAction"
|
|
1160
1649
|
}
|
|
1161
|
-
},
|
|
1162
|
-
"required": [
|
|
1163
|
-
"type"
|
|
1164
1650
|
]
|
|
1165
1651
|
},
|
|
1166
1652
|
"tableColumn": {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "base-table-action",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"type": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"refresh": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
},
|
|
12
|
+
"confirm": {
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"tooltip": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"errorMessage": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"successMessage": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"priority": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"checkFunction": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"inHeader": {
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
"kind": {
|
|
34
|
+
"alias": "role",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"icon": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"svgIcon": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"permission": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"color": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
49
|
+
},
|
|
50
|
+
"cssClass": {
|
|
51
|
+
"$ref": "#/definitions/cssClass"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"type"
|
|
56
|
+
],
|
|
57
|
+
"definitions": {
|
|
58
|
+
"cssClass": {
|
|
59
|
+
"$ref": "./css-class.schema.json"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|