@acorex-platform/framework-client 2.0.0-next.34 → 2.0.0-next.36

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 (20) hide show
  1. package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-C7w6zptT.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-eqKl54nf.mjs} +90 -43
  2. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-eqKl54nf.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-DaU3c421.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-HF8kxDK6.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-DaU3c421.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-HF8kxDK6.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-OgcVdNXS.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-BZ9yN9oe.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-OgcVdNXS.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-BZ9yN9oe.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-DWL1v6N3.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-DfLgwqH6.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-DWL1v6N3.mjs.map → acorex-platform-framework-client-layout-entity-file-list-popup.component-DfLgwqH6.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-zNyimD5t.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-BPltcAks.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-zNyimD5t.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-BPltcAks.mjs.map} +1 -1
  11. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
  12. package/fesm2022/acorex-platform-framework-client-layout-views.mjs +26 -0
  13. package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-framework-client-themes-default.mjs +3 -58
  15. package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
  16. package/package.json +2 -2
  17. package/types/acorex-platform-framework-client-layout-entity.d.ts +7 -11
  18. package/types/acorex-platform-framework-client-layout-views.d.ts +9 -0
  19. package/types/acorex-platform-framework-client-themes-default.d.ts +0 -12
  20. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-C7w6zptT.mjs.map +0 -1
@@ -1884,9 +1884,7 @@ class AXPEntityMasterToolbarViewComponent {
1884
1884
  async ngOnInit() {
1885
1885
  // Prefer saved settings (view/columns/sorts/filters) if available, then apply once
1886
1886
  await this.loadSettings();
1887
- const queryParamMap = this.activeRoute.snapshot.queryParamMap;
1888
- this.vm.bindRouteQueryParamMap(queryParamMap);
1889
- const viewFromUrl = queryParamMap.get('view');
1887
+ const viewFromUrl = this.activeRoute.snapshot.queryParamMap.get('view');
1890
1888
  // TODO: Consolidate list init setView calls (resolver, list-view queryParamSub / ngAfterViewInit).
1891
1889
  await this.vm.setView(viewFromUrl);
1892
1890
  await this.vm.ensureListPagingResolved();
@@ -2500,10 +2498,6 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2500
2498
  this.restoreExpandedRowsScheduled = false;
2501
2499
  /** Blocks deferred `replaceUrl` view sync after destroy or once details navigation has started. */
2502
2500
  this.listQueryParamSyncDisabled = false;
2503
- /** `mode` and `list` this cached list was opened with. A hidden tab ignores any other pair. */
2504
- this.tabNavigationMode = null;
2505
- this.tabNavigationList = null;
2506
- this.tabNavigationCaptured = false;
2507
2501
  effect(() => {
2508
2502
  const grid = this.grid();
2509
2503
  if (grid) {
@@ -2605,12 +2599,7 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2605
2599
  ...this.buildListHostTraceSnapshot(),
2606
2600
  }));
2607
2601
  this.pageContextRegistry.activate(this.pageContextRegistrationId);
2608
- void this.syncShownTabQueryParams().then(() => {
2609
- if (this.listQueryParamSyncDisabled) {
2610
- return;
2611
- }
2612
- this.flushBackgroundListRefresh();
2613
- });
2602
+ this.flushBackgroundListRefresh();
2614
2603
  });
2615
2604
  this.registerPageContext();
2616
2605
  }
@@ -2627,9 +2616,6 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2627
2616
  if (!this.listHostReady()) {
2628
2617
  return;
2629
2618
  }
2630
- if (this.isForeignTabNavigation(qp)) {
2631
- return;
2632
- }
2633
2619
  const { reloadList } = await this.vm.syncFromRouteQueryParams(qp);
2634
2620
  this.recompute();
2635
2621
  if (reloadList) {
@@ -2641,10 +2627,7 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2641
2627
  });
2642
2628
  }
2643
2629
  async ngAfterViewInit() {
2644
- const queryParamMap = this.activeRoute.snapshot.queryParamMap;
2645
- this.captureTabNavigationIdentity(queryParamMap);
2646
- this.vm.bindRouteQueryParamMap(queryParamMap);
2647
- const viewFromUrl = queryParamMap.get('view');
2630
+ const viewFromUrl = this.activeRoute.snapshot.queryParamMap.get('view');
2648
2631
  // TODO: See queryParamSub — setView is also invoked from resolver and toolbar on first load.
2649
2632
  await this.vm.setView(viewFromUrl);
2650
2633
  const resolvedView = this.vm.view().name;
@@ -2846,44 +2829,6 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2846
2829
  axpReplaceEntityListRouteQueryParams(this.router, { view: viewName });
2847
2830
  });
2848
2831
  }
2849
- /**
2850
- * Rebinds this cached list from its own route snapshot when its tab is shown again.
2851
- * `ngAfterViewInit` does not run for a reattached tab.
2852
- */
2853
- async syncShownTabQueryParams() {
2854
- if (this.listQueryParamSyncDisabled) {
2855
- return;
2856
- }
2857
- try {
2858
- const queryParamMap = this.activeRoute.snapshot.queryParamMap;
2859
- const { reloadList } = await this.vm.syncFromRouteQueryParams(queryParamMap);
2860
- this.recompute();
2861
- if (reloadList) {
2862
- await this.reloadListData(true);
2863
- }
2864
- else {
2865
- this.scheduleRestoreExpandedRows();
2866
- }
2867
- }
2868
- catch (error) {
2869
- console.error('[AXPEntityMasterListView] Failed to rebind the active list tab.', error);
2870
- }
2871
- }
2872
- /** True when a query emission belongs to another list tab (`mode` / `list`). */
2873
- isForeignTabNavigation(queryParamMap) {
2874
- if (!this.tabNavigationCaptured || this.tabNavigation.effectiveMode() !== 'tabular') {
2875
- return false;
2876
- }
2877
- return queryParamMap.get('mode') !== this.tabNavigationMode || queryParamMap.get('list') !== this.tabNavigationList;
2878
- }
2879
- captureTabNavigationIdentity(queryParamMap) {
2880
- if (this.tabNavigationCaptured) {
2881
- return;
2882
- }
2883
- this.tabNavigationMode = queryParamMap.get('mode');
2884
- this.tabNavigationList = queryParamMap.get('list');
2885
- this.tabNavigationCaptured = true;
2886
- }
2887
2832
  /** True when this cached list is not the visible route tab. */
2888
2833
  isListTabInBackground() {
2889
2834
  if (this.tabNavigation.effectiveMode() !== 'tabular') {