@rxap/schematic-angular 19.2.0-dev.0 → 19.2.0-dev.2
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 +15 -0
- package/package.json +6 -6
- package/src/index.d.ts +16 -6
- package/src/index.js +18 -6
- package/src/index.js.map +1 -1
- package/src/lib/accordion/item/base-accordion-item.js +1 -2
- package/src/lib/accordion/item/base-accordion-item.js.map +1 -1
- package/src/lib/accordion/item/switch-accordion-item.d.ts +1 -1
- package/src/lib/accordion/item/switch-accordion-item.js +2 -3
- package/src/lib/accordion/item/switch-accordion-item.js.map +1 -1
- package/src/lib/angular-options.d.ts +2 -3
- package/src/lib/angular-options.js +7 -51
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/backend/nest-js-backend-options.d.ts +8 -2
- package/src/lib/backend/nest-js-backend-options.js +2 -2
- package/src/lib/backend/nest-js-backend-options.js.map +1 -1
- package/src/lib/build-tree-table-ge-children-operation-id.d.ts +3 -0
- package/src/lib/build-tree-table-ge-children-operation-id.js +8 -0
- package/src/lib/build-tree-table-ge-children-operation-id.js.map +1 -0
- package/src/lib/build-tree-table-get-root-operation-id.d.ts +3 -0
- package/src/lib/build-tree-table-get-root-operation-id.js +8 -0
- package/src/lib/build-tree-table-get-root-operation-id.js.map +1 -0
- package/src/lib/coerce-type-alias.d.ts +2 -0
- package/src/lib/coerce-type-alias.js +11 -0
- package/src/lib/coerce-type-alias.js.map +1 -0
- package/src/lib/data-grid-item.js +3 -3
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/form/abstract-control-to-data-property.d.ts +4 -0
- package/src/lib/form/abstract-control-to-data-property.js +14 -0
- package/src/lib/form/abstract-control-to-data-property.js.map +1 -0
- package/src/lib/form/abstract-control.d.ts +0 -2
- package/src/lib/form/abstract-control.js +1 -13
- package/src/lib/form/abstract-control.js.map +1 -1
- package/src/lib/form/array/base-form-array.js +2 -1
- package/src/lib/form/array/base-form-array.js.map +1 -1
- package/src/lib/form/control/autocomplete-form-control.d.ts +2 -2
- package/src/lib/form/control/autocomplete-form-control.js +1 -2
- package/src/lib/form/control/autocomplete-form-control.js.map +1 -1
- package/src/lib/form/control/select-form-control.d.ts +2 -2
- package/src/lib/form/control/select-form-control.js.map +1 -1
- package/src/lib/form/control/table-select-form-control.d.ts +2 -2
- package/src/lib/form/control/table-select-form-control.js +4 -5
- package/src/lib/form/control/table-select-form-control.js.map +1 -1
- package/src/lib/form/control-to-dto-class-property.d.ts +3 -0
- package/src/lib/form/control-to-dto-class-property.js +13 -0
- package/src/lib/form/control-to-dto-class-property.js.map +1 -0
- package/src/lib/form/control.d.ts +0 -2
- package/src/lib/form/control.js +0 -10
- package/src/lib/form/control.js.map +1 -1
- package/src/lib/get-item-options.d.ts +10 -0
- package/src/lib/get-item-options.js +12 -0
- package/src/lib/get-item-options.js.map +1 -0
- package/src/lib/normalize-minimum-table-component-options.d.ts +9 -0
- package/src/lib/normalize-minimum-table-component-options.js +23 -0
- package/src/lib/normalize-minimum-table-component-options.js.map +1 -0
- package/src/lib/pipe-option-to-type-import.d.ts +3 -0
- package/src/lib/pipe-option-to-type-import.js +14 -0
- package/src/lib/pipe-option-to-type-import.js.map +1 -0
- package/src/lib/pipe-option.d.ts +0 -1
- package/src/lib/pipe-option.js +0 -11
- package/src/lib/pipe-option.js.map +1 -1
- package/src/lib/print-angular-options.d.ts +2 -0
- package/src/lib/print-angular-options.js +54 -0
- package/src/lib/print-angular-options.js.map +1 -0
- package/src/lib/{assert-table-component-exists.js → rules/assert-table-component-exists.js} +1 -2
- package/src/lib/rules/assert-table-component-exists.js.map +1 -0
- package/src/lib/rules/table-action-rule.d.ts +3 -0
- package/src/lib/rules/table-action-rule.js +152 -0
- package/src/lib/rules/table-action-rule.js.map +1 -0
- package/src/lib/rules/table-cell-component-rule.d.ts +3 -0
- package/src/lib/rules/table-cell-component-rule.js +40 -0
- package/src/lib/rules/table-cell-component-rule.js.map +1 -0
- package/src/lib/{table → rules}/table-filter-column-rule.js +2 -2
- package/src/lib/{table → rules}/table-filter-column-rule.js.map +1 -1
- package/src/lib/rules/table-header-button-rule.d.ts +3 -0
- package/src/lib/rules/table-header-button-rule.js +45 -0
- package/src/lib/rules/table-header-button-rule.js.map +1 -0
- package/src/lib/rules/table-interface-rule.d.ts +13 -0
- package/src/lib/rules/table-interface-rule.js +115 -0
- package/src/lib/rules/table-interface-rule.js.map +1 -0
- package/src/lib/{use-pick-from-table-interface-as-form-type.d.ts → rules/use-pick-from-table-interface-as-form-type-rule.d.ts} +2 -2
- package/src/lib/{use-pick-from-table-interface-as-form-type.js → rules/use-pick-from-table-interface-as-form-type-rule.js} +3 -3
- package/src/lib/rules/use-pick-from-table-interface-as-form-type-rule.js.map +1 -0
- package/src/lib/table/column/base-table-column.js +1 -2
- package/src/lib/table/column/base-table-column.js.map +1 -1
- package/src/lib/table/table-column.js +4 -4
- package/src/lib/table/table-column.js.map +1 -1
- package/src/lib/test/workspace.d.ts +34 -0
- package/src/lib/test/workspace.js +104 -0
- package/src/lib/test/workspace.js.map +1 -0
- package/src/schematics/accordion/accordion-component/__snapshots__/index.spec.ts.snap +35 -0
- package/src/schematics/accordion/accordion-component/__snapshots__/normalize-accordion-component-options.spec.ts.snap +177 -0
- package/src/schematics/accordion/accordion-component/backend/backend-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/backend/backend-rule.js +18 -0
- package/src/schematics/accordion/accordion-component/backend/backend-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/backend/local-backend-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/backend/local-backend-rule.js +96 -0
- package/src/schematics/accordion/accordion-component/backend/local-backend-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/backend/nestjs-backend-rule.d.ts +3 -0
- package/src/schematics/accordion/accordion-component/backend/nestjs-backend-rule.js +43 -0
- package/src/schematics/accordion/accordion-component/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/backend/open-api-data-source-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/backend/open-api-data-source-rule.js +92 -0
- package/src/schematics/accordion/accordion-component/backend/open-api-data-source-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/build-get-operation-id.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/build-get-operation-id.js +9 -0
- package/src/schematics/accordion/accordion-component/build-get-operation-id.js.map +1 -0
- package/src/schematics/accordion/accordion-component/build-property-list.d.ts +3 -0
- package/src/schematics/accordion/accordion-component/build-property-list.js +37 -0
- package/src/schematics/accordion/accordion-component/build-property-list.js.map +1 -0
- package/src/{lib → schematics/accordion/accordion-component}/coerce-accordion-component.d.ts +1 -1
- package/src/schematics/accordion/accordion-component/coerce-accordion-component.js.map +1 -0
- package/src/schematics/accordion/accordion-component/component-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/component-rule.js +40 -0
- package/src/schematics/accordion/accordion-component/component-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/has-missing-panel-components.d.ts +3 -0
- package/src/schematics/accordion/accordion-component/has-missing-panel-components.js +18 -0
- package/src/schematics/accordion/accordion-component/has-missing-panel-components.js.map +1 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +2 -9
- package/src/schematics/accordion/accordion-component/index.js +14 -397
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/item-component-rule.d.ts +3 -0
- package/src/schematics/accordion/accordion-component/item-component-rule.js +21 -0
- package/src/schematics/accordion/accordion-component/item-component-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/item-list-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/item-list-rule.js +13 -0
- package/src/schematics/accordion/accordion-component/item-list-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-component/normalize-accordion-component-options.d.ts +8 -0
- package/src/schematics/accordion/accordion-component/normalize-accordion-component-options.js +30 -0
- package/src/schematics/accordion/accordion-component/normalize-accordion-component-options.js.map +1 -0
- package/src/schematics/accordion/accordion-component/stories-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-component/stories-rule.js +56 -0
- package/src/schematics/accordion/accordion-component/stories-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/build-get-operation-id.d.ts +2 -0
- package/src/schematics/accordion/accordion-item-component/build-get-operation-id.js +10 -0
- package/src/schematics/accordion/accordion-item-component/build-get-operation-id.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +3 -21
- package/src/schematics/accordion/accordion-item-component/index.js +6 -346
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/item-rule.d.ts +3 -0
- package/src/schematics/accordion/accordion-item-component/item-rule.js +37 -0
- package/src/schematics/accordion/accordion-item-component/item-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/normalize-accordion-item-standalone-component-options.d.ts +9 -0
- package/src/schematics/accordion/accordion-item-component/normalize-accordion-item-standalone-component-options.js +46 -0
- package/src/schematics/accordion/accordion-item-component/normalize-accordion-item-standalone-component-options.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-backend-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-backend-rule.js +18 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-backend-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-local-data-source-rule.d.ts +2 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-local-data-source-rule.js +105 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-local-data-source-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-open-api-data-source-rule.d.ts +3 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-open-api-data-source-rule.js +75 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-open-api-data-source-rule.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-rule.d.ts +3 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-rule.js +111 -0
- package/src/schematics/accordion/accordion-item-component/panel-item/panel-item-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/__snapshots__/normalize-accordion-item-data-grid-component-options.spec.ts.snap +197 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/backend/backend-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/backend/backend-rule.js +15 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/backend/backend-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/backend/nestjs-backend-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/backend/nestjs-backend-rule.js +59 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/component-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/component-rule.js +87 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/component-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/data-grid-form-mode-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/data-grid-form-mode-rule.js +38 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/data-grid-form-mode-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/data-grid-mode-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/data-grid-mode-rule.js +13 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/data-grid-mode-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +0 -10
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +8 -166
- 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/normalize-accordion-item-data-grid-component-options.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/normalize-accordion-item-data-grid-component-options.js +9 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/normalize-accordion-item-data-grid-component-options.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/__snapshots__/normalize-accordion-item-nested-component-options.spec.ts.snap +119 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/accordion-component-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/accordion-component-rule.js +20 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/accordion-component-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/index.d.ts +0 -10
- package/src/schematics/accordion/item/accordion-item-nested-component/index.js +4 -23
- package/src/schematics/accordion/item/accordion-item-nested-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-nested-component/normalize-accordion-item-nested-component-options.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/normalize-accordion-item-nested-component-options.js +9 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/normalize-accordion-item-nested-component-options.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/__snapshots__/normalize-accordion-item-switch-component-options.spec.ts.snap +254 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/case/case-rule.d.ts +3 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/case/case-rule.js +41 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/case/case-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +0 -10
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +5 -43
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/normalize-accordion-item-switch-component-options.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/normalize-accordion-item-switch-component-options.js +9 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/normalize-accordion-item-switch-component-options.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/__snapshots__/normalize-accordion-item-table-component-options.spec.ts.snap +465 -0
- package/src/schematics/accordion/item/accordion-item-table-component/component-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-table-component/component-rule.js +26 -0
- package/src/schematics/accordion/item/accordion-item-table-component/component-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +0 -10
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +6 -46
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/normalize-accordion-item-table-component-options.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-table-component/normalize-accordion-item-table-component-options.js +9 -0
- package/src/schematics/accordion/item/accordion-item-table-component/normalize-accordion-item-table-component-options.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/table-component-schematic-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-table-component/table-component-schematic-rule.js +22 -0
- package/src/schematics/accordion/item/accordion-item-table-component/table-component-schematic-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/__snapshots__/normalize-accordion-item-tree-table-component-options.spec.ts.snap +685 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/backend/backend-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/backend/backend-rule.js +15 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/backend/backend-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/backend/nestjs-backend-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/backend/nestjs-backend-rule.js +61 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/component-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/component-rule.js +27 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/component-rule.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +0 -10
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +8 -109
- 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/normalize-accordion-item-tree-table-component-options.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/normalize-accordion-item-tree-table-component-options.js +9 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/normalize-accordion-item-tree-table-component-options.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/tree-table-component-schematic-rule.d.ts +2 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/tree-table-component-schematic-rule.js +20 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/tree-table-component-schematic-rule.js.map +1 -0
- package/src/schematics/data-grid-component/__snapshots__/index.spec.ts.snap +34 -0
- package/src/schematics/data-grid-component/__snapshots__/normalize-data-grid-component-options.spec.ts.snap +309 -0
- package/src/schematics/data-grid-component/backend/backend-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/backend/backend-rule.js +18 -0
- package/src/schematics/data-grid-component/backend/backend-rule.js.map +1 -0
- package/src/schematics/data-grid-component/backend/local-backend-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/backend/local-backend-rule.js +33 -0
- package/src/schematics/data-grid-component/backend/local-backend-rule.js.map +1 -0
- package/src/schematics/data-grid-component/backend/nestjs-backend-rule.d.ts +3 -0
- package/src/schematics/data-grid-component/backend/nestjs-backend-rule.js +65 -0
- package/src/schematics/data-grid-component/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/data-grid-component/backend/nestjs-form-mode-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/backend/nestjs-form-mode-rule.js +107 -0
- package/src/schematics/data-grid-component/backend/nestjs-form-mode-rule.js.map +1 -0
- package/src/schematics/data-grid-component/backend/nestjs-mode-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/backend/nestjs-mode-rule.js +13 -0
- package/src/schematics/data-grid-component/backend/nestjs-mode-rule.js.map +1 -0
- package/src/schematics/data-grid-component/build-get-operation-id.d.ts +2 -0
- package/src/schematics/data-grid-component/build-get-operation-id.js +9 -0
- package/src/schematics/data-grid-component/build-get-operation-id.js.map +1 -0
- package/src/schematics/data-grid-component/build-submit-operation-id.d.ts +2 -0
- package/src/schematics/data-grid-component/build-submit-operation-id.js +9 -0
- package/src/schematics/data-grid-component/build-submit-operation-id.js.map +1 -0
- package/src/schematics/data-grid-component/component-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/component-rule.js +83 -0
- package/src/schematics/data-grid-component/component-rule.js.map +1 -0
- package/src/schematics/data-grid-component/form-mode-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/form-mode-rule.js +77 -0
- package/src/schematics/data-grid-component/form-mode-rule.js.map +1 -0
- package/src/schematics/data-grid-component/index.d.ts +1 -13
- package/src/schematics/data-grid-component/index.js +10 -369
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/mode-rule.d.ts +2 -0
- package/src/schematics/data-grid-component/mode-rule.js +13 -0
- package/src/schematics/data-grid-component/mode-rule.js.map +1 -0
- package/src/schematics/data-grid-component/normalize-data-grid-component-options.d.ts +11 -0
- package/src/schematics/data-grid-component/normalize-data-grid-component-options.js +20 -0
- package/src/schematics/data-grid-component/normalize-data-grid-component-options.js.map +1 -0
- package/src/schematics/dialog-component/__snapshots__/index.spec.ts.snap +83 -0
- package/src/schematics/dialog-component/__snapshots__/normalize-dialog-component-options.spec.ts.snap +57 -0
- package/src/schematics/dialog-component/index.js +4 -16
- package/src/schematics/dialog-component/index.js.map +1 -1
- package/src/schematics/dialog-component/normalize-dialog-component-options.d.ts +7 -0
- package/src/schematics/dialog-component/normalize-dialog-component-options.js +16 -0
- package/src/schematics/dialog-component/normalize-dialog-component-options.js.map +1 -0
- package/src/schematics/form/control/autocomplete-form-control/__snapshots__/index.spec.ts.snap +38 -0
- package/src/schematics/form/control/autocomplete-form-control/__snapshots__/normalize-autocomplete-form-control-options.spec.ts.snap +395 -0
- package/src/schematics/form/control/autocomplete-form-control/autocomplete-options-rule.d.ts +2 -0
- package/src/schematics/form/control/autocomplete-form-control/autocomplete-options-rule.js +31 -0
- package/src/schematics/form/control/autocomplete-form-control/autocomplete-options-rule.js.map +1 -0
- package/src/schematics/form/control/autocomplete-form-control/autocomplete-resolve-rule.d.ts +2 -0
- package/src/schematics/form/control/autocomplete-form-control/autocomplete-resolve-rule.js +31 -0
- package/src/schematics/form/control/autocomplete-form-control/autocomplete-resolve-rule.js.map +1 -0
- package/src/schematics/form/control/autocomplete-form-control/coerce-use-autocomplete-options-method.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-form-control/coerce-use-autocomplete-options-method.js +43 -0
- package/src/schematics/form/control/autocomplete-form-control/coerce-use-autocomplete-options-method.js.map +1 -0
- package/src/schematics/form/control/autocomplete-form-control/coerce-use-autocomplete-resolve-method.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-form-control/coerce-use-autocomplete-resolve-method.js +43 -0
- package/src/schematics/form/control/autocomplete-form-control/coerce-use-autocomplete-resolve-method.js.map +1 -0
- package/src/schematics/form/control/autocomplete-form-control/index.d.ts +0 -6
- package/src/schematics/form/control/autocomplete-form-control/index.js +8 -132
- package/src/schematics/form/control/autocomplete-form-control/index.js.map +1 -1
- package/src/schematics/form/control/autocomplete-form-control/normalize-autocomplete-form-control-options.d.ts +7 -0
- package/src/schematics/form/control/autocomplete-form-control/normalize-autocomplete-form-control-options.js +11 -0
- package/src/schematics/form/control/autocomplete-form-control/normalize-autocomplete-form-control-options.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/__snapshots__/index.spec.ts.snap +37 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/__snapshots__/normalize-table-select-form-control-options.spec.ts.snap +505 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/autocomplete-table-select-options-rule.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/autocomplete-table-select-options-rule.js +122 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/autocomplete-table-select-options-rule.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/autocomplete-table-select-resolve-rule.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/autocomplete-table-select-resolve-rule.js +122 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/autocomplete-table-select-resolve-rule.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-dto-suffix.d.ts +2 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-dto-suffix.js +9 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-dto-suffix.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-id.d.ts +2 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-id.js +9 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-id.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-name.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-name.js +8 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-name.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-path.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-path.js +8 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/build-options-operation-path.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +1 -11
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +10 -398
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/autocomplete-table-select-form-control/normalize-table-select-form-control-options.d.ts +7 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/normalize-table-select-form-control-options.js +11 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/normalize-table-select-form-control-options.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/table-column-to-table-select-column.d.ts +4 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/table-column-to-table-select-column.js +20 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/table-column-to-table-select-column.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/table-select-data-source-rule.d.ts +3 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/table-select-data-source-rule.js +139 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/table-select-data-source-rule.js.map +1 -0
- package/src/schematics/form/control/date-form-control/__snapshots__/index.spec.ts.snap +36 -0
- package/src/schematics/form/control/date-form-control/__snapshots__/normalize-date-form-control-options.spec.ts.snap +273 -0
- package/src/schematics/form/control/date-form-control/index.d.ts +0 -6
- package/src/schematics/form/control/date-form-control/index.js +4 -9
- package/src/schematics/form/control/date-form-control/index.js.map +1 -1
- package/src/schematics/form/control/date-form-control/normalize-date-form-control-options.d.ts +7 -0
- package/src/schematics/form/control/date-form-control/normalize-date-form-control-options.js +9 -0
- package/src/schematics/form/control/date-form-control/normalize-date-form-control-options.js.map +1 -0
- package/src/schematics/form/control/input-form-control/__snapshots__/index.spec.ts.snap +36 -0
- package/src/schematics/form/control/input-form-control/__snapshots__/normalize-input-form-control-options.spec.ts.snap +261 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +0 -6
- package/src/schematics/form/control/input-form-control/index.js +4 -9
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/normalize-input-form-control-options.d.ts +7 -0
- package/src/schematics/form/control/input-form-control/normalize-input-form-control-options.js +9 -0
- package/src/schematics/form/control/input-form-control/normalize-input-form-control-options.js.map +1 -0
- package/src/schematics/form/control/select-form-control/__snapshots__/index.spec.ts.snap +38 -0
- package/src/schematics/form/control/select-form-control/__snapshots__/normalize-select-form-control-options.spec.ts.snap +288 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +1 -8
- package/src/schematics/form/control/select-form-control/index.js +6 -217
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/normalize-select-form-control-options.d.ts +7 -0
- package/src/schematics/form/control/select-form-control/normalize-select-form-control-options.js +9 -0
- package/src/schematics/form/control/select-form-control/normalize-select-form-control-options.js.map +1 -0
- package/src/schematics/form/control/select-form-control/options/data-source-backend-options-rule.d.ts +3 -0
- package/src/schematics/form/control/select-form-control/options/data-source-backend-options-rule.js +69 -0
- package/src/schematics/form/control/select-form-control/options/data-source-backend-options-rule.js.map +1 -0
- package/src/schematics/form/control/select-form-control/options/nest-js-backend-options-rule.d.ts +3 -0
- package/src/schematics/form/control/select-form-control/options/nest-js-backend-options-rule.js +67 -0
- package/src/schematics/form/control/select-form-control/options/nest-js-backend-options-rule.js.map +1 -0
- package/src/schematics/form/control/select-form-control/options/none-backend-options-rule.d.ts +3 -0
- package/src/schematics/form/control/select-form-control/options/none-backend-options-rule.js +69 -0
- package/src/schematics/form/control/select-form-control/options/none-backend-options-rule.js.map +1 -0
- package/src/schematics/form/control/select-form-control/options/open-api-backend-options-rule.d.ts +3 -0
- package/src/schematics/form/control/select-form-control/options/open-api-backend-options-rule.js +10 -0
- package/src/schematics/form/control/select-form-control/options/open-api-backend-options-rule.js.map +1 -0
- package/src/schematics/form/control/select-form-control/options/options-rule.d.ts +3 -0
- package/src/schematics/form/control/select-form-control/options/options-rule.js +27 -0
- package/src/schematics/form/control/select-form-control/options/options-rule.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/__snapshots__/normalize-table-select-form-control-options.spec.ts.snap +505 -0
- package/src/schematics/form/control/table-select-form-control/build-dto-suffix.d.ts +2 -0
- package/src/schematics/form/control/table-select-form-control/build-dto-suffix.js +9 -0
- package/src/schematics/form/control/table-select-form-control/build-dto-suffix.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-id.d.ts +2 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-id.js +9 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-id.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-name.d.ts +3 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-name.js +8 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-name.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-path.d.ts +3 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-path.js +8 -0
- package/src/schematics/form/control/table-select-form-control/build-options-operation-path.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +0 -9
- package/src/schematics/form/control/table-select-form-control/index.js +8 -235
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/normalize-table-select-form-control-options.d.ts +6 -0
- package/src/schematics/form/control/table-select-form-control/normalize-table-select-form-control-options.js +11 -0
- package/src/schematics/form/control/table-select-form-control/normalize-table-select-form-control-options.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/table-column-to-table-select-column.d.ts +4 -0
- package/src/schematics/form/control/table-select-form-control/table-column-to-table-select-column.js +20 -0
- package/src/schematics/form/control/table-select-form-control/table-column-to-table-select-column.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/table-select-data-source-rule.d.ts +2 -0
- package/src/schematics/form/control/table-select-form-control/table-select-data-source-rule.js +116 -0
- package/src/schematics/form/control/table-select-form-control/table-select-data-source-rule.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/table-select-resolve-rule.d.ts +2 -0
- package/src/schematics/form/control/table-select-form-control/table-select-resolve-rule.js +99 -0
- package/src/schematics/form/control/table-select-form-control/table-select-resolve-rule.js.map +1 -0
- package/src/schematics/form/form-array/__snapshots__/normalize-form-array-options.spec.ts.snap +195 -0
- package/src/schematics/form/form-array/form-control-kind.d.ts +3 -0
- package/src/schematics/form/form-array/form-control-kind.js +12 -0
- package/src/schematics/form/form-array/form-control-kind.js.map +1 -0
- package/src/schematics/form/form-array/form-definition-rule.d.ts +3 -0
- package/src/schematics/form/form-array/form-definition-rule.js +12 -0
- package/src/schematics/form/form-array/form-definition-rule.js.map +1 -0
- package/src/schematics/form/form-array/index.d.ts +1 -7
- package/src/schematics/form/form-array/index.js +8 -32
- package/src/schematics/form/form-array/index.js.map +1 -1
- package/src/schematics/form/form-array/normalize-form-array-options.d.ts +5 -0
- package/src/schematics/form/form-array/normalize-form-array-options.js +15 -0
- package/src/schematics/form/form-array/normalize-form-array-options.js.map +1 -0
- package/src/schematics/form/form-component/__snapshots__/index.spec.ts.snap +36 -0
- package/src/schematics/form/form-component/__snapshots__/normalize-form-component-options.spec.ts.snap +293 -0
- package/src/{lib → schematics/form/form-component}/coerce-form-component.d.ts +1 -1
- package/src/{lib → schematics/form/form-component}/coerce-form-component.js +2 -2
- package/src/schematics/form/form-component/coerce-form-component.js.map +1 -0
- package/src/schematics/form/form-component/component-rule.d.ts +3 -0
- package/src/schematics/form/form-component/component-rule.js +23 -0
- package/src/schematics/form/form-component/component-rule.js.map +1 -0
- package/src/schematics/form/form-component/form-definition-rule.d.ts +3 -0
- package/src/schematics/form/form-component/form-definition-rule.js +23 -0
- package/src/schematics/form/form-component/form-definition-rule.js.map +1 -0
- package/src/schematics/form/form-component/form-submit/form-submit-backend-rule.d.ts +3 -0
- package/src/schematics/form/form-component/form-submit/form-submit-backend-rule.js +29 -0
- package/src/schematics/form/form-component/form-submit/form-submit-backend-rule.js.map +1 -0
- package/src/schematics/form/form-component/form-submit/form-submit-provider-rule.d.ts +3 -0
- package/src/schematics/form/form-component/form-submit/form-submit-provider-rule.js +46 -0
- package/src/schematics/form/form-component/form-submit/form-submit-provider-rule.js.map +1 -0
- package/src/schematics/form/form-component/form-submit/form-submit-rule.d.ts +3 -0
- package/src/schematics/form/form-component/form-submit/form-submit-rule.js +18 -0
- package/src/schematics/form/form-component/form-submit/form-submit-rule.js.map +1 -0
- package/src/schematics/form/form-component/get-submit-operation-id.d.ts +2 -0
- package/src/schematics/form/form-component/get-submit-operation-id.js +14 -0
- package/src/schematics/form/form-component/get-submit-operation-id.js.map +1 -0
- package/src/schematics/form/form-component/index.d.ts +1 -11
- package/src/schematics/form/form-component/index.js +12 -161
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/normalize-form-component-options.d.ts +9 -0
- package/src/schematics/form/form-component/normalize-form-component-options.js +22 -0
- package/src/schematics/form/form-component/normalize-form-component-options.js.map +1 -0
- package/src/schematics/form/form-component/window-rule.d.ts +3 -0
- package/src/schematics/form/form-component/window-rule.js +26 -0
- package/src/schematics/form/form-component/window-rule.js.map +1 -0
- package/src/schematics/form/form-control/__snapshots__/normalize-form-control-options.spec.ts.snap +259 -0
- package/src/schematics/form/form-control/form-control-kind.d.ts +3 -0
- package/src/schematics/form/form-control/form-control-kind.js +26 -0
- package/src/schematics/form/form-control/form-control-kind.js.map +1 -0
- package/src/schematics/form/form-control/index.d.ts +1 -7
- package/src/schematics/form/form-control/index.js +6 -36
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/normalize-form-control-options.d.ts +5 -0
- package/src/schematics/form/form-control/normalize-form-control-options.js +15 -0
- package/src/schematics/form/form-control/normalize-form-control-options.js.map +1 -0
- package/src/schematics/form/form-definition/__snapshots__/index.spec.ts.snap +33 -0
- package/src/schematics/form/form-definition/__snapshots__/normalize-form-definition-options.spec.ts.snap +49 -0
- package/src/schematics/form/form-definition/index.d.ts +0 -8
- package/src/schematics/form/form-definition/index.js +4 -11
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/normalize-form-definition-options.d.ts +8 -0
- package/src/schematics/form/form-definition/normalize-form-definition-options.js +11 -0
- package/src/schematics/form/form-definition/normalize-form-definition-options.js.map +1 -0
- package/src/schematics/form/form-group/__snapshots__/normalize-form-group-options.spec.ts.snap +113 -0
- package/src/schematics/form/form-group/form-control-kind.d.ts +3 -0
- package/src/schematics/form/form-group/form-control-kind.js +12 -0
- package/src/schematics/form/form-group/form-control-kind.js.map +1 -0
- package/src/schematics/form/form-group/form-definition-rule.d.ts +3 -0
- package/src/schematics/form/form-group/form-definition-rule.js +12 -0
- package/src/schematics/form/form-group/form-definition-rule.js.map +1 -0
- package/src/schematics/form/form-group/index.d.ts +1 -7
- package/src/schematics/form/form-group/index.js +8 -32
- package/src/schematics/form/form-group/index.js.map +1 -1
- package/src/schematics/form/form-group/normalize-form-group-options.d.ts +5 -0
- package/src/schematics/form/form-group/normalize-form-group-options.js +15 -0
- package/src/schematics/form/form-group/normalize-form-group-options.js.map +1 -0
- package/src/schematics/route-component/__snapshots__/normalize-route-component-options.spec.ts.snap +81 -0
- package/src/schematics/route-component/component-rule.d.ts +3 -0
- package/src/schematics/route-component/component-rule.js +33 -0
- package/src/schematics/route-component/component-rule.js.map +1 -0
- package/src/schematics/route-component/index.d.ts +1 -7
- package/src/schematics/route-component/index.js +9 -82
- package/src/schematics/route-component/index.js.map +1 -1
- package/src/schematics/route-component/normalize-route-component-options.d.ts +5 -0
- package/src/schematics/route-component/normalize-route-component-options.js +8 -0
- package/src/schematics/route-component/normalize-route-component-options.js.map +1 -0
- package/src/schematics/route-component/route-rule.d.ts +3 -0
- package/src/schematics/route-component/route-rule.js +50 -0
- package/src/schematics/route-component/route-rule.js.map +1 -0
- package/src/schematics/table/action/dialog-table-action/__snapshots__/normalize-dialog-table-action-options.spec.ts.snap +105 -0
- package/src/schematics/table/action/dialog-table-action/index.d.ts +0 -5
- package/src/schematics/table/action/dialog-table-action/index.js +5 -9
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/normalize-dialog-table-action-options.d.ts +5 -0
- package/src/schematics/table/action/dialog-table-action/normalize-dialog-table-action-options.js +8 -0
- package/src/schematics/table/action/dialog-table-action/normalize-dialog-table-action-options.js.map +1 -0
- package/src/schematics/table/action/form-table-action/__snapshots__/normalize-form-table-action-options.spec.ts.snap +208 -0
- package/src/schematics/table/action/form-table-action/backend/backend-rule.d.ts +2 -0
- package/src/schematics/table/action/form-table-action/backend/backend-rule.js +15 -0
- package/src/schematics/table/action/form-table-action/backend/backend-rule.js.map +1 -0
- package/src/schematics/table/action/form-table-action/backend/nestjs-backend-rule.d.ts +3 -0
- package/src/schematics/table/action/form-table-action/backend/nestjs-backend-rule.js +92 -0
- package/src/schematics/table/action/form-table-action/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/table/action/form-table-action/build-get-operation-id.d.ts +2 -0
- package/src/schematics/table/action/form-table-action/build-get-operation-id.js +12 -0
- package/src/schematics/table/action/form-table-action/build-get-operation-id.js.map +1 -0
- package/src/schematics/table/action/form-table-action/build-load-form-options.d.ts +3 -0
- package/src/schematics/table/action/form-table-action/build-load-form-options.js +23 -0
- package/src/schematics/table/action/form-table-action/build-load-form-options.js.map +1 -0
- package/src/schematics/table/action/form-table-action/index.d.ts +0 -7
- package/src/schematics/table/action/form-table-action/index.js +9 -165
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/normalize-form-table-action-options.d.ts +5 -0
- package/src/schematics/table/action/form-table-action/normalize-form-table-action-options.js +21 -0
- package/src/schematics/table/action/form-table-action/normalize-form-table-action-options.js.map +1 -0
- package/src/schematics/table/action/form-table-action/use-operation-response-as-form-type-rule.d.ts +9 -0
- package/src/schematics/table/action/form-table-action/use-operation-response-as-form-type-rule.js +27 -0
- package/src/schematics/table/action/form-table-action/use-operation-response-as-form-type-rule.js.map +1 -0
- package/src/schematics/table/action/navigation-table-action/__snapshots__/normalize-navigation-table-action-options.spec.ts.snap +81 -0
- package/src/schematics/table/action/navigation-table-action/index.d.ts +0 -5
- package/src/schematics/table/action/navigation-table-action/index.js +5 -9
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/navigation-table-action/normalize-navigation-table-action-options.d.ts +5 -0
- package/src/schematics/table/action/navigation-table-action/normalize-navigation-table-action-options.js +8 -0
- package/src/schematics/table/action/navigation-table-action/normalize-navigation-table-action-options.js.map +1 -0
- package/src/schematics/table/action/open-api-table-action/__snapshots__/normalize-open-api-table-action-options.spec.ts.snap +87 -0
- package/src/schematics/table/action/open-api-table-action/index.d.ts +0 -5
- package/src/schematics/table/action/open-api-table-action/index.js +5 -9
- package/src/schematics/table/action/open-api-table-action/index.js.map +1 -1
- package/src/schematics/table/action/open-api-table-action/normalize-open-api-table-action-options.d.ts +5 -0
- package/src/schematics/table/action/open-api-table-action/normalize-open-api-table-action-options.js +8 -0
- package/src/schematics/table/action/open-api-table-action/normalize-open-api-table-action-options.js.map +1 -0
- package/src/schematics/table/action/operation-table-action/__snapshots__/normalize-operation-table-action-options.spec.ts.snap +77 -0
- package/src/schematics/table/action/operation-table-action/backend-rule.d.ts +2 -0
- package/src/schematics/table/action/operation-table-action/backend-rule.js +15 -0
- package/src/schematics/table/action/operation-table-action/backend-rule.js.map +1 -0
- package/src/schematics/table/action/operation-table-action/index.d.ts +0 -7
- package/src/schematics/table/action/operation-table-action/index.js +7 -75
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/normalize-operation-table-action-options.d.ts +7 -0
- package/src/schematics/table/action/operation-table-action/normalize-operation-table-action-options.js +21 -0
- package/src/schematics/table/action/operation-table-action/normalize-operation-table-action-options.js.map +1 -0
- package/src/schematics/table/action/operation-table-action/open-api-operation-rule.d.ts +2 -0
- package/src/schematics/table/action/operation-table-action/open-api-operation-rule.js +48 -0
- package/src/schematics/table/action/operation-table-action/open-api-operation-rule.js.map +1 -0
- package/src/schematics/table/header-button/form-table-header-button/__snapshots__/normalize-form-table-header-button-options.spec.ts.snap +198 -0
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +0 -7
- package/src/schematics/table/header-button/form-table-header-button/index.js +5 -20
- 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/normalize-form-table-header-button-options.d.ts +7 -0
- package/src/schematics/table/header-button/form-table-header-button/normalize-form-table-header-button-options.js +16 -0
- package/src/schematics/table/header-button/form-table-header-button/normalize-form-table-header-button-options.js.map +1 -0
- package/src/schematics/table/header-button/method-table-header-button/__snapshots__/normalize-method-table-header-button-options.spec.ts.snap +89 -0
- package/src/schematics/table/header-button/method-table-header-button/index.d.ts +0 -5
- package/src/schematics/table/header-button/method-table-header-button/index.js +6 -17
- package/src/schematics/table/header-button/method-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/method-table-header-button/normalize-method-table-header-button-options.d.ts +5 -0
- package/src/schematics/table/header-button/method-table-header-button/normalize-method-table-header-button-options.js +15 -0
- package/src/schematics/table/header-button/method-table-header-button/normalize-method-table-header-button-options.js.map +1 -0
- package/src/schematics/table/header-button/navigation-table-header-button/__snapshots__/normalize-navigation-table-header-button-options.spec.ts.snap +71 -0
- package/src/schematics/table/header-button/navigation-table-header-button/index.d.ts +0 -5
- package/src/schematics/table/header-button/navigation-table-header-button/index.js +5 -16
- package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/navigation-table-header-button/normalize-navigation-table-header-button-options.d.ts +5 -0
- package/src/schematics/table/header-button/navigation-table-header-button/normalize-navigation-table-header-button-options.js +15 -0
- package/src/schematics/table/header-button/navigation-table-header-button/normalize-navigation-table-header-button-options.js.map +1 -0
- package/src/schematics/table/table-action/__snapshots__/normalize-table-action-options.spec.ts.snap +77 -0
- package/src/schematics/table/table-action/index.d.ts +0 -5
- package/src/schematics/table/table-action/index.js +5 -14
- package/src/schematics/table/table-action/index.js.map +1 -1
- package/src/schematics/table/table-action/normalize-table-action-options.d.ts +5 -0
- package/src/schematics/table/table-action/normalize-table-action-options.js +13 -0
- package/src/schematics/table/table-action/normalize-table-action-options.js.map +1 -0
- package/src/schematics/table/table-component/__snapshots__/index.spec.ts.snap +80 -0
- package/src/schematics/table/table-component/__snapshots__/normalize-table-component-options.spec.ts.snap +272 -0
- package/src/schematics/table/table-component/backend/backend-rule.d.ts +3 -0
- package/src/schematics/table/table-component/backend/backend-rule.js +21 -0
- package/src/schematics/table/table-component/backend/backend-rule.js.map +1 -0
- package/src/schematics/table/table-component/backend/local-backend-rule.d.ts +3 -0
- package/src/schematics/table/table-component/backend/local-backend-rule.js +68 -0
- package/src/schematics/table/table-component/backend/local-backend-rule.js.map +1 -0
- package/src/schematics/table/table-component/backend/nestjs-backend-rule.d.ts +3 -0
- package/src/schematics/table/table-component/backend/nestjs-backend-rule.js +65 -0
- package/src/schematics/table/table-component/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/table/table-component/backend/open-api-backend-rule.d.ts +3 -0
- package/src/schematics/table/table-component/backend/open-api-backend-rule.js +48 -0
- package/src/schematics/table/table-component/backend/open-api-backend-rule.js.map +1 -0
- package/src/schematics/table/table-component/component-rule.d.ts +3 -0
- package/src/schematics/table/table-component/component-rule.js +49 -0
- package/src/schematics/table/table-component/component-rule.js.map +1 -0
- package/src/schematics/table/table-component/index.d.ts +1 -10
- package/src/schematics/table/table-component/index.js +19 -288
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/normalize-table-component-options.d.ts +8 -0
- package/src/schematics/table/table-component/normalize-table-component-options.js +18 -0
- package/src/schematics/table/table-component/normalize-table-component-options.js.map +1 -0
- package/src/schematics/table/table-component/select-column-rule.d.ts +3 -0
- package/src/schematics/table/table-component/select-column-rule.js +43 -0
- package/src/schematics/table/table-component/select-column-rule.js.map +1 -0
- package/src/schematics/table/table-header-button/__snapshots__/index.spec.ts.snap +36 -0
- package/src/schematics/table/table-header-button/__snapshots__/normalize-table-header-button-options.spec.ts.snap +67 -0
- package/src/schematics/table/table-header-button/index.d.ts +0 -5
- package/src/schematics/table/table-header-button/index.js +5 -16
- package/src/schematics/table/table-header-button/index.js.map +1 -1
- package/src/schematics/table/table-header-button/normalize-table-header-button-options.d.ts +5 -0
- package/src/schematics/table/table-header-button/normalize-table-header-button-options.js +15 -0
- package/src/schematics/table/table-header-button/normalize-table-header-button-options.js.map +1 -0
- package/src/schematics/table/tree-table-component/__snapshots__/index.spec.ts.snap +35 -0
- package/src/schematics/table/tree-table-component/backend/backend-rule.d.ts +2 -0
- package/src/schematics/table/tree-table-component/backend/backend-rule.js +18 -0
- package/src/schematics/table/tree-table-component/backend/backend-rule.js.map +1 -0
- package/src/schematics/table/tree-table-component/backend/local-backend-rule.d.ts +2 -0
- package/src/schematics/table/tree-table-component/backend/local-backend-rule.js +101 -0
- package/src/schematics/table/tree-table-component/backend/local-backend-rule.js.map +1 -0
- package/src/schematics/table/tree-table-component/backend/nestjs-backend-rule.d.ts +2 -0
- package/src/schematics/table/tree-table-component/backend/nestjs-backend-rule.js +96 -0
- package/src/schematics/table/tree-table-component/backend/nestjs-backend-rule.js.map +1 -0
- package/src/schematics/table/tree-table-component/component-rule.d.ts +2 -0
- package/src/schematics/table/tree-table-component/component-rule.js +49 -0
- package/src/schematics/table/tree-table-component/component-rule.js.map +1 -0
- package/src/schematics/table/tree-table-component/index.d.ts +0 -11
- package/src/schematics/table/tree-table-component/index.js +19 -309
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/normalized-tree-table-component-options.d.ts +8 -0
- package/src/schematics/table/tree-table-component/normalized-tree-table-component-options.js +12 -0
- package/src/schematics/table/tree-table-component/normalized-tree-table-component-options.js.map +1 -0
- package/src/schematics/table/tree-table-component/tree-table-method-rule.d.ts +2 -0
- package/src/schematics/table/tree-table-component/tree-table-method-rule.js +45 -0
- package/src/schematics/table/tree-table-component/tree-table-method-rule.js.map +1 -0
- package/src/schematics/tree-component/__snapshots__/index.spec.ts.snap +34 -0
- package/src/schematics/tree-component/__snapshots__/normalize-tree-component-options.spec.ts.snap +51 -0
- package/src/schematics/tree-component/index.d.ts +0 -8
- package/src/schematics/tree-component/index.js +2 -12
- package/src/schematics/tree-component/index.js.map +1 -1
- package/src/schematics/tree-component/normalize-tree-component-options.d.ts +9 -0
- package/src/schematics/tree-component/normalize-tree-component-options.js +14 -0
- package/src/schematics/tree-component/normalize-tree-component-options.js.map +1 -0
- package/src/lib/assert-table-component-exists.js.map +0 -1
- package/src/lib/coerce-accordion-component.js.map +0 -1
- package/src/lib/coerce-form-component.js.map +0 -1
- package/src/lib/minimum-table-component-options.d.ts +0 -24
- package/src/lib/minimum-table-component-options.js +0 -350
- package/src/lib/minimum-table-component-options.js.map +0 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +0 -1
- /package/src/lib/{assert-table-component-exists.d.ts → rules/assert-table-component-exists.d.ts} +0 -0
- /package/src/lib/{table → rules}/table-filter-column-rule.d.ts +0 -0
- /package/src/{lib → schematics/accordion/accordion-component}/coerce-accordion-component.js +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nestjsBackendRule = nestjsBackendRule;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
7
|
+
function nestjsBackendRule(normalizedOptions) {
|
|
8
|
+
const { project, feature, shared, propertyList, context, nestModule, componentName, directory, overwrite, scope, controllerName, backend, upstream, identifier, rowId, } = normalizedOptions;
|
|
9
|
+
const operationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-page', normalizedOptions.controllerName);
|
|
10
|
+
return (0, schematics_1.chain)([
|
|
11
|
+
() => console.log(`Coerce the getPage operation for the table`),
|
|
12
|
+
(0, schematics_ts_morph_1.CoerceGetPageOperation)({
|
|
13
|
+
controllerName,
|
|
14
|
+
nestModule: shared ? undefined : nestModule,
|
|
15
|
+
project,
|
|
16
|
+
feature,
|
|
17
|
+
shared,
|
|
18
|
+
propertyList,
|
|
19
|
+
backend,
|
|
20
|
+
context,
|
|
21
|
+
overwrite,
|
|
22
|
+
upstream,
|
|
23
|
+
idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
|
|
24
|
+
rowId,
|
|
25
|
+
}),
|
|
26
|
+
() => console.log('Add the open api methods to the table component providers'),
|
|
27
|
+
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
28
|
+
project,
|
|
29
|
+
feature,
|
|
30
|
+
shared,
|
|
31
|
+
name: componentName,
|
|
32
|
+
directory,
|
|
33
|
+
overwrite,
|
|
34
|
+
tsMorphTransform: (project, [sourceFile]) => {
|
|
35
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
36
|
+
provide: 'TABLE_REMOTE_METHOD_ADAPTER_FACTORY',
|
|
37
|
+
useValue: 'GetPageAdapterFactory',
|
|
38
|
+
}, [
|
|
39
|
+
{
|
|
40
|
+
moduleSpecifier: '@rxap/material-table-system',
|
|
41
|
+
namedImports: ['TABLE_REMOTE_METHOD_ADAPTER_FACTORY'],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
moduleSpecifier: '@rxap/open-api/remote-method',
|
|
45
|
+
namedImports: ['GetPageAdapterFactory'],
|
|
46
|
+
},
|
|
47
|
+
]);
|
|
48
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
49
|
+
provide: 'RXAP_TABLE_METHOD',
|
|
50
|
+
useExisting: (0, ts_morph_1.OperationIdToRemoteMethodClassName)(operationId),
|
|
51
|
+
}, [
|
|
52
|
+
{
|
|
53
|
+
moduleSpecifier: '@rxap/material-table-system',
|
|
54
|
+
namedImports: ['RXAP_TABLE_METHOD'],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
moduleSpecifier: (0, ts_morph_1.OperationIdToClassRemoteMethodImportPath)(operationId, scope),
|
|
58
|
+
namedImports: [(0, ts_morph_1.OperationIdToRemoteMethodClassName)(operationId)],
|
|
59
|
+
},
|
|
60
|
+
]);
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
]);
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=nestjs-backend-rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nestjs-backend-rule.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/backend/nestjs-backend-rule.ts"],"names":[],"mappings":";;AAoBA,8CA2FC;AA/GD,2DAGoC;AACpC,mEAKmC;AACnC,6CAGwB;AAOxB,SAAgB,iBAAiB,CAAC,iBAAkD;IAElF,MAAM,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,YAAY,EACZ,OAAO,EACP,UAAU,EACV,aAAa,EACb,SAAS,EACT,SAAS,EACT,KAAK,EACL,cAAc,EACd,OAAO,EACP,QAAQ,EACR,UAAU,EACV,KAAK,GACN,GAAG,iBAAiB,CAAC;IAEtB,MAAM,WAAW,GAAG,IAAA,sCAAgB,EAClC,iBAAiB,EACjB,UAAU,EACV,iBAAiB,CAAC,cAAc,CACjC,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC;QAC/D,IAAA,4CAAsB,EAAC;YACrB,cAAc;YACd,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YAC3C,OAAO;YACP,OAAO;YACP,MAAM;YACN,YAAY;YACZ,OAAO;YACP,OAAO;YACP,SAAS;YACT,QAAQ;YACR,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ;YAChC,KAAK;SACN,CAAC;QACF,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC;QAC9E,IAAA,yCAAmB,EAAC;YAClB,OAAO;YACP,OAAO;YACP,MAAM;YACN,IAAI,EAAE,aAAa;YACnB,SAAS;YACT,SAAS;YACT,gBAAgB,EAAE,CAChB,OAAgB,EAChB,CAAE,UAAU,CAAkB,EAC9B,EAAE;gBACF,IAAA,0CAAoB,EAClB,UAAU,EACV;oBACE,OAAO,EAAE,qCAAqC;oBAC9C,QAAQ,EAAE,uBAAuB;iBAClC,EACD;oBACE;wBACE,eAAe,EAAE,6BAA6B;wBAC9C,YAAY,EAAE,CAAE,qCAAqC,CAAE;qBACxD;oBACD;wBACE,eAAe,EAAE,8BAA8B;wBAC/C,YAAY,EAAE,CAAE,uBAAuB,CAAE;qBAC1C;iBACF,CACF,CAAC;gBACF,IAAA,0CAAoB,EAClB,UAAU,EACV;oBACE,OAAO,EAAE,mBAAmB;oBAC5B,WAAW,EAAE,IAAA,6CAAkC,EAAC,WAAW,CAAC;iBAC7D,EACD;oBACE;wBACE,eAAe,EAAE,6BAA6B;wBAC9C,YAAY,EAAE,CAAE,mBAAmB,CAAE;qBACtC;oBACD;wBACE,eAAe,EAAE,IAAA,mDAAwC,EAAC,WAAW,EAAE,KAAK,CAAC;wBAC7E,YAAY,EAAE,CAAE,IAAA,6CAAkC,EAAC,WAAW,CAAC,CAAE;qBAClE;iBACF,CACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.openApiBackendRule = openApiBackendRule;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
7
|
+
function openApiBackendRule(normalizedOptions) {
|
|
8
|
+
const { project, feature, shared, columnList, context, nestModule, componentName, directory, overwrite, scope, openApi, } = normalizedOptions;
|
|
9
|
+
return (0, schematics_1.chain)([
|
|
10
|
+
() => console.log('Add the open api methods to the table component providers'),
|
|
11
|
+
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
12
|
+
project,
|
|
13
|
+
feature,
|
|
14
|
+
shared,
|
|
15
|
+
name: componentName,
|
|
16
|
+
directory,
|
|
17
|
+
overwrite,
|
|
18
|
+
tsMorphTransform: (project, [sourceFile]) => {
|
|
19
|
+
if (openApi.adapter) {
|
|
20
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
21
|
+
provide: 'TABLE_REMOTE_METHOD_ADAPTER_FACTORY',
|
|
22
|
+
useValue: openApi.adapter.name,
|
|
23
|
+
}, [
|
|
24
|
+
{
|
|
25
|
+
moduleSpecifier: '@rxap/material-table-system',
|
|
26
|
+
namedImports: ['TABLE_REMOTE_METHOD_ADAPTER_FACTORY'],
|
|
27
|
+
},
|
|
28
|
+
(0, ts_morph_1.TypeImportToImportStructure)(openApi.adapter),
|
|
29
|
+
]);
|
|
30
|
+
}
|
|
31
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
32
|
+
provide: 'RXAP_TABLE_METHOD',
|
|
33
|
+
useExisting: (0, ts_morph_1.OperationIdToRemoteMethodClassName)(openApi.operationId),
|
|
34
|
+
}, [
|
|
35
|
+
{
|
|
36
|
+
moduleSpecifier: '@rxap/material-table-system',
|
|
37
|
+
namedImports: ['RXAP_TABLE_METHOD'],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
moduleSpecifier: (0, ts_morph_1.OperationIdToClassRemoteMethodImportPath)(openApi.operationId, scope),
|
|
41
|
+
namedImports: [(0, ts_morph_1.OperationIdToRemoteMethodClassName)(openApi.operationId)],
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=open-api-backend-rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-api-backend-rule.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/backend/open-api-backend-rule.ts"],"names":[],"mappings":";;AAmBA,gDAkEC;AArFD,2DAGoC;AACpC,mEAGmC;AACnC,6CAIwB;AAOxB,SAAgB,kBAAkB,CAAC,iBAAkD;IAEnF,MAAM,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EACV,aAAa,EACb,SAAS,EACT,SAAS,EACT,KAAK,EACL,OAAO,GACR,GAAG,iBAAiB,CAAC;IAEtB,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC;QAC9E,IAAA,yCAAmB,EAAC;YAClB,OAAO;YACP,OAAO;YACP,MAAM;YACN,IAAI,EAAE,aAAa;YACnB,SAAS;YACT,SAAS;YACT,gBAAgB,EAAE,CAChB,OAAgB,EAChB,CAAE,UAAU,CAAkB,EAC9B,EAAE;gBACF,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;oBACpB,IAAA,0CAAoB,EAClB,UAAU,EACV;wBACE,OAAO,EAAE,qCAAqC;wBAC9C,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;qBAC/B,EACD;wBACE;4BACE,eAAe,EAAE,6BAA6B;4BAC9C,YAAY,EAAE,CAAE,qCAAqC,CAAE;yBACxD;wBACD,IAAA,sCAA2B,EAAC,OAAO,CAAC,OAAO,CAAC;qBAC7C,CACF,CAAC;gBACJ,CAAC;gBACD,IAAA,0CAAoB,EAClB,UAAU,EACV;oBACE,OAAO,EAAE,mBAAmB;oBAC5B,WAAW,EAAE,IAAA,6CAAkC,EAAC,OAAO,CAAC,WAAW,CAAC;iBACrE,EACD;oBACE;wBACE,eAAe,EAAE,6BAA6B;wBAC9C,YAAY,EAAE,CAAE,mBAAmB,CAAE;qBACtC;oBACD;wBACE,eAAe,EAAE,IAAA,mDAAwC,EAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC;wBACrF,YAAY,EAAE,CAAE,IAAA,6CAAkC,EAAC,OAAO,CAAC,WAAW,CAAC,CAAE;qBAC1E;iBACF,CACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC,CAAC;AAEL,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentRule = componentRule;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematic_angular_1 = require("@rxap/schematic-angular");
|
|
6
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
8
|
+
function componentRule(normalizedOptions) {
|
|
9
|
+
const { project, feature, shared, directory, overwrite, modifiers, columnList, tableMethod, filterList, componentName, } = normalizedOptions;
|
|
10
|
+
const templateOptions = Object.assign(Object.assign({}, normalizedOptions), { hasNavigationBackHeader: modifiers.includes(schematic_angular_1.TableModifiers.NAVIGATION_BACK_HEADER), hasWithoutTitle: modifiers.includes(schematic_angular_1.TableModifiers.WITHOUT_TITLE), hasFilter: filterList.length > 0 || columnList.some((c) => c.hasFilter), hasCustomFilter: filterList.length > 0, hasColumnWithFilter: columnList.some((c) => c.hasFilter), hasShowArchivedSlide: modifiers.includes(schematic_angular_1.TableModifiers.SHOW_ARCHIVED_SLIDE), exportDefault: !!feature && !directory });
|
|
11
|
+
return (0, schematics_1.chain)([
|
|
12
|
+
() => console.log(`Coerce the table component '${componentName}'`),
|
|
13
|
+
(0, schematic_angular_1.CoerceMinimumTableComponentRule)({
|
|
14
|
+
table: normalizedOptions,
|
|
15
|
+
project,
|
|
16
|
+
feature,
|
|
17
|
+
shared,
|
|
18
|
+
name: componentName,
|
|
19
|
+
directory,
|
|
20
|
+
overwrite,
|
|
21
|
+
template: {
|
|
22
|
+
options: templateOptions,
|
|
23
|
+
},
|
|
24
|
+
handlebars: {
|
|
25
|
+
partials: {
|
|
26
|
+
matFormField: (0, schematic_angular_1.LoadMatFormFieldHandlebarsTemplate)(),
|
|
27
|
+
pipe: (0, schematic_angular_1.LoadPipeHandlebarsTemplate)(),
|
|
28
|
+
cssClass: (0, schematic_angular_1.LoadCssClassHandlebarsTemplate)(),
|
|
29
|
+
matColumnDef: (0, schematic_angular_1.LoadMatColumnDefHandlebarsTemplate)(),
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
tsMorphTransform: (project, [componentSourceFile]) => {
|
|
33
|
+
if (tableMethod) {
|
|
34
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(componentSourceFile, {
|
|
35
|
+
provide: 'RXAP_TABLE_METHOD',
|
|
36
|
+
useClass: tableMethod.name,
|
|
37
|
+
}, [
|
|
38
|
+
(0, ts_morph_1.TypeImportToImportStructure)(tableMethod),
|
|
39
|
+
{
|
|
40
|
+
namedImports: ['RXAP_TABLE_METHOD'],
|
|
41
|
+
moduleSpecifier: '@rxap/material-table-system',
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=component-rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-rule.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/component-rule.ts"],"names":[],"mappings":";;AAoBA,sCAsEC;AA1FD,2DAGoC;AACpC,+DAOiC;AACjC,mEAAiE;AACjE,6CAA6D;AAO7D,SAAgB,aAAa,CAAC,iBAAkD;IAE9E,MAAM,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,aAAa,GACd,GAAG,iBAAiB,CAAC;IAEtB,MAAM,eAAe,mCAChB,iBAAiB,KACpB,uBAAuB,EAAE,SAAS,CAAC,QAAQ,CAAC,kCAAc,CAAC,sBAAsB,CAAC,EAClF,eAAe,EAAE,SAAS,CAAC,QAAQ,CAAC,kCAAc,CAAC,aAAa,CAAC,EACjE,SAAS,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EACvE,eAAe,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,EACtC,mBAAmB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EACxD,oBAAoB,EAAE,SAAS,CAAC,QAAQ,CAAC,kCAAc,CAAC,mBAAmB,CAAC,EAC5E,aAAa,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,SAAS,GACvC,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,+BAAgC,aAAc,GAAG,CAAC;QACpE,IAAA,mDAA+B,EAAC;YAC9B,KAAK,EAAE,iBAAiB;YACxB,OAAO;YACP,OAAO;YACP,MAAM;YACN,IAAI,EAAE,aAAa;YACnB,SAAS;YACT,SAAS;YACT,QAAQ,EAAE;gBACR,OAAO,EAAE,eAAe;aACzB;YACD,UAAU,EAAE;gBACV,QAAQ,EAAE;oBACR,YAAY,EAAE,IAAA,sDAAkC,GAAE;oBAClD,IAAI,EAAE,IAAA,8CAA0B,GAAE;oBAClC,QAAQ,EAAE,IAAA,kDAA8B,GAAE;oBAC1C,YAAY,EAAE,IAAA,sDAAkC,GAAE;iBACnD;aACF;YACD,gBAAgB,EAAE,CAChB,OAAgB,EAChB,CAAE,mBAAmB,CAAkB,EACvC,EAAE;gBACF,IAAI,WAAW,EAAE,CAAC;oBAChB,IAAA,0CAAoB,EAClB,mBAAmB,EACnB;wBACE,OAAO,EAAE,mBAAmB;wBAC5B,QAAQ,EAAE,WAAW,CAAC,IAAI;qBAC3B,EACD;wBACE,IAAA,sCAA2B,EAAC,WAAW,CAAC;wBACxC;4BACE,YAAY,EAAE,CAAE,mBAAmB,CAAE;4BACrC,eAAe,EAAE,6BAA6B;yBAC/C;qBACF,CACF,CAAC;gBACJ,CAAC;YACH,CAAC;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Normalized } from '@rxap/utilities';
|
|
3
|
-
import { AngularOptions, NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
4
|
-
import { NormalizedTableOptions } from '../../../lib/table-options';
|
|
5
1
|
import { TableComponentOptions } from './schema';
|
|
6
|
-
export
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly controllerName: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function NormalizeTableComponentOptions(options: Readonly<TableComponentOptions>): NormalizedTableComponentOptions;
|
|
11
|
-
export default function (options: TableComponentOptions): () => Rule;
|
|
2
|
+
export default function (options: TableComponentOptions): () => import("@angular-devkit/schematics").Rule;
|
|
@@ -1,36 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizeTableComponentOptions = NormalizeTableComponentOptions;
|
|
4
3
|
exports.default = default_1;
|
|
5
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
5
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const table_filter_column_rule_1 = require("../../../lib/table/table-filter-column-rule");
|
|
19
|
-
function NormalizeTableComponentOptions(options) {
|
|
20
|
-
const normalizedMinimumTableComponentOptions = (0, minimum_table_component_options_1.NormalizeMinimumTableComponentOptions)(options, table_options_1.IsTableModifiers, '-table');
|
|
21
|
-
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
|
|
22
|
-
const { name, backend, } = normalizedMinimumTableComponentOptions;
|
|
23
|
-
const normalizedTableOptions = (0, table_options_1.NormalizeTableOptions)(options, name);
|
|
24
|
-
const { openApi } = normalizedTableOptions;
|
|
25
|
-
if (backend.kind === backend_types_1.BackendTypes.OPEN_API) {
|
|
26
|
-
if (!openApi) {
|
|
27
|
-
throw new Error('openApi options must be provided. If backend is open-api');
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return Object.freeze(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTableOptions));
|
|
31
|
-
}
|
|
6
|
+
const print_angular_options_1 = require("../../../lib/print-angular-options");
|
|
7
|
+
const table_action_rule_1 = require("../../../lib/rules/table-action-rule");
|
|
8
|
+
const table_cell_component_rule_1 = require("../../../lib/rules/table-cell-component-rule");
|
|
9
|
+
const table_filter_column_rule_1 = require("../../../lib/rules/table-filter-column-rule");
|
|
10
|
+
const table_header_button_rule_1 = require("../../../lib/rules/table-header-button-rule");
|
|
11
|
+
const table_interface_rule_1 = require("../../../lib/rules/table-interface-rule");
|
|
12
|
+
const backend_rule_1 = require("./backend/backend-rule");
|
|
13
|
+
const component_rule_1 = require("./component-rule");
|
|
14
|
+
const normalize_table_component_options_1 = require("./normalize-table-component-options");
|
|
15
|
+
const select_column_rule_1 = require("./select-column-rule");
|
|
32
16
|
function printOptions(options) {
|
|
33
|
-
(0,
|
|
17
|
+
(0, print_angular_options_1.PrintAngularOptions)('table-component', options);
|
|
34
18
|
if (options.columnList.length) {
|
|
35
19
|
console.log(`=== columns: \x1b[34m${options.columnList.map((item) => item.name).join(', ')}\x1b[0m`);
|
|
36
20
|
}
|
|
@@ -44,273 +28,20 @@ function printOptions(options) {
|
|
|
44
28
|
console.log('=== actions: \x1b[31mempty\x1b[0m');
|
|
45
29
|
}
|
|
46
30
|
}
|
|
47
|
-
function componentRule(normalizedOptions) {
|
|
48
|
-
const { project, feature, shared, directory, overwrite, modifiers, columnList, tableMethod, filterList, componentName, } = normalizedOptions;
|
|
49
|
-
const templateOptions = Object.assign(Object.assign({}, normalizedOptions), { hasNavigationBackHeader: modifiers.includes(table_options_1.TableModifiers.NAVIGATION_BACK_HEADER), hasWithoutTitle: modifiers.includes(table_options_1.TableModifiers.WITHOUT_TITLE), hasFilter: filterList.length > 0 || columnList.some((c) => c.hasFilter), hasCustomFilter: filterList.length > 0, hasColumnWithFilter: columnList.some((c) => c.hasFilter), hasShowArchivedSlide: modifiers.includes(table_options_1.TableModifiers.SHOW_ARCHIVED_SLIDE), exportDefault: !!feature && !directory });
|
|
50
|
-
return (0, schematics_1.chain)([
|
|
51
|
-
() => console.log(`Coerce the table component '${componentName}'`),
|
|
52
|
-
(0, coerce_minimum_table_component_1.CoerceMinimumTableComponentRule)({
|
|
53
|
-
table: normalizedOptions,
|
|
54
|
-
project,
|
|
55
|
-
feature,
|
|
56
|
-
shared,
|
|
57
|
-
name: componentName,
|
|
58
|
-
directory,
|
|
59
|
-
overwrite,
|
|
60
|
-
template: {
|
|
61
|
-
options: templateOptions,
|
|
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
|
-
},
|
|
71
|
-
tsMorphTransform: (project, [componentSourceFile]) => {
|
|
72
|
-
if (tableMethod) {
|
|
73
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(componentSourceFile, {
|
|
74
|
-
provide: 'RXAP_TABLE_METHOD',
|
|
75
|
-
useClass: tableMethod.name,
|
|
76
|
-
}, [
|
|
77
|
-
(0, ts_morph_1.TypeImportToImportStructure)(tableMethod),
|
|
78
|
-
{
|
|
79
|
-
namedImports: ['RXAP_TABLE_METHOD'],
|
|
80
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
81
|
-
},
|
|
82
|
-
]);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
}),
|
|
86
|
-
]);
|
|
87
|
-
}
|
|
88
|
-
// region backend
|
|
89
|
-
function openApiBackendRule(normalizedOptions) {
|
|
90
|
-
const { project, feature, shared, columnList, context, nestModule, componentName, directory, overwrite, scope, openApi, } = normalizedOptions;
|
|
91
|
-
return (0, schematics_1.chain)([
|
|
92
|
-
() => console.log('Add the open api methods to the table component providers'),
|
|
93
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
94
|
-
project,
|
|
95
|
-
feature,
|
|
96
|
-
shared,
|
|
97
|
-
name: componentName,
|
|
98
|
-
directory,
|
|
99
|
-
overwrite,
|
|
100
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
101
|
-
if (openApi.adapter) {
|
|
102
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
103
|
-
provide: 'TABLE_REMOTE_METHOD_ADAPTER_FACTORY',
|
|
104
|
-
useValue: openApi.adapter.name,
|
|
105
|
-
}, [
|
|
106
|
-
{
|
|
107
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
108
|
-
namedImports: ['TABLE_REMOTE_METHOD_ADAPTER_FACTORY'],
|
|
109
|
-
},
|
|
110
|
-
(0, ts_morph_1.TypeImportToImportStructure)(openApi.adapter),
|
|
111
|
-
]);
|
|
112
|
-
}
|
|
113
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
114
|
-
provide: 'RXAP_TABLE_METHOD',
|
|
115
|
-
useExisting: (0, ts_morph_1.OperationIdToRemoteMethodClassName)(openApi.operationId),
|
|
116
|
-
}, [
|
|
117
|
-
{
|
|
118
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
119
|
-
namedImports: ['RXAP_TABLE_METHOD'],
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
moduleSpecifier: (0, ts_morph_1.OperationIdToClassRemoteMethodImportPath)(openApi.operationId, scope),
|
|
123
|
-
namedImports: [(0, ts_morph_1.OperationIdToRemoteMethodClassName)(openApi.operationId)],
|
|
124
|
-
},
|
|
125
|
-
]);
|
|
126
|
-
},
|
|
127
|
-
}),
|
|
128
|
-
]);
|
|
129
|
-
}
|
|
130
|
-
function nestjsBackendRule(normalizedOptions) {
|
|
131
|
-
const { project, feature, shared, propertyList, context, nestModule, componentName, directory, overwrite, scope, controllerName, backend, 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
|
-
}));
|
|
136
|
-
return (0, schematics_1.chain)([
|
|
137
|
-
() => console.log(`Coerce the getPage operation for the table`),
|
|
138
|
-
(0, schematics_ts_morph_1.CoerceGetPageOperation)({
|
|
139
|
-
controllerName,
|
|
140
|
-
nestModule: shared ? undefined : nestModule,
|
|
141
|
-
project,
|
|
142
|
-
feature,
|
|
143
|
-
shared,
|
|
144
|
-
propertyList,
|
|
145
|
-
backend,
|
|
146
|
-
context,
|
|
147
|
-
overwrite,
|
|
148
|
-
upstream,
|
|
149
|
-
idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
|
|
150
|
-
rowId,
|
|
151
|
-
}),
|
|
152
|
-
() => console.log('Add the open api methods to the table component providers'),
|
|
153
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
154
|
-
project,
|
|
155
|
-
feature,
|
|
156
|
-
shared,
|
|
157
|
-
name: componentName,
|
|
158
|
-
directory,
|
|
159
|
-
overwrite,
|
|
160
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
161
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
162
|
-
provide: 'TABLE_REMOTE_METHOD_ADAPTER_FACTORY',
|
|
163
|
-
useValue: 'GetPageAdapterFactory',
|
|
164
|
-
}, [
|
|
165
|
-
{
|
|
166
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
167
|
-
namedImports: ['TABLE_REMOTE_METHOD_ADAPTER_FACTORY'],
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
moduleSpecifier: '@rxap/open-api/remote-method',
|
|
171
|
-
namedImports: ['GetPageAdapterFactory'],
|
|
172
|
-
},
|
|
173
|
-
]);
|
|
174
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
175
|
-
provide: 'RXAP_TABLE_METHOD',
|
|
176
|
-
useExisting: (0, ts_morph_1.OperationIdToRemoteMethodClassName)(operationId),
|
|
177
|
-
}, [
|
|
178
|
-
{
|
|
179
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
180
|
-
namedImports: ['RXAP_TABLE_METHOD'],
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
moduleSpecifier: (0, ts_morph_1.OperationIdToClassRemoteMethodImportPath)(operationId, scope),
|
|
184
|
-
namedImports: [(0, ts_morph_1.OperationIdToRemoteMethodClassName)(operationId)],
|
|
185
|
-
},
|
|
186
|
-
]);
|
|
187
|
-
},
|
|
188
|
-
}),
|
|
189
|
-
]);
|
|
190
|
-
}
|
|
191
|
-
function localBackendRule(normalizedOptions) {
|
|
192
|
-
const { project, feature, shared, componentName, directory, overwrite, name, } = normalizedOptions;
|
|
193
|
-
return (0, schematics_1.chain)([
|
|
194
|
-
() => console.log(`Coerce local backend method to table component`),
|
|
195
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
196
|
-
project,
|
|
197
|
-
feature,
|
|
198
|
-
shared,
|
|
199
|
-
name: componentName,
|
|
200
|
-
directory,
|
|
201
|
-
overwrite,
|
|
202
|
-
tsMorphTransform: (project, [componentSourceFile]) => {
|
|
203
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(componentSourceFile, {
|
|
204
|
-
provide: 'RXAP_TABLE_METHOD',
|
|
205
|
-
useClass: `${(0, utilities_1.classify)(name)}TableMethod`,
|
|
206
|
-
}, [
|
|
207
|
-
{
|
|
208
|
-
namedImports: [`${(0, utilities_1.classify)(name)}TableMethod`],
|
|
209
|
-
moduleSpecifier: `./${name}-table.method`,
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
namedImports: ['RXAP_TABLE_METHOD'],
|
|
213
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
214
|
-
},
|
|
215
|
-
]);
|
|
216
|
-
},
|
|
217
|
-
}),
|
|
218
|
-
() => console.log(`Coerce local backend method`),
|
|
219
|
-
(0, schematics_ts_morph_1.CoerceMethodClass)({
|
|
220
|
-
name: `${name}-table`,
|
|
221
|
-
project,
|
|
222
|
-
feature,
|
|
223
|
-
shared,
|
|
224
|
-
directory,
|
|
225
|
-
overwrite,
|
|
226
|
-
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
227
|
-
(0, ts_morph_1.CoerceImports)(sourceFile, [
|
|
228
|
-
{
|
|
229
|
-
moduleSpecifier: '@rxap/data-source/table',
|
|
230
|
-
namedImports: ['TableEvent'],
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
moduleSpecifier: `./${name}-table`,
|
|
234
|
-
namedImports: [`I${(0, utilities_1.classify)(name)}Table`],
|
|
235
|
-
},
|
|
236
|
-
]);
|
|
237
|
-
return {
|
|
238
|
-
parameters: [
|
|
239
|
-
{
|
|
240
|
-
name: 'event',
|
|
241
|
-
type: 'TableEvent',
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
statements: ['return [];'],
|
|
245
|
-
returnType: `I${(0, utilities_1.classify)(name)}Table[]`,
|
|
246
|
-
};
|
|
247
|
-
},
|
|
248
|
-
}),
|
|
249
|
-
]);
|
|
250
|
-
}
|
|
251
|
-
function backendRule(normalizedOptions) {
|
|
252
|
-
const { backend, } = normalizedOptions;
|
|
253
|
-
switch (backend.kind) {
|
|
254
|
-
case backend_types_1.BackendTypes.NESTJS:
|
|
255
|
-
return nestjsBackendRule(normalizedOptions);
|
|
256
|
-
case backend_types_1.BackendTypes.LOCAL:
|
|
257
|
-
return localBackendRule(normalizedOptions);
|
|
258
|
-
case backend_types_1.BackendTypes.OPEN_API:
|
|
259
|
-
return openApiBackendRule(normalizedOptions);
|
|
260
|
-
}
|
|
261
|
-
return (0, schematics_1.noop)();
|
|
262
|
-
}
|
|
263
|
-
// endregion
|
|
264
|
-
function selectColumnRule(normalizedOptions) {
|
|
265
|
-
const { selectColumn, project, feature, shared, componentName, directory, overwrite, } = normalizedOptions;
|
|
266
|
-
if (selectColumn) {
|
|
267
|
-
return (0, schematics_1.chain)([
|
|
268
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
269
|
-
project,
|
|
270
|
-
feature,
|
|
271
|
-
shared,
|
|
272
|
-
name: componentName,
|
|
273
|
-
directory,
|
|
274
|
-
overwrite,
|
|
275
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
276
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, 'SelectRowService', [
|
|
277
|
-
{
|
|
278
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
279
|
-
namedImports: ['SelectRowService'],
|
|
280
|
-
},
|
|
281
|
-
]);
|
|
282
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
283
|
-
provide: 'RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS',
|
|
284
|
-
useValue: ts_morph_2.Writers.object({
|
|
285
|
-
multiple: 'true',
|
|
286
|
-
}),
|
|
287
|
-
}, [
|
|
288
|
-
{
|
|
289
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
290
|
-
namedImports: ['RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS'],
|
|
291
|
-
},
|
|
292
|
-
]);
|
|
293
|
-
(0, schematics_ts_morph_1.AddComponentImport)(sourceFile, 'SelectRowModule', '@rxap/material-table-system');
|
|
294
|
-
},
|
|
295
|
-
}),
|
|
296
|
-
]);
|
|
297
|
-
}
|
|
298
|
-
return (0, schematics_1.noop)();
|
|
299
|
-
}
|
|
300
31
|
function default_1(options) {
|
|
301
|
-
const normalizedOptions = NormalizeTableComponentOptions(options);
|
|
32
|
+
const normalizedOptions = (0, normalize_table_component_options_1.NormalizeTableComponentOptions)(options);
|
|
302
33
|
printOptions(normalizedOptions);
|
|
303
34
|
return function () {
|
|
304
35
|
return (0, schematics_1.chain)([
|
|
305
36
|
() => console.group('\x1b[32m[@rxap/schematics-angular:table-component]\x1b[0m'),
|
|
306
|
-
(0,
|
|
307
|
-
componentRule(normalizedOptions),
|
|
308
|
-
(0,
|
|
37
|
+
(0, table_interface_rule_1.tableInterfaceRule)(normalizedOptions),
|
|
38
|
+
(0, component_rule_1.componentRule)(normalizedOptions),
|
|
39
|
+
(0, table_header_button_rule_1.headerButtonRule)(normalizedOptions),
|
|
309
40
|
(0, table_filter_column_rule_1.TableFilterColumnRule)(normalizedOptions),
|
|
310
|
-
backendRule(normalizedOptions),
|
|
311
|
-
(0,
|
|
312
|
-
(0,
|
|
313
|
-
selectColumnRule(normalizedOptions),
|
|
41
|
+
(0, backend_rule_1.backendRule)(normalizedOptions),
|
|
42
|
+
(0, table_cell_component_rule_1.cellComponentRule)(normalizedOptions),
|
|
43
|
+
(0, table_action_rule_1.actionListRule)(normalizedOptions),
|
|
44
|
+
(0, select_column_rule_1.selectColumnRule)(normalizedOptions),
|
|
314
45
|
(0, schematics_utilities_1.AddPackageJsonDependencyRule)('@rxap/material-table-system', 'latest', { soft: true }),
|
|
315
46
|
(0, schematics_utilities_1.AddPackageJsonDependencyRule)('@rxap/material-form-system', 'latest', { soft: true }),
|
|
316
47
|
(0, schematics_utilities_1.AddPackageJsonDependencyRule)('@rxap/form-system', 'latest', { soft: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/index.ts"],"names":[],"mappings":";;AA+BA,4BAuBC;AAtDD,2DAAmD;AACnD,qEAA0E;AAC1E,8EAAyE;AACzE,4EAAsE;AACtE,4FAAiF;AACjF,0FAAoF;AACpF,0FAA+E;AAC/E,kFAA6E;AAC7E,yDAAqD;AACrD,qDAAiD;AACjD,2FAG6C;AAE7C,6DAAwD;AAExD,SAAS,YAAY,CAAC,OAAwC;IAC5D,IAAA,2CAAmB,EAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAChD,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,wBAAyB,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAE,SAAS,CAAC,CAAC;IACzG,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,wBAAyB,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAE,SAAS,CAAC,CAAC;IACnG,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACnD,CAAC;AACH,CAAC;AAED,mBAAyB,OAA8B;IACrD,MAAM,iBAAiB,GAAG,IAAA,kEAA8B,EAAC,OAAO,CAAC,CAAC;IAClE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO;QACL,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,2DAA2D,CAAC;YAChF,IAAA,yCAAkB,EAAC,iBAAiB,CAAC;YACrC,IAAA,8BAAa,EAAC,iBAAiB,CAAC;YAChC,IAAA,2CAAgB,EAAC,iBAAiB,CAAC;YACnC,IAAA,gDAAqB,EAAC,iBAAiB,CAAC;YACxC,IAAA,0BAAW,EAAC,iBAAiB,CAAC;YAC9B,IAAA,6CAAiB,EAAC,iBAAiB,CAAC;YACpC,IAAA,kCAAc,EAAC,iBAAiB,CAAC;YACjC,IAAA,qCAAgB,EAAC,iBAAiB,CAAC;YACnC,IAAA,mDAA4B,EAAC,6BAA6B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACrF,IAAA,mDAA4B,EAAC,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACpF,IAAA,mDAA4B,EAAC,mBAAmB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAC3E,IAAA,mDAA4B,EAAC,qBAAqB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAC7E,IAAA,mDAA4B,EAAC,gBAAgB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACxE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AngularOptions, NormalizedAngularOptions, NormalizedTableOptions } from '@rxap/schematic-angular';
|
|
2
|
+
import { Normalized } from '@rxap/utilities';
|
|
3
|
+
import { TableComponentOptions } from './schema';
|
|
4
|
+
export interface NormalizedTableComponentOptions extends Readonly<Normalized<Omit<TableComponentOptions, keyof NormalizedTableOptions | keyof AngularOptions>> & NormalizedTableOptions & NormalizedAngularOptions> {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly controllerName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function NormalizeTableComponentOptions(options: Readonly<TableComponentOptions>): NormalizedTableComponentOptions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeTableComponentOptions = NormalizeTableComponentOptions;
|
|
4
|
+
const schematic_angular_1 = require("@rxap/schematic-angular");
|
|
5
|
+
function NormalizeTableComponentOptions(options) {
|
|
6
|
+
const normalizedMinimumTableComponentOptions = (0, schematic_angular_1.NormalizeMinimumTableComponentOptions)(options, schematic_angular_1.IsTableModifiers, '-table');
|
|
7
|
+
(0, schematic_angular_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
|
|
8
|
+
const { name, backend, } = normalizedMinimumTableComponentOptions;
|
|
9
|
+
const normalizedTableOptions = (0, schematic_angular_1.NormalizeTableOptions)(options, name);
|
|
10
|
+
const { openApi } = normalizedTableOptions;
|
|
11
|
+
if (backend.kind === schematic_angular_1.BackendTypes.OPEN_API) {
|
|
12
|
+
if (!openApi) {
|
|
13
|
+
throw new Error('openApi options must be provided. If backend is open-api');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTableOptions));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=normalize-table-component-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-table-component-options.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/normalize-table-component-options.ts"],"names":[],"mappings":";;AAmBA,wEAqBC;AAxCD,+DASiC;AAUjC,SAAgB,8BAA8B,CAC5C,OAAwC;IAExC,MAAM,sCAAsC,GAAG,IAAA,yDAAqC,EAClF,OAAO,EAAE,oCAAgB,EAAE,QAAQ,CAAC,CAAC;IACvC,IAAA,oDAAgC,EAAC,sCAAsC,CAAC,CAAC;IACzE,MAAM,EACJ,IAAI,EACJ,OAAO,GACR,GAAG,sCAAsC,CAAC;IAC3C,MAAM,sBAAsB,GAAG,IAAA,yCAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,MAAM,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC;IAC3C,IAAI,OAAO,CAAC,IAAI,KAAK,gCAAY,CAAC,QAAQ,EAAE,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,iCACf,sCAAsC,GACtC,sBAAsB,EACzB,CAAC;AACL,CAAC"}
|