@vectoriox/iox-builder 2.12.1 → 3.1.0
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
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ComponentRef, Type, ChangeDetectorRef, OnInit, AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, ApplicationRef, SimpleChanges, ViewContainerRef, Injector, EnvironmentInjector, InjectionToken, TemplateRef, AfterContentInit, QueryList } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i27 from '@vectoriox/iox-ui';
|
|
4
4
|
import { RelativeSourceSpec, DataSourceEndpoints } from '@vectoriox/iox-ui';
|
|
5
5
|
export { ComponentInstanceRegistryService, IoxContextSlot, SetContextParams, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { Subject, Subscription, BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import * as _vectoriox_iox_builder from '@vectoriox/iox-builder';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i22 from 'primeng/popover';
|
|
10
10
|
import { Popover } from 'primeng/popover';
|
|
11
11
|
import { HttpClient } from '@angular/common/http';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i19 from '@angular/cdk/drag-drop';
|
|
13
13
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
14
|
+
import * as i17 from '@angular/common';
|
|
15
|
+
import * as i18 from '@angular/forms';
|
|
16
|
+
import * as i20 from 'primeng/accordion';
|
|
17
|
+
import * as i21 from 'primeng/button';
|
|
18
|
+
import * as i23 from 'primeng/inputtext';
|
|
19
|
+
import * as i24 from 'primeng/select';
|
|
20
|
+
import * as i25 from 'primeng/tooltip';
|
|
21
|
+
import * as i26 from 'primeng/dialog';
|
|
22
22
|
|
|
23
23
|
declare enum StyleCategory {
|
|
24
24
|
Layout = "Layout",
|
|
@@ -83,11 +83,16 @@ declare enum DataSourceType {
|
|
|
83
83
|
/** A ROUTE-CONTEXT value derived from the current route item — `$route`/`$current`/`$siblings`/
|
|
84
84
|
* `$related`. Not fetched: computed by the shared `computeRelative` from other resolved sources.
|
|
85
85
|
* See relative-data-sources-plan.md. */
|
|
86
|
-
Relative = "relative"
|
|
86
|
+
Relative = "relative",
|
|
87
|
+
/** A page-local VARIABLE: a named resource whose value is WRITTEN at runtime by an interaction
|
|
88
|
+
* (`setContext`), never fetched. Starts empty; elements bind to it like any other alias.
|
|
89
|
+
* `request.variable.itemsFrom` names the source whose items it holds, for field suggestions.
|
|
90
|
+
* See element-context-state-plan.md. */
|
|
91
|
+
Variable = "variable"
|
|
87
92
|
}
|
|
88
93
|
interface IoxDataSource {
|
|
89
94
|
id: string;
|
|
90
|
-
type: 'cms' | 'shop' | 'internal-api' | 'external-api' | 'static' | 'derived' | 'relative';
|
|
95
|
+
type: 'cms' | 'shop' | 'internal-api' | 'external-api' | 'static' | 'derived' | 'relative' | 'variable';
|
|
91
96
|
mode: 'single' | 'query';
|
|
92
97
|
alias: string;
|
|
93
98
|
request: {
|
|
@@ -101,6 +106,11 @@ interface IoxDataSource {
|
|
|
101
106
|
/** `relative` alias: a route-context computation (kind + from/subjectFrom/sortBy/matchFields…),
|
|
102
107
|
* resolved by the shared `computeRelative`. */
|
|
103
108
|
relative?: RelativeSourceSpec;
|
|
109
|
+
/** `variable` alias: written at runtime by an interaction. `itemsFrom` names the source whose
|
|
110
|
+
* items it holds — optional, and used only to suggest fields in the bind picker. */
|
|
111
|
+
variable?: {
|
|
112
|
+
itemsFrom?: string;
|
|
113
|
+
};
|
|
104
114
|
cms?: {
|
|
105
115
|
contentType: string;
|
|
106
116
|
filter?: any;
|
|
@@ -2234,111 +2244,9 @@ declare class LayerTreeComponent implements OnInit, OnDestroy {
|
|
|
2234
2244
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayerTreeComponent, "app-layer-tree", never, { "layout": { "alias": "layout"; "required": false; }; "globalElements": { "alias": "globalElements"; "required": false; }; }, { "nodeSelect": "nodeSelect"; "nodeAction": "nodeAction"; "nodeMove": "nodeMove"; }, never, never, false, never>;
|
|
2235
2245
|
}
|
|
2236
2246
|
|
|
2237
|
-
declare class InteractionsPanelComponent implements OnInit, OnDestroy {
|
|
2238
|
-
private overlayService;
|
|
2239
|
-
private componentRegistry;
|
|
2240
|
-
node: ComponentNode | null;
|
|
2241
|
-
/** Base + component-specific trigger options for the selected node. */
|
|
2242
|
-
triggerOptions: {
|
|
2243
|
-
value: string;
|
|
2244
|
-
label: string;
|
|
2245
|
-
icon: string;
|
|
2246
|
-
}[];
|
|
2247
|
-
/** Base + component-specific action type options. */
|
|
2248
|
-
actionTypeOptions: {
|
|
2249
|
-
value: string;
|
|
2250
|
-
label: string;
|
|
2251
|
-
}[];
|
|
2252
|
-
easingOptions: string[];
|
|
2253
|
-
interactions: IoxInteraction[];
|
|
2254
|
-
/** All canvas nodes available as animation targets. */
|
|
2255
|
-
nodeOptions: {
|
|
2256
|
-
label: string;
|
|
2257
|
-
value: string;
|
|
2258
|
-
}[];
|
|
2259
|
-
/** Slot names already used anywhere on the canvas — offered as suggestions, not a closed list.
|
|
2260
|
-
* A slot needs no declaration to work: naming it in a setContext action creates it. */
|
|
2261
|
-
knownSlots: string[];
|
|
2262
|
-
/** Add-form state for a context action. */
|
|
2263
|
-
newSlot: string;
|
|
2264
|
-
newValueKind: 'item' | 'source';
|
|
2265
|
-
newValueSource: string;
|
|
2266
|
-
newValuePath: string;
|
|
2267
|
-
/** Defaults ON — a row that cleared itself on mouseleave would blink on every row-to-row move. */
|
|
2268
|
-
newKeepAfterLeave: boolean;
|
|
2269
|
-
/** Data-source aliases, for the "Pick a value…" mode. */
|
|
2270
|
-
sourceOptions: {
|
|
2271
|
-
label: string;
|
|
2272
|
-
value: string;
|
|
2273
|
-
}[];
|
|
2274
|
-
private dsRegistry;
|
|
2275
|
-
/** State for the "add interaction" form */
|
|
2276
|
-
isAdding: boolean;
|
|
2277
|
-
newTrigger: InteractionTrigger;
|
|
2278
|
-
newActionType: InteractionActionType;
|
|
2279
|
-
newTarget: string;
|
|
2280
|
-
newDuration: number;
|
|
2281
|
-
newDelay: number;
|
|
2282
|
-
newEasing: string;
|
|
2283
|
-
newOnce: boolean;
|
|
2284
|
-
/** Slide index param for swiperGoToSlide action. */
|
|
2285
|
-
newSlideIndex: number;
|
|
2286
|
-
/** Expanded interaction ID for editing */
|
|
2287
|
-
expandedId: string | null;
|
|
2288
|
-
private selectSub?;
|
|
2289
|
-
constructor(overlayService: OverlayService, componentRegistry: ComponentRegistryService);
|
|
2290
|
-
get isSwiperGoToSlide(): boolean;
|
|
2291
|
-
get isSwiperAction(): boolean;
|
|
2292
|
-
/** The add-form is building a context action — it needs a slot, not a target/duration/easing. */
|
|
2293
|
-
get isNewContextAction(): boolean;
|
|
2294
|
-
ngOnInit(): void;
|
|
2295
|
-
/** Merge component-specific events into trigger options and methods into action options. */
|
|
2296
|
-
private refreshDynamicOptions;
|
|
2297
|
-
refreshNodeOptions(): void;
|
|
2298
|
-
getTargetLabel(value: string): string;
|
|
2299
|
-
ngOnDestroy(): void;
|
|
2300
|
-
getTriggerLabel(trigger: InteractionTrigger): string;
|
|
2301
|
-
getTriggerIcon(trigger: InteractionTrigger): string;
|
|
2302
|
-
getActionLabel(type: InteractionActionType): string;
|
|
2303
|
-
getActionsSummary(interaction: IoxInteraction): string;
|
|
2304
|
-
toggleExpand(id: string): void;
|
|
2305
|
-
startAdd(): void;
|
|
2306
|
-
cancelAdd(): void;
|
|
2307
|
-
confirmAdd(): void;
|
|
2308
|
-
removeInteraction(id: string): void;
|
|
2309
|
-
addAction(interaction: IoxInteraction): void;
|
|
2310
|
-
removeAction(interaction: IoxInteraction, index: number): void;
|
|
2311
|
-
/** True for setContext/clearContext — they get a slot editor instead of a target + easing. */
|
|
2312
|
-
isContextAction(action: InteractionAction): boolean;
|
|
2313
|
-
private ctxParams;
|
|
2314
|
-
slotOf(action: InteractionAction): string;
|
|
2315
|
-
setSlot(action: InteractionAction, slot: string): void;
|
|
2316
|
-
valueKindOf(action: InteractionAction): string;
|
|
2317
|
-
setValueKind(action: InteractionAction, kind: string): void;
|
|
2318
|
-
valueSourceOf(action: InteractionAction): string;
|
|
2319
|
-
setValueSource(action: InteractionAction, source: string): void;
|
|
2320
|
-
valuePathOf(action: InteractionAction): string;
|
|
2321
|
-
setValuePath(action: InteractionAction, path: string): void;
|
|
2322
|
-
/**
|
|
2323
|
-
* "Keep after leave" — ON means the slot survives mouseleave (stored as `noReverse`).
|
|
2324
|
-
* Defaults to ON: a repeater row that cleared itself on leave would blink on every row-to-row
|
|
2325
|
-
* move. Turning it OFF is the list-container behaviour (leave clears).
|
|
2326
|
-
*/
|
|
2327
|
-
keepAfterLeave(action: InteractionAction): boolean;
|
|
2328
|
-
setKeepAfterLeave(action: InteractionAction, keep: boolean): void;
|
|
2329
|
-
private refreshKnownSlots;
|
|
2330
|
-
hasToggle(interaction: IoxInteraction): boolean;
|
|
2331
|
-
enableToggle(interaction: IoxInteraction): void;
|
|
2332
|
-
disableToggle(interaction: IoxInteraction): void;
|
|
2333
|
-
addReverseAction(interaction: IoxInteraction): void;
|
|
2334
|
-
removeReverseAction(interaction: IoxInteraction, index: number): void;
|
|
2335
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionsPanelComponent, never>;
|
|
2336
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InteractionsPanelComponent, "app-interactions-panel", never, { "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
2247
|
declare class IoxBuilderModule {
|
|
2340
2248
|
static ɵfac: i0.ɵɵFactoryDeclaration<IoxBuilderModule, never>;
|
|
2341
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IoxBuilderModule, [typeof BuilderComponent, typeof RenderDirective, typeof IoxDraggableDirective, typeof IoxDropzoneDirective, typeof OverlayComponent, typeof ToolbarComponent, typeof SectionComponent, typeof BuilderContainerComponent, typeof BuilderLinkedContainerComponent, typeof BuilderRepeaterComponent, typeof BuilderButtonBlockComponent, typeof SliderContainerComponent, typeof SliderSlideComponent, typeof PanelComponent, typeof PanelChildComponent, typeof LayerTreeComponent
|
|
2249
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IoxBuilderModule, [typeof BuilderComponent, typeof RenderDirective, typeof IoxDraggableDirective, typeof IoxDropzoneDirective, typeof OverlayComponent, typeof ToolbarComponent, typeof SectionComponent, typeof BuilderContainerComponent, typeof BuilderLinkedContainerComponent, typeof BuilderRepeaterComponent, typeof BuilderButtonBlockComponent, typeof SliderContainerComponent, typeof SliderSlideComponent, typeof PanelComponent, typeof PanelChildComponent, typeof LayerTreeComponent], [typeof i17.CommonModule, typeof i18.FormsModule, typeof i19.DragDropModule, typeof i20.AccordionModule, typeof i21.ButtonModule, typeof i22.PopoverModule, typeof i23.InputTextModule, typeof i24.SelectModule, typeof i25.TooltipModule, typeof i26.DialogModule, typeof i27.IoxPageModule], [typeof i17.CommonModule, typeof i18.FormsModule, typeof i19.DragDropModule, typeof i20.AccordionModule, typeof i21.ButtonModule, typeof i22.PopoverModule, typeof i23.InputTextModule, typeof i24.SelectModule, typeof i25.TooltipModule, typeof i26.DialogModule, typeof i27.IoxPageModule, typeof BuilderComponent, typeof RenderDirective, typeof IoxDraggableDirective, typeof IoxDropzoneDirective, typeof OverlayComponent, typeof ToolbarComponent, typeof SectionComponent, typeof BuilderContainerComponent, typeof BuilderLinkedContainerComponent, typeof BuilderRepeaterComponent, typeof BuilderButtonBlockComponent, typeof SliderContainerComponent, typeof SliderSlideComponent, typeof PanelComponent, typeof PanelChildComponent, typeof LayerTreeComponent]>;
|
|
2342
2250
|
static ɵinj: i0.ɵɵInjectorDeclaration<IoxBuilderModule>;
|
|
2343
2251
|
}
|
|
2344
2252
|
|
|
@@ -2504,5 +2412,5 @@ declare class TextBlockComponentConfig extends ComponentConfig {
|
|
|
2504
2412
|
constructor();
|
|
2505
2413
|
}
|
|
2506
2414
|
|
|
2507
|
-
export { ACTION_TYPE_OPTIONS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, DEVICE_OPTIONS, DataSourceRegistryService, DataSourceType, DeviceMode, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EffectsGroupStyleConfig, GalleryConfig, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_DATA_SOURCE_ENDPOINTS, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService,
|
|
2415
|
+
export { ACTION_TYPE_OPTIONS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, DEVICE_OPTIONS, DataSourceRegistryService, DataSourceType, DeviceMode, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EffectsGroupStyleConfig, GalleryConfig, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_DATA_SOURCE_ENDPOINTS, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, buildFullStyleTraits, buildPresetStyleTraits, defaultPageSettings, findNodeLocation, flattenSchemaFields, generateNodeId, resolveTraitControllerType, resolveTraitOptions, wrapNode };
|
|
2508
2416
|
export type { BuilderClipboard, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, DeviceOption, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, HistoryEntry, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxFontManager, IoxInteraction, IoxSymbol, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PageStyleSettings, PanelEvent, QuadSizeSegment, RouteAnimationPreset, ScreenWidthOption, StylePreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, ViewportState, ZoomOption };
|