@fundamental-ngx/platform 0.66.1-rc.8 → 0.66.1

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.
Files changed (30) hide show
  1. package/fesm2022/fundamental-ngx-platform-approval-flow.mjs +3 -3
  2. package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
  3. package/fesm2022/fundamental-ngx-platform-feed-input.mjs +1 -1
  4. package/fesm2022/fundamental-ngx-platform-feed-input.mjs.map +1 -1
  5. package/fesm2022/fundamental-ngx-platform-form.mjs +13 -12
  6. package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
  7. package/fesm2022/fundamental-ngx-platform-message-view.mjs +15 -4
  8. package/fesm2022/fundamental-ngx-platform-message-view.mjs.map +1 -1
  9. package/fesm2022/fundamental-ngx-platform-messages-shared.mjs +5 -2
  10. package/fesm2022/fundamental-ngx-platform-messages-shared.mjs.map +1 -1
  11. package/fesm2022/fundamental-ngx-platform-search-field.mjs +8 -5
  12. package/fesm2022/fundamental-ngx-platform-search-field.mjs.map +1 -1
  13. package/fesm2022/fundamental-ngx-platform-settings-generator.mjs +2 -2
  14. package/fesm2022/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
  15. package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs +3 -3
  16. package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  17. package/fesm2022/fundamental-ngx-platform-table.mjs +13 -18
  18. package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
  19. package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +2 -2
  20. package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  21. package/fesm2022/fundamental-ngx-platform-variant-management.mjs +3 -3
  22. package/fesm2022/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  23. package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs +1 -2
  24. package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs.map +1 -1
  25. package/message-view/README.md +2 -0
  26. package/package.json +4 -4
  27. package/schematics/ng-add/index.js +1 -1
  28. package/schematics/package.json +1 -1
  29. package/types/fundamental-ngx-platform-message-view.d.ts +5 -1
  30. package/types/fundamental-ngx-platform-search-field.d.ts +3 -1
@@ -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}\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,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AE,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;;;;"}
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,CAA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