@rxap/schematic-angular 16.2.0-dev.11 → 16.2.0-dev.13

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/package.json +8 -8
  4. package/src/lib/accordion-header.js +1 -1
  5. package/src/lib/accordion-header.js.map +1 -1
  6. package/src/lib/accordion-item.js +2 -2
  7. package/src/lib/accordion-item.js.map +1 -1
  8. package/src/lib/data-grid-item.d.ts +44 -6
  9. package/src/lib/data-grid-item.js +77 -5
  10. package/src/lib/data-grid-item.js.map +1 -1
  11. package/src/lib/data-grid-mode.d.ts +4 -0
  12. package/src/lib/data-grid-mode.js +9 -0
  13. package/src/lib/data-grid-mode.js.map +1 -0
  14. package/src/lib/data-grid-options.d.ts +1 -4
  15. package/src/lib/data-grid-options.js +5 -9
  16. package/src/lib/data-grid-options.js.map +1 -1
  17. package/src/lib/form-control.d.ts +2 -5
  18. package/src/lib/form-control.js +7 -23
  19. package/src/lib/form-control.js.map +1 -1
  20. package/src/lib/load-handlebars-template.d.ts +1 -0
  21. package/src/lib/load-handlebars-template.js +5 -1
  22. package/src/lib/load-handlebars-template.js.map +1 -1
  23. package/src/lib/pipe-option.d.ts +11 -0
  24. package/src/lib/pipe-option.js +77 -0
  25. package/src/lib/pipe-option.js.map +1 -0
  26. package/src/lib/table-column.d.ts +2 -2
  27. package/src/lib/table-column.js +4 -37
  28. package/src/lib/table-column.js.map +1 -1
  29. package/src/lib/value-option.d.ts +12 -0
  30. package/src/lib/value-option.js +66 -0
  31. package/src/lib/value-option.js.map +1 -0
  32. package/src/schematics/accordion/accordion-component/schema.json +178 -0
  33. package/src/schematics/accordion/accordion-component/template.schema.json +6 -0
  34. package/src/schematics/accordion/accordion-item-component/schema.json +178 -0
  35. package/src/schematics/accordion/accordion-item-component/template.schema.json +6 -0
  36. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +2 -2
  37. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  38. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +214 -10
  39. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +6 -0
  40. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +178 -0
  41. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -0
  42. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +179 -1
  43. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +6 -0
  44. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +179 -1
  45. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +6 -0
  46. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +6 -5
  47. package/src/schematics/data-grid-component/index.js +36 -8
  48. package/src/schematics/data-grid-component/index.js.map +1 -1
  49. package/src/schematics/data-grid-component/schema.json +214 -10
  50. package/src/schematics/data-grid-component/template.schema.json +6 -0
  51. package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
  52. package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
  53. package/src/schematics/data-grid-item.schema.json +35 -11
  54. package/src/schematics/dialog-component/schema.json +3 -0
  55. package/src/schematics/form/control/input-form-control/schema.json +3 -0
  56. package/src/schematics/form/control/select-form-control/schema.json +3 -0
  57. package/src/schematics/form/control/table-select-form-control/schema.json +3 -0
  58. package/src/schematics/form/form-component/schema.json +3 -0
  59. package/src/schematics/form/form-control/schema.json +3 -0
  60. package/src/schematics/form/form-definition/schema.json +3 -0
  61. package/src/schematics/pipe.schema.json +38 -0
  62. package/src/schematics/property.schema.json +3 -0
  63. package/src/schematics/table/action/dialog-table-action/schema.json +3 -0
  64. package/src/schematics/table/action/form-table-action/schema.json +3 -0
  65. package/src/schematics/table/action/navigation-table-action/schema.json +3 -0
  66. package/src/schematics/table/action/open-api-table-action/schema.json +3 -0
  67. package/src/schematics/table/action/operation-table-action/schema.json +3 -0
  68. package/src/schematics/table/header-button/form-table-header-button/schema.json +3 -0
  69. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +3 -0
  70. package/src/schematics/table/table-action/schema.json +3 -0
  71. package/src/schematics/table/table-component/schema.json +179 -1
  72. package/src/schematics/table/table-component/template.schema.json +6 -0
  73. package/src/schematics/table/table-header-button/schema.json +3 -0
  74. package/src/schematics/table/templates/boolean-table-column.hbs +1 -1
  75. package/src/schematics/table/templates/component-table-column.hbs +1 -1
  76. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +1 -1
  77. package/src/schematics/table/templates/date-table-column.hbs +1 -1
  78. package/src/schematics/table/templates/default-table-column.hbs +1 -1
  79. package/src/schematics/table/templates/icon-table-column.hbs +1 -1
  80. package/src/schematics/table/templates/link-table-column.hbs +1 -1
  81. package/src/schematics/table/tree-table-component/schema.json +179 -1
  82. package/src/schematics/table/tree-table-component/template.schema.json +6 -0
  83. package/src/schematics/table-column.schema.json +4 -1
  84. package/src/schematics/templates/pipe.hbs +4 -0
  85. package/src/schematics/value.schema.json +26 -0
@@ -260,6 +260,9 @@
260
260
  },
261
261
  "type": {
262
262
  "$ref": "#/definitions/type"
263
+ },
264
+ "isArray": {
265
+ "type": "boolean"
263
266
  }
264
267
  },
265
268
  "required": [
@@ -218,6 +218,9 @@
218
218
  },
219
219
  "type": {
220
220
  "$ref": "#/definitions/type"
221
+ },
222
+ "isArray": {
223
+ "type": "boolean"
221
224
  }
222
225
  },
223
226
  "required": [
@@ -291,6 +291,9 @@
291
291
  },
292
292
  "type": {
293
293
  "$ref": "#/definitions/type"
294
+ },
295
+ "isArray": {
296
+ "type": "boolean"
294
297
  }
295
298
  },
296
299
  "required": [
@@ -213,6 +213,9 @@
213
213
  },
214
214
  "type": {
215
215
  "$ref": "#/definitions/type"
216
+ },
217
+ "isArray": {
218
+ "type": "boolean"
216
219
  }
217
220
  },
218
221
  "required": [
@@ -214,6 +214,9 @@
214
214
  },
215
215
  "type": {
216
216
  "$ref": "#/definitions/type"
217
+ },
218
+ "isArray": {
219
+ "type": "boolean"
217
220
  }
218
221
  },
219
222
  "required": [
@@ -139,7 +139,7 @@
139
139
  "pipeList": {
140
140
  "type": "array",
141
141
  "items": {
142
- "$ref": "#/definitions/type"
142
+ "$ref": "#/definitions/pipe"
143
143
  }
144
144
  },
145
145
  "hasFilter": {
@@ -440,6 +440,9 @@
440
440
  },
441
441
  "type": {
442
442
  "$ref": "#/definitions/type"
443
+ },
444
+ "isArray": {
445
+ "type": "boolean"
443
446
  }
444
447
  },
445
448
  "required": [
@@ -599,6 +602,181 @@
599
602
  ]
600
603
  }
601
604
  ]
605
+ },
606
+ "pipe": {
607
+ "oneOf": [
608
+ {
609
+ "type": "string"
610
+ },
611
+ {
612
+ "allOf": [
613
+ {
614
+ "$ref": "#/definitions/type"
615
+ },
616
+ {
617
+ "type": "object",
618
+ "properties": {
619
+ "argumentList": {
620
+ "type": "array",
621
+ "items": {
622
+ "$ref": "#/definitions/value"
623
+ }
624
+ }
625
+ },
626
+ "required": [
627
+ "name"
628
+ ]
629
+ }
630
+ ]
631
+ }
632
+ ],
633
+ "definitions": {
634
+ "type": {
635
+ "oneOf": [
636
+ {
637
+ "type": "string"
638
+ },
639
+ {
640
+ "type": "object",
641
+ "properties": {
642
+ "name": {
643
+ "type": "string"
644
+ },
645
+ "isTypeOnly": {
646
+ "type": "boolean"
647
+ },
648
+ "moduleSpecifier": {
649
+ "type": "string"
650
+ },
651
+ "namedImport": {
652
+ "type": "string"
653
+ },
654
+ "namespaceImport": {
655
+ "type": "string"
656
+ },
657
+ "defaultImport": {
658
+ "type": "string"
659
+ }
660
+ },
661
+ "required": [
662
+ "name"
663
+ ]
664
+ }
665
+ ]
666
+ },
667
+ "value": {
668
+ "oneOf": [
669
+ {
670
+ "type": "string"
671
+ },
672
+ {
673
+ "type": "object",
674
+ "properties": {
675
+ "type": {
676
+ "$ref": "#/definitions/type"
677
+ },
678
+ "value": {
679
+ "type": "string"
680
+ }
681
+ },
682
+ "required": [
683
+ "value"
684
+ ]
685
+ }
686
+ ],
687
+ "definitions": {
688
+ "type": {
689
+ "oneOf": [
690
+ {
691
+ "type": "string"
692
+ },
693
+ {
694
+ "type": "object",
695
+ "properties": {
696
+ "name": {
697
+ "type": "string"
698
+ },
699
+ "isTypeOnly": {
700
+ "type": "boolean"
701
+ },
702
+ "moduleSpecifier": {
703
+ "type": "string"
704
+ },
705
+ "namedImport": {
706
+ "type": "string"
707
+ },
708
+ "namespaceImport": {
709
+ "type": "string"
710
+ },
711
+ "defaultImport": {
712
+ "type": "string"
713
+ }
714
+ },
715
+ "required": [
716
+ "name"
717
+ ]
718
+ }
719
+ ]
720
+ }
721
+ }
722
+ }
723
+ }
724
+ },
725
+ "value": {
726
+ "oneOf": [
727
+ {
728
+ "type": "string"
729
+ },
730
+ {
731
+ "type": "object",
732
+ "properties": {
733
+ "type": {
734
+ "$ref": "#/definitions/type"
735
+ },
736
+ "value": {
737
+ "type": "string"
738
+ }
739
+ },
740
+ "required": [
741
+ "value"
742
+ ]
743
+ }
744
+ ],
745
+ "definitions": {
746
+ "type": {
747
+ "oneOf": [
748
+ {
749
+ "type": "string"
750
+ },
751
+ {
752
+ "type": "object",
753
+ "properties": {
754
+ "name": {
755
+ "type": "string"
756
+ },
757
+ "isTypeOnly": {
758
+ "type": "boolean"
759
+ },
760
+ "moduleSpecifier": {
761
+ "type": "string"
762
+ },
763
+ "namedImport": {
764
+ "type": "string"
765
+ },
766
+ "namespaceImport": {
767
+ "type": "string"
768
+ },
769
+ "defaultImport": {
770
+ "type": "string"
771
+ }
772
+ },
773
+ "required": [
774
+ "name"
775
+ ]
776
+ }
777
+ ]
778
+ }
779
+ }
602
780
  }
603
781
  }
604
782
  }
@@ -21,6 +21,12 @@
21
21
  },
22
22
  "upstream": {
23
23
  "$ref": "../../upstream.schema.json"
24
+ },
25
+ "pipe": {
26
+ "$ref": "../../pipe.schema.json"
27
+ },
28
+ "value": {
29
+ "$ref": "../../value.schema.json"
24
30
  }
25
31
  }
26
32
  }
@@ -195,6 +195,9 @@
195
195
  },
196
196
  "type": {
197
197
  "$ref": "#/definitions/type"
198
+ },
199
+ "isArray": {
200
+ "type": "boolean"
198
201
  }
199
202
  },
200
203
  "required": [
@@ -5,6 +5,6 @@
5
5
  <td *matCellDef="let element"
6
6
  mat-cell
7
7
  {{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
8
- [rxap-boolean-cell]="element?.{{column.propertyPath}}">
8
+ [rxap-boolean-cell]="element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}}">
9
9
  </td>
10
10
  </ng-container>
@@ -7,6 +7,6 @@
7
7
  {{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
8
8
  {{prefix}}-{{column.name}}-cell
9
9
  [element]="element"
10
- [value]="element?.{{column.propertyPath}}">
10
+ [value]="element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}}">
11
11
  </td>
12
12
  </ng-container>
@@ -5,6 +5,6 @@
5
5
  <td *matCellDef="let element"
6
6
  mat-cell
7
7
  {{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
8
- [rxap-copy-to-clipboard-cell]="element?.{{column.propertyPath}}">
8
+ [rxap-copy-to-clipboard-cell]="element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}}">
9
9
  </td>
10
10
  </ng-container>
@@ -6,6 +6,6 @@
6
6
  mat-cell
7
7
  {{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
8
8
  format="{{column.format}}"
9
- [rxap-date-cell]="element?.{{column.propertyPath}}">
9
+ [rxap-date-cell]="element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}}">
10
10
  </td>
11
11
  </ng-container>
@@ -3,6 +3,6 @@
3
3
  <ng-container i18n>{{column.title}}</ng-container>
4
4
  </th>
5
5
  <td *matCellDef="let element" mat-cell{{#if column.cssClass}} class="{{column.cssClass}}"{{/if}}>
6
- \{{ element?.{{column.propertyPath}}{{#each column.pipeList}} | {{this.name}}{{/each}} }}
6
+ \{{ element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}} }}
7
7
  </td>
8
8
  </ng-container>
@@ -5,6 +5,6 @@
5
5
  <td *matCellDef="let element"
6
6
  mat-cell
7
7
  {{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
8
- [rxap-icon-cell]="element?.{{column.propertyPath}}">
8
+ [rxap-icon-cell]="element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}}">
9
9
  </td>
10
10
  </ng-container>
@@ -5,6 +5,6 @@
5
5
  <td *matCellDef="let element"
6
6
  mat-cell
7
7
  {{#if column.cssClass}}class="{{column.cssClass}}"{{/if}}
8
- [rxap-link-cell]="element?.{{column.propertyPath}}">
8
+ [rxap-link-cell]="element?.{{column.propertyPath}}{{> pipe pipeList=column.pipeList}}">
9
9
  </td>
10
10
  </ng-container>
@@ -139,7 +139,7 @@
139
139
  "pipeList": {
140
140
  "type": "array",
141
141
  "items": {
142
- "$ref": "#/definitions/type"
142
+ "$ref": "#/definitions/pipe"
143
143
  }
144
144
  },
145
145
  "hasFilter": {
@@ -423,6 +423,9 @@
423
423
  },
424
424
  "type": {
425
425
  "$ref": "#/definitions/type"
426
+ },
427
+ "isArray": {
428
+ "type": "boolean"
426
429
  }
427
430
  },
428
431
  "required": [
@@ -582,6 +585,181 @@
582
585
  ]
583
586
  }
584
587
  ]
588
+ },
589
+ "pipe": {
590
+ "oneOf": [
591
+ {
592
+ "type": "string"
593
+ },
594
+ {
595
+ "allOf": [
596
+ {
597
+ "$ref": "#/definitions/type"
598
+ },
599
+ {
600
+ "type": "object",
601
+ "properties": {
602
+ "argumentList": {
603
+ "type": "array",
604
+ "items": {
605
+ "$ref": "#/definitions/value"
606
+ }
607
+ }
608
+ },
609
+ "required": [
610
+ "name"
611
+ ]
612
+ }
613
+ ]
614
+ }
615
+ ],
616
+ "definitions": {
617
+ "type": {
618
+ "oneOf": [
619
+ {
620
+ "type": "string"
621
+ },
622
+ {
623
+ "type": "object",
624
+ "properties": {
625
+ "name": {
626
+ "type": "string"
627
+ },
628
+ "isTypeOnly": {
629
+ "type": "boolean"
630
+ },
631
+ "moduleSpecifier": {
632
+ "type": "string"
633
+ },
634
+ "namedImport": {
635
+ "type": "string"
636
+ },
637
+ "namespaceImport": {
638
+ "type": "string"
639
+ },
640
+ "defaultImport": {
641
+ "type": "string"
642
+ }
643
+ },
644
+ "required": [
645
+ "name"
646
+ ]
647
+ }
648
+ ]
649
+ },
650
+ "value": {
651
+ "oneOf": [
652
+ {
653
+ "type": "string"
654
+ },
655
+ {
656
+ "type": "object",
657
+ "properties": {
658
+ "type": {
659
+ "$ref": "#/definitions/type"
660
+ },
661
+ "value": {
662
+ "type": "string"
663
+ }
664
+ },
665
+ "required": [
666
+ "value"
667
+ ]
668
+ }
669
+ ],
670
+ "definitions": {
671
+ "type": {
672
+ "oneOf": [
673
+ {
674
+ "type": "string"
675
+ },
676
+ {
677
+ "type": "object",
678
+ "properties": {
679
+ "name": {
680
+ "type": "string"
681
+ },
682
+ "isTypeOnly": {
683
+ "type": "boolean"
684
+ },
685
+ "moduleSpecifier": {
686
+ "type": "string"
687
+ },
688
+ "namedImport": {
689
+ "type": "string"
690
+ },
691
+ "namespaceImport": {
692
+ "type": "string"
693
+ },
694
+ "defaultImport": {
695
+ "type": "string"
696
+ }
697
+ },
698
+ "required": [
699
+ "name"
700
+ ]
701
+ }
702
+ ]
703
+ }
704
+ }
705
+ }
706
+ }
707
+ },
708
+ "value": {
709
+ "oneOf": [
710
+ {
711
+ "type": "string"
712
+ },
713
+ {
714
+ "type": "object",
715
+ "properties": {
716
+ "type": {
717
+ "$ref": "#/definitions/type"
718
+ },
719
+ "value": {
720
+ "type": "string"
721
+ }
722
+ },
723
+ "required": [
724
+ "value"
725
+ ]
726
+ }
727
+ ],
728
+ "definitions": {
729
+ "type": {
730
+ "oneOf": [
731
+ {
732
+ "type": "string"
733
+ },
734
+ {
735
+ "type": "object",
736
+ "properties": {
737
+ "name": {
738
+ "type": "string"
739
+ },
740
+ "isTypeOnly": {
741
+ "type": "boolean"
742
+ },
743
+ "moduleSpecifier": {
744
+ "type": "string"
745
+ },
746
+ "namedImport": {
747
+ "type": "string"
748
+ },
749
+ "namespaceImport": {
750
+ "type": "string"
751
+ },
752
+ "defaultImport": {
753
+ "type": "string"
754
+ }
755
+ },
756
+ "required": [
757
+ "name"
758
+ ]
759
+ }
760
+ ]
761
+ }
762
+ }
585
763
  }
586
764
  }
587
765
  }
@@ -21,6 +21,12 @@
21
21
  },
22
22
  "upstream": {
23
23
  "$ref": "../../upstream.schema.json"
24
+ },
25
+ "pipe": {
26
+ "$ref": "../../pipe.schema.json"
27
+ },
28
+ "value": {
29
+ "$ref": "../../value.schema.json"
24
30
  }
25
31
  }
26
32
  }
@@ -24,7 +24,7 @@
24
24
  "pipeList": {
25
25
  "type": "array",
26
26
  "items": {
27
- "$ref": "#/definitions/type"
27
+ "$ref": "#/definitions/pipe"
28
28
  }
29
29
  },
30
30
  "hasFilter": {
@@ -64,6 +64,9 @@
64
64
  "definitions": {
65
65
  "type": {
66
66
  "$ref": "./type.schema.json"
67
+ },
68
+ "pipe": {
69
+ "$ref": "./pipe.schema.json"
67
70
  }
68
71
  }
69
72
  }
@@ -0,0 +1,4 @@
1
+ {{#each pipeList}}
2
+ | {{this.name~}}
3
+ {{~#each this.argumentList}}:{{{this.templateValue}}}{{/each~}}
4
+ {{/each}}
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "property",
4
+ "oneOf": [
5
+ {
6
+ "type": "string"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "type": {
12
+ "$ref": "#/definitions/type"
13
+ },
14
+ "value": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": ["value"]
19
+ }
20
+ ],
21
+ "definitions": {
22
+ "type": {
23
+ "$ref": "./type.schema.json"
24
+ }
25
+ }
26
+ }