@rxap/schematic-angular 16.2.0-dev.10 → 16.2.0-dev.12

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 (88) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/package.json +6 -6
  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 +14 -2
  7. package/src/lib/accordion-item.js.map +1 -1
  8. package/src/lib/coerce-accordion-component.js +2 -0
  9. package/src/lib/coerce-accordion-component.js.map +1 -1
  10. package/src/lib/data-grid-item.d.ts +42 -6
  11. package/src/lib/data-grid-item.js +73 -5
  12. package/src/lib/data-grid-item.js.map +1 -1
  13. package/src/lib/data-grid-mode.d.ts +4 -0
  14. package/src/lib/data-grid-mode.js +9 -0
  15. package/src/lib/data-grid-mode.js.map +1 -0
  16. package/src/lib/data-grid-options.d.ts +1 -4
  17. package/src/lib/data-grid-options.js +5 -9
  18. package/src/lib/data-grid-options.js.map +1 -1
  19. package/src/lib/form-control.d.ts +2 -5
  20. package/src/lib/form-control.js +9 -25
  21. package/src/lib/form-control.js.map +1 -1
  22. package/src/lib/load-handlebars-template.d.ts +1 -0
  23. package/src/lib/load-handlebars-template.js +5 -1
  24. package/src/lib/load-handlebars-template.js.map +1 -1
  25. package/src/lib/pipe-option.d.ts +11 -0
  26. package/src/lib/pipe-option.js +77 -0
  27. package/src/lib/pipe-option.js.map +1 -0
  28. package/src/lib/table-column.d.ts +2 -2
  29. package/src/lib/table-column.js +4 -37
  30. package/src/lib/table-column.js.map +1 -1
  31. package/src/lib/value-option.d.ts +12 -0
  32. package/src/lib/value-option.js +66 -0
  33. package/src/lib/value-option.js.map +1 -0
  34. package/src/schematics/accordion/accordion-component/schema.json +178 -0
  35. package/src/schematics/accordion/accordion-component/template.schema.json +6 -0
  36. package/src/schematics/accordion/accordion-item-component/schema.json +178 -0
  37. package/src/schematics/accordion/accordion-item-component/template.schema.json +6 -0
  38. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +2 -2
  39. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  40. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +214 -10
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +6 -0
  42. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +178 -0
  43. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -0
  44. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +179 -1
  45. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +6 -0
  46. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +179 -1
  47. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +6 -0
  48. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +6 -5
  49. package/src/schematics/data-grid-component/index.js +26 -7
  50. package/src/schematics/data-grid-component/index.js.map +1 -1
  51. package/src/schematics/data-grid-component/schema.json +214 -10
  52. package/src/schematics/data-grid-component/template.schema.json +6 -0
  53. package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
  54. package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
  55. package/src/schematics/data-grid-item.schema.json +35 -11
  56. package/src/schematics/dialog-component/schema.json +3 -0
  57. package/src/schematics/form/control/input-form-control/schema.json +3 -0
  58. package/src/schematics/form/control/select-form-control/schema.json +3 -0
  59. package/src/schematics/form/control/table-select-form-control/schema.json +3 -0
  60. package/src/schematics/form/form-component/schema.json +3 -0
  61. package/src/schematics/form/form-control/schema.json +3 -0
  62. package/src/schematics/form/form-definition/schema.json +3 -0
  63. package/src/schematics/form/templates/mat-form-field.hbs +5 -5
  64. package/src/schematics/pipe.schema.json +38 -0
  65. package/src/schematics/property.schema.json +3 -0
  66. package/src/schematics/table/action/dialog-table-action/schema.json +3 -0
  67. package/src/schematics/table/action/form-table-action/schema.json +3 -0
  68. package/src/schematics/table/action/navigation-table-action/schema.json +3 -0
  69. package/src/schematics/table/action/open-api-table-action/schema.json +3 -0
  70. package/src/schematics/table/action/operation-table-action/schema.json +3 -0
  71. package/src/schematics/table/header-button/form-table-header-button/schema.json +3 -0
  72. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +3 -0
  73. package/src/schematics/table/table-action/schema.json +3 -0
  74. package/src/schematics/table/table-component/schema.json +179 -1
  75. package/src/schematics/table/table-component/template.schema.json +6 -0
  76. package/src/schematics/table/table-header-button/schema.json +3 -0
  77. package/src/schematics/table/templates/boolean-table-column.hbs +1 -1
  78. package/src/schematics/table/templates/component-table-column.hbs +1 -1
  79. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +1 -1
  80. package/src/schematics/table/templates/date-table-column.hbs +1 -1
  81. package/src/schematics/table/templates/default-table-column.hbs +1 -1
  82. package/src/schematics/table/templates/icon-table-column.hbs +1 -1
  83. package/src/schematics/table/templates/link-table-column.hbs +1 -1
  84. package/src/schematics/table/tree-table-component/schema.json +179 -1
  85. package/src/schematics/table/tree-table-component/template.schema.json +6 -0
  86. package/src/schematics/table-column.schema.json +4 -1
  87. package/src/schematics/templates/pipe.hbs +4 -0
  88. package/src/schematics/value.schema.json +26 -0
@@ -247,6 +247,9 @@
247
247
  },
248
248
  "type": {
249
249
  "$ref": "#/definitions/type"
250
+ },
251
+ "isArray": {
252
+ "type": "boolean"
250
253
  }
251
254
  },
252
255
  "required": [
@@ -347,6 +350,181 @@
347
350
  ]
348
351
  }
349
352
  }
353
+ },
354
+ "pipe": {
355
+ "oneOf": [
356
+ {
357
+ "type": "string"
358
+ },
359
+ {
360
+ "allOf": [
361
+ {
362
+ "$ref": "#/definitions/type"
363
+ },
364
+ {
365
+ "type": "object",
366
+ "properties": {
367
+ "argumentList": {
368
+ "type": "array",
369
+ "items": {
370
+ "$ref": "#/definitions/value"
371
+ }
372
+ }
373
+ },
374
+ "required": [
375
+ "name"
376
+ ]
377
+ }
378
+ ]
379
+ }
380
+ ],
381
+ "definitions": {
382
+ "type": {
383
+ "oneOf": [
384
+ {
385
+ "type": "string"
386
+ },
387
+ {
388
+ "type": "object",
389
+ "properties": {
390
+ "name": {
391
+ "type": "string"
392
+ },
393
+ "isTypeOnly": {
394
+ "type": "boolean"
395
+ },
396
+ "moduleSpecifier": {
397
+ "type": "string"
398
+ },
399
+ "namedImport": {
400
+ "type": "string"
401
+ },
402
+ "namespaceImport": {
403
+ "type": "string"
404
+ },
405
+ "defaultImport": {
406
+ "type": "string"
407
+ }
408
+ },
409
+ "required": [
410
+ "name"
411
+ ]
412
+ }
413
+ ]
414
+ },
415
+ "value": {
416
+ "oneOf": [
417
+ {
418
+ "type": "string"
419
+ },
420
+ {
421
+ "type": "object",
422
+ "properties": {
423
+ "type": {
424
+ "$ref": "#/definitions/type"
425
+ },
426
+ "value": {
427
+ "type": "string"
428
+ }
429
+ },
430
+ "required": [
431
+ "value"
432
+ ]
433
+ }
434
+ ],
435
+ "definitions": {
436
+ "type": {
437
+ "oneOf": [
438
+ {
439
+ "type": "string"
440
+ },
441
+ {
442
+ "type": "object",
443
+ "properties": {
444
+ "name": {
445
+ "type": "string"
446
+ },
447
+ "isTypeOnly": {
448
+ "type": "boolean"
449
+ },
450
+ "moduleSpecifier": {
451
+ "type": "string"
452
+ },
453
+ "namedImport": {
454
+ "type": "string"
455
+ },
456
+ "namespaceImport": {
457
+ "type": "string"
458
+ },
459
+ "defaultImport": {
460
+ "type": "string"
461
+ }
462
+ },
463
+ "required": [
464
+ "name"
465
+ ]
466
+ }
467
+ ]
468
+ }
469
+ }
470
+ }
471
+ }
472
+ },
473
+ "value": {
474
+ "oneOf": [
475
+ {
476
+ "type": "string"
477
+ },
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "type": {
482
+ "$ref": "#/definitions/type"
483
+ },
484
+ "value": {
485
+ "type": "string"
486
+ }
487
+ },
488
+ "required": [
489
+ "value"
490
+ ]
491
+ }
492
+ ],
493
+ "definitions": {
494
+ "type": {
495
+ "oneOf": [
496
+ {
497
+ "type": "string"
498
+ },
499
+ {
500
+ "type": "object",
501
+ "properties": {
502
+ "name": {
503
+ "type": "string"
504
+ },
505
+ "isTypeOnly": {
506
+ "type": "boolean"
507
+ },
508
+ "moduleSpecifier": {
509
+ "type": "string"
510
+ },
511
+ "namedImport": {
512
+ "type": "string"
513
+ },
514
+ "namespaceImport": {
515
+ "type": "string"
516
+ },
517
+ "defaultImport": {
518
+ "type": "string"
519
+ }
520
+ },
521
+ "required": [
522
+ "name"
523
+ ]
524
+ }
525
+ ]
526
+ }
527
+ }
350
528
  }
351
529
  }
352
530
  }
@@ -79,6 +79,12 @@
79
79
  },
80
80
  "button": {
81
81
  "$ref": "../../../button.schema.json"
82
+ },
83
+ "pipe": {
84
+ "$ref": "../../../pipe.schema.json"
85
+ },
86
+ "value": {
87
+ "$ref": "../../../value.schema.json"
82
88
  }
83
89
  }
84
90
  }
@@ -187,7 +187,7 @@
187
187
  "pipeList": {
188
188
  "type": "array",
189
189
  "items": {
190
- "$ref": "#/definitions/type"
190
+ "$ref": "#/definitions/pipe"
191
191
  }
192
192
  },
193
193
  "hasFilter": {
@@ -490,6 +490,9 @@
490
490
  },
491
491
  "type": {
492
492
  "$ref": "#/definitions/type"
493
+ },
494
+ "isArray": {
495
+ "type": "boolean"
493
496
  }
494
497
  },
495
498
  "required": [
@@ -649,6 +652,181 @@
649
652
  ]
650
653
  }
651
654
  ]
655
+ },
656
+ "pipe": {
657
+ "oneOf": [
658
+ {
659
+ "type": "string"
660
+ },
661
+ {
662
+ "allOf": [
663
+ {
664
+ "$ref": "#/definitions/type"
665
+ },
666
+ {
667
+ "type": "object",
668
+ "properties": {
669
+ "argumentList": {
670
+ "type": "array",
671
+ "items": {
672
+ "$ref": "#/definitions/value"
673
+ }
674
+ }
675
+ },
676
+ "required": [
677
+ "name"
678
+ ]
679
+ }
680
+ ]
681
+ }
682
+ ],
683
+ "definitions": {
684
+ "type": {
685
+ "oneOf": [
686
+ {
687
+ "type": "string"
688
+ },
689
+ {
690
+ "type": "object",
691
+ "properties": {
692
+ "name": {
693
+ "type": "string"
694
+ },
695
+ "isTypeOnly": {
696
+ "type": "boolean"
697
+ },
698
+ "moduleSpecifier": {
699
+ "type": "string"
700
+ },
701
+ "namedImport": {
702
+ "type": "string"
703
+ },
704
+ "namespaceImport": {
705
+ "type": "string"
706
+ },
707
+ "defaultImport": {
708
+ "type": "string"
709
+ }
710
+ },
711
+ "required": [
712
+ "name"
713
+ ]
714
+ }
715
+ ]
716
+ },
717
+ "value": {
718
+ "oneOf": [
719
+ {
720
+ "type": "string"
721
+ },
722
+ {
723
+ "type": "object",
724
+ "properties": {
725
+ "type": {
726
+ "$ref": "#/definitions/type"
727
+ },
728
+ "value": {
729
+ "type": "string"
730
+ }
731
+ },
732
+ "required": [
733
+ "value"
734
+ ]
735
+ }
736
+ ],
737
+ "definitions": {
738
+ "type": {
739
+ "oneOf": [
740
+ {
741
+ "type": "string"
742
+ },
743
+ {
744
+ "type": "object",
745
+ "properties": {
746
+ "name": {
747
+ "type": "string"
748
+ },
749
+ "isTypeOnly": {
750
+ "type": "boolean"
751
+ },
752
+ "moduleSpecifier": {
753
+ "type": "string"
754
+ },
755
+ "namedImport": {
756
+ "type": "string"
757
+ },
758
+ "namespaceImport": {
759
+ "type": "string"
760
+ },
761
+ "defaultImport": {
762
+ "type": "string"
763
+ }
764
+ },
765
+ "required": [
766
+ "name"
767
+ ]
768
+ }
769
+ ]
770
+ }
771
+ }
772
+ }
773
+ }
774
+ },
775
+ "value": {
776
+ "oneOf": [
777
+ {
778
+ "type": "string"
779
+ },
780
+ {
781
+ "type": "object",
782
+ "properties": {
783
+ "type": {
784
+ "$ref": "#/definitions/type"
785
+ },
786
+ "value": {
787
+ "type": "string"
788
+ }
789
+ },
790
+ "required": [
791
+ "value"
792
+ ]
793
+ }
794
+ ],
795
+ "definitions": {
796
+ "type": {
797
+ "oneOf": [
798
+ {
799
+ "type": "string"
800
+ },
801
+ {
802
+ "type": "object",
803
+ "properties": {
804
+ "name": {
805
+ "type": "string"
806
+ },
807
+ "isTypeOnly": {
808
+ "type": "boolean"
809
+ },
810
+ "moduleSpecifier": {
811
+ "type": "string"
812
+ },
813
+ "namedImport": {
814
+ "type": "string"
815
+ },
816
+ "namespaceImport": {
817
+ "type": "string"
818
+ },
819
+ "defaultImport": {
820
+ "type": "string"
821
+ }
822
+ },
823
+ "required": [
824
+ "name"
825
+ ]
826
+ }
827
+ ]
828
+ }
829
+ }
652
830
  }
653
831
  }
654
832
  }
@@ -41,6 +41,12 @@
41
41
  },
42
42
  "upstream": {
43
43
  "$ref": "../../../upstream.schema.json"
44
+ },
45
+ "pipe": {
46
+ "$ref": "../../../pipe.schema.json"
47
+ },
48
+ "value": {
49
+ "$ref": "../../../value.schema.json"
44
50
  }
45
51
  }
46
52
  }
@@ -187,7 +187,7 @@
187
187
  "pipeList": {
188
188
  "type": "array",
189
189
  "items": {
190
- "$ref": "#/definitions/type"
190
+ "$ref": "#/definitions/pipe"
191
191
  }
192
192
  },
193
193
  "hasFilter": {
@@ -473,6 +473,9 @@
473
473
  },
474
474
  "type": {
475
475
  "$ref": "#/definitions/type"
476
+ },
477
+ "isArray": {
478
+ "type": "boolean"
476
479
  }
477
480
  },
478
481
  "required": [
@@ -632,6 +635,181 @@
632
635
  ]
633
636
  }
634
637
  ]
638
+ },
639
+ "pipe": {
640
+ "oneOf": [
641
+ {
642
+ "type": "string"
643
+ },
644
+ {
645
+ "allOf": [
646
+ {
647
+ "$ref": "#/definitions/type"
648
+ },
649
+ {
650
+ "type": "object",
651
+ "properties": {
652
+ "argumentList": {
653
+ "type": "array",
654
+ "items": {
655
+ "$ref": "#/definitions/value"
656
+ }
657
+ }
658
+ },
659
+ "required": [
660
+ "name"
661
+ ]
662
+ }
663
+ ]
664
+ }
665
+ ],
666
+ "definitions": {
667
+ "type": {
668
+ "oneOf": [
669
+ {
670
+ "type": "string"
671
+ },
672
+ {
673
+ "type": "object",
674
+ "properties": {
675
+ "name": {
676
+ "type": "string"
677
+ },
678
+ "isTypeOnly": {
679
+ "type": "boolean"
680
+ },
681
+ "moduleSpecifier": {
682
+ "type": "string"
683
+ },
684
+ "namedImport": {
685
+ "type": "string"
686
+ },
687
+ "namespaceImport": {
688
+ "type": "string"
689
+ },
690
+ "defaultImport": {
691
+ "type": "string"
692
+ }
693
+ },
694
+ "required": [
695
+ "name"
696
+ ]
697
+ }
698
+ ]
699
+ },
700
+ "value": {
701
+ "oneOf": [
702
+ {
703
+ "type": "string"
704
+ },
705
+ {
706
+ "type": "object",
707
+ "properties": {
708
+ "type": {
709
+ "$ref": "#/definitions/type"
710
+ },
711
+ "value": {
712
+ "type": "string"
713
+ }
714
+ },
715
+ "required": [
716
+ "value"
717
+ ]
718
+ }
719
+ ],
720
+ "definitions": {
721
+ "type": {
722
+ "oneOf": [
723
+ {
724
+ "type": "string"
725
+ },
726
+ {
727
+ "type": "object",
728
+ "properties": {
729
+ "name": {
730
+ "type": "string"
731
+ },
732
+ "isTypeOnly": {
733
+ "type": "boolean"
734
+ },
735
+ "moduleSpecifier": {
736
+ "type": "string"
737
+ },
738
+ "namedImport": {
739
+ "type": "string"
740
+ },
741
+ "namespaceImport": {
742
+ "type": "string"
743
+ },
744
+ "defaultImport": {
745
+ "type": "string"
746
+ }
747
+ },
748
+ "required": [
749
+ "name"
750
+ ]
751
+ }
752
+ ]
753
+ }
754
+ }
755
+ }
756
+ }
757
+ },
758
+ "value": {
759
+ "oneOf": [
760
+ {
761
+ "type": "string"
762
+ },
763
+ {
764
+ "type": "object",
765
+ "properties": {
766
+ "type": {
767
+ "$ref": "#/definitions/type"
768
+ },
769
+ "value": {
770
+ "type": "string"
771
+ }
772
+ },
773
+ "required": [
774
+ "value"
775
+ ]
776
+ }
777
+ ],
778
+ "definitions": {
779
+ "type": {
780
+ "oneOf": [
781
+ {
782
+ "type": "string"
783
+ },
784
+ {
785
+ "type": "object",
786
+ "properties": {
787
+ "name": {
788
+ "type": "string"
789
+ },
790
+ "isTypeOnly": {
791
+ "type": "boolean"
792
+ },
793
+ "moduleSpecifier": {
794
+ "type": "string"
795
+ },
796
+ "namedImport": {
797
+ "type": "string"
798
+ },
799
+ "namespaceImport": {
800
+ "type": "string"
801
+ },
802
+ "defaultImport": {
803
+ "type": "string"
804
+ }
805
+ },
806
+ "required": [
807
+ "name"
808
+ ]
809
+ }
810
+ ]
811
+ }
812
+ }
635
813
  }
636
814
  }
637
815
  }
@@ -41,6 +41,12 @@
41
41
  },
42
42
  "upstream": {
43
43
  "$ref": "../../../upstream.schema.json"
44
+ },
45
+ "pipe": {
46
+ "$ref": "../../../pipe.schema.json"
47
+ },
48
+ "value": {
49
+ "$ref": "../../../value.schema.json"
44
50
  }
45
51
  }
46
52
  }
@@ -13,15 +13,16 @@
13
13
  <rxap-data-grid {{#if collection}}[data]="data"{{else}}[dataSource]="dataGridDataSource"{{/if}} mode="{{mode}}">
14
14
  {{#each itemList}}
15
15
  <ng-container rxapDataGridRowDef="{{this.name}}">
16
- {{#if this.header}}
16
+ {{#if this.hasHeaderCellDef}}
17
17
  <th *rxapDataGridHeaderCellDef class="whitespace-nowrap" i18n>{{this.header}}</th>
18
18
  {{/if}}
19
- {{#if ../isForm}}
20
- {{#unless this.isReadonly}}
19
+ {{#if this.hasEditCellDef}}
21
20
  <ng-template rxapDataGridEditCellDef>
22
- {{ indent (compile this.handlebars control=this) 14}}
21
+ {{ indent (compile this.formControl.handlebars control=this.formControl) 14}}
23
22
  </ng-template>
24
- {{/unless}}
23
+ {{/if}}
24
+ {{#if this.hasCellDef}}
25
+ {{ indent (compile this.handlebars item=this) 12}}
25
26
  {{/if}}
26
27
  </ng-container>
27
28
  {{/each}}