tango-app-ui-store-builder 1.2.13 → 1.2.15

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.
@@ -27,6 +27,8 @@ export declare class LookPlanoCollectionComponent implements OnInit, OnDestroy {
27
27
  loading: boolean;
28
28
  items: LookPlanoCollectionListItem[];
29
29
  totalItems: number;
30
+ accessChecked: boolean;
31
+ allowed: boolean;
30
32
  searchTerm: string;
31
33
  limit: number;
32
34
  offset: number;
@@ -35,7 +37,9 @@ export declare class LookPlanoCollectionComponent implements OnInit, OnDestroy {
35
37
  sortOrder: number;
36
38
  private destroy$;
37
39
  constructor(router: Router, modal: NgbModal, gs: GlobalStateService, builderService: StoreBuilderService, toast: ToastService, pageInfo: PageInfoService);
38
- ngOnInit(): void;
40
+ ngOnInit(): Promise<void>;
41
+ /** Resolve whether the session user may access Looks. Never throws. */
42
+ private checkAccess;
39
43
  setPageData(): void;
40
44
  loadList(): Promise<void>;
41
45
  onSearch(): void;
@@ -20,6 +20,8 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
20
20
  isNew: boolean;
21
21
  loading: boolean;
22
22
  saving: boolean;
23
+ accessChecked: boolean;
24
+ allowed: boolean;
23
25
  form: FormGroup;
24
26
  selectedLookIndex: number;
25
27
  selectedSlotIndex: number;
@@ -32,6 +34,19 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
32
34
  name: string;
33
35
  fixtureType: string;
34
36
  }[];
37
+ mbqBucketItems: {
38
+ value: string;
39
+ label: string;
40
+ }[];
41
+ brandItems: {
42
+ value: string;
43
+ label: string;
44
+ }[];
45
+ fixtureHeaderItems: {
46
+ value: string;
47
+ label: string;
48
+ }[];
49
+ private comboRaw;
35
50
  vmTypeOptions: {
36
51
  value: string;
37
52
  label: string;
@@ -162,7 +177,9 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
162
177
  private static readonly BUCKET_PALETTE;
163
178
  private destroy$;
164
179
  constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, gs: GlobalStateService, builderService: StoreBuilderService, toast: ToastService, pageInfo: PageInfoService, planoDataService: PlanoDataService);
165
- ngOnInit(): void;
180
+ ngOnInit(): Promise<void>;
181
+ /** Resolve whether the session user may access Looks. Never throws. */
182
+ private checkAccess;
166
183
  setPageData(): void;
167
184
  initForm(): void;
168
185
  get looks(): FormArray;
@@ -192,6 +209,21 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
192
209
  * - Product / SKU collection list (flattened from brand → category mapping
193
210
  * that powers /manage/planogram/config). */
194
211
  loadPlacementDropdownData(): Promise<void>;
212
+ /**
213
+ * Load the MBQ bucket / Brand / Fixture Header dropdown options seeded into
214
+ * planostaticdatas from the sheet, then rebuild the flat option lists
215
+ * (merging in any values already present on the loaded collection).
216
+ */
217
+ loadComboOptions(): Promise<void>;
218
+ /**
219
+ * Rebuild the MBQ bucket / Brand / Fixture Header option lists (and the
220
+ * cascading caches) by MERGING the seeded endpoint payload (comboRaw) with
221
+ * whatever values are already present on the currently-loaded looks. The
222
+ * merge guarantees the dropdowns are never empty for an existing collection
223
+ * even when the endpoint hasn't loaded, and that any value already saved on
224
+ * a look is always selectable.
225
+ */
226
+ private rebuildComboOptions;
195
227
  loadFixtureLibraries(): Promise<void>;
196
228
  /**
197
229
  * Recompute the slot-type-filtered library list once. Stable reference
@@ -222,6 +254,14 @@ export declare class LookPlanoCollectionFormComponent implements OnInit, OnDestr
222
254
  loadDetails(): Promise<void>;
223
255
  addLook(): void;
224
256
  removeLook(index: number): void;
257
+ /**
258
+ * Clone the look at `index` (deep copy of its full nested value — slots,
259
+ * placements, cadHeaderVariants, librarySnapshots) and insert it right
260
+ * after the original, then select the copy. createLookGroup rebuilds the
261
+ * whole FormGroup tree from the JSON seed, so the clone shares no control
262
+ * references with the source.
263
+ */
264
+ duplicateLook(index: number): void;
225
265
  selectLook(index: number): void;
226
266
  addSlot(): void;
227
267
  removeSlot(slotIndex: number): void;
@@ -29,6 +29,8 @@ export declare class StoreExportsComponent implements OnInit, OnDestroy {
29
29
  storeOptions: StoreOption[];
30
30
  initialStores: StoreOption[];
31
31
  selectedStores: StoreOption[];
32
+ selectedRevisionStores: StoreOption[];
33
+ revisionName: string;
32
34
  starting: ExportKind | null;
33
35
  activeJob: ExportJob | null;
34
36
  busyInfo: BusyInfo | null;
@@ -40,6 +42,8 @@ export declare class StoreExportsComponent implements OnInit, OnDestroy {
40
42
  ngOnInit(): void;
41
43
  loadStores(): void;
42
44
  onStoresSelected(stores: StoreOption[]): void;
45
+ onRevisionStoresSelected(stores: StoreOption[]): void;
46
+ get totalSelectedStores(): number;
43
47
  onExportMbq(): void;
44
48
  onExportOrderSheet(): void;
45
49
  get isWorking(): boolean;
@@ -269,8 +269,14 @@ export declare class StoreBuilderService implements OnDestroy {
269
269
  storeNames: string[];
270
270
  vmName: string;
271
271
  }): import("rxjs").Observable<Object>;
272
+ /** Whether the current session user may access the Looks feature
273
+ * (email present in planostaticdatas `allowedLookUsers`). */
274
+ getLookAccess(): import("rxjs").Observable<Object>;
272
275
  getLookPlanoCollectionList(data: any): import("rxjs").Observable<Object>;
273
276
  getLookPlanoCollectionDetails(collectionId: string): import("rxjs").Observable<Object>;
277
+ /** MBQ bucket / Brand / Fixture Header dropdown options + combinations,
278
+ * seeded into planostaticdatas (type='lookComboOptions') from the sheet. */
279
+ getLookComboOptions(clientId: string): import("rxjs").Observable<Object>;
274
280
  createLookPlanoCollection(data: any): import("rxjs").Observable<Object>;
275
281
  updateLookPlanoCollection(data: any): import("rxjs").Observable<Object>;
276
282
  deleteLookPlanoCollection(collectionId: string): import("rxjs").Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-ui-store-builder",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"