@clr/angular
Version:
Angular components for Clarity
525 lines • 74 kB
JavaScript
/*
* Copyright (c) 2016-2025 Broadcom. All Rights Reserved.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { isPlatformBrowser } from '@angular/common';
import { Component, ContentChild, ContentChildren, EventEmitter, Inject, Input, Output, PLATFORM_ID, ViewChild, } from '@angular/core';
import { filter } from 'rxjs/operators';
import { ClrModal } from '../modal/modal';
import { uniqueIdFactory } from '../utils/id-generator/id-generator.service';
import { ButtonHubService } from './providers/button-hub.service';
import { HeaderActionService } from './providers/header-actions.service';
import { PageCollectionService } from './providers/page-collection.service';
import { WizardNavigationService } from './providers/wizard-navigation.service';
import { ClrWizardHeaderAction } from './wizard-header-action';
import { ClrWizardPage } from './wizard-page';
import { ClrWizardTitle } from './wizard-title';
import * as i0 from "@angular/core";
import * as i1 from "../utils";
import * as i2 from "./providers/wizard-navigation.service";
import * as i3 from "./providers/page-collection.service";
import * as i4 from "./providers/button-hub.service";
import * as i5 from "./providers/header-actions.service";
import * as i6 from "@angular/common";
import * as i7 from "../modal/modal";
import * as i8 from "../modal/modal-body";
import * as i9 from "../icon/icon";
import * as i10 from "./wizard-stepnav";
export class ClrWizard {
constructor(platformId, commonStrings, navService, pageCollection, buttonService, headerActionService, elementRef, differs) {
this.platformId = platformId;
this.commonStrings = commonStrings;
this.navService = navService;
this.pageCollection = pageCollection;
this.buttonService = buttonService;
this.headerActionService = headerActionService;
this.elementRef = elementRef;
/**
* Set the aria-label for the stepnav section of the wizard. Set using `[clrWizardStepnavAriaLabel]` input.
*/
this.stepnavAriaLabel = this.commonStrings.keys.wizardStepnavAriaLabel;
/**
* Set the modal size of the wizard. Set using `[clrWizardSize]` input.
*/
this.size = 'xl';
/**
* Enable "in page" wizard. Set using `[clrWizardInPage]` input.
*/
this.inPage = false;
/**
* Make an "in page" wizard fill the `.content-area`. Set using `[clrWizardInPageFillContentArea]` input.
* If you can't use this option, you will likely need to provide custom CSS to set the wizard's height and margins.
*/
this.inPageFillContentArea = false;
/**
* Tells the modal part of the wizard whether it should have a close "X"
* in the top right corner. Set using `[clrWizardClosable]` input.
*/
this.closable = true;
/**
* Used to communicate to the underlying modal that animations are not
* wanted. Primary use is for the display of static/inline wizards.
* Set using `[clrWizardPreventModalAnimation]` input.
*/
this._stopModalAnimations = false;
/**
* Emits when the wizard is opened or closed.
* Listen via `(clrWizardOpenChange)` event.
*/
this._openChanged = new EventEmitter(false);
/**
* Emits when the wizard is canceled. Listen via `(clrWizardOnCancel)` event.
* Can be combined with the `[clrWizardPreventDefaultCancel]` input to create
* wizard-level custom cancel routines.
*/
this.onCancel = new EventEmitter(false);
/**
* Emits when the wizard is completed. Listen via `(clrWizardOnFinish)` event.
* Can be combined with the `[clrWizardPreventDefaultNext]` input to create
* wizard-level custom completion routines.
*/
this.wizardFinished = new EventEmitter(false);
/**
* Emits when the wizard is reset. Listen via `(clrWizardOnReset)` event.
*/
this.onReset = new EventEmitter(false);
/**
* Emits when the current page has changed. Listen via `(clrWizardCurrentPageChanged)` event.
* output. Useful for non-blocking validation.
*/
this.currentPageChanged = new EventEmitter(false);
/**
* Emits when the wizard moves to the next page. Listen via `(clrWizardOnNext)` event.
* Can be combined with the `[clrWizardPreventDefaultNext]` input to create
* wizard-level custom navigation routines, which are useful for validation.
*/
this.onMoveNext = new EventEmitter(false);
/**
* Emits when the wizard moves to the previous page. Can be useful for validation.
* Listen via `(clrWizardOnPrevious)` event.
*/
this.onMovePrevious = new EventEmitter(false);
this._open = false;
this.wizardId = uniqueIdFactory();
this._forceForward = false;
this._stopNext = false;
this._stopCancel = false;
this._stopNavigation = false;
this._disableStepnav = false;
this.subscriptions = [];
this.subscriptions.push(this.listenForNextPageChanges(), this.listenForPreviousPageChanges(), this.listenForCancelChanges(), this.listenForFinishedChanges(), this.listenForPageChanges());
this.differ = differs.find([]).create(null);
}
/**
* Resets page completed states when navigating backwards.
* Set using `[clrWizardForceForwardNavigation]` input.
*/
get forceForward() {
return this._forceForward;
}
set forceForward(value) {
this._forceForward = !!value;
this.navService.forceForwardNavigation = value;
}
/**
* Toggles open/close of the wizard component.
* Set using the `[clrWizardOpen]` input.
*/
set clrWizardOpen(open) {
if (open) {
this.buttonService.buttonsReady = true;
}
this._open = open;
}
/**
* Prevents ClrWizard from moving to the next page or closing itself on finishing.
* Set using the `[clrWizardPreventDefaultNext]` input. Note that using stopNext
* will require you to create your own calls to .next() and .finish() in your
* host component to make the ClrWizard work as expected.
*/
get stopNext() {
return this._stopNext;
}
set stopNext(value) {
this._stopNext = !!value;
this.navService.wizardHasAltNext = value;
}
/**
* Prevents ClrWizard from closing when the cancel button or close "X" is clicked.
* Set using the `[clrWizardPreventDefaultCancel]` input.
*
* Note that using stopCancel will require you to create your own calls to `close()` in your host compone`nt
* to make the ClrWizard work as expected. Useful for doing checks or prompts
* before closing a ClrWizard.
*/
get stopCancel() {
return this._stopCancel;
}
set stopCancel(value) {
this._stopCancel = !!value;
this.navService.wizardHasAltCancel = value;
}
/**
* Prevents ClrWizard from performing any form of navigation away from the current
* page. Set using the `[clrWizardPreventNavigation]` input.
* Note that stopNavigation is meant to freeze the wizard in place, typically
* during a long validation or background action where you want the wizard to
* display loading content but not allow the user to execute navigation in
* the stepnav, close X, or the back, finish, or next buttons.
*/
get stopNavigation() {
return this._stopNavigation;
}
set stopNavigation(value) {
this._stopNavigation = !!value;
this.navService.wizardStopNavigation = value;
}
/**
* Prevents clicks on the links in the stepnav from working.
* Set using `[clrWizardDisableStepnav]` input.
* A more granular bypassing of navigation which can be useful when your
* ClrWizard is in a state of completion and you don't want users to be
* able to jump backwards and change things.
*/
get disableStepnav() {
return this._disableStepnav;
}
set disableStepnav(value) {
this._disableStepnav = !!value;
this.navService.wizardDisableStepnav = value;
}
get currentPage() {
return this.navService.currentPage;
}
set currentPage(page) {
this.navService.goTo(page, true);
}
get isLast() {
return this.navService.currentPageIsLast;
}
get isFirst() {
return this.navService.currentPageIsFirst;
}
get isInline() {
return this.elementRef.nativeElement.classList.contains('clr-wizard--inline');
}
get stopModalAnimations() {
return this._stopModalAnimations;
}
ngAfterContentInit() {
this.pageCollection.pages = this.pages;
this.headerActionService.wizardHeaderActions = this.headerActions;
if (this.inPage) {
this.open();
}
this.initializeButtons();
}
ngDoCheck() {
this.updateNavOnPageChanges();
}
ngOnDestroy() {
this.subscriptions.forEach(s => s.unsubscribe());
}
/**
* Marks Wizard as finished. By default it does not execute event
* emissions or checks before completing and closing. This method is commonly
* used as part of an alternative navigation with `[clrWizardPreventDefaultNext]`.
*
* If `skipChecksAndEmits` is true, the wizard will complete and close
* regardless of the state of its current page. This is useful for alternative
* navigation where event emissions have already been done and firing them again
* may cause an event loop.
*/
finish(skipChecksAndEmits = true) {
if (skipChecksAndEmits) {
this.forceFinish();
}
else {
this.navService.finish();
}
}
/**
* Marks the wizard as finished but does run checks and emissions.
* Good for a last step in an alternate workflow. Does the same thing as
* calling `ClrWizard.finish(true)` or `ClrWizard.finish()` without a parameter.
*/
forceFinish() {
if (this.stopNavigation) {
return;
}
this.close();
}
/**
* Opens the wizard. If there is no current page defined, sets the first page in the wizard to be current.
*/
open() {
this._open = true;
if (!this.currentPage) {
this.navService.setFirstPageCurrent();
}
// Only render buttons when wizard is opened, to avoid chocolate errors
this.buttonService.buttonsReady = true;
this._openChanged.emit(true);
}
/**
* Closes the wizard. Call this directly instead of `cancel()` to implement alternative cancel functionality.
*/
close() {
if (this.stopNavigation) {
return;
}
this._open = false;
this._openChanged.emit(false);
}
/**
* Used to open and close the wizard. By default the wizard will
* close if invoked with no parameter. If parameter is true wizard will open
* else if false will close.
*/
toggle(open) {
if (open) {
this.open();
}
else {
this.close();
}
}
/**
* Moves the wizard to the previous page.
*/
previous() {
this.navService.previous();
}
/**
* By default, `next()` does not execute event emissions.
* This method is commonly called as part of an alternative navigation
* with `[clrWizardPreventDefaultNext]`. The wizard will move to the next page
* regardless of the state of its current page. This is useful for alternative
* navigation where event emissions have already been done and firing them again
* may cause an event loop.
*
* If `skipChecksAndEmits` is false, the wizard will execute default checks
* and emit events as normal. This is useful for custom buttons or programmatic
* workflows that are not executing the wizards default checks and emissions.
* It is another way to navigate without having to rewrite the wizard’s default
* functionality from scratch.
*/
next(skipChecksAndEmits = true) {
if (skipChecksAndEmits) {
this.forceNext();
}
else {
this.navService.next();
}
}
/**
* Moves the wizard to the next page without the checks and emissions.
* Good for a last step in an alternate workflow.
* Alias for `ClrWizard.next(true)` or `ClrWizard.next()`
*/
forceNext() {
this.navService.forceNext();
}
/**
* Cancels and closes the wizard. Do not use this for an override of the cancel
* the functionality with `[clrWizardPreventDefaultCancel]`, `[clrWizardPreventPageDefaultCancel]`,
* or `[clrWizardPagePreventDefault]` because it will initiate the same checks
* and event emissions that invoked your event handler. Use `ClrWizard.close()` instead.
*/
cancel() {
this.navService.cancel();
}
/**
* Overrides behavior of the underlying modal to avoid collisions with
* alternative cancel functionality. In most cases, use `ClrWizard.cancel()` instead.
*/
modalCancel() {
if (this.closable) {
this.checkAndCancel();
}
}
/**
* Checks for alternative cancel flows defined at the current page or
* wizard level. Performs a canceled if not. Emits events that initiate
* the alternative cancel outputs `(clrWizardPageOnCancel)` and `(clrWizardOnCancel)`.
*/
checkAndCancel() {
const currentPage = this.currentPage;
const currentPageHasOverrides = currentPage.stopCancel || currentPage.preventDefault;
if (this.stopNavigation) {
return;
}
currentPage.pageOnCancel.emit();
if (!currentPageHasOverrides) {
this.onCancel.emit();
}
if (!this.stopCancel && !currentPageHasOverrides) {
this.close();
}
}
/**
* Navigates to a given page in the Wizard. Navigation will invoke the wizard’s default
* checks and event emissions.
*
* The format of the expected ID parameter can be found in the return of the
* ClrWizardPage.id getter, usually prefixed with `clr-wizard-page-` and then either a
* numeric ID or the ID specified for the `ClrWizardPage` component’s `id` input.
*/
goTo(pageId) {
if (!pageId) {
return;
}
this.navService.goTo(pageId);
}
/**
* Reset sets all WizardPages to incomplete and sets the first page in the `ClrWizard` to
* be the current page, resetting the wizard navigation.
* Use `(clrWizardOnReset)` event to reset the data or model of your wizard.
*/
reset() {
this.pageCollection.reset();
this.onReset.emit();
}
listenForNextPageChanges() {
return this.navService.movedToNextPage.pipe(filter(() => isPlatformBrowser(this.platformId))).subscribe(() => {
this.onMoveNext.emit();
this.pageTitle?.nativeElement.focus();
});
}
listenForPreviousPageChanges() {
return this.navService.movedToPreviousPage.pipe(filter(() => isPlatformBrowser(this.platformId))).subscribe(() => {
this.onMovePrevious.emit();
this.pageTitle?.nativeElement.focus();
});
}
listenForCancelChanges() {
return this.navService.notifyWizardCancel.subscribe(() => this.checkAndCancel());
}
listenForFinishedChanges() {
return this.navService.wizardFinished.subscribe(() => this.emitWizardFinished());
}
listenForPageChanges() {
return this.navService.currentPageChanged.subscribe(() => {
// Added to address VPAT-749:
// When clicking on a wizard tab, focus should move to that
// tabs content to make the wizard more accessible.
this.pageTitle?.nativeElement.focus();
this.currentPageChanged.emit();
// scroll to top of page in case there is long page content
this.bodyElementRef?.nativeElement.scrollTo(0, 0);
});
}
updateNavOnPageChanges() {
const changes = this.differ.diff(this.pages);
if (changes) {
changes.forEachAddedItem(() => this.navService.updateNavigation());
changes.forEachRemovedItem(() => this.navService.updateNavigation());
}
}
initializeButtons() {
// Only trigger buttons ready if default is open (inlined)
if (this._open) {
this.buttonService.buttonsReady = true;
}
}
emitWizardFinished() {
if (!this.stopNext) {
this.forceFinish();
}
this.wizardFinished.emit();
}
}
ClrWizard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrWizard, deps: [{ token: PLATFORM_ID }, { token: i1.ClrCommonStringsService }, { token: i2.WizardNavigationService }, { token: i3.PageCollectionService }, { token: i4.ButtonHubService }, { token: i5.HeaderActionService }, { token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
ClrWizard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.2", type: ClrWizard, selector: "clr-wizard", inputs: { stepnavAriaLabel: ["clrWizardStepnavAriaLabel", "stepnavAriaLabel"], size: ["clrWizardSize", "size"], inPage: ["clrWizardInPage", "inPage"], inPageFillContentArea: ["clrWizardInPageFillContentArea", "inPageFillContentArea"], closable: ["clrWizardClosable", "closable"], _stopModalAnimations: ["clrWizardPreventModalAnimation", "_stopModalAnimations"], forceForward: ["clrWizardForceForwardNavigation", "forceForward"], clrWizardOpen: "clrWizardOpen", stopNext: ["clrWizardPreventDefaultNext", "stopNext"], stopCancel: ["clrWizardPreventDefaultCancel", "stopCancel"], stopNavigation: ["clrWizardPreventNavigation", "stopNavigation"], disableStepnav: ["clrWizardDisableStepnav", "disableStepnav"] }, outputs: { _openChanged: "clrWizardOpenChange", onCancel: "clrWizardOnCancel", wizardFinished: "clrWizardOnFinish", onReset: "clrWizardOnReset", currentPageChanged: "clrWizardCurrentPageChanged", onMoveNext: "clrWizardOnNext", onMovePrevious: "clrWizardOnPrevious" }, host: { properties: { "class.clr-wizard": "true", "class.wizard-md": "size == 'md'", "class.wizard-lg": "size == 'lg'", "class.wizard-xl": "size == 'xl'", "class.wizard-in-page": "inPage", "class.wizard-in-page--fill-content-area": "inPage && inPageFillContentArea" } }, providers: [WizardNavigationService, PageCollectionService, ButtonHubService, HeaderActionService], queries: [{ propertyName: "wizardTitle", first: true, predicate: ClrWizardTitle, descendants: true }, { propertyName: "pages", predicate: ClrWizardPage, descendants: true }, { propertyName: "headerActions", predicate: ClrWizardHeaderAction }], viewQueries: [{ propertyName: "pageTitle", first: true, predicate: ["pageTitle"], descendants: true }, { propertyName: "bodyElementRef", first: true, predicate: ["body"], descendants: true }, { propertyName: "modal", first: true, predicate: ClrModal, descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright (c) 2016-2025 Broadcom. All Rights Reserved.\n ~ The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n -->\n\n<ng-container *ngIf=\"inPage; then wizardTemplate; else wizardModalTemplate\"></ng-container>\n\n<ng-template #wizardModalTemplate>\n <clr-modal\n [clrModalOpen]=\"_open\"\n [clrModalSize]=\"size\"\n [clrModalClosable]=\"closable\"\n [clrModalStaticBackdrop]=\"true\"\n [clrModalSkipAnimation]=\"stopModalAnimations\"\n [clrModalOverrideScrollService]=\"isInline\"\n [clrModalPreventClose]=\"true\"\n (clrModalAlternateClose)=\"modalCancel()\"\n [clrModalLabelledById]=\"wizardId\"\n >\n <ng-template #clrInternalModalContentTemplate>\n <ng-container [ngTemplateOutlet]=\"wizardTemplate\"></ng-container>\n </ng-template>\n </clr-modal>\n</ng-template>\n\n<!-- This template is tightly coupled to the modal styles. -->\n<ng-template #wizardTemplate>\n <div class=\"modal-content-wrapper\">\n <div class=\"modal-nav clr-wizard-stepnav-wrapper\" role=\"region\">\n <div class=\"clr-wizard-title\" [id]=\"wizardId\" role=\"heading\" [attr.aria-level]=\"wizardTitle.headingLevel || 1\">\n <ng-content select=\"clr-wizard-title\"></ng-content>\n </div>\n <clr-wizard-stepnav [label]=\"stepnavAriaLabel\"></clr-wizard-stepnav>\n </div>\n\n <div class=\"modal-content\">\n <div class=\"modal-header--accessible\">\n <div class=\"modal-title-wrapper\" #title cdkFocusInitial tabindex=\"-1\">\n <div\n class=\"modal-title\"\n role=\"heading\"\n [attr.aria-level]=\"navService.currentPage?.pageTitle.headingLevel || 2\"\n >\n <span tabindex=\"-1\" #pageTitle class=\"modal-title-text\">\n <ng-template [ngTemplateOutlet]=\"navService.currentPageTitle\"></ng-template>\n </span>\n\n <div class=\"modal-header-actions-wrapper\" *ngIf=\"headerActionService.displayHeaderActionsWrapper\">\n <div *ngIf=\"headerActionService.showWizardHeaderActions\">\n <ng-content select=\"clr-wizard-header-action\"></ng-content>\n </div>\n <div *ngIf=\"headerActionService.currentPageHasHeaderActions\">\n <ng-template [ngTemplateOutlet]=\"navService.currentPage.headerActions\"></ng-template>\n </div>\n </div>\n </div>\n </div>\n <button\n *ngIf=\"closable && !inPage\"\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"commonStrings.keys.close\"\n (click)=\"modalCancel()\"\n >\n <cds-icon shape=\"window-close\"></cds-icon>\n </button>\n </div>\n <div #body class=\"modal-body-wrapper\">\n <div class=\"modal-body\">\n <main clr-wizard-pages-wrapper class=\"clr-wizard-content\">\n <ng-content></ng-content>\n </main>\n </div>\n </div>\n <div class=\"modal-footer clr-wizard-footer\">\n <div class=\"clr-wizard-footer-buttons\">\n <div\n *ngIf=\"navService.currentPage && !navService.currentPage.hasButtons\"\n class=\"clr-wizard-footer-buttons-wrapper\"\n >\n <ng-content select=\"clr-wizard-button\"></ng-content>\n </div>\n <div\n *ngIf=\"navService.currentPage && navService.currentPage.hasButtons\"\n class=\"clr-wizard-footer-buttons-wrapper\"\n >\n <ng-template [ngTemplateOutlet]=\"navService.currentPage.buttons\"></ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i7.ClrModal, selector: "clr-modal", inputs: ["clrModalOpen", "clrModalClosable", "clrModalCloseButtonAriaLabel", "clrModalSize", "clrModalStaticBackdrop", "clrModalSkipAnimation", "clrModalPreventClose", "clrModalLabelledById", "clrModalOverrideScrollService"], outputs: ["clrModalOpenChange", "clrModalAlternateClose"] }, { kind: "directive", type: i8.ClrModalBody, selector: ".modal-body" }, { kind: "directive", type: i9.CdsIconCustomTag, selector: "cds-icon" }, { kind: "component", type: i10.ClrWizardStepnav, selector: "clr-wizard-stepnav", inputs: ["label"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrWizard, decorators: [{
type: Component,
args: [{ selector: 'clr-wizard', providers: [WizardNavigationService, PageCollectionService, ButtonHubService, HeaderActionService], host: {
'[class.clr-wizard]': 'true',
'[class.wizard-md]': "size == 'md'",
'[class.wizard-lg]': "size == 'lg'",
'[class.wizard-xl]': "size == 'xl'",
'[class.wizard-in-page]': 'inPage',
'[class.wizard-in-page--fill-content-area]': 'inPage && inPageFillContentArea',
}, template: "<!--\n ~ Copyright (c) 2016-2025 Broadcom. All Rights Reserved.\n ~ The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n -->\n\n<ng-container *ngIf=\"inPage; then wizardTemplate; else wizardModalTemplate\"></ng-container>\n\n<ng-template #wizardModalTemplate>\n <clr-modal\n [clrModalOpen]=\"_open\"\n [clrModalSize]=\"size\"\n [clrModalClosable]=\"closable\"\n [clrModalStaticBackdrop]=\"true\"\n [clrModalSkipAnimation]=\"stopModalAnimations\"\n [clrModalOverrideScrollService]=\"isInline\"\n [clrModalPreventClose]=\"true\"\n (clrModalAlternateClose)=\"modalCancel()\"\n [clrModalLabelledById]=\"wizardId\"\n >\n <ng-template #clrInternalModalContentTemplate>\n <ng-container [ngTemplateOutlet]=\"wizardTemplate\"></ng-container>\n </ng-template>\n </clr-modal>\n</ng-template>\n\n<!-- This template is tightly coupled to the modal styles. -->\n<ng-template #wizardTemplate>\n <div class=\"modal-content-wrapper\">\n <div class=\"modal-nav clr-wizard-stepnav-wrapper\" role=\"region\">\n <div class=\"clr-wizard-title\" [id]=\"wizardId\" role=\"heading\" [attr.aria-level]=\"wizardTitle.headingLevel || 1\">\n <ng-content select=\"clr-wizard-title\"></ng-content>\n </div>\n <clr-wizard-stepnav [label]=\"stepnavAriaLabel\"></clr-wizard-stepnav>\n </div>\n\n <div class=\"modal-content\">\n <div class=\"modal-header--accessible\">\n <div class=\"modal-title-wrapper\" #title cdkFocusInitial tabindex=\"-1\">\n <div\n class=\"modal-title\"\n role=\"heading\"\n [attr.aria-level]=\"navService.currentPage?.pageTitle.headingLevel || 2\"\n >\n <span tabindex=\"-1\" #pageTitle class=\"modal-title-text\">\n <ng-template [ngTemplateOutlet]=\"navService.currentPageTitle\"></ng-template>\n </span>\n\n <div class=\"modal-header-actions-wrapper\" *ngIf=\"headerActionService.displayHeaderActionsWrapper\">\n <div *ngIf=\"headerActionService.showWizardHeaderActions\">\n <ng-content select=\"clr-wizard-header-action\"></ng-content>\n </div>\n <div *ngIf=\"headerActionService.currentPageHasHeaderActions\">\n <ng-template [ngTemplateOutlet]=\"navService.currentPage.headerActions\"></ng-template>\n </div>\n </div>\n </div>\n </div>\n <button\n *ngIf=\"closable && !inPage\"\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"commonStrings.keys.close\"\n (click)=\"modalCancel()\"\n >\n <cds-icon shape=\"window-close\"></cds-icon>\n </button>\n </div>\n <div #body class=\"modal-body-wrapper\">\n <div class=\"modal-body\">\n <main clr-wizard-pages-wrapper class=\"clr-wizard-content\">\n <ng-content></ng-content>\n </main>\n </div>\n </div>\n <div class=\"modal-footer clr-wizard-footer\">\n <div class=\"clr-wizard-footer-buttons\">\n <div\n *ngIf=\"navService.currentPage && !navService.currentPage.hasButtons\"\n class=\"clr-wizard-footer-buttons-wrapper\"\n >\n <ng-content select=\"clr-wizard-button\"></ng-content>\n </div>\n <div\n *ngIf=\"navService.currentPage && navService.currentPage.hasButtons\"\n class=\"clr-wizard-footer-buttons-wrapper\"\n >\n <ng-template [ngTemplateOutlet]=\"navService.currentPage.buttons\"></ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n" }]
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
type: Inject,
args: [PLATFORM_ID]
}] }, { type: i1.ClrCommonStringsService }, { type: i2.WizardNavigationService }, { type: i3.PageCollectionService }, { type: i4.ButtonHubService }, { type: i5.HeaderActionService }, { type: i0.ElementRef }, { type: i0.IterableDiffers }]; }, propDecorators: { stepnavAriaLabel: [{
type: Input,
args: ['clrWizardStepnavAriaLabel']
}], size: [{
type: Input,
args: ['clrWizardSize']
}], inPage: [{
type: Input,
args: ['clrWizardInPage']
}], inPageFillContentArea: [{
type: Input,
args: ['clrWizardInPageFillContentArea']
}], closable: [{
type: Input,
args: ['clrWizardClosable']
}], _stopModalAnimations: [{
type: Input,
args: ['clrWizardPreventModalAnimation']
}], _openChanged: [{
type: Output,
args: ['clrWizardOpenChange']
}], onCancel: [{
type: Output,
args: ['clrWizardOnCancel']
}], wizardFinished: [{
type: Output,
args: ['clrWizardOnFinish']
}], onReset: [{
type: Output,
args: ['clrWizardOnReset']
}], currentPageChanged: [{
type: Output,
args: ['clrWizardCurrentPageChanged']
}], onMoveNext: [{
type: Output,
args: ['clrWizardOnNext']
}], onMovePrevious: [{
type: Output,
args: ['clrWizardOnPrevious']
}], pageTitle: [{
type: ViewChild,
args: ['pageTitle']
}], pages: [{
type: ContentChildren,
args: [ClrWizardPage, { descendants: true }]
}], headerActions: [{
type: ContentChildren,
args: [ClrWizardHeaderAction]
}], wizardTitle: [{
type: ContentChild,
args: [ClrWizardTitle]
}], bodyElementRef: [{
type: ViewChild,
args: ['body']
}], modal: [{
type: ViewChild,
args: [ClrModal]
}], forceForward: [{
type: Input,
args: ['clrWizardForceForwardNavigation']
}], clrWizardOpen: [{
type: Input,
args: ['clrWizardOpen']
}], stopNext: [{
type: Input,
args: ['clrWizardPreventDefaultNext']
}], stopCancel: [{
type: Input,
args: ['clrWizardPreventDefaultCancel']
}], stopNavigation: [{
type: Input,
args: ['clrWizardPreventNavigation']
}], disableStepnav: [{
type: Input,
args: ['clrWizardDisableStepnav']
}] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l6YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvd2l6YXJkL3dpemFyZC50cyIsIi4uLy4u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