@villedemontreal/angular-ui 3.0.0 → 3.1.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.
@@ -13,8 +13,9 @@ import * as i11 from "./radio/module";
13
13
  import * as i12 from "./summary/module";
14
14
  import * as i13 from "./avatar/module";
15
15
  import * as i14 from "./tabs/module";
16
+ import * as i15 from "./modal/module";
16
17
  export declare class BaoModule {
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i6.BaoTagModule, typeof i7.BaoHeaderInfoModule, typeof i8.BaoListModule, typeof i9.BaoCommonComponentsModule, typeof i10.BaoCheckboxModule, typeof i11.BaoRadioModule, typeof i12.BaoSummaryModule, typeof i13.BaoAvatarModule, typeof i14.BaoTabsModule]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i6.BaoTagModule, typeof i7.BaoHeaderInfoModule, typeof i8.BaoListModule, typeof i9.BaoCommonComponentsModule, typeof i10.BaoCheckboxModule, typeof i11.BaoRadioModule, typeof i12.BaoSummaryModule, typeof i13.BaoAvatarModule, typeof i14.BaoTabsModule, typeof i15.BaoModalModule]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
20
21
  }
@@ -23,7 +23,7 @@ export declare class BaoIconComponent implements OnDestroy {
23
23
  private _title;
24
24
  private _titleId;
25
25
  private _elementsWithExternalReferences?;
26
- constructor(elementRef: ElementRef<HTMLElement>, iconRegistry: BaoIconRegistry, renderer: Renderer2, ariaHidden: string);
26
+ constructor(elementRef: ElementRef<HTMLElement>, iconRegistry: BaoIconRegistry, renderer: Renderer2);
27
27
  /** Name of the icon in the SVG icon set. */
28
28
  get svgIcon(): string;
29
29
  /** Title that will be used as an aria-label for the icon */
@@ -38,6 +38,6 @@ export declare class BaoIconComponent implements OnDestroy {
38
38
  private updateSvgIcon;
39
39
  private addTitleToSVG;
40
40
  private generateUniqueTitleId;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconComponent, [null, null, null, { attribute: "aria-hidden"; }]>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<BaoIconComponent, "bao-icon", ["baoIcon"], { "color": "color"; "size": "size"; "svgIcon": "svgIcon"; "title": "title"; }, {}, never, ["*"]>;
43
43
  }
@@ -0,0 +1,6 @@
1
+ export * from './module';
2
+ export * from './modal';
3
+ export * from './modal-container';
4
+ export * from './modal-config';
5
+ export * from './modal-ref';
6
+ export * from './modal-directives';
@@ -0,0 +1,8 @@
1
+ import { AnimationTriggerMetadata } from '@angular/animations';
2
+ /**
3
+ * Animations used by MatDialog.
4
+ * @docs-private
5
+ */
6
+ export declare const baoModalAnimations: {
7
+ readonly modalContainer: AnimationTriggerMetadata;
8
+ };
@@ -0,0 +1,105 @@
1
+ import { ViewContainerRef, Injector } from '@angular/core';
2
+ import { Direction } from '@angular/cdk/bidi';
3
+ import { ScrollStrategy } from '@angular/cdk/overlay';
4
+ export declare enum eModalDesktopWidthSize {
5
+ SMALL = "bao-modal-sm",
6
+ MEDIUM = "bao-modal-md",
7
+ LARGE = "bao-modal-lg"
8
+ }
9
+ export declare enum eModalMobileWidthSize {
10
+ FULL = "bao-modal-mobil-full",
11
+ COMPACT = "bao-modal-mobil-compact"
12
+ }
13
+ export interface BaoModalConfig {
14
+ size?: eModalDesktopWidthSize;
15
+ mobileSize?: eModalMobileWidthSize;
16
+ data?: unknown;
17
+ ariaLabelledBy?: string;
18
+ }
19
+ /** Options for where to set focus to automatically on dialog open */
20
+ export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
21
+ /** Valid ARIA roles for a dialog element. */
22
+ export declare type ModalRole = 'dialog' | 'alertdialog';
23
+ /** Possible overrides for a dialog's position. */
24
+ export interface ModalPosition {
25
+ /** Override for the dialog's top position. */
26
+ top?: string;
27
+ /** Override for the dialog's bottom position. */
28
+ bottom?: string;
29
+ /** Override for the dialog's left position. */
30
+ left?: string;
31
+ /** Override for the dialog's right position. */
32
+ right?: string;
33
+ }
34
+ /**
35
+ * Configuration for opening a modal dialog with the BaoModal service.
36
+ */
37
+ export declare class BaoModalInitialConfig<D = unknown> {
38
+ /**
39
+ * Where the attached component should live in Angular's *logical* component tree.
40
+ * This affects what is available for injection and the change detection order for the
41
+ * component instantiated inside of the dialog. This does not affect where the dialog
42
+ * content will be rendered.
43
+ */
44
+ viewContainerRef?: ViewContainerRef;
45
+ /**
46
+ * Injector used for the instantiation of the component to be attached. If provided,
47
+ * takes precedence over the injector indirectly provided by `ViewContainerRef`.
48
+ */
49
+ injector?: Injector;
50
+ /** ID for the dialog. If omitted, a unique one will be generated. */
51
+ id?: string;
52
+ /** The ARIA role of the dialog element. */
53
+ role?: ModalRole;
54
+ /** Custom class for the overlay pane. */
55
+ panelClass?: string | string[];
56
+ /** Whether the dialog has a backdrop. */
57
+ hasBackdrop?: boolean;
58
+ /** Custom class for the backdrop. */
59
+ backdropClass?: string | string[];
60
+ /** Whether the user can use escape or clicking on the backdrop to close the modal. */
61
+ disableClose?: boolean;
62
+ /** Width of the dialog. */
63
+ width?: string;
64
+ /** Height of the dialog. */
65
+ height?: string;
66
+ /** Min-width of the dialog. If a number is provided, assumes pixel units. */
67
+ minWidth?: number | string;
68
+ /** Min-height of the dialog. If a number is provided, assumes pixel units. */
69
+ minHeight?: number | string;
70
+ /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
71
+ maxWidth?: number | string;
72
+ /** Max-height of the dialog. If a number is provided, assumes pixel units. */
73
+ maxHeight?: number | string;
74
+ /** Position overrides. */
75
+ position?: ModalPosition;
76
+ /** Data being injected into the child component. */
77
+ data?: D | null;
78
+ /** Layout direction for the dialog's content. */
79
+ direction?: Direction;
80
+ /** ID of the element that describes the dialog. */
81
+ ariaDescribedBy?: string | null;
82
+ /** ID of the element that labels the dialog. */
83
+ ariaLabelledBy?: string | null;
84
+ /** Aria label to assign to the dialog element. */
85
+ ariaLabel?: string | null;
86
+ /**
87
+ * Where the dialog should focus on open.
88
+ */
89
+ autoFocus?: AutoFocusTarget | string;
90
+ /**
91
+ * Whether the dialog should restore focus to the
92
+ * previously-focused element, after it's closed.
93
+ */
94
+ restoreFocus?: boolean;
95
+ /** Whether to wait for the opening animation to finish before trapping focus. */
96
+ delayFocusTrap?: boolean;
97
+ /** Scroll strategy to be used for the dialog. */
98
+ scrollStrategy?: ScrollStrategy;
99
+ /**
100
+ * Whether the dialog should close when the user goes backwards/forwards in history.
101
+ * Note that this usually doesn't include clicking on links (unless the user is using
102
+ * the `HashLocationStrategy`).
103
+ */
104
+ closeOnNavigation?: boolean;
105
+ }
@@ -0,0 +1,106 @@
1
+ import { AnimationEvent } from '@angular/animations';
2
+ import { FocusMonitor, FocusOrigin, ConfigurableFocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
3
+ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
4
+ import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, NgZone } from '@angular/core';
5
+ import { BaoModalInitialConfig } from './modal-config';
6
+ import * as i0 from "@angular/core";
7
+ /** Event that captures the state of modal container animations. */
8
+ interface DialogAnimationEvent {
9
+ state: 'opened' | 'opening' | 'closing' | 'closed';
10
+ totalTime: number;
11
+ }
12
+ /**
13
+ * Throws an exception for the case when a ComponentPortal is
14
+ * attached to a DomPortalOutlet without an origin.
15
+ * @docs-private
16
+ */
17
+ export declare function throwBaoModalContentAlreadyAttachedError(): void;
18
+ /**
19
+ * Base class for the `BaoModalContainer`. The base class does not implement
20
+ * animations as these are left to implementers of the modal container.
21
+ */
22
+ export declare abstract class _BaoModalContainerBase extends BasePortalOutlet {
23
+ protected _elementRef: ElementRef;
24
+ protected _focusTrapFactory: ConfigurableFocusTrapFactory;
25
+ protected _changeDetectorRef: ChangeDetectorRef;
26
+ /** The modal configuration. */
27
+ _config: BaoModalInitialConfig;
28
+ private readonly _interactivityChecker;
29
+ private readonly _ngZone;
30
+ private _focusMonitor?;
31
+ /** The portal outlet inside of this container into which the modal content will be loaded. */
32
+ _portalOutlet: CdkPortalOutlet;
33
+ /** Emits when an animation state changes. */
34
+ _animationStateChanged: EventEmitter<DialogAnimationEvent>;
35
+ /**
36
+ * Type of interaction that led to the modal being closed. This is used to determine
37
+ * whether the focus style will be applied when returning focus to its original location
38
+ * after the modal is closed.
39
+ */
40
+ _closeInteractionType: FocusOrigin | null;
41
+ /** ID of the element that should be considered as the modal's label. */
42
+ _ariaLabelledBy: string | null;
43
+ /** ID for the container DOM element. */
44
+ _id: string;
45
+ protected _document: Document;
46
+ /** The class that traps and manages focus within the modal. */
47
+ private _focusTrap;
48
+ /** Element that was focused before the modal was opened. Save this to restore upon close. */
49
+ private _elementFocusedBeforeDialogWasOpened;
50
+ constructor(_elementRef: ElementRef, _focusTrapFactory: ConfigurableFocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _document: any,
51
+ /** The modal configuration. */
52
+ _config: BaoModalInitialConfig, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, _focusMonitor?: FocusMonitor);
53
+ /** Initializes the modal container with the attached content. */
54
+ _initializeWithAttachedContent(): void;
55
+ /**
56
+ * Attach a ComponentPortal as content to this modal container.
57
+ */
58
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
59
+ /**
60
+ * Attach a TemplatePortal as content to this modal container.
61
+ */
62
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
63
+ /** Moves focus back into the modal if it was moved out. */
64
+ _recaptureFocus(): Promise<void>;
65
+ /**
66
+ * Moves the focus inside the focus trap. When autoFocus is not set to 'modal', if focus
67
+ * cannot be moved then focus will go to the modal container.
68
+ */
69
+ protected _trapFocus(): Promise<void>;
70
+ /** Restores focus to the element that was focused before the modal opened. */
71
+ protected _restoreFocus(): void;
72
+ /**
73
+ * Focuses the provided element. If the element is not focusable, it will add a tabIndex
74
+ * attribute to forcefully focus it. The attribute is removed after focus is moved.
75
+ */
76
+ private _forceFocus;
77
+ /**
78
+ * Focuses the first element that matches the given selector within the focus trap.
79
+ */
80
+ private _focusByCssSelector;
81
+ /** Sets up the focus trap. */
82
+ private _setupFocusTrap;
83
+ /** Captures the element that was focused before the modal was opened. */
84
+ private _capturePreviouslyFocusedElement;
85
+ /** Focuses the modal container. */
86
+ private _focusDialogContainer;
87
+ /** Returns whether focus is inside the modal. */
88
+ private _containsFocus;
89
+ /** Starts the modal exit animation. */
90
+ abstract _startExitAnimation(): void;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<_BaoModalContainerBase, [null, null, null, { optional: true; }, null, null, null, null]>;
92
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_BaoModalContainerBase, never, never, {}, {}, never>;
93
+ }
94
+ export declare class BaoModalContainer extends _BaoModalContainerBase {
95
+ /** State of the modal animation. */
96
+ _state: 'void' | 'enter' | 'exit';
97
+ /** Callback, invoked whenever an animation on the host completes. */
98
+ _onAnimationDone({ toState, totalTime }: AnimationEvent): Promise<void>;
99
+ /** Callback, invoked when an animation on the host starts. */
100
+ _onAnimationStart({ toState, totalTime }: AnimationEvent): void;
101
+ /** Starts the modal exit animation. */
102
+ _startExitAnimation(): void;
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalContainer, never>;
104
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoModalContainer, "bao-modal-container", never, {}, {}, never, never>;
105
+ }
106
+ export {};
@@ -0,0 +1,25 @@
1
+ import { OnChanges, OnInit, SimpleChanges, ElementRef } from '@angular/core';
2
+ import { BaoModal } from './modal';
3
+ import { BaoModalRef } from './modal-ref';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Button that will close the current dialog.
7
+ */
8
+ export declare class BaoModalClose implements OnInit, OnChanges {
9
+ modalRef: BaoModalRef<unknown> | null;
10
+ private _elementRef;
11
+ private _dialog;
12
+ /** Screenreader label for the button. */
13
+ ariaLabel: string;
14
+ /** Default to "button" to prevents accidental form submits. */
15
+ type: 'submit' | 'button' | 'reset';
16
+ /** Dialog close input. */
17
+ dialogResult: unknown;
18
+ _baoModalClose: unknown;
19
+ constructor(modalRef: BaoModalRef<unknown> | null, _elementRef: ElementRef<HTMLElement>, _dialog: BaoModal);
20
+ ngOnInit(): void;
21
+ ngOnChanges(changes: SimpleChanges): void;
22
+ _onButtonClick(event: MouseEvent): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalClose, [{ optional: true; }, null, null]>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoModalClose, "[bao-modal-close], [baoModalClose]", ["BaoModalClose"], { "ariaLabel": "aria-label"; "type": "type"; "dialogResult": "bao-modal-close"; "_baoModalClose": "baoModalClose"; }, {}, never>;
25
+ }
@@ -0,0 +1,91 @@
1
+ import { FocusOrigin } from '@angular/cdk/a11y';
2
+ import { OverlayRef } from '@angular/cdk/overlay';
3
+ import { Observable } from 'rxjs';
4
+ import { ModalPosition } from './modal-config';
5
+ import { _BaoModalContainerBase } from './modal-container';
6
+ /** Possible states of the lifecycle of a modal. */
7
+ export declare const enum BaoModalState {
8
+ OPEN = 0,
9
+ CLOSING = 1,
10
+ CLOSED = 2
11
+ }
12
+ /**
13
+ * Reference to a modal opened via the BaoModalService.
14
+ */
15
+ export declare class BaoModalRef<T, R = unknown> {
16
+ private _overlayRef;
17
+ _containerInstance: _BaoModalContainerBase;
18
+ /** Id of the modal. */
19
+ readonly id: string;
20
+ /** The instance of component opened into the modal. */
21
+ componentInstance: T;
22
+ /** Whether the user is allowed to close the modal. */
23
+ disableClose: boolean | undefined;
24
+ /** Subject for notifying the user that the modal has finished opening. */
25
+ private readonly _afterOpened;
26
+ /** Subject for notifying the user that the modal has finished closing. */
27
+ private readonly _afterClosed;
28
+ /** Subject for notifying the user that the modal has started closing. */
29
+ private readonly _beforeClosed;
30
+ /** Result to be passed to afterClosed. */
31
+ private _result;
32
+ /** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
33
+ private _closeFallbackTimeout;
34
+ /** Current state of the modal. */
35
+ private _state;
36
+ constructor(_overlayRef: OverlayRef, _containerInstance: _BaoModalContainerBase,
37
+ /** Id of the modal. */
38
+ id?: string);
39
+ /**
40
+ * Close the modal.
41
+ * @param modalResult Optional result to return to the modal opener.
42
+ */
43
+ close(modalResult?: R): void;
44
+ /**
45
+ * Gets an observable that is notified when the modal is finished opening.
46
+ */
47
+ afterOpened(): Observable<void>;
48
+ /**
49
+ * Gets an observable that is notified when the modal is finished closing.
50
+ */
51
+ afterClosed(): Observable<R | undefined>;
52
+ /**
53
+ * Gets an observable that is notified when the modal has started closing.
54
+ */
55
+ beforeClosed(): Observable<R | undefined>;
56
+ /**
57
+ * Gets an observable that emits when the overlay's backdrop has been clicked.
58
+ */
59
+ backdropClick(): Observable<MouseEvent>;
60
+ /**
61
+ * Gets an observable that emits when keydown events are targeted on the overlay.
62
+ */
63
+ keydownEvents(): Observable<KeyboardEvent>;
64
+ /**
65
+ * Updates the dialog's position.
66
+ */
67
+ updatePosition(position?: ModalPosition): this;
68
+ /**
69
+ * Updates the modal's width and height.
70
+ */
71
+ updateSize(width?: string, height?: string): this;
72
+ /** Add a CSS class or an array of classes to the overlay pane. */
73
+ addPanelClass(classes: string | string[]): this;
74
+ /** Remove a CSS class or an array of classes from the overlay pane. */
75
+ removePanelClass(classes: string | string[]): this;
76
+ /** Gets the current state of the modal's lifecycle. */
77
+ getState(): BaoModalState;
78
+ /**
79
+ * Finishes the modal close by updating the state of the modal
80
+ * and disposing the overlay.
81
+ */
82
+ private _finishModalClose;
83
+ /** Fetches the position strategy object from the overlay ref. */
84
+ private _getPositionStrategy;
85
+ }
86
+ /**
87
+ * Closes the modal with the specified interaction type. This is currently not part of
88
+ * `BaoModalRef` as that would conflict with custom modal ref mocks provided in tests.
89
+ * More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
90
+ */
91
+ export declare function _closeModalVia<R>(ref: BaoModalRef<R>, interactionType: FocusOrigin, result?: R): void;
@@ -0,0 +1,91 @@
1
+ import { InjectionToken, Injector, OnDestroy, TemplateRef, Type } from '@angular/core';
2
+ import { Observable, Subject } from 'rxjs';
3
+ import { BaoModalContainer, _BaoModalContainerBase } from './modal-container';
4
+ import { BaoModalRef } from './modal-ref';
5
+ import { BaoModalConfig } from './modal-config';
6
+ import { ComponentType, Overlay, OverlayContainer } from '@angular/cdk/overlay';
7
+ import * as i0 from "@angular/core";
8
+ /** Injection token that can be used to access the data that was passed in to a modal. */
9
+ export declare const BAO_MODAL_DATA: InjectionToken<unknown>;
10
+ export declare abstract class BaoModalBase<C extends _BaoModalContainerBase> implements OnDestroy {
11
+ private _overlay;
12
+ private _injector;
13
+ private _parentModal;
14
+ private _overlayContainer;
15
+ private _modalRefConstructor;
16
+ private _modalContainerType;
17
+ private _modalDataToken;
18
+ private _animationMode?;
19
+ readonly afterAllClosed: Observable<void>;
20
+ private _openModalsAtThisLevel;
21
+ private readonly _afterAllClosedAtThisLevel;
22
+ private readonly _afterOpenedAtThisLevel;
23
+ private _ariaHiddenElements;
24
+ private _modalAnimatingOpen;
25
+ private _animationStateSubscriptions;
26
+ private _lastModalRef;
27
+ constructor(_overlay: Overlay, _injector: Injector, _parentModal: BaoModalBase<C> | undefined, _overlayContainer: OverlayContainer, _modalRefConstructor: Type<BaoModalRef<unknown>>, _modalContainerType: Type<C>, _modalDataToken: InjectionToken<unknown>, _animationMode?: 'NoopAnimations' | 'BrowserAnimations');
28
+ /** Keeps track of the currently-open modals. */
29
+ get openModals(): BaoModalRef<unknown>[];
30
+ /** Stream that emits when a modal has been opened. */
31
+ get afterOpened(): Subject<BaoModalRef<unknown>>;
32
+ getAfterAllClosed(): Subject<void>;
33
+ /**
34
+ * Opens a modal modal containing the given template.
35
+ */
36
+ open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: BaoModalConfig): BaoModalRef<unknown>;
37
+ /**
38
+ * Closes all of the currently-open modals.
39
+ */
40
+ closeAll(): void;
41
+ /**
42
+ * Finds an open modal by its id.
43
+ */
44
+ getModalById(id: string): BaoModalRef<unknown> | undefined;
45
+ ngOnDestroy(): void;
46
+ /**
47
+ * Creates the overlay into which the modal will be loaded.
48
+ */
49
+ private _createOverlay;
50
+ /**
51
+ * Creates an overlay config from a modal config.
52
+ */
53
+ private _getOverlayConfig;
54
+ /**
55
+ * Attaches a modal container to a modal's already-created overlay.
56
+ */
57
+ private _attachModalContainer;
58
+ /**
59
+ * Attaches the user-provided component to the already-created modal container.
60
+ */
61
+ private _attachModalContent;
62
+ /**
63
+ * Creates a custom injector to be used inside the modal. This allows a component loaded inside
64
+ * of a modal to close itself and, optionally, to return a value.
65
+ */
66
+ private _createInjector;
67
+ /**
68
+ * Removes a modal from the array of open modals.
69
+ */
70
+ private _removeOpenModal;
71
+ /**
72
+ * Hides all of the content that isn't an overlay from assistive technology.
73
+ */
74
+ private _hideNonModalContentFromAssistiveTechnology;
75
+ /** Closes all of the modals in an array. */
76
+ private _closeModals;
77
+ /**
78
+ * Applies default options to the modal config.
79
+ */
80
+ private _applyConfigDefaults;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalBase<any>, never>;
82
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoModalBase<any>, never, never, {}, {}, never>;
83
+ }
84
+ /**
85
+ * Service to open modal.
86
+ */
87
+ export declare class BaoModal extends BaoModalBase<BaoModalContainer> {
88
+ constructor(overlay: Overlay, injector: Injector, parentModal: BaoModal, overlayContainer: OverlayContainer, animationMode?: 'NoopAnimations' | 'BrowserAnimations');
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModal, [null, null, { optional: true; skipSelf: true; }, null, { optional: true; }]>;
90
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoModal>;
91
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./modal-container";
3
+ import * as i2 from "./modal-directives";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/cdk/overlay";
6
+ import * as i5 from "@angular/cdk/portal";
7
+ import * as i6 from "@angular/platform-browser/animations";
8
+ export declare class BaoModalModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModalModule, [typeof i1.BaoModalContainer, typeof i2.BaoModalClose], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.BrowserAnimationsModule, typeof i6.NoopAnimationsModule], [typeof i1.BaoModalContainer, typeof i2.BaoModalClose]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoModalModule>;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=8.0.0 <14.0.0",
6
6
  "@angular/common": ">=8.0.0 <14.0.0",
package/public-api.d.ts CHANGED
@@ -15,3 +15,4 @@ export * from './lib/summary/index';
15
15
  export * from './lib/shared';
16
16
  export * from './lib/avatar';
17
17
  export * from './lib/tabs';
18
+ export * from './lib/modal';