@vectoriox/iox-builder 2.1.2 → 2.2.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
|
@@ -1750,6 +1750,12 @@ declare class BuilderDataSourceService {
|
|
|
1750
1750
|
fetch(ds: IoxDataSource | undefined): Observable<any>;
|
|
1751
1751
|
/** Same fetch, always as an array — for the canvas components that repeat over the source. */
|
|
1752
1752
|
fetchItems(ds: IoxDataSource | undefined): Observable<any[]>;
|
|
1753
|
+
/**
|
|
1754
|
+
* Items a Repeater/Slider iterates over. With `sourcePath` it repeats over an array PROPERTY of a
|
|
1755
|
+
* SINGLE-resource source (e.g. `product.gallery`); without it the source itself is the list.
|
|
1756
|
+
* Uses the SHARED `resolveRepeaterItems` so the canvas preview matches the SSR engine.
|
|
1757
|
+
*/
|
|
1758
|
+
fetchRepeaterItems(ds: IoxDataSource | undefined, sourcePath?: string): Observable<any[]>;
|
|
1753
1759
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderDataSourceService, [null, { optional: true; }]>;
|
|
1754
1760
|
static ɵprov: i0.ɵɵInjectableDeclaration<BuilderDataSourceService>;
|
|
1755
1761
|
}
|
|
@@ -1776,10 +1782,14 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
|
|
|
1776
1782
|
/** Bound reference passed to [ioxDropzonePostDrop] so the directive can call it. */
|
|
1777
1783
|
readonly refreshPreviewsBound: () => void;
|
|
1778
1784
|
private _source;
|
|
1785
|
+
private _sourcePath;
|
|
1779
1786
|
private _limit;
|
|
1780
1787
|
private bindingSub?;
|
|
1781
1788
|
get source(): string;
|
|
1782
1789
|
set source(value: string);
|
|
1790
|
+
/** Optional array PROPERTY inside a single-resource source to repeat over (e.g. `gallery`). */
|
|
1791
|
+
get sourcePath(): string;
|
|
1792
|
+
set sourcePath(value: string);
|
|
1783
1793
|
get limit(): number;
|
|
1784
1794
|
set limit(value: number);
|
|
1785
1795
|
constructor(dragEngine: DragEngineService, overlayService: OverlayService, dataSourceService: BuilderDataSourceService, dsRegistry: DataSourceRegistryService, panelEventService: PanelEventService, cdr: ChangeDetectorRef);
|
|
@@ -1793,7 +1803,7 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
|
|
|
1793
1803
|
private refreshPreviews;
|
|
1794
1804
|
private applyFirstItemToTemplate;
|
|
1795
1805
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderRepeaterComponent, never>;
|
|
1796
|
-
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>;
|
|
1806
|
+
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; }; "sourcePath": { "alias": "sourcePath"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
|
|
1797
1807
|
}
|
|
1798
1808
|
|
|
1799
1809
|
/**
|