mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Shared Lib - Umstrukturierung
This commit is contained in:
109
angular.json
109
angular.json
@@ -1894,37 +1894,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@shared/goods-in-out": {
|
||||
"projectType": "library",
|
||||
"root": "apps/shared/goods-in-out",
|
||||
"sourceRoot": "apps/shared/goods-in-out/src",
|
||||
"prefix": "shared",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"tsConfig": "apps/shared/goods-in-out/tsconfig.lib.json",
|
||||
"project": "apps/shared/goods-in-out/ng-package.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "apps/shared/goods-in-out/tsconfig.lib.prod.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"tsConfig": "apps/shared/goods-in-out/tsconfig.spec.json",
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"polyfills": [
|
||||
"zone.js",
|
||||
"zone.js/testing"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@ui/tooltip": {
|
||||
"projectType": "library",
|
||||
"root": "apps/ui/tooltip",
|
||||
@@ -2328,37 +2297,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@shared/notification-channel-control": {
|
||||
"projectType": "library",
|
||||
"root": "apps/shared/notification-channel-control",
|
||||
"sourceRoot": "apps/shared/notification-channel-control/src",
|
||||
"prefix": "shared",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"tsConfig": "apps/shared/notification-channel-control/tsconfig.lib.json",
|
||||
"project": "apps/shared/notification-channel-control/ng-package.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "apps/shared/notification-channel-control/tsconfig.lib.prod.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"tsConfig": "apps/shared/notification-channel-control/tsconfig.spec.json",
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"polyfills": [
|
||||
"zone.js",
|
||||
"zone.js/testing"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"isa-app": {
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
@@ -3025,39 +2963,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@shared/history": {
|
||||
"projectType": "library",
|
||||
"root": "apps/shared/history",
|
||||
"sourceRoot": "apps/shared/history/src",
|
||||
"prefix": "lib",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"project": "apps/shared/history/ng-package.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "apps/shared/history/tsconfig.lib.prod.json"
|
||||
},
|
||||
"development": {
|
||||
"tsConfig": "apps/shared/history/tsconfig.lib.json"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"tsConfig": "apps/shared/history/tsconfig.spec.json",
|
||||
"polyfills": [
|
||||
"zone.js",
|
||||
"zone.js/testing"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@swagger/wws": {
|
||||
"projectType": "library",
|
||||
"root": "apps/swagger/wws",
|
||||
@@ -3159,23 +3064,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@shared/breadcrumb": {
|
||||
"shared": {
|
||||
"projectType": "library",
|
||||
"root": "apps/shared/breadcrumb",
|
||||
"sourceRoot": "apps/shared/breadcrumb/src",
|
||||
"root": "apps/shared",
|
||||
"sourceRoot": "apps/shared",
|
||||
"prefix": "shared",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"project": "apps/shared/breadcrumb/ng-package.json"
|
||||
"project": "apps/shared/ng-package.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "apps/shared/breadcrumb/tsconfig.lib.prod.json"
|
||||
"tsConfig": "apps/shared/tsconfig.lib.prod.json"
|
||||
},
|
||||
"development": {
|
||||
"tsConfig": "apps/shared/breadcrumb/tsconfig.lib.json"
|
||||
"tsConfig": "apps/shared/tsconfig.lib.json"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
@@ -3183,7 +3088,7 @@
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"tsConfig": "apps/shared/breadcrumb/tsconfig.spec.json",
|
||||
"tsConfig": "apps/shared/tsconfig.spec.json",
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"polyfills": [
|
||||
"zone.js",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createComponentFactory, mockProvider, Spectator } from '@ngneat/spectator';
|
||||
import { SharedHistoryListComponent, SharedHistoryListModule } from '@shared/history';
|
||||
import { SharedHistoryListComponent, SharedHistoryListModule } from '@shared/components/history';
|
||||
import { HistoryDTO } from '@swagger/crm';
|
||||
import { UiModalRef } from '@ui/modal';
|
||||
import { HistoryData } from './history-data';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { SharedHistoryListModule } from '@shared/history';
|
||||
import { SharedHistoryListModule } from '@shared/components/history';
|
||||
import { UiModalModule } from '@ui/modal';
|
||||
import { HistoryModalComponent } from './history.component';
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import { DomainPrinterService } from '@domain/printer';
|
||||
import { CheckoutDummyComponent } from '../checkout-dummy/checkout-dummy.component';
|
||||
import { ResponseArgsOfItemDTO } from '@swagger/cat';
|
||||
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
||||
import { emailNotificationValidator, mobileNotificationValidator } from '@shared/notification-channel-control';
|
||||
import { emailNotificationValidator, mobileNotificationValidator } from '@shared/components/notification-channel-control';
|
||||
import { PurchasingOptionsListModalComponent } from '../modals/purchasing-options-list-modal';
|
||||
import { PurchasingOptionsListModalData } from '../modals/purchasing-options-list-modal/purchasing-options-list-modal.data';
|
||||
import { ComponentStore, tapResponse } from '@ngrx/component-store';
|
||||
|
||||
@@ -14,7 +14,7 @@ import { UiInputModule } from '@ui/input';
|
||||
import { UiCheckboxModule } from '@ui/checkbox';
|
||||
import { SpecialCommentComponent } from './special-comment/special-comment.component';
|
||||
import { UiQuantityDropdownModule } from '@ui/quantity-dropdown';
|
||||
import { SharedNotificationChannelControlModule } from '@shared/notification-channel-control';
|
||||
import { SharedNotificationChannelControlModule } from '@shared/components/notification-channel-control';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { ShoppingCartItemComponent } from './shopping-cart-item/shopping-cart-item.component';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { BreadcrumbService } from '@core/breadcrumb';
|
||||
import { CommandService } from '@core/command';
|
||||
import { Config } from '@core/config';
|
||||
import { OrderItemsContext } from '@domain/oms';
|
||||
import { GoodsInOutOrderGroupItemComponent } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupItemComponent } from '@shared/components/goods-in-out';
|
||||
import { KeyValueDTOOfStringAndString, OrderItemListItemDTO } from '@swagger/oms';
|
||||
import { UiErrorModalComponent, UiModalService } from '@ui/modal';
|
||||
import { UiScrollContainerComponent } from '@ui/scroll-container';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/components/goods-in-out';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { UiScrollContainerModule } from '@ui/scroll-container';
|
||||
import { UiSpinnerModule } from 'apps/ui/spinner/src/lib/ui-spinner.module';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { SharedGoodsInOutOrderDetailsModule } from '@shared/goods-in-out';
|
||||
import { SharedGoodsInOutOrderDetailsModule } from '@shared/components/goods-in-out';
|
||||
|
||||
import { GoodsInDetailsComponent } from './goods-in-details.component';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { SharedGoodsInOutOrderEditModule } from '@shared/goods-in-out';
|
||||
import { SharedGoodsInOutOrderEditModule } from '@shared/components/goods-in-out';
|
||||
import { GoodsInEditComponent } from './goods-in-edit.component';
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -4,8 +4,8 @@ import { ProductImageModule } from 'apps/cdn/product-image/src/public-api';
|
||||
import { UiIconModule } from '@ui/icon';
|
||||
import { UiInputModule } from '@ui/input';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { PipesModule } from 'apps/shared/goods-in-out/src/lib/pipes/pipes.module';
|
||||
import { GoodsInListItemComponent } from './goods-in-list-item.component';
|
||||
import { PipesModule } from 'apps/shared/components/goods-in-out/src/lib/pipes/pipes.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, PipesModule, UiIconModule, ProductImageModule, FormsModule, UiInputModule],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/components/goods-in-out';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { UiScrollContainerModule } from '@ui/scroll-container';
|
||||
import { UiSpinnerModule } from 'apps/ui/spinner/src/lib/ui-spinner.module';
|
||||
|
||||
@@ -4,7 +4,7 @@ import { BreadcrumbService } from '@core/breadcrumb';
|
||||
import { CommandService } from '@core/command';
|
||||
import { Config } from '@core/config';
|
||||
import { OrderItemsContext } from '@domain/oms';
|
||||
import { GoodsInOutOrderGroupItemComponent } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupItemComponent } from '@shared/components/goods-in-out';
|
||||
import { KeyValueDTOOfStringAndString, OrderItemListItemDTO } from '@swagger/oms';
|
||||
import { UiErrorModalComponent, UiModalService } from '@ui/modal';
|
||||
import { UiScrollContainerComponent } from '@ui/scroll-container';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/components/goods-in-out';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { UiScrollContainerModule } from 'apps/ui/scroll-container/src/public-api';
|
||||
import { UiSpinnerModule } from 'apps/ui/spinner/src/lib/ui-spinner.module';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
||||
|
||||
import { GoodsInSearchResultsComponent } from './goods-in-search-results.component';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/components/goods-in-out';
|
||||
import { UiScrollContainerModule } from '@ui/scroll-container';
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { SharedGoodsInOutOrderDetailsModule } from '@shared/goods-in-out';
|
||||
import { SharedGoodsInOutOrderDetailsModule } from '@shared/components/goods-in-out';
|
||||
|
||||
import { GoodsOutDetailsComponent } from './goods-out-details.component';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { SharedGoodsInOutOrderEditModule } from '@shared/goods-in-out';
|
||||
import { SharedGoodsInOutOrderEditModule } from '@shared/components/goods-in-out';
|
||||
import { GoodsOutEditComponent } from './goods-out-edit.component';
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { GoodsOutSearchResultsComponent } from './goods-out-search-results.component';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/goods-in-out';
|
||||
import { GoodsInOutOrderGroupModule } from '@shared/components/goods-in-out';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { GoodsOutItemSelectablePipe } from './goods-out-item-selectable.pipe';
|
||||
import { GoodsOutItemSelectedPipe } from './goods-out-item-selectede.pipe';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { BreadcrumbModule } from '@shared/breadcrumb';
|
||||
import { BreadcrumbModule } from '@shared/components/breadcrumb';
|
||||
import { PackageDetailsModule } from './package-details';
|
||||
import { PackageInspectionComponent } from './package-inspection.component';
|
||||
import { PackageResultModule } from './package-result';
|
||||
|
||||
25
apps/shared/README.md
Normal file
25
apps/shared/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Shared
|
||||
|
||||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.0.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Run `ng generate component component-name --project shared` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project shared`.
|
||||
|
||||
> Note: Don't forget to add `--project shared` or else it will be added to the default project in your `angular.json` file.
|
||||
|
||||
## Build
|
||||
|
||||
Run `ng build shared` to build the project. The build artifacts will be stored in the `dist/` directory.
|
||||
|
||||
## Publishing
|
||||
|
||||
After building your library with `ng build shared`, go to the dist folder `cd dist/shared` and run `npm publish`.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
Run `ng test shared` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||
|
||||
## Further help
|
||||
|
||||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
||||
@@ -1,24 +1,24 @@
|
||||
# Breadcrumb
|
||||
# Components
|
||||
|
||||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.0.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Run `ng generate component component-name --project breadcrumb` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project breadcrumb`.
|
||||
Run `ng generate component component-name --project components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project components`.
|
||||
|
||||
> Note: Don't forget to add `--project breadcrumb` or else it will be added to the default project in your `angular.json` file.
|
||||
> Note: Don't forget to add `--project components` or else it will be added to the default project in your `angular.json` file.
|
||||
|
||||
## Build
|
||||
|
||||
Run `ng build breadcrumb` to build the project. The build artifacts will be stored in the `dist/` directory.
|
||||
Run `ng build components` to build the project. The build artifacts will be stored in the `dist/` directory.
|
||||
|
||||
## Publishing
|
||||
|
||||
After building your library with `ng build breadcrumb`, go to the dist folder `cd dist/breadcrumb` and run `npm publish`.
|
||||
After building your library with `ng build components`, go to the dist folder `cd dist/components` and run `npm publish`.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
Run `ng test breadcrumb` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||
Run `ng test components` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||
|
||||
## Further help
|
||||
|
||||
6
apps/shared/components/breadcrumb/ng-package.json
Normal file
6
apps/shared/components/breadcrumb/ng-package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
6
apps/shared/components/goods-in-out/ng-package.json
Normal file
6
apps/shared/components/goods-in-out/ng-package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
} from '@angular/core';
|
||||
import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
|
||||
import { DomainOmsService } from '@domain/oms';
|
||||
import { emailNotificationValidator, mobileNotificationValidator } from '@shared/notification-channel-control';
|
||||
import { emailNotificationValidator, mobileNotificationValidator } from '@shared/components/notification-channel-control';
|
||||
import { NotificationChannel, OrderItemListItemDTO, StockStatusCodeDTO, VATDTO } from '@swagger/oms';
|
||||
import { DateAdapter } from '@ui/common';
|
||||
import { UiErrorModalComponent, UiModalService } from '@ui/modal';
|
||||
@@ -2,7 +2,7 @@ import { TextFieldModule } from '@angular/cdk/text-field';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { SharedNotificationChannelControlModule } from '@shared/notification-channel-control';
|
||||
import { SharedNotificationChannelControlModule } from '@shared/components/notification-channel-control';
|
||||
import { UiCommonModule } from '@ui/common';
|
||||
import { UiDatepickerModule } from '@ui/datepicker';
|
||||
import { UiDropdownModule } from '@ui/dropdown';
|
||||
6
apps/shared/components/history/ng-package.json
Normal file
6
apps/shared/components/history/ng-package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createComponentFactory, Spectator } from '@ngneat/spectator';
|
||||
import { SharedHistoryListComponent, SharedHistoryLogEntryComponent, SharedHistoryLogEntryModule } from '@shared/history';
|
||||
import { SharedHistoryListComponent, SharedHistoryLogEntryComponent, SharedHistoryLogEntryModule } from '@shared/components/history';
|
||||
import { HistoryDTO } from '@swagger/crm';
|
||||
|
||||
describe('SharedHistoryListComponent', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createComponentFactory, Spectator } from '@ngneat/spectator';
|
||||
import { SharedHistoryLogEntryValuesComponent } from '@shared/history';
|
||||
import { SharedHistoryLogEntryValuesComponent } from '@shared/components/history';
|
||||
import { DiffDTO as CrmDiffDTO } from '@swagger/crm';
|
||||
import { DiffDTO as OmsDiffDTO } from '@swagger/oms';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user