@acorex/platform 21.0.0-next.59 → 21.0.0-next.64

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';
@@ -880,10 +880,9 @@ const AXPLayoutDetailsViewViewModel = signalStore(withState(() => {
880
880
  return processed;
881
881
  },
882
882
  async currentPageSecondaryActions() {
883
- // Use getActions() if available for reactive updates, otherwise fall back to static actions
884
- const currentPage = store.currentPage();
885
- const allActions = currentPage?.getActions ? await currentPage.getActions() : (currentPage?.actions ?? []);
886
- const raw = allActions.filter((a) => a.priority == 'secondary');
883
+ const raw = store
884
+ .currentPage()
885
+ ?.actions?.filter((a) => a.priority == 'secondary' && a.zone == 'header' && a.scope == AXPEntityCommandScope.TypeLevel) ?? [];
887
886
  const processed = await evaluatorService.evaluate(raw, store.scope());
888
887
  return processed;
889
888
  },
@@ -1019,7 +1018,9 @@ const AXPLayoutDetailsViewViewModel = signalStore(withState(() => {
1019
1018
  return processed;
1020
1019
  },
1021
1020
  async secondaryActions() {
1022
- const raw = store.adapter()?.actions?.filter((a) => a.priority == 'secondary') ?? [];
1021
+ const raw = store
1022
+ .adapter()
1023
+ ?.actions?.filter((a) => a.priority == 'secondary' && a.scope == AXPEntityCommandScope.TypeLevel) ?? [];
1023
1024
  const processed = await evaluatorService.evaluate(raw, store.scope());
1024
1025
  return processed;
1025
1026
  },