@rxap/schematic-angular 16.2.0-dev.2 → 16.2.0-dev.20
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 +146 -0
- package/README.md +1 -1
- package/package.json +11 -9
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +9 -3
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +4 -0
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +25 -17
- package/src/lib/accordion-item.js +72 -33
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- package/src/lib/coerce-accordion-component.js +7 -3
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-accordion-item-table-component.js +1 -1
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +5 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +9 -3
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +16 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +46 -11
- package/src/lib/data-grid-item.js +80 -5
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-mode.d.ts +4 -0
- package/src/lib/data-grid-mode.js +9 -0
- package/src/lib/data-grid-mode.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +12 -5
- package/src/lib/data-grid-options.js +43 -13
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form-component-control.d.ts +2 -6
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-control.d.ts +136 -0
- package/src/lib/form-control.js +265 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +3 -57
- package/src/lib/form-definition-control.js +18 -144
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +4 -0
- package/src/lib/load-handlebars-template.js +28 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/merge-with-column-list.js +3 -1
- package/src/lib/merge-with-column-list.js.map +1 -1
- package/src/lib/minimum-table-component-options.d.ts +12 -2
- package/src/lib/minimum-table-component-options.js +14 -17
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +1 -1
- package/src/lib/minimum-table-options.js +2 -2
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/pipe-option.d.ts +11 -0
- package/src/lib/pipe-option.js +75 -0
- package/src/lib/pipe-option.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.d.ts +13 -0
- package/src/lib/table/table-filter-column-rule.js +88 -0
- package/src/lib/table/table-filter-column-rule.js.map +1 -0
- package/src/lib/table-column.d.ts +19 -9
- package/src/lib/table-column.js +132 -113
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +1 -1
- package/src/lib/tree-table-options.d.ts +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
- package/src/lib/value-option.d.ts +12 -0
- package/src/lib/value-option.js +66 -0
- package/src/lib/value-option.js.map +1 -0
- package/src/schema.json +2368 -0
- package/src/schematic-input.schema.json +607 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
- package/src/schematics/accordion/accordion-component/index.js +56 -122
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
- package/src/schematics/accordion/accordion-component/schema.json +314 -132
- package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
- package/src/schematics/accordion/accordion-item-component/index.js +112 -86
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/schema.json +282 -70
- package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +35 -51
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +454 -85
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +322 -190
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +81 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +16 -19
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +615 -278
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +43 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +48 -84
- 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.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +591 -271
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +43 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-identifier.schema.json +25 -0
- package/src/schematics/accordion-item.schema.json +59 -0
- package/src/schematics/angular.schema.json +11 -11
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +35 -0
- package/src/schematics/data-grid-component/index.d.ts +2 -4
- package/src/schematics/data-grid-component/index.js +83 -52
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +413 -141
- package/src/schematics/data-grid-component/template.schema.json +20 -0
- package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
- package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
- package/src/schematics/data-grid-item.schema.json +50 -0
- package/src/schematics/data-grid.schema.json +66 -0
- package/src/schematics/dialog-component/schema.json +141 -65
- package/src/schematics/dialog-component/template.schema.json +62 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -27
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/schema.json +182 -105
- package/src/schematics/form/control/input-form-control/template.schema.json +20 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +132 -96
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/select-form-control/schema.json +194 -86
- package/src/schematics/form/control/select-form-control/template.schema.json +20 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +9 -5
- package/src/schematics/form/control/table-select-form-control/index.js +199 -143
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
- package/src/schematics/form/control/table-select-form-control/schema.json +245 -100
- package/src/schematics/form/control/table-select-form-control/template.schema.json +83 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
- package/src/schematics/form/form-component/index.d.ts +2 -0
- package/src/schematics/form/form-component/index.js +22 -7
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +3 -1
- package/src/schematics/form/form-component/schema.json +275 -150
- package/src/schematics/form/form-component/template.schema.json +20 -0
- package/src/schematics/form/form-control/index.d.ts +3 -1
- package/src/schematics/form/form-control/index.js +19 -8
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.json +203 -75
- package/src/schematics/form/form-control/template.schema.json +34 -0
- package/src/schematics/form/form-definition/index.js +14 -1
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.json +210 -127
- package/src/schematics/form/form-definition/template.schema.json +30 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-component.schema.json +45 -0
- package/src/schematics/form-control.schema.json +68 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +55 -0
- package/src/schematics/minimum-table.schema.json +60 -0
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +31 -0
- package/src/schematics/select-form-control.schema.json +64 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +209 -125
- package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
- package/src/schematics/table/action/form-table-action/schema.json +383 -153
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +187 -80
- package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +206 -97
- package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
- package/src/schematics/table/action/operation-table-action/schema.json +174 -84
- package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +272 -114
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
- package/src/schematics/table/table-action/schema.json +165 -78
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
- package/src/schematics/table/table-component/index.d.ts +1 -3
- package/src/schematics/table/table-component/index.js +14 -120
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +524 -277
- package/src/schematics/table/table-component/template.schema.json +20 -0
- package/src/schematics/table/table-header-button/schema.json +146 -64
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
- package/src/schematics/table/templates/component-table-column.hbs +12 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
- package/src/schematics/table/templates/date-table-column.hbs +11 -0
- package/src/schematics/table/templates/default-table-column.hbs +8 -0
- package/src/schematics/table/templates/icon-table-column.hbs +10 -0
- package/src/schematics/table/templates/link-table-column.hbs +10 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +255 -0
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +28 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +514 -260
- package/src/schematics/table/tree-table-component/template.schema.json +20 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +75 -0
- package/src/schematics/table.schema.json +57 -0
- package/src/schematics/templates/pipe.hbs +4 -0
- package/src/schematics/tree-component/schema.json +115 -70
- package/src/schematics/tree-component/template.schema.json +36 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +173 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,152 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [16.2.0-dev.20](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.19...@rxap/schematic-angular@16.2.0-dev.20) (2024-03-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add default filter control label ([65971f4](https://gitlab.com/rxap/packages/commit/65971f4f839d362d2145afa7ab988be782ef1bd6))
|
|
11
|
+
|
|
12
|
+
# [16.2.0-dev.19](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.18...@rxap/schematic-angular@16.2.0-dev.19) (2024-03-01)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- correctly pass tree table options ([f42d49c](https://gitlab.com/rxap/packages/commit/f42d49ce4b05c7772366c65a96c97e369cdb5799))
|
|
17
|
+
|
|
18
|
+
# [16.2.0-dev.18](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.17...@rxap/schematic-angular@16.2.0-dev.18) (2024-03-01)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @rxap/schematic-angular
|
|
21
|
+
|
|
22
|
+
# [16.2.0-dev.17](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.16...@rxap/schematic-angular@16.2.0-dev.17) (2024-03-01)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- add missing handlebars partial loaders ([4a38e18](https://gitlab.com/rxap/packages/commit/4a38e185a434b90e5589d9fe8e8d682a9c63a37e))
|
|
27
|
+
- ensure all imports are added ([bbf00b4](https://gitlab.com/rxap/packages/commit/bbf00b46b2eb58e16d280ac09de05a1d12390bfd))
|
|
28
|
+
|
|
29
|
+
# [16.2.0-dev.16](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.15...@rxap/schematic-angular@16.2.0-dev.16) (2024-02-29)
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- improve operation naming and return types ([16ea0b3](https://gitlab.com/rxap/packages/commit/16ea0b3eb2f7679c101d034e72f8013f5513ecb6))
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
- generate table select resolve method ([5db6649](https://gitlab.com/rxap/packages/commit/5db6649cac0ff8dd36170679fc726057fa5d57d1))
|
|
38
|
+
|
|
39
|
+
# [16.2.0-dev.15](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.14...@rxap/schematic-angular@16.2.0-dev.15) (2024-02-28)
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
- add missing filter column definition ([4b86212](https://gitlab.com/rxap/packages/commit/4b86212108489a3bb6cd73d422869a992a2286d8))
|
|
44
|
+
- add missing module import ([b2614a2](https://gitlab.com/rxap/packages/commit/b2614a2e98b8809b3f054d975d673c0c251986a8))
|
|
45
|
+
- correctly coerce the operation method parameters ([f68c03a](https://gitlab.com/rxap/packages/commit/f68c03a1d4d623db9c5523a180f7e3c421fb1998))
|
|
46
|
+
- ensure nestModule is passed to the operation generators ([8bab63c](https://gitlab.com/rxap/packages/commit/8bab63ca21c50581f09566e65ee709d10a7f4bda))
|
|
47
|
+
- generate index schema json file ([6c7522d](https://gitlab.com/rxap/packages/commit/6c7522df6d48ae3ac63b1c58afd1885669388625))
|
|
48
|
+
- only add get by id operation if identifier is defined ([85cddd8](https://gitlab.com/rxap/packages/commit/85cddd827eacbc217ae4c4cae7539fa3a12d4c26))
|
|
49
|
+
- respect the identifier option ([bd6c6b2](https://gitlab.com/rxap/packages/commit/bd6c6b2d6770534f7d2136ac489acae2de8f0d16))
|
|
50
|
+
|
|
51
|
+
### Features
|
|
52
|
+
|
|
53
|
+
- extend support for upstream options ([15057c5](https://gitlab.com/rxap/packages/commit/15057c5b8d4bf97ee0bf1aa3ff78825ac7bf7b73))
|
|
54
|
+
- support custom properties for accordion controllers ([82da170](https://gitlab.com/rxap/packages/commit/82da170f9ff490ec2502e0b21283b100848e6108))
|
|
55
|
+
|
|
56
|
+
# [16.2.0-dev.14](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.13...@rxap/schematic-angular@16.2.0-dev.14) (2024-02-26)
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
- ensure data grid item form control imports are merged ([efab2fd](https://gitlab.com/rxap/packages/commit/efab2fd67eefa99229b797e4749e6f9129305ae9))
|
|
61
|
+
|
|
62
|
+
# [16.2.0-dev.13](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.12...@rxap/schematic-angular@16.2.0-dev.13) (2024-02-26)
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
- ensure non form control types are excluded ([4e1f905](https://gitlab.com/rxap/packages/commit/4e1f9056d5b7e575b634b4ef1b5705a41fc67286))
|
|
67
|
+
|
|
68
|
+
# [16.2.0-dev.12](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.11...@rxap/schematic-angular@16.2.0-dev.12) (2024-02-26)
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
- support non form control properties ([c4243b7](https://gitlab.com/rxap/packages/commit/c4243b747c9f880b07c53d1777275ac45135f3df))
|
|
73
|
+
|
|
74
|
+
### Features
|
|
75
|
+
|
|
76
|
+
- introduce complex pipe templates ([bbad21d](https://gitlab.com/rxap/packages/commit/bbad21dd3f53754c0a5137a4208b238d37c114a9))
|
|
77
|
+
- support custom data grid item kinds ([d4f1e75](https://gitlab.com/rxap/packages/commit/d4f1e7563bac29f4fd8b6bbe4e03dd98bb44c4ac))
|
|
78
|
+
|
|
79
|
+
# [16.2.0-dev.11](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.10...@rxap/schematic-angular@16.2.0-dev.11) (2024-02-26)
|
|
80
|
+
|
|
81
|
+
### Bug Fixes
|
|
82
|
+
|
|
83
|
+
- mat form field directive ([a22eb4f](https://gitlab.com/rxap/packages/commit/a22eb4f398402511b2941190845fa2f54c2bdc2e))
|
|
84
|
+
|
|
85
|
+
# [16.2.0-dev.10](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.9...@rxap/schematic-angular@16.2.0-dev.10) (2024-02-26)
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
- align the controller name processing ([e3c9c31](https://gitlab.com/rxap/packages/commit/e3c9c31afdd6813832177ec4c566d92e8a45201b))
|
|
90
|
+
|
|
91
|
+
# [16.2.0-dev.9](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.8...@rxap/schematic-angular@16.2.0-dev.9) (2024-02-26)
|
|
92
|
+
|
|
93
|
+
**Note:** Version bump only for package @rxap/schematic-angular
|
|
94
|
+
|
|
95
|
+
# [16.2.0-dev.8](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.7...@rxap/schematic-angular@16.2.0-dev.8) (2024-02-26)
|
|
96
|
+
|
|
97
|
+
**Note:** Version bump only for package @rxap/schematic-angular
|
|
98
|
+
|
|
99
|
+
# [16.2.0-dev.7](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.6...@rxap/schematic-angular@16.2.0-dev.7) (2024-02-25)
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
- ensure default export is added ([adc054e](https://gitlab.com/rxap/packages/commit/adc054e45a58e6373c45a1d244f7044f32816c8a))
|
|
104
|
+
- rename itemName to name ([4387d22](https://gitlab.com/rxap/packages/commit/4387d2203e5ff41dde6a859869f6242bb43a3a1f))
|
|
105
|
+
- use handlebars ([b7a9f19](https://gitlab.com/rxap/packages/commit/b7a9f196039d50a464c20b9d5baf8ced86cdec2a))
|
|
106
|
+
- use handlebars ([1f8b14e](https://gitlab.com/rxap/packages/commit/1f8b14e8770e9562dde4ddf95b3fe91b12b43bea))
|
|
107
|
+
- use narrow control schematics ([1dc8690](https://gitlab.com/rxap/packages/commit/1dc8690d8417aa32ee9f83987737ac65db69fd09))
|
|
108
|
+
|
|
109
|
+
### Features
|
|
110
|
+
|
|
111
|
+
- support dynamic mat form field ([71b2544](https://gitlab.com/rxap/packages/commit/71b25441bc3ea59e6e7ffb26a45b93a1ee74fbf0))
|
|
112
|
+
- support handlebars for accordions ([411211b](https://gitlab.com/rxap/packages/commit/411211b624208a26aae0361efe908846ad5a74dd))
|
|
113
|
+
- support handlebars for data grids ([0c94a88](https://gitlab.com/rxap/packages/commit/0c94a881d2f0061577f64fcdcdbfc4d41c351835))
|
|
114
|
+
- support handlebars for table column ([bf4b105](https://gitlab.com/rxap/packages/commit/bf4b1053430d1dd1342b229df2d002696a2d16ee))
|
|
115
|
+
- support handlebars for tables ([4b9e208](https://gitlab.com/rxap/packages/commit/4b9e20832d950c2be579ed9bf08e7eb1685e0891))
|
|
116
|
+
- support input hbs templates ([312ebeb](https://gitlab.com/rxap/packages/commit/312ebeb82062b3b5d7b166e0650b113f67218899))
|
|
117
|
+
- support label for each form control ([4af10c0](https://gitlab.com/rxap/packages/commit/4af10c05c72b7c7e5ff2ca202d5b87e3e5636227))
|
|
118
|
+
- support slide toggle ([4bec803](https://gitlab.com/rxap/packages/commit/4bec80343c9654746c9ede1707aabc0bc994e04c))
|
|
119
|
+
- support table parameters in tree tables ([bf8a676](https://gitlab.com/rxap/packages/commit/bf8a676790b9e9bf60ef290e1201a998fbdaffd0))
|
|
120
|
+
- support table select ([f495bdd](https://gitlab.com/rxap/packages/commit/f495bdd635768e4db3ccb7c31992d140dd15ec64))
|
|
121
|
+
- support toDisplay and toValue input options ([1d331c1](https://gitlab.com/rxap/packages/commit/1d331c1163f40d9061f422e18069d8a52e677c0c))
|
|
122
|
+
- support upstream configurations ([3c972cf](https://gitlab.com/rxap/packages/commit/3c972cfc1aea45d9cabca07f24f4627f4aff03aa))
|
|
123
|
+
|
|
124
|
+
# [16.2.0-dev.6](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.5...@rxap/schematic-angular@16.2.0-dev.6) (2024-02-22)
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
- coerce table animations ([2ba23ee](https://gitlab.com/rxap/packages/commit/2ba23ee9a886b78e7f77df1fdf470840d2fb94eb))
|
|
129
|
+
|
|
130
|
+
# [16.2.0-dev.5](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.4...@rxap/schematic-angular@16.2.0-dev.5) (2024-02-22)
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
- generalize filterColumnRule function ([8e3fb50](https://gitlab.com/rxap/packages/commit/8e3fb506255dceaf5a3900669b9fdef3bdd1fd34))
|
|
135
|
+
- generalize UsePickFromTableInterfaceAsFormTypeRule function ([5a80485](https://gitlab.com/rxap/packages/commit/5a80485a59348505d770c97d130b948ab0d24ddd))
|
|
136
|
+
- generate tree table column dto types ([93e3675](https://gitlab.com/rxap/packages/commit/93e36759b298806217b9b602d36dd975d46a62a8))
|
|
137
|
+
|
|
138
|
+
# [16.2.0-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.3...@rxap/schematic-angular@16.2.0-dev.4) (2024-02-22)
|
|
139
|
+
|
|
140
|
+
### Bug Fixes
|
|
141
|
+
|
|
142
|
+
- add missing component imports ([1aa3b46](https://gitlab.com/rxap/packages/commit/1aa3b465398e62b201c936cd5938bb4eef3f4cfa))
|
|
143
|
+
|
|
144
|
+
# [16.2.0-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.2...@rxap/schematic-angular@16.2.0-dev.3) (2024-02-22)
|
|
145
|
+
|
|
146
|
+
### Bug Fixes
|
|
147
|
+
|
|
148
|
+
- only add default export to feature root components ([50f916e](https://gitlab.com/rxap/packages/commit/50f916e2168d8b18826629b6669c8976b7152b12))
|
|
149
|
+
- support filter row in tree table components ([5652aad](https://gitlab.com/rxap/packages/commit/5652aada0e57c582a35200c4f97daa7283b87e35))
|
|
150
|
+
- support filter row in tree table components ([1eb26ca](https://gitlab.com/rxap/packages/commit/1eb26ca0fa9334276bf4addb67a684046de7b9ad))
|
|
151
|
+
|
|
6
152
|
# [16.2.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.1...@rxap/schematic-angular@16.2.0-dev.2) (2024-02-22)
|
|
7
153
|
|
|
8
154
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -17,5 +17,5 @@ yarn add @rxap/schematic-angular
|
|
|
17
17
|
```
|
|
18
18
|
**Install peer dependencies:**
|
|
19
19
|
```bash
|
|
20
|
-
yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.1.0-dev.
|
|
20
|
+
yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.1.0-dev.9 @rxap/schematics-utilities@^16.0.1-dev.0 @rxap/ts-morph@^1.1.0-dev.8 @rxap/utilities@^16.1.0-dev.5 colors@^1.4.0 handlebars@^4.7.7 ts-morph@^18.0.0 tslib@2.6.2
|
|
21
21
|
```
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.2.0-dev.
|
|
2
|
+
"version": "16.2.0-dev.20",
|
|
3
3
|
"name": "@rxap/schematic-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -12,14 +12,16 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@angular-devkit/core": "^16.1.4",
|
|
14
14
|
"@angular-devkit/schematics": "^16.1.4",
|
|
15
|
-
"@rxap/schematics-ts-morph": "^16.1.0-dev.
|
|
15
|
+
"@rxap/schematics-ts-morph": "^16.1.0-dev.9",
|
|
16
16
|
"@rxap/schematics-utilities": "^16.0.1-dev.0",
|
|
17
|
-
"@rxap/ts-morph": "^1.1.0-dev.
|
|
18
|
-
"@rxap/utilities": "^16.1.0-dev.
|
|
17
|
+
"@rxap/ts-morph": "^1.1.0-dev.8",
|
|
18
|
+
"@rxap/utilities": "^16.1.0-dev.5",
|
|
19
|
+
"colors": "^1.4.0",
|
|
20
|
+
"handlebars": "^4.7.7",
|
|
19
21
|
"ts-morph": "^18.0.0",
|
|
20
22
|
"tslib": "2.6.2",
|
|
21
23
|
"@rxap/node-utilities": "1.1.0",
|
|
22
|
-
"@rxap/workspace-ts-morph": "16.0.
|
|
24
|
+
"@rxap/workspace-ts-morph": "16.0.2-dev.0",
|
|
23
25
|
"@rxap/workspace-utilities": "16.0.1",
|
|
24
26
|
"util": "0.12.5"
|
|
25
27
|
},
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
"packageGroup": [
|
|
44
46
|
{
|
|
45
47
|
"package": "@rxap/schematics-ts-morph",
|
|
46
|
-
"version": "16.1.0-dev.
|
|
48
|
+
"version": "16.1.0-dev.9"
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
"package": "@rxap/schematics-utilities",
|
|
@@ -51,11 +53,11 @@
|
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
55
|
"package": "@rxap/ts-morph",
|
|
54
|
-
"version": "1.1.0-dev.
|
|
56
|
+
"version": "1.1.0-dev.8"
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
"package": "@rxap/utilities",
|
|
58
|
-
"version": "16.1.0-dev.
|
|
60
|
+
"version": "16.1.0-dev.5"
|
|
59
61
|
},
|
|
60
62
|
{
|
|
61
63
|
"package": "@rxap/workspace-utilities",
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
},
|
|
75
77
|
"schematics": "./collection.json",
|
|
76
78
|
"type": "commonjs",
|
|
77
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "6f241f11c3da20da061a89c1dbe0ee30c3e86f1e",
|
|
78
80
|
"main": "./src/index.js",
|
|
79
81
|
"types": "./src/index.d.ts"
|
|
80
82
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataProperty, NormalizedDataProperty, NormalizedTypeImport, TypeImport } from '@rxap/ts-morph';
|
|
2
2
|
export interface BaseAccordionHeader {
|
|
3
3
|
importList?: TypeImport[];
|
|
4
|
+
template?: string;
|
|
4
5
|
}
|
|
5
6
|
export interface StaticAccordionHeader extends BaseAccordionHeader {
|
|
6
7
|
title: string;
|
|
@@ -11,6 +12,10 @@ export interface PropertyAccordionHeader extends BaseAccordionHeader {
|
|
|
11
12
|
export type AccordionHeader = StaticAccordionHeader | PropertyAccordionHeader;
|
|
12
13
|
export interface NormalizedBaseAccordionHeader {
|
|
13
14
|
importList: NormalizedTypeImport[];
|
|
15
|
+
template: string;
|
|
16
|
+
handlebars?: Handlebars.TemplateDelegate<{
|
|
17
|
+
header: NormalizedBaseAccordionHeader;
|
|
18
|
+
}>;
|
|
14
19
|
}
|
|
15
20
|
export interface NormalizedStaticAccordionHeader extends NormalizedBaseAccordionHeader {
|
|
16
21
|
title: string;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NormalizeAccordionHeader = exports.NormalizeBaseAccordionHeader = exports.IsNormalizedPropertyAccordionHeader = exports.IsNormalizedStaticAccordionHeader = exports.IsPropertyAccordionHeader = exports.IsStaticAccordionHeader = void 0;
|
|
4
4
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const load_handlebars_template_1 = require("./load-handlebars-template");
|
|
5
7
|
function IsStaticAccordionHeader(header) {
|
|
6
8
|
return header.title !== undefined;
|
|
7
9
|
}
|
|
@@ -22,14 +24,18 @@ function coerceBaseAccordionHeaderImportList(header) {
|
|
|
22
24
|
var _a;
|
|
23
25
|
const importList = (_a = header.importList) !== null && _a !== void 0 ? _a : [];
|
|
24
26
|
importList.push({
|
|
25
|
-
name: '
|
|
26
|
-
moduleSpecifier: '
|
|
27
|
+
name: 'NavigateBackButtonComponent',
|
|
28
|
+
moduleSpecifier: '@rxap/components'
|
|
27
29
|
});
|
|
28
30
|
return importList;
|
|
29
31
|
}
|
|
30
32
|
function NormalizeBaseAccordionHeader(header) {
|
|
33
|
+
var _a;
|
|
34
|
+
const template = (_a = header.template) !== null && _a !== void 0 ? _a : 'accordion-header.hbs';
|
|
31
35
|
return Object.freeze({
|
|
32
|
-
|
|
36
|
+
template,
|
|
37
|
+
handlebars: (0, load_handlebars_template_1.LoadHandlebarsTemplate)(template, (0, path_1.join)(__dirname, '..', 'schematics', 'accordion', 'templates')),
|
|
38
|
+
importList: (0, ts_morph_1.NormalizeTypeImportList)(coerceBaseAccordionHeaderImportList(header))
|
|
33
39
|
});
|
|
34
40
|
}
|
|
35
41
|
exports.NormalizeBaseAccordionHeader = NormalizeBaseAccordionHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-header.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/accordion-header.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"accordion-header.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/accordion-header.ts"],"names":[],"mappings":";;;AAAA,6CAQwB;AACxB,+BAA4B;AAC5B,yEAAoE;AAiCpE,SAAgB,uBAAuB,CAAC,MAAuB;IAC7D,OAAQ,MAAgC,CAAC,KAAK,KAAK,SAAS,CAAC;AAC/D,CAAC;AAFD,0DAEC;AAED,SAAgB,yBAAyB,CAAC,MAAuB;IAC/D,OAAQ,MAAkC,CAAC,QAAQ,KAAK,SAAS,CAAC;AACpE,CAAC;AAFD,8DAEC;AAED,SAAgB,iCAAiC,CAAC,MAAiC;IACjF,OAAQ,MAA0C,CAAC,KAAK,KAAK,SAAS,CAAC;AACzE,CAAC;AAFD,8EAEC;AAED,SAAgB,mCAAmC,CAAC,MAAiC;IACnF,OAAQ,MAA4C,CAAC,QAAQ,KAAK,SAAS,CAAC;AAC9E,CAAC;AAFD,kFAEC;AAED,SAAS,mCAAmC,CAAC,MAA2B;;IACtE,MAAM,UAAU,GAAiB,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE,CAAC;IACzD,UAAU,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,6BAA6B;QACnC,eAAe,EAAE,kBAAkB;KACpC,CAAC,CAAC;IACH,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAgB,4BAA4B,CAAC,MAA2B;;IACtE,MAAM,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,sBAAsB,CAAC;IAC3D,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,QAAQ;QACR,UAAU,EAAE,IAAA,iDAAsB,EAAC,QAAQ,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;QAC3G,UAAU,EAAE,IAAA,kCAAuB,EAAC,mCAAmC,CAAC,MAAM,CAAC,CAAC;KACjF,CAAC,CAAC;AACL,CAAC;AAPD,oEAOC;AAED,SAAgB,wBAAwB,CAAC,MAAwB;IAC/D,IAAI,MAAM,EAAE;QACV,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE;YACnC,OAAO,MAAM,CAAC,MAAM,iCACf,4BAA4B,CAAC,MAAM,CAAC,KACvC,KAAK,EAAE,MAAM,CAAC,KAAK,IACnB,CAAC;SACJ;aAAM,IAAI,yBAAyB,CAAC,MAAM,CAAC,EAAE;YAC5C,OAAO,MAAM,CAAC,MAAM,iCACf,4BAA4B,CAAC,MAAM,CAAC,KACvC,QAAQ,EAAE,IAAA,gCAAqB,EAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAC1D,CAAC;SACJ;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAfD,4DAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-identifier.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/accordion-identifier.ts"],"names":[],"mappings":";;;AAAA,6CAIwB;
|
|
1
|
+
{"version":3,"file":"accordion-identifier.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/accordion-identifier.ts"],"names":[],"mappings":";;;AAAA,6CAIwB;AAgBxB,SAAgB,4BAA4B,CAAC,UAAgC;IAC3E,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE;QAClJ,OAAO,IAAI,CAAC;KACb;IACD,OAAO;QACL,QAAQ,EAAE,IAAA,gCAAqB,EAAC,UAAU,CAAC,QAAQ,CAAC;QACpD,MAAM,EAAE,UAAU,CAAC,MAAM;KAC1B,CAAC;AACJ,CAAC;AARD,oEAQC"}
|
|
@@ -1,38 +1,49 @@
|
|
|
1
|
-
import { DataProperty, NormalizedDataProperty, NormalizedTypeImport, TypeImport } from '@rxap/ts-morph';
|
|
1
|
+
import { DataProperty, NormalizedDataProperty, NormalizedTypeImport, NormalizedUpstreamOptions, TypeImport, UpstreamOptions } from '@rxap/ts-morph';
|
|
2
2
|
import { NonNullableSelected, Normalized } from '@rxap/utilities';
|
|
3
|
-
import
|
|
3
|
+
import Handlebars from 'handlebars';
|
|
4
|
+
import { AccordionIdentifier, NormalizedAccordionIdentifier } from './accordion-identifier';
|
|
5
|
+
import { AccordionItemKinds } from './accordion-itme-kinds';
|
|
4
6
|
import { DataGridOptions, NormalizedDataGridOptions } from './data-grid-options';
|
|
5
7
|
import { NormalizedTableOptions, TableOptions } from './table-options';
|
|
6
8
|
import { NormalizedTreeTableOptions, TreeTableOptions } from './tree-table-options';
|
|
7
9
|
export interface BaseAccordionItem {
|
|
8
10
|
name: string;
|
|
9
|
-
|
|
11
|
+
kind: AccordionItemKinds;
|
|
10
12
|
modifiers: string[];
|
|
11
13
|
title: string;
|
|
12
14
|
description?: string;
|
|
13
15
|
permission?: string;
|
|
14
16
|
importList?: TypeImport[];
|
|
17
|
+
template?: string;
|
|
18
|
+
identifier?: AccordionIdentifier;
|
|
19
|
+
upstream?: UpstreamOptions;
|
|
20
|
+
propertyList?: DataProperty[];
|
|
15
21
|
}
|
|
16
|
-
export interface NormalizedBaseAccordionItem extends Readonly<NonNullableSelected<Normalized<BaseAccordionItem
|
|
22
|
+
export interface NormalizedBaseAccordionItem extends Readonly<NonNullableSelected<Normalized<Omit<BaseAccordionItem, 'propertyList'>>, 'kind'>> {
|
|
17
23
|
importList: NormalizedTypeImport[];
|
|
24
|
+
handlebars: Handlebars.TemplateDelegate<{
|
|
25
|
+
item: NormalizedBaseAccordionItem;
|
|
26
|
+
}>;
|
|
27
|
+
identifier: NormalizedAccordionIdentifier | null;
|
|
28
|
+
upstream: NormalizedUpstreamOptions | null;
|
|
29
|
+
propertyList: Array<NormalizedDataProperty>;
|
|
18
30
|
}
|
|
19
31
|
export declare function NormalizeBaseAccordionItem(item: BaseAccordionItem): NormalizedBaseAccordionItem;
|
|
20
32
|
export interface DataGridAccordionItem extends BaseAccordionItem {
|
|
21
|
-
type:
|
|
33
|
+
type: AccordionItemKinds.DataGrid;
|
|
22
34
|
dataGrid: DataGridOptions;
|
|
23
35
|
}
|
|
24
36
|
export declare function IsDataGridAccordionItem(item: BaseAccordionItem): item is DataGridAccordionItem;
|
|
25
|
-
export interface NormalizedDataGridAccordionItem extends Readonly<Normalized<Omit<DataGridAccordionItem, 'dataGrid'
|
|
37
|
+
export interface NormalizedDataGridAccordionItem extends Readonly<Normalized<Omit<DataGridAccordionItem, 'dataGrid' | 'propertyList'>> & NormalizedBaseAccordionItem> {
|
|
26
38
|
dataGrid: NormalizedDataGridOptions;
|
|
27
|
-
importList: NormalizedTypeImport[];
|
|
28
39
|
}
|
|
29
40
|
export declare function IsNormalizedDataGridAccordionItem(item: NormalizedBaseAccordionItem): item is NormalizedDataGridAccordionItem;
|
|
30
41
|
export declare function NormalizeDataGridAccordionItem(item: DataGridAccordionItem): NormalizedDataGridAccordionItem;
|
|
31
42
|
export interface SwitchAccordionItem extends BaseAccordionItem {
|
|
32
|
-
type:
|
|
43
|
+
type: AccordionItemKinds.Switch;
|
|
33
44
|
switch: {
|
|
34
45
|
property: DataProperty;
|
|
35
|
-
case
|
|
46
|
+
case?: Array<{
|
|
36
47
|
test: string;
|
|
37
48
|
itemList: Array<Omit<BaseAccordionItem, 'type'> & Partial<BaseAccordionItem>>;
|
|
38
49
|
}>;
|
|
@@ -42,7 +53,7 @@ export interface SwitchAccordionItem extends BaseAccordionItem {
|
|
|
42
53
|
};
|
|
43
54
|
}
|
|
44
55
|
export declare function IsSwitchAccordionItem(item: BaseAccordionItem): item is SwitchAccordionItem;
|
|
45
|
-
export interface NormalizedSwitchAccordionItem extends Readonly<Normalized<Omit<SwitchAccordionItem, 'switch'
|
|
56
|
+
export interface NormalizedSwitchAccordionItem extends Readonly<Normalized<Omit<SwitchAccordionItem, 'switch' | 'propertyList'>> & NormalizedBaseAccordionItem> {
|
|
46
57
|
switch: Readonly<{
|
|
47
58
|
property: NormalizedDataProperty;
|
|
48
59
|
case: ReadonlyArray<{
|
|
@@ -53,29 +64,26 @@ export interface NormalizedSwitchAccordionItem extends Readonly<Normalized<Omit<
|
|
|
53
64
|
itemList: ReadonlyArray<NormalizedBaseAccordionItem>;
|
|
54
65
|
}> | null;
|
|
55
66
|
}>;
|
|
56
|
-
importList: NormalizedTypeImport[];
|
|
57
67
|
}
|
|
58
68
|
export declare function IsNormalizedSwitchAccordionItem(item: NormalizedBaseAccordionItem): item is NormalizedSwitchAccordionItem;
|
|
59
69
|
export declare function NormalizeSwitchAccordionItem(item: Readonly<SwitchAccordionItem>): NormalizedSwitchAccordionItem;
|
|
60
70
|
export interface TableAccordionItem extends BaseAccordionItem {
|
|
61
|
-
type:
|
|
71
|
+
type: AccordionItemKinds.Table;
|
|
62
72
|
table: TableOptions;
|
|
63
73
|
}
|
|
64
74
|
export declare function IsTableAccordionItem(item: BaseAccordionItem): item is TableAccordionItem;
|
|
65
|
-
export interface NormalizedTableAccordionItem extends Readonly<Normalized<Omit<TableAccordionItem, 'table'
|
|
75
|
+
export interface NormalizedTableAccordionItem extends Readonly<Normalized<Omit<TableAccordionItem, 'table' | 'propertyList'>> & NormalizedBaseAccordionItem> {
|
|
66
76
|
table: NormalizedTableOptions;
|
|
67
|
-
importList: NormalizedTypeImport[];
|
|
68
77
|
}
|
|
69
78
|
export declare function IsNormalizedTableAccordionItem(item: NormalizedBaseAccordionItem): item is NormalizedTableAccordionItem;
|
|
70
79
|
export declare function NormalizeTableAccordionItem(item: TableAccordionItem): NormalizedTableAccordionItem;
|
|
71
80
|
export interface TreeTableAccordionItem extends BaseAccordionItem {
|
|
72
|
-
type:
|
|
81
|
+
type: AccordionItemKinds.TreeTable;
|
|
73
82
|
table: TreeTableOptions;
|
|
74
83
|
}
|
|
75
84
|
export declare function IsTreeTableAccordionItem(item: BaseAccordionItem): item is TreeTableAccordionItem;
|
|
76
|
-
export interface NormalizedTreeTableAccordionItem extends Readonly<Normalized<Omit<TreeTableAccordionItem, 'table'
|
|
85
|
+
export interface NormalizedTreeTableAccordionItem extends Readonly<Normalized<Omit<TreeTableAccordionItem, 'table' | 'propertyList'>> & NormalizedBaseAccordionItem> {
|
|
77
86
|
table: NormalizedTreeTableOptions;
|
|
78
|
-
importList: NormalizedTypeImport[];
|
|
79
87
|
}
|
|
80
88
|
export declare function IsNormalizedTreeTableAccordionItem(item: NormalizedBaseAccordionItem): item is NormalizedTreeTableAccordionItem;
|
|
81
89
|
export declare function NormalizeTreeTableAccordionItem(item: TreeTableAccordionItem): NormalizedTreeTableAccordionItem;
|
|
@@ -4,61 +4,84 @@ exports.NormalizeAccordionItemList = exports.NormalizeAccordionItem = exports.No
|
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
6
6
|
const utilities_1 = require("@rxap/utilities");
|
|
7
|
-
const
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const accordion_identifier_1 = require("./accordion-identifier");
|
|
9
|
+
const accordion_itme_kinds_1 = require("./accordion-itme-kinds");
|
|
8
10
|
const data_grid_options_1 = require("./data-grid-options");
|
|
11
|
+
const load_handlebars_template_1 = require("./load-handlebars-template");
|
|
9
12
|
const table_options_1 = require("./table-options");
|
|
10
13
|
const tree_table_options_1 = require("./tree-table-options");
|
|
11
14
|
function NormalizeBaseAccordionItem(item) {
|
|
12
|
-
var _a, _b, _c, _d, _e;
|
|
13
|
-
let
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16
|
+
let kind = accordion_itme_kinds_1.AccordionItemKinds.Default;
|
|
14
17
|
let modifiers = [];
|
|
15
18
|
let title;
|
|
16
19
|
let description = null;
|
|
17
20
|
let permission = null;
|
|
18
21
|
const name = item.name;
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
kind = (_a = item.kind) !== null && _a !== void 0 ? _a : kind;
|
|
23
|
+
const template = (_b = item.template) !== null && _b !== void 0 ? _b : kind + '-accordion-item.hbs';
|
|
24
|
+
modifiers = (_c = item.modifiers) !== null && _c !== void 0 ? _c : modifiers;
|
|
21
25
|
title = item.title;
|
|
22
|
-
description = (
|
|
23
|
-
permission = (
|
|
24
|
-
const importList = (
|
|
26
|
+
description = (_d = item.description) !== null && _d !== void 0 ? _d : description;
|
|
27
|
+
permission = (_e = item.permission) !== null && _e !== void 0 ? _e : permission;
|
|
28
|
+
const importList = (_f = item.importList) !== null && _f !== void 0 ? _f : [];
|
|
25
29
|
importList.push({
|
|
26
30
|
name: `${(0, utilities_1.classify)(item.name)}PanelComponent`,
|
|
27
31
|
moduleSpecifier: `./${(0, utilities_1.dasherize)(item.name)}-panel/${(0, utilities_1.dasherize)(item.name)}-panel.component`
|
|
28
32
|
});
|
|
29
33
|
title !== null && title !== void 0 ? title : (title = (0, utilities_1.dasherize)(name).split('-').map(fragment => (0, utilities_1.capitalize)(fragment)).join(' '));
|
|
30
|
-
if (!(0,
|
|
31
|
-
throw new schematics_1.SchematicsException(`The item type '${
|
|
34
|
+
if (!(0, accordion_itme_kinds_1.IsAccordionItemKind)(kind)) {
|
|
35
|
+
throw new schematics_1.SchematicsException(`The item type '${kind}' for item '${name}' is not supported`);
|
|
36
|
+
}
|
|
37
|
+
const propertyList = (_g = item.propertyList) !== null && _g !== void 0 ? _g : [];
|
|
38
|
+
const identifier = (0, accordion_identifier_1.NormalizeAccordionIdentifier)(item.identifier);
|
|
39
|
+
if (identifier) {
|
|
40
|
+
(0, utilities_1.CoerceArrayItems)(propertyList, [identifier.property], (a, b) => a.name === b.name, true);
|
|
32
41
|
}
|
|
33
42
|
return Object.freeze({
|
|
43
|
+
propertyList: (0, ts_morph_1.NormalizeDataPropertyList)(propertyList),
|
|
44
|
+
upstream: (0, ts_morph_1.NormalizeUpstreamOptions)(item.upstream),
|
|
45
|
+
identifier,
|
|
34
46
|
title,
|
|
35
47
|
description,
|
|
36
48
|
name: (0, utilities_1.dasherize)(name),
|
|
37
|
-
|
|
49
|
+
kind,
|
|
38
50
|
modifiers,
|
|
39
51
|
permission,
|
|
40
|
-
importList:
|
|
52
|
+
importList: (0, ts_morph_1.NormalizeTypeImportList)(importList),
|
|
53
|
+
template,
|
|
54
|
+
handlebars: (0, load_handlebars_template_1.LoadHandlebarsTemplate)(template, (0, path_1.join)(__dirname, '..', 'schematics', 'accordion', 'templates')),
|
|
41
55
|
});
|
|
42
56
|
}
|
|
43
57
|
exports.NormalizeBaseAccordionItem = NormalizeBaseAccordionItem;
|
|
44
58
|
function IsDataGridAccordionItem(item) {
|
|
45
|
-
return item.
|
|
59
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.DataGrid;
|
|
46
60
|
}
|
|
47
61
|
exports.IsDataGridAccordionItem = IsDataGridAccordionItem;
|
|
48
62
|
function IsNormalizedDataGridAccordionItem(item) {
|
|
49
|
-
return item.
|
|
63
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.DataGrid;
|
|
50
64
|
}
|
|
51
65
|
exports.IsNormalizedDataGridAccordionItem = IsNormalizedDataGridAccordionItem;
|
|
52
66
|
function NormalizeDataGridAccordionItem(item) {
|
|
53
|
-
|
|
67
|
+
var _a, _b;
|
|
68
|
+
const dataGrid = item.dataGrid;
|
|
69
|
+
const base = NormalizeBaseAccordionItem(item);
|
|
70
|
+
(_a = dataGrid.propertyList) !== null && _a !== void 0 ? _a : (dataGrid.propertyList = []);
|
|
71
|
+
(0, utilities_1.CoerceArrayItems)(dataGrid.propertyList, base.propertyList, {
|
|
72
|
+
compareTo: (a, b) => a.name === b.name,
|
|
73
|
+
replace: true,
|
|
74
|
+
});
|
|
75
|
+
(_b = dataGrid.inCard) !== null && _b !== void 0 ? _b : (dataGrid.inCard = false);
|
|
76
|
+
return Object.freeze(Object.assign(Object.assign({}, base), { type: accordion_itme_kinds_1.AccordionItemKinds.DataGrid, dataGrid: (0, data_grid_options_1.NormalizeDataGridOptions)(dataGrid) }));
|
|
54
77
|
}
|
|
55
78
|
exports.NormalizeDataGridAccordionItem = NormalizeDataGridAccordionItem;
|
|
56
79
|
function IsSwitchAccordionItem(item) {
|
|
57
|
-
return item.
|
|
80
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.Switch;
|
|
58
81
|
}
|
|
59
82
|
exports.IsSwitchAccordionItem = IsSwitchAccordionItem;
|
|
60
83
|
function IsNormalizedSwitchAccordionItem(item) {
|
|
61
|
-
return item.
|
|
84
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.Switch;
|
|
62
85
|
}
|
|
63
86
|
exports.IsNormalizedSwitchAccordionItem = IsNormalizedSwitchAccordionItem;
|
|
64
87
|
function flattenItemList(itemList) {
|
|
@@ -93,17 +116,21 @@ function NormalizeSwitchAccordionItem(item) {
|
|
|
93
116
|
const base = NormalizeBaseAccordionItem(item);
|
|
94
117
|
const { name } = base;
|
|
95
118
|
const { switch: switchOptions } = item;
|
|
96
|
-
const { property, case: caseList, defaultCase } = switchOptions;
|
|
119
|
+
const { property, case: caseList = [], defaultCase } = switchOptions;
|
|
120
|
+
const normalizedProperty = (0, ts_morph_1.NormalizeDataProperty)(property, 'string');
|
|
97
121
|
const normalizeSwitch = Object.freeze({
|
|
98
|
-
property:
|
|
122
|
+
property: normalizedProperty,
|
|
99
123
|
case: Object.freeze(caseList.map((item) => ({
|
|
100
|
-
test: item.test,
|
|
124
|
+
test: normalizedProperty.name === 'string' ? `'${item.test}'` : item.test,
|
|
101
125
|
itemList: NormalizeAccordionItemList(item.itemList.map((item) => (Object.assign(Object.assign({}, item), { name: (0, utilities_1.CoercePrefix)((0, utilities_1.dasherize)(item.name), (0, utilities_1.dasherize)(name) + '-') })))),
|
|
102
126
|
}))),
|
|
103
|
-
defaultCase: defaultCase ? {
|
|
127
|
+
defaultCase: defaultCase && Object.keys(defaultCase).length ? {
|
|
104
128
|
itemList: NormalizeAccordionItemList(defaultCase.itemList.map((item) => (Object.assign(Object.assign({}, item), { name: (0, utilities_1.CoercePrefix)((0, utilities_1.dasherize)(item.name), (0, utilities_1.dasherize)(name) + '-') })))),
|
|
105
129
|
} : null,
|
|
106
130
|
});
|
|
131
|
+
if (normalizeSwitch.case.length === 0 && !normalizeSwitch.defaultCase) {
|
|
132
|
+
throw new schematics_1.SchematicsException(`The switch '${name}' has no cases or default case. At least one case or default case is required.`);
|
|
133
|
+
}
|
|
107
134
|
const importList = (_a = item.importList) !== null && _a !== void 0 ? _a : [];
|
|
108
135
|
const itemList = flattenItemListFromSwitch(normalizeSwitch);
|
|
109
136
|
for (const innerItem of itemList) {
|
|
@@ -113,47 +140,59 @@ function NormalizeSwitchAccordionItem(item) {
|
|
|
113
140
|
name: 'NgSwitch',
|
|
114
141
|
moduleSpecifier: '@angular/common',
|
|
115
142
|
});
|
|
116
|
-
|
|
143
|
+
if (normalizeSwitch.defaultCase) {
|
|
144
|
+
importList.push({
|
|
145
|
+
name: 'NgSwitchDefault',
|
|
146
|
+
moduleSpecifier: '@angular/common',
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
if (normalizeSwitch.case.length) {
|
|
150
|
+
importList.push({
|
|
151
|
+
name: 'NgSwitchCase',
|
|
152
|
+
moduleSpecifier: '@angular/common',
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return Object.freeze(Object.assign(Object.assign({}, base), { importList: (0, ts_morph_1.NormalizeTypeImportList)(importList), type: accordion_itme_kinds_1.AccordionItemKinds.Switch, switch: normalizeSwitch }));
|
|
117
156
|
}
|
|
118
157
|
exports.NormalizeSwitchAccordionItem = NormalizeSwitchAccordionItem;
|
|
119
158
|
function IsTableAccordionItem(item) {
|
|
120
|
-
return item.
|
|
159
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.Table;
|
|
121
160
|
}
|
|
122
161
|
exports.IsTableAccordionItem = IsTableAccordionItem;
|
|
123
162
|
function IsNormalizedTableAccordionItem(item) {
|
|
124
|
-
return item.
|
|
163
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.Table;
|
|
125
164
|
}
|
|
126
165
|
exports.IsNormalizedTableAccordionItem = IsNormalizedTableAccordionItem;
|
|
127
166
|
function NormalizeTableAccordionItem(item) {
|
|
128
167
|
const base = NormalizeBaseAccordionItem(item);
|
|
129
168
|
const { name } = base;
|
|
130
|
-
return Object.freeze(Object.assign(Object.assign({}, base), { type:
|
|
169
|
+
return Object.freeze(Object.assign(Object.assign({}, base), { type: accordion_itme_kinds_1.AccordionItemKinds.Table, table: (0, table_options_1.NormalizeTableOptions)(item.table, name) }));
|
|
131
170
|
}
|
|
132
171
|
exports.NormalizeTableAccordionItem = NormalizeTableAccordionItem;
|
|
133
172
|
function IsTreeTableAccordionItem(item) {
|
|
134
|
-
return item.
|
|
173
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.TreeTable;
|
|
135
174
|
}
|
|
136
175
|
exports.IsTreeTableAccordionItem = IsTreeTableAccordionItem;
|
|
137
176
|
function IsNormalizedTreeTableAccordionItem(item) {
|
|
138
|
-
return item.
|
|
177
|
+
return item.kind === accordion_itme_kinds_1.AccordionItemKinds.TreeTable;
|
|
139
178
|
}
|
|
140
179
|
exports.IsNormalizedTreeTableAccordionItem = IsNormalizedTreeTableAccordionItem;
|
|
141
180
|
function NormalizeTreeTableAccordionItem(item) {
|
|
142
181
|
const base = NormalizeBaseAccordionItem(item);
|
|
143
182
|
const { name } = base;
|
|
144
|
-
return Object.freeze(Object.assign(Object.assign({}, base), { type:
|
|
183
|
+
return Object.freeze(Object.assign(Object.assign({}, base), { type: accordion_itme_kinds_1.AccordionItemKinds.TreeTable, table: (0, tree_table_options_1.NormalizeTreeTableOptions)(item.table, name) }));
|
|
145
184
|
}
|
|
146
185
|
exports.NormalizeTreeTableAccordionItem = NormalizeTreeTableAccordionItem;
|
|
147
186
|
// endregion
|
|
148
187
|
function NormalizeAccordionItem(item) {
|
|
149
|
-
switch (item.
|
|
150
|
-
case
|
|
188
|
+
switch (item.kind) {
|
|
189
|
+
case accordion_itme_kinds_1.AccordionItemKinds.DataGrid:
|
|
151
190
|
return NormalizeDataGridAccordionItem(item);
|
|
152
|
-
case
|
|
191
|
+
case accordion_itme_kinds_1.AccordionItemKinds.Switch:
|
|
153
192
|
return NormalizeSwitchAccordionItem(item);
|
|
154
|
-
case
|
|
193
|
+
case accordion_itme_kinds_1.AccordionItemKinds.Table:
|
|
155
194
|
return NormalizeTableAccordionItem(item);
|
|
156
|
-
case
|
|
195
|
+
case accordion_itme_kinds_1.AccordionItemKinds.TreeTable:
|
|
157
196
|
return NormalizeTreeTableAccordionItem(item);
|
|
158
197
|
default:
|
|
159
198
|
return NormalizeBaseAccordionItem(item);
|