UNPKG

cocori-ng

Version:

Cocori-ng is an Angular full of great components & utilites based on Material

48 lines (47 loc) 2.37 kB
import { Injector, OnDestroy, ViewContainerRef } from '@angular/core'; import { UntypedFormGroup } from '@angular/forms'; import { FileModel, FormHelperService, InjectComponentService, WysiwygConfigSection } from 'cocori-ng/src/feature-core'; import { ApisConfigCmsModel, SectionModel } from '../../../core/model/cms.model'; import { CmsService } from '../../../core/service/cms.service'; import { ExtendPreviewActionsComponent } from '../../extend-preview-actions.component'; import * as i0 from "@angular/core"; export declare abstract class ExtendSectionTplComponent extends ExtendPreviewActionsComponent implements OnDestroy { section: SectionModel; apisConfig: ApisConfigCmsModel; private fb; private _bottomSheet; cdr: any; cmsService: CmsService; formulaire: UntypedFormGroup; nbEditorView: number; nbBackgroundImage: number; nameControl: string; backgroundImageControl: string; backgroundImageUpload: FileModel; uploadProgress: number; isUploading: boolean; configsWysiwyg: WysiwygConfigSection[]; readOnly: boolean; value: any; formHelper: FormHelperService; injectComponentService: InjectComponentService; constructor(injector: Injector); init(nbEditorView: number, nbBackgroundImage?: number): void; private buildForm; onBackgroundFileUploadedCallback(nameControl: string, apiFileUploaded: string): void; removeBackgroundFileCallback(nameControl: string): void; /** ex valeur du formulaire : {editor1: "<h1>coucou</h1>", editor2: "<h1>hello</h1>"} */ private onSectionValuesChanged; private saveSectionValues; private initSectionValue; private configComponent; private catalogBlocksOpenedEvent; /** @param : tableau des références où seront ajouter le composant Wysiwyg */ addWysiwygComponentToViewEvent(refs: ViewContainerRef[]): void; addImageUploadComponentToViewEvent(refs: ViewContainerRef[]): void; private onBackgroundColorEvent; openBottomSheet(): void; private saveSectionBackgroundColor; static ɵfac: i0.ɵɵFactoryDeclaration<ExtendSectionTplComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ExtendSectionTplComponent, "extend-section-tpl", never, { "section": "section"; "apisConfig": "apisConfig"; }, {}, never, never, false>; }