tango-app-ui-shared 3.0.8 → 3.0.10
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/interceptors/http-auth-interceptor.mjs +1 -1
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +7 -6
- package/esm2022/lib/modules/common/filters/filters.component.mjs +8 -4
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +30 -26
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +3 -1
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +22 -16
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +19 -17
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +23 -17
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +8 -6
- package/esm2022/lib/services/auth.service.mjs +1 -1
- package/fesm2022/tango-app-ui-shared.mjs +111 -84
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -1
- package/lib/modules/common/filters/filters.component.d.ts +3 -2
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +1 -0
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +1 -0
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +1 -0
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1650,6 +1650,7 @@ class ClassicComponent {
|
|
|
1650
1650
|
globalService;
|
|
1651
1651
|
service;
|
|
1652
1652
|
cd;
|
|
1653
|
+
dayjs = dayjs;
|
|
1653
1654
|
unsubscribe = [];
|
|
1654
1655
|
dataObject = [{ Description: "Clients", Issues: [] }];
|
|
1655
1656
|
isCustomDate;
|
|
@@ -1696,32 +1697,33 @@ class ClassicComponent {
|
|
|
1696
1697
|
// debugger
|
|
1697
1698
|
const headerFilters = JSON.parse(localStorage.getItem("header-filters") || "{}");
|
|
1698
1699
|
// debugger
|
|
1699
|
-
if
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1700
|
+
// if(headerFilters.date){
|
|
1701
|
+
this.selectedFilters.date = headerFilters.date;
|
|
1702
|
+
this.selectedDateRange.startDate = headerFilters.date.startDate;
|
|
1703
|
+
this.selectedDateRange.endDate = headerFilters.date.endDate;
|
|
1704
|
+
// }
|
|
1705
|
+
console.log(this.selectedDateRange);
|
|
1705
1706
|
this.dataObject[0].Issues = this.getClientList;
|
|
1706
1707
|
this.toggleCheckbox("Select All", 0);
|
|
1707
1708
|
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
1708
1709
|
this.responseArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
1709
1710
|
const currentIssues = this.dummyArray[0].Issues.map((item) => item.clientId);
|
|
1710
1711
|
this.selectedFilters.clients = currentIssues;
|
|
1712
|
+
this.selectedFilters.client = headerFilters.client;
|
|
1711
1713
|
// }
|
|
1712
1714
|
this.globalService.dataRangeValue.next(this.selectedFilters);
|
|
1713
|
-
|
|
1715
|
+
this.cd.detectChanges();
|
|
1714
1716
|
}
|
|
1715
1717
|
else {
|
|
1716
1718
|
this.dataObject[0].Issues = this.getClientList;
|
|
1717
1719
|
this.toggleCheckbox("Select All", 0);
|
|
1718
1720
|
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
1719
1721
|
this.responseArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
+
this.selectedDateRange.startDate = this.dayjs().format("MM-DD-YYYY");
|
|
1723
|
+
this.selectedDateRange.endDate = this.dayjs().format("MM-DD-YYYY");
|
|
1722
1724
|
const currentIssues = this.dummyArray[0].Issues.map((item) => item.clientId);
|
|
1723
1725
|
this.selectedFilters.clients = currentIssues;
|
|
1724
|
-
|
|
1726
|
+
this.selectedFilters.date = this.selectedDateRange;
|
|
1725
1727
|
localStorage.setItem("header-filters", JSON.stringify(this.selectedFilters));
|
|
1726
1728
|
this.cd.detectChanges();
|
|
1727
1729
|
}
|
|
@@ -1854,7 +1856,7 @@ class ClassicComponent {
|
|
|
1854
1856
|
}
|
|
1855
1857
|
}
|
|
1856
1858
|
this.globalService.dataRangeValue.next(this.selectedFilters);
|
|
1857
|
-
|
|
1859
|
+
this.cd.detectChanges();
|
|
1858
1860
|
this.Opendropdown = false;
|
|
1859
1861
|
this.selectedValuesArray.forEach((item, index) => {
|
|
1860
1862
|
item = item.map((ele) => ele.clientId);
|
|
@@ -1869,39 +1871,41 @@ class ClassicComponent {
|
|
|
1869
1871
|
this.selectedFilters.clients = this.responseArray[0].Issues;
|
|
1870
1872
|
this.selectedFilters.date = this.selectedDateRange;
|
|
1871
1873
|
localStorage.setItem("header-filters", JSON.stringify(this.selectedFilters));
|
|
1874
|
+
this.cd.detectChanges();
|
|
1872
1875
|
}
|
|
1873
1876
|
ranges = {
|
|
1874
|
-
Today: [dayjs(), dayjs()],
|
|
1875
|
-
Yesterday: [dayjs().subtract(1, "days"), dayjs().subtract(1, "days")],
|
|
1876
|
-
"This Week": [dayjs().subtract(6, "days"), dayjs()],
|
|
1877
|
+
"Today": [this.dayjs(), this.dayjs()],
|
|
1878
|
+
"Yesterday": [this.dayjs().subtract(1, "days"), this.dayjs().subtract(1, "days")],
|
|
1879
|
+
"This Week": [this.dayjs().subtract(6, "days"), dayjs()],
|
|
1877
1880
|
"Last Week": [
|
|
1878
|
-
dayjs().subtract(14, "days").startOf("days"),
|
|
1879
|
-
dayjs().subtract(8, "days").endOf("days"),
|
|
1881
|
+
this.dayjs().subtract(14, "days").startOf("days"),
|
|
1882
|
+
this.dayjs().subtract(8, "days").endOf("days"),
|
|
1880
1883
|
],
|
|
1881
|
-
"This Month": [dayjs().startOf("month"), dayjs().endOf("month")],
|
|
1884
|
+
"This Month": [this.dayjs().startOf("month"), this.dayjs().endOf("month")],
|
|
1882
1885
|
"Last Month": [
|
|
1883
|
-
dayjs().subtract(1, "month").startOf("month"),
|
|
1884
|
-
dayjs().subtract(1, "month").endOf("month"),
|
|
1886
|
+
this.dayjs().subtract(1, "month").startOf("month"),
|
|
1887
|
+
this.dayjs().subtract(1, "month").endOf("month"),
|
|
1885
1888
|
],
|
|
1886
1889
|
};
|
|
1887
1890
|
onStartDateChange(event) {
|
|
1888
|
-
if (dayjs(event.startDate).isValid()) {
|
|
1891
|
+
if (this.dayjs(event.startDate).isValid()) {
|
|
1889
1892
|
this.isCustomDate = (m) => {
|
|
1890
|
-
const isValidDate = m > dayjs() || m > dayjs(event.startDate.add(90, "days"));
|
|
1893
|
+
const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, "days"));
|
|
1891
1894
|
return isValidDate ? "invalid-date" : false;
|
|
1892
1895
|
};
|
|
1893
1896
|
}
|
|
1894
1897
|
}
|
|
1895
1898
|
datechange(event) {
|
|
1896
1899
|
if (event && event.startDate && event.endDate) {
|
|
1897
|
-
if (dayjs(event.startDate).isValid() && dayjs(event.endDate).isValid()) {
|
|
1900
|
+
if (this.dayjs(event.startDate).isValid() && this.dayjs(event.endDate).isValid()) {
|
|
1898
1901
|
// Dates are valid, proceed with formatting
|
|
1899
|
-
this.selectedDateRange.startDate = dayjs(event.startDate)
|
|
1902
|
+
this.selectedDateRange.startDate = this.dayjs(event.startDate)
|
|
1900
1903
|
.utc()
|
|
1901
1904
|
.format("DD-MM-YYYY");
|
|
1902
|
-
this.selectedDateRange.endDate = dayjs(event.endDate)
|
|
1905
|
+
this.selectedDateRange.endDate = this.dayjs(event.endDate)
|
|
1903
1906
|
.utc()
|
|
1904
1907
|
.format("DD-MM-YYYY");
|
|
1908
|
+
console.log(this.selectedDateRange);
|
|
1905
1909
|
}
|
|
1906
1910
|
else {
|
|
1907
1911
|
// Dates are not valid, handle the scenario accordingly
|
|
@@ -1913,7 +1917,7 @@ class ClassicComponent {
|
|
|
1913
1917
|
this.selectedFilters.date = headerFilters.date;
|
|
1914
1918
|
}
|
|
1915
1919
|
this.selectedFilters.date = this.selectedDateRange;
|
|
1916
|
-
|
|
1920
|
+
this.cd.detectChanges();
|
|
1917
1921
|
}
|
|
1918
1922
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ClassicComponent, deps: [{ token: i1.LayoutService }, { token: GlobalStateService }, { token: AuthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1919
1923
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: ClassicComponent, selector: "lib-classic", host: { listeners: { "document:click": "onClick($event)" } }, ngImport: i0, template: "<div class=\"py-3 dropdown1 cursor-pointer\" *ngFor=\"let item of dataObject; let i = index\">\r\n <div class=\"dropdown form-select\" (click)=\"Dropdown('Clients',i,$event)\">\r\n <span class=\"\">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ?\r\n selectedValuesArray[i]?.length + ' ' + 'Clients'.split(' ').pop() : 'Clients' }}</span>\r\n </div>\r\n <div *ngIf=\"item.isOpen\" class=\"dropdown-content position-absolute\">\r\n <div class=\"form-check d-flex align-items-center pt-3 px-5\">\r\n <input class=\"form-check-input\" type=\"checkbox\" value=\"Select All\" id=\"selectall{{i}}\"\r\n [checked]=\"selectedValuesArray[i]?.length === item.Issues.length\"\r\n (change)=\"toggleCheckbox('Select All', i)\">\r\n <label class=\"form-check-label px-3\" for=\"selectall{{i}}\">\r\n Select All\r\n </label>\r\n </div>\r\n\r\n <div class=\"border border-gray mt-3\"></div>\r\n <div class=\"mt-3 d-flex align-items-center mx-2\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3 mt-2\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path\r\n d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\"\r\n stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input type=\"text\" [(ngModel)]=\"searchValue\" (input)=\"searchData($event,i)\"\r\n class=\"form-control searchinput ps-14 py-2 mt-2\" placeholder=\"Search\" autocomplete=\"off\" />\r\n </div>\r\n <div *ngFor=\"let issue of item.Issues\" class=\"form-check d-flex align-items-center py-3 px-5\">\r\n <input class=\"form-check-input cursor-pointer\" type=\"checkbox\" [value]=\"issue.clientName\" id=\"option{{issue.clientId}}\"\r\n [checked]=\"selectedValuesArray[i]?.includes(issue.clientId)\" (change)=\"toggleCheckbox(issue.clientId,i)\">\r\n <label class=\"form-check-label px-3 cursor-pointer\" for=\"option{{issue.clientId}}\">\r\n {{ issue.clientName }}\r\n </label>\r\n </div>\r\n <div class=\"mt-5 d-flex justify-content-center\">\r\n <span class=\"form-check-label\" *ngIf=\"noFilter\"> No filters available</span>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\" matInput ngxDaterangepickerMd [drops]=\"'down'\"\r\n [opens]=\"'right'\" [ranges]=\"ranges\" [showCustomRangeLabel]=\"true\" [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\" autocomplete=\"off\" [(ngModel)]=\"selectedDateRange\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"datechange($event)\" name=\"daterange\" />\r\n</div>\r\n\r\n\r\n<!-- <input class=\"fx-date-range form-control ps-14\" type=\"text\" matInput ngxDaterangepickerMd \r\n [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\"\r\n [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\"\r\n [showCancel]=\"true\"\r\n autocomplete=\"off\"\r\n [(ngModel)]=\"selectedDate\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (selected)=\"onDateSelect($event)\"\r\n name=\"daterange\" /> -->\r\n\r\n<div class=\"btn btn-primary\" (click)=\"Apply()\">Apply</div>", styles: [".dropdown1 .dropdown-title{color:var(--Gray-900, #101828);font-size:16px;font-weight:600;line-height:24px}.dropdown1 .dropdown{position:relative;display:inline-block}.dropdown1 .dropdown span{color:var(--Gray-700, #344054);font-size:14px;font-weight:600;line-height:20px}.dropdown1 .dropdown-content{z-index:1;padding:0;background-color:#fff;border-radius:8px;box-shadow:0 8px 16px #0003;height:250px;overflow:auto}.dropdown1 .dropdown-content label{color:var(--Gray-700, #344054);font-size:14px;font-weight:500;line-height:20px}.dropdown1 .dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown1 .dropdown button{padding:10px;font-size:16px;cursor:pointer}.dropdown1 input[type=checkbox]{width:16px!important;height:16px!important;margin:-3px 5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-300, #D0D5DD);box-shadow:none;font-size:.8em;text-align:center;line-height:1em;background:#fff}.dropdown1 input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF);background-color:var(--primary-50, #EAF8FF)}.dropdown1 input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.2em;padding-left:0;padding-top:9px;padding-right:4px}.daterangepicker{display:block!important;top:153.85px!important;left:900px!important;right:0}.form-control{color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600;line-height:20px;text-transform:capitalize}::ng-deep .applyBtn{display:none!important}:host::ng-deep .md-drppicker .btn{line-height:10px!important}:host::ng-deep .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;left:-470px!important;height:400px!important}:host::ng-deep .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep .md-drppicker td.active,:host::ng-deep .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep table th,:host::ng-deep table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep .md-drppicker td.available.prev,:host::ng-deep .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep .md-drppicker td.available.next,:host::ng-deep .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}.btn-primary{line-height:18px!important}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }] });
|
|
@@ -1952,7 +1956,7 @@ class CustomSelectComponent {
|
|
|
1952
1956
|
if (changes['items'] && this.items?.length) {
|
|
1953
1957
|
this.initializeItems();
|
|
1954
1958
|
}
|
|
1955
|
-
if (changes['selectedValues'] &&
|
|
1959
|
+
if (changes['selectedValues'] && Array.isArray(changes['selectedValues']?.currentValue) && changes['selectedValues']?.currentValue?.length > 0 && changes['selectedValues']?.currentValue[0]) {
|
|
1956
1960
|
this.updateSelectedValues();
|
|
1957
1961
|
}
|
|
1958
1962
|
}
|
|
@@ -1985,7 +1989,7 @@ class CustomSelectComponent {
|
|
|
1985
1989
|
onSelect(event, item) {
|
|
1986
1990
|
if (this.multi) {
|
|
1987
1991
|
if (event.currentTarget.checked) {
|
|
1988
|
-
this.selectedValues.push(
|
|
1992
|
+
this.selectedValues.push(item);
|
|
1989
1993
|
}
|
|
1990
1994
|
else {
|
|
1991
1995
|
this.selectedValues = this.selectedValues.filter((elem) => elem[this.idField] !== item[this.idField]);
|
|
@@ -1996,7 +2000,8 @@ class CustomSelectComponent {
|
|
|
1996
2000
|
this.showDropdown = false;
|
|
1997
2001
|
}
|
|
1998
2002
|
const valuesToEmit = this.selectedValues.map((value) => {
|
|
1999
|
-
const {
|
|
2003
|
+
const selectedItem = { ...value };
|
|
2004
|
+
delete selectedItem.isSelected;
|
|
2000
2005
|
return selectedItem;
|
|
2001
2006
|
});
|
|
2002
2007
|
this.cd.detectChanges();
|
|
@@ -2030,11 +2035,11 @@ class CustomSelectComponent {
|
|
|
2030
2035
|
return this.filteredValues.every((item) => item.isSelected);
|
|
2031
2036
|
}
|
|
2032
2037
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: CustomSelectComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2033
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: CustomSelectComponent, selector: "lib-select", inputs: { items: "items", searchField: "searchField", multi: "multi", idField: "idField", selectedValues: "selectedValues", disabled: "disabled", label: "label" }, outputs: { selected: "selected" }, host: { listeners: { "document:click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"outer-container\">\r\n <div [ngClass]=\"disabled ? 'disable-input':''\" (click)=\"openDropdown($event)\" class=\"form-select\">\r\n <ng-container *ngIf=\"multi\" >\r\n {{selectedValues?.length}} {{label}} Selected \r\n </ng-container>\r\n <ng-container *ngIf=\"!multi\" >\r\n {{selectedValues?.[0]?.[searchField]}}\r\n </ng-container>\r\n </div>\r\n <div [ngClass]=\"showDropdown ? '' : 'd-none'\" class=\"input-container dropdown\" >\r\n <div class=\"w-100 input-wrapper\">\r\n <input [(ngModel)]=\"searchValue\" placeholder=\"Search\" (input)=\"onInput($event)\" type=\"text\"> \r\n <svg class=\"search-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> \r\n </div>\r\n <ul>\r\n <li *ngIf=\"multi\">\r\n <div class=\"form-check\">\r\n <input (change)=\"onSelectAll($event)\" [checked]=\"checkIfAllSelected()\" class=\"form-check-input me-3\" type=\"checkbox\"\r\n id=\"selectAll\">\r\n <label class=\"form-check-label\" for=\"selectAll\">\r\n Select All\r\n </label>\r\n </div>\r\n </li>\r\n <li *ngFor=\"let item of filteredValues
|
|
2038
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: CustomSelectComponent, selector: "lib-select", inputs: { items: "items", searchField: "searchField", multi: "multi", idField: "idField", selectedValues: "selectedValues", disabled: "disabled", label: "label" }, outputs: { selected: "selected" }, host: { listeners: { "document:click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"outer-container\">\r\n <div [ngClass]=\"disabled ? 'disable-input':''\" (click)=\"openDropdown($event)\" class=\"form-select\">\r\n <ng-container *ngIf=\"multi\" >\r\n {{selectedValues?.length}} {{label}} Selected \r\n </ng-container>\r\n <ng-container *ngIf=\"!multi\" >\r\n {{selectedValues?.[0]?.[searchField]}}\r\n </ng-container>\r\n </div>\r\n <div [ngClass]=\"showDropdown ? '' : 'd-none'\" class=\"input-container dropdown\" >\r\n <div class=\"w-100 input-wrapper\">\r\n <input [(ngModel)]=\"searchValue\" placeholder=\"Search\" (input)=\"onInput($event)\" type=\"text\"> \r\n <svg class=\"search-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> \r\n </div>\r\n <ul>\r\n <li *ngIf=\"multi\">\r\n <div class=\"form-check\">\r\n <input (change)=\"onSelectAll($event)\" [checked]=\"checkIfAllSelected()\" class=\"form-check-input me-3\" type=\"checkbox\"\r\n id=\"selectAll\">\r\n <label class=\"form-check-label\" for=\"selectAll\">\r\n Select All\r\n </label>\r\n </div>\r\n </li>\r\n <li *ngFor=\"let item of filteredValues\" >\r\n <div [ngClass]=\"multi ? '': 'ps-0'\" class=\"form-check\">\r\n <input [ngClass]=\"multi ? '': 'd-none'\" (change)=\"onSelect($event, item)\" [(ngModel)]=\"item.isSelected\" class=\"form-check-input me-3\" type=\"checkbox\" value=\"\"\r\n [id]=\"item[idField]\">\r\n <label class=\"form-check-label\" [for]=\"item[idField]\">\r\n {{item[searchField]}}\r\n </label>\r\n </div>\r\n </li>\r\n </ul> \r\n </div> \r\n \r\n</div>\r\n ", styles: [":host{width:100%;height:100%}.outer-container{position:relative;background-color:#fff}.outer-container .form-select{font-size:1.1rem;font-weight:600;border-radius:8px!important;color:var(--Gray-500, #344054);border:1px solid var(--Gray-300, #D0D5DD)!important;height:45px}.outer-container .disable-input{pointer-events:none;background-color:#f9fafb!important}.outer-container .input-container{position:absolute;width:100%;z-index:1}.outer-container .input-container .input-wrapper{padding:8px 10px;background-color:#fff;border-top-right-radius:8px;border-top-left-radius:8px;border-top:1px solid rgba(16,24,40,.08);border-right:1px solid rgba(16,24,40,.08);border-left:1px solid rgba(16,24,40,.08)}.outer-container .input-container .input-wrapper input{width:100%;border-radius:8px;border:1px solid var(--Gray-300, #D0D5DD);background:var(--White, #FFF);box-shadow:0 1px 2px #1018280d;padding:10px 14px 10px 30px;outline:none}.outer-container .input-container .input-wrapper input ::placeholder{color:var(--Gray-500, #667085);font-family:Inter;font-size:14px;font-weight:500;line-height:20px}.outer-container .input-container .input-wrapper .search-icon{position:absolute;left:20px;top:20px}.outer-container .input-container ul{position:relative;background-color:#fff;margin:0;padding:0;max-height:200px;min-height:200px;overflow-y:scroll;border-bottom-right-radius:8px;border-bottom-left-radius:8px;border-bottom:1px solid rgba(16,24,40,.08);border-right:1px solid rgba(16,24,40,.08);border-left:1px solid rgba(16,24,40,.08)}.outer-container .input-container ul li{list-style:none;padding:10px 16px}.form-check{display:flex;align-items:center}.form-check-input{height:16px;width:16px;border-radius:4px;border:1px solid var(--Primary-600, #00A3FF)}.form-check-input:checked{--bs-form-check-bg-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB4SURBVHgBhY7NDUBQEIRnqcJNKXTg6qYTStCB+Isy6IQSNMDa9SLh5eWZZPcw+81kCX/quABhD73QyKXsGoyIvNCJSto2hEhNtY4N9cwYeMXEsVqB1GaSauRQOpty2tSmO3FgloAmF5nEhgyoesMO6CuFW66fn2xdFyA3ZzcRLrMAAAAASUVORK5CYII=);background-color:#eaf8ff;border-color:#00a3ff}.form-check-label{color:var(--Gray-700, #344054);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2034
2039
|
}
|
|
2035
2040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: CustomSelectComponent, decorators: [{
|
|
2036
2041
|
type: Component,
|
|
2037
|
-
args: [{ selector: 'lib-select', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"outer-container\">\r\n <div [ngClass]=\"disabled ? 'disable-input':''\" (click)=\"openDropdown($event)\" class=\"form-select\">\r\n <ng-container *ngIf=\"multi\" >\r\n {{selectedValues?.length}} {{label}} Selected \r\n </ng-container>\r\n <ng-container *ngIf=\"!multi\" >\r\n {{selectedValues?.[0]?.[searchField]}}\r\n </ng-container>\r\n </div>\r\n <div [ngClass]=\"showDropdown ? '' : 'd-none'\" class=\"input-container dropdown\" >\r\n <div class=\"w-100 input-wrapper\">\r\n <input [(ngModel)]=\"searchValue\" placeholder=\"Search\" (input)=\"onInput($event)\" type=\"text\"> \r\n <svg class=\"search-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> \r\n </div>\r\n <ul>\r\n <li *ngIf=\"multi\">\r\n <div class=\"form-check\">\r\n <input (change)=\"onSelectAll($event)\" [checked]=\"checkIfAllSelected()\" class=\"form-check-input me-3\" type=\"checkbox\"\r\n id=\"selectAll\">\r\n <label class=\"form-check-label\" for=\"selectAll\">\r\n Select All\r\n </label>\r\n </div>\r\n </li>\r\n <li *ngFor=\"let item of filteredValues
|
|
2042
|
+
args: [{ selector: 'lib-select', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"outer-container\">\r\n <div [ngClass]=\"disabled ? 'disable-input':''\" (click)=\"openDropdown($event)\" class=\"form-select\">\r\n <ng-container *ngIf=\"multi\" >\r\n {{selectedValues?.length}} {{label}} Selected \r\n </ng-container>\r\n <ng-container *ngIf=\"!multi\" >\r\n {{selectedValues?.[0]?.[searchField]}}\r\n </ng-container>\r\n </div>\r\n <div [ngClass]=\"showDropdown ? '' : 'd-none'\" class=\"input-container dropdown\" >\r\n <div class=\"w-100 input-wrapper\">\r\n <input [(ngModel)]=\"searchValue\" placeholder=\"Search\" (input)=\"onInput($event)\" type=\"text\"> \r\n <svg class=\"search-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> \r\n </div>\r\n <ul>\r\n <li *ngIf=\"multi\">\r\n <div class=\"form-check\">\r\n <input (change)=\"onSelectAll($event)\" [checked]=\"checkIfAllSelected()\" class=\"form-check-input me-3\" type=\"checkbox\"\r\n id=\"selectAll\">\r\n <label class=\"form-check-label\" for=\"selectAll\">\r\n Select All\r\n </label>\r\n </div>\r\n </li>\r\n <li *ngFor=\"let item of filteredValues\" >\r\n <div [ngClass]=\"multi ? '': 'ps-0'\" class=\"form-check\">\r\n <input [ngClass]=\"multi ? '': 'd-none'\" (change)=\"onSelect($event, item)\" [(ngModel)]=\"item.isSelected\" class=\"form-check-input me-3\" type=\"checkbox\" value=\"\"\r\n [id]=\"item[idField]\">\r\n <label class=\"form-check-label\" [for]=\"item[idField]\">\r\n {{item[searchField]}}\r\n </label>\r\n </div>\r\n </li>\r\n </ul> \r\n </div> \r\n \r\n</div>\r\n ", styles: [":host{width:100%;height:100%}.outer-container{position:relative;background-color:#fff}.outer-container .form-select{font-size:1.1rem;font-weight:600;border-radius:8px!important;color:var(--Gray-500, #344054);border:1px solid var(--Gray-300, #D0D5DD)!important;height:45px}.outer-container .disable-input{pointer-events:none;background-color:#f9fafb!important}.outer-container .input-container{position:absolute;width:100%;z-index:1}.outer-container .input-container .input-wrapper{padding:8px 10px;background-color:#fff;border-top-right-radius:8px;border-top-left-radius:8px;border-top:1px solid rgba(16,24,40,.08);border-right:1px solid rgba(16,24,40,.08);border-left:1px solid rgba(16,24,40,.08)}.outer-container .input-container .input-wrapper input{width:100%;border-radius:8px;border:1px solid var(--Gray-300, #D0D5DD);background:var(--White, #FFF);box-shadow:0 1px 2px #1018280d;padding:10px 14px 10px 30px;outline:none}.outer-container .input-container .input-wrapper input ::placeholder{color:var(--Gray-500, #667085);font-family:Inter;font-size:14px;font-weight:500;line-height:20px}.outer-container .input-container .input-wrapper .search-icon{position:absolute;left:20px;top:20px}.outer-container .input-container ul{position:relative;background-color:#fff;margin:0;padding:0;max-height:200px;min-height:200px;overflow-y:scroll;border-bottom-right-radius:8px;border-bottom-left-radius:8px;border-bottom:1px solid rgba(16,24,40,.08);border-right:1px solid rgba(16,24,40,.08);border-left:1px solid rgba(16,24,40,.08)}.outer-container .input-container ul li{list-style:none;padding:10px 16px}.form-check{display:flex;align-items:center}.form-check-input{height:16px;width:16px;border-radius:4px;border:1px solid var(--Primary-600, #00A3FF)}.form-check-input:checked{--bs-form-check-bg-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB4SURBVHgBhY7NDUBQEIRnqcJNKXTg6qYTStCB+Isy6IQSNMDa9SLh5eWZZPcw+81kCX/quABhD73QyKXsGoyIvNCJSto2hEhNtY4N9cwYeMXEsVqB1GaSauRQOpty2tSmO3FgloAmF5nEhgyoesMO6CuFW66fn2xdFyA3ZzcRLrMAAAAASUVORK5CYII=);background-color:#eaf8ff;border-color:#00a3ff}.form-check-label{color:var(--Gray-700, #344054);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px}\n"] }]
|
|
2038
2043
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { onClick: [{
|
|
2039
2044
|
type: HostListener,
|
|
2040
2045
|
args: ['document:click', ['$event']]
|
|
@@ -2094,6 +2099,7 @@ class ClientSettingsComponent {
|
|
|
2094
2099
|
}
|
|
2095
2100
|
this.selectedFilters.client = headerFilters.client;
|
|
2096
2101
|
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2102
|
+
this.cd.detectChanges();
|
|
2097
2103
|
}
|
|
2098
2104
|
}
|
|
2099
2105
|
else {
|
|
@@ -2109,6 +2115,7 @@ class ClientSettingsComponent {
|
|
|
2109
2115
|
this.selectedFilters.client = this.selectedClient.clientId;
|
|
2110
2116
|
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2111
2117
|
localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
|
|
2118
|
+
this.cd.detectChanges();
|
|
2112
2119
|
}
|
|
2113
2120
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ClientSettingsComponent, deps: [{ token: AuthService }, { token: GlobalStateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2114
2121
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: ClientSettingsComponent, selector: "lib-client-settings", ngImport: i0, template: " <div class=\"wrapper\" >\r\n <lib-select [items]=\"clientList\" [multi]=\"false\" [searchField]=\"'clientName'\" [disabled]=\"false\" [idField]=\"'clientId'\"\r\n (selected)=\"onClientSelect($event)\" [selectedValues]=\"[selectedClient]\"></lib-select>\r\n </div>\r\n", styles: [".wrapper{min-width:200px}\n"], dependencies: [{ kind: "component", type: CustomSelectComponent, selector: "lib-select", inputs: ["items", "searchField", "multi", "idField", "selectedValues", "disabled", "label"], outputs: ["selected"] }] });
|
|
@@ -2123,6 +2130,7 @@ class DatepickerComponent {
|
|
|
2123
2130
|
gs;
|
|
2124
2131
|
service;
|
|
2125
2132
|
cd;
|
|
2133
|
+
dayjs = dayjs;
|
|
2126
2134
|
unsubscribe = [];
|
|
2127
2135
|
isCustomDate;
|
|
2128
2136
|
selectedDateRange = {};
|
|
@@ -2154,25 +2162,25 @@ class DatepickerComponent {
|
|
|
2154
2162
|
// }
|
|
2155
2163
|
}
|
|
2156
2164
|
else {
|
|
2157
|
-
this.selectedDateRange.startDate = dayjs().format("MM-DD-YYYY");
|
|
2158
|
-
this.selectedDateRange.endDate = dayjs().format("MM-DD-YYYY");
|
|
2165
|
+
this.selectedDateRange.startDate = this.dayjs().format("MM-DD-YYYY");
|
|
2166
|
+
this.selectedDateRange.endDate = this.dayjs().format("MM-DD-YYYY");
|
|
2159
2167
|
}
|
|
2160
2168
|
}
|
|
2161
2169
|
ranges = {
|
|
2162
|
-
'Today': [dayjs(), dayjs()],
|
|
2163
|
-
'Yesterday': [dayjs().subtract(1, 'days'), dayjs().subtract(1, 'days')],
|
|
2164
|
-
'This Week': [dayjs().subtract(6, 'days'), dayjs()],
|
|
2165
|
-
'Last Week': [dayjs().subtract(14, 'days').startOf('days'), dayjs().subtract(8, 'days').endOf('days')],
|
|
2166
|
-
'This Month': [dayjs().startOf('month'), dayjs().endOf('month')],
|
|
2170
|
+
'Today': [this.dayjs(), this.dayjs()],
|
|
2171
|
+
'Yesterday': [this.dayjs().subtract(1, 'days'), this.dayjs().subtract(1, 'days')],
|
|
2172
|
+
'This Week': [this.dayjs().subtract(6, 'days'), this.dayjs()],
|
|
2173
|
+
'Last Week': [this.dayjs().subtract(14, 'days').startOf('days'), this.dayjs().subtract(8, 'days').endOf('days')],
|
|
2174
|
+
'This Month': [this.dayjs().startOf('month'), this.dayjs().endOf('month')],
|
|
2167
2175
|
'Last Month': [
|
|
2168
|
-
dayjs().subtract(1, 'month').startOf('month'),
|
|
2169
|
-
dayjs().subtract(1, 'month').endOf('month')
|
|
2176
|
+
this.dayjs().subtract(1, 'month').startOf('month'),
|
|
2177
|
+
this.dayjs().subtract(1, 'month').endOf('month')
|
|
2170
2178
|
]
|
|
2171
2179
|
};
|
|
2172
2180
|
onStartDateChange(event) {
|
|
2173
|
-
if (dayjs(event.startDate).isValid()) {
|
|
2181
|
+
if (this.dayjs(event.startDate).isValid()) {
|
|
2174
2182
|
this.isCustomDate = (m) => {
|
|
2175
|
-
const isValidDate = m > dayjs() || m > dayjs(event.startDate.add(90, 'days'));
|
|
2183
|
+
const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, 'days'));
|
|
2176
2184
|
return isValidDate ? 'invalid-date' : false;
|
|
2177
2185
|
};
|
|
2178
2186
|
}
|
|
@@ -2180,10 +2188,10 @@ class DatepickerComponent {
|
|
|
2180
2188
|
datechange(event) {
|
|
2181
2189
|
// debugger
|
|
2182
2190
|
if (event && event.startDate && event.endDate) {
|
|
2183
|
-
if (dayjs(event.startDate).isValid() && dayjs(event.endDate).isValid()) {
|
|
2191
|
+
if (this.dayjs(event.startDate).isValid() && this.dayjs(event.endDate).isValid()) {
|
|
2184
2192
|
// Dates are valid, proceed with formatting
|
|
2185
|
-
this.selectedDateRange.startDate = dayjs(event.startDate).utc().format('DD-MM-YYYY');
|
|
2186
|
-
this.selectedDateRange.endDate = dayjs(event.endDate).utc().format('DD-MM-YYYY');
|
|
2193
|
+
this.selectedDateRange.startDate = this.dayjs(event.startDate).utc().format('DD-MM-YYYY');
|
|
2194
|
+
this.selectedDateRange.endDate = this.dayjs(event.endDate).utc().format('DD-MM-YYYY');
|
|
2187
2195
|
}
|
|
2188
2196
|
else {
|
|
2189
2197
|
// Dates are not valid, handle the scenario accordingly
|
|
@@ -2191,8 +2199,8 @@ class DatepickerComponent {
|
|
|
2191
2199
|
// If you want to fallback to stored filters when the dates are invalid, you can keep the existing logic
|
|
2192
2200
|
const storedFilters = JSON.parse(localStorage.getItem('header-filters') || '{}');
|
|
2193
2201
|
if (storedFilters.startDate && storedFilters.endDate) {
|
|
2194
|
-
this.selectedDateRange.startDate = dayjs(storedFilters.startDate).format('DD-MM-YYYY');
|
|
2195
|
-
this.selectedDateRange.endDate = dayjs(storedFilters.endDate).format('DD-MM-YYYY');
|
|
2202
|
+
this.selectedDateRange.startDate = this.dayjs(storedFilters.startDate).format('DD-MM-YYYY');
|
|
2203
|
+
this.selectedDateRange.endDate = this.dayjs(storedFilters.endDate).format('DD-MM-YYYY');
|
|
2196
2204
|
}
|
|
2197
2205
|
}
|
|
2198
2206
|
}
|
|
@@ -2205,6 +2213,7 @@ class DatepickerComponent {
|
|
|
2205
2213
|
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2206
2214
|
this.selectedFilters.date = this.selectedDateRange;
|
|
2207
2215
|
localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
|
|
2216
|
+
this.cd.detectChanges();
|
|
2208
2217
|
// this.globalService.sendData(this.selectedDateRange);
|
|
2209
2218
|
}
|
|
2210
2219
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DatepickerComponent, deps: [{ token: i1.LayoutService }, { token: GlobalStateService }, { token: AuthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2219,6 +2228,7 @@ class DateSingleSelectComponent {
|
|
|
2219
2228
|
auth;
|
|
2220
2229
|
gs;
|
|
2221
2230
|
cd;
|
|
2231
|
+
dayjs = dayjs;
|
|
2222
2232
|
isCustomDate;
|
|
2223
2233
|
selectedDateRange = {};
|
|
2224
2234
|
clientList = [];
|
|
@@ -2245,12 +2255,15 @@ class DateSingleSelectComponent {
|
|
|
2245
2255
|
if (obj.clientId === headerFilters.client) {
|
|
2246
2256
|
this.selectedClient = obj;
|
|
2247
2257
|
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2258
|
+
this.cd.detectChanges();
|
|
2248
2259
|
}
|
|
2249
2260
|
});
|
|
2250
2261
|
}
|
|
2251
2262
|
else {
|
|
2252
2263
|
this.selectedClient = this.clientList[0];
|
|
2253
|
-
|
|
2264
|
+
console.log(this.selectedClient);
|
|
2265
|
+
this.selectedFilters.client = this.selectedClient.clientId;
|
|
2266
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2254
2267
|
this.cd.detectChanges();
|
|
2255
2268
|
}
|
|
2256
2269
|
}
|
|
@@ -2276,39 +2289,40 @@ class DateSingleSelectComponent {
|
|
|
2276
2289
|
this.selectedDateRange.endDate = headerFilters.date.endDate;
|
|
2277
2290
|
}
|
|
2278
2291
|
else {
|
|
2279
|
-
this.selectedDateRange.startDate = dayjs().format('MM-DD-YYYY');
|
|
2280
|
-
this.selectedDateRange.endDate = dayjs().format('MM-DD-YYYY');
|
|
2292
|
+
this.selectedDateRange.startDate = this.dayjs().format('MM-DD-YYYY');
|
|
2293
|
+
this.selectedDateRange.endDate = this.dayjs().format('MM-DD-YYYY');
|
|
2281
2294
|
}
|
|
2282
2295
|
}
|
|
2283
2296
|
onClientSelect(event) {
|
|
2284
2297
|
this.selectedClient = event;
|
|
2285
2298
|
this.gs.selectedClient.next(this.selectedClient);
|
|
2299
|
+
this.cd.detectChanges();
|
|
2286
2300
|
}
|
|
2287
2301
|
ranges = {
|
|
2288
|
-
'Today': [dayjs(), dayjs()],
|
|
2289
|
-
'Yesterday': [dayjs().subtract(1, 'days'), dayjs().subtract(1, 'days')],
|
|
2290
|
-
'This Week': [dayjs().subtract(6, 'days'), dayjs()],
|
|
2291
|
-
'Last Week': [dayjs().subtract(14, 'days').startOf('days'), dayjs().subtract(8, 'days').endOf('days')],
|
|
2292
|
-
'This Month': [dayjs().startOf('month'), dayjs().endOf('month')],
|
|
2302
|
+
'Today': [this.dayjs(), this.dayjs()],
|
|
2303
|
+
'Yesterday': [this.dayjs().subtract(1, 'days'), this.dayjs().subtract(1, 'days')],
|
|
2304
|
+
'This Week': [this.dayjs().subtract(6, 'days'), this.dayjs()],
|
|
2305
|
+
'Last Week': [this.dayjs().subtract(14, 'days').startOf('days'), this.dayjs().subtract(8, 'days').endOf('days')],
|
|
2306
|
+
'This Month': [this.dayjs().startOf('month'), this.dayjs().endOf('month')],
|
|
2293
2307
|
'Last Month': [
|
|
2294
|
-
dayjs().subtract(1, 'month').startOf('month'),
|
|
2295
|
-
dayjs().subtract(1, 'month').endOf('month')
|
|
2308
|
+
this.dayjs().subtract(1, 'month').startOf('month'),
|
|
2309
|
+
this.dayjs().subtract(1, 'month').endOf('month')
|
|
2296
2310
|
]
|
|
2297
2311
|
};
|
|
2298
2312
|
onStartDateChange(event) {
|
|
2299
|
-
if (dayjs(event.startDate).isValid()) {
|
|
2313
|
+
if (this.dayjs(event.startDate).isValid()) {
|
|
2300
2314
|
this.isCustomDate = (m) => {
|
|
2301
|
-
const isValidDate = m > dayjs() || m > dayjs(event.startDate.add(90, 'days'));
|
|
2315
|
+
const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, 'days'));
|
|
2302
2316
|
return isValidDate ? 'invalid-date' : false;
|
|
2303
2317
|
};
|
|
2304
2318
|
}
|
|
2305
2319
|
}
|
|
2306
2320
|
datechange(event) {
|
|
2307
2321
|
if (event && event.startDate && event.endDate) {
|
|
2308
|
-
if (dayjs(event.startDate).isValid() && dayjs(event.endDate).isValid()) {
|
|
2322
|
+
if (this.dayjs(event.startDate).isValid() && this.dayjs(event.endDate).isValid()) {
|
|
2309
2323
|
// Dates are valid, proceed with formatting
|
|
2310
|
-
this.selectedDateRange.startDate = dayjs(event.startDate).utc().format('DD-MM-YYYY');
|
|
2311
|
-
this.selectedDateRange.endDate = dayjs(event.endDate).utc().format('DD-MM-YYYY');
|
|
2324
|
+
this.selectedDateRange.startDate = this.dayjs(event.startDate).utc().format('DD-MM-YYYY');
|
|
2325
|
+
this.selectedDateRange.endDate = this.dayjs(event.endDate).utc().format('DD-MM-YYYY');
|
|
2312
2326
|
}
|
|
2313
2327
|
else {
|
|
2314
2328
|
// Dates are not valid, handle the scenario accordingly
|
|
@@ -2326,6 +2340,7 @@ class DateSingleSelectComponent {
|
|
|
2326
2340
|
this.selectedFilters.date = headerFilters.date;
|
|
2327
2341
|
}
|
|
2328
2342
|
this.selectedFilters.date = this.selectedDateRange;
|
|
2343
|
+
this.cd.detectChanges();
|
|
2329
2344
|
// this.globalService.sendData(JSON.stringify(this.selectedFilters.date));
|
|
2330
2345
|
// localStorage.setItem('dateRangeFilters', JSON.stringify(this.selectedDateRange));
|
|
2331
2346
|
// this.globalService.sendData(this.selectedDateRange);
|
|
@@ -2350,6 +2365,7 @@ class SingleStoreComponent {
|
|
|
2350
2365
|
auth;
|
|
2351
2366
|
gs;
|
|
2352
2367
|
cd;
|
|
2368
|
+
dayjs = dayjs;
|
|
2353
2369
|
isCustomDate;
|
|
2354
2370
|
selectedDateRange = {};
|
|
2355
2371
|
storeList = [];
|
|
@@ -2376,12 +2392,15 @@ class SingleStoreComponent {
|
|
|
2376
2392
|
if (obj.storeId === headerFilters.store) {
|
|
2377
2393
|
this.selectedClient = obj;
|
|
2378
2394
|
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2395
|
+
this.cd.detectChanges();
|
|
2379
2396
|
}
|
|
2380
2397
|
});
|
|
2381
2398
|
}
|
|
2382
2399
|
else {
|
|
2383
2400
|
this.selectedClient = this.storeList[0];
|
|
2384
|
-
this.
|
|
2401
|
+
this.selectedFilters.store = this.selectedClient.storeId;
|
|
2402
|
+
console.log(this.selectedFilters);
|
|
2403
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2385
2404
|
this.cd.detectChanges();
|
|
2386
2405
|
}
|
|
2387
2406
|
}
|
|
@@ -2406,10 +2425,11 @@ class SingleStoreComponent {
|
|
|
2406
2425
|
this.selectedFilters.date = headerFilters.date;
|
|
2407
2426
|
this.selectedDateRange.startDate = headerFilters.date.startDate;
|
|
2408
2427
|
this.selectedDateRange.endDate = headerFilters.date.endDate;
|
|
2428
|
+
this.cd.detectChanges();
|
|
2409
2429
|
}
|
|
2410
2430
|
else {
|
|
2411
|
-
this.selectedDateRange.startDate = dayjs().format('MM-DD-YYYY');
|
|
2412
|
-
this.selectedDateRange.endDate = dayjs().format('MM-DD-YYYY');
|
|
2431
|
+
this.selectedDateRange.startDate = this.dayjs().format('MM-DD-YYYY');
|
|
2432
|
+
this.selectedDateRange.endDate = this.dayjs().format('MM-DD-YYYY');
|
|
2413
2433
|
}
|
|
2414
2434
|
}
|
|
2415
2435
|
onClientSelect(event) {
|
|
@@ -2417,30 +2437,30 @@ class SingleStoreComponent {
|
|
|
2417
2437
|
this.gs.selectedClient.next(this.selectedClient);
|
|
2418
2438
|
}
|
|
2419
2439
|
ranges = {
|
|
2420
|
-
'Today': [dayjs(), dayjs()],
|
|
2421
|
-
'Yesterday': [dayjs().subtract(1, 'days'), dayjs().subtract(1, 'days')],
|
|
2422
|
-
'This Week': [dayjs().subtract(6, 'days'), dayjs()],
|
|
2423
|
-
'Last Week': [dayjs().subtract(14, 'days').startOf('days'), dayjs().subtract(8, 'days').endOf('days')],
|
|
2424
|
-
'This Month': [dayjs().startOf('month'), dayjs().endOf('month')],
|
|
2440
|
+
'Today': [this.dayjs(), this.dayjs()],
|
|
2441
|
+
'Yesterday': [this.dayjs().subtract(1, 'days'), this.dayjs().subtract(1, 'days')],
|
|
2442
|
+
'This Week': [this.dayjs().subtract(6, 'days'), this.dayjs()],
|
|
2443
|
+
'Last Week': [this.dayjs().subtract(14, 'days').startOf('days'), this.dayjs().subtract(8, 'days').endOf('days')],
|
|
2444
|
+
'This Month': [this.dayjs().startOf('month'), this.dayjs().endOf('month')],
|
|
2425
2445
|
'Last Month': [
|
|
2426
|
-
dayjs().subtract(1, 'month').startOf('month'),
|
|
2427
|
-
dayjs().subtract(1, 'month').endOf('month')
|
|
2446
|
+
this.dayjs().subtract(1, 'month').startOf('month'),
|
|
2447
|
+
this.dayjs().subtract(1, 'month').endOf('month')
|
|
2428
2448
|
]
|
|
2429
2449
|
};
|
|
2430
2450
|
onStartDateChange(event) {
|
|
2431
|
-
if (dayjs(event.startDate).isValid()) {
|
|
2451
|
+
if (this.dayjs(event.startDate).isValid()) {
|
|
2432
2452
|
this.isCustomDate = (m) => {
|
|
2433
|
-
const isValidDate = m > dayjs() || m > dayjs(event.startDate.add(90, 'days'));
|
|
2453
|
+
const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, 'days'));
|
|
2434
2454
|
return isValidDate ? 'invalid-date' : false;
|
|
2435
2455
|
};
|
|
2436
2456
|
}
|
|
2437
2457
|
}
|
|
2438
2458
|
datechange(event) {
|
|
2439
2459
|
if (event && event.startDate && event.endDate) {
|
|
2440
|
-
if (dayjs(event.startDate).isValid() && dayjs(event.endDate).isValid()) {
|
|
2460
|
+
if (this.dayjs(event.startDate).isValid() && this.dayjs(event.endDate).isValid()) {
|
|
2441
2461
|
// Dates are valid, proceed with formatting
|
|
2442
|
-
this.selectedDateRange.startDate = dayjs(event.startDate).utc().format('DD-MM-YYYY');
|
|
2443
|
-
this.selectedDateRange.endDate = dayjs(event.endDate).utc().format('DD-MM-YYYY');
|
|
2462
|
+
this.selectedDateRange.startDate = this.dayjs(event.startDate).utc().format('DD-MM-YYYY');
|
|
2463
|
+
this.selectedDateRange.endDate = this.dayjs(event.endDate).utc().format('DD-MM-YYYY');
|
|
2444
2464
|
}
|
|
2445
2465
|
else {
|
|
2446
2466
|
// Dates are not valid, handle the scenario accordingly
|
|
@@ -2465,10 +2485,11 @@ class SingleStoreComponent {
|
|
|
2465
2485
|
Apply() {
|
|
2466
2486
|
const headerFilters = JSON.parse(localStorage.getItem("header-filters") || "{}");
|
|
2467
2487
|
this.selectedFilters = headerFilters;
|
|
2468
|
-
this.selectedFilters.store = this.selectedClient.
|
|
2488
|
+
this.selectedFilters.store = this.selectedClient.storeId;
|
|
2469
2489
|
this.selectedFilters.date = this.selectedDateRange;
|
|
2470
2490
|
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
2471
2491
|
localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
|
|
2492
|
+
this.cd.detectChanges();
|
|
2472
2493
|
}
|
|
2473
2494
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: SingleStoreComponent, deps: [{ token: AuthService }, { token: GlobalStateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2474
2495
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: SingleStoreComponent, selector: "lib-single-store", ngImport: i0, template: "<div class=\"wrapper mx-2\" >\r\n <lib-select [items]=\"storeList\" [multi]=\"false\" [searchField]=\"'storeName'\" [disabled]=\"false\" [idField]=\"'storeId'\"\r\n (selected)=\"onClientSelect($event)\" [selectedValues]=\"[selectedClient]\"></lib-select>\r\n\r\n \r\n</div>\r\n<div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\" matInput ngxDaterangepickerMd [drops]=\"'down'\"\r\n [opens]=\"'right'\" [ranges]=\"ranges\" [showCustomRangeLabel]=\"true\" [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\" autocomplete=\"off\" [(ngModel)]=\"selectedDateRange\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"datechange($event)\" name=\"daterange\" />\r\n</div>\r\n\r\n<div class=\"btn btn-primary ms-2\" (click)=\"Apply()\">Apply</div>\r\n", styles: [".daterangepicker{display:block!important;top:153.85px!important;left:900px!important;right:0}.form-control{color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600;line-height:20px;text-transform:capitalize}::ng-deep .applyBtn{display:none!important}:host::ng-deep .md-drppicker .btn{line-height:10px!important}:host::ng-deep .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;left:-470px!important;height:400px!important}:host::ng-deep .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep .md-drppicker td.active,:host::ng-deep .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep table th,:host::ng-deep table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep .md-drppicker td.available.prev,:host::ng-deep .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep .md-drppicker td.available.next,:host::ng-deep .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}.wrapper{min-width:200px}.btn-primary{line-height:18px!important}\n"], dependencies: [{ kind: "component", type: CustomSelectComponent, selector: "lib-select", inputs: ["items", "searchField", "multi", "idField", "selectedValues", "disabled", "label"], outputs: ["selected"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }] });
|
|
@@ -2510,16 +2531,16 @@ class ToolbarComponent {
|
|
|
2510
2531
|
this.route = route;
|
|
2511
2532
|
}
|
|
2512
2533
|
ngOnInit() {
|
|
2534
|
+
this.route.queryParams.subscribe((queryParams) => {
|
|
2535
|
+
this.querParams = queryParams;
|
|
2536
|
+
});
|
|
2537
|
+
this.showPageTitle();
|
|
2513
2538
|
const subscr = this.layout.layoutConfigSubject
|
|
2514
2539
|
.asObservable()
|
|
2515
2540
|
.subscribe((config) => {
|
|
2516
2541
|
this.updateProps(config);
|
|
2517
2542
|
});
|
|
2518
2543
|
this.unsubscribe.push(subscr);
|
|
2519
|
-
let url = this.router.url.split("/");
|
|
2520
|
-
this.route.queryParams.subscribe((queryParams) => {
|
|
2521
|
-
this.querParams = queryParams;
|
|
2522
|
-
});
|
|
2523
2544
|
}
|
|
2524
2545
|
updateProps(config) {
|
|
2525
2546
|
this.appToolbarDisplay = this.layout.getProp("app.toolbar.display", config);
|
|
@@ -2555,7 +2576,9 @@ class ToolbarComponent {
|
|
|
2555
2576
|
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
2556
2577
|
}
|
|
2557
2578
|
showPageTitle() {
|
|
2558
|
-
|
|
2579
|
+
let url = this.router.url.split("/");
|
|
2580
|
+
if (url[2] == 'settings') {
|
|
2581
|
+
console.log(this.router.url);
|
|
2559
2582
|
this.singleSelect = true;
|
|
2560
2583
|
this.multiSelect = false;
|
|
2561
2584
|
this.datepicker = false;
|
|
@@ -3387,6 +3410,7 @@ class FiltersComponent {
|
|
|
3387
3410
|
renderer;
|
|
3388
3411
|
router;
|
|
3389
3412
|
dataObject = [];
|
|
3413
|
+
appliedFilters = new EventEmitter();
|
|
3390
3414
|
Opendropdown = false;
|
|
3391
3415
|
permission = [
|
|
3392
3416
|
{ group: 'Super Admin', description: 'Lorem ipsum dolor sit amet, consectetur ' },
|
|
@@ -3511,21 +3535,24 @@ class FiltersComponent {
|
|
|
3511
3535
|
}
|
|
3512
3536
|
this.Opendropdown = false;
|
|
3513
3537
|
this.selectedValuesArray.forEach((item, index) => {
|
|
3514
|
-
item = item.map((ele) => ele.
|
|
3538
|
+
item = item.map((ele) => ele.id);
|
|
3515
3539
|
this.selectedValuesArray[index] = item;
|
|
3516
3540
|
});
|
|
3517
3541
|
this.responseArray.forEach((item, index) => {
|
|
3518
3542
|
item.Issues = this.selectedValuesArray[index] ? this.selectedValuesArray[index] : [];
|
|
3519
3543
|
});
|
|
3544
|
+
this.appliedFilters.emit(this.responseArray);
|
|
3520
3545
|
}
|
|
3521
3546
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FiltersComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
3522
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FiltersComponent, selector: "lib-filters", inputs: { dataObject: "dataObject" }, host: { listeners: { "document:click": "onClick($event)" } }, ngImport: i0, template: "<div class=\"position-relative\">\r\n \r\n <button type=\"button\" (click)=\"opendropdown($event)\" \r\n class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"><svg\r\n class=\"pl-3\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M5 10H15M2.5 5H17.5M7.5 15H12.5\" stroke=\"#344054\" stroke-width=\"2\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n <span class=\"ms-2\">Filter</span> </button>\r\n \r\n <div class=\"card p-5 dropdown1 position-absolute\" *ngIf=\"Opendropdown\">\r\n <span class=\"dropdown-title\">Filter Options</span>\r\n <div class=\"w-100 border border-gray mt-3\"></div>\r\n <div class=\"py-3\" *ngFor=\"let item of dataObject; let i = index\">\r\n <div class=\"dropdown form-select position-relative d-flex justify-content-between\" (click)=\"Dropdown(item.Description,i,$event)\">\r\n <!-- <span class=\"\">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ? selectedValuesArray[i]?.length + ' ' + item.Description.split(' ').pop() + ' Selected' : item.Description }}</span> -->\r\n <span class=\"\">{{item.Description}}</span> <span *ngIf=\"selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined && selectedValuesArray[i]?.length !== 0\" class=\"badge badge-light-default\">{{selectedValuesArray[i]?.length}}</span>\r\n </div>\r\n <div *ngIf=\"item.isOpen\" class=\"dropdown-content position-absolute w-100\">\r\n <div class=\"form-check d-flex align-items-center py-3 pt-3 ps-0\">\r\n <input class=\"form-check-input\" type=\"checkbox\" value=\"Select All\" id=\"selectall{{i}}\" [checked]=\"selectedValuesArray[i]?.length === item.Issues.length\"\r\n (change)=\"toggleCheckbox('Select All', i)\">\r\n <label class=\"form-check-label px-2\" for=\"selectall{{i}}\">\r\n Select All\r\n </label>\r\n </div>\r\n \r\n <div class=\"border border-gray mt-3 \"></div>\r\n \r\n <div class=\"mt-3 d-flex align-items-center\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3 mt-2\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n </span>\r\n <input type=\"text\" [(ngModel)]=\"searchValue\" (input)=\"searchData($event,i)\" class=\"form-control searchinput ps-14 py-2 me-2 mt-2\"\r\n placeholder=\"Search\" autocomplete=\"off\" />\r\n </div>\r\n \r\n <div *ngFor=\"let issue of item.Issues\" class=\"form-check d-flex align-items-center py-3 pt-3 ps-0 mt-2\">\r\n <input class=\"form-check-input\" type=\"checkbox\" [value]=\"issue.text\" id=\"option{{issue.text}}\" [checked]=\"selectedValuesArray[i]?.includes(issue.text)\"\r\n (change)=\"toggleCheckbox(issue.text,i)\">\r\n <label class=\"form-check-label px-2\" for=\"option{{issue.text}}\">\r\n {{ issue.text }}\r\n </label>\r\n </div>\r\n <div class=\"mt-5 d-flex justify-content-center\">\r\n <span class=\"form-check-label\" *ngIf=\"noFilter\"> No filters available</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div role=\"group\" class=\"d-flex justify-content-between\">\r\n <button class=\"btn btn-outline w-100 me-2\" (click)=\"Reset()\"> Reset </button>\r\n <button class=\"btn btn-primary w-100 ms-2\" (click)=\"Apply()\">Apply</button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".dropdown1{position:absolute;top:70px;min-width:270px!important}.dropdown1 .dropdown-title{color:var(--Gray-900, #101828);font-size:16px;font-weight:600;line-height:24px}.dropdown1 .dropdown{position:relative;display:inline-block}.dropdown1 .dropdown span{color:var(--Gray-700, #344054);font-size:14px;font-weight:600;line-height:20px}.dropdown1 .dropdown-content{width:90%!important;z-index:1;padding:10px;background-color:#fff;border-radius:8px;box-shadow:0 8px 16px #0003;height:200px;overflow:auto}.dropdown1 .dropdown-content label{color:var(--Gray-700, #344054);font-size:14px;font-weight:500;line-height:20px;text-transform:capitalize}.dropdown1 .dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown1 .dropdown button{padding:10px;font-size:16px;cursor:pointer}.dropdown1 input[type=checkbox]{width:16px!important;height:16px!important;margin:-3px 5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-300, #D0D5DD);box-shadow:none;font-size:.8em;text-align:center;line-height:1em;background:#fff}.dropdown1 input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF);background-color:var(--primary-50, #EAF8FF)}.dropdown1 input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.2em;padding-left:0;padding-top:9px;padding-right:4px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
3547
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FiltersComponent, selector: "lib-filters", inputs: { dataObject: "dataObject" }, outputs: { appliedFilters: "appliedFilters" }, host: { listeners: { "document:click": "onClick($event)" } }, ngImport: i0, template: "<div class=\"position-relative\">\r\n \r\n <button type=\"button\" (click)=\"opendropdown($event)\" \r\n class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"><svg\r\n class=\"pl-3\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M5 10H15M2.5 5H17.5M7.5 15H12.5\" stroke=\"#344054\" stroke-width=\"2\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n <span class=\"ms-2\">Filter</span> </button>\r\n \r\n <div class=\"card p-5 dropdown1 position-absolute\" *ngIf=\"Opendropdown\">\r\n <span class=\"dropdown-title\">Filter Options</span>\r\n <div class=\"w-100 border border-gray mt-3\"></div>\r\n <div class=\"py-3\" *ngFor=\"let item of dataObject; let i = index\">\r\n <div class=\"dropdown form-select position-relative d-flex justify-content-between\" (click)=\"Dropdown(item.Description,i,$event)\">\r\n <!-- <span class=\"\">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ? selectedValuesArray[i]?.length + ' ' + item.Description.split(' ').pop() + ' Selected' : item.Description }}</span> -->\r\n <span class=\"\">{{item.Description}}</span> <span *ngIf=\"selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined && selectedValuesArray[i]?.length !== 0\" class=\"badge badge-light-default\">{{selectedValuesArray[i]?.length}}</span>\r\n </div>\r\n <div *ngIf=\"item.isOpen\" class=\"dropdown-content position-absolute w-100\">\r\n <div class=\"form-check d-flex align-items-center py-3 pt-3 ps-0\">\r\n <input class=\"form-check-input\" type=\"checkbox\" value=\"Select All\" id=\"selectall{{i}}\" [checked]=\"selectedValuesArray[i]?.length === item.Issues.length\"\r\n (change)=\"toggleCheckbox('Select All', i)\">\r\n <label class=\"form-check-label px-2\" for=\"selectall{{i}}\">\r\n Select All\r\n </label>\r\n </div>\r\n \r\n <div class=\"border border-gray mt-3 \"></div>\r\n \r\n <div class=\"mt-3 d-flex align-items-center\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3 mt-2\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n </span>\r\n <input type=\"text\" [(ngModel)]=\"searchValue\" (input)=\"searchData($event,i)\" class=\"form-control searchinput ps-14 py-2 me-2 mt-2\"\r\n placeholder=\"Search\" autocomplete=\"off\" />\r\n </div>\r\n \r\n <div *ngFor=\"let issue of item.Issues\" class=\"form-check d-flex align-items-center py-3 pt-3 ps-0 mt-2\">\r\n <input class=\"form-check-input\" type=\"checkbox\" [value]=\"issue.text\" id=\"option{{issue.text}}\" [checked]=\"selectedValuesArray[i]?.includes(issue.text)\"\r\n (change)=\"toggleCheckbox(issue.text,i)\">\r\n <label class=\"form-check-label px-2\" for=\"option{{issue.text}}\">\r\n {{ issue.text }}\r\n </label>\r\n </div>\r\n <div class=\"mt-5 d-flex justify-content-center\">\r\n <span class=\"form-check-label\" *ngIf=\"noFilter\"> No filters available</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div role=\"group\" class=\"d-flex justify-content-between\">\r\n <button class=\"btn btn-outline w-100 me-2\" (click)=\"Reset()\"> Reset </button>\r\n <button class=\"btn btn-primary w-100 ms-2\" (click)=\"Apply()\">Apply</button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".dropdown1{position:absolute;top:70px;min-width:270px!important}.dropdown1 .dropdown-title{color:var(--Gray-900, #101828);font-size:16px;font-weight:600;line-height:24px}.dropdown1 .dropdown{position:relative;display:inline-block}.dropdown1 .dropdown span{color:var(--Gray-700, #344054);font-size:14px;font-weight:600;line-height:20px}.dropdown1 .dropdown-content{width:90%!important;z-index:1;padding:10px;background-color:#fff;border-radius:8px;box-shadow:0 8px 16px #0003;height:200px;overflow:auto}.dropdown1 .dropdown-content label{color:var(--Gray-700, #344054);font-size:14px;font-weight:500;line-height:20px;text-transform:capitalize}.dropdown1 .dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown1 .dropdown button{padding:10px;font-size:16px;cursor:pointer}.dropdown1 input[type=checkbox]{width:16px!important;height:16px!important;margin:-3px 5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-300, #D0D5DD);box-shadow:none;font-size:.8em;text-align:center;line-height:1em;background:#fff}.dropdown1 input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF);background-color:var(--primary-50, #EAF8FF)}.dropdown1 input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.2em;padding-left:0;padding-top:9px;padding-right:4px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
3523
3548
|
}
|
|
3524
3549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FiltersComponent, decorators: [{
|
|
3525
3550
|
type: Component,
|
|
3526
3551
|
args: [{ selector: 'lib-filters', template: "<div class=\"position-relative\">\r\n \r\n <button type=\"button\" (click)=\"opendropdown($event)\" \r\n class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"><svg\r\n class=\"pl-3\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M5 10H15M2.5 5H17.5M7.5 15H12.5\" stroke=\"#344054\" stroke-width=\"2\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n <span class=\"ms-2\">Filter</span> </button>\r\n \r\n <div class=\"card p-5 dropdown1 position-absolute\" *ngIf=\"Opendropdown\">\r\n <span class=\"dropdown-title\">Filter Options</span>\r\n <div class=\"w-100 border border-gray mt-3\"></div>\r\n <div class=\"py-3\" *ngFor=\"let item of dataObject; let i = index\">\r\n <div class=\"dropdown form-select position-relative d-flex justify-content-between\" (click)=\"Dropdown(item.Description,i,$event)\">\r\n <!-- <span class=\"\">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ? selectedValuesArray[i]?.length + ' ' + item.Description.split(' ').pop() + ' Selected' : item.Description }}</span> -->\r\n <span class=\"\">{{item.Description}}</span> <span *ngIf=\"selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined && selectedValuesArray[i]?.length !== 0\" class=\"badge badge-light-default\">{{selectedValuesArray[i]?.length}}</span>\r\n </div>\r\n <div *ngIf=\"item.isOpen\" class=\"dropdown-content position-absolute w-100\">\r\n <div class=\"form-check d-flex align-items-center py-3 pt-3 ps-0\">\r\n <input class=\"form-check-input\" type=\"checkbox\" value=\"Select All\" id=\"selectall{{i}}\" [checked]=\"selectedValuesArray[i]?.length === item.Issues.length\"\r\n (change)=\"toggleCheckbox('Select All', i)\">\r\n <label class=\"form-check-label px-2\" for=\"selectall{{i}}\">\r\n Select All\r\n </label>\r\n </div>\r\n \r\n <div class=\"border border-gray mt-3 \"></div>\r\n \r\n <div class=\"mt-3 d-flex align-items-center\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3 mt-2\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\">\r\n <path d=\"M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z\" stroke=\"#667085\" stroke-width=\"1.3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n </span>\r\n <input type=\"text\" [(ngModel)]=\"searchValue\" (input)=\"searchData($event,i)\" class=\"form-control searchinput ps-14 py-2 me-2 mt-2\"\r\n placeholder=\"Search\" autocomplete=\"off\" />\r\n </div>\r\n \r\n <div *ngFor=\"let issue of item.Issues\" class=\"form-check d-flex align-items-center py-3 pt-3 ps-0 mt-2\">\r\n <input class=\"form-check-input\" type=\"checkbox\" [value]=\"issue.text\" id=\"option{{issue.text}}\" [checked]=\"selectedValuesArray[i]?.includes(issue.text)\"\r\n (change)=\"toggleCheckbox(issue.text,i)\">\r\n <label class=\"form-check-label px-2\" for=\"option{{issue.text}}\">\r\n {{ issue.text }}\r\n </label>\r\n </div>\r\n <div class=\"mt-5 d-flex justify-content-center\">\r\n <span class=\"form-check-label\" *ngIf=\"noFilter\"> No filters available</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div role=\"group\" class=\"d-flex justify-content-between\">\r\n <button class=\"btn btn-outline w-100 me-2\" (click)=\"Reset()\"> Reset </button>\r\n <button class=\"btn btn-primary w-100 ms-2\" (click)=\"Apply()\">Apply</button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".dropdown1{position:absolute;top:70px;min-width:270px!important}.dropdown1 .dropdown-title{color:var(--Gray-900, #101828);font-size:16px;font-weight:600;line-height:24px}.dropdown1 .dropdown{position:relative;display:inline-block}.dropdown1 .dropdown span{color:var(--Gray-700, #344054);font-size:14px;font-weight:600;line-height:20px}.dropdown1 .dropdown-content{width:90%!important;z-index:1;padding:10px;background-color:#fff;border-radius:8px;box-shadow:0 8px 16px #0003;height:200px;overflow:auto}.dropdown1 .dropdown-content label{color:var(--Gray-700, #344054);font-size:14px;font-weight:500;line-height:20px;text-transform:capitalize}.dropdown1 .dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown1 .dropdown button{padding:10px;font-size:16px;cursor:pointer}.dropdown1 input[type=checkbox]{width:16px!important;height:16px!important;margin:-3px 5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-300, #D0D5DD);box-shadow:none;font-size:.8em;text-align:center;line-height:1em;background:#fff}.dropdown1 input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF);background-color:var(--primary-50, #EAF8FF)}.dropdown1 input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.2em;padding-left:0;padding-top:9px;padding-right:4px}\n"] }]
|
|
3527
3552
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$1.Router }], propDecorators: { dataObject: [{
|
|
3528
3553
|
type: Input
|
|
3554
|
+
}], appliedFilters: [{
|
|
3555
|
+
type: Output
|
|
3529
3556
|
}], onClick: [{
|
|
3530
3557
|
type: HostListener,
|
|
3531
3558
|
args: ['document:click', ['$event']]
|