@c8y/ngx-components 1018.503.63 → 1018.503.71
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/core/search/inventory-search.service.d.ts +1 -0
- package/ecosystem/application-plugins/plugin-list.component.d.ts +1 -0
- package/esm2020/core/product-experience/gainsight.service.mjs +16 -25
- package/esm2020/core/search/inventory-search.service.mjs +11 -3
- package/esm2020/ecosystem/application-plugins/plugin-list.component.mjs +27 -13
- package/esm2020/ecosystem/packages/deploy-application/deploy-application.component.mjs +14 -3
- package/esm2020/map/map.component.mjs +2 -2
- package/esm2020/sub-assets/location/asset-location.component.mjs +2 -1
- package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs +19 -13
- package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-ecosystem.mjs +30 -20
- package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-map.mjs +2 -1
- package/fesm2015/c8y-ngx-components-map.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-sub-assets.mjs +1 -0
- package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +25 -22
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs +26 -13
- package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem.mjs +38 -15
- package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-map.mjs +1 -1
- package/fesm2020/c8y-ngx-components-map.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-sub-assets.mjs +1 -0
- package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +25 -26
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +56 -8
- package/locales/en.po +6 -0
- package/locales/es.po +120 -24
- package/locales/fr.po +111 -15
- package/locales/ja_JP.po +131 -35
- package/locales/ko.po +114 -12
- package/locales/nl.po +106 -10
- package/locales/pl.po +110 -14
- package/locales/pt_BR.po +134 -38
- package/locales/ru.po +0 -39
- package/locales/zh_CN.po +107 -5
- package/locales/zh_TW.po +109 -7
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ import { tap, switchMap, shareReplay, takeUntil, map } from 'rxjs/operators';
|
|
|
24
24
|
import * as i6 from 'ngx-bootstrap/dropdown';
|
|
25
25
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
26
26
|
import { PopoverModule } from 'ngx-bootstrap/popover';
|
|
27
|
-
import {
|
|
27
|
+
import { pick, uniq } from 'lodash-es';
|
|
28
28
|
import { LicenseConfirmModule } from '@c8y/ngx-components/ecosystem/license-confirm';
|
|
29
29
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
30
30
|
|
|
@@ -1237,6 +1237,7 @@ class DeployApplicationComponent {
|
|
|
1237
1237
|
});
|
|
1238
1238
|
}
|
|
1239
1239
|
deployApp() {
|
|
1240
|
+
var _a, _b, _c;
|
|
1240
1241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1241
1242
|
this.inProgress = true;
|
|
1242
1243
|
const formGroupValue = this.applicationPropertiesForm.formGroup.getRawValue();
|
|
@@ -1263,13 +1264,15 @@ class DeployApplicationComponent {
|
|
|
1263
1264
|
}
|
|
1264
1265
|
try {
|
|
1265
1266
|
this.deployedApp = yield this.ecosystemService.deployApp(this.package, formGroupValue, this.model);
|
|
1267
|
+
const applicationCustomEventInfo = pick(this.package, [
|
|
1268
|
+
'id',
|
|
1269
|
+
'name',
|
|
1270
|
+
'contextPath',
|
|
1271
|
+
'label',
|
|
1272
|
+
'key'
|
|
1273
|
+
]);
|
|
1266
1274
|
this.deployedWithSuccess = true;
|
|
1267
|
-
this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE.APPLICATIONS.EVENTS.DEPLOY_APPLICATION, {
|
|
1268
|
-
component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.DEPLOY_APPLICATION,
|
|
1269
|
-
action: PRODUCT_EXPERIENCE.APPLICATIONS.ACTIONS.DEPLOY_APPLICATION,
|
|
1270
|
-
result: PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.DEPLOYED,
|
|
1271
|
-
url: this.CURRENT_LOCATION
|
|
1272
|
-
});
|
|
1275
|
+
this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE.APPLICATIONS.EVENTS.DEPLOY_APPLICATION, Object.assign(Object.assign({ component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.DEPLOY_APPLICATION, action: PRODUCT_EXPERIENCE.APPLICATIONS.ACTIONS.DEPLOY_APPLICATION, result: PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.DEPLOYED, url: this.CURRENT_LOCATION }, applicationCustomEventInfo), { package: (_c = (_b = (_a = this.deployedApp) === null || _a === void 0 ? void 0 : _a.manifest) === null || _b === void 0 ? void 0 : _b.package) !== null && _c !== void 0 ? _c : null }));
|
|
1273
1276
|
}
|
|
1274
1277
|
catch (error) {
|
|
1275
1278
|
this.ecosystemService.alertError(error);
|
|
@@ -1277,7 +1280,8 @@ class DeployApplicationComponent {
|
|
|
1277
1280
|
component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.DEPLOY_APPLICATION,
|
|
1278
1281
|
action: PRODUCT_EXPERIENCE.APPLICATIONS.ACTIONS.DEPLOY_APPLICATION,
|
|
1279
1282
|
result: PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.SERVER_FAILURE,
|
|
1280
|
-
url: this.CURRENT_LOCATION
|
|
1283
|
+
url: this.CURRENT_LOCATION,
|
|
1284
|
+
error
|
|
1281
1285
|
});
|
|
1282
1286
|
}
|
|
1283
1287
|
finally {
|
|
@@ -1480,11 +1484,6 @@ class PluginListComponent {
|
|
|
1480
1484
|
}
|
|
1481
1485
|
uninstallPlugin(plugin) {
|
|
1482
1486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1483
|
-
this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE.APPLICATIONS.EVENTS.PACKAGE_PLUGINS, {
|
|
1484
|
-
component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.PLUGIN_LIST,
|
|
1485
|
-
action: PRODUCT_EXPERIENCE.APPLICATIONS.ACTIONS.INSTALL_PLUGIN,
|
|
1486
|
-
url: this.CURRENT_LOCATION
|
|
1487
|
-
});
|
|
1488
1487
|
yield this.updateAppRemotes(plugin, 'uninstall');
|
|
1489
1488
|
});
|
|
1490
1489
|
}
|
|
@@ -1539,23 +1538,34 @@ class PluginListComponent {
|
|
|
1539
1538
|
})
|
|
1540
1539
|
: this.translateService.instant(gettext('Plugin uninstalled from application "{{ appName }}".'), { appName: app.name });
|
|
1541
1540
|
this.alertService.success(successText);
|
|
1542
|
-
this.
|
|
1543
|
-
component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.PLUGIN_LIST,
|
|
1544
|
-
result: PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.PLUGIN_INSTALLED,
|
|
1545
|
-
url: this.CURRENT_LOCATION
|
|
1546
|
-
});
|
|
1541
|
+
this.onUpdateEventHandleGS(plugin, app, updateType);
|
|
1547
1542
|
}
|
|
1548
|
-
catch (
|
|
1543
|
+
catch (error) {
|
|
1549
1544
|
this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE.APPLICATIONS.EVENTS.PACKAGE_PLUGINS, {
|
|
1550
1545
|
component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.PLUGIN_LIST,
|
|
1551
1546
|
result: PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.SERVER_FAILURE,
|
|
1552
|
-
url: this.CURRENT_LOCATION
|
|
1547
|
+
url: this.CURRENT_LOCATION,
|
|
1548
|
+
error
|
|
1553
1549
|
});
|
|
1554
1550
|
}
|
|
1555
1551
|
}
|
|
1556
1552
|
this.updatingPluginId[updateType] = '';
|
|
1557
1553
|
});
|
|
1558
1554
|
}
|
|
1555
|
+
onUpdateEventHandleGS(plugin, app, updateType) {
|
|
1556
|
+
const pluginCustomEventInfo = pick(plugin, [
|
|
1557
|
+
'name',
|
|
1558
|
+
'contextPath',
|
|
1559
|
+
'module',
|
|
1560
|
+
'version',
|
|
1561
|
+
'type',
|
|
1562
|
+
'id'
|
|
1563
|
+
]);
|
|
1564
|
+
const gsEventResult = updateType === 'install'
|
|
1565
|
+
? PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.PLUGIN_INSTALLED
|
|
1566
|
+
: PRODUCT_EXPERIENCE.APPLICATIONS.RESULTS.PLUGIN_REMOVED;
|
|
1567
|
+
this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE.APPLICATIONS.EVENTS.PACKAGE_PLUGINS, Object.assign(Object.assign({ component: PRODUCT_EXPERIENCE.APPLICATIONS.COMPONENTS.PLUGIN_LIST, result: gsEventResult, url: this.CURRENT_LOCATION }, pluginCustomEventInfo), { targetApplicationName: app.name, targetApplicationContextPath: app.contextPath }));
|
|
1568
|
+
}
|
|
1559
1569
|
getAppsForUpdate(plugin, updateType) {
|
|
1560
1570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1561
1571
|
let apps = (yield this.ecosystemService.getWebApplications()).filter(app => this.ecosystemService.isOwner(app) && app.type !== ApplicationType.EXTERNAL);
|