@camaradesuk/m3e-angular 0.1.0-alpha.7 → 0.2.0-alpha.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camaradesuk/m3e-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
4
4
|
"description": "Angular Material Expressive is a library that provides a set of components and styles for Angular Material based on the latest Material Design 3 Expressive Design System.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -5,6 +5,7 @@ import { MatButtonAppearance } from '@angular/material/button';
|
|
|
5
5
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { MatMenu } from '@angular/material/menu';
|
|
8
|
+
import * as i1 from '@angular/material/badge';
|
|
8
9
|
import { CdkStep, CdkStepper, CdkStepHeader } from '@angular/cdk/stepper';
|
|
9
10
|
import { ComponentPortal, ComponentType } from '@angular/cdk/portal';
|
|
10
11
|
import { MatDialogConfig, MatDialogState, DialogPosition } from '@angular/material/dialog';
|
|
@@ -113,6 +114,10 @@ type MatExpListMedia = 'avatar' | 'image' | 'video';
|
|
|
113
114
|
type MatExpNavigationRailMode = 'standard' | 'modal';
|
|
114
115
|
/** Placement of destinations; the menu and FAB always remain at the top. */
|
|
115
116
|
type MatExpNavigationRailAlignment = 'top' | 'center';
|
|
117
|
+
/** Expanded row density. Compact is an opt-in extension outside the specification (ADR 0013). */
|
|
118
|
+
type MatExpNavigationRailDensity = 'default' | 'compact';
|
|
119
|
+
/** Collapsed presentation. Fixed-axis is an opt-in extension outside the specification (ADR 0013). */
|
|
120
|
+
type MatExpNavigationRailCollapsedLayout = 'stacked' | 'fixed-axis';
|
|
116
121
|
|
|
117
122
|
/** Compact confirmation or responsive task/form presentation. */
|
|
118
123
|
type MatExpDialogMode = 'alert' | 'adaptive';
|
|
@@ -1368,17 +1373,71 @@ declare class MatExpSearchResult {
|
|
|
1368
1373
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpSearchResult, "button[matExpSearchResult], a[matExpSearchResult]", ["matExpSearchResult"], {}, {}, never, never, true, never>;
|
|
1369
1374
|
}
|
|
1370
1375
|
|
|
1376
|
+
/**
|
|
1377
|
+
* @internal What a group's child items need from the group. A token, not the class, keeps the
|
|
1378
|
+
* group, item and rail files free of import cycles.
|
|
1379
|
+
*/
|
|
1380
|
+
interface MatExpNavigationRailTreeGroup {
|
|
1381
|
+
/** Register a child item; returns the unregister function. */
|
|
1382
|
+
_registerItem(item: {
|
|
1383
|
+
readonly selected: Signal<boolean>;
|
|
1384
|
+
}): () => void;
|
|
1385
|
+
/** Whether the group currently shows its children. */
|
|
1386
|
+
readonly _expanded: Signal<boolean>;
|
|
1387
|
+
/** Whether the group's row is shown: false inside a closed outer group (unsupported). */
|
|
1388
|
+
readonly _shown: Signal<boolean>;
|
|
1389
|
+
/**
|
|
1390
|
+
* Whether the group sits in the footer. Its children use this: they are not in the document
|
|
1391
|
+
* while the group is closed.
|
|
1392
|
+
*/
|
|
1393
|
+
readonly _inFooter: Signal<boolean>;
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* @internal A tree row (destination or group row), registered with the rail in creation order
|
|
1397
|
+
* (document order for static templates; rows that `@if`/`@for` insert later register last). The
|
|
1398
|
+
* rail computes the pre-rendered Tab stop from these signals, without the DOM, and uses them to
|
|
1399
|
+
* tell when the browser Tab stop needs recomputing.
|
|
1400
|
+
*/
|
|
1401
|
+
interface MatExpNavigationRailTreeRow {
|
|
1402
|
+
/** A tree row (not a footer row) that is shown and enabled: it can be the Tab stop. */
|
|
1403
|
+
readonly _rovingCandidate: Signal<boolean>;
|
|
1404
|
+
/** `'page'` for the selected destination, `'true'` for a closed group holding it. */
|
|
1405
|
+
readonly _currentState: Signal<'page' | 'true' | null>;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* @internal What the rail's keyboard handling needs from a group. Groups register themselves
|
|
1409
|
+
* with the rail, so the rail never imports the group class.
|
|
1410
|
+
*/
|
|
1411
|
+
interface MatExpNavigationRailTreeNode extends MatExpNavigationRailTreeRow {
|
|
1412
|
+
/** The group's treeitem row. */
|
|
1413
|
+
_rowElement(): HTMLElement;
|
|
1414
|
+
/** The rendered `role="group"` children wrapper, while the group shows its children. */
|
|
1415
|
+
_childrenElement(): HTMLElement | undefined;
|
|
1416
|
+
/** Whether the group currently shows its children. */
|
|
1417
|
+
readonly _expanded: Signal<boolean>;
|
|
1418
|
+
/** Whether the group sits in the footer, where groups are unsupported and stay out of the tree. */
|
|
1419
|
+
readonly _inFooter: Signal<boolean>;
|
|
1420
|
+
/** Keyboard "open": opens the group (and expands a stacked collapsed rail). */
|
|
1421
|
+
_openFromKeyboard(): void;
|
|
1422
|
+
/** Close the group, moving focus to its row first if a child had it. */
|
|
1423
|
+
_close(): void;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1371
1426
|
/**
|
|
1372
1427
|
* Expressive navigation layout. Project destinations directly, a menu/FAB in
|
|
1373
|
-
* `[matExpNavigationRailHeader]`,
|
|
1428
|
+
* `[matExpNavigationRailHeader]`, optional pinned controls in `[matExpNavigationRailFooter]`,
|
|
1429
|
+
* and page content in `[matExpNavigationRailContent]`.
|
|
1374
1430
|
*/
|
|
1375
1431
|
declare class MatExpNavigationRail {
|
|
1376
1432
|
private readonly _options;
|
|
1377
1433
|
private readonly _document;
|
|
1378
1434
|
private readonly _checker;
|
|
1435
|
+
private readonly _modality;
|
|
1379
1436
|
private readonly _panel;
|
|
1380
1437
|
private readonly _drawerElement;
|
|
1381
1438
|
private readonly _contentElement;
|
|
1439
|
+
private readonly _destinations;
|
|
1440
|
+
private readonly _footer;
|
|
1382
1441
|
private _motion?;
|
|
1383
1442
|
private _previousFocus;
|
|
1384
1443
|
private _lastExternalFocus;
|
|
@@ -1386,6 +1445,30 @@ declare class MatExpNavigationRail {
|
|
|
1386
1445
|
private _wasExpanded;
|
|
1387
1446
|
private _wasModal;
|
|
1388
1447
|
private _warnedMisprojectedContent;
|
|
1448
|
+
private _focusOnModalOpen;
|
|
1449
|
+
private _wasPeeking;
|
|
1450
|
+
private _peekOpenTimer;
|
|
1451
|
+
private _peekCloseTimer;
|
|
1452
|
+
/** The last element focused inside the panel, for a peek that hides it as it ends. */
|
|
1453
|
+
private _peekFocus;
|
|
1454
|
+
private _rescuingPeekFocus;
|
|
1455
|
+
private readonly _groups;
|
|
1456
|
+
/**
|
|
1457
|
+
* Destinations and group rows, in creation order. That matches document order for static
|
|
1458
|
+
* templates, but not for rows `@if` or `@for` insert later, which register last. Only the
|
|
1459
|
+
* Tab stop used before the browser first measures the tree depends on this order.
|
|
1460
|
+
*/
|
|
1461
|
+
private readonly _rows;
|
|
1462
|
+
private _warnedFooterGroup;
|
|
1463
|
+
private _warnedNestedGroup;
|
|
1464
|
+
/** The tab-stop state the browser Tab stop was last computed from. */
|
|
1465
|
+
private _syncedTabStopState;
|
|
1466
|
+
/** Focus moved into, within or out of the panel since the Tab stop was last computed. */
|
|
1467
|
+
private _focusMoved;
|
|
1468
|
+
/** Whether the browser has computed the Tab stop from the DOM at least once. */
|
|
1469
|
+
private readonly _tabStopSynced;
|
|
1470
|
+
private _typeahead;
|
|
1471
|
+
private _typeaheadAt;
|
|
1389
1472
|
/** Whether the rail is expanded; supports `[(expanded)]`. @default false */
|
|
1390
1473
|
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
1391
1474
|
/** How the expanded rail relates to content. @default 'standard' */
|
|
@@ -1396,55 +1479,264 @@ declare class MatExpNavigationRail {
|
|
|
1396
1479
|
readonly alignment: _angular_core.InputSignal<MatExpNavigationRailAlignment>;
|
|
1397
1480
|
/** Accessible name of the navigation region and modal. @default 'Primary navigation' */
|
|
1398
1481
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
1482
|
+
/** Expanded row density; `'compact'` gives 48px rows and leaves the collapsed rail as is. @default 'default' */
|
|
1483
|
+
readonly density: _angular_core.InputSignal<MatExpNavigationRailDensity>;
|
|
1484
|
+
/**
|
|
1485
|
+
* Collapsed presentation. `'fixed-axis'` keeps the expanded rows in place and clips them to the
|
|
1486
|
+
* collapsed width, with icons on one axis and labels hidden. @default 'stacked'
|
|
1487
|
+
*/
|
|
1488
|
+
readonly collapsedLayout: _angular_core.InputSignal<MatExpNavigationRailCollapsedLayout>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Peek: while collapsed, hovering the rail (mouse or pen, after 120ms) or moving keyboard focus
|
|
1491
|
+
* into it shows the expanded rail as a non-modal overlay; leaving it (200ms grace for the
|
|
1492
|
+
* pointer), focus leaving it or Escape ends the peek. `expanded` does not change. Has no effect
|
|
1493
|
+
* with `hideOnCollapse`. @default false
|
|
1494
|
+
*/
|
|
1495
|
+
readonly peek: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1496
|
+
/** Whether peek applies now: enabled, collapsed and not hidden. */
|
|
1497
|
+
private readonly _canPeek;
|
|
1498
|
+
/** A peek request; any change in whether peek applies (pinning, hiding) drops it. */
|
|
1499
|
+
private readonly _peekRequested;
|
|
1500
|
+
/** Whether the collapsed rail is showing its expanded presentation as a peek overlay. */
|
|
1501
|
+
readonly peeking: Signal<boolean>;
|
|
1502
|
+
/**
|
|
1503
|
+
* Whether the rail presents its expanded layout: expanded or peeking. Bind a header FAB's
|
|
1504
|
+
* `extended` to this rather than to `expanded()`.
|
|
1505
|
+
*/
|
|
1506
|
+
readonly presentedExpanded: Signal<boolean>;
|
|
1399
1507
|
/** @internal */
|
|
1400
|
-
readonly _modal:
|
|
1508
|
+
readonly _modal: Signal<boolean>;
|
|
1509
|
+
/**
|
|
1510
|
+
* @internal Any `mat-exp-navigation-rail-group` among the destinations turns them into a tree.
|
|
1511
|
+
* Footer groups are unsupported and never do.
|
|
1512
|
+
*/
|
|
1513
|
+
readonly _tree: Signal<boolean>;
|
|
1514
|
+
/** @internal The tree's single Tab stop (roving tabindex); null in list mode. */
|
|
1515
|
+
readonly _tabStop: _angular_core.WritableSignal<HTMLElement | null>;
|
|
1516
|
+
/**
|
|
1517
|
+
* Everything the Tab stop depends on apart from focus: a new object whenever a row registers
|
|
1518
|
+
* or unregisters, or a row's selection, open, disabled or hidden state, or the expansion,
|
|
1519
|
+
* changes. The browser skips its DOM recomputation while this stays the same object.
|
|
1520
|
+
*/
|
|
1521
|
+
private readonly _tabStopState;
|
|
1522
|
+
/**
|
|
1523
|
+
* The Tab stop before the browser has measured the tree, as in server-rendered HTML: the
|
|
1524
|
+
* selected destination, else the closed group holding it, else the first enabled row. It is
|
|
1525
|
+
* computed from the registered rows, with no DOM queries.
|
|
1526
|
+
*/
|
|
1527
|
+
private readonly _initialTabStop;
|
|
1401
1528
|
constructor();
|
|
1402
|
-
/** Expand from a menu button. */
|
|
1529
|
+
/** Expand from a menu button. A peeking rail is pinned open. */
|
|
1403
1530
|
open(): void;
|
|
1404
1531
|
/** Return to the collapsed or hidden presentation. */
|
|
1405
1532
|
close(): void;
|
|
1406
1533
|
/** Toggle expansion from a menu button. */
|
|
1407
1534
|
toggle(): void;
|
|
1408
1535
|
/** @internal */
|
|
1536
|
+
_registerGroup(group: MatExpNavigationRailTreeNode): () => void;
|
|
1537
|
+
/**
|
|
1538
|
+
* @internal Destinations and group rows register in creation order: document order for static
|
|
1539
|
+
* templates, but rows inserted later (`@if`, `@for`) register last. Only the pre-measurement
|
|
1540
|
+
* Tab stop depends on the order.
|
|
1541
|
+
*/
|
|
1542
|
+
_registerRow(row: MatExpNavigationRailTreeRow): () => void;
|
|
1543
|
+
/**
|
|
1544
|
+
* @internal Whether a tree row is the Tab stop: the browser's DOM-computed stop once it has
|
|
1545
|
+
* one, before that (and on the server) the stop computed from the registered rows.
|
|
1546
|
+
*/
|
|
1547
|
+
_isTabStop(row: MatExpNavigationRailTreeRow, element: HTMLElement | undefined): boolean;
|
|
1548
|
+
/** @internal Dev-mode warning, once per rail, for a group where groups are unsupported. */
|
|
1549
|
+
_warnGroupPlacement(placement: 'footer' | 'nested'): void;
|
|
1550
|
+
/** @internal Expand on behalf of a group row, which keeps focus if the rail turns modal. */
|
|
1551
|
+
_expandFrom(element: HTMLElement): void;
|
|
1552
|
+
/** @internal */
|
|
1409
1553
|
_dismiss(): void;
|
|
1410
1554
|
/** @internal */
|
|
1411
1555
|
_onFocusIn(event: FocusEvent): void;
|
|
1412
1556
|
/** @internal */
|
|
1413
1557
|
_onWindowBlur(): void;
|
|
1414
1558
|
/** @internal */
|
|
1415
|
-
_onFocusOut(): void;
|
|
1559
|
+
_onFocusOut(event: FocusEvent): void;
|
|
1560
|
+
/** @internal Mouse or pen hover opens a peek after a short intent delay. Touch never peeks. */
|
|
1561
|
+
_onPointerEnter(event: PointerEvent): void;
|
|
1562
|
+
/** @internal */
|
|
1563
|
+
_onPointerLeave(event: PointerEvent): void;
|
|
1416
1564
|
/** @internal */
|
|
1417
1565
|
_onKeydown(event: KeyboardEvent): void;
|
|
1566
|
+
/** Visible, enabled treeitems in document order. */
|
|
1567
|
+
private _treeItems;
|
|
1568
|
+
/**
|
|
1569
|
+
* One Tab stop for the tree: the focused row while focus is inside; otherwise the selected
|
|
1570
|
+
* leaf, else the closed group holding it, else the first enabled row.
|
|
1571
|
+
*/
|
|
1572
|
+
private _syncTabStop;
|
|
1573
|
+
/** APG navigation treeview keys; footer destinations keep their own list among themselves. */
|
|
1574
|
+
private _onTreeKeydown;
|
|
1575
|
+
/** A printable character other than Space, which activates. */
|
|
1576
|
+
private _isTypeaheadKey;
|
|
1577
|
+
/**
|
|
1578
|
+
* Typeahead (APG navigation treeview, optional): focus the next visible enabled row whose label
|
|
1579
|
+
* starts with the typed characters, wrapping. Characters within 500ms build a prefix; repeating
|
|
1580
|
+
* one character cycles through the rows starting with it.
|
|
1581
|
+
*/
|
|
1582
|
+
private _onTypeahead;
|
|
1583
|
+
private _onFooterKeydown;
|
|
1584
|
+
/**
|
|
1585
|
+
* @internal Escape dismisses a peek from anywhere (WCAG 1.4.13, dismissible): a hover peek can
|
|
1586
|
+
* cover page content while focus stays outside the rail. Inside the rail, `_onKeydown` handles
|
|
1587
|
+
* Escape first and stops it.
|
|
1588
|
+
*/
|
|
1589
|
+
_onDocumentEscape(event: Event): void;
|
|
1590
|
+
private _endPeek;
|
|
1591
|
+
private _clearPeekTimers;
|
|
1592
|
+
/**
|
|
1593
|
+
* A peek ending never moves focus, unless it hid the focused destination (an `expandedOnly`
|
|
1594
|
+
* item): keep focus in the rail rather than losing it to the document. Tree groups move focus
|
|
1595
|
+
* from a hidden child to their own row.
|
|
1596
|
+
*/
|
|
1597
|
+
private _keepFocusAfterPeek;
|
|
1418
1598
|
private _restoreFocus;
|
|
1419
1599
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRail, never>;
|
|
1420
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRail, "mat-exp-navigation-rail", ["matExpNavigationRail"], { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hideOnCollapse": { "alias": "hideOnCollapse"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[matExpNavigationRailHeader]", "*", "[matExpNavigationRailContent]"], true, never>;
|
|
1600
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRail, "mat-exp-navigation-rail", ["matExpNavigationRail"], { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hideOnCollapse": { "alias": "hideOnCollapse"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "collapsedLayout": { "alias": "collapsedLayout"; "required": false; "isSignal": true; }; "peek": { "alias": "peek"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[matExpNavigationRailHeader]", "*", "[matExpNavigationRailFooter]", "[matExpNavigationRailContent]"], true, never>;
|
|
1421
1601
|
}
|
|
1422
1602
|
|
|
1423
|
-
/**
|
|
1424
|
-
|
|
1603
|
+
/**
|
|
1604
|
+
* A native link or button destination. Selection remains owned by the application's route.
|
|
1605
|
+
* Badges are Angular Material's `MatBadge`: `badge` (content; null hides it), `badgeDescription`
|
|
1606
|
+
* (announced as the destination's description), `badgeSize` (`'small'` is the dot) and
|
|
1607
|
+
* `badgeHidden`. The rail places the badge on the pill when collapsed and after the label when
|
|
1608
|
+
* expanded. `badgeDot` is the dot preset.
|
|
1609
|
+
*/
|
|
1610
|
+
declare class MatExpNavigationRailItem implements MatExpNavigationRailTreeRow, DoCheck {
|
|
1425
1611
|
private readonly _rail;
|
|
1612
|
+
private readonly _section;
|
|
1613
|
+
private readonly _badge;
|
|
1614
|
+
/** Consumer-bound `badge`/`badgeSize`, remembered while `badgeDot` overrides them. */
|
|
1615
|
+
private _boundContent;
|
|
1616
|
+
private _boundSize;
|
|
1617
|
+
/** @internal The tree group this item is a child row of, if any. */
|
|
1618
|
+
readonly _group: MatExpNavigationRailTreeGroup | null;
|
|
1426
1619
|
/** @internal */
|
|
1427
1620
|
readonly _element: any;
|
|
1428
1621
|
/** @internal */
|
|
1429
1622
|
readonly _isButton: boolean;
|
|
1430
1623
|
/** Mark the current destination, usually from RouterLinkActive. @default false */
|
|
1431
1624
|
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1625
|
+
/** What the badge means, announced as the destination's description while the badge shows. @default '' */
|
|
1626
|
+
readonly badgeDescription: _angular_core.InputSignal<string>;
|
|
1627
|
+
/**
|
|
1628
|
+
* Show the badge as a dot (Material's small badge) without content. Takes precedence over
|
|
1629
|
+
* `badge` and `badgeSize` while true. @default false
|
|
1630
|
+
*/
|
|
1631
|
+
readonly badgeDot: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1432
1632
|
/** Skip a temporarily unavailable destination. @default false */
|
|
1433
1633
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1434
1634
|
/** Reveal a secondary destination only in the expanded rail. @default false */
|
|
1435
1635
|
readonly expandedOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1436
|
-
/**
|
|
1437
|
-
readonly
|
|
1636
|
+
/** Use the 60px tall row in a compact rail, for two-line labels. No effect at default density. @default false */
|
|
1637
|
+
readonly tall: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1438
1638
|
/** @internal */
|
|
1439
1639
|
readonly _hidden: _angular_core.Signal<boolean>;
|
|
1640
|
+
/**
|
|
1641
|
+
* @internal Footer destinations stay outside the tree. Checked when tree mode applies, during
|
|
1642
|
+
* binding, when items created by `@for`/`@if` are already in the document.
|
|
1643
|
+
*/
|
|
1644
|
+
readonly _treeItem: _angular_core.Signal<boolean>;
|
|
1645
|
+
/** @internal */
|
|
1646
|
+
readonly _rovingCandidate: _angular_core.Signal<boolean>;
|
|
1647
|
+
/** @internal */
|
|
1648
|
+
readonly _currentState: _angular_core.Signal<"page" | null>;
|
|
1649
|
+
/** @internal Tree rows share one roving Tab stop; list items keep native Tab order. */
|
|
1650
|
+
readonly _tabIndex: _angular_core.Signal<0 | -1 | null>;
|
|
1440
1651
|
constructor();
|
|
1652
|
+
/**
|
|
1653
|
+
* `badge`/`badgeSize` are aliased MatBadge inputs that Angular writes straight onto it, so a
|
|
1654
|
+
* signal effect cannot see them. Run after every input update: anything other than our own
|
|
1655
|
+
* override is the consumer's value, which is remembered and restored when the dot turns off.
|
|
1656
|
+
*/
|
|
1657
|
+
ngDoCheck(): void;
|
|
1441
1658
|
private readonly _indicator;
|
|
1659
|
+
private readonly _container;
|
|
1442
1660
|
/** @internal */
|
|
1443
1661
|
_onClick(event: Event): void;
|
|
1444
1662
|
/** @internal */
|
|
1445
1663
|
_onSpace(event: Event): void;
|
|
1446
1664
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRailItem, never>;
|
|
1447
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailItem, "a[matExpNavigationRailItem], button[matExpNavigationRailItem]", ["matExpNavigationRailItem"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expandedOnly": { "alias": "expandedOnly"; "required": false; "isSignal": true; }; "
|
|
1665
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailItem, "a[matExpNavigationRailItem], button[matExpNavigationRailItem]", ["matExpNavigationRailItem"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "badgeDescription": { "alias": "badgeDescription"; "required": false; "isSignal": true; }; "badgeDot": { "alias": "badgeDot"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expandedOnly": { "alias": "expandedOnly"; "required": false; "isSignal": true; }; "tall": { "alias": "tall"; "required": false; "isSignal": true; }; }, {}, never, ["[matExpNavigationRailIcon]", "*"], true, [{ directive: typeof i1.MatBadge; inputs: { "matBadge": "badge"; "matBadgeSize": "badgeSize"; "matBadgeHidden": "badgeHidden"; }; outputs: {}; }]>;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* Opt-in tree destinations (ADR 0013): a group row that opens and closes its child
|
|
1670
|
+
* destinations. Any group turns the rail's destinations into a tree with one Tab stop and
|
|
1671
|
+
* arrow-key navigation; a rail without groups keeps its list behaviour. Project an icon with
|
|
1672
|
+
* `matExpNavigationRailIcon` and the children as `matExpNavigationRailItem`s. The group never
|
|
1673
|
+
* navigates; it opens itself when one of its children becomes selected. The tree has two
|
|
1674
|
+
* levels: groups are not supported inside other groups or in `[matExpNavigationRailFooter]`.
|
|
1675
|
+
*/
|
|
1676
|
+
declare class MatExpNavigationRailGroup implements MatExpNavigationRailTreeGroup, MatExpNavigationRailTreeNode {
|
|
1677
|
+
private readonly _rail;
|
|
1678
|
+
private readonly _document;
|
|
1679
|
+
private readonly _host;
|
|
1680
|
+
private readonly _section;
|
|
1681
|
+
/** An outer group: nesting is unsupported (the tree has two levels). */
|
|
1682
|
+
private readonly _parent;
|
|
1683
|
+
/** Bumped after the first render, when a group created by `@if`/`@for` is in the document. */
|
|
1684
|
+
private readonly _placement;
|
|
1685
|
+
private readonly _row;
|
|
1686
|
+
private readonly _indicator;
|
|
1687
|
+
private readonly _children;
|
|
1688
|
+
private readonly _items;
|
|
1689
|
+
/** Visible text and accessible name of the group row. */
|
|
1690
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1691
|
+
/** Whether the group shows its children; supports `[(open)]`. @default false */
|
|
1692
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
1693
|
+
/** @internal */
|
|
1694
|
+
readonly _childrenId: string;
|
|
1695
|
+
/** @internal A stacked collapsed rail shows groups as single stacked items; a peek does not. */
|
|
1696
|
+
readonly _expanded: Signal<boolean>;
|
|
1697
|
+
/**
|
|
1698
|
+
* @internal Groups are unsupported in the footer: one there stays out of the tree. Read when
|
|
1699
|
+
* bindings run, when groups created by `@if`/`@for` are already in place, and again after the
|
|
1700
|
+
* first render.
|
|
1701
|
+
*/
|
|
1702
|
+
readonly _inFooter: Signal<boolean>;
|
|
1703
|
+
/** @internal Whether the row is a treeitem; a footer group's row is a plain button. */
|
|
1704
|
+
readonly _treeRow: Signal<boolean>;
|
|
1705
|
+
/** @internal */
|
|
1706
|
+
readonly _shown: Signal<boolean>;
|
|
1707
|
+
/** @internal */
|
|
1708
|
+
readonly _rovingCandidate: Signal<boolean>;
|
|
1709
|
+
/** @internal */
|
|
1710
|
+
readonly _holdsSelection: Signal<boolean>;
|
|
1711
|
+
/** @internal The closed ancestor of the current page. */
|
|
1712
|
+
readonly _current: Signal<boolean>;
|
|
1713
|
+
/** @internal */
|
|
1714
|
+
readonly _currentState: Signal<"true" | null>;
|
|
1715
|
+
/** @internal */
|
|
1716
|
+
readonly _tabIndex: Signal<0 | -1>;
|
|
1717
|
+
constructor();
|
|
1718
|
+
/** @internal */
|
|
1719
|
+
_registerItem(item: {
|
|
1720
|
+
readonly selected: Signal<boolean>;
|
|
1721
|
+
}): () => void;
|
|
1722
|
+
/** @internal */
|
|
1723
|
+
_rowElement(): HTMLElement;
|
|
1724
|
+
/** @internal */
|
|
1725
|
+
_childrenElement(): HTMLElement | undefined;
|
|
1726
|
+
/**
|
|
1727
|
+
* @internal Pointer, Enter and Space: toggle, or open and expand a collapsed rail. A peeking
|
|
1728
|
+
* rail is still collapsed, so activation pins it open.
|
|
1729
|
+
*/
|
|
1730
|
+
_activate(): void;
|
|
1731
|
+
/** @internal */
|
|
1732
|
+
_openFromKeyboard(): void;
|
|
1733
|
+
/** @internal */
|
|
1734
|
+
_close(): void;
|
|
1735
|
+
/** @internal */
|
|
1736
|
+
_onActivationKey(event: Event): void;
|
|
1737
|
+
private _rescueFocus;
|
|
1738
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRailGroup, never>;
|
|
1739
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailGroup, "mat-exp-navigation-rail-group", ["matExpNavigationRailGroup"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["[matExpNavigationRailIcon]", "*"], true, never>;
|
|
1448
1740
|
}
|
|
1449
1741
|
|
|
1450
1742
|
interface MatExpNavigationRailOptions {
|
|
@@ -1458,6 +1750,12 @@ interface MatExpNavigationRailOptions {
|
|
|
1458
1750
|
readonly alignment: MatExpNavigationRailAlignment;
|
|
1459
1751
|
/** Accessible navigation label. @default 'Primary navigation' */
|
|
1460
1752
|
readonly ariaLabel: string;
|
|
1753
|
+
/** Expanded row density: `'compact'` gives 48px rows. @default 'default' */
|
|
1754
|
+
readonly density: MatExpNavigationRailDensity;
|
|
1755
|
+
/** Collapsed presentation: `'fixed-axis'` clips the expanded rows to the rail. @default 'stacked' */
|
|
1756
|
+
readonly collapsedLayout: MatExpNavigationRailCollapsedLayout;
|
|
1757
|
+
/** Show the expanded rail as an overlay on hover or keyboard focus while collapsed. @default false */
|
|
1758
|
+
readonly peek: boolean;
|
|
1461
1759
|
}
|
|
1462
1760
|
declare const MAT_EXP_NAVIGATION_RAIL_OPTIONS: _angular_core.InjectionToken<MatExpNavigationRailOptions>;
|
|
1463
1761
|
declare const provideMatExpNavigationRailOptions: (options: Partial<MatExpNavigationRailOptions> | (() => Partial<MatExpNavigationRailOptions>)) => _angular_core.FactoryProvider;
|
|
@@ -1787,5 +2085,5 @@ declare class MatExpDialogClose {
|
|
|
1787
2085
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpDialogClose, "[matExpDialogClose]", ["matExpDialogClose"], { "result": { "alias": "matExpDialogClose"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1788
2086
|
}
|
|
1789
2087
|
|
|
1790
|
-
export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_STEPPER_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpNavigationRail, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
|
|
1791
|
-
export type { ButtonGroupChild, ButtonGroupChildBroadcastConfig, MatExpButtonGroupAppearance, MatExpButtonGroupOptions, MatExpButtonGroupSelection, MatExpButtonGroupSelectionMultiSelect, MatExpButtonGroupSelectionSingleSelect, MatExpButtonGroupShape, MatExpButtonGroupSize, MatExpButtonGroupVariant, MatExpButtonGroupVariantConnected, MatExpButtonGroupVariantStandard, MatExpButtonOptions, MatExpButtonShape, MatExpButtonShapeRound, MatExpButtonShapeSquare, MatExpButtonSize, MatExpButtonSizeL, MatExpButtonSizeM, MatExpButtonSizeS, MatExpButtonSizeXL, MatExpButtonSizeXS, MatExpButtonState, MatExpButtonStateActive, MatExpButtonStateDisabled, MatExpButtonStateFocused, MatExpButtonStateHovered, MatExpButtonStatePressed, MatExpButtonToggle, MatExpButtonToggleSelected, MatExpButtonToggleUnselected, MatExpDialogConfig, MatExpDialogConfirmationConfig, MatExpDialogMode, MatExpDialogMotion, MatExpDialogOptions, MatExpFabMenuColor, MatExpFabMenuOptions, MatExpFabMenuTriggerColor, MatExpIconButtonAppearance, MatExpIconButtonOptions, MatExpIconButtonWidth, MatExpIconButtonWidthDefault, MatExpIconButtonWidthNarrow, MatExpIconButtonWidthWide, MatExpListAppearance, MatExpListMedia, MatExpListOptions, MatExpListPosition, MatExpListTextWrap, MatExpLoadingIndicatorConfig, MatExpLoadingIndicatorOptions, MatExpLoadingIndicatorSpeed, MatExpNavigationRailAlignment, MatExpNavigationRailMode, MatExpNavigationRailOptions, MatExpProgressIndicatorOptions, MatExpProgressMode, MatExpProgressShape, MatExpProgressVariant, MatExpRichTooltipOptions, MatExpRichTooltipPosition, MatExpSearchAlignment, MatExpSearchAppearance, MatExpSearchLayout, MatExpSearchOptions, MatExpSearchState, MatExpSelectableButton, MatExpSplitButtonAppearance, MatExpSplitButtonOptions, MatExpStepState, MatExpStepperLayout, MatExpStepperMotion, MatExpStepperOptions, MatExpToolbarAlignment, MatExpToolbarAppearance, MatExpToolbarExitEdge, MatExpToolbarLayout, MatExpToolbarOptions };
|
|
2088
|
+
export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_STEPPER_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpNavigationRail, MatExpNavigationRailGroup, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
|
|
2089
|
+
export type { ButtonGroupChild, ButtonGroupChildBroadcastConfig, MatExpButtonGroupAppearance, MatExpButtonGroupOptions, MatExpButtonGroupSelection, MatExpButtonGroupSelectionMultiSelect, MatExpButtonGroupSelectionSingleSelect, MatExpButtonGroupShape, MatExpButtonGroupSize, MatExpButtonGroupVariant, MatExpButtonGroupVariantConnected, MatExpButtonGroupVariantStandard, MatExpButtonOptions, MatExpButtonShape, MatExpButtonShapeRound, MatExpButtonShapeSquare, MatExpButtonSize, MatExpButtonSizeL, MatExpButtonSizeM, MatExpButtonSizeS, MatExpButtonSizeXL, MatExpButtonSizeXS, MatExpButtonState, MatExpButtonStateActive, MatExpButtonStateDisabled, MatExpButtonStateFocused, MatExpButtonStateHovered, MatExpButtonStatePressed, MatExpButtonToggle, MatExpButtonToggleSelected, MatExpButtonToggleUnselected, MatExpDialogConfig, MatExpDialogConfirmationConfig, MatExpDialogMode, MatExpDialogMotion, MatExpDialogOptions, MatExpFabMenuColor, MatExpFabMenuOptions, MatExpFabMenuTriggerColor, MatExpIconButtonAppearance, MatExpIconButtonOptions, MatExpIconButtonWidth, MatExpIconButtonWidthDefault, MatExpIconButtonWidthNarrow, MatExpIconButtonWidthWide, MatExpListAppearance, MatExpListMedia, MatExpListOptions, MatExpListPosition, MatExpListTextWrap, MatExpLoadingIndicatorConfig, MatExpLoadingIndicatorOptions, MatExpLoadingIndicatorSpeed, MatExpNavigationRailAlignment, MatExpNavigationRailCollapsedLayout, MatExpNavigationRailDensity, MatExpNavigationRailMode, MatExpNavigationRailOptions, MatExpProgressIndicatorOptions, MatExpProgressMode, MatExpProgressShape, MatExpProgressVariant, MatExpRichTooltipOptions, MatExpRichTooltipPosition, MatExpSearchAlignment, MatExpSearchAppearance, MatExpSearchLayout, MatExpSearchOptions, MatExpSearchState, MatExpSelectableButton, MatExpSplitButtonAppearance, MatExpSplitButtonOptions, MatExpStepState, MatExpStepperLayout, MatExpStepperMotion, MatExpStepperOptions, MatExpToolbarAlignment, MatExpToolbarAppearance, MatExpToolbarExitEdge, MatExpToolbarLayout, MatExpToolbarOptions };
|