UNPKG

cocori-ng

Version:

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

48 lines (47 loc) 2.18 kB
import { CdkDragDrop } from '@angular/cdk/drag-drop'; import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; import { MediaObserver } from '@angular/flex-layout'; import { MatSidenav } from '@angular/material/sidenav'; import { InjectComponentService } from 'cocori-ng/src/feature-core'; import { ConfigCmsModel, SectionModel, SectionModelCommand } from '../../../core/model/cms.model'; import { Block } from '../../../core/service/block'; import { CmsService } from '../../../core/service/cms.service'; import * as i0 from "@angular/core"; export declare class CocoringCmsComponent implements OnInit, OnDestroy { private mediaObserver; private cdr; private cmsService; private injectComponentService; sidenav: MatSidenav; containerRef: ViewContainerRef; configCms: ConfigCmsModel; catalog: Block[]; orientation: string; _showSaveBtn: boolean; importSections: SectionModel[]; private readonly destroy$; set config(config: ConfigCmsModel); set datas(sectionDatas: SectionModel[]); set showSaveBtn(data: boolean); onSaveBtn: EventEmitter<SectionModel[]>; responsive: string; activeMediaQuery: string; sidenavMode: string; isSidenavOpen: boolean; totalSections: number; constructor(mediaObserver: MediaObserver, cdr: ChangeDetectorRef, cmsService: CmsService, injectComponentService: InjectComponentService); ngOnInit(): void; ngOnDestroy(): void; private onPageSaved; private eventSizeScreen; toggleSidenavBlocks(): void; getPageCMSDatas(): SectionModelCommand[]; private addSectionEvent; private onSectionRemovedAfterAnimation; private onSectionMoved; private refreshNumberSection; dropSection(event: CdkDragDrop<any[]>): void; private moveSectionContainer; static ɵfac: i0.ɵɵFactoryDeclaration<CocoringCmsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<CocoringCmsComponent, "cocoring-cms", never, { "config": "config"; "datas": "datas"; "showSaveBtn": "showSaveBtn"; }, { "onSaveBtn": "onSaveBtn"; }, never, never, false>; }