@vectoriox/iox-builder 1.0.1 → 1.0.4
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/package.json
CHANGED
|
@@ -122,6 +122,8 @@ interface ComponentNode {
|
|
|
122
122
|
bindings?: IoxBinding[];
|
|
123
123
|
interactions?: IoxInteraction[];
|
|
124
124
|
children?: ComponentNode[];
|
|
125
|
+
isGlobal?: boolean;
|
|
126
|
+
globalPosition?: 'before' | 'after';
|
|
125
127
|
}
|
|
126
128
|
declare enum TraitInputType {
|
|
127
129
|
Text = "text",
|
|
@@ -261,7 +263,9 @@ declare enum ToolbarAction {
|
|
|
261
263
|
Duplicate = "duplicate",
|
|
262
264
|
Delete = "delete",
|
|
263
265
|
Play = "play",
|
|
264
|
-
SaveAsBlock = "save-as-block"
|
|
266
|
+
SaveAsBlock = "save-as-block",
|
|
267
|
+
MakeGlobal = "make-global",
|
|
268
|
+
RemoveGlobal = "remove-global"
|
|
265
269
|
}
|
|
266
270
|
declare enum NodeAction {
|
|
267
271
|
Delete = "delete",
|
|
@@ -590,6 +594,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
590
594
|
isSaving: boolean;
|
|
591
595
|
pageStatus: string;
|
|
592
596
|
pageSettings: PageSettings | null;
|
|
597
|
+
globalElements: ComponentNode[];
|
|
593
598
|
save: EventEmitter<void>;
|
|
594
599
|
back: EventEmitter<void>;
|
|
595
600
|
preview: EventEmitter<void>;
|
|
@@ -600,6 +605,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
600
605
|
name: string;
|
|
601
606
|
node: ComponentNode;
|
|
602
607
|
}>;
|
|
608
|
+
globalElementsChange: EventEmitter<ComponentNode[]>;
|
|
603
609
|
previewCanvas?: ElementRef<HTMLElement>;
|
|
604
610
|
previewScrollRef?: ElementRef<HTMLElement>;
|
|
605
611
|
lenisContentRef?: ElementRef<HTMLElement>;
|
|
@@ -692,6 +698,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
692
698
|
onToolbarAction(event: {
|
|
693
699
|
action: ToolbarAction;
|
|
694
700
|
entry: OverlayEntry;
|
|
701
|
+
position?: 'before' | 'after';
|
|
695
702
|
}): void;
|
|
696
703
|
confirmSaveBlock(): void;
|
|
697
704
|
cancelSaveBlock(): void;
|
|
@@ -708,7 +715,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
708
715
|
private findParentNode;
|
|
709
716
|
private handlePanelEvents;
|
|
710
717
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderComponent, never>;
|
|
711
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderComponent, "app-builder", never, { "layout": { "alias": "layout"; "required": false; }; "dataSources": { "alias": "dataSources"; "required": false; }; "orgId": { "alias": "orgId"; "required": false; }; "routeParams": { "alias": "routeParams"; "required": false; }; "pageName": { "alias": "pageName"; "required": false; }; "isSaving": { "alias": "isSaving"; "required": false; }; "pageStatus": { "alias": "pageStatus"; "required": false; }; "pageSettings": { "alias": "pageSettings"; "required": false; }; }, { "save": "save"; "back": "back"; "preview": "preview"; "publishToggle": "publishToggle"; "pageSettingsChange": "pageSettingsChange"; "applyAnimationToAll": "applyAnimationToAll"; "saveBlock": "saveBlock"; }, never, ["[builderComponents]", "[builderPanel]"], false, never>;
|
|
718
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderComponent, "app-builder", never, { "layout": { "alias": "layout"; "required": false; }; "dataSources": { "alias": "dataSources"; "required": false; }; "orgId": { "alias": "orgId"; "required": false; }; "routeParams": { "alias": "routeParams"; "required": false; }; "pageName": { "alias": "pageName"; "required": false; }; "isSaving": { "alias": "isSaving"; "required": false; }; "pageStatus": { "alias": "pageStatus"; "required": false; }; "pageSettings": { "alias": "pageSettings"; "required": false; }; "globalElements": { "alias": "globalElements"; "required": false; }; }, { "save": "save"; "back": "back"; "preview": "preview"; "publishToggle": "publishToggle"; "pageSettingsChange": "pageSettingsChange"; "applyAnimationToAll": "applyAnimationToAll"; "saveBlock": "saveBlock"; "globalElementsChange": "globalElementsChange"; }, never, ["[builderComponents]", "[builderPanel]"], false, never>;
|
|
712
719
|
}
|
|
713
720
|
|
|
714
721
|
/**
|
|
@@ -819,6 +826,7 @@ declare class OverlayComponent implements OnInit, OnDestroy {
|
|
|
819
826
|
toolbarAction: EventEmitter<{
|
|
820
827
|
action: ToolbarAction;
|
|
821
828
|
entry: OverlayEntry;
|
|
829
|
+
position?: "before" | "after";
|
|
822
830
|
}>;
|
|
823
831
|
hoverEntry: OverlayEntry | null;
|
|
824
832
|
selectEntry: OverlayEntry | null;
|
|
@@ -847,8 +855,11 @@ declare class OverlayComponent implements OnInit, OnDestroy {
|
|
|
847
855
|
closeMoreMenu(): void;
|
|
848
856
|
onContextMenu(event: MouseEvent): void;
|
|
849
857
|
onContextSaveAsBlock(event: MouseEvent): void;
|
|
858
|
+
onMakeGlobal(event: MouseEvent, position: 'before' | 'after'): void;
|
|
859
|
+
onRemoveGlobal(event: MouseEvent): void;
|
|
850
860
|
closeContextMenu(): void;
|
|
851
861
|
get hasInteractions(): boolean;
|
|
862
|
+
get selectedNodeIsGlobal(): boolean;
|
|
852
863
|
private observeSelectElement;
|
|
853
864
|
private updateAll;
|
|
854
865
|
private updateHover;
|