tango-app-ui-ticket-user 3.0.19-dev → 3.0.20-dev
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/contact-details/contact-details.component.mjs +3 -3
- package/esm2022/lib/components/store-info/store-info.component.mjs +2 -2
- package/esm2022/lib/components/takeremote/takeremote.component.mjs +3 -3
- package/esm2022/lib/components/tickets/tickets.component.mjs +7 -13
- package/fesm2022/tango-app-ui-ticket-user.mjs +11 -17
- package/fesm2022/tango-app-ui-ticket-user.mjs.map +1 -1
- package/lib/components/tickets/tickets.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -822,7 +822,7 @@ class ContactDetailsComponent {
|
|
|
822
822
|
this.toast.getSuccessToast(res.message);
|
|
823
823
|
}
|
|
824
824
|
else {
|
|
825
|
-
this.toast.getErrorToast(
|
|
825
|
+
this.toast.getErrorToast('Contact has not been Deleted');
|
|
826
826
|
}
|
|
827
827
|
},
|
|
828
828
|
error: (err) => {
|
|
@@ -833,7 +833,7 @@ class ContactDetailsComponent {
|
|
|
833
833
|
}
|
|
834
834
|
closeModal() {
|
|
835
835
|
this.activeModal.close();
|
|
836
|
-
this.toast.getErrorToast('Contact has been Deleted Successfully')
|
|
836
|
+
// this.toast.getErrorToast('Contact has been Deleted Successfully')
|
|
837
837
|
}
|
|
838
838
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ContactDetailsComponent, deps: [{ token: i1$1.NgbModal }, { token: i1$1.NgbActiveModal }, { token: TicketsService }, { token: i0.ChangeDetectorRef }, { token: i3.ToastService }, { token: i4.GlobalStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
839
839
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: ContactDetailsComponent, selector: "lib-contact-details", inputs: { value: "value" }, viewQueries: [{ propertyName: "confirmationModal", first: true, predicate: ["confirmationModal"], descendants: true }], ngImport: i0, template: "<div class=\"card p-0\">\r\n <div class=\"card-header border-0 pt-3\">\r\n <h3 class=\"card-title align-items-start flex-column\">\r\n <span class=\"card-label header mb-2 ellipse1\">{{value?.storeName ? value?.storeName:'--'}} Contacts</span>\r\n <span class=\"sub-header mb-2\">{{spocDetials?.length ? spocDetials?.length : 0 }} contacts </span>\r\n </h3>\r\n <div class=\"card-toolbar\">\r\n <div class=\"d-flex\">\r\n <div class=\"d-flex align-items-center position-relative my-1\"> \r\n <button *ngIf=\"(gs.userAccess | async)?.manage_tickets_isEdit\" type=\"button\" (click)=\"addContact()\"\r\n class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val py-2 px-10\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99935 4.16669V15.8334M4.16602 10H15.8327\" stroke=\"#667085\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg><span class=\"ms-2\">Add</span> </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body pt-0 mh-60vh\">\r\n <div class=\"d-flex justify-content-between align-items-center pt-5\" *ngFor=\"let obj of spocDetials;let i=index;\">\r\n <div class=\"d-flex\">\r\n <div class=\" position-relative\">\r\n <div *ngIf=\"obj?.spocName\" class=\"rounded-5 profile fw-semibold d-flex align-items-center justify-content-center\">{{obj?.spocName.slice(0,2) | uppercase}}</div>\r\n <!-- <div class=\"d-flex align-items-centre msgprofile justify-content-centre\">\r\n <img class=\"\" src=\"./assets/tango/Images/userProfile.svg\">\r\n </div> -->\r\n <!-- <input class=\"bg-primary position-absolute bottom-0 end-0 w-10px h-10px rounded-4 border border-none\" type=\"fill\"> -->\r\n </div>\r\n <div class=\"d-grid mx-3\">\r\n <span class=\"headingtext fw-bold-600\"> {{obj?.spocName ?obj?.spocName:'--'}} </span>\r\n <span class=\"sub-header ellipse fw-bold-400\">{{obj?.spocEmail ? obj?.spocEmail:'--'}}</span>\r\n </div>\r\n </div>\r\n <div class=\"contact fw-semibold\">\r\n <span>{{obj?.spocNumber ? obj?.spocNumber:'--'}}</span>\r\n </div>\r\n <div class=\"d-flex justify-content-between\">\r\n <span class=\"cursor-pointer \" *ngIf=\"(gs.userAccess | async)?.manage_tickets_isEdit\" (click)=\"editOpen(obj)\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <g clip-path=\"url(#clip0_4023_60762)\">\r\n <path d=\"M9.16602 3.33332H3.33268C2.89065 3.33332 2.46673 3.50891 2.15417 3.82147C1.84161 4.13403 1.66602 4.55796 1.66602 4.99999V16.6667C1.66602 17.1087 1.84161 17.5326 2.15417 17.8452C2.46673 18.1577 2.89065 18.3333 3.33268 18.3333H14.9993C15.4414 18.3333 15.8653 18.1577 16.1779 17.8452C16.4904 17.5326 16.666 17.1087 16.666 16.6667V10.8333M15.416 2.08332C15.7475 1.7518 16.1972 1.56555 16.666 1.56555C17.1349 1.56555 17.5845 1.7518 17.916 2.08332C18.2475 2.41484 18.4338 2.86448 18.4338 3.33332C18.4338 3.80216 18.2475 4.2518 17.916 4.58332L9.99935 12.5L6.66602 13.3333L7.49935 9.99999L15.416 2.08332Z\" stroke=\"#667085\" stroke-width=\"1.66667\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4023_60762\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\"/>\r\n </clipPath>\r\n </defs>\r\n </svg></span>\r\n <div *ngIf=\"(gs.userAccess | async)?.manage_tickets_isDelete\" (click)=\"deleteContact(obj)\" class=\"ms-5 cursor-pointer \"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M2.5 5.00002H4.16667M4.16667 5.00002H17.5M4.16667 5.00002V16.6667C4.16667 17.1087 4.34226 17.5326 4.65482 17.8452C4.96738 18.1578 5.39131 18.3334 5.83333 18.3334H14.1667C14.6087 18.3334 15.0326 18.1578 15.3452 17.8452C15.6577 17.5326 15.8333 17.1087 15.8333 16.6667V5.00002H4.16667ZM6.66667 5.00002V3.33335C6.66667 2.89133 6.84226 2.4674 7.15482 2.15484C7.46738 1.84228 7.89131 1.66669 8.33333 1.66669H11.6667C12.1087 1.66669 12.5326 1.84228 12.8452 2.15484C13.1577 2.4674 13.3333 2.89133 13.3333 3.33335V5.00002\" stroke=\"#667085\" stroke-width=\"1.66667\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <button (click)=\"accept()\" class=\"btn btn-default btn-primary mt-5 w-100\">\r\n Okay\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<ng-template #confirmationModal let-modal>\r\n <div class=\"p-8\">\r\n <div class=\"\">\r\n <img src=\"./assets/tango/Images/dangerIcon.png\">\r\n </div>\r\n <div class=\" mt-5\">\r\n <span class=\"header fw-bold-600\">Are you ready sure?</span>\r\n <div class=\"mt-3 sub-header fw-bold-400\">Are you sure you want to delete the user globally?</div>\r\n </div>\r\n <div class=\"d-flex justify-content-between mt-10\">\r\n <button type=\"button\" class=\"btn btn-default btn-outline w-50 me-2\" (click)=\"modal.dismiss()\">Cancel</button>\r\n <button type=\"button\" class=\"btn btn-danger w-50 ms-2\" (click)=\"closeModal(); modal.close()\">Delete</button>\r\n </div>\r\n </div>\r\n </ng-template>", styles: [".header{color:var(--Gray-900, #101828)!important;font-size:18px!important;line-height:28px!important}.sub-header{color:var(--Gray-500, #667085)!important;font-size:14px!important;line-height:20px}.contact{color:var(--Gray-500, #667085)!important;font-size:12px!important;line-height:18px}.fw-bold-400{font-weight:400!important}.fw-bold-600{font-weight:600!important}.profile{color:var(--Primary-600, #00A3FF);background-color:var(--primary-50, #EAF8FF);width:40px!important;height:40px!important}.swal2-popup.swal2-toast.swal2-show,.swal2-toast{background-color:#0ff!important;border-left:2px solid red!important}.mh-60vh{max-height:60vh!important;overflow:auto!important}.ellipse{width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ellipse1{min-width:auto;max-width:35vh;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.UpperCasePipe, name: "uppercase" }] });
|
|
@@ -896,10 +896,10 @@ class TakeremoteComponent {
|
|
|
896
896
|
this.service.updateRemote(this.storeDetails?.storeId, data).pipe(takeUntil(this.destroy$)).subscribe({
|
|
897
897
|
next: (res) => {
|
|
898
898
|
if (res && res.code == 200) {
|
|
899
|
-
this.toast.getSuccessToast(res
|
|
899
|
+
this.toast.getSuccessToast(res?.data?.message);
|
|
900
900
|
}
|
|
901
901
|
else {
|
|
902
|
-
this.toast.getErrorToast(res
|
|
902
|
+
this.toast.getErrorToast(res?.data?.message);
|
|
903
903
|
}
|
|
904
904
|
},
|
|
905
905
|
error: (err) => {
|
|
@@ -1937,7 +1937,7 @@ class StoreInfoComponent {
|
|
|
1937
1937
|
if (this.DowmTimeArray?.length && this.DowmTimeArray.filter((x) => x.hour == parseInt(time[0]) && x.downtime > 0 && x.downtime > parseInt(time[1])).length) {
|
|
1938
1938
|
return 'negative';
|
|
1939
1939
|
}
|
|
1940
|
-
else if (this.DowmTimeArray?.length && this.DowmTimeArray.filter((x) => x.hour == parseInt(time[0]) &&
|
|
1940
|
+
else if (this.DowmTimeArray?.length && this.DowmTimeArray.filter((x) => x.hour == parseInt(time[0]) && (this.selectedDate < date || (this.selectedDate == date && (x.hour < nowHour || (nowHour == x.hour && nowminutes >= parseInt(time[1])))))).length) {
|
|
1941
1941
|
return 'positive';
|
|
1942
1942
|
}
|
|
1943
1943
|
else {
|
|
@@ -2087,7 +2087,7 @@ class TicketsComponent {
|
|
|
2087
2087
|
fileInput;
|
|
2088
2088
|
tooltipContent;
|
|
2089
2089
|
destroy$ = new Subject();
|
|
2090
|
-
headerFilter;
|
|
2090
|
+
// headerFilter: any;
|
|
2091
2091
|
user;
|
|
2092
2092
|
updatedDate;
|
|
2093
2093
|
isGreaterThan5_30Hours;
|
|
@@ -2126,15 +2126,9 @@ class TicketsComponent {
|
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
2128
|
ngOnInit() {
|
|
2129
|
-
|
|
2130
|
-
this.userType =
|
|
2131
|
-
this.
|
|
2132
|
-
if (data != null) {
|
|
2133
|
-
this.user = JSON.parse(localStorage.getItem('user-info') || "");
|
|
2134
|
-
this.headerFilter = data;
|
|
2135
|
-
this.activeTicket();
|
|
2136
|
-
}
|
|
2137
|
-
});
|
|
2129
|
+
this.user = JSON.parse(localStorage.getItem('user-info') || "");
|
|
2130
|
+
this.userType = this.user.userType;
|
|
2131
|
+
this.activeTicket();
|
|
2138
2132
|
}
|
|
2139
2133
|
ngOnDestroy() {
|
|
2140
2134
|
this.destroy$.next(true);
|
|
@@ -2255,8 +2249,8 @@ class TicketsComponent {
|
|
|
2255
2249
|
let data = {
|
|
2256
2250
|
userId: this.user._id,
|
|
2257
2251
|
issueType: "infra",
|
|
2258
|
-
fromDate: this.headerFilter?.date?.startDate,
|
|
2259
|
-
toDate: this.headerFilter?.date?.endDate,
|
|
2252
|
+
// fromDate: this.headerFilter?.date?.startDate,
|
|
2253
|
+
// toDate: this.headerFilter?.date?.endDate,
|
|
2260
2254
|
};
|
|
2261
2255
|
this.service.activeTicket(data).pipe(takeUntil(this.destroy$)).subscribe({
|
|
2262
2256
|
next: (res) => {
|