@acorex/platform 21.0.0-next.16 → 21.0.0-next.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.
Files changed (29) hide show
  1. package/common/index.d.ts +10 -1
  2. package/core/index.d.ts +1 -1
  3. package/fesm2022/{acorex-platform-common-common-settings.provider-BwBLG0Hl.mjs → acorex-platform-common-common-settings.provider-gyb6ohAE.mjs} +15 -1
  4. package/fesm2022/acorex-platform-common-common-settings.provider-gyb6ohAE.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-common.mjs +3 -2
  6. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-core.mjs +10 -6
  8. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-domain.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-layout-entity.mjs +333 -54
  11. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-layout-views.mjs +2 -2
  13. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  14. package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-zkvCqKp9.mjs → acorex-platform-layout-widgets-file-list-popup.component-DmIanCrO.mjs} +12 -3
  15. package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-DmIanCrO.mjs.map +1 -0
  16. package/fesm2022/acorex-platform-layout-widgets.mjs +70 -20
  17. package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
  18. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-DJR8f2El.mjs → acorex-platform-themes-default-entity-master-create-view.component-CCiYPMhz.mjs} +25 -21
  19. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CCiYPMhz.mjs.map +1 -0
  20. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  21. package/fesm2022/acorex-platform-workflow.mjs +0 -2
  22. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  23. package/layout/entity/index.d.ts +10 -1
  24. package/layout/widgets/index.d.ts +21 -1
  25. package/package.json +9 -9
  26. package/workflow/index.d.ts +33 -30
  27. package/fesm2022/acorex-platform-common-common-settings.provider-BwBLG0Hl.mjs.map +0 -1
  28. package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-zkvCqKp9.mjs.map +0 -1
  29. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-DJR8f2El.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, Injectable, Directive, computed, ChangeDetectionStrategy, Component, input, ElementRef, Injector, ViewContainerRef, signal, effect, runInInjectionContext, Optional, Inject, NgModule, EventEmitter, HostListener, Output, provideAppInitializer, Pipe } from '@angular/core';
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';
@@ -913,17 +913,21 @@ class AXPExpressionEvaluatorScopeProviderContext {
913
913
  const AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER = new InjectionToken('AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER');
914
914
  class AXPExpressionEvaluatorScopeProviderService {
915
915
  constructor() {
916
- this.providers = inject(AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, { optional: true });
916
+ this.injector = inject(Injector);
917
917
  this.cache = null;
918
918
  }
919
919
  async load() {
920
920
  if (this.cache)
921
921
  return;
922
+ const raw = this.injector.get(AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, [], { optional: true });
923
+ const providers = Array.isArray(raw)
924
+ ? raw
925
+ : typeof raw === 'function'
926
+ ? raw()
927
+ : [];
922
928
  const context = new AXPExpressionEvaluatorScopeProviderContext();
923
- if (Array.isArray(this.providers)) {
924
- for (const provider of this.providers) {
925
- await provider.provide(context);
926
- }
929
+ for (const provider of providers) {
930
+ await provider.provide(context);
927
931
  }
928
932
  this.cache = context.getScopes();
929
933
  }