@rxap/schematic-angular 19.1.1-dev.3 → 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 +24 -0
- package/GUIDES.md +160 -0
- package/README.md +164 -0
- package/package.json +8 -8
- package/src/examples/feature/dashboard/dashboard-accordion/schematics.yaml +226 -0
- package/src/examples/feature/dashboard/dashboard-table/schematic.yml +103 -0
- package/src/examples/feature/dashboard-template/dashboard-template-table/schematic.yml +95 -0
- package/src/examples/feature/machine/machine-accordion/schematic.yaml +83 -0
- package/src/examples/feature/machine/machine-table/schematic.yaml +139 -0
- package/src/examples/feature/machine-definition/machine-definition-details/data-definition-modbus-tcp-table/schematic.yaml +63 -0
- package/src/examples/feature/machine-definition/machine-definition-details/data-definition-opc-ua-table/schematic.yaml +58 -0
- package/src/examples/feature/machine-definition/machine-definition-details/data-definition-open-platform-protocol-table/schematic.yaml +49 -0
- package/src/examples/feature/machine-definition/machine-definition-details/data-definition-s7-iso-on-tcp-table/schematic.yaml +64 -0
- package/src/examples/feature/machine-definition/machine-definition-details/data-trigger-table/schematic.yaml +43 -0
- package/src/examples/feature/machine-definition/machine-definition-details/message-group-table/schematic.yaml +41 -0
- package/src/examples/feature/machine-definition/machine-definition-details/message-trigger-connection-table/schematic.yaml +38 -0
- package/src/examples/feature/machine-definition/machine-definition-details/physical-unit-table/schematic.yaml +41 -0
- package/src/examples/feature/machine-definition/machine-definition-table/schematic.yaml +107 -0
- package/src/examples/feature/node-red/node-red-table/schematic.yaml +114 -0
- package/src/examples/feature/report/report-accordion/schematic.yaml +318 -0
- package/src/examples/feature/report/report-table/schematic.yaml +66 -0
- package/src/examples/feature/service-network/company-accordion/schematic.yaml +119 -0
- package/src/examples/feature/service-network/service-network-accordion/schematic.yml +65 -0
- package/src/examples/feature/thing/thing-table/schematic.yml +115 -0
- package/src/examples/feature/user/user-table/schematic.yaml +99 -0
- package/src/examples/schematics.yaml +18 -0
- package/src/guides/backend.md +49 -0
- package/src/guides/form-component.md +58 -0
- package/src/guides/form-control.md +269 -0
- package/src/guides/header-button.md +57 -0
- package/src/guides/table-action.md +120 -0
- package/src/guides/table-column.md +185 -0
- package/src/guides/table-component.md +51 -0
- package/src/guides/table-filter.md +69 -0
- package/src/guides/table-modifiers.md +22 -0
- package/src/guides/upstream.md +49 -0
- 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 -52
- 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
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizedTreeTableComponentOptions = NormalizedTreeTableComponentOptions;
|
|
4
|
-
exports.BuildTreeTableGetRootOperationId = BuildTreeTableGetRootOperationId;
|
|
5
|
-
exports.BuildTreeTableGeChildrenOperationId = BuildTreeTableGeChildrenOperationId;
|
|
6
3
|
exports.default = default_1;
|
|
7
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
function NormalizedTreeTableComponentOptions(options) {
|
|
19
|
-
const normalizedMinimumTableComponentOptions = (0, minimum_table_component_options_1.NormalizeMinimumTableComponentOptions)(options, tree_table_options_1.IsTreeTableModifiers, '-tree-table');
|
|
20
|
-
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
|
|
21
|
-
const { name } = normalizedMinimumTableComponentOptions;
|
|
22
|
-
const normalizedTreeTableOptions = (0, tree_table_options_1.NormalizeTreeTableOptions)(options, name);
|
|
23
|
-
return Object.freeze(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTreeTableOptions));
|
|
24
|
-
}
|
|
5
|
+
const print_angular_options_1 = require("../../../lib/print-angular-options");
|
|
6
|
+
const table_action_rule_1 = require("../../../lib/rules/table-action-rule");
|
|
7
|
+
const table_cell_component_rule_1 = require("../../../lib/rules/table-cell-component-rule");
|
|
8
|
+
const table_filter_column_rule_1 = require("../../../lib/rules/table-filter-column-rule");
|
|
9
|
+
const table_header_button_rule_1 = require("../../../lib/rules/table-header-button-rule");
|
|
10
|
+
const table_interface_rule_1 = require("../../../lib/rules/table-interface-rule");
|
|
11
|
+
const backend_rule_1 = require("./backend/backend-rule");
|
|
12
|
+
const component_rule_1 = require("./component-rule");
|
|
13
|
+
const normalized_tree_table_component_options_1 = require("./normalized-tree-table-component-options");
|
|
14
|
+
const tree_table_method_rule_1 = require("./tree-table-method-rule");
|
|
25
15
|
function printOptions(options) {
|
|
26
|
-
(0,
|
|
16
|
+
(0, print_angular_options_1.PrintAngularOptions)('tree-table-component', options);
|
|
27
17
|
if (options.columnList.length) {
|
|
28
18
|
console.log(`=== columns: \x1b[34m${options.columnList.map((item) => item.name).join(', ')}\x1b[0m`);
|
|
29
19
|
}
|
|
@@ -37,299 +27,19 @@ function printOptions(options) {
|
|
|
37
27
|
console.log('=== actions: \x1b[31mempty\x1b[0m');
|
|
38
28
|
}
|
|
39
29
|
}
|
|
40
|
-
function componentRule(normalizedOptions) {
|
|
41
|
-
const { project, feature, shared, componentName, directory, overwrite, modifiers, columnList, filterList, } = normalizedOptions;
|
|
42
|
-
const templateOptions = Object.assign(Object.assign({}, normalizedOptions), { hasNavigationBackHeader: modifiers.includes(tree_table_options_1.TreeTableModifiers.NAVIGATION_BACK_HEADER), hasWithoutTitle: modifiers.includes(tree_table_options_1.TreeTableModifiers.WITHOUT_TITLE), hasFilter: filterList.length > 0 || columnList.some((c) => c.hasFilter), hasCustomFilter: filterList.length > 0, hasColumnWithFilter: columnList.some((c) => c.hasFilter), exportDefault: !!feature && !directory });
|
|
43
|
-
return (0, schematics_1.chain)([
|
|
44
|
-
() => console.log(`Coerce the table component ${componentName}`),
|
|
45
|
-
(0, coerce_tree_table_component_1.CoerceTreeTableComponentRule)({
|
|
46
|
-
table: normalizedOptions,
|
|
47
|
-
project,
|
|
48
|
-
feature,
|
|
49
|
-
shared,
|
|
50
|
-
name: componentName,
|
|
51
|
-
directory,
|
|
52
|
-
overwrite,
|
|
53
|
-
template: {
|
|
54
|
-
options: templateOptions,
|
|
55
|
-
},
|
|
56
|
-
handlebars: {
|
|
57
|
-
partials: {
|
|
58
|
-
matFormField: (0, load_handlebars_template_1.LoadMatFormFieldHandlebarsTemplate)(),
|
|
59
|
-
pipe: (0, load_handlebars_template_1.LoadPipeHandlebarsTemplate)(),
|
|
60
|
-
cssClass: (0, load_handlebars_template_1.LoadCssClassHandlebarsTemplate)(),
|
|
61
|
-
matColumnDef: (0, load_handlebars_template_1.LoadMatColumnDefHandlebarsTemplate)(),
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
65
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
66
|
-
provide: 'TABLE_DATA_SOURCE',
|
|
67
|
-
useClass: 'TreeTableDataSource',
|
|
68
|
-
}, [
|
|
69
|
-
{
|
|
70
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
71
|
-
namedImports: ['TreeTableDataSource'],
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
moduleSpecifier: '@rxap/material-table-system',
|
|
75
|
-
namedImports: ['TABLE_DATA_SOURCE'],
|
|
76
|
-
},
|
|
77
|
-
]);
|
|
78
|
-
},
|
|
79
|
-
}),
|
|
80
|
-
]);
|
|
81
|
-
}
|
|
82
|
-
// region backend
|
|
83
|
-
function BuildTreeTableGetRootOperationId(normalizedOptions) {
|
|
84
|
-
return (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-root', (0, schematics_ts_morph_1.BuildNestControllerName)(normalizedOptions));
|
|
85
|
-
}
|
|
86
|
-
function BuildTreeTableGeChildrenOperationId(normalizedOptions) {
|
|
87
|
-
return (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-children', (0, schematics_ts_morph_1.BuildNestControllerName)(normalizedOptions));
|
|
88
|
-
}
|
|
89
|
-
function nestjsBackendRule(normalizedOptions) {
|
|
90
|
-
const { nestModule, project, feature, shared, componentName, directory, overwrite, scope, controllerName, propertyList, identifier, upstream, backend, } = normalizedOptions;
|
|
91
|
-
const getRootOperationId = BuildTreeTableGetRootOperationId(normalizedOptions);
|
|
92
|
-
const getChildrenOperationId = BuildTreeTableGeChildrenOperationId(normalizedOptions);
|
|
93
|
-
return (0, schematics_1.chain)([
|
|
94
|
-
() => console.log(`Coerce the get root operation ${getRootOperationId}`),
|
|
95
|
-
(0, schematics_ts_morph_1.CoerceGetRootOperation)({
|
|
96
|
-
controllerName,
|
|
97
|
-
nestModule,
|
|
98
|
-
project,
|
|
99
|
-
feature,
|
|
100
|
-
backend,
|
|
101
|
-
shared,
|
|
102
|
-
propertyList,
|
|
103
|
-
upstream,
|
|
104
|
-
overwrite,
|
|
105
|
-
}),
|
|
106
|
-
() => console.log(`Coerce the get children operation ${getChildrenOperationId}`),
|
|
107
|
-
(0, schematics_ts_morph_1.CoerceGetChildrenOperation)({
|
|
108
|
-
controllerName,
|
|
109
|
-
nestModule,
|
|
110
|
-
project,
|
|
111
|
-
feature,
|
|
112
|
-
backend,
|
|
113
|
-
shared,
|
|
114
|
-
skipCoerce: true,
|
|
115
|
-
propertyList,
|
|
116
|
-
upstream,
|
|
117
|
-
overwrite,
|
|
118
|
-
}),
|
|
119
|
-
() => console.log(`Coerce the tree table root proxy remote method class`),
|
|
120
|
-
(0, schematics_ts_morph_1.CoerceTreeTableRootProxyRemoteMethodClass)({
|
|
121
|
-
scope,
|
|
122
|
-
project,
|
|
123
|
-
feature,
|
|
124
|
-
shared,
|
|
125
|
-
directory,
|
|
126
|
-
getRootOperationId,
|
|
127
|
-
identifier,
|
|
128
|
-
}),
|
|
129
|
-
() => console.log(`Coerce the tree table children proxy remote method class`),
|
|
130
|
-
(0, schematics_ts_morph_1.CoerceTreeTableChildrenProxyRemoteMethodClass)({
|
|
131
|
-
scope,
|
|
132
|
-
project,
|
|
133
|
-
feature,
|
|
134
|
-
shared,
|
|
135
|
-
directory,
|
|
136
|
-
getChildrenOperationId,
|
|
137
|
-
}),
|
|
138
|
-
() => console.log(`Coerce the tree table providers`),
|
|
139
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
140
|
-
project,
|
|
141
|
-
feature,
|
|
142
|
-
shared,
|
|
143
|
-
name: componentName,
|
|
144
|
-
directory,
|
|
145
|
-
overwrite,
|
|
146
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
147
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
148
|
-
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD',
|
|
149
|
-
useClass: 'TreeTableRootProxyMethod',
|
|
150
|
-
}, [
|
|
151
|
-
{
|
|
152
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
153
|
-
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD'],
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
moduleSpecifier: './tree-table-root-proxy.method',
|
|
157
|
-
namedImports: ['TreeTableRootProxyMethod'],
|
|
158
|
-
},
|
|
159
|
-
]);
|
|
160
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
161
|
-
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD',
|
|
162
|
-
useClass: 'TreeTableChildrenProxyMethod',
|
|
163
|
-
}, [
|
|
164
|
-
{
|
|
165
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
166
|
-
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD'],
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
moduleSpecifier: './tree-table-children-proxy.method',
|
|
170
|
-
namedImports: ['TreeTableChildrenProxyMethod'],
|
|
171
|
-
},
|
|
172
|
-
]);
|
|
173
|
-
},
|
|
174
|
-
}),
|
|
175
|
-
]);
|
|
176
|
-
}
|
|
177
|
-
function localBackendRule(normalizedOptions) {
|
|
178
|
-
const { project, feature, shared, componentName, directory, overwrite, name, } = normalizedOptions;
|
|
179
|
-
return (0, schematics_1.chain)([
|
|
180
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
181
|
-
project,
|
|
182
|
-
feature,
|
|
183
|
-
shared,
|
|
184
|
-
name: componentName,
|
|
185
|
-
directory,
|
|
186
|
-
overwrite,
|
|
187
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
188
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
189
|
-
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD',
|
|
190
|
-
useClass: `${(0, utilities_1.classify)(name)}RootTableMethod`,
|
|
191
|
-
}, [
|
|
192
|
-
{
|
|
193
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
194
|
-
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD'],
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
moduleSpecifier: `./${name}-root-table.method`,
|
|
198
|
-
namedImports: [`${(0, utilities_1.classify)(name)}RootTableMethod`],
|
|
199
|
-
},
|
|
200
|
-
]);
|
|
201
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
202
|
-
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD',
|
|
203
|
-
useClass: `${(0, utilities_1.classify)(name)}ChildTableMethod`,
|
|
204
|
-
}, [
|
|
205
|
-
{
|
|
206
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
207
|
-
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD'],
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
moduleSpecifier: `./${name}-child-table.method`,
|
|
211
|
-
namedImports: [`${(0, utilities_1.classify)(name)}ChildTableMethod`],
|
|
212
|
-
},
|
|
213
|
-
]);
|
|
214
|
-
},
|
|
215
|
-
}),
|
|
216
|
-
() => console.log(`Coerce local backend root method`),
|
|
217
|
-
(0, schematics_ts_morph_1.CoerceMethodClass)({
|
|
218
|
-
name: `${name}-root-table`,
|
|
219
|
-
project,
|
|
220
|
-
feature,
|
|
221
|
-
shared,
|
|
222
|
-
directory,
|
|
223
|
-
overwrite,
|
|
224
|
-
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
225
|
-
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
|
|
226
|
-
{
|
|
227
|
-
moduleSpecifier: `./${name}-table`,
|
|
228
|
-
namedImports: [`I${(0, utilities_1.classify)(name)}Table`],
|
|
229
|
-
},
|
|
230
|
-
]);
|
|
231
|
-
return {
|
|
232
|
-
parameters: [],
|
|
233
|
-
statements: ['return [];'],
|
|
234
|
-
returnType: `I${(0, utilities_1.classify)(name)}Table[]`,
|
|
235
|
-
};
|
|
236
|
-
},
|
|
237
|
-
}),
|
|
238
|
-
() => console.log(`Coerce local backend child method`),
|
|
239
|
-
(0, schematics_ts_morph_1.CoerceMethodClass)({
|
|
240
|
-
name: `${name}-child-table`,
|
|
241
|
-
project,
|
|
242
|
-
feature,
|
|
243
|
-
shared,
|
|
244
|
-
directory,
|
|
245
|
-
overwrite,
|
|
246
|
-
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
247
|
-
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
|
|
248
|
-
{
|
|
249
|
-
moduleSpecifier: '@rxap/data-structure-tree',
|
|
250
|
-
namedImports: ['Node'],
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
moduleSpecifier: `./${name}-table`,
|
|
254
|
-
namedImports: [`I${(0, utilities_1.classify)(name)}Table`],
|
|
255
|
-
},
|
|
256
|
-
]);
|
|
257
|
-
return {
|
|
258
|
-
parameters: [
|
|
259
|
-
{
|
|
260
|
-
name: 'node',
|
|
261
|
-
type: `Node<I${(0, utilities_1.classify)(name)}Table>`,
|
|
262
|
-
},
|
|
263
|
-
],
|
|
264
|
-
statements: ['return [];'],
|
|
265
|
-
returnType: `I${(0, utilities_1.classify)(name)}Table[]`,
|
|
266
|
-
};
|
|
267
|
-
},
|
|
268
|
-
}),
|
|
269
|
-
]);
|
|
270
|
-
}
|
|
271
|
-
function backendRule(normalizedOptions) {
|
|
272
|
-
const { backend, } = normalizedOptions;
|
|
273
|
-
switch (backend.kind) {
|
|
274
|
-
case backend_types_1.BackendTypes.NESTJS:
|
|
275
|
-
return nestjsBackendRule(normalizedOptions);
|
|
276
|
-
case backend_types_1.BackendTypes.LOCAL:
|
|
277
|
-
return localBackendRule(normalizedOptions);
|
|
278
|
-
}
|
|
279
|
-
return (0, schematics_1.noop)();
|
|
280
|
-
}
|
|
281
|
-
// endregion
|
|
282
|
-
function treeTableMethodRule(normalizedOptions) {
|
|
283
|
-
const { project, feature, shared, componentName, directory, overwrite, tableRootMethod, tableChildMethod, } = normalizedOptions;
|
|
284
|
-
if (tableRootMethod && tableChildMethod) {
|
|
285
|
-
return (0, schematics_1.chain)([
|
|
286
|
-
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
287
|
-
project,
|
|
288
|
-
feature,
|
|
289
|
-
shared,
|
|
290
|
-
name: componentName,
|
|
291
|
-
directory,
|
|
292
|
-
overwrite,
|
|
293
|
-
tsMorphTransform: (project, [sourceFile]) => {
|
|
294
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
295
|
-
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD',
|
|
296
|
-
useClass: tableRootMethod.name,
|
|
297
|
-
}, [
|
|
298
|
-
{
|
|
299
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
300
|
-
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD'],
|
|
301
|
-
},
|
|
302
|
-
(0, ts_morph_1.TypeImportToImportStructure)(tableRootMethod),
|
|
303
|
-
]);
|
|
304
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
305
|
-
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD',
|
|
306
|
-
useClass: tableChildMethod.name,
|
|
307
|
-
}, [
|
|
308
|
-
{
|
|
309
|
-
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
310
|
-
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD'],
|
|
311
|
-
},
|
|
312
|
-
(0, ts_morph_1.TypeImportToImportStructure)(tableChildMethod),
|
|
313
|
-
]);
|
|
314
|
-
},
|
|
315
|
-
}),
|
|
316
|
-
]);
|
|
317
|
-
}
|
|
318
|
-
return (0, schematics_1.noop)();
|
|
319
|
-
}
|
|
320
30
|
function default_1(options) {
|
|
321
|
-
const normalizedOptions = NormalizedTreeTableComponentOptions(options);
|
|
31
|
+
const normalizedOptions = (0, normalized_tree_table_component_options_1.NormalizedTreeTableComponentOptions)(options);
|
|
322
32
|
printOptions(normalizedOptions);
|
|
323
33
|
return () => {
|
|
324
34
|
return (0, schematics_1.chain)([
|
|
325
|
-
(0,
|
|
326
|
-
componentRule(normalizedOptions),
|
|
35
|
+
(0, table_interface_rule_1.tableInterfaceRule)(normalizedOptions, { operationName: 'get-root', typePath: '[number]' }),
|
|
36
|
+
(0, component_rule_1.componentRule)(normalizedOptions),
|
|
327
37
|
(0, table_filter_column_rule_1.TableFilterColumnRule)(normalizedOptions, 'tree-table'),
|
|
328
|
-
(0,
|
|
329
|
-
(0,
|
|
330
|
-
(0,
|
|
331
|
-
backendRule(normalizedOptions),
|
|
332
|
-
treeTableMethodRule(normalizedOptions),
|
|
38
|
+
(0, table_action_rule_1.actionListRule)(normalizedOptions),
|
|
39
|
+
(0, table_cell_component_rule_1.cellComponentRule)(normalizedOptions),
|
|
40
|
+
(0, table_header_button_rule_1.headerButtonRule)(normalizedOptions),
|
|
41
|
+
(0, backend_rule_1.backendRule)(normalizedOptions),
|
|
42
|
+
(0, tree_table_method_rule_1.treeTableMethodRule)(normalizedOptions),
|
|
333
43
|
]);
|
|
334
44
|
};
|
|
335
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/index.ts"],"names":[],"mappings":";;AA2BA,4BAgBC;AA3CD,2DAAmD;AACnD,8EAAyE;AACzE,4EAAsE;AACtE,4FAAiF;AACjF,0FAAoF;AACpF,0FAA+E;AAC/E,kFAA6E;AAC7E,yDAAqD;AACrD,qDAAiD;AACjD,uGAAgG;AAEhG,qEAA+D;AAE/D,SAAS,YAAY,CAAC,OAA4C;IAChE,IAAA,2CAAmB,EAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACrD,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,OAAkC;IACzD,MAAM,iBAAiB,GAAG,IAAA,6EAAmC,EAAC,OAAO,CAAC,CAAC;IACvE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,yCAAkB,EAAC,iBAAiB,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;YAC1F,IAAA,8BAAa,EAAC,iBAAiB,CAAC;YAChC,IAAA,gDAAqB,EAAC,iBAAiB,EAAE,YAAY,CAAC;YACtD,IAAA,kCAAc,EAAC,iBAAiB,CAAC;YACjC,IAAA,6CAAiB,EAAC,iBAAiB,CAAC;YACpC,IAAA,2CAAgB,EAAC,iBAAiB,CAAC;YACnC,IAAA,0BAAW,EAAC,iBAAiB,CAAC;YAC9B,IAAA,4CAAmB,EAAC,iBAAiB,CAAC;SACvC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
package/src/schematics/table/tree-table-component/normalized-tree-table-component-options.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AngularOptions, NormalizedAngularOptions, NormalizedTreeTableOptions } from '@rxap/schematic-angular';
|
|
2
|
+
import { Normalized } from '@rxap/utilities';
|
|
3
|
+
import { TreeTableComponentOptions } from './schema';
|
|
4
|
+
export interface NormalizedTreeTableComponentOptions extends Readonly<Normalized<Omit<TreeTableComponentOptions, keyof NormalizedTreeTableOptions | keyof AngularOptions>> & NormalizedTreeTableOptions & NormalizedAngularOptions> {
|
|
5
|
+
name: string;
|
|
6
|
+
controllerName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function NormalizedTreeTableComponentOptions(options: Readonly<TreeTableComponentOptions>): Readonly<NormalizedTreeTableComponentOptions>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizedTreeTableComponentOptions = NormalizedTreeTableComponentOptions;
|
|
4
|
+
const schematic_angular_1 = require("@rxap/schematic-angular");
|
|
5
|
+
function NormalizedTreeTableComponentOptions(options) {
|
|
6
|
+
const normalizedMinimumTableComponentOptions = (0, schematic_angular_1.NormalizeMinimumTableComponentOptions)(options, schematic_angular_1.IsTreeTableModifiers, '-tree-table');
|
|
7
|
+
(0, schematic_angular_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
|
|
8
|
+
const { name } = normalizedMinimumTableComponentOptions;
|
|
9
|
+
const normalizedTreeTableOptions = (0, schematic_angular_1.NormalizeTreeTableOptions)(options, name);
|
|
10
|
+
return Object.freeze(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTreeTableOptions));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=normalized-tree-table-component-options.js.map
|
package/src/schematics/table/tree-table-component/normalized-tree-table-component-options.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalized-tree-table-component-options.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/normalized-tree-table-component-options.ts"],"names":[],"mappings":";;AAkBA,kFAYC;AA9BD,+DAQiC;AAUjC,SAAgB,mCAAmC,CACjD,OAA4C;IAE5C,MAAM,sCAAsC,GAAG,IAAA,yDAAqC,EAClF,OAAO,EAAE,wCAAoB,EAAE,aAAa,CAAC,CAAC;IAChD,IAAA,oDAAgC,EAAC,sCAAsC,CAAC,CAAC;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,sCAAsC,CAAC;IACxD,MAAM,0BAA0B,GAAG,IAAA,6CAAyB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC5E,OAAO,MAAM,CAAC,MAAM,iCACf,sCAAsC,GACtC,0BAA0B,EAC7B,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.treeTableMethodRule = treeTableMethodRule;
|
|
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 treeTableMethodRule(normalizedOptions) {
|
|
8
|
+
const { project, feature, shared, componentName, directory, overwrite, tableRootMethod, tableChildMethod, } = normalizedOptions;
|
|
9
|
+
if (tableRootMethod && tableChildMethod) {
|
|
10
|
+
return (0, schematics_1.chain)([
|
|
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
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
20
|
+
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD',
|
|
21
|
+
useClass: tableRootMethod.name,
|
|
22
|
+
}, [
|
|
23
|
+
{
|
|
24
|
+
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
25
|
+
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_ROOT_METHOD'],
|
|
26
|
+
},
|
|
27
|
+
(0, ts_morph_1.TypeImportToImportStructure)(tableRootMethod),
|
|
28
|
+
]);
|
|
29
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
|
|
30
|
+
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD',
|
|
31
|
+
useClass: tableChildMethod.name,
|
|
32
|
+
}, [
|
|
33
|
+
{
|
|
34
|
+
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
35
|
+
namedImports: ['RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_METHOD'],
|
|
36
|
+
},
|
|
37
|
+
(0, ts_morph_1.TypeImportToImportStructure)(tableChildMethod),
|
|
38
|
+
]);
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
]);
|
|
42
|
+
}
|
|
43
|
+
return (0, schematics_1.noop)();
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=tree-table-method-rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-table-method-rule.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/tree-table-method-rule.ts"],"names":[],"mappings":";;AAeA,kDA6DC;AA5ED,2DAGoC;AACpC,mEAGmC;AACnC,6CAA6D;AAO7D,SAAgB,mBAAmB,CAAC,iBAAsD;IAExF,MAAM,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,aAAa,EACb,SAAS,EACT,SAAS,EACT,eAAe,EACf,gBAAgB,GACjB,GAAG,iBAAiB,CAAC;IAEtB,IAAI,eAAe,IAAI,gBAAgB,EAAE,CAAC;QACxC,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,yCAAmB,EAAC;gBAClB,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,IAAI,EAAE,aAAa;gBACnB,SAAS;gBACT,SAAS;gBACT,gBAAgB,EAAE,CAChB,OAAgB,EAChB,CAAE,UAAU,CAAkB,EAC9B,EAAE;oBACF,IAAA,0CAAoB,EAClB,UAAU,EACV;wBACE,OAAO,EAAE,yCAAyC;wBAClD,QAAQ,EAAE,eAAe,CAAC,IAAI;qBAC/B,EACD;wBACE;4BACE,eAAe,EAAE,8BAA8B;4BAC/C,YAAY,EAAE,CAAE,yCAAyC,CAAE;yBAC5D;wBACD,IAAA,sCAA2B,EAAC,eAAe,CAAC;qBAC7C,CACF,CAAC;oBACF,IAAA,0CAAoB,EAClB,UAAU,EACV;wBACE,OAAO,EAAE,6CAA6C;wBACtD,QAAQ,EAAE,gBAAgB,CAAC,IAAI;qBAChC,EACD;wBACE;4BACE,eAAe,EAAE,8BAA8B;4BAC/C,YAAY,EAAE,CAAE,6CAA6C,CAAE;yBAChE;wBACD,IAAA,sCAA2B,EAAC,gBAAgB,CAAC;qBAC9C,CACF,CAAC;gBACJ,CAAC;aACF,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAA,iBAAI,GAAE,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`tree-component minimal: file-tree 1`] = `
|
|
4
|
+
[
|
|
5
|
+
"/angular.json",
|
|
6
|
+
"/api/app/project.json",
|
|
7
|
+
"/api/app/src/app/app.module.ts",
|
|
8
|
+
"/api/app/src/main.ts",
|
|
9
|
+
"/api/app/tsconfig.app.json",
|
|
10
|
+
"/api/app/tsconfig.json",
|
|
11
|
+
"/api/lib/project.json",
|
|
12
|
+
"/api/lib/src/index.ts",
|
|
13
|
+
"/api/lib/src/lib/api-lib.module.ts",
|
|
14
|
+
"/api/lib/tsconfig.json",
|
|
15
|
+
"/api/lib/tsconfig.lib.json",
|
|
16
|
+
"/nx.json",
|
|
17
|
+
"/package.json",
|
|
18
|
+
"/tsconfig.base.json",
|
|
19
|
+
"/ui/app/project.json",
|
|
20
|
+
"/ui/app/src/app/app.module.ts",
|
|
21
|
+
"/ui/app/src/app/app.routes.ts",
|
|
22
|
+
"/ui/app/src/main.ts",
|
|
23
|
+
"/ui/app/tsconfig.app.json",
|
|
24
|
+
"/ui/app/tsconfig.json",
|
|
25
|
+
"/ui/lib/project.json",
|
|
26
|
+
"/ui/lib/src/index.ts",
|
|
27
|
+
"/ui/lib/src/lib/test-tree/dtos/test-tree-tree-node.dto.ts",
|
|
28
|
+
"/ui/lib/src/lib/test-tree/test-tree.controller.ts",
|
|
29
|
+
"/ui/lib/src/lib/test-tree/test-tree.module.ts",
|
|
30
|
+
"/ui/lib/src/lib/ui-lib.module.ts",
|
|
31
|
+
"/ui/lib/tsconfig.json",
|
|
32
|
+
"/ui/lib/tsconfig.lib.json",
|
|
33
|
+
]
|
|
34
|
+
`;
|
package/src/schematics/tree-component/__snapshots__/normalize-tree-component-options.spec.ts.snap
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`NormalizeTreeComponentOptions should normalize complex tree component options 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"backend": {
|
|
6
|
+
"kind": "none",
|
|
7
|
+
},
|
|
8
|
+
"componentName": "file-explorer-tree",
|
|
9
|
+
"context": null,
|
|
10
|
+
"controllerName": "ExplorerController",
|
|
11
|
+
"directory": null,
|
|
12
|
+
"feature": null,
|
|
13
|
+
"fullTree": false,
|
|
14
|
+
"modifiers": [
|
|
15
|
+
"drag-drop",
|
|
16
|
+
],
|
|
17
|
+
"name": "file-explorer",
|
|
18
|
+
"nestModule": null,
|
|
19
|
+
"openApi": null,
|
|
20
|
+
"overwrite": false,
|
|
21
|
+
"prefix": null,
|
|
22
|
+
"project": "ui-lib",
|
|
23
|
+
"replace": false,
|
|
24
|
+
"scope": null,
|
|
25
|
+
"shared": false,
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
exports[`NormalizeTreeComponentOptions should normalize minimal tree component options 1`] = `
|
|
30
|
+
{
|
|
31
|
+
"backend": {
|
|
32
|
+
"kind": "none",
|
|
33
|
+
},
|
|
34
|
+
"componentName": "test-tree",
|
|
35
|
+
"context": null,
|
|
36
|
+
"controllerName": "test-tree",
|
|
37
|
+
"directory": null,
|
|
38
|
+
"feature": null,
|
|
39
|
+
"fullTree": true,
|
|
40
|
+
"modifiers": [],
|
|
41
|
+
"name": "test-tree",
|
|
42
|
+
"nestModule": null,
|
|
43
|
+
"openApi": null,
|
|
44
|
+
"overwrite": false,
|
|
45
|
+
"prefix": null,
|
|
46
|
+
"project": "ui-lib",
|
|
47
|
+
"replace": false,
|
|
48
|
+
"scope": null,
|
|
49
|
+
"shared": false,
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import { Normalized } from '@rxap/utilities';
|
|
2
|
-
import { AngularOptions, NormalizedAngularOptions } from '../../lib/angular-options';
|
|
3
1
|
import { TreeComponentOptions } from './schema';
|
|
4
|
-
export interface NormalizedTreeComponentOptions extends Readonly<Normalized<Omit<TreeComponentOptions, keyof AngularOptions>> & NormalizedAngularOptions> {
|
|
5
|
-
name: string;
|
|
6
|
-
controllerName: string;
|
|
7
|
-
componentName: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function NormalizeTreeComponentOptions(options: TreeComponentOptions): NormalizedTreeComponentOptions;
|
|
10
2
|
export default function (options: TreeComponentOptions): () => import("@angular-devkit/schematics").Rule;
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizeTreeComponentOptions = NormalizeTreeComponentOptions;
|
|
4
3
|
exports.default = default_1;
|
|
5
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
5
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
|
-
const
|
|
8
|
-
const angular_options_1 = require("../../lib/angular-options");
|
|
9
|
-
function NormalizeTreeComponentOptions(options) {
|
|
10
|
-
var _a, _b, _c;
|
|
11
|
-
const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
|
|
12
|
-
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
|
|
13
|
-
const { name } = normalizedAngularOptions;
|
|
14
|
-
const componentName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(name), '-tree');
|
|
15
|
-
return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { modifiers: (_a = options.modifiers) !== null && _a !== void 0 ? _a : [], controllerName: (_b = options.controllerName) !== null && _b !== void 0 ? _b : componentName, componentName, fullTree: (_c = options.fullTree) !== null && _c !== void 0 ? _c : true }));
|
|
16
|
-
}
|
|
6
|
+
const normalize_tree_component_options_1 = require("./normalize-tree-component-options");
|
|
17
7
|
function default_1(options) {
|
|
18
|
-
const normalizedOptions = NormalizeTreeComponentOptions(options);
|
|
8
|
+
const normalizedOptions = (0, normalize_tree_component_options_1.NormalizeTreeComponentOptions)(options);
|
|
19
9
|
const { fullTree, project, feature, shared, controllerName, overwrite, backend, } = normalizedOptions;
|
|
20
10
|
return () => {
|
|
21
11
|
return (0, schematics_1.chain)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/index.ts"],"names":[],"mappings":";;AAKA,4BA4BC;AAjCD,2DAAmD;AACnD,mEAAoE;AACpE,yFAAmF;AAGnF,mBAAyB,OAA6B;IACpD,MAAM,iBAAiB,GAAG,IAAA,gEAA6B,EAAC,OAAO,CAAC,CAAC;IACjE,MAAM,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,MAAM,EACN,cAAc,EACd,SAAS,EACT,OAAO,GACR,GACC,iBAAiB,CAAC;IAIpB,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,6CAAuB,EAAC;gBACtB,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,OAAO;gBACP,cAAc;gBACd,QAAQ;gBACR,SAAS;aACV,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AngularOptions, NormalizedAngularOptions } from '@rxap/schematic-angular';
|
|
2
|
+
import { Normalized } from '@rxap/utilities';
|
|
3
|
+
import { TreeComponentOptions } from './schema';
|
|
4
|
+
export interface NormalizedTreeComponentOptions extends Readonly<Normalized<Omit<TreeComponentOptions, keyof AngularOptions>> & NormalizedAngularOptions> {
|
|
5
|
+
name: string;
|
|
6
|
+
controllerName: string;
|
|
7
|
+
componentName: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function NormalizeTreeComponentOptions(options: TreeComponentOptions): NormalizedTreeComponentOptions;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeTreeComponentOptions = NormalizeTreeComponentOptions;
|
|
4
|
+
const schematic_angular_1 = require("@rxap/schematic-angular");
|
|
5
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
+
function NormalizeTreeComponentOptions(options) {
|
|
7
|
+
var _a, _b, _c;
|
|
8
|
+
const normalizedAngularOptions = (0, schematic_angular_1.NormalizeAngularOptions)(options);
|
|
9
|
+
(0, schematic_angular_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
|
|
10
|
+
const { name } = normalizedAngularOptions;
|
|
11
|
+
const componentName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(name), '-tree');
|
|
12
|
+
return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { modifiers: (_a = options.modifiers) !== null && _a !== void 0 ? _a : [], controllerName: (_b = options.controllerName) !== null && _b !== void 0 ? _b : componentName, componentName, fullTree: (_c = options.fullTree) !== null && _c !== void 0 ? _c : true }));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=normalize-tree-component-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-tree-component-options.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/normalize-tree-component-options.ts"],"names":[],"mappings":";;AAoBA,sEAcC;AAlCD,+DAKiC;AACjC,qEAGoC;AAWpC,SAAgB,6BAA6B,CAC3C,OAA6B;;IAE7B,MAAM,wBAAwB,GAAG,IAAA,2CAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,oDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EAAE,IAAI,EAAE,GAAG,wBAAwB,CAAC;IAC1C,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,MAAM,iCACf,wBAAwB,KAC3B,SAAS,EAAE,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAClC,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,aAAa,EACvD,aAAa,EACb,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI,IAClC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert-table-component-exists.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/assert-table-component-exists.ts"],"names":[],"mappings":";;AAaA,gEAmBC;AAhCD,2DAGoC;AACpC,mEAA8D;AAS9D,SAAgB,0BAA0B,CAAC,IAAU,EAAE,OAA0C;IAC/F,MAAM,EACJ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,GACV,GAAG,OAAO,CAAC;IACZ,IACE,CAAC,IAAA,uCAAiB,EAAC,IAAI,EAAE;QACvB,OAAO;QACP,OAAO;QACP,SAAS;QACT,IAAI,EAAE,SAAS;KAChB,CAAC,EACF,CAAC;QACD,MAAM,IAAI,gCAAmB,CAC3B,uCAAwC,SAAU,qBAAsB,OAAQ,kBAAmB,OAAQ,oBAAqB,SAAU,IAAI,CAC/I,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-accordion-component.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/coerce-accordion-component.ts"],"names":[],"mappings":";;AAyBA,oEAqFC;AA9GD,mEAImC;AACnC,6CAKwB;AACxB,+CAKyB;AACzB,uCAAiC;AAQjC,SAAgB,4BAA4B,CAAC,OAAwC;IAEnF,MAAM,EACJ,SAAS,EAAE,EACT,aAAa,EACb,QAAQ,EACR,UAAU,EACV,cAAc,EACd,MAAM,EACN,UAAU,GACX,EACD,UAAU,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,EAAE,EAClC,gBAAgB,GAAG,gBAAI,GACxB,GAAG,OAAO,CAAC;IAEZ,OAAO,IAAA,yCAAmB,kCACrB,OAAO,KACV,gBAAgB,EAAE,CAAC,OAAO,EAAE,CAAE,UAAU,CAAE,EAAE,CAAE,gBAAgB,CAAE,EAAE,EAAE;YAElE,yBAAyB;YACzB,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC,CAAC;YACpH,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,eAAe,EAAE,6BAA6B,EAAE,CAAC,CAAC;YACzH,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,eAAe,EAAE,gCAAgC,EAAE,CAAC,CAAC;YAC7H,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,eAAe,EAAE,6BAA6B,EAAE,CAAC,CAAC;YACxH,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC,CAAC;YACnG,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC,CAAC;YAC9F,KAAK,MAAM,aAAa,IAAI,UAAU,EAAE,CAAC;gBACvC,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;YACzD,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACX,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,eAAe,EAAE,2BAA2B,EAAE,CAAC,CAAC;gBACpH,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,eAAe,EAAE,2BAA2B,EAAE,CAAC,CAAC;gBACpH,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;oBAC9C,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;gBACzD,CAAC;YACH,CAAC;YACD,IAAI,cAAc,EAAE,CAAC;gBACnB,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,eAAe,EAAE,qBAAqB,EAAE,CAAC,CAAC;YACxH,CAAC;YACD,IAAI,UAAU,EAAE,CAAC;gBACf,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,eAAe,EAAE,qCAAqC,EAAE,CAAC,CAAC;YAC5I,CAAC;YACD,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;gBAC5B,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;oBAClD,IAAA,gCAAqB,EAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;gBACtD,CAAC;YACH,CAAC;YACD,YAAY;YAEZ,MAAM,uBAAuB,GAAG,GAAG,IAAA,oBAAQ,EAAC,aAAc,CAAC,YAAY,CAAC;YAExE,2BAA2B;YAC3B,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAC,uBAAuB,CAAC;gBACvC,eAAe,EAAE,6BAA6B;aAC/C,CAAC,CAAC;YACH,IAAA,0CAAoB,EAAC,UAAU,EAAE,uBAAuB,CAAC,CAAC;YAC1D,IAAA,0CAAoB,EAAC,UAAU,EAAE;gBAC/B,OAAO,EAAE,uBAAuB;gBAChC,WAAW,EAAE,uBAAuB;aACrC,CAAC,CAAC;YACH,YAAY;YAEZ,IAAA,oCAAyB,EAAC,gBAAgB,EAAE,qBAAqB,EAAE;gBACjE,WAAW,EAAE,UAAU,uBAAuB,GAAG;gBACjD,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAK,CAAC,MAAM;aACpB,CAAC,CAAC;YACH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAC,QAAQ,CAAC;gBACxB,eAAe,EAAE,eAAe;aACjC,CAAC,CAAC;YACH,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAC,uBAAuB,CAAC;gBACvC,eAAe,EAAE,KAAK,IAAA,qBAAS,EAAC,aAAc,CAAC,cAAc;aAC9D,CAAC,CAAC;YAEH,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAClF,IAAA,mCAAwB,EAAC,gBAAgB,CAAC,CAAC;YAC7C,CAAC;YAED,gBAAgB,CAAC,OAAO,EAAE,CAAE,UAAU,CAAE,EAAE,CAAE,gBAAgB,CAAE,EAAE,OAAO,CAAC,CAAC;QAC3E,CAAC,IACD,CAAC;AAEL,CAAC"}
|