@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.9
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/README.md +0 -1
- package/a11y/README.md +11 -5
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +227 -0
- package/data-grid-accordion/README.md +76 -2
- package/feedback/README.md +40 -0
- package/fesm2022/cngx-ui-a11y.mjs +189 -57
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +120 -36
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +121 -56
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +228 -108
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +204 -62
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +395 -119
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +209 -40
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -101
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1074 -460
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +76 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +555 -204
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +553 -198
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +344 -109
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +4 -16
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +146 -46
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +234 -99
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +88 -25
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +98 -23
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +101 -33
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +15 -20
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/README.md +30 -6
- package/mat-tabs/styles/mat-tabs.css +188 -42
- package/overlay/README.md +9 -4
- package/package.json +31 -7
- package/paginator/README.md +8 -4
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +33 -11
- package/speak/README.md +3 -2
- package/stepper/README.md +14 -2
- package/timeline/README.md +1 -1
- package/toc/README.md +4 -1
- package/types/cngx-ui-a11y.d.ts +121 -30
- package/types/cngx-ui-accordion.d.ts +100 -28
- package/types/cngx-ui-action-button.d.ts +44 -3
- package/types/cngx-ui-breadcrumb.d.ts +167 -60
- package/types/cngx-ui-chart-panel.d.ts +122 -18
- package/types/cngx-ui-collection.d.ts +157 -55
- package/types/cngx-ui-command-palette.d.ts +297 -183
- package/types/cngx-ui-context-menu.d.ts +140 -10
- package/types/cngx-ui-data-grid-accordion.d.ts +278 -39
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +605 -59
- package/types/cngx-ui-mat-accordion.d.ts +30 -1
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +250 -34
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +425 -136
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +6 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +117 -33
- package/types/cngx-ui-stepper.d.ts +88 -49
- package/types/cngx-ui-tabs.d.ts +6 -4
- package/types/cngx-ui-timeline.d.ts +35 -11
- package/types/cngx-ui-toc.d.ts +93 -16
- package/types/cngx-ui.d.ts +7 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, Signal } from '@angular/core';
|
|
2
|
+
import { TemplateRef, InjectionToken, Signal } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@cngx/common/interactive';
|
|
4
4
|
import { CngxContextMenuTriggerPopoverRef, CngxMenuHost, CngxMenu, CngxMenuSubmenuWiring, CngxMenuItemIcon, CngxMenuSubmenuPopoverRef } from '@cngx/common/interactive';
|
|
5
5
|
import * as i1 from '@cngx/common/popover';
|
|
@@ -65,15 +65,44 @@ interface CngxContextMenuPanel<T = unknown> {
|
|
|
65
65
|
readonly context: Signal<T | null>;
|
|
66
66
|
/** Store the per-open datum. Called by the trigger before the popover opens. */
|
|
67
67
|
setContext(value: T | null): void;
|
|
68
|
+
/**
|
|
69
|
+
* @internal The trigger that owns the current open, `null` while unowned.
|
|
70
|
+
* N triggers can dock one panel; only the opener may report
|
|
71
|
+
* `aria-expanded="true"`, forward keydown, and run its dismiss binding.
|
|
72
|
+
* A direct open (`openAsSubmenu`, programmatic `popover.show()`) claims no
|
|
73
|
+
* owner, so every docked trigger stays collapsed. Optional: an ejected
|
|
74
|
+
* panel skin may omit it, in which case a docked trigger falls back to
|
|
75
|
+
* mirroring plain popover visibility.
|
|
76
|
+
*/
|
|
77
|
+
readonly openOwner?: Signal<unknown>;
|
|
78
|
+
/**
|
|
79
|
+
* @internal Claim the current open for `owner`. Called by the opening
|
|
80
|
+
* trigger synchronously in its open gesture, before the popover shows, so
|
|
81
|
+
* the handler registration that follows belongs to the opener even when
|
|
82
|
+
* other triggers dock the same panel. A claim always marks a ROOT open -
|
|
83
|
+
* the panel resets any sticky submenu policy a previous `openAsSubmenu`
|
|
84
|
+
* installed. Optional alongside {@link openOwner}.
|
|
85
|
+
*/
|
|
86
|
+
claimOpen?(owner: unknown): void;
|
|
87
|
+
/**
|
|
88
|
+
* @internal Release the open claim if `owner` still holds it. A trigger
|
|
89
|
+
* calls this when the popover closes, when its panel binding swaps, and on
|
|
90
|
+
* destroy; the owner guard keeps a stale release from clobbering a newer
|
|
91
|
+
* claim. Optional alongside {@link openOwner}.
|
|
92
|
+
*/
|
|
93
|
+
releaseOpen?(owner: unknown): void;
|
|
68
94
|
/**
|
|
69
95
|
* @internal Open this panel as a nested submenu of a parent item: flank the
|
|
70
96
|
* inline-end (`right-start` + the submenu flip chain), open non-exclusively so
|
|
71
97
|
* the parent panel survives, and mirror the parent's per-open datum. Owns the
|
|
72
98
|
* submenu placement policy so a projected item drives one seam instead of
|
|
73
|
-
* reaching into the popover's override signals.
|
|
74
|
-
*
|
|
99
|
+
* reaching into the popover's override signals. `parent` is the panel the
|
|
100
|
+
* opening item sits in; the submenu forwards activation to it, so a
|
|
101
|
+
* submenu parent at any depth opens by click or Enter through the root
|
|
102
|
+
* trigger. Optional: an ejected panel skin may omit it and drive its own
|
|
103
|
+
* popover directly.
|
|
75
104
|
*/
|
|
76
|
-
openAsSubmenu?(context: T | null): void;
|
|
105
|
+
openAsSubmenu?(context: T | null, parent?: CngxContextMenuPanel<T>): void;
|
|
77
106
|
/**
|
|
78
107
|
* @internal Register the trigger core's keydown handler so the panel can
|
|
79
108
|
* forward ArrowRight/ArrowLeft/Escape submenu routing to it. The core owns
|
|
@@ -92,6 +121,22 @@ interface CngxContextMenuPanel<T = unknown> {
|
|
|
92
121
|
* Optional: an ejected panel skin may omit it.
|
|
93
122
|
*/
|
|
94
123
|
setActivationHandler?(handler: (() => void) | null): void;
|
|
124
|
+
/**
|
|
125
|
+
* @internal Run the activation routing for an `activated` event of this
|
|
126
|
+
* panel or of a submenu opened from it: the trigger's activation handler
|
|
127
|
+
* when this panel was opened by a trigger, else the parent panel's. Optional:
|
|
128
|
+
* an ejected panel skin may omit it, in which case activation inside its
|
|
129
|
+
* submenus is not routed.
|
|
130
|
+
*/
|
|
131
|
+
handleActivated?(): void;
|
|
132
|
+
/**
|
|
133
|
+
* @internal Route a keydown of this panel or of a submenu opened from it:
|
|
134
|
+
* the trigger's keydown handler when this panel was opened by a trigger,
|
|
135
|
+
* else the parent panel's, so ArrowLeft / ArrowRight / Escape reach the
|
|
136
|
+
* root trigger core from any depth. Optional alongside
|
|
137
|
+
* {@link handleActivated}.
|
|
138
|
+
*/
|
|
139
|
+
routeKeydown?(event: KeyboardEvent): void;
|
|
95
140
|
/**
|
|
96
141
|
* @internal Register the trigger core's push-only "submenu opened" handler.
|
|
97
142
|
* A projected item calls {@link noteActiveSubmenuOpened} after its
|
|
@@ -110,6 +155,14 @@ interface CngxContextMenuPanel<T = unknown> {
|
|
|
110
155
|
*/
|
|
111
156
|
noteActiveSubmenuOpened?(): void;
|
|
112
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* @internal DI token the panel provides via `useExisting` so a projected
|
|
160
|
+
* `CngxContextMenuItem` can read its enclosing panel's `context()` and mirror
|
|
161
|
+
* it into a sibling-declared submenu. Not part of the public API - the child
|
|
162
|
+
* talks to the panel through this structural seam rather than injecting the
|
|
163
|
+
* concrete `CngxContextMenu` class (`CNGX_MENU_HOST` precedent).
|
|
164
|
+
*/
|
|
165
|
+
declare const CNGX_CONTEXT_MENU_PANEL: InjectionToken<CngxContextMenuPanel<unknown>>;
|
|
113
166
|
|
|
114
167
|
/**
|
|
115
168
|
* Declarative context-menu panel. Stacks `CngxPopover` (the top-layer popup
|
|
@@ -156,6 +209,7 @@ interface CngxContextMenuPanel<T = unknown> {
|
|
|
156
209
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu.component.ts
|
|
157
210
|
* @since 0.1.0
|
|
158
211
|
* @relatedTo CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuContent, CngxMenu, CngxPopover
|
|
212
|
+
* @slot cngxContextMenuContent Replaces the projected items with lazy content rendered only while the menu is open; gets the trigger's per-open datum as $implicit (let-row).
|
|
159
213
|
*/
|
|
160
214
|
declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
161
215
|
/** The popover surface this panel drives. Consumed by the trigger core. */
|
|
@@ -164,6 +218,16 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
164
218
|
readonly menuHost: CngxMenu;
|
|
165
219
|
/** Per-open datum set by the trigger before `show()`. */
|
|
166
220
|
private readonly datum;
|
|
221
|
+
/** Backing state for {@link openOwner}. */
|
|
222
|
+
private readonly openOwnerState;
|
|
223
|
+
/**
|
|
224
|
+
* @internal The trigger that owns the current open, `null` while unowned.
|
|
225
|
+
* Claimed by the opening `CngxContextMenuFor` before the popover shows;
|
|
226
|
+
* direct opens (`openAsSubmenu`, programmatic `popover.show()`) leave it
|
|
227
|
+
* `null`, so docked triggers keep `aria-expanded="false"` for opens they
|
|
228
|
+
* did not perform.
|
|
229
|
+
*/
|
|
230
|
+
readonly openOwner: _angular_core.Signal<unknown>;
|
|
167
231
|
/**
|
|
168
232
|
* The datum the menu opened over while visible, `null` once closed. Gated on
|
|
169
233
|
* `popover.isVisible()` so the reset on dismiss is derived, not synced.
|
|
@@ -175,22 +239,42 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
175
239
|
* `contextmenu` event path, before the popover opens.
|
|
176
240
|
*/
|
|
177
241
|
setContext(value: T | null): void;
|
|
242
|
+
/** @internal Claim the current open for `owner`. See {@link CngxContextMenuPanel.claimOpen}. */
|
|
243
|
+
claimOpen(owner: unknown): void;
|
|
244
|
+
/** @internal Release the open claim if `owner` still holds it. */
|
|
245
|
+
releaseOpen(owner: unknown): void;
|
|
178
246
|
/**
|
|
179
247
|
* @internal Open this panel as a nested submenu of a parent item. Installs the
|
|
180
248
|
* inline-end placement + flip chain, opens non-exclusively (the parent panel
|
|
181
249
|
* survives), mirrors the parent's per-open datum, then shows. Owns the submenu
|
|
182
250
|
* placement policy so `CngxContextMenuItem` drives one seam rather than
|
|
183
|
-
* reaching into the popover's `@internal` override
|
|
251
|
+
* reaching into the popover's `@internal` override setters - the ejected item
|
|
184
252
|
* skin stays off `CngxPopover` internals (decompose).
|
|
185
253
|
*/
|
|
186
|
-
openAsSubmenu(context: T | null): void;
|
|
254
|
+
openAsSubmenu(context: T | null, parent?: CngxContextMenuPanel<T>): void;
|
|
187
255
|
/** Keydown forwarder registered by the trigger; `null` while none is bound. */
|
|
188
256
|
private keydownHandler;
|
|
189
257
|
/** Activation forwarder registered by the trigger; `null` while none bound. */
|
|
190
258
|
private activationHandler;
|
|
191
259
|
/** Push-only submenu-note forwarder registered by the trigger; `null` while none bound. */
|
|
192
260
|
private submenuNoteHandler;
|
|
261
|
+
/**
|
|
262
|
+
* The panel whose item opened this one as a submenu, `null` for a trigger
|
|
263
|
+
* open. Reset to `null` whenever this panel opens or closes, so a direct
|
|
264
|
+
* reopen never routes to the parent of an earlier open. Activation, keydown
|
|
265
|
+
* and the submenu note climb it to the root, whose trigger core resolves the
|
|
266
|
+
* deepest open menu itself.
|
|
267
|
+
*/
|
|
268
|
+
private readonly openedFrom;
|
|
269
|
+
/**
|
|
270
|
+
* Set while this panel routes an event up the parent chain. A chain that
|
|
271
|
+
* leads back to a panel already routing is a submenu cycle; the event stops
|
|
272
|
+
* there instead of recursing without end.
|
|
273
|
+
*/
|
|
274
|
+
private routingUp;
|
|
193
275
|
constructor();
|
|
276
|
+
/** @internal Route an activation to the trigger, else up the parent chain. */
|
|
277
|
+
handleActivated(): void;
|
|
194
278
|
/**
|
|
195
279
|
* @internal Register the trigger core's keydown handler. The core owns
|
|
196
280
|
* submenu ArrowRight/ArrowLeft/Escape routing, but open moves focus into
|
|
@@ -210,6 +294,9 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
210
294
|
* ran, so the trigger's focus stack records an externally opened submenu
|
|
211
295
|
* (idempotent no-op for stack-driven hover/click opens). */
|
|
212
296
|
noteActiveSubmenuOpened(): void;
|
|
297
|
+
/** @internal Route a keydown to the trigger, else up the parent chain. */
|
|
298
|
+
routeKeydown(event: KeyboardEvent): void;
|
|
299
|
+
private routeUp;
|
|
213
300
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
214
301
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenu<any>, never>;
|
|
215
302
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenu<any>, "cngx-context-menu", ["cngxContextMenu"], {}, {}, ["contentTemplate"], ["*"], true, [{ directive: typeof i1.CngxPopover; inputs: { "offset": "offset"; "closeOnEscape": "closeOnEscape"; }; outputs: {}; }, { directive: typeof i1$1.CngxMenu; inputs: { "label": "ariaLabel"; }; outputs: {}; }]>;
|
|
@@ -220,19 +307,28 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
220
307
|
* pointer coordinates on `contextmenu` (right-click) or `Shift+F10`, feeding
|
|
221
308
|
* the panel a per-open datum so one declaration serves many targets.
|
|
222
309
|
*
|
|
223
|
-
*
|
|
310
|
+
* Three ways to obtain the datum `T`:
|
|
224
311
|
* - `[cngxContextMenuData]` - a fixed datum for this single target.
|
|
225
312
|
* - `[cngxContextMenuResolve]` - a resolver run against the `contextmenu`
|
|
226
313
|
* event, so a container (table, grid, treetable, virtualized list) keeps a
|
|
227
314
|
* single trigger instance and derives the row from `event.target`. The
|
|
228
315
|
* resolver wins when both are bound. A `null` resolver result leaves the
|
|
229
316
|
* native context menu untouched (no `preventDefault`, no open).
|
|
317
|
+
* - `[cngxContextMenuKeyboardResolve]` - the keyboard counterpart, run
|
|
318
|
+
* against the `Shift+F10` keydown so a delegated container derives the
|
|
319
|
+
* row from the focused element (`event.target`). Without it a keyboard
|
|
320
|
+
* open commits `[cngxContextMenuData]` (or `null` in resolver-only mode).
|
|
230
321
|
*
|
|
231
322
|
* A thin shell over `createContextMenuTriggerCore` (shared with
|
|
232
323
|
* `CngxContextMenuTrigger`): the core owns the preventDefault decision through
|
|
233
324
|
* its `resolveOpen` seam, so the veto lives in one place and this directive
|
|
234
325
|
* only feeds the resolver.
|
|
235
326
|
*
|
|
327
|
+
* Many triggers may dock the same panel. Each open claims ownership on the
|
|
328
|
+
* panel, so only the opening trigger reports `aria-expanded="true"`, forwards
|
|
329
|
+
* the panel's keydown into its core, and runs its dismiss binding - sibling
|
|
330
|
+
* triggers stay collapsed and inert for opens they did not perform.
|
|
331
|
+
*
|
|
236
332
|
* ```html
|
|
237
333
|
* <tr [cngxContextMenuFor]="menu" [cngxContextMenuData]="row" tabindex="0"></tr>
|
|
238
334
|
* <cngx-context-menu #menu ariaLabel="Row actions">…</cngx-context-menu>
|
|
@@ -254,16 +350,50 @@ declare class CngxContextMenuFor<T = unknown> {
|
|
|
254
350
|
/**
|
|
255
351
|
* Resolver run against the `contextmenu` event. Return the datum to open
|
|
256
352
|
* with, or `null` to let the native menu show. Wins over `[cngxContextMenuData]`.
|
|
353
|
+
* Keyboard opens (`Shift+F10`) carry no pointer event - they resolve via
|
|
354
|
+
* `[cngxContextMenuKeyboardResolve]`, or fall back to the fixed datum.
|
|
257
355
|
*/
|
|
258
356
|
readonly resolve: _angular_core.InputSignal<((event: MouseEvent) => T | null) | undefined>;
|
|
259
|
-
/**
|
|
357
|
+
/**
|
|
358
|
+
* Resolver run against the `Shift+F10` keydown. `event.target` is the
|
|
359
|
+
* focused element inside this trigger's host, so a delegated container
|
|
360
|
+
* (focusable rows, roving grid cells) derives the row for keyboard users
|
|
361
|
+
* exactly like `[cngxContextMenuResolve]` does for pointer users. Return
|
|
362
|
+
* `null` to skip the open (the browser's own Shift+F10 behaviour stays
|
|
363
|
+
* untouched). Wins over `[cngxContextMenuData]` for keyboard opens.
|
|
364
|
+
*/
|
|
365
|
+
readonly keyboardResolve: _angular_core.InputSignal<((event: KeyboardEvent) => T | null) | undefined>;
|
|
366
|
+
/**
|
|
367
|
+
* `true` while the panel is visible AND this trigger performed the open.
|
|
368
|
+
* N triggers can dock one panel; each reports `aria-expanded` only for its
|
|
369
|
+
* own opens (a shared panel opened by a sibling trigger, `openAsSubmenu`,
|
|
370
|
+
* or a programmatic `popover.show()` leaves this trigger collapsed).
|
|
371
|
+
* Panels without the ownership seam fall back to plain visibility.
|
|
372
|
+
*/
|
|
260
373
|
readonly isOpen: _angular_core.Signal<boolean>;
|
|
261
374
|
private readonly core;
|
|
375
|
+
/** Panel-forwarded seams, stable identities so registration is idempotent. */
|
|
376
|
+
private readonly forwardKeydown;
|
|
377
|
+
private readonly forwardActivation;
|
|
378
|
+
private readonly forwardSubmenuNote;
|
|
379
|
+
/**
|
|
380
|
+
* Claim the shared panel for this trigger's open: record ownership, then
|
|
381
|
+
* register the keydown/activation/submenu-note forwarders. Registration
|
|
382
|
+
* happens on open (not on construction), so the OPENING trigger owns the
|
|
383
|
+
* handlers instead of whichever sibling was constructed last.
|
|
384
|
+
*/
|
|
385
|
+
private claimPanel;
|
|
386
|
+
/**
|
|
387
|
+
* Clear the panel's forwarders and release the claim - but only while this
|
|
388
|
+
* trigger still owns the open (or the panel has no ownership seam). A stale
|
|
389
|
+
* release must never clobber a sibling's newer claim.
|
|
390
|
+
*/
|
|
391
|
+
private releasePanel;
|
|
262
392
|
constructor();
|
|
263
393
|
protected handleContextMenu(event: MouseEvent): void;
|
|
264
394
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
265
395
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenuFor<any>, never>;
|
|
266
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxContextMenuFor<any>, "[cngxContextMenuFor]", ["cngxContextMenuFor"], { "panel": { "alias": "cngxContextMenuFor"; "required": true; "isSignal": true; }; "data": { "alias": "cngxContextMenuData"; "required": false; "isSignal": true; }; "resolve": { "alias": "cngxContextMenuResolve"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
396
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxContextMenuFor<any>, "[cngxContextMenuFor]", ["cngxContextMenuFor"], { "panel": { "alias": "cngxContextMenuFor"; "required": true; "isSignal": true; }; "data": { "alias": "cngxContextMenuData"; "required": false; "isSignal": true; }; "resolve": { "alias": "cngxContextMenuResolve"; "required": false; "isSignal": true; }; "keyboardResolve": { "alias": "cngxContextMenuKeyboardResolve"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
267
397
|
}
|
|
268
398
|
|
|
269
399
|
/**
|
|
@@ -463,5 +593,5 @@ declare class CngxContextMenuItemRadio {
|
|
|
463
593
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenuItemRadio, "cngx-context-menu-item-radio, button[cngxContextMenuItemRadio]", ["cngxContextMenuItemRadio"], { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "kbd": { "alias": "kbd"; "required": false; "isSignal": true; }; }, {}, ["projectedIcon"], ["[cngxMenuItemIcon]", "*"], true, [{ directive: typeof i1$1.CngxMenuItemRadio; inputs: { "disabled": "disabled"; "value": "value"; "label": "label"; }; outputs: {}; }]>;
|
|
464
594
|
}
|
|
465
595
|
|
|
466
|
-
export { CngxContextMenu, CngxContextMenuContent, CngxContextMenuDivider, CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuItemCheckbox, CngxContextMenuItemRadio };
|
|
596
|
+
export { CNGX_CONTEXT_MENU_PANEL, CngxContextMenu, CngxContextMenuContent, CngxContextMenuDivider, CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuItemCheckbox, CngxContextMenuItemRadio };
|
|
467
597
|
export type { CngxContextMenuContentContext, CngxContextMenuPanel };
|