@eo-sdk/client 10.6.8 → 10.6.9

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 (30) hide show
  1. package/app/eo-client/dashboard/widgets/charts-widget/charts-setup/charts-setup.component.d.ts +3 -2
  2. package/app/eo-client/dashboard/widgets/charts-widget/charts-setup/charts-setup.component.d.ts.map +1 -1
  3. package/app/eo-client/dashboard/widgets/hitlist-widget/hitlist-setup/hitlist-setup.component.d.ts +3 -2
  4. package/app/eo-client/dashboard/widgets/hitlist-widget/hitlist-setup/hitlist-setup.component.d.ts.map +1 -1
  5. package/app/eo-framework/prepare-details/prepare-details.component.d.ts.map +1 -1
  6. package/assets/_default/i18n/de.json +1 -0
  7. package/assets/_default/i18n/en.json +1 -0
  8. package/esm2020/app/eo-client/about-state/about-state.component.mjs +3 -3
  9. package/esm2020/app/eo-client/dashboard/widgets/charts-widget/charts-setup/charts-setup.component.mjs +16 -10
  10. package/esm2020/app/eo-client/dashboard/widgets/charts-widget/charts-widget.component.mjs +2 -2
  11. package/esm2020/app/eo-client/dashboard/widgets/hitlist-widget/hitlist-setup/hitlist-setup.component.mjs +17 -10
  12. package/esm2020/app/eo-client/settings/settings.component.mjs +2 -2
  13. package/esm2020/app/eo-framework/actions/actions/signature-action/signature/signature.component.mjs +3 -3
  14. package/esm2020/app/eo-framework/form-elements/datetime-range/datetime-range.component.mjs +6 -5
  15. package/esm2020/app/eo-framework/inbox-details/inbox-details.component.mjs +3 -3
  16. package/esm2020/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.mjs +2 -2
  17. package/esm2020/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.mjs +2 -2
  18. package/esm2020/app/eo-framework/prepare-details/prepare-details.component.mjs +15 -4
  19. package/esm2020/app/eo-framework/ui/indexdata-summary/indexdata-summary.component.mjs +2 -2
  20. package/esm2020/projects/eo-sdk/core/lib/service/search/search.service.mjs +8 -2
  21. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs +7 -1
  22. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
  23. package/fesm2015/eo-sdk-client.mjs +69 -45
  24. package/fesm2015/eo-sdk-client.mjs.map +1 -1
  25. package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs +7 -1
  26. package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
  27. package/fesm2020/eo-sdk-client.mjs +69 -45
  28. package/fesm2020/eo-sdk-client.mjs.map +1 -1
  29. package/package.json +2 -2
  30. package/projects/eo-sdk/core/lib/service/search/search.service.d.ts.map +1 -1
@@ -5326,6 +5326,7 @@ class SearchService {
5326
5326
  const aggregations = res.aggregations[baseParam]
5327
5327
  ? res.aggregations[baseParam].buckets
5328
5328
  : [];
5329
+ let aggs = {};
5329
5330
  aggregations.forEach(aggregation => {
5330
5331
  let { key, doc_count, contextfoldertype } = aggregation;
5331
5332
  if (baseParam === 'filesize') {
@@ -5338,10 +5339,15 @@ class SearchService {
5338
5339
  if (baseParam === SearchQuery.BASE_PARAMS.TYPE &&
5339
5340
  contextfoldertype) {
5340
5341
  contextfoldertype.buckets.forEach(ctxAgg => {
5341
- state.addAggregations('contexttype', ctxAgg.key, ctxAgg.doc_count, ctxAgg);
5342
+ aggs[ctxAgg.key] = aggs[ctxAgg.key] ? aggs[ctxAgg.key] + ctxAgg.doc_count : ctxAgg.doc_count;
5342
5343
  });
5343
5344
  }
5344
5345
  });
5346
+ if (baseParam === SearchQuery.BASE_PARAMS.TYPE) {
5347
+ Object.keys(aggs).forEach((key) => {
5348
+ state.addAggregations('contexttype', key, aggs[key]);
5349
+ });
5350
+ }
5345
5351
  });
5346
5352
  return state;
5347
5353
  }));