@cngx/ui 0.1.0-rc.8 → 0.3.0
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 +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef, InjectionToken, Signal } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@cngx/common/interactive';
|
|
4
|
-
import { CngxContextMenuTriggerPopoverRef, CngxMenuHost, CngxMenu, CngxMenuSubmenuWiring, CngxMenuItemIcon, CngxMenuSubmenuPopoverRef } from '@cngx/common/interactive';
|
|
4
|
+
import { CngxContextMenuTriggerPopoverRef, CngxMenuHost, CngxMenu, CngxMenuSubmenuWiring, CngxMenuItemIcon, CngxMenuSubmenuPopoverRef, CngxMenuItemCheckbox, CngxMenuItemRadio } from '@cngx/common/interactive';
|
|
5
5
|
import * as i1 from '@cngx/common/popover';
|
|
6
6
|
import { CngxPopover } from '@cngx/common/popover';
|
|
7
7
|
|
|
@@ -9,8 +9,6 @@ import { CngxPopover } from '@cngx/common/popover';
|
|
|
9
9
|
* Context handed to a `*cngxContextMenuContent` template. `$implicit` is the
|
|
10
10
|
* per-open datum the trigger resolved for the target the menu opened over
|
|
11
11
|
* (`null` while the menu is closed). Read it with `let-row`.
|
|
12
|
-
*
|
|
13
|
-
* @category ui/context-menu
|
|
14
12
|
*/
|
|
15
13
|
interface CngxContextMenuContentContext<T = unknown> {
|
|
16
14
|
/** The per-open datum, or `null` while the menu is closed. Usable as `let-row`. */
|
|
@@ -30,12 +28,11 @@ interface CngxContextMenuContentContext<T = unknown> {
|
|
|
30
28
|
* </cngx-context-menu>
|
|
31
29
|
* ```
|
|
32
30
|
*
|
|
33
|
-
* <example-url
|
|
34
|
-
* <example-url
|
|
35
|
-
* @category ui/context-menu
|
|
31
|
+
* <example-url>/#/ui/context-menu/grid/delegated-resolver</example-url>
|
|
32
|
+
* <example-url>/#/ui/context-menu/table/row-context-data</example-url>
|
|
36
33
|
* @wcag AA
|
|
37
34
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-content.directive.ts
|
|
38
|
-
* @since 0.
|
|
35
|
+
* @since 0.3.0
|
|
39
36
|
* @relatedTo CngxContextMenu, CngxContextMenuFor
|
|
40
37
|
*/
|
|
41
38
|
declare class CngxContextMenuContent<T = unknown> {
|
|
@@ -53,8 +50,6 @@ declare class CngxContextMenuContent<T = unknown> {
|
|
|
53
50
|
* `CngxContextMenu` class so an ejected panel skin (decompose) or a future
|
|
54
51
|
* second panel can satisfy the same seam - the `CngxMenuHost` precedent
|
|
55
52
|
* (`CNGX_MENU_HOST`) applied to the panel surface.
|
|
56
|
-
*
|
|
57
|
-
* @category ui/context-menu
|
|
58
53
|
*/
|
|
59
54
|
interface CngxContextMenuPanel<T = unknown> {
|
|
60
55
|
/** Popover surface the trigger drives at pointer coordinates. */
|
|
@@ -96,10 +91,13 @@ interface CngxContextMenuPanel<T = unknown> {
|
|
|
96
91
|
* inline-end (`right-start` + the submenu flip chain), open non-exclusively so
|
|
97
92
|
* the parent panel survives, and mirror the parent's per-open datum. Owns the
|
|
98
93
|
* submenu placement policy so a projected item drives one seam instead of
|
|
99
|
-
* reaching into the popover's override signals.
|
|
100
|
-
*
|
|
94
|
+
* reaching into the popover's override signals. `parent` is the panel the
|
|
95
|
+
* opening item sits in; the submenu forwards activation to it, so a
|
|
96
|
+
* submenu parent at any depth opens by click or Enter through the root
|
|
97
|
+
* trigger. Optional: an ejected panel skin may omit it and drive its own
|
|
98
|
+
* popover directly.
|
|
101
99
|
*/
|
|
102
|
-
openAsSubmenu?(context: T | null): void;
|
|
100
|
+
openAsSubmenu?(context: T | null, parent?: CngxContextMenuPanel<T>): void;
|
|
103
101
|
/**
|
|
104
102
|
* @internal Register the trigger core's keydown handler so the panel can
|
|
105
103
|
* forward ArrowRight/ArrowLeft/Escape submenu routing to it. The core owns
|
|
@@ -118,6 +116,22 @@ interface CngxContextMenuPanel<T = unknown> {
|
|
|
118
116
|
* Optional: an ejected panel skin may omit it.
|
|
119
117
|
*/
|
|
120
118
|
setActivationHandler?(handler: (() => void) | null): void;
|
|
119
|
+
/**
|
|
120
|
+
* @internal Run the activation routing for an `activated` event of this
|
|
121
|
+
* panel or of a submenu opened from it: the trigger's activation handler
|
|
122
|
+
* when this panel was opened by a trigger, else the parent panel's. Optional:
|
|
123
|
+
* an ejected panel skin may omit it, in which case activation inside its
|
|
124
|
+
* submenus is not routed.
|
|
125
|
+
*/
|
|
126
|
+
handleActivated?(): void;
|
|
127
|
+
/**
|
|
128
|
+
* @internal Route a keydown of this panel or of a submenu opened from it:
|
|
129
|
+
* the trigger's keydown handler when this panel was opened by a trigger,
|
|
130
|
+
* else the parent panel's, so ArrowLeft / ArrowRight / Escape reach the
|
|
131
|
+
* root trigger core from any depth. Optional alongside
|
|
132
|
+
* {@link handleActivated}.
|
|
133
|
+
*/
|
|
134
|
+
routeKeydown?(event: KeyboardEvent): void;
|
|
121
135
|
/**
|
|
122
136
|
* @internal Register the trigger core's push-only "submenu opened" handler.
|
|
123
137
|
* A projected item calls {@link noteActiveSubmenuOpened} after its
|
|
@@ -180,17 +194,16 @@ declare const CNGX_CONTEXT_MENU_PANEL: InjectionToken<CngxContextMenuPanel<unkno
|
|
|
180
194
|
* </cngx-context-menu>
|
|
181
195
|
* ```
|
|
182
196
|
*
|
|
183
|
-
* <example-url
|
|
184
|
-
* <example-url
|
|
185
|
-
* <example-url
|
|
186
|
-
* <example-url
|
|
187
|
-
* @category ui/context-menu
|
|
188
|
-
* @docsKind primary
|
|
197
|
+
* <example-url>/#/ui/context-menu/basic/static-items</example-url>
|
|
198
|
+
* <example-url>/#/ui/context-menu/grid/delegated-resolver</example-url>
|
|
199
|
+
* <example-url>/#/ui/context-menu/submenu/nested-export-menu</example-url>
|
|
200
|
+
* <example-url>/#/ui/context-menu/selection/checkbox-radio-items</example-url>
|
|
189
201
|
* @wcag AA
|
|
190
202
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu.component.ts
|
|
191
|
-
* @since 0.
|
|
203
|
+
* @since 0.3.0
|
|
192
204
|
* @relatedTo CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuContent, CngxMenu, CngxPopover
|
|
193
205
|
* @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).
|
|
206
|
+
* @axis level organism
|
|
194
207
|
*/
|
|
195
208
|
declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
196
209
|
/** The popover surface this panel drives. Consumed by the trigger core. */
|
|
@@ -232,14 +245,30 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
232
245
|
* reaching into the popover's `@internal` override setters - the ejected item
|
|
233
246
|
* skin stays off `CngxPopover` internals (decompose).
|
|
234
247
|
*/
|
|
235
|
-
openAsSubmenu(context: T | null): void;
|
|
248
|
+
openAsSubmenu(context: T | null, parent?: CngxContextMenuPanel<T>): void;
|
|
236
249
|
/** Keydown forwarder registered by the trigger; `null` while none is bound. */
|
|
237
250
|
private keydownHandler;
|
|
238
251
|
/** Activation forwarder registered by the trigger; `null` while none bound. */
|
|
239
252
|
private activationHandler;
|
|
240
253
|
/** Push-only submenu-note forwarder registered by the trigger; `null` while none bound. */
|
|
241
254
|
private submenuNoteHandler;
|
|
255
|
+
/**
|
|
256
|
+
* The panel whose item opened this one as a submenu, `null` for a trigger
|
|
257
|
+
* open. Reset to `null` whenever this panel opens or closes, so a direct
|
|
258
|
+
* reopen never routes to the parent of an earlier open. Activation, keydown
|
|
259
|
+
* and the submenu note climb it to the root, whose trigger core resolves the
|
|
260
|
+
* deepest open menu itself.
|
|
261
|
+
*/
|
|
262
|
+
private readonly openedFrom;
|
|
263
|
+
/**
|
|
264
|
+
* Set while this panel routes an event up the parent chain. A chain that
|
|
265
|
+
* leads back to a panel already routing is a submenu cycle; the event stops
|
|
266
|
+
* there instead of recursing without end.
|
|
267
|
+
*/
|
|
268
|
+
private routingUp;
|
|
242
269
|
constructor();
|
|
270
|
+
/** @internal Route an activation to the trigger, else up the parent chain. */
|
|
271
|
+
handleActivated(): void;
|
|
243
272
|
/**
|
|
244
273
|
* @internal Register the trigger core's keydown handler. The core owns
|
|
245
274
|
* submenu ArrowRight/ArrowLeft/Escape routing, but open moves focus into
|
|
@@ -259,9 +288,12 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
259
288
|
* ran, so the trigger's focus stack records an externally opened submenu
|
|
260
289
|
* (idempotent no-op for stack-driven hover/click opens). */
|
|
261
290
|
noteActiveSubmenuOpened(): void;
|
|
291
|
+
/** @internal Route a keydown to the trigger, else up the parent chain. */
|
|
292
|
+
routeKeydown(event: KeyboardEvent): void;
|
|
293
|
+
private routeUp;
|
|
262
294
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
263
295
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenu<any>, never>;
|
|
264
|
-
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: {}; }]>;
|
|
296
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenu<any>, "cngx-context-menu", ["cngxContextMenu"], {}, {}, ["contentTemplate"], ["*"], true, [{ directive: typeof i1.CngxPopover; inputs: { "offset": "offset"; "closeOnEscape": "closeOnEscape"; }; outputs: { "opened": "opened"; "closed": "closed"; }; }, { directive: typeof i1$1.CngxMenu; inputs: { "label": "ariaLabel"; }; outputs: {}; }]>;
|
|
265
297
|
}
|
|
266
298
|
|
|
267
299
|
/**
|
|
@@ -296,12 +328,11 @@ declare class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {
|
|
|
296
328
|
* <cngx-context-menu #menu ariaLabel="Row actions">…</cngx-context-menu>
|
|
297
329
|
* ```
|
|
298
330
|
*
|
|
299
|
-
* <example-url
|
|
300
|
-
* <example-url
|
|
301
|
-
* @category ui/context-menu
|
|
331
|
+
* <example-url>/#/ui/context-menu/grid/delegated-resolver</example-url>
|
|
332
|
+
* <example-url>/#/ui/context-menu/basic/static-items</example-url>
|
|
302
333
|
* @wcag AA
|
|
303
334
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-for.directive.ts
|
|
304
|
-
* @since 0.
|
|
335
|
+
* @since 0.3.0
|
|
305
336
|
* @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuTrigger
|
|
306
337
|
*/
|
|
307
338
|
declare class CngxContextMenuFor<T = unknown> {
|
|
@@ -388,13 +419,12 @@ declare class CngxContextMenuFor<T = unknown> {
|
|
|
388
419
|
* </cngx-context-menu>
|
|
389
420
|
* ```
|
|
390
421
|
*
|
|
391
|
-
* <example-url
|
|
392
|
-
* <example-url
|
|
393
|
-
* <example-url
|
|
394
|
-
* @category ui/context-menu
|
|
422
|
+
* <example-url>/#/ui/context-menu/basic/static-items</example-url>
|
|
423
|
+
* <example-url>/#/ui/context-menu/submenu/nested-export-menu</example-url>
|
|
424
|
+
* <example-url>/#/ui/context-menu/attribute-form/native-buttons</example-url>
|
|
395
425
|
* @wcag AA
|
|
396
426
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item.component.ts
|
|
397
|
-
* @since 0.
|
|
427
|
+
* @since 0.3.0
|
|
398
428
|
* @relatedTo CngxContextMenu, CngxContextMenuDivider, CngxMenuItem, CngxMenuItemSubmenu
|
|
399
429
|
*/
|
|
400
430
|
declare class CngxContextMenuItem implements CngxMenuSubmenuWiring {
|
|
@@ -421,9 +451,21 @@ declare class CngxContextMenuItem implements CngxMenuSubmenuWiring {
|
|
|
421
451
|
/** Fires when this item is activated by click or Enter/Space. */
|
|
422
452
|
readonly select: _angular_core.OutputEmitterRef<void>;
|
|
423
453
|
/** @internal Decorative caret rendered while `submenu` is set. RTL flip is
|
|
424
|
-
* a CSS concern (`.cngx-menu-item__suffix` under
|
|
454
|
+
* a CSS concern (`.cngx-menu-item__suffix` under `:dir(rtl)`), not a
|
|
425
455
|
* swapped glyph. */
|
|
426
|
-
protected readonly
|
|
456
|
+
protected readonly caretIcon: {
|
|
457
|
+
readonly viewBox: "0 0 24 24";
|
|
458
|
+
readonly d: "M9 6l6 6-6 6";
|
|
459
|
+
readonly paint: "stroke";
|
|
460
|
+
readonly micro: {
|
|
461
|
+
readonly viewBox: "0 0 12 12";
|
|
462
|
+
readonly d: "M5 3L8 6L5 9L4 8L6 6L4 4Z";
|
|
463
|
+
};
|
|
464
|
+
readonly small: {
|
|
465
|
+
readonly viewBox: "0 0 16 16";
|
|
466
|
+
readonly d: "M7 4L11 8L7 12L5 11L8 8L5 5Z";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
427
469
|
private readonly parentPanel;
|
|
428
470
|
/**
|
|
429
471
|
* Facade the submenu brain drives instead of a `[cngxMenuItemSubmenu]`
|
|
@@ -457,12 +499,11 @@ declare class CngxContextMenuItem implements CngxMenuSubmenuWiring {
|
|
|
457
499
|
* <hr cngxContextMenuDivider />
|
|
458
500
|
* ```
|
|
459
501
|
*
|
|
460
|
-
* <example-url
|
|
461
|
-
* <example-url
|
|
462
|
-
* @category ui/context-menu
|
|
502
|
+
* <example-url>/#/ui/context-menu/basic/static-items</example-url>
|
|
503
|
+
* <example-url>/#/ui/context-menu/attribute-form/native-buttons</example-url>
|
|
463
504
|
* @wcag AA
|
|
464
505
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-divider.component.ts
|
|
465
|
-
* @since 0.
|
|
506
|
+
* @since 0.3.0
|
|
466
507
|
* @relatedTo CngxContextMenu, CngxContextMenuItem, CngxMenuSeparator
|
|
467
508
|
*/
|
|
468
509
|
declare class CngxContextMenuDivider {
|
|
@@ -481,11 +522,10 @@ declare class CngxContextMenuDivider {
|
|
|
481
522
|
* <cngx-context-menu-item-checkbox [(checked)]="wrap">Word wrap</cngx-context-menu-item-checkbox>
|
|
482
523
|
* ```
|
|
483
524
|
*
|
|
484
|
-
* <example-url
|
|
485
|
-
* @category ui/context-menu
|
|
525
|
+
* <example-url>/#/ui/context-menu/selection/checkbox-radio-items</example-url>
|
|
486
526
|
* @wcag AA
|
|
487
527
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-checkbox.component.ts
|
|
488
|
-
* @since 0.
|
|
528
|
+
* @since 0.3.0
|
|
489
529
|
* @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemRadio, CngxMenuItemCheckbox
|
|
490
530
|
*/
|
|
491
531
|
declare class CngxContextMenuItemCheckbox {
|
|
@@ -504,9 +544,20 @@ declare class CngxContextMenuItemCheckbox {
|
|
|
504
544
|
* string `[icon]` shorthand off so the projected icon is the only one drawn.
|
|
505
545
|
*/
|
|
506
546
|
protected readonly projectedIcon: _angular_core.Signal<CngxMenuItemIcon | undefined>;
|
|
507
|
-
/** @internal
|
|
508
|
-
|
|
509
|
-
|
|
547
|
+
/** @internal The brain host directive; its `checked()` gates the indicator. */
|
|
548
|
+
protected readonly brain: CngxMenuItemCheckbox<any>;
|
|
549
|
+
/** @internal Leading checked indicator, drawn in an always-present gutter so
|
|
550
|
+
* the label does not shift when the item is checked or unchecked. */
|
|
551
|
+
protected readonly checkIcon: {
|
|
552
|
+
readonly viewBox: "0 0 24 24";
|
|
553
|
+
readonly d: "M5 12.5l4.5 4.5L19 7";
|
|
554
|
+
readonly paint: "stroke";
|
|
555
|
+
readonly micro: {
|
|
556
|
+
readonly viewBox: "0 0 12 12";
|
|
557
|
+
readonly d: "M1 6L2 5L5 8L10 3L11 4L5 10Z";
|
|
558
|
+
};
|
|
559
|
+
readonly small: null;
|
|
560
|
+
};
|
|
510
561
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenuItemCheckbox, never>;
|
|
511
562
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxContextMenuItemCheckbox, "cngx-context-menu-item-checkbox, button[cngxContextMenuItemCheckbox]", ["cngxContextMenuItemCheckbox"], { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "kbd": { "alias": "kbd"; "required": false; "isSignal": true; }; }, {}, ["projectedIcon"], ["[cngxMenuItemIcon]", "*"], true, [{ directive: typeof i1$1.CngxMenuItemCheckbox; inputs: { "disabled": "disabled"; "value": "value"; "checked": "checked"; "label": "label"; }; outputs: { "checkedChange": "checkedChange"; }; }]>;
|
|
512
563
|
}
|
|
@@ -525,11 +576,10 @@ declare class CngxContextMenuItemCheckbox {
|
|
|
525
576
|
* </div>
|
|
526
577
|
* ```
|
|
527
578
|
*
|
|
528
|
-
* <example-url
|
|
529
|
-
* @category ui/context-menu
|
|
579
|
+
* <example-url>/#/ui/context-menu/selection/checkbox-radio-items</example-url>
|
|
530
580
|
* @wcag AA
|
|
531
581
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-radio.component.ts
|
|
532
|
-
* @since 0.
|
|
582
|
+
* @since 0.3.0
|
|
533
583
|
* @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemCheckbox, CngxMenuItemRadio, CngxMenuGroup
|
|
534
584
|
*/
|
|
535
585
|
declare class CngxContextMenuItemRadio {
|
|
@@ -548,9 +598,20 @@ declare class CngxContextMenuItemRadio {
|
|
|
548
598
|
* string `[icon]` shorthand off so the projected icon is the only one drawn.
|
|
549
599
|
*/
|
|
550
600
|
protected readonly projectedIcon: _angular_core.Signal<CngxMenuItemIcon | undefined>;
|
|
551
|
-
/** @internal
|
|
552
|
-
|
|
553
|
-
|
|
601
|
+
/** @internal The brain host directive; its `checked()` gates the indicator. */
|
|
602
|
+
protected readonly brain: CngxMenuItemRadio<any>;
|
|
603
|
+
/** @internal Leading checked indicator, drawn in an always-present gutter so
|
|
604
|
+
* the label does not shift when the item is checked or unchecked. */
|
|
605
|
+
protected readonly checkIcon: {
|
|
606
|
+
readonly viewBox: "0 0 24 24";
|
|
607
|
+
readonly d: "M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0z";
|
|
608
|
+
readonly paint: "fill";
|
|
609
|
+
readonly micro: {
|
|
610
|
+
readonly viewBox: "0 0 12 12";
|
|
611
|
+
readonly d: "M4 6A2 2 0 1 1 8 6A2 2 0 1 1 4 6Z";
|
|
612
|
+
};
|
|
613
|
+
readonly small: null;
|
|
614
|
+
};
|
|
554
615
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenuItemRadio, never>;
|
|
555
616
|
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: {}; }]>;
|
|
556
617
|
}
|