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AAsBF,KACnEsI,UAAWhK,EACXoN,YAAa,CAACC,KACdC,cAAe,CAACH,KAChB7T,KAAM,CACJiU,mBAAoBpM,IAAWC,MAAMC,SAASC,aAAaM,sBAAsB2L,qBAGrF,CACE7L,KAAMP,IAAWC,MAAMC,SAASC,aAAaG,iBAAiBC,KAC9DsI,UAAWhK,EACXoN,YAAa,CAACC,KACdC,cAAe,CAACH,KAChB7T,KAAM,CACJiU,mBAAoBpM,IAAWC,MAAMC,SAASC,aAAaG,iBAAiB8L,mBAC5EL,OAAO,KAKAM,GAAyDC,KAAaC,SAAS3D,IGjBrF,IAAM4D,GAAkB,UAAAC,EAAzB,MAAOD,qDAAkB,yBAAlBA,iCAHA,CAAC,CAACE,QAASnJ,IAAeoJ,SAAUC,KAA2BC,KAA8BC,QAAA,CAD9FC,IAAyBC,KAAcX,GAAqBY,SAI3DT,CAAkB","names":["ProductConfigurationOpenInCadcamDialogComponent","_ProductConfigurationOpenInCadcamDialogComponent","constructor","data","this","i0","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","_c0","name","UnlockInUseComponent","_UnlockInUseComponent","BaseComponent","dialogBuilderFactoryService","translate","authentication","super","lockedChange","EventEmitter","dialogBuilderWithAlertDialogClass","getBuilder","withClass","ngOnInit","currentSubscription","getCurrentSubscription","unlock","undefined","conflictsRepository","getConflicts","conflicts","openDialog","ConflictsDialogComponent","ConflictsDialogData","createUnlockData","entityKey","ConflictType","pipe","takeUntil","unSubscribeOnViewDestroy","subscribe","onUnlock","viewInUse","createInUseData","getInformation","instant","locked","getButton","getMessage","_this$customMessage","customMessage","main","object","count","clickButton","callback","id","emit","i1","AUTHENTICATION","inputs","outputs","features","_r1","ctx_r1","unlockWeaveProduct","translationKeyForWeaveProducts","weaveProducts","weaveProductIsLocked","weaveProductToSave","AddWeaveProductPageComponent_ng_container_5_div_1_Template","isWeaveProductBeingUsed","getLoadLink","_c2","_c3","maxWidthInCm","_c4","_c5","tmp_2_0","maxNumberOfFeeders","maxNumberOfShafts","AddWeaveProductPageComponent_mat_card_7_mat_error_11_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_12_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_29_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_30_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_31_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_32_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_42_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_43_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_44_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_60_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_61_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_76_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_77_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_78_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_86_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_87_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_88_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_95_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_96_Template","AddWeaveProductPageComponent_mat_card_7_mat_error_97_Template","isLoadingWeaveProduct","addWeaveProductForm","getVersionValue","AddWeaveProductPageComponent","_AddWeaveProductPageComponent","machines","document","formBuilder","router","activatedRoute","navigationHelperService","textileService","unsavedChangesNotifierService","SAVE_TYPE","SaveType","HEADER_IDENTIFIER","HeaderIdentifier","ADD_WEAVE_PRODUCT","texstyleEditPermission","LastModifiedCardUtils","getPermissionToModifyItems","WEAVE_PRODUCT_OVERVIEW_PAGE_URL","RouteUtils","paths","texStyle","weaveProduct","absolutePath","EDIT_WEAVE_PRODUCT_PAGE_URL","editWeaveProduct","path","DUPLICATE_WEAVE_PRODUCT_PAGE_URL","duplicateWeaveProduct","saveButtonTouched","action","isEditingWeaveProduct","urlParams","snapshot","params","WeaveProduct","createEmptyWeaveProduct","setWeaveProductForm","getEmitValue","isUndefined","setValues","setFormFieldsForMachine","getById","parseInt","next","isDuplicatingWeaveProduct","used","disableForm","error","ErrorHandlers","navigateToOverviewAndThrowError","onNavigationHelperDestroy","onDestroy","canShowAddWeaveProductForm","isNil","hasEditPermission","_this$currentSubscrip","hasPermission","navigateBack","navigateToPreviousRoute","saveWeaveProduct","saveType","navigateToSelectedRoute","FormValidationHelper","checkForms","getCurrentWeaveProduct","saving","update","save","finalize","finalizeSaving","notifyChangesToForm","navigateAndShowToast","TextileDataType","WEAVE_PRODUCT","errorMessage","showErrorDialogForBackendError","message","deleteWeaveProduct","removeConfirmation","navigateByUrl","replace","toString","openConflictsDialog","getTranslations","version","canShowInvalidFormMessageError","isFormInvalid","Object","values","controls","some","control","invalid","touched","routeConfig","enable","disable","patchValue","getRawValue","value","widthInCm","pickDensityInPicksPerCm","standardSpeedInRotationsPerMinute","standardEfficiencyInPercentage","numberOfFeeders","numberOfShafts","description","translationKey","openAlertDialog","titleText","messageText","type","DialogType","INFORMATION","group","updateOn","validators","Validators","required","min","max","notifyChanges","weaveProductName","reset","setWeaveProductNameAsyncValidator","setAsyncValidators","AsyncUniqueValidator","createValidator","emptyMachineOverviewState","equipmentId","machineOverviewState","getPartialState","keys","AssertionUtils","isNullOrUndefined","ObjectUtils","isDeepEqual","weavingMachine","weavingMachineType","width","addValidators","updateValueAndValidity","getSaveEventEmitter","res","SAVE_AND_CLOSE","MACHINES","DOCUMENT","i2","i3","i4","i5","i6","SAVE","SAVE_AND_CREATE_NEW","AddWeaveProductPageComponent_ng_container_5_Template","AddWeaveProductPageComponent_mat_card_7_Template","_c1","skeletonViewAnimation","weaveProductRoutes","component","_WeaveProductOverviewPageComponent","WeaveProductOverviewPageComponent","responsivenessViewMode","l10nIntlService","colDefBuilderFactoryService","textileDataType","GRID_IDENTIFIER","GridIdentifier","WEAVE_PRODUCT_OVERVIEW","pageUrls","getPageUrls","getWeaveProducts","getColumnDefsForListOfWeaveProducts","withColIdAndField","withHeaderName","withComparator","StringUtils","stringComparator","withCellRenderer","LinkIconRendererComponent","canClick","isMobile","editPageUrl","edit","withCellClass","cellClassParams","result","isEmpty","push","build","getValue","withPinned","buildAgGridCellTextWithUnit","Unit","CENTIMETER","PICKS_PER_CENTIMETER","ROTATIONS_PER_MINUTE","showOnlyLatestVersionChanged","showOnlyLatestVersion","getAll","listOfWeaveProducts","isPhone","defaultUnit","AgGridUtils","RESPONSIVENESS_VIEW_MODE","$event","AuthorizedRouteFactory","createComponentRoute","addWeaveProduct","reuse","canDeactivateRouteWithUnsavedChanges","canActivate","canActivatePermissionGuard","canDeactivate","requiredPermission","weaveProductRouting","RouterModule","forChild","WeaveProductModule","_WeaveProductModule","provide","useClass","HttpWeaveProductsService","UnsavedChangesNotifierService","imports","TextileDataSharedModule","AgGridModule","CanShowErrorForFormControlModule"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./apps/texconnect/src/app/presentation/components/product-configuration-open-in-cadcam/product-configuration-open-in-cadcam-dialog.component.ts","./apps/texconnect/src/app/presentation/components/product-configuration-open-in-cadcam/product-configuration-open-in-cadcam-dialog.component.html","./apps/texconnect/src/app/presentation/components/unlock-in-use/unlock-in-use.component.ts","./apps/texconnect/src/app/presentation/components/unlock-in-use/unlock-in-use.component.html","./apps/texconnect/src/app/presentation/pages/textile-data/weave-product/add/add-weave-product-page.component.html","./apps/texconnect/src/app/presentation/pages/textile-data/weave-product/add/add-weave-product-page.component.ts","./apps/texconnect/src/app/presentation/pages/textile-data/weave-product/weave-product.routing.ts","./apps/texconnect/src/app/presentation/pages/textile-data/weave-product/overview/weave-product-overview-page.component.ts","./apps/texconnect/src/app/presentation/pages/textile-data/weave-product/overview/weave-product-overview-page.component.html","./apps/texconnect/src/app/presentation/pages/textile-data/weave-product/weave-product.module.ts"],"sourcesContent":["import {Component, Inject} from '@angular/core';\nimport {MAT_DIALOG_DATA} from '@angular/material/dialog';\n\n@Component({\n templateUrl: './product-configuration-open-in-cadcam-dialog.component.html',\n styleUrls: ['./product-configuration-open-in-cadcam-dialog.component.scss']\n})\nexport class ProductConfigurationOpenInCadcamDialogComponent {\n public constructor(@Inject(MAT_DIALOG_DATA) public data: {name: string}) {}\n}\n","
\n
\n

{{ 'PRODUCT_CONFIGURATION.OPEN_IN_CADCAM' | bmsTranslate: {object: data.name} }}

\n

{{ 'PRODUCT_CONFIGURATION.WARNING' | bmsTranslate }}

\n
\n \n
\n","import {Component, EventEmitter, Inject, Input, OnInit, Output} from '@angular/core';\nimport {ConflictType} from '@domain/conflicts/conflict-type';\nimport {Subscription} from '@domain/profile/subscription';\nimport {Authentication, AUTHENTICATION} from '@infrastructure/http/authentication/authentication';\nimport {ConflictsRepository} from '@infrastructure/http/conflicts-repository';\nimport {CardInfoMessage} from '@presentation/components/card-info/card-info-message.interface';\nimport {BaseComponent, Conflict, ConflictsDialogComponent, ConflictsDialogData, DialogBuilderFactoryService, TranslateService} from '@vdw/angular-component-library';\nimport {takeUntil} from 'rxjs/operators';\nimport {ProductConfigurationOpenInCadcamDialogComponent} from '../product-configuration-open-in-cadcam/product-configuration-open-in-cadcam-dialog.component';\n\n@Component({\n selector: 'app-unlock-in-use',\n templateUrl: './unlock-in-use.component.html'\n})\nexport class UnlockInUseComponent extends BaseComponent implements OnInit {\n @Input() public locked: boolean;\n @Input() public conflictsRepository: ConflictsRepository;\n @Input() public entityKey: string;\n @Input() public id: number;\n @Input() public name: string;\n @Input() public customMessage: CardInfoMessage;\n\n @Output() public lockedChange: EventEmitter = new EventEmitter();\n\n private readonly dialogBuilderWithAlertDialogClass = this.dialogBuilderFactoryService.getBuilder().withClass('alert-dialog');\n private currentSubscription: Subscription;\n\n public constructor(\n private readonly dialogBuilderFactoryService: DialogBuilderFactoryService,\n private readonly translate: TranslateService,\n @Inject(AUTHENTICATION) public readonly authentication: Authentication\n ) {\n super();\n }\n\n public ngOnInit(): void {\n this.currentSubscription = this.authentication.getCurrentSubscription();\n }\n\n public unlock(): void {\n if (this.conflictsRepository !== undefined) {\n this.getConflicts((conflicts: Conflict[]) => {\n this.dialogBuilderWithAlertDialogClass\n .openDialog(ConflictsDialogComponent, ConflictsDialogData.createUnlockData(this.entityKey, this.name, conflicts, ConflictType, this.currentSubscription))\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe((unlock: boolean) => this.onUnlock(unlock));\n });\n } else {\n this.dialogBuilderWithAlertDialogClass\n .openDialog(ProductConfigurationOpenInCadcamDialogComponent, {name: this.name})\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe((unlock: boolean) => this.onUnlock(unlock));\n }\n }\n\n public viewInUse(): void {\n this.getConflicts((conflicts: Conflict[]) => {\n this.dialogBuilderWithAlertDialogClass.openDialog(ConflictsDialogComponent, ConflictsDialogData.createInUseData(this.entityKey, this.name, conflicts, ConflictType));\n });\n }\n\n public getInformation(): string {\n return this.translate.instant(this.locked ? 'CONFLICTS.UNLOCK_TO' : 'CONFLICTS.UNLOCKED');\n }\n\n public getButton(): string {\n return this.translate.instant(this.locked ? 'CONFLICTS.UNLOCK' : 'CONFLICTS.VIEW_IN_USE');\n }\n\n public getMessage(): CardInfoMessage {\n return this.customMessage ?? {main: this.translate.instant('CONFLICTS.IN_USE', {object: this.translate.instant(this.entityKey, {count: 1})})};\n }\n\n public clickButton(): void {\n if (this.locked) {\n this.unlock();\n } else {\n this.viewInUse();\n }\n }\n\n private getConflicts(callback: (conflicts: Conflict[]) => void): void {\n this.conflictsRepository\n .getConflicts(this.id)\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe((conflicts: Conflict[]) => {\n callback(conflicts);\n });\n }\n\n private onUnlock(unlock: boolean): void {\n if (unlock) {\n this.locked = false;\n this.lockedChange.emit(this.locked);\n }\n }\n}\n","\n","
\n \n\n \n
\n \n
\n
\n\n
\n \n \n
\n
\n
\n
\n \n {{ 'GENERAL.NAME' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.NAME_DUPLICATE' | bmsTranslate }}\n {{ 'GENERAL.ACTIONS.LOAD' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.REQUIRED' | bmsTranslate }}\n \n \n
\n
\n \n {{ 'GENERAL.VERSION' | bmsTranslate }}\n \n \n
\n
\n
\n
\n \n {{ 'GENERAL.DIMENSIONS.WIDTH' | bmsTranslate }}\n \n \n {{ 'GENERAL.UNIT.CENTIMETER' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.INVALID_FORMAT.INVALID_FORMAT' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.REQUIRED' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.MIN_VALUE' | bmsTranslate: {min: 1} }}\n \n \n {{ 'GENERAL.ERRORS.MAX_VALUE' | bmsTranslate: {max: maxWidthInCm} }}\n \n \n
\n
\n \n {{ 'TEXTILE_DATA.WEAVE_PRODUCT.PICK_DENSITY' | bmsTranslate }}\n \n \n {{ 'GENERAL.UNIT.PICKS_PER_CENTIMETER' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.INVALID_FORMAT.INVALID_FORMAT' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.REQUIRED' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.MIN_VALUE' | bmsTranslate: {min: 1} }}\n \n \n
\n
\n
\n
\n \n \n {{ 'TEXTILE_DATA.WEAVE_PRODUCT.STANDARD_SPEED' | bmsTranslate }}\n ({{ 'GENERAL.OPTIONAL' | bmsTranslate | lowercase }})\n \n \n \n {{ 'GENERAL.UNIT.ROTATIONS_PER_MINUTE' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.MIN_VALUE' | bmsTranslate: {min: 1} }}\n \n \n {{ 'GENERAL.ERRORS.INVALID_FORMAT.INVALID_FORMAT' | bmsTranslate }}\n \n \n
\n
\n \n \n {{ 'TEXTILE_DATA.WEAVE_PRODUCT.STANDARD_EFFICIENCY' | bmsTranslate }}\n ({{ 'GENERAL.OPTIONAL' | bmsTranslate | lowercase }})\n \n \n \n {{ 'GENERAL.UNIT.PERCENTAGE' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.MIN_VALUE' | bmsTranslate: {min: 0} }}\n \n \n {{ 'GENERAL.ERRORS.MAX_VALUE' | bmsTranslate: {max: 100} }}\n \n \n {{ 'GENERAL.ERRORS.INVALID_FORMAT.INVALID_FORMAT' | bmsTranslate }}\n \n \n
\n
\n
\n
\n \n {{ 'TEXTILE_DATA.WEAVE_PRODUCT.NUMBER_OF_FEEDERS' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.REQUIRED' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.MIN_VALUE' | bmsTranslate: {min: 0} }}\n \n \n {{ 'GENERAL.ERRORS.MAX_VALUE' | bmsTranslate: {max: maxNumberOfFeeders ?? 32} }}\n \n \n
\n
\n \n {{ 'TEXTILE_DATA.WEAVE_PRODUCT.NUMBER_OF_SHAFTS' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.REQUIRED' | bmsTranslate }}\n \n \n {{ 'GENERAL.ERRORS.MIN_VALUE' | bmsTranslate: {min: 0} }}\n \n \n {{ 'GENERAL.ERRORS.MAX_VALUE' | bmsTranslate: {max: maxNumberOfShafts ?? 32} }}\n \n \n
\n
\n
\n
\n \n \n {{ 'GENERAL.DESCRIPTION' | bmsTranslate }}\n ({{ 'GENERAL.OPTIONAL' | bmsTranslate | lowercase }})\n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n","import {DOCUMENT} from '@angular/common';\nimport {Component, Inject, OnInit} from '@angular/core';\nimport {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms';\nimport {ActivatedRoute, Params, Router} from '@angular/router';\nimport {HeaderIdentifier} from '@application/headers/header-identifier.enum';\nimport {ErrorHandlers} from '@application/helper/error-handlers';\nimport {LastModifiedCardUtils} from '@application/helper/last-modified-card-utils';\nimport {NavigationHelperService} from '@application/helper/navigation-helper/navigation-helper.service';\nimport {RouteUtils} from '@application/helper/routing/route-utils';\nimport {UnsavedChangesNotifierService} from '@application/helper/unsaved-changes-notifier/unsaved-changes-notifier.service';\nimport {AsyncUniqueValidator} from '@application/validators/async-unique-validator';\nimport {WeavingMachine} from '@domain/machine/weaving-machine';\nimport {Permission} from '@domain/profile/permission.enum';\nimport {Subscription as ProfileSubscription} from '@domain/profile/subscription';\nimport {WeaveProduct} from '@domain/textile-data/weave-product/weave-product';\nimport {AUTHENTICATION, Authentication} from '@infrastructure/http/authentication/authentication';\nimport {MACHINES, Machines} from '@infrastructure/http/machine/machines.interface';\nimport {WEAVE_PRODUCT, WeaveProducts} from '@infrastructure/http/weave-product/weave-products.interface';\nimport {NavigationMachineOverviewData} from '@presentation/pages/machine-overview/navigation-machine-overview-data.interface';\nimport {\n AssertionUtils,\n BackendError,\n BaseComponent,\n DialogBuilderFactoryService,\n DialogType,\n FormValidationHelper,\n ObjectUtils,\n SaveType,\n skeletonViewAnimation,\n TranslateService\n} from '@vdw/angular-component-library';\nimport {isNil, isUndefined} from 'lodash-es';\nimport {Observable} from 'rxjs';\nimport {finalize, takeUntil} from 'rxjs/operators';\nimport {OverviewListCreel} from '../../creel/overview/overview-list-creel';\nimport {TextileService} from '../../textile-data-overview/textile.service';\nimport {TextileDataType} from '../../textile-data-type.enum';\n\n@Component({\n templateUrl: './add-weave-product-page.component.html',\n styleUrls: ['./add-weave-product-page.component.scss'],\n animations: [skeletonViewAnimation('.form-field-skeleton-wrapper, .mat-card-header, .button-skeleton-wrapper, .text-skeleton-wrapper, .colored-yarn-set-item header, .ag-root')]\n})\nexport class AddWeaveProductPageComponent extends BaseComponent implements OnInit {\n public readonly translationKeyForWeaveProducts = 'TEXTILE_DATA.WEAVE_PRODUCT.WEAVE_PRODUCT';\n public readonly SAVE_TYPE = SaveType;\n public readonly HEADER_IDENTIFIER = HeaderIdentifier.ADD_WEAVE_PRODUCT;\n public texstyleEditPermission: Permission = LastModifiedCardUtils.getPermissionToModifyItems('weaveProduct');\n\n public addWeaveProductForm: FormGroup<{\n name: FormControl;\n version: FormControl;\n widthInCm: FormControl;\n pickDensityInPicksPerCm: FormControl;\n standardSpeedInRotationsPerMinute: FormControl;\n standardEfficiencyInPercentage: FormControl;\n numberOfFeeders: FormControl;\n numberOfShafts: FormControl;\n description: FormControl;\n }>;\n\n public weaveProductToSave: WeaveProduct;\n public isLoadingWeaveProduct = true;\n public weaveProductIsLocked = false;\n public maxWidthInCm: number;\n public maxNumberOfFeeders: number;\n public maxNumberOfShafts: number;\n\n private readonly WEAVE_PRODUCT_OVERVIEW_PAGE_URL = RouteUtils.paths.texStyle.weaveProduct.absolutePath;\n private readonly EDIT_WEAVE_PRODUCT_PAGE_URL = RouteUtils.paths.texStyle.weaveProduct.editWeaveProduct.path;\n private readonly DUPLICATE_WEAVE_PRODUCT_PAGE_URL = RouteUtils.paths.texStyle.weaveProduct.duplicateWeaveProduct.path;\n private urlParams: Params;\n\n private currentSubscription: ProfileSubscription;\n\n private saveButtonTouched = false;\n\n public constructor(\n @Inject(MACHINES) private readonly machines: Machines,\n @Inject(WEAVE_PRODUCT) public weaveProducts: WeaveProducts,\n @Inject(AUTHENTICATION) private authentication: Authentication,\n @Inject(DOCUMENT) private document: Document,\n private readonly translate: TranslateService,\n private readonly dialogBuilderFactoryService: DialogBuilderFactoryService,\n private readonly formBuilder: FormBuilder,\n private readonly router: Router,\n private readonly activatedRoute: ActivatedRoute,\n private readonly navigationHelperService: NavigationHelperService,\n private readonly textileService: TextileService,\n private readonly unsavedChangesNotifierService: UnsavedChangesNotifierService\n ) {\n super();\n }\n\n public get action(): string {\n return this.isEditingWeaveProduct() ? 'GENERAL.ACTIONS.EDIT_OBJECT' : 'GENERAL.ACTIONS.CREATE_OBJECT';\n }\n\n public ngOnInit(): void {\n this.currentSubscription = this.authentication.getCurrentSubscription();\n this.urlParams = this.activatedRoute.snapshot.params;\n this.weaveProductToSave = WeaveProduct.createEmptyWeaveProduct();\n this.setWeaveProductForm();\n this.getEmitValue();\n\n if (!isUndefined(this.urlParams.id)) {\n this.weaveProducts\n .getById(parseInt(this.urlParams.id, 10))\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe({\n next: (weaveProduct: WeaveProduct) => {\n this.weaveProductToSave = weaveProduct;\n this.setValues(this.isDuplicatingWeaveProduct() ? null : this.weaveProductToSave.name);\n this.isLoadingWeaveProduct = false;\n this.weaveProductIsLocked = this.isEditingWeaveProduct() && this.weaveProductToSave.used;\n this.disableForm();\n },\n error: ErrorHandlers.navigateToOverviewAndThrowError(this.router, this.WEAVE_PRODUCT_OVERVIEW_PAGE_URL, this.navigationHelperService)\n });\n } else {\n this.setValues(this.weaveProductToSave.name);\n this.setFormFieldsForMachine();\n this.isLoadingWeaveProduct = false;\n }\n }\n\n public onNavigationHelperDestroy(): void {\n this.navigationHelperService.onDestroy();\n }\n\n public canShowAddWeaveProductForm(): boolean {\n return !isNil(this.addWeaveProductForm);\n }\n\n public hasEditPermission(): boolean {\n return this.currentSubscription?.hasPermission(this.texstyleEditPermission);\n }\n\n public navigateBack(): void {\n this.navigationHelperService.navigateToPreviousRoute(this.WEAVE_PRODUCT_OVERVIEW_PAGE_URL);\n }\n\n public saveWeaveProduct(saveType: SaveType, navigateToSelectedRoute?: string): void {\n this.saveButtonTouched = true;\n const isValid = new FormValidationHelper().checkForms([this.addWeaveProductForm], this.document);\n if (isValid) {\n const weaveProductToSave: WeaveProduct = this.getCurrentWeaveProduct();\n this.saving = true;\n if (this.isEditingWeaveProduct()) {\n weaveProductToSave.id = this.weaveProductToSave.id;\n }\n\n const request: Observable = this.isEditingWeaveProduct() ? this.weaveProducts.update(weaveProductToSave) : this.weaveProducts.save(weaveProductToSave);\n request.pipe(takeUntil(this.unSubscribeOnViewDestroy), finalize(this.finalizeSaving())).subscribe({\n next: (id: number) => {\n this.unsavedChangesNotifierService.notifyChangesToForm(false);\n this.textileService.navigateAndShowToast(\n saveType,\n TextileDataType.WEAVE_PRODUCT,\n this.translationKeyForWeaveProducts,\n this.isEditingWeaveProduct(),\n weaveProductToSave.name,\n id,\n navigateToSelectedRoute\n );\n },\n error: (errorMessage: BackendError) => this.showErrorDialogForBackendError(this.isEditingWeaveProduct() ? 'GENERAL.ACTIONS.EDIT_OBJECT' : 'GENERAL.ACTIONS.CREATE_OBJECT', errorMessage.message)\n });\n }\n }\n\n public deleteWeaveProduct(): void {\n this.textileService.removeConfirmation(this.weaveProductToSave, TextileDataType.WEAVE_PRODUCT, false, null, this.weaveProducts);\n }\n\n public duplicateWeaveProduct(): void {\n this.router.navigateByUrl(RouteUtils.paths.texStyle.weaveProduct.duplicateWeaveProduct.absolutePath.replace(':id', this.weaveProductToSave.id.toString()));\n }\n\n public openConflictsDialog(): void {\n this.textileService.getConflicts(this.weaveProductToSave.id, this.weaveProductToSave.name, this.weaveProducts, LastModifiedCardUtils.getTranslations(TextileDataType.WEAVE_PRODUCT));\n }\n\n public getVersionValue(): number {\n return !this.isEditingWeaveProduct() ? 1 : this.weaveProductToSave.version;\n }\n\n public canShowInvalidFormMessageError(): boolean {\n const isFormInvalid = Object.values(this.addWeaveProductForm.controls).some((control: FormControl) => control.invalid && control.touched);\n if (!isFormInvalid) {\n this.saveButtonTouched = false;\n }\n return isFormInvalid && this.saveButtonTouched;\n }\n\n public isEditingWeaveProduct(): boolean {\n return this.activatedRoute.snapshot.routeConfig.path === this.EDIT_WEAVE_PRODUCT_PAGE_URL;\n }\n\n public isWeaveProductBeingUsed(): boolean {\n return !isUndefined(this.weaveProductToSave) && this.weaveProductToSave.used && !this.isDuplicatingWeaveProduct();\n }\n\n public unlockWeaveProduct(): void {\n this.weaveProductIsLocked = false;\n this.addWeaveProductForm.enable();\n this.addWeaveProductForm.controls.name.disable();\n this.addWeaveProductForm.controls.version.patchValue(this.weaveProductToSave.version);\n }\n\n public getLoadLink(): string {\n return ErrorHandlers.getLoadLink(RouteUtils.paths.texStyle.weaveProduct.editWeaveProduct.absolutePath, this.addWeaveProductForm.controls['name']);\n }\n\n private isDuplicatingWeaveProduct(): boolean {\n return this.activatedRoute.snapshot.routeConfig.path === this.DUPLICATE_WEAVE_PRODUCT_PAGE_URL;\n }\n\n private getCurrentWeaveProduct(): WeaveProduct {\n const name: string = this.addWeaveProductForm.getRawValue().name;\n const version: number = this.isEditingWeaveProduct() ? this.addWeaveProductForm.value.version : 1;\n const widthInCm: number = this.addWeaveProductForm.value.widthInCm;\n const pickDensityInPicksPerCm: number = this.addWeaveProductForm.value.pickDensityInPicksPerCm;\n const standardSpeedInRotationsPerMinute: number = this.addWeaveProductForm.value.standardSpeedInRotationsPerMinute;\n const standardEfficiencyInPercentage: number = this.addWeaveProductForm.value.standardEfficiencyInPercentage;\n const numberOfFeeders: number = this.addWeaveProductForm.value.numberOfFeeders;\n const numberOfShafts: number = this.addWeaveProductForm.value.numberOfShafts;\n const description: string = this.addWeaveProductForm.value.description;\n\n const used = this.isEditingWeaveProduct() && this.weaveProductToSave.used;\n\n return new WeaveProduct(\n null,\n name,\n version,\n widthInCm,\n pickDensityInPicksPerCm,\n standardSpeedInRotationsPerMinute,\n standardEfficiencyInPercentage,\n numberOfFeeders,\n numberOfShafts,\n description,\n used\n );\n }\n\n private showErrorDialogForBackendError(translationKey: string, message: string): void {\n this.dialogBuilderFactoryService.getBuilder().openAlertDialog({\n titleText: this.translate.instant(translationKey, {\n object: this.translate.instant(this.translationKeyForWeaveProducts, {\n count: 1\n })\n }),\n messageText: message,\n type: DialogType.INFORMATION\n });\n }\n\n private setWeaveProductForm(): void {\n this.addWeaveProductForm = this.formBuilder.group({\n name: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.required]}),\n version: this.formBuilder.control(1),\n widthInCm: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.required, Validators.min(1)]}),\n pickDensityInPicksPerCm: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.required, Validators.min(1)]}),\n standardSpeedInRotationsPerMinute: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.min(1)]}),\n standardEfficiencyInPercentage: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.min(0), Validators.max(100)]}),\n numberOfFeeders: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.required, Validators.min(0), Validators.max(32)]}),\n numberOfShafts: this.formBuilder.control(null, {updateOn: 'change', validators: [Validators.required, Validators.min(0), Validators.max(32)]}),\n description: this.formBuilder.control(null)\n });\n this.unsavedChangesNotifierService.notifyChanges(this.addWeaveProductForm, this.unSubscribeOnViewDestroy);\n }\n\n private setValues(weaveProductName: string): void {\n this.addWeaveProductForm.reset({\n name: weaveProductName,\n version: this.weaveProductToSave.version,\n widthInCm: this.weaveProductToSave.widthInCm,\n pickDensityInPicksPerCm: this.weaveProductToSave.pickDensityInPicksPerCm,\n standardSpeedInRotationsPerMinute: this.weaveProductToSave.standardSpeedInRotationsPerMinute,\n standardEfficiencyInPercentage: this.weaveProductToSave.standardEfficiencyInPercentage,\n numberOfFeeders: this.weaveProductToSave.numberOfFeeders,\n numberOfShafts: this.weaveProductToSave.numberOfShafts,\n description: this.weaveProductToSave.description\n });\n\n this.setWeaveProductNameAsyncValidator(weaveProductName);\n }\n\n private setWeaveProductNameAsyncValidator(name: string = null): void {\n this.addWeaveProductForm.controls.name.setAsyncValidators([AsyncUniqueValidator.createValidator(this.weaveProducts, name)]);\n }\n\n private disableForm(): void {\n if (!this.hasEditPermission() || this.weaveProductIsLocked) {\n this.addWeaveProductForm.disable();\n }\n\n if (this.isEditingWeaveProduct()) {\n this.addWeaveProductForm.controls.name.disable();\n }\n }\n\n private setFormFieldsForMachine(): void {\n const emptyMachineOverviewState = {equipmentId: null} as NavigationMachineOverviewData;\n const machineOverviewState = this.navigationHelperService.getPartialState(Object.keys(emptyMachineOverviewState), true);\n\n if (!AssertionUtils.isNullOrUndefined(machineOverviewState) && !ObjectUtils.isDeepEqual(machineOverviewState, emptyMachineOverviewState)) {\n this.machines\n .getById(machineOverviewState.equipmentId)\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe((weavingMachine: WeavingMachine) => {\n this.maxWidthInCm = weavingMachine.weavingMachineType.width;\n this.addWeaveProductForm.controls.widthInCm.addValidators(Validators.max(this.maxWidthInCm));\n this.addWeaveProductForm.controls.widthInCm.updateValueAndValidity();\n this.maxNumberOfFeeders = weavingMachine.numberOfFeeders;\n this.addWeaveProductForm.controls.numberOfFeeders.addValidators(Validators.max(this.maxNumberOfFeeders));\n this.addWeaveProductForm.controls.numberOfFeeders.updateValueAndValidity();\n this.maxNumberOfShafts = weavingMachine.numberOfShafts;\n this.addWeaveProductForm.controls.numberOfShafts.addValidators(Validators.max(this.maxNumberOfShafts));\n this.addWeaveProductForm.controls.numberOfShafts.updateValueAndValidity();\n });\n }\n }\n\n private getEmitValue(): void {\n this.unsavedChangesNotifierService\n .getSaveEventEmitter()\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe((res: {action: boolean; navigateToSelectedRoute: string}) => {\n if (res) {\n this.saveWeaveProduct(SaveType.SAVE_AND_CLOSE, res.navigateToSelectedRoute);\n }\n });\n }\n}\n","import {ModuleWithProviders} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {AuthorizedRouteFactory} from '@application/helper/routing/authorized-route-factory';\nimport {RouteUtils} from '@application/helper/routing/route-utils';\nimport {canActivatePermissionGuard} from '@application/security/can-activate-permission.guard';\nimport {canDeactivateRouteWithUnsavedChanges} from '@application/security/can-deactivate-unsaved-changes-notifier.guard';\nimport {AddWeaveProductPageComponent} from './add/add-weave-product-page.component';\nimport {WeaveProductOverviewPageComponent} from './overview/weave-product-overview-page.component';\n\nexport const weaveProductRoutes: Routes = [\n {path: '', component: WeaveProductOverviewPageComponent},\n AuthorizedRouteFactory.createComponentRoute(RouteUtils.paths.texStyle.weaveProduct.addWeaveProduct, AddWeaveProductPageComponent, {reuse: true}, null, [], [canDeactivateRouteWithUnsavedChanges]),\n {\n path: RouteUtils.paths.texStyle.weaveProduct.duplicateWeaveProduct.path,\n component: AddWeaveProductPageComponent,\n canActivate: [canActivatePermissionGuard],\n canDeactivate: [canDeactivateRouteWithUnsavedChanges],\n data: {\n requiredPermission: RouteUtils.paths.texStyle.weaveProduct.duplicateWeaveProduct.requiredPermission\n }\n },\n {\n path: RouteUtils.paths.texStyle.weaveProduct.editWeaveProduct.path,\n component: AddWeaveProductPageComponent,\n canActivate: [canActivatePermissionGuard],\n canDeactivate: [canDeactivateRouteWithUnsavedChanges],\n data: {\n requiredPermission: RouteUtils.paths.texStyle.weaveProduct.editWeaveProduct.requiredPermission,\n reuse: true\n }\n }\n];\n\nexport const weaveProductRouting: ModuleWithProviders = RouterModule.forChild(weaveProductRoutes);\n","import {Component, Inject, OnInit} from '@angular/core';\nimport {GridIdentifier} from '@application/grids/grid-identifier.enum';\nimport {LastModifiedCardUtils} from '@application/helper/last-modified-card-utils';\nimport {PageUrls} from '@domain/textile-data/page-urls';\nimport {GetAllWeaveProductsParameters, WEAVE_PRODUCT, WeaveProducts} from '@infrastructure/http/weave-product/weave-products.interface';\nimport {TextileDataType} from '@presentation/pages/textile-data/textile-data-type.enum';\nimport {\n AgGridUtils,\n BaseComponent,\n ColDefBuilderFactoryService,\n LinkIconRendererComponent,\n MobileColDef,\n RESPONSIVENESS_VIEW_MODE,\n ResponsivenessViewMode,\n StringUtils,\n Unit\n} from '@vdw/angular-component-library';\nimport {CellClassParams, ICellRendererParams} from 'ag-grid-community';\nimport {L10nIntlService} from 'angular-l10n';\nimport {isEmpty} from 'lodash-es';\nimport {takeUntil} from 'rxjs/operators';\nimport {OverviewListWeaveStructure} from '../../weave-structure/overview/overview-list-weave-structure';\nimport {OverviewListWeaveProduct} from './overview-list-weave-product';\n\n@Component({\n templateUrl: './weave-product-overview-page.component.html'\n})\nexport class WeaveProductOverviewPageComponent extends BaseComponent implements OnInit {\n public listOfWeaveProducts: OverviewListWeaveProduct[];\n\n public readonly textileDataType = TextileDataType;\n public readonly GRID_IDENTIFIER = GridIdentifier.WEAVE_PRODUCT_OVERVIEW;\n\n private pageUrls: PageUrls;\n\n public constructor(\n @Inject(WEAVE_PRODUCT) public readonly weaveProducts: WeaveProducts,\n @Inject(RESPONSIVENESS_VIEW_MODE) private responsivenessViewMode: ResponsivenessViewMode,\n private l10nIntlService: L10nIntlService,\n private readonly colDefBuilderFactoryService: ColDefBuilderFactoryService\n ) {\n super();\n }\n\n public ngOnInit(): void {\n this.pageUrls = LastModifiedCardUtils.getPageUrls('weaveProduct');\n this.getWeaveProducts();\n }\n\n public getColumnDefsForListOfWeaveProducts(): MobileColDef[] {\n return [\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('name', true)\n .withHeaderName('GENERAL.NAME')\n .withComparator(StringUtils.stringComparator)\n .withCellRenderer(LinkIconRendererComponent, (params: ICellRendererParams) => {\n return {\n params,\n canClick: !this.isMobile(),\n editPageUrl: this.pageUrls.edit\n };\n })\n .withCellClass((cellClassParams: CellClassParams) => {\n const result = [];\n\n const weaveStructure: OverviewListWeaveStructure = cellClassParams.data;\n if (isEmpty(weaveStructure.name)) {\n result.push('object-without-name');\n }\n return result;\n })\n .build(),\n this.colDefBuilderFactoryService.getBuilder().withColIdAndField('description', true).withHeaderName('GENERAL.DESCRIPTION').build(),\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('version')\n .withHeaderName('GENERAL.VERSION')\n .withCellRenderer((params: ICellRendererParams) => params.getValue())\n .withCellClass('right')\n .withPinned(false)\n .build(),\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('widthInCm')\n .withHeaderName('GENERAL.DIMENSIONS.WIDTH')\n .withCellRenderer((params: ICellRendererParams) => this.buildAgGridCellTextWithUnit(params.getValue(), Unit.CENTIMETER))\n .withCellClass('right')\n .withPinned(false)\n .build(),\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('pickDensityInPicksPerCm')\n .withHeaderName('TEXTILE_DATA.WEAVE_PRODUCT.PICK_DENSITY')\n .withCellRenderer((params: ICellRendererParams) => this.buildAgGridCellTextWithUnit(params.value, Unit.PICKS_PER_CENTIMETER))\n .withCellClass('right')\n .withPinned(false)\n .build(),\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('standardSpeedInRotationsPerMinute')\n .withHeaderName('TEXTILE_DATA.WEAVE_PRODUCT.STANDARD_SPEED')\n .withCellRenderer((params: ICellRendererParams) => this.buildAgGridCellTextWithUnit(params.value, Unit.ROTATIONS_PER_MINUTE))\n .withCellClass('right')\n .withPinned(false)\n .build(),\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('standardEfficiencyInPercentage')\n .withHeaderName('TEXTILE_DATA.WEAVE_PRODUCT.STANDARD_EFFICIENCY')\n .withCellRenderer((params: ICellRendererParams) => (params.value ? `${params.value} %` : ''))\n .withCellClass('right')\n .withPinned(false)\n .build(),\n this.colDefBuilderFactoryService\n .getBuilder()\n .withColIdAndField('numberOfFeeders')\n .withHeaderName('TEXTILE_DATA.WEAVE_PRODUCT.NUMBER_OF_FEEDERS')\n .withCellClass('right')\n .withPinned(false)\n .build(),\n this.colDefBuilderFactoryService.getBuilder().withColIdAndField('numberOfShafts').withHeaderName('TEXTILE_DATA.WEAVE_PRODUCT.NUMBER_OF_SHAFTS').withCellClass('right').withPinned(false).build()\n ];\n }\n\n public showOnlyLatestVersionChanged(showOnlyLatestVersion: boolean): void {\n this.getWeaveProducts(showOnlyLatestVersion);\n }\n\n private getWeaveProducts(showOnlyLatestVersion: boolean = true): void {\n const parameters: Partial = {showOnlyLatestVersion};\n\n this.weaveProducts\n .getAll(parameters)\n .pipe(takeUntil(this.unSubscribeOnViewDestroy))\n .subscribe((listOfWeaveProducts: OverviewListWeaveProduct[]) => {\n this.listOfWeaveProducts = listOfWeaveProducts;\n });\n }\n\n private isMobile(): boolean {\n return this.responsivenessViewMode.isPhone;\n }\n\n private buildAgGridCellTextWithUnit(value: number, defaultUnit: Unit): string {\n return AgGridUtils.buildAgGridCellTextWithUnit(value, defaultUnit, this.l10nIntlService);\n }\n}\n","\n","import {NgModule} from '@angular/core';\nimport {UnsavedChangesNotifierService} from '@application/helper/unsaved-changes-notifier/unsaved-changes-notifier.service';\nimport {HttpWeaveProductsService} from '@infrastructure/http/weave-product/http-weave-products.service';\nimport {WEAVE_PRODUCT} from '@infrastructure/http/weave-product/weave-products.interface';\nimport {TextileDataSharedModule} from '@presentation/pages/textile-data/textile-data-shared.module';\nimport {CanShowErrorForFormControlModule} from '@vdw/angular-component-library';\nimport {AgGridModule} from 'ag-grid-angular';\nimport {AddWeaveProductPageComponent} from './add/add-weave-product-page.component';\nimport {WeaveProductOverviewPageComponent} from './overview/weave-product-overview-page.component';\nimport {weaveProductRouting} from './weave-product.routing';\n\n@NgModule({\n imports: [TextileDataSharedModule, AgGridModule, weaveProductRouting, CanShowErrorForFormControlModule],\n providers: [{provide: WEAVE_PRODUCT, useClass: HttpWeaveProductsService}, UnsavedChangesNotifierService],\n declarations: [AddWeaveProductPageComponent, WeaveProductOverviewPageComponent]\n})\nexport class WeaveProductModule {}\n"],"x_google_ignoreList":[]}