@cngx/ui 0.1.0-rc.8 → 0.1.0-rc.9
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/command-palette/README.md +5 -2
- package/fesm2022/cngx-ui-accordion.mjs +19 -2
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +10 -7
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +55 -15
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +10 -0
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +2 -2
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +60 -6
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +87 -7
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +63 -32
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +3 -2
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +264 -86
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +67 -21
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +19 -5
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +65 -53
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +84 -25
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +28 -6
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +32 -8
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +1 -1
- package/mat-tabs/README.md +30 -6
- package/mat-tabs/styles/mat-tabs.css +180 -33
- package/package.json +31 -7
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/stepper/README.md +1 -1
- package/types/cngx-ui-accordion.d.ts +9 -2
- package/types/cngx-ui-breadcrumb.d.ts +14 -3
- package/types/cngx-ui-collection.d.ts +10 -0
- package/types/cngx-ui-context-menu.d.ts +42 -4
- package/types/cngx-ui-data-grid-accordion.d.ts +4 -1
- package/types/cngx-ui-feedback.d.ts +11 -3
- package/types/cngx-ui-mat-accordion.d.ts +3 -2
- package/types/cngx-ui-mat-tabs.d.ts +44 -21
- package/types/cngx-ui-paginator.d.ts +22 -7
- package/types/cngx-ui-stepper.d.ts +23 -23
- package/types/cngx-ui-tabs.d.ts +4 -2
- package/types/cngx-ui-timeline.d.ts +12 -4
- package/types/cngx-ui-toc.d.ts +13 -3
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { NgComponentOutlet, DOCUMENT, NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, DestroyRef, signal, Injectable, makeEnvironmentProviders, InjectionToken,
|
|
3
|
+
import { inject, DestroyRef, signal, Injectable, makeEnvironmentProviders, InjectionToken, EnvironmentInjector, input, computed, untracked, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, effect, TemplateRef, Directive, ElementRef, output, contentChild, Injector, linkedSignal, afterNextRender } from '@angular/core';
|
|
4
4
|
import { CNGX_LOADING_DEFAULTS, CNGX_LOADING_CONFIG, createNestedOverrideMerge, injectLoadingConfig, createVisibilityGate, injectLocale, numberFormatterFor, createTransitionTracker, createMediaQuerySignal, CNGX_STATEFUL } from '@cngx/core/utils';
|
|
5
5
|
import { CNGX_CLOSE_ICON, CngxCloseButton } from '@cngx/common/interactive';
|
|
6
|
+
import { cngxDevWarn, CngxRuntimeError, cngxDevError } from '@cngx/utils';
|
|
6
7
|
import { Subject } from 'rxjs';
|
|
7
8
|
import { formatMessage, createNestedLanguageSection, createSectionBundle } from '@cngx/core/i18n';
|
|
9
|
+
import { CngxLiveAnnouncer } from '@cngx/common/a11y';
|
|
8
10
|
import { resolveAsyncView } from '@cngx/common/data';
|
|
9
11
|
|
|
10
12
|
/** @internal */
|
|
@@ -785,9 +787,12 @@ const WARNED = new WeakSet();
|
|
|
785
787
|
function rawErrorDetailWithWarning(injector) {
|
|
786
788
|
return (error) => {
|
|
787
789
|
const detail = rawErrorText(error);
|
|
788
|
-
if (
|
|
790
|
+
if (typeof ngDevMode !== 'undefined' &&
|
|
791
|
+
ngDevMode &&
|
|
792
|
+
detail !== undefined &&
|
|
793
|
+
!WARNED.has(injector)) {
|
|
789
794
|
WARNED.add(injector);
|
|
790
|
-
|
|
795
|
+
cngxDevWarn('CNGX3004', 'injectErrorDetail(): showing the raw error text as the error detail. Production builds ' +
|
|
791
796
|
'show no detail here: map errors to user-facing text with ' +
|
|
792
797
|
'provideFeedback(withErrorDetail(...)).');
|
|
793
798
|
}
|
|
@@ -834,7 +839,7 @@ function injectErrorDetail() {
|
|
|
834
839
|
if (mapped) {
|
|
835
840
|
return mapped;
|
|
836
841
|
}
|
|
837
|
-
if (!
|
|
842
|
+
if (!(typeof ngDevMode !== 'undefined' && ngDevMode)) {
|
|
838
843
|
return noErrorDetail;
|
|
839
844
|
}
|
|
840
845
|
return rawErrorDetailWithWarning(inject(EnvironmentInjector));
|
|
@@ -1765,6 +1770,8 @@ class CngxAlert {
|
|
|
1765
1770
|
config = inject(CNGX_FEEDBACK_CONFIG, { optional: true });
|
|
1766
1771
|
i18n = injectFeedbackI18n();
|
|
1767
1772
|
destroyRef = inject(DestroyRef);
|
|
1773
|
+
announcer = inject(CngxLiveAnnouncer);
|
|
1774
|
+
hostElement = inject(ElementRef).nativeElement;
|
|
1768
1775
|
/** Alert severity - determines visual style, default icon, and ARIA role. */
|
|
1769
1776
|
severity = input('info', ...(ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []));
|
|
1770
1777
|
/** Optional title displayed above the content. */
|
|
@@ -1801,7 +1808,6 @@ class CngxAlert {
|
|
|
1801
1808
|
manualDismissed = signal(false, ...(ngDevMode ? [{ debugName: "manualDismissed" }] : /* istanbul ignore next */ []));
|
|
1802
1809
|
autoDismissed = signal(false, ...(ngDevMode ? [{ debugName: "autoDismissed" }] : /* istanbul ignore next */ []));
|
|
1803
1810
|
collapsedState = signal(false, ...(ngDevMode ? [{ debugName: "collapsedState" }] : /* istanbul ignore next */ []));
|
|
1804
|
-
announcementState = signal('', ...(ngDevMode ? [{ debugName: "announcementState" }] : /* istanbul ignore next */ []));
|
|
1805
1811
|
/** @internal - animation phase, drives host CSS classes. */
|
|
1806
1812
|
visibilityPhase = signal('hidden', ...(ngDevMode ? [{ debugName: "visibilityPhase" }] : /* istanbul ignore next */ []));
|
|
1807
1813
|
autoDismissTimer = createPausableTimer();
|
|
@@ -1877,8 +1883,6 @@ class CngxAlert {
|
|
|
1877
1883
|
this.isVisible();
|
|
1878
1884
|
return untracked(() => this.i18n().dismissLabel);
|
|
1879
1885
|
}, ...(ngDevMode ? [{ debugName: "dismissLabel" }] : /* istanbul ignore next */ []));
|
|
1880
|
-
/** @internal - SR announcement text for state transitions. */
|
|
1881
|
-
announcement = this.announcementState.asReadonly();
|
|
1882
1886
|
effectiveCollapseDelay = computed(() => this.collapseDelay() ?? this.autoDismissDelay() ?? 5000, ...(ngDevMode ? [{ debugName: "effectiveCollapseDelay" }] : /* istanbul ignore next */ []));
|
|
1883
1887
|
constructor() {
|
|
1884
1888
|
createStateBridge(() => this.state()?.status() ?? 'idle', (status) => {
|
|
@@ -1983,7 +1987,10 @@ class CngxAlert {
|
|
|
1983
1987
|
this.manualDismissed.set(true);
|
|
1984
1988
|
this.autoDismissTimer.clear();
|
|
1985
1989
|
this.collapseTimer.clear();
|
|
1986
|
-
|
|
1990
|
+
// Scoped to the host: inside a modal dialog the body region is hidden from
|
|
1991
|
+
// AT. The modal lookup runs here, before a destroy-on-dismiss consumer
|
|
1992
|
+
// removes the host on `dismissed`.
|
|
1993
|
+
this.announcer.announce(untracked(() => this.i18n().announcements.alertDismissed), 'polite', this.hostElement);
|
|
1987
1994
|
this.dismissed.emit();
|
|
1988
1995
|
}
|
|
1989
1996
|
/** @internal - WCAG 2.2.1: pause auto-dismiss on hover. */
|
|
@@ -2070,8 +2077,7 @@ class CngxAlert {
|
|
|
2070
2077
|
(click)="handleDismiss()"
|
|
2071
2078
|
/>
|
|
2072
2079
|
}
|
|
2073
|
-
<span class="cngx-sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</span>
|
|
2074
|
-
`, isInline: true, styles: ["@layer cngx.tokens{:root{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h );--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}}[data-color-scheme=dark],.dark{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}[data-color-scheme=light],.light{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}}\n", "@layer cngx.tokens{@property --cngx-alert-gap{syntax: \"<length>\"; inherits: false; initial-value: 12px;}@property --cngx-alert-padding{syntax: \"*\"; inherits: false; initial-value: 12px 16px;}@property --cngx-alert-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-alert-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 240);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 240);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .11 240);}@property --cngx-alert-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-alert-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-alert-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .135 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 75);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 75);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.67 .135 75);}@property --cngx-alert-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-alert-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-alert-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .16 25);}@property --cngx-alert-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-alert-title-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-title-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-alert-collapse-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-collapsed-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .02);}@property --cngx-alert-actions-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-alert-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-alert-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-alert-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-action-color{syntax: \"*\"; inherits: true;}@property --cngx-alert-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-alert-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-exit-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}:where(.cngx-alert,.cngx-alert *){--cngx-alert-collapse-duration: var(--cngx-duration-base);--cngx-alert-enter-duration: var(--cngx-duration-base);--cngx-alert-exit-duration: var(--cngx-duration-fast)}@property --cngx-alert-icon-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-alert-enter-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-exit-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-alert){:scope{--cngx-alert-gap: var(--cngx-space-sm);--cngx-alert-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-alert-title-gap: var(--cngx-space-xs);--cngx-alert-actions-gap: var(--cngx-space-sm);--cngx-alert-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:flex;align-items:flex-start;gap:var(--cngx-alert-gap, 12px);padding:var(--cngx-alert-padding, 12px 16px);border-radius:var(--cngx-alert-border-radius, 8px);border:1px solid var(--cngx-alert-border-color, transparent);background:var(--cngx-alert-bg, oklch(.98 .005 250));color:var(--cngx-alert-color, inherit)}:scope.cngx-alert--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 240));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 240));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.6 .11 240))}:scope.cngx-alert--success{--cngx-alert-bg: var(--cngx-alert-success-bg, oklch(.96 .04 145));--cngx-alert-border-color: var(--cngx-alert-success-border, oklch(.85 .1 145));--cngx-alert-icon-color: var(--cngx-alert-success-icon, oklch(.56 .135 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 75));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 75));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.67 .135 75))}:scope.cngx-alert--error{--cngx-alert-bg: var(--cngx-alert-error-bg, oklch(.96 .025 25));--cngx-alert-border-color: var(--cngx-alert-error-border, oklch(.85 .08 25));--cngx-alert-icon-color: var(--cngx-alert-error-icon, oklch(.56 .16 25))}.cngx-alert__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert__body{flex:1;min-width:0}.cngx-alert__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert__collapsible{display:grid;grid-template-rows:1fr;transition:grid-template-rows var(--cngx-alert-collapse-duration, .2s) ease}.cngx-alert__collapsible>*{overflow:hidden}:scope.cngx-alert--collapsed .cngx-alert__collapsible{grid-template-rows:0fr}:scope.cngx-alert--collapsed{cursor:pointer}:scope.cngx-alert--collapsed:hover{background:var(--cngx-alert-collapsed-hover-bg, oklch(0 0 0 / .02))}.cngx-alert__actions:empty{display:none}.cngx-alert__actions{margin-top:var(--cngx-alert-actions-gap, 8px)}.cngx-alert__action{appearance:none;background:var(--cngx-alert-action-bg, transparent);border:1px solid currentColor;border-radius:var(--cngx-alert-action-radius, 4px);padding:var(--cngx-alert-action-padding, 4px 10px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-alert-action-font-size, .875rem);font-weight:var(--cngx-alert-action-font-weight, 600);color:var( --cngx-alert-action-color, color-mix( in oklab, var(--cngx-alert-icon-color, currentColor) 60%, var(--cngx-color-text, oklch(.2 .01 250)) ) );white-space:nowrap}.cngx-alert__action:hover:not(:disabled){background:var(--cngx-alert-action-hover-bg, oklch(0 0 0 / .04))}.cngx-alert__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-alert__action:disabled{cursor:not-allowed;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent);border-color:currentColor}.cngx-alert__dismiss{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px)}:scope.cngx-alert--hidden{display:none}:scope.cngx-alert--entering{animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}:scope.cngx-alert--entering .cngx-alert__icon{animation:cngx-alert-icon-pulse var(--cngx-alert-icon-pulse-duration, .3s) ease-out}:scope.cngx-alert--exiting{animation:cngx-alert-exit var(--cngx-alert-exit-duration, .15s) ease-in both}@media(prefers-reduced-motion:reduce){:scope.cngx-alert--entering,:scope.cngx-alert--entering .cngx-alert__icon{animation:none}:scope.cngx-alert--exiting{animation:none}.cngx-alert__collapsible{transition:none!important}}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}@keyframes cngx-alert-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-exit-offset, 8px)))}}@keyframes cngx-alert-icon-pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: CngxCloseButton, selector: "cngx-close-button", inputs: ["label"] }, { kind: "component", type: CngxSeverityIcon, selector: "cngx-severity-icon", inputs: ["severity", "iconClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2080
|
+
`, isInline: true, styles: ["@layer cngx.tokens{:root{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h );--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}}[data-color-scheme=dark],.dark{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}[data-color-scheme=light],.light{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}}\n", "@layer cngx.tokens{@property --cngx-alert-gap{syntax: \"<length>\"; inherits: false; initial-value: 12px;}@property --cngx-alert-padding{syntax: \"*\"; inherits: false; initial-value: 12px 16px;}@property --cngx-alert-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-alert-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 240);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 240);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .11 240);}@property --cngx-alert-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-alert-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-alert-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .135 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 75);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 75);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.67 .135 75);}@property --cngx-alert-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-alert-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-alert-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .16 25);}@property --cngx-alert-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-alert-title-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-title-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-alert-collapse-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-collapsed-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .02);}@property --cngx-alert-actions-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-alert-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-alert-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-alert-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-action-color{syntax: \"*\"; inherits: true;}@property --cngx-alert-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-alert-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-exit-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}:where(.cngx-alert,.cngx-alert *){--cngx-alert-collapse-duration: var(--cngx-duration-base);--cngx-alert-enter-duration: var(--cngx-duration-base);--cngx-alert-exit-duration: var(--cngx-duration-fast)}@property --cngx-alert-icon-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-alert-enter-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-exit-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-alert){:scope{--cngx-alert-gap: var(--cngx-space-sm);--cngx-alert-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-alert-title-gap: var(--cngx-space-xs);--cngx-alert-actions-gap: var(--cngx-space-sm);--cngx-alert-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:flex;align-items:flex-start;gap:var(--cngx-alert-gap, 12px);padding:var(--cngx-alert-padding, 12px 16px);border-radius:var(--cngx-alert-border-radius, 8px);border:1px solid var(--cngx-alert-border-color, transparent);background:var(--cngx-alert-bg, oklch(.98 .005 250));color:var(--cngx-alert-color, inherit)}:scope.cngx-alert--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 240));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 240));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.6 .11 240))}:scope.cngx-alert--success{--cngx-alert-bg: var(--cngx-alert-success-bg, oklch(.96 .04 145));--cngx-alert-border-color: var(--cngx-alert-success-border, oklch(.85 .1 145));--cngx-alert-icon-color: var(--cngx-alert-success-icon, oklch(.56 .135 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 75));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 75));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.67 .135 75))}:scope.cngx-alert--error{--cngx-alert-bg: var(--cngx-alert-error-bg, oklch(.96 .025 25));--cngx-alert-border-color: var(--cngx-alert-error-border, oklch(.85 .08 25));--cngx-alert-icon-color: var(--cngx-alert-error-icon, oklch(.56 .16 25))}.cngx-alert__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert__body{flex:1;min-width:0}.cngx-alert__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert__collapsible{display:grid;grid-template-rows:1fr;transition:grid-template-rows var(--cngx-alert-collapse-duration, .2s) ease}.cngx-alert__collapsible>*{overflow:hidden}:scope.cngx-alert--collapsed .cngx-alert__collapsible{grid-template-rows:0fr}:scope.cngx-alert--collapsed{cursor:pointer}:scope.cngx-alert--collapsed:hover{background:var(--cngx-alert-collapsed-hover-bg, oklch(0 0 0 / .02))}.cngx-alert__actions:empty{display:none}.cngx-alert__actions{margin-top:var(--cngx-alert-actions-gap, 8px)}.cngx-alert__action{appearance:none;background:var(--cngx-alert-action-bg, transparent);border:1px solid currentColor;border-radius:var(--cngx-alert-action-radius, 4px);padding:var(--cngx-alert-action-padding, 4px 10px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-alert-action-font-size, .875rem);font-weight:var(--cngx-alert-action-font-weight, 600);color:var( --cngx-alert-action-color, color-mix( in oklab, var(--cngx-alert-icon-color, currentColor) 60%, var(--cngx-color-text, oklch(.2 .01 250)) ) );white-space:nowrap}.cngx-alert__action:hover:not(:disabled){background:var(--cngx-alert-action-hover-bg, oklch(0 0 0 / .04))}.cngx-alert__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-alert__action:disabled{cursor:not-allowed;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent);border-color:currentColor}.cngx-alert__dismiss{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px)}:scope.cngx-alert--hidden{display:none}:scope.cngx-alert--entering{animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}:scope.cngx-alert--entering .cngx-alert__icon{animation:cngx-alert-icon-pulse var(--cngx-alert-icon-pulse-duration, .3s) ease-out}:scope.cngx-alert--exiting{animation:cngx-alert-exit var(--cngx-alert-exit-duration, .15s) ease-in both}@media(prefers-reduced-motion:reduce){:scope.cngx-alert--entering,:scope.cngx-alert--entering .cngx-alert__icon{animation:none}:scope.cngx-alert--exiting{animation:none}.cngx-alert__collapsible{transition:none!important}}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}@keyframes cngx-alert-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-exit-offset, 8px)))}}@keyframes cngx-alert-icon-pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: CngxCloseButton, selector: "cngx-close-button", inputs: ["label"] }, { kind: "component", type: CngxSeverityIcon, selector: "cngx-severity-icon", inputs: ["severity", "iconClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2075
2081
|
}
|
|
2076
2082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAlert, decorators: [{
|
|
2077
2083
|
type: Component,
|
|
@@ -2130,8 +2136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2130
2136
|
(click)="handleDismiss()"
|
|
2131
2137
|
/>
|
|
2132
2138
|
}
|
|
2133
|
-
<span class="cngx-sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</span>
|
|
2134
|
-
`, styles: ["@layer cngx.tokens{:root{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h );--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}}[data-color-scheme=dark],.dark{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}[data-color-scheme=light],.light{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}}\n", "@layer cngx.tokens{@property --cngx-alert-gap{syntax: \"<length>\"; inherits: false; initial-value: 12px;}@property --cngx-alert-padding{syntax: \"*\"; inherits: false; initial-value: 12px 16px;}@property --cngx-alert-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-alert-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 240);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 240);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .11 240);}@property --cngx-alert-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-alert-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-alert-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .135 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 75);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 75);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.67 .135 75);}@property --cngx-alert-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-alert-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-alert-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .16 25);}@property --cngx-alert-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-alert-title-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-title-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-alert-collapse-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-collapsed-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .02);}@property --cngx-alert-actions-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-alert-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-alert-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-alert-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-action-color{syntax: \"*\"; inherits: true;}@property --cngx-alert-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-alert-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-exit-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}:where(.cngx-alert,.cngx-alert *){--cngx-alert-collapse-duration: var(--cngx-duration-base);--cngx-alert-enter-duration: var(--cngx-duration-base);--cngx-alert-exit-duration: var(--cngx-duration-fast)}@property --cngx-alert-icon-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-alert-enter-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-exit-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-alert){:scope{--cngx-alert-gap: var(--cngx-space-sm);--cngx-alert-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-alert-title-gap: var(--cngx-space-xs);--cngx-alert-actions-gap: var(--cngx-space-sm);--cngx-alert-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:flex;align-items:flex-start;gap:var(--cngx-alert-gap, 12px);padding:var(--cngx-alert-padding, 12px 16px);border-radius:var(--cngx-alert-border-radius, 8px);border:1px solid var(--cngx-alert-border-color, transparent);background:var(--cngx-alert-bg, oklch(.98 .005 250));color:var(--cngx-alert-color, inherit)}:scope.cngx-alert--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 240));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 240));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.6 .11 240))}:scope.cngx-alert--success{--cngx-alert-bg: var(--cngx-alert-success-bg, oklch(.96 .04 145));--cngx-alert-border-color: var(--cngx-alert-success-border, oklch(.85 .1 145));--cngx-alert-icon-color: var(--cngx-alert-success-icon, oklch(.56 .135 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 75));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 75));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.67 .135 75))}:scope.cngx-alert--error{--cngx-alert-bg: var(--cngx-alert-error-bg, oklch(.96 .025 25));--cngx-alert-border-color: var(--cngx-alert-error-border, oklch(.85 .08 25));--cngx-alert-icon-color: var(--cngx-alert-error-icon, oklch(.56 .16 25))}.cngx-alert__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert__body{flex:1;min-width:0}.cngx-alert__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert__collapsible{display:grid;grid-template-rows:1fr;transition:grid-template-rows var(--cngx-alert-collapse-duration, .2s) ease}.cngx-alert__collapsible>*{overflow:hidden}:scope.cngx-alert--collapsed .cngx-alert__collapsible{grid-template-rows:0fr}:scope.cngx-alert--collapsed{cursor:pointer}:scope.cngx-alert--collapsed:hover{background:var(--cngx-alert-collapsed-hover-bg, oklch(0 0 0 / .02))}.cngx-alert__actions:empty{display:none}.cngx-alert__actions{margin-top:var(--cngx-alert-actions-gap, 8px)}.cngx-alert__action{appearance:none;background:var(--cngx-alert-action-bg, transparent);border:1px solid currentColor;border-radius:var(--cngx-alert-action-radius, 4px);padding:var(--cngx-alert-action-padding, 4px 10px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-alert-action-font-size, .875rem);font-weight:var(--cngx-alert-action-font-weight, 600);color:var( --cngx-alert-action-color, color-mix( in oklab, var(--cngx-alert-icon-color, currentColor) 60%, var(--cngx-color-text, oklch(.2 .01 250)) ) );white-space:nowrap}.cngx-alert__action:hover:not(:disabled){background:var(--cngx-alert-action-hover-bg, oklch(0 0 0 / .04))}.cngx-alert__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-alert__action:disabled{cursor:not-allowed;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent);border-color:currentColor}.cngx-alert__dismiss{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px)}:scope.cngx-alert--hidden{display:none}:scope.cngx-alert--entering{animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}:scope.cngx-alert--entering .cngx-alert__icon{animation:cngx-alert-icon-pulse var(--cngx-alert-icon-pulse-duration, .3s) ease-out}:scope.cngx-alert--exiting{animation:cngx-alert-exit var(--cngx-alert-exit-duration, .15s) ease-in both}@media(prefers-reduced-motion:reduce){:scope.cngx-alert--entering,:scope.cngx-alert--entering .cngx-alert__icon{animation:none}:scope.cngx-alert--exiting{animation:none}.cngx-alert__collapsible{transition:none!important}}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}@keyframes cngx-alert-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-exit-offset, 8px)))}}@keyframes cngx-alert-icon-pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
|
|
2139
|
+
`, styles: ["@layer cngx.tokens{:root{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h );--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}}[data-color-scheme=dark],.dark{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.72 .11 240)) .3 .05 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.72 .11 240)) .5 .08 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.72 .11 240)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .3 .06 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.68 .14 145)) .5 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.68 .14 145)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .32 .06 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.78 .14 75)) .55 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.78 .14 75)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.68 .17 25)) .3 .05 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.68 .17 25)) .5 .1 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.68 .17 25)) 90%, var(--cngx-color-text, oklch(.95 .01 250)) )}[data-color-scheme=light],.light{--cngx-feedback-info-bg: oklch(from var(--cngx-color-info, oklch(.65 .12 240)) .96 .025 h);--cngx-feedback-info-border: oklch( from var(--cngx-color-info, oklch(.65 .12 240)) .85 .07 h );--cngx-feedback-info-icon: color-mix( in oklab, var(--cngx-color-info, oklch(.65 .12 240)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-success-bg: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .96 .04 h );--cngx-feedback-success-border: oklch( from var(--cngx-color-success, oklch(.6 .15 145)) .85 .1 h );--cngx-feedback-success-icon: color-mix( in oklab, var(--cngx-color-success, oklch(.6 .15 145)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-warning-bg: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .97 .04 h );--cngx-feedback-warning-border: oklch( from var(--cngx-color-warning, oklch(.72 .15 75)) .86 .1 h );--cngx-feedback-warning-icon: color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-feedback-error-bg: oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .96 .025 h);--cngx-feedback-error-border: oklch( from var(--cngx-color-danger, oklch(.6 .18 25)) .85 .08 h );--cngx-feedback-error-icon: color-mix( in oklab, var(--cngx-color-danger, oklch(.6 .18 25)) 90%, var(--cngx-color-text, oklch(.2 .01 250)) )}}\n", "@layer cngx.tokens{@property --cngx-alert-gap{syntax: \"<length>\"; inherits: false; initial-value: 12px;}@property --cngx-alert-padding{syntax: \"*\"; inherits: false; initial-value: 12px 16px;}@property --cngx-alert-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-alert-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 240);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 240);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .11 240);}@property --cngx-alert-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-alert-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-alert-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .135 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 75);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 75);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.67 .135 75);}@property --cngx-alert-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-alert-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-alert-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.56 .16 25);}@property --cngx-alert-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-alert-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-alert-title-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-title-gap{syntax: \"<length>\"; inherits: true; initial-value: 4px;}@property --cngx-alert-collapse-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-collapsed-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .02);}@property --cngx-alert-actions-gap{syntax: \"<length>\"; inherits: true; initial-value: 8px;}@property --cngx-alert-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-alert-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-alert-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-alert-action-color{syntax: \"*\"; inherits: true;}@property --cngx-alert-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-alert-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-alert-exit-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}:where(.cngx-alert,.cngx-alert *){--cngx-alert-collapse-duration: var(--cngx-duration-base);--cngx-alert-enter-duration: var(--cngx-duration-base);--cngx-alert-exit-duration: var(--cngx-duration-fast)}@property --cngx-alert-icon-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-alert-enter-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-exit-offset{syntax: \"<length>\"; inherits: false; initial-value: 8px;}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.3 .05 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.5 .08 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.74 .1 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.3 .06 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.5 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.71 .126 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.32 .06 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.55 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.8 .125 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.3 .05 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.5 .1 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.71 .152 25));--cngx-alert-collapsed-hover-bg: oklch(1 0 0 / .04);--cngx-alert-action-hover-bg: oklch(1 0 0 / .06)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: var(--cngx-feedback-info-bg, oklch(.96 .025 240));--cngx-alert-info-border: var(--cngx-feedback-info-border, oklch(.85 .07 240));--cngx-alert-info-icon: var(--cngx-feedback-info-icon, oklch(.6 .11 240));--cngx-alert-success-bg: var(--cngx-feedback-success-bg, oklch(.96 .04 145));--cngx-alert-success-border: var(--cngx-feedback-success-border, oklch(.85 .1 145));--cngx-alert-success-icon: var(--cngx-feedback-success-icon, oklch(.56 .135 145));--cngx-alert-warning-bg: var(--cngx-feedback-warning-bg, oklch(.97 .04 75));--cngx-alert-warning-border: var(--cngx-feedback-warning-border, oklch(.86 .1 75));--cngx-alert-warning-icon: var(--cngx-feedback-warning-icon, oklch(.67 .135 75));--cngx-alert-error-bg: var(--cngx-feedback-error-bg, oklch(.96 .025 25));--cngx-alert-error-border: var(--cngx-feedback-error-border, oklch(.85 .08 25));--cngx-alert-error-icon: var(--cngx-feedback-error-icon, oklch(.56 .16 25));--cngx-alert-collapsed-hover-bg: oklch(0 0 0 / .02);--cngx-alert-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-alert){:scope{--cngx-alert-gap: var(--cngx-space-sm);--cngx-alert-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-alert-title-gap: var(--cngx-space-xs);--cngx-alert-actions-gap: var(--cngx-space-sm);--cngx-alert-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:flex;align-items:flex-start;gap:var(--cngx-alert-gap, 12px);padding:var(--cngx-alert-padding, 12px 16px);border-radius:var(--cngx-alert-border-radius, 8px);border:1px solid var(--cngx-alert-border-color, transparent);background:var(--cngx-alert-bg, oklch(.98 .005 250));color:var(--cngx-alert-color, inherit)}:scope.cngx-alert--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 240));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 240));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.6 .11 240))}:scope.cngx-alert--success{--cngx-alert-bg: var(--cngx-alert-success-bg, oklch(.96 .04 145));--cngx-alert-border-color: var(--cngx-alert-success-border, oklch(.85 .1 145));--cngx-alert-icon-color: var(--cngx-alert-success-icon, oklch(.56 .135 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 75));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 75));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.67 .135 75))}:scope.cngx-alert--error{--cngx-alert-bg: var(--cngx-alert-error-bg, oklch(.96 .025 25));--cngx-alert-border-color: var(--cngx-alert-error-border, oklch(.85 .08 25));--cngx-alert-icon-color: var(--cngx-alert-error-icon, oklch(.56 .16 25))}.cngx-alert__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert__body{flex:1;min-width:0}.cngx-alert__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert__collapsible{display:grid;grid-template-rows:1fr;transition:grid-template-rows var(--cngx-alert-collapse-duration, .2s) ease}.cngx-alert__collapsible>*{overflow:hidden}:scope.cngx-alert--collapsed .cngx-alert__collapsible{grid-template-rows:0fr}:scope.cngx-alert--collapsed{cursor:pointer}:scope.cngx-alert--collapsed:hover{background:var(--cngx-alert-collapsed-hover-bg, oklch(0 0 0 / .02))}.cngx-alert__actions:empty{display:none}.cngx-alert__actions{margin-top:var(--cngx-alert-actions-gap, 8px)}.cngx-alert__action{appearance:none;background:var(--cngx-alert-action-bg, transparent);border:1px solid currentColor;border-radius:var(--cngx-alert-action-radius, 4px);padding:var(--cngx-alert-action-padding, 4px 10px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-alert-action-font-size, .875rem);font-weight:var(--cngx-alert-action-font-weight, 600);color:var( --cngx-alert-action-color, color-mix( in oklab, var(--cngx-alert-icon-color, currentColor) 60%, var(--cngx-color-text, oklch(.2 .01 250)) ) );white-space:nowrap}.cngx-alert__action:hover:not(:disabled){background:var(--cngx-alert-action-hover-bg, oklch(0 0 0 / .04))}.cngx-alert__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-alert__action:disabled{cursor:not-allowed;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent);border-color:currentColor}.cngx-alert__dismiss{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px)}:scope.cngx-alert--hidden{display:none}:scope.cngx-alert--entering{animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}:scope.cngx-alert--entering .cngx-alert__icon{animation:cngx-alert-icon-pulse var(--cngx-alert-icon-pulse-duration, .3s) ease-out}:scope.cngx-alert--exiting{animation:cngx-alert-exit var(--cngx-alert-exit-duration, .15s) ease-in both}@media(prefers-reduced-motion:reduce){:scope.cngx-alert--entering,:scope.cngx-alert--entering .cngx-alert__icon{animation:none}:scope.cngx-alert--exiting{animation:none}.cngx-alert__collapsible{transition:none!important}}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}@keyframes cngx-alert-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-exit-offset, 8px)))}}@keyframes cngx-alert-icon-pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
|
|
2135
2140
|
}], ctorParameters: () => [], propDecorators: { severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], when: [{ type: i0.Input, args: [{ isSignal: true, alias: "when", required: false }] }], autoDismissDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDismissDelay", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], collapseDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseDelay", required: false }] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }], customIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAlertIcon), { isSignal: true }] }], hasActions: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAlertAction), { isSignal: true }] }] } });
|
|
2136
2141
|
|
|
2137
2142
|
/** @internal - AlertState objects are immutable, so reference equality per slot suffices. */
|
|
@@ -2278,7 +2283,7 @@ class CngxAlertStack {
|
|
|
2278
2283
|
a.keys.length === b.keys.length &&
|
|
2279
2284
|
a.keys.every((k, i) => k === b.keys[i]) });
|
|
2280
2285
|
constructor() {
|
|
2281
|
-
if (
|
|
2286
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
2282
2287
|
const warned = new Set();
|
|
2283
2288
|
effect(() => {
|
|
2284
2289
|
if (this.overflowCount() === 0) {
|
|
@@ -2291,7 +2296,7 @@ class CngxAlertStack {
|
|
|
2291
2296
|
return;
|
|
2292
2297
|
}
|
|
2293
2298
|
warned.add(pair);
|
|
2294
|
-
untracked(() =>
|
|
2299
|
+
untracked(() => cngxDevWarn('CNGX3003', `[cngx-alert-stack] the overflow aria-label "${name}" does not contain its visible ` +
|
|
2295
2300
|
`label "${visible}" (WCAG 2.5.3). Make alertOverflow(count) include ` +
|
|
2296
2301
|
'alertOverflowVisible(count).'));
|
|
2297
2302
|
});
|
|
@@ -2499,15 +2504,17 @@ class CngxAlertOn {
|
|
|
2499
2504
|
alertScope = input(undefined, ...(ngDevMode ? [{ debugName: "alertScope" }] : /* istanbul ignore next */ []));
|
|
2500
2505
|
constructor() {
|
|
2501
2506
|
if (!this.alerter) {
|
|
2502
|
-
throw new
|
|
2503
|
-
|
|
2507
|
+
throw new CngxRuntimeError('CNGX3015', typeof ngDevMode !== 'undefined' &&
|
|
2508
|
+
ngDevMode &&
|
|
2509
|
+
'[cngxAlertOn] CngxAlerter not found. ' +
|
|
2510
|
+
'Add withAlerts() to provideFeedback() or provide CngxAlerter in an ancestor component.');
|
|
2504
2511
|
}
|
|
2505
2512
|
const alerter = this.alerter;
|
|
2506
|
-
if (
|
|
2513
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
2507
2514
|
// afterNextRender, not effect - dev-mode one-shot, no dead reactive node.
|
|
2508
2515
|
afterNextRender(() => {
|
|
2509
2516
|
if (this.state() === undefined && !this.statefulFallback) {
|
|
2510
|
-
|
|
2517
|
+
cngxDevError('CNGX3002', '[cngxAlertOn] No state source. Bind [cngxAlertOn]="state" explicitly or ' +
|
|
2511
2518
|
'place inside a component that provides CNGX_STATEFUL.');
|
|
2512
2519
|
}
|
|
2513
2520
|
});
|
|
@@ -2788,14 +2795,16 @@ class CngxBannerOn {
|
|
|
2788
2795
|
bannerErrorDetail = input(false, ...(ngDevMode ? [{ debugName: "bannerErrorDetail" }] : /* istanbul ignore next */ []));
|
|
2789
2796
|
constructor() {
|
|
2790
2797
|
if (!this.bannerService) {
|
|
2791
|
-
throw new
|
|
2798
|
+
throw new CngxRuntimeError('CNGX3017', typeof ngDevMode !== 'undefined' &&
|
|
2799
|
+
ngDevMode &&
|
|
2800
|
+
'[cngxBannerOn] CngxBanner not found. ' + 'Add withBanners() to provideFeedback().');
|
|
2792
2801
|
}
|
|
2793
2802
|
const banner = this.bannerService;
|
|
2794
|
-
if (
|
|
2803
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
2795
2804
|
// afterNextRender, not effect - one-shot post-binding check, no dead node in the reactive graph.
|
|
2796
2805
|
afterNextRender(() => {
|
|
2797
2806
|
if (this.state() === undefined && !this.statefulFallback) {
|
|
2798
|
-
|
|
2807
|
+
cngxDevError('CNGX3002', '[cngxBannerOn] No state source. Bind [cngxBannerOn]="state" explicitly or ' +
|
|
2799
2808
|
'place inside a component that provides CNGX_STATEFUL.');
|
|
2800
2809
|
}
|
|
2801
2810
|
});
|
|
@@ -2894,7 +2903,10 @@ class CngxBannerTrigger {
|
|
|
2894
2903
|
equal: (a, b) => a.current === b.current && a.previous === b.previous });
|
|
2895
2904
|
constructor() {
|
|
2896
2905
|
if (!this.banner) {
|
|
2897
|
-
throw new
|
|
2906
|
+
throw new CngxRuntimeError('CNGX3017', typeof ngDevMode !== 'undefined' &&
|
|
2907
|
+
ngDevMode &&
|
|
2908
|
+
'[cngx-banner-trigger] CngxBanner not found. ' +
|
|
2909
|
+
'Add withBanners() to provideFeedback().');
|
|
2898
2910
|
}
|
|
2899
2911
|
const banner = this.banner;
|
|
2900
2912
|
// Input reads stay tracked (message/severity updates re-show under the
|
|
@@ -2929,13 +2941,14 @@ class CngxBannerTrigger {
|
|
|
2929
2941
|
});
|
|
2930
2942
|
}
|
|
2931
2943
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBannerTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2932
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxBannerTrigger, isStandalone: true, selector: "cngx-banner-trigger", inputs: { when: { classPropertyName: "when", publicName: "when", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, actionHandler: { classPropertyName: "actionHandler", publicName: "actionHandler", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: none" }, ngImport: i0, template: '', isInline: true });
|
|
2944
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxBannerTrigger, isStandalone: true, selector: "cngx-banner-trigger", inputs: { when: { classPropertyName: "when", publicName: "when", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, actionHandler: { classPropertyName: "actionHandler", publicName: "actionHandler", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: none" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2933
2945
|
}
|
|
2934
2946
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBannerTrigger, decorators: [{
|
|
2935
2947
|
type: Component,
|
|
2936
2948
|
args: [{
|
|
2937
2949
|
selector: 'cngx-banner-trigger',
|
|
2938
2950
|
standalone: true,
|
|
2951
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2939
2952
|
template: '',
|
|
2940
2953
|
host: { style: 'display: none' },
|
|
2941
2954
|
}]
|
|
@@ -3229,16 +3242,18 @@ class CngxToastOn {
|
|
|
3229
3242
|
toastErrorDuration = input('persistent', ...(ngDevMode ? [{ debugName: "toastErrorDuration" }] : /* istanbul ignore next */ []));
|
|
3230
3243
|
constructor() {
|
|
3231
3244
|
if (!this.toast) {
|
|
3232
|
-
throw new
|
|
3233
|
-
|
|
3245
|
+
throw new CngxRuntimeError('CNGX3016', typeof ngDevMode !== 'undefined' &&
|
|
3246
|
+
ngDevMode &&
|
|
3247
|
+
'[cngxToastOn] CngxToaster not found. ' +
|
|
3248
|
+
'Add withToasts() to provideFeedback() or call provideToasts() in your providers.');
|
|
3234
3249
|
}
|
|
3235
3250
|
this.toastService = this.toast;
|
|
3236
|
-
if (
|
|
3251
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
3237
3252
|
// afterNextRender, not effect - one-shot post-binding check, no dead
|
|
3238
3253
|
// node in the reactive graph for the directive's lifetime.
|
|
3239
3254
|
afterNextRender(() => {
|
|
3240
3255
|
if (this.state() === undefined && !this.statefulFallback) {
|
|
3241
|
-
|
|
3256
|
+
cngxDevError('CNGX3002', '[cngxToastOn] No state source. Bind [cngxToastOn]="state" explicitly or ' +
|
|
3242
3257
|
'place inside a component that provides CNGX_STATEFUL.');
|
|
3243
3258
|
}
|
|
3244
3259
|
});
|
|
@@ -3366,8 +3381,10 @@ class CngxToast {
|
|
|
3366
3381
|
equal: (a, b) => a.when === b.when && a.changed === b.changed });
|
|
3367
3382
|
constructor() {
|
|
3368
3383
|
if (!this.toaster) {
|
|
3369
|
-
throw new
|
|
3370
|
-
|
|
3384
|
+
throw new CngxRuntimeError('CNGX3016', typeof ngDevMode !== 'undefined' &&
|
|
3385
|
+
ngDevMode &&
|
|
3386
|
+
'[cngx-toast] CngxToaster not found. ' +
|
|
3387
|
+
'Add withToasts() to provideFeedback() or call provideToasts() in your providers.');
|
|
3371
3388
|
}
|
|
3372
3389
|
const toaster = this.toaster;
|
|
3373
3390
|
// Edge-triggered: false→true shows, true→false dismisses (a no-op when
|
|
@@ -3424,13 +3441,14 @@ class CngxToast {
|
|
|
3424
3441
|
return hasContent ? tpl : undefined;
|
|
3425
3442
|
}
|
|
3426
3443
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3427
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: CngxToast, isStandalone: true, selector: "cngx-toast", inputs: { when: { classPropertyName: "when", publicName: "when", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, actionHandler: { classPropertyName: "actionHandler", publicName: "actionHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, host: { styleAttribute: "display: none" }, viewQueries: [{ propertyName: "projectedContent", first: true, predicate: ["projectedContent"], descendants: true, isSignal: true }], ngImport: i0, template: `<ng-template #projectedContent><ng-content /></ng-template>`, isInline: true });
|
|
3444
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: CngxToast, isStandalone: true, selector: "cngx-toast", inputs: { when: { classPropertyName: "when", publicName: "when", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, actionHandler: { classPropertyName: "actionHandler", publicName: "actionHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, host: { styleAttribute: "display: none" }, viewQueries: [{ propertyName: "projectedContent", first: true, predicate: ["projectedContent"], descendants: true, isSignal: true }], ngImport: i0, template: `<ng-template #projectedContent><ng-content /></ng-template>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3428
3445
|
}
|
|
3429
3446
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxToast, decorators: [{
|
|
3430
3447
|
type: Component,
|
|
3431
3448
|
args: [{
|
|
3432
3449
|
selector: 'cngx-toast',
|
|
3433
3450
|
standalone: true,
|
|
3451
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3434
3452
|
// Deferred projection: the ng-content only materializes where the captured
|
|
3435
3453
|
// template is instantiated (probe or outlet), never at the host position.
|
|
3436
3454
|
template: `<ng-template #projectedContent><ng-content /></ng-template>`,
|
|
@@ -3599,8 +3617,21 @@ class CngxAsyncContainer {
|
|
|
3599
3617
|
* @internal - flash-suppressed first-load skeleton view. A sub-`showDelay` first
|
|
3600
3618
|
* load never renders the skeleton outlet; once shown it holds for `minDwell`. The
|
|
3601
3619
|
* region `aria-busy` stays truthful (`state().isBusy()`); only the visual is gated.
|
|
3620
|
+
* See {@link renderedView} for which exits wait for the hold.
|
|
3602
3621
|
*/
|
|
3603
3622
|
skeletonVisible = createVisibilityGate(computed(() => this.activeView() === 'skeleton'), this.showDelay, this.minDwell);
|
|
3623
|
+
/**
|
|
3624
|
+
* @internal - the view the template renders. While a shown first-load skeleton
|
|
3625
|
+
* is still inside its `minDwell`, a `content` or `empty` result waits and swaps
|
|
3626
|
+
* in when the dwell ends. An `error` replaces the skeleton immediately, and a
|
|
3627
|
+
* reset to idle (`none`) clears it immediately. The live-region announcement
|
|
3628
|
+
* follows the status, not this view, so AT hears the result without the delay.
|
|
3629
|
+
*/
|
|
3630
|
+
renderedView = computed(() => {
|
|
3631
|
+
const view = this.activeView();
|
|
3632
|
+
const waitsForDwell = view === 'content' || view === 'empty';
|
|
3633
|
+
return waitsForDwell && this.skeletonVisible() ? 'skeleton' : view;
|
|
3634
|
+
}, ...(ngDevMode ? [{ debugName: "renderedView" }] : /* istanbul ignore next */ []));
|
|
3604
3635
|
/** @internal - flash-suppressed refresh bar, gated by the same showDelay + minDwell. */
|
|
3605
3636
|
refreshVisible = createVisibilityGate(this.showRefreshIndicator, this.showDelay, this.minDwell);
|
|
3606
3637
|
/** @internal */
|
|
@@ -3670,7 +3701,7 @@ class CngxAsyncContainer {
|
|
|
3670
3701
|
/>
|
|
3671
3702
|
}
|
|
3672
3703
|
|
|
3673
|
-
@switch (
|
|
3704
|
+
@switch (renderedView()) {
|
|
3674
3705
|
@case ('skeleton') {
|
|
3675
3706
|
@if (skeletonVisible() && skeletonTpl(); as tpl) {
|
|
3676
3707
|
<ng-container *ngTemplateOutlet="tpl.templateRef" />
|
|
@@ -3724,7 +3755,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3724
3755
|
/>
|
|
3725
3756
|
}
|
|
3726
3757
|
|
|
3727
|
-
@switch (
|
|
3758
|
+
@switch (renderedView()) {
|
|
3728
3759
|
@case ('skeleton') {
|
|
3729
3760
|
@if (skeletonVisible() && skeletonTpl(); as tpl) {
|
|
3730
3761
|
<ng-container *ngTemplateOutlet="tpl.templateRef" />
|