@c8y/ngx-components 1017.0.121 → 1017.0.123

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.
Files changed (25) hide show
  1. package/core/select-modal/select-modal.component.d.ts +2 -1
  2. package/esm2020/core/select-modal/select-modal.component.mjs +5 -3
  3. package/esm2020/device-profile/select-configuration-modal.component.mjs +1 -1
  4. package/esm2020/repository/shared/select-modal/repository-select-modal.component.mjs +3 -3
  5. package/esm2020/repository/software/device-tab/installed-software.component.mjs +7 -5
  6. package/fesm2015/c8y-ngx-components-device-profile.mjs +1 -1
  7. package/fesm2015/c8y-ngx-components-device-profile.mjs.map +1 -1
  8. package/fesm2015/c8y-ngx-components-repository-shared.mjs +2 -2
  9. package/fesm2015/c8y-ngx-components-repository-shared.mjs.map +1 -1
  10. package/fesm2015/c8y-ngx-components-repository-software.mjs +7 -3
  11. package/fesm2015/c8y-ngx-components-repository-software.mjs.map +1 -1
  12. package/fesm2015/c8y-ngx-components.mjs +4 -2
  13. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  14. package/fesm2020/c8y-ngx-components-device-profile.mjs +1 -1
  15. package/fesm2020/c8y-ngx-components-device-profile.mjs.map +1 -1
  16. package/fesm2020/c8y-ngx-components-repository-shared.mjs +2 -2
  17. package/fesm2020/c8y-ngx-components-repository-shared.mjs.map +1 -1
  18. package/fesm2020/c8y-ngx-components-repository-software.mjs +6 -4
  19. package/fesm2020/c8y-ngx-components-repository-software.mjs.map +1 -1
  20. package/fesm2020/c8y-ngx-components.mjs +4 -2
  21. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  22. package/locales/locales.pot +6 -0
  23. package/package.json +2 -2
  24. package/repository/shared/select-modal/repository-select-modal.component.d.ts +5 -0
  25. package/repository/software/device-tab/installed-software.component.d.ts +1 -1
@@ -1006,8 +1006,10 @@ class InstalledSoftwareComponent {
1006
1006
  installSoftware() {
1007
1007
  const { resultEmitter, choiceEmitter, updateInstallableList$ } = this.displaySoftwareSelectModal({
1008
1008
  title: gettext('Install software'),
1009
+ subTitle: gettext('Available softwares matching the device type'),
1009
1010
  labels: { ok: gettext('Install') },
1010
1011
  showAdditionalFilter: true,
1012
+ additionalFilterTemplate: this.softwareTypeTemplate,
1011
1013
  repositoryEntriesWithVersions$: of([]),
1012
1014
  repositoryEntriesWithVersionsFn$: modal => this.getInstallableSoftwareListWithVersions$(modal.content.searchTerm)
1013
1015
  });
@@ -1026,12 +1028,14 @@ class InstalledSoftwareComponent {
1026
1028
  }
1027
1029
  }));
1028
1030
  }
1029
- updateSoftware(softwareToRemove) {
1031
+ updateSoftware(softwareToUpdate) {
1030
1032
  const { resultEmitter, choiceEmitter, updateInstallableList$ } = this.displaySoftwareSelectModal({
1031
1033
  title: gettext('Update software'),
1034
+ subTitle: gettext('Select one of the available software versions'),
1032
1035
  labels: { ok: gettext('Update') },
1036
+ noItemsMessage: gettext('No other software versions available.'),
1033
1037
  showFilter: false,
1034
- repositoryEntriesWithVersions$: this.getSingleSoftwareWithVersions$(softwareToRemove)
1038
+ repositoryEntriesWithVersions$: this.getSingleSoftwareWithVersions$(softwareToUpdate)
1035
1039
  });
1036
1040
  resultEmitter.pipe(takeUntil(this.destroyed$)).subscribe(softwareToInstall => {
1037
1041
  this.emitSoftwareInstall(softwareToInstall);
@@ -1079,7 +1083,7 @@ class InstalledSoftwareComponent {
1079
1083
  return softwareList;
1080
1084
  }
1081
1085
  displaySoftwareSelectModal(initialStateOverrides) {
1082
- const initialState = Object.assign({ repositoryType: RepositoryType.SOFTWARE, subTitle: gettext('Available softwares matching the device type'), mode: ModalSelectionMode.MULTI, icon: 'c8y-tools', disableSelected: false, selected: this.softwareList, additionalFilterTemplate: this.softwareTypeTemplate }, initialStateOverrides);
1086
+ const initialState = Object.assign({ repositoryType: RepositoryType.SOFTWARE, mode: ModalSelectionMode.MULTI, icon: 'c8y-tools', disableSelected: false, selected: this.softwareList }, initialStateOverrides);
1083
1087
  const modal = this.bsModal.show(RepositorySelectModalComponent, {
1084
1088
  ignoreBackdropClick: true,
1085
1089
  class: 'modal-sm',