@rxap/schematic-angular 16.2.0-dev.9 → 16.2.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.
- package/CHANGELOG.md +394 -0
- package/README.md +1 -1
- package/collection.json +20 -0
- package/package.json +19 -20
- package/src/lib/accordion-header.js +8 -5
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +8 -4
- package/src/lib/accordion-identifier.js +4 -3
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +13 -6
- package/src/lib/accordion-item.js +42 -15
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/angular-options.d.ts +2 -2
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.js +4 -2
- 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 +16 -3
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +16 -5
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +1 -5
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/component-options.d.ts +10 -0
- package/src/lib/component-options.js +14 -0
- package/src/lib/component-options.js.map +1 -0
- package/src/lib/css-class.d.ts +9 -0
- package/src/lib/css-class.js +52 -0
- package/src/lib/css-class.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +45 -7
- package/src/lib/data-grid-item.js +102 -6
- 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 +10 -5
- package/src/lib/data-grid-options.js +42 -15
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/abstract-control.d.ts +31 -0
- package/src/lib/form/abstract-control.js +48 -0
- package/src/lib/form/abstract-control.js.map +1 -0
- package/src/lib/form/array/base-form-array.d.ts +18 -0
- package/src/lib/form/array/base-form-array.js +41 -0
- package/src/lib/form/array/base-form-array.js.map +1 -0
- package/src/lib/form/array/form-array-kind.d.ts +3 -0
- package/src/lib/form/array/form-array-kind.js +8 -0
- package/src/lib/form/array/form-array-kind.js.map +1 -0
- package/src/lib/form/array/form-array.d.ts +12 -0
- package/src/lib/form/array/form-array.js +18 -0
- package/src/lib/form/array/form-array.js.map +1 -0
- package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
- package/src/lib/form/coerce-control-component-imports.js +18 -0
- package/src/lib/form/coerce-control-component-imports.js.map +1 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +9 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js +58 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
- package/src/lib/form/control/base-form-control.d.ts +15 -0
- package/src/lib/form/control/base-form-control.js +19 -0
- package/src/lib/form/control/base-form-control.js.map +1 -0
- package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
- package/src/lib/form/control/checkbox-form-control.js +23 -0
- package/src/lib/form/control/checkbox-form-control.js.map +1 -0
- package/src/lib/form/control/form-control-kind.d.ts +10 -0
- package/src/lib/form/control/form-control-kind.js +15 -0
- package/src/lib/form/control/form-control-kind.js.map +1 -0
- package/src/lib/form/control/form-control.d.ts +20 -0
- package/src/lib/form/control/form-control.js +46 -0
- package/src/lib/form/control/form-control.js.map +1 -0
- package/src/lib/form/control/form-field-form-control.d.ts +39 -0
- package/src/lib/form/control/form-field-form-control.js +87 -0
- package/src/lib/form/control/form-field-form-control.js.map +1 -0
- package/src/lib/form/control/input-form-control.d.ts +15 -0
- package/src/lib/form/control/input-form-control.js +75 -0
- package/src/lib/form/control/input-form-control.js.map +1 -0
- package/src/lib/form/control/select-form-control.d.ts +22 -0
- package/src/lib/form/control/select-form-control.js +47 -0
- package/src/lib/form/control/select-form-control.js.map +1 -0
- package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
- package/src/lib/form/control/slide-toggle-form-control.js +23 -0
- package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
- package/src/lib/form/control/table-select-form-control.d.ts +46 -0
- package/src/lib/form/control/table-select-form-control.js +82 -0
- package/src/lib/form/control/table-select-form-control.js.map +1 -0
- package/src/lib/form/control/textarea-form-control.d.ts +22 -0
- package/src/lib/form/control/textarea-form-control.js +52 -0
- package/src/lib/form/control/textarea-form-control.js.map +1 -0
- package/src/lib/form/control.d.ts +8 -0
- package/src/lib/form/control.js +38 -0
- package/src/lib/form/control.js.map +1 -0
- package/src/lib/form/generate-form-template.d.ts +2 -2
- package/src/lib/form/group/base-form-group.d.ts +17 -0
- package/src/lib/form/group/base-form-group.js +20 -0
- package/src/lib/form/group/base-form-group.js.map +1 -0
- package/src/lib/form/group/form-group-kind.d.ts +3 -0
- package/src/lib/form/group/form-group-kind.js +8 -0
- package/src/lib/form/group/form-group-kind.js.map +1 -0
- package/src/lib/form/group/form-group.d.ts +12 -0
- package/src/lib/form/group/form-group.js +18 -0
- package/src/lib/form/group/form-group.js.map +1 -0
- package/src/lib/load-handlebars-template.d.ts +3 -0
- package/src/lib/load-handlebars-template.js +13 -1
- package/src/lib/load-handlebars-template.js.map +1 -1
- package/src/lib/minimum-table-component-options.d.ts +1 -1
- package/src/lib/minimum-table-component-options.js +22 -15
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +22 -4
- package/src/lib/minimum-table-options.js +40 -6
- 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/route-component.d.ts +16 -0
- package/src/lib/route-component.js +15 -0
- package/src/lib/route-component.js.map +1 -0
- package/src/lib/table/column/base-table-column.d.ts +61 -0
- package/src/lib/table/column/base-table-column.js +309 -0
- package/src/lib/table/column/base-table-column.js.map +1 -0
- package/src/lib/table/column/boolean-table-column.d.ts +8 -0
- package/src/lib/table/column/boolean-table-column.js +10 -0
- package/src/lib/table/column/boolean-table-column.js.map +1 -0
- package/src/lib/table/column/custom-table-column.d.ts +11 -0
- package/src/lib/table/column/custom-table-column.js +11 -0
- package/src/lib/table/column/custom-table-column.js.map +1 -0
- package/src/lib/table/column/date-table-column.d.ts +11 -0
- package/src/lib/table/column/date-table-column.js +11 -0
- package/src/lib/table/column/date-table-column.js.map +1 -0
- package/src/lib/table/sortable.d.ts +16 -0
- package/src/lib/table/sortable.js +27 -0
- package/src/lib/table/sortable.js.map +1 -0
- package/src/lib/table/table-column-kind.d.ts +13 -0
- package/src/lib/table/table-column-kind.js +21 -0
- package/src/lib/table/table-column-kind.js.map +1 -0
- package/src/lib/table/table-column-modifier.d.ts +12 -0
- package/src/lib/table/table-column-modifier.js +20 -0
- package/src/lib/table/table-column-modifier.js.map +1 -0
- package/src/lib/table/table-column-pipe.d.ts +4 -0
- package/src/lib/table/table-column-pipe.js +3 -0
- package/src/lib/table/table-column-pipe.js.map +1 -0
- package/src/lib/table/table-column-sticky.d.ts +5 -0
- package/src/lib/table/table-column-sticky.js +13 -0
- package/src/lib/table/table-column-sticky.js.map +1 -0
- package/src/lib/table/table-column.d.ts +6 -0
- package/src/lib/table/table-column.js +36 -0
- package/src/lib/table/table-column.js.map +1 -0
- package/src/lib/table/table-filter-column-rule.js +5 -4
- package/src/lib/table/table-filter-column-rule.js.map +1 -1
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-options.d.ts +4 -3
- package/src/lib/table-options.js +23 -3
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/table-row-action.d.ts +4 -2
- package/src/lib/table-row-action.js +8 -7
- package/src/lib/table-row-action.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +4 -3
- package/src/lib/tree-table-options.js +40 -3
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +1 -1
- 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 +3319 -0
- package/src/schematic-input.schema.json +579 -0
- package/src/schematics/abstract-control.schema.json +78 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +16 -7
- package/src/schematics/accordion/accordion-component/index.d.ts +6 -2
- package/src/schematics/accordion/accordion-component/index.js +72 -42
- 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 +1920 -217
- package/src/schematics/accordion/accordion-component/template.schema.json +23 -20
- package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
- package/src/schematics/accordion/accordion-item-component/index.js +79 -51
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +1861 -150
- package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -9
- 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 +20 -38
- 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.json +1107 -251
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +6 -17
- 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 +14 -6
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1836 -194
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +7 -71
- 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 +5 -52
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +1338 -453
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +6 -32
- 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 +21 -80
- 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.json +1329 -439
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +7 -33
- package/src/schematics/accordion/templates/accordion-header.hbs +7 -3
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +12 -4
- package/src/schematics/accordion-identifier.schema.json +24 -0
- package/src/schematics/accordion-item.schema.json +47 -30
- package/src/schematics/angular.schema.json +11 -3
- package/src/schematics/autocomplete-table-select-form-control.schema.json +97 -0
- package/src/schematics/base-accordion-item.schema.json +52 -0
- package/src/schematics/base-form-array.schema.json +45 -0
- package/src/schematics/base-form-control.schema.json +27 -0
- package/src/schematics/base-form-group.schema.json +42 -0
- package/src/schematics/base-table-column.schema.json +81 -0
- package/src/schematics/boolean-table-column.schema.json +24 -0
- package/src/schematics/button.schema.json +1 -1
- package/src/schematics/checkbox-form-control.schema.json +31 -0
- package/src/schematics/component-table-column.schema.json +24 -0
- package/src/schematics/component.schema.json +16 -0
- package/src/schematics/control.schema.json +26 -0
- package/src/schematics/copy-to-clipboard-table-column.schema.json +24 -0
- package/src/schematics/css-class.schema.json +34 -0
- package/src/schematics/custom-table-column.schema.json +27 -0
- package/src/schematics/data-grid-accordion-item.schema.json +35 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +15 -8
- package/src/schematics/data-grid-component/index.d.ts +2 -3
- package/src/schematics/data-grid-component/index.js +87 -64
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +1041 -215
- package/src/schematics/data-grid-component/template.schema.json +6 -9
- 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 +39 -12
- package/src/schematics/data-grid.schema.json +26 -4
- package/src/schematics/date-table-column.schema.json +27 -0
- package/src/schematics/dialog-component/schema.json +72 -155
- package/src/schematics/dialog-component/template.schema.json +3 -6
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +286 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +542 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +1 -1
- package/src/schematics/form/control/input-form-control/index.js +4 -4
- 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 -2
- package/src/schematics/form/control/input-form-control/schema.json +272 -250
- package/src/schematics/form/control/input-form-control/template.schema.json +19 -9
- package/src/schematics/form/control/select-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/select-form-control/index.js +23 -16
- 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 +363 -237
- package/src/schematics/form/control/select-form-control/template.schema.json +19 -9
- package/src/schematics/form/control/table-select-form-control/index.d.ts +3 -3
- package/src/schematics/form/control/table-select-form-control/index.js +210 -155
- 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 -3
- package/src/schematics/form/control/table-select-form-control/schema.json +404 -285
- package/src/schematics/form/control/table-select-form-control/template.schema.json +16 -55
- package/src/schematics/form/form-array/index.d.ts +9 -0
- package/src/schematics/form/form-array/index.js +54 -0
- package/src/schematics/form/form-array/index.js.map +1 -0
- package/src/schematics/form/form-array/schema.d.ts +4 -0
- package/src/schematics/form/form-array/schema.json +1056 -0
- package/src/schematics/form/form-array/template.schema.json +33 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.html.hbs +4 -1
- package/src/schematics/form/form-component/index.d.ts +4 -4
- package/src/schematics/form/form-component/index.js +19 -22
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +4 -2
- package/src/schematics/form/form-component/schema.json +940 -199
- package/src/schematics/form/form-component/template.schema.json +6 -9
- package/src/schematics/form/form-control/index.d.ts +3 -5
- package/src/schematics/form/form-control/index.js +10 -20
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.d.ts +2 -4
- package/src/schematics/form/form-control/schema.json +753 -176
- package/src/schematics/form/form-control/template.schema.json +7 -11
- package/src/schematics/form/form-definition/index.d.ts +2 -2
- package/src/schematics/form/form-definition/index.js +28 -15
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.d.ts +2 -2
- package/src/schematics/form/form-definition/schema.json +935 -200
- package/src/schematics/form/form-definition/template.schema.json +6 -9
- package/src/schematics/form/form-group/index.d.ts +9 -0
- package/src/schematics/form/form-group/index.js +54 -0
- package/src/schematics/form/form-group/index.js.map +1 -0
- package/src/schematics/form/form-group/schema.d.ts +4 -0
- package/src/schematics/form/form-group/schema.json +1056 -0
- package/src/schematics/form/form-group/template.schema.json +33 -0
- package/src/schematics/form/templates/autocomplete-table-select-form-control.hbs +34 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +4 -2
- package/src/schematics/form/templates/default-form-array.hbs +29 -0
- package/src/schematics/form/templates/default-form-group.hbs +15 -0
- package/src/schematics/form/templates/input-form-control.hbs +14 -7
- package/src/schematics/form/templates/mat-form-field.hbs +6 -6
- package/src/schematics/form/templates/select-form-control.hbs +18 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +3 -1
- package/src/schematics/form/templates/table-select-form-control.hbs +23 -16
- package/src/schematics/form/templates/textarea-form-control.hbs +25 -0
- package/src/schematics/form-array.schema.json +42 -0
- package/src/schematics/form-component.schema.json +9 -3
- package/src/schematics/form-control.schema.json +70 -54
- package/src/schematics/form-definition.schema.json +3 -3
- package/src/schematics/form-field.schema.json +6 -0
- package/src/schematics/form-group.schema.json +42 -0
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/icon-table-column.schema.json +24 -0
- package/src/schematics/input-form-control.schema.json +19 -6
- package/src/schematics/link-table-column.schema.json +24 -0
- package/src/schematics/minimum-table.schema.json +59 -5
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +14 -4
- package/src/schematics/route-component/files/component/__componentName__.component.html.hbs +1 -0
- package/src/schematics/route-component/index.d.ts +8 -0
- package/src/schematics/route-component/index.js +109 -0
- package/src/schematics/route-component/index.js.map +1 -0
- package/src/schematics/route-component/schema.d.ts +5 -0
- package/src/schematics/route-component/schema.json +154 -0
- package/src/schematics/route-component/template.schema.json +20 -0
- package/src/schematics/route-component.schema.json +35 -0
- package/src/schematics/select-form-control.schema.json +28 -6
- package/src/schematics/slide-toggle-form-control.schema.json +31 -0
- package/src/schematics/spinner-table-column.schema.json +24 -0
- package/src/schematics/switch-accordion-item.schema.json +83 -0
- package/src/schematics/table/action/dialog-table-action/index.js +1 -0
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/schema.json +172 -218
- package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/index.js +6 -5
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/schema.json +1107 -303
- package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
- package/src/schematics/table/action/navigation-table-action/schema.json +171 -217
- package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/open-api-table-action/schema.json +172 -218
- package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/operation-table-action/index.js +2 -1
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/schema.json +162 -208
- package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/schema.json +1043 -215
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -24
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +130 -207
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
- package/src/schematics/table/table-action/schema.json +101 -150
- package/src/schematics/table/table-action/template.schema.json +6 -6
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +84 -33
- package/src/schematics/table/table-component/index.d.ts +0 -5
- package/src/schematics/table/table-component/index.js +21 -33
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +1285 -425
- package/src/schematics/table/table-component/template.schema.json +6 -12
- package/src/schematics/table/table-header-button/schema.json +68 -148
- package/src/schematics/table/table-header-button/template.schema.json +6 -6
- package/src/schematics/table/templates/boolean-table-column.hbs +18 -5
- package/src/schematics/table/templates/component-table-column.hbs +19 -6
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +18 -5
- package/src/schematics/table/templates/custom-table-column.hbs +23 -0
- package/src/schematics/table/templates/date-table-column.hbs +18 -5
- package/src/schematics/table/templates/default-table-column.hbs +20 -5
- package/src/schematics/table/templates/icon-table-column.hbs +18 -5
- package/src/schematics/table/templates/link-table-column.hbs +18 -5
- package/src/schematics/table/templates/mat-column-def.hbs +3 -0
- package/src/schematics/table/templates/spinner-table-column.hbs +27 -0
- package/src/schematics/table/templates/tree-table-column.hbs +21 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +93 -50
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +30 -9
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +1279 -414
- package/src/schematics/table/tree-table-component/template.schema.json +6 -12
- package/src/schematics/table-accordion-item.schema.json +42 -0
- package/src/schematics/table-action.schema.json +7 -3
- package/src/schematics/table-column.schema.json +61 -47
- package/src/schematics/table-select-form-control.schema.json +103 -0
- package/src/schematics/table.schema.json +6 -2
- package/src/schematics/templates/css-class.hbs +1 -0
- package/src/schematics/templates/pipe.hbs +4 -0
- package/src/schematics/textarea-form-control.schema.json +44 -0
- package/src/schematics/tree-component/index.js +2 -1
- package/src/schematics/tree-component/index.js.map +1 -1
- package/src/schematics/tree-component/schema.json +70 -62
- package/src/schematics/tree-component/template.schema.json +7 -2
- package/src/schematics/tree-table-accordion-item.schema.json +42 -0
- package/src/schematics/tree-table-column.schema.json +24 -0
- package/src/schematics/tree-table.schema.json +5 -4
- package/src/schematics/upstream.schema.json +62 -23
- package/src/schematics/value.schema.json +26 -0
- package/src/template.schema.json +275 -0
- package/src/lib/form-component-control.d.ts +0 -8
- package/src/lib/form-component-control.js +0 -15
- package/src/lib/form-component-control.js.map +0 -1
- package/src/lib/form-control.d.ts +0 -125
- package/src/lib/form-control.js +0 -303
- package/src/lib/form-control.js.map +0 -1
- package/src/lib/form-definition-control.d.ts +0 -5
- package/src/lib/form-definition-control.js +0 -30
- package/src/lib/form-definition-control.js.map +0 -1
- package/src/lib/merge-with-column-list.d.ts +0 -3
- package/src/lib/merge-with-column-list.js +0 -18
- package/src/lib/merge-with-column-list.js.map +0 -1
- package/src/lib/table-column.d.ts +0 -62
- package/src/lib/table-column.js +0 -313
- package/src/lib/table-column.js.map +0 -1
|
@@ -3,45 +3,27 @@
|
|
|
3
3
|
"$id": "table-action-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/tableAction"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"tableName": {
|
|
15
|
+
"alias": "table",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the table action"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"definitions": {
|
|
23
|
+
"angular": {
|
|
6
24
|
"allOf": [
|
|
7
25
|
{
|
|
8
|
-
"
|
|
9
|
-
"properties": {
|
|
10
|
-
"project": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Project name where the files should be generated"
|
|
13
|
-
},
|
|
14
|
-
"feature": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Feature name where the files should be generated"
|
|
17
|
-
},
|
|
18
|
-
"overwrite": {
|
|
19
|
-
"anyOf": [
|
|
20
|
-
{
|
|
21
|
-
"type": "boolean"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "array",
|
|
25
|
-
"items": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"description": "Overwrite existing files",
|
|
31
|
-
"default": false
|
|
32
|
-
},
|
|
33
|
-
"overwriteHtml": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"default": false
|
|
36
|
-
},
|
|
37
|
-
"replace": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"required": [
|
|
43
|
-
"project"
|
|
44
|
-
]
|
|
26
|
+
"$ref": "#/definitions/general"
|
|
45
27
|
},
|
|
46
28
|
{
|
|
47
29
|
"type": "object",
|
|
@@ -64,15 +46,7 @@
|
|
|
64
46
|
"type": "string"
|
|
65
47
|
},
|
|
66
48
|
"backend": {
|
|
67
|
-
"
|
|
68
|
-
"description": "The backend that should be used to handel data",
|
|
69
|
-
"enum": [
|
|
70
|
-
"none",
|
|
71
|
-
"nestjs",
|
|
72
|
-
"open-api",
|
|
73
|
-
"local"
|
|
74
|
-
],
|
|
75
|
-
"default": "none"
|
|
49
|
+
"$ref": "#/definitions/backend"
|
|
76
50
|
},
|
|
77
51
|
"directory": {
|
|
78
52
|
"type": "string",
|
|
@@ -97,7 +71,86 @@
|
|
|
97
71
|
}
|
|
98
72
|
]
|
|
99
73
|
},
|
|
100
|
-
{
|
|
74
|
+
"backend": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "The backend that should be used to handel data",
|
|
77
|
+
"enum": [
|
|
78
|
+
"none",
|
|
79
|
+
"nestjs",
|
|
80
|
+
"open-api",
|
|
81
|
+
"local"
|
|
82
|
+
],
|
|
83
|
+
"default": "none"
|
|
84
|
+
},
|
|
85
|
+
"cssClass": {
|
|
86
|
+
"oneOf": [
|
|
87
|
+
{
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "object",
|
|
98
|
+
"properties": {
|
|
99
|
+
"name": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"name": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"general": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"project": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "Project name where the files should be generated"
|
|
123
|
+
},
|
|
124
|
+
"feature": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Feature name where the files should be generated"
|
|
127
|
+
},
|
|
128
|
+
"overwrite": {
|
|
129
|
+
"anyOf": [
|
|
130
|
+
{
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"description": "Overwrite existing files",
|
|
141
|
+
"default": false
|
|
142
|
+
},
|
|
143
|
+
"overwriteHtml": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"default": false
|
|
146
|
+
},
|
|
147
|
+
"replace": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"default": false
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"tableAction": {
|
|
101
154
|
"type": "object",
|
|
102
155
|
"properties": {
|
|
103
156
|
"type": {
|
|
@@ -144,8 +197,7 @@
|
|
|
144
197
|
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
145
198
|
},
|
|
146
199
|
"cssClass": {
|
|
147
|
-
"
|
|
148
|
-
"description": "Additional CSS classes added to the button element"
|
|
200
|
+
"$ref": "#/definitions/cssClass"
|
|
149
201
|
},
|
|
150
202
|
"options": {
|
|
151
203
|
"type": "object",
|
|
@@ -155,107 +207,6 @@
|
|
|
155
207
|
"required": [
|
|
156
208
|
"type"
|
|
157
209
|
]
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"type": "object",
|
|
161
|
-
"properties": {
|
|
162
|
-
"tableName": {
|
|
163
|
-
"alias": "table",
|
|
164
|
-
"type": "string",
|
|
165
|
-
"description": "The name of the table action"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"definitions": {
|
|
171
|
-
"type": {
|
|
172
|
-
"oneOf": [
|
|
173
|
-
{
|
|
174
|
-
"type": "string"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"type": "object",
|
|
178
|
-
"properties": {
|
|
179
|
-
"name": {
|
|
180
|
-
"type": "string"
|
|
181
|
-
},
|
|
182
|
-
"isTypeOnly": {
|
|
183
|
-
"type": "boolean"
|
|
184
|
-
},
|
|
185
|
-
"moduleSpecifier": {
|
|
186
|
-
"type": "string"
|
|
187
|
-
},
|
|
188
|
-
"namedImport": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
},
|
|
191
|
-
"namespaceImport": {
|
|
192
|
-
"type": "string"
|
|
193
|
-
},
|
|
194
|
-
"defaultImport": {
|
|
195
|
-
"type": "string"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"required": [
|
|
199
|
-
"name"
|
|
200
|
-
]
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
"property": {
|
|
205
|
-
"oneOf": [
|
|
206
|
-
{
|
|
207
|
-
"type": "string"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"type": "object",
|
|
211
|
-
"properties": {
|
|
212
|
-
"name": {
|
|
213
|
-
"type": "string"
|
|
214
|
-
},
|
|
215
|
-
"type": {
|
|
216
|
-
"$ref": "#/definitions/type"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"required": [
|
|
220
|
-
"name"
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"definitions": {
|
|
225
|
-
"type": {
|
|
226
|
-
"oneOf": [
|
|
227
|
-
{
|
|
228
|
-
"type": "string"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"type": "object",
|
|
232
|
-
"properties": {
|
|
233
|
-
"name": {
|
|
234
|
-
"type": "string"
|
|
235
|
-
},
|
|
236
|
-
"isTypeOnly": {
|
|
237
|
-
"type": "boolean"
|
|
238
|
-
},
|
|
239
|
-
"moduleSpecifier": {
|
|
240
|
-
"type": "string"
|
|
241
|
-
},
|
|
242
|
-
"namedImport": {
|
|
243
|
-
"type": "string"
|
|
244
|
-
},
|
|
245
|
-
"namespaceImport": {
|
|
246
|
-
"type": "string"
|
|
247
|
-
},
|
|
248
|
-
"defaultImport": {
|
|
249
|
-
"type": "string"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"required": [
|
|
253
|
-
"name"
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
]
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
210
|
}
|
|
260
211
|
}
|
|
261
212
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"$id": "table-action-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "#/definitions/tableAction"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"type": "object",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"definitions": {
|
|
23
|
-
"
|
|
24
|
-
"$ref": "../../
|
|
23
|
+
"angular": {
|
|
24
|
+
"$ref": "../../angular.schema.json"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
27
|
-
"$ref": "../../
|
|
26
|
+
"tableAction": {
|
|
27
|
+
"$ref": "../../table-action.schema.json"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs
CHANGED
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
matTooltip
|
|
25
25
|
[disabled]="tableDataSourceDirective.hasError$ | async"
|
|
26
26
|
[rxapTableHeaderButton]="tableDataSourceDirective"
|
|
27
|
-
{{#if headerButton.permission}}
|
|
27
|
+
{{#if headerButton.permission}}
|
|
28
|
+
rxapHasEnablePermission="{{headerButton.permission}}"
|
|
29
|
+
{{/if}}
|
|
28
30
|
>
|
|
29
31
|
{{#if headerButton.icon}}
|
|
30
32
|
<mat-icon>{{headerButton.icon}}</mat-icon>
|
|
@@ -48,10 +50,19 @@
|
|
|
48
50
|
{{/if}}
|
|
49
51
|
{{#each columnList}}
|
|
50
52
|
<rxap-table-column-option name="{{this.name}}"
|
|
51
|
-
{{
|
|
52
|
-
|
|
53
|
-
{{
|
|
54
|
-
{{
|
|
53
|
+
{{#if this.active}}
|
|
54
|
+
active
|
|
55
|
+
{{/if}}
|
|
56
|
+
{{#if this.hidden}}
|
|
57
|
+
hidden
|
|
58
|
+
{{/if}}
|
|
59
|
+
{{#if this.inactive}}
|
|
60
|
+
inactive
|
|
61
|
+
{{/if}}
|
|
62
|
+
{{#if this.show}}
|
|
63
|
+
show
|
|
64
|
+
{{/if}}
|
|
65
|
+
>
|
|
55
66
|
<ng-container i18n>{{this.title}}</ng-container>
|
|
56
67
|
</rxap-table-column-option>
|
|
57
68
|
{{/each}}
|
|
@@ -63,7 +74,7 @@
|
|
|
63
74
|
{{#if hasShowArchivedSlide}}
|
|
64
75
|
<mat-divider></mat-divider>
|
|
65
76
|
<span mat-menu-item>
|
|
66
|
-
<rxap-table-show-archived-slide [paginator]="paginator"></rxap-table-show-archived-slide>
|
|
77
|
+
<rxap-table-show-archived-slide{{#if hasPaginator}} [paginator]="paginator"{{/if}}></rxap-table-show-archived-slide>
|
|
67
78
|
</span>
|
|
68
79
|
{{/if}}
|
|
69
80
|
</rxap-table-column-menu>
|
|
@@ -71,31 +82,49 @@
|
|
|
71
82
|
|
|
72
83
|
<mat-card-content>
|
|
73
84
|
<rxap-data-source-error
|
|
74
|
-
[loading]="tableDataSourceDirective.loading$"
|
|
75
|
-
[error]="tableDataSourceDirective.dataSource?.error$"
|
|
76
85
|
*ngIf="tableDataSourceDirective.hasError$ | async"
|
|
77
|
-
[
|
|
86
|
+
[dataSourceLike]="tableDataSourceDirective">
|
|
78
87
|
</rxap-data-source-error>
|
|
79
88
|
<div class="table-scroll-container mt-4 overflow-x-auto overscroll-auto">
|
|
80
89
|
<table
|
|
81
90
|
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
82
|
-
[paginator]="paginator"
|
|
83
|
-
matSort
|
|
84
91
|
mat-table
|
|
85
92
|
#tableDataSourceDirective="rxapTableDataSource"
|
|
86
93
|
rxapTableDataSource
|
|
87
94
|
[parameters]="parameters"
|
|
88
95
|
id="{{name}}"
|
|
89
|
-
{{#if
|
|
96
|
+
{{#if cssClass}}
|
|
97
|
+
{{> cssClass cssClass=cssClass}}
|
|
98
|
+
{{/if}}
|
|
99
|
+
{{#if hasPaginator}}
|
|
100
|
+
[paginator]="paginator"
|
|
101
|
+
{{/if}}
|
|
102
|
+
{{#if hasColumnWithFilter}}
|
|
103
|
+
rxap-filter-header-row
|
|
104
|
+
{{/if}}
|
|
105
|
+
{{#if sortable.enabled}}
|
|
106
|
+
matSort
|
|
107
|
+
{{#if sortable.default}}
|
|
108
|
+
{{#if sortable.default.active}}
|
|
109
|
+
matSortActive="{{sortable.default.active}}"
|
|
110
|
+
{{/if}}
|
|
111
|
+
{{#if sortable.default.direction}}
|
|
112
|
+
matSortDirection="{{sortable.default.direction}}"
|
|
113
|
+
{{/if}}
|
|
114
|
+
{{/if}}
|
|
115
|
+
{{/if}}
|
|
90
116
|
>
|
|
91
117
|
<!-- region columns -->
|
|
92
118
|
{{#if selectColumn}}
|
|
93
119
|
<!-- region select column -->
|
|
94
|
-
<ng-container matColumnDef="select" sticky>
|
|
95
|
-
|
|
120
|
+
<ng-container matColumnDef="select" [sticky]="true">
|
|
121
|
+
{{#if withHeader}}
|
|
122
|
+
<th class="drop-shadow-2xl" mat-header-cell rxap-checkbox-header-cell *matHeaderCellDef></th>
|
|
123
|
+
{{/if}}
|
|
96
124
|
<td
|
|
97
125
|
mat-cell
|
|
98
126
|
rxap-checkbox-cell
|
|
127
|
+
class="drop-shadow-2xl"
|
|
99
128
|
[element]="element"
|
|
100
129
|
*matCellDef="let element"
|
|
101
130
|
></td>
|
|
@@ -104,8 +133,9 @@
|
|
|
104
133
|
{{/if}}
|
|
105
134
|
{{#if actionList.length}}
|
|
106
135
|
<!-- region actions column -->
|
|
107
|
-
<ng-container matColumnDef="actions" stickyEnd>
|
|
108
|
-
|
|
136
|
+
<ng-container matColumnDef="actions" [stickyEnd]="true">
|
|
137
|
+
{{#if withHeader}}
|
|
138
|
+
<th class="drop-shadow-2xl" mat-header-cell *matHeaderCellDef>
|
|
109
139
|
{{#if selectColumn}}
|
|
110
140
|
<!-- region header actions -->
|
|
111
141
|
<div class="flex flex-row" *rxapSelectedRows="let selected">
|
|
@@ -114,10 +144,16 @@
|
|
|
114
144
|
<button
|
|
115
145
|
rxapTableRowHeaderAction="{{this.type}}"
|
|
116
146
|
mat-icon-button
|
|
117
|
-
{{#if this.color}}
|
|
118
|
-
|
|
147
|
+
{{#if this.color}}
|
|
148
|
+
color="{{this.color}}"
|
|
149
|
+
{{/if}}
|
|
150
|
+
{{#if this.cssClass}}
|
|
151
|
+
{{> cssClass cssClass=this.cssClass}}
|
|
152
|
+
{{/if}}
|
|
119
153
|
*ngIf="selected | rxapRowActionCheck:'{{this.type}}'"
|
|
120
|
-
{{#if this.permission}}
|
|
154
|
+
{{#if this.permission}}
|
|
155
|
+
rxapHasEnablePermission="{{this.permission}}"
|
|
156
|
+
{{/if}}
|
|
121
157
|
matTooltip
|
|
122
158
|
>
|
|
123
159
|
{{#if this.icon}}
|
|
@@ -138,18 +174,25 @@
|
|
|
138
174
|
<!-- endregion -->
|
|
139
175
|
{{/if}}
|
|
140
176
|
</th>
|
|
177
|
+
{{/if}}
|
|
141
178
|
|
|
142
|
-
<td mat-cell *matCellDef="let element">
|
|
179
|
+
<td class="drop-shadow-2xl" mat-cell *matCellDef="let element">
|
|
143
180
|
<div class="flex flex-row">
|
|
144
181
|
{{#each actionList}}
|
|
145
182
|
<button
|
|
146
183
|
rxapTableRowAction="{{this.type}}"
|
|
147
184
|
[element]="element"
|
|
148
|
-
{{#if this.color}}
|
|
149
|
-
|
|
185
|
+
{{#if this.color}}
|
|
186
|
+
color="{{this.color}}"
|
|
187
|
+
{{/if}}
|
|
188
|
+
{{#if this.cssClass}}
|
|
189
|
+
{{> cssClass cssClass=this.cssClass}}
|
|
190
|
+
{{/if}}
|
|
150
191
|
mat-icon-button
|
|
151
192
|
*ngIf="element | rxapRowActionCheck:'{{this.type}}'"
|
|
152
|
-
{{#if this.permission}}
|
|
193
|
+
{{#if this.permission}}
|
|
194
|
+
rxapHasEnablePermission="{{this.permission}}"
|
|
195
|
+
{{/if}}
|
|
153
196
|
matTooltip
|
|
154
197
|
>
|
|
155
198
|
{{#if this.icon}}
|
|
@@ -172,30 +215,35 @@
|
|
|
172
215
|
|
|
173
216
|
{{/if}}
|
|
174
217
|
{{#each columnList}}
|
|
175
|
-
{{ indent (compile this.handlebars column=this) 10 }}
|
|
218
|
+
{{ indent (compile this.handlebars column=this table=../. prefix=../prefix) 10 }}
|
|
176
219
|
{{/each}}
|
|
177
220
|
|
|
178
221
|
<!-- endregion -->
|
|
179
222
|
{{#if hasColumnWithFilter}}
|
|
180
223
|
<!-- region filter columns -->
|
|
181
224
|
{{#if selectColumn}}
|
|
182
|
-
<ng-container matColumnDef="filter_select" sticky>
|
|
183
|
-
<th mat-header-cell *matHeaderCellDef></th>
|
|
225
|
+
<ng-container matColumnDef="filter_select" [sticky]="true">
|
|
226
|
+
<th mat-header-cell *matHeaderCellDef class="drop-shadow-2xl"></th>
|
|
184
227
|
</ng-container>
|
|
185
228
|
{{/if}}
|
|
186
229
|
{{#if actionList.length}}
|
|
187
|
-
<ng-container matColumnDef="filter_actions" stickyEnd>
|
|
188
|
-
<th mat-header-cell *matHeaderCellDef></th>
|
|
230
|
+
<ng-container matColumnDef="filter_actions" [stickyEnd]="true">
|
|
231
|
+
<th mat-header-cell *matHeaderCellDef class="drop-shadow-2xl"></th>
|
|
189
232
|
</ng-container>
|
|
190
233
|
{{/if}}
|
|
191
234
|
{{#each columnList}}
|
|
192
|
-
|
|
193
|
-
<th mat-header-cell
|
|
235
|
+
{{#> matColumnDef column=this columnName=this.filterName}}
|
|
236
|
+
<th mat-header-cell
|
|
237
|
+
*matHeaderCellDef
|
|
238
|
+
{{#if column.filterCssClass}}
|
|
239
|
+
{{> cssClass cssClass=column.filterCssClass}}
|
|
240
|
+
{{/if}}
|
|
241
|
+
>
|
|
194
242
|
{{#if this.hasFilter}}
|
|
195
|
-
{{ indent (compile this.filterControl.handlebars column=this control=this.filterControl parentControlContainer=true) 14 }}
|
|
243
|
+
{{ indent (compile this.filterControl.handlebars column=this table=../. control=this.filterControl parentControlContainer=true) 14 }}
|
|
196
244
|
{{/if}}
|
|
197
245
|
</th>
|
|
198
|
-
|
|
246
|
+
{{/matColumnDef}}
|
|
199
247
|
{{/each}}
|
|
200
248
|
|
|
201
249
|
<!-- endregion -->
|
|
@@ -206,10 +254,12 @@
|
|
|
206
254
|
></tr>
|
|
207
255
|
{{/if}}
|
|
208
256
|
|
|
257
|
+
{{#if withHeader}}
|
|
209
258
|
<tr
|
|
210
259
|
mat-header-row
|
|
211
260
|
*matHeaderRowDef="rxapTableColumns.displayColumns"
|
|
212
261
|
></tr>
|
|
262
|
+
{{/if}}
|
|
213
263
|
|
|
214
264
|
<tr
|
|
215
265
|
[@rowsAnimation]=""
|
|
@@ -226,7 +276,7 @@
|
|
|
226
276
|
</table>
|
|
227
277
|
</div>
|
|
228
278
|
</mat-card-content>
|
|
229
|
-
|
|
279
|
+
{{#if hasPaginator}}
|
|
230
280
|
<mat-card-footer>
|
|
231
281
|
<mat-paginator
|
|
232
282
|
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
@@ -236,6 +286,7 @@
|
|
|
236
286
|
#paginator="matPaginator"
|
|
237
287
|
></mat-paginator>
|
|
238
288
|
</mat-card-footer>
|
|
289
|
+
{{/if}}
|
|
239
290
|
</mat-card>
|
|
240
291
|
</div>
|
|
241
292
|
</div>
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { FormDefinitionControl, GetPageOperationProperty } from '@rxap/schematics-ts-morph';
|
|
3
|
-
import { NormalizedDataProperty } from '@rxap/ts-morph';
|
|
4
2
|
import { Normalized } from '@rxap/utilities';
|
|
5
3
|
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
6
|
-
import { NormalizedTableColumn } from '../../../lib/table-column';
|
|
7
4
|
import { NormalizedTableOptions } from '../../../lib/table-options';
|
|
8
5
|
import { TableComponentOptions } from './schema';
|
|
9
6
|
export interface NormalizedTableComponentOptions extends Readonly<Normalized<Omit<TableComponentOptions, keyof NormalizedTableOptions>> & NormalizedTableOptions & NormalizedAngularOptions> {
|
|
@@ -11,6 +8,4 @@ export interface NormalizedTableComponentOptions extends Readonly<Normalized<Omi
|
|
|
11
8
|
readonly controllerName: string;
|
|
12
9
|
}
|
|
13
10
|
export declare function NormalizeTableComponentOptions(options: Readonly<TableComponentOptions>): NormalizedTableComponentOptions;
|
|
14
|
-
export declare function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList: ReadonlyArray<Pick<NormalizedTableColumn, 'name' | 'type' | 'propertyPath'>>, propertyList?: ReadonlyArray<NormalizedDataProperty>): GetPageOperationProperty[];
|
|
15
|
-
export declare function TableColumnToFormControl(column: NormalizedTableColumn): FormDefinitionControl;
|
|
16
11
|
export default function (options: TableComponentOptions): () => Rule;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NormalizeTableComponentOptions = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
6
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
7
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
8
8
|
const utilities_1 = require("@rxap/utilities");
|
|
9
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
9
10
|
const ts_morph_2 = require("ts-morph");
|
|
10
11
|
const angular_options_1 = require("../../../lib/angular-options");
|
|
11
12
|
const backend_types_1 = require("../../../lib/backend-types");
|
|
12
13
|
const coerce_minimum_table_component_1 = require("../../../lib/coerce-minimum-table-component");
|
|
14
|
+
const load_handlebars_template_1 = require("../../../lib/load-handlebars-template");
|
|
13
15
|
const minimum_table_component_options_1 = require("../../../lib/minimum-table-component-options");
|
|
14
16
|
const table_options_1 = require("../../../lib/table-options");
|
|
15
17
|
const table_filter_column_rule_1 = require("../../../lib/table/table-filter-column-rule");
|
|
@@ -27,35 +29,6 @@ function NormalizeTableComponentOptions(options) {
|
|
|
27
29
|
return Object.freeze(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTableOptions));
|
|
28
30
|
}
|
|
29
31
|
exports.NormalizeTableComponentOptions = NormalizeTableComponentOptions;
|
|
30
|
-
function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList, propertyList = []) {
|
|
31
|
-
const list = [];
|
|
32
|
-
for (const column of columnList) {
|
|
33
|
-
list.push({
|
|
34
|
-
name: column.name,
|
|
35
|
-
type: column.type,
|
|
36
|
-
source: column.propertyPath,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
for (const property of propertyList) {
|
|
40
|
-
if (!list.find((p) => p.source === property.name) && !list.find(p => p.name === property.name)) {
|
|
41
|
-
list.push({
|
|
42
|
-
name: property.name,
|
|
43
|
-
type: property.type,
|
|
44
|
-
source: property.name,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return list;
|
|
49
|
-
}
|
|
50
|
-
exports.TableColumnListAndPropertyListToGetPageOperationPropertyList = TableColumnListAndPropertyListToGetPageOperationPropertyList;
|
|
51
|
-
function TableColumnToFormControl(column) {
|
|
52
|
-
var _a, _b;
|
|
53
|
-
return {
|
|
54
|
-
name: column.name,
|
|
55
|
-
type: (_b = (_a = column.type) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : undefined,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
exports.TableColumnToFormControl = TableColumnToFormControl;
|
|
59
32
|
function printOptions(options) {
|
|
60
33
|
(0, angular_options_1.PrintAngularOptions)('table-component', options);
|
|
61
34
|
if (options.columnList.length) {
|
|
@@ -87,6 +60,14 @@ function componentRule(normalizedOptions) {
|
|
|
87
60
|
template: {
|
|
88
61
|
options: templateOptions,
|
|
89
62
|
},
|
|
63
|
+
handlebars: {
|
|
64
|
+
partials: {
|
|
65
|
+
matFormField: (0, load_handlebars_template_1.LoadMatFormFieldHandlebarsTemplate)(),
|
|
66
|
+
pipe: (0, load_handlebars_template_1.LoadPipeHandlebarsTemplate)(),
|
|
67
|
+
cssClass: (0, load_handlebars_template_1.LoadCssClassHandlebarsTemplate)(),
|
|
68
|
+
matColumnDef: (0, load_handlebars_template_1.LoadMatColumnDefHandlebarsTemplate)(),
|
|
69
|
+
}
|
|
70
|
+
},
|
|
90
71
|
tsMorphTransform: (project, [componentSourceFile]) => {
|
|
91
72
|
if (tableMethod) {
|
|
92
73
|
(0, schematics_ts_morph_1.AddComponentProvider)(componentSourceFile, {
|
|
@@ -147,8 +128,11 @@ function openApiBackendRule(normalizedOptions) {
|
|
|
147
128
|
]);
|
|
148
129
|
}
|
|
149
130
|
function nestjsBackendRule(normalizedOptions) {
|
|
150
|
-
const { project, feature, shared,
|
|
151
|
-
const operationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-page',
|
|
131
|
+
const { project, feature, shared, propertyList, context, nestModule, componentName, directory, overwrite, scope, controllerName, upstream, identifier, rowId, } = normalizedOptions;
|
|
132
|
+
const operationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-page', (0, workspace_utilities_1.BuildNestControllerName)({
|
|
133
|
+
controllerName,
|
|
134
|
+
nestModule
|
|
135
|
+
}));
|
|
152
136
|
return (0, schematics_1.chain)([
|
|
153
137
|
() => console.log(`Coerce the getPage operation for the table`),
|
|
154
138
|
(0, schematics_ts_morph_1.CoerceGetPageOperation)({
|
|
@@ -157,8 +141,12 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
157
141
|
project,
|
|
158
142
|
feature,
|
|
159
143
|
shared,
|
|
160
|
-
propertyList
|
|
144
|
+
propertyList,
|
|
161
145
|
context,
|
|
146
|
+
overwrite,
|
|
147
|
+
upstream,
|
|
148
|
+
idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
|
|
149
|
+
rowId,
|
|
162
150
|
}),
|
|
163
151
|
() => console.log('Add the open api methods to the table component providers'),
|
|
164
152
|
(0, schematics_ts_morph_1.CoerceComponentRule)({
|