@camaradesuk/m3e-angular 0.1.0-alpha.5 → 0.1.0-alpha.7

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.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.7",
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",
@@ -1,10 +1,11 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { ModelSignal, InjectionToken, Provider, Signal, DoCheck, AnimationCallbackEvent, DestroyRef, TemplateRef, ElementRef, ComponentRef, OnDestroy } from '@angular/core';
2
+ import { ModelSignal, InjectionToken, Provider, Signal, DoCheck, AnimationCallbackEvent, DestroyRef, TemplateRef, ElementRef, OnChanges, OnDestroy, AfterContentInit, AfterViewInit, QueryList, ComponentRef } from '@angular/core';
3
3
  import * as _camaradesuk_m3e_angular from '@camaradesuk/m3e-angular';
4
4
  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 { CdkStep, CdkStepper, CdkStepHeader } from '@angular/cdk/stepper';
8
9
  import { ComponentPortal, ComponentType } from '@angular/cdk/portal';
9
10
  import { MatDialogConfig, MatDialogState, DialogPosition } from '@angular/material/dialog';
10
11
  import * as rxjs from 'rxjs';
@@ -155,6 +156,13 @@ interface MatExpDialogConfirmationConfig extends Omit<MatDialogConfig<never>, 'd
155
156
  motion?: MatExpDialogMotion;
156
157
  }
157
158
 
159
+ /** Step list placement. `auto` uses the sidebar at 600px of stepper width and above. */
160
+ type MatExpStepperLayout = 'auto' | 'sidebar' | 'horizontal';
161
+ /** Expressive spring motion respecting the OS preference, or no transition. */
162
+ type MatExpStepperMotion = 'system' | 'none';
163
+ /** Visual and announced state of a step header. */
164
+ type MatExpStepState = 'pending' | 'active' | 'done' | 'error';
165
+
158
166
  interface MatExpSelectableButton {
159
167
  toggle: ModelSignal<MatExpButtonToggle | undefined>;
160
168
  value: ModelSignal<unknown>;
@@ -1467,6 +1475,142 @@ declare class MatExpNavigationRailSection {
1467
1475
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailSection, "mat-exp-navigation-rail-section", ["matExpNavigationRailSection"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "expandedOnly": { "alias": "expandedOnly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1468
1476
  }
1469
1477
 
1478
+ /**
1479
+ * One step of a `mat-exp-stepper`. Inherits every `cdk-step` input: `label`, `stepControl`,
1480
+ * `optional`, `editable`, `completed`, `hasError`, `errorMessage` and `aria-label`.
1481
+ */
1482
+ declare class MatExpStep extends CdkStep implements OnChanges, OnDestroy {
1483
+ /** Short secondary text under the label, such as the value chosen in this step. @default '' */
1484
+ readonly summary: _angular_core.InputSignal<string>;
1485
+ /** @internal */
1486
+ private _controlEvents?;
1487
+ /** @internal */
1488
+ private _observedControl?;
1489
+ /** @internal */
1490
+ ngOnChanges(): void;
1491
+ /** @internal */
1492
+ ngOnDestroy(): void;
1493
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpStep, never>;
1494
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpStep, "mat-exp-step", ["matExpStep"], { "summary": { "alias": "summary"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1495
+ }
1496
+ /**
1497
+ * A CDK stepper with a persistent step list beside the active content. Works on its own or
1498
+ * inside a `MatExpDialog`; applications keep owning form state, validation and actions.
1499
+ * A library composition of Material primitives, not an official Material 3 stepper spec.
1500
+ */
1501
+ declare class MatExpStepper extends CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
1502
+ /** @internal */
1503
+ _steps: QueryList<MatExpStep>;
1504
+ /** @internal */
1505
+ _stepHeader: QueryList<CdkStepHeader>;
1506
+ /** Steps belonging to this stepper, in order. */
1507
+ readonly steps: QueryList<MatExpStep>;
1508
+ /** @internal */
1509
+ private readonly _options;
1510
+ /** @internal */
1511
+ private readonly _document;
1512
+ /** @internal */
1513
+ private readonly _injector;
1514
+ /** @internal */
1515
+ private readonly _browser;
1516
+ /** @internal */
1517
+ private readonly _direction;
1518
+ /** @internal */
1519
+ private readonly _dialogSizing;
1520
+ /** @internal */
1521
+ private readonly _viewport;
1522
+ /** @internal */
1523
+ private readonly _indicator;
1524
+ /** @internal */
1525
+ private readonly _headers;
1526
+ /** @internal Zero-height, full-width probe: width changes only, never content height. */
1527
+ private readonly _measure;
1528
+ /** @internal */
1529
+ private _motion?;
1530
+ /** @internal */
1531
+ private _reducedMotion?;
1532
+ /** @internal */
1533
+ private _observer?;
1534
+ /** @internal */
1535
+ private _observedPane?;
1536
+ /** Visible heading above the step list; also names it. @default '' */
1537
+ readonly heading: _angular_core.InputSignal<string>;
1538
+ /** Accessible step list name when `heading` is empty. @default 'Steps' */
1539
+ readonly ariaLabel: _angular_core.InputSignal<string>;
1540
+ /** Step list placement. `auto` switches by the stepper's own width. @default 'auto' */
1541
+ readonly layout: _angular_core.InputSignal<MatExpStepperLayout>;
1542
+ /** Motion policy; the OS reduced-motion preference always wins. @default 'system' */
1543
+ readonly motion: _angular_core.InputSignal<MatExpStepperMotion>;
1544
+ /** @internal */
1545
+ readonly _labels: _camaradesuk_m3e_angular.MatExpStepperOptions;
1546
+ /** @internal */
1547
+ readonly _headingId: string;
1548
+ /** @internal Index of the step whose content is animating out, or -1. */
1549
+ readonly _leaving: _angular_core.WritableSignal<number>;
1550
+ /** @internal */
1551
+ private readonly _width;
1552
+ /** @internal */
1553
+ private readonly _count;
1554
+ /** @internal */
1555
+ readonly _layout: _angular_core.Signal<"horizontal" | "sidebar">;
1556
+ /** Whether the first step is selected. */
1557
+ readonly isFirst: _angular_core.Signal<boolean>;
1558
+ /** Whether the last step is selected. */
1559
+ readonly isLast: _angular_core.Signal<boolean>;
1560
+ constructor();
1561
+ /** @internal */
1562
+ ngAfterContentInit(): void;
1563
+ /** @internal */
1564
+ ngOnDestroy(): void;
1565
+ /** Move forward; in linear mode an invalid current step reveals its errors instead. */
1566
+ next(): void;
1567
+ /** @internal Header activation, gated exactly like CDK selection. */
1568
+ _select(index: number): void;
1569
+ /** @internal */
1570
+ _onHeaderKeydown(event: KeyboardEvent): void;
1571
+ /** @internal */
1572
+ _state(step: MatExpStep, index: number): MatExpStepState;
1573
+ /** @internal Whether activating this header would be refused by linear/editable gating. */
1574
+ _isBlocked(index: number): boolean;
1575
+ /** @internal */
1576
+ _stepDescription(step: MatExpStep, index: number): string | null;
1577
+ /** @internal */
1578
+ private _modified;
1579
+ /** @internal Mark the blocking step as touched and focus its first invalid control. */
1580
+ private _revealErrors;
1581
+ /** @internal */
1582
+ private _pane;
1583
+ /** @internal */
1584
+ private _header;
1585
+ /** @internal Runs synchronously before CDK updates the selected index. */
1586
+ private _beforeSelection;
1587
+ /** @internal */
1588
+ private readonly _onPreference;
1589
+ /** @internal */
1590
+ private _createMotion;
1591
+ /** @internal */
1592
+ private _observe;
1593
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpStepper, never>;
1594
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpStepper, "mat-exp-stepper", ["matExpStepper"], { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; }, {}, ["_steps"], ["[matExpStepperActions]"], true, never>;
1595
+ }
1596
+
1597
+ interface MatExpStepperOptions {
1598
+ /** Step list placement. @default 'auto' */
1599
+ readonly layout: MatExpStepperLayout;
1600
+ /** Motion policy; the OS reduced-motion preference always wins. @default 'system' */
1601
+ readonly motion: MatExpStepperMotion;
1602
+ /** Accessible step list name when no visible heading is set. @default 'Steps' */
1603
+ readonly ariaLabel: string;
1604
+ /** Visible tag for optional steps. @default 'Optional' */
1605
+ readonly optionalLabel: string;
1606
+ /** Announced after the name of a completed step. @default 'Completed' */
1607
+ readonly completedLabel: string;
1608
+ /** Announced after the name of a step with errors. @default 'Has errors' */
1609
+ readonly errorLabel: string;
1610
+ }
1611
+ declare const MAT_EXP_STEPPER_OPTIONS: _angular_core.InjectionToken<MatExpStepperOptions>;
1612
+ declare const provideMatExpStepperOptions: (options: Partial<MatExpStepperOptions> | (() => Partial<MatExpStepperOptions>)) => _angular_core.FactoryProvider;
1613
+
1470
1614
  /** @internal Uses CDK's documented custom-container extension points. */
1471
1615
  declare class MatExpDialogContainer extends CdkDialogContainer {
1472
1616
  readonly opened: Subject<void>;
@@ -1477,10 +1621,13 @@ declare class MatExpDialogContainer extends CdkDialogContainer {
1477
1621
  private _motion?;
1478
1622
  private _closing;
1479
1623
  private _destroyed;
1624
+ private _following;
1480
1625
  protected _captureInitialFocus(): void;
1481
1626
  protected _contentAttached(): void;
1482
1627
  attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
1483
1628
  close(): void;
1629
+ /** Follow content that animates its own size, without a competing surface spring. */
1630
+ followContentSize(active: boolean): void;
1484
1631
  retarget(): void;
1485
1632
  ngOnDestroy(): void;
1486
1633
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialogContainer, never>;
@@ -1640,5 +1787,5 @@ declare class MatExpDialogClose {
1640
1787
  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>;
1641
1788
  }
1642
1789
 
1643
- 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_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, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpToolbarOptions, toButtonGroupChild };
1644
- 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, MatExpToolbarAlignment, MatExpToolbarAppearance, MatExpToolbarExitEdge, MatExpToolbarLayout, MatExpToolbarOptions };
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 };