@acorex/platform 21.0.0-next.12 → 21.0.0-next.14
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/core/index.d.ts +3 -1
- package/fesm2022/acorex-platform-core.mjs +10 -6
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +2 -2
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-BfV3spe3.mjs → acorex-platform-layout-widgets-file-list-popup.component-DmIanCrO.mjs} +15 -3
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-DmIanCrO.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +85 -16
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +0 -2
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/entity/index.d.ts +1 -0
- package/layout/widgets/index.d.ts +25 -2
- package/package.json +9 -9
- package/workflow/index.d.ts +33 -30
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-BfV3spe3.mjs.map +0 -1
package/core/index.d.ts
CHANGED
|
@@ -1111,6 +1111,8 @@ interface AXPFileListItem {
|
|
|
1111
1111
|
status: AXPFileStatus;
|
|
1112
1112
|
source?: AXPFileSource;
|
|
1113
1113
|
meta?: AXPMetaData;
|
|
1114
|
+
title?: string;
|
|
1115
|
+
description?: string;
|
|
1114
1116
|
}
|
|
1115
1117
|
|
|
1116
1118
|
interface AXPFilterClause extends AXDataSourceFilterOption {
|
|
@@ -2125,7 +2127,7 @@ declare class AXPExpressionEvaluatorScopeProviderContext {
|
|
|
2125
2127
|
type AXPExpressionEvaluatorScopeProviders = AXPExpressionEvaluatorScopeProvider[] | (() => AXPExpressionEvaluatorScopeProvider[]);
|
|
2126
2128
|
declare const AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER: InjectionToken<AXPExpressionEvaluatorScopeProviders>;
|
|
2127
2129
|
declare class AXPExpressionEvaluatorScopeProviderService {
|
|
2128
|
-
private
|
|
2130
|
+
private readonly injector;
|
|
2129
2131
|
private cache;
|
|
2130
2132
|
private load;
|
|
2131
2133
|
getScopesAsync(): Promise<AXPExpressionEvaluatorScope>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Injectable, Directive, computed, ChangeDetectionStrategy, Component, input, ElementRef,
|
|
2
|
+
import { InjectionToken, inject, Injectable, Directive, computed, Injector, ChangeDetectionStrategy, Component, input, ElementRef, ViewContainerRef, signal, effect, runInInjectionContext, Optional, Inject, NgModule, EventEmitter, HostListener, Output, provideAppInitializer, Pipe } from '@angular/core';
|
|
3
3
|
import { get, isPlainObject, set, isNil, isEmpty, isArray, merge, isObjectLike, transform, isEqual, differenceWith, union, cloneDeep, sortBy, isUndefined, endsWith, startsWith, includes, lte, gte, lt, gt, orderBy } from 'lodash-es';
|
|
4
4
|
import { signalStore, withState, withComputed, withMethods, patchState } from '@ngrx/signals';
|
|
5
5
|
import * as i1 from '@acorex/components/skeleton';
|
|
@@ -915,17 +915,21 @@ class AXPExpressionEvaluatorScopeProviderContext {
|
|
|
915
915
|
const AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER = new InjectionToken('AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER');
|
|
916
916
|
class AXPExpressionEvaluatorScopeProviderService {
|
|
917
917
|
constructor() {
|
|
918
|
-
this.
|
|
918
|
+
this.injector = inject(Injector);
|
|
919
919
|
this.cache = null;
|
|
920
920
|
}
|
|
921
921
|
async load() {
|
|
922
922
|
if (this.cache)
|
|
923
923
|
return;
|
|
924
|
+
const raw = this.injector.get(AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, [], { optional: true });
|
|
925
|
+
const providers = Array.isArray(raw)
|
|
926
|
+
? raw
|
|
927
|
+
: typeof raw === 'function'
|
|
928
|
+
? raw()
|
|
929
|
+
: [];
|
|
924
930
|
const context = new AXPExpressionEvaluatorScopeProviderContext();
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
await provider.provide(context);
|
|
928
|
-
}
|
|
931
|
+
for (const provider of providers) {
|
|
932
|
+
await provider.provide(context);
|
|
929
933
|
}
|
|
930
934
|
this.cache = context.getScopes();
|
|
931
935
|
}
|