@c8y/ngx-components 1023.78.4 → 1023.78.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -433,7 +433,6 @@ declare class DeviceTabProfileComponent implements OnInit, ProductExperienceEven
433
433
  private loadDevice;
434
434
  private subscribeToManagedObjects;
435
435
  private subscribeToOperations;
436
- private toProfileForDevice;
437
436
  static ɵfac: i0.ɵɵFactoryDeclaration<DeviceTabProfileComponent, never>;
438
437
  static ɵcmp: i0.ɵɵComponentDeclaration<DeviceTabProfileComponent, "c8y-device-tab-profile", never, {}, {}, never, never, true, never>;
439
438
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../device-profile/device-profile-navigation.factory.ts","../../device-profile/device-profile.model.ts","../../device-profile/device-profile.service.ts","../../device-profile/select-configuration-modal.component.ts","../../device-profile/device-profile.component.ts","../../device-profile/device-profile-list.component.ts","../../device-profile/add-device-profile.component.ts","../../device-profile/device-tab-profile/device-tab-profile.component.ts","../../device-profile/device-tab-profile/device-tab-profile-detail.component.ts","../../device-profile/device-tab-profile/device-profile-item-list.component.ts","../../device-profile/device-profile.module.ts","../../device-profile/device-profile.guard.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA;;;;;AAeC;;;;;ACdC;;;AAGA;;AAEE;AACA;;AAEH;;;;;;;AAQA;;;;;;;AAQA;;;;;AAMA;;AAGC;;;;;;AAMA;;;;;;;AAOD;AAED;AACE;AACD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzBA;AAaI;AACA;AACA;;;;;;;;AAKF;AAOA;;;;;;;;;;;AAWG;AACH;AA6BA;;AAEG;;AAYH;AAYM;;AAgCN;AAyBA;AAgBA;AAqBA;;;;;;AAMG;AACH;AA4BA;AASA;AA6BA;AAyBA;AA0BA;;;AA4BD;;AC9VD;AA2Bc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAf8C;;AAE1D;AACA;AAIA;;;;;;;AAQoB;;;;AA2BpB;;;AA2BD;;ACtDD;AAkDI;AACA;AACA;AACA;AACA;AACA;AAvBF;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGuD;;;;;;;;;AA0GvD;;;AAqGA;AAWA;;;;AA4CA;;;AAqBD;;ACvUD;AAwDI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzCF;AACA;AACA;AACA;;;;;;;AAgBE;;AAQF;AACA;AACA;AACA;AAGU;AAaV;;AAmEA;;;;;;;;AA4ED;;AC5OD;AAwCI;AACA;AApBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGuD;AACvD;AAMA;;;;AASU;;;;;AAaX;;AClCD;AAmDW;AACP;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5BqD;;;AAGvD;;;;;;AAOA;AACA;;;;;;;;;;;AAkFA;AAMA;AAMA;;AAiBA;AAoBA;AAaA;;;AAkBD;;ACzOD;;;AAcW;AACA;;;;AAIA;;;AACV;;ACfD;;;;;;;AAoBC;;ACmBD;;;;AA4BmC;;ACzEnC;;AAUE;;;AAOD;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../device-profile/device-profile-navigation.factory.ts","../../device-profile/device-profile.model.ts","../../device-profile/device-profile.service.ts","../../device-profile/select-configuration-modal.component.ts","../../device-profile/device-profile.component.ts","../../device-profile/device-profile-list.component.ts","../../device-profile/add-device-profile.component.ts","../../device-profile/device-tab-profile/device-tab-profile.component.ts","../../device-profile/device-tab-profile/device-tab-profile-detail.component.ts","../../device-profile/device-tab-profile/device-profile-item-list.component.ts","../../device-profile/device-profile.module.ts","../../device-profile/device-profile.guard.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA;;;;;AAeC;;;;;ACdC;;;AAGA;;AAEE;AACA;;AAEH;;;;;;;AAQA;;;;;;;AAQA;;;;;AAMA;;AAGC;;;;;;AAMA;;;;;;;AAOD;AAED;AACE;AACD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzBA;AAaI;AACA;AACA;;;;;;;;AAKF;AAOA;;;;;;;;;;;AAWG;AACH;AA6BA;;AAEG;;AAYH;AAYM;;AAgCN;AAyBA;AAgBA;AAqBA;;;;;;AAMG;AACH;AA4BA;AASA;AA6BA;AAyBA;AA0BA;;;AA4BD;;AC9VD;AA2Bc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAf8C;;AAE1D;AACA;AAIA;;;;;;;AAQoB;;;;AA2BpB;;;AA2BD;;ACtDD;AAkDI;AACA;AACA;AACA;AACA;AACA;AAvBF;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGuD;;;;;;;;;AA0GvD;;;AAqGA;AAWA;;;;AA4CA;;;AAqBD;;ACvUD;AAwDI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzCF;AACA;AACA;AACA;;;;;;;AAgBE;;AAQF;AACA;AACA;AACA;AAGU;AAaV;;AAmEA;;;;;;;;AA4ED;;AC5OD;AAwCI;AACA;AApBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGuD;AACvD;AAMA;;;;AASU;;;;;AAaX;;ACnCD;AAmDW;AACP;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5BqD;;;AAGvD;;;;;;AAOA;AACA;;;;;;;;;;;AAkFA;AAMA;AAMA;;AAiBA;AAoBA;;;AAYD;;ACrND;;;AAcW;AACA;;;;AAIA;;;AACV;;ACfD;;;;;;;AAoBC;;ACmBD;;;;AA4BmC;;ACzEnC;;AAUE;;;AAOD;;;"}
@@ -1012,7 +1012,7 @@ class DeviceTabProfileComponent {
1012
1012
  }
1013
1013
  selectProfile(mo) {
1014
1014
  this.autoSyncProfile = false;
1015
- this.selectedProfile = this.toProfileForDevice(mo);
1015
+ this.selectedProfile = mo;
1016
1016
  this.updateProfileItems(this.device, this.selectedProfile);
1017
1017
  }
1018
1018
  reload() {
@@ -1065,21 +1065,6 @@ class DeviceTabProfileComponent {
1065
1065
  this.operation = operation;
1066
1066
  });
1067
1067
  }
1068
- toProfileForDevice(profile) {
1069
- if (Array.from(profile?.c8y_DeviceProfile?.software || []).length === 0 ||
1070
- has(this.device, 'c8y_SupportedSoftwareTypes')) {
1071
- return profile;
1072
- }
1073
- else {
1074
- return {
1075
- ...profile,
1076
- c8y_DeviceProfile: {
1077
- ...profile.c8y_DeviceProfile,
1078
- software: profile.c8y_DeviceProfile.software.map(sw => pickBy(sw, (_, key) => key !== 'softwareType'))
1079
- }
1080
- };
1081
- }
1082
- }
1083
1068
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: DeviceTabProfileComponent, deps: [{ token: i2.ManagedObjectRealtimeService }, { token: DeviceProfileService }, { token: i5.ActivatedRoute }, { token: i2.OperationRealtimeService }, { token: i2.AlertService }, { token: i1.InventoryService }], target: i0.ɵɵFactoryTarget.Component }); }
1084
1069
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: DeviceTabProfileComponent, isStandalone: true, selector: "c8y-device-tab-profile", providers: [
1085
1070
  ManagedObjectRealtimeService,