@c8y/ngx-components 1024.10.2 → 1024.10.8
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.
- package/fesm2022/c8y-ngx-components-branding-shared-data.mjs +2 -0
- package/fesm2022/c8y-ngx-components-branding-shared-data.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-shell.mjs +4 -4
- package/fesm2022/c8y-ngx-components-device-shell.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +3 -1
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +22 -14
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +2 -2
- package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +20 -5
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +21 -3
- package/locales/es.po +21 -3
- package/locales/fr.po +21 -3
- package/locales/ja_JP.po +21 -3
- package/locales/ko.po +21 -3
- package/locales/locales.pot +18 -6
- package/locales/nl.po +21 -3
- package/locales/pl.po +21 -3
- package/locales/pt_BR.po +21 -3
- package/locales/zh_CN.po +21 -3
- package/locales/zh_TW.po +21 -3
- package/package.json +1 -1
- package/types/c8y-ngx-components-branding-shared-data.d.ts +22 -1
- package/types/c8y-ngx-components-branding-shared-data.d.ts.map +1 -1
- package/types/c8y-ngx-components-ecosystem-application-plugins.d.ts.map +1 -1
- package/types/c8y-ngx-components.d.ts +22 -0
- package/types/c8y-ngx-components.d.ts.map +1 -1
|
@@ -533,42 +533,47 @@ class OrphanedStatusCellRendererComponent {
|
|
|
533
533
|
return {
|
|
534
534
|
value: statusValue,
|
|
535
535
|
text: gettext('OUTDATED`plugin status`'),
|
|
536
|
-
class: 'label-warning'
|
|
536
|
+
class: 'label-warning',
|
|
537
|
+
description: gettext('A newer version of the plugin is available, but it is not installed yet.')
|
|
537
538
|
};
|
|
538
539
|
case ApplicationPluginStatus.ORPHANED:
|
|
539
540
|
return {
|
|
540
541
|
value: statusValue,
|
|
541
542
|
text: gettext('ORPHANED`plugin status`'),
|
|
542
|
-
class: 'label-danger'
|
|
543
|
+
class: 'label-danger',
|
|
544
|
+
description: gettext('The plugin is no longer available or was never available.')
|
|
543
545
|
};
|
|
544
|
-
case ApplicationPluginStatus.
|
|
546
|
+
case ApplicationPluginStatus.FALLBACK:
|
|
545
547
|
return {
|
|
546
548
|
value: statusValue,
|
|
547
|
-
text: gettext('
|
|
548
|
-
class: 'label-
|
|
549
|
+
text: gettext('FALLBACK`plugin status`'),
|
|
550
|
+
class: 'label-info',
|
|
551
|
+
description: gettext('The plugin is referenced via a tag or a version which does not yet exist or is no longer available. Until this tag or version is deployed, it will fall back to the latest version.')
|
|
549
552
|
};
|
|
550
553
|
case ApplicationPluginStatus.LATEST:
|
|
551
554
|
return {
|
|
552
555
|
value: statusValue,
|
|
553
556
|
text: gettext('LATEST`plugin status`'),
|
|
554
|
-
class: 'label-success'
|
|
557
|
+
class: 'label-success',
|
|
558
|
+
description: gettext('The latest version of the plugin is installed and it is up to date.')
|
|
555
559
|
};
|
|
556
560
|
case ApplicationPluginStatus.AUTO:
|
|
557
561
|
return {
|
|
558
562
|
value: statusValue,
|
|
559
563
|
text: gettext('AUTO`plugin status`'),
|
|
560
|
-
class: 'label-success'
|
|
564
|
+
class: 'label-success',
|
|
565
|
+
description: gettext('The plugin is referenced via a tag. The installed version changes automatically when the tag is updated.')
|
|
561
566
|
};
|
|
562
567
|
default:
|
|
563
568
|
return null;
|
|
564
569
|
}
|
|
565
570
|
}
|
|
566
571
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OrphanedStatusCellRendererComponent, deps: [{ token: i1$2.CellRendererContext }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
567
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
572
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: OrphanedStatusCellRendererComponent, isStandalone: true, selector: "c8y-orphaned-status-cell-renderer", ngImport: i0, template: "@if (label) {\n <span\n class=\"label\"\n [title]=\"label.description | translate\"\n [ngClass]=\"label.class\"\n >\n {{ label.text | translate }}\n </span>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
|
|
568
573
|
}
|
|
569
574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OrphanedStatusCellRendererComponent, decorators: [{
|
|
570
575
|
type: Component,
|
|
571
|
-
args: [{ selector: 'c8y-orphaned-status-cell-renderer', imports: [
|
|
576
|
+
args: [{ selector: 'c8y-orphaned-status-cell-renderer', imports: [NgClass, C8yTranslatePipe], template: "@if (label) {\n <span\n class=\"label\"\n [title]=\"label.description | translate\"\n [ngClass]=\"label.class\"\n >\n {{ label.text | translate }}\n </span>\n}\n" }]
|
|
572
577
|
}], ctorParameters: () => [{ type: i1$2.CellRendererContext }] });
|
|
573
578
|
|
|
574
579
|
class UpdatePluginOfAppComponent {
|
|
@@ -905,8 +910,7 @@ class ApplicationPluginsComponent {
|
|
|
905
910
|
text: gettext('Update'),
|
|
906
911
|
icon: 'installing-updates',
|
|
907
912
|
showIf: plugin => {
|
|
908
|
-
return
|
|
909
|
-
plugin.status === ApplicationPluginStatus.REVOKED);
|
|
913
|
+
return plugin.status === ApplicationPluginStatus.OUTDATED;
|
|
910
914
|
},
|
|
911
915
|
callback: plugin => this.updatePlugin(this.app, plugin)
|
|
912
916
|
},
|
|
@@ -956,7 +960,7 @@ class ApplicationPluginsComponent {
|
|
|
956
960
|
}).content.result;
|
|
957
961
|
this.refresh();
|
|
958
962
|
}
|
|
959
|
-
catch
|
|
963
|
+
catch {
|
|
960
964
|
return;
|
|
961
965
|
}
|
|
962
966
|
}
|
|
@@ -1119,10 +1123,14 @@ class ApplicationPluginsComponent {
|
|
|
1119
1123
|
const revokedPlugins = new Array();
|
|
1120
1124
|
const actuallyOrphanedPlugins = new Array();
|
|
1121
1125
|
for (const plugin of orphanedPlugins) {
|
|
1122
|
-
const foundFamiliarPlugin = allPlugins.find(plugin1 => plugin.contextPath === plugin1.contextPath &&
|
|
1126
|
+
const foundFamiliarPlugin = allPlugins.find(plugin1 => plugin.contextPath === plugin1.contextPath &&
|
|
1127
|
+
plugin.module === plugin1.module &&
|
|
1128
|
+
plugin1.tags?.includes('latest'));
|
|
1123
1129
|
if (foundFamiliarPlugin) {
|
|
1124
1130
|
revokedPlugins.push(Object.assign({}, foundFamiliarPlugin, plugin, {
|
|
1125
|
-
status: ApplicationPluginStatus.
|
|
1131
|
+
status: ApplicationPluginStatus.FALLBACK,
|
|
1132
|
+
version: foundFamiliarPlugin.version,
|
|
1133
|
+
installedViaTag: plugin.version
|
|
1126
1134
|
}));
|
|
1127
1135
|
}
|
|
1128
1136
|
else {
|