@cngx/ui 0.1.0-rc.5 → 0.1.0-rc.7
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/README.md +112 -0
- package/a11y/README.md +81 -0
- package/context-menu/README.md +98 -0
- package/data-grid-accordion/README.md +27 -0
- package/feedback/README.md +2 -0
- package/fesm2022/cngx-ui-a11y.mjs +320 -0
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
- package/fesm2022/cngx-ui-accordion.mjs +19 -8
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +5 -2
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +11 -6
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +429 -0
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
- package/fesm2022/cngx-ui-collection.mjs +15 -6
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +1005 -0
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
- package/fesm2022/cngx-ui-context-menu.mjs +742 -0
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +90 -20
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +97 -106
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +18 -9
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +9 -9
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +64 -70
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +18 -8
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +2 -2
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +20 -7
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +2 -2
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +618 -0
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
- package/fesm2022/cngx-ui-stepper.mjs +38 -19
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +36 -19
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +495 -0
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
- package/fesm2022/cngx-ui-toc.mjs +704 -0
- package/fesm2022/cngx-ui-toc.mjs.map +1 -0
- package/fesm2022/cngx-ui.mjs +2 -2
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-accordion/README.md +1 -1
- package/mat-tabs/styles/mat-tabs.css +20 -17
- package/package.json +32 -1
- package/skeleton/README.md +2 -0
- package/stepper/README.md +2 -2
- package/timeline/README.md +350 -0
- package/toc/README.md +183 -0
- package/types/cngx-ui-a11y.d.ts +303 -0
- package/types/cngx-ui-accordion.d.ts +9 -4
- package/types/cngx-ui-action-button.d.ts +3 -0
- package/types/cngx-ui-breadcrumb.d.ts +5 -0
- package/types/cngx-ui-chart-panel.d.ts +278 -0
- package/types/cngx-ui-collection.d.ts +12 -3
- package/types/cngx-ui-command-palette.d.ts +451 -0
- package/types/cngx-ui-context-menu.d.ts +467 -0
- package/types/cngx-ui-data-grid-accordion.d.ts +72 -15
- package/types/cngx-ui-feedback.d.ts +71 -18
- package/types/cngx-ui-layout.d.ts +8 -3
- package/types/cngx-ui-mat-accordion.d.ts +3 -3
- package/types/cngx-ui-mat-tabs.d.ts +11 -9
- package/types/cngx-ui-paginator.d.ts +13 -3
- package/types/cngx-ui-skeleton.d.ts +13 -1
- package/types/cngx-ui-stat-card.d.ts +327 -0
- package/types/cngx-ui-stepper.d.ts +18 -4
- package/types/cngx-ui-tabs.d.ts +20 -4
- package/types/cngx-ui-timeline.d.ts +479 -0
- package/types/cngx-ui-toc.d.ts +514 -0
- package/types/cngx-ui.d.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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, input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, effect, TemplateRef, Directive, output, contentChild, untracked, linkedSignal, isDevMode, afterNextRender } from '@angular/core';
|
|
4
|
+
import { CNGX_LOADING_DEFAULTS, CNGX_LOADING_CONFIG, injectLoadingConfig, createVisibilityGate, createTransitionTracker, CNGX_STATEFUL } from '@cngx/core/utils';
|
|
4
5
|
import { CNGX_CLOSE_ICON, CngxCloseButton } from '@cngx/common/interactive';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
6
|
-
import { createTransitionTracker, CNGX_STATEFUL } from '@cngx/core/utils';
|
|
7
7
|
import { resolveAsyncView } from '@cngx/common/data';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -499,7 +499,18 @@ function withAlertIcons(icons) {
|
|
|
499
499
|
/**
|
|
500
500
|
* Set default timing for all loading indicators and overlays.
|
|
501
501
|
*
|
|
502
|
-
*
|
|
502
|
+
* Forwards into the Level-1 `CNGX_LOADING_CONFIG` cascade so the gated
|
|
503
|
+
* surfaces (indicator, overlay, async-container, skeleton) all read the same
|
|
504
|
+
* defaults. Prefer `provideLoadingConfig(withShowDelay(...), withMinDwell(...))`
|
|
505
|
+
* from `@cngx/core/utils` directly; this feature is kept for back-compat.
|
|
506
|
+
*
|
|
507
|
+
* Note: this forwarder provides a full `CNGX_LOADING_CONFIG` value, so under
|
|
508
|
+
* DI last-wins it replaces the whole config - including `spinnerVsSkeletonCutoff`,
|
|
509
|
+
* which resets to its default. Set the cutoff through
|
|
510
|
+
* `provideLoadingConfig(withSpinnerVsSkeletonCutoff(...))` rather than combining
|
|
511
|
+
* it with this back-compat forwarder.
|
|
512
|
+
*
|
|
513
|
+
* Individual components can still override via their `[delay]` and `[minDwell]` inputs.
|
|
503
514
|
*
|
|
504
515
|
* ```ts
|
|
505
516
|
* provideFeedback(withLoadingDefaults({ delay: 300, minDuration: 600 }))
|
|
@@ -514,6 +525,16 @@ function withLoadingDefaults(opts) {
|
|
|
514
525
|
loadingDelay: opts.delay ?? c.loadingDelay,
|
|
515
526
|
loadingMinDuration: opts.minDuration ?? c.loadingMinDuration,
|
|
516
527
|
}),
|
|
528
|
+
_providers: [
|
|
529
|
+
{
|
|
530
|
+
provide: CNGX_LOADING_CONFIG,
|
|
531
|
+
useValue: {
|
|
532
|
+
showDelay: opts.delay ?? CNGX_LOADING_DEFAULTS.showDelay,
|
|
533
|
+
minDwell: opts.minDuration ?? CNGX_LOADING_DEFAULTS.minDwell,
|
|
534
|
+
spinnerVsSkeletonCutoff: CNGX_LOADING_DEFAULTS.spinnerVsSkeletonCutoff,
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
],
|
|
517
538
|
};
|
|
518
539
|
}
|
|
519
540
|
/**
|
|
@@ -620,68 +641,6 @@ function withBanners() {
|
|
|
620
641
|
};
|
|
621
642
|
}
|
|
622
643
|
|
|
623
|
-
/**
|
|
624
|
-
* Creates a debounced visibility signal from an active-state signal.
|
|
625
|
-
*
|
|
626
|
-
* Implements two timing rules:
|
|
627
|
-
* - `delay`: suppresses visibility for fast operations (no flash)
|
|
628
|
-
* - `minDuration`: keeps visible for at least this long once shown (no jarring disappearance)
|
|
629
|
-
*
|
|
630
|
-
* Must be called in an injection context (uses `inject(DestroyRef)` for cleanup).
|
|
631
|
-
*
|
|
632
|
-
* @returns A readonly signal that is `true` when the indicator should be visible.
|
|
633
|
-
* @internal
|
|
634
|
-
*/
|
|
635
|
-
function createVisibilityTimer(isActive, delay, minDuration) {
|
|
636
|
-
const destroyRef = inject(DestroyRef);
|
|
637
|
-
const visible = signal(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
638
|
-
let delayTimer;
|
|
639
|
-
let minDurationTimer;
|
|
640
|
-
let minDurationElapsed = true;
|
|
641
|
-
effect(() => {
|
|
642
|
-
const active = isActive();
|
|
643
|
-
const delayMs = delay();
|
|
644
|
-
const minMs = minDuration();
|
|
645
|
-
if (active) {
|
|
646
|
-
clearTimer('delay');
|
|
647
|
-
delayTimer = setTimeout(() => {
|
|
648
|
-
delayTimer = undefined;
|
|
649
|
-
visible.set(true);
|
|
650
|
-
minDurationElapsed = false;
|
|
651
|
-
clearTimer('minDuration');
|
|
652
|
-
minDurationTimer = setTimeout(() => {
|
|
653
|
-
minDurationTimer = undefined;
|
|
654
|
-
minDurationElapsed = true;
|
|
655
|
-
if (!isActive()) {
|
|
656
|
-
visible.set(false);
|
|
657
|
-
}
|
|
658
|
-
}, minMs);
|
|
659
|
-
}, delayMs);
|
|
660
|
-
}
|
|
661
|
-
else {
|
|
662
|
-
clearTimer('delay');
|
|
663
|
-
if (minDurationElapsed) {
|
|
664
|
-
visible.set(false);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
destroyRef.onDestroy(() => {
|
|
669
|
-
clearTimer('delay');
|
|
670
|
-
clearTimer('minDuration');
|
|
671
|
-
});
|
|
672
|
-
function clearTimer(which) {
|
|
673
|
-
if (which === 'delay' && delayTimer !== undefined) {
|
|
674
|
-
clearTimeout(delayTimer);
|
|
675
|
-
delayTimer = undefined;
|
|
676
|
-
}
|
|
677
|
-
if (which === 'minDuration' && minDurationTimer !== undefined) {
|
|
678
|
-
clearTimeout(minDurationTimer);
|
|
679
|
-
minDurationTimer = undefined;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
return visible.asReadonly();
|
|
683
|
-
}
|
|
684
|
-
|
|
685
644
|
/**
|
|
686
645
|
* Loading indicator atom - purely visual, blocks no interaction.
|
|
687
646
|
*
|
|
@@ -689,9 +648,9 @@ function createVisibilityTimer(isActive, delay, minDuration) {
|
|
|
689
648
|
* - `spinner` - rotating circle, inline or centered
|
|
690
649
|
* - `bar` - thin line at the top of the container (YouTube-style)
|
|
691
650
|
*
|
|
692
|
-
* Timing:
|
|
693
|
-
* - `delay` (default
|
|
694
|
-
* - `
|
|
651
|
+
* Timing (defaults from `CNGX_LOADING_CONFIG`):
|
|
652
|
+
* - `delay` (default 120ms): operations faster than this never show the indicator
|
|
653
|
+
* - `minDwell` (default 400ms): once visible, stays for at least this long
|
|
695
654
|
*
|
|
696
655
|
* For content-blocking overlays, use `cngx-loading-overlay` instead.
|
|
697
656
|
*
|
|
@@ -717,6 +676,7 @@ function createVisibilityTimer(isActive, delay, minDuration) {
|
|
|
717
676
|
*/
|
|
718
677
|
class CngxLoadingIndicator {
|
|
719
678
|
config = inject(CNGX_FEEDBACK_CONFIG, { optional: true });
|
|
679
|
+
loadingConfig = injectLoadingConfig();
|
|
720
680
|
/** Bind an async state - shows indicator when `isBusy()`. */
|
|
721
681
|
state = input(undefined, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
722
682
|
/** Direct boolean control - alternative to `[state]`. */
|
|
@@ -725,18 +685,25 @@ class CngxLoadingIndicator {
|
|
|
725
685
|
variant = input('spinner', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
726
686
|
/** Screen reader label. */
|
|
727
687
|
label = input('Loading', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
728
|
-
/** Delay in ms before showing the indicator.
|
|
729
|
-
delay = input(this.
|
|
730
|
-
/** Minimum display time in ms once visible.
|
|
731
|
-
|
|
688
|
+
/** Delay in ms before showing the indicator. Defaults to `CNGX_LOADING_CONFIG.showDelay`. */
|
|
689
|
+
delay = input(this.loadingConfig.showDelay, ...(ngDevMode ? [{ debugName: "delay" }] : /* istanbul ignore next */ []));
|
|
690
|
+
/** Minimum display time in ms once visible. Defaults to `CNGX_LOADING_CONFIG.minDwell`. */
|
|
691
|
+
minDwell = input(this.loadingConfig.minDwell, ...(ngDevMode ? [{ debugName: "minDwell" }] : /* istanbul ignore next */ []));
|
|
692
|
+
/**
|
|
693
|
+
* @deprecated Use `minDwell`. Kept one release for migration; when set, it
|
|
694
|
+
* takes precedence over `minDwell`.
|
|
695
|
+
*/
|
|
696
|
+
minDuration = input(undefined, ...(ngDevMode ? [{ debugName: "minDuration" }] : /* istanbul ignore next */ []));
|
|
732
697
|
/** @internal - true when the underlying source says "loading". */
|
|
733
698
|
isActive = computed(() => this.state()?.isBusy() ?? this.loading(), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
734
699
|
/** @internal - custom spinner component from global config. */
|
|
735
700
|
customSpinner = computed(() => this.config?.spinnerComponent ?? null, ...(ngDevMode ? [{ debugName: "customSpinner" }] : /* istanbul ignore next */ []));
|
|
736
|
-
/** @internal -
|
|
737
|
-
|
|
701
|
+
/** @internal - deprecated `minDuration` alias forwards to `minDwell`. */
|
|
702
|
+
effectiveMinDwell = computed(() => this.minDuration() ?? this.minDwell(), ...(ngDevMode ? [{ debugName: "effectiveMinDwell" }] : /* istanbul ignore next */ []));
|
|
703
|
+
/** @internal - final visibility after delay + minDwell. */
|
|
704
|
+
visible = createVisibilityGate(this.isActive, this.delay, this.effectiveMinDwell);
|
|
738
705
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxLoadingIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
739
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxLoadingIndicator, isStandalone: true, selector: "cngx-loading-indicator", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, minDuration: { classPropertyName: "minDuration", publicName: "minDuration", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cngx-loading-indicator--visible": "visible()", "class.cngx-loading-indicator--spinner": "variant() === \"spinner\"", "class.cngx-loading-indicator--bar": "variant() === \"bar\"", "attr.role": "\"status\"", "attr.aria-label": "visible() ? label() : null", "attr.aria-busy": "isActive() || null" }, classAttribute: "cngx-loading-indicator" }, ngImport: i0, template: `
|
|
706
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxLoadingIndicator, isStandalone: true, selector: "cngx-loading-indicator", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, minDwell: { classPropertyName: "minDwell", publicName: "minDwell", isSignal: true, isRequired: false, transformFunction: null }, minDuration: { classPropertyName: "minDuration", publicName: "minDuration", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cngx-loading-indicator--visible": "visible()", "class.cngx-loading-indicator--spinner": "variant() === \"spinner\"", "class.cngx-loading-indicator--bar": "variant() === \"bar\"", "attr.role": "\"status\"", "attr.aria-label": "visible() ? label() : null", "attr.aria-busy": "isActive() || null" }, classAttribute: "cngx-loading-indicator" }, ngImport: i0, template: `
|
|
740
707
|
@if (visible()) {
|
|
741
708
|
@if (variant() === 'spinner') {
|
|
742
709
|
@if (customSpinner(); as cmp) {
|
|
@@ -817,7 +784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
817
784
|
}
|
|
818
785
|
}
|
|
819
786
|
`, styles: ["@layer cngx.tokens{@property --cngx-loading-bar-height{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-loading-bar-radius{syntax: \"<length>\"; inherits: false; initial-value: 0;}@property --cngx-loading-indicator-size{syntax: \"<length>\"; inherits: false; initial-value: 24px;}@property --cngx-loading-indicator-track{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .1);}@property --cngx-loading-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-spin-duration{syntax: \"<time>\"; inherits: false; initial-value: .8s;}@property --cngx-spin-easing{syntax: \"*\"; inherits: false; initial-value: linear;}@property --cngx-bar-duration{syntax: \"<time>\"; inherits: false; initial-value: 1.5s;}@property --cngx-bar-easing{syntax: \"*\"; inherits: false; initial-value: ease-in-out;}@property --cngx-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: 2s;}@property --cngx-pulse-easing{syntax: \"*\"; inherits: false; initial-value: ease-in-out;}}@layer cngx.components{@scope(.cngx-loading-indicator){:scope{display:inline-flex;align-items:center;justify-content:center}:scope.cngx-loading-indicator--bar{display:block;width:100%;height:var(--cngx-loading-bar-height, 3px)}.cngx-loading-indicator__spinner{width:var(--cngx-loading-indicator-size, 24px);height:var(--cngx-loading-indicator-size, 24px);animation:cngx-spin var(--cngx-spin-duration, .8s) var(--cngx-spin-easing, linear) infinite}.cngx-loading-indicator__spinner-track{stroke:var(--cngx-loading-indicator-track, oklch(0 0 0 / .1))}.cngx-loading-indicator__spinner-arc{stroke:var(--cngx-loading-indicator-color, currentColor)}.cngx-loading-indicator__bar{width:100%;height:100%;background:var(--cngx-loading-indicator-track, oklch(0 0 0 / .1));overflow:hidden;border-radius:var(--cngx-loading-bar-radius, 0)}.cngx-loading-indicator__bar-fill{width:40%;height:100%;background:var(--cngx-loading-indicator-color, currentColor);border-radius:inherit;animation:cngx-bar-indeterminate var(--cngx-bar-duration, 1.5s) var(--cngx-bar-easing, ease-in-out) infinite}@media(prefers-reduced-motion:reduce){.cngx-loading-indicator__spinner{animation:cngx-pulse var(--cngx-pulse-duration, 2s) var(--cngx-pulse-easing, ease-in-out) infinite}.cngx-loading-indicator__bar-fill{animation:cngx-pulse var(--cngx-pulse-duration, 2s) var(--cngx-pulse-easing, ease-in-out) infinite;width:100%;transform:none}}}}@keyframes cngx-spin{to{transform:rotate(360deg)}}@keyframes cngx-bar-indeterminate{0%{transform:translate(-100%)}50%{transform:translate(150%)}to{transform:translate(400%)}}@keyframes cngx-pulse{0%,to{opacity:.4}50%{opacity:1}}\n"] }]
|
|
820
|
-
}], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], minDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDuration", required: false }] }] } });
|
|
787
|
+
}], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], minDwell: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDwell", required: false }] }], minDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDuration", required: false }] }] } });
|
|
821
788
|
|
|
822
789
|
/**
|
|
823
790
|
* Loading overlay - content container that blocks interaction while loading.
|
|
@@ -861,17 +828,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
861
828
|
*/
|
|
862
829
|
class CngxLoadingOverlay {
|
|
863
830
|
doc = inject(DOCUMENT);
|
|
864
|
-
|
|
831
|
+
loadingConfig = injectLoadingConfig();
|
|
865
832
|
/** Bind an async state - shows overlay when `isBusy()`. */
|
|
866
833
|
state = input(undefined, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
867
834
|
/** Direct boolean control - alternative to `[state]`. */
|
|
868
835
|
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
869
836
|
/** Screen reader label for the spinner. */
|
|
870
837
|
label = input('Loading', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
871
|
-
/** Delay in ms before showing the overlay.
|
|
872
|
-
delay = input(this.
|
|
873
|
-
/** Minimum display time in ms once visible.
|
|
874
|
-
|
|
838
|
+
/** Delay in ms before showing the overlay. Defaults to `CNGX_LOADING_CONFIG.showDelay`. */
|
|
839
|
+
delay = input(this.loadingConfig.showDelay, ...(ngDevMode ? [{ debugName: "delay" }] : /* istanbul ignore next */ []));
|
|
840
|
+
/** Minimum display time in ms once visible. Defaults to `CNGX_LOADING_CONFIG.minDwell`. */
|
|
841
|
+
minDwell = input(this.loadingConfig.minDwell, ...(ngDevMode ? [{ debugName: "minDwell" }] : /* istanbul ignore next */ []));
|
|
842
|
+
/**
|
|
843
|
+
* @deprecated Use `minDwell`. Kept one release for migration; when set, it
|
|
844
|
+
* takes precedence over `minDwell`.
|
|
845
|
+
*/
|
|
846
|
+
minDuration = input(undefined, ...(ngDevMode ? [{ debugName: "minDuration" }] : /* istanbul ignore next */ []));
|
|
875
847
|
/**
|
|
876
848
|
* When `true`, the overlay only activates during the first load (`isFirstLoad()`),
|
|
877
849
|
* not during refreshes. Use the async container's built-in refresh bar for
|
|
@@ -886,8 +858,10 @@ class CngxLoadingOverlay {
|
|
|
886
858
|
}
|
|
887
859
|
return this.loading();
|
|
888
860
|
}, ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
889
|
-
/** @internal -
|
|
890
|
-
|
|
861
|
+
/** @internal - deprecated `minDuration` alias forwards to `minDwell`. */
|
|
862
|
+
effectiveMinDwell = computed(() => this.minDuration() ?? this.minDwell(), ...(ngDevMode ? [{ debugName: "effectiveMinDwell" }] : /* istanbul ignore next */ []));
|
|
863
|
+
/** @internal - debounced visibility via shared gate factory. */
|
|
864
|
+
visible = createVisibilityGate(this.isActive, this.delay, this.effectiveMinDwell);
|
|
891
865
|
savedFocus = signal(null, ...(ngDevMode ? [{ debugName: "savedFocus" }] : /* istanbul ignore next */ []));
|
|
892
866
|
contentWrapper = viewChild.required('contentWrapper');
|
|
893
867
|
spinnerEl = viewChild('spinnerEl', ...(ngDevMode ? [{ debugName: "spinnerEl" }] : /* istanbul ignore next */ []));
|
|
@@ -936,7 +910,7 @@ class CngxLoadingOverlay {
|
|
|
936
910
|
});
|
|
937
911
|
}
|
|
938
912
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxLoadingOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
939
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxLoadingOverlay, isStandalone: true, selector: "cngx-loading-overlay", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, minDuration: { classPropertyName: "minDuration", publicName: "minDuration", isSignal: true, isRequired: false, transformFunction: null }, firstLoadOnly: { classPropertyName: "firstLoadOnly", publicName: "firstLoadOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "cngx-loading-overlay" }, viewQueries: [{ propertyName: "contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }, { propertyName: "spinnerEl", first: true, predicate: ["spinnerEl"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
913
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxLoadingOverlay, isStandalone: true, selector: "cngx-loading-overlay", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, minDwell: { classPropertyName: "minDwell", publicName: "minDwell", isSignal: true, isRequired: false, transformFunction: null }, minDuration: { classPropertyName: "minDuration", publicName: "minDuration", isSignal: true, isRequired: false, transformFunction: null }, firstLoadOnly: { classPropertyName: "firstLoadOnly", publicName: "firstLoadOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "cngx-loading-overlay" }, viewQueries: [{ propertyName: "contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }, { propertyName: "spinnerEl", first: true, predicate: ["spinnerEl"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
940
914
|
<div
|
|
941
915
|
class="cngx-loading-overlay__content"
|
|
942
916
|
#contentWrapper
|
|
@@ -958,7 +932,7 @@ class CngxLoadingOverlay {
|
|
|
958
932
|
</div>
|
|
959
933
|
</div>
|
|
960
934
|
}
|
|
961
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-loading-overlay-z-index{syntax: \"<number>\"; inherits: false; initial-value: 10;}@property --cngx-loading-overlay-backdrop-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0 / .5);}@property --cngx-loading-overlay-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-overlay-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-overlay-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}:root{--cngx-loading-overlay-backdrop-bg: oklch(1 0 0 / .5)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-loading-overlay-backdrop-bg: oklch(.15 0 0 / .5)}}:root[data-color-scheme=dark],:root.dark{--cngx-loading-overlay-backdrop-bg: oklch(.15 0 0 / .5)}:root[data-color-scheme=light],:root.light{--cngx-loading-overlay-backdrop-bg: oklch(1 0 0 / .5)}}@layer cngx.components{@scope(.cngx-loading-overlay){:scope{display:grid;grid-template:1fr / 1fr}.cngx-loading-overlay__content{grid-area:1 / 1}.cngx-loading-overlay__backdrop{grid-area:1 / 1;z-index:var(--cngx-loading-overlay-z-index, 10);display:flex;align-items:center;justify-content:center;background:var(--cngx-loading-overlay-backdrop-bg, oklch(1 0 0 / .5));opacity:var(--cngx-loading-overlay-backdrop-opacity, 1);transition:opacity var(--cngx-overlay-transition-duration, .15s) var(--cngx-overlay-transition-easing, ease)}.cngx-loading-overlay__spinner-wrapper{outline:none}.cngx-loading-overlay__spinner-wrapper:focus-visible{outline:2px solid var(--cngx-loading-indicator-color, currentColor);outline-offset:2px;border-radius:50%}@media(prefers-reduced-motion:reduce){.cngx-loading-overlay__backdrop{transition:none}}}}\n"], dependencies: [{ kind: "component", type: CngxLoadingIndicator, selector: "cngx-loading-indicator", inputs: ["state", "loading", "variant", "label", "delay", "minDuration"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
935
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-loading-overlay-z-index{syntax: \"<number>\"; inherits: false; initial-value: 10;}@property --cngx-loading-overlay-backdrop-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0 / .5);}@property --cngx-loading-overlay-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-overlay-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-overlay-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}:root{--cngx-loading-overlay-backdrop-bg: oklch(1 0 0 / .5)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-loading-overlay-backdrop-bg: oklch(.15 0 0 / .5)}}:root[data-color-scheme=dark],:root.dark{--cngx-loading-overlay-backdrop-bg: oklch(.15 0 0 / .5)}:root[data-color-scheme=light],:root.light{--cngx-loading-overlay-backdrop-bg: oklch(1 0 0 / .5)}}@layer cngx.components{@scope(.cngx-loading-overlay){:scope{display:grid;grid-template:1fr / 1fr}.cngx-loading-overlay__content{grid-area:1 / 1}.cngx-loading-overlay__backdrop{grid-area:1 / 1;z-index:var(--cngx-loading-overlay-z-index, 10);display:flex;align-items:center;justify-content:center;background:var(--cngx-loading-overlay-backdrop-bg, oklch(1 0 0 / .5));opacity:var(--cngx-loading-overlay-backdrop-opacity, 1);transition:opacity var(--cngx-overlay-transition-duration, .15s) var(--cngx-overlay-transition-easing, ease)}.cngx-loading-overlay__spinner-wrapper{outline:none}.cngx-loading-overlay__spinner-wrapper:focus-visible{outline:2px solid var(--cngx-loading-indicator-color, currentColor);outline-offset:2px;border-radius:50%}@media(prefers-reduced-motion:reduce){.cngx-loading-overlay__backdrop{transition:none}}}}\n"], dependencies: [{ kind: "component", type: CngxLoadingIndicator, selector: "cngx-loading-indicator", inputs: ["state", "loading", "variant", "label", "delay", "minDwell", "minDuration"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
962
936
|
}
|
|
963
937
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxLoadingOverlay, decorators: [{
|
|
964
938
|
type: Component,
|
|
@@ -987,7 +961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
987
961
|
</div>
|
|
988
962
|
}
|
|
989
963
|
`, styles: ["@layer cngx.tokens{@property --cngx-loading-overlay-z-index{syntax: \"<number>\"; inherits: false; initial-value: 10;}@property --cngx-loading-overlay-backdrop-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0 / .5);}@property --cngx-loading-overlay-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-overlay-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-overlay-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}:root{--cngx-loading-overlay-backdrop-bg: oklch(1 0 0 / .5)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-loading-overlay-backdrop-bg: oklch(.15 0 0 / .5)}}:root[data-color-scheme=dark],:root.dark{--cngx-loading-overlay-backdrop-bg: oklch(.15 0 0 / .5)}:root[data-color-scheme=light],:root.light{--cngx-loading-overlay-backdrop-bg: oklch(1 0 0 / .5)}}@layer cngx.components{@scope(.cngx-loading-overlay){:scope{display:grid;grid-template:1fr / 1fr}.cngx-loading-overlay__content{grid-area:1 / 1}.cngx-loading-overlay__backdrop{grid-area:1 / 1;z-index:var(--cngx-loading-overlay-z-index, 10);display:flex;align-items:center;justify-content:center;background:var(--cngx-loading-overlay-backdrop-bg, oklch(1 0 0 / .5));opacity:var(--cngx-loading-overlay-backdrop-opacity, 1);transition:opacity var(--cngx-overlay-transition-duration, .15s) var(--cngx-overlay-transition-easing, ease)}.cngx-loading-overlay__spinner-wrapper{outline:none}.cngx-loading-overlay__spinner-wrapper:focus-visible{outline:2px solid var(--cngx-loading-indicator-color, currentColor);outline-offset:2px;border-radius:50%}@media(prefers-reduced-motion:reduce){.cngx-loading-overlay__backdrop{transition:none}}}}\n"] }]
|
|
990
|
-
}], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], minDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDuration", required: false }] }], firstLoadOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstLoadOnly", required: false }] }], contentWrapper: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], spinnerEl: [{ type: i0.ViewChild, args: ['spinnerEl', { isSignal: true }] }] } });
|
|
964
|
+
}], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], minDwell: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDwell", required: false }] }], minDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDuration", required: false }] }], firstLoadOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstLoadOnly", required: false }] }], contentWrapper: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], spinnerEl: [{ type: i0.ViewChild, args: ['spinnerEl', { isSignal: true }] }] } });
|
|
991
965
|
|
|
992
966
|
/** @internal */
|
|
993
967
|
const CIRCUMFERENCE = 2 * Math.PI * 20; // r=20
|
|
@@ -1101,7 +1075,7 @@ class CngxProgress {
|
|
|
1101
1075
|
<span class="cngx-progress__label" aria-hidden="true"> {{ effectiveProgress() }}% </span>
|
|
1102
1076
|
}
|
|
1103
1077
|
}
|
|
1104
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-progress-label-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-progress-height{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-progress-track-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .1);}@property --cngx-progress-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-progress-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-progress-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-progress-indeterminate-duration{syntax: \"<time>\"; inherits: false; initial-value: 1.5s;}@property --cngx-progress-indeterminate-easing{syntax: \"*\"; inherits: false; initial-value: ease-in-out;}@property --cngx-progress-label-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-progress-label-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-circle-size{syntax: \"<length>\"; inherits: false; initial-value: 48px;}@property --cngx-progress-circle-label-size{syntax: \"*\"; inherits: false; initial-value: .625rem;}}@layer cngx.components{@scope(.cngx-progress){:scope{--cngx-progress-label-gap: var(--cngx-space-sm);display:block}:scope.cngx-progress--linear{display:flex;align-items:center;gap:var(--cngx-progress-label-gap, 8px)}.cngx-progress__track{flex:1;height:var(--cngx-progress-height, 4px);background:var(--cngx-progress-track-color, oklch(0 0 0 / .1));border-radius:var(--cngx-progress-border-radius, 2px);overflow:hidden}.cngx-progress__fill{height:100%;background:var(--cngx-progress-color, currentColor);border-radius:inherit;transition:width var(--cngx-progress-transition-duration, .3s) var(--cngx-progress-transition-easing, ease-out)}:scope.cngx-progress--indeterminate .cngx-progress__fill{width:40%;animation:cngx-progress-indeterminate var(--cngx-progress-indeterminate-duration, 1.5s) var(--cngx-progress-indeterminate-easing, ease-in-out) infinite}.cngx-progress__label{font-size:var(--cngx-progress-label-size, .75rem);color:var(--cngx-progress-label-color, currentColor);min-width:3ch;text-align:
|
|
1078
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-progress-label-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-progress-height{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-progress-track-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .1);}@property --cngx-progress-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-progress-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-progress-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-progress-indeterminate-duration{syntax: \"<time>\"; inherits: false; initial-value: 1.5s;}@property --cngx-progress-indeterminate-easing{syntax: \"*\"; inherits: false; initial-value: ease-in-out;}@property --cngx-progress-label-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-progress-label-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-circle-size{syntax: \"<length>\"; inherits: false; initial-value: 48px;}@property --cngx-progress-circle-label-size{syntax: \"*\"; inherits: false; initial-value: .625rem;}}@layer cngx.components{@scope(.cngx-progress){:scope{--cngx-progress-label-gap: var(--cngx-space-sm);display:block}:scope.cngx-progress--linear{display:flex;align-items:center;gap:var(--cngx-progress-label-gap, 8px)}.cngx-progress__track{flex:1;height:var(--cngx-progress-height, 4px);background:var(--cngx-progress-track-color, oklch(0 0 0 / .1));border-radius:var(--cngx-progress-border-radius, 2px);overflow:hidden}.cngx-progress__fill{height:100%;background:var(--cngx-progress-color, currentColor);border-radius:inherit;transition:width var(--cngx-progress-transition-duration, .3s) var(--cngx-progress-transition-easing, ease-out)}:scope.cngx-progress--indeterminate .cngx-progress__fill{width:40%;animation:cngx-progress-indeterminate var(--cngx-progress-indeterminate-duration, 1.5s) var(--cngx-progress-indeterminate-easing, ease-in-out) infinite}.cngx-progress__label{font-size:var(--cngx-progress-label-size, .75rem);color:var(--cngx-progress-label-color, currentColor);min-width:3ch;text-align:end;unicode-bidi:var(--cngx-progress-bidi, isolate);direction:var(--cngx-progress-direction, ltr)}:scope.cngx-progress--circular{display:inline-flex;align-items:center;justify-content:center;position:relative}.cngx-progress__circle{width:var(--cngx-progress-circle-size, 48px);height:var(--cngx-progress-circle-size, 48px);transform:rotate(-90deg)}.cngx-progress__circle-track{stroke:var(--cngx-progress-track-color, oklch(0 0 0 / .1))}.cngx-progress__circle-fill{stroke:var(--cngx-progress-color, currentColor);transition:stroke-dashoffset var(--cngx-progress-transition-duration, .3s) var(--cngx-progress-transition-easing, ease-out)}:scope.cngx-progress--indeterminate .cngx-progress__circle{animation:cngx-progress-spin var(--cngx-spin-duration, .8s) var(--cngx-spin-easing, linear) infinite}:scope.cngx-progress--indeterminate .cngx-progress__circle-fill{stroke-dasharray:80,200;stroke-dashoffset:0;transition:none}:scope.cngx-progress--circular .cngx-progress__label{position:absolute;font-size:var(--cngx-progress-circle-label-size, .625rem)}@media(prefers-reduced-motion:reduce){:scope.cngx-progress--indeterminate .cngx-progress__fill,:scope.cngx-progress--indeterminate .cngx-progress__circle{animation:cngx-pulse var(--cngx-pulse-duration, 2s) var(--cngx-pulse-easing, ease-in-out) infinite}:scope.cngx-progress--indeterminate .cngx-progress__fill{width:100%;transform:none}}}}@keyframes cngx-progress-indeterminate{0%{transform:translate(-100%)}50%{transform:translate(150%)}to{transform:translate(400%)}}@keyframes cngx-progress-spin{to{transform:rotate(270deg)}}@keyframes cngx-pulse{0%,to{opacity:.4}50%{opacity:1}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1105
1079
|
}
|
|
1106
1080
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxProgress, decorators: [{
|
|
1107
1081
|
type: Component,
|
|
@@ -1154,7 +1128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1154
1128
|
<span class="cngx-progress__label" aria-hidden="true"> {{ effectiveProgress() }}% </span>
|
|
1155
1129
|
}
|
|
1156
1130
|
}
|
|
1157
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-progress-label-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-progress-height{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-progress-track-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .1);}@property --cngx-progress-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-progress-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-progress-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-progress-indeterminate-duration{syntax: \"<time>\"; inherits: false; initial-value: 1.5s;}@property --cngx-progress-indeterminate-easing{syntax: \"*\"; inherits: false; initial-value: ease-in-out;}@property --cngx-progress-label-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-progress-label-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-circle-size{syntax: \"<length>\"; inherits: false; initial-value: 48px;}@property --cngx-progress-circle-label-size{syntax: \"*\"; inherits: false; initial-value: .625rem;}}@layer cngx.components{@scope(.cngx-progress){:scope{--cngx-progress-label-gap: var(--cngx-space-sm);display:block}:scope.cngx-progress--linear{display:flex;align-items:center;gap:var(--cngx-progress-label-gap, 8px)}.cngx-progress__track{flex:1;height:var(--cngx-progress-height, 4px);background:var(--cngx-progress-track-color, oklch(0 0 0 / .1));border-radius:var(--cngx-progress-border-radius, 2px);overflow:hidden}.cngx-progress__fill{height:100%;background:var(--cngx-progress-color, currentColor);border-radius:inherit;transition:width var(--cngx-progress-transition-duration, .3s) var(--cngx-progress-transition-easing, ease-out)}:scope.cngx-progress--indeterminate .cngx-progress__fill{width:40%;animation:cngx-progress-indeterminate var(--cngx-progress-indeterminate-duration, 1.5s) var(--cngx-progress-indeterminate-easing, ease-in-out) infinite}.cngx-progress__label{font-size:var(--cngx-progress-label-size, .75rem);color:var(--cngx-progress-label-color, currentColor);min-width:3ch;text-align:
|
|
1131
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-progress-label-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-progress-height{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-progress-track-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .1);}@property --cngx-progress-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-progress-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .3s;}@property --cngx-progress-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-progress-indeterminate-duration{syntax: \"<time>\"; inherits: false; initial-value: 1.5s;}@property --cngx-progress-indeterminate-easing{syntax: \"*\"; inherits: false; initial-value: ease-in-out;}@property --cngx-progress-label-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-progress-label-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-progress-circle-size{syntax: \"<length>\"; inherits: false; initial-value: 48px;}@property --cngx-progress-circle-label-size{syntax: \"*\"; inherits: false; initial-value: .625rem;}}@layer cngx.components{@scope(.cngx-progress){:scope{--cngx-progress-label-gap: var(--cngx-space-sm);display:block}:scope.cngx-progress--linear{display:flex;align-items:center;gap:var(--cngx-progress-label-gap, 8px)}.cngx-progress__track{flex:1;height:var(--cngx-progress-height, 4px);background:var(--cngx-progress-track-color, oklch(0 0 0 / .1));border-radius:var(--cngx-progress-border-radius, 2px);overflow:hidden}.cngx-progress__fill{height:100%;background:var(--cngx-progress-color, currentColor);border-radius:inherit;transition:width var(--cngx-progress-transition-duration, .3s) var(--cngx-progress-transition-easing, ease-out)}:scope.cngx-progress--indeterminate .cngx-progress__fill{width:40%;animation:cngx-progress-indeterminate var(--cngx-progress-indeterminate-duration, 1.5s) var(--cngx-progress-indeterminate-easing, ease-in-out) infinite}.cngx-progress__label{font-size:var(--cngx-progress-label-size, .75rem);color:var(--cngx-progress-label-color, currentColor);min-width:3ch;text-align:end;unicode-bidi:var(--cngx-progress-bidi, isolate);direction:var(--cngx-progress-direction, ltr)}:scope.cngx-progress--circular{display:inline-flex;align-items:center;justify-content:center;position:relative}.cngx-progress__circle{width:var(--cngx-progress-circle-size, 48px);height:var(--cngx-progress-circle-size, 48px);transform:rotate(-90deg)}.cngx-progress__circle-track{stroke:var(--cngx-progress-track-color, oklch(0 0 0 / .1))}.cngx-progress__circle-fill{stroke:var(--cngx-progress-color, currentColor);transition:stroke-dashoffset var(--cngx-progress-transition-duration, .3s) var(--cngx-progress-transition-easing, ease-out)}:scope.cngx-progress--indeterminate .cngx-progress__circle{animation:cngx-progress-spin var(--cngx-spin-duration, .8s) var(--cngx-spin-easing, linear) infinite}:scope.cngx-progress--indeterminate .cngx-progress__circle-fill{stroke-dasharray:80,200;stroke-dashoffset:0;transition:none}:scope.cngx-progress--circular .cngx-progress__label{position:absolute;font-size:var(--cngx-progress-circle-label-size, .625rem)}@media(prefers-reduced-motion:reduce){:scope.cngx-progress--indeterminate .cngx-progress__fill,:scope.cngx-progress--indeterminate .cngx-progress__circle{animation:cngx-pulse var(--cngx-pulse-duration, 2s) var(--cngx-pulse-easing, ease-in-out) infinite}:scope.cngx-progress--indeterminate .cngx-progress__fill{width:100%;transform:none}}}}@keyframes cngx-progress-indeterminate{0%{transform:translate(-100%)}50%{transform:translate(150%)}to{transform:translate(400%)}}@keyframes cngx-progress-spin{to{transform:rotate(270deg)}}@keyframes cngx-pulse{0%,to{opacity:.4}50%{opacity:1}}\n"] }]
|
|
1158
1132
|
}], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], progress: [{ type: i0.Input, args: [{ isSignal: true, alias: "progress", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
1159
1133
|
|
|
1160
1134
|
/**
|
|
@@ -1648,7 +1622,7 @@ class CngxAlert {
|
|
|
1648
1622
|
<cngx-close-button label="Dismiss" class="cngx-alert__dismiss" (click)="handleDismiss()" />
|
|
1649
1623
|
}
|
|
1650
1624
|
<span class="cngx-sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</span>
|
|
1651
|
-
`, isInline: true, styles: ["@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 250);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@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(.65 .15 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@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(.62 .22 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-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;}@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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}: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(.65 .15 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}: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(.62 .22 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 var(--cngx-alert-icon-color, currentColor);border-radius:var(--cngx-alert-action-radius, 4px);padding:var(--cngx-alert-action-padding, 4px 10px);cursor:pointer;font-size:var(--cngx-alert-action-font-size, .875rem);font-weight:var(--cngx-alert-action-font-weight, 600);color:var(--cngx-alert-icon-color, currentColor);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;opacity:.6}.cngx-alert__dismiss{flex-shrink:0}: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 });
|
|
1625
|
+
`, isInline: true, styles: ["@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 250);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@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(.65 .15 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@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(.62 .22 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-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;}@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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}: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(.65 .15 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}: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(.62 .22 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 var(--cngx-alert-icon-color, 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-icon-color, currentColor);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;opacity:.6}.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 });
|
|
1652
1626
|
}
|
|
1653
1627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAlert, decorators: [{
|
|
1654
1628
|
type: Component,
|
|
@@ -1703,7 +1677,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1703
1677
|
<cngx-close-button label="Dismiss" class="cngx-alert__dismiss" (click)="handleDismiss()" />
|
|
1704
1678
|
}
|
|
1705
1679
|
<span class="cngx-sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</span>
|
|
1706
|
-
`, styles: ["@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 250);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@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(.65 .15 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@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(.62 .22 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-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;}@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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}: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(.65 .15 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}: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(.62 .22 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 var(--cngx-alert-icon-color, currentColor);border-radius:var(--cngx-alert-action-radius, 4px);padding:var(--cngx-alert-action-padding, 4px 10px);cursor:pointer;font-size:var(--cngx-alert-action-font-size, .875rem);font-weight:var(--cngx-alert-action-font-weight, 600);color:var(--cngx-alert-icon-color, currentColor);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;opacity:.6}.cngx-alert__dismiss{flex-shrink:0}: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"] }]
|
|
1680
|
+
`, styles: ["@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 250);}@property --cngx-alert-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-alert-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@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(.65 .15 145);}@property --cngx-alert-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-alert-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-alert-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@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(.62 .22 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-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;}@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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 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: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 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 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}: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(.65 .15 145))}:scope.cngx-alert--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}: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(.62 .22 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 var(--cngx-alert-icon-color, 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-icon-color, currentColor);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;opacity:.6}.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"] }]
|
|
1707
1681
|
}], 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 }] }] } });
|
|
1708
1682
|
|
|
1709
1683
|
/**
|
|
@@ -1847,7 +1821,7 @@ class CngxAlertStack {
|
|
|
1847
1821
|
+ {{ overflowCount() }} more
|
|
1848
1822
|
</button>
|
|
1849
1823
|
}
|
|
1850
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-alert-stack-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-stack-reserve-height{syntax: \"<length>\"; inherits: false; initial-value: 56px;}@property --cngx-alert-stack-message-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-stack-message-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-alert-stack-overflow-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-stack-overflow-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .005 250);}@property --cngx-alert-stack-overflow-padding{syntax: \"*\"; inherits: true; initial-value: 8px 16px;}@property --cngx-alert-stack-overflow-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-alert-stack-overflow-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-alert-stack-overflow-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .005 250);}:root{--cngx-alert-stack-overflow-border: var(--cngx-color-border);--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}}[data-color-scheme=dark],.dark{--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}[data-color-scheme=light],.light{--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}}@layer cngx.components{@scope(.cngx-alert-stack){:scope{--cngx-alert-stack-gap: var(--cngx-space-sm);--cngx-alert-stack-overflow-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;gap:var(--cngx-alert-stack-gap, 8px)}:scope.cngx-alert-stack--reserve-space{min-height:var(--cngx-alert-stack-reserve-height, 56px)}.cngx-alert-stack__item{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);animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}.cngx-alert-stack__item--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}.cngx-alert-stack__item--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(.65 .15 145))}.cngx-alert-stack__item--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}.cngx-alert-stack__item--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(.62 .22 25))}.cngx-alert-stack__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert-stack__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert-stack__body{flex:1;min-width:0}.cngx-alert-stack__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert-stack__message{font-size:var(--cngx-alert-stack-message-size, .875rem);line-height:var(--cngx-alert-stack-message-line-height, 1.5)}.cngx-alert-stack__dismiss{flex-shrink:0}.cngx-alert-stack__overflow{appearance:none;background:var(--cngx-alert-stack-overflow-bg, transparent);border:1px dashed var(--cngx-alert-stack-overflow-border, oklch(.85 .005 250));border-radius:var(--cngx-alert-border-radius, 8px);padding:var(--cngx-alert-stack-overflow-padding, 8px 16px);cursor:pointer;font-size:var(--cngx-alert-stack-overflow-size, .8125rem);color:var(--cngx-alert-stack-overflow-color, oklch(.5 .01 250));text-align:center;width:100%}.cngx-alert-stack__overflow:hover{background:var(--cngx-alert-stack-overflow-hover-bg, oklch(.96 .005 250))}.cngx-alert-stack__overflow:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:reduce){.cngx-alert-stack__item{animation:none}}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}\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"] }], viewProviders: [CngxAlerter], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1824
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-alert-stack-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-stack-reserve-height{syntax: \"<length>\"; inherits: false; initial-value: 56px;}@property --cngx-alert-stack-message-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-stack-message-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-alert-stack-overflow-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-stack-overflow-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .005 250);}@property --cngx-alert-stack-overflow-padding{syntax: \"*\"; inherits: true; initial-value: 8px 16px;}@property --cngx-alert-stack-overflow-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-alert-stack-overflow-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-alert-stack-overflow-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .005 250);}:root{--cngx-alert-stack-overflow-border: var(--cngx-color-border);--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}}[data-color-scheme=dark],.dark{--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}[data-color-scheme=light],.light{--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}}@layer cngx.components{@scope(.cngx-alert-stack){:scope{--cngx-alert-stack-gap: var(--cngx-space-sm);--cngx-alert-stack-overflow-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;gap:var(--cngx-alert-stack-gap, 8px)}:scope.cngx-alert-stack--reserve-space{min-height:var(--cngx-alert-stack-reserve-height, 56px)}.cngx-alert-stack__item{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);animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}.cngx-alert-stack__item--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}.cngx-alert-stack__item--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(.65 .15 145))}.cngx-alert-stack__item--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}.cngx-alert-stack__item--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(.62 .22 25))}.cngx-alert-stack__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert-stack__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert-stack__body{flex:1;min-width:0}.cngx-alert-stack__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert-stack__message{font-size:var(--cngx-alert-stack-message-size, .875rem);line-height:var(--cngx-alert-stack-message-line-height, 1.5)}.cngx-alert-stack__dismiss{flex-shrink:0}.cngx-alert-stack__overflow{appearance:none;background:var(--cngx-alert-stack-overflow-bg, transparent);border:1px dashed var(--cngx-alert-stack-overflow-border, oklch(.85 .005 250));border-radius:var(--cngx-alert-border-radius, 8px);padding:var(--cngx-alert-stack-overflow-padding, 8px 16px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-alert-stack-overflow-size, .8125rem);color:var(--cngx-alert-stack-overflow-color, oklch(.5 .01 250));text-align:center;width:100%}.cngx-alert-stack__overflow:hover{background:var(--cngx-alert-stack-overflow-hover-bg, oklch(.96 .005 250))}.cngx-alert-stack__overflow:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:reduce){.cngx-alert-stack__item{animation:none}}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}\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"] }], viewProviders: [CngxAlerter], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1851
1825
|
}
|
|
1852
1826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAlertStack, decorators: [{
|
|
1853
1827
|
type: Component,
|
|
@@ -1907,13 +1881,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1907
1881
|
+ {{ overflowCount() }} more
|
|
1908
1882
|
</button>
|
|
1909
1883
|
}
|
|
1910
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-alert-stack-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-stack-reserve-height{syntax: \"<length>\"; inherits: false; initial-value: 56px;}@property --cngx-alert-stack-message-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-stack-message-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-alert-stack-overflow-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-stack-overflow-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .005 250);}@property --cngx-alert-stack-overflow-padding{syntax: \"*\"; inherits: true; initial-value: 8px 16px;}@property --cngx-alert-stack-overflow-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-alert-stack-overflow-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-alert-stack-overflow-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .005 250);}:root{--cngx-alert-stack-overflow-border: var(--cngx-color-border);--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}}[data-color-scheme=dark],.dark{--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}[data-color-scheme=light],.light{--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}}@layer cngx.components{@scope(.cngx-alert-stack){:scope{--cngx-alert-stack-gap: var(--cngx-space-sm);--cngx-alert-stack-overflow-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;gap:var(--cngx-alert-stack-gap, 8px)}:scope.cngx-alert-stack--reserve-space{min-height:var(--cngx-alert-stack-reserve-height, 56px)}.cngx-alert-stack__item{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);animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}.cngx-alert-stack__item--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}.cngx-alert-stack__item--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(.65 .15 145))}.cngx-alert-stack__item--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}.cngx-alert-stack__item--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(.62 .22 25))}.cngx-alert-stack__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert-stack__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert-stack__body{flex:1;min-width:0}.cngx-alert-stack__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert-stack__message{font-size:var(--cngx-alert-stack-message-size, .875rem);line-height:var(--cngx-alert-stack-message-line-height, 1.5)}.cngx-alert-stack__dismiss{flex-shrink:0}.cngx-alert-stack__overflow{appearance:none;background:var(--cngx-alert-stack-overflow-bg, transparent);border:1px dashed var(--cngx-alert-stack-overflow-border, oklch(.85 .005 250));border-radius:var(--cngx-alert-border-radius, 8px);padding:var(--cngx-alert-stack-overflow-padding, 8px 16px);cursor:pointer;font-size:var(--cngx-alert-stack-overflow-size, .8125rem);color:var(--cngx-alert-stack-overflow-color, oklch(.5 .01 250));text-align:center;width:100%}.cngx-alert-stack__overflow:hover{background:var(--cngx-alert-stack-overflow-hover-bg, oklch(.96 .005 250))}.cngx-alert-stack__overflow:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:reduce){.cngx-alert-stack__item{animation:none}}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}\n"] }]
|
|
1884
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-alert-stack-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-alert-stack-reserve-height{syntax: \"<length>\"; inherits: false; initial-value: 56px;}@property --cngx-alert-stack-message-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-alert-stack-message-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-alert-stack-overflow-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-alert-stack-overflow-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .005 250);}@property --cngx-alert-stack-overflow-padding{syntax: \"*\"; inherits: true; initial-value: 8px 16px;}@property --cngx-alert-stack-overflow-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-alert-stack-overflow-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-alert-stack-overflow-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .005 250);}:root{--cngx-alert-stack-overflow-border: var(--cngx-color-border);--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}}[data-color-scheme=dark],.dark{--cngx-alert-stack-overflow-color: oklch(.75 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.26 .01 250)}[data-color-scheme=light],.light{--cngx-alert-stack-overflow-color: oklch(.5 .01 250);--cngx-alert-stack-overflow-hover-bg: oklch(.96 .005 250)}:root{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}}[data-color-scheme=dark],.dark{--cngx-alert-bg: oklch(.22 .01 250);--cngx-alert-info-bg: oklch(.3 .05 250);--cngx-alert-info-border: oklch(.5 .08 250);--cngx-alert-info-icon: oklch(.78 .14 250);--cngx-alert-success-bg: oklch(.3 .06 145);--cngx-alert-success-border: oklch(.5 .1 145);--cngx-alert-success-icon: oklch(.78 .14 145);--cngx-alert-warning-bg: oklch(.32 .06 80);--cngx-alert-warning-border: oklch(.55 .1 80);--cngx-alert-warning-icon: oklch(.82 .15 70);--cngx-alert-error-bg: oklch(.3 .05 25);--cngx-alert-error-border: oklch(.5 .1 25);--cngx-alert-error-icon: oklch(.78 .16 25)}[data-color-scheme=light],.light{--cngx-alert-bg: oklch(.98 .005 250);--cngx-alert-info-bg: oklch(.96 .025 250);--cngx-alert-info-border: oklch(.85 .07 250);--cngx-alert-info-icon: oklch(.62 .2 250);--cngx-alert-success-bg: oklch(.96 .04 145);--cngx-alert-success-border: oklch(.85 .1 145);--cngx-alert-success-icon: oklch(.65 .15 145);--cngx-alert-warning-bg: oklch(.97 .04 80);--cngx-alert-warning-border: oklch(.86 .1 80);--cngx-alert-warning-icon: oklch(.72 .18 70);--cngx-alert-error-bg: oklch(.96 .025 25);--cngx-alert-error-border: oklch(.85 .08 25);--cngx-alert-error-icon: oklch(.62 .22 25)}}@layer cngx.components{@scope(.cngx-alert-stack){:scope{--cngx-alert-stack-gap: var(--cngx-space-sm);--cngx-alert-stack-overflow-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;gap:var(--cngx-alert-stack-gap, 8px)}:scope.cngx-alert-stack--reserve-space{min-height:var(--cngx-alert-stack-reserve-height, 56px)}.cngx-alert-stack__item{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);animation:cngx-alert-enter var(--cngx-alert-enter-duration, .2s) ease-out both}.cngx-alert-stack__item--info{--cngx-alert-bg: var(--cngx-alert-info-bg, oklch(.96 .025 250));--cngx-alert-border-color: var(--cngx-alert-info-border, oklch(.85 .07 250));--cngx-alert-icon-color: var(--cngx-alert-info-icon, oklch(.62 .2 250))}.cngx-alert-stack__item--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(.65 .15 145))}.cngx-alert-stack__item--warning{--cngx-alert-bg: var(--cngx-alert-warning-bg, oklch(.97 .04 80));--cngx-alert-border-color: var(--cngx-alert-warning-border, oklch(.86 .1 80));--cngx-alert-icon-color: var(--cngx-alert-warning-icon, oklch(.72 .18 70))}.cngx-alert-stack__item--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(.62 .22 25))}.cngx-alert-stack__icon{flex-shrink:0;color:var(--cngx-alert-icon-color, currentColor)}.cngx-alert-stack__default-icon{width:var(--cngx-alert-icon-size, 20px);height:var(--cngx-alert-icon-size, 20px)}.cngx-alert-stack__body{flex:1;min-width:0}.cngx-alert-stack__title{display:block;font-weight:var(--cngx-alert-title-weight, 600);margin-bottom:var(--cngx-alert-title-gap, 4px)}.cngx-alert-stack__message{font-size:var(--cngx-alert-stack-message-size, .875rem);line-height:var(--cngx-alert-stack-message-line-height, 1.5)}.cngx-alert-stack__dismiss{flex-shrink:0}.cngx-alert-stack__overflow{appearance:none;background:var(--cngx-alert-stack-overflow-bg, transparent);border:1px dashed var(--cngx-alert-stack-overflow-border, oklch(.85 .005 250));border-radius:var(--cngx-alert-border-radius, 8px);padding:var(--cngx-alert-stack-overflow-padding, 8px 16px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-alert-stack-overflow-size, .8125rem);color:var(--cngx-alert-stack-overflow-color, oklch(.5 .01 250));text-align:center;width:100%}.cngx-alert-stack__overflow:hover{background:var(--cngx-alert-stack-overflow-hover-bg, oklch(.96 .005 250))}.cngx-alert-stack__overflow:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:reduce){.cngx-alert-stack__item{animation:none}}}}@keyframes cngx-alert-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-alert-enter-offset, 8px)))}to{opacity:1;transform:translateY(0)}}\n"] }]
|
|
1911
1885
|
}], propDecorators: { scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }], maxVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisible", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], reserveSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserveSpace", required: false }] }], autoScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScroll", required: false }] }] } });
|
|
1912
1886
|
|
|
1913
1887
|
/**
|
|
1914
1888
|
* Shared transition plumbing for the alert/toast/banner state bridges.
|
|
1915
1889
|
*
|
|
1916
|
-
* Owns the `createTransitionTracker` + guarded `effect` + `untracked` body
|
|
1890
|
+
* Owns the `createTransitionTracker` + guarded `effect` + `untracked` body -
|
|
1917
1891
|
* the three directives supply the status source and the per-transition body.
|
|
1918
1892
|
* Keeping `createTransitionTracker` as the single tracker source preserves
|
|
1919
1893
|
* its `linkedSignal` equal-fn loop fix (the documented vitest-hang guard);
|
|
@@ -1923,7 +1897,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1923
1897
|
* Constructor-only: installs an `effect`, so callers must invoke from an
|
|
1924
1898
|
* injection context.
|
|
1925
1899
|
*
|
|
1926
|
-
* @internal
|
|
1900
|
+
* @internal - not exported from `public-api.ts`; consumed by the bridge
|
|
1927
1901
|
* directives via relative path.
|
|
1928
1902
|
*/
|
|
1929
1903
|
function createStateBridge(statusSource, onTransition) {
|
|
@@ -2140,7 +2114,7 @@ class CngxBannerOutlet {
|
|
|
2140
2114
|
}
|
|
2141
2115
|
</div>
|
|
2142
2116
|
}
|
|
2143
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-banner-z-index{syntax: \"<number>\"; inherits: false; initial-value: 900;}@property --cngx-banner-gap{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-banner-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-banner-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-banner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-banner-enter-offset{syntax: \"*\"; inherits: false; initial-value: 100%;}@property --cngx-banner-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 250);}@property --cngx-banner-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-banner-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-banner-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-banner-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-banner-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-banner-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-banner-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-banner-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-banner-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-banner-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-banner-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-accent{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-banner-font-size{syntax: \"*\"; inherits: false; initial-value: .9375rem;}@property --cngx-banner-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-banner-error-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-error-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-banner-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-banner-action-min-size{syntax: \"<length>\"; inherits: false; initial-value: 44px;}@property --cngx-banner-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-banner-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-banner-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .85;}:root{--cngx-banner-error-color: var(--cngx-color-danger);--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}}[data-color-scheme=dark],.dark{--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}[data-color-scheme=light],.light{--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-banner-outlet){:scope{--cngx-banner-gap: var(--cngx-space-sm);--cngx-banner-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-banner-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:block;position:sticky;top:0;z-index:var(--cngx-banner-z-index, 900);width:100%}:scope:empty{display:none}.cngx-banner{display:flex;align-items:center;gap:var(--cngx-banner-gap, 12px);padding:var(--cngx-banner-padding, 10px 16px);background:var(--cngx-banner-bg, oklch(.98 .005 250));color:var(--cngx-banner-color, inherit);border-bottom:1px solid var(--cngx-banner-border-color, transparent)}.cngx-banner--animate{animation:cngx-banner-enter var(--cngx-banner-enter-duration, .2s) ease-out both}.cngx-banner--info{--cngx-banner-bg: var(--cngx-banner-info-bg, oklch(.96 .025 250));--cngx-banner-border-color: var(--cngx-banner-info-border, oklch(.85 .07 250));--cngx-banner-icon-color: var(--cngx-banner-info-icon, oklch(.62 .2 250));--cngx-banner-accent: var(--cngx-banner-info-icon, oklch(.62 .2 250))}.cngx-banner--success{--cngx-banner-bg: var(--cngx-banner-success-bg, oklch(.96 .04 145));--cngx-banner-border-color: var(--cngx-banner-success-border, oklch(.85 .1 145));--cngx-banner-icon-color: var(--cngx-banner-success-icon, oklch(.65 .15 145));--cngx-banner-accent: var(--cngx-banner-success-icon, oklch(.65 .15 145))}.cngx-banner--warning{--cngx-banner-bg: var(--cngx-banner-warning-bg, oklch(.97 .04 80));--cngx-banner-border-color: var(--cngx-banner-warning-border, oklch(.86 .1 80));--cngx-banner-icon-color: var(--cngx-banner-warning-icon, oklch(.72 .18 70));--cngx-banner-accent: var(--cngx-banner-warning-icon, oklch(.72 .18 70))}.cngx-banner--error{--cngx-banner-bg: var(--cngx-banner-error-bg, oklch(.96 .025 25));--cngx-banner-border-color: var(--cngx-banner-error-border, oklch(.85 .08 25));--cngx-banner-icon-color: var(--cngx-banner-error-icon, oklch(.62 .22 25));--cngx-banner-accent: var(--cngx-banner-error-icon, oklch(.62 .22 25))}.cngx-banner--pending{opacity:var(--cngx-banner-pending-opacity, .85);pointer-events:none}.cngx-banner__icon{flex-shrink:0;color:var(--cngx-banner-icon-color, currentColor)}.cngx-banner__default-icon{width:var(--cngx-banner-icon-size, 20px);height:var(--cngx-banner-icon-size, 20px)}.cngx-banner__body{flex:1;min-width:0}.cngx-banner__message{font-size:var(--cngx-banner-font-size, .9375rem);line-height:var(--cngx-banner-line-height, 1.5)}.cngx-banner__error{display:block;font-size:var(--cngx-banner-error-font-size, .875rem);color:var(--cngx-banner-error-color, var(--cngx-color-danger, oklch(.62 .22 25)));margin-top:2px}.cngx-banner__action{appearance:none;background:var(--cngx-banner-action-bg, transparent);border:1px solid var(--cngx-banner-accent, currentColor);border-radius:var(--cngx-banner-action-radius, 4px);padding:var(--cngx-banner-action-padding, 4px 10px);cursor:pointer;font-size:var(--cngx-banner-action-font-size, .875rem);font-weight:var(--cngx-banner-action-font-weight, 600);color:var(--cngx-banner-accent, currentColor);white-space:nowrap;flex-shrink:0}.cngx-banner__action:hover:not(:disabled){background:var(--cngx-banner-action-hover-bg, oklch(0 0 0 / .04))}.cngx-banner__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-banner__action:disabled{cursor:not-allowed;opacity:.6}.cngx-banner__dismiss{flex-shrink:0}@media(prefers-reduced-motion:reduce){.cngx-banner--animate{animation:none}}}}@keyframes cngx-banner-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-banner-enter-offset, 100%)))}to{opacity:1;transform:translateY(0)}}\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 });
|
|
2117
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-banner-z-index{syntax: \"<number>\"; inherits: false; initial-value: 900;}@property --cngx-banner-gap{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-banner-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-banner-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-banner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-banner-enter-offset{syntax: \"*\"; inherits: false; initial-value: 100%;}@property --cngx-banner-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 250);}@property --cngx-banner-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-banner-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-banner-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-banner-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-banner-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-banner-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-banner-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-banner-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-banner-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-banner-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-banner-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-accent{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-banner-font-size{syntax: \"*\"; inherits: false; initial-value: .9375rem;}@property --cngx-banner-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-banner-error-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-error-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-banner-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-banner-action-min-size{syntax: \"<length>\"; inherits: false; initial-value: 44px;}@property --cngx-banner-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-banner-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-banner-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .85;}:root{--cngx-banner-error-color: var(--cngx-color-danger);--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}}[data-color-scheme=dark],.dark{--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}[data-color-scheme=light],.light{--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-banner-outlet){:scope{--cngx-banner-gap: var(--cngx-space-sm);--cngx-banner-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-banner-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:block;position:sticky;top:0;z-index:var(--cngx-banner-z-index, 900);width:100%}:scope:empty{display:none}.cngx-banner{display:flex;align-items:center;gap:var(--cngx-banner-gap, 12px);padding:var(--cngx-banner-padding, 10px 16px);background:var(--cngx-banner-bg, oklch(.98 .005 250));color:var(--cngx-banner-color, inherit);border-bottom:1px solid var(--cngx-banner-border-color, transparent)}.cngx-banner--animate{animation:cngx-banner-enter var(--cngx-banner-enter-duration, .2s) ease-out both}.cngx-banner--info{--cngx-banner-bg: var(--cngx-banner-info-bg, oklch(.96 .025 250));--cngx-banner-border-color: var(--cngx-banner-info-border, oklch(.85 .07 250));--cngx-banner-icon-color: var(--cngx-banner-info-icon, oklch(.62 .2 250));--cngx-banner-accent: var(--cngx-banner-info-icon, oklch(.62 .2 250))}.cngx-banner--success{--cngx-banner-bg: var(--cngx-banner-success-bg, oklch(.96 .04 145));--cngx-banner-border-color: var(--cngx-banner-success-border, oklch(.85 .1 145));--cngx-banner-icon-color: var(--cngx-banner-success-icon, oklch(.65 .15 145));--cngx-banner-accent: var(--cngx-banner-success-icon, oklch(.65 .15 145))}.cngx-banner--warning{--cngx-banner-bg: var(--cngx-banner-warning-bg, oklch(.97 .04 80));--cngx-banner-border-color: var(--cngx-banner-warning-border, oklch(.86 .1 80));--cngx-banner-icon-color: var(--cngx-banner-warning-icon, oklch(.72 .18 70));--cngx-banner-accent: var(--cngx-banner-warning-icon, oklch(.72 .18 70))}.cngx-banner--error{--cngx-banner-bg: var(--cngx-banner-error-bg, oklch(.96 .025 25));--cngx-banner-border-color: var(--cngx-banner-error-border, oklch(.85 .08 25));--cngx-banner-icon-color: var(--cngx-banner-error-icon, oklch(.62 .22 25));--cngx-banner-accent: var(--cngx-banner-error-icon, oklch(.62 .22 25))}.cngx-banner--pending{opacity:var(--cngx-banner-pending-opacity, .85);pointer-events:none}.cngx-banner__icon{flex-shrink:0;color:var(--cngx-banner-icon-color, currentColor)}.cngx-banner__default-icon{width:var(--cngx-banner-icon-size, 20px);height:var(--cngx-banner-icon-size, 20px)}.cngx-banner__body{flex:1;min-width:0}.cngx-banner__message{font-size:var(--cngx-banner-font-size, .9375rem);line-height:var(--cngx-banner-line-height, 1.5)}.cngx-banner__error{display:block;font-size:var(--cngx-banner-error-font-size, .875rem);color:var(--cngx-banner-error-color, var(--cngx-color-danger, oklch(.62 .22 25)));margin-top:2px}.cngx-banner__action{appearance:none;background:var(--cngx-banner-action-bg, transparent);border:1px solid var(--cngx-banner-accent, currentColor);border-radius:var(--cngx-banner-action-radius, 4px);padding:var(--cngx-banner-action-padding, 4px 10px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-banner-action-font-size, .875rem);font-weight:var(--cngx-banner-action-font-weight, 600);color:var(--cngx-banner-accent, currentColor);white-space:nowrap;flex-shrink:0}.cngx-banner__action:hover:not(:disabled){background:var(--cngx-banner-action-hover-bg, oklch(0 0 0 / .04))}.cngx-banner__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-banner__action:disabled{cursor:not-allowed;opacity:.6}.cngx-banner__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)}@media(prefers-reduced-motion:reduce){.cngx-banner--animate{animation:none}}}}@keyframes cngx-banner-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-banner-enter-offset, 100%)))}to{opacity:1;transform:translateY(0)}}\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 });
|
|
2144
2118
|
}
|
|
2145
2119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBannerOutlet, decorators: [{
|
|
2146
2120
|
type: Component,
|
|
@@ -2200,7 +2174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2200
2174
|
}
|
|
2201
2175
|
</div>
|
|
2202
2176
|
}
|
|
2203
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-banner-z-index{syntax: \"<number>\"; inherits: false; initial-value: 900;}@property --cngx-banner-gap{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-banner-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-banner-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-banner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-banner-enter-offset{syntax: \"*\"; inherits: false; initial-value: 100%;}@property --cngx-banner-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 250);}@property --cngx-banner-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-banner-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-banner-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-banner-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-banner-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-banner-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-banner-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-banner-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-banner-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-banner-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-banner-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-accent{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-banner-font-size{syntax: \"*\"; inherits: false; initial-value: .9375rem;}@property --cngx-banner-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-banner-error-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-error-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-banner-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-banner-action-min-size{syntax: \"<length>\"; inherits: false; initial-value: 44px;}@property --cngx-banner-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-banner-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-banner-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .85;}:root{--cngx-banner-error-color: var(--cngx-color-danger);--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}}[data-color-scheme=dark],.dark{--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}[data-color-scheme=light],.light{--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-banner-outlet){:scope{--cngx-banner-gap: var(--cngx-space-sm);--cngx-banner-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-banner-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:block;position:sticky;top:0;z-index:var(--cngx-banner-z-index, 900);width:100%}:scope:empty{display:none}.cngx-banner{display:flex;align-items:center;gap:var(--cngx-banner-gap, 12px);padding:var(--cngx-banner-padding, 10px 16px);background:var(--cngx-banner-bg, oklch(.98 .005 250));color:var(--cngx-banner-color, inherit);border-bottom:1px solid var(--cngx-banner-border-color, transparent)}.cngx-banner--animate{animation:cngx-banner-enter var(--cngx-banner-enter-duration, .2s) ease-out both}.cngx-banner--info{--cngx-banner-bg: var(--cngx-banner-info-bg, oklch(.96 .025 250));--cngx-banner-border-color: var(--cngx-banner-info-border, oklch(.85 .07 250));--cngx-banner-icon-color: var(--cngx-banner-info-icon, oklch(.62 .2 250));--cngx-banner-accent: var(--cngx-banner-info-icon, oklch(.62 .2 250))}.cngx-banner--success{--cngx-banner-bg: var(--cngx-banner-success-bg, oklch(.96 .04 145));--cngx-banner-border-color: var(--cngx-banner-success-border, oklch(.85 .1 145));--cngx-banner-icon-color: var(--cngx-banner-success-icon, oklch(.65 .15 145));--cngx-banner-accent: var(--cngx-banner-success-icon, oklch(.65 .15 145))}.cngx-banner--warning{--cngx-banner-bg: var(--cngx-banner-warning-bg, oklch(.97 .04 80));--cngx-banner-border-color: var(--cngx-banner-warning-border, oklch(.86 .1 80));--cngx-banner-icon-color: var(--cngx-banner-warning-icon, oklch(.72 .18 70));--cngx-banner-accent: var(--cngx-banner-warning-icon, oklch(.72 .18 70))}.cngx-banner--error{--cngx-banner-bg: var(--cngx-banner-error-bg, oklch(.96 .025 25));--cngx-banner-border-color: var(--cngx-banner-error-border, oklch(.85 .08 25));--cngx-banner-icon-color: var(--cngx-banner-error-icon, oklch(.62 .22 25));--cngx-banner-accent: var(--cngx-banner-error-icon, oklch(.62 .22 25))}.cngx-banner--pending{opacity:var(--cngx-banner-pending-opacity, .85);pointer-events:none}.cngx-banner__icon{flex-shrink:0;color:var(--cngx-banner-icon-color, currentColor)}.cngx-banner__default-icon{width:var(--cngx-banner-icon-size, 20px);height:var(--cngx-banner-icon-size, 20px)}.cngx-banner__body{flex:1;min-width:0}.cngx-banner__message{font-size:var(--cngx-banner-font-size, .9375rem);line-height:var(--cngx-banner-line-height, 1.5)}.cngx-banner__error{display:block;font-size:var(--cngx-banner-error-font-size, .875rem);color:var(--cngx-banner-error-color, var(--cngx-color-danger, oklch(.62 .22 25)));margin-top:2px}.cngx-banner__action{appearance:none;background:var(--cngx-banner-action-bg, transparent);border:1px solid var(--cngx-banner-accent, currentColor);border-radius:var(--cngx-banner-action-radius, 4px);padding:var(--cngx-banner-action-padding, 4px 10px);cursor:pointer;font-size:var(--cngx-banner-action-font-size, .875rem);font-weight:var(--cngx-banner-action-font-weight, 600);color:var(--cngx-banner-accent, currentColor);white-space:nowrap;flex-shrink:0}.cngx-banner__action:hover:not(:disabled){background:var(--cngx-banner-action-hover-bg, oklch(0 0 0 / .04))}.cngx-banner__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-banner__action:disabled{cursor:not-allowed;opacity:.6}.cngx-banner__dismiss{flex-shrink:0}@media(prefers-reduced-motion:reduce){.cngx-banner--animate{animation:none}}}}@keyframes cngx-banner-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-banner-enter-offset, 100%)))}to{opacity:1;transform:translateY(0)}}\n"] }]
|
|
2177
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-banner-z-index{syntax: \"<number>\"; inherits: false; initial-value: 900;}@property --cngx-banner-gap{syntax: \"<length>\"; inherits: true; initial-value: 12px;}@property --cngx-banner-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-banner-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.98 .005 250);}@property --cngx-banner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-border-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-banner-enter-offset{syntax: \"*\"; inherits: false; initial-value: 100%;}@property --cngx-banner-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 250);}@property --cngx-banner-info-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .07 250);}@property --cngx-banner-info-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-banner-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .04 145);}@property --cngx-banner-success-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .1 145);}@property --cngx-banner-success-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-banner-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .04 80);}@property --cngx-banner-warning-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.86 .1 80);}@property --cngx-banner-warning-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-banner-error-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 .025 25);}@property --cngx-banner-error-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.85 .08 25);}@property --cngx-banner-error-icon{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-icon-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-accent{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-banner-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-banner-font-size{syntax: \"*\"; inherits: false; initial-value: .9375rem;}@property --cngx-banner-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-banner-error-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-error-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-banner-action-bg{syntax: \"<color>\"; inherits: true; initial-value: transparent;}@property --cngx-banner-action-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-banner-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 10px;}@property --cngx-banner-action-min-size{syntax: \"<length>\"; inherits: false; initial-value: 44px;}@property --cngx-banner-action-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-banner-action-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-banner-action-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-banner-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .85;}:root{--cngx-banner-error-color: var(--cngx-color-danger);--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}}[data-color-scheme=dark],.dark{--cngx-banner-bg: oklch(.22 .01 250);--cngx-banner-info-bg: oklch(.3 .05 250);--cngx-banner-info-border: oklch(.5 .08 250);--cngx-banner-info-icon: oklch(.78 .14 250);--cngx-banner-success-bg: oklch(.3 .06 145);--cngx-banner-success-border: oklch(.5 .1 145);--cngx-banner-success-icon: oklch(.78 .14 145);--cngx-banner-warning-bg: oklch(.32 .06 80);--cngx-banner-warning-border: oklch(.55 .1 80);--cngx-banner-warning-icon: oklch(.82 .15 70);--cngx-banner-error-bg: oklch(.3 .05 25);--cngx-banner-error-border: oklch(.5 .1 25);--cngx-banner-error-icon: oklch(.78 .16 25);--cngx-banner-action-hover-bg: oklch(1 0 0 / .04)}[data-color-scheme=light],.light{--cngx-banner-bg: oklch(.98 .005 250);--cngx-banner-info-bg: oklch(.96 .025 250);--cngx-banner-info-border: oklch(.85 .07 250);--cngx-banner-info-icon: oklch(.62 .2 250);--cngx-banner-success-bg: oklch(.96 .04 145);--cngx-banner-success-border: oklch(.85 .1 145);--cngx-banner-success-icon: oklch(.65 .15 145);--cngx-banner-warning-bg: oklch(.97 .04 80);--cngx-banner-warning-border: oklch(.86 .1 80);--cngx-banner-warning-icon: oklch(.72 .18 70);--cngx-banner-error-bg: oklch(.96 .025 25);--cngx-banner-error-border: oklch(.85 .08 25);--cngx-banner-error-icon: oklch(.62 .22 25);--cngx-banner-action-hover-bg: oklch(0 0 0 / .04)}}@layer cngx.components{@scope(.cngx-banner-outlet){:scope{--cngx-banner-gap: var(--cngx-space-sm);--cngx-banner-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-banner-action-padding: var(--cngx-space-xs) var(--cngx-space-sm);display:block;position:sticky;top:0;z-index:var(--cngx-banner-z-index, 900);width:100%}:scope:empty{display:none}.cngx-banner{display:flex;align-items:center;gap:var(--cngx-banner-gap, 12px);padding:var(--cngx-banner-padding, 10px 16px);background:var(--cngx-banner-bg, oklch(.98 .005 250));color:var(--cngx-banner-color, inherit);border-bottom:1px solid var(--cngx-banner-border-color, transparent)}.cngx-banner--animate{animation:cngx-banner-enter var(--cngx-banner-enter-duration, .2s) ease-out both}.cngx-banner--info{--cngx-banner-bg: var(--cngx-banner-info-bg, oklch(.96 .025 250));--cngx-banner-border-color: var(--cngx-banner-info-border, oklch(.85 .07 250));--cngx-banner-icon-color: var(--cngx-banner-info-icon, oklch(.62 .2 250));--cngx-banner-accent: var(--cngx-banner-info-icon, oklch(.62 .2 250))}.cngx-banner--success{--cngx-banner-bg: var(--cngx-banner-success-bg, oklch(.96 .04 145));--cngx-banner-border-color: var(--cngx-banner-success-border, oklch(.85 .1 145));--cngx-banner-icon-color: var(--cngx-banner-success-icon, oklch(.65 .15 145));--cngx-banner-accent: var(--cngx-banner-success-icon, oklch(.65 .15 145))}.cngx-banner--warning{--cngx-banner-bg: var(--cngx-banner-warning-bg, oklch(.97 .04 80));--cngx-banner-border-color: var(--cngx-banner-warning-border, oklch(.86 .1 80));--cngx-banner-icon-color: var(--cngx-banner-warning-icon, oklch(.72 .18 70));--cngx-banner-accent: var(--cngx-banner-warning-icon, oklch(.72 .18 70))}.cngx-banner--error{--cngx-banner-bg: var(--cngx-banner-error-bg, oklch(.96 .025 25));--cngx-banner-border-color: var(--cngx-banner-error-border, oklch(.85 .08 25));--cngx-banner-icon-color: var(--cngx-banner-error-icon, oklch(.62 .22 25));--cngx-banner-accent: var(--cngx-banner-error-icon, oklch(.62 .22 25))}.cngx-banner--pending{opacity:var(--cngx-banner-pending-opacity, .85);pointer-events:none}.cngx-banner__icon{flex-shrink:0;color:var(--cngx-banner-icon-color, currentColor)}.cngx-banner__default-icon{width:var(--cngx-banner-icon-size, 20px);height:var(--cngx-banner-icon-size, 20px)}.cngx-banner__body{flex:1;min-width:0}.cngx-banner__message{font-size:var(--cngx-banner-font-size, .9375rem);line-height:var(--cngx-banner-line-height, 1.5)}.cngx-banner__error{display:block;font-size:var(--cngx-banner-error-font-size, .875rem);color:var(--cngx-banner-error-color, var(--cngx-color-danger, oklch(.62 .22 25)));margin-top:2px}.cngx-banner__action{appearance:none;background:var(--cngx-banner-action-bg, transparent);border:1px solid var(--cngx-banner-accent, currentColor);border-radius:var(--cngx-banner-action-radius, 4px);padding:var(--cngx-banner-action-padding, 4px 10px);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-size:var(--cngx-banner-action-font-size, .875rem);font-weight:var(--cngx-banner-action-font-weight, 600);color:var(--cngx-banner-accent, currentColor);white-space:nowrap;flex-shrink:0}.cngx-banner__action:hover:not(:disabled){background:var(--cngx-banner-action-hover-bg, oklch(0 0 0 / .04))}.cngx-banner__action:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cngx-banner__action:disabled{cursor:not-allowed;opacity:.6}.cngx-banner__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)}@media(prefers-reduced-motion:reduce){.cngx-banner--animate{animation:none}}}}@keyframes cngx-banner-enter{0%{opacity:0;transform:translateY(calc(-1 * var(--cngx-banner-enter-offset, 100%)))}to{opacity:1;transform:translateY(0)}}\n"] }]
|
|
2204
2178
|
}], ctorParameters: () => [] });
|
|
2205
2179
|
|
|
2206
2180
|
/**
|
|
@@ -2535,7 +2509,7 @@ class CngxToastOutlet {
|
|
|
2535
2509
|
}
|
|
2536
2510
|
</div>
|
|
2537
2511
|
}
|
|
2538
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-toast-z-index{syntax: \"<number>\"; inherits: false; initial-value: 9999;}@property --cngx-toast-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-outlet-padding{syntax: \"*\"; inherits: false; initial-value: 16px;}@property --cngx-toast-max-width{syntax: \"<length>\"; inherits: false; initial-value: 420px;}@property --cngx-toast-inner-gap{syntax: \"<length>\"; inherits: true; initial-value: 10px;}@property --cngx-toast-padding{syntax: \"*\"; inherits: true; initial-value: 12px 16px;}@property --cngx-toast-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-toast-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.25 .015 250);}@property --cngx-toast-shadow{syntax: \"*\"; inherits: true; initial-value: 0 4px 12px oklch(0 0 0 / .15);}@property --cngx-toast-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-toast-enter-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-toast-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-toast-info-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-toast-success-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-toast-warning-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-toast-error-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-toast-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-toast-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-toast-title-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-title-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-title-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-toast-description-max-lines{syntax: \"<integer>\"; inherits: false; initial-value: 3;}@property --cngx-toast-description-font-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-toast-description-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-toast-description-line-height{syntax: \"*\"; inherits: false; initial-value: 1.4;}@property --cngx-toast-count-opacity{syntax: \"<number>\"; inherits: false; initial-value: .6;}@property --cngx-toast-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 0;}@property --cngx-toast-action-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-action-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}:root{--cngx-toast-bg: var(--cngx-color-surface);--cngx-toast-color: var(--cngx-color-text);--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}}[data-color-scheme=dark],.dark{--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}[data-color-scheme=light],.light{--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}}@layer cngx.components{@scope(.cngx-toast-outlet){:scope{--cngx-toast-gap: var(--cngx-space-sm);--cngx-toast-outlet-padding: var(--cngx-space-md);--cngx-toast-inner-gap: var(--cngx-space-sm);--cngx-toast-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-toast-action-padding: var(--cngx-space-xs) 0;position:fixed;z-index:var(--cngx-toast-z-index, 9999);display:flex;flex-direction:column;gap:var(--cngx-toast-gap, 8px);padding:var(--cngx-toast-outlet-padding, 16px);pointer-events:none;max-width:var(--cngx-toast-max-width, 420px);width:100%}:scope.cngx-toast-outlet--top-start{top:0;
|
|
2512
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-toast-z-index{syntax: \"<number>\"; inherits: false; initial-value: 9999;}@property --cngx-toast-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-outlet-padding{syntax: \"*\"; inherits: false; initial-value: 16px;}@property --cngx-toast-max-width{syntax: \"<length>\"; inherits: false; initial-value: 420px;}@property --cngx-toast-inner-gap{syntax: \"<length>\"; inherits: true; initial-value: 10px;}@property --cngx-toast-padding{syntax: \"*\"; inherits: true; initial-value: 12px 16px;}@property --cngx-toast-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-toast-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.25 .015 250);}@property --cngx-toast-shadow{syntax: \"*\"; inherits: true; initial-value: 0 4px 12px oklch(0 0 0 / .15);}@property --cngx-toast-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-toast-enter-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-toast-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-toast-info-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-toast-success-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-toast-warning-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-toast-error-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-toast-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-toast-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-toast-title-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-title-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-title-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-toast-description-max-lines{syntax: \"<integer>\"; inherits: false; initial-value: 3;}@property --cngx-toast-description-font-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-toast-description-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-toast-description-line-height{syntax: \"*\"; inherits: false; initial-value: 1.4;}@property --cngx-toast-count-opacity{syntax: \"<number>\"; inherits: false; initial-value: .6;}@property --cngx-toast-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 0;}@property --cngx-toast-action-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-action-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}:root{--cngx-toast-bg: var(--cngx-color-surface);--cngx-toast-color: var(--cngx-color-text);--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}}[data-color-scheme=dark],.dark{--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}[data-color-scheme=light],.light{--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}}@layer cngx.components{@scope(.cngx-toast-outlet){:scope{--cngx-toast-gap: var(--cngx-space-sm);--cngx-toast-outlet-padding: var(--cngx-space-md);--cngx-toast-inner-gap: var(--cngx-space-sm);--cngx-toast-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-toast-action-padding: var(--cngx-space-xs) 0;position:fixed;z-index:var(--cngx-toast-z-index, 9999);display:flex;flex-direction:column;gap:var(--cngx-toast-gap, 8px);padding:var(--cngx-toast-outlet-padding, 16px);pointer-events:none;max-width:var(--cngx-toast-max-width, 420px);width:100%}:scope.cngx-toast-outlet--top-start{top:0;inset-inline-start:0}:scope.cngx-toast-outlet--top-center{top:0;left:50%;transform:translate(-50%)}:scope.cngx-toast-outlet--top-end{top:0;inset-inline-end:0}:scope.cngx-toast-outlet--bottom-start{bottom:0;inset-inline-start:0}:scope.cngx-toast-outlet--bottom-center{bottom:0;left:50%;transform:translate(-50%)}:scope.cngx-toast-outlet--bottom-end{bottom:0;inset-inline-end:0}.cngx-toast{display:flex;align-items:flex-start;gap:var(--cngx-toast-inner-gap, 10px);padding:var(--cngx-toast-padding, 12px 16px);border-radius:var(--cngx-toast-border-radius, 8px);background:var(--cngx-toast-bg, oklch(1 0 0));color:var(--cngx-toast-color, oklch(.25 .015 250));box-shadow:var(--cngx-toast-shadow, 0 4px 12px oklch(0 0 0 / .15));pointer-events:auto;animation:cngx-toast-enter var(--cngx-toast-enter-duration, .2s) var(--cngx-toast-enter-easing, ease-out)}.cngx-toast--info{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-info-accent, oklch(.62 .2 250))}.cngx-toast--success{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-success-accent, oklch(.65 .15 145))}.cngx-toast--warning{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-warning-accent, oklch(.72 .18 70))}.cngx-toast--error{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-error-accent, oklch(.62 .22 25))}.cngx-toast__icon{flex-shrink:0}.cngx-toast--info .cngx-toast__icon{color:var(--cngx-toast-info-accent, oklch(.62 .2 250))}.cngx-toast--success .cngx-toast__icon{color:var(--cngx-toast-success-accent, oklch(.65 .15 145))}.cngx-toast--warning .cngx-toast__icon{color:var(--cngx-toast-warning-accent, oklch(.72 .18 70))}.cngx-toast--error .cngx-toast__icon{color:var(--cngx-toast-error-accent, oklch(.62 .22 25))}.cngx-toast__default-icon{width:var(--cngx-toast-icon-size, 20px);height:var(--cngx-toast-icon-size, 20px)}.cngx-toast__body{flex:1;min-width:0}.cngx-toast__message{font-size:var(--cngx-toast-font-size, .875rem);line-height:var(--cngx-toast-line-height, 1.5)}.cngx-toast__title{display:block;font-weight:var(--cngx-toast-title-font-weight, 600);font-size:var(--cngx-toast-title-font-size, var(--cngx-toast-font-size, .875rem));color:var(--cngx-toast-title-color, inherit);line-height:var(--cngx-toast-line-height, 1.5)}.cngx-toast__description{display:-webkit-box;-webkit-line-clamp:var(--cngx-toast-description-max-lines, 3);line-clamp:var(--cngx-toast-description-max-lines, 3);-webkit-box-orient:vertical;overflow:hidden;font-size:var(--cngx-toast-description-font-size, .8125rem);color:var(--cngx-toast-description-color, oklch(.5 .01 250));line-height:var(--cngx-toast-description-line-height, 1.4);margin-top:2px}.cngx-toast__count{opacity:var(--cngx-toast-count-opacity, .6);font-size:var(--cngx-toast-description-font-size, .8125rem)}.cngx-toast__action{appearance:none;background:none;border:none;padding:var(--cngx-toast-action-padding, 4px 0);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-weight:var(--cngx-toast-action-weight, 600);font-size:var(--cngx-toast-action-size, .8125rem);color:inherit;text-decoration:underline}.cngx-toast__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)}@media(prefers-reduced-motion:reduce){.cngx-toast{animation:none}}}}@keyframes cngx-toast-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(forced-colors:active){.cngx-toast{border:1px solid ButtonBorder}}\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2539
2513
|
}
|
|
2540
2514
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxToastOutlet, decorators: [{
|
|
2541
2515
|
type: Component,
|
|
@@ -2641,7 +2615,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2641
2615
|
}
|
|
2642
2616
|
</div>
|
|
2643
2617
|
}
|
|
2644
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-toast-z-index{syntax: \"<number>\"; inherits: false; initial-value: 9999;}@property --cngx-toast-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-outlet-padding{syntax: \"*\"; inherits: false; initial-value: 16px;}@property --cngx-toast-max-width{syntax: \"<length>\"; inherits: false; initial-value: 420px;}@property --cngx-toast-inner-gap{syntax: \"<length>\"; inherits: true; initial-value: 10px;}@property --cngx-toast-padding{syntax: \"*\"; inherits: true; initial-value: 12px 16px;}@property --cngx-toast-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-toast-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.25 .015 250);}@property --cngx-toast-shadow{syntax: \"*\"; inherits: true; initial-value: 0 4px 12px oklch(0 0 0 / .15);}@property --cngx-toast-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-toast-enter-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-toast-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-toast-info-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-toast-success-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-toast-warning-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-toast-error-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-toast-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-toast-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-toast-title-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-title-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-title-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-toast-description-max-lines{syntax: \"<integer>\"; inherits: false; initial-value: 3;}@property --cngx-toast-description-font-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-toast-description-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-toast-description-line-height{syntax: \"*\"; inherits: false; initial-value: 1.4;}@property --cngx-toast-count-opacity{syntax: \"<number>\"; inherits: false; initial-value: .6;}@property --cngx-toast-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 0;}@property --cngx-toast-action-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-action-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}:root{--cngx-toast-bg: var(--cngx-color-surface);--cngx-toast-color: var(--cngx-color-text);--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}}[data-color-scheme=dark],.dark{--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}[data-color-scheme=light],.light{--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}}@layer cngx.components{@scope(.cngx-toast-outlet){:scope{--cngx-toast-gap: var(--cngx-space-sm);--cngx-toast-outlet-padding: var(--cngx-space-md);--cngx-toast-inner-gap: var(--cngx-space-sm);--cngx-toast-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-toast-action-padding: var(--cngx-space-xs) 0;position:fixed;z-index:var(--cngx-toast-z-index, 9999);display:flex;flex-direction:column;gap:var(--cngx-toast-gap, 8px);padding:var(--cngx-toast-outlet-padding, 16px);pointer-events:none;max-width:var(--cngx-toast-max-width, 420px);width:100%}:scope.cngx-toast-outlet--top-start{top:0;
|
|
2618
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-toast-z-index{syntax: \"<number>\"; inherits: false; initial-value: 9999;}@property --cngx-toast-gap{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-outlet-padding{syntax: \"*\"; inherits: false; initial-value: 16px;}@property --cngx-toast-max-width{syntax: \"<length>\"; inherits: false; initial-value: 420px;}@property --cngx-toast-inner-gap{syntax: \"<length>\"; inherits: true; initial-value: 10px;}@property --cngx-toast-padding{syntax: \"*\"; inherits: true; initial-value: 12px 16px;}@property --cngx-toast-border-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-toast-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-toast-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.25 .015 250);}@property --cngx-toast-shadow{syntax: \"*\"; inherits: true; initial-value: 0 4px 12px oklch(0 0 0 / .15);}@property --cngx-toast-enter-duration{syntax: \"<time>\"; inherits: false; initial-value: .2s;}@property --cngx-toast-enter-easing{syntax: \"*\"; inherits: false; initial-value: ease-out;}@property --cngx-toast-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-toast-info-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .2 250);}@property --cngx-toast-success-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145);}@property --cngx-toast-warning-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-toast-error-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-toast-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 20px;}@property --cngx-toast-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-line-height{syntax: \"*\"; inherits: false; initial-value: 1.5;}@property --cngx-toast-title-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-title-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-toast-title-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-toast-description-max-lines{syntax: \"<integer>\"; inherits: false; initial-value: 3;}@property --cngx-toast-description-font-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}@property --cngx-toast-description-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-toast-description-line-height{syntax: \"*\"; inherits: false; initial-value: 1.4;}@property --cngx-toast-count-opacity{syntax: \"<number>\"; inherits: false; initial-value: .6;}@property --cngx-toast-action-padding{syntax: \"*\"; inherits: true; initial-value: 4px 0;}@property --cngx-toast-action-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-toast-action-size{syntax: \"*\"; inherits: false; initial-value: .8125rem;}:root{--cngx-toast-bg: var(--cngx-color-surface);--cngx-toast-color: var(--cngx-color-text);--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}}[data-color-scheme=dark],.dark{--cngx-toast-shadow: 0 8px 24px oklch(0 0 0 / .5);--cngx-toast-info-accent: oklch(.78 .14 250);--cngx-toast-success-accent: oklch(.78 .14 145);--cngx-toast-warning-accent: oklch(.82 .15 70);--cngx-toast-error-accent: oklch(.78 .16 25);--cngx-toast-description-color: oklch(.75 .01 250)}[data-color-scheme=light],.light{--cngx-toast-shadow: 0 4px 12px oklch(0 0 0 / .15);--cngx-toast-info-accent: oklch(.62 .2 250);--cngx-toast-success-accent: oklch(.65 .15 145);--cngx-toast-warning-accent: oklch(.72 .18 70);--cngx-toast-error-accent: oklch(.62 .22 25);--cngx-toast-description-color: oklch(.5 .01 250)}}@layer cngx.components{@scope(.cngx-toast-outlet){:scope{--cngx-toast-gap: var(--cngx-space-sm);--cngx-toast-outlet-padding: var(--cngx-space-md);--cngx-toast-inner-gap: var(--cngx-space-sm);--cngx-toast-padding: var(--cngx-space-sm) var(--cngx-space-md);--cngx-toast-action-padding: var(--cngx-space-xs) 0;position:fixed;z-index:var(--cngx-toast-z-index, 9999);display:flex;flex-direction:column;gap:var(--cngx-toast-gap, 8px);padding:var(--cngx-toast-outlet-padding, 16px);pointer-events:none;max-width:var(--cngx-toast-max-width, 420px);width:100%}:scope.cngx-toast-outlet--top-start{top:0;inset-inline-start:0}:scope.cngx-toast-outlet--top-center{top:0;left:50%;transform:translate(-50%)}:scope.cngx-toast-outlet--top-end{top:0;inset-inline-end:0}:scope.cngx-toast-outlet--bottom-start{bottom:0;inset-inline-start:0}:scope.cngx-toast-outlet--bottom-center{bottom:0;left:50%;transform:translate(-50%)}:scope.cngx-toast-outlet--bottom-end{bottom:0;inset-inline-end:0}.cngx-toast{display:flex;align-items:flex-start;gap:var(--cngx-toast-inner-gap, 10px);padding:var(--cngx-toast-padding, 12px 16px);border-radius:var(--cngx-toast-border-radius, 8px);background:var(--cngx-toast-bg, oklch(1 0 0));color:var(--cngx-toast-color, oklch(.25 .015 250));box-shadow:var(--cngx-toast-shadow, 0 4px 12px oklch(0 0 0 / .15));pointer-events:auto;animation:cngx-toast-enter var(--cngx-toast-enter-duration, .2s) var(--cngx-toast-enter-easing, ease-out)}.cngx-toast--info{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-info-accent, oklch(.62 .2 250))}.cngx-toast--success{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-success-accent, oklch(.65 .15 145))}.cngx-toast--warning{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-warning-accent, oklch(.72 .18 70))}.cngx-toast--error{border-inline-start:var(--cngx-toast-accent-width, 3px) solid var(--cngx-toast-error-accent, oklch(.62 .22 25))}.cngx-toast__icon{flex-shrink:0}.cngx-toast--info .cngx-toast__icon{color:var(--cngx-toast-info-accent, oklch(.62 .2 250))}.cngx-toast--success .cngx-toast__icon{color:var(--cngx-toast-success-accent, oklch(.65 .15 145))}.cngx-toast--warning .cngx-toast__icon{color:var(--cngx-toast-warning-accent, oklch(.72 .18 70))}.cngx-toast--error .cngx-toast__icon{color:var(--cngx-toast-error-accent, oklch(.62 .22 25))}.cngx-toast__default-icon{width:var(--cngx-toast-icon-size, 20px);height:var(--cngx-toast-icon-size, 20px)}.cngx-toast__body{flex:1;min-width:0}.cngx-toast__message{font-size:var(--cngx-toast-font-size, .875rem);line-height:var(--cngx-toast-line-height, 1.5)}.cngx-toast__title{display:block;font-weight:var(--cngx-toast-title-font-weight, 600);font-size:var(--cngx-toast-title-font-size, var(--cngx-toast-font-size, .875rem));color:var(--cngx-toast-title-color, inherit);line-height:var(--cngx-toast-line-height, 1.5)}.cngx-toast__description{display:-webkit-box;-webkit-line-clamp:var(--cngx-toast-description-max-lines, 3);line-clamp:var(--cngx-toast-description-max-lines, 3);-webkit-box-orient:vertical;overflow:hidden;font-size:var(--cngx-toast-description-font-size, .8125rem);color:var(--cngx-toast-description-color, oklch(.5 .01 250));line-height:var(--cngx-toast-description-line-height, 1.4);margin-top:2px}.cngx-toast__count{opacity:var(--cngx-toast-count-opacity, .6);font-size:var(--cngx-toast-description-font-size, .8125rem)}.cngx-toast__action{appearance:none;background:none;border:none;padding:var(--cngx-toast-action-padding, 4px 0);min-block-size:var(--cngx-target-min, 0px);cursor:pointer;font-weight:var(--cngx-toast-action-weight, 600);font-size:var(--cngx-toast-action-size, .8125rem);color:inherit;text-decoration:underline}.cngx-toast__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)}@media(prefers-reduced-motion:reduce){.cngx-toast{animation:none}}}}@keyframes cngx-toast-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(forced-colors:active){.cngx-toast{border:1px solid ButtonBorder}}\n"] }]
|
|
2645
2619
|
}], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], maxVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisible", required: false }] }], insertPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "insertPosition", required: false }] }] } });
|
|
2646
2620
|
|
|
2647
2621
|
/**
|
|
@@ -2981,6 +2955,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2981
2955
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/async-container/async-container.ts
|
|
2982
2956
|
* @since 0.1.0
|
|
2983
2957
|
* @relatedTo CngxLoadingIndicator, CngxLoadingOverlay, CngxAlert, CngxToaster
|
|
2958
|
+
* @slot cngxAsyncContent Rendered on success; gets the resolved value.
|
|
2959
|
+
* @slot cngxAsyncSkeleton Rendered during the first load.
|
|
2960
|
+
* @slot cngxAsyncEmpty Rendered when the value resolves to nothing.
|
|
2961
|
+
* @slot cngxAsyncError Rendered on failure; gets the error and a retry callback.
|
|
2984
2962
|
*
|
|
2985
2963
|
* <example-url>http://localhost:4200/#/forms/filter-builder/filter-builder-async-state/loading-error-content-branches-via-cngx-async-container</example-url>
|
|
2986
2964
|
* <example-url>http://localhost:4200/#/ui/feedback/async-container/cngx-async-container-full-control-toast</example-url>
|
|
@@ -2992,8 +2970,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2992
2970
|
*/
|
|
2993
2971
|
class CngxAsyncContainer {
|
|
2994
2972
|
toaster = inject(CngxToaster, { optional: true });
|
|
2973
|
+
loadingConfig = injectLoadingConfig();
|
|
2995
2974
|
/** The async state to render. */
|
|
2996
2975
|
state = input.required(...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
2976
|
+
/** Delay in ms before the skeleton view / refresh bar shows. Defaults to `CNGX_LOADING_CONFIG.showDelay`. */
|
|
2977
|
+
showDelay = input(this.loadingConfig.showDelay, ...(ngDevMode ? [{ debugName: "showDelay" }] : /* istanbul ignore next */ []));
|
|
2978
|
+
/** Minimum time in ms the skeleton view / refresh bar stays once shown. Defaults to `CNGX_LOADING_CONFIG.minDwell`. */
|
|
2979
|
+
minDwell = input(this.loadingConfig.minDwell, ...(ngDevMode ? [{ debugName: "minDwell" }] : /* istanbul ignore next */ []));
|
|
2997
2980
|
/** Show refresh indicator bar during refresh/re-query. */
|
|
2998
2981
|
refreshIndicator = input(true, ...(ngDevMode ? [{ debugName: "refreshIndicator" }] : /* istanbul ignore next */ []));
|
|
2999
2982
|
/** ARIA label for the region. */
|
|
@@ -3024,6 +3007,14 @@ class CngxAsyncContainer {
|
|
|
3024
3007
|
const status = s.status();
|
|
3025
3008
|
return status === 'refreshing' || (status === 'loading' && !s.isFirstLoad());
|
|
3026
3009
|
}, ...(ngDevMode ? [{ debugName: "showRefreshIndicator" }] : /* istanbul ignore next */ []));
|
|
3010
|
+
/**
|
|
3011
|
+
* @internal - flash-suppressed first-load skeleton view. A sub-`showDelay` first
|
|
3012
|
+
* load never renders the skeleton outlet; once shown it holds for `minDwell`. The
|
|
3013
|
+
* region `aria-busy` stays truthful (`state().isBusy()`); only the visual is gated.
|
|
3014
|
+
*/
|
|
3015
|
+
skeletonVisible = createVisibilityGate(computed(() => this.activeView() === 'skeleton'), this.showDelay, this.minDwell);
|
|
3016
|
+
/** @internal - flash-suppressed refresh bar, gated by the same showDelay + minDwell. */
|
|
3017
|
+
refreshVisible = createVisibilityGate(this.showRefreshIndicator, this.showDelay, this.minDwell);
|
|
3027
3018
|
/** @internal */
|
|
3028
3019
|
contentContext = computed(() => ({
|
|
3029
3020
|
$implicit: this.state().data(),
|
|
@@ -3086,8 +3077,8 @@ class CngxAsyncContainer {
|
|
|
3086
3077
|
}
|
|
3087
3078
|
}
|
|
3088
3079
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAsyncContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3089
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxAsyncContainer, isStandalone: true, selector: "cngx-async-container", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: true, transformFunction: null }, refreshIndicator: { classPropertyName: "refreshIndicator", publicName: "refreshIndicator", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, toastSuccess: { classPropertyName: "toastSuccess", publicName: "toastSuccess", isSignal: true, isRequired: false, transformFunction: null }, toastError: { classPropertyName: "toastError", publicName: "toastError", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "region" }, properties: { "attr.aria-busy": "state().isBusy() || null", "attr.aria-label": "ariaLabel() || null" }, styleAttribute: "display: contents", classAttribute: "cngx-async-container" }, queries: [{ propertyName: "skeletonTpl", first: true, predicate: CngxAsyncSkeletonTpl, descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: CngxAsyncContentTpl, descendants: true, isSignal: true }, { propertyName: "emptyTpl", first: true, predicate: CngxAsyncEmptyTpl, descendants: true, isSignal: true }, { propertyName: "errorTpl", first: true, predicate: CngxAsyncErrorTpl, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
3090
|
-
@if (
|
|
3080
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxAsyncContainer, isStandalone: true, selector: "cngx-async-container", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: true, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, minDwell: { classPropertyName: "minDwell", publicName: "minDwell", isSignal: true, isRequired: false, transformFunction: null }, refreshIndicator: { classPropertyName: "refreshIndicator", publicName: "refreshIndicator", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, toastSuccess: { classPropertyName: "toastSuccess", publicName: "toastSuccess", isSignal: true, isRequired: false, transformFunction: null }, toastError: { classPropertyName: "toastError", publicName: "toastError", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "region" }, properties: { "attr.aria-busy": "state().isBusy() || null", "attr.aria-label": "ariaLabel() || null" }, styleAttribute: "display: contents", classAttribute: "cngx-async-container" }, queries: [{ propertyName: "skeletonTpl", first: true, predicate: CngxAsyncSkeletonTpl, descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: CngxAsyncContentTpl, descendants: true, isSignal: true }, { propertyName: "emptyTpl", first: true, predicate: CngxAsyncEmptyTpl, descendants: true, isSignal: true }, { propertyName: "errorTpl", first: true, predicate: CngxAsyncErrorTpl, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
3081
|
+
@if (refreshVisible()) {
|
|
3091
3082
|
<cngx-loading-indicator
|
|
3092
3083
|
[loading]="true"
|
|
3093
3084
|
variant="bar"
|
|
@@ -3098,7 +3089,7 @@ class CngxAsyncContainer {
|
|
|
3098
3089
|
|
|
3099
3090
|
@switch (activeView()) {
|
|
3100
3091
|
@case ('skeleton') {
|
|
3101
|
-
@if (skeletonTpl(); as tpl) {
|
|
3092
|
+
@if (skeletonVisible() && skeletonTpl(); as tpl) {
|
|
3102
3093
|
<ng-container *ngTemplateOutlet="tpl.templateRef" />
|
|
3103
3094
|
}
|
|
3104
3095
|
}
|
|
@@ -3130,7 +3121,7 @@ class CngxAsyncContainer {
|
|
|
3130
3121
|
<span aria-live="polite" aria-atomic="true" class="cngx-async-container__sr-only">
|
|
3131
3122
|
{{ announcement() }}
|
|
3132
3123
|
</span>
|
|
3133
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-async-container-refresh-z{syntax: \"<number>\"; inherits: false; initial-value: 5;}}@layer cngx.components{@scope(.cngx-async-container){.cngx-async-container__refresh{position:absolute;top:0;
|
|
3124
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-async-container-refresh-z{syntax: \"<number>\"; inherits: false; initial-value: 5;}}@layer cngx.components{@scope(.cngx-async-container){.cngx-async-container__refresh{position:absolute;top:0;inset-inline:0;z-index:var(--cngx-async-container-refresh-z, 5)}.cngx-async-container__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxLoadingIndicator, selector: "cngx-loading-indicator", inputs: ["state", "loading", "variant", "label", "delay", "minDwell", "minDuration"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3134
3125
|
}
|
|
3135
3126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAsyncContainer, decorators: [{
|
|
3136
3127
|
type: Component,
|
|
@@ -3141,7 +3132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3141
3132
|
'[attr.aria-busy]': 'state().isBusy() || null',
|
|
3142
3133
|
'[attr.aria-label]': 'ariaLabel() || null',
|
|
3143
3134
|
}, template: `
|
|
3144
|
-
@if (
|
|
3135
|
+
@if (refreshVisible()) {
|
|
3145
3136
|
<cngx-loading-indicator
|
|
3146
3137
|
[loading]="true"
|
|
3147
3138
|
variant="bar"
|
|
@@ -3152,7 +3143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3152
3143
|
|
|
3153
3144
|
@switch (activeView()) {
|
|
3154
3145
|
@case ('skeleton') {
|
|
3155
|
-
@if (skeletonTpl(); as tpl) {
|
|
3146
|
+
@if (skeletonVisible() && skeletonTpl(); as tpl) {
|
|
3156
3147
|
<ng-container *ngTemplateOutlet="tpl.templateRef" />
|
|
3157
3148
|
}
|
|
3158
3149
|
}
|
|
@@ -3184,8 +3175,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3184
3175
|
<span aria-live="polite" aria-atomic="true" class="cngx-async-container__sr-only">
|
|
3185
3176
|
{{ announcement() }}
|
|
3186
3177
|
</span>
|
|
3187
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-async-container-refresh-z{syntax: \"<number>\"; inherits: false; initial-value: 5;}}@layer cngx.components{@scope(.cngx-async-container){.cngx-async-container__refresh{position:absolute;top:0;
|
|
3188
|
-
}], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: true }] }], refreshIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "refreshIndicator", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], toastSuccess: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastSuccess", required: false }] }], toastError: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastError", required: false }] }], skeletonTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncSkeletonTpl), { isSignal: true }] }], contentTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncContentTpl), { isSignal: true }] }], emptyTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncEmptyTpl), { isSignal: true }] }], errorTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncErrorTpl), { isSignal: true }] }] } });
|
|
3178
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-async-container-refresh-z{syntax: \"<number>\"; inherits: false; initial-value: 5;}}@layer cngx.components{@scope(.cngx-async-container){.cngx-async-container__refresh{position:absolute;top:0;inset-inline:0;z-index:var(--cngx-async-container-refresh-z, 5)}.cngx-async-container__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}}\n"] }]
|
|
3179
|
+
}], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: true }] }], showDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDelay", required: false }] }], minDwell: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDwell", required: false }] }], refreshIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "refreshIndicator", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], toastSuccess: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastSuccess", required: false }] }], toastError: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastError", required: false }] }], skeletonTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncSkeletonTpl), { isSignal: true }] }], contentTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncContentTpl), { isSignal: true }] }], emptyTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncEmptyTpl), { isSignal: true }] }], errorTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxAsyncErrorTpl), { isSignal: true }] }] } });
|
|
3189
3180
|
|
|
3190
3181
|
/**
|
|
3191
3182
|
* @module @cngx/ui/feedback
|