@acorex/platform 20.8.17 → 20.8.19

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.
@@ -12,7 +12,7 @@ import { AXDecoratorModule } from '@acorex/components/decorators';
12
12
  import * as i5 from '@acorex/components/dropdown';
13
13
  import { AXDropdownModule } from '@acorex/components/dropdown';
14
14
  import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
15
- import { AXPStickyDirective, AXPHomePageService, AXPCommonSettings, AXPSettingsService, AXPEntityCommandScope } from '@acorex/platform/common';
15
+ import { AXPStickyDirective, AXPHomePageService, AXPCommonSettings, AXPEntityCommandScope, AXPSettingsService } from '@acorex/platform/common';
16
16
  import * as i8 from '@acorex/platform/core';
17
17
  import { AXPDeviceService, AXPComponentSlotModule, getSmart, getChangedPaths, AXPExpressionEvaluatorService, AXPBroadcastEventService } from '@acorex/platform/core';
18
18
  import * as i1 from '@acorex/cdk/drawer';
@@ -792,7 +792,11 @@ const AXPLayoutDetailsViewViewModel = signalStore(withState(() => {
792
792
  return processed;
793
793
  },
794
794
  async currentPageSecondaryActions() {
795
- const raw = store.currentPage()?.actions?.filter((a) => a.priority == 'secondary') ?? [];
795
+ const raw = store
796
+ .currentPage()
797
+ ?.actions?.filter((a) => a.priority == 'secondary' &&
798
+ a.zone == 'header' &&
799
+ a.scope == AXPEntityCommandScope.TypeLevel) ?? [];
796
800
  const processed = await evaluatorService.evaluate(raw, store.scope());
797
801
  return processed;
798
802
  },
@@ -892,7 +896,7 @@ const AXPLayoutDetailsViewViewModel = signalStore(withState(() => {
892
896
  return processed;
893
897
  },
894
898
  async secondaryActions() {
895
- const raw = store.adapter()?.actions?.filter((a) => a.priority == 'secondary') ?? [];
899
+ const raw = store.adapter()?.actions?.filter((a) => a.priority == 'secondary' && a.scope == AXPEntityCommandScope.TypeLevel) ?? [];
896
900
  const processed = await evaluatorService.evaluate(raw, store.scope());
897
901
  return processed;
898
902
  },