@acorex/components 20.10.4 → 20.10.5

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
@@ -175,8 +175,16 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
175
175
  private unsuscriber;
176
176
  private renderer;
177
177
  private injector;
178
+ private document;
178
179
  private zIndexService;
179
180
  private zToken;
181
+ private submenuPortalParent;
182
+ private submenuPortalNextSibling;
183
+ /** Survives submenu portaling when the DOM parent chain is broken. */
184
+ private linkedParent;
185
+ private mouseLeaveTimeout;
186
+ private submenuUnlistenEnter;
187
+ private submenuUnlistenLeave;
180
188
  protected arrowIcon: _angular_core.Signal<string>;
181
189
  onClick: _angular_core.OutputEmitterRef<AXMenuItemClickEvent>;
182
190
  name: _angular_core.InputSignal<string>;
@@ -186,8 +194,8 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
186
194
  constructor();
187
195
  private getText;
188
196
  /**
189
- * Resolves the parent menu item. Items rendered via recursive `ngTemplateOutlet` do not
190
- * receive a DI parent, so we fall back to the DOM tree after reparenting.
197
+ * Resolves the parent menu item. Prefers an explicit link (survives submenu portaling),
198
+ * then DI, then the DOM tree.
191
199
  */
192
200
  getParentMenuItem(): AXMenuItemComponent | null;
193
201
  /**
@@ -204,10 +212,20 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
204
212
  private schedulePositionCalculation;
205
213
  /**
206
214
  * Calculate the position of the submenu to avoid it going out of the viewport.
215
+ * Tall panels are height-clamped; the panel is portaled so parent overflow cannot clip it.
207
216
  */
208
217
  private calculatePosition;
209
218
  /** Measures submenu size using the same flex layout as the rendered menu. */
210
219
  private measureSubmenuRect;
220
+ /** Moves the submenu under the context-menu backdrop (or body) to escape ancestor overflow. */
221
+ private portalSubmenu;
222
+ private restoreSubmenuPortal;
223
+ /** Keep this item open while the pointer is over its portaled submenu panel. */
224
+ private bindSubmenuPointerListeners;
225
+ private unbindSubmenuPointerListeners;
226
+ /** Links direct children so parent resolution still works after the panel is portaled. */
227
+ private linkChildItems;
228
+ private getInstanceFromElement;
211
229
  /**
212
230
  * Moves nested `ax-menu-item` nodes rendered by recursive `ngTemplateOutlet` templates
213
231
  * into the submenu slot. Angular content queries do not traverse those embedded views.
@@ -225,10 +243,14 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
225
243
  private clampVerticalPosition;
226
244
  private handleClick;
227
245
  private handleMouseEnter;
228
- private mouseLeaveTimeout;
229
246
  private handleMouseLeave;
230
- /** True when the pointer moved into this item's submenu panel or a nested open submenu. */
247
+ private handlePointerLeave;
248
+ private scheduleClose;
249
+ private clearCloseTimeout;
250
+ private clearAncestorCloseTimeouts;
251
+ /** True when the pointer is still inside this item's submenu tree (including portaled panels). */
231
252
  private containsSubmenuPointer;
253
+ private isSelfOrAncestorOf;
232
254
  ngOnDestroy(): void;
233
255
  /** @ignore */
234
256
  get __hostClass(): string[];
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.10.4",
3
+ "version": "20.10.5",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.10.4",
6
- "@acorex/cdk": "20.10.4",
5
+ "@acorex/core": "20.10.5",
6
+ "@acorex/cdk": "20.10.5",
7
7
  "polytype": ">=0.17.0",
8
8
  "angular-imask": ">=7.6.1",
9
9
  "imask": ">=7.6.1",
@@ -61,26 +61,26 @@
61
61
  "types": "./accordion/index.d.ts",
62
62
  "default": "./fesm2022/acorex-components-accordion.mjs"
63
63
  },
64
- "./aspect-ratio": {
65
- "types": "./aspect-ratio/index.d.ts",
66
- "default": "./fesm2022/acorex-components-aspect-ratio.mjs"
67
- },
68
64
  "./alert": {
69
65
  "types": "./alert/index.d.ts",
70
66
  "default": "./fesm2022/acorex-components-alert.mjs"
71
67
  },
68
+ "./aspect-ratio": {
69
+ "types": "./aspect-ratio/index.d.ts",
70
+ "default": "./fesm2022/acorex-components-aspect-ratio.mjs"
71
+ },
72
72
  "./audio-wave": {
73
73
  "types": "./audio-wave/index.d.ts",
74
74
  "default": "./fesm2022/acorex-components-audio-wave.mjs"
75
75
  },
76
- "./autocomplete": {
77
- "types": "./autocomplete/index.d.ts",
78
- "default": "./fesm2022/acorex-components-autocomplete.mjs"
79
- },
80
76
  "./action-sheet": {
81
77
  "types": "./action-sheet/index.d.ts",
82
78
  "default": "./fesm2022/acorex-components-action-sheet.mjs"
83
79
  },
80
+ "./autocomplete": {
81
+ "types": "./autocomplete/index.d.ts",
82
+ "default": "./fesm2022/acorex-components-autocomplete.mjs"
83
+ },
84
84
  "./avatar": {
85
85
  "types": "./avatar/index.d.ts",
86
86
  "default": "./fesm2022/acorex-components-avatar.mjs"
@@ -89,6 +89,10 @@
89
89
  "types": "./badge/index.d.ts",
90
90
  "default": "./fesm2022/acorex-components-badge.mjs"
91
91
  },
92
+ "./bottom-navigation": {
93
+ "types": "./bottom-navigation/index.d.ts",
94
+ "default": "./fesm2022/acorex-components-bottom-navigation.mjs"
95
+ },
92
96
  "./breadcrumbs": {
93
97
  "types": "./breadcrumbs/index.d.ts",
94
98
  "default": "./fesm2022/acorex-components-breadcrumbs.mjs"
@@ -109,18 +113,14 @@
109
113
  "types": "./check-box/index.d.ts",
110
114
  "default": "./fesm2022/acorex-components-check-box.mjs"
111
115
  },
112
- "./bottom-navigation": {
113
- "types": "./bottom-navigation/index.d.ts",
114
- "default": "./fesm2022/acorex-components-bottom-navigation.mjs"
116
+ "./chips": {
117
+ "types": "./chips/index.d.ts",
118
+ "default": "./fesm2022/acorex-components-chips.mjs"
115
119
  },
116
120
  "./circular-progress": {
117
121
  "types": "./circular-progress/index.d.ts",
118
122
  "default": "./fesm2022/acorex-components-circular-progress.mjs"
119
123
  },
120
- "./chips": {
121
- "types": "./chips/index.d.ts",
122
- "default": "./fesm2022/acorex-components-chips.mjs"
123
- },
124
124
  "./code-editor": {
125
125
  "types": "./code-editor/index.d.ts",
126
126
  "default": "./fesm2022/acorex-components-code-editor.mjs"