@jdpo2008/ngx-ds 0.7.0 → 1.0.0
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.
|
@@ -14,7 +14,7 @@ class ToastrService {
|
|
|
14
14
|
const toast = {
|
|
15
15
|
...options,
|
|
16
16
|
id,
|
|
17
|
-
type: options.type
|
|
17
|
+
type: options.type || 'info',
|
|
18
18
|
duration: options.duration || 5000,
|
|
19
19
|
position: options.position || 'top-right',
|
|
20
20
|
timestamp: Date.now(),
|
|
@@ -34,10 +34,6 @@ class ToastrService {
|
|
|
34
34
|
danger(message, title, duration) {
|
|
35
35
|
return this.show({ message, type: 'danger', title, duration });
|
|
36
36
|
}
|
|
37
|
-
/** @deprecated Use `danger()`. Will be removed in 1.0. */
|
|
38
|
-
error(message, title, duration) {
|
|
39
|
-
return this.danger(message, title, duration);
|
|
40
|
-
}
|
|
41
37
|
warning(message, title, duration) {
|
|
42
38
|
return this.show({ message, type: 'warning', title, duration });
|
|
43
39
|
}
|
|
@@ -2730,9 +2726,6 @@ class AlertComponent {
|
|
|
2730
2726
|
i18n = inject(NGX_DS_LABELS);
|
|
2731
2727
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
2732
2728
|
color = input('info', ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
2733
|
-
/** @deprecated Use `color`. Removed in 1.0. */
|
|
2734
|
-
type = input(undefined, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
2735
|
-
effectiveColor = computed(() => this.type() ?? this.color(), ...(ngDevMode ? [{ debugName: "effectiveColor" }] : /* istanbul ignore next */ []));
|
|
2736
2729
|
variant = input('soft', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2737
2730
|
showIcon = input(true, ...(ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []));
|
|
2738
2731
|
dismissible = input(false, ...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
@@ -2740,19 +2733,19 @@ class AlertComponent {
|
|
|
2740
2733
|
#closed = signal(false, ...(ngDevMode ? [{ debugName: "#closed" }] : /* istanbul ignore next */ []));
|
|
2741
2734
|
isClosed = this.#closed.asReadonly();
|
|
2742
2735
|
closeIcon = X;
|
|
2743
|
-
typeIcon = computed(() => TYPE_ICONS$1[this.
|
|
2744
|
-
hostClasses = computed(() => ['alert', `alert--${this.
|
|
2736
|
+
typeIcon = computed(() => TYPE_ICONS$1[this.color()], ...(ngDevMode ? [{ debugName: "typeIcon" }] : /* istanbul ignore next */ []));
|
|
2737
|
+
hostClasses = computed(() => ['alert', `alert--${this.color()}`, `alert--${this.variant()}`].join(' '), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
2745
2738
|
close() {
|
|
2746
2739
|
this.#closed.set(true);
|
|
2747
2740
|
this.dismissed.emit();
|
|
2748
2741
|
}
|
|
2749
2742
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2750
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AlertComponent, isStandalone: true, selector: "ngx-ds-alert", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null },
|
|
2743
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AlertComponent, isStandalone: true, selector: "ngx-ds-alert", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: "@if (!isClosed()) {\n <div [class]=\"hostClasses()\" role=\"alert\">\n @if (showIcon()) {\n <ngx-ds-icon class=\"alert__icon\" [icon]=\"typeIcon()\" [size]=\"20\" aria-hidden=\"true\" />\n }\n\n <div class=\"alert__body\">\n @if (title()) {\n <p class=\"alert__title\">{{ title() }}</p>\n }\n <div class=\"alert__message\">\n <ng-content />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"alert__close\"\n (click)=\"close()\"\n [attr.aria-label]=\"i18n.closeAlert\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"16\" aria-hidden=\"true\" />\n </button>\n }\n </div>\n}\n", styles: [".alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border-radius:.5rem;border:1.5px solid transparent;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.alert__icon{flex-shrink:0;margin-top:.1rem}.alert__body{flex:1;min-width:0}.alert__title{margin:0 0 .25rem;font-size:.875rem;font-weight:600;line-height:1.25}.alert__message{font-size:.875rem;line-height:1.5}.alert__close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-top:.1rem;padding:0;background:transparent;border:none;border-radius:.25rem;cursor:pointer;opacity:.6;transition:opacity .15s ease}.alert__close:hover{opacity:1}.alert--info.alert--soft{background-color:var(--info-50, #eff6ff);border-color:var(--info-200, #bfdbfe);color:var(--info-800, #1e40af)}.alert--info.alert--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.alert--info.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-info, #2563eb);color:var(--info-800, #1e40af)}.alert--success.alert--soft{background-color:var(--success-50, #ecfdf5);border-color:var(--success-200, #a7f3d0);color:var(--success-800, #065f46)}.alert--success.alert--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.alert--success.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-success, #047857);color:var(--success-800, #065f46)}.alert--warning.alert--soft{background-color:var(--warning-50, #fffbeb);border-color:var(--warning-200, #fde68a);color:var(--warning-800, #92400e)}.alert--warning.alert--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.alert--warning.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-warning, #b45309);color:var(--warning-800, #92400e)}.alert--danger.alert--soft{background-color:var(--danger-50, #fef2f2);border-color:var(--danger-200, #fecaca);color:var(--danger-800, #991b1b)}.alert--danger.alert--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.alert--danger.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-danger, #dc2626);color:var(--danger-800, #991b1b)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2751
2744
|
}
|
|
2752
2745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AlertComponent, decorators: [{
|
|
2753
2746
|
type: Component,
|
|
2754
2747
|
args: [{ selector: 'ngx-ds-alert', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!isClosed()) {\n <div [class]=\"hostClasses()\" role=\"alert\">\n @if (showIcon()) {\n <ngx-ds-icon class=\"alert__icon\" [icon]=\"typeIcon()\" [size]=\"20\" aria-hidden=\"true\" />\n }\n\n <div class=\"alert__body\">\n @if (title()) {\n <p class=\"alert__title\">{{ title() }}</p>\n }\n <div class=\"alert__message\">\n <ng-content />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"alert__close\"\n (click)=\"close()\"\n [attr.aria-label]=\"i18n.closeAlert\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"16\" aria-hidden=\"true\" />\n </button>\n }\n </div>\n}\n", styles: [".alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border-radius:.5rem;border:1.5px solid transparent;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.alert__icon{flex-shrink:0;margin-top:.1rem}.alert__body{flex:1;min-width:0}.alert__title{margin:0 0 .25rem;font-size:.875rem;font-weight:600;line-height:1.25}.alert__message{font-size:.875rem;line-height:1.5}.alert__close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-top:.1rem;padding:0;background:transparent;border:none;border-radius:.25rem;cursor:pointer;opacity:.6;transition:opacity .15s ease}.alert__close:hover{opacity:1}.alert--info.alert--soft{background-color:var(--info-50, #eff6ff);border-color:var(--info-200, #bfdbfe);color:var(--info-800, #1e40af)}.alert--info.alert--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.alert--info.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-info, #2563eb);color:var(--info-800, #1e40af)}.alert--success.alert--soft{background-color:var(--success-50, #ecfdf5);border-color:var(--success-200, #a7f3d0);color:var(--success-800, #065f46)}.alert--success.alert--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.alert--success.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-success, #047857);color:var(--success-800, #065f46)}.alert--warning.alert--soft{background-color:var(--warning-50, #fffbeb);border-color:var(--warning-200, #fde68a);color:var(--warning-800, #92400e)}.alert--warning.alert--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.alert--warning.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-warning, #b45309);color:var(--warning-800, #92400e)}.alert--danger.alert--soft{background-color:var(--danger-50, #fef2f2);border-color:var(--danger-200, #fecaca);color:var(--danger-800, #991b1b)}.alert--danger.alert--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.alert--danger.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-danger, #dc2626);color:var(--danger-800, #991b1b)}\n"] }]
|
|
2755
|
-
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }],
|
|
2748
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }] } });
|
|
2756
2749
|
|
|
2757
2750
|
class FileUploadComponent {
|
|
2758
2751
|
i18n = inject(NGX_DS_LABELS);
|
|
@@ -2941,12 +2934,10 @@ class OtpInputComponent {
|
|
|
2941
2934
|
masked = input(false, ...(ngDevMode ? [{ debugName: "masked" }] : /* istanbul ignore next */ []));
|
|
2942
2935
|
/** Message shown under the boxes. It also switches them to the error style. */
|
|
2943
2936
|
errorMessage = input('', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
2944
|
-
/** @deprecated Use `errorMessage`. Removed in 1.0. */
|
|
2945
|
-
error = input(false, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2946
2937
|
/** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
|
|
2947
2938
|
errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
2948
2939
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
2949
|
-
hasError = computed(() =>
|
|
2940
|
+
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2950
2941
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2951
2942
|
messageId = `ngx-otp-${nextId$c++}-message`;
|
|
2952
2943
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -3065,7 +3056,7 @@ class OtpInputComponent {
|
|
|
3065
3056
|
this.#formDisabled.set(disabled);
|
|
3066
3057
|
}
|
|
3067
3058
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: OtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3068
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: OtpInputComponent, isStandalone: true, selector: "ngx-ds-otp-input", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, masked: { classPropertyName: "masked", publicName: "masked", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null },
|
|
3059
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: OtpInputComponent, isStandalone: true, selector: "ngx-ds-otp-input", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, masked: { classPropertyName: "masked", publicName: "masked", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, providers: [
|
|
3069
3060
|
{
|
|
3070
3061
|
provide: NG_VALUE_ACCESSOR,
|
|
3071
3062
|
useExisting: forwardRef(() => OtpInputComponent),
|
|
@@ -3082,7 +3073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3082
3073
|
multi: true,
|
|
3083
3074
|
},
|
|
3084
3075
|
], template: "<div [class]=\"wrapperClasses()\" role=\"group\" [attr.aria-label]=\"i18n.otpGroup\">\n @for (i of indices(); track i) {\n <input\n #otpBox\n [class]=\"boxClasses()\"\n [type]=\"inputType()\"\n [inputMode]=\"inputMode()\"\n maxlength=\"1\"\n [value]=\"digits()[i] || ''\"\n [attr.autocomplete]=\"i === 0 ? 'one-time-code' : 'off'\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() ? messageId : null\"\n [attr.aria-label]=\"i18n.otpDigit(i + 1, indices().length)\"\n [style.width]=\"boxDim()\"\n [style.height]=\"boxDim()\"\n [style.fontSize]=\"boxFs()\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeydown($event, i)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"otp__message\" role=\"alert\">{{ errorText() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.otp{display:flex;align-items:center;gap:.5rem}.otp--disabled{opacity:.55;pointer-events:none}.otp__box{display:flex;align-items:center;justify-content:center;padding:0;text-align:center;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;color:var(--text-base, #111827);font-family:inherit;font-weight:600;caret-color:var(--primary-500, #6366f1);transition:border-color .15s ease,box-shadow .15s ease;outline:none}.otp__box:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.otp__box--error{border-color:var(--danger-500, #ef4444);background:#ef44440a}.otp__box--error:focus{box-shadow:0 0 0 3px #ef44441f}.otp__box--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.otp__box::-webkit-outer-spin-button,.otp__box::-webkit-inner-spin-button{-webkit-appearance:none}.otp__box{-moz-appearance:textfield}.otp__message{margin:.375rem 0 0;font-size:.75rem;line-height:1.4;color:var(--fill-danger, #dc2626)}\n"] }]
|
|
3085
|
-
}], ctorParameters: () => [], propDecorators: { length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], masked: [{ type: i0.Input, args: [{ isSignal: true, alias: "masked", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }],
|
|
3076
|
+
}], ctorParameters: () => [], propDecorators: { length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], masked: [{ type: i0.Input, args: [{ isSignal: true, alias: "masked", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], complete: [{ type: i0.Output, args: ["complete"] }], boxes: [{ type: i0.ViewChildren, args: ['otpBox', { isSignal: true }] }] } });
|
|
3086
3077
|
|
|
3087
3078
|
// Theme tokens (with fallbacks) so consumers can restyle the slider via CSS.
|
|
3088
3079
|
const TRACK_COLORS = {
|
|
@@ -3717,9 +3708,6 @@ class ChipGroupComponent {
|
|
|
3717
3708
|
selectable = input(true, ...(ngDevMode ? [{ debugName: "selectable" }] : /* istanbul ignore next */ []));
|
|
3718
3709
|
removable = input(false, ...(ngDevMode ? [{ debugName: "removable" }] : /* istanbul ignore next */ []));
|
|
3719
3710
|
multiple = input(true, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
3720
|
-
/** @deprecated Use `multiple`. Removed in 1.0. */
|
|
3721
|
-
multiSelect = input(undefined, ...(ngDevMode ? [{ debugName: "multiSelect" }] : /* istanbul ignore next */ []));
|
|
3722
|
-
isMultiple = computed(() => this.multiSelect() ?? this.multiple(), ...(ngDevMode ? [{ debugName: "isMultiple" }] : /* istanbul ignore next */ []));
|
|
3723
3711
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
3724
3712
|
variant = input('soft', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
3725
3713
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -3727,7 +3715,7 @@ class ChipGroupComponent {
|
|
|
3727
3715
|
isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3728
3716
|
removed = output();
|
|
3729
3717
|
XIcon = X;
|
|
3730
|
-
hostClasses = computed(() => `chip-group chip-group--${this.size()} chip-group--${this.variant()
|
|
3718
|
+
hostClasses = computed(() => `chip-group chip-group--${this.size()} chip-group--${this.variant()}`, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
3731
3719
|
isSelected(chip) {
|
|
3732
3720
|
return this.selected().includes(chip.value);
|
|
3733
3721
|
}
|
|
@@ -3738,10 +3726,10 @@ class ChipGroupComponent {
|
|
|
3738
3726
|
const idx = current.indexOf(chip.value);
|
|
3739
3727
|
let next;
|
|
3740
3728
|
if (idx >= 0) {
|
|
3741
|
-
next = this.
|
|
3729
|
+
next = this.multiple() ? current.filter((v) => v !== chip.value) : [];
|
|
3742
3730
|
}
|
|
3743
3731
|
else {
|
|
3744
|
-
next = this.
|
|
3732
|
+
next = this.multiple() ? [...current, chip.value] : [chip.value];
|
|
3745
3733
|
}
|
|
3746
3734
|
this.selected.set(next);
|
|
3747
3735
|
this.#onChange(next);
|
|
@@ -3767,7 +3755,7 @@ class ChipGroupComponent {
|
|
|
3767
3755
|
this.#formDisabled.set(isDisabled);
|
|
3768
3756
|
}
|
|
3769
3757
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ChipGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3770
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ChipGroupComponent, isStandalone: true, selector: "ngx-ds-chip-group", inputs: { chips: { classPropertyName: "chips", publicName: "chips", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null },
|
|
3758
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ChipGroupComponent, isStandalone: true, selector: "ngx-ds-chip-group", inputs: { chips: { classPropertyName: "chips", publicName: "chips", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", removed: "removed" }, providers: [
|
|
3771
3759
|
{
|
|
3772
3760
|
provide: NG_VALUE_ACCESSOR,
|
|
3773
3761
|
useExisting: forwardRef(() => ChipGroupComponent),
|
|
@@ -3784,7 +3772,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3784
3772
|
multi: true,
|
|
3785
3773
|
},
|
|
3786
3774
|
], template: "<div [class]=\"hostClasses()\" role=\"group\">\n @for (chip of chips(); track chip.value) {\n <span\n class=\"chip\"\n [class.chip--selected]=\"isSelected(chip)\"\n [class.chip--disabled]=\"chip.disabled || isDisabled()\"\n >\n <button\n type=\"button\"\n class=\"chip__label\"\n [disabled]=\"chip.disabled || isDisabled() || null\"\n [attr.aria-pressed]=\"selectable() ? isSelected(chip) : null\"\n (click)=\"toggle(chip)\"\n >\n {{ chip.label }}\n </button>\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"chip__remove\"\n [disabled]=\"chip.disabled || isDisabled() || null\"\n [attr.aria-label]=\"i18n.removeChip(chip.label)\"\n (click)=\"remove(chip, $event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"12\" />\n </button>\n }\n </span>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.chip-group{display:flex;flex-wrap:wrap;gap:.5rem}.chip{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px;cursor:pointer;font-family:inherit;font-weight:500;transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap;position:relative}.chip:has(.chip__label:focus-visible){box-shadow:0 0 0 2px var(--primary-300, #a5b4fc)}.chip--disabled{opacity:.45;cursor:not-allowed}.chip__label,.chip__remove{appearance:none;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:inherit}.chip__label:disabled,.chip__remove:disabled{cursor:not-allowed}.chip__label{outline:none}.chip__label:after{content:\"\";position:absolute;inset:0;border-radius:inherit}.chip__remove{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;line-height:0;opacity:.6}.chip__remove:hover:not(:disabled){opacity:1}.chip__remove:focus-visible{opacity:1;outline:2px solid var(--primary-300, #a5b4fc);outline-offset:1px}.chip-group--sm .chip{font-size:.75rem;padding:.2rem .625rem}.chip-group--md .chip{font-size:.8125rem;padding:.3rem .875rem}.chip-group--lg .chip{font-size:.9375rem;padding:.4rem 1.125rem}.chip-group--soft .chip{background:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151);border:1px solid transparent}.chip-group--soft .chip:hover:not(.chip--disabled){background:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.chip-group--soft .chip--selected{background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-color:var(--primary-200, #c7d2fe)}.chip-group--solid .chip{background:var(--surface-active, #e5e7eb);color:var(--text-secondary, #374151);border:1px solid transparent}.chip-group--solid .chip:hover:not(.chip--disabled){background:var(--border-input, #d1d5db)}.chip-group--solid .chip--selected{background:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);border-color:var(--primary-600, #4f46e5)}.chip-group--outline .chip{background:transparent;color:var(--text-muted, #6b7280);border:1px solid var(--border-input, #d1d5db)}.chip-group--outline .chip:hover:not(.chip--disabled){border-color:var(--text-placeholder, #6b7280);color:var(--text-base, #111827)}.chip-group--outline .chip--selected{border-color:var(--primary-500, #6366f1);color:var(--primary-700, #4338ca);background:var(--primary-50, #eef2ff)}\n"] }]
|
|
3787
|
-
}], propDecorators: { chips: [{ type: i0.Input, args: [{ isSignal: true, alias: "chips", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }],
|
|
3775
|
+
}], propDecorators: { chips: [{ type: i0.Input, args: [{ isSignal: true, alias: "chips", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], removed: [{ type: i0.Output, args: ["removed"] }] } });
|
|
3788
3776
|
|
|
3789
3777
|
let nextId$8 = 0;
|
|
3790
3778
|
class DateRangePickerComponent {
|
|
@@ -4380,8 +4368,6 @@ class FormFieldComponent {
|
|
|
4380
4368
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
4381
4369
|
hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
4382
4370
|
errorMessage = input('', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
4383
|
-
/** @deprecated Use `errorMessage`. Removed in 1.0. */
|
|
4384
|
-
error = input('', ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
4385
4371
|
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
4386
4372
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
4387
4373
|
for = input(null, ...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ []));
|
|
@@ -4389,7 +4375,7 @@ class FormFieldComponent {
|
|
|
4389
4375
|
fieldId = computed(() => this.for() ?? this.generatedId, ...(ngDevMode ? [{ debugName: "fieldId" }] : /* istanbul ignore next */ []));
|
|
4390
4376
|
hintId = computed(() => `${this.fieldId()}-hint`, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
|
|
4391
4377
|
errorId = computed(() => `${this.fieldId()}-error`, ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
|
|
4392
|
-
errorText = computed(() => this.errorMessage()
|
|
4378
|
+
errorText = computed(() => this.errorMessage(), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
4393
4379
|
host = inject((ElementRef));
|
|
4394
4380
|
renderer = inject(Renderer2);
|
|
4395
4381
|
constructor() {
|
|
@@ -4417,12 +4403,12 @@ class FormFieldComponent {
|
|
|
4417
4403
|
});
|
|
4418
4404
|
}
|
|
4419
4405
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4420
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormFieldComponent, isStandalone: true, selector: "ngx-ds-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null },
|
|
4406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormFieldComponent, isStandalone: true, selector: "ngx-ds-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (label()) {\n <label [for]=\"fieldId()\" class=\"ngx-ff__label\">\n {{ label() }}\n @if (required()) {\n <span class=\"ngx-ff__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n\n<div class=\"ngx-ff__control\" [class.ngx-ff__control--disabled]=\"disabled()\">\n <ng-content />\n</div>\n\n@if (errorText()) {\n <p [id]=\"errorId()\" class=\"ngx-ff__message ngx-ff__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"hintId()\" class=\"ngx-ff__message ngx-ff__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-ff__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-ff__required{margin-left:.125rem;color:var(--fill-danger, #dc2626)}.ngx-ff__control--disabled{opacity:.6;pointer-events:none}.ngx-ff__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-ff__message--hint{color:var(--text-muted, #6b7280)}.ngx-ff__message--error{color:var(--fill-danger, #dc2626)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4421
4407
|
}
|
|
4422
4408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
4423
4409
|
type: Component,
|
|
4424
4410
|
args: [{ selector: 'ngx-ds-form-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (label()) {\n <label [for]=\"fieldId()\" class=\"ngx-ff__label\">\n {{ label() }}\n @if (required()) {\n <span class=\"ngx-ff__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n\n<div class=\"ngx-ff__control\" [class.ngx-ff__control--disabled]=\"disabled()\">\n <ng-content />\n</div>\n\n@if (errorText()) {\n <p [id]=\"errorId()\" class=\"ngx-ff__message ngx-ff__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"hintId()\" class=\"ngx-ff__message ngx-ff__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-ff__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-ff__required{margin-left:.125rem;color:var(--fill-danger, #dc2626)}.ngx-ff__control--disabled{opacity:.6;pointer-events:none}.ngx-ff__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-ff__message--hint{color:var(--text-muted, #6b7280)}.ngx-ff__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
|
|
4425
|
-
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }],
|
|
4411
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }] } });
|
|
4426
4412
|
|
|
4427
4413
|
const ICON_SIZE$3 = { sm: 14, md: 16, lg: 18 };
|
|
4428
4414
|
const LAST_MINUTE = 23 * 60 + 59;
|
|
@@ -5579,8 +5565,7 @@ class ToastComponent {
|
|
|
5579
5565
|
return this.toastsByPosition()[position] || [];
|
|
5580
5566
|
}
|
|
5581
5567
|
getIconPath(type) {
|
|
5582
|
-
const
|
|
5583
|
-
const effectiveType = type === 'error' ? 'danger' : type || defaultType;
|
|
5568
|
+
const effectiveType = type || 'info';
|
|
5584
5569
|
// Return icon SVG path based on type
|
|
5585
5570
|
const icons = {
|
|
5586
5571
|
success: 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
|
|
@@ -6048,9 +6033,6 @@ class ModalComponent {
|
|
|
6048
6033
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
6049
6034
|
/** Shows the close button in the header. */
|
|
6050
6035
|
dismissible = input(true, ...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
6051
|
-
/** @deprecated Use `dismissible`. Removed in 1.0. */
|
|
6052
|
-
showClose = input(undefined, ...(ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []));
|
|
6053
|
-
showCloseButton = computed(() => this.showClose() ?? this.dismissible(), ...(ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []));
|
|
6054
6036
|
closeOnBackdrop = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
6055
6037
|
closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
|
|
6056
6038
|
// ── Outputs ──────────────────────────────────────────────────────────────
|
|
@@ -6078,12 +6060,12 @@ class ModalComponent {
|
|
|
6078
6060
|
this.close();
|
|
6079
6061
|
}
|
|
6080
6062
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6081
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ModalComponent, isStandalone: true, selector: "ngx-ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null },
|
|
6063
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ModalComponent, isStandalone: true, selector: "ngx-ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, ngImport: i0, template: "@if (open()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (dismissible()) {\n <ngx-ds-icon-button\n class=\"modal__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__body\">\n <ng-content />\n </div>\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__footer\">\n <ng-content select=\"[modal-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:modal-overlay-in .18s ease}.modal{position:relative;width:100%;max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;background:var(--surface-base, #ffffff);border-radius:.75rem;box-shadow:0 20px 60px #00000026,0 4px 20px #00000014;overflow:hidden;animation:modal-panel-in .22s cubic-bezier(.34,1.4,.64,1)}.modal--sm{max-width:24rem}.modal--md{max-width:32rem}.modal--lg{max-width:48rem}.modal--xl{max-width:64rem}.modal--full{max-width:calc(100vw - 2rem);height:calc(100dvh - 2rem);border-radius:.5rem}.modal__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.modal__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.modal__close{margin-inline-start:auto;flex-shrink:0}.modal__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.modal__footer:not(:has(*)){display:none}@keyframes modal-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-panel-in{0%{opacity:0;transform:scale(.95) translateY(-.5rem)}to{opacity:1;transform:scale(1) translateY(0)}}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "directive", type: FocusTrapDirective, selector: "[ngxFocusTrap]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6082
6064
|
}
|
|
6083
6065
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
6084
6066
|
type: Component,
|
|
6085
|
-
args: [{ selector: 'ngx-ds-modal', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (
|
|
6086
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }],
|
|
6067
|
+
args: [{ selector: 'ngx-ds-modal', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (dismissible()) {\n <ngx-ds-icon-button\n class=\"modal__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__body\">\n <ng-content />\n </div>\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__footer\">\n <ng-content select=\"[modal-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:modal-overlay-in .18s ease}.modal{position:relative;width:100%;max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;background:var(--surface-base, #ffffff);border-radius:.75rem;box-shadow:0 20px 60px #00000026,0 4px 20px #00000014;overflow:hidden;animation:modal-panel-in .22s cubic-bezier(.34,1.4,.64,1)}.modal--sm{max-width:24rem}.modal--md{max-width:32rem}.modal--lg{max-width:48rem}.modal--xl{max-width:64rem}.modal--full{max-width:calc(100vw - 2rem);height:calc(100dvh - 2rem);border-radius:.5rem}.modal__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.modal__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.modal__close{margin-inline-start:auto;flex-shrink:0}.modal__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.modal__footer:not(:has(*)){display:none}@keyframes modal-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-panel-in{0%{opacity:0;transform:scale(.95) translateY(-.5rem)}to{opacity:1;transform:scale(1) translateY(0)}}\n"] }]
|
|
6068
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
6087
6069
|
|
|
6088
6070
|
class TabContentDirective {
|
|
6089
6071
|
templateRef = inject(TemplateRef);
|
|
@@ -6240,9 +6222,6 @@ class DrawerComponent {
|
|
|
6240
6222
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
6241
6223
|
/** Shows the close button in the header. */
|
|
6242
6224
|
dismissible = input(true, ...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
6243
|
-
/** @deprecated Use `dismissible`. Removed in 1.0. */
|
|
6244
|
-
showClose = input(undefined, ...(ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []));
|
|
6245
|
-
showCloseButton = computed(() => this.showClose() ?? this.dismissible(), ...(ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []));
|
|
6246
6225
|
closeOnBackdrop = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
6247
6226
|
closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
|
|
6248
6227
|
// ── Outputs ──────────────────────────────────────────────────────────────
|
|
@@ -6270,12 +6249,12 @@ class DrawerComponent {
|
|
|
6270
6249
|
this.close();
|
|
6271
6250
|
}
|
|
6272
6251
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6273
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DrawerComponent, isStandalone: true, selector: "ngx-ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null },
|
|
6252
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DrawerComponent, isStandalone: true, selector: "ngx-ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, ngImport: i0, template: "@if (open()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (dismissible()) {\n <ngx-ds-icon-button\n class=\"drawer__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <div class=\"drawer__body\">\n <ng-content />\n </div>\n\n <div class=\"drawer__footer\">\n <ng-content select=\"[drawer-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".drawer-overlay{position:fixed;inset:0;z-index:1000;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:drawer-overlay-in .2s ease}.drawer{position:fixed;z-index:1001;display:flex;flex-direction:column;background:var(--surface-base, #ffffff);overflow:hidden}.drawer--right{top:0;right:0;bottom:0;border-left:1px solid var(--border-base, #e5e7eb);box-shadow:-4px 0 32px #0000001f,-1px 0 8px #0000000f;animation:drawer-slide-right .28s cubic-bezier(.32,.72,0,1)}.drawer--left{top:0;left:0;bottom:0;border-right:1px solid var(--border-base, #e5e7eb);box-shadow:4px 0 32px #0000001f,1px 0 8px #0000000f;animation:drawer-slide-left .28s cubic-bezier(.32,.72,0,1)}.drawer--top{top:0;left:0;right:0;border-bottom:1px solid var(--border-base, #e5e7eb);box-shadow:0 4px 32px #0000001f;animation:drawer-slide-top .28s cubic-bezier(.32,.72,0,1)}.drawer--bottom{bottom:0;left:0;right:0;border-top:1px solid var(--border-base, #e5e7eb);box-shadow:0 -4px 32px #0000001f;animation:drawer-slide-bottom .28s cubic-bezier(.32,.72,0,1)}.drawer--left.drawer--sm,.drawer--right.drawer--sm{width:16rem}.drawer--left.drawer--md,.drawer--right.drawer--md{width:24rem}.drawer--left.drawer--lg,.drawer--right.drawer--lg{width:36rem}.drawer--left.drawer--xl,.drawer--right.drawer--xl{width:48rem}.drawer--left.drawer--full,.drawer--right.drawer--full{width:100vw}.drawer--top.drawer--sm,.drawer--bottom.drawer--sm{height:12rem}.drawer--top.drawer--md,.drawer--bottom.drawer--md{height:18rem}.drawer--top.drawer--lg,.drawer--bottom.drawer--lg{height:24rem}.drawer--top.drawer--xl,.drawer--bottom.drawer--xl{height:32rem}.drawer--top.drawer--full,.drawer--bottom.drawer--full{height:100dvh}.drawer__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.drawer__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.drawer__close{margin-inline-start:auto;flex-shrink:0}.drawer__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.drawer__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.drawer__footer:not(:has(*)){display:none}@keyframes drawer-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-slide-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-slide-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-slide-top{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-slide-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "directive", type: FocusTrapDirective, selector: "[ngxFocusTrap]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6274
6253
|
}
|
|
6275
6254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DrawerComponent, decorators: [{
|
|
6276
6255
|
type: Component,
|
|
6277
|
-
args: [{ selector: 'ngx-ds-drawer', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (
|
|
6278
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }],
|
|
6256
|
+
args: [{ selector: 'ngx-ds-drawer', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (dismissible()) {\n <ngx-ds-icon-button\n class=\"drawer__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <div class=\"drawer__body\">\n <ng-content />\n </div>\n\n <div class=\"drawer__footer\">\n <ng-content select=\"[drawer-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".drawer-overlay{position:fixed;inset:0;z-index:1000;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:drawer-overlay-in .2s ease}.drawer{position:fixed;z-index:1001;display:flex;flex-direction:column;background:var(--surface-base, #ffffff);overflow:hidden}.drawer--right{top:0;right:0;bottom:0;border-left:1px solid var(--border-base, #e5e7eb);box-shadow:-4px 0 32px #0000001f,-1px 0 8px #0000000f;animation:drawer-slide-right .28s cubic-bezier(.32,.72,0,1)}.drawer--left{top:0;left:0;bottom:0;border-right:1px solid var(--border-base, #e5e7eb);box-shadow:4px 0 32px #0000001f,1px 0 8px #0000000f;animation:drawer-slide-left .28s cubic-bezier(.32,.72,0,1)}.drawer--top{top:0;left:0;right:0;border-bottom:1px solid var(--border-base, #e5e7eb);box-shadow:0 4px 32px #0000001f;animation:drawer-slide-top .28s cubic-bezier(.32,.72,0,1)}.drawer--bottom{bottom:0;left:0;right:0;border-top:1px solid var(--border-base, #e5e7eb);box-shadow:0 -4px 32px #0000001f;animation:drawer-slide-bottom .28s cubic-bezier(.32,.72,0,1)}.drawer--left.drawer--sm,.drawer--right.drawer--sm{width:16rem}.drawer--left.drawer--md,.drawer--right.drawer--md{width:24rem}.drawer--left.drawer--lg,.drawer--right.drawer--lg{width:36rem}.drawer--left.drawer--xl,.drawer--right.drawer--xl{width:48rem}.drawer--left.drawer--full,.drawer--right.drawer--full{width:100vw}.drawer--top.drawer--sm,.drawer--bottom.drawer--sm{height:12rem}.drawer--top.drawer--md,.drawer--bottom.drawer--md{height:18rem}.drawer--top.drawer--lg,.drawer--bottom.drawer--lg{height:24rem}.drawer--top.drawer--xl,.drawer--bottom.drawer--xl{height:32rem}.drawer--top.drawer--full,.drawer--bottom.drawer--full{height:100dvh}.drawer__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.drawer__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.drawer__close{margin-inline-start:auto;flex-shrink:0}.drawer__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.drawer__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.drawer__footer:not(:has(*)){display:none}@keyframes drawer-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-slide-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-slide-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-slide-top{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-slide-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}\n"] }]
|
|
6257
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
6279
6258
|
|
|
6280
6259
|
class StepComponent {
|
|
6281
6260
|
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -6443,8 +6422,6 @@ class PopoverComponent {
|
|
|
6443
6422
|
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
6444
6423
|
placement = input('bottom', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
6445
6424
|
closeOnBackdrop = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
6446
|
-
/** @deprecated Use `closeOnBackdrop`. Removed in 1.0. */
|
|
6447
|
-
closeOnClickOutside = input(undefined, ...(ngDevMode ? [{ debugName: "closeOnClickOutside" }] : /* istanbul ignore next */ []));
|
|
6448
6425
|
closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
|
|
6449
6426
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
6450
6427
|
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -6487,7 +6464,7 @@ class PopoverComponent {
|
|
|
6487
6464
|
this.close();
|
|
6488
6465
|
});
|
|
6489
6466
|
setupClickOutside(() => {
|
|
6490
|
-
if (!this.open() || !
|
|
6467
|
+
if (!this.open() || !this.closeOnBackdrop())
|
|
6491
6468
|
return;
|
|
6492
6469
|
this.close();
|
|
6493
6470
|
});
|
|
@@ -6497,12 +6474,12 @@ class PopoverComponent {
|
|
|
6497
6474
|
this.closed.emit();
|
|
6498
6475
|
}
|
|
6499
6476
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PopoverComponent, isStandalone: true, selector: "ngx-ds-popover", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null },
|
|
6477
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PopoverComponent, isStandalone: true, selector: "ngx-ds-popover", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", opened: "opened", closed: "closed" }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"popover\">\n <div\n #trigger\n class=\"popover__trigger\"\n [attr.role]=\"nativeTrigger() ? null : 'button'\"\n [attr.tabindex]=\"nativeTrigger() || disabled() ? null : 0\"\n [attr.aria-expanded]=\"nativeTrigger() ? null : open()\"\n [attr.aria-haspopup]=\"nativeTrigger() ? null : 'dialog'\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onTriggerKey($event)\"\n (keydown.space)=\"onTriggerKey($event)\"\n >\n <ng-content select=\"[popover-trigger]\" />\n </div>\n\n @if (open()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"ariaLabel() ?? i18n.popover\">\n <ng-content select=\"[popover-content]\" />\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.popover{position:relative;display:inline-block}.popover__trigger{display:inline-flex;cursor:pointer}.popover__panel{position:absolute;z-index:1000;min-width:200px;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001f;padding:.75rem;animation:popoverIn .12s ease}.popover__panel--bottom{top:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--bottom-start{top:calc(100% + .5rem);left:0}.popover__panel--bottom-end{top:calc(100% + .5rem);right:0}.popover__panel--top{bottom:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--top-start{bottom:calc(100% + .5rem);left:0}.popover__panel--top-end{bottom:calc(100% + .5rem);right:0}.popover__panel--left{right:calc(100% + .5rem);top:50%;translate:0 -50%}.popover__panel--right{left:calc(100% + .5rem);top:50%;translate:0 -50%}@keyframes popoverIn{0%{opacity:0}to{opacity:1}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6501
6478
|
}
|
|
6502
6479
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
6503
6480
|
type: Component,
|
|
6504
6481
|
args: [{ selector: 'ngx-ds-popover', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"popover\">\n <div\n #trigger\n class=\"popover__trigger\"\n [attr.role]=\"nativeTrigger() ? null : 'button'\"\n [attr.tabindex]=\"nativeTrigger() || disabled() ? null : 0\"\n [attr.aria-expanded]=\"nativeTrigger() ? null : open()\"\n [attr.aria-haspopup]=\"nativeTrigger() ? null : 'dialog'\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onTriggerKey($event)\"\n (keydown.space)=\"onTriggerKey($event)\"\n >\n <ng-content select=\"[popover-trigger]\" />\n </div>\n\n @if (open()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"ariaLabel() ?? i18n.popover\">\n <ng-content select=\"[popover-content]\" />\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.popover{position:relative;display:inline-block}.popover__trigger{display:inline-flex;cursor:pointer}.popover__panel{position:absolute;z-index:1000;min-width:200px;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001f;padding:.75rem;animation:popoverIn .12s ease}.popover__panel--bottom{top:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--bottom-start{top:calc(100% + .5rem);left:0}.popover__panel--bottom-end{top:calc(100% + .5rem);right:0}.popover__panel--top{bottom:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--top-start{bottom:calc(100% + .5rem);left:0}.popover__panel--top-end{bottom:calc(100% + .5rem);right:0}.popover__panel--left{right:calc(100% + .5rem);top:50%;translate:0 -50%}.popover__panel--right{left:calc(100% + .5rem);top:50%;translate:0 -50%}@keyframes popoverIn{0%{opacity:0}to{opacity:1}}\n"] }]
|
|
6505
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }],
|
|
6482
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
6506
6483
|
|
|
6507
6484
|
class TimelineItemComponent {
|
|
6508
6485
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
@@ -6835,15 +6812,9 @@ class NotificationItemComponent {
|
|
|
6835
6812
|
notification = input.required(...(ngDevMode ? [{ debugName: "notification" }] : /* istanbul ignore next */ []));
|
|
6836
6813
|
markRead = output();
|
|
6837
6814
|
dismissed = output();
|
|
6838
|
-
/** @deprecated Use `dismissed`. Removed in 1.0. */
|
|
6839
|
-
dismiss = output();
|
|
6840
6815
|
action = output();
|
|
6841
6816
|
XIcon = X;
|
|
6842
|
-
|
|
6843
|
-
type = computed(() => {
|
|
6844
|
-
const type = this.notification().type;
|
|
6845
|
-
return type === 'error' ? 'danger' : type;
|
|
6846
|
-
}, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
6817
|
+
type = computed(() => this.notification().type, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
6847
6818
|
typeIcon = computed(() => TYPE_ICONS[this.type()], ...(ngDevMode ? [{ debugName: "typeIcon" }] : /* istanbul ignore next */ []));
|
|
6848
6819
|
#locale = inject(NGX_DS_LOCALE);
|
|
6849
6820
|
timeLabel = computed(() => relativeTime(this.notification().time, this.#locale, this.i18n), ...(ngDevMode ? [{ debugName: "timeLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -6861,19 +6832,18 @@ class NotificationItemComponent {
|
|
|
6861
6832
|
onDismiss(event) {
|
|
6862
6833
|
event.stopPropagation();
|
|
6863
6834
|
this.dismissed.emit(this.notification());
|
|
6864
|
-
this.dismiss.emit(this.notification());
|
|
6865
6835
|
}
|
|
6866
6836
|
onAction(event) {
|
|
6867
6837
|
event.stopPropagation();
|
|
6868
6838
|
this.action.emit(this.notification());
|
|
6869
6839
|
}
|
|
6870
6840
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6871
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationItemComponent, isStandalone: true, selector: "ngx-ds-notification-item", inputs: { notification: { classPropertyName: "notification", publicName: "notification", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { markRead: "markRead", dismissed: "dismissed",
|
|
6841
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationItemComponent, isStandalone: true, selector: "ngx-ds-notification-item", inputs: { notification: { classPropertyName: "notification", publicName: "notification", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { markRead: "markRead", dismissed: "dismissed", action: "action" }, ngImport: i0, template: "<div [class]=\"hostClasses()\" tabindex=\"0\" (click)=\"onMarkRead()\" (keydown.enter)=\"onMarkRead()\">\n <!-- Unread dot -->\n @if (!notification().read) {\n <span class=\"notif-item__dot\" [attr.aria-label]=\"i18n.unread\"></span>\n }\n\n <!-- Type icon -->\n <div class=\"notif-item__icon-wrap\">\n <ngx-ds-icon [icon]=\"typeIcon()\" [size]=\"18\" class=\"notif-item__icon\" />\n </div>\n\n <!-- Content -->\n <div class=\"notif-item__body\">\n <p class=\"notif-item__title\">{{ notification().title }}</p>\n\n @if (notification().description) {\n <p class=\"notif-item__desc\">{{ notification().description }}</p>\n }\n\n <div class=\"notif-item__meta\">\n @if (timeLabel()) {\n <span class=\"notif-item__time\">{{ timeLabel() }}</span>\n }\n\n @if (notification().actionLabel) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onAction($event)\">\n {{ notification().actionLabel }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Dismiss -->\n <ngx-ds-icon-button\n class=\"notif-item__dismiss\"\n [icon]=\"XIcon\"\n [ariaLabel]=\"i18n.dismissNotification\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"onDismiss($event)\"\n />\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;position:relative;cursor:pointer;transition:background .12s ease;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.notif-item:last-child{border-bottom:none}.notif-item:hover{background:var(--surface-subtle, #f9fafb)}.notif-item--unread{background:var(--surface-subtle, #fafafa)}.notif-item__dot{position:absolute;top:1rem;left:.375rem;width:.5rem;height:.5rem;border-radius:50%;background:var(--primary-500, #6366f1);flex-shrink:0}.notif-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-top:.125rem}.notif-item--info .notif-item__icon-wrap{background:var(--info-100, #dbeafe)}.notif-item--success .notif-item__icon-wrap{background:var(--success-100, #d1fae5)}.notif-item--warning .notif-item__icon-wrap{background:var(--warning-100, #fef3c7)}.notif-item--danger .notif-item__icon-wrap{background:var(--danger-100, #fee2e2)}.notif-item__icon{display:flex}.notif-item--info .notif-item__icon{color:var(--info-600, #2563eb)}.notif-item--success .notif-item__icon{color:var(--success-600, #059669)}.notif-item--warning .notif-item__icon{color:var(--warning-600, #d97706)}.notif-item--danger .notif-item__icon{color:var(--danger-600, #dc2626)}.notif-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.notif-item__title{margin:0;font-size:.875rem;font-weight:500;color:var(--text-base, #111827);white-space:normal;line-height:1.4}.notif-item--unread .notif-item__title{font-weight:600}.notif-item__desc{margin:0;font-size:.8125rem;color:var(--text-muted, #6b7280);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notif-item__meta{display:flex;align-items:center;gap:.75rem;margin-top:.25rem}.notif-item__time{font-size:.75rem;color:var(--text-placeholder, #6b7280)}.notif-item__dismiss{flex-shrink:0;opacity:0;transition:opacity .1s ease}.notif-item:hover .notif-item__dismiss{opacity:1}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "ngx-ds-button", inputs: ["variant", "size", "color", "iconLeft", "iconRight", "disabled", "loading", "rounded", "type", "ariaLabel"] }, { kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }, { kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6872
6842
|
}
|
|
6873
6843
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationItemComponent, decorators: [{
|
|
6874
6844
|
type: Component,
|
|
6875
6845
|
args: [{ selector: 'ngx-ds-notification-item', standalone: true, imports: [ButtonComponent, IconComponent, IconButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"hostClasses()\" tabindex=\"0\" (click)=\"onMarkRead()\" (keydown.enter)=\"onMarkRead()\">\n <!-- Unread dot -->\n @if (!notification().read) {\n <span class=\"notif-item__dot\" [attr.aria-label]=\"i18n.unread\"></span>\n }\n\n <!-- Type icon -->\n <div class=\"notif-item__icon-wrap\">\n <ngx-ds-icon [icon]=\"typeIcon()\" [size]=\"18\" class=\"notif-item__icon\" />\n </div>\n\n <!-- Content -->\n <div class=\"notif-item__body\">\n <p class=\"notif-item__title\">{{ notification().title }}</p>\n\n @if (notification().description) {\n <p class=\"notif-item__desc\">{{ notification().description }}</p>\n }\n\n <div class=\"notif-item__meta\">\n @if (timeLabel()) {\n <span class=\"notif-item__time\">{{ timeLabel() }}</span>\n }\n\n @if (notification().actionLabel) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onAction($event)\">\n {{ notification().actionLabel }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Dismiss -->\n <ngx-ds-icon-button\n class=\"notif-item__dismiss\"\n [icon]=\"XIcon\"\n [ariaLabel]=\"i18n.dismissNotification\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"onDismiss($event)\"\n />\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;position:relative;cursor:pointer;transition:background .12s ease;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.notif-item:last-child{border-bottom:none}.notif-item:hover{background:var(--surface-subtle, #f9fafb)}.notif-item--unread{background:var(--surface-subtle, #fafafa)}.notif-item__dot{position:absolute;top:1rem;left:.375rem;width:.5rem;height:.5rem;border-radius:50%;background:var(--primary-500, #6366f1);flex-shrink:0}.notif-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-top:.125rem}.notif-item--info .notif-item__icon-wrap{background:var(--info-100, #dbeafe)}.notif-item--success .notif-item__icon-wrap{background:var(--success-100, #d1fae5)}.notif-item--warning .notif-item__icon-wrap{background:var(--warning-100, #fef3c7)}.notif-item--danger .notif-item__icon-wrap{background:var(--danger-100, #fee2e2)}.notif-item__icon{display:flex}.notif-item--info .notif-item__icon{color:var(--info-600, #2563eb)}.notif-item--success .notif-item__icon{color:var(--success-600, #059669)}.notif-item--warning .notif-item__icon{color:var(--warning-600, #d97706)}.notif-item--danger .notif-item__icon{color:var(--danger-600, #dc2626)}.notif-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.notif-item__title{margin:0;font-size:.875rem;font-weight:500;color:var(--text-base, #111827);white-space:normal;line-height:1.4}.notif-item--unread .notif-item__title{font-weight:600}.notif-item__desc{margin:0;font-size:.8125rem;color:var(--text-muted, #6b7280);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notif-item__meta{display:flex;align-items:center;gap:.75rem;margin-top:.25rem}.notif-item__time{font-size:.75rem;color:var(--text-placeholder, #6b7280)}.notif-item__dismiss{flex-shrink:0;opacity:0;transition:opacity .1s ease}.notif-item:hover .notif-item__dismiss{opacity:1}\n"] }]
|
|
6876
|
-
}], propDecorators: { notification: [{ type: i0.Input, args: [{ isSignal: true, alias: "notification", required: true }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }],
|
|
6846
|
+
}], propDecorators: { notification: [{ type: i0.Input, args: [{ isSignal: true, alias: "notification", required: true }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
6877
6847
|
|
|
6878
6848
|
class NotificationCenterComponent {
|
|
6879
6849
|
i18n = inject(NGX_DS_LABELS);
|
|
@@ -6886,8 +6856,6 @@ class NotificationCenterComponent {
|
|
|
6886
6856
|
markRead = output();
|
|
6887
6857
|
markAllRead = output();
|
|
6888
6858
|
dismissed = output();
|
|
6889
|
-
/** @deprecated Use `dismissed`. Removed in 1.0. */
|
|
6890
|
-
dismiss = output();
|
|
6891
6859
|
dismissAll = output();
|
|
6892
6860
|
action = output();
|
|
6893
6861
|
// ── Internal state ────────────────────────────────────────────────────────
|
|
@@ -6925,7 +6893,6 @@ class NotificationCenterComponent {
|
|
|
6925
6893
|
}
|
|
6926
6894
|
onDismiss(n) {
|
|
6927
6895
|
this.dismissed.emit(n);
|
|
6928
|
-
this.dismiss.emit(n);
|
|
6929
6896
|
}
|
|
6930
6897
|
onDismissAll() {
|
|
6931
6898
|
this.dismissAll.emit();
|
|
@@ -6942,12 +6909,12 @@ class NotificationCenterComponent {
|
|
|
6942
6909
|
setupEscapeClose(() => this.#open.set(false));
|
|
6943
6910
|
}
|
|
6944
6911
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6945
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationCenterComponent, isStandalone: true, selector: "ngx-ds-notification-center", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, panelTitle: { classPropertyName: "panelTitle", publicName: "panelTitle", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markRead: "markRead", markAllRead: "markAllRead", dismissed: "dismissed",
|
|
6912
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationCenterComponent, isStandalone: true, selector: "ngx-ds-notification-center", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, panelTitle: { classPropertyName: "panelTitle", publicName: "panelTitle", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markRead: "markRead", markAllRead: "markAllRead", dismissed: "dismissed", dismissAll: "dismissAll", action: "action" }, ngImport: i0, template: "<div class=\"nc\">\n <!-- \u2500\u2500 Bell trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"nc__bell-wrap\">\n <ngx-ds-icon-button\n [icon]=\"BellIcon\"\n [ariaLabel]=\"\n i18n.notifications + (unreadCount() > 0 ? ', ' + i18n.unreadCount(unreadCount()) : '')\n \"\n variant=\"outline\"\n [color]=\"isOpen() || hasUnread() ? 'primary' : 'secondary'\"\n size=\"md\"\n (click)=\"togglePanel()\"\n />\n @if (badgeLabel()) {\n <span class=\"nc__badge\">{{ badgeLabel() }}</span>\n }\n </div>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (isOpen()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"i18n.notificationCenter\">\n <!-- Header -->\n <div class=\"nc__header\">\n <h3 class=\"nc__title\">{{ panelTitle() ?? i18n.notifications }}</h3>\n @if (unreadCount() > 0) {\n <span class=\"nc__unread-pill\">{{ i18n.unreadCount(unreadCount()) }}</span>\n }\n <div class=\"nc__header-actions\">\n @if (hasUnread()) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onMarkAllRead()\">\n {{ i18n.markAllRead }}\n </ngx-ds-button>\n }\n @if (notifications().length > 0) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"danger\" (click)=\"onDismissAll()\">\n {{ i18n.clearAll }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Filter tabs -->\n <div class=\"nc__filters\" role=\"tablist\">\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'all' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'all' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('all')\"\n >\n {{ i18n.filterAll }}\n @if (notifications().length > 0) {\n <span class=\"nc__filter-count\">{{ notifications().length }}</span>\n }\n </ngx-ds-button>\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'unread' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'unread' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('unread')\"\n >\n {{ i18n.filterUnread }}\n @if (unreadCount() > 0) {\n <span class=\"nc__filter-count\">{{ unreadCount() }}</span>\n }\n </ngx-ds-button>\n </div>\n\n <!-- List -->\n <div class=\"nc__list\" [style.maxHeight]=\"maxHeight()\">\n @if (isEmpty()) {\n <ngx-ds-empty-state\n [icon]=\"BellOffIcon\"\n [title]=\"filter() === 'unread' ? i18n.emptyUnread : i18n.emptyNotifications\"\n [description]=\"\n filter() === 'unread'\n ? i18n.emptyUnreadDescription\n : i18n.emptyNotificationsDescription\n \"\n size=\"sm\"\n />\n } @else {\n @for (n of displayedNotifications(); track n.id) {\n <ngx-ds-notification-item\n [notification]=\"n\"\n (markRead)=\"onMarkRead($event)\"\n (dismissed)=\"onDismiss($event)\"\n (action)=\"onAction($event)\"\n />\n }\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.nc{position:relative;display:inline-block}.nc__bell-wrap{position:relative;display:inline-flex}.nc__badge{position:absolute;top:-.35rem;right:-.35rem;min-width:1.125rem;height:1.125rem;padding:0 .25rem;background:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-radius:999px;font-size:.625rem;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid var(--surface-base, #ffffff);box-sizing:border-box}.nc__panel{position:absolute;top:calc(100% + .5rem);width:24rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.875rem;box-shadow:0 8px 32px #0000001f;z-index:1000;overflow:hidden;animation:ncSlideIn .15s ease}.nc__panel--bottom-end{right:0}.nc__panel--bottom-start{left:0}@keyframes ncSlideIn{0%{opacity:0;transform:translateY(-.375rem) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.nc__header{display:flex;align-items:center;gap:.5rem;padding:1rem 1rem .625rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__title{margin:0;font-size:.9375rem;font-weight:600;color:var(--text-base, #111827);flex:1}.nc__unread-pill{font-size:.7rem;font-weight:700;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:999px;padding:.1rem .5rem;white-space:nowrap}.nc__header-actions{display:flex;align-items:center;gap:.25rem}.nc__filters{display:flex;gap:.25rem;padding:.375rem .75rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .25rem;border-radius:999px;font-size:.7rem;font-weight:700;background:color-mix(in srgb,currentColor 15%,transparent);margin-left:.25rem}.nc__list{overflow-y:auto}.nc__list ngx-ds-empty-state{padding:1.5rem}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "ngx-ds-button", inputs: ["variant", "size", "color", "iconLeft", "iconRight", "disabled", "loading", "rounded", "type", "ariaLabel"] }, { kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "component", type: EmptyStateComponent, selector: "ngx-ds-empty-state", inputs: ["icon", "title", "description", "size"] }, { kind: "component", type: NotificationItemComponent, selector: "ngx-ds-notification-item", inputs: ["notification"], outputs: ["markRead", "dismissed", "action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6946
6913
|
}
|
|
6947
6914
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationCenterComponent, decorators: [{
|
|
6948
6915
|
type: Component,
|
|
6949
6916
|
args: [{ selector: 'ngx-ds-notification-center', standalone: true, imports: [ButtonComponent, IconButtonComponent, EmptyStateComponent, NotificationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"nc\">\n <!-- \u2500\u2500 Bell trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"nc__bell-wrap\">\n <ngx-ds-icon-button\n [icon]=\"BellIcon\"\n [ariaLabel]=\"\n i18n.notifications + (unreadCount() > 0 ? ', ' + i18n.unreadCount(unreadCount()) : '')\n \"\n variant=\"outline\"\n [color]=\"isOpen() || hasUnread() ? 'primary' : 'secondary'\"\n size=\"md\"\n (click)=\"togglePanel()\"\n />\n @if (badgeLabel()) {\n <span class=\"nc__badge\">{{ badgeLabel() }}</span>\n }\n </div>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (isOpen()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"i18n.notificationCenter\">\n <!-- Header -->\n <div class=\"nc__header\">\n <h3 class=\"nc__title\">{{ panelTitle() ?? i18n.notifications }}</h3>\n @if (unreadCount() > 0) {\n <span class=\"nc__unread-pill\">{{ i18n.unreadCount(unreadCount()) }}</span>\n }\n <div class=\"nc__header-actions\">\n @if (hasUnread()) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onMarkAllRead()\">\n {{ i18n.markAllRead }}\n </ngx-ds-button>\n }\n @if (notifications().length > 0) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"danger\" (click)=\"onDismissAll()\">\n {{ i18n.clearAll }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Filter tabs -->\n <div class=\"nc__filters\" role=\"tablist\">\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'all' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'all' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('all')\"\n >\n {{ i18n.filterAll }}\n @if (notifications().length > 0) {\n <span class=\"nc__filter-count\">{{ notifications().length }}</span>\n }\n </ngx-ds-button>\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'unread' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'unread' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('unread')\"\n >\n {{ i18n.filterUnread }}\n @if (unreadCount() > 0) {\n <span class=\"nc__filter-count\">{{ unreadCount() }}</span>\n }\n </ngx-ds-button>\n </div>\n\n <!-- List -->\n <div class=\"nc__list\" [style.maxHeight]=\"maxHeight()\">\n @if (isEmpty()) {\n <ngx-ds-empty-state\n [icon]=\"BellOffIcon\"\n [title]=\"filter() === 'unread' ? i18n.emptyUnread : i18n.emptyNotifications\"\n [description]=\"\n filter() === 'unread'\n ? i18n.emptyUnreadDescription\n : i18n.emptyNotificationsDescription\n \"\n size=\"sm\"\n />\n } @else {\n @for (n of displayedNotifications(); track n.id) {\n <ngx-ds-notification-item\n [notification]=\"n\"\n (markRead)=\"onMarkRead($event)\"\n (dismissed)=\"onDismiss($event)\"\n (action)=\"onAction($event)\"\n />\n }\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.nc{position:relative;display:inline-block}.nc__bell-wrap{position:relative;display:inline-flex}.nc__badge{position:absolute;top:-.35rem;right:-.35rem;min-width:1.125rem;height:1.125rem;padding:0 .25rem;background:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-radius:999px;font-size:.625rem;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid var(--surface-base, #ffffff);box-sizing:border-box}.nc__panel{position:absolute;top:calc(100% + .5rem);width:24rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.875rem;box-shadow:0 8px 32px #0000001f;z-index:1000;overflow:hidden;animation:ncSlideIn .15s ease}.nc__panel--bottom-end{right:0}.nc__panel--bottom-start{left:0}@keyframes ncSlideIn{0%{opacity:0;transform:translateY(-.375rem) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.nc__header{display:flex;align-items:center;gap:.5rem;padding:1rem 1rem .625rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__title{margin:0;font-size:.9375rem;font-weight:600;color:var(--text-base, #111827);flex:1}.nc__unread-pill{font-size:.7rem;font-weight:700;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:999px;padding:.1rem .5rem;white-space:nowrap}.nc__header-actions{display:flex;align-items:center;gap:.25rem}.nc__filters{display:flex;gap:.25rem;padding:.375rem .75rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .25rem;border-radius:999px;font-size:.7rem;font-weight:700;background:color-mix(in srgb,currentColor 15%,transparent);margin-left:.25rem}.nc__list{overflow-y:auto}.nc__list ngx-ds-empty-state{padding:1.5rem}\n"] }]
|
|
6950
|
-
}], ctorParameters: () => [], propDecorators: { notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], panelTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTitle", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }],
|
|
6917
|
+
}], ctorParameters: () => [], propDecorators: { notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], panelTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTitle", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }], dismissAll: [{ type: i0.Output, args: ["dismissAll"] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
6951
6918
|
|
|
6952
6919
|
class UserMenuComponent {
|
|
6953
6920
|
user = input.required(...(ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []));
|
|
@@ -6963,7 +6930,7 @@ class UserMenuComponent {
|
|
|
6963
6930
|
this.popover().open.set(false);
|
|
6964
6931
|
}
|
|
6965
6932
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6966
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserMenuComponent, isStandalone: true, selector: "ngx-ds-user-menu", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ngx-ds-popover [placement]=\"placement()\">\n <!-- \u2500\u2500 Trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <!-- Name as hidden text, not aria-label: the visible initials must not mismatch it. -->\n <button popover-trigger type=\"button\" class=\"um__trigger\">\n <span class=\"um__sr-only\">{{ user().name }}</span>\n <ngx-ds-avatar\n [src]=\"user().avatarSrc\"\n [alt]=\"user().name\"\n [initials]=\"user().initials ?? ''\"\n [color]=\"user().avatarColor ?? 'primary'\"\n [size]=\"size()\"\n aria-hidden=\"true\"\n />\n </button>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div popover-content class=\"um__panel\">\n <!-- Header: name + email only, no avatar -->\n <div class=\"um__header\">\n <p class=\"um__name\">{{ user().name }}</p>\n <p class=\"um__email\">{{ user().email }}</p>\n </div>\n\n <ngx-ds-divider />\n\n <!-- Action list -->\n <div class=\"um__actions\">\n @for (action of actions(); track action.id; let first = $first) {\n @if (action.separator && !first) {\n <ngx-ds-divider />\n }\n <ngx-ds-menu-button\n [iconLeft]=\"action.icon\"\n [color]=\"action.color ?? 'default'\"\n [disabled]=\"action.disabled ?? false\"\n [fullWidth]=\"true\"\n (click)=\"onAction(action)\"\n >\n {{ action.label }}\n </ngx-ds-menu-button>\n }\n </div>\n </div>\n</ngx-ds-popover>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.um__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.um__trigger{display:inline-flex;background:none;border:none;padding:0;cursor:pointer;border-radius:50%;transition:opacity .15s ease}.um__trigger:hover{opacity:.85}.um__trigger:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:3px}.um__panel{min-width:14rem;padding:.25rem 0}.um__header{padding:.75rem 1rem .625rem;display:flex;flex-direction:column;gap:.125rem}.um__name{margin:0;font-size:.875rem;font-weight:600;color:var(--text-base, #111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__email{margin:0;font-size:.75rem;color:var(--text-muted, #6b7280);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__actions{padding:.25rem .375rem;display:flex;flex-direction:column;gap:.125rem}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "ngx-ds-popover", inputs: ["open", "placement", "closeOnBackdrop", "
|
|
6933
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserMenuComponent, isStandalone: true, selector: "ngx-ds-user-menu", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ngx-ds-popover [placement]=\"placement()\">\n <!-- \u2500\u2500 Trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <!-- Name as hidden text, not aria-label: the visible initials must not mismatch it. -->\n <button popover-trigger type=\"button\" class=\"um__trigger\">\n <span class=\"um__sr-only\">{{ user().name }}</span>\n <ngx-ds-avatar\n [src]=\"user().avatarSrc\"\n [alt]=\"user().name\"\n [initials]=\"user().initials ?? ''\"\n [color]=\"user().avatarColor ?? 'primary'\"\n [size]=\"size()\"\n aria-hidden=\"true\"\n />\n </button>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div popover-content class=\"um__panel\">\n <!-- Header: name + email only, no avatar -->\n <div class=\"um__header\">\n <p class=\"um__name\">{{ user().name }}</p>\n <p class=\"um__email\">{{ user().email }}</p>\n </div>\n\n <ngx-ds-divider />\n\n <!-- Action list -->\n <div class=\"um__actions\">\n @for (action of actions(); track action.id; let first = $first) {\n @if (action.separator && !first) {\n <ngx-ds-divider />\n }\n <ngx-ds-menu-button\n [iconLeft]=\"action.icon\"\n [color]=\"action.color ?? 'default'\"\n [disabled]=\"action.disabled ?? false\"\n [fullWidth]=\"true\"\n (click)=\"onAction(action)\"\n >\n {{ action.label }}\n </ngx-ds-menu-button>\n }\n </div>\n </div>\n</ngx-ds-popover>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.um__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.um__trigger{display:inline-flex;background:none;border:none;padding:0;cursor:pointer;border-radius:50%;transition:opacity .15s ease}.um__trigger:hover{opacity:.85}.um__trigger:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:3px}.um__panel{min-width:14rem;padding:.25rem 0}.um__header{padding:.75rem 1rem .625rem;display:flex;flex-direction:column;gap:.125rem}.um__name{margin:0;font-size:.875rem;font-weight:600;color:var(--text-base, #111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__email{margin:0;font-size:.75rem;color:var(--text-muted, #6b7280);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__actions{padding:.25rem .375rem;display:flex;flex-direction:column;gap:.125rem}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "ngx-ds-popover", inputs: ["open", "placement", "closeOnBackdrop", "closeOnEscape", "disabled", "ariaLabel"], outputs: ["openChange", "opened", "closed"] }, { kind: "component", type: AvatarComponent, selector: "ngx-ds-avatar", inputs: ["src", "alt", "initials", "size", "shape", "status", "color", "bordered"] }, { kind: "component", type: MenuButtonComponent, selector: "ngx-ds-menu-button", inputs: ["iconLeft", "iconRight", "color", "size", "disabled", "fullWidth", "type"] }, { kind: "component", type: DividerComponent, selector: "ngx-ds-divider", inputs: ["orientation", "variant", "label", "align", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6967
6934
|
}
|
|
6968
6935
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserMenuComponent, decorators: [{
|
|
6969
6936
|
type: Component,
|