tango-app-ui-ticket-user 3.5.1 → 3.5.2
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/infratickets/infratickets.component.mjs +6 -1
- package/esm2022/lib/components/preinstallation-info/preinstallation-info.component.mjs +178 -0
- package/esm2022/lib/services/ticket-infra.service.mjs +13 -1
- package/esm2022/lib/tango-ticket-users-routing.module.mjs +6 -1
- package/esm2022/lib/tango-ticket-users.module.mjs +4 -3
- package/fesm2022/tango-app-ui-ticket-user.mjs +237 -46
- package/fesm2022/tango-app-ui-ticket-user.mjs.map +1 -1
- package/lib/components/preinstallation-info/preinstallation-info.component.d.ts +56 -0
- package/lib/services/ticket-infra.service.d.ts +5 -0
- package/lib/tango-ticket-users.module.d.ts +8 -7
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
4
|
+
import { TicketsService } from '../../services/ticket-infra.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Pre-Installation ticket detail page (workspace entry for TE_PRE tickets).
|
|
8
|
+
* Same role as InstallationComponent for TE_INS tickets: the ticket header +
|
|
9
|
+
* activity trail come from the tickets API, the LIVE camera-placement state
|
|
10
|
+
* comes from the store-builder CCTV row, and the page gates the next step:
|
|
11
|
+
* autoPlacement -> "Auto placement in progress", editor locked
|
|
12
|
+
* failed -> failure reason + Retry
|
|
13
|
+
* open -> "Open DXF editor" (assignee gated server-side)
|
|
14
|
+
* approvalPending-> waiting for approval, drawing viewable
|
|
15
|
+
* approved -> done (ticket closes via the approve hook)
|
|
16
|
+
* Loading the CCTV detail also triggers the server-side OS reconcile, so this
|
|
17
|
+
* page keeps the row fresh, the job the CCTV table used to do.
|
|
18
|
+
*/
|
|
19
|
+
export declare class PreinstallationInfoComponent implements OnInit, OnDestroy {
|
|
20
|
+
private route;
|
|
21
|
+
private router;
|
|
22
|
+
private service;
|
|
23
|
+
private toastService;
|
|
24
|
+
ticketId: string | null;
|
|
25
|
+
storeId: string | null;
|
|
26
|
+
ticketInfo: any;
|
|
27
|
+
cctvRow: any;
|
|
28
|
+
cctvFloor: any;
|
|
29
|
+
/** live placement state straight off the status index */
|
|
30
|
+
placement: any;
|
|
31
|
+
fileUrls: any;
|
|
32
|
+
loading: boolean;
|
|
33
|
+
cctvLoading: boolean;
|
|
34
|
+
cctvError: string;
|
|
35
|
+
retrying: boolean;
|
|
36
|
+
private readonly destroy$;
|
|
37
|
+
constructor(route: ActivatedRoute, router: Router, service: TicketsService, toastService: ToastService);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
get floorId(): string;
|
|
41
|
+
get floorNumber(): any;
|
|
42
|
+
/** Presigned link to the imported drawing (v1), from the detail call's url map. */
|
|
43
|
+
get sourceDxfUrl(): string | null;
|
|
44
|
+
get sourceDxfName(): string;
|
|
45
|
+
get placementState(): string;
|
|
46
|
+
get versions(): any[];
|
|
47
|
+
get activity(): any[];
|
|
48
|
+
viewTicket(): void;
|
|
49
|
+
loadCctvDetail(): void;
|
|
50
|
+
refresh(): void;
|
|
51
|
+
retryPlacement(): void;
|
|
52
|
+
openEditor(): void;
|
|
53
|
+
back(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreinstallationInfoComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreinstallationInfoComponent, "lib-preinstallation-info", never, {}, {}, never, never, false, never>;
|
|
56
|
+
}
|
|
@@ -19,6 +19,7 @@ export declare class TicketsService {
|
|
|
19
19
|
metricsApiUrl: any;
|
|
20
20
|
zoneauditApiUrl: any;
|
|
21
21
|
traxauditApiUrl: any;
|
|
22
|
+
storeBuilderUrl: any;
|
|
22
23
|
constructor(http: HttpClient, gs: GlobalStateService);
|
|
23
24
|
userTicketList(data: any): Observable<any>;
|
|
24
25
|
exportuserTicketList(data: any): Observable<any>;
|
|
@@ -35,6 +36,10 @@ export declare class TicketsService {
|
|
|
35
36
|
storeTicketList(data: any): Observable<any>;
|
|
36
37
|
storeTicketListExport(data: any): Observable<ArrayBuffer>;
|
|
37
38
|
viewTicket(data: any): Observable<any>;
|
|
39
|
+
getCctvDetail(floorId: string): Observable<any>;
|
|
40
|
+
cctvRetry(data: {
|
|
41
|
+
floorId: string;
|
|
42
|
+
}): Observable<any>;
|
|
38
43
|
getCameraList(data: any): Observable<any>;
|
|
39
44
|
statusUpdate(data: any): Observable<any>;
|
|
40
45
|
workHistory(data: any): Observable<any>;
|
|
@@ -14,14 +14,15 @@ import * as i12 from "./components/dropdown/dropdown.component";
|
|
|
14
14
|
import * as i13 from "./components/audit-management/audit-management.component";
|
|
15
15
|
import * as i14 from "./components/audit-workspace/audit-workspace.component";
|
|
16
16
|
import * as i15 from "./components/viewhistory/viewhistory.component";
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
17
|
+
import * as i16 from "./components/preinstallation-info/preinstallation-info.component";
|
|
18
|
+
import * as i17 from "@angular/common";
|
|
19
|
+
import * as i18 from "./tango-ticket-users-routing.module";
|
|
20
|
+
import * as i19 from "@angular/forms";
|
|
21
|
+
import * as i20 from "tango-app-ui-shared";
|
|
22
|
+
import * as i21 from "@ng-bootstrap/ng-bootstrap";
|
|
23
|
+
import * as i22 from "ngx-daterangepicker-material";
|
|
23
24
|
export declare class TangoTicketUsersModule {
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoTicketUsersModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoTicketUsersModule, [typeof i1.TangoTicketUsersComponent, typeof i2.InfraticketsComponent, typeof i3.TicketsComponent, typeof i4.ContactDetailsComponent, typeof i5.EditDetailsComponent, typeof i6.TakeremoteComponent, typeof i7.StoreInfoComponent, typeof i8.EdgeappLogComponent, typeof i9.StoreActivityComponent, typeof i10.EdgeCameraviewComponent, typeof i11.InstallationComponent, typeof i12.DropdownComponent, typeof i13.AuditManagementComponent, typeof i14.AuditWorkspaceComponent, typeof i15.ViewhistoryComponent], [typeof
|
|
26
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoTicketUsersModule, [typeof i1.TangoTicketUsersComponent, typeof i2.InfraticketsComponent, typeof i3.TicketsComponent, typeof i4.ContactDetailsComponent, typeof i5.EditDetailsComponent, typeof i6.TakeremoteComponent, typeof i7.StoreInfoComponent, typeof i8.EdgeappLogComponent, typeof i9.StoreActivityComponent, typeof i10.EdgeCameraviewComponent, typeof i11.InstallationComponent, typeof i12.DropdownComponent, typeof i13.AuditManagementComponent, typeof i14.AuditWorkspaceComponent, typeof i15.ViewhistoryComponent, typeof i16.PreinstallationInfoComponent], [typeof i17.CommonModule, typeof i18.TangoTicketUsersRoutingModule, typeof i19.FormsModule, typeof i20.CommonSharedModule, typeof i19.ReactiveFormsModule, typeof i21.NgbModalModule, typeof i21.NgbModule, typeof i22.NgxDaterangepickerMd], never>;
|
|
26
27
|
static ɵinj: i0.ɵɵInjectorDeclaration<TangoTicketUsersModule>;
|
|
27
28
|
}
|