@fundamental-ngx/platform 0.66.1-rc.24 → 0.66.1-rc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/fundamental-ngx-platform-message-view.mjs +14 -3
- package/fesm2022/fundamental-ngx-platform-message-view.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-messages-shared.mjs +5 -2
- package/fesm2022/fundamental-ngx-platform-messages-shared.mjs.map +1 -1
- package/message-view/README.md +2 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/schematics/package.json +1 -1
- package/types/fundamental-ngx-platform-message-view.d.ts +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getIconForMessageType, MessagesListComponent, MessageListShared } from '@fundamental-ngx/platform/messages-shared';
|
|
2
2
|
export * from '@fundamental-ngx/platform/messages-shared';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, ChangeDetectionStrategy, Component, EventEmitter, input, booleanAttribute, Injector, Output, ViewEncapsulation, NgModule } from '@angular/core';
|
|
4
|
+
import { inject, ChangeDetectionStrategy, Component, EventEmitter, input, booleanAttribute, output, Injector, signal, effect, Output, ViewEncapsulation, NgModule } from '@angular/core';
|
|
5
5
|
import { DialogRef, DialogComponent, DialogHeaderComponent, DialogBodyComponent, DialogFooterComponent, DialogService } from '@fundamental-ngx/core/dialog';
|
|
6
6
|
import * as i2 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
@@ -101,12 +101,22 @@ class MessageViewComponent extends MessageListShared {
|
|
|
101
101
|
* @default true
|
|
102
102
|
*/
|
|
103
103
|
this.resizable = input(true, { ...(ngDevMode ? { debugName: "resizable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
104
|
+
/** Emits when the dialog is closed or dismissed. */
|
|
105
|
+
this.closed = output();
|
|
104
106
|
/** @hidden */
|
|
105
107
|
this.dialogService = inject(DialogService);
|
|
106
108
|
/** @hidden */
|
|
107
109
|
this.injector = inject(Injector);
|
|
108
110
|
/** @hidden */
|
|
109
111
|
this.groupedErrors$ = this.messages;
|
|
112
|
+
this._activeDialogRef = signal(null, /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "_activeDialogRef" }] : /* istanbul ignore next */ []));
|
|
114
|
+
this._dialogClosedEffect = effect(() => {
|
|
115
|
+
if (this._activeDialogRef()?.isClosed()) {
|
|
116
|
+
this.closed.emit();
|
|
117
|
+
}
|
|
118
|
+
}, /* @ts-ignore */
|
|
119
|
+
...(ngDevMode ? [{ debugName: "_dialogClosedEffect" }] : /* istanbul ignore next */ []));
|
|
110
120
|
}
|
|
111
121
|
/** Opens the dialog. */
|
|
112
122
|
open() {
|
|
@@ -126,6 +136,7 @@ class MessageViewComponent extends MessageListShared {
|
|
|
126
136
|
resizable: this.resizable()
|
|
127
137
|
};
|
|
128
138
|
this.dialogRef = this.dialogService.open(MessageViewDialogComponent, dialogConfig, this.injector);
|
|
139
|
+
this._activeDialogRef.set(this.dialogRef);
|
|
129
140
|
}
|
|
130
141
|
/** Closes the dialog. */
|
|
131
142
|
close() {
|
|
@@ -136,14 +147,14 @@ class MessageViewComponent extends MessageListShared {
|
|
|
136
147
|
this.close();
|
|
137
148
|
}
|
|
138
149
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MessageViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
139
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: MessageViewComponent, isStandalone: true, selector: "fdp-message-view", inputs: { messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, detailsTitle: { classPropertyName: "detailsTitle", publicName: "detailsTitle", isSignal: true, isRequired: false, transformFunction: null }, mobile: { classPropertyName: "mobile", publicName: "mobile", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusItem: "focusItem" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [".fd-message-view{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;overflow:hidden;padding-block:0;padding-inline:0;position:relative}.fd-message-view:after,.fd-message-view:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__list{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;max-height:50vh;max-width:26rem;padding-block:0;padding-inline:0}.fd-message-view__list:after,.fd-message-view__list:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__list--hidden{opacity:0}.fd-message-view__details{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:none;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;inset:0;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-block:1rem;padding-inline:0;padding-inline:3.5rem 1rem;position:absolute}.fd-message-view__details:after,.fd-message-view__details:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details-title{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontFamily);font-family:var(--sapFontHeaderFamily);font-size:var(--sapFontSize);font-size:var(--sapFontHeader5Size);font-weight:400;font-weight:var(--sapFontHeaderWeight);forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-margin-after:1rem;display:block;margin-block-end:1rem;white-space:normal;-webkit-margin-start:0;margin-inline-start:0}.fd-message-view__details-title:after,.fd-message-view__details-title:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details-title .fd-message-view__icon{font-size:1rem;margin-block:0;margin-inline:-2rem .5rem}.fd-message-view__details-description{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:1.4;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-margin-after:1rem;display:block;margin-block-end:1rem;white-space:normal}.fd-message-view__details-description:after,.fd-message-view__details-description:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details--visible{display:block}.fd-message-popover__trigger{--fdButtonFocusColor:var(--sapContent_ContrastFocusColor);border-width:var(--fdMessagePopover_Trigger_Border_Width);text-shadow:var(--fdButtonTextShadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical{--fdButtonColor:var(--sapButton_Critical_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Background);--fdButtonBorderColor:var(--sapButton_Critical_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--critical:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--critical:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--critical:hover{--fdButtonColor:var(--sapButton_Critical_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Hover_Background);--fdButtonBorderColor:var(--sapButton_Critical_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--critical:active{--fdButtonColor:var(--sapButton_Critical_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Active_Background);--fdButtonBorderColor:var(--sapButton_Critical_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--critical:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--critical[aria-disabled=true]{--fdButtonColor:var(--sapButton_Critical_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Background);--fdButtonBorderColor:var(--sapButton_Critical_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--negative{--fdButtonColor:var(--sapButton_Negative_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Background);--fdButtonBorderColor:var(--sapButton_Negative_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--negative:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--negative:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--negative:hover{--fdButtonColor:var(--sapButton_Negative_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Hover_Background);--fdButtonBorderColor:var(--sapButton_Negative_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--negative:active{--fdButtonColor:var(--sapButton_Negative_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Active_Background);--fdButtonBorderColor:var(--sapButton_Negative_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--negative:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--negative[aria-disabled=true]{--fdButtonColor:var(--sapButton_Negative_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Background);--fdButtonBorderColor:var(--sapButton_Negative_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--success{--fdButtonColor:var(--sapButton_Success_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Background);--fdButtonBorderColor:var(--sapButton_Success_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--success:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--success:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--success:hover{--fdButtonColor:var(--sapButton_Success_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Hover_Background);--fdButtonBorderColor:var(--sapButton_Success_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--success:active{--fdButtonColor:var(--sapButton_Success_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Active_Background);--fdButtonBorderColor:var(--sapButton_Success_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--success:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--success[aria-disabled=true]{--fdButtonColor:var(--sapButton_Success_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Background);--fdButtonBorderColor:var(--sapButton_Success_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--information{--fdButtonColor:var(--fdMessagePopover_Information_Regular_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Regular_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Regular_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Regular_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Information_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--information:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--information:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--information:hover{--fdButtonColor:var(--fdMessagePopover_Information_Hover_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Hover_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Hover_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--information:active{--fdButtonColor:var(--fdMessagePopover_Information_Active_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Active_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Active_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--information:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--information[aria-disabled=true]{--fdButtonColor:var(--fdMessagePopover_Information_Regular_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Regular_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Regular_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-view .fd-message-view__list{min-width:100%;min-height:100%;max-height:100%}.fd-message-view .fd-message-view__list .fd-list__content{width:100%}\n/*! Bundled license information:\n\nfundamental-styles/dist/message-popover.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
150
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: MessageViewComponent, isStandalone: true, selector: "fdp-message-view", inputs: { messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, detailsTitle: { classPropertyName: "detailsTitle", publicName: "detailsTitle", isSignal: true, isRequired: false, transformFunction: null }, mobile: { classPropertyName: "mobile", publicName: "mobile", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusItem: "focusItem", closed: "closed" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [".fd-message-view{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;overflow:hidden;padding-block:0;padding-inline:0;position:relative}.fd-message-view:after,.fd-message-view:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__list{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;max-height:50vh;max-width:26rem;padding-block:0;padding-inline:0}.fd-message-view__list:after,.fd-message-view__list:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__list--hidden{opacity:0}.fd-message-view__details{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:none;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;inset:0;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-block:1rem;padding-inline:0;padding-inline:3.5rem 1rem;position:absolute}.fd-message-view__details:after,.fd-message-view__details:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details-title{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontFamily);font-family:var(--sapFontHeaderFamily);font-size:var(--sapFontSize);font-size:var(--sapFontHeader5Size);font-weight:400;font-weight:var(--sapFontHeaderWeight);forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-margin-after:1rem;display:block;margin-block-end:1rem;white-space:normal;-webkit-margin-start:0;margin-inline-start:0}.fd-message-view__details-title:after,.fd-message-view__details-title:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details-title .fd-message-view__icon{font-size:1rem;margin-block:0;margin-inline:-2rem .5rem}.fd-message-view__details-description{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:1.4;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-margin-after:1rem;display:block;margin-block-end:1rem;white-space:normal}.fd-message-view__details-description:after,.fd-message-view__details-description:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details--visible{display:block}.fd-message-popover__trigger{--fdButtonFocusColor:var(--sapContent_ContrastFocusColor);border-width:var(--fdMessagePopover_Trigger_Border_Width);text-shadow:var(--fdButtonTextShadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical{--fdButtonColor:var(--sapButton_Critical_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Background);--fdButtonBorderColor:var(--sapButton_Critical_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--critical:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--critical:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--critical:hover{--fdButtonColor:var(--sapButton_Critical_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Hover_Background);--fdButtonBorderColor:var(--sapButton_Critical_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--critical:active{--fdButtonColor:var(--sapButton_Critical_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Active_Background);--fdButtonBorderColor:var(--sapButton_Critical_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--critical:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--critical[aria-disabled=true]{--fdButtonColor:var(--sapButton_Critical_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Background);--fdButtonBorderColor:var(--sapButton_Critical_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--negative{--fdButtonColor:var(--sapButton_Negative_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Background);--fdButtonBorderColor:var(--sapButton_Negative_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--negative:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--negative:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--negative:hover{--fdButtonColor:var(--sapButton_Negative_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Hover_Background);--fdButtonBorderColor:var(--sapButton_Negative_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--negative:active{--fdButtonColor:var(--sapButton_Negative_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Active_Background);--fdButtonBorderColor:var(--sapButton_Negative_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--negative:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--negative[aria-disabled=true]{--fdButtonColor:var(--sapButton_Negative_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Background);--fdButtonBorderColor:var(--sapButton_Negative_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--success{--fdButtonColor:var(--sapButton_Success_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Background);--fdButtonBorderColor:var(--sapButton_Success_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--success:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--success:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--success:hover{--fdButtonColor:var(--sapButton_Success_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Hover_Background);--fdButtonBorderColor:var(--sapButton_Success_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--success:active{--fdButtonColor:var(--sapButton_Success_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Active_Background);--fdButtonBorderColor:var(--sapButton_Success_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--success:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--success[aria-disabled=true]{--fdButtonColor:var(--sapButton_Success_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Background);--fdButtonBorderColor:var(--sapButton_Success_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--information{--fdButtonColor:var(--fdMessagePopover_Information_Regular_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Regular_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Regular_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Regular_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Information_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--information:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--information:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--information:hover{--fdButtonColor:var(--fdMessagePopover_Information_Hover_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Hover_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Hover_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--information:active{--fdButtonColor:var(--fdMessagePopover_Information_Active_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Active_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Active_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--information:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--information[aria-disabled=true]{--fdButtonColor:var(--fdMessagePopover_Information_Regular_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Regular_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Regular_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-view .fd-message-view__list{min-width:100%;min-height:100%;max-height:100%}.fd-message-view .fd-message-view__list .fd-list__content{width:100%}\n/*! Bundled license information:\n\nfundamental-styles/dist/message-popover.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
140
151
|
}
|
|
141
152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MessageViewComponent, decorators: [{
|
|
142
153
|
type: Component,
|
|
143
154
|
args: [{ selector: 'fdp-message-view', template: ``, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".fd-message-view{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;overflow:hidden;padding-block:0;padding-inline:0;position:relative}.fd-message-view:after,.fd-message-view:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__list{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;max-height:50vh;max-width:26rem;padding-block:0;padding-inline:0}.fd-message-view__list:after,.fd-message-view__list:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__list--hidden{opacity:0}.fd-message-view__details{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:none;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;inset:0;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-block:1rem;padding-inline:0;padding-inline:3.5rem 1rem;position:absolute}.fd-message-view__details:after,.fd-message-view__details:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details-title{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontFamily);font-family:var(--sapFontHeaderFamily);font-size:var(--sapFontSize);font-size:var(--sapFontHeader5Size);font-weight:400;font-weight:var(--sapFontHeaderWeight);forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-margin-after:1rem;display:block;margin-block-end:1rem;white-space:normal;-webkit-margin-start:0;margin-inline-start:0}.fd-message-view__details-title:after,.fd-message-view__details-title:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details-title .fd-message-view__icon{font-size:1rem;margin-block:0;margin-inline:-2rem .5rem}.fd-message-view__details-description{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:1.4;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-margin-after:1rem;display:block;margin-block-end:1rem;white-space:normal}.fd-message-view__details-description:after,.fd-message-view__details-description:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-message-view__details--visible{display:block}.fd-message-popover__trigger{--fdButtonFocusColor:var(--sapContent_ContrastFocusColor);border-width:var(--fdMessagePopover_Trigger_Border_Width);text-shadow:var(--fdButtonTextShadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical{--fdButtonColor:var(--sapButton_Critical_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Background);--fdButtonBorderColor:var(--sapButton_Critical_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--critical:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--critical:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--critical:hover{--fdButtonColor:var(--sapButton_Critical_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Hover_Background);--fdButtonBorderColor:var(--sapButton_Critical_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--critical:active{--fdButtonColor:var(--sapButton_Critical_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Active_Background);--fdButtonBorderColor:var(--sapButton_Critical_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--critical.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--critical:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--critical[aria-disabled=true]{--fdButtonColor:var(--sapButton_Critical_TextColor);--fdButtonBackgroundColor:var(--sapButton_Critical_Background);--fdButtonBorderColor:var(--sapButton_Critical_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Critical_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--negative{--fdButtonColor:var(--sapButton_Negative_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Background);--fdButtonBorderColor:var(--sapButton_Negative_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--negative:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--negative:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--negative:hover{--fdButtonColor:var(--sapButton_Negative_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Hover_Background);--fdButtonBorderColor:var(--sapButton_Negative_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--negative:active{--fdButtonColor:var(--sapButton_Negative_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Active_Background);--fdButtonBorderColor:var(--sapButton_Negative_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--negative.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--negative:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--negative[aria-disabled=true]{--fdButtonColor:var(--sapButton_Negative_TextColor);--fdButtonBackgroundColor:var(--sapButton_Negative_Background);--fdButtonBorderColor:var(--sapButton_Negative_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Negative_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--success{--fdButtonColor:var(--sapButton_Success_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Background);--fdButtonBorderColor:var(--sapButton_Success_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Regular_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--success:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--success:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--success:hover{--fdButtonColor:var(--sapButton_Success_Hover_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Hover_Background);--fdButtonBorderColor:var(--sapButton_Success_Hover_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--success:active{--fdButtonColor:var(--sapButton_Success_Active_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Active_Background);--fdButtonBorderColor:var(--sapButton_Success_Active_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--success.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--success:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--success[aria-disabled=true]{--fdButtonColor:var(--sapButton_Success_TextColor);--fdButtonBackgroundColor:var(--sapButton_Success_Background);--fdButtonBorderColor:var(--sapButton_Success_BorderColor);--fdButtonTextShadow:var(--fdMessagePopover_Success_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-popover__trigger.fd-message-popover__trigger--information{--fdButtonColor:var(--fdMessagePopover_Information_Regular_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Regular_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Regular_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Regular_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Information_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-focus,.fd-message-popover__trigger.fd-message-popover__trigger--information:focus{z-index:5}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-focus:after,.fd-message-popover__trigger.fd-message-popover__trigger--information:focus:after{border-color:var(--fdButtonFocusColor)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-hover,.fd-message-popover__trigger.fd-message-popover__trigger--information:hover{--fdButtonColor:var(--fdMessagePopover_Information_Hover_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Hover_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Hover_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Hover_Text_Shadow)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-active,.fd-message-popover__trigger.fd-message-popover__trigger--information:active{--fdButtonColor:var(--fdMessagePopover_Information_Active_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Active_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Active_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Active_Text_Shadow);--fdButtonFocusColor:var(--fdMessagePopover_Active_Focus_Outline_Color)}.fd-message-popover__trigger.fd-message-popover__trigger--information.is-disabled,.fd-message-popover__trigger.fd-message-popover__trigger--information:disabled,.fd-message-popover__trigger.fd-message-popover__trigger--information[aria-disabled=true]{--fdButtonColor:var(--fdMessagePopover_Information_Regular_Color);--fdButtonBackgroundColor:var(--fdMessagePopover_Information_Regular_Background_Color);--fdButtonBorderColor:var(--fdMessagePopover_Information_Regular_Border_Color);--fdButtonTextShadow:var(--fdMessagePopover_Information_Regular_Text_Shadow);opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-message-view .fd-message-view__list{min-width:100%;min-height:100%;max-height:100%}.fd-message-view .fd-message-view__list .fd-list__content{width:100%}\n/*! Bundled license information:\n\nfundamental-styles/dist/message-popover.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"] }]
|
|
144
155
|
}], propDecorators: { focusItem: [{
|
|
145
156
|
type: Output
|
|
146
|
-
}], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], detailsTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "detailsTitle", required: false }] }], mobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobile", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }] } });
|
|
157
|
+
}], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], detailsTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "detailsTitle", required: false }] }], mobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobile", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
147
158
|
|
|
148
159
|
/**
|
|
149
160
|
* @deprecated
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundamental-ngx-platform-message-view.mjs","sources":["../../../../libs/platform/message-view/components/message-view-dialog.component.ts","../../../../libs/platform/message-view/components/message-view-dialog.component.html","../../../../libs/platform/message-view/message-view.component.ts","../../../../libs/platform/message-view/platform-message-view.module.ts","../../../../libs/platform/message-view/fundamental-ngx-platform-message-view.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { InitialFocusDirective, TemplateDirective } from '@fundamental-ngx/cdk/utils';\nimport { BarModule } from '@fundamental-ngx/core/bar';\nimport { ButtonComponent } from '@fundamental-ngx/core/button';\nimport {\n DialogBodyComponent,\n DialogComponent,\n DialogFooterComponent,\n DialogHeaderComponent,\n DialogRef\n} from '@fundamental-ngx/core/dialog';\nimport { ObjectStatusComponent } from '@fundamental-ngx/core/object-status';\nimport { SegmentedButtonComponent } from '@fundamental-ngx/core/segmented-button';\nimport { TitleComponent } from '@fundamental-ngx/core/title';\nimport { FdLanguageKeyIdentifier, FdTranslatePipe } from '@fundamental-ngx/i18n';\nimport { MessagesListComponent, getIconForMessageType } from '@fundamental-ngx/platform/messages-shared';\nimport { MessageViewComponent } from '../message-view.component';\n\n@Component({\n selector: 'fdp-message-view-dialog',\n templateUrl: './message-view-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DialogComponent,\n DialogHeaderComponent,\n DialogBodyComponent,\n DialogFooterComponent,\n BarModule,\n SegmentedButtonComponent,\n FormsModule,\n ButtonComponent,\n ObjectStatusComponent,\n InitialFocusDirective,\n TemplateDirective,\n MessagesListComponent,\n FdTranslatePipe,\n TitleComponent\n ]\n})\nexport class MessageViewDialogComponent {\n readonly dialogRef = inject(DialogRef);\n readonly messageView = inject(MessageViewComponent);\n\n /** @hidden Map message type to icon name */\n protected getIconForType(type: string): string {\n return getIconForMessageType(type);\n }\n\n /** @hidden Map message type to title translation key */\n protected getTitleKeyForType(type: string): FdLanguageKeyIdentifier {\n switch (type) {\n case 'error':\n return 'platformMessageView.errorButton';\n case 'success':\n return 'platformMessageView.successButton';\n case 'warning':\n return 'platformMessageView.warningButton';\n case 'information':\n default:\n return 'platformMessageView.informationButton';\n }\n }\n}\n","<fd-dialog [role]=\"'alertdialog'\">\n <fd-dialog-header [attr.aria-roledescription]=\"('platformMessageView.headerRoleDescription' | fdTranslate)()\">\n @if (messageView.currentScreen === 'details') {\n <ng-template fdkTemplate=\"header\">\n <div fd-bar-left>\n <button\n fd-button\n fdType=\"transparent\"\n glyph=\"navigation-left-arrow\"\n [title]=\"('platformMessagePopover.backButton' | fdTranslate)()\"\n (click)=\"messageView.showList()\"\n fdkInitialFocus\n ></button>\n <fd-bar-element>\n <h1 fd-title>\n {{ messageView.detailsTitle() || ('platformMessageView.detailsTitle' | fdTranslate)() }}\n </h1>\n </fd-bar-element>\n </div>\n </ng-template>\n } @else {\n <h1 fd-title>\n {{ messageView.title() || ('platformMessageView.title' | fdTranslate)() }}\n </h1>\n }\n @if (messageView.currentScreen === 'list') {\n <ng-template fdkTemplate=\"subheader\">\n <div fd-bar-left>\n <fd-segmented-button\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"messageView._currentErrorType()\"\n (ngModelChange)=\"messageView._currentErrorType.set($event)\"\n >\n <button\n fd-button\n [label]=\"('platformMessagePopover.allErrors' | fdTranslate)()\"\n value=\"all\"\n ></button>\n @for (type of messageView._errorTypes$(); track type.group) {\n <button\n fd-button\n [value]=\"type.group\"\n [title]=\"(getTitleKeyForType(type.group) | fdTranslate)()\"\n >\n <span\n fd-object-status\n [status]=\"type.state\"\n [glyph]=\"getIconForType(type.group)\"\n ></span>\n <span class=\"fd-button__text\">{{ type.count }}</span>\n </button>\n }\n </fd-segmented-button>\n </div>\n </ng-template>\n }\n </fd-dialog-header>\n <fd-dialog-body>\n <fdp-messages-list\n [currentScreen]=\"messageView.currentScreen\"\n [filteredErrors]=\"messageView._filteredErrors$()\"\n [currentEntry]=\"messageView.currentEntry\"\n (openDetails)=\"messageView.showDetails($event)\"\n (closePopover)=\"dialogRef.close()\"\n (focusItem)=\"messageView.focusItem.emit($event)\"\n ></fdp-messages-list>\n </fd-dialog-body>\n <fd-dialog-footer>\n <fd-button-bar [label]=\"('platformMessageView.cancel' | fdTranslate)()\" (click)=\"dialogRef.dismiss()\">\n </fd-button-bar>\n </fd-dialog-footer>\n</fd-dialog>\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Injector,\n OnDestroy,\n Output,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input\n} from '@angular/core';\nimport { Nullable } from '@fundamental-ngx/cdk/utils';\nimport { DialogRef, DialogService } from '@fundamental-ngx/core/dialog';\nimport {\n MessageListShared,\n MessagePopoverEntry,\n MessagePopoverErrorGroup\n} from '@fundamental-ngx/platform/messages-shared';\nimport { MessageViewDialogComponent } from './components/message-view-dialog.component';\n\n@Component({\n selector: 'fdp-message-view',\n template: ``,\n styleUrl: './message-view.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class MessageViewComponent extends MessageListShared implements OnDestroy {\n /** Event emits when user clicks on error entry and item's element needs to be focused. */\n @Output()\n override focusItem = new EventEmitter<MessagePopoverEntry>();\n\n /**\n * Messages to display in the message view.\n */\n readonly messages = input<MessagePopoverErrorGroup[]>([]);\n\n /**\n * Title to display in the message view dialog header.\n */\n readonly title = input<string>('');\n\n /**\n * Title to display in the message view dialog header when viewing message details.\n */\n readonly detailsTitle = input<string>('');\n\n /**\n * Whether the message view dialog should be opened in mobile mode.\n */\n readonly mobile = input(false, { transform: booleanAttribute });\n\n /**\n * Width of the dialog when not in mobile mode.\n * @default '24rem'\n */\n readonly width = input<string>('24rem');\n\n /**\n * Height of the dialog when not in mobile mode.\n * @default 'auto'\n */\n readonly height = input<string>('auto');\n\n /**\n * Whether the dialog should be resizable when not in mobile mode.\n * @default true\n */\n readonly resizable = input(true, { transform: booleanAttribute });\n\n /** @hidden */\n protected readonly dialogService = inject(DialogService);\n\n /** @hidden */\n protected readonly injector = inject(Injector);\n\n /** @hidden */\n protected dialogRef: Nullable<DialogRef>;\n\n /** @hidden */\n protected override readonly groupedErrors$ = this.messages;\n\n /** Opens the dialog. */\n open(): void {\n // Reset to list view when opening the dialog\n this.showList();\n\n const dialogConfig = this.mobile()\n ? {\n focusTrapped: true,\n disablePaddings: true,\n mobile: true\n }\n : {\n focusTrapped: true,\n disablePaddings: true,\n width: this.width(),\n height: this.height(),\n resizable: this.resizable()\n };\n this.dialogRef = this.dialogService.open(MessageViewDialogComponent, dialogConfig, this.injector);\n }\n\n /** Closes the dialog. */\n close(): void {\n this.dialogRef?.close();\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this.close();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { MessageViewComponent } from './message-view.component';\n\n/**\n * @deprecated\n * Use direct imports of components.\n */\n@NgModule({\n imports: [MessageViewComponent],\n exports: [MessageViewComponent]\n})\nexport class PlatformMessageViewModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;MAwCa,0BAA0B,CAAA;AArBvC,IAAA,WAAA,GAAA;AAsBa,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA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8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAzB,yBAAyB,EAAA,OAAA,EAAA,CAHxB,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;+GAErB,yBAAyB,EAAA,CAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,oBAAoB;AACjC,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-platform-message-view.mjs","sources":["../../../../libs/platform/message-view/components/message-view-dialog.component.ts","../../../../libs/platform/message-view/components/message-view-dialog.component.html","../../../../libs/platform/message-view/message-view.component.ts","../../../../libs/platform/message-view/platform-message-view.module.ts","../../../../libs/platform/message-view/fundamental-ngx-platform-message-view.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { InitialFocusDirective, TemplateDirective } from '@fundamental-ngx/cdk/utils';\nimport { BarModule } from '@fundamental-ngx/core/bar';\nimport { ButtonComponent } from '@fundamental-ngx/core/button';\nimport {\n DialogBodyComponent,\n DialogComponent,\n DialogFooterComponent,\n DialogHeaderComponent,\n DialogRef\n} from '@fundamental-ngx/core/dialog';\nimport { ObjectStatusComponent } from '@fundamental-ngx/core/object-status';\nimport { SegmentedButtonComponent } from '@fundamental-ngx/core/segmented-button';\nimport { TitleComponent } from '@fundamental-ngx/core/title';\nimport { FdLanguageKeyIdentifier, FdTranslatePipe } from '@fundamental-ngx/i18n';\nimport { MessagesListComponent, getIconForMessageType } from '@fundamental-ngx/platform/messages-shared';\nimport { MessageViewComponent } from '../message-view.component';\n\n@Component({\n selector: 'fdp-message-view-dialog',\n templateUrl: './message-view-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DialogComponent,\n DialogHeaderComponent,\n DialogBodyComponent,\n DialogFooterComponent,\n BarModule,\n SegmentedButtonComponent,\n FormsModule,\n ButtonComponent,\n ObjectStatusComponent,\n InitialFocusDirective,\n TemplateDirective,\n MessagesListComponent,\n FdTranslatePipe,\n TitleComponent\n ]\n})\nexport class MessageViewDialogComponent {\n readonly dialogRef = inject(DialogRef);\n readonly messageView = inject(MessageViewComponent);\n\n /** @hidden Map message type to icon name */\n protected getIconForType(type: string): string {\n return getIconForMessageType(type);\n }\n\n /** @hidden Map message type to title translation key */\n protected getTitleKeyForType(type: string): FdLanguageKeyIdentifier {\n switch (type) {\n case 'error':\n return 'platformMessageView.errorButton';\n case 'success':\n return 'platformMessageView.successButton';\n case 'warning':\n return 'platformMessageView.warningButton';\n case 'information':\n default:\n return 'platformMessageView.informationButton';\n }\n }\n}\n","<fd-dialog [role]=\"'alertdialog'\">\n <fd-dialog-header [attr.aria-roledescription]=\"('platformMessageView.headerRoleDescription' | fdTranslate)()\">\n @if (messageView.currentScreen === 'details') {\n <ng-template fdkTemplate=\"header\">\n <div fd-bar-left>\n <button\n fd-button\n fdType=\"transparent\"\n glyph=\"navigation-left-arrow\"\n [title]=\"('platformMessagePopover.backButton' | fdTranslate)()\"\n (click)=\"messageView.showList()\"\n fdkInitialFocus\n ></button>\n <fd-bar-element>\n <h1 fd-title>\n {{ messageView.detailsTitle() || ('platformMessageView.detailsTitle' | fdTranslate)() }}\n </h1>\n </fd-bar-element>\n </div>\n </ng-template>\n } @else {\n <h1 fd-title>\n {{ messageView.title() || ('platformMessageView.title' | fdTranslate)() }}\n </h1>\n }\n @if (messageView.currentScreen === 'list') {\n <ng-template fdkTemplate=\"subheader\">\n <div fd-bar-left>\n <fd-segmented-button\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"messageView._currentErrorType()\"\n (ngModelChange)=\"messageView._currentErrorType.set($event)\"\n >\n <button\n fd-button\n [label]=\"('platformMessagePopover.allErrors' | fdTranslate)()\"\n value=\"all\"\n ></button>\n @for (type of messageView._errorTypes$(); track type.group) {\n <button\n fd-button\n [value]=\"type.group\"\n [title]=\"(getTitleKeyForType(type.group) | fdTranslate)()\"\n >\n <span\n fd-object-status\n [status]=\"type.state\"\n [glyph]=\"getIconForType(type.group)\"\n ></span>\n <span class=\"fd-button__text\">{{ type.count }}</span>\n </button>\n }\n </fd-segmented-button>\n </div>\n </ng-template>\n }\n </fd-dialog-header>\n <fd-dialog-body>\n <fdp-messages-list\n [currentScreen]=\"messageView.currentScreen\"\n [filteredErrors]=\"messageView._filteredErrors$()\"\n [currentEntry]=\"messageView.currentEntry\"\n (openDetails)=\"messageView.showDetails($event)\"\n (closePopover)=\"dialogRef.close()\"\n (focusItem)=\"messageView.focusItem.emit($event)\"\n ></fdp-messages-list>\n </fd-dialog-body>\n <fd-dialog-footer>\n <fd-button-bar [label]=\"('platformMessageView.cancel' | fdTranslate)()\" (click)=\"dialogRef.dismiss()\">\n </fd-button-bar>\n </fd-dialog-footer>\n</fd-dialog>\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Injector,\n OnDestroy,\n Output,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n output,\n signal\n} from '@angular/core';\nimport { Nullable } from '@fundamental-ngx/cdk/utils';\nimport { DialogRef, DialogService } from '@fundamental-ngx/core/dialog';\nimport {\n MessageListShared,\n MessagePopoverEntry,\n MessagePopoverErrorGroup\n} from '@fundamental-ngx/platform/messages-shared';\nimport { MessageViewDialogComponent } from './components/message-view-dialog.component';\n\n@Component({\n selector: 'fdp-message-view',\n template: ``,\n styleUrl: './message-view.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class MessageViewComponent extends MessageListShared implements OnDestroy {\n /** Event emits when user clicks on error entry and item's element needs to be focused. */\n @Output()\n override focusItem = new EventEmitter<MessagePopoverEntry>();\n\n /**\n * Messages to display in the message view.\n */\n readonly messages = input<MessagePopoverErrorGroup[]>([]);\n\n /**\n * Title to display in the message view dialog header.\n */\n readonly title = input<string>('');\n\n /**\n * Title to display in the message view dialog header when viewing message details.\n */\n readonly detailsTitle = input<string>('');\n\n /**\n * Whether the message view dialog should be opened in mobile mode.\n */\n readonly mobile = input(false, { transform: booleanAttribute });\n\n /**\n * Width of the dialog when not in mobile mode.\n * @default '24rem'\n */\n readonly width = input<string>('24rem');\n\n /**\n * Height of the dialog when not in mobile mode.\n * @default 'auto'\n */\n readonly height = input<string>('auto');\n\n /**\n * Whether the dialog should be resizable when not in mobile mode.\n * @default true\n */\n readonly resizable = input(true, { transform: booleanAttribute });\n\n /** Emits when the dialog is closed or dismissed. */\n readonly closed = output<void>();\n\n /** @hidden */\n protected readonly dialogService = inject(DialogService);\n\n /** @hidden */\n protected readonly injector = inject(Injector);\n\n /** @hidden */\n protected dialogRef: Nullable<DialogRef>;\n\n /** @hidden */\n protected override readonly groupedErrors$ = this.messages;\n\n private readonly _activeDialogRef = signal<DialogRef | null>(null);\n\n private readonly _dialogClosedEffect = effect(() => {\n if (this._activeDialogRef()?.isClosed()) {\n this.closed.emit();\n }\n });\n\n /** Opens the dialog. */\n open(): void {\n // Reset to list view when opening the dialog\n this.showList();\n\n const dialogConfig = this.mobile()\n ? {\n focusTrapped: true,\n disablePaddings: true,\n mobile: true\n }\n : {\n focusTrapped: true,\n disablePaddings: true,\n width: this.width(),\n height: this.height(),\n resizable: this.resizable()\n };\n this.dialogRef = this.dialogService.open(MessageViewDialogComponent, dialogConfig, this.injector);\n this._activeDialogRef.set(this.dialogRef);\n }\n\n /** Closes the dialog. */\n close(): void {\n this.dialogRef?.close();\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this.close();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { MessageViewComponent } from './message-view.component';\n\n/**\n * @deprecated\n * Use direct imports of components.\n */\n@NgModule({\n imports: [MessageViewComponent],\n exports: [MessageViewComponent]\n})\nexport class PlatformMessageViewModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;MAwCa,0BAA0B,CAAA;AArBvC,IAAA,WAAA,GAAA;AAsBa,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAqBtD,IAAA;;AAlBa,IAAA,cAAc,CAAC,IAAY,EAAA;AACjC,QAAA,OAAO,qBAAqB,CAAC,IAAI,CAAC;IACtC;;AAGU,IAAA,kBAAkB,CAAC,IAAY,EAAA;QACrC,QAAQ,IAAI;AACR,YAAA,KAAK,OAAO;AACR,gBAAA,OAAO,iCAAiC;AAC5C,YAAA,KAAK,SAAS;AACV,gBAAA,OAAO,mCAAmC;AAC9C,YAAA,KAAK,SAAS;AACV,gBAAA,OAAO,mCAAmC;AAC9C,YAAA,KAAK,aAAa;AAClB,YAAA;AACI,gBAAA,OAAO,uCAAuC;;IAE1D;8GAtBS,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxCvC,q2GAwEA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDhDQ,eAAe,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,WAAA,EAAA,cAAA,EAAA,MAAA,EAAA,iBAAA,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;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,8hCALnB,CAAA,CAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wjYAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKH,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACI,kBAAkB,EAAA,QAAA,EAClB,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,wjYAAA,CAAA,EAAA;;sBAI9C;;;AC9BL;;;AAGG;MAKU,yBAAyB,CAAA;8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAzB,yBAAyB,EAAA,OAAA,EAAA,CAHxB,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;+GAErB,yBAAyB,EAAA,CAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,oBAAoB;AACjC,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -531,6 +531,9 @@ class MessagesListComponent {
|
|
|
531
531
|
if (entry.heading.type === 'string' && entry.heading.message) {
|
|
532
532
|
headingText = typeof entry.heading.message === 'string' ? entry.heading.message : '';
|
|
533
533
|
}
|
|
534
|
+
else if (entry.heading.type === 'directive' && typeof entry.heading.error === 'string') {
|
|
535
|
+
headingText = entry.heading.error;
|
|
536
|
+
}
|
|
534
537
|
const additionalInfoText = this._additionalInfoText();
|
|
535
538
|
return headingText ? `${headingText}. ${additionalInfoText}` : '';
|
|
536
539
|
}
|
|
@@ -610,7 +613,7 @@ class MessagesListComponent {
|
|
|
610
613
|
}
|
|
611
614
|
}
|
|
612
615
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MessagesListComponent, deps: [{ token: i0.DestroyRef }, { token: i1$1.TabbableElementService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
613
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MessagesListComponent, isStandalone: true, selector: "fdp-messages-list", inputs: { currentScreen: "currentScreen", filteredErrors: "filteredErrors", currentEntry: "currentEntry" }, outputs: { openDetails: "openDetails", focusItem: "focusItem", closePopover: "closePopover" }, host: { classAttribute: "fd-message-popover__view-container" }, providers: [TabbableElementService, FdTranslatePipe], viewQueries: [{ propertyName: "listView", first: true, predicate: ["listView"], descendants: true, read: ElementRef }, { propertyName: "detailsView", first: true, predicate: ["detailsView"], descendants: true, read: ElementRef }, { propertyName: "listSection", first: true, predicate: ["listSection"], descendants: true, read: ElementRef }, { propertyName: "detailsSection", first: true, predicate: ["detailsSection"], descendants: true, read: ElementRef }], ngImport: i0, template: "<ng-template #headingTemplate let-item>\n <ng-template #directiveHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message || item.description.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.heading.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringHeading>\n {{ (item.heading.message | fdTranslate: { error: item.heading.error } : item.heading.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.heading.type === 'directive'\n ? directiveHeading\n : item.heading.type === 'string'\n ? stringHeading\n : i18nHeading\n \"\n ></ng-template>\n</ng-template>\n<ng-template #descriptionTemplate let-item>\n <ng-template #directiveDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.description.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringDescription>\n {{ (item.description.message | fdTranslate: { error: item.description.error } : item.description.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.description.type === 'directive'\n ? directiveDescription\n : item.description.type === 'string'\n ? stringDescription\n : i18nDescription\n \"\n ></ng-template>\n</ng-template>\n<div class=\"fd-message-view\">\n <!-- Screen reader announcement region for details view navigation -->\n <div aria-live=\"assertive\" aria-atomic=\"true\" class=\"fd-message-view__sr-only\">\n @if (currentScreen === 'details' && currentEntry) {\n {{ getAnnouncementText(currentEntry) }}\n }\n </div>\n <section\n #listSection\n class=\"fd-message-view__list\"\n [class.fd-message-view__list--hidden]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'details' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'details'\"\n tabindex=\"-1\"\n fd-scrollbar\n >\n <ul #listView fd-list class=\"message-popover__list fd-list--message-view\" [navigationIndicator]=\"true\">\n @for (group of filteredErrors; track group) {\n @if (group.group) {\n <li fd-list-group-header>\n <span fd-list-title>{{ group.group }}</span>\n </li>\n }\n @for (item of group.errors; track item; let i = $index) {\n <li\n fd-list-item\n [tabindex]=\"i === 0 ? 0 : -1\"\n [byline]=\"true\"\n [counter]=\"item.aggregatedMessages!\"\n (fdkClicked)=\"showDetails(item)\"\n >\n <ng-template #itemIcon>\n <span\n fd-object-status\n class=\"fd-list__icon\"\n [status]=\"item.state\"\n [glyph]=\"getIconForType(item.type)\"\n ></span>\n </ng-template>\n <ng-template #listSubtitle>\n @if (item.heading.type === 'string' && item.heading.message) {\n <fd-text\n [text]=\"getHeadingText(item)\"\n [maxLines]=\"3\"\n [expandable]=\"true\"\n (fdkClicked)=\"$event.stopPropagation()\"\n ></fd-text>\n } @else {\n <span fd-list-subline>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </span>\n }\n </ng-template>\n @if (item.element && !!item.description.message) {\n <span fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>\n <a tabindex=\"0\" fd-link (fdkClicked)=\"_focusElement($event, item)\">\n {{ item.fieldName }}\n </a>\n </span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </span>\n } @else {\n <a fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>{{ item.fieldName }}</span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </a>\n }\n </li>\n }\n }\n </ul>\n </section>\n <section\n #detailsSection\n class=\"fd-message-view__details\"\n [class.fd-message-view__details--visible]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'list' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'list'\"\n >\n <div #detailsView>\n @if (currentEntry) {\n <span class=\"fd-message-view__details-title\">\n <span\n fd-object-status\n class=\"fd-message-view__icon\"\n [status]=\"currentEntry.state\"\n [glyph]=\"getIconForType(currentEntry.type)\"\n ></span>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n @if (currentEntry.subtitle) {\n <span class=\"fd-message-view__details-subtitle\">\n {{ currentEntry.subtitle }}\n </span>\n }\n @if (currentEntry.description.message) {\n <span class=\"fd-message-view__details-description\">\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n }\n @if (currentEntry.link) {\n <span class=\"fd-message-view__details-link\">\n @if (currentEntry.link.href) {\n <a\n fd-link\n [attr.href]=\"currentEntry.link.href\"\n [attr.target]=\"currentEntry.link.target || '_blank'\"\n >\n {{ currentEntry.link.text }}\n </a>\n } @else {\n <a fd-link tabindex=\"0\" (fdkClicked)=\"currentEntry.link.callback?.()\">\n {{ currentEntry.link.text }}\n </a>\n }\n </span>\n }\n }\n </div>\n </section>\n</div>\n", styles: [".fd-message-view__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fd-message-view__details-subtitle{display:block;color:var(--sapContent_LabelColor);margin-block-start:.25rem;margin-block-end:.5rem}.message-popover__list.fd-list--navigation-indication .fd-list__link--navigation-indicator:after{min-width:3rem}.fd-list__content fd-text{display:block;width:100%}.fd-list__content fd-text .fd-text{white-space:normal;margin:0;padding:0;line-height:normal}.fd-list__content fd-text .fd-text__lineclamp{display:block;line-height:normal}.fd-list__content fd-text .fd-text__link--more{pointer-events:auto}.fd-list__content fd-text .fd-text__link--more:hover{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ScrollbarDirective, selector: "[fdScrollbar], [fd-scrollbar]", inputs: ["noHorizontalScroll", "noVerticalScroll", "alwaysVisible"] }, { kind: "ngmodule", type: ListModule }, { kind: "component", type: i2.ListComponent, selector: "[fd-list], [fdList]", inputs: ["dropdownMode", "multiInputMode", "mobileMode", "hasMessage", "noBorder", "navigationIndicator", "selection", "keyboardSupport", "byline", "subline", "theme", "unreadIndicator", "role", "settingsList", "settingsListFooter", "notification", "searchResultsList"], outputs: ["focusEscapeList"] }, { kind: "component", type: i2.ListItemComponent, selector: "[fdListItem] ,[fd-list-item]", inputs: ["selected", "noData", "action", "interactive", "growing", "counter", "counterRole", "counterAriaLabel", "active", "unread", "byline", "ariaRole", "id", "preventClick", "settingsListTpl", "suggestion"], outputs: ["keyDown"], exportAs: ["fdListItem"] }, { kind: "directive", type: i2.ListTitleDirective, selector: "[fd-list-title], [fdListTitle]", inputs: ["wrap", "truncate", "scope"] }, { kind: "directive", type: i2.ListGroupHeaderDirective, selector: "[fdListGroupHeader], [fd-list-group-header]", inputs: ["nativeElementId"], outputs: ["keyDown"] }, { kind: "directive", type: i2.ListLinkDirective, selector: "[fd-list-link], [fdListLink]", inputs: ["navigationIndicator", "navigated", "focusable"] }, { kind: "directive", type: i2.ListContentDirective, selector: "[fdListContent], [fd-list-content]", inputs: ["twoCol"] }, { kind: "directive", type: i2.ListSublineDirective, selector: "[fdListSubline], [fd-list-subline]", inputs: ["truncate"] }, { kind: "component", type: ObjectStatusComponent, selector: "[fd-object-status]", inputs: ["status", "statusMessage", "glyph", "glyphFont", "label", "ariaLabel", "glyphAriaLabel", "indicationColor", "clickable", "inverted", "large", "secondaryIndication", "textTemplate", "ariaRoleDescription"] }, { kind: "component", type: LinkComponent, selector: "[fdLink], [fd-link]", inputs: ["emphasized", "disabled", "inverted", "subtle", "undecorated", "touchTarget"] }, { kind: "directive", type: ClickedDirective, selector: "[fdkClicked]", outputs: ["fdkClicked"] }, { kind: "component", type: TextComponent, selector: "fd-text", inputs: ["text", "maxLines", "whitespaces", "hyphenation", "expandable", "isCollapsed", "subline"], outputs: ["isCollapsedChange"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
616
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MessagesListComponent, isStandalone: true, selector: "fdp-messages-list", inputs: { currentScreen: "currentScreen", filteredErrors: "filteredErrors", currentEntry: "currentEntry" }, outputs: { openDetails: "openDetails", focusItem: "focusItem", closePopover: "closePopover" }, host: { classAttribute: "fd-message-popover__view-container" }, providers: [TabbableElementService, FdTranslatePipe], viewQueries: [{ propertyName: "listView", first: true, predicate: ["listView"], descendants: true, read: ElementRef }, { propertyName: "detailsView", first: true, predicate: ["detailsView"], descendants: true, read: ElementRef }, { propertyName: "listSection", first: true, predicate: ["listSection"], descendants: true, read: ElementRef }, { propertyName: "detailsSection", first: true, predicate: ["detailsSection"], descendants: true, read: ElementRef }], ngImport: i0, template: "<ng-template #headingTemplate let-item>\n <ng-template #directiveHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message || item.description.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.heading.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringHeading>\n {{ (item.heading.message | fdTranslate: { error: item.heading.error } : item.heading.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.heading.type === 'directive'\n ? directiveHeading\n : item.heading.type === 'string'\n ? stringHeading\n : i18nHeading\n \"\n ></ng-template>\n</ng-template>\n<ng-template #descriptionTemplate let-item>\n <ng-template #directiveDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.description.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringDescription>\n {{ (item.description.message | fdTranslate: { error: item.description.error } : item.description.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.description.type === 'directive'\n ? directiveDescription\n : item.description.type === 'string'\n ? stringDescription\n : i18nDescription\n \"\n ></ng-template>\n</ng-template>\n<div class=\"fd-message-view\">\n <!-- Screen reader announcement region for details view navigation -->\n <div aria-live=\"assertive\" aria-atomic=\"true\" class=\"fd-message-view__sr-only\">\n @if (currentScreen === 'details' && currentEntry) {\n {{ getAnnouncementText(currentEntry) }}\n }\n </div>\n <section\n #listSection\n class=\"fd-message-view__list\"\n [class.fd-message-view__list--hidden]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'details' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'details'\"\n tabindex=\"-1\"\n fd-scrollbar\n >\n <ul #listView fd-list class=\"message-popover__list fd-list--message-view\" [navigationIndicator]=\"true\">\n @for (group of filteredErrors; track group.group ?? group.errors[0]?.name ?? $index) {\n @if (group.group) {\n <li fd-list-group-header>\n <span fd-list-title>{{ group.group }}</span>\n </li>\n }\n @for (item of group.errors; track item.name; let i = $index) {\n <li\n fd-list-item\n [tabindex]=\"i === 0 ? 0 : -1\"\n [byline]=\"true\"\n [counter]=\"item.aggregatedMessages!\"\n (fdkClicked)=\"showDetails(item)\"\n >\n <ng-template #itemIcon>\n <span\n fd-object-status\n class=\"fd-list__icon\"\n [status]=\"item.state\"\n [glyph]=\"getIconForType(item.type)\"\n ></span>\n </ng-template>\n <ng-template #listSubtitle>\n @if (item.heading.type === 'string' && item.heading.message) {\n <fd-text\n [text]=\"getHeadingText(item)\"\n [maxLines]=\"3\"\n [expandable]=\"true\"\n (fdkClicked)=\"$event.stopPropagation()\"\n ></fd-text>\n } @else {\n <span fd-list-subline>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </span>\n }\n </ng-template>\n @if (item.element && !!item.description.message) {\n <span fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>\n <a tabindex=\"0\" fd-link (fdkClicked)=\"_focusElement($event, item)\">\n {{ item.fieldName }}\n </a>\n </span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </span>\n } @else {\n <a fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>{{ item.fieldName }}</span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </a>\n }\n </li>\n }\n }\n </ul>\n </section>\n <section\n #detailsSection\n class=\"fd-message-view__details\"\n [class.fd-message-view__details--visible]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'list' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'list'\"\n >\n <div #detailsView>\n @if (currentEntry) {\n <span class=\"fd-message-view__details-title\">\n <span\n fd-object-status\n class=\"fd-message-view__icon\"\n [status]=\"currentEntry.state\"\n [glyph]=\"getIconForType(currentEntry.type)\"\n ></span>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n @if (currentEntry.subtitle) {\n <span class=\"fd-message-view__details-subtitle\">\n {{ currentEntry.subtitle }}\n </span>\n }\n @if (currentEntry.description.message) {\n <span class=\"fd-message-view__details-description\">\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n }\n @if (currentEntry.link) {\n <span class=\"fd-message-view__details-link\">\n @if (currentEntry.link.href) {\n <a\n fd-link\n [attr.href]=\"currentEntry.link.href\"\n [attr.target]=\"currentEntry.link.target || '_blank'\"\n >\n {{ currentEntry.link.text }}\n </a>\n } @else {\n <a fd-link tabindex=\"0\" (fdkClicked)=\"currentEntry.link.callback?.()\">\n {{ currentEntry.link.text }}\n </a>\n }\n </span>\n }\n }\n </div>\n </section>\n</div>\n", styles: [".fd-message-view__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fd-message-view__details-subtitle{display:block;color:var(--sapContent_LabelColor);margin-block-start:.25rem;margin-block-end:.5rem}.message-popover__list.fd-list--navigation-indication .fd-list__link--navigation-indicator:after{min-width:3rem}.fd-list__content fd-text{display:block;width:100%}.fd-list__content fd-text .fd-text{white-space:normal;margin:0;padding:0;line-height:normal}.fd-list__content fd-text .fd-text__lineclamp{display:block;line-height:normal}.fd-list__content fd-text .fd-text__link--more{pointer-events:auto}.fd-list__content fd-text .fd-text__link--more:hover{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ScrollbarDirective, selector: "[fdScrollbar], [fd-scrollbar]", inputs: ["noHorizontalScroll", "noVerticalScroll", "alwaysVisible"] }, { kind: "ngmodule", type: ListModule }, { kind: "component", type: i2.ListComponent, selector: "[fd-list], [fdList]", inputs: ["dropdownMode", "multiInputMode", "mobileMode", "hasMessage", "noBorder", "navigationIndicator", "selection", "keyboardSupport", "byline", "subline", "theme", "unreadIndicator", "role", "settingsList", "settingsListFooter", "notification", "searchResultsList"], outputs: ["focusEscapeList"] }, { kind: "component", type: i2.ListItemComponent, selector: "[fdListItem] ,[fd-list-item]", inputs: ["selected", "noData", "action", "interactive", "growing", "counter", "counterRole", "counterAriaLabel", "active", "unread", "byline", "ariaRole", "id", "preventClick", "settingsListTpl", "suggestion"], outputs: ["keyDown"], exportAs: ["fdListItem"] }, { kind: "directive", type: i2.ListTitleDirective, selector: "[fd-list-title], [fdListTitle]", inputs: ["wrap", "truncate", "scope"] }, { kind: "directive", type: i2.ListGroupHeaderDirective, selector: "[fdListGroupHeader], [fd-list-group-header]", inputs: ["nativeElementId"], outputs: ["keyDown"] }, { kind: "directive", type: i2.ListLinkDirective, selector: "[fd-list-link], [fdListLink]", inputs: ["navigationIndicator", "navigated", "focusable"] }, { kind: "directive", type: i2.ListContentDirective, selector: "[fdListContent], [fd-list-content]", inputs: ["twoCol"] }, { kind: "directive", type: i2.ListSublineDirective, selector: "[fdListSubline], [fd-list-subline]", inputs: ["truncate"] }, { kind: "component", type: ObjectStatusComponent, selector: "[fd-object-status]", inputs: ["status", "statusMessage", "glyph", "glyphFont", "label", "ariaLabel", "glyphAriaLabel", "indicationColor", "clickable", "inverted", "large", "secondaryIndication", "textTemplate", "ariaRoleDescription"] }, { kind: "component", type: LinkComponent, selector: "[fdLink], [fd-link]", inputs: ["emphasized", "disabled", "inverted", "subtle", "undecorated", "touchTarget"] }, { kind: "directive", type: ClickedDirective, selector: "[fdkClicked]", outputs: ["fdkClicked"] }, { kind: "component", type: TextComponent, selector: "fd-text", inputs: ["text", "maxLines", "whitespaces", "hyphenation", "expandable", "isCollapsed", "subline"], outputs: ["isCollapsedChange"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
614
617
|
}
|
|
615
618
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MessagesListComponent, decorators: [{
|
|
616
619
|
type: Component,
|
|
@@ -626,7 +629,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
626
629
|
FdTranslatePipe,
|
|
627
630
|
ClickedDirective,
|
|
628
631
|
TextComponent
|
|
629
|
-
], template: "<ng-template #headingTemplate let-item>\n <ng-template #directiveHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message || item.description.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.heading.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringHeading>\n {{ (item.heading.message | fdTranslate: { error: item.heading.error } : item.heading.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.heading.type === 'directive'\n ? directiveHeading\n : item.heading.type === 'string'\n ? stringHeading\n : i18nHeading\n \"\n ></ng-template>\n</ng-template>\n<ng-template #descriptionTemplate let-item>\n <ng-template #directiveDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.description.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringDescription>\n {{ (item.description.message | fdTranslate: { error: item.description.error } : item.description.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.description.type === 'directive'\n ? directiveDescription\n : item.description.type === 'string'\n ? stringDescription\n : i18nDescription\n \"\n ></ng-template>\n</ng-template>\n<div class=\"fd-message-view\">\n <!-- Screen reader announcement region for details view navigation -->\n <div aria-live=\"assertive\" aria-atomic=\"true\" class=\"fd-message-view__sr-only\">\n @if (currentScreen === 'details' && currentEntry) {\n {{ getAnnouncementText(currentEntry) }}\n }\n </div>\n <section\n #listSection\n class=\"fd-message-view__list\"\n [class.fd-message-view__list--hidden]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'details' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'details'\"\n tabindex=\"-1\"\n fd-scrollbar\n >\n <ul #listView fd-list class=\"message-popover__list fd-list--message-view\" [navigationIndicator]=\"true\">\n @for (group of filteredErrors; track group) {\n @if (group.group) {\n <li fd-list-group-header>\n <span fd-list-title>{{ group.group }}</span>\n </li>\n }\n @for (item of group.errors; track item; let i = $index) {\n <li\n fd-list-item\n [tabindex]=\"i === 0 ? 0 : -1\"\n [byline]=\"true\"\n [counter]=\"item.aggregatedMessages!\"\n (fdkClicked)=\"showDetails(item)\"\n >\n <ng-template #itemIcon>\n <span\n fd-object-status\n class=\"fd-list__icon\"\n [status]=\"item.state\"\n [glyph]=\"getIconForType(item.type)\"\n ></span>\n </ng-template>\n <ng-template #listSubtitle>\n @if (item.heading.type === 'string' && item.heading.message) {\n <fd-text\n [text]=\"getHeadingText(item)\"\n [maxLines]=\"3\"\n [expandable]=\"true\"\n (fdkClicked)=\"$event.stopPropagation()\"\n ></fd-text>\n } @else {\n <span fd-list-subline>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </span>\n }\n </ng-template>\n @if (item.element && !!item.description.message) {\n <span fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>\n <a tabindex=\"0\" fd-link (fdkClicked)=\"_focusElement($event, item)\">\n {{ item.fieldName }}\n </a>\n </span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </span>\n } @else {\n <a fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>{{ item.fieldName }}</span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </a>\n }\n </li>\n }\n }\n </ul>\n </section>\n <section\n #detailsSection\n class=\"fd-message-view__details\"\n [class.fd-message-view__details--visible]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'list' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'list'\"\n >\n <div #detailsView>\n @if (currentEntry) {\n <span class=\"fd-message-view__details-title\">\n <span\n fd-object-status\n class=\"fd-message-view__icon\"\n [status]=\"currentEntry.state\"\n [glyph]=\"getIconForType(currentEntry.type)\"\n ></span>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n @if (currentEntry.subtitle) {\n <span class=\"fd-message-view__details-subtitle\">\n {{ currentEntry.subtitle }}\n </span>\n }\n @if (currentEntry.description.message) {\n <span class=\"fd-message-view__details-description\">\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n }\n @if (currentEntry.link) {\n <span class=\"fd-message-view__details-link\">\n @if (currentEntry.link.href) {\n <a\n fd-link\n [attr.href]=\"currentEntry.link.href\"\n [attr.target]=\"currentEntry.link.target || '_blank'\"\n >\n {{ currentEntry.link.text }}\n </a>\n } @else {\n <a fd-link tabindex=\"0\" (fdkClicked)=\"currentEntry.link.callback?.()\">\n {{ currentEntry.link.text }}\n </a>\n }\n </span>\n }\n }\n </div>\n </section>\n</div>\n", styles: [".fd-message-view__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fd-message-view__details-subtitle{display:block;color:var(--sapContent_LabelColor);margin-block-start:.25rem;margin-block-end:.5rem}.message-popover__list.fd-list--navigation-indication .fd-list__link--navigation-indicator:after{min-width:3rem}.fd-list__content fd-text{display:block;width:100%}.fd-list__content fd-text .fd-text{white-space:normal;margin:0;padding:0;line-height:normal}.fd-list__content fd-text .fd-text__lineclamp{display:block;line-height:normal}.fd-list__content fd-text .fd-text__link--more{pointer-events:auto}.fd-list__content fd-text .fd-text__link--more:hover{text-decoration:underline}\n"] }]
|
|
632
|
+
], template: "<ng-template #headingTemplate let-item>\n <ng-template #directiveHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message || item.description.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.heading.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringHeading>\n {{ (item.heading.message | fdTranslate: { error: item.heading.error } : item.heading.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.heading.type === 'directive'\n ? directiveHeading\n : item.heading.type === 'string'\n ? stringHeading\n : i18nHeading\n \"\n ></ng-template>\n</ng-template>\n<ng-template #descriptionTemplate let-item>\n <ng-template #directiveDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.description.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringDescription>\n {{ (item.description.message | fdTranslate: { error: item.description.error } : item.description.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.description.type === 'directive'\n ? directiveDescription\n : item.description.type === 'string'\n ? stringDescription\n : i18nDescription\n \"\n ></ng-template>\n</ng-template>\n<div class=\"fd-message-view\">\n <!-- Screen reader announcement region for details view navigation -->\n <div aria-live=\"assertive\" aria-atomic=\"true\" class=\"fd-message-view__sr-only\">\n @if (currentScreen === 'details' && currentEntry) {\n {{ getAnnouncementText(currentEntry) }}\n }\n </div>\n <section\n #listSection\n class=\"fd-message-view__list\"\n [class.fd-message-view__list--hidden]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'details' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'details'\"\n tabindex=\"-1\"\n fd-scrollbar\n >\n <ul #listView fd-list class=\"message-popover__list fd-list--message-view\" [navigationIndicator]=\"true\">\n @for (group of filteredErrors; track group.group ?? group.errors[0]?.name ?? $index) {\n @if (group.group) {\n <li fd-list-group-header>\n <span fd-list-title>{{ group.group }}</span>\n </li>\n }\n @for (item of group.errors; track item.name; let i = $index) {\n <li\n fd-list-item\n [tabindex]=\"i === 0 ? 0 : -1\"\n [byline]=\"true\"\n [counter]=\"item.aggregatedMessages!\"\n (fdkClicked)=\"showDetails(item)\"\n >\n <ng-template #itemIcon>\n <span\n fd-object-status\n class=\"fd-list__icon\"\n [status]=\"item.state\"\n [glyph]=\"getIconForType(item.type)\"\n ></span>\n </ng-template>\n <ng-template #listSubtitle>\n @if (item.heading.type === 'string' && item.heading.message) {\n <fd-text\n [text]=\"getHeadingText(item)\"\n [maxLines]=\"3\"\n [expandable]=\"true\"\n (fdkClicked)=\"$event.stopPropagation()\"\n ></fd-text>\n } @else {\n <span fd-list-subline>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </span>\n }\n </ng-template>\n @if (item.element && !!item.description.message) {\n <span fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>\n <a tabindex=\"0\" fd-link (fdkClicked)=\"_focusElement($event, item)\">\n {{ item.fieldName }}\n </a>\n </span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </span>\n } @else {\n <a fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>{{ item.fieldName }}</span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </a>\n }\n </li>\n }\n }\n </ul>\n </section>\n <section\n #detailsSection\n class=\"fd-message-view__details\"\n [class.fd-message-view__details--visible]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'list' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'list'\"\n >\n <div #detailsView>\n @if (currentEntry) {\n <span class=\"fd-message-view__details-title\">\n <span\n fd-object-status\n class=\"fd-message-view__icon\"\n [status]=\"currentEntry.state\"\n [glyph]=\"getIconForType(currentEntry.type)\"\n ></span>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n @if (currentEntry.subtitle) {\n <span class=\"fd-message-view__details-subtitle\">\n {{ currentEntry.subtitle }}\n </span>\n }\n @if (currentEntry.description.message) {\n <span class=\"fd-message-view__details-description\">\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n }\n @if (currentEntry.link) {\n <span class=\"fd-message-view__details-link\">\n @if (currentEntry.link.href) {\n <a\n fd-link\n [attr.href]=\"currentEntry.link.href\"\n [attr.target]=\"currentEntry.link.target || '_blank'\"\n >\n {{ currentEntry.link.text }}\n </a>\n } @else {\n <a fd-link tabindex=\"0\" (fdkClicked)=\"currentEntry.link.callback?.()\">\n {{ currentEntry.link.text }}\n </a>\n }\n </span>\n }\n }\n </div>\n </section>\n</div>\n", styles: [".fd-message-view__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fd-message-view__details-subtitle{display:block;color:var(--sapContent_LabelColor);margin-block-start:.25rem;margin-block-end:.5rem}.message-popover__list.fd-list--navigation-indication .fd-list__link--navigation-indicator:after{min-width:3rem}.fd-list__content fd-text{display:block;width:100%}.fd-list__content fd-text .fd-text{white-space:normal;margin:0;padding:0;line-height:normal}.fd-list__content fd-text .fd-text__lineclamp{display:block;line-height:normal}.fd-list__content fd-text .fd-text__link--more{pointer-events:auto}.fd-list__content fd-text .fd-text__link--more:hover{text-decoration:underline}\n"] }]
|
|
630
633
|
}], ctorParameters: () => [{ type: i0.DestroyRef }, { type: i1$1.TabbableElementService }, { type: Document, decorators: [{
|
|
631
634
|
type: Inject,
|
|
632
635
|
args: [DOCUMENT]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundamental-ngx-platform-messages-shared.mjs","sources":["../../../../libs/platform/messages-shared/default-config.ts","../../../../libs/platform/messages-shared/directives/message-popover-form-item.directive.ts","../../../../libs/platform/messages-shared/utils.ts","../../../../libs/platform/messages-shared/components/message-popover-form-wrapper/message-popover-form-wrapper.component.ts","../../../../libs/platform/messages-shared/components/messages-list/messages-list.component.ts","../../../../libs/platform/messages-shared/components/messages-list/messages-list.component.html","../../../../libs/platform/messages-shared/message-list-shared.ts","../../../../libs/platform/messages-shared/platform-messages-shared.module.ts","../../../../libs/platform/messages-shared/fundamental-ngx-platform-messages-shared.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { FormStates } from '@fundamental-ngx/cdk/forms';\n\nexport interface MessagePopoverErrorConfig {\n heading: string;\n description?: string;\n type: FormStates;\n}\n\nexport interface MessagePopoverConfig {\n /**\n * Errors object where key is error type and value is i18n string.\n */\n errors: Record<string, string | MessagePopoverErrorConfig>;\n}\n\nexport const FDP_MESSAGE_POPOVER_DEFAULT_CONFIG: MessagePopoverConfig = {\n errors: {\n email: 'platformMessagePopover.defaultErrors.email',\n max: 'platformMessagePopover.defaultErrors.max',\n maxlength: 'platformMessagePopover.defaultErrors.maxLength',\n min: 'platformMessagePopover.defaultErrors.min',\n minlength: 'platformMessagePopover.defaultErrors.minLength',\n pattern: 'platformMessagePopover.defaultErrors.pattern',\n required: 'platformMessagePopover.defaultErrors.required',\n requiredTrue: 'platformMessagePopover.defaultErrors.requiredTrue'\n }\n};\n\nexport const FDP_MESSAGE_POPOVER_CONFIG = new InjectionToken<MessagePopoverConfig>('FdpMessagePopoverConfig');\n","import { Directive, ElementRef, Input, Optional } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MessagePopoverConfig } from '../default-config';\n\n@Directive({\n selector: '[fdpMessagePopoverFormItem]'\n})\nexport class MessagePopoverFormItemDirective {\n /** Form item name. */\n @Input('fdpMessagePopoverFormItem')\n label: string;\n\n /** Error type definition. */\n @Input()\n errorTypes: MessagePopoverConfig['errors'];\n\n /** @hidden */\n constructor(\n public readonly elementRef: ElementRef,\n @Optional() public readonly control: NgControl\n ) {}\n}\n","import { FormStates } from '@fundamental-ngx/cdk/forms';\nimport { ObjectStatus } from '@fundamental-ngx/core/object-status';\nimport { MessagePopoverState } from './models/message-popover.interface';\n\n/**\n * Converts Object Status into Message Popover State\n * @param status Object status\n * @returns Message Popover State.\n */\nexport function convertFormStateToMessagePopoverState(state: FormStates): MessagePopoverState {\n switch (state) {\n case 'error':\n return 'negative';\n case 'warning':\n return 'critical';\n case 'default':\n return 'neutral';\n default:\n return state;\n }\n}\n\n/**\n * Converts Form State into Object status type.\n * @param type Form state.\n * @returns `ObjectStatus` type.\n */\nexport function convertFormState(type: FormStates): ObjectStatus {\n switch (type) {\n case 'success':\n return 'positive';\n case 'error':\n return 'negative';\n case 'warning':\n return 'critical';\n case 'information':\n return 'informative';\n default:\n return 'neutral';\n }\n}\n\n/**\n * Maps message type to icon name.\n * @param type Message type (error, success, warning, information, default).\n * @returns Icon name for the given message type.\n */\nexport function getIconForMessageType(type: string): string {\n switch (type) {\n case 'error':\n return 'error';\n case 'success':\n return 'sys-enter-2';\n case 'warning':\n return 'alert';\n case 'information':\n return 'information';\n default:\n return 'sys-help-2';\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n DestroyRef,\n Inject,\n Input,\n OnDestroy,\n QueryList,\n ViewEncapsulation,\n signal\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AbstractControl, ControlContainer, FormGroup, FormGroupDirective, NgForm } from '@angular/forms';\nimport { FD_FORM_FIELD_CONTROL, FormStates } from '@fundamental-ngx/cdk/forms';\nimport { Nullable } from '@fundamental-ngx/cdk/utils';\nimport {\n FormFieldErrorDirectiveContext,\n PlatformFormField,\n PlatformFormFieldControl\n} from '@fundamental-ngx/platform/shared';\nimport { Subject, Subscription, filter, startWith, switchMap, zip } from 'rxjs';\nimport { FDP_MESSAGE_POPOVER_CONFIG, MessagePopoverConfig, MessagePopoverErrorConfig } from '../../default-config';\nimport { MessagePopoverFormItemDirective } from '../../directives/message-popover-form-item.directive';\nimport {\n MessagePopoverEntry,\n MessagePopoverErrorGroup,\n MessagePopoverErrorText\n} from '../../models/message-popover-entry.interface';\nimport { MessagePopoverWrapper } from '../../models/message-popover-wrapper.interface';\nimport { MessagePopover } from '../../models/message-popover.interface';\nimport { convertFormState } from '../../utils';\n\nexport type MessagePopoverForm = NgForm | FormGroupDirective;\n\n@Component({\n selector: 'fdp-message-popover-form-wrapper',\n template: `<ng-content></ng-content>`,\n exportAs: 'messagePopoverWrapper',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class MessagePopoverFormWrapperComponent implements MessagePopoverWrapper, AfterViewInit, OnDestroy {\n /** @hidden */\n @ContentChildren(ControlContainer, { descendants: true })\n private readonly _projectedForm: QueryList<MessagePopoverForm>;\n\n /** @hidden */\n @ContentChildren(FD_FORM_FIELD_CONTROL, { descendants: true })\n private readonly _projectedFormFieldControls!: QueryList<PlatformFormFieldControl>;\n\n /** @hidden */\n @ContentChildren(MessagePopoverFormItemDirective, { descendants: true })\n private readonly _directiveItems!: QueryList<MessagePopoverFormItemDirective>;\n\n /** Message Popover instance. */\n messagePopover$ = new Subject<MessagePopover>();\n\n /**\n * User-passed forms.\n */\n @Input()\n set forms(forms: MessagePopoverForm | MessagePopoverForm[]) {\n if (!forms) {\n return;\n }\n if (!Array.isArray(forms)) {\n forms = [forms];\n }\n this._ngForms = forms;\n this._startListeningForErrors();\n }\n\n /** User-passed form fields. */\n @Input()\n set formFields(value: PlatformFormFieldControl[]) {\n this._formFields = value;\n this._listenToFormFieldErrors(value);\n }\n\n get formFields(): PlatformFormFieldControl[] {\n return this._formFields;\n }\n\n /**\n * Error models Signal. Emitted when form submitted and contains invalid fields.\n */\n readonly errors$ = signal<MessagePopoverErrorGroup[]>([]);\n\n /** @hidden */\n private _formFields: PlatformFormFieldControl[] = [];\n\n /** @hidden */\n private _formErrorsSubscription: Subscription | undefined;\n\n /** @hidden */\n private _ngForms: (NgForm | FormGroupDirective)[] = [];\n\n /** @hidden */\n private _formItemErrorsSubscription = new Subscription();\n\n /** @hidden */\n private _formSubmitted = false;\n\n /** @hidden */\n constructor(\n private readonly _destroyRef: DestroyRef,\n @Inject(FDP_MESSAGE_POPOVER_CONFIG) private readonly _config: MessagePopoverConfig\n ) {}\n\n /** @hidden */\n ngAfterViewInit(): void {\n // Forms are passed via input property.\n if (this._ngForms.length > 0) {\n return;\n }\n this._projectedForm?.changes.pipe(startWith(null), takeUntilDestroyed(this._destroyRef)).subscribe(() => {\n this._ngForms = this._projectedForm.toArray();\n this._startListeningForErrors();\n });\n }\n\n /**\n * Sets Message Popover component instance.\n */\n setMessagePopover(messagePopover: MessagePopover): void {\n this.messagePopover$.next(messagePopover);\n // this.messagePopover = messagePopover;\n }\n\n /**\n * Programmatically add new form to array of forms.\n * @param forms\n */\n addForms(forms: MessagePopoverForm | MessagePopoverForm[]): void {\n const formsArray = Array.isArray(forms) ? forms : [forms];\n this._ngForms.push(...formsArray);\n this._startListeningForErrors();\n }\n\n /**\n * Programmatically add new form fields to array of listened form fields.\n * @param formFields\n */\n addFormFields(formFields: PlatformFormFieldControl[]): void {\n this._formFields.push(...formFields);\n this._listenToFormFieldErrors(this._formFields);\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._formItemErrorsSubscription.unsubscribe();\n }\n\n /**\n * @hidden\n * Listens to the form submission and collects form control errors.\n */\n private _startListeningForErrors(): void {\n if (!this._ngForms) {\n return;\n }\n this._formErrorsSubscription?.unsubscribe();\n this.errors$.set([]);\n\n const formSubmitEvents = this._ngForms.map((form) =>\n form.ngSubmit.pipe(\n switchMap(() =>\n form.statusChanges!.pipe(\n startWith(form.status),\n filter((status: string) => status.toLowerCase() !== 'pending')\n )\n )\n )\n );\n\n this._formErrorsSubscription = zip(...formSubmitEvents)\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n this._formSubmitted = true;\n const errors =\n this._directiveItems.length > 0 ? this._collectPlainFormData() : this._collectAdvancedFormData();\n\n this.errors$.set(errors);\n });\n\n this._listenToFormFieldErrors(this._projectedFormFieldControls.toArray());\n\n this._projectedFormFieldControls?.changes.subscribe(() => {\n this._listenToFormFieldErrors(this._projectedFormFieldControls.toArray());\n });\n }\n\n /** @hidden */\n private _listenToFormFieldErrors(fields: PlatformFormFieldControl[]): void {\n this._formItemErrorsSubscription.unsubscribe();\n\n this._formItemErrorsSubscription = new Subscription();\n\n fields?.forEach((field) => {\n this._formItemErrorsSubscription.add(\n field.formField?.errorsChange$.subscribe(() => {\n if (!this._formSubmitted) {\n return;\n }\n const errors =\n this._directiveItems.length > 0\n ? this._collectPlainFormData()\n : this._collectAdvancedFormData();\n this.errors$.set(errors);\n })\n );\n });\n }\n\n /** @hidden */\n private _collectPlainFormData(): MessagePopoverErrorGroup[] {\n const errors: MessagePopoverErrorGroup[] = [\n {\n errors: []\n }\n ];\n\n const fields = this._directiveItems.toArray();\n\n this._ngForms.forEach((form) => {\n Object.keys(form.form.controls).forEach((controlName) => {\n const control = form.form.get(controlName);\n const field = fields.find((formField) => formField.control?.name === controlName);\n\n if (!control?.errors || !field) {\n return;\n }\n\n const configErrors = Object.keys(this._config.errors);\n\n Object.keys(control.errors)\n .filter((error) => configErrors.includes(error))\n .forEach((errorKey) => {\n const errorObj = control.errors![errorKey];\n\n const errorTextModel = this._getConfigErrorModel(errorKey, field.errorTypes);\n const errorConfig = field?.errorTypes ? field?.errorTypes[errorKey] : null;\n const errorState =\n errorConfig && this._isAdvancedError(errorConfig) && errorConfig.type\n ? errorConfig.type\n : 'error';\n const error: MessagePopoverEntry = {\n name: controlName,\n type: errorTextModel.type,\n state: convertFormState(errorState),\n fieldName: field?.label ?? '',\n element: field?.elementRef,\n heading: {\n type: 'string',\n error: errorObj,\n message: errorTextModel.heading\n },\n description: {\n type: 'string',\n error: errorObj,\n message: errorTextModel.description\n },\n errors: control!.errors\n };\n\n errors[0].errors.push(error);\n });\n });\n });\n\n return errors;\n }\n\n /** @hidden */\n private _collectAdvancedFormData(): MessagePopoverErrorGroup[] {\n let errors: MessagePopoverErrorGroup[] = [];\n const fields = this.formFields.length > 0 ? this.formFields : this._projectedFormFieldControls.toArray();\n\n /**\n * Iterates over form controls to collect their errors.\n * @param form Form Group or a collection of Form Groups.\n */\n const iterateOverForm = (form: FormGroup | FormGroup[]): MessagePopoverErrorGroup[] => {\n if (Array.isArray(form)) {\n form.forEach((formGroup) => {\n errors = iterateOverForm(formGroup);\n });\n return errors;\n }\n Object.keys(form.controls).forEach((controlName) => {\n const control = form.get(controlName);\n const field = fields.find((formField) => formField.id === controlName);\n\n if (control instanceof FormGroup) {\n errors = iterateOverForm(control);\n }\n\n if (!control?.errors || !field) {\n return;\n }\n\n Object.keys(control.errors).forEach((errorKey) => {\n const errorDirective = field.formField?.groupedErrors.find(\n (groupedError) => groupedError.directive.error === errorKey\n );\n\n const groupName = this._getGroupName(field?.formField);\n const error = this._getErrorModel(\n controlName,\n groupName,\n control,\n field,\n errorKey,\n errorDirective,\n control.errors![errorKey]\n );\n\n let errorGroupIndex = errors.findIndex((errorGroup) => errorGroup.group === groupName);\n\n if (errorGroupIndex === -1) {\n errorGroupIndex =\n errors.push({\n group: groupName,\n errors: []\n }) - 1;\n }\n\n const group = errors[errorGroupIndex];\n\n group.errors.push(error);\n });\n });\n\n return errors;\n };\n\n return iterateOverForm(this._ngForms.map((form) => form.form));\n }\n\n /**\n * @hidden\n * Creates error model\n */\n private _getErrorModel(\n controlName: string,\n groupName: string,\n control: AbstractControl,\n field: PlatformFormFieldControl,\n errorKey: string,\n errorDirective?: FormFieldErrorDirectiveContext,\n error?: any\n ): MessagePopoverEntry {\n let state: FormStates = 'error';\n const configError = this._config.errors[errorKey];\n\n if (errorDirective?.directive.type) {\n state = errorDirective.directive.type;\n } else if (this._isAdvancedError(configError)) {\n state = configError.type;\n }\n\n return {\n name: controlName,\n type: state,\n state: convertFormState(state),\n group: groupName,\n fieldName: field?.formField?.label ?? '',\n heading: this._getErrorText(field, errorDirective, 'heading', errorKey, error),\n description: this._getErrorText(field, errorDirective, 'description', errorKey, error),\n errors: control!.errors,\n formField: field,\n element: field?.elementRef\n };\n }\n\n /**\n * @hidden\n * Creates error text based on the type of the error.\n * @param field Form Field Control.\n * @param errorDirective Optional Error directive\n * @param section Section where text should be rendered.\n * @param errorKey\n * @param error\n */\n private _getErrorText(\n field: PlatformFormFieldControl,\n errorDirective: Nullable<FormFieldErrorDirectiveContext>,\n section: 'heading' | 'description' = 'heading',\n errorKey: string,\n error?: any\n ): MessagePopoverErrorText {\n const errorTextObj: MessagePopoverErrorText = {\n error: errorDirective?.error,\n type: errorDirective?.directive ? 'directive' : field?.formField?.i18Strings ? 'templateRef' : 'string'\n };\n\n if (errorTextObj.type === 'string') {\n const errorTextModel = this._getConfigErrorModel(errorKey);\n\n errorTextObj.error = error;\n errorTextObj.message = errorTextModel[section];\n return errorTextObj;\n }\n\n if (errorDirective?.directive) {\n errorTextObj.message =\n section === 'heading'\n ? (errorDirective.directive._headingTemplateRef ?? errorDirective.directive._descriptionTemplateRef)\n : errorDirective.directive._descriptionTemplateRef;\n return errorTextObj;\n }\n\n errorTextObj.message = field?.formField?.i18Strings ?? null;\n return errorTextObj;\n }\n\n /** @hidden */\n private _getGroupName(formField: Nullable<PlatformFormField>): string {\n const parts: string[] = [];\n\n if (formField?.formGroupContainer?.mainTitle) {\n parts.push(formField.formGroupContainer.mainTitle);\n }\n\n if (formField?.formFieldGroup?.label) {\n parts.push(formField.formFieldGroup.label);\n }\n\n return parts.join(', ');\n }\n\n /** @hidden */\n private _getConfigErrorModel(\n errorKey: string,\n customErrorTypes?: MessagePopoverConfig['errors']\n ): MessagePopoverErrorConfig {\n const configError =\n customErrorTypes && customErrorTypes[errorKey] ? customErrorTypes[errorKey] : this._config.errors[errorKey];\n const isPlainError = !this._isAdvancedError(configError);\n const errorType = isPlainError ? 'error' : configError.type;\n const headingMessage = isPlainError ? configError : configError.heading;\n const descriptionMessage = isPlainError ? undefined : configError.description;\n\n return {\n type: errorType,\n heading: headingMessage,\n description: descriptionMessage\n };\n }\n\n /** @hidden */\n private _isAdvancedError(error: string | MessagePopoverErrorConfig): error is MessagePopoverErrorConfig {\n return !!error && typeof error !== 'string';\n }\n}\n","import { CdkScrollable } from '@angular/cdk/overlay';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation,\n inject\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ClickedDirective, Nullable, TabbableElementService, resizeObservable } from '@fundamental-ngx/cdk/utils';\nimport { LinkComponent } from '@fundamental-ngx/core/link';\nimport { ListModule } from '@fundamental-ngx/core/list';\nimport { ObjectStatusComponent } from '@fundamental-ngx/core/object-status';\nimport { ScrollbarDirective } from '@fundamental-ngx/core/scrollbar';\nimport { TextComponent } from '@fundamental-ngx/core/text';\nimport { FdTranslatePipe } from '@fundamental-ngx/i18n';\nimport { debounceTime } from 'rxjs';\nimport { MessagePopoverEntry, MessagePopoverErrorGroup } from '../../models/message-popover-entry.interface';\nimport { getIconForMessageType } from '../../utils';\n\nconst ANIMATION_EASING = 'cubic-bezier(0, 0, 0.2, 1)';\nconst ANIMATION_DURATION = 100;\n\n@Component({\n selector: 'fdp-messages-list',\n templateUrl: './messages-list.component.html',\n styleUrl: './messages-list.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [TabbableElementService, FdTranslatePipe],\n host: {\n class: 'fd-message-popover__view-container'\n },\n imports: [\n NgTemplateOutlet,\n CdkScrollable,\n ScrollbarDirective,\n ListModule,\n ObjectStatusComponent,\n LinkComponent,\n FdTranslatePipe,\n ClickedDirective,\n TextComponent\n ]\n})\nexport class MessagesListComponent implements AfterViewInit {\n /** Current Message Popover screen. Can be either `list` or `details`. */\n @Input()\n set currentScreen(value: 'list' | 'details') {\n const prev = this._currentScreen;\n this._currentScreen = value;\n if (prev && prev !== value) {\n this._animateScreenTransition(value);\n }\n }\n get currentScreen(): 'list' | 'details' {\n return this._currentScreen;\n }\n\n /** Filtered errors to render. */\n @Input()\n filteredErrors: MessagePopoverErrorGroup[];\n\n /** Current error entry. Used for details view. */\n @Input()\n currentEntry: Nullable<MessagePopoverEntry>;\n\n /** Event emitted when user clicks on error entry containing additional description. */\n @Output()\n openDetails = new EventEmitter<MessagePopoverEntry>();\n\n /** Event emitted when user clicks on error entry and item's element should be focused. */\n @Output()\n focusItem = new EventEmitter<MessagePopoverEntry>();\n\n /** Event emitted when user clicks on the field link to focus on the field itself. */\n @Output()\n closePopover = new EventEmitter<boolean>();\n\n /** @hidden */\n @ViewChild('listView', { read: ElementRef })\n protected listView: ElementRef;\n\n /** @hidden */\n @ViewChild('detailsView', { read: ElementRef })\n protected detailsView: ElementRef;\n\n /** @hidden */\n @ViewChild('listSection', { read: ElementRef })\n protected listSection: ElementRef;\n\n /** @hidden */\n @ViewChild('detailsSection', { read: ElementRef })\n protected detailsSection: ElementRef;\n\n /** @hidden */\n private _currentScreen: 'list' | 'details' = 'list';\n\n /** @hidden */\n private _activeListElement: Nullable<HTMLElement> = null;\n\n /** @hidden */\n private _listAnimation: Animation | null = null;\n\n /** @hidden */\n private _detailsAnimation: Animation | null = null;\n\n /** @hidden */\n private readonly _translatePipe = inject(FdTranslatePipe);\n\n /** @hidden */\n private readonly _additionalInfoText = this._translatePipe.transform('platformMessageView.additionalInformation');\n\n /** @hidden */\n constructor(\n private readonly _destroyRef: DestroyRef,\n private readonly _tabbableService: TabbableElementService,\n @Inject(DOCUMENT) private readonly _document: Document\n ) {\n this._destroyRef.onDestroy(() => {\n this._listAnimation?.cancel();\n this._listAnimation = null;\n this._detailsAnimation?.cancel();\n this._detailsAnimation = null;\n });\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n resizeObservable(this.detailsView.nativeElement)\n .pipe(debounceTime(20), takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n const { height } = this.detailsView.nativeElement.getBoundingClientRect();\n this.listSection.nativeElement.style.minHeight = `${height}px`;\n });\n }\n\n /** @hidden */\n showDetails(entry: MessagePopoverEntry): void {\n this._activeListElement = this._document.activeElement as HTMLElement;\n if (!entry.description.message) {\n this._focusElement(undefined, entry);\n return;\n }\n this.currentScreen = 'details';\n this.openDetails.emit(entry);\n }\n\n /** @hidden */\n _focusElement(event?: MouseEvent | KeyboardEvent, item?: MessagePopoverEntry): void {\n if (!item?.element?.nativeElement) {\n return;\n }\n event?.stopImmediatePropagation();\n this.closePopover.emit(false);\n this.focusItem.emit(item);\n setTimeout(() => {\n const tabbableElement = this._tabbableService.getTabbableElement(item.element?.nativeElement);\n tabbableElement?.focus();\n });\n }\n\n /** @hidden Map message type to icon name */\n protected getIconForType(type: string): string {\n return getIconForMessageType(type);\n }\n\n /** @hidden Get heading text for fd-text component */\n protected getHeadingText(item: MessagePopoverEntry): string {\n if (item.heading.type === 'string' && typeof item.heading.message === 'string') {\n return item.heading.message;\n }\n return '';\n }\n\n /** @hidden Get announcement text for screen reader when navigating to details */\n protected getAnnouncementText(entry: MessagePopoverEntry): string {\n let headingText = '';\n if (entry.heading.type === 'string' && entry.heading.message) {\n headingText = typeof entry.heading.message === 'string' ? entry.heading.message : '';\n }\n const additionalInfoText = this._additionalInfoText();\n return headingText ? `${headingText}. ${additionalInfoText}` : '';\n }\n\n /** @hidden Animate the transition between list and details screens. */\n private _animateScreenTransition(screen: 'list' | 'details'): void {\n const listEl = this.listSection?.nativeElement;\n const detailsEl = this.detailsSection?.nativeElement;\n\n if (!listEl || !detailsEl) {\n return;\n }\n\n this._listAnimation?.cancel();\n this._detailsAnimation?.cancel();\n\n if (screen === 'details') {\n this._animateListToDetails(listEl, detailsEl);\n } else {\n this._animateDetailsToList(listEl, detailsEl);\n }\n }\n\n /** @hidden Slide list out left, details in from right. */\n private _animateListToDetails(listEl: HTMLElement, detailsEl: HTMLElement): void {\n if (typeof listEl.animate !== 'function') {\n this._focusDetailsView();\n return;\n }\n\n this._listAnimation = listEl.animate(\n [\n { transform: 'translateX(0)', opacity: 1 },\n { transform: 'translateX(-50px)', opacity: 0 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._detailsAnimation = detailsEl.animate(\n [\n { transform: 'translateX(50px)', opacity: 0 },\n { transform: 'translateX(0)', opacity: 1 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._detailsAnimation.finished\n .then(() => {\n this._detailsAnimation = null;\n this._focusDetailsView();\n })\n .catch(() => {\n this._detailsAnimation = null;\n });\n }\n\n /** @hidden Slide details out right, list in from left. */\n private _animateDetailsToList(listEl: HTMLElement, detailsEl: HTMLElement): void {\n if (typeof listEl.animate !== 'function') {\n return;\n }\n\n this._detailsAnimation = detailsEl.animate(\n [\n { transform: 'translateX(0)', opacity: 1 },\n { transform: 'translateX(50px)', opacity: 0 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._listAnimation = listEl.animate(\n [\n { transform: 'translateX(-50px)', opacity: 0 },\n { transform: 'translateX(0)', opacity: 1 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._listAnimation.finished\n .then(() => {\n this._listAnimation = null;\n if (this._activeListElement) {\n this._activeListElement.focus();\n this._activeListElement = null;\n }\n })\n .catch(() => {\n this._listAnimation = null;\n });\n }\n\n /** @hidden Focus the first interactive element in the details view. */\n private _focusDetailsView(): void {\n if (!this.detailsView?.nativeElement) {\n return;\n }\n\n // Try to find the first tabbable element in the details view\n const firstTabbable = this._tabbableService.getTabbableElement(this.detailsView.nativeElement);\n\n if (firstTabbable) {\n firstTabbable.focus();\n }\n }\n}\n","<ng-template #headingTemplate let-item>\n <ng-template #directiveHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message || item.description.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.heading.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringHeading>\n {{ (item.heading.message | fdTranslate: { error: item.heading.error } : item.heading.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.heading.type === 'directive'\n ? directiveHeading\n : item.heading.type === 'string'\n ? stringHeading\n : i18nHeading\n \"\n ></ng-template>\n</ng-template>\n<ng-template #descriptionTemplate let-item>\n <ng-template #directiveDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.description.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringDescription>\n {{ (item.description.message | fdTranslate: { error: item.description.error } : item.description.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.description.type === 'directive'\n ? directiveDescription\n : item.description.type === 'string'\n ? stringDescription\n : i18nDescription\n \"\n ></ng-template>\n</ng-template>\n<div class=\"fd-message-view\">\n <!-- Screen reader announcement region for details view navigation -->\n <div aria-live=\"assertive\" aria-atomic=\"true\" class=\"fd-message-view__sr-only\">\n @if (currentScreen === 'details' && currentEntry) {\n {{ getAnnouncementText(currentEntry) }}\n }\n </div>\n <section\n #listSection\n class=\"fd-message-view__list\"\n [class.fd-message-view__list--hidden]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'details' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'details'\"\n tabindex=\"-1\"\n fd-scrollbar\n >\n <ul #listView fd-list class=\"message-popover__list fd-list--message-view\" [navigationIndicator]=\"true\">\n @for (group of filteredErrors; track group) {\n @if (group.group) {\n <li fd-list-group-header>\n <span fd-list-title>{{ group.group }}</span>\n </li>\n }\n @for (item of group.errors; track item; let i = $index) {\n <li\n fd-list-item\n [tabindex]=\"i === 0 ? 0 : -1\"\n [byline]=\"true\"\n [counter]=\"item.aggregatedMessages!\"\n (fdkClicked)=\"showDetails(item)\"\n >\n <ng-template #itemIcon>\n <span\n fd-object-status\n class=\"fd-list__icon\"\n [status]=\"item.state\"\n [glyph]=\"getIconForType(item.type)\"\n ></span>\n </ng-template>\n <ng-template #listSubtitle>\n @if (item.heading.type === 'string' && item.heading.message) {\n <fd-text\n [text]=\"getHeadingText(item)\"\n [maxLines]=\"3\"\n [expandable]=\"true\"\n (fdkClicked)=\"$event.stopPropagation()\"\n ></fd-text>\n } @else {\n <span fd-list-subline>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </span>\n }\n </ng-template>\n @if (item.element && !!item.description.message) {\n <span fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>\n <a tabindex=\"0\" fd-link (fdkClicked)=\"_focusElement($event, item)\">\n {{ item.fieldName }}\n </a>\n </span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </span>\n } @else {\n <a fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>{{ item.fieldName }}</span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </a>\n }\n </li>\n }\n }\n </ul>\n </section>\n <section\n #detailsSection\n class=\"fd-message-view__details\"\n [class.fd-message-view__details--visible]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'list' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'list'\"\n >\n <div #detailsView>\n @if (currentEntry) {\n <span class=\"fd-message-view__details-title\">\n <span\n fd-object-status\n class=\"fd-message-view__icon\"\n [status]=\"currentEntry.state\"\n [glyph]=\"getIconForType(currentEntry.type)\"\n ></span>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n @if (currentEntry.subtitle) {\n <span class=\"fd-message-view__details-subtitle\">\n {{ currentEntry.subtitle }}\n </span>\n }\n @if (currentEntry.description.message) {\n <span class=\"fd-message-view__details-description\">\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n }\n @if (currentEntry.link) {\n <span class=\"fd-message-view__details-link\">\n @if (currentEntry.link.href) {\n <a\n fd-link\n [attr.href]=\"currentEntry.link.href\"\n [attr.target]=\"currentEntry.link.target || '_blank'\"\n >\n {{ currentEntry.link.text }}\n </a>\n } @else {\n <a fd-link tabindex=\"0\" (fdkClicked)=\"currentEntry.link.callback?.()\">\n {{ currentEntry.link.text }}\n </a>\n }\n </span>\n }\n }\n </div>\n </section>\n</div>\n","import { EventEmitter, WritableSignal, computed, signal } from '@angular/core';\nimport { FormStates } from '@fundamental-ngx/cdk/forms';\nimport { Nullable, countBy } from '@fundamental-ngx/cdk/utils';\nimport { getFormState } from '@fundamental-ngx/platform/form';\nimport {\n MessagePopoverEntry,\n MessagePopoverError,\n MessagePopoverErrorGroup\n} from './models/message-popover-entry.interface';\nimport { MessagePopoverWrapper } from './models/message-popover-wrapper.interface';\nimport { MessagePopover, MessagePopoverState } from './models/message-popover.interface';\nimport { convertFormState, convertFormStateToMessagePopoverState } from './utils';\n\n/**\n * Abstract base class for message list components (MessagePopover and MessageView).\n * Contains shared logic for managing error states, filtering, and navigation between list/detail views.\n */\nexport abstract class MessageListShared implements MessagePopover {\n /** Event emits when user clicks on error entry and item's element needs to be focused. */\n focusItem = new EventEmitter<MessagePopoverEntry>();\n\n /** Current message popover screen. Can be `list` or `details`. */\n currentScreen: 'list' | 'details' = 'list';\n\n /** Current error entry. */\n currentEntry: Nullable<MessagePopoverEntry> = null;\n\n /** @hidden */\n _currentErrorType: WritableSignal<MessagePopoverError['group']> = signal('all');\n\n /** @hidden */\n _errorTypes$ = computed<MessagePopoverError[]>(() => {\n const countedErrors = this.countedErrors$();\n const errorTypes = Object.keys(countedErrors) as FormStates[];\n return errorTypes.map((errorType) => ({\n group: errorType,\n count: countedErrors[errorType],\n state: convertFormState(errorType)\n }));\n });\n\n /** @hidden */\n _priorityStateItemsCount$ = computed(() => this.countedErrors$()[this._priorityFormState$()!] || 0);\n\n /** @hidden */\n _priorityFormState$ = computed<FormStates>(() => {\n const countedErrors = this.countedErrors$();\n const errorTypes = Object.keys(countedErrors) as FormStates[];\n return getFormState(errorTypes);\n });\n\n /** @hidden */\n _priorityState$ = computed<Nullable<MessagePopoverState>>(() =>\n convertFormStateToMessagePopoverState(this._priorityFormState$())\n );\n\n /** @hidden */\n readonly _filteredErrors$ = computed(() => {\n const groupedErrors = this.groupedErrors$();\n const errorType = this._currentErrorType();\n\n if (errorType === 'all') {\n return groupedErrors;\n }\n\n const filteredErrors: MessagePopoverErrorGroup[] = [];\n groupedErrors.forEach((group) => {\n const errors = group.errors.filter((error) => error.type === errorType);\n\n if (errors.length === 0) {\n return;\n }\n\n filteredErrors.push({\n group: group.group,\n errors\n });\n });\n\n return filteredErrors;\n });\n\n /** @hidden */\n protected readonly groupedErrors$ = computed(() => this.wrapper$()?.errors$() || []);\n\n /** @hidden */\n protected readonly wrapper$ = signal<Nullable<MessagePopoverWrapper>>(null);\n\n /** @hidden */\n protected readonly countedErrors$ = computed(() => {\n const allErrors = this.groupedErrors$().flatMap((group) => group.errors);\n return countBy(allErrors, 'type');\n });\n\n /** @hidden */\n showList(): void {\n this.currentScreen = 'list';\n this.currentEntry = null;\n }\n\n /** @hidden */\n showDetails(entry: MessagePopoverEntry): void {\n this.currentScreen = 'details';\n this.currentEntry = entry;\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { mergeWith } from '@fundamental-ngx/cdk/utils';\nimport { MessagePopoverFormWrapperComponent } from './components/message-popover-form-wrapper/message-popover-form-wrapper.component';\nimport { MessagesListComponent } from './components/messages-list/messages-list.component';\nimport { FDP_MESSAGE_POPOVER_CONFIG, FDP_MESSAGE_POPOVER_DEFAULT_CONFIG, MessagePopoverConfig } from './default-config';\nimport { MessagePopoverFormItemDirective } from './directives/message-popover-form-item.directive';\n\n/**\n * @deprecated\n * Use direct imports of components and directives.\n */\n@NgModule({\n imports: [MessagePopoverFormWrapperComponent, MessagesListComponent, MessagePopoverFormItemDirective],\n exports: [MessagePopoverFormWrapperComponent, MessagesListComponent, MessagePopoverFormItemDirective],\n providers: [\n {\n provide: FDP_MESSAGE_POPOVER_CONFIG,\n useValue: FDP_MESSAGE_POPOVER_DEFAULT_CONFIG\n }\n ]\n})\nexport class PlatformMessagesSharedModule {\n /**\n * Method allows users to apply custom configuration.\n * @param config Object containing error definitions.\n */\n static withConfig(config: MessagePopoverConfig): ModuleWithProviders<PlatformMessagesSharedModule> {\n const customConfig = mergeWith(FDP_MESSAGE_POPOVER_DEFAULT_CONFIG, config, (obj, src) => {\n if (typeof obj === 'object' && !Array.isArray(obj)) {\n return Object.assign(obj, src);\n } else if (Array.isArray(obj)) {\n return obj.concat(src);\n } else {\n return src;\n }\n });\n\n return {\n ngModule: PlatformMessagesSharedModule,\n providers: [\n {\n provide: FDP_MESSAGE_POPOVER_CONFIG,\n useValue: customConfig\n }\n ]\n };\n }\n}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AAE,0BAA0B;AACnC,4BAAA,QAAQ,EAAE;AACb;AACJ;AACJ,iBAAA;;;ACpBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-platform-messages-shared.mjs","sources":["../../../../libs/platform/messages-shared/default-config.ts","../../../../libs/platform/messages-shared/directives/message-popover-form-item.directive.ts","../../../../libs/platform/messages-shared/utils.ts","../../../../libs/platform/messages-shared/components/message-popover-form-wrapper/message-popover-form-wrapper.component.ts","../../../../libs/platform/messages-shared/components/messages-list/messages-list.component.ts","../../../../libs/platform/messages-shared/components/messages-list/messages-list.component.html","../../../../libs/platform/messages-shared/message-list-shared.ts","../../../../libs/platform/messages-shared/platform-messages-shared.module.ts","../../../../libs/platform/messages-shared/fundamental-ngx-platform-messages-shared.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { FormStates } from '@fundamental-ngx/cdk/forms';\n\nexport interface MessagePopoverErrorConfig {\n heading: string;\n description?: string;\n type: FormStates;\n}\n\nexport interface MessagePopoverConfig {\n /**\n * Errors object where key is error type and value is i18n string.\n */\n errors: Record<string, string | MessagePopoverErrorConfig>;\n}\n\nexport const FDP_MESSAGE_POPOVER_DEFAULT_CONFIG: MessagePopoverConfig = {\n errors: {\n email: 'platformMessagePopover.defaultErrors.email',\n max: 'platformMessagePopover.defaultErrors.max',\n maxlength: 'platformMessagePopover.defaultErrors.maxLength',\n min: 'platformMessagePopover.defaultErrors.min',\n minlength: 'platformMessagePopover.defaultErrors.minLength',\n pattern: 'platformMessagePopover.defaultErrors.pattern',\n required: 'platformMessagePopover.defaultErrors.required',\n requiredTrue: 'platformMessagePopover.defaultErrors.requiredTrue'\n }\n};\n\nexport const FDP_MESSAGE_POPOVER_CONFIG = new InjectionToken<MessagePopoverConfig>('FdpMessagePopoverConfig');\n","import { Directive, ElementRef, Input, Optional } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MessagePopoverConfig } from '../default-config';\n\n@Directive({\n selector: '[fdpMessagePopoverFormItem]'\n})\nexport class MessagePopoverFormItemDirective {\n /** Form item name. */\n @Input('fdpMessagePopoverFormItem')\n label: string;\n\n /** Error type definition. */\n @Input()\n errorTypes: MessagePopoverConfig['errors'];\n\n /** @hidden */\n constructor(\n public readonly elementRef: ElementRef,\n @Optional() public readonly control: NgControl\n ) {}\n}\n","import { FormStates } from '@fundamental-ngx/cdk/forms';\nimport { ObjectStatus } from '@fundamental-ngx/core/object-status';\nimport { MessagePopoverState } from './models/message-popover.interface';\n\n/**\n * Converts Object Status into Message Popover State\n * @param status Object status\n * @returns Message Popover State.\n */\nexport function convertFormStateToMessagePopoverState(state: FormStates): MessagePopoverState {\n switch (state) {\n case 'error':\n return 'negative';\n case 'warning':\n return 'critical';\n case 'default':\n return 'neutral';\n default:\n return state;\n }\n}\n\n/**\n * Converts Form State into Object status type.\n * @param type Form state.\n * @returns `ObjectStatus` type.\n */\nexport function convertFormState(type: FormStates): ObjectStatus {\n switch (type) {\n case 'success':\n return 'positive';\n case 'error':\n return 'negative';\n case 'warning':\n return 'critical';\n case 'information':\n return 'informative';\n default:\n return 'neutral';\n }\n}\n\n/**\n * Maps message type to icon name.\n * @param type Message type (error, success, warning, information, default).\n * @returns Icon name for the given message type.\n */\nexport function getIconForMessageType(type: string): string {\n switch (type) {\n case 'error':\n return 'error';\n case 'success':\n return 'sys-enter-2';\n case 'warning':\n return 'alert';\n case 'information':\n return 'information';\n default:\n return 'sys-help-2';\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n DestroyRef,\n Inject,\n Input,\n OnDestroy,\n QueryList,\n ViewEncapsulation,\n signal\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AbstractControl, ControlContainer, FormGroup, FormGroupDirective, NgForm } from '@angular/forms';\nimport { FD_FORM_FIELD_CONTROL, FormStates } from '@fundamental-ngx/cdk/forms';\nimport { Nullable } from '@fundamental-ngx/cdk/utils';\nimport {\n FormFieldErrorDirectiveContext,\n PlatformFormField,\n PlatformFormFieldControl\n} from '@fundamental-ngx/platform/shared';\nimport { Subject, Subscription, filter, startWith, switchMap, zip } from 'rxjs';\nimport { FDP_MESSAGE_POPOVER_CONFIG, MessagePopoverConfig, MessagePopoverErrorConfig } from '../../default-config';\nimport { MessagePopoverFormItemDirective } from '../../directives/message-popover-form-item.directive';\nimport {\n MessagePopoverEntry,\n MessagePopoverErrorGroup,\n MessagePopoverErrorText\n} from '../../models/message-popover-entry.interface';\nimport { MessagePopoverWrapper } from '../../models/message-popover-wrapper.interface';\nimport { MessagePopover } from '../../models/message-popover.interface';\nimport { convertFormState } from '../../utils';\n\nexport type MessagePopoverForm = NgForm | FormGroupDirective;\n\n@Component({\n selector: 'fdp-message-popover-form-wrapper',\n template: `<ng-content></ng-content>`,\n exportAs: 'messagePopoverWrapper',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class MessagePopoverFormWrapperComponent implements MessagePopoverWrapper, AfterViewInit, OnDestroy {\n /** @hidden */\n @ContentChildren(ControlContainer, { descendants: true })\n private readonly _projectedForm: QueryList<MessagePopoverForm>;\n\n /** @hidden */\n @ContentChildren(FD_FORM_FIELD_CONTROL, { descendants: true })\n private readonly _projectedFormFieldControls!: QueryList<PlatformFormFieldControl>;\n\n /** @hidden */\n @ContentChildren(MessagePopoverFormItemDirective, { descendants: true })\n private readonly _directiveItems!: QueryList<MessagePopoverFormItemDirective>;\n\n /** Message Popover instance. */\n messagePopover$ = new Subject<MessagePopover>();\n\n /**\n * User-passed forms.\n */\n @Input()\n set forms(forms: MessagePopoverForm | MessagePopoverForm[]) {\n if (!forms) {\n return;\n }\n if (!Array.isArray(forms)) {\n forms = [forms];\n }\n this._ngForms = forms;\n this._startListeningForErrors();\n }\n\n /** User-passed form fields. */\n @Input()\n set formFields(value: PlatformFormFieldControl[]) {\n this._formFields = value;\n this._listenToFormFieldErrors(value);\n }\n\n get formFields(): PlatformFormFieldControl[] {\n return this._formFields;\n }\n\n /**\n * Error models Signal. Emitted when form submitted and contains invalid fields.\n */\n readonly errors$ = signal<MessagePopoverErrorGroup[]>([]);\n\n /** @hidden */\n private _formFields: PlatformFormFieldControl[] = [];\n\n /** @hidden */\n private _formErrorsSubscription: Subscription | undefined;\n\n /** @hidden */\n private _ngForms: (NgForm | FormGroupDirective)[] = [];\n\n /** @hidden */\n private _formItemErrorsSubscription = new Subscription();\n\n /** @hidden */\n private _formSubmitted = false;\n\n /** @hidden */\n constructor(\n private readonly _destroyRef: DestroyRef,\n @Inject(FDP_MESSAGE_POPOVER_CONFIG) private readonly _config: MessagePopoverConfig\n ) {}\n\n /** @hidden */\n ngAfterViewInit(): void {\n // Forms are passed via input property.\n if (this._ngForms.length > 0) {\n return;\n }\n this._projectedForm?.changes.pipe(startWith(null), takeUntilDestroyed(this._destroyRef)).subscribe(() => {\n this._ngForms = this._projectedForm.toArray();\n this._startListeningForErrors();\n });\n }\n\n /**\n * Sets Message Popover component instance.\n */\n setMessagePopover(messagePopover: MessagePopover): void {\n this.messagePopover$.next(messagePopover);\n // this.messagePopover = messagePopover;\n }\n\n /**\n * Programmatically add new form to array of forms.\n * @param forms\n */\n addForms(forms: MessagePopoverForm | MessagePopoverForm[]): void {\n const formsArray = Array.isArray(forms) ? forms : [forms];\n this._ngForms.push(...formsArray);\n this._startListeningForErrors();\n }\n\n /**\n * Programmatically add new form fields to array of listened form fields.\n * @param formFields\n */\n addFormFields(formFields: PlatformFormFieldControl[]): void {\n this._formFields.push(...formFields);\n this._listenToFormFieldErrors(this._formFields);\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._formItemErrorsSubscription.unsubscribe();\n }\n\n /**\n * @hidden\n * Listens to the form submission and collects form control errors.\n */\n private _startListeningForErrors(): void {\n if (!this._ngForms) {\n return;\n }\n this._formErrorsSubscription?.unsubscribe();\n this.errors$.set([]);\n\n const formSubmitEvents = this._ngForms.map((form) =>\n form.ngSubmit.pipe(\n switchMap(() =>\n form.statusChanges!.pipe(\n startWith(form.status),\n filter((status: string) => status.toLowerCase() !== 'pending')\n )\n )\n )\n );\n\n this._formErrorsSubscription = zip(...formSubmitEvents)\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n this._formSubmitted = true;\n const errors =\n this._directiveItems.length > 0 ? this._collectPlainFormData() : this._collectAdvancedFormData();\n\n this.errors$.set(errors);\n });\n\n this._listenToFormFieldErrors(this._projectedFormFieldControls.toArray());\n\n this._projectedFormFieldControls?.changes.subscribe(() => {\n this._listenToFormFieldErrors(this._projectedFormFieldControls.toArray());\n });\n }\n\n /** @hidden */\n private _listenToFormFieldErrors(fields: PlatformFormFieldControl[]): void {\n this._formItemErrorsSubscription.unsubscribe();\n\n this._formItemErrorsSubscription = new Subscription();\n\n fields?.forEach((field) => {\n this._formItemErrorsSubscription.add(\n field.formField?.errorsChange$.subscribe(() => {\n if (!this._formSubmitted) {\n return;\n }\n const errors =\n this._directiveItems.length > 0\n ? this._collectPlainFormData()\n : this._collectAdvancedFormData();\n this.errors$.set(errors);\n })\n );\n });\n }\n\n /** @hidden */\n private _collectPlainFormData(): MessagePopoverErrorGroup[] {\n const errors: MessagePopoverErrorGroup[] = [\n {\n errors: []\n }\n ];\n\n const fields = this._directiveItems.toArray();\n\n this._ngForms.forEach((form) => {\n Object.keys(form.form.controls).forEach((controlName) => {\n const control = form.form.get(controlName);\n const field = fields.find((formField) => formField.control?.name === controlName);\n\n if (!control?.errors || !field) {\n return;\n }\n\n const configErrors = Object.keys(this._config.errors);\n\n Object.keys(control.errors)\n .filter((error) => configErrors.includes(error))\n .forEach((errorKey) => {\n const errorObj = control.errors![errorKey];\n\n const errorTextModel = this._getConfigErrorModel(errorKey, field.errorTypes);\n const errorConfig = field?.errorTypes ? field?.errorTypes[errorKey] : null;\n const errorState =\n errorConfig && this._isAdvancedError(errorConfig) && errorConfig.type\n ? errorConfig.type\n : 'error';\n const error: MessagePopoverEntry = {\n name: controlName,\n type: errorTextModel.type,\n state: convertFormState(errorState),\n fieldName: field?.label ?? '',\n element: field?.elementRef,\n heading: {\n type: 'string',\n error: errorObj,\n message: errorTextModel.heading\n },\n description: {\n type: 'string',\n error: errorObj,\n message: errorTextModel.description\n },\n errors: control!.errors\n };\n\n errors[0].errors.push(error);\n });\n });\n });\n\n return errors;\n }\n\n /** @hidden */\n private _collectAdvancedFormData(): MessagePopoverErrorGroup[] {\n let errors: MessagePopoverErrorGroup[] = [];\n const fields = this.formFields.length > 0 ? this.formFields : this._projectedFormFieldControls.toArray();\n\n /**\n * Iterates over form controls to collect their errors.\n * @param form Form Group or a collection of Form Groups.\n */\n const iterateOverForm = (form: FormGroup | FormGroup[]): MessagePopoverErrorGroup[] => {\n if (Array.isArray(form)) {\n form.forEach((formGroup) => {\n errors = iterateOverForm(formGroup);\n });\n return errors;\n }\n Object.keys(form.controls).forEach((controlName) => {\n const control = form.get(controlName);\n const field = fields.find((formField) => formField.id === controlName);\n\n if (control instanceof FormGroup) {\n errors = iterateOverForm(control);\n }\n\n if (!control?.errors || !field) {\n return;\n }\n\n Object.keys(control.errors).forEach((errorKey) => {\n const errorDirective = field.formField?.groupedErrors.find(\n (groupedError) => groupedError.directive.error === errorKey\n );\n\n const groupName = this._getGroupName(field?.formField);\n const error = this._getErrorModel(\n controlName,\n groupName,\n control,\n field,\n errorKey,\n errorDirective,\n control.errors![errorKey]\n );\n\n let errorGroupIndex = errors.findIndex((errorGroup) => errorGroup.group === groupName);\n\n if (errorGroupIndex === -1) {\n errorGroupIndex =\n errors.push({\n group: groupName,\n errors: []\n }) - 1;\n }\n\n const group = errors[errorGroupIndex];\n\n group.errors.push(error);\n });\n });\n\n return errors;\n };\n\n return iterateOverForm(this._ngForms.map((form) => form.form));\n }\n\n /**\n * @hidden\n * Creates error model\n */\n private _getErrorModel(\n controlName: string,\n groupName: string,\n control: AbstractControl,\n field: PlatformFormFieldControl,\n errorKey: string,\n errorDirective?: FormFieldErrorDirectiveContext,\n error?: any\n ): MessagePopoverEntry {\n let state: FormStates = 'error';\n const configError = this._config.errors[errorKey];\n\n if (errorDirective?.directive.type) {\n state = errorDirective.directive.type;\n } else if (this._isAdvancedError(configError)) {\n state = configError.type;\n }\n\n return {\n name: controlName,\n type: state,\n state: convertFormState(state),\n group: groupName,\n fieldName: field?.formField?.label ?? '',\n heading: this._getErrorText(field, errorDirective, 'heading', errorKey, error),\n description: this._getErrorText(field, errorDirective, 'description', errorKey, error),\n errors: control!.errors,\n formField: field,\n element: field?.elementRef\n };\n }\n\n /**\n * @hidden\n * Creates error text based on the type of the error.\n * @param field Form Field Control.\n * @param errorDirective Optional Error directive\n * @param section Section where text should be rendered.\n * @param errorKey\n * @param error\n */\n private _getErrorText(\n field: PlatformFormFieldControl,\n errorDirective: Nullable<FormFieldErrorDirectiveContext>,\n section: 'heading' | 'description' = 'heading',\n errorKey: string,\n error?: any\n ): MessagePopoverErrorText {\n const errorTextObj: MessagePopoverErrorText = {\n error: errorDirective?.error,\n type: errorDirective?.directive ? 'directive' : field?.formField?.i18Strings ? 'templateRef' : 'string'\n };\n\n if (errorTextObj.type === 'string') {\n const errorTextModel = this._getConfigErrorModel(errorKey);\n\n errorTextObj.error = error;\n errorTextObj.message = errorTextModel[section];\n return errorTextObj;\n }\n\n if (errorDirective?.directive) {\n errorTextObj.message =\n section === 'heading'\n ? (errorDirective.directive._headingTemplateRef ?? errorDirective.directive._descriptionTemplateRef)\n : errorDirective.directive._descriptionTemplateRef;\n return errorTextObj;\n }\n\n errorTextObj.message = field?.formField?.i18Strings ?? null;\n return errorTextObj;\n }\n\n /** @hidden */\n private _getGroupName(formField: Nullable<PlatformFormField>): string {\n const parts: string[] = [];\n\n if (formField?.formGroupContainer?.mainTitle) {\n parts.push(formField.formGroupContainer.mainTitle);\n }\n\n if (formField?.formFieldGroup?.label) {\n parts.push(formField.formFieldGroup.label);\n }\n\n return parts.join(', ');\n }\n\n /** @hidden */\n private _getConfigErrorModel(\n errorKey: string,\n customErrorTypes?: MessagePopoverConfig['errors']\n ): MessagePopoverErrorConfig {\n const configError =\n customErrorTypes && customErrorTypes[errorKey] ? customErrorTypes[errorKey] : this._config.errors[errorKey];\n const isPlainError = !this._isAdvancedError(configError);\n const errorType = isPlainError ? 'error' : configError.type;\n const headingMessage = isPlainError ? configError : configError.heading;\n const descriptionMessage = isPlainError ? undefined : configError.description;\n\n return {\n type: errorType,\n heading: headingMessage,\n description: descriptionMessage\n };\n }\n\n /** @hidden */\n private _isAdvancedError(error: string | MessagePopoverErrorConfig): error is MessagePopoverErrorConfig {\n return !!error && typeof error !== 'string';\n }\n}\n","import { CdkScrollable } from '@angular/cdk/overlay';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation,\n inject\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ClickedDirective, Nullable, TabbableElementService, resizeObservable } from '@fundamental-ngx/cdk/utils';\nimport { LinkComponent } from '@fundamental-ngx/core/link';\nimport { ListModule } from '@fundamental-ngx/core/list';\nimport { ObjectStatusComponent } from '@fundamental-ngx/core/object-status';\nimport { ScrollbarDirective } from '@fundamental-ngx/core/scrollbar';\nimport { TextComponent } from '@fundamental-ngx/core/text';\nimport { FdTranslatePipe } from '@fundamental-ngx/i18n';\nimport { debounceTime } from 'rxjs';\nimport { MessagePopoverEntry, MessagePopoverErrorGroup } from '../../models/message-popover-entry.interface';\nimport { getIconForMessageType } from '../../utils';\n\nconst ANIMATION_EASING = 'cubic-bezier(0, 0, 0.2, 1)';\nconst ANIMATION_DURATION = 100;\n\n@Component({\n selector: 'fdp-messages-list',\n templateUrl: './messages-list.component.html',\n styleUrl: './messages-list.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [TabbableElementService, FdTranslatePipe],\n host: {\n class: 'fd-message-popover__view-container'\n },\n imports: [\n NgTemplateOutlet,\n CdkScrollable,\n ScrollbarDirective,\n ListModule,\n ObjectStatusComponent,\n LinkComponent,\n FdTranslatePipe,\n ClickedDirective,\n TextComponent\n ]\n})\nexport class MessagesListComponent implements AfterViewInit {\n /** Current Message Popover screen. Can be either `list` or `details`. */\n @Input()\n set currentScreen(value: 'list' | 'details') {\n const prev = this._currentScreen;\n this._currentScreen = value;\n if (prev && prev !== value) {\n this._animateScreenTransition(value);\n }\n }\n get currentScreen(): 'list' | 'details' {\n return this._currentScreen;\n }\n\n /** Filtered errors to render. */\n @Input()\n filteredErrors: MessagePopoverErrorGroup[];\n\n /** Current error entry. Used for details view. */\n @Input()\n currentEntry: Nullable<MessagePopoverEntry>;\n\n /** Event emitted when user clicks on error entry containing additional description. */\n @Output()\n openDetails = new EventEmitter<MessagePopoverEntry>();\n\n /** Event emitted when user clicks on error entry and item's element should be focused. */\n @Output()\n focusItem = new EventEmitter<MessagePopoverEntry>();\n\n /** Event emitted when user clicks on the field link to focus on the field itself. */\n @Output()\n closePopover = new EventEmitter<boolean>();\n\n /** @hidden */\n @ViewChild('listView', { read: ElementRef })\n protected listView: ElementRef;\n\n /** @hidden */\n @ViewChild('detailsView', { read: ElementRef })\n protected detailsView: ElementRef;\n\n /** @hidden */\n @ViewChild('listSection', { read: ElementRef })\n protected listSection: ElementRef;\n\n /** @hidden */\n @ViewChild('detailsSection', { read: ElementRef })\n protected detailsSection: ElementRef;\n\n /** @hidden */\n private _currentScreen: 'list' | 'details' = 'list';\n\n /** @hidden */\n private _activeListElement: Nullable<HTMLElement> = null;\n\n /** @hidden */\n private _listAnimation: Animation | null = null;\n\n /** @hidden */\n private _detailsAnimation: Animation | null = null;\n\n /** @hidden */\n private readonly _translatePipe = inject(FdTranslatePipe);\n\n /** @hidden */\n private readonly _additionalInfoText = this._translatePipe.transform('platformMessageView.additionalInformation');\n\n /** @hidden */\n constructor(\n private readonly _destroyRef: DestroyRef,\n private readonly _tabbableService: TabbableElementService,\n @Inject(DOCUMENT) private readonly _document: Document\n ) {\n this._destroyRef.onDestroy(() => {\n this._listAnimation?.cancel();\n this._listAnimation = null;\n this._detailsAnimation?.cancel();\n this._detailsAnimation = null;\n });\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n resizeObservable(this.detailsView.nativeElement)\n .pipe(debounceTime(20), takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n const { height } = this.detailsView.nativeElement.getBoundingClientRect();\n this.listSection.nativeElement.style.minHeight = `${height}px`;\n });\n }\n\n /** @hidden */\n showDetails(entry: MessagePopoverEntry): void {\n this._activeListElement = this._document.activeElement as HTMLElement;\n if (!entry.description.message) {\n this._focusElement(undefined, entry);\n return;\n }\n this.currentScreen = 'details';\n this.openDetails.emit(entry);\n }\n\n /** @hidden */\n _focusElement(event?: MouseEvent | KeyboardEvent, item?: MessagePopoverEntry): void {\n if (!item?.element?.nativeElement) {\n return;\n }\n event?.stopImmediatePropagation();\n this.closePopover.emit(false);\n this.focusItem.emit(item);\n setTimeout(() => {\n const tabbableElement = this._tabbableService.getTabbableElement(item.element?.nativeElement);\n tabbableElement?.focus();\n });\n }\n\n /** @hidden Map message type to icon name */\n protected getIconForType(type: string): string {\n return getIconForMessageType(type);\n }\n\n /** @hidden Get heading text for fd-text component */\n protected getHeadingText(item: MessagePopoverEntry): string {\n if (item.heading.type === 'string' && typeof item.heading.message === 'string') {\n return item.heading.message;\n }\n return '';\n }\n\n /** @hidden Get announcement text for screen reader when navigating to details */\n protected getAnnouncementText(entry: MessagePopoverEntry): string {\n let headingText = '';\n if (entry.heading.type === 'string' && entry.heading.message) {\n headingText = typeof entry.heading.message === 'string' ? entry.heading.message : '';\n } else if (entry.heading.type === 'directive' && typeof entry.heading.error === 'string') {\n headingText = entry.heading.error;\n }\n const additionalInfoText = this._additionalInfoText();\n return headingText ? `${headingText}. ${additionalInfoText}` : '';\n }\n\n /** @hidden Animate the transition between list and details screens. */\n private _animateScreenTransition(screen: 'list' | 'details'): void {\n const listEl = this.listSection?.nativeElement;\n const detailsEl = this.detailsSection?.nativeElement;\n\n if (!listEl || !detailsEl) {\n return;\n }\n\n this._listAnimation?.cancel();\n this._detailsAnimation?.cancel();\n\n if (screen === 'details') {\n this._animateListToDetails(listEl, detailsEl);\n } else {\n this._animateDetailsToList(listEl, detailsEl);\n }\n }\n\n /** @hidden Slide list out left, details in from right. */\n private _animateListToDetails(listEl: HTMLElement, detailsEl: HTMLElement): void {\n if (typeof listEl.animate !== 'function') {\n this._focusDetailsView();\n return;\n }\n\n this._listAnimation = listEl.animate(\n [\n { transform: 'translateX(0)', opacity: 1 },\n { transform: 'translateX(-50px)', opacity: 0 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._detailsAnimation = detailsEl.animate(\n [\n { transform: 'translateX(50px)', opacity: 0 },\n { transform: 'translateX(0)', opacity: 1 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._detailsAnimation.finished\n .then(() => {\n this._detailsAnimation = null;\n this._focusDetailsView();\n })\n .catch(() => {\n this._detailsAnimation = null;\n });\n }\n\n /** @hidden Slide details out right, list in from left. */\n private _animateDetailsToList(listEl: HTMLElement, detailsEl: HTMLElement): void {\n if (typeof listEl.animate !== 'function') {\n return;\n }\n\n this._detailsAnimation = detailsEl.animate(\n [\n { transform: 'translateX(0)', opacity: 1 },\n { transform: 'translateX(50px)', opacity: 0 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._listAnimation = listEl.animate(\n [\n { transform: 'translateX(-50px)', opacity: 0 },\n { transform: 'translateX(0)', opacity: 1 }\n ],\n { duration: ANIMATION_DURATION, easing: ANIMATION_EASING, fill: 'forwards' }\n );\n\n this._listAnimation.finished\n .then(() => {\n this._listAnimation = null;\n if (this._activeListElement) {\n this._activeListElement.focus();\n this._activeListElement = null;\n }\n })\n .catch(() => {\n this._listAnimation = null;\n });\n }\n\n /** @hidden Focus the first interactive element in the details view. */\n private _focusDetailsView(): void {\n if (!this.detailsView?.nativeElement) {\n return;\n }\n\n // Try to find the first tabbable element in the details view\n const firstTabbable = this._tabbableService.getTabbableElement(this.detailsView.nativeElement);\n\n if (firstTabbable) {\n firstTabbable.focus();\n }\n }\n}\n","<ng-template #headingTemplate let-item>\n <ng-template #directiveHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message || item.description.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.heading.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nHeading>\n <ng-template\n [ngTemplateOutlet]=\"item.heading.message\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringHeading>\n {{ (item.heading.message | fdTranslate: { error: item.heading.error } : item.heading.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.heading.type === 'directive'\n ? directiveHeading\n : item.heading.type === 'string'\n ? stringHeading\n : i18nHeading\n \"\n ></ng-template>\n</ng-template>\n<ng-template #descriptionTemplate let-item>\n <ng-template #directiveDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.description.error }\"\n ></ng-template>\n </ng-template>\n <ng-template #i18nDescription>\n <ng-template\n [ngTemplateOutlet]=\"item.description.message!\"\n [ngTemplateOutletContext]=\"{ $implicit: item.errors }\"\n ></ng-template>\n </ng-template>\n <ng-template #stringDescription>\n {{ (item.description.message | fdTranslate: { error: item.description.error } : item.description.message)() }}\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"\n item.description.type === 'directive'\n ? directiveDescription\n : item.description.type === 'string'\n ? stringDescription\n : i18nDescription\n \"\n ></ng-template>\n</ng-template>\n<div class=\"fd-message-view\">\n <!-- Screen reader announcement region for details view navigation -->\n <div aria-live=\"assertive\" aria-atomic=\"true\" class=\"fd-message-view__sr-only\">\n @if (currentScreen === 'details' && currentEntry) {\n {{ getAnnouncementText(currentEntry) }}\n }\n </div>\n <section\n #listSection\n class=\"fd-message-view__list\"\n [class.fd-message-view__list--hidden]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'details' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'details'\"\n tabindex=\"-1\"\n fd-scrollbar\n >\n <ul #listView fd-list class=\"message-popover__list fd-list--message-view\" [navigationIndicator]=\"true\">\n @for (group of filteredErrors; track group.group ?? group.errors[0]?.name ?? $index) {\n @if (group.group) {\n <li fd-list-group-header>\n <span fd-list-title>{{ group.group }}</span>\n </li>\n }\n @for (item of group.errors; track item.name; let i = $index) {\n <li\n fd-list-item\n [tabindex]=\"i === 0 ? 0 : -1\"\n [byline]=\"true\"\n [counter]=\"item.aggregatedMessages!\"\n (fdkClicked)=\"showDetails(item)\"\n >\n <ng-template #itemIcon>\n <span\n fd-object-status\n class=\"fd-list__icon\"\n [status]=\"item.state\"\n [glyph]=\"getIconForType(item.type)\"\n ></span>\n </ng-template>\n <ng-template #listSubtitle>\n @if (item.heading.type === 'string' && item.heading.message) {\n <fd-text\n [text]=\"getHeadingText(item)\"\n [maxLines]=\"3\"\n [expandable]=\"true\"\n (fdkClicked)=\"$event.stopPropagation()\"\n ></fd-text>\n } @else {\n <span fd-list-subline>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </span>\n }\n </ng-template>\n @if (item.element && !!item.description.message) {\n <span fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>\n <a tabindex=\"0\" fd-link (fdkClicked)=\"_focusElement($event, item)\">\n {{ item.fieldName }}\n </a>\n </span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </span>\n } @else {\n <a fd-list-link [navigationIndicator]=\"!!item.description.message\">\n <ng-template [ngTemplateOutlet]=\"itemIcon\"></ng-template>\n <span fd-list-content>\n <span fd-list-title>{{ item.fieldName }}</span>\n <ng-template [ngTemplateOutlet]=\"listSubtitle\"></ng-template>\n </span>\n </a>\n }\n </li>\n }\n }\n </ul>\n </section>\n <section\n #detailsSection\n class=\"fd-message-view__details\"\n [class.fd-message-view__details--visible]=\"currentScreen === 'details'\"\n [attr.inert]=\"currentScreen === 'list' ? '' : null\"\n [attr.aria-hidden]=\"currentScreen === 'list'\"\n >\n <div #detailsView>\n @if (currentEntry) {\n <span class=\"fd-message-view__details-title\">\n <span\n fd-object-status\n class=\"fd-message-view__icon\"\n [status]=\"currentEntry.state\"\n [glyph]=\"getIconForType(currentEntry.type)\"\n ></span>\n <ng-template\n [ngTemplateOutlet]=\"headingTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n @if (currentEntry.subtitle) {\n <span class=\"fd-message-view__details-subtitle\">\n {{ currentEntry.subtitle }}\n </span>\n }\n @if (currentEntry.description.message) {\n <span class=\"fd-message-view__details-description\">\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: currentEntry }\"\n ></ng-template>\n </span>\n }\n @if (currentEntry.link) {\n <span class=\"fd-message-view__details-link\">\n @if (currentEntry.link.href) {\n <a\n fd-link\n [attr.href]=\"currentEntry.link.href\"\n [attr.target]=\"currentEntry.link.target || '_blank'\"\n >\n {{ currentEntry.link.text }}\n </a>\n } @else {\n <a fd-link tabindex=\"0\" (fdkClicked)=\"currentEntry.link.callback?.()\">\n {{ currentEntry.link.text }}\n </a>\n }\n </span>\n }\n }\n </div>\n </section>\n</div>\n","import { EventEmitter, WritableSignal, computed, signal } from '@angular/core';\nimport { FormStates } from '@fundamental-ngx/cdk/forms';\nimport { Nullable, countBy } from '@fundamental-ngx/cdk/utils';\nimport { getFormState } from '@fundamental-ngx/platform/form';\nimport {\n MessagePopoverEntry,\n MessagePopoverError,\n MessagePopoverErrorGroup\n} from './models/message-popover-entry.interface';\nimport { MessagePopoverWrapper } from './models/message-popover-wrapper.interface';\nimport { MessagePopover, MessagePopoverState } from './models/message-popover.interface';\nimport { convertFormState, convertFormStateToMessagePopoverState } from './utils';\n\n/**\n * Abstract base class for message list components (MessagePopover and MessageView).\n * Contains shared logic for managing error states, filtering, and navigation between list/detail views.\n */\nexport abstract class MessageListShared implements MessagePopover {\n /** Event emits when user clicks on error entry and item's element needs to be focused. */\n focusItem = new EventEmitter<MessagePopoverEntry>();\n\n /** Current message popover screen. Can be `list` or `details`. */\n currentScreen: 'list' | 'details' = 'list';\n\n /** Current error entry. */\n currentEntry: Nullable<MessagePopoverEntry> = null;\n\n /** @hidden */\n _currentErrorType: WritableSignal<MessagePopoverError['group']> = signal('all');\n\n /** @hidden */\n _errorTypes$ = computed<MessagePopoverError[]>(() => {\n const countedErrors = this.countedErrors$();\n const errorTypes = Object.keys(countedErrors) as FormStates[];\n return errorTypes.map((errorType) => ({\n group: errorType,\n count: countedErrors[errorType],\n state: convertFormState(errorType)\n }));\n });\n\n /** @hidden */\n _priorityStateItemsCount$ = computed(() => this.countedErrors$()[this._priorityFormState$()!] || 0);\n\n /** @hidden */\n _priorityFormState$ = computed<FormStates>(() => {\n const countedErrors = this.countedErrors$();\n const errorTypes = Object.keys(countedErrors) as FormStates[];\n return getFormState(errorTypes);\n });\n\n /** @hidden */\n _priorityState$ = computed<Nullable<MessagePopoverState>>(() =>\n convertFormStateToMessagePopoverState(this._priorityFormState$())\n );\n\n /** @hidden */\n readonly _filteredErrors$ = computed(() => {\n const groupedErrors = this.groupedErrors$();\n const errorType = this._currentErrorType();\n\n if (errorType === 'all') {\n return groupedErrors;\n }\n\n const filteredErrors: MessagePopoverErrorGroup[] = [];\n groupedErrors.forEach((group) => {\n const errors = group.errors.filter((error) => error.type === errorType);\n\n if (errors.length === 0) {\n return;\n }\n\n filteredErrors.push({\n group: group.group,\n errors\n });\n });\n\n return filteredErrors;\n });\n\n /** @hidden */\n protected readonly groupedErrors$ = computed(() => this.wrapper$()?.errors$() || []);\n\n /** @hidden */\n protected readonly wrapper$ = signal<Nullable<MessagePopoverWrapper>>(null);\n\n /** @hidden */\n protected readonly countedErrors$ = computed(() => {\n const allErrors = this.groupedErrors$().flatMap((group) => group.errors);\n return countBy(allErrors, 'type');\n });\n\n /** @hidden */\n showList(): void {\n this.currentScreen = 'list';\n this.currentEntry = null;\n }\n\n /** @hidden */\n showDetails(entry: MessagePopoverEntry): void {\n this.currentScreen = 'details';\n this.currentEntry = entry;\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { mergeWith } from '@fundamental-ngx/cdk/utils';\nimport { MessagePopoverFormWrapperComponent } from './components/message-popover-form-wrapper/message-popover-form-wrapper.component';\nimport { MessagesListComponent } from './components/messages-list/messages-list.component';\nimport { FDP_MESSAGE_POPOVER_CONFIG, FDP_MESSAGE_POPOVER_DEFAULT_CONFIG, MessagePopoverConfig } from './default-config';\nimport { MessagePopoverFormItemDirective } from './directives/message-popover-form-item.directive';\n\n/**\n * @deprecated\n * Use direct imports of components and directives.\n */\n@NgModule({\n imports: [MessagePopoverFormWrapperComponent, MessagesListComponent, MessagePopoverFormItemDirective],\n exports: [MessagePopoverFormWrapperComponent, MessagesListComponent, MessagePopoverFormItemDirective],\n providers: [\n {\n provide: FDP_MESSAGE_POPOVER_CONFIG,\n useValue: FDP_MESSAGE_POPOVER_DEFAULT_CONFIG\n }\n ]\n})\nexport class PlatformMessagesSharedModule {\n /**\n * Method allows users to apply custom configuration.\n * @param config Object containing error definitions.\n */\n static withConfig(config: MessagePopoverConfig): ModuleWithProviders<PlatformMessagesSharedModule> {\n const customConfig = mergeWith(FDP_MESSAGE_POPOVER_DEFAULT_CONFIG, config, (obj, src) => {\n if (typeof obj === 'object' && !Array.isArray(obj)) {\n return Object.assign(obj, src);\n } else if (Array.isArray(obj)) {\n return obj.concat(src);\n } else {\n return src;\n }\n });\n\n return {\n ngModule: PlatformMessagesSharedModule,\n providers: [\n {\n provide: FDP_MESSAGE_POPOVER_CONFIG,\n useValue: customConfig\n }\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAgBO,MAAM,kCAAkC,GAAyB;AACpE,IAAA,MAAM,EAAE;AACJ,QAAA,KAAK,EAAE,4CAA4C;AACnD,QAAA,GAAG,EAAE,0CAA0C;AAC/C,QAAA,SAAS,EAAE,gDAAgD;AAC3D,QAAA,GAAG,EAAE,0CAA0C;AAC/C,QAAA,SAAS,EAAE,gDAAgD;AAC3D,QAAA,OAAO,EAAE,8CAA8C;AACvD,QAAA,QAAQ,EAAE,+CAA+C;AACzD,QAAA,YAAY,EAAE;AACjB;;MAGQ,0BAA0B,GAAG,IAAI,cAAc,CAAuB,yBAAyB;;MCtB/F,+BAA+B,CAAA;;IAUxC,WAAA,CACoB,UAAsB,EACV,OAAkB,EAAA;QAD9B,IAAA,CAAA,UAAU,GAAV,UAAU;QACE,IAAA,CAAA,OAAO,GAAP,OAAO;IACpC;8GAbM,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,CAAA,2BAAA,EAAA,OAAA,CAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA/B,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAH3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,Q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D,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAVxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,kCAAkC,EAAE,qBAAqB,EAAE,+BAA+B,CAAC;AACrG,oBAAA,OAAO,EAAE,CAAC,kCAAkC,EAAE,qBAAqB,EAAE,+BAA+B,CAAC;AACrG,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,0BAA0B;AACnC,4BAAA,QAAQ,EAAE;AACb;AACJ;AACJ,iBAAA;;;ACpBD;;AAEG;;;;"}
|
package/message-view/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/platform",
|
|
3
|
-
"version": "0.66.1-rc.
|
|
3
|
+
"version": "0.66.1-rc.26",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Fundamental Library for Angular - platform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"node": ">= 10"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@fundamental-ngx/cdk": "0.66.1-rc.
|
|
17
|
-
"@fundamental-ngx/core": "0.66.1-rc.
|
|
18
|
-
"@fundamental-ngx/i18n": "0.66.1-rc.
|
|
16
|
+
"@fundamental-ngx/cdk": "0.66.1-rc.26",
|
|
17
|
+
"@fundamental-ngx/core": "0.66.1-rc.26",
|
|
18
|
+
"@fundamental-ngx/i18n": "0.66.1-rc.26"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"fast-equals": "^6.0.0",
|
|
@@ -31,7 +31,7 @@ function callCoreSchematic(options) {
|
|
|
31
31
|
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
32
32
|
type: dependencies_1.NodeDependencyType.Default,
|
|
33
33
|
// Will be replaced with the real version during sync-version script run
|
|
34
|
-
version: `0.66.1-rc.
|
|
34
|
+
version: `0.66.1-rc.26`,
|
|
35
35
|
name: '@fundamental-ngx/core'
|
|
36
36
|
});
|
|
37
37
|
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask({
|
package/schematics/package.json
CHANGED
|
@@ -39,6 +39,8 @@ declare class MessageViewComponent extends MessageListShared implements OnDestro
|
|
|
39
39
|
* @default true
|
|
40
40
|
*/
|
|
41
41
|
readonly resizable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
42
|
+
/** Emits when the dialog is closed or dismissed. */
|
|
43
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
42
44
|
/** @hidden */
|
|
43
45
|
protected readonly dialogService: DialogService;
|
|
44
46
|
/** @hidden */
|
|
@@ -47,6 +49,8 @@ declare class MessageViewComponent extends MessageListShared implements OnDestro
|
|
|
47
49
|
protected dialogRef: Nullable<DialogRef>;
|
|
48
50
|
/** @hidden */
|
|
49
51
|
protected readonly groupedErrors$: _angular_core.InputSignal<MessagePopoverErrorGroup[]>;
|
|
52
|
+
private readonly _activeDialogRef;
|
|
53
|
+
private readonly _dialogClosedEffect;
|
|
50
54
|
/** Opens the dialog. */
|
|
51
55
|
open(): void;
|
|
52
56
|
/** Closes the dialog. */
|
|
@@ -54,7 +58,7 @@ declare class MessageViewComponent extends MessageListShared implements OnDestro
|
|
|
54
58
|
/** @hidden */
|
|
55
59
|
ngOnDestroy(): void;
|
|
56
60
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MessageViewComponent, never>;
|
|
57
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MessageViewComponent, "fdp-message-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "detailsTitle": { "alias": "detailsTitle"; "required": false; "isSignal": true; }; "mobile": { "alias": "mobile"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; }, { "focusItem": "focusItem"; }, never, never, true, never>;
|
|
61
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MessageViewComponent, "fdp-message-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "detailsTitle": { "alias": "detailsTitle"; "required": false; "isSignal": true; }; "mobile": { "alias": "mobile"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; }, { "focusItem": "focusItem"; "closed": "closed"; }, never, never, true, never>;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
/**
|