Browse Source

change package tsconfig structure

pull/9837/head
mehmet-erim 5 years ago
parent
commit
96be03d15b
  1. 455
      npm/ng-packs/angular.json
  2. 2
      npm/ng-packs/packages/account-core/tsconfig.json
  3. 2
      npm/ng-packs/packages/account-core/tsconfig.lib.prod.json
  4. 2
      npm/ng-packs/packages/account/src/lib/components/manage-profile/manage-profile.component.html
  5. 2
      npm/ng-packs/packages/account/tsconfig.json
  6. 2
      npm/ng-packs/packages/account/tsconfig.lib.prod.json
  7. 2
      npm/ng-packs/packages/components/tsconfig.json
  8. 2
      npm/ng-packs/packages/components/tsconfig.lib.prod.json
  9. 2
      npm/ng-packs/packages/core/tsconfig.json
  10. 2
      npm/ng-packs/packages/core/tsconfig.lib.prod.json
  11. 3
      npm/ng-packs/packages/feature-management/src/public-api.ts
  12. 2
      npm/ng-packs/packages/feature-management/tsconfig.json
  13. 2
      npm/ng-packs/packages/feature-management/tsconfig.lib.prod.json
  14. 2
      npm/ng-packs/packages/identity/tsconfig.json
  15. 2
      npm/ng-packs/packages/identity/tsconfig.lib.prod.json
  16. 2
      npm/ng-packs/packages/permission-management/tsconfig.json
  17. 2
      npm/ng-packs/packages/permission-management/tsconfig.lib.prod.json
  18. 2
      npm/ng-packs/packages/setting-management/tsconfig.json
  19. 2
      npm/ng-packs/packages/setting-management/tsconfig.lib.prod.json
  20. 2
      npm/ng-packs/packages/tenant-management/tsconfig.json
  21. 2
      npm/ng-packs/packages/tenant-management/tsconfig.lib.prod.json
  22. 2
      npm/ng-packs/packages/theme-basic/tsconfig.json
  23. 2
      npm/ng-packs/packages/theme-basic/tsconfig.lib.prod.json
  24. 6
      npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.html
  25. 4
      npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.ts
  26. 10
      npm/ng-packs/packages/theme-shared/src/lib/components/toast/toast.component.ts
  27. 5
      npm/ng-packs/packages/theme-shared/src/lib/services/toaster.service.ts
  28. 2
      npm/ng-packs/packages/theme-shared/tsconfig.json
  29. 2
      npm/ng-packs/packages/theme-shared/tsconfig.lib.prod.json
  30. 2
      npm/ng-packs/scripts/build.ts
  31. 2
      npm/ng-packs/source-code-requirements/tsconfig.lib.json
  32. 2
      npm/ng-packs/source-code-requirements/tsconfig.lib.prod.json
  33. 2
      npm/ng-packs/tools/tsconfig.tools.json
  34. 5
      npm/ng-packs/tsconfig.base.json
  35. 48
      npm/ng-packs/tsconfig.lib.base.json
  36. 12
      npm/ng-packs/yarn.lock

455
npm/ng-packs/angular.json

@ -1,71 +1,71 @@
{ {
"version": 1, "version": 1,
"projects": { "projects": {
"core": { "account": {
"projectType": "library", "projectType": "library",
"root": "packages/core", "root": "packages/account",
"sourceRoot": "packages/core/src", "sourceRoot": "packages/account/src",
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/account"],
"options": { "options": {
"tsConfig": "packages/core/tsconfig.lib.json", "project": "packages/account/ng-package.json"
"project": "packages/core/ng-package.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/core/tsconfig.lib.prod.json" "tsConfig": "packages/account/tsconfig.lib.prod.json"
}, },
"development": { "development": {
"tsConfig": "packages/core/tsconfig.lib.json" "tsConfig": "packages/account/tsconfig.lib.json"
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"test": { "test": {
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/core"], "outputs": ["coverage/packages/account"],
"options": { "options": {
"jestConfig": "packages/core/jest.config.js", "jestConfig": "packages/account/jest.config.js",
"passWithNoTests": true "passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": ["packages/core/src/**/*.ts", "packages/core/src/**/*.html"] "lintFilePatterns": ["packages/account/src/**/*.ts", "packages/account/src/**/*.html"]
} }
} }
} }
}, },
"theme-shared": { "account-core": {
"projectType": "library", "projectType": "library",
"root": "packages/theme-shared", "root": "packages/account-core",
"sourceRoot": "packages/theme-shared/src", "sourceRoot": "packages/account-core/src",
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/account-core"],
"options": { "options": {
"tsConfig": "packages/theme-shared/tsconfig.lib.json", "project": "packages/account-core/ng-package.json"
"project": "packages/theme-shared/ng-package.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/theme-shared/tsconfig.lib.prod.json" "tsConfig": "packages/account-core/tsconfig.lib.prod.json"
}, },
"development": { "development": {
"tsConfig": "packages/theme-shared/tsconfig.lib.json" "tsConfig": "packages/account-core/tsconfig.lib.json"
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"test": { "test": {
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/theme-shared"], "outputs": ["coverage/packages/account-core"],
"options": { "options": {
"jestConfig": "packages/theme-shared/jest.config.js", "jestConfig": "packages/account-core/jest.config.js",
"passWithNoTests": true "passWithNoTests": true
} }
}, },
@ -73,8 +73,8 @@
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"packages/theme-shared/src/**/*.ts", "packages/account-core/src/**/*.ts",
"packages/theme-shared/src/**/*.html" "packages/account-core/src/**/*.html"
] ]
} }
} }
@ -87,9 +87,9 @@
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/components"],
"options": { "options": {
"tsConfig": "packages/components/tsconfig.lib.json",
"project": "packages/components/ng-package.json" "project": "packages/components/ng-package.json"
}, },
"configurations": { "configurations": {
@ -121,125 +121,192 @@
} }
} }
}, },
"account-core": { "core": {
"projectType": "library", "projectType": "library",
"root": "packages/account-core", "root": "packages/core",
"sourceRoot": "packages/account-core/src", "sourceRoot": "packages/core/src",
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/core"],
"options": { "options": {
"tsConfig": "packages/account-core/tsconfig.lib.json", "project": "packages/core/ng-package.json"
"project": "packages/account-core/ng-package.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/account-core/tsconfig.lib.prod.json" "tsConfig": "packages/core/tsconfig.lib.prod.json"
}, },
"development": { "development": {
"tsConfig": "packages/account-core/tsconfig.lib.json" "tsConfig": "packages/core/tsconfig.lib.json"
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"test": { "test": {
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/account-core"], "outputs": ["coverage/packages/core"],
"options": { "options": {
"jestConfig": "packages/account-core/jest.config.js", "jestConfig": "packages/core/jest.config.js",
"passWithNoTests": true "passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": ["packages/core/src/**/*.ts", "packages/core/src/**/*.html"]
"packages/account-core/src/**/*.ts",
"packages/account-core/src/**/*.html"
]
} }
} }
} }
}, },
"theme-basic": { "dev-app": {
"projectType": "library", "projectType": "application",
"root": "packages/theme-basic", "root": "apps/dev-app",
"sourceRoot": "packages/theme-basic/src", "sourceRoot": "apps/dev-app/src",
"prefix": "abp", "prefix": "app",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"options": { "options": {
"tsConfig": "packages/theme-basic/tsconfig.lib.json", "outputPath": "dist/apps/dev-app",
"project": "packages/theme-basic/ng-package.json" "index": "apps/dev-app/src/index.html",
"main": "apps/dev-app/src/main.ts",
"polyfills": "apps/dev-app/src/polyfills.ts",
"tsConfig": "apps/dev-app/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"allowedCommonJsDependencies": ["chart.js", "js-sha256"],
"assets": ["apps/dev-app/src/favicon.ico", "apps/dev-app/src/assets"],
"styles": [
{
"input": "node_modules/@abp/ng.theme.shared/styles/bootstrap-rtl.min.css",
"inject": false,
"bundleName": "bootstrap-rtl.min"
},
{
"input": "node_modules/bootstrap/dist/css/bootstrap.min.css",
"inject": true,
"bundleName": "bootstrap-ltr.min"
},
{
"input": "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
"inject": true,
"bundleName": "fontawesome-all.min"
},
{
"input": "node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css",
"inject": true,
"bundleName": "fontawesome-v4-shims.min"
},
{
"input": "node_modules/@swimlane/ngx-datatable/index.css",
"inject": true,
"bundleName": "ngx-datatable-index"
},
{
"input": "node_modules/@swimlane/ngx-datatable/assets/icons.css",
"inject": true,
"bundleName": "ngx-datatable-icons"
},
{
"input": "node_modules/@swimlane/ngx-datatable/themes/material.css",
"inject": true,
"bundleName": "ngx-datatable-material"
},
"apps/dev-app/src/styles.scss"
],
"scripts": []
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/theme-basic/tsconfig.lib.prod.json" "tsConfig": "apps/dev-app/tsconfig.prod.json",
"budgets": [
{
"type": "initial",
"maximumWarning": "1mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
],
"fileReplacements": [
{
"replace": "apps/dev-app/src/environments/environment.ts",
"with": "apps/dev-app/src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
}, },
"development": { "development": {
"tsConfig": "packages/theme-basic/tsconfig.lib.json" "buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"test": { "serve": {
"builder": "@nrwl/jest:jest", "builder": "@angular-devkit/build-angular:dev-server",
"outputs": ["coverage/packages/theme-basic"], "configurations": {
"production": {
"browserTarget": "dev-app:build:production"
},
"development": {
"browserTarget": "dev-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"jestConfig": "packages/theme-basic/jest.config.js", "browserTarget": "dev-app:build"
"passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": ["apps/dev-app/src/**/*.ts", "apps/dev-app/src/**/*.html"]
"packages/theme-basic/src/**/*.ts", }
"packages/theme-basic/src/**/*.html" },
] "test": {
"builder": "@nrwl/jest:jest",
"outputs": ["coverage/apps/dev-app"],
"options": {
"jestConfig": "apps/dev-app/jest.config.js",
"passWithNoTests": true
} }
} }
} }
}, },
"permission-management": { "dev-app-e2e": {
"projectType": "library", "root": "apps/dev-app-e2e",
"root": "packages/permission-management", "sourceRoot": "apps/dev-app-e2e/src",
"sourceRoot": "packages/permission-management/src", "projectType": "application",
"prefix": "abp",
"architect": { "architect": {
"build": { "e2e": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/cypress:cypress",
"options": { "options": {
"tsConfig": "packages/permission-management/tsconfig.lib.json", "cypressConfig": "apps/dev-app-e2e/cypress.json",
"project": "packages/permission-management/ng-package.json" "tsConfig": "apps/dev-app-e2e/tsconfig.e2e.json",
"devServerTarget": "dev-app:serve:development"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/permission-management/tsconfig.lib.prod.json" "devServerTarget": "dev-app:serve:production"
},
"development": {
"tsConfig": "packages/permission-management/tsconfig.lib.json"
} }
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/permission-management"],
"options": {
"jestConfig": "packages/permission-management/jest.config.js",
"passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": ["apps/dev-app-e2e/**/*.{js,ts}"]
"packages/permission-management/src/**/*.ts",
"packages/permission-management/src/**/*.html"
]
} }
} }
} }
@ -251,9 +318,9 @@
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/feature-management"],
"options": { "options": {
"tsConfig": "packages/feature-management/tsconfig.lib.json",
"project": "packages/feature-management/ng-package.json" "project": "packages/feature-management/ng-package.json"
}, },
"configurations": { "configurations": {
@ -285,79 +352,81 @@
} }
} }
}, },
"account": { "identity": {
"projectType": "library", "projectType": "library",
"root": "packages/account", "root": "packages/identity",
"sourceRoot": "packages/account/src", "sourceRoot": "packages/identity/src",
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/identity"],
"options": { "options": {
"tsConfig": "packages/account/tsconfig.lib.json", "project": "packages/identity/ng-package.json"
"project": "packages/account/ng-package.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/account/tsconfig.lib.prod.json" "tsConfig": "packages/identity/tsconfig.lib.prod.json"
}, },
"development": { "development": {
"tsConfig": "packages/account/tsconfig.lib.json" "tsConfig": "packages/identity/tsconfig.lib.json"
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"test": { "test": {
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/account"], "outputs": ["coverage/packages/identity"],
"options": { "options": {
"jestConfig": "packages/account/jest.config.js", "jestConfig": "packages/identity/jest.config.js",
"passWithNoTests": true "passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": ["packages/account/src/**/*.ts", "packages/account/src/**/*.html"] "lintFilePatterns": ["packages/identity/src/**/*.ts", "packages/identity/src/**/*.html"]
} }
} }
} }
}, },
"permission-management": {
"identity": {
"projectType": "library", "projectType": "library",
"root": "packages/identity", "root": "packages/permission-management",
"sourceRoot": "packages/identity/src", "sourceRoot": "packages/permission-management/src",
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/permission-management"],
"options": { "options": {
"tsConfig": "packages/identity/tsconfig.lib.json", "project": "packages/permission-management/ng-package.json"
"project": "packages/identity/ng-package.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "packages/identity/tsconfig.lib.prod.json" "tsConfig": "packages/permission-management/tsconfig.lib.prod.json"
}, },
"development": { "development": {
"tsConfig": "packages/identity/tsconfig.lib.json" "tsConfig": "packages/permission-management/tsconfig.lib.json"
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"test": { "test": {
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/identity"], "outputs": ["coverage/packages/permission-management"],
"options": { "options": {
"jestConfig": "packages/identity/jest.config.js", "jestConfig": "packages/permission-management/jest.config.js",
"passWithNoTests": true "passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": ["packages/identity/src/**/*.ts", "packages/identity/src/**/*.html"] "lintFilePatterns": [
"packages/permission-management/src/**/*.ts",
"packages/permission-management/src/**/*.html"
]
} }
} }
} }
@ -394,9 +463,9 @@
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/setting-management"],
"options": { "options": {
"tsConfig": "packages/setting-management/tsconfig.lib.json",
"project": "packages/setting-management/ng-package.json" "project": "packages/setting-management/ng-package.json"
}, },
"configurations": { "configurations": {
@ -435,9 +504,9 @@
"prefix": "abp", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/tenant-management"],
"options": { "options": {
"tsConfig": "packages/tenant-management/tsconfig.lib.json",
"project": "packages/tenant-management/ng-package.json" "project": "packages/tenant-management/ng-package.json"
}, },
"configurations": { "configurations": {
@ -469,154 +538,84 @@
} }
} }
}, },
"dev-app": { "theme-basic": {
"projectType": "application", "projectType": "library",
"root": "apps/dev-app", "root": "packages/theme-basic",
"sourceRoot": "apps/dev-app/src", "sourceRoot": "packages/theme-basic/src",
"prefix": "app", "prefix": "abp",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@nrwl/angular:package",
"outputs": ["{options.outputPath}"], "outputs": ["dist/packages/theme-basic"],
"options": { "options": {
"outputPath": "dist/apps/dev-app", "project": "packages/theme-basic/ng-package.json"
"index": "apps/dev-app/src/index.html",
"main": "apps/dev-app/src/main.ts",
"polyfills": "apps/dev-app/src/polyfills.ts",
"tsConfig": "apps/dev-app/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"allowedCommonJsDependencies": ["chart.js", "js-sha256"],
"assets": ["apps/dev-app/src/favicon.ico", "apps/dev-app/src/assets"],
"styles": [
{
"input": "node_modules/@abp/ng.theme.shared/styles/bootstrap-rtl.min.css",
"inject": false,
"bundleName": "bootstrap-rtl.min"
},
{
"input": "node_modules/bootstrap/dist/css/bootstrap.min.css",
"inject": true,
"bundleName": "bootstrap-ltr.min"
},
{
"input": "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
"inject": true,
"bundleName": "fontawesome-all.min"
},
{
"input": "node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css",
"inject": true,
"bundleName": "fontawesome-v4-shims.min"
},
{
"input": "node_modules/@swimlane/ngx-datatable/index.css",
"inject": true,
"bundleName": "ngx-datatable-index"
},
{
"input": "node_modules/@swimlane/ngx-datatable/assets/icons.css",
"inject": true,
"bundleName": "ngx-datatable-icons"
},
{
"input": "node_modules/@swimlane/ngx-datatable/themes/material.css",
"inject": true,
"bundleName": "ngx-datatable-material"
},
"apps/dev-app/src/styles.scss"
],
"scripts": []
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "apps/dev-app/tsconfig.prod.json", "tsConfig": "packages/theme-basic/tsconfig.lib.prod.json"
"budgets": [
{
"type": "initial",
"maximumWarning": "1mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
],
"fileReplacements": [
{
"replace": "apps/dev-app/src/environments/environment.ts",
"with": "apps/dev-app/src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
}, },
"development": { "development": {
"buildOptimizer": false, "tsConfig": "packages/theme-basic/tsconfig.lib.json"
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"serve": { "test": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@nrwl/jest:jest",
"configurations": { "outputs": ["coverage/packages/theme-basic"],
"production": {
"browserTarget": "dev-app:build:production"
},
"development": {
"browserTarget": "dev-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "dev-app:build" "jestConfig": "packages/theme-basic/jest.config.js",
"passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": ["apps/dev-app/src/**/*.ts", "apps/dev-app/src/**/*.html"] "lintFilePatterns": [
} "packages/theme-basic/src/**/*.ts",
}, "packages/theme-basic/src/**/*.html"
"test": { ]
"builder": "@nrwl/jest:jest",
"outputs": ["coverage/apps/dev-app"],
"options": {
"jestConfig": "apps/dev-app/jest.config.js",
"passWithNoTests": true
} }
} }
} }
}, },
"dev-app-e2e": { "theme-shared": {
"root": "apps/dev-app-e2e", "projectType": "library",
"sourceRoot": "apps/dev-app-e2e/src", "root": "packages/theme-shared",
"projectType": "application", "sourceRoot": "packages/theme-shared/src",
"prefix": "abp",
"architect": { "architect": {
"e2e": { "build": {
"builder": "@nrwl/cypress:cypress", "builder": "@nrwl/angular:package",
"outputs": ["dist/packages/theme-shared"],
"options": { "options": {
"cypressConfig": "apps/dev-app-e2e/cypress.json", "project": "packages/theme-shared/ng-package.json"
"tsConfig": "apps/dev-app-e2e/tsconfig.e2e.json",
"devServerTarget": "dev-app:serve:development"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "dev-app:serve:production" "tsConfig": "packages/theme-shared/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "packages/theme-shared/tsconfig.lib.json"
} }
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@nrwl/jest:jest",
"outputs": ["coverage/packages/theme-shared"],
"options": {
"jestConfig": "packages/theme-shared/jest.config.js",
"passWithNoTests": true
} }
}, },
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": ["apps/dev-app-e2e/**/*.{js,ts}"] "lintFilePatterns": [
"packages/theme-shared/src/**/*.ts",
"packages/theme-shared/src/**/*.html"
]
} }
} }
} }

2
npm/ng-packs/packages/account-core/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/account-core/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/account/src/lib/components/manage-profile/manage-profile.component.html

@ -1,6 +1,6 @@
<div id="AbpContentToolbar"></div> <div id="AbpContentToolbar"></div>
<div class="card border-0 shadow-sm min-h-400" [abpLoading]="(profile$ | async)?.userName"> <div class="card border-0 shadow-sm min-h-400" [abpLoading]="!(profile$ | async)?.userName">
<div class="card-body"> <div class="card-body">
<div class="row"> <div class="row">
<div class="col-12 col-md-3"> <div class="col-12 col-md-3">

2
npm/ng-packs/packages/account/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/account/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/components/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/components/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/core/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/core/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

3
npm/ng-packs/packages/feature-management/src/public-api.ts

@ -1,5 +1,6 @@
export * from './lib/feature-management.module';
export * from './lib/components'; export * from './lib/components';
export * from './lib/directives';
export * from './lib/enums/components'; export * from './lib/enums/components';
export * from './lib/feature-management.module';
export * from './lib/proxy/feature-management'; export * from './lib/proxy/feature-management';
export * from './lib/proxy/validation/string-values'; export * from './lib/proxy/validation/string-values';

2
npm/ng-packs/packages/feature-management/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/feature-management/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/identity/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/identity/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/permission-management/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/permission-management/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/setting-management/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/setting-management/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/tenant-management/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/tenant-management/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/packages/theme-basic/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/theme-basic/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

6
npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.html

@ -7,5 +7,9 @@
[style.display]="toasts.length ? 'flex' : 'none'" [style.display]="toasts.length ? 'flex' : 'none'"
[@toastInOut]="toasts.length" [@toastInOut]="toasts.length"
> >
<abp-toast [toast]="toast" *ngFor="let toast of toasts; trackBy: trackByFunc"></abp-toast> <abp-toast
[toast]="toast"
*ngFor="let toast of toasts; trackBy: trackByFunc"
(remove)="remove($event)"
></abp-toast>
</div> </div>

4
npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.ts

@ -1,7 +1,7 @@
import { Component, Input, OnInit } from '@angular/core'; import { Component, Input, OnInit } from '@angular/core';
import { ReplaySubject } from 'rxjs';
import { toastInOut } from '../../animations/toast.animations'; import { toastInOut } from '../../animations/toast.animations';
import { Toaster } from '../../models/toaster'; import { Toaster } from '../../models/toaster';
import { ReplaySubject } from 'rxjs';
@Component({ @Component({
selector: 'abp-toast-container', selector: 'abp-toast-container',
@ -12,6 +12,8 @@ import { ReplaySubject } from 'rxjs';
export class ToastContainerComponent implements OnInit { export class ToastContainerComponent implements OnInit {
toasts$: ReplaySubject<Toaster.Toast[]>; toasts$: ReplaySubject<Toaster.Toast[]>;
remove: (toastId: number) => void;
toasts = [] as Toaster.Toast[]; toasts = [] as Toaster.Toast[];
@Input() @Input()

10
npm/ng-packs/packages/theme-shared/src/lib/components/toast/toast.component.ts

@ -1,7 +1,5 @@
import { Component, Input, OnInit } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Toaster } from '../../models/toaster'; import { Toaster } from '../../models/toaster';
import { ToasterService } from '../../services/toaster.service';
@Component({ @Component({
selector: 'abp-toast', selector: 'abp-toast',
templateUrl: './toast.component.html', templateUrl: './toast.component.html',
@ -11,6 +9,8 @@ export class ToastComponent implements OnInit {
@Input() @Input()
toast: Toaster.Toast; toast: Toaster.Toast;
@Output() remove = new EventEmitter<number>();
get severityClass(): string { get severityClass(): string {
if (!this.toast || !this.toast.severity) return ''; if (!this.toast || !this.toast.severity) return '';
return `abp-toast-${this.toast.severity}`; return `abp-toast-${this.toast.severity}`;
@ -31,8 +31,6 @@ export class ToastComponent implements OnInit {
} }
} }
constructor(private toasterService: ToasterService) {}
ngOnInit() { ngOnInit() {
const { sticky, life } = this.toast.options || {}; const { sticky, life } = this.toast.options || {};
@ -44,7 +42,7 @@ export class ToastComponent implements OnInit {
} }
close() { close() {
this.toasterService.remove(this.toast.options.id); this.remove.emit(this.toast.options.id);
} }
tap() { tap() {

5
npm/ng-packs/packages/theme-shared/src/lib/services/toaster.service.ts

@ -27,6 +27,7 @@ export class ToasterService implements ToasterContract {
this.containerComponentRef = this.contentProjectionService.projectContent( this.containerComponentRef = this.contentProjectionService.projectContent(
PROJECTION_STRATEGY.AppendComponentToBody(ToastContainerComponent, { PROJECTION_STRATEGY.AppendComponentToBody(ToastContainerComponent, {
toasts$: this.toasts$, toasts$: this.toasts$,
remove: this.remove,
}), }),
); );
@ -120,10 +121,10 @@ export class ToasterService implements ToasterContract {
* Removes the toast with given id. * Removes the toast with given id.
* @param id ID of the toast to be removed. * @param id ID of the toast to be removed.
*/ */
remove(id: number): void { remove = (id: number) => {
this.toasts = this.toasts.filter(toast => toast.options?.id !== id); this.toasts = this.toasts.filter(toast => toast.options?.id !== id);
this.toasts$.next(this.toasts); this.toasts$.next(this.toasts);
} };
/** /**
* Removes all open toasts at once. * Removes all open toasts at once.

2
npm/ng-packs/packages/theme-shared/tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.lib.base.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

2
npm/ng-packs/packages/theme-shared/tsconfig.lib.prod.json

@ -6,6 +6,6 @@
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"compilationMode": "partial", "compilationMode": "partial",
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/scripts/build.ts

@ -51,7 +51,7 @@ import execa from 'execa';
'--prod', '--prod',
'--all', '--all',
'--exclude', '--exclude',
'schematics,core,theme-shared,components,feature-management,permission-management,account-core', 'dev-app,schematics,core,theme-shared,components,feature-management,permission-management,account-core',
'--parallel', '--parallel',
], ],
{ stdout: 'inherit', cwd: '../' }, { stdout: 'inherit', cwd: '../' },

2
npm/ng-packs/source-code-requirements/tsconfig.lib.json

@ -9,7 +9,7 @@
"lib": ["dom", "es2018"] "lib": ["dom", "es2018"]
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false, "enableIvy": true,
"skipTemplateCodegen": true, "skipTemplateCodegen": true,
"strictMetadataEmit": true, "strictMetadataEmit": true,
"enableResourceInlining": true "enableResourceInlining": true

2
npm/ng-packs/source-code-requirements/tsconfig.lib.prod.json

@ -1,6 +1,6 @@
{ {
"extends": "./tsconfig.lib.json", "extends": "./tsconfig.lib.json",
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false "enableIvy": true
} }
} }

2
npm/ng-packs/tools/tsconfig.tools.json

@ -1,5 +1,5 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../dist/out-tsc/tools", "outDir": "../dist/out-tsc/tools",
"rootDir": ".", "rootDir": ".",

5
npm/ng-packs/tsconfig.base.json

@ -1,7 +1,6 @@
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"rootDir": ".",
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
@ -11,7 +10,7 @@
"target": "es2015", "target": "es2015",
"module": "esnext", "module": "esnext",
"lib": ["es2017", "dom"], "lib": ["es2017", "dom"],
"baseUrl": ".", "baseUrl": "./",
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"paths": { "paths": {
"@abp/ng.account": ["packages/account/src/public-api.ts"], "@abp/ng.account": ["packages/account/src/public-api.ts"],
@ -34,7 +33,7 @@
"@abp/ng.theme.basic": ["packages/theme-basic/src/public-api.ts"], "@abp/ng.theme.basic": ["packages/theme-basic/src/public-api.ts"],
"@abp/ng.theme.basic/testing": ["packages/theme-basic/testing/src/public-api.ts"], "@abp/ng.theme.basic/testing": ["packages/theme-basic/testing/src/public-api.ts"],
"@abp/ng.theme.shared": ["packages/theme-shared/src/public-api.ts"], "@abp/ng.theme.shared": ["packages/theme-shared/src/public-api.ts"],
"@abp/ng.theme.shared/extensions": ["packages/theme-shared/extensions"], "@abp/ng.theme.shared/extensions": ["packages/theme-shared/extensions/src/public-api.ts"],
"@abp/ng.theme.shared/testing": ["packages/theme-shared/testing/src/public-api.ts"] "@abp/ng.theme.shared/testing": ["packages/theme-shared/testing/src/public-api.ts"]
} }
}, },

48
npm/ng-packs/tsconfig.lib.base.json

@ -1,48 +0,0 @@
{
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": ["es2017", "dom"],
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"paths": {
"@abp/ng.account": ["dist/packages/account"],
"@abp/ng.account.core": ["dist/packages/account-core"],
"@abp/ng.account/config": ["dist/packages/account/config"],
"@abp/ng.components": ["dist/packages/components"],
"@abp/ng.components/page": ["dist/packages/components/page"],
"@abp/ng.components/tree": ["dist/packages/components/tree"],
"@abp/ng.core": ["dist/packages/core"],
"@abp/ng.core/locale": ["dist/packages/core/locale"],
"@abp/ng.core/testing": ["dist/packages/core/testing"],
"@abp/ng.feature-management": ["dist/packages/feature-management"],
"@abp/ng.identity": ["dist/packages/identity/"],
"@abp/ng.identity/config": ["dist/packages/identity/config"],
"@abp/ng.permission-management": ["dist/packages/permission-management"],
"@abp/ng.setting-management": ["dist/packages/setting-management"],
"@abp/ng.setting-management/config": [
"dist/packages/setting-management/config"
],
"@abp/ng.tenant-management": ["dist/packages/tenant-management"],
"@abp/ng.tenant-management/config": [
"dist/packages/tenant-management/config"
],
"@abp/ng.theme.basic": ["dist/packages/theme-basic"],
"@abp/ng.theme.basic/testing": ["dist/packages/theme-basic/testing"],
"@abp/ng.theme.shared": ["dist/packages/theme-shared"],
"@abp/ng.theme.shared/extensions": [
"dist/packages/theme-shared/extensions"
],
"@abp/ng.theme.shared/testing": ["dist/packages/theme-shared/testing"]
}
},
"exclude": ["node_modules", "tmp"]
}

12
npm/ng-packs/yarn.lock

@ -6482,9 +6482,9 @@ ejs@^3.1.5:
jake "^10.6.1" jake "^10.6.1"
electron-to-chromium@^1.3.793: electron-to-chromium@^1.3.793:
version "1.3.807" version "1.3.810"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.807.tgz#c2eb803f4f094869b1a24151184ffbbdbf688b1f" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.810.tgz#23e340507e13e48debdb7445d2f8fbfab681c4df"
integrity sha512-p8uxxg2a23zRsvQ2uwA/OOI+O4BQxzaR7YKMIGGGQCpYmkFX2CVF5f0/hxLMV7yCr7nnJViCwHLhPfs52rIYCA== integrity sha512-NteznMlGtkIZCJNM2X6AVm3oMqWAdq7TjqagZhmVLPwd9mtrIq+rRxGHerjFAOFIqQJYQUMT72ncd/lVcH1cOw==
elliptic@^6.5.3: elliptic@^6.5.3:
version "6.5.4" version "6.5.4"
@ -8459,9 +8459,9 @@ is-color-stop@^1.1.0:
rgba-regex "^1.0.0" rgba-regex "^1.0.0"
is-core-module@^2.2.0: is-core-module@^2.2.0:
version "2.5.0" version "2.6.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.5.0.tgz#f754843617c70bfd29b7bd87327400cda5c18491" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.6.0.tgz#d7553b2526fe59b92ba3e40c8df757ec8a709e19"
integrity sha512-TXCMSDsEHMEEZ6eCA8rwRDbLu55MRGmrctljsBX/2v1d9/GzqHOxW5c5oPSgrUt2vBFXebu9rGqckXGPWOlYpg== integrity sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ==
dependencies: dependencies:
has "^1.0.3" has "^1.0.3"

Loading…
Cancel
Save