@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.
Files changed (41) hide show
  1. package/core/search/inventory-search.service.d.ts +1 -0
  2. package/ecosystem/application-plugins/plugin-list.component.d.ts +1 -0
  3. package/esm2020/core/product-experience/gainsight.service.mjs +16 -25
  4. package/esm2020/core/search/inventory-search.service.mjs +11 -3
  5. package/esm2020/ecosystem/application-plugins/plugin-list.component.mjs +27 -13
  6. package/esm2020/ecosystem/packages/deploy-application/deploy-application.component.mjs +14 -3
  7. package/esm2020/map/map.component.mjs +2 -2
  8. package/esm2020/sub-assets/location/asset-location.component.mjs +2 -1
  9. package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs +19 -13
  10. package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
  11. package/fesm2015/c8y-ngx-components-ecosystem.mjs +30 -20
  12. package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
  13. package/fesm2015/c8y-ngx-components-map.mjs +2 -1
  14. package/fesm2015/c8y-ngx-components-map.mjs.map +1 -1
  15. package/fesm2015/c8y-ngx-components-sub-assets.mjs +1 -0
  16. package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
  17. package/fesm2015/c8y-ngx-components.mjs +25 -22
  18. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  19. package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs +26 -13
  20. package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
  21. package/fesm2020/c8y-ngx-components-ecosystem.mjs +38 -15
  22. package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
  23. package/fesm2020/c8y-ngx-components-map.mjs +1 -1
  24. package/fesm2020/c8y-ngx-components-map.mjs.map +1 -1
  25. package/fesm2020/c8y-ngx-components-sub-assets.mjs +1 -0
  26. package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
  27. package/fesm2020/c8y-ngx-components.mjs +25 -26
  28. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  29. package/locales/de.po +56 -8
  30. package/locales/en.po +6 -0
  31. package/locales/es.po +120 -24
  32. package/locales/fr.po +111 -15
  33. package/locales/ja_JP.po +131 -35
  34. package/locales/ko.po +114 -12
  35. package/locales/nl.po +106 -10
  36. package/locales/pl.po +110 -14
  37. package/locales/pt_BR.po +134 -38
  38. package/locales/ru.po +0 -39
  39. package/locales/zh_CN.po +107 -5
  40. package/locales/zh_TW.po +109 -7
  41. package/package.json +1 -1
@@ -7463,9 +7463,9 @@ class GainsightService {
7463
7463
  */
7464
7464
  identify(sendPiiData, identifyData) {
7465
7465
  const windowRef = window;
7466
- const { id: userId, email } = identifyData.user;
7467
- const { name: tenantID } = identifyData.currentTenant;
7468
- const { instanceId } = identifyData;
7466
+ const { id: userId, email, roles } = identifyData.user;
7467
+ const { name: tenantID, customProperties, domainName } = identifyData.currentTenant;
7468
+ const { instanceId, versionUI, versionBE } = identifyData;
7469
7469
  /**
7470
7470
  * Passing ID is a minimum required data to make an identify call to Gainsight.
7471
7471
  * isUserCreatedAfterAnonymizationWasActivated parameter is passed to later distinguish between users created before and after data anonymization done by Gainsight.
@@ -7482,36 +7482,27 @@ class GainsightService {
7482
7482
  isUserCreatedAfterAnonymizationWasActivated: true,
7483
7483
  tenantID: tenantID,
7484
7484
  email: '--',
7485
- userName: '',
7486
- firstName: '',
7487
- lastName: '',
7488
- domainName: '',
7489
- versionUI: '',
7490
- versionBE: '',
7491
- userLanguage: '',
7492
- instanceId: '',
7493
- externalReference: '',
7494
- userRoles: '',
7485
+ userName: '--',
7486
+ firstName: '--',
7487
+ lastName: '--',
7488
+ domainName,
7489
+ versionUI,
7490
+ versionBE,
7491
+ userLanguage: this.translateService.currentLang,
7492
+ instanceId,
7493
+ externalReference: customProperties?.externalReference,
7494
+ userRoles: this.transformUserRolesToStr(roles?.references),
7495
7495
  customBranding: this.isCustomBranding(),
7496
7496
  fullTracking: sendPiiData
7497
7497
  };
7498
7498
  if (sendPiiData) {
7499
- const { userName, firstName, lastName, roles } = identifyData.user;
7500
- const { customProperties, domainName } = identifyData.currentTenant;
7501
- const { versionUI, versionBE } = identifyData;
7499
+ const { userName, firstName, lastName } = identifyData.user;
7502
7500
  const extendedIdentify = {
7503
7501
  ...requiredIdentify,
7504
7502
  email,
7505
7503
  userName,
7506
7504
  firstName,
7507
- lastName,
7508
- domainName,
7509
- versionUI,
7510
- versionBE,
7511
- userLanguage: this.translateService.currentLang,
7512
- instanceId,
7513
- externalReference: customProperties?.externalReference,
7514
- userRoles: this.transformUserRolesToStr(roles?.references)
7505
+ lastName
7515
7506
  };
7516
7507
  windowRef[this.GAINSIGHT_GLOBAL_SCOPE]('identify', extendedIdentify, {
7517
7508
  id: `${tenantID}_${instanceId}`,
@@ -17285,9 +17276,10 @@ class InventorySearchService {
17285
17276
  * @param pagination The currently used pagination.
17286
17277
  */
17287
17278
  search(term, pagination = { currentPage: 1, pageSize: this.DEFAULT_PAGE_SIZE }) {
17288
- return this.inventoryService.list({
17289
- text: term,
17279
+ const searchFilterQuery = this.getDefaultSearchQuery();
17280
+ return this.inventoryService.listQuery(searchFilterQuery, {
17290
17281
  withTotalPages: true,
17282
+ text: term,
17291
17283
  pageSize: pagination.pageSize,
17292
17284
  withChildren: false,
17293
17285
  currentPage: pagination.currentPage || 1
@@ -17329,6 +17321,13 @@ class InventorySearchService {
17329
17321
  }
17330
17322
  };
17331
17323
  }
17324
+ getDefaultSearchQuery() {
17325
+ return {
17326
+ __filter: {
17327
+ __or: [{ __has: 'c8y_IsDeviceGroup' }, { __has: 'c8y_IsDevice' }, { __has: 'c8y_IsAsset' }]
17328
+ }
17329
+ };
17330
+ }
17332
17331
  }
17333
17332
  InventorySearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InventorySearchService, deps: [{ token: i1$1.InventoryService }], target: i0.ɵɵFactoryTarget.Injectable });
17334
17333
  InventorySearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InventorySearchService, providedIn: 'root' });