@vectoriox/iox-builder 1.0.6 → 1.0.8
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
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ComponentRef, Type, ChangeDetectorRef, OnInit, AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, ApplicationRef, SimpleChanges, ViewContainerRef, Injector, InjectionToken, TemplateRef, AfterContentInit, QueryList } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Subject, Subscription, BehaviorSubject } from 'rxjs';
|
|
5
|
+
import * as _vectoriox_iox_builder from '@vectoriox/iox-builder';
|
|
5
6
|
import * as i20 from 'primeng/popover';
|
|
6
7
|
import { Popover } from 'primeng/popover';
|
|
7
8
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -293,6 +294,11 @@ interface ZoomOption {
|
|
|
293
294
|
value: number | 'fit';
|
|
294
295
|
}
|
|
295
296
|
declare const ZOOM_OPTIONS: ZoomOption[];
|
|
297
|
+
interface ScreenWidthOption {
|
|
298
|
+
label: string;
|
|
299
|
+
width: number;
|
|
300
|
+
}
|
|
301
|
+
declare const SCREEN_WIDTH_OPTIONS: ScreenWidthOption[];
|
|
296
302
|
|
|
297
303
|
interface OverlayBoxSpacing {
|
|
298
304
|
top: number;
|
|
@@ -558,6 +564,7 @@ declare class ViewportService {
|
|
|
558
564
|
getScale(): number;
|
|
559
565
|
setDevice(device: DeviceMode): void;
|
|
560
566
|
setScale(scale: number): void;
|
|
567
|
+
setWidth(width: number): void;
|
|
561
568
|
/**
|
|
562
569
|
* Calculate the scale that makes the canvas fit inside the available editor width.
|
|
563
570
|
* @param availableWidth The pixel width of the editor area that holds the canvas.
|
|
@@ -617,6 +624,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
617
624
|
builderModes: typeof BuilderMode;
|
|
618
625
|
activeDevice: DeviceMode;
|
|
619
626
|
activeZoom: number;
|
|
627
|
+
activeScreenWidth: number;
|
|
620
628
|
selectedItem: ComponentNode | null;
|
|
621
629
|
isDragging: boolean;
|
|
622
630
|
scrollThumbTop: number;
|
|
@@ -643,6 +651,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
643
651
|
handleToolbarModeChange(mode: BuilderMode): void;
|
|
644
652
|
handleToolbarDeviceChange(device: DeviceMode): void;
|
|
645
653
|
handleToolbarZoomChange(value: number | 'fit'): void;
|
|
654
|
+
handleToolbarScreenWidthChange(width: number): void;
|
|
646
655
|
get globalElementsBefore(): ComponentNode[];
|
|
647
656
|
get globalElementsAfter(): ComponentNode[];
|
|
648
657
|
/** Canvas width in CSS pixels (driven by ViewportService). */
|
|
@@ -877,6 +886,7 @@ declare class ToolbarComponent {
|
|
|
877
886
|
activeMode: BuilderMode;
|
|
878
887
|
activeDevice: DeviceMode;
|
|
879
888
|
activeZoom: number;
|
|
889
|
+
activeScreenWidth: number;
|
|
880
890
|
canUndo: boolean;
|
|
881
891
|
canRedo: boolean;
|
|
882
892
|
isSaving: boolean;
|
|
@@ -884,6 +894,7 @@ declare class ToolbarComponent {
|
|
|
884
894
|
modeChange: EventEmitter<BuilderMode>;
|
|
885
895
|
deviceChange: EventEmitter<DeviceMode>;
|
|
886
896
|
zoomChange: EventEmitter<number | "fit">;
|
|
897
|
+
screenWidthChange: EventEmitter<number>;
|
|
887
898
|
undo: EventEmitter<void>;
|
|
888
899
|
redo: EventEmitter<void>;
|
|
889
900
|
save: EventEmitter<void>;
|
|
@@ -893,21 +904,28 @@ declare class ToolbarComponent {
|
|
|
893
904
|
modePopover: Popover;
|
|
894
905
|
devicePopover: Popover;
|
|
895
906
|
zoomPopover: Popover;
|
|
907
|
+
widthPopover: Popover;
|
|
896
908
|
modes: typeof BuilderMode;
|
|
909
|
+
deviceModes: typeof DeviceMode;
|
|
897
910
|
deviceOptions: DeviceOption[];
|
|
898
|
-
zoomOptions: ZoomOption[];
|
|
911
|
+
zoomOptions: _vectoriox_iox_builder.ZoomOption[];
|
|
912
|
+
screenWidthOptions: ScreenWidthOption[];
|
|
899
913
|
get activeModeIcon(): string;
|
|
900
914
|
get activeModeLabel(): string;
|
|
901
915
|
get activeDeviceOption(): DeviceOption;
|
|
902
916
|
get zoomLabel(): string;
|
|
917
|
+
get sliderZoom(): number;
|
|
903
918
|
toggleModePopover(event: Event): void;
|
|
904
919
|
selectMode(mode: BuilderMode): void;
|
|
905
920
|
toggleDevicePopover(event: Event): void;
|
|
906
921
|
selectDevice(mode: DeviceMode): void;
|
|
922
|
+
onSliderChange(event: Event): void;
|
|
923
|
+
toggleWidthPopover(event: Event): void;
|
|
924
|
+
selectScreenWidth(width: number): void;
|
|
907
925
|
toggleZoomPopover(event: Event): void;
|
|
908
926
|
selectZoom(value: number | 'fit'): void;
|
|
909
927
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
910
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "activeMode": { "alias": "activeMode"; "required": false; }; "activeDevice": { "alias": "activeDevice"; "required": false; }; "activeZoom": { "alias": "activeZoom"; "required": false; }; "canUndo": { "alias": "canUndo"; "required": false; }; "canRedo": { "alias": "canRedo"; "required": false; }; "isSaving": { "alias": "isSaving"; "required": false; }; "pageStatus": { "alias": "pageStatus"; "required": false; }; }, { "modeChange": "modeChange"; "deviceChange": "deviceChange"; "zoomChange": "zoomChange"; "undo": "undo"; "redo": "redo"; "save": "save"; "preview": "preview"; "publishToggle": "publishToggle"; }, never, never, false, never>;
|
|
928
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "activeMode": { "alias": "activeMode"; "required": false; }; "activeDevice": { "alias": "activeDevice"; "required": false; }; "activeZoom": { "alias": "activeZoom"; "required": false; }; "activeScreenWidth": { "alias": "activeScreenWidth"; "required": false; }; "canUndo": { "alias": "canUndo"; "required": false; }; "canRedo": { "alias": "canRedo"; "required": false; }; "isSaving": { "alias": "isSaving"; "required": false; }; "pageStatus": { "alias": "pageStatus"; "required": false; }; }, { "modeChange": "modeChange"; "deviceChange": "deviceChange"; "zoomChange": "zoomChange"; "screenWidthChange": "screenWidthChange"; "undo": "undo"; "redo": "redo"; "save": "save"; "preview": "preview"; "publishToggle": "publishToggle"; }, never, never, false, never>;
|
|
911
929
|
}
|
|
912
930
|
|
|
913
931
|
declare class SectionComponent implements OnInit, OnDestroy {
|
|
@@ -1221,5 +1239,5 @@ declare class TextBlockComponentConfig extends ComponentConfig {
|
|
|
1221
1239
|
constructor();
|
|
1222
1240
|
}
|
|
1223
1241
|
|
|
1224
|
-
export { ACTION_TYPE_OPTIONS, BuilderButtonComponentConfig, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, CardComponentConfig, ComponentConfig, ComponentRegistryService, DEVICE_OPTIONS, DataSourceRegistryService, DeviceMode, DragEngineService, EASING_OPTIONS, GroupStyleConfig, IOX_CONTENT_SERVICE, IOX_FONT_MANAGER, InteractionEngineService, InteractionsPanelComponent, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SectionComponent, SectionComponentConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, ViewportService, ZOOM_OPTIONS, defaultPageSettings, generateNodeId, resolveTraitControllerType, resolveTraitOptions };
|
|
1225
|
-
export type { ComponentNode, ComponentTrait, DeviceOption, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, InteractionAction, InteractionActionType, InteractionTrigger, IoxBinding, IoxContentService, IoxDataSource, IoxDropEvent, IoxFontManager, IoxInteraction, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PageStyleSettings, PanelEvent, QuadSizeSegment, RouteAnimationPreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, ViewportState, ZoomOption };
|
|
1242
|
+
export { ACTION_TYPE_OPTIONS, BuilderButtonComponentConfig, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, CardComponentConfig, ComponentConfig, ComponentRegistryService, DEVICE_OPTIONS, DataSourceRegistryService, DeviceMode, DragEngineService, EASING_OPTIONS, GroupStyleConfig, IOX_CONTENT_SERVICE, IOX_FONT_MANAGER, InteractionEngineService, InteractionsPanelComponent, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, SectionComponent, SectionComponentConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, ViewportService, ZOOM_OPTIONS, defaultPageSettings, generateNodeId, resolveTraitControllerType, resolveTraitOptions };
|
|
1243
|
+
export type { ComponentNode, ComponentTrait, DeviceOption, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, InteractionAction, InteractionActionType, InteractionTrigger, IoxBinding, IoxContentService, IoxDataSource, IoxDropEvent, IoxFontManager, IoxInteraction, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PageStyleSettings, PanelEvent, QuadSizeSegment, RouteAnimationPreset, ScreenWidthOption, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, ViewportState, ZoomOption };
|