@acorex/platform 20.9.2 → 20.9.3

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.
@@ -67,7 +67,7 @@ import { AXSelectionListModule } from '@acorex/components/selection-list';
67
67
  import * as i5$1 from '@acorex/components/tag-box';
68
68
  import { AXTagBoxModule } from '@acorex/components/tag-box';
69
69
  import { AXCalendarService } from '@acorex/core/date-time';
70
- import { AXPFilterOperatorMiddlewareService, AXPSettingsService, ALL_DEFAULT_OPERATORS, AXPFileStorageService, withDefaultMultiLanguageOnWidgetProperty, AXPDefaultMultiLanguageConfigService, AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';
70
+ import { AXPFilterOperatorMiddlewareService, AXPSettingsService, ALL_DEFAULT_OPERATORS, AXPFileStorageService, withDefaultMultiLanguageOnWidgetProperty, AXPDefaultMultiLanguageConfigService, resolveSearchableText, AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';
71
71
  import { resolveEntityListFilterQueryField, resolveEntityListFilterContextField } from '@acorex/platform/layout/entity-contracts';
72
72
  import { Subject, filter, BehaviorSubject, timer, takeUntil } from 'rxjs';
73
73
  import * as i1$7 from '@acorex/components/image-editor';
@@ -4784,21 +4784,23 @@ class AXPItemConfiguratorComponent {
4784
4784
  //#region ---- Class Properties ----
4785
4785
  this.isEditMode = signal(false, ...(ngDevMode ? [{ debugName: "isEditMode" }] : /* istanbul ignore next */ []));
4786
4786
  this.availableItems = computed(() => {
4787
+ const locale = this.translationService.getActiveLang();
4787
4788
  const list = [];
4788
4789
  for (const row of this.items()) {
4789
4790
  const id = row.id?.trim() ?? '';
4790
4791
  if (!id) {
4791
4792
  continue;
4792
4793
  }
4793
- const title = this.translationService.resolve(row.title).trim() || id;
4794
+ const title = resolveSearchableText(row.title, locale, this.translationService).trim() || id;
4794
4795
  list.push({
4795
4796
  value: id,
4796
4797
  text: title,
4797
4798
  icon: row.icon,
4798
- description: row.description != null ? this.translationService.resolve(row.description) : undefined,
4799
+ description: row.description != null
4800
+ ? resolveSearchableText(row.description, locale, this.translationService)
4801
+ : undefined,
4799
4802
  });
4800
4803
  }
4801
- const locale = this.translationService.getActiveLang();
4802
4804
  return list.sort((a, b) => compareMultiLanguageStrings(a.text, b.text, locale));
4803
4805
  }, ...(ngDevMode ? [{ debugName: "availableItems" }] : /* istanbul ignore next */ []));
4804
4806
  this.selectedListItem = computed(() => {