@rxap/schematics-ts-morph 16.0.0-dev.11 → 16.0.0-dev.12
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 +6 -0
- package/README.md +1 -1
- package/package.json +8 -8
- package/src/index.js +144 -141
- package/src/index.js.map +1 -1
- package/src/lib/add-class-method.js +6 -5
- package/src/lib/add-class-method.js.map +1 -1
- package/src/lib/add-dir.js +8 -4
- package/src/lib/add-dir.js.map +1 -1
- package/src/lib/add-fake-provider.js +23 -18
- package/src/lib/add-fake-provider.js.map +1 -1
- package/src/lib/add-method-class.js +20 -14
- package/src/lib/add-method-class.js.map +1 -1
- package/src/lib/add-provider-to-array.js +12 -7
- package/src/lib/add-provider-to-array.js.map +1 -1
- package/src/lib/add-to-array.js +9 -5
- package/src/lib/add-to-array.js.map +1 -1
- package/src/lib/add-variable-fake-provider.js +9 -5
- package/src/lib/add-variable-fake-provider.js.map +1 -1
- package/src/lib/add-variable-provider.js +14 -10
- package/src/lib/add-variable-provider.js.map +1 -1
- package/src/lib/angular/add-component-animations.js +11 -7
- package/src/lib/angular/add-component-animations.js.map +1 -1
- package/src/lib/angular/add-component-fake-provider.js +9 -5
- package/src/lib/angular/add-component-fake-provider.js.map +1 -1
- package/src/lib/angular/add-component-import.js +11 -7
- package/src/lib/angular/add-component-import.js.map +1 -1
- package/src/lib/angular/add-component-input.js +15 -11
- package/src/lib/angular/add-component-input.js.map +1 -1
- package/src/lib/angular/add-component-provider.js +13 -9
- package/src/lib/angular/add-component-provider.js.map +1 -1
- package/src/lib/angular/add-control-validator.js +10 -5
- package/src/lib/angular/add-control-validator.js.map +1 -1
- package/src/lib/angular/add-dependency-injection.js +19 -14
- package/src/lib/angular/add-dependency-injection.js.map +1 -1
- package/src/lib/angular/add-ng-module-export.js +11 -7
- package/src/lib/angular/add-ng-module-export.js.map +1 -1
- package/src/lib/angular/add-ng-module-import.js +11 -7
- package/src/lib/angular/add-ng-module-import.js.map +1 -1
- package/src/lib/angular/add-ng-module-provider.js +13 -9
- package/src/lib/angular/add-ng-module-provider.js.map +1 -1
- package/src/lib/angular/build-angular-base-path.js +12 -8
- package/src/lib/angular/build-angular-base-path.js.map +1 -1
- package/src/lib/angular/coerce-accordion-component.js +9 -5
- package/src/lib/angular/coerce-accordion-component.js.map +1 -1
- package/src/lib/angular/coerce-component-class.js +21 -17
- package/src/lib/angular/coerce-component-class.js.map +1 -1
- package/src/lib/angular/coerce-component.js +38 -40
- package/src/lib/angular/coerce-component.js.map +1 -1
- package/src/lib/angular/coerce-data-source-class.js +35 -27
- package/src/lib/angular/coerce-data-source-class.js.map +1 -1
- package/src/lib/angular/coerce-dialog-component.js +32 -27
- package/src/lib/angular/coerce-dialog-component.js.map +1 -1
- package/src/lib/angular/coerce-dialog-table-action-component.js +39 -35
- package/src/lib/angular/coerce-dialog-table-action-component.js.map +1 -1
- package/src/lib/angular/coerce-dialog-table-action.js +24 -27
- package/src/lib/angular/coerce-dialog-table-action.js.map +1 -1
- package/src/lib/angular/coerce-form-builder-provider.js +20 -15
- package/src/lib/angular/coerce-form-builder-provider.js.map +1 -1
- package/src/lib/angular/coerce-form-component-provider.js +21 -16
- package/src/lib/angular/coerce-form-component-provider.js.map +1 -1
- package/src/lib/angular/coerce-form-definition-control.js +40 -32
- package/src/lib/angular/coerce-form-definition-control.js.map +1 -1
- package/src/lib/angular/coerce-form-definition-type.js +19 -14
- package/src/lib/angular/coerce-form-definition-type.js.map +1 -1
- package/src/lib/angular/coerce-form-definition.js +37 -32
- package/src/lib/angular/coerce-form-definition.js.map +1 -1
- package/src/lib/angular/coerce-form-provider.js +20 -15
- package/src/lib/angular/coerce-form-provider.js.map +1 -1
- package/src/lib/angular/coerce-form-providers-file.js +29 -25
- package/src/lib/angular/coerce-form-providers-file.js.map +1 -1
- package/src/lib/angular/coerce-form-table-action.js +33 -38
- package/src/lib/angular/coerce-form-table-action.js.map +1 -1
- package/src/lib/angular/coerce-method-class.js +26 -21
- package/src/lib/angular/coerce-method-class.js.map +1 -1
- package/src/lib/angular/coerce-navigation-table-action.js +21 -25
- package/src/lib/angular/coerce-navigation-table-action.js.map +1 -1
- package/src/lib/angular/coerce-operation-table-action.js +23 -26
- package/src/lib/angular/coerce-operation-table-action.js.map +1 -1
- package/src/lib/angular/coerce-options-data-source.js +16 -12
- package/src/lib/angular/coerce-options-data-source.js.map +1 -1
- package/src/lib/angular/coerce-project-feature.js +14 -10
- package/src/lib/angular/coerce-project-feature.js.map +1 -1
- package/src/lib/angular/coerce-proxy-remote-method-class.js +29 -24
- package/src/lib/angular/coerce-proxy-remote-method-class.js.map +1 -1
- package/src/lib/angular/coerce-table-action-index-provider.js +12 -8
- package/src/lib/angular/coerce-table-action-index-provider.js.map +1 -1
- package/src/lib/angular/coerce-table-action-index.js +11 -7
- package/src/lib/angular/coerce-table-action-index.js.map +1 -1
- package/src/lib/angular/coerce-table-action-provider.js +24 -19
- package/src/lib/angular/coerce-table-action-provider.js.map +1 -1
- package/src/lib/angular/coerce-table-action.js +36 -41
- package/src/lib/angular/coerce-table-action.js.map +1 -1
- package/src/lib/angular/coerce-table-data-source.js +25 -26
- package/src/lib/angular/coerce-table-data-source.js.map +1 -1
- package/src/lib/angular/coerce-table-header-button-method.js +24 -22
- package/src/lib/angular/coerce-table-header-button-method.js.map +1 -1
- package/src/lib/angular/coerce-table-parameters-from-route.js +22 -18
- package/src/lib/angular/coerce-table-parameters-from-route.js.map +1 -1
- package/src/lib/angular/coerce-table-select-resolve-value-method.js +20 -19
- package/src/lib/angular/coerce-table-select-resolve-value-method.js.map +1 -1
- package/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.js +19 -22
- package/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.js.map +1 -1
- package/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.js +19 -22
- package/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.js.map +1 -1
- package/src/lib/angular/enforce-use-form-control-order.js +10 -6
- package/src/lib/angular/enforce-use-form-control-order.js.map +1 -1
- package/src/lib/angular/find-component-module-source-file.js +7 -3
- package/src/lib/angular/find-component-module-source-file.js.map +1 -1
- package/src/lib/angular/find-component-source-file.js +7 -3
- package/src/lib/angular/find-component-source-file.js.map +1 -1
- package/src/lib/angular/find-routing-module.js +9 -4
- package/src/lib/angular/find-routing-module.js.map +1 -1
- package/src/lib/angular/form-definition-utilities.js +19 -11
- package/src/lib/angular/form-definition-utilities.js.map +1 -1
- package/src/lib/angular/get-component-class.js +5 -1
- package/src/lib/angular/get-component-class.js.map +1 -1
- package/src/lib/angular/get-component-options-object.js +8 -4
- package/src/lib/angular/get-component-options-object.js.map +1 -1
- package/src/lib/angular/get-ng-module-options-object.js +8 -4
- package/src/lib/angular/get-ng-module-options-object.js.map +1 -1
- package/src/lib/angular/handle-component-module.js +2 -1
- package/src/lib/angular/handle-component.js +2 -1
- package/src/lib/angular/has-accordion-component.js +16 -12
- package/src/lib/angular/has-accordion-component.js.map +1 -1
- package/src/lib/angular/has-component.js +18 -14
- package/src/lib/angular/has-component.js.map +1 -1
- package/src/lib/angular/has-dialog-component.js +9 -5
- package/src/lib/angular/has-dialog-component.js.map +1 -1
- package/src/lib/angular/has-project-feature.js +14 -10
- package/src/lib/angular/has-project-feature.js.map +1 -1
- package/src/lib/angular/has-table-component.js +14 -10
- package/src/lib/angular/has-table-component.js.map +1 -1
- package/src/lib/angular/index.js +29 -26
- package/src/lib/angular/index.js.map +1 -1
- package/src/lib/auto-import.js +11 -7
- package/src/lib/auto-import.js.map +1 -1
- package/src/lib/coerce-class-constructor.js +5 -1
- package/src/lib/coerce-class-constructor.js.map +1 -1
- package/src/lib/coerce-class-method.js +5 -1
- package/src/lib/coerce-class-method.js.map +1 -1
- package/src/lib/coerce-class.js +6 -5
- package/src/lib/coerce-class.js.map +1 -1
- package/src/lib/coerce-property-key.js +5 -1
- package/src/lib/coerce-property-key.js.map +1 -1
- package/src/lib/coerce-source-file.js +5 -1
- package/src/lib/coerce-source-file.js.map +1 -1
- package/src/lib/coerce-variable-declaration.js +13 -14
- package/src/lib/coerce-variable-declaration.js.map +1 -1
- package/src/lib/fix-missing-imports.js +11 -7
- package/src/lib/fix-missing-imports.js.map +1 -1
- package/src/lib/get-array-declaration.js +9 -5
- package/src/lib/get-array-declaration.js.map +1 -1
- package/src/lib/get-class-decorator-arguments.js +7 -2
- package/src/lib/get-class-decorator-arguments.js.map +1 -1
- package/src/lib/get-coerce-array-literal-form-object-literal.js +8 -4
- package/src/lib/get-coerce-array-literal-form-object-literal.js.map +1 -1
- package/src/lib/get-form-providers-source-file.js +13 -8
- package/src/lib/get-form-providers-source-file.js.map +1 -1
- package/src/lib/get-variable-declaration.js +7 -2
- package/src/lib/get-variable-declaration.js.map +1 -1
- package/src/lib/is-array-literal-expression.js +9 -4
- package/src/lib/is-array-literal-expression.js.map +1 -1
- package/src/lib/merge-ts-morph-project.js +7 -3
- package/src/lib/merge-ts-morph-project.js.map +1 -1
- package/src/lib/nest/add-nest-controller.js +20 -15
- package/src/lib/nest/add-nest-controller.js.map +1 -1
- package/src/lib/nest/add-nest-module-controller.js +13 -9
- package/src/lib/nest/add-nest-module-controller.js.map +1 -1
- package/src/lib/nest/add-nest-module-import.js +12 -8
- package/src/lib/nest/add-nest-module-import.js.map +1 -1
- package/src/lib/nest/add-nest-module-provider.js +13 -9
- package/src/lib/nest/add-nest-module-provider.js.map +1 -1
- package/src/lib/nest/add-nest-module-to-app-module.js +16 -12
- package/src/lib/nest/add-nest-module-to-app-module.js.map +1 -1
- package/src/lib/nest/add-nest-provider-to-array.js +12 -7
- package/src/lib/nest/add-nest-provider-to-array.js.map +1 -1
- package/src/lib/nest/add-operation-to-controller.js +74 -67
- package/src/lib/nest/add-operation-to-controller.js.map +1 -1
- package/src/lib/nest/assert-nest-project.js +9 -5
- package/src/lib/nest/assert-nest-project.js.map +1 -1
- package/src/lib/nest/build-nest-base-path.js +12 -8
- package/src/lib/nest/build-nest-base-path.js.map +1 -1
- package/src/lib/nest/build-nest-controller-name.js +9 -5
- package/src/lib/nest/build-nest-controller-name.js.map +1 -1
- package/src/lib/nest/coerce-dto-class.js +41 -36
- package/src/lib/nest/coerce-dto-class.js.map +1 -1
- package/src/lib/nest/coerce-form-submit-operation.js +17 -21
- package/src/lib/nest/coerce-form-submit-operation.js.map +1 -1
- package/src/lib/nest/coerce-get-by-id-operation.js +16 -19
- package/src/lib/nest/coerce-get-by-id-operation.js.map +1 -1
- package/src/lib/nest/coerce-get-children-operation.js +20 -24
- package/src/lib/nest/coerce-get-children-operation.js.map +1 -1
- package/src/lib/nest/coerce-get-data-grid-operation.js +18 -22
- package/src/lib/nest/coerce-get-data-grid-operation.js.map +1 -1
- package/src/lib/nest/coerce-get-page-operation.js +56 -53
- package/src/lib/nest/coerce-get-page-operation.js.map +1 -1
- package/src/lib/nest/coerce-get-root-operation.js +18 -22
- package/src/lib/nest/coerce-get-root-operation.js.map +1 -1
- package/src/lib/nest/coerce-nest-controller.js +32 -28
- package/src/lib/nest/coerce-nest-controller.js.map +1 -1
- package/src/lib/nest/coerce-nest-module.js +21 -17
- package/src/lib/nest/coerce-nest-module.js.map +1 -1
- package/src/lib/nest/coerce-nest-service-project.js +12 -8
- package/src/lib/nest/coerce-nest-service-project.js.map +1 -1
- package/src/lib/nest/coerce-operation.js +27 -25
- package/src/lib/nest/coerce-operation.js.map +1 -1
- package/src/lib/nest/coerce-options-operation.js +18 -17
- package/src/lib/nest/coerce-options-operation.js.map +1 -1
- package/src/lib/nest/coerce-page-dto-class.js +15 -11
- package/src/lib/nest/coerce-page-dto-class.js.map +1 -1
- package/src/lib/nest/coerce-row-dto-class.js +11 -7
- package/src/lib/nest/coerce-row-dto-class.js.map +1 -1
- package/src/lib/nest/coerce-submit-data-grid-operation.js +12 -11
- package/src/lib/nest/coerce-submit-data-grid-operation.js.map +1 -1
- package/src/lib/nest/coerce-table-select-operation.js +11 -10
- package/src/lib/nest/coerce-table-select-operation.js.map +1 -1
- package/src/lib/nest/coerce-table-select-value-resolve-operation.js +15 -14
- package/src/lib/nest/coerce-table-select-value-resolve-operation.js.map +1 -1
- package/src/lib/nest/coerce-tree-operation.js +18 -21
- package/src/lib/nest/coerce-tree-operation.js.map +1 -1
- package/src/lib/nest/create-dto-class.js +30 -24
- package/src/lib/nest/create-dto-class.js.map +1 -1
- package/src/lib/nest/find-nest-module-declaration.js +9 -5
- package/src/lib/nest/find-nest-module-declaration.js.map +1 -1
- package/src/lib/nest/find-nest-module-source-file.js +7 -3
- package/src/lib/nest/find-nest-module-source-file.js.map +1 -1
- package/src/lib/nest/get-nest-module-metadata.js +11 -7
- package/src/lib/nest/get-nest-module-metadata.js.map +1 -1
- package/src/lib/nest/has-nest-controller.js +11 -7
- package/src/lib/nest/has-nest-controller.js.map +1 -1
- package/src/lib/nest/has-nest-module-class.js +7 -3
- package/src/lib/nest/has-nest-module-class.js.map +1 -1
- package/src/lib/nest/has-nest-module.js +15 -11
- package/src/lib/nest/has-nest-module.js.map +1 -1
- package/src/lib/nest/is-nest-module-class.js +5 -1
- package/src/lib/nest/is-nest-module-class.js.map +1 -1
- package/src/lib/nest/nest-provider-object.js +2 -1
- package/src/lib/nest/operation-id-utilities.js +52 -37
- package/src/lib/nest/operation-id-utilities.js.map +1 -1
- package/src/lib/nest/project-utilities.js +9 -4
- package/src/lib/nest/project-utilities.js.map +1 -1
- package/src/lib/nest/remove-nest-module-provider.js +11 -7
- package/src/lib/nest/remove-nest-module-provider.js.map +1 -1
- package/src/lib/nest/remove-nest-provider-to-array.js +10 -5
- package/src/lib/nest/remove-nest-provider-to-array.js.map +1 -1
- package/src/lib/organize-imports.js +9 -5
- package/src/lib/organize-imports.js.map +1 -1
- package/src/lib/overwrite-decorator.js +6 -2
- package/src/lib/overwrite-decorator.js.map +1 -1
- package/src/lib/overwrite-property.js +6 -2
- package/src/lib/overwrite-property.js.map +1 -1
- package/src/lib/provider-object.js +2 -1
- package/src/lib/to-value-context.js +2 -1
- package/src/lib/ts-morph/apply-ts-morph-project.js +7 -3
- package/src/lib/ts-morph/apply-ts-morph-project.js.map +1 -1
- package/src/lib/ts-morph/coerce-class-implementation.js +5 -1
- package/src/lib/ts-morph/coerce-class-implementation.js.map +1 -1
- package/src/lib/ts-morph/coerce-class-property.js +6 -5
- package/src/lib/ts-morph/coerce-class-property.js.map +1 -1
- package/src/lib/ts-morph/coerce-decorator.js +8 -7
- package/src/lib/ts-morph/coerce-decorator.js.map +1 -1
- package/src/lib/ts-morph/coerce-function.js +5 -1
- package/src/lib/ts-morph/coerce-function.js.map +1 -1
- package/src/lib/ts-morph/coerce-imports.js +5 -1
- package/src/lib/ts-morph/coerce-imports.js.map +1 -1
- package/src/lib/ts-morph/coerce-interface.js +13 -11
- package/src/lib/ts-morph/coerce-interface.js.map +1 -1
- package/src/lib/ts-morph/coerce-parameter-declaration.js +6 -3
- package/src/lib/ts-morph/coerce-parameter-declaration.js.map +1 -1
- package/src/lib/ts-morph/coerce-statements.js +5 -1
- package/src/lib/ts-morph/coerce-statements.js.map +1 -1
- package/src/lib/ts-morph/coerce-type-alias.js +6 -6
- package/src/lib/ts-morph/coerce-type-alias.js.map +1 -1
- package/src/lib/ts-morph/find-function.js +5 -1
- package/src/lib/ts-morph/find-function.js.map +1 -1
- package/src/lib/ts-morph/write-type.js +5 -1
- package/src/lib/ts-morph/write-type.js.map +1 -1
- package/src/lib/ts-morph-transform.js +13 -7
- package/src/lib/ts-morph-transform.js.map +1 -1
- package/src/lib/types/form-definition-control.js +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-tree-table-children-proxy-remote-method-class.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"coerce-tree-table-children-proxy-remote-method-class.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.ts"],"names":[],"mappings":";;;AAKA,2EAKwC;AACxC,+DAA2D;AAC3D,yFAG4C;AAQ5C,SAAgB,6CAA6C,CAAC,OAA6D;IACzH,IAAI,EACF,gBAAgB,EAChB,sBAAsB,EACtB,KAAK,GACN,GAAG,OAAO,CAAC;IACZ,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,IAAhB,gBAAgB,GAAK,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAC;IAChC,OAAO,IAAA,+DAA4B,kCAC9B,OAAO,KACV,IAAI,EAAE,qBAAqB,EAC3B,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,gCAAiC,IAAA,wDAA+B,EAAC,sBAAsB,CAAE,GAAG,EACxG,WAAW,EAAE,IAAA,+CAAsB,EAAC,sBAAsB,CAAC,EAC3D,gBAAgB,EAAE,CAAC,OAAgB,EAAE,UAAsB,EAAE,gBAAkC,EAAE,EAAE;YACjG,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,IAAA,+CAAsB,EAAC,sBAAsB,CAAC,CAAE;gBAChE,eAAe,EAAE,IAAA,qDAA4B,EAAC,sBAAsB,EAAE,KAAK,CAAC;aAC7E,CAAC,CAAC;YACH,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,MAAM,CAAE;gBACxB,eAAe,EAAE,2BAA2B;aAC7C,CAAC,CAAC;YACH,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,8BAA8B,CAAE;gBAChD,eAAe,EAAE,8BAA8B;aAChD,CAAC,CAAC;YACH,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,IAAA,wDAA+B,EAAC,sBAAsB,CAAC,CAAE;gBACzE,eAAe,EAAE,IAAA,8DAAqC,EAAC,sBAAsB,EAAE,KAAK,CAAC;aACtF,CAAC,CAAC;YACH,OAAO,gBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;QAClE,CAAC,IACD,CAAC;AACL,CAAC;AAjCD,sGAiCC"}
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceTreeTableRootProxyRemoteMethodClass = void 0;
|
|
4
|
+
const operation_id_utilities_1 = require("../nest/operation-id-utilities");
|
|
5
|
+
const coerce_imports_1 = require("../ts-morph/coerce-imports");
|
|
6
|
+
const coerce_proxy_remote_method_class_1 = require("./coerce-proxy-remote-method-class");
|
|
7
|
+
function CoerceTreeTableRootProxyRemoteMethodClass(options) {
|
|
5
8
|
let { tsMorphTransform, getRootOperationId, scope, } = options;
|
|
6
|
-
tsMorphTransform
|
|
7
|
-
return CoerceProxyRemoteMethodClass({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
targetType: `OpenApiRemoteMethodParameter<${OperationIdToParameterClassName(getRootOperationId)}>`,
|
|
12
|
-
proxyMethod: OperationIdToClassName(getRootOperationId),
|
|
13
|
-
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
14
|
-
CoerceImports(sourceFile, {
|
|
15
|
-
namedImports: [OperationIdToClassName(getRootOperationId)],
|
|
16
|
-
moduleSpecifier: OperationIdToClassImportPath(getRootOperationId, scope),
|
|
9
|
+
tsMorphTransform !== null && tsMorphTransform !== void 0 ? tsMorphTransform : (tsMorphTransform = () => ({}));
|
|
10
|
+
return (0, coerce_proxy_remote_method_class_1.CoerceProxyRemoteMethodClass)(Object.assign(Object.assign({}, options), { name: 'tree-table-root', sourceType: 'Node<unknown>', targetType: `OpenApiRemoteMethodParameter<${(0, operation_id_utilities_1.OperationIdToParameterClassName)(getRootOperationId)}>`, proxyMethod: (0, operation_id_utilities_1.OperationIdToClassName)(getRootOperationId), tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
11
|
+
(0, coerce_imports_1.CoerceImports)(sourceFile, {
|
|
12
|
+
namedImports: [(0, operation_id_utilities_1.OperationIdToClassName)(getRootOperationId)],
|
|
13
|
+
moduleSpecifier: (0, operation_id_utilities_1.OperationIdToClassImportPath)(getRootOperationId, scope),
|
|
17
14
|
});
|
|
18
|
-
CoerceImports(sourceFile, {
|
|
15
|
+
(0, coerce_imports_1.CoerceImports)(sourceFile, {
|
|
19
16
|
namedImports: ['Node'],
|
|
20
17
|
moduleSpecifier: '@rxap/data-structure-tree',
|
|
21
18
|
});
|
|
22
|
-
CoerceImports(sourceFile, {
|
|
19
|
+
(0, coerce_imports_1.CoerceImports)(sourceFile, {
|
|
23
20
|
namedImports: ['OpenApiRemoteMethodParameter'],
|
|
24
21
|
moduleSpecifier: '@rxap/open-api/remote-method',
|
|
25
22
|
});
|
|
26
|
-
CoerceImports(sourceFile, {
|
|
27
|
-
namedImports: [OperationIdToParameterClassName(getRootOperationId)],
|
|
28
|
-
moduleSpecifier: OperationIdToParameterClassImportPath(getRootOperationId, scope),
|
|
23
|
+
(0, coerce_imports_1.CoerceImports)(sourceFile, {
|
|
24
|
+
namedImports: [(0, operation_id_utilities_1.OperationIdToParameterClassName)(getRootOperationId)],
|
|
25
|
+
moduleSpecifier: (0, operation_id_utilities_1.OperationIdToParameterClassImportPath)(getRootOperationId, scope),
|
|
29
26
|
});
|
|
30
27
|
return tsMorphTransform(project, sourceFile, classDeclaration);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
28
|
+
} }));
|
|
33
29
|
}
|
|
30
|
+
exports.CoerceTreeTableRootProxyRemoteMethodClass = CoerceTreeTableRootProxyRemoteMethodClass;
|
|
34
31
|
//# sourceMappingURL=coerce-tree-table-root-proxy-remote-method-class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-tree-table-root-proxy-remote-method-class.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"coerce-tree-table-root-proxy-remote-method-class.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.ts"],"names":[],"mappings":";;;AAKA,2EAKwC;AACxC,+DAA2D;AAC3D,yFAG4C;AAQ5C,SAAgB,yCAAyC,CAAC,OAAyD;IACjH,IAAI,EACF,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,GACN,GAAG,OAAO,CAAC;IACZ,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,IAAhB,gBAAgB,GAAK,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAC;IAChC,OAAO,IAAA,+DAA4B,kCAC9B,OAAO,KACV,IAAI,EAAE,iBAAiB,EACvB,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,gCAAiC,IAAA,wDAA+B,EAAC,kBAAkB,CAAE,GAAG,EACpG,WAAW,EAAE,IAAA,+CAAsB,EAAC,kBAAkB,CAAC,EACvD,gBAAgB,EAAE,CAAC,OAAgB,EAAE,UAAsB,EAAE,gBAAkC,EAAE,EAAE;YACjG,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,IAAA,+CAAsB,EAAC,kBAAkB,CAAC,CAAE;gBAC5D,eAAe,EAAE,IAAA,qDAA4B,EAAC,kBAAkB,EAAE,KAAK,CAAC;aACzE,CAAC,CAAC;YACH,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,MAAM,CAAE;gBACxB,eAAe,EAAE,2BAA2B;aAC7C,CAAC,CAAC;YACH,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,8BAA8B,CAAE;gBAChD,eAAe,EAAE,8BAA8B;aAChD,CAAC,CAAC;YACH,IAAA,8BAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,IAAA,wDAA+B,EAAC,kBAAkB,CAAC,CAAE;gBACrE,eAAe,EAAE,IAAA,8DAAqC,EAAC,kBAAkB,EAAE,KAAK,CAAC;aAClF,CAAC,CAAC;YACH,OAAO,gBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;QAClE,CAAC,IACD,CAAC;AACL,CAAC;AAjCD,8FAiCC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnforceUseFormControlOrderRule = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const ts_morph_transform_1 = require("../ts-morph-transform");
|
|
6
|
+
function EnforceUseFormControlOrderRule(options) {
|
|
4
7
|
const { formName } = options;
|
|
5
|
-
const className = CoerceSuffix(classify(formName), 'Form');
|
|
6
|
-
return TsMorphAngularProjectTransformRule(options, (project) => {
|
|
7
|
-
const sourceFile = project.getSourceFileOrThrow('/' + CoerceSuffix(formName, '.form.ts'));
|
|
8
|
+
const className = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.classify)(formName), 'Form');
|
|
9
|
+
return (0, ts_morph_transform_1.TsMorphAngularProjectTransformRule)(options, (project) => {
|
|
10
|
+
const sourceFile = project.getSourceFileOrThrow('/' + (0, schematics_utilities_1.CoerceSuffix)(formName, '.form.ts'));
|
|
8
11
|
const classDeclaration = sourceFile.getClassOrThrow(className);
|
|
9
12
|
for (const propertyDeclaration of classDeclaration.getProperties()) {
|
|
10
13
|
const decoratorCount = propertyDeclaration.getDecorators().length;
|
|
@@ -26,4 +29,5 @@ export function EnforceUseFormControlOrderRule(options) {
|
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
}
|
|
32
|
+
exports.EnforceUseFormControlOrderRule = EnforceUseFormControlOrderRule;
|
|
29
33
|
//# sourceMappingURL=enforce-use-form-control-order.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-use-form-control-order.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/enforce-use-form-control-order.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"enforce-use-form-control-order.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/enforce-use-form-control-order.ts"],"names":[],"mappings":";;;AAAA,qEAGoC;AACpC,8DAG+B;AAM/B,SAAgB,8BAA8B,CAAC,OAA8C;IAC3F,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC7B,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,+BAAQ,EAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAE3D,OAAO,IAAA,uDAAkC,EAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QAE7D,MAAM,UAAU,GAAG,OAAO,CAAC,oBAAoB,CAAC,GAAG,GAAG,IAAA,mCAAY,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;QAC1F,MAAM,gBAAgB,GAAG,UAAU,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAE/D,KAAK,MAAM,mBAAmB,IAAI,gBAAgB,CAAC,aAAa,EAAE,EAAE;YAClE,MAAM,cAAc,GAAG,mBAAmB,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC;YAClE,IAAI,cAAc,KAAK,CAAC,EAAE;gBACxB,SAAS;aACV;YACD,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;YACnF,IAAI,uBAAuB,EAAE;gBAC3B,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,aAAa,EAAE,CAAC;gBACpE,IAAI,mBAAmB,KAAK,cAAc,GAAG,CAAC,EAAE;oBAC9C,MAAM,IAAI,GAAG,uBAAuB,CAAC,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;oBAC5E,uBAAuB,CAAC,MAAM,EAAE,CAAC;oBACjC,mBAAmB,CAAC,YAAY,CAAC;wBAC/B,IAAI,EAAE,gBAAgB;wBACtB,SAAS,EAAE,IAAI;qBAChB,CAAC,CAAC;iBACJ;aACF;SAEF;IAEH,CAAC,CAAC,CAAC;AACL,CAAC;AA9BD,wEA8BC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindComponentModuleSourceFile = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
function FindComponentModuleSourceFile(name, project) {
|
|
6
|
+
return project.getSourceFileOrThrow(sourceFile => !!sourceFile.getClass((0, schematics_utilities_1.classify)(name) + 'ComponentModule'));
|
|
4
7
|
}
|
|
8
|
+
exports.FindComponentModuleSourceFile = FindComponentModuleSourceFile;
|
|
5
9
|
//# sourceMappingURL=find-component-module-source-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-component-module-source-file.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/find-component-module-source-file.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"find-component-module-source-file.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/find-component-module-source-file.ts"],"names":[],"mappings":";;;AAAA,qEAAsD;AAMtD,SAAgB,6BAA6B,CAAC,IAAY,EAAE,OAAgB;IAC1E,OAAO,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAA,+BAAQ,EAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC;AAC/G,CAAC;AAFD,sEAEC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindComponentSourceFile = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
function FindComponentSourceFile(name, project) {
|
|
6
|
+
const className = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.classify)(name), 'Component');
|
|
4
7
|
try {
|
|
5
8
|
return project.getSourceFileOrThrow(sourceFile => !!sourceFile.getClass(className));
|
|
6
9
|
}
|
|
@@ -12,4 +15,5 @@ export function FindComponentSourceFile(name, project) {
|
|
|
12
15
|
throw e;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
exports.FindComponentSourceFile = FindComponentSourceFile;
|
|
15
19
|
//# sourceMappingURL=find-component-source-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-component-source-file.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/find-component-source-file.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"find-component-source-file.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/find-component-source-file.ts"],"names":[],"mappings":";;;AAAA,qEAGoC;AAMpC,SAAgB,uBAAuB,CAAC,IAAY,EAAE,OAAgB;IACpE,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,+BAAQ,EAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC;IAC5D,IAAI;QACF,OAAO,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;KACrF;IAAC,OAAO,CAAM,EAAE;QAEf,OAAO,CAAC,KAAK,CAAC,yBAA0B,SAAU,yBAAyB,EAAE,OAAO;aACjF,cAAc,EAAE;aAChB,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;aAC3C,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CACvD,CAAC;QAEF,MAAM,CAAC,CAAC;KACT;AACH,CAAC;AAdD,0DAcC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindRoutingModule = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
function FindRoutingModule(tree, basePath) {
|
|
6
|
+
var _a;
|
|
3
7
|
const baseDir = tree.getDir(basePath);
|
|
4
8
|
for (const file of baseDir.subfiles) {
|
|
5
|
-
const filePath = join(basePath, file);
|
|
6
|
-
if (tree.read(filePath)
|
|
9
|
+
const filePath = (0, path_1.join)(basePath, file);
|
|
10
|
+
if ((_a = tree.read(filePath)) === null || _a === void 0 ? void 0 : _a.toString('utf-8').match(/routes:\s?Routes/i)) {
|
|
7
11
|
return filePath;
|
|
8
12
|
}
|
|
9
13
|
}
|
|
10
14
|
throw new Error('Could not find the routing module');
|
|
11
15
|
}
|
|
16
|
+
exports.FindRoutingModule = FindRoutingModule;
|
|
12
17
|
//# sourceMappingURL=find-routing-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-routing-module.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/find-routing-module.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"find-routing-module.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/find-routing-module.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAE5B,SAAgB,iBAAiB,CAAC,IAAU,EAAE,QAAgB;;IAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE;QACnC,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACtC,IAAI,MAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,0CAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,EAAE;YACrE,OAAO,QAAQ,CAAC;SACjB;KACF;IACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;AACvD,CAAC;AATD,8CASC"}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetFormDefinitionFilePath = exports.GetFormDefinitionFileName = exports.CoerceFormDefinitionClass = exports.GetFormDefinitionInterfaceName = exports.GetFormDefinitionClassName = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const coerce_class_1 = require("../coerce-class");
|
|
6
|
+
const utilities_1 = require("@rxap/utilities");
|
|
7
|
+
function GetFormDefinitionClassName({ name }) {
|
|
8
|
+
return (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.classify)(name), 'Form');
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
exports.GetFormDefinitionClassName = GetFormDefinitionClassName;
|
|
11
|
+
function GetFormDefinitionInterfaceName(options) {
|
|
8
12
|
const className = GetFormDefinitionClassName(options);
|
|
9
13
|
return `I${className}`;
|
|
10
14
|
}
|
|
11
|
-
|
|
15
|
+
exports.GetFormDefinitionInterfaceName = GetFormDefinitionInterfaceName;
|
|
16
|
+
function CoerceFormDefinitionClass(sourceFile, options) {
|
|
12
17
|
const className = GetFormDefinitionClassName(options);
|
|
13
|
-
return CoerceClass(sourceFile, className, { isExported: true });
|
|
18
|
+
return (0, coerce_class_1.CoerceClass)(sourceFile, className, { isExported: true });
|
|
14
19
|
}
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
exports.CoerceFormDefinitionClass = CoerceFormDefinitionClass;
|
|
21
|
+
function GetFormDefinitionFileName({ name }) {
|
|
22
|
+
return (0, schematics_utilities_1.CoerceSuffix)((0, utilities_1.dasherize)(name), '.form.ts');
|
|
17
23
|
}
|
|
18
|
-
|
|
24
|
+
exports.GetFormDefinitionFileName = GetFormDefinitionFileName;
|
|
25
|
+
function GetFormDefinitionFilePath(options) {
|
|
19
26
|
return '/' + GetFormDefinitionFileName(options) + '?';
|
|
20
27
|
}
|
|
28
|
+
exports.GetFormDefinitionFilePath = GetFormDefinitionFilePath;
|
|
21
29
|
//# sourceMappingURL=form-definition-utilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-definition-utilities.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/form-definition-utilities.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"form-definition-utilities.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/form-definition-utilities.ts"],"names":[],"mappings":";;;AAAA,qEAGoC;AAEpC,kDAA8C;AAC9C,+CAA4C;AAM5C,SAAgB,0BAA0B,CAAC,EAAE,IAAI,EAAqC;IACpF,OAAO,IAAA,mCAAY,EAAC,IAAA,+BAAQ,EAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC;AAFD,gEAEC;AAID,SAAgB,8BAA8B,CAAC,OAA8C;IAC3F,MAAM,SAAS,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,IAAK,SAAU,EAAE,CAAC;AAC3B,CAAC;AAHD,wEAGC;AAID,SAAgB,yBAAyB,CAAC,UAAsB,EAAE,OAAyC;IACzG,MAAM,SAAS,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,IAAA,0BAAW,EAAC,UAAU,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;AAClE,CAAC;AAHD,8DAGC;AAID,SAAgB,yBAAyB,CAAC,EAAE,IAAI,EAAoC;IAClF,OAAO,IAAA,mCAAY,EAAC,IAAA,qBAAS,EAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;AACnD,CAAC;AAFD,8DAEC;AAID,SAAgB,yBAAyB,CAAC,OAAyC;IACjF,OAAO,GAAG,GAAG,yBAAyB,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AACxD,CAAC;AAFD,8DAEC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetComponentClass = void 0;
|
|
4
|
+
function GetComponentClass(sourceFile) {
|
|
2
5
|
const classWithComponent = sourceFile.getClasses().find(cls => cls.getDecorator('Component'));
|
|
3
6
|
if (!classWithComponent) {
|
|
4
7
|
throw new Error('Could not find class with Component decorator!');
|
|
5
8
|
}
|
|
6
9
|
return classWithComponent;
|
|
7
10
|
}
|
|
11
|
+
exports.GetComponentClass = GetComponentClass;
|
|
8
12
|
//# sourceMappingURL=get-component-class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component-class.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/get-component-class.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"get-component-class.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/get-component-class.ts"],"names":[],"mappings":";;;AAKA,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;IAE9F,IAAI,CAAC,kBAAkB,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;KACnE;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AARD,8CAQC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetComponentOptionsObject = void 0;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
function GetComponentOptionsObject(sourceFile) {
|
|
3
6
|
const classWithComponent = sourceFile.getClasses().find(cls => cls.getDecorator('Component'));
|
|
4
7
|
if (!classWithComponent) {
|
|
5
8
|
throw new Error('Could not find class with Component decorator!');
|
|
@@ -7,11 +10,12 @@ export function GetComponentOptionsObject(sourceFile) {
|
|
|
7
10
|
const componentDecorator = classWithComponent.getDecorator('Component');
|
|
8
11
|
let componentOptions = componentDecorator.getArguments()[0];
|
|
9
12
|
if (!componentOptions) {
|
|
10
|
-
componentOptions = componentDecorator.addArgument(Writers.object({}));
|
|
13
|
+
componentOptions = componentDecorator.addArgument(ts_morph_1.Writers.object({}));
|
|
11
14
|
}
|
|
12
|
-
if (!(componentOptions instanceof ObjectLiteralExpression)) {
|
|
15
|
+
if (!(componentOptions instanceof ts_morph_1.ObjectLiteralExpression)) {
|
|
13
16
|
throw new Error('The Component options is not an object literal expression');
|
|
14
17
|
}
|
|
15
18
|
return componentOptions;
|
|
16
19
|
}
|
|
20
|
+
exports.GetComponentOptionsObject = GetComponentOptionsObject;
|
|
17
21
|
//# sourceMappingURL=get-component-options-object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component-options-object.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/get-component-options-object.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"get-component-options-object.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/get-component-options-object.ts"],"names":[],"mappings":";;;AAAA,uCAIkB;AAElB,SAAgB,yBAAyB,CAAC,UAAsB;IAG9D,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;IAE9F,IAAI,CAAC,kBAAkB,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;KACnE;IAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,YAAY,CAAC,WAAW,CAAE,CAAC;IACzE,IAAI,gBAAgB,GAAG,kBAAkB,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAE5D,IAAI,CAAC,gBAAgB,EAAE;QACrB,gBAAgB,GAAG,kBAAkB,CAAC,WAAW,CAAC,kBAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;KACvE;IAED,IAAI,CAAC,CAAC,gBAAgB,YAAY,kCAAuB,CAAC,EAAE;QAC1D,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;KAC9E;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AArBD,8DAqBC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNgModuleOptionsObject = void 0;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
function GetNgModuleOptionsObject(sourceFile) {
|
|
3
6
|
const classWithNgModule = sourceFile.getClasses().find(cls => cls.getDecorator('NgModule'));
|
|
4
7
|
if (!classWithNgModule) {
|
|
5
8
|
throw new Error('Could not find class with NgModule decorator!');
|
|
@@ -7,11 +10,12 @@ export function GetNgModuleOptionsObject(sourceFile) {
|
|
|
7
10
|
const ngModuleDecorator = classWithNgModule.getDecorator('NgModule');
|
|
8
11
|
let ngModuleOptions = ngModuleDecorator.getArguments()[0];
|
|
9
12
|
if (!ngModuleOptions) {
|
|
10
|
-
ngModuleOptions = ngModuleDecorator.addArgument(Writers.object({}));
|
|
13
|
+
ngModuleOptions = ngModuleDecorator.addArgument(ts_morph_1.Writers.object({}));
|
|
11
14
|
}
|
|
12
|
-
if (!(ngModuleOptions instanceof ObjectLiteralExpression)) {
|
|
15
|
+
if (!(ngModuleOptions instanceof ts_morph_1.ObjectLiteralExpression)) {
|
|
13
16
|
throw new Error('The NgModule options is not an object literal expression');
|
|
14
17
|
}
|
|
15
18
|
return ngModuleOptions;
|
|
16
19
|
}
|
|
20
|
+
exports.GetNgModuleOptionsObject = GetNgModuleOptionsObject;
|
|
17
21
|
//# sourceMappingURL=get-ng-module-options-object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ng-module-options-object.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/get-ng-module-options-object.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"get-ng-module-options-object.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/get-ng-module-options-object.ts"],"names":[],"mappings":";;;AAAA,uCAIkB;AAElB,SAAgB,wBAAwB,CAAC,UAAsB;IAG7D,MAAM,iBAAiB,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;IAE5F,IAAI,CAAC,iBAAiB,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;KAClE;IAED,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,YAAY,CAAC,UAAU,CAAE,CAAC;IACtE,IAAI,eAAe,GAAG,iBAAiB,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAE1D,IAAI,CAAC,eAAe,EAAE;QACpB,eAAe,GAAG,iBAAiB,CAAC,WAAW,CAAC,kBAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;KACrE;IAED,IAAI,CAAC,CAAC,eAAe,YAAY,kCAAuB,CAAC,EAAE;QACzD,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;KAC7E;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AArBD,4DAqBC"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HasAccordionComponent = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
+
const has_project_feature_1 = require("./has-project-feature");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
function HasAccordionComponent(host, options) {
|
|
6
9
|
const { accordionName, project, feature, } = options;
|
|
7
|
-
if (!HasProject(host, project)) {
|
|
8
|
-
throw new SchematicsException(`The accordion component '${accordionName}' does not exists. The project '${project}' does not exists.`);
|
|
10
|
+
if (!(0, schematics_utilities_1.HasProject)(host, project)) {
|
|
11
|
+
throw new schematics_1.SchematicsException(`The accordion component '${accordionName}' does not exists. The project '${project}' does not exists.`);
|
|
9
12
|
}
|
|
10
|
-
if (!HasProjectFeature(host, options)) {
|
|
11
|
-
throw new SchematicsException(`The accordion component '${accordionName}' does not exists. The project '${project}' has not the feature does not exists.`);
|
|
13
|
+
if (!(0, has_project_feature_1.HasProjectFeature)(host, options)) {
|
|
14
|
+
throw new schematics_1.SchematicsException(`The accordion component '${accordionName}' does not exists. The project '${project}' has not the feature does not exists.`);
|
|
12
15
|
}
|
|
13
|
-
const projectSourceRoot = GetProjectSourceRoot(host, options.project);
|
|
16
|
+
const projectSourceRoot = (0, schematics_utilities_1.GetProjectSourceRoot)(host, options.project);
|
|
14
17
|
if (feature) {
|
|
15
|
-
return host.exists(join(projectSourceRoot, 'feature', feature, accordionName, accordionName + '.component.ts'));
|
|
18
|
+
return host.exists((0, path_1.join)(projectSourceRoot, 'feature', feature, accordionName, accordionName + '.component.ts'));
|
|
16
19
|
}
|
|
17
20
|
else {
|
|
18
|
-
return host.exists(join(projectSourceRoot, 'app', accordionName, accordionName + '.component.ts'));
|
|
21
|
+
return host.exists((0, path_1.join)(projectSourceRoot, 'app', accordionName, accordionName + '.component.ts'));
|
|
19
22
|
}
|
|
20
23
|
}
|
|
24
|
+
exports.HasAccordionComponent = HasAccordionComponent;
|
|
21
25
|
//# sourceMappingURL=has-accordion-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-accordion-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-accordion-component.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"has-accordion-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-accordion-component.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,qEAGoC;AACpC,+DAA0D;AAC1D,+BAA4B;AAQ5B,SAAgB,qBAAqB,CACnC,IAAU,EACV,OAAqC;IAErC,MAAM,EACJ,aAAa,EACb,OAAO,EACP,OAAO,GACR,GAAG,OAAO,CAAC;IACZ,IAAI,CAAC,IAAA,iCAAU,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QAC9B,MAAM,IAAI,gCAAmB,CAAC,4BAA6B,aAAc,mCAAoC,OAAQ,oBAAoB,CAAC,CAAC;KAC5I;IACD,IAAI,CAAC,IAAA,uCAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QACrC,MAAM,IAAI,gCAAmB,CAAC,4BAA6B,aAAc,mCAAoC,OAAQ,wCAAwC,CAAC,CAAC;KAChK;IACD,MAAM,iBAAiB,GAAG,IAAA,2CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACtE,IAAI,OAAO,EAAE;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,GAAG,eAAe,CAAC,CAAC,CAAC;KACjH;SAAM;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,GAAG,eAAe,CAAC,CAAC,CAAC;KACpG;AACH,CAAC;AArBD,sDAqBC"}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HasComponent = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
+
const has_project_feature_1 = require("./has-project-feature");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const build_angular_base_path_1 = require("./build-angular-base-path");
|
|
9
|
+
function HasComponent(host, options) {
|
|
7
10
|
const { project, feature, name, } = options;
|
|
8
|
-
if (!HasProject(host, project)) {
|
|
9
|
-
throw new SchematicsException(`The component '${name}' does not exists. The project '${project}' does not exists.`);
|
|
11
|
+
if (!(0, schematics_utilities_1.HasProject)(host, project)) {
|
|
12
|
+
throw new schematics_1.SchematicsException(`The component '${name}' does not exists. The project '${project}' does not exists.`);
|
|
10
13
|
}
|
|
11
|
-
const type = GetProjectType(host, project);
|
|
12
|
-
if (type !== 'library' && !HasProjectFeature(host, options)) {
|
|
13
|
-
throw new SchematicsException(`The component '${name}' does not exists. The project '${project}' has not the feature '${feature}'.`);
|
|
14
|
+
const type = (0, schematics_utilities_1.GetProjectType)(host, project);
|
|
15
|
+
if (type !== 'library' && !(0, has_project_feature_1.HasProjectFeature)(host, options)) {
|
|
16
|
+
throw new schematics_1.SchematicsException(`The component '${name}' does not exists. The project '${project}' has not the feature '${feature}'.`);
|
|
14
17
|
}
|
|
15
|
-
let basePath = BuildAngularBasePath(host, options);
|
|
18
|
+
let basePath = (0, build_angular_base_path_1.BuildAngularBasePath)(host, options);
|
|
16
19
|
if (!basePath.endsWith(name)) {
|
|
17
|
-
basePath = join(basePath, name);
|
|
20
|
+
basePath = (0, path_1.join)(basePath, name);
|
|
18
21
|
}
|
|
19
|
-
const fullPath = join(basePath, name + '.component.ts');
|
|
22
|
+
const fullPath = (0, path_1.join)(basePath, name + '.component.ts');
|
|
20
23
|
return host.exists(fullPath);
|
|
21
24
|
}
|
|
25
|
+
exports.HasComponent = HasComponent;
|
|
22
26
|
//# sourceMappingURL=has-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-component.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"has-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-component.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,qEAGoC;AACpC,+DAA0D;AAC1D,+BAA4B;AAC5B,uEAAiE;AASjE,SAAgB,YAAY,CAAC,IAAU,EAAE,OAAsC;IAC7E,MAAM,EACJ,OAAO,EACP,OAAO,EACP,IAAI,GACL,GAAG,OAAO,CAAC;IAEZ,IAAI,CAAC,IAAA,iCAAU,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QAC9B,MAAM,IAAI,gCAAmB,CAAC,kBAAmB,IAAK,mCAAoC,OAAQ,oBAAoB,CAAC,CAAC;KACzH;IACD,MAAM,IAAI,GAAG,IAAA,qCAAc,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,IAAA,uCAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QAC3D,MAAM,IAAI,gCAAmB,CAAC,kBAAmB,IAAK,mCAAoC,OAAQ,0BAA2B,OAAQ,IAAI,CAAC,CAAC;KAC5I;IACD,IAAI,QAAQ,GAAG,IAAA,8CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAC5B,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;KACjC;IACD,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,GAAG,eAAe,CAAC,CAAC;IACxD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAE/B,CAAC;AArBD,oCAqBC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HasDialogComponent = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const has_component_1 = require("./has-component");
|
|
6
|
+
function HasDialogComponent(host, options) {
|
|
4
7
|
let { name, project, feature, directory, } = options;
|
|
5
|
-
name
|
|
6
|
-
return HasComponent(host, {
|
|
8
|
+
name !== null && name !== void 0 ? name : (name = (0, schematics_utilities_1.CoerceSuffix)(name, '-dialog'));
|
|
9
|
+
return (0, has_component_1.HasComponent)(host, {
|
|
7
10
|
project,
|
|
8
11
|
feature,
|
|
9
12
|
name: name,
|
|
10
13
|
directory,
|
|
11
14
|
});
|
|
12
15
|
}
|
|
16
|
+
exports.HasDialogComponent = HasDialogComponent;
|
|
13
17
|
//# sourceMappingURL=has-dialog-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-dialog-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-dialog-component.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"has-dialog-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-dialog-component.ts"],"names":[],"mappings":";;;AACA,qEAA0D;AAC1D,mDAGyB;AAMzB,SAAgB,kBAAkB,CAChC,IAAU,EACV,OAAkC;IAElC,IAAI,EACF,IAAI,EACJ,OAAO,EACP,OAAO,EACP,SAAS,GACV,GAAG,OAAO,CAAC;IACZ,IAAI,aAAJ,IAAI,cAAJ,IAAI,IAAJ,IAAI,GAAK,IAAA,mCAAY,EAAC,IAAI,EAAE,SAAS,CAAC,EAAC;IACvC,OAAO,IAAA,4BAAY,EAAC,IAAI,EAAE;QACxB,OAAO;QACP,OAAO;QACP,IAAI,EAAE,IAAI;QACV,SAAS;KACV,CAAC,CAAC;AACL,CAAC;AAjBD,gDAiBC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HasProjectFeature = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
function HasProjectFeature(host, { project, feature, }) {
|
|
5
8
|
if (!feature) {
|
|
6
|
-
throw new SchematicsException(`The feature option is not set. Can not determine if the project '${project}' has the feature.`);
|
|
9
|
+
throw new schematics_1.SchematicsException(`The feature option is not set. Can not determine if the project '${project}' has the feature.`);
|
|
7
10
|
}
|
|
8
|
-
if (!HasProject(host, project)) {
|
|
9
|
-
throw new SchematicsException(`The feature '${feature}' does not exists. The project '${project}' does not exists.`);
|
|
11
|
+
if (!(0, schematics_utilities_1.HasProject)(host, project)) {
|
|
12
|
+
throw new schematics_1.SchematicsException(`The feature '${feature}' does not exists. The project '${project}' does not exists.`);
|
|
10
13
|
}
|
|
11
|
-
const projectSourceRoot = GetProjectSourceRoot(host, project);
|
|
12
|
-
return host.exists(join(projectSourceRoot, `feature/${feature}/index.ts`)) ||
|
|
13
|
-
host.exists(join(projectSourceRoot, `feature/${feature}/routes.ts`));
|
|
14
|
+
const projectSourceRoot = (0, schematics_utilities_1.GetProjectSourceRoot)(host, project);
|
|
15
|
+
return host.exists((0, path_1.join)(projectSourceRoot, `feature/${feature}/index.ts`)) ||
|
|
16
|
+
host.exists((0, path_1.join)(projectSourceRoot, `feature/${feature}/routes.ts`));
|
|
14
17
|
}
|
|
18
|
+
exports.HasProjectFeature = HasProjectFeature;
|
|
15
19
|
//# sourceMappingURL=has-project-feature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-project-feature.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-project-feature.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"has-project-feature.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-project-feature.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,qEAGoC;AACpC,+BAA4B;AAO5B,SAAgB,iBAAiB,CAC/B,IAAU,EACV,EACE,OAAO,EACP,OAAO,GACkB;IAE3B,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,gCAAmB,CAAC,oEAAqE,OAAQ,oBAAoB,CAAC,CAAC;KAClI;IACD,IAAI,CAAC,IAAA,iCAAU,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QAC9B,MAAM,IAAI,gCAAmB,CAAC,gBAAiB,OAAQ,mCAAoC,OAAQ,oBAAoB,CAAC,CAAC;KAC1H;IACD,MAAM,iBAAiB,GAAG,IAAA,2CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,iBAAiB,EAAE,WAAY,OAAQ,WAAW,CAAC,CAAC;QAC1E,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,iBAAiB,EAAE,WAAY,OAAQ,YAAY,CAAC,CAAC,CAAC;AAC3E,CAAC;AAhBD,8CAgBC"}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HasTableComponent = void 0;
|
|
4
|
+
const has_component_1 = require("./has-component");
|
|
5
|
+
const build_angular_base_path_1 = require("./build-angular-base-path");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
const utilities_1 = require("@rxap/utilities");
|
|
8
|
+
function HasTableComponent(host, options) {
|
|
6
9
|
let { name } = options;
|
|
7
|
-
name = CoerceSuffix(name, '-table');
|
|
8
|
-
if (!HasComponent(host, options)) {
|
|
10
|
+
name = (0, utilities_1.CoerceSuffix)(name, '-table');
|
|
11
|
+
if (!(0, has_component_1.HasComponent)(host, options)) {
|
|
9
12
|
return false;
|
|
10
13
|
}
|
|
11
|
-
let basePath = BuildAngularBasePath(host, options);
|
|
14
|
+
let basePath = (0, build_angular_base_path_1.BuildAngularBasePath)(host, options);
|
|
12
15
|
if (!basePath.endsWith(name)) {
|
|
13
|
-
basePath = join(basePath, name);
|
|
16
|
+
basePath = (0, path_1.join)(basePath, name);
|
|
14
17
|
}
|
|
15
|
-
const fullPath = join(basePath, name + '.ts');
|
|
18
|
+
const fullPath = (0, path_1.join)(basePath, name + '.ts');
|
|
16
19
|
return host.exists(fullPath);
|
|
17
20
|
}
|
|
21
|
+
exports.HasTableComponent = HasTableComponent;
|
|
18
22
|
//# sourceMappingURL=has-table-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-table-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-table-component.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"has-table-component.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/angular/has-table-component.ts"],"names":[],"mappings":";;;AACA,mDAGyB;AACzB,uEAAiE;AACjE,+BAA4B;AAC5B,+CAA+C;AAK/C,SAAgB,iBAAiB,CAAC,IAAU,EAAE,OAAiC;IAC7E,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACvB,IAAI,GAAG,IAAA,wBAAY,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACpC,IAAI,CAAC,IAAA,4BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QAChC,OAAO,KAAK,CAAC;KACd;IAED,IAAI,QAAQ,GAAG,IAAA,8CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAC5B,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;KACjC;IACD,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC;IAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC;AAbD,8CAaC"}
|