@rxap/schematic-angular 16.2.0-dev.9 → 16.3.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +400 -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 +2 -1
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/backend-types.d.ts +2 -1
- package/src/lib/backend-types.js +1 -0
- package/src/lib/backend-types.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.d.ts +4 -1
- package/src/lib/coerce-minimum-table-component.js +21 -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/column/options-table-column.d.ts +11 -0
- package/src/lib/table/column/options-table-column.js +23 -0
- package/src/lib/table/column/options-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 +14 -0
- package/src/lib/table/table-column-kind.js +22 -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 +39 -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 +3352 -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 +1953 -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 +1893 -149
- 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 -247
- 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 +1863 -188
- 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 +1412 -494
- 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 +1403 -480
- 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 +13 -5
- 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/backend.schema.json +2 -1
- 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 +1045 -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 +73 -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 +543 -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 +273 -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 +389 -259
- 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 +405 -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 +1060 -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 +944 -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 +757 -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 +939 -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 +1060 -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/option.schema.json +27 -0
- package/src/schematics/options-table-column.schema.json +33 -0
- 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 +155 -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 +32 -29
- 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 +173 -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 +1098 -290
- package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
- package/src/schematics/table/action/navigation-table-action/schema.json +172 -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 +173 -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 +163 -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 +1045 -213
- 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 +131 -207
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
- package/src/schematics/table/table-action/schema.json +102 -150
- package/src/schematics/table/table-action/template.schema.json +6 -6
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +87 -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 +1314 -421
- package/src/schematics/table/table-component/template.schema.json +6 -12
- package/src/schematics/table/table-header-button/schema.json +69 -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/options-table-column.hbs +26 -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 +96 -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 +1306 -408
- 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 +67 -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 +71 -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 +281 -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,87 @@
|
|
|
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
|
+
"data-source"
|
|
83
|
+
],
|
|
84
|
+
"default": "none"
|
|
85
|
+
},
|
|
86
|
+
"cssClass": {
|
|
87
|
+
"oneOf": [
|
|
88
|
+
{
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"name": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"name": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"general": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"project": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "Project name where the files should be generated"
|
|
124
|
+
},
|
|
125
|
+
"feature": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "Feature name where the files should be generated"
|
|
128
|
+
},
|
|
129
|
+
"overwrite": {
|
|
130
|
+
"anyOf": [
|
|
131
|
+
{
|
|
132
|
+
"type": "boolean"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"description": "Overwrite existing files",
|
|
142
|
+
"default": false
|
|
143
|
+
},
|
|
144
|
+
"overwriteHtml": {
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"default": false
|
|
147
|
+
},
|
|
148
|
+
"replace": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"default": false
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"tableAction": {
|
|
101
155
|
"type": "object",
|
|
102
156
|
"properties": {
|
|
103
157
|
"type": {
|
|
@@ -144,8 +198,7 @@
|
|
|
144
198
|
"description": "Value for the color input of the mat-button / mat-icon component"
|
|
145
199
|
},
|
|
146
200
|
"cssClass": {
|
|
147
|
-
"
|
|
148
|
-
"description": "Additional CSS classes added to the button element"
|
|
201
|
+
"$ref": "#/definitions/cssClass"
|
|
149
202
|
},
|
|
150
203
|
"options": {
|
|
151
204
|
"type": "object",
|
|
@@ -155,107 +208,6 @@
|
|
|
155
208
|
"required": [
|
|
156
209
|
"type"
|
|
157
210
|
]
|
|
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
211
|
}
|
|
260
212
|
}
|
|
261
213
|
}
|
|
@@ -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,52 @@
|
|
|
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"
|
|
93
|
+
{{#ifeq backend "data-source"}}
|
|
94
|
+
[dataSource]="dataSource"
|
|
95
|
+
{{/ifeq}}
|
|
86
96
|
rxapTableDataSource
|
|
87
97
|
[parameters]="parameters"
|
|
88
98
|
id="{{name}}"
|
|
89
|
-
{{#if
|
|
99
|
+
{{#if cssClass}}
|
|
100
|
+
{{> cssClass cssClass=cssClass}}
|
|
101
|
+
{{/if}}
|
|
102
|
+
{{#if hasPaginator}}
|
|
103
|
+
[paginator]="paginator"
|
|
104
|
+
{{/if}}
|
|
105
|
+
{{#if hasColumnWithFilter}}
|
|
106
|
+
rxap-filter-header-row
|
|
107
|
+
{{/if}}
|
|
108
|
+
{{#if sortable.enabled}}
|
|
109
|
+
matSort
|
|
110
|
+
{{#if sortable.default}}
|
|
111
|
+
{{#if sortable.default.active}}
|
|
112
|
+
matSortActive="{{sortable.default.active}}"
|
|
113
|
+
{{/if}}
|
|
114
|
+
{{#if sortable.default.direction}}
|
|
115
|
+
matSortDirection="{{sortable.default.direction}}"
|
|
116
|
+
{{/if}}
|
|
117
|
+
{{/if}}
|
|
118
|
+
{{/if}}
|
|
90
119
|
>
|
|
91
120
|
<!-- region columns -->
|
|
92
121
|
{{#if selectColumn}}
|
|
93
122
|
<!-- region select column -->
|
|
94
|
-
<ng-container matColumnDef="select" sticky>
|
|
95
|
-
|
|
123
|
+
<ng-container matColumnDef="select" [sticky]="true">
|
|
124
|
+
{{#if withHeader}}
|
|
125
|
+
<th class="drop-shadow-2xl" mat-header-cell rxap-checkbox-header-cell *matHeaderCellDef></th>
|
|
126
|
+
{{/if}}
|
|
96
127
|
<td
|
|
97
128
|
mat-cell
|
|
98
129
|
rxap-checkbox-cell
|
|
130
|
+
class="drop-shadow-2xl"
|
|
99
131
|
[element]="element"
|
|
100
132
|
*matCellDef="let element"
|
|
101
133
|
></td>
|
|
@@ -104,8 +136,9 @@
|
|
|
104
136
|
{{/if}}
|
|
105
137
|
{{#if actionList.length}}
|
|
106
138
|
<!-- region actions column -->
|
|
107
|
-
<ng-container matColumnDef="actions" stickyEnd>
|
|
108
|
-
|
|
139
|
+
<ng-container matColumnDef="actions" [stickyEnd]="true">
|
|
140
|
+
{{#if withHeader}}
|
|
141
|
+
<th class="drop-shadow-2xl" mat-header-cell *matHeaderCellDef>
|
|
109
142
|
{{#if selectColumn}}
|
|
110
143
|
<!-- region header actions -->
|
|
111
144
|
<div class="flex flex-row" *rxapSelectedRows="let selected">
|
|
@@ -114,10 +147,16 @@
|
|
|
114
147
|
<button
|
|
115
148
|
rxapTableRowHeaderAction="{{this.type}}"
|
|
116
149
|
mat-icon-button
|
|
117
|
-
{{#if this.color}}
|
|
118
|
-
|
|
150
|
+
{{#if this.color}}
|
|
151
|
+
color="{{this.color}}"
|
|
152
|
+
{{/if}}
|
|
153
|
+
{{#if this.cssClass}}
|
|
154
|
+
{{> cssClass cssClass=this.cssClass}}
|
|
155
|
+
{{/if}}
|
|
119
156
|
*ngIf="selected | rxapRowActionCheck:'{{this.type}}'"
|
|
120
|
-
{{#if this.permission}}
|
|
157
|
+
{{#if this.permission}}
|
|
158
|
+
rxapHasEnablePermission="{{this.permission}}"
|
|
159
|
+
{{/if}}
|
|
121
160
|
matTooltip
|
|
122
161
|
>
|
|
123
162
|
{{#if this.icon}}
|
|
@@ -138,18 +177,25 @@
|
|
|
138
177
|
<!-- endregion -->
|
|
139
178
|
{{/if}}
|
|
140
179
|
</th>
|
|
180
|
+
{{/if}}
|
|
141
181
|
|
|
142
|
-
<td mat-cell *matCellDef="let element">
|
|
182
|
+
<td class="drop-shadow-2xl" mat-cell *matCellDef="let element">
|
|
143
183
|
<div class="flex flex-row">
|
|
144
184
|
{{#each actionList}}
|
|
145
185
|
<button
|
|
146
186
|
rxapTableRowAction="{{this.type}}"
|
|
147
187
|
[element]="element"
|
|
148
|
-
{{#if this.color}}
|
|
149
|
-
|
|
188
|
+
{{#if this.color}}
|
|
189
|
+
color="{{this.color}}"
|
|
190
|
+
{{/if}}
|
|
191
|
+
{{#if this.cssClass}}
|
|
192
|
+
{{> cssClass cssClass=this.cssClass}}
|
|
193
|
+
{{/if}}
|
|
150
194
|
mat-icon-button
|
|
151
195
|
*ngIf="element | rxapRowActionCheck:'{{this.type}}'"
|
|
152
|
-
{{#if this.permission}}
|
|
196
|
+
{{#if this.permission}}
|
|
197
|
+
rxapHasEnablePermission="{{this.permission}}"
|
|
198
|
+
{{/if}}
|
|
153
199
|
matTooltip
|
|
154
200
|
>
|
|
155
201
|
{{#if this.icon}}
|
|
@@ -172,30 +218,35 @@
|
|
|
172
218
|
|
|
173
219
|
{{/if}}
|
|
174
220
|
{{#each columnList}}
|
|
175
|
-
{{ indent (compile this.handlebars column=this) 10 }}
|
|
221
|
+
{{ indent (compile this.handlebars column=this table=../. prefix=../prefix) 10 }}
|
|
176
222
|
{{/each}}
|
|
177
223
|
|
|
178
224
|
<!-- endregion -->
|
|
179
225
|
{{#if hasColumnWithFilter}}
|
|
180
226
|
<!-- region filter columns -->
|
|
181
227
|
{{#if selectColumn}}
|
|
182
|
-
<ng-container matColumnDef="filter_select" sticky>
|
|
183
|
-
<th mat-header-cell *matHeaderCellDef></th>
|
|
228
|
+
<ng-container matColumnDef="filter_select" [sticky]="true">
|
|
229
|
+
<th mat-header-cell *matHeaderCellDef class="drop-shadow-2xl"></th>
|
|
184
230
|
</ng-container>
|
|
185
231
|
{{/if}}
|
|
186
232
|
{{#if actionList.length}}
|
|
187
|
-
<ng-container matColumnDef="filter_actions" stickyEnd>
|
|
188
|
-
<th mat-header-cell *matHeaderCellDef></th>
|
|
233
|
+
<ng-container matColumnDef="filter_actions" [stickyEnd]="true">
|
|
234
|
+
<th mat-header-cell *matHeaderCellDef class="drop-shadow-2xl"></th>
|
|
189
235
|
</ng-container>
|
|
190
236
|
{{/if}}
|
|
191
237
|
{{#each columnList}}
|
|
192
|
-
|
|
193
|
-
<th mat-header-cell
|
|
238
|
+
{{#> matColumnDef column=this columnName=this.filterName}}
|
|
239
|
+
<th mat-header-cell
|
|
240
|
+
*matHeaderCellDef
|
|
241
|
+
{{#if column.filterCssClass}}
|
|
242
|
+
{{> cssClass cssClass=column.filterCssClass}}
|
|
243
|
+
{{/if}}
|
|
244
|
+
>
|
|
194
245
|
{{#if this.hasFilter}}
|
|
195
|
-
{{ indent (compile this.filterControl.handlebars column=this control=this.filterControl parentControlContainer=true) 14 }}
|
|
246
|
+
{{ indent (compile this.filterControl.handlebars column=this table=../. control=this.filterControl parentControlContainer=true) 14 }}
|
|
196
247
|
{{/if}}
|
|
197
248
|
</th>
|
|
198
|
-
|
|
249
|
+
{{/matColumnDef}}
|
|
199
250
|
{{/each}}
|
|
200
251
|
|
|
201
252
|
<!-- endregion -->
|
|
@@ -206,10 +257,12 @@
|
|
|
206
257
|
></tr>
|
|
207
258
|
{{/if}}
|
|
208
259
|
|
|
260
|
+
{{#if withHeader}}
|
|
209
261
|
<tr
|
|
210
262
|
mat-header-row
|
|
211
263
|
*matHeaderRowDef="rxapTableColumns.displayColumns"
|
|
212
264
|
></tr>
|
|
265
|
+
{{/if}}
|
|
213
266
|
|
|
214
267
|
<tr
|
|
215
268
|
[@rowsAnimation]=""
|
|
@@ -226,7 +279,7 @@
|
|
|
226
279
|
</table>
|
|
227
280
|
</div>
|
|
228
281
|
</mat-card-content>
|
|
229
|
-
|
|
282
|
+
{{#if hasPaginator}}
|
|
230
283
|
<mat-card-footer>
|
|
231
284
|
<mat-paginator
|
|
232
285
|
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
@@ -236,6 +289,7 @@
|
|
|
236
289
|
#paginator="matPaginator"
|
|
237
290
|
></mat-paginator>
|
|
238
291
|
</mat-card-footer>
|
|
292
|
+
{{/if}}
|
|
239
293
|
</mat-card>
|
|
240
294
|
</div>
|
|
241
295
|
</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)({
|