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K,KAAMG,GAAiCA,EAAcC,eAAiBH,IAAoBC,MAAMC,cAEnK,CAEQjE,sCAAmC,IAAAmE,EACzC,OAA+B,QAA/BA,EAAOtJ,KAAKwC,2BAAmB,IAAA8G,OAAA,EAAxBA,EAA0B5D,cAAc6D,IAAWC,mBAC5D,WAvXWnK,0CAA4B/D,MAAAmO,MAAAnO,MAAAoO,MAAApO,MAAAqO,KAAArO,MA2E7BsO,KAActO,MACduO,OAAwBvO,aAAA,0BA5EvB+D,EAA4ByK,UAAA,gCAAAC,UAAA,SAAAC,EAAAC,MAAA,EAAAD,mmJD/BzC1O,MAAA,eACEA,MAAA,EAAA4O,EAAA,6BAgBM5O,MAHN,eAGMA,CAH2D,uBAG3DA,CAFuC,cAEvCA,CADsC,WAEpCA,MAAA,EAAA6O,EAAA,sBAuDA7O,MAAA,GACFA,QAEAA,MAAA,EAAA8O,GAAA,cAmBF9O,QAEAA,MAAA,gBACEA,MAAA,2BAIRA,qBApGKA,cAAA,OAAA2O,EAAA3J,YAgBoBhF,MAAA,GAAAA,MAAA,mBAAA2O,EAAAtE,yBA0DXrK,MAAA,GAAAA,MAAA,OAAA2O,EAAA/K,6BAAA+K,EAAA7K,eAsByD9D,MAAA,GAAkDA,MAAlD,cAAA2O,EAAArH,kCAAkDtH,CAAD,UAAA2O,EAAAlI,gjDCnE3G1C,CAA6B","names":["i0","_r1","ctx_r1","showCustomSettingsSetup","iconForCard","getTranslations","entity","_c5","amountOfTotalCreatedTextileDataItemsSubject","hasEditPermission","canShowCustomSettings","settingsTooltip","canShowBackButton","_r3","onAdd","disableAddButton","_r4","onEdit","isSingleTextileDataRowSelected","disableEditButton","_c6","_r5","onDuplicate","canDuplicateSelectedRow","disableDuplicateButton","getReasonForPreventingDuplicate","_r6","removeConfirmation","isDeleteDisabled","_r7","exportGrid","isExporting","TextileDataOverviewComponent_ng_container_6_button_1_Template","TextileDataOverviewComponent_ng_container_6_button_2_Template","TextileDataOverviewComponent_ng_container_6_button_3_Template","TextileDataOverviewComponent_ng_container_6_button_4_Template","TextileDataOverviewComponent_ng_container_6_button_5_Template","canShowActionButton","canAddItem","canEditItem","canDuplicateItem","canShowDeleteActionButton","canDeleteItem","canExportGrid","$event","_r8","canShowOnlyLatestVersionChanged","_r9","updateFiltered","showAdvancedSearch","advancedSearchFilters","getDefaultUnit","pickDensityUnit","reedDensityUnit","_r10","filter","iconForSearch","TextileDataOverviewComponent_div_8_div_2_Template","TextileDataOverviewComponent_div_8_app_search_filters_3_Template","TextileDataOverviewComponent_div_8_vdw_filter_4_Template","isShowLatestVersionActive","canShowSearchFilters","showSearchBar","TextileDataOverviewComponent","_TextileDataOverviewComponent","BaseComponent","constructor","router","location","textileService","authentication","responsivenessViewMode","changeDetectorRef","super","this","rowHeight","infiniteGrid","cacheBlockSize","disableDeleteButton","managedRoute","showHeader","gridResizable","rememberScrollPosition","multiSelection","customSettingsSetup","EventEmitter","rowsSelected","reloadData","loadData","addItem","editItem","duplicateItem","deleteItem","showOnlyLatestVersionChanged","getAllExportData","exportGridWithComplexColumns","textileDataCountUpOptions","duration","formattingFn","n","selectedTextileDataItems","filterChangeSubject","Subject","_amountOfTotalCreatedTextileDataItemsSubject","BehaviorSubject","listOfTextileData","_listOfTextileData$le","_listOfTextileData","next","length","asObservable","ngOnInit","_history$state$isRedi","_history","currentSubscription","getCurrentSubscription","initialiseTextileDataOverview","textileDataType","gridOptionsForTextileDataOverview","initialiseGridOptionsForTextileDataOverview","autoSizeAllColumns","columnDefs","isTextileDataTypeProductionSchedule","gridIdentifier","dataSource","disableActionButton","getRowClass","subscribeToDeviceChanges","canShowCustomSettingsSetup","history","state","isRedirect","ngAfterViewInit","subscribeToFilterChanges","searchFilters","hideOverlay","ngOnChanges","changes","updateGrid","ngOnDestroy","resetGridModelForTextileDataOverviewFromService","selectedRows","textileDataOverviewGrid","api","getSelectedRows","textileDataService","undefined","observed","change","emit","executeActionForItem","TextileDataType","PRODUCTION_SCHEDULE","pageUrl","LastModifiedCardUtils","getPageUrls","edit","hasPermissionToNavigateToNewBuilder","navigate","replace","getSelectedItem","id","toString","_this$currentSubscrip","hasPermission","permissionToModifyItems","hasCustomSettings","event","getPageUrl","type","pageUrls","_this$textileDataOver","translations","_this$textileDataOver2","canDisableDeleteButton","_this$getSelectedItem","canDuplicate","_this$getSelectedItem2","canShowTotalCreatedTextileDataItems","AssertionUtils","isNullOrUndefined","COMPANY_WEAVE_STRUCTURE","getTotalCreatedTextileDataItems","_this$listOfTextileDa","_this$listOfTextileDa2","get","filterComponent","then","isEqual","setFilterComponentText","Unit","CENTIMETER","ensureIndexIsVisible","index","ensureIndexVisible","showNoRowsOverlay","refreshServerSide","purge","setHeaderNameForColumn","columnName","headerName","refreshHeader","redrawRows","setLoadingCellRendererParams","loadingCellRendererParams","forEachNode","callback","getGridApi","getFilterModel","setFilterModel","filterModel","deselectRows","getPermissionToModifyItems","PRODUCT_CONFIGURATION","COLOR","exportAllData","exportGridApi","exportDataAsCsv","filteredText","find","AdvancedSearchInput","NAME","propertyValue","propertyName","_this$currentSubscrip2","Permission","TEXFAB_NEW_BUILDER","i1","i2","i3","AUTHENTICATION","RESPONSIVENESS_VIEW_MODE","selectors","viewQuery","rf","ctx","TextileDataOverviewComponent_vdw_tabs_menu_card_1_Template","TextileDataOverviewComponent_ng_container_6_Template","TextileDataOverviewComponent_div_8_Template"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./apps/texconnect/src/app/presentation/pages/textile-data/textile-data-overview/textile-data-overview.component.html","./apps/texconnect/src/app/presentation/pages/textile-data/textile-data-overview/textile-data-overview.component.ts"],"sourcesContent":["
\n \n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n\n
\n
\n
\n \n
\n \n \n
\n
\n
\n\n
\n \n
\n
\n
\n
\n","import {Location} from '@angular/common';\nimport {AfterViewInit, ChangeDetectorRef, Component, EventEmitter, Inject, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {GridIdentifier} from '@application/grids/grid-identifier.enum';\nimport {LastModifiedCardUtils} from '@application/helper/last-modified-card-utils';\nimport {EventAlert} from '@domain/event/event-alert';\nimport {Permission} from '@domain/profile/permission.enum';\nimport {Subscription} from '@domain/profile/subscription';\nimport {PropertyValue} from '@domain/property-value';\nimport {CompanyWeaveStructure} from '@domain/textile-data/company-weave-structure/company-weave-structure';\nimport {Finishing} from '@domain/textile-data/finishing-and-finishing-template/finishing/finishing';\nimport {PageUrls} from '@domain/textile-data/page-urls';\nimport {OverviewListTextileData, TextileDataService} from '@domain/textile-data/textile-data';\nimport {Translations} from '@domain/textile-data/translations';\nimport {WeavePattern} from '@domain/textile-data/weave-structure/weave-pattern/weave-pattern';\nimport {AUTHENTICATION, Authentication} from '@infrastructure/http/authentication/authentication';\nimport {AdvancedSearchInput} from '@presentation/components/search-filters/advanced-search/advanced-search-input.enum';\nimport {SearchFiltersComponent} from '@presentation/components/search-filters/search-filters.component';\nimport {TextileDataType} from '@presentation/pages/textile-data/textile-data-type.enum';\nimport {AssertionUtils, BaseComponent, FilterComponent, LoadingCellOverlayComponentParams, MobileColDef, RESPONSIVENESS_VIEW_MODE, ResponsivenessViewMode, Unit} from '@vdw/angular-component-library';\nimport {AgGridAngular} from 'ag-grid-angular';\nimport {GridApi, GridOptions, IMultiFilterModel, IServerSideDatasource, RowClassParams, RowNode} from 'ag-grid-community';\nimport {find, get, isEqual} from 'lodash-es';\nimport {BehaviorSubject, Observable, Subject} from 'rxjs';\nimport {TextileService} from './textile.service';\n\n@Component({\n selector: 'app-textile-data-overview',\n templateUrl: './textile-data-overview.component.html',\n styleUrls: ['./textile-data-overview.component.scss']\n})\nexport class TextileDataOverviewComponent extends BaseComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {\n @ViewChild('textileDataOverviewGrid') public textileDataOverviewGrid: AgGridAngular;\n @ViewChild('filterComponent') public filterComponent: FilterComponent;\n @ViewChild('searchFilters') public searchFilters: SearchFiltersComponent;\n\n @Input() public iconForSearch = 'search';\n @Input() public iconForCard: string;\n @Input() public columnDefs: MobileColDef[];\n @Input() public textileDataService: TextileDataService;\n @Input() public autoSizeAllColumns: boolean;\n @Input() public textileDataType: TextileDataType;\n @Input() public rowHeight: (params) => number = null;\n @Input() public infiniteGrid = false;\n @Input() public advancedSearchFilters: PropertyValue[] = [];\n @Input() public cacheBlockSize = 1;\n @Input() public pickDensityUnit: Unit;\n @Input() public reedDensityUnit: Unit;\n @Input() public canAddItem = true;\n @Input() public disableAddButton = false;\n @Input() public canEditItem = true;\n @Input() public disableEditButton = false;\n @Input() public canDeleteItem = true;\n @Input() public disableDeleteButton = false;\n @Input() public canDuplicateItem = true;\n @Input() public disableDuplicateButton = false;\n @Input() public canExportGrid = true;\n @Input() public isExporting = false;\n @Input() public managedRoute = false;\n @Input() public showHeader = true;\n @Input() public dataSource: IServerSideDatasource;\n @Input() public gridIdentifier: GridIdentifier;\n @Input() public canShowCustomSettings: boolean;\n @Input() public disableActionButton: boolean;\n @Input() public gridResizable = true;\n @Input() public showSearchBar = true;\n @Input() public getRowClass: (params: RowClassParams) => string | string[];\n @Input() public rememberScrollPosition = false;\n @Input() public exportGridApi: GridApi;\n @Input() public settingsTooltip = 'GENERAL.CUSTOM_SETTINGS.CUSTOM_SETTINGS';\n @Input() public multiSelection = false;\n\n @Output() public customSettingsSetup = new EventEmitter();\n @Output() public rowsSelected = new EventEmitter();\n @Output() public reloadData = new EventEmitter();\n @Output() public loadData = new EventEmitter();\n @Output() public addItem = new EventEmitter();\n @Output() public editItem = new EventEmitter();\n @Output() public duplicateItem = new EventEmitter();\n @Output() public deleteItem = new EventEmitter();\n @Output() public showOnlyLatestVersionChanged = new EventEmitter();\n @Output() public getAllExportData = new EventEmitter();\n @Output() public exportGridWithComplexColumns = new EventEmitter();\n\n public gridOptionsForTextileDataOverview: GridOptions;\n public permissionToModifyItems: Permission;\n public textileDataCountUpOptions = {\n duration: 1,\n formattingFn: (n: number): string => `(${n})`\n };\n\n public selectedTextileDataItems: OverviewListTextileData[] = [];\n public canShowBackButton = true;\n\n private pageUrls: PageUrls;\n private translations: Translations;\n private _listOfTextileData: any[];\n private currentSubscription: Subscription;\n\n private readonly filterChangeSubject = new Subject();\n private readonly _amountOfTotalCreatedTextileDataItemsSubject = new BehaviorSubject(0);\n\n public constructor(\n protected readonly router: Router,\n protected readonly location: Location,\n protected readonly textileService: TextileService,\n @Inject(AUTHENTICATION) private authentication: Authentication,\n @Inject(RESPONSIVENESS_VIEW_MODE) protected readonly responsivenessViewMode: ResponsivenessViewMode,\n protected readonly changeDetectorRef: ChangeDetectorRef\n ) {\n super();\n }\n\n @Input() public set listOfTextileData(listOfTextileData: any[]) {\n this._listOfTextileData = listOfTextileData;\n this._amountOfTotalCreatedTextileDataItemsSubject.next(listOfTextileData?.length ?? 0);\n }\n\n public get listOfTextileData(): any[] {\n return this._listOfTextileData;\n }\n\n public get amountOfTotalCreatedTextileDataItemsSubject(): Observable {\n return this._amountOfTotalCreatedTextileDataItemsSubject.asObservable();\n }\n\n public ngOnInit(): void {\n this.currentSubscription = this.authentication.getCurrentSubscription();\n this.initialiseTextileDataOverview(this.textileDataType);\n this.gridOptionsForTextileDataOverview = this.textileService.initialiseGridOptionsForTextileDataOverview(\n this.infiniteGrid,\n this.cacheBlockSize,\n this.rowHeight,\n this.autoSizeAllColumns,\n this.selectedTextileDataItems,\n this.rowsSelected,\n this.loadData,\n this.responsivenessViewMode,\n this.columnDefs,\n this.textileDataType,\n this.advancedSearchFilters,\n this.isTextileDataTypeProductionSchedule(),\n this.changeDetectorRef,\n this.gridIdentifier,\n this.dataSource,\n this.disableActionButton,\n this.gridResizable,\n this.getRowClass,\n this.rememberScrollPosition\n );\n this.textileService.subscribeToDeviceChanges(this.responsivenessViewMode, this.columnDefs);\n this.canShowCustomSettingsSetup();\n this.canShowBackButton = !history?.state?.isRedirect ?? true;\n }\n\n public ngAfterViewInit(): void {\n this.textileService.subscribeToFilterChanges(\n this.filterChangeSubject,\n this.iconForSearch,\n this.isTextileDataTypeProductionSchedule(),\n this.advancedSearchFilters,\n this.searchFilters,\n this.reloadData,\n () => this.hideOverlay()\n );\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n this.textileService.updateGrid(changes, this.rowsSelected, () => this.hideOverlay(), this.changeDetectorRef, this.selectedTextileDataItems);\n }\n\n public ngOnDestroy(): void {\n this.textileService.resetGridModelForTextileDataOverviewFromService();\n }\n\n public removeConfirmation(): void {\n const selectedRows = this.textileDataOverviewGrid.api.getSelectedRows();\n\n this.textileService.removeConfirmation(\n selectedRows,\n this.textileDataType,\n this.managedRoute,\n this.deleteItem,\n this.textileDataService,\n this.selectedTextileDataItems,\n this.getTranslations(),\n this.reloadData,\n this.advancedSearchFilters,\n this.infiniteGrid,\n this.rowsSelected,\n this._amountOfTotalCreatedTextileDataItemsSubject,\n this.multiSelection,\n undefined,\n undefined,\n this.currentSubscription\n );\n }\n\n public isShowLatestVersionActive(): boolean {\n return this.showOnlyLatestVersionChanged.observed;\n }\n\n public canShowOnlyLatestVersionChanged(change: boolean): void {\n this.showOnlyLatestVersionChanged.emit(change);\n }\n\n public onAdd(): void {\n this.textileService.executeActionForItem('add', undefined, this.textileDataType, this.addItem, this.managedRoute);\n }\n\n public onEdit(): void {\n if (this.textileDataType === TextileDataType.PRODUCTION_SCHEDULE) {\n let pageUrl = LastModifiedCardUtils.getPageUrls(this.textileDataType)['edit'];\n if (this.hasPermissionToNavigateToNewBuilder()) {\n pageUrl = pageUrl + '/new';\n }\n this.router.navigate([pageUrl.replace(':id', this.getSelectedItem().id.toString())]);\n } else {\n this.textileService.executeActionForItem('edit', this.getSelectedItem().id, this.textileDataType, this.editItem);\n }\n }\n\n public onDuplicate(): void {\n this.textileService.executeActionForItem('duplicate', this.getSelectedItem().id, this.textileDataType, this.duplicateItem);\n }\n\n public hasEditPermission(): boolean {\n return this.currentSubscription?.hasPermission(this.permissionToModifyItems);\n }\n\n public canShowCustomSettingsSetup(): void {\n if (LastModifiedCardUtils.hasCustomSettings(this.textileDataType) && this.canShowCustomSettings !== false) {\n this.canShowCustomSettings = true;\n }\n }\n\n public showCustomSettingsSetup(): void {\n this.customSettingsSetup.emit(null);\n }\n\n public filter(event: string): void {\n this.filterChangeSubject.next(event);\n }\n\n public getPageUrl(type: string): string {\n return this.pageUrls[type];\n }\n\n public getSelectedItem(): OverviewListTextileData {\n return this.textileDataOverviewGrid.api.getSelectedRows()?.[0];\n }\n\n public getTranslations(): Translations {\n return this.translations;\n }\n\n public isSingleTextileDataRowSelected(): boolean {\n return this.textileDataOverviewGrid?.api.getSelectedRows()?.length === 1;\n }\n\n public canDisableDeleteButton(): boolean {\n return this.textileService.canDisableDeleteButton(this.disableDeleteButton, this.textileDataType, this.isSingleTextileDataRowSelected(), this.getSelectedItem());\n }\n\n public canDuplicateSelectedRow(): boolean {\n return this.isSingleTextileDataRowSelected() && this.getSelectedItem()?.canDuplicate();\n }\n\n public getReasonForPreventingDuplicate(): string {\n return this.isSingleTextileDataRowSelected() ? this.getSelectedItem()?.getReasonForPreventingDuplicate() : '';\n }\n\n public canShowTotalCreatedTextileDataItems(): boolean {\n return !AssertionUtils.isNullOrUndefined(this.listOfTextileData);\n }\n\n public canShowDeleteActionButton(): boolean {\n return this.textileDataType !== TextileDataType.COMPANY_WEAVE_STRUCTURE;\n }\n\n public getTotalCreatedTextileDataItems(): number {\n return this.listOfTextileData?.length ?? 0;\n }\n\n public canShowActionButton(pageUrl: string): boolean {\n return !AssertionUtils.isNullOrUndefined(get(this.pageUrls, pageUrl));\n }\n\n public showAdvancedSearch(): void {\n this.textileService\n .showAdvancedSearch(\n this.iconForSearch,\n this.isTextileDataTypeProductionSchedule(),\n this.advancedSearchFilters,\n this.filterComponent,\n this.pickDensityUnit,\n this.reedDensityUnit,\n this.searchFilters\n )\n .then(() => {\n this.updateFiltered();\n });\n }\n\n public canShowSearchFilters(): boolean {\n return !isEqual(this.iconForSearch, 'search') && this.showSearchBar;\n }\n\n public updateFiltered(): void {\n this.setFilterComponentText();\n\n this.reloadData.emit(this.advancedSearchFilters);\n }\n\n public getDefaultUnit(): Unit {\n return Unit.CENTIMETER;\n }\n\n public ensureIndexIsVisible(index: number): void {\n this.textileService.ensureIndexVisible(index);\n }\n\n public showNoRowsOverlay(): void {\n this.textileService.showNoRowsOverlay();\n }\n\n public refreshServerSide(purge: boolean): void {\n this.textileService.refreshServerSide(purge);\n }\n\n public setHeaderNameForColumn(columnName: string, headerName: string): void {\n this.textileService.setHeaderNameForColumn(columnName, headerName);\n }\n\n public refreshHeader(): void {\n this.textileService.refreshHeader();\n }\n\n public redrawRows(): void {\n this.textileService.redrawRows();\n }\n\n public setLoadingCellRendererParams(loadingCellRendererParams: LoadingCellOverlayComponentParams): void {\n this.textileService.setLoadingCellRendererParams(loadingCellRendererParams);\n }\n\n public forEachNode(callback: (node: RowNode, index: number) => void): void {\n this.textileService.getGridApi().forEachNode(callback);\n }\n\n public getFilterModel(): any {\n return this.textileService.getGridApi().getFilterModel();\n }\n\n public setFilterModel(filterModel: any): void {\n this.textileService.getGridApi().setFilterModel(filterModel);\n }\n\n public hideOverlay(): void {\n this.textileService.hideOverlay();\n }\n\n public deselectRows(): void {\n this.textileService.deselectRows(this.rowsSelected, this.selectedTextileDataItems);\n }\n\n public initialiseTextileDataOverview(textileDataType: TextileDataType): void {\n this.pageUrls = LastModifiedCardUtils.getPageUrls(textileDataType);\n this.translations = LastModifiedCardUtils.getTranslations(textileDataType);\n this.permissionToModifyItems = LastModifiedCardUtils.getPermissionToModifyItems(textileDataType);\n }\n\n public isTextileDataTypeProductionSchedule(): boolean {\n return this.textileDataType === TextileDataType.PRODUCTION_SCHEDULE;\n }\n\n public isDeleteDisabled(): boolean {\n return (!this.isSingleTextileDataRowSelected() && !this.multiSelection) || (this.selectedTextileDataItems.length === 0 && this.multiSelection) || this.canDisableDeleteButton();\n }\n\n public exportGrid(): void {\n if (this.textileDataType === TextileDataType.PRODUCTION_SCHEDULE || this.textileDataType === TextileDataType.PRODUCT_CONFIGURATION) {\n this.getAllExportData.emit(this.textileService.getGridApi().getFilterModel() as IMultiFilterModel);\n }\n\n if (this.exportGridWithComplexColumns.observed) {\n this.exportGridWithComplexColumns.emit(this.textileService.getGridApi());\n } else if (this.textileDataType === TextileDataType.COLOR) {\n this.isExporting = true;\n this.textileService\n .exportAllData(this.textileService.getGridApi().getFilterModel() as IMultiFilterModel, this.exportGridApi, this.textileDataService, this.columnDefs)\n .then(() => (this.isExporting = false));\n } else {\n this.textileService.getGridApi().exportDataAsCsv();\n }\n }\n\n private setFilterComponentText(): void {\n if (this.filterComponent != null && this.isTextileDataTypeProductionSchedule()) {\n this.filterComponent.filteredText = find(this.advancedSearchFilters, ['propertyName', AdvancedSearchInput.NAME]).propertyValue;\n this.filterComponent.filteredText = this.advancedSearchFilters.find((propertyValue: PropertyValue) => propertyValue.propertyName === AdvancedSearchInput.NAME).propertyValue;\n }\n }\n\n private hasPermissionToNavigateToNewBuilder(): boolean {\n return this.currentSubscription?.hasPermission(Permission.TEXFAB_NEW_BUILDER);\n }\n}\n"],"x_google_ignoreList":[]}