UNPKG

@skyux/indicators

Version:

This library was generated with [Nx](https://nx.dev).

507 lines (497 loc) 168 kB
import * as i1 from '@angular/common'; import { CommonModule, NgClass } from '@angular/common'; import * as i0 from '@angular/core'; import { NgModule, EventEmitter, inject, Output, Input, Component, Injectable, input, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, ElementRef, HostBinding, Directive, ViewChild, Injector, signal, afterNextRender, ViewChildren, EnvironmentInjector } from '@angular/core'; import * as i3 from '@skyux/icon'; import { SkyIconModule } from '@skyux/icon'; import * as i1$1 from '@skyux/theme'; import { SkyThemeComponentClassDirective, SkyThemeModule } from '@skyux/theme'; import * as i4 from '@skyux/i18n'; import { SkyLibResourcesService, SkyI18nModule } from '@skyux/i18n'; import * as i4$1 from '@skyux/core'; import { SkyLogService, SkyTrimModule, SkyIdModule, SkyMutationObserverService, SkyLiveAnnouncerService, SkyScreenReaderLabelDirective, SkyAppWindowRef, SkyDynamicComponentService } from '@skyux/core'; import { toSignal, toObservable } from '@angular/core/rxjs-interop'; import { switchMap, from, of, catchError, take, Subject, BehaviorSubject, defer } from 'rxjs'; import * as i1$2 from '@skyux/help-inline'; import { SkyHelpInlineModule } from '@skyux/help-inline'; import { takeUntil, take as take$1, finalize } from 'rxjs/operators'; /* istanbul ignore file */ /** * NOTICE: DO NOT MODIFY THIS FILE! * The contents of this file were automatically generated by * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-indicators' schematic. * To update this file, simply rerun the command. */ const RESOURCES = { 'EN-US': { skyux_alert_close: { message: 'Close the alert' }, skyux_alert_sr_attention: { message: 'Attention:' }, skyux_alert_sr_caution: { message: 'Caution:' }, skyux_alert_sr_completed: { message: 'Completed:' }, skyux_alert_sr_danger: { message: 'Danger:' }, skyux_alert_sr_error: { message: 'Error:' }, skyux_alert_sr_important_info: { message: 'Important information:' }, skyux_alert_sr_important_warning: { message: 'Important warning:' }, skyux_alert_sr_success: { message: 'Success:' }, skyux_alert_sr_warning: { message: 'Warning:' }, skyux_help_inline_button_title: { message: 'Show help content' }, skyux_label_sr_attention: { message: 'Attention:' }, skyux_label_sr_caution: { message: 'Caution:' }, skyux_label_sr_completed: { message: 'Completed:' }, skyux_label_sr_danger: { message: 'Danger:' }, skyux_label_sr_error: { message: 'Error:' }, skyux_label_sr_important_info: { message: 'Important information:' }, skyux_label_sr_important_warning: { message: 'Important warning:' }, skyux_label_sr_success: { message: 'Success:' }, skyux_label_sr_warning: { message: 'Warning:' }, skyux_status_indicator_sr_attention: { message: 'Attention:' }, skyux_status_indicator_sr_caution: { message: 'Caution:' }, skyux_status_indicator_sr_completed: { message: 'Completed:' }, skyux_status_indicator_sr_danger: { message: 'Danger:' }, skyux_status_indicator_sr_error: { message: 'Error:' }, skyux_status_indicator_sr_important_info: { message: 'Important information:', }, skyux_status_indicator_sr_important_warning: { message: 'Important warning:', }, skyux_status_indicator_sr_success: { message: 'Success:' }, skyux_status_indicator_sr_warning: { message: 'Warning:' }, skyux_tokens_dismiss_button_default_label: { message: 'Remove ' }, skyux_tokens_dismiss_button_title: { message: 'Remove item' }, skyux_tokens_token_dismissed: { message: '{0} removed' }, skyux_wait_aria_alt_text: { message: 'Loading.' }, skyux_wait_blocking_aria_alt_text: { message: 'Loading. Please wait.' }, skyux_wait_page_aria_alt_text: { message: 'Page loading.' }, skyux_wait_page_blocking_aria_alt_text: { message: 'Page loading. Please wait.', }, skyux_wait_screen_reader_completed_text: { message: 'Loading complete.' }, skyux_wait_page_screen_reader_completed_text: { message: 'Page loading complete.', }, }, 'FR-CA': { skyux_alert_close: { message: 'Fermer l’alerte' }, skyux_alert_sr_attention: { message: 'Attention :' }, skyux_alert_sr_caution: { message: 'Mise en garde :' }, skyux_alert_sr_completed: { message: 'Terminé :' }, skyux_alert_sr_danger: { message: 'Danger :' }, skyux_alert_sr_error: { message: 'Erreur :' }, skyux_alert_sr_important_info: { message: 'Information importante :' }, skyux_alert_sr_important_warning: { message: 'Avertissement important :' }, skyux_alert_sr_success: { message: 'Réussi :' }, skyux_alert_sr_warning: { message: 'Avertissement :' }, skyux_help_inline_button_title: { message: 'Afficher le contenu de l’aide', }, skyux_label_sr_attention: { message: 'Attention :' }, skyux_label_sr_caution: { message: 'Mise en garde :' }, skyux_label_sr_completed: { message: 'Terminé :' }, skyux_label_sr_danger: { message: 'Danger :' }, skyux_label_sr_error: { message: 'Erreur :' }, skyux_label_sr_important_info: { message: 'Information importante :' }, skyux_label_sr_important_warning: { message: 'Avertissement important :' }, skyux_label_sr_success: { message: 'Réussi :' }, skyux_label_sr_warning: { message: 'Avertissement :' }, skyux_status_indicator_sr_attention: { message: 'Attention :' }, skyux_status_indicator_sr_caution: { message: 'Mise en garde :' }, skyux_status_indicator_sr_completed: { message: 'Terminé :' }, skyux_status_indicator_sr_danger: { message: 'Danger :' }, skyux_status_indicator_sr_error: { message: 'Erreur :' }, skyux_status_indicator_sr_important_info: { message: 'Information importante :', }, skyux_status_indicator_sr_important_warning: { message: 'Avertissement important :', }, skyux_status_indicator_sr_success: { message: 'Réussi :' }, skyux_status_indicator_sr_warning: { message: 'Avertissement :' }, skyux_tokens_dismiss_button_default_label: { message: 'Retirer ' }, skyux_tokens_dismiss_button_title: { message: 'Retirer l’article' }, skyux_tokens_token_dismissed: { message: '{0} retiré' }, skyux_wait_aria_alt_text: { message: 'Chargement en cours.' }, skyux_wait_blocking_aria_alt_text: { message: 'Chargement en cours. Veuillez patienter.', }, skyux_wait_page_aria_alt_text: { message: 'Chargement de la page en cours.', }, skyux_wait_page_blocking_aria_alt_text: { message: 'Chargement de la page en cours. Veuillez patienter.', }, skyux_wait_screen_reader_completed_text: { message: 'Chargement terminé.' }, skyux_wait_page_screen_reader_completed_text: { message: 'Chargement de la page terminé.', }, }, }; SkyLibResourcesService.addResources(RESOURCES); /** * Import into any component library module that needs to use resource strings. */ class SkyIndicatorsResourcesModule { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIndicatorsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: SkyIndicatorsResourcesModule, exports: [SkyI18nModule] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIndicatorsResourcesModule, imports: [SkyI18nModule] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIndicatorsResourcesModule, decorators: [{ type: NgModule, args: [{ exports: [SkyI18nModule], }] }] }); /** * @internal */ class SkyIndicatorIconUtility { static getIconNameForType(indicatorType) { let icon; switch (indicatorType) { case 'danger': case 'warning': icon = 'warning'; break; case 'info': icon = 'info'; break; case 'success': icon = 'success'; break; } return icon; } } const ALERT_TYPE_DEFAULT = 'warning'; class SkyAlertComponent { constructor() { /** * Fires when users close the alert. */ this.closedChange = new EventEmitter(); this.iconName = SkyIndicatorIconUtility.getIconNameForType(ALERT_TYPE_DEFAULT); this.alertTypeOrDefault = ALERT_TYPE_DEFAULT; this.#resources = inject(SkyLibResourcesService); this.#logSvc = inject(SkyLogService); } /** * The style for the alert, which determines the icon and background color. * The valid options are `danger`, `info`, `success`, and `warning`. * @default "warning" */ set alertType(value) { if (value !== this.alertTypeOrDefault) { this.alertTypeOrDefault = value || ALERT_TYPE_DEFAULT; this.#updateAlertIcon(); } } /** * The predefined text to be read by screen readers for users who cannot see the alert icon. * This property is optional but will be required in future versions of SKY UX. */ set descriptionType(value) { this.#_descriptionType = value; this.#updateDescriptionComputed(); } get descriptionType() { return this.#_descriptionType; } /** * The text to be read by screen readers for users who cannot see * the indicator icon when `descriptionType` is `custom`. */ set customDescription(value) { this.#_customDescription = value; this.#updateDescriptionComputed(); } get customDescription() { return this.#_customDescription; } #_descriptionType; #_customDescription; #descriptionTypeResourceSubscription; #descriptionTypeWarned; #resources; #logSvc; ngOnInit() { this.#updateAlertIcon(); } ngAfterViewChecked() { if (!this.descriptionType && !this.#descriptionTypeWarned) { this.#logSvc.deprecated('SkyAlertComponent without `descriptionType`', { deprecationMajorVersion: 8, replacementRecommendation: 'Always specify a `descriptionType` property.', }); this.#descriptionTypeWarned = true; } } ngOnDestroy() { this.#unsubscribe(); } close() { this.closed = true; this.closedChange.emit(true); } #updateAlertIcon() { this.iconName = SkyIndicatorIconUtility.getIconNameForType(this.alertTypeOrDefault); } #updateDescriptionComputed() { this.#unsubscribe(); if (this.descriptionType) { switch (this.descriptionType) { case 'none': this.descriptionComputed = undefined; break; case 'custom': this.descriptionComputed = this.customDescription; break; default: this.#descriptionTypeResourceSubscription = this.#resources .getString('skyux_alert_sr_' + this.descriptionType.replace(/-/g, '_')) .subscribe((value) => { this.descriptionComputed = value; }); break; } } else { this.descriptionComputed = undefined; } } #unsubscribe() { if (this.#descriptionTypeResourceSubscription) { this.#descriptionTypeResourceSubscription.unsubscribe(); this.#descriptionTypeResourceSubscription = undefined; } } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: SkyAlertComponent, isStandalone: false, selector: "sky-alert", inputs: { alertType: "alertType", closeable: "closeable", closed: "closed", descriptionType: "descriptionType", customDescription: "customDescription" }, outputs: { closedChange: "closedChange" }, hostDirectives: [{ directive: i1$1.SkyThemeComponentClassDirective }], ngImport: i0, template: "<div\n class=\"sky-alert\"\n role=\"alert\"\n [skyThemeClass]=\"{\n 'sky-rounded-corners': 'default',\n 'sky-box sky-elevation-1': 'modern'\n }\"\n [hidden]=\"closed\"\n [ngClass]=\"{\n 'sky-alert-info': alertTypeOrDefault === 'info',\n 'sky-alert-success': alertTypeOrDefault === 'success',\n 'sky-alert-warning': alertTypeOrDefault === 'warning',\n 'sky-alert-danger': alertTypeOrDefault === 'danger',\n 'sky-alert-closeable': closeable\n }\"\n>\n <div *skyThemeIf=\"'modern'\" aria-hidden=\"true\" class=\"sky-alert-icon\">\n <sky-icon iconSize=\"xl\" variant=\"solid\" [iconName]=\"iconName\" />\n </div>\n <div *skyThemeIf=\"'default'\" aria-hidden=\"true\" class=\"sky-alert-icon\">\n <sky-icon variant=\"solid\" [iconName]=\"iconName\" />\n </div>\n @if (descriptionComputed) {\n <span class=\"sky-screen-reader-only\">\n {{ descriptionComputed }}\n </span>\n }\n <div class=\"sky-alert-content\">\n <ng-content />\n </div>\n <button\n class=\"sky-alert-close\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_alert_close' | skyLibResources\"\n [hidden]=\"!closeable\"\n (click)=\"close()\"\n >\n <span aria-hidden=\"true\">\n <sky-icon iconName=\"close\" />\n </span>\n </button>\n</div>\n", styles: [":host.sky-cmp-theme-default{display:block}.sky-alert:not(.sky-theme-modern *){padding:0 10px;border-left:solid 30px;color:var(--sky-text-color-default);display:flex;flex-direction:row;align-items:center}.sky-alert:not(.sky-theme-modern *) .sky-alert-content{padding:10px 0;width:100%}.sky-alert:not(.sky-theme-modern *) .sky-alert-content ::ng-deep a{color:#212327cc;text-decoration:underline}.sky-alert:not(.sky-theme-modern *) .sky-alert-content ::ng-deep a:hover{color:var(--sky-text-color-default)}.sky-alert:not(.sky-theme-modern *) button{margin-left:auto;width:32px;height:32px}.sky-alert:not(.sky-theme-modern *):not(.sky-alert-danger){--sky-icon-svg-path-2-color-input: #212327}.sky-alert:not(.sky-theme-modern *).sky-alert-info{background-color:var(--sky-background-color-info);border-color:var(--sky-highlight-color-info)}.sky-alert:not(.sky-theme-modern *).sky-alert-success{background-color:var(--sky-background-color-success);border-color:var(--sky-highlight-color-success)}.sky-alert:not(.sky-theme-modern *).sky-alert-warning{background-color:var(--sky-background-color-warning);border-color:var(--sky-highlight-color-warning)}.sky-alert:not(.sky-theme-modern *).sky-alert-danger{background-color:var(--sky-background-color-danger);border-color:var(--sky-highlight-color-danger)}.sky-alert:not(.sky-theme-modern *) .sky-alert-close{cursor:pointer;font-weight:700;line-height:1;margin:0;padding:0;color:var(--sky-text-color-default);opacity:.8;border:none;border-radius:3px;background-color:transparent;display:none;flex-shrink:0}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:hover{opacity:1;border:none}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:focus-visible{border:var(--sky-background-color-primary-dark) solid 2px;outline:none}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:active{border:none}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:focus-visible:not(:active){box-shadow:none}.sky-alert:not(.sky-theme-modern *).sky-alert-closeable .sky-alert-close{display:block}.sky-alert:not(.sky-theme-modern *) .sky-alert-icon{color:#fff;margin-left:-35px;margin-right:17px}.sky-alert:not(.sky-theme-modern *).sky-alert-info .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-info)}.sky-alert:not(.sky-theme-modern *).sky-alert-success .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-success)}.sky-alert:not(.sky-theme-modern *).sky-alert-warning .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-warning)}.sky-alert:not(.sky-theme-modern *).sky-alert-danger .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-danger)}\n", ":host-context(.sky-theme-modern) :host.sky-cmp-theme-modern{display:block}:host-context(.sky-theme-modern) .sky-alert{padding:var(--sky-comp-alert-space-inset-top) var(--sky-comp-alert-space-inset-right) var(--sky-comp-alert-space-inset-bottom) var(--sky-comp-alert-space-inset-left);border-left:solid var(--sky-border-width-accent);color:var(--sky-color-text-default);display:flex;flex-direction:row;align-items:center}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content{padding:0 var(--sky-space-gap-text_action-m) 0 var(--sky-space-gap-icon-l);width:100%}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content ::ng-deep a{color:var(--sky-color-text-action_contrast);text-decoration:var(--sky-font-text_decoration-visible_link)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content ::ng-deep a:hover{color:var(--sky-color-text-action_contrast)}:host-context(.sky-theme-modern) .sky-alert button{margin-left:auto}:host-context(.sky-theme-modern) .sky-alert.sky-alert-info{background-color:var(--sky-color-background-container-info);border-color:var(--sky-color-border-info);--sky-icon-svg-path-2-color-input: var(--sky-color-icon-inverse)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-success{background-color:var(--sky-color-background-container-success);border-color:var(--sky-color-border-success);--sky-icon-svg-path-2-color-input: var(--sky-color-icon-inverse)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-warning{background-color:var(--sky-color-background-container-warning);border-color:var(--sky-color-border-warning);--sky-icon-svg-path-2-color-input: var(--sky-color-icon-default)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-danger{background-color:var(--sky-color-background-container-danger);border-color:var(--sky-color-border-danger)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close{cursor:pointer;line-height:1;padding:var(--sky-comp-button-borderless-space-inset-top) var(--sky-comp-button-borderless-space-inset-right) var(--sky-comp-button-borderless-space-inset-bottom) var(--sky-comp-button-borderless-space-inset-left);color:var(--sky-color-icon-default);border-style:solid;border-color:var(--sky-color-border-action-tertiary-base);border-radius:var(--sky-border-radius-s);border-width:var(--sky-border-width-action-base);background-color:var(--sky-color-background-action-tertiary-base);display:none;flex-shrink:0}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:hover{opacity:1;border-color:var(--sky-color-border-action-tertiary-hover);border-width:var(--sky-border-width-action-hover)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:focus-visible{outline:none;border-color:var(--sky-color-border-action-tertiary-focus);border-width:var(--sky-border-width-action-focus)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:active{border-color:var(--sky-color-border-action-tertiary-focus);border-width:var(--sky-border-width-action-focus)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:focus-visible:not(:active){box-shadow:var(--sky-elevation-raised-100)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-closeable .sky-alert-close{display:block}:host-context(.sky-theme-modern) .sky-alert.sky-alert-info .sky-alert-icon{color:var(--sky-color-background-icon_matte-info)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-success .sky-alert-icon{color:var(--sky-color-background-icon_matte-success)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-warning .sky-alert-icon{color:var(--sky-color-background-icon_matte-warning)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-danger .sky-alert-icon{color:var(--sky-color-background-icon_matte-danger)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.λ1, selector: "sky-icon", inputs: ["iconName", "variant", "iconSize"] }, { kind: "directive", type: i1$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { kind: "directive", type: i1$1.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { kind: "pipe", type: i4.SkyLibResourcesPipe, name: "skyLibResources" }] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAlertComponent, decorators: [{ type: Component, args: [{ selector: 'sky-alert', hostDirectives: [SkyThemeComponentClassDirective], standalone: false, template: "<div\n class=\"sky-alert\"\n role=\"alert\"\n [skyThemeClass]=\"{\n 'sky-rounded-corners': 'default',\n 'sky-box sky-elevation-1': 'modern'\n }\"\n [hidden]=\"closed\"\n [ngClass]=\"{\n 'sky-alert-info': alertTypeOrDefault === 'info',\n 'sky-alert-success': alertTypeOrDefault === 'success',\n 'sky-alert-warning': alertTypeOrDefault === 'warning',\n 'sky-alert-danger': alertTypeOrDefault === 'danger',\n 'sky-alert-closeable': closeable\n }\"\n>\n <div *skyThemeIf=\"'modern'\" aria-hidden=\"true\" class=\"sky-alert-icon\">\n <sky-icon iconSize=\"xl\" variant=\"solid\" [iconName]=\"iconName\" />\n </div>\n <div *skyThemeIf=\"'default'\" aria-hidden=\"true\" class=\"sky-alert-icon\">\n <sky-icon variant=\"solid\" [iconName]=\"iconName\" />\n </div>\n @if (descriptionComputed) {\n <span class=\"sky-screen-reader-only\">\n {{ descriptionComputed }}\n </span>\n }\n <div class=\"sky-alert-content\">\n <ng-content />\n </div>\n <button\n class=\"sky-alert-close\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_alert_close' | skyLibResources\"\n [hidden]=\"!closeable\"\n (click)=\"close()\"\n >\n <span aria-hidden=\"true\">\n <sky-icon iconName=\"close\" />\n </span>\n </button>\n</div>\n", styles: [":host.sky-cmp-theme-default{display:block}.sky-alert:not(.sky-theme-modern *){padding:0 10px;border-left:solid 30px;color:var(--sky-text-color-default);display:flex;flex-direction:row;align-items:center}.sky-alert:not(.sky-theme-modern *) .sky-alert-content{padding:10px 0;width:100%}.sky-alert:not(.sky-theme-modern *) .sky-alert-content ::ng-deep a{color:#212327cc;text-decoration:underline}.sky-alert:not(.sky-theme-modern *) .sky-alert-content ::ng-deep a:hover{color:var(--sky-text-color-default)}.sky-alert:not(.sky-theme-modern *) button{margin-left:auto;width:32px;height:32px}.sky-alert:not(.sky-theme-modern *):not(.sky-alert-danger){--sky-icon-svg-path-2-color-input: #212327}.sky-alert:not(.sky-theme-modern *).sky-alert-info{background-color:var(--sky-background-color-info);border-color:var(--sky-highlight-color-info)}.sky-alert:not(.sky-theme-modern *).sky-alert-success{background-color:var(--sky-background-color-success);border-color:var(--sky-highlight-color-success)}.sky-alert:not(.sky-theme-modern *).sky-alert-warning{background-color:var(--sky-background-color-warning);border-color:var(--sky-highlight-color-warning)}.sky-alert:not(.sky-theme-modern *).sky-alert-danger{background-color:var(--sky-background-color-danger);border-color:var(--sky-highlight-color-danger)}.sky-alert:not(.sky-theme-modern *) .sky-alert-close{cursor:pointer;font-weight:700;line-height:1;margin:0;padding:0;color:var(--sky-text-color-default);opacity:.8;border:none;border-radius:3px;background-color:transparent;display:none;flex-shrink:0}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:hover{opacity:1;border:none}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:focus-visible{border:var(--sky-background-color-primary-dark) solid 2px;outline:none}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:active{border:none}.sky-alert:not(.sky-theme-modern *) .sky-alert-close:focus-visible:not(:active){box-shadow:none}.sky-alert:not(.sky-theme-modern *).sky-alert-closeable .sky-alert-close{display:block}.sky-alert:not(.sky-theme-modern *) .sky-alert-icon{color:#fff;margin-left:-35px;margin-right:17px}.sky-alert:not(.sky-theme-modern *).sky-alert-info .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-info)}.sky-alert:not(.sky-theme-modern *).sky-alert-success .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-success)}.sky-alert:not(.sky-theme-modern *).sky-alert-warning .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-warning)}.sky-alert:not(.sky-theme-modern *).sky-alert-danger .sky-alert-icon{--sky-icon-svg-path-2-color-input: var(--sky-highlight-color-danger)}\n", ":host-context(.sky-theme-modern) :host.sky-cmp-theme-modern{display:block}:host-context(.sky-theme-modern) .sky-alert{padding:var(--sky-comp-alert-space-inset-top) var(--sky-comp-alert-space-inset-right) var(--sky-comp-alert-space-inset-bottom) var(--sky-comp-alert-space-inset-left);border-left:solid var(--sky-border-width-accent);color:var(--sky-color-text-default);display:flex;flex-direction:row;align-items:center}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content{padding:0 var(--sky-space-gap-text_action-m) 0 var(--sky-space-gap-icon-l);width:100%}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content ::ng-deep a{color:var(--sky-color-text-action_contrast);text-decoration:var(--sky-font-text_decoration-visible_link)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content ::ng-deep a:hover{color:var(--sky-color-text-action_contrast)}:host-context(.sky-theme-modern) .sky-alert button{margin-left:auto}:host-context(.sky-theme-modern) .sky-alert.sky-alert-info{background-color:var(--sky-color-background-container-info);border-color:var(--sky-color-border-info);--sky-icon-svg-path-2-color-input: var(--sky-color-icon-inverse)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-success{background-color:var(--sky-color-background-container-success);border-color:var(--sky-color-border-success);--sky-icon-svg-path-2-color-input: var(--sky-color-icon-inverse)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-warning{background-color:var(--sky-color-background-container-warning);border-color:var(--sky-color-border-warning);--sky-icon-svg-path-2-color-input: var(--sky-color-icon-default)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-danger{background-color:var(--sky-color-background-container-danger);border-color:var(--sky-color-border-danger)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close{cursor:pointer;line-height:1;padding:var(--sky-comp-button-borderless-space-inset-top) var(--sky-comp-button-borderless-space-inset-right) var(--sky-comp-button-borderless-space-inset-bottom) var(--sky-comp-button-borderless-space-inset-left);color:var(--sky-color-icon-default);border-style:solid;border-color:var(--sky-color-border-action-tertiary-base);border-radius:var(--sky-border-radius-s);border-width:var(--sky-border-width-action-base);background-color:var(--sky-color-background-action-tertiary-base);display:none;flex-shrink:0}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:hover{opacity:1;border-color:var(--sky-color-border-action-tertiary-hover);border-width:var(--sky-border-width-action-hover)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:focus-visible{outline:none;border-color:var(--sky-color-border-action-tertiary-focus);border-width:var(--sky-border-width-action-focus)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:active{border-color:var(--sky-color-border-action-tertiary-focus);border-width:var(--sky-border-width-action-focus)}:host-context(.sky-theme-modern) .sky-alert .sky-alert-close:focus-visible:not(:active){box-shadow:var(--sky-elevation-raised-100)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-closeable .sky-alert-close{display:block}:host-context(.sky-theme-modern) .sky-alert.sky-alert-info .sky-alert-icon{color:var(--sky-color-background-icon_matte-info)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-success .sky-alert-icon{color:var(--sky-color-background-icon_matte-success)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-warning .sky-alert-icon{color:var(--sky-color-background-icon_matte-warning)}:host-context(.sky-theme-modern) .sky-alert.sky-alert-danger .sky-alert-icon{color:var(--sky-color-background-icon_matte-danger)}\n"] }] }], propDecorators: { alertType: [{ type: Input }], closeable: [{ type: Input }], closed: [{ type: Input }], descriptionType: [{ type: Input }], customDescription: [{ type: Input }], closedChange: [{ type: Output }] } }); class SkyAlertModule { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: SkyAlertModule, declarations: [SkyAlertComponent], imports: [CommonModule, SkyIconModule, SkyIndicatorsResourcesModule, SkyThemeModule], exports: [SkyAlertComponent] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAlertModule, imports: [CommonModule, SkyIconModule, SkyIndicatorsResourcesModule, SkyThemeModule] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAlertModule, decorators: [{ type: NgModule, args: [{ declarations: [SkyAlertComponent], imports: [ CommonModule, SkyIconModule, SkyIndicatorsResourcesModule, SkyThemeModule, ], exports: [SkyAlertComponent], }] }] }); /** * Displays a chevron icon. * @internal */ class SkyExpansionIndicatorComponent { constructor() { this.directionOrDefault = 'up'; } /** * The direction that the chevron points, which can be up or down. */ set direction(value) { /* istanbul ignore else */ if (value !== this.directionOrDefault) { this.directionOrDefault = value ? value : 'up'; } } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyExpansionIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: SkyExpansionIndicatorComponent, isStandalone: false, selector: "sky-expansion-indicator", inputs: { direction: "direction" }, hostDirectives: [{ directive: i1$1.SkyThemeComponentClassDirective }], ngImport: i0, template: "<div\n aria-hidden=\"true\"\n class=\"sky-expansion-indicator\"\n [ngClass]=\"['sky-expansion-indicator-' + directionOrDefault]\"\n>\n <span class=\"sky-expansion-indicator-glyph-container\">\n <i class=\"sky-expansion-indicator-part sky-expansion-indicator-left\"> </i>\n <i class=\"sky-expansion-indicator-part sky-expansion-indicator-right\"> </i>\n </span>\n</div>\n", styles: [".sky-expansion-indicator:not(.sky-theme-modern *){--sky-override-expansion-indicator-container-left: 4px;--sky-override-expansion-indicator-container-top: 3.5px;--sky-override-expansion-indicator-leg-left-left: 4px;--sky-override-expansion-indicator-leg-right-left: 10.5px;--sky-override-expansion-indicator-line-height: normal;--sky-override-expansion-indicator-size: 26px;--sky-override-expansion-indicator-size-half: 13px;--sky-override-expansion-indicator-color: var( --sky-expansion-indicator-color, #686c73 )}:host{line-height:var(--sky-override-expansion-indicator-line-height, 1)}.sky-expansion-indicator{display:inline-block;border:none;background-color:transparent;flex-shrink:0;height:var(--sky-override-expansion-indicator-size, var(--sky-size-icon-s));margin:0;overflow:hidden;position:relative;vertical-align:top;width:var(--sky-override-expansion-indicator-size, var(--sky-size-icon-s))}.sky-expansion-indicator-part{background:var(--sky-comp-override-expansion-indicator-color, var(--sky-override-expansion-indicator-color, var(--sky-color-icon-deemphasized)));border:none;border-radius:1px;display:inline-block;height:2px;position:absolute;top:var(--sky-override-expansion-indicator-size-half, calc(var(--sky-size-icon-s) / 2));transition:transform var(--sky-global-duration-medium),left var(--sky-global-duration-medium);vertical-align:top;width:11px}.sky-expansion-indicator-glyph-container{left:var(--sky-override-expansion-indicator-container-left, 0);display:inline-block;position:absolute;top:var(--sky-override-expansion-indicator-container-top, 1.5px);transform:scale(.68)}.sky-expansion-indicator-left{left:var(--sky-override-expansion-indicator-leg-left-left, 2.75px)}.sky-expansion-indicator-right{left:var(--sky-override-expansion-indicator-leg-right-left, 9.25px)}.sky-expansion-indicator-up .sky-expansion-indicator-left{transform:rotate(-45deg)}.sky-expansion-indicator-up .sky-expansion-indicator-right,.sky-expansion-indicator-down .sky-expansion-indicator-left{transform:rotate(45deg)}.sky-expansion-indicator-down .sky-expansion-indicator-right{transform:rotate(-45deg)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyExpansionIndicatorComponent, decorators: [{ type: Component, args: [{ selector: 'sky-expansion-indicator', hostDirectives: [SkyThemeComponentClassDirective], standalone: false, template: "<div\n aria-hidden=\"true\"\n class=\"sky-expansion-indicator\"\n [ngClass]=\"['sky-expansion-indicator-' + directionOrDefault]\"\n>\n <span class=\"sky-expansion-indicator-glyph-container\">\n <i class=\"sky-expansion-indicator-part sky-expansion-indicator-left\"> </i>\n <i class=\"sky-expansion-indicator-part sky-expansion-indicator-right\"> </i>\n </span>\n</div>\n", styles: [".sky-expansion-indicator:not(.sky-theme-modern *){--sky-override-expansion-indicator-container-left: 4px;--sky-override-expansion-indicator-container-top: 3.5px;--sky-override-expansion-indicator-leg-left-left: 4px;--sky-override-expansion-indicator-leg-right-left: 10.5px;--sky-override-expansion-indicator-line-height: normal;--sky-override-expansion-indicator-size: 26px;--sky-override-expansion-indicator-size-half: 13px;--sky-override-expansion-indicator-color: var( --sky-expansion-indicator-color, #686c73 )}:host{line-height:var(--sky-override-expansion-indicator-line-height, 1)}.sky-expansion-indicator{display:inline-block;border:none;background-color:transparent;flex-shrink:0;height:var(--sky-override-expansion-indicator-size, var(--sky-size-icon-s));margin:0;overflow:hidden;position:relative;vertical-align:top;width:var(--sky-override-expansion-indicator-size, var(--sky-size-icon-s))}.sky-expansion-indicator-part{background:var(--sky-comp-override-expansion-indicator-color, var(--sky-override-expansion-indicator-color, var(--sky-color-icon-deemphasized)));border:none;border-radius:1px;display:inline-block;height:2px;position:absolute;top:var(--sky-override-expansion-indicator-size-half, calc(var(--sky-size-icon-s) / 2));transition:transform var(--sky-global-duration-medium),left var(--sky-global-duration-medium);vertical-align:top;width:11px}.sky-expansion-indicator-glyph-container{left:var(--sky-override-expansion-indicator-container-left, 0);display:inline-block;position:absolute;top:var(--sky-override-expansion-indicator-container-top, 1.5px);transform:scale(.68)}.sky-expansion-indicator-left{left:var(--sky-override-expansion-indicator-leg-left-left, 2.75px)}.sky-expansion-indicator-right{left:var(--sky-override-expansion-indicator-leg-right-left, 9.25px)}.sky-expansion-indicator-up .sky-expansion-indicator-left{transform:rotate(-45deg)}.sky-expansion-indicator-up .sky-expansion-indicator-right,.sky-expansion-indicator-down .sky-expansion-indicator-left{transform:rotate(45deg)}.sky-expansion-indicator-down .sky-expansion-indicator-right{transform:rotate(-45deg)}\n"] }] }], propDecorators: { direction: [{ type: Input }] } }); class SkyExpansionIndicatorModule { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyExpansionIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: SkyExpansionIndicatorModule, declarations: [SkyExpansionIndicatorComponent], imports: [CommonModule, SkyThemeModule], exports: [SkyExpansionIndicatorComponent] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyExpansionIndicatorModule, imports: [CommonModule, SkyThemeModule] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyExpansionIndicatorModule, decorators: [{ type: NgModule, args: [{ declarations: [SkyExpansionIndicatorComponent], imports: [CommonModule, SkyThemeModule], exports: [SkyExpansionIndicatorComponent], }] }] }); /** * Creates an accessible button that wraps the chevron icon. * @internal */ class SkyChevronComponent { constructor() { /** * Whether to disable the chevron button. */ this.disabled = false; /** * Fires when the direction of the chevron changes. */ this.directionChange = new EventEmitter(); this.ariaExpanded = true; this.directionOrDefault = 'up'; } /** * The direction that the chevron points, which can be up or down. */ set direction(value) { /* istanbul ignore else */ if (value !== this.directionOrDefault) { this.directionOrDefault = value ? value : 'up'; /* istanbul ignore else */ if (this.directionOrDefault === 'up') { this.ariaExpanded = true; } else if (this.directionOrDefault === 'down') { this.ariaExpanded = false; } } } chevronClick(event) { event.stopPropagation(); this.direction = this.directionOrDefault === 'up' ? 'down' : 'up'; this.directionChange.emit(this.directionOrDefault); } chevronKeyDown(event) { /* istanbul ignore else */ if (event.key) { switch (event.key.toLowerCase()) { case ' ': case 'enter': this.direction = this.directionOrDefault === 'up' ? 'down' : 'up'; this.directionChange.emit(this.directionOrDefault); event.preventDefault(); event.stopPropagation(); break; default: break; } } } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyChevronComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: SkyChevronComponent, isStandalone: false, selector: "sky-chevron", inputs: { ariaControls: "ariaControls", ariaLabel: "ariaLabel", direction: "direction", disabled: "disabled" }, outputs: { directionChange: "directionChange" }, hostDirectives: [{ directive: i1$1.SkyThemeComponentClassDirective }], ngImport: i0, template: "<button\n class=\"sky-chevron\"\n type=\"button\"\n [attr.aria-controls]=\"ariaControls\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-label]=\"ariaLabel\"\n [disabled]=\"disabled\"\n [ngClass]=\"['sky-chevron-' + directionOrDefault]\"\n [skyThemeClass]=\"{\n 'sky-btn sky-btn-icon-borderless': 'modern'\n }\"\n (click)=\"chevronClick($event)\"\n (keydown)=\"chevronKeyDown($event)\"\n>\n <sky-expansion-indicator [direction]=\"directionOrDefault\" />\n</button>\n", styles: [".sky-chevron:not(.sky-theme-modern *){border:none;background-color:transparent;flex-shrink:0;height:24px;margin:0;padding:0;overflow:hidden;width:24px;cursor:pointer;position:relative;vertical-align:top}\n", ":host-context(.sky-theme-modern) .sky-chevron{border:none;background-color:transparent;flex-shrink:0;line-height:1;margin:0;overflow:hidden;cursor:pointer;position:relative;vertical-align:top}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { kind: "component", type: SkyExpansionIndicatorComponent, selector: "sky-expansion-indicator", inputs: ["direction"] }] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyChevronComponent, decorators: [{ type: Component, args: [{ selector: 'sky-chevron', hostDirectives: [SkyThemeComponentClassDirective], standalone: false, template: "<button\n class=\"sky-chevron\"\n type=\"button\"\n [attr.aria-controls]=\"ariaControls\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-label]=\"ariaLabel\"\n [disabled]=\"disabled\"\n [ngClass]=\"['sky-chevron-' + directionOrDefault]\"\n [skyThemeClass]=\"{\n 'sky-btn sky-btn-icon-borderless': 'modern'\n }\"\n (click)=\"chevronClick($event)\"\n (keydown)=\"chevronKeyDown($event)\"\n>\n <sky-expansion-indicator [direction]=\"directionOrDefault\" />\n</button>\n", styles: [".sky-chevron:not(.sky-theme-modern *){border:none;background-color:transparent;flex-shrink:0;height:24px;margin:0;padding:0;overflow:hidden;width:24px;cursor:pointer;position:relative;vertical-align:top}\n", ":host-context(.sky-theme-modern) .sky-chevron{border:none;background-color:transparent;flex-shrink:0;line-height:1;margin:0;overflow:hidden;cursor:pointer;position:relative;vertical-align:top}\n"] }] }], propDecorators: { ariaControls: [{ type: Input }], ariaLabel: [{ type: Input }], direction: [{ type: Input }], disabled: [{ type: Input }], directionChange: [{ type: Output }] } }); /** * @internal */ class SkyChevronModule { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyChevronModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: SkyChevronModule, declarations: [SkyChevronComponent], imports: [CommonModule, SkyIndicatorsResourcesModule, SkyThemeModule, SkyExpansionIndicatorModule], exports: [SkyChevronComponent] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyChevronModule, imports: [CommonModule, SkyIndicatorsResourcesModule, SkyThemeModule, SkyExpansionIndicatorModule] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyChevronModule, decorators: [{ type: NgModule, args: [{ declarations: [SkyChevronComponent], imports: [ CommonModule, SkyIndicatorsResourcesModule, SkyThemeModule, SkyExpansionIndicatorModule, ], exports: [SkyChevronComponent], }] }] }); /** * Resolves information about spot illustrations. */ class SkyIllustrationResolverService { /** * Resolves the `href` of the SVG element to reference in `use`. * If both an `href` and a URL are resolved, the SVG with `href` will be rendered. */ resolveHref(name) { return Promise.resolve(''); } /** * Gets the names of all available illustrations. */ getNames() { return Promise.resolve([]); } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIllustrationResolverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); } static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIllustrationResolverService }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIllustrationResolverService, decorators: [{ type: Injectable }] }); /** * Displays a spot illustration at the specified size. */ class SkyIllustrationComponent { constructor() { this.#resolverSvc = inject(SkyIllustrationResolverService, { optional: true, }); /** * The name of the illustration to display. * @required */ this.name = input.required(...(ngDevMode ? [{ debugName: "name" }] : [])); /** * The size of the illustration. * @required */ this.size = input.required(...(ngDevMode ? [{ debugName: "size" }] : [])); this.url = toSignal(toObservable(this.name).pipe(switchMap((name) => this.#resolverSvc ? from(this.#resolverSvc.resolveUrl(name)) : of('')), catchError(() => of('')))); this.svgHref = toSignal(toObservable(this.name).pipe(switchMap((name) => this.#resolverSvc ? from(this.#resolverSvc.resolveHref(name)) : of('')), catchError(() => of('')))); } #resolverSvc; static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIllustrationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: SkyIllustrationComponent, isStandalone: true, selector: "sky-illustration", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: i1$1.SkyThemeComponentClassDirective }], ngImport: i0, template: "<div\n [attr.data-sky-illustration-name]=\"name()\"\n [class]=\"'sky-illustration-wrapper sky-illustration-' + size()\"\n>\n @if (svgHref(); as svgHrefValue) {\n <svg aria-hidden=\"true\" class=\"sky-illustration-svg\">\n <use [attr.xlink:href]=\"svgHrefValue\" />\n </svg>\n } @else {\n <img alt=\"\" loading=\"lazy\" class=\"sky-illustration-img\" [src]=\"url()\" />\n }\n</div>\n", styles: [".sky-illustration-wrapper:not(.sky-theme-modern *){--sky-override-illustration-img-size-sm: 48px;--sky-override-illustration-img-size-md: 64px;--sky-override-illustration-img-size-lg: 80px;--sky-override-illustration-img-size-xl: 96px}:host{display:block}.sky-illustration-img{aspect-ratio:auto 1/1;display:block;height:100%;width:100%}.sky-illustration-img[src=\"\"]{visibility:hidden}.sky-illustration-wrapper{--sky-illustration-img-size: var( --sky-override-illustration-img-size-sm, var(--sky-size-illustration-s) );height:var(--sky-illustration-img-size);width:var(--sky-illustration-img-size)}.sky-illustration-wrapper.sky-illustration-md{--sky-illustration-img-size: var( --sky-override-illustration-img-size-md, var(--sky-size-illustration-m) )}.sky-illustration-wrapper.sky-illustration-lg{--sky-illustration-img-size: var( --sky-override-illustration-img-size-lg, var(--sky-size-illustration-l) )}.sky-illustration-wrapper.sky-illustration-xl{--sky-illustration-img-size: var( --sky-override-illustration-img-size-xl, var(--sky-size-illustration-xl) )}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIllustrationComponent, decorators: [{ type: Component, args: [{ selector: 'sky-illustration', imports: [], hostDirectives: [SkyThemeComponentClassDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [attr.data-sky-illustration-name]=\"name()\"\n [class]=\"'sky-illustration-wrapper sky-illustration-' + size()\"\n>\n @if (svgHref(); as svgHrefValue) {\n <svg aria-hidden=\"true\" class=\"sky-illustration-svg\">\n <use [attr.xlink:href]=\"svgHrefValue\" />\n </svg>\n } @else {\n <img alt=\"\" loading=\"lazy\" class=\"sky-illustration-img\" [src]=\"url()\" />\n }\n</div>\n", styles: [".sky-illustration-wrapper:not(.sky-theme-modern *){--sky-override-illustration-img-size-sm: 48px;--sky-override-illustration-img-size-md: 64px;--sky-override-illustration-img-size-lg: 80px;--sky-override-illustration-img-size-xl: 96px}:host{display:block}.sky-illustration-img{as