@rxap/schematic-angular 16.2.0-dev.22 → 16.2.0-dev.24

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 (103) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/package.json +13 -13
  4. package/src/lib/accordion-header.js +7 -4
  5. package/src/lib/accordion-header.js.map +1 -1
  6. package/src/lib/accordion-identifier.d.ts +2 -2
  7. package/src/lib/accordion-identifier.js +2 -1
  8. package/src/lib/accordion-identifier.js.map +1 -1
  9. package/src/lib/accordion-item.js +17 -17
  10. package/src/lib/accordion-item.js.map +1 -1
  11. package/src/lib/coerce-form-component.js +3 -2
  12. package/src/lib/coerce-form-component.js.map +1 -1
  13. package/src/lib/css-class.d.ts +8 -0
  14. package/src/lib/css-class.js +28 -0
  15. package/src/lib/css-class.js.map +1 -0
  16. package/src/lib/data-grid-item.js +15 -10
  17. package/src/lib/data-grid-item.js.map +1 -1
  18. package/src/lib/form/control/autocomplete-table-select-form-control.js +11 -1
  19. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
  20. package/src/lib/form/control/table-select-form-control.d.ts +3 -0
  21. package/src/lib/form/control/table-select-form-control.js +11 -1
  22. package/src/lib/form/control/table-select-form-control.js.map +1 -1
  23. package/src/lib/load-handlebars-template.d.ts +1 -0
  24. package/src/lib/load-handlebars-template.js +5 -1
  25. package/src/lib/load-handlebars-template.js.map +1 -1
  26. package/src/lib/minimum-table-options.d.ts +6 -0
  27. package/src/lib/minimum-table-options.js +9 -0
  28. package/src/lib/minimum-table-options.js.map +1 -1
  29. package/src/lib/table/table-filter-column-rule.js +2 -3
  30. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  31. package/src/lib/table-action.js.map +1 -1
  32. package/src/lib/table-column.d.ts +3 -1
  33. package/src/lib/table-column.js +7 -3
  34. package/src/lib/table-column.js.map +1 -1
  35. package/src/lib/table-row-action.d.ts +4 -2
  36. package/src/lib/table-row-action.js +8 -7
  37. package/src/lib/table-row-action.js.map +1 -1
  38. package/src/schema.json +279 -167
  39. package/src/schematics/accordion/accordion-component/schema.json +1427 -116
  40. package/src/schematics/accordion/accordion-item-component/schema.json +1427 -116
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +72 -62
  42. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +3 -14
  43. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1411 -166
  44. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +3 -64
  45. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +119 -77
  46. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +3 -26
  47. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +119 -77
  48. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +3 -26
  49. package/src/schematics/accordion-identifier.schema.json +1 -2
  50. package/src/schematics/accordion-item.schema.json +43 -50
  51. package/src/schematics/autocomplete-table-select-form-control.schema.json +1 -1
  52. package/src/schematics/base-accordion-item.schema.json +52 -0
  53. package/src/schematics/css-class.schema.json +34 -0
  54. package/src/schematics/data-grid-accordion-item.schema.json +34 -0
  55. package/src/schematics/data-grid-component/index.js +9 -4
  56. package/src/schematics/data-grid-component/index.js.map +1 -1
  57. package/src/schematics/data-grid-component/schema.json +6 -7
  58. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +8 -6
  59. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  60. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -5
  61. package/src/schematics/form/control/input-form-control/schema.json +1 -4
  62. package/src/schematics/form/control/select-form-control/schema.json +1 -4
  63. package/src/schematics/form/control/table-select-form-control/index.js +8 -6
  64. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  65. package/src/schematics/form/control/table-select-form-control/schema.json +21 -4
  66. package/src/schematics/form/form-array/schema.json +22 -5
  67. package/src/schematics/form/form-component/schema.json +6 -7
  68. package/src/schematics/form/form-control/schema.json +22 -5
  69. package/src/schematics/form/form-definition/schema.json +22 -5
  70. package/src/schematics/form/form-group/schema.json +22 -5
  71. package/src/schematics/minimum-table.schema.json +12 -0
  72. package/src/schematics/property.schema.json +1 -4
  73. package/src/schematics/switch-accordion-item.schema.json +82 -0
  74. package/src/schematics/table/action/dialog-table-action/schema.json +33 -2
  75. package/src/schematics/table/action/form-table-action/schema.json +39 -9
  76. package/src/schematics/table/action/navigation-table-action/schema.json +33 -2
  77. package/src/schematics/table/action/open-api-table-action/schema.json +33 -2
  78. package/src/schematics/table/action/operation-table-action/schema.json +33 -2
  79. package/src/schematics/table/header-button/form-table-header-button/schema.json +6 -7
  80. package/src/schematics/table/table-action/schema.json +33 -2
  81. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +11 -9
  82. package/src/schematics/table/table-component/index.d.ts +0 -3
  83. package/src/schematics/table/table-component/index.js +2 -9
  84. package/src/schematics/table/table-component/index.js.map +1 -1
  85. package/src/schematics/table/table-component/schema.json +62 -8
  86. package/src/schematics/table/templates/boolean-table-column.hbs +3 -2
  87. package/src/schematics/table/templates/component-table-column.hbs +3 -2
  88. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +3 -2
  89. package/src/schematics/table/templates/date-table-column.hbs +3 -2
  90. package/src/schematics/table/templates/default-table-column.hbs +4 -1
  91. package/src/schematics/table/templates/icon-table-column.hbs +3 -2
  92. package/src/schematics/table/templates/link-table-column.hbs +3 -2
  93. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +13 -11
  94. package/src/schematics/table/tree-table-component/index.js +1 -0
  95. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  96. package/src/schematics/table/tree-table-component/schema.json +62 -8
  97. package/src/schematics/table-accordion-item.schema.json +41 -0
  98. package/src/schematics/table-action.schema.json +7 -3
  99. package/src/schematics/table-column.schema.json +4 -1
  100. package/src/schematics/table-select-form-control.schema.json +6 -0
  101. package/src/schematics/templates/css-class.hbs +1 -0
  102. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  103. package/src/template.schema.json +18 -0
@@ -82,6 +82,23 @@
82
82
  }
83
83
  ]
84
84
  },
85
+ "accordionIdentifier": {
86
+ "type": "object",
87
+ "properties": {
88
+ "property": {
89
+ "$ref": "#/definitions/property"
90
+ },
91
+ "source": {
92
+ "type": "string",
93
+ "enum": [
94
+ "route"
95
+ ]
96
+ }
97
+ },
98
+ "required": [
99
+ "property"
100
+ ]
101
+ },
85
102
  "angular": {
86
103
  "allOf": [
87
104
  {
@@ -146,7 +163,7 @@
146
163
  },
147
164
  "kind": {
148
165
  "type": "string",
149
- "const": "table-select"
166
+ "const": "autocomplete-table-select"
150
167
  },
151
168
  "placeholder": {
152
169
  "type": "string"
@@ -290,6 +307,38 @@
290
307
  }
291
308
  ]
292
309
  },
310
+ "cssClass": {
311
+ "oneOf": [
312
+ {
313
+ "type": "string"
314
+ },
315
+ {
316
+ "type": "array",
317
+ "items": {
318
+ "type": "string"
319
+ }
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "name": {
325
+ "type": "string"
326
+ }
327
+ }
328
+ },
329
+ {
330
+ "type": "array",
331
+ "items": {
332
+ "type": "object",
333
+ "properties": {
334
+ "name": {
335
+ "type": "string"
336
+ }
337
+ }
338
+ }
339
+ }
340
+ ]
341
+ },
293
342
  "formControl": {
294
343
  "allOf": [
295
344
  {
@@ -525,6 +574,12 @@
525
574
  "type": "string"
526
575
  },
527
576
  "description": "The table modifiers"
577
+ },
578
+ "cssClass": {
579
+ "$ref": "#/definitions/cssClass"
580
+ },
581
+ "identifier": {
582
+ "$ref": "#/definitions/accordionIdentifier"
528
583
  }
529
584
  }
530
585
  },
@@ -573,10 +628,7 @@
573
628
  "isArray": {
574
629
  "type": "boolean"
575
630
  }
576
- },
577
- "required": [
578
- "name"
579
- ]
631
+ }
580
632
  }
581
633
  ]
582
634
  },
@@ -705,8 +757,7 @@
705
757
  "description": "Value for the color input of the mat-button / mat-icon component"
706
758
  },
707
759
  "cssClass": {
708
- "type": "string",
709
- "description": "Additional CSS classes added to the button element"
760
+ "$ref": "#/definitions/cssClass"
710
761
  },
711
762
  "options": {
712
763
  "type": "object",
@@ -751,7 +802,7 @@
751
802
  "type": "boolean"
752
803
  },
753
804
  "cssClass": {
754
- "type": "string"
805
+ "$ref": "#/definitions/cssClass"
755
806
  },
756
807
  "title": {
757
808
  "type": "string"
@@ -854,6 +905,9 @@
854
905
  "$ref": "#/definitions/upstream"
855
906
  }
856
907
  }
908
+ },
909
+ "identifier": {
910
+ "$ref": "#/definitions/accordionIdentifier"
857
911
  }
858
912
  }
859
913
  }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "table-accordion-item",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/baseAccordionItem"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "table"
14
+ },
15
+ "modifiers": {
16
+ "alias": "modifier",
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string",
20
+ "enum": [
21
+ "navigation-back-header",
22
+ "without-title"
23
+ ]
24
+ },
25
+ "description": "The table modifiers"
26
+ },
27
+ "table": {
28
+ "$ref": "#/definitions/table"
29
+ }
30
+ }
31
+ }
32
+ ],
33
+ "definitions": {
34
+ "baseAccordionItem": {
35
+ "$ref": "./base-accordion-item.schema.json"
36
+ },
37
+ "table": {
38
+ "$ref": "./table.schema.json"
39
+ }
40
+ }
41
+ }
@@ -47,8 +47,7 @@
47
47
  "description": "Value for the color input of the mat-button / mat-icon component"
48
48
  },
49
49
  "cssClass": {
50
- "type": "string",
51
- "description": "Additional CSS classes added to the button element"
50
+ "$ref": "#/definitions/cssClass"
52
51
  },
53
52
  "options": {
54
53
  "type": "object",
@@ -57,5 +56,10 @@
57
56
  },
58
57
  "required": [
59
58
  "type"
60
- ]
59
+ ],
60
+ "definitions": {
61
+ "cssClass": {
62
+ "$ref": "./css-class.schema.json"
63
+ }
64
+ }
61
65
  }
@@ -34,7 +34,7 @@
34
34
  "type": "boolean"
35
35
  },
36
36
  "cssClass": {
37
- "type": "string"
37
+ "$ref": "#/definitions/cssClass"
38
38
  },
39
39
  "title": {
40
40
  "type": "string"
@@ -70,6 +70,9 @@
70
70
  },
71
71
  "pipe": {
72
72
  "$ref": "./pipe.schema.json"
73
+ },
74
+ "cssClass": {
75
+ "$ref": "./css-class.schema.json"
73
76
  }
74
77
  }
75
78
  }
@@ -75,6 +75,9 @@
75
75
  "$ref": "#/definitions/upstream"
76
76
  }
77
77
  }
78
+ },
79
+ "identifier": {
80
+ "$ref": "#/definitions/accordionIdentifier"
78
81
  }
79
82
  }
80
83
  }
@@ -91,6 +94,9 @@
91
94
  },
92
95
  "baseFormControl": {
93
96
  "$ref": "./base-form-control.schema.json"
97
+ },
98
+ "accordionIdentifier": {
99
+ "$ref": "./accordion-identifier.schema.json"
94
100
  }
95
101
  }
96
102
  }
@@ -0,0 +1 @@
1
+ class="{{#each cssClass}}{{this.name}}{{#unless @last}} {{/unless}}{{/each}}"
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "tree-table-accordion-item",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/baseAccordionItem"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "tree-table"
14
+ },
15
+ "modifiers": {
16
+ "alias": "modifier",
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string",
20
+ "enum": [
21
+ "navigation-back-header",
22
+ "without-title"
23
+ ]
24
+ },
25
+ "description": "The table modifiers"
26
+ },
27
+ "table": {
28
+ "$ref": "#/definitions/treeTable"
29
+ }
30
+ }
31
+ }
32
+ ],
33
+ "definitions": {
34
+ "baseAccordionItem": {
35
+ "$ref": "./base-accordion-item.schema.json"
36
+ },
37
+ "treeTable": {
38
+ "$ref": "./tree-table.schema.json"
39
+ }
40
+ }
41
+ }
@@ -118,6 +118,9 @@
118
118
  "backend": {
119
119
  "$ref": "schematics/backend.schema.json"
120
120
  },
121
+ "baseAccordionItem": {
122
+ "$ref": "schematics/base-accordion-item.schema.json"
123
+ },
121
124
  "baseFormArray": {
122
125
  "$ref": "schematics/base-form-array.schema.json"
123
126
  },
@@ -136,6 +139,12 @@
136
139
  "control": {
137
140
  "$ref": "schematics/control.schema.json"
138
141
  },
142
+ "cssClass": {
143
+ "$ref": "schematics/css-class.schema.json"
144
+ },
145
+ "dataGridAccordionItem": {
146
+ "$ref": "schematics/data-grid-accordion-item.schema.json"
147
+ },
139
148
  "dataGridItem": {
140
149
  "$ref": "schematics/data-grid-item.schema.json"
141
150
  },
@@ -184,6 +193,12 @@
184
193
  "slideToggleFormControl": {
185
194
  "$ref": "schematics/slide-toggle-form-control.schema.json"
186
195
  },
196
+ "switchAccordionItem": {
197
+ "$ref": "schematics/switch-accordion-item.schema.json"
198
+ },
199
+ "tableAccordionItem": {
200
+ "$ref": "schematics/table-accordion-item.schema.json"
201
+ },
187
202
  "tableAction": {
188
203
  "$ref": "schematics/table-action.schema.json"
189
204
  },
@@ -199,6 +214,9 @@
199
214
  "textareaFormControl": {
200
215
  "$ref": "schematics/textarea-form-control.schema.json"
201
216
  },
217
+ "treeTableAccordionItem": {
218
+ "$ref": "schematics/tree-table-accordion-item.schema.json"
219
+ },
202
220
  "treeTable": {
203
221
  "$ref": "schematics/tree-table.schema.json"
204
222
  },