-
Notifications
You must be signed in to change notification settings - Fork 482
Expand file tree
/
Copy pathdot-contentlets-events.model.ts
More file actions
83 lines (66 loc) · 2.12 KB
/
Copy pathdot-contentlets-events.model.ts
File metadata and controls
83 lines (66 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { DotCMSContentType } from './dot-content-types.model';
import { DotPageContainer } from './dot-page-container.model';
import { DotPageContent } from './dot-page-content.model';
export interface DotContentletEvent<T = Record<string, unknown>> {
name: string;
data?: T;
}
export type DotContentletEventDragAndDropDotAsset = DotContentletEvent<DotAssetPayload>;
export type DotContentletEventAddContentType = DotContentletEvent<DotAddContentTypePayload>;
export type DotContentletEventRelocate = DotContentletEvent<DotRelocatePayload>;
export type DotContentletEventReorder = DotContentletEvent<DotPageContainer>;
export type DotContentletEventSelect = DotContentletEvent<DotPageContent>;
export type DotContentletEventSave = DotContentletEvent<DotPageContent>;
export type DotContentletEventContent = DotContentletEvent<DotContentletPayload>;
export interface DotAssetPayload {
contentlet: DotPageContent;
placeholderId: string;
}
export interface DotRelocatePayload {
container: DotPageContainer;
contentlet: DotPageContent;
}
export interface DotInlineDataset {
mode: string;
inode: string;
fieldName: string;
language: string;
}
export interface DotInlineEditContent {
innerHTML: string;
dataset: DotInlineDataset;
element: HTMLElement;
isNotDirty: boolean;
eventType: string;
}
export interface DotShowCopyModal {
container: HTMLElement;
contentlet: HTMLElement;
selector?: string;
initEdit: (element: HTMLElement) => void;
}
export interface DotContentletContainer {
dotObject: string;
dotInode: string;
dotIdentifier: string;
dotUuid: string;
maxContentlets: string;
dotAcceptTypes: string;
dotCanAdd: string;
}
export interface DotContentletDataset {
dotObject: string;
dotAction?: string;
dotAdd?: string;
dotIdentifier: string;
dotUuid?: string;
dotInode?: string;
}
export interface DotAddContentTypePayload {
container: DotContentletContainer | null;
contentType: DotCMSContentType;
}
export interface DotContentletPayload {
container: DotContentletContainer;
dataset: DotContentletDataset;
}