@acorex/platform 20.9.6 → 20.9.8
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/fesm2022/acorex-platform-core.mjs +244 -4
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +96 -19
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +3 -3
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +82 -43
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +168 -80
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-core.d.ts +68 -2
- package/types/acorex-platform-layout-components.d.ts +12 -0
- package/types/acorex-platform-layout-entity-contracts.d.ts +1 -1
- package/types/acorex-platform-layout-entity.d.ts +1 -1
- package/types/acorex-platform-layout-widget-core.d.ts +11 -4
- package/types/acorex-platform-layout-widgets.d.ts +20 -0
package/package.json
CHANGED
|
@@ -716,6 +716,72 @@ type AXPValueTransformerFunctions = {
|
|
|
716
716
|
};
|
|
717
717
|
declare function objectKeyValueTransforms(keyName: string): AXPValueTransformerFunctions;
|
|
718
718
|
|
|
719
|
+
interface AXPDataSourceQueryOptions {
|
|
720
|
+
/** Field used as AXDataSource key / widget valueField. Defaults to definition valueField.name or `id`. */
|
|
721
|
+
valueField?: string;
|
|
722
|
+
/** When true, resolve from definition.samples instead of source(). */
|
|
723
|
+
useSamples?: boolean;
|
|
724
|
+
/** Retry definition lookup while registry providers are still loading. */
|
|
725
|
+
waitForRegistry?: boolean;
|
|
726
|
+
/** Max attempts when waitForRegistry is true (default 20). */
|
|
727
|
+
maxRegistryAttempts?: number;
|
|
728
|
+
/** Delay between registry retry attempts in ms (default 50). */
|
|
729
|
+
registryRetryDelayMs?: number;
|
|
730
|
+
}
|
|
731
|
+
interface AXPDataSourceQueryResult {
|
|
732
|
+
name: string;
|
|
733
|
+
ready: boolean;
|
|
734
|
+
dataSource: AXDataSource | null;
|
|
735
|
+
definition?: AXPDataSourceDefinition;
|
|
736
|
+
valueField: string;
|
|
737
|
+
textField: string;
|
|
738
|
+
error?: unknown;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Resolves registry-backed {@link AXDataSource} instances and exposes readiness (`isReady`, `whenReady`)
|
|
742
|
+
* so widgets do not bind selected values before the provider datasource is available.
|
|
743
|
+
*/
|
|
744
|
+
declare class AXPDataSourceQueryService {
|
|
745
|
+
private readonly definitionService;
|
|
746
|
+
private readonly entries;
|
|
747
|
+
/**
|
|
748
|
+
* Returns true when the named registry datasource has been resolved for the given options.
|
|
749
|
+
*/
|
|
750
|
+
isReady(name: string, options?: AXPDataSourceQueryOptions): boolean;
|
|
751
|
+
/**
|
|
752
|
+
* Emits once when the registry datasource is resolved (or fails) for the given options.
|
|
753
|
+
*/
|
|
754
|
+
whenReady(name: string, options?: AXPDataSourceQueryOptions): Observable<AXPDataSourceQueryResult>;
|
|
755
|
+
/**
|
|
756
|
+
* Resolves and returns the {@link AXDataSource} for a registry name, waiting for providers when needed.
|
|
757
|
+
*/
|
|
758
|
+
getDataSource(name: string, options?: AXPDataSourceQueryOptions): Promise<AXDataSource | null>;
|
|
759
|
+
/**
|
|
760
|
+
* Resolves the registry datasource, then looks up one or more keys via `byKey`.
|
|
761
|
+
*/
|
|
762
|
+
queryByKey(name: string, key: unknown, options?: AXPDataSourceQueryOptions): Promise<unknown>;
|
|
763
|
+
/**
|
|
764
|
+
* Fully resolves a registry datasource (definition + AXDataSource instance).
|
|
765
|
+
*/
|
|
766
|
+
resolve(name: string, options?: AXPDataSourceQueryOptions): Promise<AXPDataSourceQueryResult>;
|
|
767
|
+
/**
|
|
768
|
+
* Clears cached query state. Pass a registry name to invalidate one datasource, or omit to clear all.
|
|
769
|
+
*/
|
|
770
|
+
invalidate(name?: string): void;
|
|
771
|
+
private ensureLoading;
|
|
772
|
+
private loadEntry;
|
|
773
|
+
private waitForDefinition;
|
|
774
|
+
private createDataSource;
|
|
775
|
+
private resolveSamples;
|
|
776
|
+
private applyValueFieldAsKey;
|
|
777
|
+
private wrapTranslatedDataSource;
|
|
778
|
+
private translateItem;
|
|
779
|
+
private buildCacheKey;
|
|
780
|
+
private sleep;
|
|
781
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDataSourceQueryService, never>;
|
|
782
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDataSourceQueryService>;
|
|
783
|
+
}
|
|
784
|
+
|
|
719
785
|
declare class AXPContentCheckerDirective {
|
|
720
786
|
viewContainerRef: ViewContainerRef;
|
|
721
787
|
elementRef: ElementRef<HTMLDivElement>;
|
|
@@ -1845,5 +1911,5 @@ declare function createProviderWithInjectionContext<T>(loader: () => Promise<new
|
|
|
1845
1911
|
*/
|
|
1846
1912
|
declare function provideLazyProvider<TProvider>(token: InjectionToken<any>, loader: () => Promise<new () => TProvider>, multi?: boolean): Provider;
|
|
1847
1913
|
|
|
1848
|
-
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPCatalogScopeDefinitionProviderService, AXPCatalogScopeDefinitionsDataSourceDefinition, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextDefinitionProviderService, AXPContextEvalFactory, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDebugService, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPIdleSchedulerService, AXPImageUrlLogoConfig, AXPKeyboardShortcutRegistry, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPModuleManifestsDataSourceDefinition, AXPScreenSize, AXPTagProvider, AXPTagService, AXP_ACTIVITY_LOG_PROVIDER, AXP_CATALOG_SCOPE_DEFINITION_PROVIDER, AXP_COLOR_PALETTE_PROVIDER, AXP_COLUMN_WIDTH_PROVIDER, AXP_CONTEXT_DEFINITION_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, AXP_SESSION_SERVICE, AXP_TAG_PROVIDER, AX_OVERLAY_CONTAINER_SELECTOR, AX_OVERLAY_PANE_SELECTOR, DEFAULT_CANCEL_DIALOG_ACTION_SHORTCUTS, DEFAULT_SUBMIT_DIALOG_ACTION_SHORTCUTS, FORM_DIRTY_TRACE_NS, OVERLAY_DETAILS_VIEW_TRACE_NS, OVERLAY_LAYOUT_TRACE_NS, OVERLAY_ROOT_LAYOUT_TRACE_NS, OVERLAY_WIDGET_SETTLE_TRACE_NS, applyContextEvalPipes, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, chordToKbdItemKeys, contextEvalWithPipes, createProviderWithInjectionContext, defaultColumnWidthProvider, findOverlayContainerAncestor, formatKeyboardShortcutChord, formatKeyboardShortcutChords, getNestedVisibleOverlayPanes, getPrimaryKeyboardShortcutChord, getTopVisibleOverlayContainer, getVisibleAnchoredOverlayPanes, getVisibleOverlayContainers, hasForegroundOverlayLayer, isDialogShortcutAllowedInEditableField, isHorizontalDirectionalShortcutKey, isKeyboardTargetInsideEditableField, isMacPlatform, isVisibleOverlayElement, matchesDialogActionShortcut, matchesKeyboardShortcutChord, mirrorHorizontalDirectionalKey, normalizeContextEvalPipes, normalizeDialogActionShortcutChord, normalizeExpressionTemplate, normalizeKeyboardShortcut, normalizeKeyboardShortcuts, objectKeyValueTransforms, parseDialogActionShortcut, parseKeyboardShortcutChord, provideLazyProvider, registerPopupFooterKeyboardShortcuts, resolveConfiguredFooterActionShortcuts, resolveDialogActionShortcuts, resolveDisplayShortcutChord, resolveEffectiveDirectionBehavior, resolveSemanticDirectionalKey, setupPopupFooterKeyboardShortcuts, shouldDeferEscapeToOpenOverlay, shouldTriggerDialogActionShortcut };
|
|
1849
|
-
export type { AXPActivityLog, AXPActivityLogChange, AXPCatalogScopeDefinition, AXPCatalogScopeDefinitionProvider, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnWidthMatcher, AXPColumnWidthProvider, AXPComponentSlotConfig, AXPComponentSlotModuleConfigs, AXPContextDefinition, AXPContextDefinitionAiHints, AXPContextDefinitionProvider, AXPContextEvalFn, AXPContextEvalOptions, AXPContextEvalPipe, AXPContextEvalPipeName, AXPContextEvalPipeSpec, AXPDataSourceArray, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataSourceSample, AXPDataSourceType, AXPDataSourceValue, AXPDebugData, AXPDebugDataFactory, AXPDebugDataInput, AXPDialogActionOptions, AXPDialogActionShortcut, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPISessionService, AXPIdleSchedulerEnqueueOptions, AXPIdleSchedulerWaitOptions, AXPKeyboardShortcutFormatOptions, AXPKeyboardShortcutRegisterOptions, AXPLazyDataSource, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPPopupFooterKeyboardShortcutsOptions, AXPPopupFooterKeyboardShortcutsSetupConfig, AXPPopupFooterShortcutAction, AXPStartUpTask, AXPTag, AXPTagFilterOptions, AXPValueTransformerFunction, AXPValueTransformerFunctions, ColumnNameMatcher, ColumnWidthValue, IColumnWithWidth, WidgetTypeMatcher };
|
|
1914
|
+
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPCatalogScopeDefinitionProviderService, AXPCatalogScopeDefinitionsDataSourceDefinition, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextDefinitionProviderService, AXPContextEvalFactory, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDataSourceQueryService, AXPDblClickDirective, AXPDebugService, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPIdleSchedulerService, AXPImageUrlLogoConfig, AXPKeyboardShortcutRegistry, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPModuleManifestsDataSourceDefinition, AXPScreenSize, AXPTagProvider, AXPTagService, AXP_ACTIVITY_LOG_PROVIDER, AXP_CATALOG_SCOPE_DEFINITION_PROVIDER, AXP_COLOR_PALETTE_PROVIDER, AXP_COLUMN_WIDTH_PROVIDER, AXP_CONTEXT_DEFINITION_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, AXP_SESSION_SERVICE, AXP_TAG_PROVIDER, AX_OVERLAY_CONTAINER_SELECTOR, AX_OVERLAY_PANE_SELECTOR, DEFAULT_CANCEL_DIALOG_ACTION_SHORTCUTS, DEFAULT_SUBMIT_DIALOG_ACTION_SHORTCUTS, FORM_DIRTY_TRACE_NS, OVERLAY_DETAILS_VIEW_TRACE_NS, OVERLAY_LAYOUT_TRACE_NS, OVERLAY_ROOT_LAYOUT_TRACE_NS, OVERLAY_WIDGET_SETTLE_TRACE_NS, applyContextEvalPipes, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, chordToKbdItemKeys, contextEvalWithPipes, createProviderWithInjectionContext, defaultColumnWidthProvider, findOverlayContainerAncestor, formatKeyboardShortcutChord, formatKeyboardShortcutChords, getNestedVisibleOverlayPanes, getPrimaryKeyboardShortcutChord, getTopVisibleOverlayContainer, getVisibleAnchoredOverlayPanes, getVisibleOverlayContainers, hasForegroundOverlayLayer, isDialogShortcutAllowedInEditableField, isHorizontalDirectionalShortcutKey, isKeyboardTargetInsideEditableField, isMacPlatform, isVisibleOverlayElement, matchesDialogActionShortcut, matchesKeyboardShortcutChord, mirrorHorizontalDirectionalKey, normalizeContextEvalPipes, normalizeDialogActionShortcutChord, normalizeExpressionTemplate, normalizeKeyboardShortcut, normalizeKeyboardShortcuts, objectKeyValueTransforms, parseDialogActionShortcut, parseKeyboardShortcutChord, provideLazyProvider, registerPopupFooterKeyboardShortcuts, resolveConfiguredFooterActionShortcuts, resolveDialogActionShortcuts, resolveDisplayShortcutChord, resolveEffectiveDirectionBehavior, resolveSemanticDirectionalKey, setupPopupFooterKeyboardShortcuts, shouldDeferEscapeToOpenOverlay, shouldTriggerDialogActionShortcut };
|
|
1915
|
+
export type { AXPActivityLog, AXPActivityLogChange, AXPCatalogScopeDefinition, AXPCatalogScopeDefinitionProvider, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnWidthMatcher, AXPColumnWidthProvider, AXPComponentSlotConfig, AXPComponentSlotModuleConfigs, AXPContextDefinition, AXPContextDefinitionAiHints, AXPContextDefinitionProvider, AXPContextEvalFn, AXPContextEvalOptions, AXPContextEvalPipe, AXPContextEvalPipeName, AXPContextEvalPipeSpec, AXPDataSourceArray, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataSourceQueryOptions, AXPDataSourceQueryResult, AXPDataSourceSample, AXPDataSourceType, AXPDataSourceValue, AXPDebugData, AXPDebugDataFactory, AXPDebugDataInput, AXPDialogActionOptions, AXPDialogActionShortcut, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPISessionService, AXPIdleSchedulerEnqueueOptions, AXPIdleSchedulerWaitOptions, AXPKeyboardShortcutFormatOptions, AXPKeyboardShortcutRegisterOptions, AXPLazyDataSource, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPPopupFooterKeyboardShortcutsOptions, AXPPopupFooterKeyboardShortcutsSetupConfig, AXPPopupFooterShortcutAction, AXPStartUpTask, AXPTag, AXPTagFilterOptions, AXPValueTransformerFunction, AXPValueTransformerFunctions, ColumnNameMatcher, ColumnWidthValue, IColumnWithWidth, WidgetTypeMatcher };
|
|
@@ -946,6 +946,7 @@ declare class AXPQueryFiltersComponent {
|
|
|
946
946
|
private readonly shortcutRegistry;
|
|
947
947
|
private readonly destroyRef;
|
|
948
948
|
private readonly elementRef;
|
|
949
|
+
private readonly dataSourceQueryService;
|
|
949
950
|
protected readonly filterFocusShortcutKeys: string[];
|
|
950
951
|
constructor();
|
|
951
952
|
filtersDefinitions: _angular_core.InputSignal<AXPFilterDefinition[]>;
|
|
@@ -968,6 +969,10 @@ declare class AXPQueryFiltersComponent {
|
|
|
968
969
|
private readonly filterContextPath$;
|
|
969
970
|
private filterContextPathSnapshotReady;
|
|
970
971
|
private previousFilterContextSnapshot;
|
|
972
|
+
/** Committed context entry for the filter being edited; restored when popover closes without Apply. */
|
|
973
|
+
private editingContextSnapshot;
|
|
974
|
+
/** Bumped on locale change so filter chip labels re-resolve i18n keys. */
|
|
975
|
+
private translationEpoch;
|
|
971
976
|
inlineFilters: () => AXPFilterDefinition[];
|
|
972
977
|
protected getDisplayValue: (filter: AXPFilterDefinition, val: any) => Promise<any>;
|
|
973
978
|
protected convertIfISOStringDate: (val: string) => string;
|
|
@@ -1008,6 +1013,13 @@ declare class AXPQueryFiltersComponent {
|
|
|
1008
1013
|
* Resolves filter chip labels; translates i18n keys stored in select `displayText` or datasource titles.
|
|
1009
1014
|
*/
|
|
1010
1015
|
private formatFilterDisplayValue;
|
|
1016
|
+
private translateLabel;
|
|
1017
|
+
private captureEditingContextSnapshot;
|
|
1018
|
+
private restoreEditingContextSnapshot;
|
|
1019
|
+
/**
|
|
1020
|
+
* Returns the committed filter context entry (snapshot while editing, live context otherwise).
|
|
1021
|
+
*/
|
|
1022
|
+
private getCommittedFilterEntry;
|
|
1011
1023
|
private createExpressionScope;
|
|
1012
1024
|
private isObservableLike;
|
|
1013
1025
|
private buildFilterTriggerScope;
|
|
@@ -769,7 +769,7 @@ interface AXPLookupWidgetOptions {
|
|
|
769
769
|
/** Column list: lazy resolve and summary behavior. */
|
|
770
770
|
columnResolve?: AXPLookupColumnResolveOptions;
|
|
771
771
|
/** Lookup selector popup: entity row actions to display. */
|
|
772
|
-
|
|
772
|
+
rowActions?: AXPLookupSelectorRowActionsConfig;
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
declare function entityMasterCreateAction(): AXPEntityAction;
|
|
@@ -3578,7 +3578,7 @@ declare class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent<any>
|
|
|
3578
3578
|
protected look: _angular_core.Signal<AXPLookupWidgetLookType>;
|
|
3579
3579
|
protected displayField: _angular_core.Signal<string>;
|
|
3580
3580
|
protected resolvedCreate: _angular_core.Signal<_acorex_platform_layout_entity_contracts.ResolvedLookupCreateOptions>;
|
|
3581
|
-
protected
|
|
3581
|
+
protected rowActions: _angular_core.Signal<AXPLookupSelectorRowActionsConfig | undefined>;
|
|
3582
3582
|
protected valueField: _angular_core.Signal<string>;
|
|
3583
3583
|
protected displayFormat: _angular_core.Signal<string | undefined>;
|
|
3584
3584
|
protected conditions?: AXPQueryFilter[];
|
|
@@ -6,6 +6,7 @@ import * as _ngrx_signals from '@ngrx/signals';
|
|
|
6
6
|
import * as _acorex_platform_contracts from '@acorex/platform/contracts';
|
|
7
7
|
import { AXPOptionsData, AXPValidationRules, AXPProperty, AXPContextChangeEvent, AXPMetaData, AXPDefinitionCategory } from '@acorex/platform/contracts';
|
|
8
8
|
import { AXValueChangedEvent, AXDataSource } from '@acorex/cdk/common';
|
|
9
|
+
import { AXPDataSourceQueryService, AXPExpressionEvaluatorService } from '@acorex/platform/core';
|
|
9
10
|
import * as rxjs from 'rxjs';
|
|
10
11
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
11
12
|
import * as _acorex_platform_layout_widget_core from '@acorex/platform/layout/widget-core';
|
|
@@ -13,7 +14,6 @@ import { AXDataTableColumnComponent } from '@acorex/components/data-table';
|
|
|
13
14
|
import * as i7 from '@acorex/core/translation';
|
|
14
15
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
15
16
|
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
16
|
-
import { AXPExpressionEvaluatorService } from '@acorex/platform/core';
|
|
17
17
|
import * as i4 from '@angular/common';
|
|
18
18
|
import * as i5 from '@angular/cdk/portal';
|
|
19
19
|
import * as i6 from '@acorex/components/skeleton';
|
|
@@ -224,18 +224,27 @@ declare abstract class AXPValueWidgetComponent<T = any | null, TOptions extends
|
|
|
224
224
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPValueWidgetComponent<any, any>>;
|
|
225
225
|
}
|
|
226
226
|
declare abstract class AXPDataListWidgetComponent extends AXPValueWidgetComponent<any> {
|
|
227
|
-
|
|
227
|
+
protected readonly registryDataSourceQuery: AXPDataSourceQueryService;
|
|
228
228
|
protected textField: _angular_core.Signal<string>;
|
|
229
229
|
protected valueField: _angular_core.Signal<string>;
|
|
230
230
|
protected textTemplate: _angular_core.Signal<string | undefined>;
|
|
231
231
|
protected dataSource: _angular_core.WritableSignal<AXDataSource<any>>;
|
|
232
|
+
/** Registry datasource name from options, when options.dataSource is a string or `{ id }` object. */
|
|
233
|
+
protected registryDataSourceName: _angular_core.Signal<string | null>;
|
|
232
234
|
selectedItems: _angular_core.WritableSignal<any[]>;
|
|
235
|
+
/** Reactive flag: registry datasource finished resolving (success or failure). */
|
|
236
|
+
protected registryDataSourceReady: _angular_core.WritableSignal<boolean>;
|
|
237
|
+
/** Reactive bump to reload registry-backed datasources (e.g. after locale change). */
|
|
238
|
+
protected readonly registryRefreshEpoch: _angular_core.WritableSignal<number>;
|
|
233
239
|
/**
|
|
234
240
|
* Track the last loaded string dataSource reference to prevent infinite loops
|
|
235
241
|
* Only used for string-based datasources (not arrays or AXDataSource instances)
|
|
236
242
|
*/
|
|
237
243
|
private lastStringDataSourceRef;
|
|
244
|
+
private buildRegistryQueryOptions;
|
|
238
245
|
private rf;
|
|
246
|
+
/** Invalidates cached registry datasource and forces a reload on the next effect run. */
|
|
247
|
+
protected refreshRegistryDataSource(): void;
|
|
239
248
|
protected extractItem(item: unknown): Promise<any>;
|
|
240
249
|
/**
|
|
241
250
|
* Value used to resolve `selectedItems`. Defaults to the stored value, but
|
|
@@ -244,8 +253,6 @@ declare abstract class AXPDataListWidgetComponent extends AXPValueWidgetComponen
|
|
|
244
253
|
*/
|
|
245
254
|
protected resolveSelectedItemsValue(): any;
|
|
246
255
|
private effect2;
|
|
247
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPDataListWidgetComponent, never>;
|
|
248
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPDataListWidgetComponent>;
|
|
249
256
|
}
|
|
250
257
|
declare abstract class AXPColumnWidgetComponent<T = any | null | void> {
|
|
251
258
|
private readonly token;
|
|
@@ -1625,6 +1625,12 @@ declare class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent
|
|
|
1625
1625
|
private selectBox;
|
|
1626
1626
|
protected widgetsConfigs: StrategyConfig;
|
|
1627
1627
|
private readonly filterOperatorMiddleware;
|
|
1628
|
+
private readonly translationService;
|
|
1629
|
+
private readonly localeService;
|
|
1630
|
+
private readonly destroyRef;
|
|
1631
|
+
/** Toggled to force ax-select-box to re-render after locale / language changes. */
|
|
1632
|
+
protected readonly selectBoxKey: _angular_core.WritableSignal<boolean>;
|
|
1633
|
+
private readonly selectBoxLocaleChanged;
|
|
1628
1634
|
/**
|
|
1629
1635
|
* Expose configuration similar to lookup widget. Can be:
|
|
1630
1636
|
* - string path(s): 'field.path'
|
|
@@ -1652,6 +1658,14 @@ declare class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent
|
|
|
1652
1658
|
* display value used by the template to avoid resolving items with an `undefined` key.
|
|
1653
1659
|
*/
|
|
1654
1660
|
protected resolveSelectedItemsValue(): any;
|
|
1661
|
+
/** Show skeleton while a registry-backed datasource is still resolving. */
|
|
1662
|
+
protected showSelectBoxSkeleton: _angular_core.Signal<boolean>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Bind resolved row object(s) when available so ax-select-box can render textField labels.
|
|
1665
|
+
* Falls back to primitive key(s) while selectedItems are still loading.
|
|
1666
|
+
* Label translation is handled by ax-select-box (`getDisplayText(item) | translate`).
|
|
1667
|
+
*/
|
|
1668
|
+
protected selectBoxModel: _angular_core.Signal<any>;
|
|
1655
1669
|
protected searchValue: _angular_core.WritableSignal<string | undefined>;
|
|
1656
1670
|
private lastDataSource;
|
|
1657
1671
|
private hasSeenDataSource;
|
|
@@ -1668,9 +1682,15 @@ declare class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent
|
|
|
1668
1682
|
private syncExposePathsToSavedBaseline;
|
|
1669
1683
|
protected handleSearchValueChange(e: AXValueChangedEvent): void;
|
|
1670
1684
|
refresh(): void;
|
|
1685
|
+
/** Re-mount ax-select-box so translate pipe picks up the active locale. */
|
|
1686
|
+
private rerenderSelectBox;
|
|
1671
1687
|
clear(): void;
|
|
1672
1688
|
protected get item(): any;
|
|
1673
1689
|
private get __class();
|
|
1690
|
+
/**
|
|
1691
|
+
* ax-select-box may emit a non-user init event with a placeholder item whose title equals the raw id.
|
|
1692
|
+
*/
|
|
1693
|
+
private isStaleFallbackSelection;
|
|
1674
1694
|
/**
|
|
1675
1695
|
* Return a single value for single-select, or the full list for multi-select
|
|
1676
1696
|
*/
|