@acorex/components 20.7.22 → 20.7.24

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/menu/index.d.ts CHANGED
@@ -68,7 +68,9 @@ declare class AXContextMenuComponent extends NXComponent {
68
68
  private document;
69
69
  private platformID;
70
70
  private zIndexService;
71
+ private injector;
71
72
  private zToken;
73
+ private lastOpenPoint;
72
74
  /** @ignore */
73
75
  constructor();
74
76
  ngOnDestroy(): void;
@@ -101,6 +103,13 @@ declare class AXContextMenuComponent extends NXComponent {
101
103
  private handleContextMenu;
102
104
  /** @ignore */
103
105
  private internalShowAt;
106
+ /**
107
+ * Positions the menu at `point`, flipping when it would overflow the viewport.
108
+ * Uses a temporary visible layout pass so parents that hide the host (e.g. side-menu `display: none`) do not yield a zero-sized rect.
109
+ */
110
+ private positionAtPoint;
111
+ /** Measures menu size even when an ancestor hides the host with `display: none`. */
112
+ private measureMenuRect;
104
113
  /** @ignore */
105
114
  private createBackdrop;
106
115
  /** @ignore */
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.7.22",
3
+ "version": "20.7.24",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.7.22",
6
- "@acorex/cdk": "20.7.22",
5
+ "@acorex/core": "20.7.24",
6
+ "@acorex/cdk": "20.7.24",
7
7
  "polytype": ">=0.17.0",
8
8
  "angular-imask": ">=7.6.1",
9
9
  "gridstack": ">=12.0.0",
@@ -112,14 +112,14 @@
112
112
  "types": "./check-box/index.d.ts",
113
113
  "default": "./fesm2022/acorex-components-check-box.mjs"
114
114
  },
115
- "./chips": {
116
- "types": "./chips/index.d.ts",
117
- "default": "./fesm2022/acorex-components-chips.mjs"
118
- },
119
115
  "./circular-progress": {
120
116
  "types": "./circular-progress/index.d.ts",
121
117
  "default": "./fesm2022/acorex-components-circular-progress.mjs"
122
118
  },
119
+ "./chips": {
120
+ "types": "./chips/index.d.ts",
121
+ "default": "./fesm2022/acorex-components-chips.mjs"
122
+ },
123
123
  "./code-editor": {
124
124
  "types": "./code-editor/index.d.ts",
125
125
  "default": "./fesm2022/acorex-components-code-editor.mjs"
@@ -424,22 +424,22 @@
424
424
  "types": "./step-wizard/index.d.ts",
425
425
  "default": "./fesm2022/acorex-components-step-wizard.mjs"
426
426
  },
427
- "./tabs": {
428
- "types": "./tabs/index.d.ts",
429
- "default": "./fesm2022/acorex-components-tabs.mjs"
430
- },
431
427
  "./switch": {
432
428
  "types": "./switch/index.d.ts",
433
429
  "default": "./fesm2022/acorex-components-switch.mjs"
434
430
  },
435
- "./tag-box": {
436
- "types": "./tag-box/index.d.ts",
437
- "default": "./fesm2022/acorex-components-tag-box.mjs"
431
+ "./tabs": {
432
+ "types": "./tabs/index.d.ts",
433
+ "default": "./fesm2022/acorex-components-tabs.mjs"
438
434
  },
439
435
  "./tag": {
440
436
  "types": "./tag/index.d.ts",
441
437
  "default": "./fesm2022/acorex-components-tag.mjs"
442
438
  },
439
+ "./tag-box": {
440
+ "types": "./tag-box/index.d.ts",
441
+ "default": "./fesm2022/acorex-components-tag-box.mjs"
442
+ },
443
443
  "./text-area": {
444
444
  "types": "./text-area/index.d.ts",
445
445
  "default": "./fesm2022/acorex-components-text-area.mjs"
@@ -468,14 +468,14 @@
468
468
  "types": "./tooltip/index.d.ts",
469
469
  "default": "./fesm2022/acorex-components-tooltip.mjs"
470
470
  },
471
- "./tree-view-legacy": {
472
- "types": "./tree-view-legacy/index.d.ts",
473
- "default": "./fesm2022/acorex-components-tree-view-legacy.mjs"
474
- },
475
471
  "./tree-view": {
476
472
  "types": "./tree-view/index.d.ts",
477
473
  "default": "./fesm2022/acorex-components-tree-view.mjs"
478
474
  },
475
+ "./tree-view-legacy": {
476
+ "types": "./tree-view-legacy/index.d.ts",
477
+ "default": "./fesm2022/acorex-components-tree-view-legacy.mjs"
478
+ },
479
479
  "./uploader": {
480
480
  "types": "./uploader/index.d.ts",
481
481
  "default": "./fesm2022/acorex-components-uploader.mjs"
@@ -53,6 +53,7 @@ declare class AXSideMenuItemComponent extends MXInteractiveComponent {
53
53
  private readonly destroyRef;
54
54
  private readonly menuMode;
55
55
  private childObserver;
56
+ private childRefreshScheduled;
56
57
  private readonly childItems;
57
58
  private readonly childrenSlot;
58
59
  private readonly childrenContextMenu;
@@ -75,6 +76,9 @@ declare class AXSideMenuItemComponent extends MXInteractiveComponent {
75
76
  /** Direct `ax-side-menu-item` children of `menuHost` (defaults to this item). */
76
77
  private getDirectChildElements;
77
78
  private reparentOrphanedChildren;
79
+ private scheduleChildRefresh;
80
+ private hasRelevantChildMutation;
81
+ private nodeListContainsMenuStructuralNode;
78
82
  private getItemLabel;
79
83
  private getItemIcon;
80
84
  private getItemSuffix;
@@ -135,6 +139,8 @@ declare class AXSideMenuComponent extends NXComponent implements AXSideMenuBase
135
139
  private platformId;
136
140
  private destroyRef;
137
141
  hostElement: HTMLElement;
142
+ private domRefreshScheduled;
143
+ private domRefreshObserver;
138
144
  /**
139
145
  * Walks the host DOM to discover every nested `ax-side-menu-item`, looks up
140
146
  * the component instance through the `__axContext__` property that
@@ -145,6 +151,9 @@ declare class AXSideMenuComponent extends NXComponent implements AXSideMenuBase
145
151
  * templates that add/remove items at runtime stay in sync.
146
152
  */
147
153
  private refreshItemsFromDom;
154
+ private scheduleDomRefresh;
155
+ private hasRelevantMenuItemMutation;
156
+ private nodeListContainsMenuItem;
148
157
  private addFirstLevelClass;
149
158
  /** @ignore */
150
159
  private get __hostClass();