@rxap/schematic-angular 18.1.1-dev.6 → 18.2.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/collection.json +5 -0
  3. package/package.json +2 -2
  4. package/src/lib/form/control/date-form-control.d.ts +14 -0
  5. package/src/lib/form/control/date-form-control.js +34 -0
  6. package/src/lib/form/control/date-form-control.js.map +1 -0
  7. package/src/lib/form/control/form-control-kind.d.ts +2 -1
  8. package/src/lib/form/control/form-control-kind.js +1 -0
  9. package/src/lib/form/control/form-control-kind.js.map +1 -1
  10. package/src/lib/form/control/form-control.js +3 -0
  11. package/src/lib/form/control/form-control.js.map +1 -1
  12. package/src/schema.json +50 -0
  13. package/src/schematic-input.schema.json +19 -0
  14. package/src/schematics/accordion/accordion-component/schema.json +28 -0
  15. package/src/schematics/accordion/accordion-item-component/schema.json +28 -0
  16. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +28 -0
  17. package/src/schematics/accordion/item/accordion-item-nested-component/schema.json +28 -0
  18. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +28 -0
  19. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +28 -0
  20. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +28 -0
  21. package/src/schematics/data-grid-component/schema.json +28 -0
  22. package/src/schematics/date-form-control.schema.json +33 -0
  23. package/src/schematics/form/control/date-form-control/index.d.ts +8 -0
  24. package/src/schematics/form/control/date-form-control/index.js +26 -0
  25. package/src/schematics/form/control/date-form-control/index.js.map +1 -0
  26. package/src/schematics/form/control/date-form-control/schema.d.ts +4 -0
  27. package/src/schematics/form/control/date-form-control/schema.json +409 -0
  28. package/src/schematics/form/control/date-form-control/template.schema.json +33 -0
  29. package/src/schematics/form/form-array/schema.json +28 -0
  30. package/src/schematics/form/form-component/schema.json +28 -0
  31. package/src/schematics/form/form-control/index.js +2 -0
  32. package/src/schematics/form/form-control/index.js.map +1 -1
  33. package/src/schematics/form/form-control/schema.json +28 -0
  34. package/src/schematics/form/form-definition/schema.json +28 -0
  35. package/src/schematics/form/form-group/schema.json +28 -0
  36. package/src/schematics/form/templates/date-form-control.hbs +18 -0
  37. package/src/schematics/form-control.schema.json +6 -0
  38. package/src/schematics/table/action/dialog-table-action/schema.json +28 -0
  39. package/src/schematics/table/action/form-table-action/schema.json +28 -0
  40. package/src/schematics/table/action/navigation-table-action/schema.json +28 -0
  41. package/src/schematics/table/action/open-api-table-action/schema.json +28 -0
  42. package/src/schematics/table/action/operation-table-action/schema.json +28 -0
  43. package/src/schematics/table/header-button/form-table-header-button/schema.json +28 -0
  44. package/src/schematics/table/header-button/method-table-header-button/schema.json +28 -0
  45. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +28 -0
  46. package/src/schematics/table/table-action/schema.json +28 -0
  47. package/src/schematics/table/table-component/schema.json +28 -0
  48. package/src/schematics/table/table-header-button/schema.json +28 -0
  49. package/src/schematics/table/tree-table-component/schema.json +28 -0
  50. package/src/template.schema.json +6 -0
@@ -0,0 +1,18 @@
1
+ {{#> matFormField control=control}}
2
+ <input
3
+ matInput
4
+ formControlName="{{control.name}}"
5
+ [matDatepicker]="{{control.name}}Picker"
6
+ {{#if control.isRequired}}
7
+ rxapRequired
8
+ {{/if}}
9
+ {{#if parentControlContainer}}
10
+ parentControlContainer
11
+ {{/if}}
12
+ {{#if control.placeholder}}
13
+ i18n-placeholder placeholder="{{control.placeholder}}"
14
+ {{/if}}
15
+ />
16
+ <mat-datepicker-toggle matIconSuffix [for]="{{control.name}}Picker"></mat-datepicker-toggle>
17
+ <mat-datepicker #{{control.name}}Picker></mat-datepicker>
18
+ {{/matFormField}}
@@ -54,6 +54,9 @@
54
54
  },
55
55
  {
56
56
  "$ref": "#/definitions/autocompleteFormControl"
57
+ },
58
+ {
59
+ "$ref": "#/definitions/dateFormControl"
57
60
  }
58
61
  ]
59
62
  }
@@ -85,6 +88,9 @@
85
88
  },
86
89
  "slideToggleFormControl": {
87
90
  "$ref": "./slide-toggle-form-control.schema.json"
91
+ },
92
+ "dateFormControl": {
93
+ "$ref": "./date-form-control.schema.json"
88
94
  }
89
95
  }
90
96
  }
@@ -612,6 +612,31 @@
612
612
  }
613
613
  ]
614
614
  },
615
+ "dateFormControl": {
616
+ "allOf": [
617
+ {
618
+ "$ref": "#/definitions/baseFormControl"
619
+ },
620
+ {
621
+ "type": "object",
622
+ "properties": {
623
+ "kind": {
624
+ "type": "string",
625
+ "const": "date"
626
+ },
627
+ "formField": {
628
+ "$ref": "#/definitions/formField"
629
+ },
630
+ "placeholder": {
631
+ "type": "string"
632
+ }
633
+ },
634
+ "required": [
635
+ "kind"
636
+ ]
637
+ }
638
+ ]
639
+ },
615
640
  "dialogTableAction": {
616
641
  "allOf": [
617
642
  {
@@ -798,6 +823,9 @@
798
823
  },
799
824
  {
800
825
  "$ref": "#/definitions/autocompleteFormControl"
826
+ },
827
+ {
828
+ "$ref": "#/definitions/dateFormControl"
801
829
  }
802
830
  ]
803
831
  }
@@ -612,6 +612,31 @@
612
612
  }
613
613
  ]
614
614
  },
615
+ "dateFormControl": {
616
+ "allOf": [
617
+ {
618
+ "$ref": "#/definitions/baseFormControl"
619
+ },
620
+ {
621
+ "type": "object",
622
+ "properties": {
623
+ "kind": {
624
+ "type": "string",
625
+ "const": "date"
626
+ },
627
+ "formField": {
628
+ "$ref": "#/definitions/formField"
629
+ },
630
+ "placeholder": {
631
+ "type": "string"
632
+ }
633
+ },
634
+ "required": [
635
+ "kind"
636
+ ]
637
+ }
638
+ ]
639
+ },
615
640
  "dialogTableAction": {
616
641
  "allOf": [
617
642
  {
@@ -798,6 +823,9 @@
798
823
  },
799
824
  {
800
825
  "$ref": "#/definitions/autocompleteFormControl"
826
+ },
827
+ {
828
+ "$ref": "#/definitions/dateFormControl"
801
829
  }
802
830
  ]
803
831
  }
@@ -612,6 +612,31 @@
612
612
  }
613
613
  ]
614
614
  },
615
+ "dateFormControl": {
616
+ "allOf": [
617
+ {
618
+ "$ref": "#/definitions/baseFormControl"
619
+ },
620
+ {
621
+ "type": "object",
622
+ "properties": {
623
+ "kind": {
624
+ "type": "string",
625
+ "const": "date"
626
+ },
627
+ "formField": {
628
+ "$ref": "#/definitions/formField"
629
+ },
630
+ "placeholder": {
631
+ "type": "string"
632
+ }
633
+ },
634
+ "required": [
635
+ "kind"
636
+ ]
637
+ }
638
+ ]
639
+ },
615
640
  "dialogTableAction": {
616
641
  "allOf": [
617
642
  {
@@ -798,6 +823,9 @@
798
823
  },
799
824
  {
800
825
  "$ref": "#/definitions/autocompleteFormControl"
826
+ },
827
+ {
828
+ "$ref": "#/definitions/dateFormControl"
801
829
  }
802
830
  ]
803
831
  }
@@ -612,6 +612,31 @@
612
612
  }
613
613
  ]
614
614
  },
615
+ "dateFormControl": {
616
+ "allOf": [
617
+ {
618
+ "$ref": "#/definitions/baseFormControl"
619
+ },
620
+ {
621
+ "type": "object",
622
+ "properties": {
623
+ "kind": {
624
+ "type": "string",
625
+ "const": "date"
626
+ },
627
+ "formField": {
628
+ "$ref": "#/definitions/formField"
629
+ },
630
+ "placeholder": {
631
+ "type": "string"
632
+ }
633
+ },
634
+ "required": [
635
+ "kind"
636
+ ]
637
+ }
638
+ ]
639
+ },
615
640
  "dialogTableAction": {
616
641
  "allOf": [
617
642
  {
@@ -798,6 +823,9 @@
798
823
  },
799
824
  {
800
825
  "$ref": "#/definitions/autocompleteFormControl"
826
+ },
827
+ {
828
+ "$ref": "#/definitions/dateFormControl"
801
829
  }
802
830
  ]
803
831
  }
@@ -612,6 +612,31 @@
612
612
  }
613
613
  ]
614
614
  },
615
+ "dateFormControl": {
616
+ "allOf": [
617
+ {
618
+ "$ref": "#/definitions/baseFormControl"
619
+ },
620
+ {
621
+ "type": "object",
622
+ "properties": {
623
+ "kind": {
624
+ "type": "string",
625
+ "const": "date"
626
+ },
627
+ "formField": {
628
+ "$ref": "#/definitions/formField"
629
+ },
630
+ "placeholder": {
631
+ "type": "string"
632
+ }
633
+ },
634
+ "required": [
635
+ "kind"
636
+ ]
637
+ }
638
+ ]
639
+ },
615
640
  "dialogTableAction": {
616
641
  "allOf": [
617
642
  {
@@ -798,6 +823,9 @@
798
823
  },
799
824
  {
800
825
  "$ref": "#/definitions/autocompleteFormControl"
826
+ },
827
+ {
828
+ "$ref": "#/definitions/dateFormControl"
801
829
  }
802
830
  ]
803
831
  }
@@ -596,6 +596,31 @@
596
596
  }
597
597
  ]
598
598
  },
599
+ "dateFormControl": {
600
+ "allOf": [
601
+ {
602
+ "$ref": "#/definitions/baseFormControl"
603
+ },
604
+ {
605
+ "type": "object",
606
+ "properties": {
607
+ "kind": {
608
+ "type": "string",
609
+ "const": "date"
610
+ },
611
+ "formField": {
612
+ "$ref": "#/definitions/formField"
613
+ },
614
+ "placeholder": {
615
+ "type": "string"
616
+ }
617
+ },
618
+ "required": [
619
+ "kind"
620
+ ]
621
+ }
622
+ ]
623
+ },
599
624
  "formArray": {
600
625
  "allOf": [
601
626
  {
@@ -722,6 +747,9 @@
722
747
  },
723
748
  {
724
749
  "$ref": "#/definitions/autocompleteFormControl"
750
+ },
751
+ {
752
+ "$ref": "#/definitions/dateFormControl"
725
753
  }
726
754
  ]
727
755
  }
@@ -596,6 +596,31 @@
596
596
  }
597
597
  ]
598
598
  },
599
+ "dateFormControl": {
600
+ "allOf": [
601
+ {
602
+ "$ref": "#/definitions/baseFormControl"
603
+ },
604
+ {
605
+ "type": "object",
606
+ "properties": {
607
+ "kind": {
608
+ "type": "string",
609
+ "const": "date"
610
+ },
611
+ "formField": {
612
+ "$ref": "#/definitions/formField"
613
+ },
614
+ "placeholder": {
615
+ "type": "string"
616
+ }
617
+ },
618
+ "required": [
619
+ "kind"
620
+ ]
621
+ }
622
+ ]
623
+ },
599
624
  "formArray": {
600
625
  "allOf": [
601
626
  {
@@ -722,6 +747,9 @@
722
747
  },
723
748
  {
724
749
  "$ref": "#/definitions/autocompleteFormControl"
750
+ },
751
+ {
752
+ "$ref": "#/definitions/dateFormControl"
725
753
  }
726
754
  ]
727
755
  }
@@ -596,6 +596,31 @@
596
596
  }
597
597
  ]
598
598
  },
599
+ "dateFormControl": {
600
+ "allOf": [
601
+ {
602
+ "$ref": "#/definitions/baseFormControl"
603
+ },
604
+ {
605
+ "type": "object",
606
+ "properties": {
607
+ "kind": {
608
+ "type": "string",
609
+ "const": "date"
610
+ },
611
+ "formField": {
612
+ "$ref": "#/definitions/formField"
613
+ },
614
+ "placeholder": {
615
+ "type": "string"
616
+ }
617
+ },
618
+ "required": [
619
+ "kind"
620
+ ]
621
+ }
622
+ ]
623
+ },
599
624
  "formArray": {
600
625
  "allOf": [
601
626
  {
@@ -722,6 +747,9 @@
722
747
  },
723
748
  {
724
749
  "$ref": "#/definitions/autocompleteFormControl"
750
+ },
751
+ {
752
+ "$ref": "#/definitions/dateFormControl"
725
753
  }
726
754
  ]
727
755
  }
@@ -622,6 +622,31 @@
622
622
  }
623
623
  ]
624
624
  },
625
+ "dateFormControl": {
626
+ "allOf": [
627
+ {
628
+ "$ref": "#/definitions/baseFormControl"
629
+ },
630
+ {
631
+ "type": "object",
632
+ "properties": {
633
+ "kind": {
634
+ "type": "string",
635
+ "const": "date"
636
+ },
637
+ "formField": {
638
+ "$ref": "#/definitions/formField"
639
+ },
640
+ "placeholder": {
641
+ "type": "string"
642
+ }
643
+ },
644
+ "required": [
645
+ "kind"
646
+ ]
647
+ }
648
+ ]
649
+ },
625
650
  "dialogTableAction": {
626
651
  "allOf": [
627
652
  {
@@ -808,6 +833,9 @@
808
833
  },
809
834
  {
810
835
  "$ref": "#/definitions/autocompleteFormControl"
836
+ },
837
+ {
838
+ "$ref": "#/definitions/dateFormControl"
811
839
  }
812
840
  ]
813
841
  }
@@ -796,6 +796,31 @@
796
796
  }
797
797
  ]
798
798
  },
799
+ "dateFormControl": {
800
+ "allOf": [
801
+ {
802
+ "$ref": "#/definitions/baseFormControl"
803
+ },
804
+ {
805
+ "type": "object",
806
+ "properties": {
807
+ "kind": {
808
+ "type": "string",
809
+ "const": "date"
810
+ },
811
+ "formField": {
812
+ "$ref": "#/definitions/formField"
813
+ },
814
+ "placeholder": {
815
+ "type": "string"
816
+ }
817
+ },
818
+ "required": [
819
+ "kind"
820
+ ]
821
+ }
822
+ ]
823
+ },
799
824
  "dateTableColumn": {
800
825
  "allOf": [
801
826
  {
@@ -1004,6 +1029,9 @@
1004
1029
  },
1005
1030
  {
1006
1031
  "$ref": "#/definitions/autocompleteFormControl"
1032
+ },
1033
+ {
1034
+ "$ref": "#/definitions/dateFormControl"
1007
1035
  }
1008
1036
  ]
1009
1037
  }
@@ -606,6 +606,31 @@
606
606
  }
607
607
  ]
608
608
  },
609
+ "dateFormControl": {
610
+ "allOf": [
611
+ {
612
+ "$ref": "#/definitions/baseFormControl"
613
+ },
614
+ {
615
+ "type": "object",
616
+ "properties": {
617
+ "kind": {
618
+ "type": "string",
619
+ "const": "date"
620
+ },
621
+ "formField": {
622
+ "$ref": "#/definitions/formField"
623
+ },
624
+ "placeholder": {
625
+ "type": "string"
626
+ }
627
+ },
628
+ "required": [
629
+ "kind"
630
+ ]
631
+ }
632
+ ]
633
+ },
609
634
  "formArray": {
610
635
  "allOf": [
611
636
  {
@@ -732,6 +757,9 @@
732
757
  },
733
758
  {
734
759
  "$ref": "#/definitions/autocompleteFormControl"
760
+ },
761
+ {
762
+ "$ref": "#/definitions/dateFormControl"
735
763
  }
736
764
  ]
737
765
  }
@@ -796,6 +796,31 @@
796
796
  }
797
797
  ]
798
798
  },
799
+ "dateFormControl": {
800
+ "allOf": [
801
+ {
802
+ "$ref": "#/definitions/baseFormControl"
803
+ },
804
+ {
805
+ "type": "object",
806
+ "properties": {
807
+ "kind": {
808
+ "type": "string",
809
+ "const": "date"
810
+ },
811
+ "formField": {
812
+ "$ref": "#/definitions/formField"
813
+ },
814
+ "placeholder": {
815
+ "type": "string"
816
+ }
817
+ },
818
+ "required": [
819
+ "kind"
820
+ ]
821
+ }
822
+ ]
823
+ },
799
824
  "dateTableColumn": {
800
825
  "allOf": [
801
826
  {
@@ -1004,6 +1029,9 @@
1004
1029
  },
1005
1030
  {
1006
1031
  "$ref": "#/definitions/autocompleteFormControl"
1032
+ },
1033
+ {
1034
+ "$ref": "#/definitions/dateFormControl"
1007
1035
  }
1008
1036
  ]
1009
1037
  }
@@ -13,6 +13,9 @@
13
13
  }
14
14
  ],
15
15
  "definitions": {
16
+ "init": {
17
+ "$ref": "generators/init/schema.json"
18
+ },
16
19
  "tableComponentSchematic": {
17
20
  "$ref": "schematics/table/table-component/template.schema.json"
18
21
  },
@@ -208,6 +211,9 @@
208
211
  "dataSource": {
209
212
  "$ref": "schematics/data-source.schema.json"
210
213
  },
214
+ "dateFormControl": {
215
+ "$ref": "schematics/date-form-control.schema.json"
216
+ },
211
217
  "dateTableColumn": {
212
218
  "$ref": "schematics/date-table-column.schema.json"
213
219
  },