@enonic/page-editor 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +674 -0
- package/dist/fonts/OpenSans.woff2 +0 -0
- package/dist/fonts/icomoon.woff +0 -0
- package/dist/fonts/icomoon.woff2 +0 -0
- package/dist/index.cjs +14 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37611 -0
- package/dist/main.css +1 -0
- package/dist/page-editor/ComponentItemType.d.ts +6 -0
- package/dist/page-editor/ComponentItemType.d.ts.map +1 -0
- package/dist/page-editor/ComponentView.d.ts +84 -0
- package/dist/page-editor/ComponentView.d.ts.map +1 -0
- package/dist/page-editor/ComponentViewContextMenuTitle.d.ts +7 -0
- package/dist/page-editor/ComponentViewContextMenuTitle.d.ts.map +1 -0
- package/dist/page-editor/ContentBasedComponentView.d.ts +10 -0
- package/dist/page-editor/ContentBasedComponentView.d.ts.map +1 -0
- package/dist/page-editor/CreateItemViewConfig.d.ts +28 -0
- package/dist/page-editor/CreateItemViewConfig.d.ts.map +1 -0
- package/dist/page-editor/CreateTextComponentViewConfig.d.ts +8 -0
- package/dist/page-editor/CreateTextComponentViewConfig.d.ts.map +1 -0
- package/dist/page-editor/Cursor.d.ts +11 -0
- package/dist/page-editor/Cursor.d.ts.map +1 -0
- package/dist/page-editor/DescriptorBasedComponentView.d.ts +18 -0
- package/dist/page-editor/DescriptorBasedComponentView.d.ts.map +1 -0
- package/dist/page-editor/DescriptorBasedComponentViewPlaceholder.d.ts +6 -0
- package/dist/page-editor/DescriptorBasedComponentViewPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/DragAndDrop.d.ts +74 -0
- package/dist/page-editor/DragAndDrop.d.ts.map +1 -0
- package/dist/page-editor/DragPlaceholder.d.ts +20 -0
- package/dist/page-editor/DragPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/Highlighter.d.ts +27 -0
- package/dist/page-editor/Highlighter.d.ts.map +1 -0
- package/dist/page-editor/ItemView.d.ts +166 -0
- package/dist/page-editor/ItemView.d.ts.map +1 -0
- package/dist/page-editor/ItemViewContextMenuPosition.d.ts +6 -0
- package/dist/page-editor/ItemViewContextMenuPosition.d.ts.map +1 -0
- package/dist/page-editor/ItemViewFactory.d.ts +15 -0
- package/dist/page-editor/ItemViewFactory.d.ts.map +1 -0
- package/dist/page-editor/ItemViewId.d.ts +12 -0
- package/dist/page-editor/ItemViewId.d.ts.map +1 -0
- package/dist/page-editor/ItemViewIdProducer.d.ts +6 -0
- package/dist/page-editor/ItemViewIdProducer.d.ts.map +1 -0
- package/dist/page-editor/ItemViewPlaceholder.d.ts +10 -0
- package/dist/page-editor/ItemViewPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/LiveEditPage.d.ts +42 -0
- package/dist/page-editor/LiveEditPage.d.ts.map +1 -0
- package/dist/page-editor/PageEditor.d.ts +5 -0
- package/dist/page-editor/PageEditor.d.ts.map +1 -0
- package/dist/page-editor/PagePlaceholder.d.ts +16 -0
- package/dist/page-editor/PagePlaceholder.d.ts.map +1 -0
- package/dist/page-editor/PagePlaceholderInfoBlock.d.ts +12 -0
- package/dist/page-editor/PagePlaceholderInfoBlock.d.ts.map +1 -0
- package/dist/page-editor/PageView.d.ts +94 -0
- package/dist/page-editor/PageView.d.ts.map +1 -0
- package/dist/page-editor/RegionPlaceholder.d.ts +5 -0
- package/dist/page-editor/RegionPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/RegionView.d.ts +77 -0
- package/dist/page-editor/RegionView.d.ts.map +1 -0
- package/dist/page-editor/RegionViewContextMenuTitle.d.ts +5 -0
- package/dist/page-editor/RegionViewContextMenuTitle.d.ts.map +1 -0
- package/dist/page-editor/SelectedHighlighter.d.ts +9 -0
- package/dist/page-editor/SelectedHighlighter.d.ts.map +1 -0
- package/dist/page-editor/Shader.d.ts +42 -0
- package/dist/page-editor/Shader.d.ts.map +1 -0
- package/dist/page-editor/fragment/FragmentComponentView.d.ts +21 -0
- package/dist/page-editor/fragment/FragmentComponentView.d.ts.map +1 -0
- package/dist/page-editor/fragment/FragmentItemType.d.ts +8 -0
- package/dist/page-editor/fragment/FragmentItemType.d.ts.map +1 -0
- package/dist/page-editor/fragment/FragmentPlaceholder.d.ts +18 -0
- package/dist/page-editor/fragment/FragmentPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/layout/LayoutComponentView.d.ts +25 -0
- package/dist/page-editor/layout/LayoutComponentView.d.ts.map +1 -0
- package/dist/page-editor/layout/LayoutItemType.d.ts +8 -0
- package/dist/page-editor/layout/LayoutItemType.d.ts.map +1 -0
- package/dist/page-editor/layout/LayoutPlaceholder.d.ts +7 -0
- package/dist/page-editor/layout/LayoutPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/part/PartComponentView.d.ts +12 -0
- package/dist/page-editor/part/PartComponentView.d.ts.map +1 -0
- package/dist/page-editor/part/PartItemType.d.ts +8 -0
- package/dist/page-editor/part/PartItemType.d.ts.map +1 -0
- package/dist/page-editor/part/PartPlaceholder.d.ts +7 -0
- package/dist/page-editor/part/PartPlaceholder.d.ts.map +1 -0
- package/dist/page-editor/text/TextComponentView.d.ts +33 -0
- package/dist/page-editor/text/TextComponentView.d.ts.map +1 -0
- package/dist/page-editor/text/TextItemType.d.ts +10 -0
- package/dist/page-editor/text/TextItemType.d.ts.map +1 -0
- package/dist/page-editor/text/TextPlaceholder.d.ts +5 -0
- package/dist/page-editor/text/TextPlaceholder.d.ts.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { Element } from '../../../../../../.xp/dev/lib-admin-ui/dom/Element';
|
|
2
|
+
import { Action } from '../../../../../../.xp/dev/lib-admin-ui/ui/Action';
|
|
3
|
+
import { IDentifiable } from '../../../../../../.xp/dev/lib-admin-ui/IDentifiable';
|
|
4
|
+
import { ItemViewContextMenuPosition } from './ItemViewContextMenuPosition';
|
|
5
|
+
import { ItemType } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemType';
|
|
6
|
+
import { ItemViewIdProducer } from './ItemViewIdProducer';
|
|
7
|
+
import { ItemViewContextMenuTitle } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemViewContextMenuTitle';
|
|
8
|
+
import { ItemViewPlaceholder } from './ItemViewPlaceholder';
|
|
9
|
+
import { ItemViewContextMenu } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemViewContextMenu';
|
|
10
|
+
import { ItemViewId } from './ItemViewId';
|
|
11
|
+
import { ItemViewSelectedEventConfig } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/event/outgoing/navigation/SelectComponentEvent';
|
|
12
|
+
import { CreateItemViewConfig } from './CreateItemViewConfig';
|
|
13
|
+
import { ClickPosition } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ClickPosition';
|
|
14
|
+
import { ItemViewFactory } from './ItemViewFactory';
|
|
15
|
+
import { PageView } from './PageView';
|
|
16
|
+
import { ComponentPath } from '../../../../../../.xp/dev/lib-contentstudio/app/page/region/ComponentPath';
|
|
17
|
+
import { LiveEditParams } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/LiveEditParams';
|
|
18
|
+
export interface ElementDimensions {
|
|
19
|
+
top: number;
|
|
20
|
+
left: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class ItemViewBuilder {
|
|
25
|
+
itemViewIdProducer: ItemViewIdProducer;
|
|
26
|
+
liveEditParams: LiveEditParams;
|
|
27
|
+
itemViewFactory: ItemViewFactory;
|
|
28
|
+
type: ItemType;
|
|
29
|
+
element: Element;
|
|
30
|
+
parentElement: Element;
|
|
31
|
+
parentView: ItemView;
|
|
32
|
+
contextMenuActions: Action[];
|
|
33
|
+
contextMenuTitle: ItemViewContextMenuTitle;
|
|
34
|
+
placeholder: ItemViewPlaceholder;
|
|
35
|
+
setItemViewIdProducer(value: ItemViewIdProducer): this;
|
|
36
|
+
setItemViewFactory(value: ItemViewFactory): this;
|
|
37
|
+
setType(value: ItemType): this;
|
|
38
|
+
setElement(value: Element): this;
|
|
39
|
+
setPlaceholder(value: ItemViewPlaceholder): this;
|
|
40
|
+
setParentView(value: ItemView): this;
|
|
41
|
+
setParentElement(value: Element): this;
|
|
42
|
+
setContextMenuActions(actions: Action[]): this;
|
|
43
|
+
setContextMenuTitle(title: ItemViewContextMenuTitle): this;
|
|
44
|
+
setLiveEditParams(value: LiveEditParams): this;
|
|
45
|
+
}
|
|
46
|
+
export declare abstract class ItemView extends Element implements IDentifiable {
|
|
47
|
+
protected placeholder?: ItemViewPlaceholder;
|
|
48
|
+
protected liveEditParams: LiveEditParams;
|
|
49
|
+
private itemViewIdProducer;
|
|
50
|
+
private itemViewFactory;
|
|
51
|
+
private type;
|
|
52
|
+
private parentItemView;
|
|
53
|
+
private loadMask;
|
|
54
|
+
private contextMenu;
|
|
55
|
+
private contextMenuTitle;
|
|
56
|
+
private contextMenuActions;
|
|
57
|
+
private mouseOver;
|
|
58
|
+
private shaded;
|
|
59
|
+
private mouseOverViewListeners;
|
|
60
|
+
private mouseOutViewListeners;
|
|
61
|
+
private mouseOverViewListener;
|
|
62
|
+
private mouseLeaveViewListener;
|
|
63
|
+
private shaderClickedListener;
|
|
64
|
+
private mouseEnterListener;
|
|
65
|
+
private mouseLeaveListener;
|
|
66
|
+
private mouseClickedListener;
|
|
67
|
+
private touchStartListener;
|
|
68
|
+
private touchMoveListener;
|
|
69
|
+
private touchEndListener;
|
|
70
|
+
private contextMenuListener;
|
|
71
|
+
static LIVE_EDIT_SELECTED: string;
|
|
72
|
+
static debug: boolean;
|
|
73
|
+
protected constructor(builder: ItemViewBuilder);
|
|
74
|
+
protected addContextMenuActions(actions: Action[]): void;
|
|
75
|
+
protected removeContextMenuAction(action: Action): void;
|
|
76
|
+
protected setPlaceholder(placeholder: ItemViewPlaceholder): void;
|
|
77
|
+
protected disableLinks(): void;
|
|
78
|
+
setContextMenuTitle(title: ItemViewContextMenuTitle): void;
|
|
79
|
+
private bindMouseListeners;
|
|
80
|
+
protected handleTouchEvents(): void;
|
|
81
|
+
protected isDragging(): boolean;
|
|
82
|
+
protected unbindMouseListeners(): void;
|
|
83
|
+
highlight(): void;
|
|
84
|
+
unhighlight(): void;
|
|
85
|
+
highlightSelected(): void;
|
|
86
|
+
unhighlightSelected(): void;
|
|
87
|
+
shade(): void;
|
|
88
|
+
unshade(): void;
|
|
89
|
+
showCursor(): void;
|
|
90
|
+
resetCursor(): void;
|
|
91
|
+
remove(): ItemView;
|
|
92
|
+
setDraggable(value: boolean): void;
|
|
93
|
+
scrollComponentIntoView(): void;
|
|
94
|
+
handleMouseEnter(_event: MouseEvent): void;
|
|
95
|
+
private manageParentsMouseOver;
|
|
96
|
+
handleMouseLeave(event: MouseEvent): void;
|
|
97
|
+
isEmpty(): boolean;
|
|
98
|
+
refreshEmptyState(): ItemView;
|
|
99
|
+
protected togglePlaceholder(): void;
|
|
100
|
+
protected isPlaceholderNeeded(): boolean;
|
|
101
|
+
protected hasRenderingError(): boolean;
|
|
102
|
+
protected addPlaceholder(): void;
|
|
103
|
+
protected removePlaceholder(): void;
|
|
104
|
+
getCurrentContextMenu(): ItemViewContextMenu;
|
|
105
|
+
abstract getPath(): ComponentPath;
|
|
106
|
+
handleClick(event: MouseEvent): void;
|
|
107
|
+
handleShaderClick(event: MouseEvent): void;
|
|
108
|
+
protected isEventOverItem(event: MouseEvent): boolean;
|
|
109
|
+
getItemViewIdProducer(): ItemViewIdProducer;
|
|
110
|
+
getItemViewFactory(): ItemViewFactory;
|
|
111
|
+
getLiveEditParams(): LiveEditParams;
|
|
112
|
+
showContextMenu(clickPosition?: ClickPosition, menuPosition?: ItemViewContextMenuPosition): void;
|
|
113
|
+
private initContextMenu;
|
|
114
|
+
hideContextMenu(): void;
|
|
115
|
+
private invalidateContextMenu;
|
|
116
|
+
private setItemId;
|
|
117
|
+
getItemId(): ItemViewId;
|
|
118
|
+
static parseItemId(element: HTMLElement): ItemViewId;
|
|
119
|
+
getType(): ItemType;
|
|
120
|
+
getParentItemView(): ItemView;
|
|
121
|
+
setParentItemView(itemView: ItemView): void;
|
|
122
|
+
isSelected(): boolean;
|
|
123
|
+
select(config?: ItemViewSelectedEventConfig, menuPosition?: ItemViewContextMenuPosition, silent?: boolean): void;
|
|
124
|
+
selectWithoutMenu(silent?: boolean): void;
|
|
125
|
+
private selectItem;
|
|
126
|
+
deselect(silent?: boolean): void;
|
|
127
|
+
isDraggableView(): boolean;
|
|
128
|
+
private selectPlaceholder;
|
|
129
|
+
focusPlaceholderIfEmpty(): void;
|
|
130
|
+
private deselectPlaceholder;
|
|
131
|
+
showRenderingError(url: string, errorMessage?: string): void;
|
|
132
|
+
getName(): string;
|
|
133
|
+
getIconClass(): string;
|
|
134
|
+
showLoadingSpinner(): void;
|
|
135
|
+
hideLoadingSpinner(): void;
|
|
136
|
+
getContextMenuActions(): Action[];
|
|
137
|
+
toItemViewArray(): ItemView[];
|
|
138
|
+
toString(): string;
|
|
139
|
+
static findParentItemViewAsHTMLElement(htmlElement: HTMLElement): HTMLElement;
|
|
140
|
+
onMouseOverView(listener: () => void): void;
|
|
141
|
+
unMouseOverView(listener: () => void): void;
|
|
142
|
+
private notifyMouseOverView;
|
|
143
|
+
onMouseLeaveView(listener: () => void): void;
|
|
144
|
+
unMouseLeaveView(listener: () => void): void;
|
|
145
|
+
private notifyMouseLeaveView;
|
|
146
|
+
protected getContextMenuTitle(): ItemViewContextMenuTitle;
|
|
147
|
+
addComponentView(_componentView: ItemView, _index?: number, _newlyCreated?: boolean): void;
|
|
148
|
+
getNewItemIndex(): number;
|
|
149
|
+
createView(type: ItemType, config?: CreateItemViewConfig<ItemView>): ItemView;
|
|
150
|
+
private getInsertActions;
|
|
151
|
+
hasParentLayoutComponentView(): boolean;
|
|
152
|
+
protected getRegionView(): ItemView;
|
|
153
|
+
isLayout(): boolean;
|
|
154
|
+
isPart(): boolean;
|
|
155
|
+
isText(): boolean;
|
|
156
|
+
getPageView(): PageView;
|
|
157
|
+
protected createInsertAction(): Action;
|
|
158
|
+
protected createSelectParentAction(): Action;
|
|
159
|
+
private selectItemView;
|
|
160
|
+
private createInsertSubAction;
|
|
161
|
+
private makeInsertPathForNewItem;
|
|
162
|
+
isChildOfItemView(itemView: ItemView): boolean;
|
|
163
|
+
isContainer(): boolean;
|
|
164
|
+
private isViewInsideSelectedContainer;
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=ItemView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemView.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/ItemView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAoE,MAAM,kCAAkC,CAAC;AAO5H,OAAO,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAC;AAGtD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAC,2BAA2B,EAAC,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAC,QAAQ,EAAC,MAAM,gDAAgD,CAAC;AACxE,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,KAAK,wBAAwB,EAAC,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,mBAAmB,EAAiC,MAAM,2DAA2D,CAAC;AAK9H,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EACH,KAAK,2BAA2B,EAEnC,MAAM,sFAAsF,CAAC;AAG9F,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAMvF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAC,QAAQ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S,CAAC,aAAa,IAAI,QAAQ;IAInC,QAAQ,IAAI,OAAO;IAInB,MAAM,IAAI,OAAO;IAIjB,MAAM,IAAI,OAAO;IAIjB,WAAW,IAAI,QAAQ;IASvB,SAAS,CAAC,kBAAkB,IAAI,MAAM;IAItC,SAAS,CAAC,wBAAwB,IAAI,MAAM;IAc5C,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,wBAAwB;IAQhC,iBAAiB,CAAC,QAAQ,EAAE,QAAQ;IAcpC,WAAW,IAAI,OAAO;IAItB,OAAO,CAAC,6BAA6B;CAGxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemViewContextMenuPosition.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/ItemViewContextMenuPosition.ts"],"names":[],"mappings":"AAAA,oBAAY,2BAA2B;IACnC,GAAG,IAAA;IACH,MAAM,IAAA;IACN,IAAI,IAAA;CACP"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ItemView } from './ItemView';
|
|
2
|
+
import { CreateItemViewConfig } from './CreateItemViewConfig';
|
|
3
|
+
import { ItemType } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemType';
|
|
4
|
+
export interface ItemViewFactory {
|
|
5
|
+
createView(type: ItemType, config: CreateItemViewConfig<ItemView>): ItemView;
|
|
6
|
+
}
|
|
7
|
+
export declare class DefaultItemViewFactory implements ItemViewFactory {
|
|
8
|
+
createView(type: ItemType, config: CreateItemViewConfig<ItemView>): ItemView;
|
|
9
|
+
private createFragmentView;
|
|
10
|
+
private createLayoutView;
|
|
11
|
+
private createPartView;
|
|
12
|
+
private createTextView;
|
|
13
|
+
private createRegionView;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ItemViewFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemViewFactory.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/ItemViewFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAgC,KAAK,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAMhG,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,gDAAgD,CAAC;AAI7E,MAAM,WAAW,eAAe;IAC5B,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;CAChF;AAED,qBAAa,sBACT,YAAW,eAAe;IAEnB,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ;IAkBnF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,gBAAgB;IAWxB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,gBAAgB;CAO3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Equitable } from '../../../../../../.xp/dev/lib-admin-ui/Equitable';
|
|
2
|
+
export declare class ItemViewId implements Equitable {
|
|
3
|
+
static DATA_ATTRIBUTE: string;
|
|
4
|
+
private value;
|
|
5
|
+
private refString;
|
|
6
|
+
constructor(value: number);
|
|
7
|
+
equals(o: Equitable): boolean;
|
|
8
|
+
toNumber(): number;
|
|
9
|
+
toString(): string;
|
|
10
|
+
static fromString(s: string): ItemViewId;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ItemViewId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemViewId.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/ItemViewId.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAG9D,qBAAa,UACT,YAAW,SAAS;IAEpB,MAAM,CAAC,cAAc,EAAE,MAAM,CAAkB;IAE/C,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,SAAS,CAAS;gBAEd,KAAK,EAAE,MAAM;IAMzB,MAAM,CAAC,CAAC,EAAE,SAAS,GAAG,OAAO;IAe7B,QAAQ,IAAI,MAAM;IAIlB,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM;CAG9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemViewIdProducer.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/ItemViewIdProducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,eAAe,CAAa;IAEpC,IAAI,IAAI,UAAU;CAIrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DivEl } from '../../../../../../.xp/dev/lib-admin-ui/dom/DivEl';
|
|
2
|
+
export declare class ItemViewPlaceholder extends DivEl {
|
|
3
|
+
static PAGE_EDITOR_PREFIX: string;
|
|
4
|
+
constructor();
|
|
5
|
+
showRenderingError(url: string, errorMessage?: string): void;
|
|
6
|
+
select(): void;
|
|
7
|
+
deselect(): void;
|
|
8
|
+
focus(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ItemViewPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemViewPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/ItemViewPlaceholder.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,EAAC,MAAM,gCAAgC,CAAC;AAIrD,qBAAa,mBACT,SAAQ,KAAK;IAEb,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAqB;;IAMtD,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,MAAiD;IAY/F,MAAM;IAIN,QAAQ;IAIR,KAAK,IAAI,IAAI;CAGhB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentView } from './ComponentView';
|
|
2
|
+
export declare class LiveEditPage {
|
|
3
|
+
private pageView;
|
|
4
|
+
private skipNextReloadConfirmation;
|
|
5
|
+
private initializeListener;
|
|
6
|
+
private skipConfirmationListener;
|
|
7
|
+
private unloadListener;
|
|
8
|
+
private componentLoadedListener;
|
|
9
|
+
private dragStartedListener;
|
|
10
|
+
private dragStoppedListener;
|
|
11
|
+
private selectComponentRequestedListener;
|
|
12
|
+
private deselectComponentRequestedListener;
|
|
13
|
+
private setComponentStateEventListener;
|
|
14
|
+
private addItemViewRequestListener;
|
|
15
|
+
private removeItemViewRequestListener;
|
|
16
|
+
private loadComponentRequestListener;
|
|
17
|
+
private duplicateComponentViewRequestedListener;
|
|
18
|
+
private moveComponentViewRequestedListener;
|
|
19
|
+
private beforeContentSavedListener;
|
|
20
|
+
private setPageLockStateListener;
|
|
21
|
+
private setModifyAllowedListener;
|
|
22
|
+
private createOrDestroyDraggableListener;
|
|
23
|
+
private resetComponentViewRequestListener;
|
|
24
|
+
private pageStateListener;
|
|
25
|
+
private updateTextComponentViewListener;
|
|
26
|
+
private setDraggableVisibleEventListener;
|
|
27
|
+
private static debug;
|
|
28
|
+
constructor();
|
|
29
|
+
private init;
|
|
30
|
+
private restoreSelection;
|
|
31
|
+
destroy(win?: Window): void;
|
|
32
|
+
private registerGlobalListeners;
|
|
33
|
+
private getItemViewByPath;
|
|
34
|
+
private unregisterGlobalListeners;
|
|
35
|
+
loadComponent(componentView: ComponentView, componentUrl: string, isExisting: boolean): Promise<void>;
|
|
36
|
+
private hasSameComponentOnPage;
|
|
37
|
+
private handleComponentHtml;
|
|
38
|
+
private wrapLoadedComponentHtml;
|
|
39
|
+
private wrapLoadedFragmentHtml;
|
|
40
|
+
private getComponentErrorText;
|
|
41
|
+
}
|
|
42
|
+
//# sour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A0Q/B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,yBAAyB;IAuC1B,aAAa,CAAC,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB5G,OAAO,CAAC,sBAAsB;IAc9B,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,qBAAqB;CAOhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageEditor.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/PageEditor.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,CAAC;AAChB,OAAO,6BAA6B,CAAC;AACrC,OAAO,oCAAoC,CAAC;AA4M5C,qBAAa,UAAU;IAEnB,OAAO,CAAC,MAAM,CAAC,YAAY,CAAe;IAE1C,MAAM,CAAC,IAAI,IAAI,IAAI;CAMtB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PageView } from './PageView';
|
|
2
|
+
import { ItemViewPlaceholder } from './ItemViewPlaceholder';
|
|
3
|
+
import { default as Q } from 'q';
|
|
4
|
+
export declare class PagePlaceholder extends ItemViewPlaceholder {
|
|
5
|
+
private pageDescriptorPlaceholder;
|
|
6
|
+
private infoBlock;
|
|
7
|
+
private controllerDropdown;
|
|
8
|
+
private pageView;
|
|
9
|
+
constructor(pageView: PageView);
|
|
10
|
+
private initListeners;
|
|
11
|
+
private initElements;
|
|
12
|
+
private dataLoadedHandler;
|
|
13
|
+
remove(): import('../../../../../../.xp/dev/lib-admin-ui/dom/Element').Element;
|
|
14
|
+
doRender(): Q.Promise<boolean>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=PagePlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagePlaceholder.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/PagePlaceholder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAS1D,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;AAGvB,qBAAa,eACT,SAAQ,mBAAmB;IAE3B,OAAO,CAAC,yBAAyB,CAAQ;IAEzC,OAAO,CAAC,SAAS,CAA2B;IAE5C,OAAO,CAAC,kBAAkB,CAAyB;IAEnD,OAAO,CAAC,QAAQ,CAAW;gBAEf,QAAQ,EAAE,QAAQ;IAY9B,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,iBAAiB,CAoBvB;IAEF,MAAM;IAKN,QAAQ,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CAajC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DivEl } from '../../../../../../.xp/dev/lib-admin-ui/dom/DivEl';
|
|
2
|
+
import { ContentType } from '../../../../../../.xp/dev/lib-contentstudio/app/inputtype/schema/ContentType';
|
|
3
|
+
export declare class PagePlaceholderInfoBlock extends DivEl {
|
|
4
|
+
private readonly line1;
|
|
5
|
+
private readonly line2;
|
|
6
|
+
constructor(contentType?: ContentType);
|
|
7
|
+
setTextForContent(contentTypeDisplayName: string): PagePlaceholderInfoBlock;
|
|
8
|
+
toggleHeader(hasControllers: boolean): PagePlaceholderInfoBlock;
|
|
9
|
+
setEmptyText(): PagePlaceholderInfoBlock;
|
|
10
|
+
setErrorTexts(message: string, description: string): PagePlaceholderInfoBlock;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=PagePlaceholderInfoBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagePlaceholderInfoBlock.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/PagePlaceholderInfoBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,EAAC,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,4DAA4D,CAAC;AAE5F,qBAAa,wBACT,SAAQ,KAAK;IAEb,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAE9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;gBAElB,WAAW,CAAC,EAAE,WAAW;IAerC,iBAAiB,CAAC,sBAAsB,EAAE,MAAM,GAAG,wBAAwB;IAO3E,YAAY,CAAC,cAAc,EAAE,OAAO,GAAG,wBAAwB;IAO/D,YAAY,IAAI,wBAAwB;IAMxC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,wBAAwB;CAOhF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Body } from '../../../../../../.xp/dev/lib-admin-ui/dom/Body';
|
|
2
|
+
import { ItemViewIdProducer } from './ItemViewIdProducer';
|
|
3
|
+
import { ItemView } from './ItemView';
|
|
4
|
+
import { RegionView } from './RegionView';
|
|
5
|
+
import { ComponentView } from './ComponentView';
|
|
6
|
+
import { ItemViewContextMenu } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemViewContextMenu';
|
|
7
|
+
import { ItemViewSelectedEventConfig } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/event/outgoing/navigation/SelectComponentEvent';
|
|
8
|
+
import { ItemViewContextMenuPosition } from './ItemViewContextMenuPosition';
|
|
9
|
+
import { ClickPosition } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ClickPosition';
|
|
10
|
+
import { ItemViewId } from './ItemViewId';
|
|
11
|
+
import { ItemType } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemType';
|
|
12
|
+
import { ItemViewFactory } from './ItemViewFactory';
|
|
13
|
+
import { PageViewController } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/PageViewController';
|
|
14
|
+
import { ComponentPath } from '../../../../../../.xp/dev/lib-contentstudio/app/page/region/ComponentPath';
|
|
15
|
+
import { Action } from '../../../../../../.xp/dev/lib-admin-ui/ui/Action';
|
|
16
|
+
import { LiveEditParams } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/LiveEditParams';
|
|
17
|
+
export declare class PageViewBuilder {
|
|
18
|
+
itemViewIdProducer: ItemViewIdProducer;
|
|
19
|
+
itemViewFactory: ItemViewFactory;
|
|
20
|
+
liveEditParams: LiveEditParams;
|
|
21
|
+
element: Body;
|
|
22
|
+
setItemViewIdProducer(value: ItemViewIdProducer): PageViewBuilder;
|
|
23
|
+
setItemViewFactory(value: ItemViewFactory): PageViewBuilder;
|
|
24
|
+
setElement(value: Body): PageViewBuilder;
|
|
25
|
+
setLiveEditParams(value: LiveEditParams): PageViewBuilder;
|
|
26
|
+
build(): PageView;
|
|
27
|
+
}
|
|
28
|
+
export declare class PageView extends ItemView {
|
|
29
|
+
private regionViews;
|
|
30
|
+
private fragmentView;
|
|
31
|
+
private viewsById;
|
|
32
|
+
private resetAction;
|
|
33
|
+
private itemViewAddedListener;
|
|
34
|
+
private itemViewRemovedListener;
|
|
35
|
+
static debug: boolean;
|
|
36
|
+
private lockedContextMenu;
|
|
37
|
+
private modifyPermissions;
|
|
38
|
+
constructor(builder: PageViewBuilder);
|
|
39
|
+
protected isDragging(): boolean;
|
|
40
|
+
createDraggable(item: JQuery): void;
|
|
41
|
+
destroyDraggable(item: JQuery): void;
|
|
42
|
+
setModifyPermissions(modifyPermissions: boolean): void;
|
|
43
|
+
private addPageContextMenuActions;
|
|
44
|
+
private initListeners;
|
|
45
|
+
highlightSelected(): void;
|
|
46
|
+
showCursor(): void;
|
|
47
|
+
shade(): void;
|
|
48
|
+
unshade(): void;
|
|
49
|
+
private listenToMouseEvents;
|
|
50
|
+
getPath(): ComponentPath;
|
|
51
|
+
select(config?: ItemViewSelectedEventConfig, menuPosition?: ItemViewContextMenuPosition): void;
|
|
52
|
+
showContextMenu(clickPosition?: ClickPosition, menuPosition?: ItemViewContextMenuPosition): void;
|
|
53
|
+
createLockedContextMenu(): ItemViewContextMenu;
|
|
54
|
+
getLockedMenuActions(): Action[];
|
|
55
|
+
selectLocked(position: ClickPosition): void;
|
|
56
|
+
deselectLocked(): void;
|
|
57
|
+
handleShaderClick(event: MouseEvent): void;
|
|
58
|
+
hideContextMenu(): void;
|
|
59
|
+
isLocked(): boolean;
|
|
60
|
+
setLockVisible(visible: boolean): void;
|
|
61
|
+
setLocked(locked: boolean): void;
|
|
62
|
+
getPageView(): PageView;
|
|
63
|
+
getPageViewController(): PageViewController;
|
|
64
|
+
getCurrentContextMenu(): ItemViewContextMenu;
|
|
65
|
+
hasTargetWithinTextComponent(target: HTMLElement): boolean;
|
|
66
|
+
isEmpty(): boolean;
|
|
67
|
+
getName(): string;
|
|
68
|
+
getIconClass(): string;
|
|
69
|
+
getParentItemView(): ItemView;
|
|
70
|
+
setParentItemView(_itemView: ItemView): void;
|
|
71
|
+
private registerRegionView;
|
|
72
|
+
unregisterRegionView(regionView: RegionView): void;
|
|
73
|
+
getRegions(): RegionView[];
|
|
74
|
+
toItemViewArray(): ItemView[];
|
|
75
|
+
hasSelectedView(): boolean;
|
|
76
|
+
getSelectedView(): ItemView;
|
|
77
|
+
getItemViewById(id: ItemViewId): ItemView;
|
|
78
|
+
getItemViewsByType(type: ItemType): ItemView[];
|
|
79
|
+
getItemViewByElement(element: HTMLElement): ItemView;
|
|
80
|
+
getRegionViewByElement(element: HTMLElement): RegionView;
|
|
81
|
+
getComponentViewByElement(element: HTMLElement): ComponentView;
|
|
82
|
+
getComponentViewByPath(path: ComponentPath): ItemView;
|
|
83
|
+
private getFragmentComponentViewByPath;
|
|
84
|
+
private getPageComponentViewByPath;
|
|
85
|
+
private registerItemView;
|
|
86
|
+
private unregisterItemView;
|
|
87
|
+
private parseItemViews;
|
|
88
|
+
private doParseItemViews;
|
|
89
|
+
private doParseFragmentItemViews;
|
|
90
|
+
unregisterFragmentComponentView(componentView: ComponentView): void;
|
|
91
|
+
registerFragmentComponentView(componentView: ComponentView): void;
|
|
92
|
+
isRendered(): boolean;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=PageView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageView.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/PageView.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,IAAI,EAAC,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAkB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAC,UAAU,EAAoB,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAC,mBAAmB,EAAC,MAAM,2DAA2D,CAAC;AAI9F,OAAO,EACH,KAAK,2BAA2B,EAEnC,MAAM,sFAAsF,CAAC;AAC9F,OAAO,EAAC,2BAA2B,EAAC,MAAM,+BAA+B,CAAC;AAM1E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,gDAAgD,CAAC;AAKxE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAC,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAC,aAAa,EAAC,MAAM,yDAAyD,CAAC;AACtF,OAAO,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAC;AAGtD,OAAO,EAAC,KAAK,cAAc,EAAC,MAAM,sDAAsD,CAAC;AAIzF,qBAAa,eAAe;IAExB,kBAAkB,EAAE,kBAAkB,CAAC;IAEvC,eAAe,EAAE,eAAe,CAAC;IAEjC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,OAAO;CAGxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegionPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/RegionPlaceholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAI1D,qBAAa,iBACT,SAAQ,mBAAmB;;CAa9B"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Element } from '../../../../../../.xp/dev/lib-admin-ui/dom/Element';
|
|
2
|
+
import { ItemView } from './ItemView';
|
|
3
|
+
import { ItemViewAddedEvent } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/event/ItemViewAddedEvent';
|
|
4
|
+
import { ItemViewRemovedEvent } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/event/ItemViewRemovedEvent';
|
|
5
|
+
import { ItemViewContextMenuPosition } from './ItemViewContextMenuPosition';
|
|
6
|
+
import { ItemViewSelectedEventConfig } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/event/outgoing/navigation/SelectComponentEvent';
|
|
7
|
+
import { ComponentView } from './ComponentView';
|
|
8
|
+
import { PageView } from './PageView';
|
|
9
|
+
import { ComponentPath } from '../../../../../../.xp/dev/lib-contentstudio/app/page/region/ComponentPath';
|
|
10
|
+
import { LiveEditParams } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/LiveEditParams';
|
|
11
|
+
export declare class RegionViewBuilder {
|
|
12
|
+
parentElement: Element;
|
|
13
|
+
parentView: ItemView;
|
|
14
|
+
element: Element;
|
|
15
|
+
name: string;
|
|
16
|
+
liveEditParams: LiveEditParams;
|
|
17
|
+
setParentElement(value: Element): RegionViewBuilder;
|
|
18
|
+
setParentView(value: ItemView): RegionViewBuilder;
|
|
19
|
+
setElement(value: Element): RegionViewBuilder;
|
|
20
|
+
setName(value: string): RegionViewBuilder;
|
|
21
|
+
setLiveEditParams(value: LiveEditParams): RegionViewBuilder;
|
|
22
|
+
}
|
|
23
|
+
export declare class RegionView extends ItemView {
|
|
24
|
+
private componentViews;
|
|
25
|
+
private readonly name;
|
|
26
|
+
private itemViewAddedListeners;
|
|
27
|
+
private itemViewRemovedListeners;
|
|
28
|
+
private itemViewAddedListener;
|
|
29
|
+
private itemViewRemovedListener;
|
|
30
|
+
private componentAddedListener;
|
|
31
|
+
private componentRemovedListener;
|
|
32
|
+
private mouseDownLastTarget;
|
|
33
|
+
private mouseOverListener;
|
|
34
|
+
private readonly resetAction;
|
|
35
|
+
private textMode;
|
|
36
|
+
static debug: boolean;
|
|
37
|
+
constructor(builder: RegionViewBuilder);
|
|
38
|
+
private initListeners;
|
|
39
|
+
private isElementOverRegion;
|
|
40
|
+
memorizeLastMouseDownTarget(event: MouseEvent): void;
|
|
41
|
+
private addRegionContextMenuActions;
|
|
42
|
+
private handleResetContextMenuAction;
|
|
43
|
+
getRegionName(): string;
|
|
44
|
+
getPath(): ComponentPath;
|
|
45
|
+
getName(): string;
|
|
46
|
+
highlightSelected(): void;
|
|
47
|
+
showCursor(): void;
|
|
48
|
+
select(config?: ItemViewSelectedEventConfig, menuPosition?: ItemViewContextMenuPosition): void;
|
|
49
|
+
toString(): string;
|
|
50
|
+
registerComponentView(componentView: ComponentView, index?: number): void;
|
|
51
|
+
registerComponentViewInParent(componentView: ComponentView, index?: number): void;
|
|
52
|
+
registerComponentViewListeners(componentView: ComponentView): void;
|
|
53
|
+
unregisterComponentView(componentView: ComponentView): void;
|
|
54
|
+
getNewItemIndex(): number;
|
|
55
|
+
addComponentView(componentView: ComponentView, index: number, newlyCreated?: boolean, _dragged?: boolean): void;
|
|
56
|
+
removeComponentView(componentView: ComponentView, silent?: boolean): void;
|
|
57
|
+
private getComponentViews;
|
|
58
|
+
getComponentViewIndex(view: ComponentView): number;
|
|
59
|
+
getComponentViewByPath(path: ComponentPath): ItemView;
|
|
60
|
+
hasOnlyMovingComponentViews(): boolean;
|
|
61
|
+
isEmpty(): boolean;
|
|
62
|
+
empty(): void;
|
|
63
|
+
getPageView(): PageView;
|
|
64
|
+
remove(): RegionView;
|
|
65
|
+
toItemViewArray(): ItemView[];
|
|
66
|
+
onItemViewAdded(listener: (event: ItemViewAddedEvent) => void): void;
|
|
67
|
+
unItemViewAdded(listener: (event: ItemViewAddedEvent) => void): void;
|
|
68
|
+
notifyItemViewAdded(itemView: ItemView, newlyCreated?: boolean): void;
|
|
69
|
+
onItemViewRemoved(listener: (event: ItemViewRemovedEvent) => void): void;
|
|
70
|
+
unItemViewRemoved(listener: (event: ItemViewRemovedEvent) => void): void;
|
|
71
|
+
getRegionView(): RegionView;
|
|
72
|
+
private notifyItemViewRemoved;
|
|
73
|
+
private parseComponentViews;
|
|
74
|
+
private doParseComponentViews;
|
|
75
|
+
protected isDragging(): boolean;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=RegionView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegionView.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/RegionView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAC,QAAQ,EAAkB,MAAM,YAAY,CAAC;AAIrD,OAAO,EAAC,kBAAkB,EAAC,MAAM,gEAAgE,CAAC;AAClG,OAAO,EAAC,oBAAoB,EAAC,MAAM,kEAAkE,CAAC;AACtG,OAAO,EAAC,KAAK,2BAA2B,EAAC,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,sFAAsF,CAAC;AAItI,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,YAAY,CAAC;AAIzC,OAAO,EAAC,aAAa,EAAC,MAAM,yDAAyD,CAAC;AAItF,OAAO,EAAC,KAAK,cAAc,EAAC,MAAM,sDAAsD,CAAC;AAEzF,qBAAa,iBAAi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AAmB;IAU3B,OAAO,CAAC,qBAAqB;IAgC7B,SAAS,CAAC,UAAU,IAAI,OAAO;CAGlC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ItemViewContextMenuTitle } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemViewContextMenuTitle';
|
|
2
|
+
export declare class RegionViewContextMenuTitle extends ItemViewContextMenuTitle {
|
|
3
|
+
constructor(name: string);
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=RegionViewContextMenuTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegionViewContextMenuTitle.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/RegionViewContextMenuTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,gEAAgE,CAAC;AAGxG,qBAAa,0BACT,SAAQ,wBAAwB;gBAEpB,IAAI,EAAE,MAAM;CAI3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Highlighter } from './Highlighter';
|
|
2
|
+
import { HighlighterStyle } from '../../../../../../.xp/dev/lib-contentstudio/page-editor/ItemTypeConfig';
|
|
3
|
+
export declare class SelectedHighlighter extends Highlighter {
|
|
4
|
+
private static SELECT_INSTANCE;
|
|
5
|
+
constructor();
|
|
6
|
+
static get(): SelectedHighlighter;
|
|
7
|
+
protected preProcessStyle(style: HighlighterStyle, isEmptyView: boolean): HighlighterStyle;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=SelectedHighlighter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectedHighlighter.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/SelectedHighlighter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAkB,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sDAAsD,CAAC;AAE3F,qBAAa,mBACT,SAAQ,WAAW;IAEnB,OAAO,CAAC,MAAM,CAAC,eAAe,CAAsB;;WAMtC,GAAG,IAAI,mBAAmB;IAOxC,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,GAAG,gBAAgB;CAO7F"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Element } from '../../../../../../.xp/dev/lib-admin-ui/dom/Element';
|
|
2
|
+
export declare class Shader {
|
|
3
|
+
private static CLS_NAME;
|
|
4
|
+
private target;
|
|
5
|
+
private scrollEnabled;
|
|
6
|
+
private pageShader;
|
|
7
|
+
private northShader;
|
|
8
|
+
private eastShader;
|
|
9
|
+
private southShader;
|
|
10
|
+
private westShader;
|
|
11
|
+
private shaders;
|
|
12
|
+
private clickListeners;
|
|
13
|
+
private mouseEnterListeners;
|
|
14
|
+
private mouseLeaveListeners;
|
|
15
|
+
private mouseMoveListeners;
|
|
16
|
+
private static INSTANCE;
|
|
17
|
+
private static debug;
|
|
18
|
+
constructor();
|
|
19
|
+
private createShaderDiv;
|
|
20
|
+
static get(): Shader;
|
|
21
|
+
setScrollEnabled(enabled: boolean): Shader;
|
|
22
|
+
shade(element: Element): void;
|
|
23
|
+
hide(): void;
|
|
24
|
+
isVisible(): boolean;
|
|
25
|
+
onMouseEnter(listener: (event: MouseEvent) => void): void;
|
|
26
|
+
unMouseEnter(listener: (event: MouseEvent) => void): void;
|
|
27
|
+
private notifyMouseEntered;
|
|
28
|
+
onMouseLeave(listener: (event: MouseEvent) => void): void;
|
|
29
|
+
unMouseLeave(listener: (event: MouseEvent) => void): void;
|
|
30
|
+
private notifyMouseLeft;
|
|
31
|
+
onMouseMove(listener: (event: MouseEvent) => void): void;
|
|
32
|
+
unMouseMove(listener: (event: MouseEvent) => void): void;
|
|
33
|
+
private notifyMouseMove;
|
|
34
|
+
onClicked(listener: (event: MouseEvent) => void): void;
|
|
35
|
+
unClicked(listener: (event: MouseEvent) => void): void;
|
|
36
|
+
private notifyClicked;
|
|
37
|
+
private handleClick;
|
|
38
|
+
private showShaderIfNecessary;
|
|
39
|
+
private resizeToPage;
|
|
40
|
+
private resizeToElement;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=Shader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Shader.d.ts","sourceRoot":"","sources":["../../../../../src/main/resources/assets/js/page-editor/Shader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAO9D,qBAAa,MAAM;IAEf,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAoB;IAE3C,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,aAAa,CAAiB;IAEtC,OAAO,CAAC,UAAU,CAAU;IAC5B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,UAAU,CAAU;IAC5B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,UAAU,CAAU;IAE5B,OAAO,CAAC,OAAO,CAAY;IAE3B,OAAO,CAAC,cAAc,CAAuC;IAC7D,OAAO,CAAC,mBAAmB,CAAuC;IAClE,OAAO,CAAC,mBAAmB,CAAuC;IAClE,OAAO,CAAC,kBAAkB,CAAuC;IAEjE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAEhC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAkB;;IAsCtC,OAAO,CAAC,eAAe;WAIT,GAAG,IAAI,MAAM;IAOpB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAKjD,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAa7B,IAAI,IAAI,IAAI;IAKZ,SAAS,IAAI,OAAO;IAIpB,YAAY,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;IAIlD,YAAY,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;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