tango-app-ui-store-builder 1.2.13 → 1.2.14
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/esm2022/lib/components/look-plano-collection/look-plano-collection.component.mjs +3 -3
- package/esm2022/lib/components/look-plano-collection-form/look-plano-collection-form.component.mjs +141 -4
- package/esm2022/lib/components/plano-tools/delete-floor/delete-floor.component.mjs +3 -3
- package/esm2022/lib/components/popups/publish-plano-modal/publish-plano-modal.component.mjs +1 -1
- package/esm2022/lib/services/store-builder.service.mjs +6 -1
- package/fesm2022/tango-app-ui-store-builder.mjs +151 -9
- package/fesm2022/tango-app-ui-store-builder.mjs.map +1 -1
- package/lib/components/look-plano-collection-form/look-plano-collection-form.component.d.ts +36 -0
- package/lib/services/store-builder.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -32,6 +32,19 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
|
|
|
32
32
|
name: string;
|
|
33
33
|
fixtureType: string;
|
|
34
34
|
}[];
|
|
35
|
+
mbqBucketItems: {
|
|
36
|
+
value: string;
|
|
37
|
+
label: string;
|
|
38
|
+
}[];
|
|
39
|
+
brandItems: {
|
|
40
|
+
value: string;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|
|
43
|
+
fixtureHeaderItems: {
|
|
44
|
+
value: string;
|
|
45
|
+
label: string;
|
|
46
|
+
}[];
|
|
47
|
+
private comboRaw;
|
|
35
48
|
vmTypeOptions: {
|
|
36
49
|
value: string;
|
|
37
50
|
label: string;
|
|
@@ -192,6 +205,21 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
|
|
|
192
205
|
* - Product / SKU collection list (flattened from brand → category mapping
|
|
193
206
|
* that powers /manage/planogram/config). */
|
|
194
207
|
loadPlacementDropdownData(): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* Load the MBQ bucket / Brand / Fixture Header dropdown options seeded into
|
|
210
|
+
* planostaticdatas from the sheet, then rebuild the flat option lists
|
|
211
|
+
* (merging in any values already present on the loaded collection).
|
|
212
|
+
*/
|
|
213
|
+
loadComboOptions(): Promise<void>;
|
|
214
|
+
/**
|
|
215
|
+
* Rebuild the MBQ bucket / Brand / Fixture Header option lists (and the
|
|
216
|
+
* cascading caches) by MERGING the seeded endpoint payload (comboRaw) with
|
|
217
|
+
* whatever values are already present on the currently-loaded looks. The
|
|
218
|
+
* merge guarantees the dropdowns are never empty for an existing collection
|
|
219
|
+
* even when the endpoint hasn't loaded, and that any value already saved on
|
|
220
|
+
* a look is always selectable.
|
|
221
|
+
*/
|
|
222
|
+
private rebuildComboOptions;
|
|
195
223
|
loadFixtureLibraries(): Promise<void>;
|
|
196
224
|
/**
|
|
197
225
|
* Recompute the slot-type-filtered library list once. Stable reference
|
|
@@ -222,6 +250,14 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
|
|
|
222
250
|
loadDetails(): Promise<void>;
|
|
223
251
|
addLook(): void;
|
|
224
252
|
removeLook(index: number): void;
|
|
253
|
+
/**
|
|
254
|
+
* Clone the look at `index` (deep copy of its full nested value — slots,
|
|
255
|
+
* placements, cadHeaderVariants, librarySnapshots) and insert it right
|
|
256
|
+
* after the original, then select the copy. createLookGroup rebuilds the
|
|
257
|
+
* whole FormGroup tree from the JSON seed, so the clone shares no control
|
|
258
|
+
* references with the source.
|
|
259
|
+
*/
|
|
260
|
+
duplicateLook(index: number): void;
|
|
225
261
|
selectLook(index: number): void;
|
|
226
262
|
addSlot(): void;
|
|
227
263
|
removeSlot(slotIndex: number): void;
|
|
@@ -271,6 +271,9 @@ export declare class StoreBuilderService implements OnDestroy {
|
|
|
271
271
|
}): import("rxjs").Observable<Object>;
|
|
272
272
|
getLookPlanoCollectionList(data: any): import("rxjs").Observable<Object>;
|
|
273
273
|
getLookPlanoCollectionDetails(collectionId: string): import("rxjs").Observable<Object>;
|
|
274
|
+
/** MBQ bucket / Brand / Fixture Header dropdown options + combinations,
|
|
275
|
+
* seeded into planostaticdatas (type='lookComboOptions') from the sheet. */
|
|
276
|
+
getLookComboOptions(clientId: string): import("rxjs").Observable<Object>;
|
|
274
277
|
createLookPlanoCollection(data: any): import("rxjs").Observable<Object>;
|
|
275
278
|
updateLookPlanoCollection(data: any): import("rxjs").Observable<Object>;
|
|
276
279
|
deleteLookPlanoCollection(collectionId: string): import("rxjs").Observable<Object>;
|