From 3b8db3e50ca08092abb93d24a46123cc5efb8992 Mon Sep 17 00:00:00 2001 From: Nicolas Molina Date: Tue, 15 Oct 2024 12:24:44 -0400 Subject: [PATCH] chore(edit-content): add docs #30062 --- .../dot-edit-content-file-field.component.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts index f32659b2028..88dc36c5fe0 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts @@ -68,10 +68,32 @@ import { getUiMessage } from './utils/messages'; }) export class DotEditContentFileFieldComponent implements ControlValueAccessor, OnInit, OnDestroy { readonly store = inject(FileFieldStore); + /** + * A readonly private field that holds an instance of the DialogService. + * This service is injected using Angular's dependency injection mechanism. + * It is used to manage dialog interactions within the component. + */ readonly #dialogService = inject(DialogService); + /** + * A readonly private field that injects the DotMessageService. + * This service is used for handling message-related functionalities within the component. + */ readonly #dotMessageService = inject(DotMessageService); + /** + * A readonly private field that holds a reference to the `DestroyRef` service. + * This service is injected into the component to manage the destruction lifecycle. + */ readonly #destroyRef = inject(DestroyRef); + /** + * A readonly private field that injects the `DotAiService` service. + * This service is used to provide AI-related functionalities within the component. + */ readonly #dotAiService = inject(DotAiService); + /** + * Reference to the dynamic dialog. It can be null if no dialog is currently open. + * + * @type {DynamicDialogRef | null} + */ #dialogRef: DynamicDialogRef | null = null; /** * DotCMS Content Type Field