tango-app-ui-store-builder 1.2.5 → 1.2.7
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/collection-update-ai/collection-update-ai.component.mjs +3 -2
- package/esm2022/lib/components/collection-update-ai/find-replace-layout/prepare-template/prepare-template.component.mjs +3 -2
- package/esm2022/lib/components/collection-update-ai/find-replace-layout/review-replace/review-replace.component.mjs +3 -2
- package/esm2022/lib/components/create-fixture/create-fixture.component.mjs +41 -4
- package/esm2022/lib/components/fixture-template/template-assign-stores/preview-modal/preview-modal.component.mjs +3 -2
- package/esm2022/lib/components/fixture-template/template-assign-stores/template-assign-stores.component.mjs +3 -2
- package/esm2022/lib/components/fixture-template-table/find-and-replace/find-and-replace.component.mjs +3 -2
- package/esm2022/lib/components/fixture-template-table/fixture-template-table.component.mjs +2 -3
- package/esm2022/lib/components/fixture-template-tree/fixture-template-tree.component.mjs +3 -2
- package/esm2022/lib/components/manage-plano/verification-table/verification-table.component.mjs +2 -3
- package/esm2022/lib/components/manage-store-plano/manage-store-plano.component.mjs +73 -6
- package/esm2022/lib/components/manage-store-plano/plano-rollout/plano-rollout.component.mjs +4 -3
- package/esm2022/lib/components/manage-store-plano/template-basic-details/template-basic-details.component.mjs +114 -4
- package/esm2022/lib/components/onboard-store-plano/onboard-fixture/onboard-fixture.component.mjs +3 -3
- package/esm2022/lib/components/onboard-store-plano/onboard-store-plano.component.mjs +85 -6
- package/esm2022/lib/components/plano-configurations/plano-configurations.component.mjs +162 -3
- package/esm2022/lib/components/plano-library/fixture-library/fixture-library.component.mjs +24 -11
- package/esm2022/lib/components/plano-library/fixture-library/popups/create-fixture-modal/create-fixture-modal.component.mjs +13 -4
- package/esm2022/lib/components/plano-library/vm-library/vm-library.component.mjs +3 -4
- package/esm2022/lib/components/plano-tools/cad-files/cad-files.component.mjs +3 -3
- package/esm2022/lib/components/plano-tools/cad-render/cad-render.component.mjs +4 -5
- package/esm2022/lib/components/plano-tools/move-bucket/move-bucket.component.mjs +3 -3
- package/esm2022/lib/components/plano-tools/plano-data-export/plano-data-export.component.mjs +98 -3
- package/esm2022/lib/components/plano-tools/plano-migrate/plano-migrate.component.mjs +3 -2
- package/esm2022/lib/components/plano-tools/store-exports/store-exports.component.mjs +135 -33
- package/esm2022/lib/components/planogram/merch-compliance/merch-compliance.component.mjs +3 -2
- package/esm2022/lib/components/planogram/merch-compliance/product-locator/product-locator.component.mjs +3 -2
- package/esm2022/lib/components/planogram/plano-analytics/plano-analytics.component.mjs +3 -2
- package/esm2022/lib/components/planogram/plano-details-parent/plano-details-parent.component.mjs +1 -1
- package/esm2022/lib/components/planogram/plano-overview/plano-comparison/plano-comparison.component.mjs +3 -2
- package/esm2022/lib/components/planogram/plano-overview/plano-overview.component.mjs +3 -2
- package/esm2022/lib/components/planogram/plano-table/plano-table.component.mjs +2 -3
- package/esm2022/lib/components/store-plano/store-plano-tree-view/store-plano-tree-view.component.mjs +3 -4
- package/esm2022/lib/components/store-plano/store-plano.component.mjs +4 -3
- package/esm2022/lib/data/fixture-template.data.mjs +12 -1
- package/esm2022/lib/functions/plano.function.mjs +13 -1
- package/esm2022/lib/interfaces/fixture-library.interface.mjs +1 -1
- package/esm2022/lib/services/store-builder.service.mjs +21 -1
- package/fesm2022/tango-app-ui-store-builder.mjs +1082 -380
- package/fesm2022/tango-app-ui-store-builder.mjs.map +1 -1
- package/lib/components/create-fixture/create-fixture.component.d.ts +3 -0
- package/lib/components/manage-store-plano/manage-store-plano.component.d.ts +6 -1
- package/lib/components/manage-store-plano/template-basic-details/template-basic-details.component.d.ts +14 -1
- package/lib/components/onboard-store-plano/onboard-store-plano.component.d.ts +8 -1
- package/lib/components/plano-configurations/plano-configurations.component.d.ts +19 -1
- package/lib/components/plano-library/fixture-library/fixture-library.component.d.ts +1 -0
- package/lib/components/plano-library/fixture-library/popups/create-fixture-modal/create-fixture-modal.component.d.ts +5 -0
- package/lib/components/plano-tools/plano-data-export/plano-data-export.component.d.ts +26 -0
- package/lib/components/plano-tools/store-exports/store-exports.component.d.ts +28 -3
- package/lib/data/fixture-template.data.d.ts +8 -0
- package/lib/functions/plano.function.d.ts +1 -0
- package/lib/interfaces/fixture-library.interface.d.ts +1 -0
- package/lib/services/store-builder.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -29,6 +29,8 @@ export declare class CreateFixtureComponent implements OnInit, OnDestroy, CanExi
|
|
|
29
29
|
isBodyEnabled: boolean;
|
|
30
30
|
canGoBack: boolean;
|
|
31
31
|
readonly shelfTypes: DropdownIF[];
|
|
32
|
+
readonly wallZones: DropdownIF[];
|
|
33
|
+
readonly floorZones: DropdownIF[];
|
|
32
34
|
private readonly destroy$;
|
|
33
35
|
constructor(route: ActivatedRoute, fb: FormBuilder, storeBuilderService: StoreBuilderService, toast: ToastService, router: Router, ngbModal: NgbModal, pageInfo: PageInfoService, gs: GlobalStateService);
|
|
34
36
|
ngOnInit(): void;
|
|
@@ -51,6 +53,7 @@ export declare class CreateFixtureComponent implements OnInit, OnDestroy, CanExi
|
|
|
51
53
|
setupShelfTypeListener(shelfGroup: FormGroup): void;
|
|
52
54
|
removeShelf(index?: number): void;
|
|
53
55
|
addPanel(panel?: FixtureLibraryShelfConfig): void;
|
|
56
|
+
autoAssignWallZones(): void;
|
|
54
57
|
removePanel(index?: number): void;
|
|
55
58
|
toggleSection(section: "header" | "body" | "footer"): void;
|
|
56
59
|
toggleSectionForm(section: "header" | "body" | "footer"): void;
|
|
@@ -3,7 +3,7 @@ import { Location, TitleCasePipe } from "@angular/common";
|
|
|
3
3
|
import { FormArray, FormBuilder, FormControl, FormGroup } from "@angular/forms";
|
|
4
4
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
5
5
|
import { Subject, Subscription } from "rxjs";
|
|
6
|
-
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
6
|
+
import { NgbAccordionDirective, NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
7
7
|
import * as fabric from "fabric";
|
|
8
8
|
import { GlobalStateService, PageInfoService } from "tango-app-ui-global";
|
|
9
9
|
import { ToastService } from "tango-app-ui-shared";
|
|
@@ -34,6 +34,7 @@ export declare class ManageStorePlanoComponent implements AfterViewInit, OnDestr
|
|
|
34
34
|
noStoreVideoModalRef: TemplateRef<any>;
|
|
35
35
|
applyLogicsModalRef: TemplateRef<any>;
|
|
36
36
|
approveLayoutModalRef: TemplateRef<any>;
|
|
37
|
+
bodyAccordion?: NgbAccordionDirective;
|
|
37
38
|
onResize(): void;
|
|
38
39
|
destroy$: Subject<unknown>;
|
|
39
40
|
clientId: string;
|
|
@@ -77,6 +78,7 @@ export declare class ManageStorePlanoComponent implements AfterViewInit, OnDestr
|
|
|
77
78
|
activeFeedbackTab: "fixture" | "zone";
|
|
78
79
|
editFromTab: "fixture" | "zone";
|
|
79
80
|
submitFixture: boolean;
|
|
81
|
+
highlightedFixtureFormId: string | null;
|
|
80
82
|
storeMetrics: {
|
|
81
83
|
floorCount: number;
|
|
82
84
|
fixtureCount: number;
|
|
@@ -90,6 +92,7 @@ export declare class ManageStorePlanoComponent implements AfterViewInit, OnDestr
|
|
|
90
92
|
disabledPublish: boolean;
|
|
91
93
|
disableEdit: boolean;
|
|
92
94
|
isSavingLayout: boolean;
|
|
95
|
+
layoutHasUnsavedChanges: boolean;
|
|
93
96
|
taskInfo: any;
|
|
94
97
|
taskStyle: {
|
|
95
98
|
layout: {
|
|
@@ -201,6 +204,7 @@ export declare class ManageStorePlanoComponent implements AfterViewInit, OnDestr
|
|
|
201
204
|
}>;
|
|
202
205
|
addWallSpace(wallIndex: number, operation: "increment" | "decrement"): void;
|
|
203
206
|
deleteFixture(fixtureType: "wall" | "floor", fixtureIndex: number, wallIndex?: number): void;
|
|
207
|
+
private hasUnsavedLayoutChanges;
|
|
204
208
|
removeOtherElement(elementType: "wall" | "floor", elementIndex: number, wallIndex?: number): void;
|
|
205
209
|
changeFixtureTemplate(configId: string, fixtureType: "wall" | "floor", fixtureIndex: number, wallIndex?: number): void;
|
|
206
210
|
onDrop(event: any, destinationWallIndex: number | "floor", destinationFixtureIndex?: number): void;
|
|
@@ -257,6 +261,7 @@ export declare class ManageStorePlanoComponent implements AfterViewInit, OnDestr
|
|
|
257
261
|
highlightFixture(group: any, blink?: boolean): void;
|
|
258
262
|
removeHighlight(): void;
|
|
259
263
|
keepHighlightOnTop: () => void;
|
|
264
|
+
highlightFixtureInAccordion(fixtureData: any): void;
|
|
260
265
|
onChangeFixtureOnFeedbackPanel({ currentFixture, action, }: {
|
|
261
266
|
currentFixture?: string;
|
|
262
267
|
action?: "next" | "previous";
|
|
@@ -18,11 +18,24 @@ export declare class InstanceBasicDetailsComponent implements OnChanges, OnDestr
|
|
|
18
18
|
isSubmitted: boolean;
|
|
19
19
|
revertOnEdit: boolean;
|
|
20
20
|
zoneEditMode: boolean;
|
|
21
|
+
libraryCategories: string[];
|
|
22
|
+
libraryByCategory: Map<string, Set<number>>;
|
|
23
|
+
allowCategoryAndWidthEdit: boolean;
|
|
21
24
|
submitEvent: EventEmitter<boolean>;
|
|
22
25
|
initialState: any;
|
|
23
26
|
readonly shelfTypes: DropdownIF[];
|
|
27
|
+
categoryOptions: DropdownIF[];
|
|
28
|
+
widthOptions: DropdownIF[];
|
|
29
|
+
originalCategory: string | null;
|
|
30
|
+
originalWidth: number | null;
|
|
31
|
+
showOriginalCategoryOption: boolean;
|
|
32
|
+
showOriginalWidthOption: boolean;
|
|
33
|
+
originalWidthLabel: string;
|
|
24
34
|
constructor(fb: FormBuilder, toast: ToastService, storeBuilderService: StoreBuilderService);
|
|
25
35
|
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
private updateOriginalOptionVisibility;
|
|
37
|
+
private recomputeCategoryOptions;
|
|
38
|
+
private recomputeWidthOptions;
|
|
26
39
|
initializeForm(): void;
|
|
27
40
|
addShelf(shelf?: any): void;
|
|
28
41
|
setupShelfTypeListener(shelfGroup: FormGroup): void;
|
|
@@ -36,5 +49,5 @@ export declare class InstanceBasicDetailsComponent implements OnChanges, OnDestr
|
|
|
36
49
|
getFixtureLibrary(): string;
|
|
37
50
|
ngOnDestroy(): void;
|
|
38
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<InstanceBasicDetailsComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InstanceBasicDetailsComponent, "lib-instance-basic-details", never, { "fixtureData": { "alias": "fixtureData"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "isSubmitted": { "alias": "isSubmitted"; "required": false; }; "revertOnEdit": { "alias": "revertOnEdit"; "required": false; }; "zoneEditMode": { "alias": "zoneEditMode"; "required": false; }; }, { "submitEvent": "submitEvent"; }, never, never, true, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InstanceBasicDetailsComponent, "lib-instance-basic-details", never, { "fixtureData": { "alias": "fixtureData"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "isSubmitted": { "alias": "isSubmitted"; "required": false; }; "revertOnEdit": { "alias": "revertOnEdit"; "required": false; }; "zoneEditMode": { "alias": "zoneEditMode"; "required": false; }; "libraryCategories": { "alias": "libraryCategories"; "required": false; }; "libraryByCategory": { "alias": "libraryByCategory"; "required": false; }; "allowCategoryAndWidthEdit": { "alias": "allowCategoryAndWidthEdit"; "required": false; }; }, { "submitEvent": "submitEvent"; }, never, never, true, never>;
|
|
40
53
|
}
|
|
@@ -3,7 +3,7 @@ import { Location, TitleCasePipe } from "@angular/common";
|
|
|
3
3
|
import { FormArray, FormBuilder, FormControl, FormGroup } from "@angular/forms";
|
|
4
4
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
5
5
|
import { Subject, Subscription } from "rxjs";
|
|
6
|
-
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
6
|
+
import { NgbAccordionDirective, NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
7
7
|
import * as fabric from "fabric";
|
|
8
8
|
import { GlobalStateService, PageInfoService } from "tango-app-ui-global";
|
|
9
9
|
import { ToastService } from "tango-app-ui-shared";
|
|
@@ -28,6 +28,7 @@ export declare class OnboardStorePlanoComponent implements AfterViewInit, OnDest
|
|
|
28
28
|
approveLayoutModalRef: TemplateRef<any>;
|
|
29
29
|
revertAllocationModalRef: TemplateRef<any>;
|
|
30
30
|
completeAllocationModalRef: TemplateRef<any>;
|
|
31
|
+
bodyAccordion?: NgbAccordionDirective;
|
|
31
32
|
onResize(): void;
|
|
32
33
|
destroy$: Subject<unknown>;
|
|
33
34
|
clientId: string;
|
|
@@ -62,6 +63,7 @@ export declare class OnboardStorePlanoComponent implements AfterViewInit, OnDest
|
|
|
62
63
|
editFixture: boolean;
|
|
63
64
|
editFixtureSection: "basic-details" | "products" | "vms";
|
|
64
65
|
submitFixture: boolean;
|
|
66
|
+
highlightedFixtureFormId: string | null;
|
|
65
67
|
layoutMetrics: {
|
|
66
68
|
allStore: number;
|
|
67
69
|
allocationPending: number;
|
|
@@ -84,6 +86,9 @@ export declare class OnboardStorePlanoComponent implements AfterViewInit, OnDest
|
|
|
84
86
|
isRunAllocationAllowed: boolean;
|
|
85
87
|
ivmAliasKeys: Set<string>;
|
|
86
88
|
fixtureLibraryByWidth: Map<number, Set<string>>;
|
|
89
|
+
libraryCategories: string[];
|
|
90
|
+
libraryByCategory: Map<string, Set<number>>;
|
|
91
|
+
layoutHasUnsavedChanges: boolean;
|
|
87
92
|
restrictedUsers: string[];
|
|
88
93
|
constructor(apiService: StoreBuilderService, route: ActivatedRoute, fb: FormBuilder, gs: GlobalStateService, titleCase: TitleCasePipe, toastService: ToastService, modalService: NgbModal, pageInfo: PageInfoService, location: Location, router: Router, cd: ChangeDetectorRef);
|
|
89
94
|
ngOnInit(): void;
|
|
@@ -210,6 +215,7 @@ export declare class OnboardStorePlanoComponent implements AfterViewInit, OnDest
|
|
|
210
215
|
updateEntranceCoordinates(): void;
|
|
211
216
|
updateLayout(editMode?: boolean): Promise<void>;
|
|
212
217
|
onClickEdit(): void;
|
|
218
|
+
private hasUnsavedLayoutChanges;
|
|
213
219
|
get getProgressValue(): 0 | 25;
|
|
214
220
|
get getStatusText(): "Draft" | "Allocation pending";
|
|
215
221
|
get getStatus(): any;
|
|
@@ -217,6 +223,7 @@ export declare class OnboardStorePlanoComponent implements AfterViewInit, OnDest
|
|
|
217
223
|
highlightFixture(group: any, blink?: boolean): void;
|
|
218
224
|
removeHighlight(): void;
|
|
219
225
|
keepHighlightOnTop: () => void;
|
|
226
|
+
highlightFixtureInAccordion(fixtureData: any): void;
|
|
220
227
|
onClickApproveLayout(): Promise<void>;
|
|
221
228
|
onClickRunAllocation(): Promise<void>;
|
|
222
229
|
onClickRevertAllocation(): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnInit } from "@angular/core";
|
|
2
|
-
import { FormArray, FormBuilder, FormGroup } from "@angular/forms";
|
|
2
|
+
import { AbstractControl, FormArray, FormBuilder, FormGroup } from "@angular/forms";
|
|
3
3
|
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
4
4
|
import { GlobalStateService, PageInfoService } from "tango-app-ui-global";
|
|
5
5
|
import { ToastService } from "tango-app-ui-shared";
|
|
@@ -17,6 +17,7 @@ export declare class PlanoConfigurationsComponent implements OnInit {
|
|
|
17
17
|
private cd;
|
|
18
18
|
private pageInfo;
|
|
19
19
|
formRef: ElementRef;
|
|
20
|
+
brandMetaRef: ElementRef;
|
|
20
21
|
selectedTab: string;
|
|
21
22
|
form: FormGroup;
|
|
22
23
|
clientId: string;
|
|
@@ -24,6 +25,10 @@ export declare class PlanoConfigurationsComponent implements OnInit {
|
|
|
24
25
|
loading: boolean;
|
|
25
26
|
isEdit: boolean;
|
|
26
27
|
taskForm: FormGroup;
|
|
28
|
+
brandMetaForm: FormGroup;
|
|
29
|
+
brandMetaList: any[];
|
|
30
|
+
isBrandMetaEdit: boolean;
|
|
31
|
+
brandMetaSearch: string;
|
|
27
32
|
constructor(fb: FormBuilder, dataService: PlanoDataService, gs: GlobalStateService, builderService: StoreBuilderService, toast: ToastService, modelService: NgbModal, cd: ChangeDetectorRef, pageInfo: PageInfoService);
|
|
28
33
|
ngOnInit(): Promise<void>;
|
|
29
34
|
setPageData(): void;
|
|
@@ -45,6 +50,19 @@ export declare class PlanoConfigurationsComponent implements OnInit {
|
|
|
45
50
|
updateTask(): void;
|
|
46
51
|
bulkUpload(): void;
|
|
47
52
|
formEnable(): void;
|
|
53
|
+
get brandMetaData(): FormArray;
|
|
54
|
+
loadBrandMetaData(): void;
|
|
55
|
+
buildBrandMetaForm(rows: any[]): void;
|
|
56
|
+
addBrandMetaRow(): void;
|
|
57
|
+
removeBrandMetaRow(index: number): void;
|
|
58
|
+
enableBrandMetaForm(): void;
|
|
59
|
+
cancelBrandMetaEdit(): void;
|
|
60
|
+
updateBrandMetaData(): void;
|
|
61
|
+
private readonly BRAND_META_FIELD_LABELS;
|
|
62
|
+
private focusFirstInvalidBrandMetaField;
|
|
63
|
+
private scrollAndFlashBrandMetaField;
|
|
64
|
+
matchesBrandMetaSearch(group: AbstractControl): boolean;
|
|
65
|
+
get filteredBrandMetaCount(): number;
|
|
48
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlanoConfigurationsComponent, never>;
|
|
49
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<PlanoConfigurationsComponent, "lib-plano-configurations", never, {}, {}, never, never, false, never>;
|
|
50
68
|
}
|
|
@@ -9,9 +9,14 @@ export declare class CreateFixtureModalComponent implements OnDestroy {
|
|
|
9
9
|
private storeBuilderService;
|
|
10
10
|
private toast;
|
|
11
11
|
clientId: string;
|
|
12
|
+
countryOptions: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
12
16
|
fixtureForm: FormGroup<{
|
|
13
17
|
fixtureCategory: FormControl<string | null>;
|
|
14
18
|
fixtureType: FormControl<string | null>;
|
|
19
|
+
country: FormControl<string[] | null>;
|
|
15
20
|
}>;
|
|
16
21
|
private readonly destroy$;
|
|
17
22
|
constructor(activeModal: NgbActiveModal, storeBuilderService: StoreBuilderService, toast: ToastService);
|
|
@@ -29,6 +29,12 @@ interface QueryResult {
|
|
|
29
29
|
rows: Record<string, any>[];
|
|
30
30
|
totalRows: number;
|
|
31
31
|
}
|
|
32
|
+
interface VmPlacementResult {
|
|
33
|
+
columns: string[];
|
|
34
|
+
rows: Record<string, any>[];
|
|
35
|
+
totalRows: number;
|
|
36
|
+
matchedVmCount: number;
|
|
37
|
+
}
|
|
32
38
|
export declare class PlanoDataExportComponent implements OnInit, OnDestroy {
|
|
33
39
|
private sbs;
|
|
34
40
|
private gs;
|
|
@@ -56,6 +62,16 @@ export declare class PlanoDataExportComponent implements OnInit, OnDestroy {
|
|
|
56
62
|
paginationSizes: number[];
|
|
57
63
|
pageSize: number;
|
|
58
64
|
currentPage: number;
|
|
65
|
+
vmSelectedStores: StoreOption[];
|
|
66
|
+
vmInitialStores: StoreOption[];
|
|
67
|
+
vmNameRegex: string;
|
|
68
|
+
isVmRunning: boolean;
|
|
69
|
+
vmResult: VmPlacementResult | null;
|
|
70
|
+
vmResultColumns: string[];
|
|
71
|
+
vmPageSize: number;
|
|
72
|
+
vmCurrentPage: number;
|
|
73
|
+
vmMessage: string;
|
|
74
|
+
vmMessageType: 'success' | 'error';
|
|
59
75
|
private readonly destroy$;
|
|
60
76
|
constructor(sbs: StoreBuilderService, gs: GlobalStateService);
|
|
61
77
|
ngOnInit(): void;
|
|
@@ -81,6 +97,16 @@ export declare class PlanoDataExportComponent implements OnInit, OnDestroy {
|
|
|
81
97
|
onRun(): void;
|
|
82
98
|
onExport(): void;
|
|
83
99
|
showMessage(msg: string, type: 'success' | 'error'): void;
|
|
100
|
+
onVmStoresSelected(stores: StoreOption[]): void;
|
|
101
|
+
get vmTotalRows(): number;
|
|
102
|
+
get vmPagedRows(): Record<string, any>[];
|
|
103
|
+
get vmPageStart(): number;
|
|
104
|
+
get vmPageEnd(): number;
|
|
105
|
+
onVmPageChange(page: number): void;
|
|
106
|
+
onVmPageSizeChange(size: number): void;
|
|
107
|
+
onVmRun(): void;
|
|
108
|
+
onVmExport(): void;
|
|
109
|
+
showVmMessage(msg: string, type: 'success' | 'error'): void;
|
|
84
110
|
ngOnDestroy(): void;
|
|
85
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlanoDataExportComponent, never>;
|
|
86
112
|
static ɵcmp: i0.ɵɵComponentDeclaration<PlanoDataExportComponent, "lib-plano-data-export", never, {}, {}, never, never, false, never>;
|
|
@@ -4,6 +4,24 @@ import { GlobalStateService } from 'tango-app-ui-global';
|
|
|
4
4
|
import { StoreOption } from '../../collection-update-ai/components/store-select/store-select.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
type ExportKind = 'mbq' | 'order';
|
|
7
|
+
type JobStatus = 'running' | 'succeeded' | 'failed';
|
|
8
|
+
interface ExportJob {
|
|
9
|
+
jobId: string;
|
|
10
|
+
kind: ExportKind;
|
|
11
|
+
status: JobStatus;
|
|
12
|
+
startedAt?: string;
|
|
13
|
+
completedAt?: string | null;
|
|
14
|
+
downloadUrl?: string | null;
|
|
15
|
+
error?: string | null;
|
|
16
|
+
rowCount?: number | null;
|
|
17
|
+
storeCount?: number | null;
|
|
18
|
+
}
|
|
19
|
+
interface BusyInfo {
|
|
20
|
+
jobId: string;
|
|
21
|
+
kind: ExportKind;
|
|
22
|
+
startedAt?: string;
|
|
23
|
+
storeCount?: number;
|
|
24
|
+
}
|
|
7
25
|
export declare class StoreExportsComponent implements OnInit, OnDestroy {
|
|
8
26
|
private sbs;
|
|
9
27
|
private gs;
|
|
@@ -11,19 +29,26 @@ export declare class StoreExportsComponent implements OnInit, OnDestroy {
|
|
|
11
29
|
storeOptions: StoreOption[];
|
|
12
30
|
initialStores: StoreOption[];
|
|
13
31
|
selectedStores: StoreOption[];
|
|
14
|
-
|
|
32
|
+
starting: ExportKind | null;
|
|
33
|
+
activeJob: ExportJob | null;
|
|
34
|
+
busyInfo: BusyInfo | null;
|
|
15
35
|
message: string;
|
|
16
36
|
messageType: 'success' | 'error';
|
|
17
37
|
private readonly destroy$;
|
|
38
|
+
private readonly stopPoll$;
|
|
18
39
|
constructor(sbs: StoreBuilderService, gs: GlobalStateService);
|
|
19
40
|
ngOnInit(): void;
|
|
20
41
|
loadStores(): void;
|
|
21
42
|
onStoresSelected(stores: StoreOption[]): void;
|
|
22
43
|
onExportMbq(): void;
|
|
23
44
|
onExportOrderSheet(): void;
|
|
45
|
+
get isWorking(): boolean;
|
|
46
|
+
kindLabel(kind: ExportKind | undefined | null): string;
|
|
47
|
+
startedAgo(iso?: string | null): string;
|
|
48
|
+
dismissResult(): void;
|
|
24
49
|
private runExport;
|
|
25
|
-
private
|
|
26
|
-
private
|
|
50
|
+
private startPolling;
|
|
51
|
+
private handlePollTimeout;
|
|
27
52
|
showMessage(msg: string, type: 'success' | 'error'): void;
|
|
28
53
|
ngOnDestroy(): void;
|
|
29
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoreExportsComponent, never>;
|
|
@@ -19,4 +19,5 @@ export declare const getQueryParamString: ({ params, key, fallback, allowed, }:
|
|
|
19
19
|
export declare function uniqueFieldInFormArrayValidator(fieldName: string): ValidatorFn;
|
|
20
20
|
export declare const getNameFromEmail: (email: string) => string;
|
|
21
21
|
export declare const indianPincodeValidator: () => ValidatorFn;
|
|
22
|
+
export declare const getFixtureCanvasLabel: (fixture: any) => string;
|
|
22
23
|
export declare const lightenColor: (hex: string, amount?: number) => string;
|
|
@@ -81,6 +81,8 @@ export declare class StoreBuilderService implements OnDestroy {
|
|
|
81
81
|
updateFixtureComplianceStatus(data: any): import("rxjs").Observable<Object>;
|
|
82
82
|
addUpdateBrand(data: any): import("rxjs").Observable<Object>;
|
|
83
83
|
uploadBrand(data: any): import("rxjs").Observable<Object>;
|
|
84
|
+
getBrandMetaData(clientId: string): import("rxjs").Observable<Object>;
|
|
85
|
+
updateBrandMetaData(data: any): import("rxjs").Observable<Object>;
|
|
84
86
|
updateTask(data: any): import("rxjs").Observable<Object>;
|
|
85
87
|
getTaskConfig(data: any): import("rxjs").Observable<Object>;
|
|
86
88
|
updateStoreFixture(data: any): import("rxjs").Observable<Object>;
|
|
@@ -151,6 +153,9 @@ export declare class StoreBuilderService implements OnDestroy {
|
|
|
151
153
|
approvePlanoLayout(floorId: any): import("rxjs").Observable<Object>;
|
|
152
154
|
exportMBQSheet(data: any): import("rxjs").Observable<ArrayBuffer>;
|
|
153
155
|
exportPlanoOrderSheet(data: any): import("rxjs").Observable<ArrayBuffer>;
|
|
156
|
+
exportMBQSheetAsync(data: any): import("rxjs").Observable<import("@angular/common/http").HttpResponse<Object>>;
|
|
157
|
+
exportPlanoOrderSheetAsync(data: any): import("rxjs").Observable<import("@angular/common/http").HttpResponse<Object>>;
|
|
158
|
+
getPlanoExportJob(jobId: string): import("rxjs").Observable<Object>;
|
|
154
159
|
runAlocation(data: any): import("rxjs").Observable<Object>;
|
|
155
160
|
getIvmConversionAlias(): import("rxjs").Observable<Object>;
|
|
156
161
|
getAllFindReplaceData(data: any): import("rxjs").Observable<Object>;
|
|
@@ -241,6 +246,11 @@ export declare class StoreBuilderService implements OnDestroy {
|
|
|
241
246
|
}[];
|
|
242
247
|
includeNotFoundRows?: boolean;
|
|
243
248
|
}): import("rxjs").Observable<Object>;
|
|
249
|
+
runVmPlacementQuery(data: {
|
|
250
|
+
clientId: string;
|
|
251
|
+
storeNames: string[];
|
|
252
|
+
vmName: string;
|
|
253
|
+
}): import("rxjs").Observable<Object>;
|
|
244
254
|
ngOnDestroy(): void;
|
|
245
255
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoreBuilderService, never>;
|
|
246
256
|
static ɵprov: i0.ɵɵInjectableDeclaration<StoreBuilderService>;
|