@acorex/platform 20.8.17 → 20.8.18
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.
|
@@ -13954,7 +13954,18 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
13954
13954
|
this.disabled = computed(() => this.filterMode() ? false : this.options()['disabled'], ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
13955
13955
|
this.columns = computed(() => this.options()['columns'] ?? [], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
13956
13956
|
this.textField = computed(() => this.options()['textField'] ?? '', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
13957
|
-
|
|
13957
|
+
/**
|
|
13958
|
+
* Template for select look (`ax-select-box`). Uses `textTemplate` when set, otherwise
|
|
13959
|
+
* falls back to `displayFormat` (same as tagbox). Single braces are expanded to `{{ }}`
|
|
13960
|
+
* for the select box template engine (see `AXPDataListWidgetComponent.textTemplate`).
|
|
13961
|
+
*/
|
|
13962
|
+
this.textTemplate = computed(() => {
|
|
13963
|
+
const explicit = this.options()['textTemplate'];
|
|
13964
|
+
if (explicit) {
|
|
13965
|
+
return explicit.replace(/\{/g, '{{').replace(/\}/g, '}}');
|
|
13966
|
+
}
|
|
13967
|
+
return this.displayFormat() ?? null;
|
|
13968
|
+
}, ...(ngDevMode ? [{ debugName: "textTemplate" }] : []));
|
|
13958
13969
|
this.hasClearButton = computed(() => (!this.filterMode() && this.options()['hasClearButton']) ?? false, ...(ngDevMode ? [{ debugName: "hasClearButton" }] : []));
|
|
13959
13970
|
this.showItemTooltip = computed(() => this.options()['showItemTooltip'] ?? false, ...(ngDevMode ? [{ debugName: "showItemTooltip" }] : []));
|
|
13960
13971
|
this.isItemTruncated = computed(() => this.options()['isItemTruncated'] ?? true, ...(ngDevMode ? [{ debugName: "isItemTruncated" }] : []));
|