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oE,gBAAoC,IAA+B,IAA4C,IACzG,OAZtBlE,GA4Gb,MAAMkC,EAEE,iCAAaC,CAAqBgC,EAA0BjE,EAAkCkE,EAAgBC,GACpH,IAAIC,EAAgB,GACpBH,EAAM7C,SAASP,IACdA,EAAKwD,eAAejD,SAASoC,IAC5BY,EAAM,IAAIA,KAAQZ,EAAEc,WAAWC,KAAKC,GAAKA,EAAEC,wBAAuB,GACjE,IAGH,IAAIC,EAAmBP,EAAwBb,kCAAkCC,QAAOC,QAAW/B,IAAN+B,IAAiBe,KAAIC,GAAKA,EAAE1H,KACrH6H,EAAaP,EAAIb,QAAOC,IAAMkB,EAAiBE,SAASpB,KAE5D3B,QAAQC,IAAI,gFACZ,IAAI+C,QAAiCV,EAAwBW,2BAA2BC,yBAAyBJ,GAKjH,OAHAR,EAAwBb,kCAAoC,IAAIa,EAAwBb,qCAAsCuB,GAC9HhD,QAAQC,IAAI,0DAA2DqC,EAAwBb,mCAExFW,EAAMM,KAAIf,GAAK,IAAI,KAAeA,EAAEvE,KAAMuE,EAAEa,eAAeE,KAAKC,GAAsB,IAAI,KAAcA,EAAGxE,EAAiBkE,EAAKC,OACzI,E","sources":["webpack://client-app/./src/app/components/object/manual-entries/manual-entry.scss","webpack://client-app/./src/app/components/object/new-properties/new-object-properties.scss","webpack://client-app/./src/app/components/object/manual-entries/manual-entry.html","webpack://client-app/./src/app/components/object/new-properties/new-object-properties.html","webpack://client-app/./src/app/components/object/manual-entries/manual-entry.ts","webpack://client-app/./src/app/components/object/new-properties/new-object-properties.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.manual-entry-modal{width:500px}.manual-entry,.manual-entry--loading{display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:unset !important;width:100%}.manual-entry--loading{height:400px}.manual-entry-container{display:grid;grid-template-columns:1fr;padding:15px}.manual-entry-container .manual-entries__existing-families{display:grid;grid-template-columns:1fr 3.3em;align-items:center;gap:15px}.manual-entry-container .manual-entries__new-placeholder{display:grid;grid-template-rows:auto;grid-auto-rows:auto;grid-auto-flow:row;align-items:center;gap:15px}.manual-entry-container .description{margin-bottom:calc(15px/3)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/components/object/manual-entries/manual-entry.scss\",\"webpack://./src/resources/customized-styles/variables.scss\"],\"names\":[],\"mappings\":\"AAEA,oBACC,WAAA,CAOD,qCACC,YAAA,CACA,qBAAA,CACA,eAAA,CACA,iBAAA,CACA,2BAAA,CACA,UAAA,CAEA,uBAEC,YAAA,CAIF,wBACC,YAAA,CACA,yBAAA,CACA,YCVQ,CDYR,2DACC,YAAA,CACA,+BAAA,CACA,kBAAA,CACA,QChBO,CDmBR,yDACC,YAAA,CACA,uBAAA,CACA,mBAAA,CACA,kBAAA,CACA,kBAAA,CACA,QCzBO,CD6BR,qCACC,0BAAA\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.new-object-properties{display:flex;flex-direction:column;overflow:hidden;max-width:100%;height:100%}.new-object-properties .warning-message{position:relative;text-align:center;justify-content:center;background-color:#ffe100;opacity:.9;white-space:nowrap;height:25px}.new-object-properties .warning-message b{line-height:25px}[data-device-type=mobile] .new-object-properties{width:100vw}[data-device-type=tablet] .new-object-properties{width:480px}.new-object-properties button{margin-right:5px}.new-object-properties__header{padding-top:8px;padding-left:10px;padding-right:10px;display:flex;justify-content:space-between;align-items:center;margin-top:2px;margin-bottom:15px;height:auto}.new-object-properties__header .title{margin:0}.new-object-properties__body{padding-left:10px;padding-right:10px;display:grid;position:relative;row-gap:15px;width:100%;margin-bottom:5px;height:auto;overflow:auto}.new-object-properties-section{display:grid;row-gap:calc(15px/3)}.new-object-properties-section>.new-object-properties-section{padding:calc(15px/3)}.new-object-properties-section__header{display:flex;justify-content:space-between;align-items:center}.new-object-properties-section__header .title{margin:0}.new-object-properties details[open]>summary .icon{transform:rotate(180deg)}.new-object-properties details summary{background:#f0f3f4;font-weight:600;height:3em;display:flex;align-items:center;justify-content:space-between;padding:0 calc(15px/1.5);border:1px solid rgba(0,0,0,.175)}.new-object-properties details summary::-webkit-details-marker{display:none}.new-object-properties details summary:focus{outline:none}.new-object-properties details summary .title{text-transform:capitalize}.new-object-properties[data-properties-detailed=true]{width:560px}[data-device-type=mobile] .new-object-properties[data-properties-detailed=true]{width:100vw}[data-device-type=tablet] .new-object-properties[data-properties-detailed=true]{width:560px}.new-object-properties[data-properties-detailed=true] .property{grid-template-columns:1fr 1.25fr 8em}.new-object-properties .property{display:grid;grid-template-columns:1fr 1.25fr}.new-object-properties .property[data-readonly-property=true]{color:rgba(51,51,51,.6)}.new-object-properties .property[data-editable=false]{background:rgba(51,51,51,.15);opacity:.8}.new-object-properties .property[data-editable=true]{cursor:text}.new-object-properties .property[data-simple-value=true].editing{padding:0 !important}.new-object-properties .property[data-multiline=true] .cell{height:10em}.new-object-properties .property[data-multiline=true] .cell.cell--value{white-space:unset;line-height:normal}.new-object-properties .property[data-multiline=true] .cell.cell--value>span{display:block;padding:calc(15px/2) calc(15px/1.5);height:inherit;overflow:auto;white-space:pre-line}.new-object-properties .property .edit-cell{border:0;height:100%;line-height:inherit;padding:0 calc(15px/1.5);width:100%}.new-object-properties .property .cell{border-bottom:1px solid rgba(0,0,0,.175);height:3em;line-height:3em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-object-properties .property .cell--title{position:relative;padding:0 calc(15px/1.5)}.new-object-properties .property .cell--title .url-icon{position:absolute;right:0px;top:.5px;cursor:pointer}.new-object-properties .property .cell--title .url-icon:hover{text-decoration:none}.new-object-properties .property .cell--value{padding:0}.new-object-properties .property .cell--value>span{padding:0 calc(15px/1.5)}.new-object-properties .property .cell:first-of-type{border-left:1px solid rgba(0,0,0,.175)}.new-object-properties[data-properties-detailed=true]{width:560px}[data-device-type=mobile] .new-object-properties[data-properties-detailed=true]{width:100vw}[data-device-type=tablet] .new-object-properties[data-properties-detailed=true]{width:560px}.new-object-properties[data-properties-detailed=true] .property{grid-template-columns:1fr 5px 1.25fr .8fr}.new-object-properties .property{display:grid;grid-template-columns:1fr 5px 1.25fr}.new-object-properties .property .dragbar{background-color:#a9a9a9;border-bottom:1px solid rgba(0,0,0,.175);background:linear-gradient(rgba(0, 0, 0, 0.175), rgba(0, 0, 0, 0.175)) no-repeat center/1px 100%}.new-object-properties .property .dragbar:hover{cursor:col-resize}.new-object-properties .property[data-readonly-property=true]{color:rgba(51,51,51,.6)}.new-object-properties .property[data-editable=false]{background:rgba(51,51,51,.15);opacity:.8}.new-object-properties .property[data-editable=true]{cursor:text}.new-object-properties .property[data-simple-value=true].editing{padding:0 !important}.new-object-properties .property[data-multiline=true] .cell{height:10em}.new-object-properties .property[data-multiline=true] .cell.cell--value{white-space:unset;line-height:normal}.new-object-properties .property[data-multiline=true] .cell.cell--value>span{display:block;padding:calc(15px/2) calc(15px/1.5);height:inherit;overflow:auto;white-space:pre-line}.new-object-properties .property .edit-cell{border:0;height:100%;line-height:inherit;padding:0 calc(15px/1.5);width:100%}.new-object-properties .property .cell{border-bottom:1px solid rgba(0,0,0,.175);height:3em;line-height:3em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-object-properties .property .cell--title{position:relative;padding:0 calc(15px/1.5)}.new-object-properties .property .cell--title .url-icon{position:absolute;right:0px;top:.5px;cursor:pointer;text-decoration:none}.new-object-properties .property .cell--title .url-icon:hover{text-decoration:none}.new-object-properties .property .cell--value{padding:0;border-right:1px solid rgba(0,0,0,.175)}.new-object-properties .property .cell--value>span{padding:0 calc(15px/1.5)}.new-object-properties .property .cell:first-of-type{border-left:1px solid rgba(0,0,0,.175)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/components/object/new-properties/new-object-properties.scss\",\"webpack://./src/resources/customized-styles/variables.scss\"],\"names\":[],\"mappings\":\"AAEA,uBACC,YAAA,CACA,qBAAA,CACA,eAAA,CACA,cAAA,CACA,WAAA,CACA,wCACC,iBAAA,CACA,iBAAA,CACA,sBAAA,CACA,wBAAA,CACA,UAAA,CACA,kBAAA,CACA,WAAA,CACA,0CACC,gBAAA,CAKF,iDACC,WCyC+B,CDtChC,iDACC,WCuC+B,CDrChC,8BACC,gBAAA,CAED,+BACC,eAAA,CACA,iBAAA,CACA,kBAAA,CACA,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,cAAA,CACA,kBCvBO,CDwBP,WAAA,CACA,sCACC,QAAA,CAIF,6BACC,iBAAA,CACA,kBAAA,CACA,YAAA,CACA,iBAAA,CACA,YCnCO,CDoCP,UAAA,CACA,iBAAA,CACA,WAAA,CACA,aAAA,CAGD,+BACC,YAAA,CACA,oBAAA,CAEA,8DACC,oBAAA,CAED,uCACC,YAAA,CACA,6BAAA,CACA,kBAAA,CAEA,8CACC,QAAA,CAQA,mDACC,wBAAA,CAKH,uCACC,kBC5EY,CD6EZ,eAAA,CACA,UAAA,CACA,YAAA,CACA,kBAAA,CACA,6BAAA,CACA,wBAAA,CACA,iCAAA,CAEA,+DACC,YAAA,CAGD,6CACC,YAAA,CAGD,8CACC,yBAAA,CAKH,sDACC,WChDkC,CDkDlC,gFACC,WCjDwC,CDoDzC,gFACC,WCnDwC,CDsDzC,gEACC,o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AA\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Module\nvar code = ` `;\n// Exports\nexport default code;","// Module\nvar code = ` `;\n// Exports\nexport default code;","import { autoinject, observable, computedFrom } from \"aurelia-framework\";\r\nimport { DialogController } from \"aurelia-dialog\";\r\nimport {ApiClient} from \"../../../services/api-client\";\r\nimport {AppContextService} from \"../../../services/app-context-service\";\r\nimport {Category} from \"../../../models/parameter-definition-dto\";\r\nimport {SummingService} from \"../../../services/summing/summing-service\";\r\n\r\n@autoinject\r\nexport class ManualEntry {\r\n\r\n\t// JG: I believe this is deprecated and not currently used.\r\n\t\r\n\tcategories: Category[] = [];\r\n\tfamilies: any[] = [];\r\n\tquantities: any[] = [];\r\n\r\n\tselectedPlaceholderFamilyId:string | null = null;\r\n\tselectedQuantity:string | null = null\r\n\t@observable selectedProjectCategoryId:number = -1;\r\n\tisExisting:boolean = true;\r\n\tfamilyName:string = \"\";\r\n\ttypeName:string = \"\";\r\n\t\r\n\tstep:number = 1; \r\n\t\r\n\tconstructor(protected dialog: DialogController, private apiClient: ApiClient, private appContext: AppContextService, private summingService: SummingService) {\r\n\t}\r\n\t\r\n\tasync activate(model:any){\r\n\t\tthis.categories = await this.apiClient.project(this.appContext.projectId).get(\"ManualEntry/GetProjectCategories\").jsonResult();\r\n\t\tthis.families = await this.apiClient.project(this.appContext.projectId).get(\"ManualEntry/GetProjectFamilies\").jsonResult();\r\n\t}\r\n\t\r\n\tget allowStep2():boolean {\r\n\t\treturn this.step === 1 && (this.selectedPlaceholderFamilyId !== null || \r\n\t\t\t(this.selectedProjectCategoryId !== -1 && this.selectedQuantity !== null && Boolean(this.familyName)));\t\r\n\t}\r\n\t\r\n\tasync getFamiliesByCategory(category:Category){\r\n\t\tthis.families = await this.apiClient.project(this.appContext.projectId).get(\"ManualEntry/GetProjectFamilies\").jsonResult();\r\n\t}\r\n\r\n\tswapView(){\r\n\t\tthis.resetSteps();\r\n\t\tthis.isExisting = !this.isExisting;\r\n\t}\r\n\t\r\n\tasync submit(){\r\n\t\tlet familyId = this.selectedPlaceholderFamilyId;\r\n\t\tif(familyId === null){\r\n\t\t\tfamilyId = await this.apiClient.project(this.appContext.projectId)\r\n\t\t\t\t.postJson(\"ManualEntry/CreatePlaceholderFamily\", \r\n\t\t\t\t\t{ builtInCategory: this.selectedProjectCategoryId, quantityParameterId: this.selectedQuantity, name: this.familyName, typeName: this.typeName})\r\n\t\t\t\t.jsonResult();\r\n\t\t} \r\n\t\t\r\n\t\tawait this.apiClient.project(this.appContext.projectId)\r\n\t\t\t.postJson(\"ManualEntry/CreateManualEntry\",\r\n\t\t\t\t{ familyId: familyId, name: this.typeName })\r\n\t\t\t.response();\r\n\t\t\r\n\t\tawait this.dialog.close(true);\r\n\t}\r\n\t\r\n\tresetSteps(){\r\n\t\tthis.selectedPlaceholderFamilyId = null;\r\n\t\tthis.selectedProjectCategoryId = -1;\r\n\t\tthis.selectedQuantity = null;\r\n\t\tthis.familyName = \"\";\r\n\t}\r\n\r\n\tnextStep(){\r\n\t\t//Validate step\r\n\t\tthis.step = 2;\r\n\t}\r\n\r\n\tselectedProjectCategoryIdChanged(newValue: number, oldValue: number){\r\n\t\tif(newValue == -1)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tthis.apiClient.project(this.appContext.projectId).get(`ManualEntry/GetCategoryQuantityParameters/${newValue}`).jsonResult().then(result => {\r\n\t\t\tthis.quantities = result;\r\n\t\t});\r\n\t\t\r\n\t}\r\n\t\r\n\tclose(){\r\n\t\tthis.dialog.cancel();\r\n\t}\r\n\t\r\n}\r\n","import { ObjectListManager } from 'app/services/object-list/object-list-manager';\r\nimport { AppContextService } from 'app/services/app-context-service';\r\nimport { ApiClient } from 'app/services/api-client';\r\nimport { RequestMethod } from 'app/services/RequestMethod';\r\nimport { EventAggregator, Subscription } from 'aurelia-event-aggregator';\r\nimport { autoinject, bindable } from 'aurelia-framework';\r\nimport { ObjectRow, ObjectCell } from 'app/services/object-list/object-list-row';\r\nimport { IPropertyGroup, PropertyGroup, TypeOrInstance, ITypeOrInstance, ObjectProperty } from 'app/models/object-properties-dto';\r\nimport { CellEditService } from 'app/services/cell-edit-service';\r\nimport {ObjectListColumnManager} from \"../../../services/object-list/object-list-column-manager\";\r\nimport { UrlFormatter } from 'app/services/url-formatter';\r\nimport * as environment from \"../../../../../config/environment.json\";\r\nimport { ParameterDefinitionDto } from 'app/models/parameter-definition-dto';\r\nimport { PropertyResizeHandler } from './property-resize-handler';\r\n\r\n@autoinject\r\nexport class NewObjectProperties {\r\n\t@bindable public projectId : string = \"\";\r\n\tpublic objects: ObjectListManager | undefined;\r\n\tpublic item: ObjectRow | undefined;\r\n\tpublic itemPropertyGroups: TypeOrInstance[] = [];\r\n\tpublic showPropertiesDetailed: boolean = false;\r\n\tprivate subscriptions: Subscription[] = [];\r\n\tprivate isVisible: boolean = false;\r\n\tprivate isSwitchAvailable: boolean = false;\r\n\t@bindable public isBpVisible: boolean = false;\r\n\r\n\tconstructor(private events: EventAggregator, private apiClient: ApiClient, private appContext: AppContextService, private cellEditService: CellEditService,\r\n\t\t\t\tprivate propertyResizeHandler: PropertyResizeHandler) {\t\t\r\n\r\n\t}\r\n\r\n\tasync attached(): Promise {\r\n\t\tthis.subscriptions = [\r\n\t\t\tthis.events.subscribe('object-properties:objListMgr', (objListMgr: ObjectListManager) => this.setObjectListManager(objListMgr)),\r\n\t\t\tthis.events.subscribe('object-properties:show', async (item: ObjectRow) => this.getObjectProperties(item, true)),\r\n\t\t\tthis.events.subscribe('object-properties:update', async (item: ObjectRow) => this.getObjectProperties(item)),\r\n\t\t\tthis.events.subscribe('object-properties:setIsSwitchAvailable', (available: boolean) => {this.isSwitchAvailable = available})\r\n\t\t];\r\n\t\tthis.events.publish('object-grid:sendMgr'); //Not sure if this is the best way to do it. Keeping it for now.\r\n\t}\r\n\r\n\tsetObjectListManager(objListMgr: ObjectListManager): void {\r\n\t\tthis.objects = objListMgr;\r\n\t\tthis.isVisible = true;\r\n\t\tthis.getObjectProperties(this.objects.selectedItems[0]);\r\n\t}\r\n\r\n\tdetached(): void {\r\n\t\tthis.subscriptions.forEach((subscription: Subscription) => subscription.dispose());\r\n\t}\r\n\tpublic async projectIdChanged() : Promise {\r\n\t\tawait this.projectChangedHandler();\r\n\t}\r\n\t\r\n\tprivate async projectChangedHandler(): Promise {\r\n\t\tthis.objects = undefined;\r\n\t\tthis.itemPropertyGroups = [];\r\n\t}\r\n\r\n\tpublic async getObjectProperties(item: ObjectRow, show: boolean = false): Promise {\r\n\t\tthis.isVisible = true; \r\n\t\tif ((!this.isVisible && !show) || item == undefined) { return; }\r\n\t\tlet prjApi:RequestMethod = this.apiClient.project(this.appContext.projectId);\r\n\t\tif (this.objects == undefined) {\r\n\t\t\tthis.events.publish('object-grid:sendMgr');\r\n\t\t}\r\n\t\tif (this.objects) {\r\n\t\t\tlet allProps:ITypeOrInstance[] = await prjApi.get(`ObjectDetail/GetAllPropertiesByObjectId/${item.id}`).jsonResult();\r\n\t\t\tconsole.log('allProps:',allProps);\r\n\t\t\tlet allItems:TypeOrInstance[] = await ObjectPropertyFactory.makeObjectProperties(allProps, this.cellEditService, item, this.objects.columns);\r\n\t\t\tconsole.log('allItems:',allItems);\r\n\t\t\tthis.itemPropertyGroups = allItems;\r\n\t\t\tthis.item = item;\r\n\t\t\tconsole.log('b-item:',item);\r\n\t\t}\r\n\t\tthis.propertyResizeHandler.resetColSizes(this.showPropertiesDetailed);\r\n\t}\r\n\r\n\tpublic toggleDetails(): void {\r\n\t\tconsole.log(\"TOGGLEDETAILS\")\r\n\t\tthis.showPropertiesDetailed = !this.showPropertiesDetailed;\r\n\t\tthis.propertyResizeHandler.resetColSizes(this.showPropertiesDetailed);\r\n\t}\r\n\r\n\tpublic enableCellEdit(cell: ObjectProperty, event: Event): void {\r\n\t\tconsole.log(\"ENABLECELLEDIT\")\r\n\t\tif (cell.readOnly || Boolean(cell.syncDirection === \"SyncToAc\")) return;\r\n\t\tif (this.objects && this.item) {\r\n\t\t\tthis.cellEditService.enableCellEdit(this.objects, cell.objectCell, this.item, event);\r\n\t\t}\r\n\t}\r\n\t\r\n\tpublic saveCell(objectCell: ObjectCell): void {\r\n\t\tconsole.log(\"SAVECELL\")\r\n\t\tif (this.item) {\r\n\t\t\tthis.objects?.source.saveCell(this.item, this.objects.selectedItems, objectCell).finally(() => {\r\n\t\t\t\tif (this.item?.isSelected) {\r\n\t\t\t\t\tthis.getObjectProperties(this.item);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tprivate switchPropertyAndColor() {\r\n\t\tthis.events.publish('WorkAreaContainer:SwitchPropertyAndColor');\r\n\t}\r\n\r\n\tformatUrl(url: string): string {\r\n\t\treturn UrlFormatter.formatUrl(url);\r\n\t}\r\n\r\n\tisUrl(property: ObjectProperty): boolean {\r\n\t\tlet parameterDefinition: ParameterDefinitionDto[] | undefined = this.objects?.columns.columnParameterDefinitionMetadata.filter(x => x.id == property.objectCell.definitionId);\r\n\t\tif (parameterDefinition && parameterDefinition.length > 0 ) {\r\n\t\t\treturn parameterDefinition[0].parameterType == 8; //URL Type\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\tgoToUrl(url: string): void {\r\n\t\twindow.open(this.formatUrl(url), '_blank');\r\n\t}\r\n}\r\n\r\nclass ObjectPropertyFactory {\r\n\r\n\tpublic static async makeObjectProperties(items: ITypeOrInstance[], cellEditService: CellEditService, row: ObjectRow, objectListColumnManager: ObjectListColumnManager): Promise {\r\n\t\tlet ids: string[] = [];\r\n\t\titems.forEach((item: ITypeOrInstance) => {\r\n\t\t\titem.propertyGroups.forEach((x: IPropertyGroup) => {\r\n\t\t\t\tids = [...ids, ...x.properties.map( y => y.parameterDefinitionId)];\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tlet knownParamDefIds = objectListColumnManager.columnParameterDefinitionMetadata.filter(x => x !== undefined).map(y => y.id);\r\n\t\tlet difference = ids.filter(x => !knownParamDefIds.includes(x));\r\n\t\t\r\n\t\tconsole.log('ObjectPropertyFactory.makeObjectProperties calling getProjectParameterByIds.');\r\n\t\tlet moreParameterDefinitions = await objectListColumnManager.parameterDefinitionService.getProjectParameterByIds(difference);\r\n\t\t\r\n\t\tobjectListColumnManager.columnParameterDefinitionMetadata = [...objectListColumnManager.columnParameterDefinitionMetadata, ...moreParameterDefinitions];\r\n\t\tconsole.log('makeObjectProperties,columnParameterDefinitionMetadata:', objectListColumnManager.columnParameterDefinitionMetadata);\r\n\t\t\r\n\t\treturn items.map(x => new TypeOrInstance(x.name, x.propertyGroups.map((y: IPropertyGroup) => new PropertyGroup(y, cellEditService, row, objectListColumnManager))));\t\t\r\n\t}\r\n}\r\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","ManualEntry","constructor","dialog","apiClient","appContext","summingService","categories","families","quantities","selectedPlaceholderFamilyId","selectedQuantity","selectedProjectCategoryId","isExisting","familyName","typeName","step","activate","model","this","project","projectId","get","jsonResult","allowStep2","Boolean","getFamiliesByCategory","category","swapView","resetSteps","submit","familyId","postJson","builtInCategory","quantityParameterId","name","response","close","nextStep","selectedProjectCategoryIdChanged","newValue","oldValue","then","result","cancel","observable","autoinject","DialogController","NewObjectProperties","events","cellEditService","propertyResizeHandler","itemPropertyGroups","showPropertiesDetailed","subscriptions","isVisible","isSwitchAvailable","isBpVisible","attached","subscribe","objListMgr","setObjectListManager","async","item","getObjectProperties","available","publish","objects","selectedItems","detached","forEach","subscription","dispose","projectIdChanged","projectChangedHandler","undefined","show","prjApi","allProps","console","log","allItems","ObjectPropertyFactory","makeObjectProperties","columns","resetColSizes","toggleDetails","enableCellEdit","cell","event","readOnly","syncDirection","objectCell","saveCell","source","finally","isSelected","switchPropertyAndColor","formatUrl","url","U","isUrl","property","parameterDefinition","columnParameterDefinitionMetadata","filter","x","definitionId","length","parameterType","goToUrl","window","open","bindable","EventAggregator","items","row","objectListColumnManager","ids","propertyGroups","properties","map","y","parameterDefinitionId","knownParamDefIds","difference","includes","moreParameterDefinitions","parameterDefinitionService","getProjectParameterByIds"],"sourceRoot":""}