@vectoriox/iox-builder 1.4.62 → 1.4.64

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "1.4.62",
3
+ "version": "1.4.64",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -57,9 +57,16 @@ interface DsFilterByQueryParam {
57
57
  queryParam: string;
58
58
  defaultValue?: string;
59
59
  }
60
+ declare enum DataSourceType {
61
+ Cms = "cms",
62
+ Shop = "shop",
63
+ ExternalApi = "external-api",
64
+ InternalApi = "internal-api",
65
+ Static = "static"
66
+ }
60
67
  interface IoxDataSource {
61
68
  id: string;
62
- type: 'cms' | 'internal-api' | 'external-api' | 'static';
69
+ type: 'cms' | 'shop' | 'internal-api' | 'external-api' | 'static';
63
70
  mode: 'single' | 'query';
64
71
  alias: string;
65
72
  request: {
@@ -75,6 +82,11 @@ interface IoxDataSource {
75
82
  /** Array-result filtering: match fields against URL query params */
76
83
  filterByQueryParams?: DsFilterByQueryParam[];
77
84
  };
85
+ shop?: {
86
+ contentType: 'products' | 'categories' | 'subCategories';
87
+ filterByRouteParam?: DsFilterByRouteParam;
88
+ filterByQueryParams?: DsFilterByQueryParam[];
89
+ };
78
90
  params?: Record<string, any>;
79
91
  };
80
92
  }
@@ -1394,6 +1406,8 @@ declare class BuilderLinkedContainerComponent implements OnInit, OnDestroy {
1394
1406
 
1395
1407
  /** Optional CMS content fetcher. Provide from the host app to enable Repeater data preview. */
1396
1408
  declare const IOX_CONTENT_SERVICE: InjectionToken<IoxContentService>;
1409
+ /** Optional shop content fetcher. Provide from the host app to enable Repeater shop data preview. */
1410
+ declare const IOX_SHOP_SERVICE: InjectionToken<IoxContentService>;
1397
1411
  /** Optional font manager. Provide from the host app to populate the fontFamily dropdown. */
1398
1412
  declare const IOX_FONT_MANAGER: InjectionToken<IoxFontManager>;
1399
1413
  interface IoxContentService {
@@ -1412,6 +1426,7 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
1412
1426
  private dragEngine;
1413
1427
  private overlayService;
1414
1428
  private contentService;
1429
+ private shopContentService;
1415
1430
  private dsRegistry;
1416
1431
  private panelEventService;
1417
1432
  private activatedRoute;
@@ -1438,7 +1453,7 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
1438
1453
  set source(value: string);
1439
1454
  get limit(): number;
1440
1455
  set limit(value: number);
1441
- constructor(dragEngine: DragEngineService, overlayService: OverlayService, contentService: IoxContentService | null, dsRegistry: DataSourceRegistryService, panelEventService: PanelEventService, activatedRoute: ActivatedRoute, cdr: ChangeDetectorRef);
1456
+ constructor(dragEngine: DragEngineService, overlayService: OverlayService, contentService: IoxContentService | null, shopContentService: IoxContentService | null, dsRegistry: DataSourceRegistryService, panelEventService: PanelEventService, activatedRoute: ActivatedRoute, cdr: ChangeDetectorRef);
1442
1457
  ngOnInit(): void;
1443
1458
  ngOnDestroy(): void;
1444
1459
  onDrop(event: IoxDropEvent): void;
@@ -1446,7 +1461,7 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
1446
1461
  private isInTemplate;
1447
1462
  private refreshPreviews;
1448
1463
  private applyFirstItemToTemplate;
1449
- static ɵfac: i0.ɵɵFactoryDeclaration<BuilderRepeaterComponent, [null, null, { optional: true; }, null, null, null, null]>;
1464
+ static ɵfac: i0.ɵɵFactoryDeclaration<BuilderRepeaterComponent, [null, null, { optional: true; }, { optional: true; }, null, null, null, null]>;
1450
1465
  static ɵcmp: i0.ɵɵComponentDeclaration<BuilderRepeaterComponent, "app-builder-repeater", never, { "children": { "alias": "children"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; "source": { "alias": "source"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
1451
1466
  }
1452
1467
 
@@ -1721,5 +1736,5 @@ declare class TextBlockComponentConfig extends ComponentConfig {
1721
1736
  constructor();
1722
1737
  }
1723
1738
 
1724
- export { ACTION_TYPE_OPTIONS, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ComponentConfig, ComponentRegistryService, DEVICE_OPTIONS, DataSourceRegistryService, DeviceMode, DragEngineService, EASING_OPTIONS, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_CONTENT_SERVICE, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService, InteractionsPanelComponent, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PresetRegistryService, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SymbolRegistryService, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VIRTUAL_TRAIT_KEYS, ViewportService, ZOOM_OPTIONS, buildFullStyleTraits, buildPresetStyleTraits, composeVirtualTraits, defaultPageSettings, generateNodeId, resolveTraitControllerType, resolveTraitOptions };
1739
+ export { ACTION_TYPE_OPTIONS, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ComponentConfig, ComponentRegistryService, DEVICE_OPTIONS, DataSourceRegistryService, DataSourceType, DeviceMode, DragEngineService, EASING_OPTIONS, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_CONTENT_SERVICE, IOX_FONT_MANAGER, IOX_SHOP_SERVICE, InteractionEngineService, InteractionPresetRegistryService, InteractionsPanelComponent, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PresetRegistryService, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SymbolRegistryService, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VIRTUAL_TRAIT_KEYS, ViewportService, ZOOM_OPTIONS, buildFullStyleTraits, buildPresetStyleTraits, composeVirtualTraits, defaultPageSettings, generateNodeId, resolveTraitControllerType, resolveTraitOptions };
1725
1740
  export type { BuilderClipboard, ComponentNode, ComponentTrait, DeviceOption, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, HistoryEntry, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxContentService, 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 };