@villedemontreal/angular-ui 2.2.1 → 3.1.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/esm2020/lib/alert/alert.component.mjs +24 -26
- package/esm2020/lib/alert/module.mjs +5 -5
- package/esm2020/lib/avatar/avatar.component.mjs +102 -0
- package/esm2020/lib/avatar/index.mjs +8 -0
- package/esm2020/lib/avatar/module.mjs +24 -0
- package/esm2020/lib/badge/badge.component.mjs +3 -3
- package/esm2020/lib/badge/module.mjs +5 -5
- package/esm2020/lib/bao.module.mjs +24 -14
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +8 -8
- package/esm2020/lib/breadcrumb/module.mjs +5 -5
- package/esm2020/lib/button/button.component.mjs +7 -7
- package/esm2020/lib/button/module.mjs +5 -5
- package/esm2020/lib/card/card.component.mjs +15 -15
- package/esm2020/lib/card/module.mjs +5 -5
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +8 -9
- package/esm2020/lib/checkbox/checkbox.component.mjs +45 -46
- package/esm2020/lib/checkbox/module.mjs +5 -5
- package/esm2020/lib/common-components/error-text/errorText.component.mjs +3 -3
- package/esm2020/lib/common-components/guiding-text/guidingText.component.mjs +3 -3
- package/esm2020/lib/common-components/label-text/labelText.component.mjs +3 -3
- package/esm2020/lib/common-components/module.mjs +5 -5
- package/esm2020/lib/common-components/title-text/titleText.component.mjs +3 -3
- package/esm2020/lib/header-info/header-info.component.mjs +18 -18
- package/esm2020/lib/header-info/module.mjs +5 -5
- package/esm2020/lib/icon/bao-icon-registry.mjs +3 -3
- package/esm2020/lib/icon/icon.component.mjs +30 -34
- package/esm2020/lib/icon/icons-dictionary.mjs +3 -2
- package/esm2020/lib/icon/module.mjs +5 -5
- package/esm2020/lib/list/list.component.mjs +15 -15
- package/esm2020/lib/list/module.mjs +5 -5
- package/esm2020/lib/modal/index.mjs +12 -0
- package/esm2020/lib/modal/modal-animations.mjs +29 -0
- package/esm2020/lib/modal/modal-config.mjs +65 -0
- package/esm2020/lib/modal/modal-container.mjs +254 -0
- package/esm2020/lib/modal/modal-directives.mjs +84 -0
- package/esm2020/lib/modal/modal-ref.mjs +195 -0
- package/esm2020/lib/modal/modal.mjs +293 -0
- package/esm2020/lib/modal/module.mjs +44 -0
- package/esm2020/lib/radio/module.mjs +10 -12
- package/esm2020/lib/radio/radio-group.component.mjs +43 -44
- package/esm2020/lib/radio/radio.component.mjs +45 -46
- package/esm2020/lib/summary/list-summary.component.mjs +9 -16
- package/esm2020/lib/summary/module.mjs +5 -5
- package/esm2020/lib/summary/summary.component.mjs +10 -11
- package/esm2020/lib/tabs/index.mjs +8 -0
- package/esm2020/lib/tabs/module.mjs +35 -0
- package/esm2020/lib/tabs/tabs.component.mjs +295 -0
- package/esm2020/lib/tag/module.mjs +5 -5
- package/esm2020/lib/tag/tag.component.mjs +5 -5
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/villedemontreal-angular-ui.mjs +1778 -384
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +1770 -384
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/{villedemontreal-angular-ui.d.ts → index.d.ts} +0 -0
- package/lib/alert/alert.component.d.ts +6 -7
- package/lib/avatar/avatar.component.d.ts +26 -0
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/module.d.ts +8 -0
- package/lib/badge/badge.component.d.ts +1 -1
- package/lib/bao.module.d.ts +4 -1
- package/lib/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/lib/button/button.component.d.ts +2 -2
- package/lib/card/card.component.d.ts +5 -5
- package/lib/checkbox/checkbox-group.component.d.ts +3 -3
- package/lib/checkbox/checkbox.component.d.ts +28 -28
- package/lib/common-components/error-text/errorText.component.d.ts +1 -1
- package/lib/common-components/guiding-text/guidingText.component.d.ts +1 -1
- package/lib/common-components/label-text/labelText.component.d.ts +1 -1
- package/lib/common-components/title-text/titleText.component.d.ts +1 -1
- package/lib/header-info/header-info.component.d.ts +6 -6
- package/lib/icon/icon.component.d.ts +11 -11
- package/lib/list/list.component.d.ts +5 -5
- package/lib/modal/index.d.ts +6 -0
- package/lib/modal/modal-animations.d.ts +8 -0
- package/lib/modal/modal-config.d.ts +105 -0
- package/lib/modal/modal-container.d.ts +106 -0
- package/lib/modal/modal-directives.d.ts +25 -0
- package/lib/modal/modal-ref.d.ts +91 -0
- package/lib/modal/modal.d.ts +91 -0
- package/lib/modal/module.d.ts +12 -0
- package/lib/radio/radio-group.component.d.ts +19 -19
- package/lib/radio/radio.component.d.ts +28 -28
- package/lib/summary/list-summary.component.d.ts +2 -2
- package/lib/summary/summary.component.d.ts +7 -7
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/module.d.ts +8 -0
- package/lib/tabs/tabs.component.d.ts +95 -0
- package/lib/tag/tag.component.d.ts +2 -2
- package/package.json +7 -7
- package/public-api.d.ts +3 -0
|
@@ -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, never, false>;
|
|
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, false>;
|
|
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, never, false>;
|
|
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, never, false>;
|
|
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
|
+
}
|
|
@@ -8,6 +8,19 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare const BAO_RADIO_GROUP: InjectionToken<BaoRadioButtonGroupComponent>;
|
|
9
9
|
export declare class BaoRadioButtonGroupComponent implements AfterContentInit, ControlValueAccessor, AfterViewInit {
|
|
10
10
|
private cdr;
|
|
11
|
+
/**
|
|
12
|
+
* The checkbox group ID. It is set dynamically with an unique ID by default
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Emit the value of the selected radio button
|
|
17
|
+
*/
|
|
18
|
+
readonly change: EventEmitter<string>;
|
|
19
|
+
private staticContainer;
|
|
20
|
+
/**
|
|
21
|
+
* The aria-describedby for web accessibilty
|
|
22
|
+
*/
|
|
23
|
+
ariaDescribedby: string | null;
|
|
11
24
|
private _radios;
|
|
12
25
|
private _value;
|
|
13
26
|
private _name;
|
|
@@ -16,45 +29,32 @@ export declare class BaoRadioButtonGroupComponent implements AfterContentInit, C
|
|
|
16
29
|
private _disabled;
|
|
17
30
|
private _required;
|
|
18
31
|
private _uniqueId;
|
|
19
|
-
|
|
20
|
-
* The checkbox group ID. It is set dynamically with an unique ID by default
|
|
21
|
-
*/
|
|
22
|
-
id: string;
|
|
32
|
+
constructor(cdr: ChangeDetectorRef);
|
|
23
33
|
/**
|
|
24
34
|
* Define the name property of all radio buttons. Default : null
|
|
25
35
|
*/
|
|
26
36
|
get name(): string | null;
|
|
27
|
-
set name(value: string | null);
|
|
28
37
|
/**
|
|
29
38
|
* Define the value of the selected radio button. Default : null
|
|
30
39
|
*/
|
|
31
40
|
get value(): string | null;
|
|
32
|
-
set value(newValue: string | null);
|
|
33
41
|
/**
|
|
34
42
|
* Define which radio button is selected. Default : null
|
|
35
43
|
*/
|
|
36
44
|
get selected(): BaoRadioButtonComponent | null;
|
|
37
|
-
set selected(selected: BaoRadioButtonComponent | null);
|
|
38
45
|
/**
|
|
39
46
|
* Whether the radio button groupd is disabled. Default : false
|
|
40
47
|
*/
|
|
41
48
|
get disabled(): boolean;
|
|
42
|
-
set disabled(value: boolean);
|
|
43
49
|
/**
|
|
44
50
|
* Whether the radio button groupd is required. Default : false
|
|
45
51
|
*/
|
|
46
52
|
get required(): boolean;
|
|
53
|
+
set name(value: string | null);
|
|
54
|
+
set value(newValue: string | null);
|
|
55
|
+
set selected(selected: BaoRadioButtonComponent | null);
|
|
56
|
+
set disabled(value: boolean);
|
|
47
57
|
set required(value: boolean);
|
|
48
|
-
/**
|
|
49
|
-
* Emit the value of the selected radio button
|
|
50
|
-
*/
|
|
51
|
-
readonly change: EventEmitter<string>;
|
|
52
|
-
/**
|
|
53
|
-
* The aria-describedby for web accessibilty
|
|
54
|
-
*/
|
|
55
|
-
ariaDescribedby: string | null;
|
|
56
|
-
private staticContainer;
|
|
57
|
-
constructor(cdr: ChangeDetectorRef);
|
|
58
58
|
ngAfterContentInit(): void;
|
|
59
59
|
ngAfterViewInit(): void;
|
|
60
60
|
/**
|
|
@@ -106,5 +106,5 @@ export declare class BaoRadioButtonGroupComponent implements AfterContentInit, C
|
|
|
106
106
|
private showAriaDescribedBy;
|
|
107
107
|
private onTouch;
|
|
108
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonGroupComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": "id"; "name": "name"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, ["
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": "id"; "name": "name"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, ["staticContainer"], ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false>;
|
|
110
110
|
}
|
|
@@ -8,11 +8,6 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
8
8
|
private cdr;
|
|
9
9
|
private focusMonitor;
|
|
10
10
|
private radioDispatcher;
|
|
11
|
-
private _checked;
|
|
12
|
-
private _disabled;
|
|
13
|
-
private _required;
|
|
14
|
-
private _value;
|
|
15
|
-
private _uniqueId;
|
|
16
11
|
/**
|
|
17
12
|
* The radio button ID. It is set dynamically with an unique ID by default
|
|
18
13
|
*/
|
|
@@ -33,26 +28,6 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
33
28
|
* The name property of the radio button
|
|
34
29
|
*/
|
|
35
30
|
name: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the radio button is checked. Default : false
|
|
38
|
-
*/
|
|
39
|
-
get checked(): boolean;
|
|
40
|
-
set checked(value: boolean);
|
|
41
|
-
/**
|
|
42
|
-
* Define the radio button value. Default : null
|
|
43
|
-
*/
|
|
44
|
-
get value(): string;
|
|
45
|
-
set value(value: string);
|
|
46
|
-
/**
|
|
47
|
-
* Whether the radio button is disabled. Default : false
|
|
48
|
-
*/
|
|
49
|
-
get disabled(): boolean;
|
|
50
|
-
set disabled(value: boolean);
|
|
51
|
-
/**
|
|
52
|
-
* Whether the radio button is required. Default : false
|
|
53
|
-
*/
|
|
54
|
-
get required(): boolean;
|
|
55
|
-
set required(value: boolean);
|
|
56
31
|
/**
|
|
57
32
|
* The visible state of the label
|
|
58
33
|
*/
|
|
@@ -81,8 +56,33 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
81
56
|
* The ID of the input html element
|
|
82
57
|
*/
|
|
83
58
|
inputID: string;
|
|
84
|
-
|
|
59
|
+
private _checked;
|
|
60
|
+
private _disabled;
|
|
61
|
+
private _required;
|
|
62
|
+
private _value;
|
|
63
|
+
private _uniqueId;
|
|
64
|
+
constructor(radioGroup: BaoRadioButtonGroupComponent, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor, radioDispatcher: UniqueSelectionDispatcher);
|
|
65
|
+
/**
|
|
66
|
+
* Whether the radio button is checked. Default : false
|
|
67
|
+
*/
|
|
68
|
+
get checked(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Define the radio button value. Default : null
|
|
71
|
+
*/
|
|
72
|
+
get value(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the radio button is disabled. Default : false
|
|
75
|
+
*/
|
|
76
|
+
get disabled(): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the radio button is required. Default : false
|
|
79
|
+
*/
|
|
80
|
+
get required(): boolean;
|
|
85
81
|
get nativeElement(): HTMLElement;
|
|
82
|
+
set checked(value: boolean);
|
|
83
|
+
set value(value: string);
|
|
84
|
+
set disabled(value: boolean);
|
|
85
|
+
set required(value: boolean);
|
|
86
86
|
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
87
87
|
/**
|
|
88
88
|
* Method called from the parent as one of the parent input has changed. Prevent change detection error.
|
|
@@ -104,9 +104,9 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
104
104
|
/** Unregister function for radioDispatcher */
|
|
105
105
|
private _removeUniqueSelectionListener;
|
|
106
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonComponent, [{ optional: true; }, null, null, null, null]>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonComponent, "bao-radio-button, [bao-radio-button]", never, { "id": "id"; "ariaLabel": "aria-label"; "brandBorder": "brandBorder"; "inline": "inline"; "name": "name"; "checked": "checked"; "value": "value"; "disabled": "disabled"; "required": "required";
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonComponent, "bao-radio-button, [bao-radio-button]", never, { "id": "id"; "ariaLabel": "aria-label"; "brandBorder": "brandBorder"; "inline": "inline"; "name": "name"; "hiddenLabel": "hiddenLabel"; "checked": "checked"; "value": "value"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, never, ["*", "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]"], false>;
|
|
108
108
|
}
|
|
109
109
|
export declare class BaoRadioDescription {
|
|
110
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioDescription, never>;
|
|
111
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoRadioDescription, "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]", never, {}, {}, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoRadioDescription, "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]", never, {}, {}, never, never, false>;
|
|
112
112
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class BaoListSummaryItem {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoListSummaryItem, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummaryItem, "bao-list-summary-item, [bao-list-summary-item], [baoListSummaryItem]", never, {}, {}, never, ["*"]>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummaryItem, "bao-list-summary-item, [bao-list-summary-item], [baoListSummaryItem]", never, {}, {}, never, ["*"], false>;
|
|
5
5
|
}
|
|
6
6
|
export declare class BaoListSummary {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoListSummary, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummary, "bao-list-summary, [bao-list-summary], [baoListSummary]", never, {}, {}, never, ["*"]>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummary, "bao-list-summary, [bao-list-summary], [baoListSummary]", never, {}, {}, never, ["*"], false>;
|
|
9
9
|
}
|
|
@@ -9,10 +9,6 @@ export declare class BaoSummaryComponent implements OnInit, AfterViewInit {
|
|
|
9
9
|
* COMPACT (viewport width < 576px)
|
|
10
10
|
*/
|
|
11
11
|
displayMode: EDisplayMode;
|
|
12
|
-
/**
|
|
13
|
-
* Initialize the ID for summary
|
|
14
|
-
*/
|
|
15
|
-
private _uniqueId;
|
|
16
12
|
/**
|
|
17
13
|
* Set value of unique ID for bao-label
|
|
18
14
|
*/
|
|
@@ -31,17 +27,21 @@ export declare class BaoSummaryComponent implements OnInit, AfterViewInit {
|
|
|
31
27
|
* The aria-labelledby id for web accessibility
|
|
32
28
|
*/
|
|
33
29
|
ariaLabelledby?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Initialize the ID for summary
|
|
32
|
+
*/
|
|
33
|
+
private _uniqueId;
|
|
34
34
|
private attribues;
|
|
35
|
-
constructor(elementRef: ElementRef);
|
|
35
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
36
36
|
get nativeElement(): HTMLElement;
|
|
37
37
|
ngOnInit(): void;
|
|
38
38
|
ngAfterViewInit(): void;
|
|
39
39
|
setAriaDescribedByToDescription(): void;
|
|
40
40
|
private elementNode;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoSummaryComponent, "bao-summary, [bao-summary], [baoSummary]", never, { "displayMode": "displayMode"; "id": "id"; }, {}, never, ["bao-label", "bao-guiding-text, [bao-guiding-text]", "bao-title-text, [bao-title-text]", "bao-summary-description", "bao-list-summary, [bao-list-summary], [baoListSummary]", "button[bao-button]", "bao-error, [bao-error]"]>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoSummaryComponent, "bao-summary, [bao-summary], [baoSummary]", never, { "displayMode": "displayMode"; "id": "id"; }, {}, never, ["bao-label", "bao-guiding-text, [bao-guiding-text]", "bao-title-text, [bao-title-text]", "bao-summary-description", "bao-list-summary, [bao-list-summary], [baoListSummary]", "button[bao-button]", "bao-error, [bao-error]"], false>;
|
|
43
43
|
}
|
|
44
44
|
export declare class BaoSummaryDescription {
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryDescription, never>;
|
|
46
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoSummaryDescription, "bao-summary-description, [bao-summary-description], [baoSummaryDescription]", never, {}, {}, never>;
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoSummaryDescription, "bao-summary-description, [bao-summary-description], [baoSummaryDescription]", never, {}, {}, never, never, false>;
|
|
47
47
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tabs.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class BaoTabsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaoTabsModule, [typeof i1.BaoTabsContainer, typeof i1.BaoTablistComponent, typeof i1.BaoTabHeader, typeof i1.BaoTabPanel], [typeof i2.CommonModule], [typeof i1.BaoTabsContainer, typeof i1.BaoTablistComponent, typeof i1.BaoTabHeader, typeof i1.BaoTabPanel]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BaoTabsModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BaoTabHeader implements AfterViewInit {
|
|
4
|
+
private renderer;
|
|
5
|
+
private elementRef;
|
|
6
|
+
/**
|
|
7
|
+
* Emits its index when tab is clicked
|
|
8
|
+
*/
|
|
9
|
+
onTabClick: EventEmitter<string>;
|
|
10
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
11
|
+
get nativeElement(): HTMLElement;
|
|
12
|
+
onClick(el: HTMLElement): void;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabHeader, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabHeader, "bao-tab-header, [bao-tab-header]", ["baoTabHeader"], {}, { "onTabClick": "onTabClick"; }, never, never, false>;
|
|
16
|
+
}
|
|
17
|
+
export declare class BaoTabPanel implements AfterViewInit {
|
|
18
|
+
private renderer;
|
|
19
|
+
private elementRef;
|
|
20
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
21
|
+
get nativeElement(): HTMLElement;
|
|
22
|
+
ngAfterViewInit(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabPanel, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabPanel, "bao-panel, [bao-panel]", ["baoPanel"], {}, {}, never, never, false>;
|
|
25
|
+
}
|
|
26
|
+
export declare class BaoTablistComponent implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
27
|
+
private renderer;
|
|
28
|
+
private elementRef;
|
|
29
|
+
tabHeaders: QueryList<BaoTabHeader>;
|
|
30
|
+
/**
|
|
31
|
+
* Size of the tabs displayed
|
|
32
|
+
*/
|
|
33
|
+
size: 'small' | 'medium' | 'large';
|
|
34
|
+
/**
|
|
35
|
+
* Optionnal value to be used as aria-label property on tablist component
|
|
36
|
+
*/
|
|
37
|
+
ariaLabel: string;
|
|
38
|
+
/**
|
|
39
|
+
* Emits the index of the new active tab
|
|
40
|
+
*/
|
|
41
|
+
activeTabChange: EventEmitter<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Index of the tab that is currently active
|
|
44
|
+
*/
|
|
45
|
+
private activeTabIndex;
|
|
46
|
+
/**
|
|
47
|
+
* Unique ID for every instance of BaoTablist component
|
|
48
|
+
*/
|
|
49
|
+
private uniqueId;
|
|
50
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
51
|
+
get nativeElement(): HTMLElement;
|
|
52
|
+
get tabs(): HTMLCollection;
|
|
53
|
+
leftKeyEvent(): void;
|
|
54
|
+
rightKeyEvent(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Makes the focus visible on tab header when changing from mouse to keyboard navigation
|
|
57
|
+
*/
|
|
58
|
+
tabKeyEvent(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Makes the focus visible on tab header when changing from mouse to keyboard navigation
|
|
61
|
+
*/
|
|
62
|
+
tabShiftKeyEvent(): void;
|
|
63
|
+
ngAfterViewInit(): void;
|
|
64
|
+
ngAfterContentInit(): void;
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
private setTablistAttributes;
|
|
67
|
+
private setInitialActiveTab;
|
|
68
|
+
private changeActiveTab;
|
|
69
|
+
/**
|
|
70
|
+
* Finds the next activable tab index when navigating with left and right arrow keys
|
|
71
|
+
* @param currentIndex Tab index which currently has focus
|
|
72
|
+
* @param isRight Whether the tab navigation is going in the right direction or not
|
|
73
|
+
* @returns Index of the new tab that will receive focus
|
|
74
|
+
*/
|
|
75
|
+
private getNextActivableTabIndex;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTablistComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoTablistComponent, "bao-tablist, [bao-tablist]", never, { "size": "size"; "ariaLabel": "ariaLabel"; }, { "activeTabChange": "activeTabChange"; }, ["tabHeaders"], ["*"], false>;
|
|
78
|
+
}
|
|
79
|
+
export declare class BaoTabsContainer implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
80
|
+
private renderer;
|
|
81
|
+
private elementRef;
|
|
82
|
+
tablist: BaoTablistComponent;
|
|
83
|
+
private panelIdPrefix;
|
|
84
|
+
private tabIdPrefix;
|
|
85
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
86
|
+
get tabs(): HTMLCollection;
|
|
87
|
+
get panels(): NodeListOf<Element>;
|
|
88
|
+
ngAfterViewInit(): void;
|
|
89
|
+
ngAfterContentInit(): void;
|
|
90
|
+
ngOnDestroy(): void;
|
|
91
|
+
private setInitialActivePanel;
|
|
92
|
+
private changeActivePanel;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabsContainer, never>;
|
|
94
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabsContainer, "bao-tabs, [bao-tabs]", ["baoTabs"], {}, {}, ["tablist"], never, false>;
|
|
95
|
+
}
|