cocori-ng
Version:
Cocori-ng is an Angular full of great components & utilites based on Material
52 lines (51 loc) • 1.77 kB
TypeScript
import { Type } from '@angular/core';
import { ConfigWysiwygModel } from 'cocori-ng/src/feature-core';
import { Block } from '../service/block';
export declare type ResponsiveOrientation = 'computer' | 'tablet-land' | 'tablet-port' | 'mobile';
export declare type OrientationParamsTpl = {
[type in ResponsiveOrientation]: Function;
};
/** configuration par défaut du wysiwyg pour être utilisé dans les sections */
export declare type ApisConfigCmsModel = Pick<ConfigWysiwygModel, 'apiKey' | 'apiFile' | 'apiFileDownload'>;
/** configuration du CMS */
export interface ConfigCmsModel {
catalog: Block[];
wysiwygOptions: ApisConfigCmsModel;
}
/** identité d'un block */
export interface BlockModel {
label: string;
component: Type<any>;
filename: string;
backgroundColor: string;
content: EditorValues;
}
export interface SectionModel {
id: string;
key: string;
component: Type<any>;
componentReadonly: Type<any>;
backgroundColor: string;
values: EditorValues;
}
export declare type SectionModelCommand = Omit<SectionModel, 'component' | 'componentReadonly'>;
export interface EditorValues {
[key: string]: string;
}
export interface ContentDescriptionSection {
texte: string;
}
export interface InsertSectionAt {
section: SectionModel;
index?: number;
}
export interface BottomSheetSectionReturnAction {
action: BottomSheetSectionActions;
value: any;
}
export interface SectionMoveIndexes {
currentIndex: number;
previousIndex: number;
}
export declare type BottomSheetSectionActions = 'duplicate' | 'remove' | 'backgroundColor' | 'move-up' | 'move-down';
export declare type MoveOrientationSectionActions = 'move-up' | 'move-down';