@annalib/anna-core 22.3.13 → 22.3.14
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/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +4 -4
- package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +12 -12
- package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +4 -4
- package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +6 -6
- package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +4 -4
- package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +4 -4
- package/esm2022/lib/anna-core-shared-lib/constants/shared.constant.mjs +21 -21
- package/esm2022/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +52 -52
- package/esm2022/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.mjs +5 -5
- package/esm2022/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +7 -7
- package/esm2022/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +1 -1
- package/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2022/lib/anna-core-shared-lib/models/anna-sort.model.mjs +1 -1
- package/esm2022/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +2 -2
- package/esm2022/lib/anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe.mjs +8 -8
- package/esm2022/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.mjs +5 -5
- package/esm2022/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.mjs +5 -5
- package/esm2022/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +6 -6
- package/esm2022/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.mjs +5 -5
- package/esm2022/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +84 -84
- package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +353 -353
- package/esm2022/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +20 -20
- package/esm2022/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +32 -32
- package/esm2022/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +9 -9
- package/esm2022/lib/anna-core-shared-lib/services/anna-persisting-filter.service.mjs +12 -12
- package/esm2022/lib/anna-core-shared-lib/services/anna-sort.service.mjs +32 -32
- package/esm2022/lib/anna-core.module.mjs +45 -45
- package/esm2022/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +14 -14
- package/esm2022/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +41 -41
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +14 -14
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +13 -13
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +17 -17
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +15 -15
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +263 -263
- package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +10 -10
- package/esm2022/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +21 -21
- package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +10 -10
- package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +2 -2
- package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +12 -12
- package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +2 -2
- package/esm2022/public-api.mjs +43 -43
- package/fesm2022/annalib-anna-core.mjs +947 -947
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +3 -3
- package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +1 -1
- package/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.d.ts +1 -1
- package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +1 -1
- package/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +3 -3
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +7 -7
- package/lib/anna-core-shared-lib/models/anna-sort.model.d.ts +1 -1
- package/lib/anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe.d.ts +1 -1
- package/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.d.ts +1 -1
- package/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.d.ts +1 -1
- package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +1 -1
- package/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.d.ts +1 -1
- package/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.d.ts +1 -1
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +1 -1
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +6 -6
- package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +5 -5
- package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +2 -2
- package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +3 -3
- package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +5 -5
- package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +7 -7
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.d.ts +5 -5
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.d.ts +6 -6
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.d.ts +6 -6
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.d.ts +7 -7
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +9 -9
- package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +3 -3
- package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +9 -9
- package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.d.ts +4 -4
- package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts +1 -1
- package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +6 -6
- package/lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +42 -42
|
@@ -49,7 +49,7 @@ class AnnaFilterSearchedTextPipe {
|
|
|
49
49
|
return items;
|
|
50
50
|
searchText = searchText.toString().toLowerCase();
|
|
51
51
|
// if keyName is an array then loop through all the keynames
|
|
52
|
-
if (keyName && typeof keyName ==
|
|
52
|
+
if (keyName && typeof keyName == "object") {
|
|
53
53
|
let isFoundAtleastOnce = false;
|
|
54
54
|
let isFound;
|
|
55
55
|
for (const key of keyName) {
|
|
@@ -67,7 +67,7 @@ class AnnaFilterSearchedTextPipe {
|
|
|
67
67
|
if (!keyName)
|
|
68
68
|
searchResult = items.filter((item) => Object.values(item).filter((n) => (n ? n.toString().toLowerCase().includes(searchText) : false))
|
|
69
69
|
.length > 0);
|
|
70
|
-
else if (keyName ==
|
|
70
|
+
else if (keyName == "NoKey") {
|
|
71
71
|
searchResult = items.filter((item) => item.toString().toLowerCase().includes(searchText));
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
@@ -82,25 +82,25 @@ class AnnaFilterSearchedTextPipe {
|
|
|
82
82
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterSearchedTextPipe, decorators: [{
|
|
83
83
|
type: Pipe,
|
|
84
84
|
args: [{
|
|
85
|
-
name:
|
|
85
|
+
name: "AnnafilterSearchedText",
|
|
86
86
|
standalone: true,
|
|
87
87
|
}]
|
|
88
88
|
}] });
|
|
89
89
|
|
|
90
90
|
class AnnaNoDataComponent {
|
|
91
91
|
constructor() {
|
|
92
|
-
this.width =
|
|
93
|
-
this.marginTop =
|
|
92
|
+
this.width = "48%";
|
|
93
|
+
this.marginTop = "1.25rem";
|
|
94
94
|
}
|
|
95
95
|
ngOnInit() {
|
|
96
|
-
this.message =
|
|
96
|
+
this.message = "No data to display";
|
|
97
97
|
}
|
|
98
98
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNoDataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
99
99
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AnnaNoDataComponent, isStandalone: true, selector: "anna-core-no-data-lib", inputs: { width: "width", marginTop: "marginTop" }, ngImport: i0, template: "<div\r\n [style.marginRight]=\"width\"\r\n [style.marginTop]=\"marginTop\"\r\n class=\"no-data\"\r\n>\r\n <label>{{ message }}</label>\r\n</div>\r\n", styles: ["div{right:0;position:absolute;margin:20px;z-index:400;transform:translate(50%)}div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:5px 18px;border-radius:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
100
100
|
}
|
|
101
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNoDataComponent, decorators: [{
|
|
102
102
|
type: Component,
|
|
103
|
-
args: [{ selector:
|
|
103
|
+
args: [{ selector: "anna-core-no-data-lib", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div\r\n [style.marginRight]=\"width\"\r\n [style.marginTop]=\"marginTop\"\r\n class=\"no-data\"\r\n>\r\n <label>{{ message }}</label>\r\n</div>\r\n", styles: ["div{right:0;position:absolute;margin:20px;z-index:400;transform:translate(50%)}div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:5px 18px;border-radius:4px}\n"] }]
|
|
104
104
|
}], ctorParameters: function () { return []; }, propDecorators: { width: [{
|
|
105
105
|
type: Input
|
|
106
106
|
}], marginTop: [{
|
|
@@ -115,7 +115,7 @@ class AnnaDeletedOrderIconTemplateComponent {
|
|
|
115
115
|
}
|
|
116
116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaDeletedOrderIconTemplateComponent, decorators: [{
|
|
117
117
|
type: Component,
|
|
118
|
-
args: [{ selector:
|
|
118
|
+
args: [{ selector: "anna-deleted-order-icon-template", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<i class=\"mdi mdi-file-remove-outline\"></i>\r\n", styles: [".mdi-file-remove-outline{font-size:1.5rem;color:#f44336}\n"] }]
|
|
119
119
|
}], ctorParameters: function () { return []; } });
|
|
120
120
|
|
|
121
121
|
class AnnaBuyerApprovalIconTemplateComponent {
|
|
@@ -126,7 +126,7 @@ class AnnaBuyerApprovalIconTemplateComponent {
|
|
|
126
126
|
}
|
|
127
127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaBuyerApprovalIconTemplateComponent, decorators: [{
|
|
128
128
|
type: Component,
|
|
129
|
-
args: [{ selector:
|
|
129
|
+
args: [{ selector: "anna-buyer-approval-icon-template", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-container [ngTemplateOutlet]=\"buyerApprovalIcon\"></ng-container>\r\n\r\n<ng-template #buyerApprovalIcon>\r\n <svg\r\n width=\"15px\"\r\n height=\"15px\"\r\n viewBox=\"0 0 20 20\"\r\n >\r\n <g\r\n id=\"Awaiting-Buyer-Approval-icon\"\r\n stroke=\"none\"\r\n stroke-width=\"1\"\r\n fill=\"none\"\r\n fill-rule=\"evenodd\"\r\n >\r\n <g\r\n id=\"time-left\"\r\n transform=\"translate(3.000000, 2.000000)\"\r\n fill=\"#4A4A4A\"\r\n fill-rule=\"nonzero\"\r\n >\r\n <path\r\n d=\"M6.23157622,14.1696467 C5.70535057,14.0721422 5.2005579,13.9061054 4.72188769,13.6745242 C4.71622258,13.6714711 4.71115545,13.6679958 4.70520709,13.6652025 C4.59240848,13.6104091 4.47979871,13.551718 4.37065094,13.4903961 C4.37027327,13.4899414 4.36958087,13.4896491 4.36898288,13.4893893 C4.16872129,13.37558 3.97327504,13.2496557 3.78339947,13.1117139 C1.01467199,11.0989392 0.348958764,7.13679055 2.29945571,4.27950803 C2.72358352,3.65842885 3.23684237,3.14027823 3.80904983,2.72960334 C3.81609974,2.72453649 3.82314965,2.71950212 3.83013662,2.71440279 C5.84650619,1.28061347 8.58442178,1.183986 10.7254867,2.65733574 L10.2656372,3.34301728 C10.1377946,3.53386873 10.2164452,3.67294733 10.4402485,3.65216024 L12.4377343,3.46760989 C12.6618209,3.4468228 12.7958322,3.24677957 12.7355617,3.0234483 L12.1991703,1.02899228 C12.1391202,0.805401178 11.9853754,0.778637804 11.8574069,0.969456765 L11.3964873,1.6567623 C9.82523796,0.568265989 7.94067659,0.153206329 6.0701521,0.487943386 C5.88175576,0.521592483 5.69600314,0.562776899 5.51279981,0.610717118 C5.51138354,0.610976957 5.51025052,0.611139356 5.50911749,0.611399194 C5.50203611,0.613185585 5.4948603,0.615556612 5.48796775,0.617537881 C3.8749854,1.04500483 2.46767797,2.01585923 1.46347449,3.40105873 C1.4550083,3.41141979 1.44629033,3.4215535 1.43829623,3.432824 C1.40490356,3.47923766 1.37176268,3.52672316 1.33931419,3.57420867 C1.28625101,3.65203032 1.23394317,3.73180077 1.18390138,3.81157121 C1.17763828,3.82118524 1.17285441,3.83096167 1.16737814,3.84067314 C0.338698623,5.1658824 -0.0610062726,6.69795566 0.00754154337,8.25770173 C0.00769890751,8.26283354 0.00741565207,8.26799784 0.00754154337,8.27325957 C0.0141823097,8.42562242 0.0258902012,8.58009646 0.0417839785,8.73216699 C0.0426337448,8.7419759 0.0447424242,8.75126512 0.0463475384,8.76107403 C0.0627763537,8.91398904 0.0833910551,9.06726132 0.109230246,9.22050113 C0.371839509,10.7840149 1.08652445,12.1909434 2.15745032,13.2856758 C2.15993667,13.2882417 2.16251744,13.291035 2.16503527,13.2936983 C2.16591651,13.2947052 2.16689216,13.2952249 2.16774193,13.2961668 C2.45546651,13.5890373 2.7684323,13.8599191 3.10541185,14.1048494 C3.98728044,14.7461311 4.9692641,15.1700252 6.02385557,15.3653264 C6.3438398,15.424667 6.64950389,15.2048436 6.70691032,14.8747836 C6.76428528,14.5444963 6.55146603,14.2287924 6.23157622,14.1696467 Z\"\r\n id=\"Path\"\r\n ></path>\r\n <path\r\n d=\"M9.22237925,14.6588011 C9.29073073,14.9263505 9.1292489,15.198652 8.86169949,15.2670034 C8.51639563,15.355219 8.1641424,15.4188128 7.8069689,15.4570516 C7.53239558,15.4864472 7.28598003,15.2876915 7.25658436,15.0131182 C7.22718869,14.7385449 7.42594445,14.4921293 7.70051776,14.4627336 C8.01004537,14.4295958 8.31515603,14.3745129 8.61417689,14.2981213 C8.8817263,14.2297698 9.15402777,14.3912517 9.22237925,14.6588011 Z M12.5552524,12.2886551 C12.7611952,12.4726175 12.7790139,12.7886982 12.5950515,12.994641 C12.3569806,13.2611574 12.1001968,13.5104915 11.8267859,13.7406023 C11.6155121,13.9184167 11.3000937,13.8912925 11.1222793,13.6800187 C10.9444648,13.4687448 10.9715891,13.1533264 11.1828629,12.975512 C11.4200152,12.7759175 11.6427598,12.5596351 11.8492666,12.3284542 C12.033229,12.1225114 12.3493096,12.1046927 12.5552524,12.2886551 Z M13.9945063,8.57622811 C14.2674538,8.61811209 14.4547678,8.87333344 14.4128838,9.14628095 C14.3584322,9.50112883 14.2787427,9.85020038 14.1746496,10.1914009 C14.0940709,10.4555252 13.8146338,10.6043183 13.5505094,10.5237395 C13.2863851,10.4431608 13.137592,10.1637237 13.2181708,9.89959931 C13.3082912,9.6041989 13.3772907,9.30195366 13.4244534,8.99460564 C13.4663374,8.72165813 13.7215588,8.53434413 13.9945063,8.57622811 Z M13.8741743,4.99628976 C14.0173723,5.32357494 14.1370467,5.66111195 14.2320931,6.00667963 C14.305325,6.27293459 14.1488489,6.54814305 13.8825939,6.62137492 C13.6163389,6.6946068 13.3411305,6.53813067 13.2678986,6.27187571 C13.1856167,5.97271686 13.0820133,5.68050756 12.958028,5.39713383 C12.847338,5.14414702 12.9626923,4.84932868 13.2156791,4.73863865 C13.4686659,4.62794862 13.7634843,4.74330295 13.8741743,4.99628976 Z\"\r\n id=\"Combined-Shape\"\r\n ></path>\r\n <path\r\n d=\"M6.49684035,4 C6.22234237,4 6,4.21290493 6,4.47514225 L6,9.20888548 L10.5252942,11.4469308 C10.5981282,11.4830116 10.6761155,11.5 10.7528554,11.5 C10.9325937,11.5 11.106194,11.4063595 11.1944548,11.2429754 C11.3203307,11.0097848 11.2250786,10.7233052 10.9813357,10.6028789 L6.9931227,8.63027395 L6.9931227,4.47514225 C6.99308988,4.21290493 6.77101009,4 6.49684035,4 Z\"\r\n id=\"Path\"\r\n ></path>\r\n </g>\r\n </g>\r\n </svg>\r\n</ng-template>\r\n" }]
|
|
130
130
|
}], ctorParameters: function () { return []; } });
|
|
131
131
|
|
|
132
132
|
class AnnaNotifyIconTemplateComponent {
|
|
@@ -137,7 +137,7 @@ class AnnaNotifyIconTemplateComponent {
|
|
|
137
137
|
}
|
|
138
138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNotifyIconTemplateComponent, decorators: [{
|
|
139
139
|
type: Component,
|
|
140
|
-
args: [{ selector:
|
|
140
|
+
args: [{ selector: "anna-notify-icon-template", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<i class=\"mdi mdi-bell\"></i>\r\n", styles: [".mdi-bell{font-size:.9375rem;color:#f3bd18}\n"] }]
|
|
141
141
|
}], ctorParameters: function () { return []; } });
|
|
142
142
|
|
|
143
143
|
class AnnaRejectedIconTemplateComponent {
|
|
@@ -148,7 +148,7 @@ class AnnaRejectedIconTemplateComponent {
|
|
|
148
148
|
}
|
|
149
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaRejectedIconTemplateComponent, decorators: [{
|
|
150
150
|
type: Component,
|
|
151
|
-
args: [{ selector:
|
|
151
|
+
args: [{ selector: "anna-rejected-icon-template", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-container [ngTemplateOutlet]=\"rejectedIcon\"></ng-container>\r\n\r\n<ng-template #rejectedIcon>\r\n <svg\r\n width=\"15px\"\r\n height=\"15px\"\r\n viewBox=\"0 0 20 20\"\r\n >\r\n <g\r\n id=\"Buyer-rejected-icon\"\r\n stroke=\"none\"\r\n stroke-width=\"1\"\r\n fill=\"none\"\r\n fill-rule=\"evenodd\"\r\n >\r\n <path\r\n d=\"M15.7822266,4.21777344 C14.3671875,2.80276367 12.4951465,2 10.5,2 C6.37918945,2 3,5.37253906 3,9.5 C3,13.6296289 6.37133789,17 10.5,17 C14.6105273,17 18,13.6429004 18,9.5 C18,7.50485352 17.1972656,5.6327832 15.7822266,4.21777344 Z M10.5,15.2128906 C7.34220703,15.2128906 4.78710938,12.664502 4.78710938,9.5 C4.78710938,8.26950195 5.17382812,7.10055664 5.88574219,6.13375977 L13.8662402,14.1054395 C12.8993848,14.8261719 11.730498,15.2128906 10.5,15.2128906 Z M15.1054688,12.8661816 L7.13375977,4.88574219 C8.10061523,4.17382813 9.26950195,3.78710938 10.5,3.78710938 C13.6578809,3.78710938 16.2128906,6.33549805 16.2128906,9.5 C16.2128906,10.7304395 15.8261719,11.8993848 15.1054688,12.8661816 Z\"\r\n id=\"Shape\"\r\n fill=\"#4A4A4A\"\r\n fill-rule=\"nonzero\"\r\n ></path>\r\n </g>\r\n </svg>\r\n</ng-template>\r\n" }]
|
|
152
152
|
}], ctorParameters: function () { return []; } });
|
|
153
153
|
|
|
154
154
|
class AnnaLiveIconTemplateComponent {
|
|
@@ -159,7 +159,7 @@ class AnnaLiveIconTemplateComponent {
|
|
|
159
159
|
}
|
|
160
160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaLiveIconTemplateComponent, decorators: [{
|
|
161
161
|
type: Component,
|
|
162
|
-
args: [{ selector:
|
|
162
|
+
args: [{ selector: "anna-live-icon-template", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-container [ngTemplateOutlet]=\"liveIcon\"></ng-container>\r\n<ng-template #liveIcon>\r\n <svg\r\n width=\"15px\"\r\n height=\"15px\"\r\n viewBox=\"0 0 20 20\"\r\n >\r\n <g\r\n id=\"Live-Icon\"\r\n stroke=\"none\"\r\n stroke-width=\"1\"\r\n fill=\"none\"\r\n fill-rule=\"evenodd\"\r\n >\r\n <g\r\n id=\"next\"\r\n transform=\"translate(2.000000, 2.000000)\"\r\n fill-rule=\"nonzero\"\r\n >\r\n <path\r\n d=\"M8,0 C3.58171139,0 0,3.58171139 0,8 C0,12.4182886 3.58171139,16 8,16 C12.4182886,16 16,12.4182886 16,8 C15.9950435,3.58379835 12.4162343,0.00498913721 8,0 Z\"\r\n id=\"Path\"\r\n fill=\"#C2E361\"\r\n ></path>\r\n <path\r\n d=\"M8,16 C3.58171139,16 0,12.4182633 0,7.9999837 C0,3.58170409 3.58171139,0 8,0 C12.4182886,0 16,3.58170409 16,7.9999837 C15.9950435,12.416209 12.4162343,15.9950109 8,16 Z M8,0.695640832 C3.96590756,0.695640832 0.69564225,3.96589948 0.69564225,7.9999837 C0.69564225,12.0340679 3.96590756,15.3043266 8,15.3043266 C12.0340924,15.3043266 15.3043578,12.0340679 15.3043578,7.9999837 C15.2997599,3.96782339 12.0322011,0.700238655 8,0.695640832 Z\"\r\n id=\"Shape\"\r\n fill=\"#8BAC2A\"\r\n ></path>\r\n <circle\r\n id=\"Oval\"\r\n fill=\"#8BAC2A\"\r\n cx=\"8\"\r\n cy=\"8\"\r\n r=\"4\"\r\n ></circle>\r\n </g>\r\n </g>\r\n </svg>\r\n</ng-template>\r\n" }]
|
|
163
163
|
}], ctorParameters: function () { return []; } });
|
|
164
164
|
|
|
165
165
|
class AnnaPayForPerformanceIconTemplateComponent {
|
|
@@ -170,7 +170,7 @@ class AnnaPayForPerformanceIconTemplateComponent {
|
|
|
170
170
|
}
|
|
171
171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaPayForPerformanceIconTemplateComponent, decorators: [{
|
|
172
172
|
type: Component,
|
|
173
|
-
args: [{ selector:
|
|
173
|
+
args: [{ selector: "anna-pay-for-performance-icon-template", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-container\r\n [ngTemplateOutlet]=\"PayForPerformanceIcon\"\r\n [ngTemplateOutletContext]=\"{ color: color, width: width, height: height }\"\r\n>\r\n</ng-container>\r\n\r\n<ng-template\r\n #PayForPerformanceIcon\r\n let-color=\"color\"\r\n let-width=\"width\"\r\n let-height=\"height\"\r\n>\r\n <svg\r\n [attr.width]=\"width\"\r\n [attr.height]=\"height\"\r\n viewBox=\"0 0 20 20\"\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n >\r\n <g\r\n id=\"Page-1\"\r\n stroke=\"none\"\r\n stroke-width=\"1\"\r\n fill=\"none\"\r\n fill-rule=\"evenodd\"\r\n >\r\n <g\r\n id=\"02.-PAY-FOR-PERFORMANCE-MARKED\"\r\n transform=\"translate(-100.000000, -537.000000)\"\r\n [attr.fill]=\"color\"\r\n fill-rule=\"nonzero\"\r\n >\r\n <g\r\n id=\"PFP\"\r\n transform=\"translate(100.000000, 537.000000)\"\r\n >\r\n <path\r\n d=\"M20,3.125 L20,8.3984375 C20,8.82995605 19.6502686,9.1796875 19.21875,9.1796875 C18.7872314,9.1796875 18.4375,8.82995605 18.4375,8.3984375 L18.4375,3.125 C18.4375,2.26348875 17.7365112,1.5625 16.875,1.5625 L3.125,1.5625 C2.26348875,1.5625 1.5625,2.26348875 1.5625,3.125 L1.5625,16.875 C1.5625,17.7365112 2.26348875,18.4375 3.125,18.4375 L12.96875,18.4375 C13.4002686,18.4375 13.75,18.7872314 13.75,19.21875 C13.75,19.6502686 13.4002686,20 12.96875,20 L3.125,20 C1.40182496,20 0,18.598175 0,16.875 L0,3.125 C0,1.40182496 1.40182496,0 3.125,0 L16.875,0 C18.598175,0 20,1.40182496 20,3.125 Z M15.9622314,5.43584332 C15.9447753,5.38514929 15.9230346,5.33649554 15.8936766,5.29255022 C15.8924071,5.290196 15.891455,5.28799875 15.8901855,5.28580147 C15.8589232,5.23981585 15.8206786,5.19995115 15.7789427,5.16322545 C15.7689451,5.15427945 15.7584715,5.1459612 15.7475217,5.13764299 C15.7022947,5.10280065 15.6545285,5.07203893 15.6008908,5.04975236 C15.6008908,5.04975236 15.6008908,5.04975236 15.6005734,5.04975236 C15.5488399,5.02825056 15.4929805,5.01600867 15.4358516,5.00863213 C15.4218867,5.00674875 15.4082392,5.00549317 15.3942744,5.00455147 C15.3791987,5.0036098 15.3652338,5 15.3499994,5 L13.0749975,5 C12.7161959,5 12.4249969,5.28799875 12.4249969,5.64285714 C12.4249969,5.99771553 12.7161959,6.28571429 13.0749975,6.28571429 L13.7624492,6.28571429 L11.4499961,8.53571429 C11.4415854,8.52708216 11.4320639,8.5182931 11.4230185,8.5102888 L10.4034253,7.61160714 C9.89545371,7.12554061 9.08263561,7.13071987 8.58291595,7.62416295 L3.19264032,12.9001116 C2.937623,13.1498152 2.93555998,13.557094 3.18787956,13.8094657 C3.31530888,13.9362793 3.48225238,14 3.64998933,14 C3.8153459,14 3.98054383,13.9383196 4.10733834,13.8141741 L9.5,8.53571429 C9.50840503,8.54434641 9.51792652,8.55313547 9.52697193,8.56113977 L10.5462477,9.45982143 C10.7899979,9.69320244 11.1100788,9.82142857 11.4499961,9.82142857 C11.7970545,9.82142857 12.1233243,9.68770926 12.3651702,9.44852121 L14.6999989,7.1770194 L14.6999989,7.89285714 C14.6999989,8.24771553 14.9911979,8.53571429 15.3499994,8.53571429 C15.708801,8.53571429 16,8.24771553 16,7.89285714 L16,5.64285714 C16,5.58431572 15.9895264,5.52844239 15.9746094,5.47445244 C15.9711181,5.46126884 15.9668335,5.44871304 15.9622314,5.43584332 Z M17.7789307,14.21875 L17.0629883,14.21875 C16.71875,14.21875 16.4280701,13.9146423 16.4280701,13.5546875 L16.4280701,13.2698059 C16.4280701,12.9200745 16.7010498,12.65625 17.0629883,12.65625 L17.7400207,12.65625 C17.9388428,12.65625 18.1446838,12.7894592 18.1446838,13.0123902 C18.1446838,13.4437561 18.4945679,13.7936402 18.9259338,13.7936402 C19.3574524,13.7936402 19.7071838,13.4437561 19.7071838,13.0123902 C19.7071838,12.0761109 19.0158081,11.2947082 18.1048584,11.1273193 L18.1048584,10.625 C18.1048584,10.1934814 17.755127,9.84375 17.3236084,9.84375 C16.8920898,9.84375 16.5423584,10.1934814 16.5423584,10.625 L16.5423584,11.1541748 C16.1557007,11.2454223 15.8015442,11.4382934 15.5142212,11.7193604 C15.0959778,12.1286011 14.8655701,12.6792908 14.8655701,13.2696533 L14.8655701,13.5546875 C14.8655701,14.7824097 15.8512879,15.78125 17.0629883,15.78125 L17.7789307,15.78125 C18.1373596,15.78125 18.4181213,16.053009 18.4181213,16.3999939 L18.4181213,16.5917969 C18.4181213,16.9313049 18.1433105,17.1875 17.7789307,17.1875 L16.615448,17.1875 C16.4233398,17.1875 16.2290955,17.0666504 16.2290955,16.8359375 C16.2290955,16.4044189 15.879364,16.0546875 15.4478455,16.0546875 C15.0163269,16.0546875 14.6665955,16.4044189 14.6665955,16.8359375 C14.6665955,17.8851318 15.4847717,18.7117004 16.5423584,18.7481689 L16.5423584,19.1796875 C16.5423584,19.6112061 16.8920898,19.9609375 17.3236084,19.9609375 C17.755127,19.9609375 18.1048584,19.6112061 18.1048584,19.1796875 L18.1048584,18.7272644 C19.1795349,18.5771179 19.9806213,17.6931763 19.9806213,16.5917969 L19.9806213,16.3999939 C19.9806213,15.8096313 19.7496033,15.2581787 19.3299866,14.8472595 C18.9161682,14.4419861 18.3653259,14.21875 17.7789307,14.21875 Z\"\r\n id=\"Shape-Copy-9\"\r\n ></path>\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n</ng-template>\r\n" }]
|
|
174
174
|
}], ctorParameters: function () { return []; }, propDecorators: { isTitle: [{
|
|
175
175
|
type: Input
|
|
176
176
|
}], color: [{
|
|
@@ -183,8 +183,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
183
183
|
|
|
184
184
|
class AnnaIconColumnComponent {
|
|
185
185
|
constructor() {
|
|
186
|
-
this.PfpIconActiveColor =
|
|
187
|
-
this.PfpIconDisableColor =
|
|
186
|
+
this.PfpIconActiveColor = "#9B1B93";
|
|
187
|
+
this.PfpIconDisableColor = "rgba(189,189,189,0.5)";
|
|
188
188
|
this.onColumnIconClicked = new EventEmitter();
|
|
189
189
|
}
|
|
190
190
|
ngOnInit() { }
|
|
@@ -196,7 +196,7 @@ class AnnaIconColumnComponent {
|
|
|
196
196
|
}
|
|
197
197
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaIconColumnComponent, decorators: [{
|
|
198
198
|
type: Component,
|
|
199
|
-
args: [{ selector:
|
|
199
|
+
args: [{ selector: "anna-core-anna-icon-column", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
200
200
|
NgIf,
|
|
201
201
|
AnnaPayForPerformanceIconTemplateComponent,
|
|
202
202
|
AnnaLiveIconTemplateComponent,
|
|
@@ -222,10 +222,10 @@ class showEllipsisTextOnHoverDirective {
|
|
|
222
222
|
onMouseEnter() {
|
|
223
223
|
let domElement = this.elementRef.nativeElement;
|
|
224
224
|
if (domElement.offsetWidth < domElement.scrollWidth || this.checkPositionsInDecimals(domElement)) {
|
|
225
|
-
domElement.title = domElement.textContent ==
|
|
225
|
+
domElement.title = domElement.textContent == "" ? domElement.value : domElement.textContent;
|
|
226
226
|
}
|
|
227
227
|
else if (domElement.title)
|
|
228
|
-
domElement.removeAttribute(
|
|
228
|
+
domElement.removeAttribute("title");
|
|
229
229
|
}
|
|
230
230
|
checkPositionsInDecimals(domElement) {
|
|
231
231
|
// if we don't have any children element Then we can't calculate and compare anything so we are returning false from here
|
|
@@ -234,7 +234,7 @@ class showEllipsisTextOnHoverDirective {
|
|
|
234
234
|
let elementRect = domElement.getBoundingClientRect();
|
|
235
235
|
let childRect = domElement.children[0].getBoundingClientRect();
|
|
236
236
|
let paddingOnRight = window.getComputedStyle(domElement).paddingRight;
|
|
237
|
-
let padding = +(paddingOnRight.endsWith(
|
|
237
|
+
let padding = +(paddingOnRight.endsWith("px") ? paddingOnRight.slice(0, -2) : paddingOnRight);
|
|
238
238
|
// If overflow happens then Child element's right side position will be greater than container element's right side position.
|
|
239
239
|
return childRect.right + padding > elementRect.right;
|
|
240
240
|
}
|
|
@@ -244,12 +244,12 @@ class showEllipsisTextOnHoverDirective {
|
|
|
244
244
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: showEllipsisTextOnHoverDirective, decorators: [{
|
|
245
245
|
type: Directive,
|
|
246
246
|
args: [{
|
|
247
|
-
selector:
|
|
247
|
+
selector: "[showEllipsisTextOnHover]",
|
|
248
248
|
standalone: true,
|
|
249
249
|
}]
|
|
250
250
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onMouseEnter: [{
|
|
251
251
|
type: HostListener,
|
|
252
|
-
args: [
|
|
252
|
+
args: ["mouseenter"]
|
|
253
253
|
}] } });
|
|
254
254
|
|
|
255
255
|
class AnnaConvertZeroOrNullOrUndefinedPipe {
|
|
@@ -260,7 +260,7 @@ class AnnaConvertZeroOrNullOrUndefinedPipe {
|
|
|
260
260
|
return this.transformer(value, convertTo);
|
|
261
261
|
}
|
|
262
262
|
replace(value, convertTo) {
|
|
263
|
-
if (value ===
|
|
263
|
+
if (value === "undefined" || value === null || value === "" || Number(value) === 0) {
|
|
264
264
|
return convertTo;
|
|
265
265
|
}
|
|
266
266
|
return value;
|
|
@@ -271,7 +271,7 @@ class AnnaConvertZeroOrNullOrUndefinedPipe {
|
|
|
271
271
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaConvertZeroOrNullOrUndefinedPipe, decorators: [{
|
|
272
272
|
type: Pipe,
|
|
273
273
|
args: [{
|
|
274
|
-
name:
|
|
274
|
+
name: "AnnaConvertZeroOrNullOrUndefined",
|
|
275
275
|
standalone: true,
|
|
276
276
|
}]
|
|
277
277
|
}] });
|
|
@@ -283,42 +283,42 @@ class AnnaDateTimeFormatService {
|
|
|
283
283
|
}
|
|
284
284
|
convertToNgbDateStandardFormat(date) {
|
|
285
285
|
return {
|
|
286
|
-
year: parseInt(dayjs(date,
|
|
287
|
-
month: parseInt(dayjs(date,
|
|
288
|
-
day: parseInt(dayjs(date,
|
|
286
|
+
year: parseInt(dayjs(date, "MM/DD/YYYY").format("YYYY")),
|
|
287
|
+
month: parseInt(dayjs(date, "MM/DD/YYYY").format("M")),
|
|
288
|
+
day: parseInt(dayjs(date, "MM/DD/YYYY").format("D")),
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
convertToNgbDate(date, parseFormat) {
|
|
292
292
|
return {
|
|
293
|
-
year: parseInt(dayjs(date, parseFormat).format(
|
|
294
|
-
month: parseInt(dayjs(date, parseFormat).format(
|
|
295
|
-
day: parseInt(dayjs(date, parseFormat).format(
|
|
293
|
+
year: parseInt(dayjs(date, parseFormat).format("YYYY")),
|
|
294
|
+
month: parseInt(dayjs(date, parseFormat).format("M")),
|
|
295
|
+
day: parseInt(dayjs(date, parseFormat).format("D")),
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
static formatToTwelveHrs(time, callRemoveZero) {
|
|
299
|
-
if (time.endsWith(
|
|
299
|
+
if (time.endsWith("A") || time.endsWith("P")) {
|
|
300
300
|
time = time.substring(0, time.length - 1);
|
|
301
301
|
}
|
|
302
|
-
let tmp = time.split(
|
|
302
|
+
let tmp = time.split(":");
|
|
303
303
|
let formattedTime = [];
|
|
304
304
|
if (+tmp[0] > 12) {
|
|
305
305
|
formattedTime[0] = (+tmp[0] - 12).toString();
|
|
306
306
|
if (+tmp[0] == 24)
|
|
307
|
-
formattedTime[2] =
|
|
307
|
+
formattedTime[2] = "AM";
|
|
308
308
|
else
|
|
309
|
-
formattedTime[2] =
|
|
309
|
+
formattedTime[2] = "PM";
|
|
310
310
|
}
|
|
311
|
-
else if (tmp[0] ==
|
|
311
|
+
else if (tmp[0] == "12") {
|
|
312
312
|
formattedTime[0] = tmp[0];
|
|
313
|
-
formattedTime[2] =
|
|
313
|
+
formattedTime[2] = "PM";
|
|
314
314
|
}
|
|
315
|
-
else if (tmp[0] ==
|
|
316
|
-
formattedTime[0] =
|
|
317
|
-
formattedTime[2] =
|
|
315
|
+
else if (tmp[0] == "00") {
|
|
316
|
+
formattedTime[0] = "12";
|
|
317
|
+
formattedTime[2] = "AM";
|
|
318
318
|
}
|
|
319
319
|
else {
|
|
320
320
|
formattedTime[0] = tmp[0];
|
|
321
|
-
formattedTime[2] =
|
|
321
|
+
formattedTime[2] = "AM";
|
|
322
322
|
}
|
|
323
323
|
formattedTime[1] = tmp[1];
|
|
324
324
|
if (callRemoveZero)
|
|
@@ -328,11 +328,11 @@ class AnnaDateTimeFormatService {
|
|
|
328
328
|
convertTotwentyFourHrsFormat(time, callAddZero) {
|
|
329
329
|
let tmp = time.split(/[ :]+/);
|
|
330
330
|
let formattedTime = [];
|
|
331
|
-
if (tmp[0] !=
|
|
331
|
+
if (tmp[0] != "12" && tmp[2] == "PM") {
|
|
332
332
|
formattedTime[0] = (+tmp[0] + 12).toString();
|
|
333
333
|
}
|
|
334
|
-
else if (tmp[0] ==
|
|
335
|
-
formattedTime[0] =
|
|
334
|
+
else if (tmp[0] == "12" && tmp[2] == "AM") {
|
|
335
|
+
formattedTime[0] = "00";
|
|
336
336
|
}
|
|
337
337
|
else
|
|
338
338
|
formattedTime[0] = tmp[0].toString();
|
|
@@ -344,15 +344,15 @@ class AnnaDateTimeFormatService {
|
|
|
344
344
|
static removeZero(time) {
|
|
345
345
|
let removedZero;
|
|
346
346
|
let formattedTime = time;
|
|
347
|
-
if (time[0] ==
|
|
348
|
-
time[0] ==
|
|
349
|
-
time[0] ==
|
|
350
|
-
time[0] ==
|
|
351
|
-
time[0] ==
|
|
352
|
-
time[0] ==
|
|
353
|
-
time[0] ==
|
|
354
|
-
time[0] ==
|
|
355
|
-
time[0] ==
|
|
347
|
+
if (time[0] == "01" ||
|
|
348
|
+
time[0] == "02" ||
|
|
349
|
+
time[0] == "03" ||
|
|
350
|
+
time[0] == "04" ||
|
|
351
|
+
time[0] == "05" ||
|
|
352
|
+
time[0] == "06" ||
|
|
353
|
+
time[0] == "07" ||
|
|
354
|
+
time[0] == "08" ||
|
|
355
|
+
time[0] == "09") {
|
|
356
356
|
removedZero = time[0].toString();
|
|
357
357
|
formattedTime[0] = removedZero.charAt(1);
|
|
358
358
|
formattedTime[1] = time[1];
|
|
@@ -363,53 +363,53 @@ class AnnaDateTimeFormatService {
|
|
|
363
363
|
addZero(time) {
|
|
364
364
|
let addedZero;
|
|
365
365
|
let formattedTime = time;
|
|
366
|
-
if (time[1] ==
|
|
367
|
-
time[1] =
|
|
368
|
-
if (time[0] ==
|
|
369
|
-
time[0] ==
|
|
370
|
-
time[0] ==
|
|
371
|
-
time[0] ==
|
|
372
|
-
time[0] ==
|
|
373
|
-
time[0] ==
|
|
374
|
-
time[0] ==
|
|
375
|
-
time[0] ==
|
|
376
|
-
time[0] ==
|
|
377
|
-
time[0] ==
|
|
378
|
-
addedZero =
|
|
366
|
+
if (time[1] == "0")
|
|
367
|
+
time[1] = "0" + time[1];
|
|
368
|
+
if (time[0] == "0" ||
|
|
369
|
+
time[0] == "1" ||
|
|
370
|
+
time[0] == "2" ||
|
|
371
|
+
time[0] == "3" ||
|
|
372
|
+
time[0] == "4" ||
|
|
373
|
+
time[0] == "5" ||
|
|
374
|
+
time[0] == "6" ||
|
|
375
|
+
time[0] == "7" ||
|
|
376
|
+
time[0] == "8" ||
|
|
377
|
+
time[0] == "9") {
|
|
378
|
+
addedZero = "0" + time[0];
|
|
379
379
|
formattedTime[0] = addedZero;
|
|
380
380
|
formattedTime[1] = time[1];
|
|
381
381
|
}
|
|
382
382
|
return formattedTime;
|
|
383
383
|
}
|
|
384
384
|
sortByTimeAscending(a, b) {
|
|
385
|
-
let format =
|
|
386
|
-
a = dayjs(
|
|
387
|
-
b = dayjs(
|
|
385
|
+
let format = "MM/DD/YYYY HH:mm:ss";
|
|
386
|
+
a = dayjs("01/01/2001 " + a, format);
|
|
387
|
+
b = dayjs("01/01/2001 " + b, format);
|
|
388
388
|
let results;
|
|
389
|
-
results = a.get(
|
|
389
|
+
results = a.get("hour") > b.get("hour") ? 1 : a.get("hour") < b.get("hour") ? -1 : 0;
|
|
390
390
|
if (results === 0)
|
|
391
|
-
results = a.get(
|
|
391
|
+
results = a.get("minute") > b.get("minute") ? 1 : a.get("minute") < b.get("minute") ? -1 : 0;
|
|
392
392
|
if (results === 0)
|
|
393
|
-
results = a.get(
|
|
393
|
+
results = a.get("second") > b.get("second") ? 1 : a.get("second") < b.get("second") ? -1 : 0;
|
|
394
394
|
return results;
|
|
395
395
|
}
|
|
396
396
|
sortByTimeDescending(a, b) {
|
|
397
|
-
let format =
|
|
398
|
-
a = dayjs(
|
|
399
|
-
b = dayjs(
|
|
397
|
+
let format = "MM/DD/YYYY HH:mm:ss";
|
|
398
|
+
a = dayjs("01/01/2001 " + a, format);
|
|
399
|
+
b = dayjs("01/01/2001 " + b, format);
|
|
400
400
|
let results;
|
|
401
|
-
results = a.get(
|
|
401
|
+
results = a.get("hour") < b.get("hour") ? 1 : a.get("hour") > b.get("hour") ? -1 : 0;
|
|
402
402
|
if (results === 0)
|
|
403
|
-
results = a.get(
|
|
403
|
+
results = a.get("minute") < b.get("minute") ? 1 : a.get("minute") > b.get("minute") ? -1 : 0;
|
|
404
404
|
if (results === 0)
|
|
405
|
-
results = a.get(
|
|
405
|
+
results = a.get("second") < b.get("second") ? 1 : a.get("second") > b.get("second") ? -1 : 0;
|
|
406
406
|
return results;
|
|
407
407
|
}
|
|
408
408
|
convertNgbDateToMoment(ngbDate) {
|
|
409
|
-
let formatType =
|
|
409
|
+
let formatType = "MM/DD/YYYY";
|
|
410
410
|
let converted = null;
|
|
411
411
|
if (ngbDate && ngbDate.month && ngbDate.day && ngbDate.year) {
|
|
412
|
-
converted = ngbDate.month +
|
|
412
|
+
converted = ngbDate.month + "/" + ngbDate.day + "/" + ngbDate.year;
|
|
413
413
|
converted = dayjs(converted).format(formatType);
|
|
414
414
|
}
|
|
415
415
|
return converted;
|
|
@@ -418,64 +418,64 @@ class AnnaDateTimeFormatService {
|
|
|
418
418
|
return isAsc ? dayjs(a).diff(b) : dayjs(b).diff(a);
|
|
419
419
|
}
|
|
420
420
|
static formatTwentyFourHourTimeToHHMMAFormat(value, date) {
|
|
421
|
-
value = dayjs(date ? date :
|
|
422
|
-
return value[14] ==
|
|
423
|
-
? dayjs(value, [
|
|
424
|
-
: dayjs(value, [
|
|
421
|
+
value = dayjs(date ? date : "01/01/2000 " + value).format("MM/DD/YYYY HH:mm:ss");
|
|
422
|
+
return value[14] == "0" && value[15] == "0"
|
|
423
|
+
? dayjs(value, ["MM/DD/YYYY HH:mm:ss"]).format("hA").slice(0, -1)
|
|
424
|
+
: dayjs(value, ["MM/DD/YYYY HH:mm:ss"]).format("h:mmA").slice(0, -1);
|
|
425
425
|
}
|
|
426
426
|
static formatTwelveHourTimeToHHMMAFormat(timeValue, date) {
|
|
427
|
-
timeValue = dayjs(date ? date :
|
|
427
|
+
timeValue = dayjs(date ? date : "01/01/2000 " + timeValue).format("MM/DD/YYYY HH:mm:ss");
|
|
428
428
|
// check if min==00
|
|
429
|
-
return timeValue[14] ==
|
|
430
|
-
? dayjs(timeValue, [
|
|
431
|
-
: dayjs(timeValue, [
|
|
429
|
+
return timeValue[14] == "0" && timeValue[15] == "0"
|
|
430
|
+
? dayjs(timeValue, ["MM/DD/YYYY HH:mm:ss"]).format("hA").slice(0, -1)
|
|
431
|
+
: dayjs(timeValue, ["MM/DD/YYYY HH:mm:ss"]).format("h:mmA").slice(0, -1);
|
|
432
432
|
}
|
|
433
433
|
formatDateAndHHMMATimeToStandardFormat(dateAndTime) {
|
|
434
434
|
let standardFormat, date, time;
|
|
435
|
-
if (dateAndTime.includes(
|
|
436
|
-
date = dateAndTime.slice(0, dateAndTime.indexOf(
|
|
437
|
-
time = dateAndTime.slice(dateAndTime.indexOf(
|
|
438
|
-
time = time.slice(0, 2) +
|
|
439
|
-
time = time +
|
|
435
|
+
if (dateAndTime.includes("|")) {
|
|
436
|
+
date = dateAndTime.slice(0, dateAndTime.indexOf("|"));
|
|
437
|
+
time = dateAndTime.slice(dateAndTime.indexOf("|") + 1, dateAndTime.length).trim();
|
|
438
|
+
time = time.slice(0, 2) + ":" + time.slice(2, 4) + " " + time.slice(4, 5);
|
|
439
|
+
time = time + "M";
|
|
440
440
|
standardFormat = date + time;
|
|
441
441
|
}
|
|
442
442
|
else {
|
|
443
|
-
standardFormat = dateAndTime +
|
|
443
|
+
standardFormat = dateAndTime + " 00:00 AM";
|
|
444
444
|
}
|
|
445
|
-
return dayjs(standardFormat).format(
|
|
445
|
+
return dayjs(standardFormat).format("MM/DD/YYYY hh:mm A");
|
|
446
446
|
}
|
|
447
447
|
compare(a, b, isAsc) {
|
|
448
|
-
if (typeof a ==
|
|
449
|
-
a = a ==
|
|
450
|
-
b = b ==
|
|
448
|
+
if (typeof a == "string" && typeof b == "string") {
|
|
449
|
+
a = a == "-" ? "0" : a.toLowerCase();
|
|
450
|
+
b = b == "-" ? "0" : b.toLowerCase();
|
|
451
451
|
}
|
|
452
452
|
return (a < b ? -1 : 1) * (isAsc ? 1 : -1);
|
|
453
453
|
}
|
|
454
454
|
sortDataByBroadcastTimeAsc(firstParamTime, secondParamTime, broadcastTime) {
|
|
455
|
-
let format =
|
|
455
|
+
let format = "HH:mm:ss";
|
|
456
456
|
let a = dayjs(firstParamTime, format);
|
|
457
457
|
let b = dayjs(secondParamTime, format);
|
|
458
|
-
let broadcastdayjsDateTime = dayjs(broadcastTime,
|
|
459
|
-
a = a.isBefore(broadcastdayjsDateTime) ? a.add(1,
|
|
460
|
-
b = b.isBefore(broadcastdayjsDateTime) ? b.add(1,
|
|
458
|
+
let broadcastdayjsDateTime = dayjs(broadcastTime, "HH:mm:ss");
|
|
459
|
+
a = a.isBefore(broadcastdayjsDateTime) ? a.add(1, "d") : a;
|
|
460
|
+
b = b.isBefore(broadcastdayjsDateTime) ? b.add(1, "d") : b;
|
|
461
461
|
let result = a.isBefore(b) ? -1 : a.isAfter(b) ? 1 : 0;
|
|
462
462
|
return result;
|
|
463
463
|
}
|
|
464
464
|
convertNgbDateToMomentInSpecificFormat(ngbDate, format) {
|
|
465
465
|
let converted = null;
|
|
466
466
|
if (ngbDate && ngbDate.month && ngbDate.day && ngbDate.year) {
|
|
467
|
-
converted = ngbDate.month +
|
|
467
|
+
converted = ngbDate.month + "/" + ngbDate.day + "/" + ngbDate.year;
|
|
468
468
|
converted = dayjs(converted).format(format);
|
|
469
469
|
}
|
|
470
470
|
return converted;
|
|
471
471
|
}
|
|
472
472
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaDateTimeFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
473
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaDateTimeFormatService, providedIn:
|
|
473
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaDateTimeFormatService, providedIn: "root" }); }
|
|
474
474
|
}
|
|
475
475
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaDateTimeFormatService, decorators: [{
|
|
476
476
|
type: Injectable,
|
|
477
477
|
args: [{
|
|
478
|
-
providedIn:
|
|
478
|
+
providedIn: "root",
|
|
479
479
|
}]
|
|
480
480
|
}], ctorParameters: function () { return []; } });
|
|
481
481
|
|
|
@@ -485,17 +485,17 @@ class AnnaGlobalConfigService {
|
|
|
485
485
|
*/
|
|
486
486
|
constructor() {
|
|
487
487
|
this.defaultAngular2MultiSelectSettings = {
|
|
488
|
-
text:
|
|
489
|
-
selectAllText:
|
|
490
|
-
unSelectAllText:
|
|
488
|
+
text: "Select option",
|
|
489
|
+
selectAllText: "Select All",
|
|
490
|
+
unSelectAllText: "UnSelect All",
|
|
491
491
|
badgeShowLimit: 1,
|
|
492
492
|
singleSelection: false,
|
|
493
|
-
classes:
|
|
493
|
+
classes: "filter-dropdowns",
|
|
494
494
|
enableSearchFilter: true,
|
|
495
495
|
enableCheckAll: true,
|
|
496
496
|
autoPosition: false,
|
|
497
497
|
disabled: false,
|
|
498
|
-
position:
|
|
498
|
+
position: "bottom",
|
|
499
499
|
lazyLoading: false,
|
|
500
500
|
showCheckbox: true,
|
|
501
501
|
maxHeight: 300,
|
|
@@ -512,7 +512,7 @@ class AnnaGlobalConfigService {
|
|
|
512
512
|
};
|
|
513
513
|
this.defaultNgbDatePickerSettings = {
|
|
514
514
|
autoClose: false,
|
|
515
|
-
placeholder:
|
|
515
|
+
placeholder: "mm-dd-yyyy",
|
|
516
516
|
displayMonths: 1,
|
|
517
517
|
firstDayOfWeek: 1,
|
|
518
518
|
showWeekNumbers: false,
|
|
@@ -520,7 +520,7 @@ class AnnaGlobalConfigService {
|
|
|
520
520
|
};
|
|
521
521
|
this.defaultNgSelectSettings = {
|
|
522
522
|
allowClear: false,
|
|
523
|
-
placeholder:
|
|
523
|
+
placeholder: "Select",
|
|
524
524
|
};
|
|
525
525
|
this.defaultNgxInfiniteScrollSettings = {
|
|
526
526
|
infiniteScrollDistance: 1,
|
|
@@ -532,43 +532,43 @@ class AnnaGlobalConfigService {
|
|
|
532
532
|
numberOfSkeletonRows: Array(6).fill(0),
|
|
533
533
|
};
|
|
534
534
|
this.defaultRadioButtonsComponentConfig = {
|
|
535
|
-
heading:
|
|
535
|
+
heading: "Select Option",
|
|
536
536
|
radioButtons: [
|
|
537
537
|
{
|
|
538
|
-
value:
|
|
538
|
+
value: "Yes",
|
|
539
539
|
isDisabled: false,
|
|
540
|
-
label:
|
|
541
|
-
class:
|
|
540
|
+
label: "Yes",
|
|
541
|
+
class: "",
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
|
-
value:
|
|
544
|
+
value: "No",
|
|
545
545
|
isDisabled: false,
|
|
546
|
-
label:
|
|
547
|
-
class:
|
|
546
|
+
label: "No",
|
|
547
|
+
class: "",
|
|
548
548
|
},
|
|
549
549
|
],
|
|
550
550
|
};
|
|
551
551
|
this.defaultConfirmationPopupConfig = {
|
|
552
552
|
showCancelButton: true,
|
|
553
|
-
title:
|
|
553
|
+
title: "Are you sure ?",
|
|
554
554
|
showConfirmButton: true,
|
|
555
|
-
cancelButtonLabel:
|
|
556
|
-
confirmButtonLabel:
|
|
555
|
+
cancelButtonLabel: "No",
|
|
556
|
+
confirmButtonLabel: "Yes",
|
|
557
557
|
showCloseIcon: true,
|
|
558
|
-
backdrop:
|
|
559
|
-
windowClass:
|
|
560
|
-
size:
|
|
558
|
+
backdrop: "static",
|
|
559
|
+
windowClass: "",
|
|
560
|
+
size: "sm",
|
|
561
561
|
keyboard: false,
|
|
562
562
|
};
|
|
563
563
|
this.defaultWeekCalendarConfig = {
|
|
564
564
|
firstDayOfWeek: 1,
|
|
565
565
|
showWeekNumbers: true,
|
|
566
|
-
dateFormatToDisplay:
|
|
567
|
-
dateFormatForRequest:
|
|
566
|
+
dateFormatToDisplay: "d MMM y",
|
|
567
|
+
dateFormatForRequest: "y-MM-dd",
|
|
568
568
|
maxWeeksToShowWithRemainingCount: 2,
|
|
569
569
|
numberOfMonthsToEnableInPast: 1,
|
|
570
570
|
selectMultipleWeeks: false,
|
|
571
|
-
customClass:
|
|
571
|
+
customClass: "",
|
|
572
572
|
emitMultipleWeekObjects: true,
|
|
573
573
|
maxWeeksToSelect: 0,
|
|
574
574
|
showAsDropdown: true,
|
|
@@ -580,7 +580,7 @@ class AnnaGlobalConfigService {
|
|
|
580
580
|
lastColumnKeys: [],
|
|
581
581
|
};
|
|
582
582
|
this.defaultGtGeneralConfig = {
|
|
583
|
-
component:
|
|
583
|
+
component: "",
|
|
584
584
|
totalRow: false,
|
|
585
585
|
isHeaderChecked: false,
|
|
586
586
|
disableHeaderCheckbox: false,
|
|
@@ -588,13 +588,13 @@ class AnnaGlobalConfigService {
|
|
|
588
588
|
isGrouped: false,
|
|
589
589
|
showAllColumnFilter: true,
|
|
590
590
|
bufferSize: 20,
|
|
591
|
-
page:
|
|
591
|
+
page: "",
|
|
592
592
|
};
|
|
593
593
|
this.defaultSingleSelectConfig = {
|
|
594
594
|
showSearchBar: false,
|
|
595
|
-
placeholder:
|
|
596
|
-
classes:
|
|
597
|
-
position:
|
|
595
|
+
placeholder: "Select",
|
|
596
|
+
classes: "",
|
|
597
|
+
position: "BOTTOM",
|
|
598
598
|
maxHeightOfList: 200,
|
|
599
599
|
};
|
|
600
600
|
this.defaultMultiSelectConfig = {
|
|
@@ -603,12 +603,12 @@ class AnnaGlobalConfigService {
|
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGlobalConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
606
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGlobalConfigService, providedIn:
|
|
606
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGlobalConfigService, providedIn: "root" }); }
|
|
607
607
|
}
|
|
608
608
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGlobalConfigService, decorators: [{
|
|
609
609
|
type: Injectable,
|
|
610
610
|
args: [{
|
|
611
|
-
providedIn:
|
|
611
|
+
providedIn: "root",
|
|
612
612
|
}]
|
|
613
613
|
}], ctorParameters: function () { return []; } });
|
|
614
614
|
|
|
@@ -646,7 +646,7 @@ class AnnaWeekCalendarComponent {
|
|
|
646
646
|
this.hoveredDate = null;
|
|
647
647
|
this.toDate = null;
|
|
648
648
|
this.weekNumbers = [];
|
|
649
|
-
this.dateToDisplay =
|
|
649
|
+
this.dateToDisplay = "";
|
|
650
650
|
this.multiSelectDropdownOpen = false;
|
|
651
651
|
this.calendarMap = new Map();
|
|
652
652
|
this.disabledDates = [];
|
|
@@ -654,16 +654,16 @@ class AnnaWeekCalendarComponent {
|
|
|
654
654
|
this.calendarToggled = new EventEmitter();
|
|
655
655
|
}
|
|
656
656
|
getWeekNumber(week, firstDayOfWeek) {
|
|
657
|
-
const weekStartDate = dayjs(convertNgbDateToMoment(week[0]),
|
|
657
|
+
const weekStartDate = dayjs(convertNgbDateToMoment(week[0]), "MM/DD/YYYY");
|
|
658
658
|
const weekYear = weekStartDate.year();
|
|
659
|
-
const yearStartDate = dayjs(`01/01/${weekYear}`,
|
|
659
|
+
const yearStartDate = dayjs(`01/01/${weekYear}`, "MM/DD/YYYY");
|
|
660
660
|
const weekDay = yearStartDate.day();
|
|
661
|
-
const noOfDays = weekStartDate.diff(yearStartDate,
|
|
661
|
+
const noOfDays = weekStartDate.diff(yearStartDate, "d") + 1;
|
|
662
662
|
function convertNgbDateToMoment(ngbDate) {
|
|
663
|
-
let formatType =
|
|
663
|
+
let formatType = "MM/DD/YYYY";
|
|
664
664
|
let converted = null;
|
|
665
665
|
if (ngbDate && ngbDate.month && ngbDate.day && ngbDate.year) {
|
|
666
|
-
converted = ngbDate.month +
|
|
666
|
+
converted = ngbDate.month + "/" + ngbDate.day + "/" + ngbDate.year;
|
|
667
667
|
converted = dayjs(converted).format(formatType);
|
|
668
668
|
}
|
|
669
669
|
return converted;
|
|
@@ -695,16 +695,16 @@ class AnnaWeekCalendarComponent {
|
|
|
695
695
|
this.weekObjects = [];
|
|
696
696
|
this.fromDate = this.calendar.getToday();
|
|
697
697
|
this.today = this.calendar.getToday();
|
|
698
|
-
let backDatedPeriod = JSON.parse(localStorage.getItem(
|
|
698
|
+
let backDatedPeriod = JSON.parse(localStorage.getItem("userDetails") || "{}").locking_period_days;
|
|
699
699
|
if (backDatedPeriod < 0) {
|
|
700
|
-
let date = this.calendar.getPrev(this.calendar.getToday(),
|
|
700
|
+
let date = this.calendar.getPrev(this.calendar.getToday(), "d", Math.abs(backDatedPeriod));
|
|
701
701
|
this.today = NgbDate.from(date);
|
|
702
702
|
this.fromDate = NgbDate.from(date);
|
|
703
703
|
}
|
|
704
704
|
// Disable months before numberOfMonthsToEnable
|
|
705
705
|
this.datePickerConfig.markDisabled = (date) => {
|
|
706
|
-
let previousMonth = this.calendar.getPrev(this.today,
|
|
707
|
-
let previousDay = this.calendar.getPrev(previousMonth,
|
|
706
|
+
let previousMonth = this.calendar.getPrev(this.today, "m", this.config.numberOfMonthsToEnableInPast);
|
|
707
|
+
let previousDay = this.calendar.getPrev(previousMonth, "d", 1);
|
|
708
708
|
return !NgbDate.from(previousDay).before(date);
|
|
709
709
|
};
|
|
710
710
|
this.formatter = this.formattedDates();
|
|
@@ -741,15 +741,15 @@ class AnnaWeekCalendarComponent {
|
|
|
741
741
|
this.toDate = this.constructEndDate(dateObject)(constructDate);
|
|
742
742
|
}
|
|
743
743
|
if (this.disabledDates.length > 0) {
|
|
744
|
-
let dayjsStartDate = dayjs(this.annaDateTimeFormatService.convertNgbDateToMoment(this.fromDate),
|
|
745
|
-
let dayjsEndDate = dayjs(this.annaDateTimeFormatService.convertNgbDateToMoment(this.toDate),
|
|
744
|
+
let dayjsStartDate = dayjs(this.annaDateTimeFormatService.convertNgbDateToMoment(this.fromDate), "MM/DD/YYYY");
|
|
745
|
+
let dayjsEndDate = dayjs(this.annaDateTimeFormatService.convertNgbDateToMoment(this.toDate), "MM/DD/YYYY");
|
|
746
746
|
let ngbDate;
|
|
747
747
|
while (!dayjsStartDate.isSame(dayjsEndDate)) {
|
|
748
|
-
ngbDate = this.annaDateTimeFormatService.convertToNgbDate(dayjsStartDate,
|
|
748
|
+
ngbDate = this.annaDateTimeFormatService.convertToNgbDate(dayjsStartDate, "MM/DD/YYYY");
|
|
749
749
|
if (this.checkIfDateIsDisabled(ngbDate)) {
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
|
-
dayjsStartDate.add(1,
|
|
752
|
+
dayjsStartDate.add(1, "d");
|
|
753
753
|
}
|
|
754
754
|
let newDateObject = new Date(ngbDate.year, ngbDate.month - 1, ngbDate.day - 1);
|
|
755
755
|
let constructDate = this.buildDate(newDateObject);
|
|
@@ -768,7 +768,7 @@ class AnnaWeekCalendarComponent {
|
|
|
768
768
|
let endDate = NgbDate.from(this.toDate);
|
|
769
769
|
week.push(startDate);
|
|
770
770
|
while (endDate != null && !startDate.equals(endDate)) {
|
|
771
|
-
let date = this.calendar.getNext(startDate,
|
|
771
|
+
let date = this.calendar.getNext(startDate, "d", 1);
|
|
772
772
|
startDate = date;
|
|
773
773
|
week.push(date);
|
|
774
774
|
// Collect all days in week to calculate the week number
|
|
@@ -785,7 +785,7 @@ class AnnaWeekCalendarComponent {
|
|
|
785
785
|
this.weekObjects = [];
|
|
786
786
|
if (dates.length > 0) {
|
|
787
787
|
for (let date of dates) {
|
|
788
|
-
this.weekNumbers.push(
|
|
788
|
+
this.weekNumbers.push(" Week " + this.calendar.getWeekNumber(date, this.config.firstDayOfWeek));
|
|
789
789
|
let dates = this.formatter(date[0], date[6]);
|
|
790
790
|
let dateObjects = { startDate: dates.formattedStartDate, endDate: dates.formattedEndDate };
|
|
791
791
|
this.weekObjects.push(dateObjects);
|
|
@@ -798,7 +798,7 @@ class AnnaWeekCalendarComponent {
|
|
|
798
798
|
this.toDate = dates[dates.length - 1][6];
|
|
799
799
|
}
|
|
800
800
|
formattedDates() {
|
|
801
|
-
let pipe = new DatePipe(
|
|
801
|
+
let pipe = new DatePipe("en-US");
|
|
802
802
|
let thisObj = this;
|
|
803
803
|
return function (fromDate, toDate) {
|
|
804
804
|
let fromDateObject = new Date(fromDate.year, fromDate.month - 1, fromDate.day);
|
|
@@ -807,7 +807,7 @@ class AnnaWeekCalendarComponent {
|
|
|
807
807
|
thisObj.formattedEndDate = pipe.transform(toDateObject, thisObj.config.dateFormatForRequest);
|
|
808
808
|
thisObj.dateToDisplay =
|
|
809
809
|
pipe.transform(fromDateObject, thisObj.config.dateFormatToDisplay) +
|
|
810
|
-
|
|
810
|
+
" to " +
|
|
811
811
|
pipe.transform(toDateObject, thisObj.config.dateFormatToDisplay);
|
|
812
812
|
return thisObj;
|
|
813
813
|
};
|
|
@@ -826,7 +826,7 @@ class AnnaWeekCalendarComponent {
|
|
|
826
826
|
}
|
|
827
827
|
let remainingWeeks = this.weekNumbers.length;
|
|
828
828
|
this.weekNumbers = [];
|
|
829
|
-
this.weekNumbers.push(weekDisplay +
|
|
829
|
+
this.weekNumbers.push(weekDisplay + " +" + remainingWeeks);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
}
|
|
@@ -876,23 +876,23 @@ class AnnaWeekCalendarComponent {
|
|
|
876
876
|
}
|
|
877
877
|
previousWeek() {
|
|
878
878
|
if (this.fromDate) {
|
|
879
|
-
this.toDate = this.calendar.getPrev(this.fromDate,
|
|
880
|
-
this.fromDate = this.calendar.getPrev(this.fromDate,
|
|
879
|
+
this.toDate = this.calendar.getPrev(this.fromDate, "d", 1);
|
|
880
|
+
this.fromDate = this.calendar.getPrev(this.fromDate, "d", this.calendar.getDaysPerWeek());
|
|
881
881
|
}
|
|
882
882
|
this.weekNumberGenerator();
|
|
883
883
|
this.applyChanges();
|
|
884
884
|
}
|
|
885
885
|
nextWeek() {
|
|
886
886
|
if (this.fromDate) {
|
|
887
|
-
this.fromDate = this.calendar.getNext(this.fromDate,
|
|
888
|
-
this.toDate = this.calendar.getNext(this.fromDate,
|
|
887
|
+
this.fromDate = this.calendar.getNext(this.fromDate, "d", this.calendar.getDaysPerWeek());
|
|
888
|
+
this.toDate = this.calendar.getNext(this.fromDate, "d", this.calendar.getDaysPerWeek() - 1);
|
|
889
889
|
}
|
|
890
890
|
this.weekNumberGenerator();
|
|
891
891
|
this.applyChanges();
|
|
892
892
|
}
|
|
893
893
|
setCalendarMap() {
|
|
894
894
|
let dateObj = { fromDate: this.fromDate, toDate: this.toDate };
|
|
895
|
-
this.calendarMap.set(
|
|
895
|
+
this.calendarMap.set("oldDates", dateObj);
|
|
896
896
|
}
|
|
897
897
|
applyChanges() {
|
|
898
898
|
this.multiSelectDropdownOpen = false;
|
|
@@ -925,8 +925,8 @@ class AnnaWeekCalendarComponent {
|
|
|
925
925
|
}
|
|
926
926
|
revertDates() {
|
|
927
927
|
this.multiSelectDropdownOpen = false;
|
|
928
|
-
if (this.calendarMap.get(
|
|
929
|
-
let dateObj = this.calendarMap.get(
|
|
928
|
+
if (this.calendarMap.get("oldDates")) {
|
|
929
|
+
let dateObj = this.calendarMap.get("oldDates");
|
|
930
930
|
this.fromDate = dateObj.fromDate;
|
|
931
931
|
this.toDate = dateObj.toDate;
|
|
932
932
|
this.weekNumberGenerator();
|
|
@@ -945,47 +945,47 @@ class AnnaWeekCalendarComponent {
|
|
|
945
945
|
}
|
|
946
946
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaWeekCalendarComponent, decorators: [{
|
|
947
947
|
type: Component,
|
|
948
|
-
args: [{ selector:
|
|
948
|
+
args: [{ selector: "anna-core-week-calendar-filter-lib", standalone: true, imports: [NgIf, FormsModule, NgbInputDatepicker, NgClass, NgbDatepicker], template: "<form\r\n class=\"form-inline\"\r\n *ngIf=\"config.showAsDropdown\"\r\n>\r\n <div class=\"form-group hidden\">\r\n <div class=\"input-group\">\r\n <input\r\n name=\"datepicker\"\r\n class=\"form-control\"\r\n ngbDatepicker\r\n #datepicker=\"ngbDatepicker\"\r\n [autoClose]=\"false\"\r\n (dateSelect)=\"selectWeek($event)\"\r\n (closed)=\"isFocused(false)\"\r\n [displayMonths]=\"1\"\r\n [dayTemplate]=\"t\"\r\n [startDate]=\"fromDate!\"\r\n [firstDayOfWeek]=\"config.firstDayOfWeek\"\r\n [showWeekNumbers]=\"config.showWeekNumbers\"\r\n tabindex=\"-1\"\r\n style=\"display: none\"\r\n [footerTemplate]=\"footerTemplate\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <!--Single week select-->\r\n <div *ngIf=\"!config.selectMultipleWeeks\">\r\n <span style=\"position: relative; left: 30px; font-size: 12px\"> {{ weekNumbers }} </span>\r\n <div class=\"form-group\">\r\n <div class=\"input-group\">\r\n <div class=\"single-week\">\r\n <div class=\"left\">\r\n <span\r\n class=\"material-icons next-round-btn\"\r\n (click)=\"previousWeek()\"\r\n >\r\n navigate_next\r\n </span>\r\n </div>\r\n <input\r\n #dpFromDate\r\n class=\"form-control\"\r\n placeholder=\"Select Weeks\"\r\n [ngClass]=\"[config.customClass == '' ? '' : config.customClass]\"\r\n name=\"dpFromDate\"\r\n [value]=\"dateToDisplay\"\r\n [readonly]=\"true\"\r\n (click)=\"isFocused(true); isDropdownOpenedForCalendar(datepicker)\"\r\n />\r\n <i\r\n class=\"mdi mdi-menu-down\"\r\n *ngIf=\"!datepicker.isOpen()\"\r\n (click)=\"datepicker.open()\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-up\"\r\n *ngIf=\"datepicker.isOpen()\"\r\n (click)=\"isDropdownOpenedForCalendar(datepicker)\"\r\n ></i>\r\n <div class=\"right\">\r\n <span\r\n class=\"material-icons round-btn\"\r\n (click)=\"nextWeek()\"\r\n >\r\n navigate_next\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!--Multiple week select-->\r\n <div\r\n class=\"form-group\"\r\n *ngIf=\"config.selectMultipleWeeks\"\r\n >\r\n <div class=\"input-group\">\r\n <div class=\"multiple-weeks\">\r\n <input\r\n #dpFromDate\r\n class=\"form-control\"\r\n placeholder=\"Select Weeks\"\r\n [ngClass]=\"[config.customClass == '' ? '' : config.customClass]\"\r\n name=\"dpFromDate\"\r\n [readonly]=\"true\"\r\n [value]=\"weekNumbers\"\r\n (click)=\"isFocused(true); isDropdownOpenedForCalendar(datepicker)\"\r\n />\r\n <i\r\n *ngIf=\"!multiSelectDropdownOpen\"\r\n class=\"mdi mdi-menu-down multiselect-input-arrow\"\r\n ></i>\r\n <i\r\n *ngIf=\"multiSelectDropdownOpen\"\r\n class=\"mdi mdi-menu-up multiselect-input-arrow\"\r\n ></i>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n\r\n<ngb-datepicker\r\n #weekPicker\r\n *ngIf=\"!config.showAsDropdown\"\r\n [displayMonths]=\"1\"\r\n [startDate]=\"fromDate!\"\r\n [firstDayOfWeek]=\"config.firstDayOfWeek\"\r\n [showWeekNumbers]=\"config.showWeekNumbers\"\r\n [dayTemplate]=\"t\"\r\n [maxDate]=\"maxDate\"\r\n [minDate]=\"minDate\"\r\n (dateSelect)=\"selectWeek($event)\"\r\n [markDisabled]=\"disabledFunc\"\r\n>\r\n</ngb-datepicker>\r\n\r\n<ng-template #footerTemplate>\r\n <hr class=\"my-0\" />\r\n <button\r\n class=\"btn btn-primary btn-sm m-2 float-right\"\r\n (click)=\"applyChanges(); closeDatepicker(datepicker)\"\r\n style=\"background-color: #268bff; color: #ffffff\"\r\n >\r\n Apply\r\n </button>\r\n <button\r\n class=\"btn btn-primary btn-sm m-2 float-right\"\r\n (click)=\"revertDates(); closeDatepicker(datepicker)\"\r\n style=\"background-color: rgba(38, 139, 255, 0.12); color: #268bff\"\r\n >\r\n Cancel\r\n </button>\r\n</ng-template>\r\n\r\n<ng-template\r\n #t\r\n let-date\r\n let-focused=\"focused\"\r\n let-disabled=\"disabled\"\r\n>\r\n <span\r\n class=\"custom-day\"\r\n [class.focused]=\"focused\"\r\n [class.range]=\"isRange(date)\"\r\n [class.faded]=\"isHovered(date) || isInside(date)\"\r\n [class.disabled]=\"disabled\"\r\n (mouseenter)=\"hoveredDate = date\"\r\n (mouseleave)=\"hoveredDate = null\"\r\n >\r\n {{ date.day }}\r\n </span>\r\n</ng-template>\r\n\r\n<!--\r\n\r\n<hr>\r\n\r\n<pre>From: {{ fromDate | json }} </pre>\r\n<pre>To: {{ toDate | json }} </pre>\r\n<pre>weekNumbers: {{ weekNumbers | json }} </pre>\r\n\r\n-->\r\n", styles: [":host ::ng-deep .ngb-dp-arrow button:disabled{color:#4a4a4a;background-color:#fff;opacity:.25;cursor:not-allowed}:host ::ng-deep .ngb-dp-arrow button:disabled .ngb-dp-navigation-chevron{color:#4a4a4a}:host ::ng-deep .ngb-dp-arrow button .ngb-dp-navigation-chevron{color:#000}:host::ng-deep .right{width:unset!important;background-color:#fff!important}:host::ng-deep .ngb-dp-day,:host::ng-deep .ngb-dp-weekday{width:3rem!important;font-style:unset!important;color:#8bac2a;outline:none}:host::ng-deep .ngb-dp-day:first-child{border:1px solid black}:host::ng-deep .ngb-dp-day.disabled{color:#d4d4d4;cursor:not-allowed}:host::ng-deep .ngb-dp-showweek:before{content:\"Weeks\";margin-right:5px}:host::ng-deep .ngb-dp-week-number{font-style:unset!important;width:4rem!important;margin-right:5px;font-weight:700;color:#000!important;border-right:1px solid rgba(0,0,0,.125)}:host::ng-deep .ngb-dp-week-number:before{font-style:unset!important;content:\"Week \"}:host::ng-deep .ngb-dp-weekday.ngb-dp-showweek{margin-right:5px;width:4rem!important;border-right:1px solid rgba(0,0,0,.125)}:host::ng-deep .dropdown-menu{box-shadow:none}:host::ng-deep .dropdown-menu.show{top:15px!important}:host::ng-deep .bg-light{background-color:#fff!important}:host::ng-deep .ngb-dp-weekdays{border-top:1px solid rgba(0,0,0,.125)}:host::ng-deep .ngb-dp-arrow-btn:focus{box-shadow:none}.custom-day{text-align:center;padding:.185rem .25rem;display:inline-block;height:1.75rem;font-weight:700;color:#222b45;width:3rem!important}.custom-day.focused{background-color:#fff}.custom-day.faded{background-color:#0275d880!important}.custom-day.faded:focus{outline:none!important}.custom-day:hover{background-color:#268bff1f!important;color:#4a4a4a!important}.custom-day:focus{outline:none!important}.custom-day.range{background-color:#268bff1f!important;color:#4a4a4a!important}.custom-day.range:focus{outline:none!important}.custom-day.disabled{color:#d3d3d3}.input-group>.single-week,.input-group .multiple-weeks{display:inline-flex!important}.input-group>.single-week>.form-control,.input-group .multiple-weeks>.form-control{width:212px;border-radius:2px;border:solid 1px #b3b3b3;height:1.875rem;cursor:pointer}.input-group>.form-control{width:212px;border-radius:2px;border:solid 1px #b3b3b3;height:1.875rem;cursor:pointer}.form-control[readonly]{background-color:#fff!important}.next-round-btn{transform:rotate(180deg);margin-left:.125rem;line-height:1.3;border-radius:50%;cursor:pointer}.round-btn{line-height:1.3;border-radius:50%;cursor:pointer;margin-left:.25rem}:host::ng-deep select.custom-select{background:none;appearance:auto}.left,.right{width:1.875rem!important;height:1.875rem;background:#d8d8d8!important;border-radius:50%}.left{margin-right:.3125rem}.right{margin-left:.3125rem}:host::ng-deep .right .ngb-dp-navigation-chevron,:host::ng-deep .ngb-dp-navigation-chevron{color:#268bff}:host::ng-deep .ngb-dp-arrow-btn:focus{outline-width:0px}.custom-day.faded{background-color:#268bff33!important;color:#000!important;font-weight:600}.custom-day{text-align:center;padding:.185rem .25rem;color:#000;display:inline-block;line-height:1.9;height:2rem;width:2rem}.custom-day.focused{background-color:#e6e6e6}.custom-day.range{background-color:#268bff!important;color:#fff!important;font-weight:600}.custom-day:hover{background-color:#d9e1e6;border-radius:.25rem;color:#bdbdbd}:host::ng-deep div.ngb-dp-weekday{color:#8bac2a;font-family:Roboto;font-size:.8125rem;font-weight:700;font-stretch:normal;font-style:normal;line-height:2.6;letter-spacing:normal}.mdi-menu-up,.mdi-menu-down{position:absolute;right:2.438rem;top:1px;font-size:1.375rem;cursor:pointer}.multiselect-input-arrow{position:absolute;right:.75rem;top:3px;font-size:1.25rem;cursor:pointer;pointer-events:none}button:focus{outline:none;box-shadow:none;border-color:transparent}::ng-deep .ngb-dp-header,::ng-deep .ngb-dp-week{background:#fff!important}\n"] }]
|
|
949
949
|
}], ctorParameters: function () { return [{ type: i1.NgbCalendar }, { type: i1.NgbDatepickerConfig }, { type: AnnaDateTimeFormatService }, { type: AnnaGlobalConfigService }]; }, propDecorators: { selectedFromDate: [{
|
|
950
950
|
type: Input,
|
|
951
|
-
args: [
|
|
951
|
+
args: ["from-date"]
|
|
952
952
|
}], selectedEndDate: [{
|
|
953
953
|
type: Input,
|
|
954
|
-
args: [
|
|
954
|
+
args: ["to-date"]
|
|
955
955
|
}], disabledDates: [{
|
|
956
956
|
type: Input,
|
|
957
|
-
args: [
|
|
957
|
+
args: ["disabled-dates"]
|
|
958
958
|
}], maxDate: [{
|
|
959
959
|
type: Input
|
|
960
960
|
}], minDate: [{
|
|
961
961
|
type: Input
|
|
962
962
|
}], config: [{
|
|
963
963
|
type: Input,
|
|
964
|
-
args: [
|
|
964
|
+
args: ["week-calendar-config"]
|
|
965
965
|
}], applyWeekCalendarChanges: [{
|
|
966
966
|
type: Output,
|
|
967
|
-
args: [
|
|
967
|
+
args: ["apply"]
|
|
968
968
|
}], calendarToggled: [{
|
|
969
969
|
type: Output,
|
|
970
|
-
args: [
|
|
970
|
+
args: ["toggle-calendar"]
|
|
971
971
|
}] } });
|
|
972
972
|
|
|
973
973
|
// Angular import statements
|
|
974
974
|
class AnnaCalendarFilterComponent {
|
|
975
975
|
constructor(annaTimeService) {
|
|
976
976
|
this.annaTimeService = annaTimeService;
|
|
977
|
-
this.autoClose =
|
|
977
|
+
this.autoClose = "outside";
|
|
978
978
|
this.showLabel = true;
|
|
979
|
-
this.dateFormat =
|
|
980
|
-
this.placeholder =
|
|
979
|
+
this.dateFormat = "MM/DD/YYYY";
|
|
980
|
+
this.placeholder = "MM/DD/YYYY";
|
|
981
981
|
this.disabled = false;
|
|
982
982
|
this.selectedDate = new EventEmitter();
|
|
983
983
|
this.showFooterTemplate = false;
|
|
984
|
-
this.placement = [
|
|
984
|
+
this.placement = ["top-start", "left", "bottom-start", "auto"];
|
|
985
985
|
this.apply = new EventEmitter();
|
|
986
986
|
this.cancel = new EventEmitter();
|
|
987
987
|
this.disableApplyBtn = false;
|
|
988
|
-
this.dateToBeShownInInput =
|
|
988
|
+
this.dateToBeShownInInput = "";
|
|
989
989
|
this.disableFunction = (date) => {
|
|
990
990
|
return false;
|
|
991
991
|
};
|
|
@@ -1028,7 +1028,7 @@ class AnnaCalendarFilterComponent {
|
|
|
1028
1028
|
return true;
|
|
1029
1029
|
}
|
|
1030
1030
|
else {
|
|
1031
|
-
dayJsStartDate = dayJsStartDate.add(1,
|
|
1031
|
+
dayJsStartDate = dayJsStartDate.add(1, "day");
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
@@ -1085,7 +1085,7 @@ class AnnaCalendarFilterComponent {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaCalendarFilterComponent, decorators: [{
|
|
1087
1087
|
type: Component,
|
|
1088
|
-
args: [{ selector: 'anna-core-calendar-filter-lib', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, FormsModule, NgbInputDatepicker, NgClass, TitleCasePipe], template: "<!-- container=\"body\"\r\ndatepickerClass = \"calendar-filter\" -->\r\n\r\n<p\r\n class=\"calendar-label\"\r\n *ngIf=\"showLabel\"\r\n>\r\n {{ label | titlecase }}\r\n</p>\r\n<form>\r\n <div\r\n class=\"padding-class\"\r\n style=\"padding: 0 12px\"\r\n >\r\n <div class=\"dp-hidden position-absolute\">\r\n <div class=\"input-group\">\r\n <input\r\n name=\"datepicker\"\r\n class=\"form-control\"\r\n ngbDatepicker\r\n #datepicker=\"ngbDatepicker\"\r\n (dateSelect)=\"onDateSelection($event)\"\r\n [displayMonths]=\"1\"\r\n [dayTemplate]=\"t\"\r\n [maxDate]=\"maxDate\"\r\n [minDate]=\"minDate\"\r\n [autoClose]=\"autoClose\"\r\n [startDate]=\"fromDate\"\r\n [markDisabled]=\"disableFunction\"\r\n [footerTemplate]=\"footerTemplate\"\r\n navigation=\"select\"\r\n (closed)=\"datepickerClosed()\"\r\n [placement]=\"placement\"\r\n />\r\n <ng-template\r\n #t\r\n let-date\r\n let-focused=\"focused\"\r\n >\r\n <span\r\n class=\"custom-day\"\r\n [class.focused]=\"focused\"\r\n [class.range]=\"isRange(date)\"\r\n [class.faded]=\"isHovered(date) || isInside(date)\"\r\n (mouseenter)=\"hoveredDate = date\"\r\n (mouseleave)=\"hoveredDate = null\"\r\n >\r\n {{ date.day }}\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"input-group\">\r\n <input\r\n #dpFromDate\r\n id=\"datepicker-input\"\r\n class=\"form-control\"\r\n [placeholder]=\"placeholder\"\r\n readonly\r\n name=\"dpFromDate\"\r\n [value]=\"dateToBeShownInInput\"\r\n />\r\n <button\r\n class=\"icon-container\"\r\n (click)=\"datepicker.toggle()\"\r\n type=\"button\"\r\n [disabled]=\"disabled\"\r\n >\r\n <i\r\n class=\"mdi mdi-calendar-range\"\r\n *ngIf=\"!datepicker.isOpen()\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-check\"\r\n *ngIf=\"datepicker.isOpen()\"\r\n ></i>\r\n </button>\r\n </div>\r\n </div>\r\n</form>\r\n\r\n<ng-template #footerTemplate>\r\n <div\r\n class=\"buttons-container\"\r\n *ngIf=\"showFooterTemplate\"\r\n >\r\n <button\r\n class=\"button\"\r\n (click)=\"cancelSelection(); datepicker.close()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableApplyBtn }\"\r\n [disabled]=\"disableApplyBtn\"\r\n (click)=\"applySelection(); datepicker.close()\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep .ngb-dp-arrow button:disabled{color:#4a4a4a;background-color:#fff;opacity:.25;cursor:not-allowed}:host ::ng-deep .ngb-dp-arrow button:disabled .ngb-dp-navigation-chevron{color:#4a4a4a}:host ::ng-deep .ngb-dp-arrow button .ngb-dp-navigation-chevron{color:#000}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}:host::ng-deep div.ngb-dp-arrow{width:2.4375rem!important;background-color:#fff!important}:host::ng-deep div.ngb-dp-weekday{color:#8bac2a;border-top:1px solid rgba(183,183,183,.6);margin-top:.5rem;font-family:Roboto;font-size:.8125rem;font-weight:700;font-stretch:normal;font-style:normal;line-height:2.6;letter-spacing:normal}:host::ng-deep div.ngb-dp-week{border-radius:0;background-color:#fff!important}:host::ng-deep div.ngb-dp-header{padding-top:8px!important;background-color:#fff!important}:host::ng-deep div.bg-primary{background-color:#d9e1e6!important;border-radius:.25rem}:host::ng-deep .ngb-dp-arrow-btn:focus{outline-width:0px}:host::ng-deep .right .ngb-dp-navigation-chevron,:host::ng-deep .ngb-dp-navigation-chevron{color:#000}:host::ng-deep .custom-select{border:1px solid rgba(183,183,183,.6);box-shadow:none}:host::ng-deep .btn:focus{box-shadow:none}.custom-day{text-align:center;padding:.185rem .25rem;color:#000;display:inline-block;height:2rem;width:2.2rem}.custom-day.range{background-color:#268bff!important;color:#fff!important}.custom-day:hover{background-color:#d9e1e6;border-radius:.25rem;color:#bdbdbd}:host::ng-deep div.ngb-dp-day.disabled{cursor:not-allowed}.custom-day.faded{background-color:#268bff33!important;color:#000!important;font-weight:600}:host::ng-deep div.ngb-dp-week div.ngb-dp-day.disabled .custom-day{color:#bdbdbd;opacity:50%}.buttons{display:flex;margin:0px auto .4375rem;margin-bottom:0;justify-content:center}.buttons button.btn:disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.buttons .btn{display:inline-block;margin:8px 4px 0 8px;padding:5px 16px;text-align:center;outline:none;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.buttons .btn:last-of-type{background-color:#268bff;color:#fff}:host::ng-deep .ngb-dp-day{font-weight:700}input#datepicker-input,button.icon-container{background:#fff;border:none}input#datepicker-input{color:#202b47;cursor:default;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal}input#datepicker-input:focus{box-shadow:none}div.input-group{border:1px solid #b7b7b7;border-radius:2px}.calendar-label{font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#666;margin-top:7px;margin-bottom:0;text-align:left;margin-left:12px}.dp-hidden .input-group{border-bottom:none}.dp-hidden .input-group .form-control{height:29px}:host::ng-deep ngb-datepicker-navigation-select>.form-select:focus{box-shadow:none!important;border:1px solid #c2cfd6!important}:host::ng-deep .ngb-dp-day,:host::ng-deep .ngb-dp-weekday,:host::ng-deep .ngb-dp-week-number{width:2.2rem!important}:host ::ng-deep .input-group ngb-datepicker.dropdown-menu.show{margin-left:-1px!important}\n"] }]
|
|
1088
|
+
args: [{ selector: "anna-core-calendar-filter-lib", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, FormsModule, NgbInputDatepicker, NgClass, TitleCasePipe], template: "<!-- container=\"body\"\r\ndatepickerClass = \"calendar-filter\" -->\r\n\r\n<p\r\n class=\"calendar-label\"\r\n *ngIf=\"showLabel\"\r\n>\r\n {{ label | titlecase }}\r\n</p>\r\n<form>\r\n <div\r\n class=\"padding-class\"\r\n style=\"padding: 0 12px\"\r\n >\r\n <div class=\"dp-hidden position-absolute\">\r\n <div class=\"input-group\">\r\n <input\r\n name=\"datepicker\"\r\n class=\"form-control\"\r\n ngbDatepicker\r\n #datepicker=\"ngbDatepicker\"\r\n (dateSelect)=\"onDateSelection($event)\"\r\n [displayMonths]=\"1\"\r\n [dayTemplate]=\"t\"\r\n [maxDate]=\"maxDate\"\r\n [minDate]=\"minDate\"\r\n [autoClose]=\"autoClose\"\r\n [startDate]=\"fromDate\"\r\n [markDisabled]=\"disableFunction\"\r\n [footerTemplate]=\"footerTemplate\"\r\n navigation=\"select\"\r\n (closed)=\"datepickerClosed()\"\r\n [placement]=\"placement\"\r\n />\r\n <ng-template\r\n #t\r\n let-date\r\n let-focused=\"focused\"\r\n >\r\n <span\r\n class=\"custom-day\"\r\n [class.focused]=\"focused\"\r\n [class.range]=\"isRange(date)\"\r\n [class.faded]=\"isHovered(date) || isInside(date)\"\r\n (mouseenter)=\"hoveredDate = date\"\r\n (mouseleave)=\"hoveredDate = null\"\r\n >\r\n {{ date.day }}\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"input-group\">\r\n <input\r\n #dpFromDate\r\n id=\"datepicker-input\"\r\n class=\"form-control\"\r\n [placeholder]=\"placeholder\"\r\n readonly\r\n name=\"dpFromDate\"\r\n [value]=\"dateToBeShownInInput\"\r\n />\r\n <button\r\n class=\"icon-container\"\r\n (click)=\"datepicker.toggle()\"\r\n type=\"button\"\r\n [disabled]=\"disabled\"\r\n >\r\n <i\r\n class=\"mdi mdi-calendar-range\"\r\n *ngIf=\"!datepicker.isOpen()\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-check\"\r\n *ngIf=\"datepicker.isOpen()\"\r\n ></i>\r\n </button>\r\n </div>\r\n </div>\r\n</form>\r\n\r\n<ng-template #footerTemplate>\r\n <div\r\n class=\"buttons-container\"\r\n *ngIf=\"showFooterTemplate\"\r\n >\r\n <button\r\n class=\"button\"\r\n (click)=\"cancelSelection(); datepicker.close()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableApplyBtn }\"\r\n [disabled]=\"disableApplyBtn\"\r\n (click)=\"applySelection(); datepicker.close()\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep .ngb-dp-arrow button:disabled{color:#4a4a4a;background-color:#fff;opacity:.25;cursor:not-allowed}:host ::ng-deep .ngb-dp-arrow button:disabled .ngb-dp-navigation-chevron{color:#4a4a4a}:host ::ng-deep .ngb-dp-arrow button .ngb-dp-navigation-chevron{color:#000}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}:host::ng-deep div.ngb-dp-arrow{width:2.4375rem!important;background-color:#fff!important}:host::ng-deep div.ngb-dp-weekday{color:#8bac2a;border-top:1px solid rgba(183,183,183,.6);margin-top:.5rem;font-family:Roboto;font-size:.8125rem;font-weight:700;font-stretch:normal;font-style:normal;line-height:2.6;letter-spacing:normal}:host::ng-deep div.ngb-dp-week{border-radius:0;background-color:#fff!important}:host::ng-deep div.ngb-dp-header{padding-top:8px!important;background-color:#fff!important}:host::ng-deep div.bg-primary{background-color:#d9e1e6!important;border-radius:.25rem}:host::ng-deep .ngb-dp-arrow-btn:focus{outline-width:0px}:host::ng-deep .right .ngb-dp-navigation-chevron,:host::ng-deep .ngb-dp-navigation-chevron{color:#000}:host::ng-deep .custom-select{border:1px solid rgba(183,183,183,.6);box-shadow:none}:host::ng-deep .btn:focus{box-shadow:none}.custom-day{text-align:center;padding:.185rem .25rem;color:#000;display:inline-block;height:2rem;width:2.2rem}.custom-day.range{background-color:#268bff!important;color:#fff!important}.custom-day:hover{background-color:#d9e1e6;border-radius:.25rem;color:#bdbdbd}:host::ng-deep div.ngb-dp-day.disabled{cursor:not-allowed}.custom-day.faded{background-color:#268bff33!important;color:#000!important;font-weight:600}:host::ng-deep div.ngb-dp-week div.ngb-dp-day.disabled .custom-day{color:#bdbdbd;opacity:50%}.buttons{display:flex;margin:0px auto .4375rem;margin-bottom:0;justify-content:center}.buttons button.btn:disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.buttons .btn{display:inline-block;margin:8px 4px 0 8px;padding:5px 16px;text-align:center;outline:none;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.buttons .btn:last-of-type{background-color:#268bff;color:#fff}:host::ng-deep .ngb-dp-day{font-weight:700}input#datepicker-input,button.icon-container{background:#fff;border:none}input#datepicker-input{color:#202b47;cursor:default;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal}input#datepicker-input:focus{box-shadow:none}div.input-group{border:1px solid #b7b7b7;border-radius:2px}.calendar-label{font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#666;margin-top:7px;margin-bottom:0;text-align:left;margin-left:12px}.dp-hidden .input-group{border-bottom:none}.dp-hidden .input-group .form-control{height:29px}:host::ng-deep ngb-datepicker-navigation-select>.form-select:focus{box-shadow:none!important;border:1px solid #c2cfd6!important}:host::ng-deep .ngb-dp-day,:host::ng-deep .ngb-dp-weekday,:host::ng-deep .ngb-dp-week-number{width:2.2rem!important}:host ::ng-deep .input-group ngb-datepicker.dropdown-menu.show{margin-left:-1px!important}\n"] }]
|
|
1089
1089
|
}], ctorParameters: function () { return [{ type: AnnaDateTimeFormatService }]; }, propDecorators: { maxDate: [{
|
|
1090
1090
|
type: Input
|
|
1091
1091
|
}], autoClose: [{
|
|
@@ -1128,14 +1128,14 @@ class AnnaSortService {
|
|
|
1128
1128
|
this.annaDateTimeFormatService = annaDateTimeFormatService;
|
|
1129
1129
|
this.updateSortTypeSubject = new Subject();
|
|
1130
1130
|
this.dateSet = new Set([
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1131
|
+
"endDate",
|
|
1132
|
+
"startDate",
|
|
1133
|
+
"end_date",
|
|
1134
|
+
"start_date",
|
|
1135
|
+
"flightStartDate",
|
|
1136
|
+
"flightEndDate",
|
|
1137
|
+
"date",
|
|
1138
|
+
"GeneratedOn",
|
|
1139
1139
|
]);
|
|
1140
1140
|
}
|
|
1141
1141
|
sortDataForComponentOtherThanLurAndCsrPage(isAsc, data, key) {
|
|
@@ -1146,13 +1146,13 @@ class AnnaSortService {
|
|
|
1146
1146
|
return this.annaDateTimeFormatService.compareDate(a[key], b[key], isAsc);
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
|
-
else if (key ===
|
|
1149
|
+
else if (key === "AirDateAndTime" || key === "Date") {
|
|
1150
1150
|
data.sort((a, b) => {
|
|
1151
1151
|
let first, second;
|
|
1152
|
-
if (a[key] ==
|
|
1152
|
+
if (a[key] == "-") {
|
|
1153
1153
|
return 1;
|
|
1154
1154
|
}
|
|
1155
|
-
if (b[key] ==
|
|
1155
|
+
if (b[key] == "-") {
|
|
1156
1156
|
return -1;
|
|
1157
1157
|
}
|
|
1158
1158
|
else {
|
|
@@ -1163,7 +1163,7 @@ class AnnaSortService {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
|
-
else if (key ==
|
|
1166
|
+
else if (key == "startEndTime" || key == "TimeBand") {
|
|
1167
1167
|
data.sort((a, b) => {
|
|
1168
1168
|
if (isAsc) {
|
|
1169
1169
|
param1 = a[key][1];
|
|
@@ -1180,8 +1180,8 @@ class AnnaSortService {
|
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
1182
|
else {
|
|
1183
|
-
let dataWithoutEmptyOrHyphenValues = data.filter((n) => n[key] !=
|
|
1184
|
-
let rowsWithHyphenOrZeroValues = data.filter((n) => n[key] ==
|
|
1183
|
+
let dataWithoutEmptyOrHyphenValues = data.filter((n) => n[key] != "-");
|
|
1184
|
+
let rowsWithHyphenOrZeroValues = data.filter((n) => n[key] == "-");
|
|
1185
1185
|
dataWithoutEmptyOrHyphenValues.sort((a, b) => {
|
|
1186
1186
|
param1 = a[key];
|
|
1187
1187
|
param2 = b[key];
|
|
@@ -1199,16 +1199,16 @@ class AnnaSortService {
|
|
|
1199
1199
|
sortEnterEditLurAndCsrPage(isAsc, data, key) {
|
|
1200
1200
|
let param1;
|
|
1201
1201
|
let param2;
|
|
1202
|
-
if (key.includes(
|
|
1203
|
-
let keys = key.split(
|
|
1202
|
+
if (key.includes("_")) {
|
|
1203
|
+
let keys = key.split("_");
|
|
1204
1204
|
let weekNumber = keys[0];
|
|
1205
1205
|
let sortKey = keys[1];
|
|
1206
1206
|
if (keys.length > 2) {
|
|
1207
|
-
sortKey = keys[2] == true ?
|
|
1207
|
+
sortKey = keys[2] == true ? "BookedAurIncludingNoChargeSpots" : "BookedAurExcludingNoChargeSpots";
|
|
1208
1208
|
}
|
|
1209
1209
|
data.sort((a, b) => {
|
|
1210
|
-
let aInventoryCodeWeekWiseKey = Object.keys(a.WeekWiseInventoryCodeData).filter((key) => key.split(
|
|
1211
|
-
let bInventoryCodeWeekWiseKey = Object.keys(b.WeekWiseInventoryCodeData).filter((key) => key.split(
|
|
1210
|
+
let aInventoryCodeWeekWiseKey = Object.keys(a.WeekWiseInventoryCodeData).filter((key) => key.split("_")[1] == weekNumber);
|
|
1211
|
+
let bInventoryCodeWeekWiseKey = Object.keys(b.WeekWiseInventoryCodeData).filter((key) => key.split("_")[1] == weekNumber);
|
|
1212
1212
|
param1 = null;
|
|
1213
1213
|
param2 = null;
|
|
1214
1214
|
if (aInventoryCodeWeekWiseKey.length > 0) {
|
|
@@ -1223,7 +1223,7 @@ class AnnaSortService {
|
|
|
1223
1223
|
return 0;
|
|
1224
1224
|
});
|
|
1225
1225
|
}
|
|
1226
|
-
else if (key ==
|
|
1226
|
+
else if (key == "TimeBand") {
|
|
1227
1227
|
data.sort((a, b) => {
|
|
1228
1228
|
if (isAsc) {
|
|
1229
1229
|
param1 = a[key][1];
|
|
@@ -1253,12 +1253,12 @@ class AnnaSortService {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
checkIfSortingIsApplied(tableData, isLurAndCsrComponent) {
|
|
1255
1255
|
for (let [key, value] of this.columnSortState.entries()) {
|
|
1256
|
-
if (value ==
|
|
1256
|
+
if (value == "ASC") {
|
|
1257
1257
|
tableData = cloneDeep(isLurAndCsrComponent
|
|
1258
1258
|
? this.sortEnterEditLurAndCsrPage(true, tableData, key)
|
|
1259
1259
|
: this.sortDataForComponentOtherThanLurAndCsrPage(true, tableData, key));
|
|
1260
1260
|
}
|
|
1261
|
-
else if (value ==
|
|
1261
|
+
else if (value == "DESC") {
|
|
1262
1262
|
tableData = cloneDeep(isLurAndCsrComponent
|
|
1263
1263
|
? this.sortEnterEditLurAndCsrPage(false, tableData, key)
|
|
1264
1264
|
: this.sortDataForComponentOtherThanLurAndCsrPage(false, tableData, key));
|
|
@@ -1267,28 +1267,28 @@ class AnnaSortService {
|
|
|
1267
1267
|
return tableData;
|
|
1268
1268
|
}
|
|
1269
1269
|
applySorting(key, tempSortOrder, tableData, isLurAndCsrComponent) {
|
|
1270
|
-
if (tempSortOrder ==
|
|
1270
|
+
if (tempSortOrder == "ASC") {
|
|
1271
1271
|
tableData = cloneDeep(isLurAndCsrComponent
|
|
1272
1272
|
? this.sortEnterEditLurAndCsrPage(true, tableData, key)
|
|
1273
1273
|
: this.sortDataForComponentOtherThanLurAndCsrPage(true, tableData, key));
|
|
1274
1274
|
}
|
|
1275
|
-
else if (tempSortOrder ==
|
|
1275
|
+
else if (tempSortOrder == "DESC") {
|
|
1276
1276
|
tableData = cloneDeep(isLurAndCsrComponent
|
|
1277
1277
|
? this.sortEnterEditLurAndCsrPage(false, tableData, key)
|
|
1278
1278
|
: this.sortDataForComponentOtherThanLurAndCsrPage(false, tableData, key));
|
|
1279
1279
|
}
|
|
1280
|
-
else if (tempSortOrder ==
|
|
1280
|
+
else if (tempSortOrder == "DEFAULT") {
|
|
1281
1281
|
tableData = cloneDeep(this.noSortingAppliedData);
|
|
1282
1282
|
}
|
|
1283
1283
|
return tableData;
|
|
1284
1284
|
}
|
|
1285
1285
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaSortService, deps: [{ token: AnnaDateTimeFormatService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1286
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaSortService, providedIn:
|
|
1286
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaSortService, providedIn: "root" }); }
|
|
1287
1287
|
}
|
|
1288
1288
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaSortService, decorators: [{
|
|
1289
1289
|
type: Injectable,
|
|
1290
1290
|
args: [{
|
|
1291
|
-
providedIn:
|
|
1291
|
+
providedIn: "root",
|
|
1292
1292
|
}]
|
|
1293
1293
|
}], ctorParameters: function () { return [{ type: AnnaDateTimeFormatService }]; } });
|
|
1294
1294
|
|
|
@@ -1301,7 +1301,7 @@ var SortTypeEnum;
|
|
|
1301
1301
|
|
|
1302
1302
|
class TooltipModel {
|
|
1303
1303
|
constructor(obj, id) {
|
|
1304
|
-
this.label = obj != null ? obj.toString() :
|
|
1304
|
+
this.label = obj != null ? obj.toString() : "-";
|
|
1305
1305
|
this.value = obj;
|
|
1306
1306
|
this.isSelected = false;
|
|
1307
1307
|
this.id = id;
|
|
@@ -1338,53 +1338,53 @@ class AnnaFilterService {
|
|
|
1338
1338
|
this.tooltipSelectedMap = new Map();
|
|
1339
1339
|
this.appliedFiltersArray = [];
|
|
1340
1340
|
this.sliderCurrencySet = new Set([
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1341
|
+
"booked",
|
|
1342
|
+
"cpp",
|
|
1343
|
+
"cpm",
|
|
1344
|
+
"rcvPreempt",
|
|
1345
|
+
"osPreempt",
|
|
1346
|
+
"postedAdu",
|
|
1347
|
+
"scheduledAdu",
|
|
1348
|
+
"audienceDeficit",
|
|
1349
|
+
"Rate",
|
|
1350
|
+
"userADUs",
|
|
1351
|
+
"buyerChanges",
|
|
1352
|
+
"userChanges",
|
|
1353
|
+
"userMG",
|
|
1354
|
+
"udValue",
|
|
1355
|
+
"odValue",
|
|
1356
1356
|
]);
|
|
1357
1357
|
this.isFilterSortActive = {};
|
|
1358
1358
|
this.resetFilterSortActiveStatus = true;
|
|
1359
1359
|
this.percentTranslateFunction = (data) => {
|
|
1360
1360
|
if (Math.abs(data) >= 1000) {
|
|
1361
1361
|
let isNegVal = data < 0;
|
|
1362
|
-
const val = (Math.abs(data) / 1000).toFixed(1) +
|
|
1363
|
-
return isNegVal ?
|
|
1362
|
+
const val = (Math.abs(data) / 1000).toFixed(1) + "k%";
|
|
1363
|
+
return isNegVal ? "-" + val : val;
|
|
1364
1364
|
}
|
|
1365
1365
|
else {
|
|
1366
1366
|
let isNegVal = data < 0;
|
|
1367
1367
|
let isWholeNum = parseInt(data.toString()) == data;
|
|
1368
1368
|
let val = isWholeNum ? Math.abs(data).toString() : Math.abs(data).toFixed(1);
|
|
1369
|
-
return isNegVal ?
|
|
1369
|
+
return isNegVal ? "-" + val + "%" : val + "%";
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
1372
|
this.currencyTranslateFunction = (data) => {
|
|
1373
1373
|
if (Math.abs(data) >= 1000) {
|
|
1374
1374
|
let isNegVal = data < 0;
|
|
1375
|
-
const val =
|
|
1376
|
-
return isNegVal ?
|
|
1375
|
+
const val = "$" + (Math.abs(data) / 1000).toFixed(1) + "k";
|
|
1376
|
+
return isNegVal ? "-" + val : val;
|
|
1377
1377
|
}
|
|
1378
1378
|
else {
|
|
1379
1379
|
let isNegVal = data < 0;
|
|
1380
1380
|
let isWholeNum = parseInt(data.toString()) == data;
|
|
1381
1381
|
let val = isWholeNum ? Math.abs(data).toString() : Math.abs(data).toFixed(1);
|
|
1382
|
-
return isNegVal ?
|
|
1382
|
+
return isNegVal ? "-$" + val : "$" + val;
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
1385
1385
|
this.normalTranslateFunction = (data) => {
|
|
1386
1386
|
if (data >= 1000) {
|
|
1387
|
-
const val = (data / 1000).toFixed(1) +
|
|
1387
|
+
const val = (data / 1000).toFixed(1) + "k";
|
|
1388
1388
|
return val;
|
|
1389
1389
|
}
|
|
1390
1390
|
else if (data != Math.floor(data)) {
|
|
@@ -1396,161 +1396,161 @@ class AnnaFilterService {
|
|
|
1396
1396
|
dayjs.extend(isBetween);
|
|
1397
1397
|
dayjs.extend(customParseFormat);
|
|
1398
1398
|
const sliderArr = [
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1399
|
+
"rcvPreempt",
|
|
1400
|
+
"osPreempt",
|
|
1401
|
+
"rcvUnderDly",
|
|
1402
|
+
"postedAudPercent",
|
|
1403
|
+
"booked",
|
|
1404
|
+
"spots",
|
|
1405
|
+
"grp",
|
|
1406
|
+
"cpp",
|
|
1407
|
+
"imps",
|
|
1408
|
+
"cpm",
|
|
1409
|
+
"osUnderDly",
|
|
1410
|
+
"totalWeeks",
|
|
1411
|
+
"WeekNumber",
|
|
1412
|
+
"Rate",
|
|
1413
|
+
"OrderedRatingsOrImpressions",
|
|
1414
|
+
"PostedRatingsOrImpressions",
|
|
1415
1415
|
,
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1416
|
+
"postedAudPercent",
|
|
1417
|
+
"postedAdu",
|
|
1418
|
+
"scheduledAdu",
|
|
1419
|
+
"audienceDeficit",
|
|
1420
|
+
"offeredMGs",
|
|
1421
|
+
"outstandingPE",
|
|
1422
|
+
"offeredADUs",
|
|
1423
|
+
"udDeficitValue",
|
|
1424
|
+
"bookedValue",
|
|
1425
|
+
"bookedSpots",
|
|
1426
|
+
"userChanges",
|
|
1427
|
+
"UDGrp",
|
|
1428
|
+
"UDImps",
|
|
1429
|
+
"ODGrp",
|
|
1430
|
+
"ODImps",
|
|
1431
|
+
"udImpsPercent",
|
|
1432
|
+
"udGrpPercent",
|
|
1433
|
+
"odImpsPercent",
|
|
1434
|
+
"odGrpPercent",
|
|
1435
|
+
"userADUs",
|
|
1436
|
+
"buyerChanges",
|
|
1437
|
+
"userChanges",
|
|
1438
|
+
"userMG",
|
|
1439
|
+
"WeeklyAUR",
|
|
1440
|
+
"WeeklyAURatingOrImpressions",
|
|
1441
|
+
"MGsValue",
|
|
1442
|
+
"ADUsValue",
|
|
1443
|
+
"UserCreditedValue",
|
|
1444
|
+
"UserUnresolvedValue",
|
|
1445
|
+
"BuyerAddedValue",
|
|
1446
|
+
"BuyerDeletedValue",
|
|
1447
|
+
"BuyerChangesValue",
|
|
1448
|
+
"UserChangesValue",
|
|
1449
|
+
"BookedGRPOrIMPS",
|
|
1450
|
+
"BookedCPPOrCPM",
|
|
1451
|
+
"BookedValue",
|
|
1452
|
+
"BookedSpots",
|
|
1453
|
+
"BookedRate",
|
|
1454
|
+
"averageRate",
|
|
1455
|
+
"projectedIMPS",
|
|
1456
|
+
"projectedRTG",
|
|
1457
|
+
"desiredCPM",
|
|
1458
|
+
"desiredCPP",
|
|
1459
|
+
"inventoryFillPercentageSameWeek",
|
|
1460
|
+
"inventoryFillPercentageFinal",
|
|
1461
|
+
"inventoryFillPercentageTillDate",
|
|
1462
|
+
"dollarRateImpact",
|
|
1463
|
+
"dollarIMPSImpact",
|
|
1464
|
+
"IMPSImpact",
|
|
1465
|
+
"dollarRTGImpact",
|
|
1466
|
+
"RTGImpact",
|
|
1467
|
+
"BookedRTG",
|
|
1468
|
+
"BookedIMPS",
|
|
1469
|
+
"AURTG",
|
|
1470
|
+
"AURTG",
|
|
1471
|
+
"PostedRating",
|
|
1472
|
+
"PostedImpressions",
|
|
1473
|
+
"NormalizedOrderedRating",
|
|
1474
|
+
"NormalizedOrderedImpressions",
|
|
1475
|
+
"NormalizedPostedRating",
|
|
1476
|
+
"NormalizedPostedImpressions",
|
|
1477
|
+
"BookedGRP",
|
|
1478
|
+
"BookedIMPSRevTab",
|
|
1479
|
+
"BookedCPP",
|
|
1480
|
+
"BookedCPM",
|
|
1481
|
+
"AUIMPS",
|
|
1482
|
+
"bookedAmountValue",
|
|
1483
|
+
"equivalizedBookedAmountValue",
|
|
1484
|
+
"IMPS",
|
|
1485
|
+
"udValue",
|
|
1486
|
+
"odValue",
|
|
1487
|
+
"ViolatedBookedValue",
|
|
1488
|
+
"ViolatedBookedEURValue",
|
|
1489
|
+
"ViolatingBookedEURValue",
|
|
1490
|
+
"ViolatingBookedValue",
|
|
1491
|
+
"Rebate",
|
|
1492
|
+
"OtherAvailableSpotsTableWeeklyAUR",
|
|
1493
|
+
"parentRowAnnaEstimatesRtg",
|
|
1494
|
+
"parentRowPostedRtg",
|
|
1495
|
+
"parentRowRollingAverageRtg",
|
|
1496
|
+
"parentRowStationEstimatesRtg",
|
|
1497
|
+
"parentRowAnnaEstimatesImps",
|
|
1498
|
+
"parentRowPostedImps",
|
|
1499
|
+
"parentRowRollingAverageImps",
|
|
1500
|
+
"parentRowStationEstimatesImps",
|
|
1501
|
+
"parentRowAnnaEstimatesShare",
|
|
1502
|
+
"parentRowPostedShare",
|
|
1503
|
+
"parentRowRollingAverageShare",
|
|
1504
|
+
"parentRowAnnaEstimatesPutPer",
|
|
1505
|
+
"parentRowPostedPutPer",
|
|
1506
|
+
"parentRowRollingAveragePutPer",
|
|
1507
|
+
"parentRowAnnaEstimatesPut",
|
|
1508
|
+
"parentRowPostedPut",
|
|
1509
|
+
"parentRowRollingAveragePut",
|
|
1510
|
+
"ProjectedImpressions",
|
|
1511
|
+
"ProjectedRtg",
|
|
1512
1512
|
];
|
|
1513
1513
|
const calendarArr = [
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1514
|
+
"period",
|
|
1515
|
+
"AirDate",
|
|
1516
|
+
"flightStartDate",
|
|
1517
|
+
"flightEndDate",
|
|
1518
|
+
"date",
|
|
1519
|
+
"startDate",
|
|
1520
|
+
"endDate",
|
|
1521
|
+
"revisionStartDate",
|
|
1522
|
+
"GeneratedOn",
|
|
1523
|
+
"Week",
|
|
1524
|
+
"timeoutDate",
|
|
1525
|
+
"ViolatingSpotDate",
|
|
1526
|
+
"ViolatedSpotDate",
|
|
1527
1527
|
];
|
|
1528
1528
|
const timeArr = [
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1529
|
+
"StartTimeForFilter",
|
|
1530
|
+
"EndTimeForFilter",
|
|
1531
|
+
"time",
|
|
1532
|
+
"startTimeForFilter",
|
|
1533
|
+
"endTimeForFilter",
|
|
1534
|
+
"start_time_for_filter",
|
|
1535
|
+
"end_time_for_filter",
|
|
1536
|
+
"startEndTimeMulti",
|
|
1537
|
+
"startEndTime",
|
|
1538
|
+
"timeoutTime",
|
|
1539
|
+
"OtherAvailableSpotsTableStartTime",
|
|
1540
|
+
"OtherAvailableSpotsTableEndTime",
|
|
1541
1541
|
];
|
|
1542
1542
|
this.sliderSet = new Set(sliderArr);
|
|
1543
1543
|
this.calendarSet = new Set(calendarArr);
|
|
1544
1544
|
this.timeSet = new Set(timeArr);
|
|
1545
1545
|
}
|
|
1546
1546
|
returnMaxAndMinValue(data, key, isMin) {
|
|
1547
|
-
data = data.filter((obj) => ![
|
|
1547
|
+
data = data.filter((obj) => !["", "-", null].includes(obj[key]));
|
|
1548
1548
|
const values = data.map((x) => x[key]);
|
|
1549
1549
|
let valueToReturn = isMin ? min(values) : max(values);
|
|
1550
1550
|
return valueToReturn;
|
|
1551
1551
|
}
|
|
1552
1552
|
returnMinAndMaxDate(data, key) {
|
|
1553
|
-
data = data.filter((obj) => ![
|
|
1553
|
+
data = data.filter((obj) => !["", "-", null].includes(obj[key]));
|
|
1554
1554
|
let DateArr = data.map((obj) => dayjs(obj[key]));
|
|
1555
1555
|
let minDate = dayjs.min(DateArr);
|
|
1556
1556
|
let maxDate = dayjs.max(DateArr);
|
|
@@ -1588,10 +1588,10 @@ class AnnaFilterService {
|
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
1590
|
findUniqueDatesWithData(data) {
|
|
1591
|
-
let uniqueDates = uniq(data.map((u) => u[
|
|
1591
|
+
let uniqueDates = uniq(data.map((u) => u["date"]));
|
|
1592
1592
|
let uniqueDatesInNgbDateFormat = [];
|
|
1593
1593
|
uniqueDates.forEach((date) => {
|
|
1594
|
-
uniqueDatesInNgbDateFormat.push(this.dateTimeFormatService.convertToNgbDateStandardFormat(dayjs(date,
|
|
1594
|
+
uniqueDatesInNgbDateFormat.push(this.dateTimeFormatService.convertToNgbDateStandardFormat(dayjs(date, "MM/DD/YY").format("MM/DD/YYYY")));
|
|
1595
1595
|
});
|
|
1596
1596
|
return uniqueDatesInNgbDateFormat;
|
|
1597
1597
|
}
|
|
@@ -1601,26 +1601,26 @@ class AnnaFilterService {
|
|
|
1601
1601
|
this.removeOrChangeLatestFilterIndex(isFiltered);
|
|
1602
1602
|
}
|
|
1603
1603
|
checkIfDataIsFiltered(isFiltered, isHierarchialUserFiltered, date) {
|
|
1604
|
-
if (this.selectedRadio ==
|
|
1604
|
+
if (this.selectedRadio == "user" && !this.tooltipMap.has("user")) {
|
|
1605
1605
|
isFiltered = cloneDeep(isHierarchialUserFiltered);
|
|
1606
1606
|
}
|
|
1607
|
-
else if (this.selectedRadio ==
|
|
1608
|
-
this.selectedRadio ==
|
|
1609
|
-
this.selectedRadio ==
|
|
1610
|
-
this.selectedRadio ==
|
|
1611
|
-
this.selectedRadio ==
|
|
1612
|
-
this.selectedRadio ==
|
|
1613
|
-
this.selectedRadio ==
|
|
1614
|
-
this.selectedRadio ==
|
|
1615
|
-
this.selectedRadio ==
|
|
1616
|
-
this.selectedRadio ==
|
|
1617
|
-
this.selectedRadio ==
|
|
1607
|
+
else if (this.selectedRadio == "StartTimeForFilter" ||
|
|
1608
|
+
this.selectedRadio == "EndTimeForFilter" ||
|
|
1609
|
+
this.selectedRadio == "startTimeForFilter" ||
|
|
1610
|
+
this.selectedRadio == "endTimeForFilter" ||
|
|
1611
|
+
this.selectedRadio == "time" ||
|
|
1612
|
+
this.selectedRadio == "timeoutTime" ||
|
|
1613
|
+
this.selectedRadio == "OtherAvailableSpotsTableStartTime" ||
|
|
1614
|
+
this.selectedRadio == "OtherAvailableSpotsTableEndTime" ||
|
|
1615
|
+
this.selectedRadio == "start_time_for_filter" ||
|
|
1616
|
+
this.selectedRadio == "end_time_for_filter" ||
|
|
1617
|
+
this.selectedRadio == "startEndTimeMulti") {
|
|
1618
1618
|
isFiltered =
|
|
1619
1619
|
!isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) ||
|
|
1620
1620
|
!this.includeZeroTime ||
|
|
1621
1621
|
!this.includeMultiTime;
|
|
1622
1622
|
}
|
|
1623
|
-
else if (this.selectedRadio ==
|
|
1623
|
+
else if (this.selectedRadio == "startEndTime" || this.selectedRadio == "TimeBand") {
|
|
1624
1624
|
isFiltered =
|
|
1625
1625
|
!isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) ||
|
|
1626
1626
|
!this.includeZeroTime ||
|
|
@@ -1629,24 +1629,24 @@ class AnnaFilterService {
|
|
|
1629
1629
|
else if (this.sliderSet.has(this.selectedRadio)) {
|
|
1630
1630
|
isFiltered =
|
|
1631
1631
|
!isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) && !isEqual(this.tooltipSelectedMap.get(this.selectedRadio), this.sliderData);
|
|
1632
|
-
if (this.selectedRadio ==
|
|
1632
|
+
if (this.selectedRadio == "postedAdu" && this.subRadioButton == "notRequired") {
|
|
1633
1633
|
isFiltered = true;
|
|
1634
1634
|
}
|
|
1635
1635
|
if (!isFiltered && this.tooltipSelectedMap.has(this.selectedRadio)) {
|
|
1636
1636
|
this.tooltipSelectedMap.delete(this.selectedRadio);
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
else if (this.selectedRadio ==
|
|
1640
|
-
this.selectedRadio ==
|
|
1641
|
-
this.selectedRadio ==
|
|
1642
|
-
this.selectedRadio ==
|
|
1643
|
-
this.selectedRadio ==
|
|
1644
|
-
this.selectedRadio ===
|
|
1645
|
-
this.selectedRadio ===
|
|
1646
|
-
this.selectedRadio ==
|
|
1647
|
-
this.selectedRadio ==
|
|
1648
|
-
this.selectedRadio ==
|
|
1649
|
-
this.selectedRadio ==
|
|
1639
|
+
else if (this.selectedRadio == "startDate" ||
|
|
1640
|
+
this.selectedRadio == "endDate" ||
|
|
1641
|
+
this.selectedRadio == "period" ||
|
|
1642
|
+
this.selectedRadio == "AirDate" ||
|
|
1643
|
+
this.selectedRadio == "timeoutDate" ||
|
|
1644
|
+
this.selectedRadio === "flightStartDate" ||
|
|
1645
|
+
this.selectedRadio === "flightEndDate" ||
|
|
1646
|
+
this.selectedRadio == "date" ||
|
|
1647
|
+
this.selectedRadio == "revisionStartDate" ||
|
|
1648
|
+
this.selectedRadio == "GeneratedOn" ||
|
|
1649
|
+
this.selectedRadio == "Week") {
|
|
1650
1650
|
isFiltered =
|
|
1651
1651
|
!isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) && !isEqual(this.tooltipSelectedMap.get(this.selectedRadio), this.flightDateRange);
|
|
1652
1652
|
if (!isFiltered && this.tooltipSelectedMap.has(this.selectedRadio)) {
|
|
@@ -1680,10 +1680,10 @@ class AnnaFilterService {
|
|
|
1680
1680
|
if (!this.annaSortService?.columnSortState)
|
|
1681
1681
|
return originalData;
|
|
1682
1682
|
for (let [key, value] of this.annaSortService.columnSortState.entries()) {
|
|
1683
|
-
if (value ==
|
|
1683
|
+
if (value == "ASC") {
|
|
1684
1684
|
originalData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(true, originalData, key));
|
|
1685
1685
|
}
|
|
1686
|
-
else if (value ==
|
|
1686
|
+
else if (value == "DESC") {
|
|
1687
1687
|
originalData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(false, originalData, key));
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
@@ -1699,37 +1699,37 @@ class AnnaFilterService {
|
|
|
1699
1699
|
if (this.sliderSet.has(key)) {
|
|
1700
1700
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1701
1701
|
}
|
|
1702
|
-
else if (key ===
|
|
1703
|
-
key ===
|
|
1704
|
-
key ===
|
|
1705
|
-
key ===
|
|
1706
|
-
key ===
|
|
1707
|
-
key ===
|
|
1708
|
-
key ==
|
|
1709
|
-
key ==
|
|
1710
|
-
key ==
|
|
1711
|
-
key ==
|
|
1712
|
-
key ===
|
|
1713
|
-
key ===
|
|
1714
|
-
key ===
|
|
1702
|
+
else if (key === "startDate" ||
|
|
1703
|
+
key === "endDate" ||
|
|
1704
|
+
key === "AirDate" ||
|
|
1705
|
+
key === "timeoutDate" ||
|
|
1706
|
+
key === "flightStartDate" ||
|
|
1707
|
+
key === "flightEndDate" ||
|
|
1708
|
+
key == "date" ||
|
|
1709
|
+
key == "Date" ||
|
|
1710
|
+
key == "revisionStartDate" ||
|
|
1711
|
+
key == "GeneratedOn" ||
|
|
1712
|
+
key === "Week" ||
|
|
1713
|
+
key === "ViolatedSpotDate" ||
|
|
1714
|
+
key === "ViolatingSpotDate") {
|
|
1715
1715
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1716
1716
|
}
|
|
1717
|
-
else if (key ===
|
|
1717
|
+
else if (key === "period") {
|
|
1718
1718
|
filteredData = filteredData.filter((obj) => this.getDataInTheDateRange(obj, value, key));
|
|
1719
1719
|
}
|
|
1720
|
-
else if (key ===
|
|
1721
|
-
key ===
|
|
1722
|
-
key ==
|
|
1723
|
-
key ===
|
|
1724
|
-
key ===
|
|
1725
|
-
key ===
|
|
1726
|
-
key ==
|
|
1727
|
-
key ===
|
|
1728
|
-
key ===
|
|
1729
|
-
key ==
|
|
1720
|
+
else if (key === "StartTimeForFilter" ||
|
|
1721
|
+
key === "EndTimeForFilter" ||
|
|
1722
|
+
key == "timeoutTime" ||
|
|
1723
|
+
key === "startTimeForFilter" ||
|
|
1724
|
+
key === "endTimeForFilter" ||
|
|
1725
|
+
key === "OtherAvailableSpotsTableStartTime" ||
|
|
1726
|
+
key == "OtherAvailableSpotsTableEndTime" ||
|
|
1727
|
+
key === "start_time_for_filter" ||
|
|
1728
|
+
key === "end_time_for_filter" ||
|
|
1729
|
+
key == "time") {
|
|
1730
1730
|
filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
|
|
1731
1731
|
}
|
|
1732
|
-
else if (key ===
|
|
1732
|
+
else if (key === "startEndTimeMulti" || key == "startEndTime" || key === "TimeBand") {
|
|
1733
1733
|
filteredData = filteredData.filter((obj) => this.returnDataForStartAndEndTimeRange(obj, value, key));
|
|
1734
1734
|
}
|
|
1735
1735
|
else if (value.length > 0) {
|
|
@@ -1746,7 +1746,7 @@ class AnnaFilterService {
|
|
|
1746
1746
|
return isDateBetweenTheSelectedRange || isDateSameAsTheMinSelectedDate || isDateSameAsTheMaxSelectedDate;
|
|
1747
1747
|
}
|
|
1748
1748
|
returnDataForTimeRange(obj, selectedData) {
|
|
1749
|
-
let format =
|
|
1749
|
+
let format = "HH:mm:ss";
|
|
1750
1750
|
let selectedStartDate = dayjs(selectedData.startTime, format);
|
|
1751
1751
|
let selectedEndDate = dayjs(selectedData.endTime, format);
|
|
1752
1752
|
let startTime = dayjs(obj.startTime, format);
|
|
@@ -1761,29 +1761,29 @@ class AnnaFilterService {
|
|
|
1761
1761
|
(isStartTimeBetweenSelectedStartAndEndTime && isEndTimeSameAsSelectedEndTime));
|
|
1762
1762
|
}
|
|
1763
1763
|
returnDataForFromAndToTimeRange(obj, selectedData, key) {
|
|
1764
|
-
let format =
|
|
1765
|
-
let selectedFromTime = dayjs(
|
|
1766
|
-
let selectedToTime = dayjs(
|
|
1764
|
+
let format = "MM/DD/YYYY HH:mm:ss";
|
|
1765
|
+
let selectedFromTime = dayjs("01/01/2001 " + selectedData.fromTime, format);
|
|
1766
|
+
let selectedToTime = dayjs("01/01/2001 " + selectedData.toTime, format);
|
|
1767
1767
|
let objTime = obj[key];
|
|
1768
|
-
if ([
|
|
1768
|
+
if (["", "-", null].includes(objTime)) {
|
|
1769
1769
|
return false;
|
|
1770
1770
|
}
|
|
1771
|
-
if (selectedData.includeMulti && obj[key] ==
|
|
1771
|
+
if (selectedData.includeMulti && obj[key] == "<multi>") {
|
|
1772
1772
|
return true;
|
|
1773
1773
|
}
|
|
1774
|
-
if (!selectedData.includeMulti && obj[key] ==
|
|
1774
|
+
if (!selectedData.includeMulti && obj[key] == "<multi>") {
|
|
1775
1775
|
return false;
|
|
1776
1776
|
}
|
|
1777
|
-
if (selectedData.includeZero && obj[key] ==
|
|
1777
|
+
if (selectedData.includeZero && obj[key] == "0") {
|
|
1778
1778
|
return true;
|
|
1779
1779
|
}
|
|
1780
|
-
if (!selectedData.includeZero && obj[key] ==
|
|
1780
|
+
if (!selectedData.includeZero && obj[key] == "0") {
|
|
1781
1781
|
return false;
|
|
1782
1782
|
}
|
|
1783
1783
|
if (!selectedData.includeTimeRange) {
|
|
1784
1784
|
return false;
|
|
1785
1785
|
}
|
|
1786
|
-
let dayjsTime = dayjs(
|
|
1786
|
+
let dayjsTime = dayjs("01/01/2001 " + objTime, format);
|
|
1787
1787
|
let isObjTimeSameAsSelectedFromTime = dayjsTime.isSame(selectedFromTime);
|
|
1788
1788
|
let isObjTimeSameAsSelectedToTime = dayjsTime.isSame(selectedToTime);
|
|
1789
1789
|
let isObjTimeBetweenSelectedFromTimeAndToTime = dayjsTime.isBetween(selectedFromTime, selectedToTime);
|
|
@@ -1792,26 +1792,26 @@ class AnnaFilterService {
|
|
|
1792
1792
|
isObjTimeBetweenSelectedFromTimeAndToTime);
|
|
1793
1793
|
}
|
|
1794
1794
|
returnDataForStartAndEndTimeRange(obj, selectedData, key) {
|
|
1795
|
-
let format =
|
|
1796
|
-
let selectedFromTime = dayjs(
|
|
1797
|
-
let selectedToTime = dayjs(
|
|
1798
|
-
if (selectedData.includeMulti && obj[key][0] ==
|
|
1795
|
+
let format = "MM/DD/YYYY HH:mm:ss";
|
|
1796
|
+
let selectedFromTime = dayjs("01/01/2001 " + selectedData.fromTime, format);
|
|
1797
|
+
let selectedToTime = dayjs("01/01/2001 " + selectedData.toTime, format);
|
|
1798
|
+
if (selectedData.includeMulti && obj[key][0] == "<multi>") {
|
|
1799
1799
|
return true;
|
|
1800
1800
|
}
|
|
1801
|
-
if (!selectedData.includeMulti && obj[key][0] ==
|
|
1801
|
+
if (!selectedData.includeMulti && obj[key][0] == "<multi>") {
|
|
1802
1802
|
return false;
|
|
1803
1803
|
}
|
|
1804
|
-
if (selectedData.includeZero && obj[key][0] ==
|
|
1804
|
+
if (selectedData.includeZero && obj[key][0] == "0") {
|
|
1805
1805
|
return true;
|
|
1806
1806
|
}
|
|
1807
|
-
if (!selectedData.includeZero && obj[key][0] ==
|
|
1807
|
+
if (!selectedData.includeZero && obj[key][0] == "0") {
|
|
1808
1808
|
return false;
|
|
1809
1809
|
}
|
|
1810
1810
|
if (!selectedData.includeTimeRange) {
|
|
1811
1811
|
return false;
|
|
1812
1812
|
}
|
|
1813
|
-
let startTime = dayjs(
|
|
1814
|
-
let endTime = dayjs(
|
|
1813
|
+
let startTime = dayjs("01/01/2001 " + obj[key][1], format);
|
|
1814
|
+
let endTime = dayjs("01/01/2001 " + obj[key][2], format);
|
|
1815
1815
|
let isStartTimeSameAsSelectedStartTime = startTime.isSame(selectedFromTime);
|
|
1816
1816
|
let isStartTimeBetweenSelectedStartAndEndTime = startTime.isBetween(selectedFromTime, selectedToTime);
|
|
1817
1817
|
let isEndTimeSameAsSelectedEndTime = endTime.isSame(selectedToTime);
|
|
@@ -1823,8 +1823,8 @@ class AnnaFilterService {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
getDataInTheDateRange(obj, value, key) {
|
|
1825
1825
|
let parsingFormat;
|
|
1826
|
-
if (key ===
|
|
1827
|
-
parsingFormat =
|
|
1826
|
+
if (key === "period") {
|
|
1827
|
+
parsingFormat = "YYYY-MM-DD";
|
|
1828
1828
|
let dayjsStartDate = dayjs(obj.startDate);
|
|
1829
1829
|
let dayjsEndDate = dayjs(obj.endDate);
|
|
1830
1830
|
let startDateIsBetweenSelDate = dayjsStartDate.isBetween(value.fromDate, value.toDate);
|
|
@@ -1834,21 +1834,21 @@ class AnnaFilterService {
|
|
|
1834
1834
|
return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
|
|
1835
1835
|
(endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
|
|
1836
1836
|
}
|
|
1837
|
-
else if (key ===
|
|
1838
|
-
key ===
|
|
1839
|
-
key ===
|
|
1840
|
-
key ===
|
|
1841
|
-
key ===
|
|
1842
|
-
parsingFormat =
|
|
1837
|
+
else if (key === "AirDate" ||
|
|
1838
|
+
key === "flightStartDate" ||
|
|
1839
|
+
key === "flightEndDate" ||
|
|
1840
|
+
key === "Week" ||
|
|
1841
|
+
key === "timeoutDate") {
|
|
1842
|
+
parsingFormat = "MM/DD/YYYY";
|
|
1843
1843
|
let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
|
|
1844
1844
|
let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
|
|
1845
1845
|
let dateIsSameAsSelEndDate = dayjs(obj[key], parsingFormat).isSame(value.maxSelectedDate);
|
|
1846
1846
|
return dateIsBetweenSelDate || dateIsSameAsSelStartDate || dateIsSameAsSelEndDate;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
|
-
initializeTimeFilterData(clonedData, key =
|
|
1850
|
-
let startTimeArr = map(clonedData,
|
|
1851
|
-
let endTimeArr = map(clonedData,
|
|
1849
|
+
initializeTimeFilterData(clonedData, key = "startEndTime") {
|
|
1850
|
+
let startTimeArr = map(clonedData, "startTime");
|
|
1851
|
+
let endTimeArr = map(clonedData, "endTime");
|
|
1852
1852
|
startTimeArr.sort((a, b) => {
|
|
1853
1853
|
return this.dateTimeFormatService.sortByTimeAscending(a, b);
|
|
1854
1854
|
});
|
|
@@ -1862,7 +1862,7 @@ class AnnaFilterService {
|
|
|
1862
1862
|
this.initialValueMap.set(key, initialStartEndTime);
|
|
1863
1863
|
}
|
|
1864
1864
|
returnColumnFilterStatus(data, headerName) {
|
|
1865
|
-
if (headerName ==
|
|
1865
|
+
if (headerName == "startEndTime") {
|
|
1866
1866
|
let time = data.map((u) => u[headerName][0]);
|
|
1867
1867
|
let uniqTime = uniq(time);
|
|
1868
1868
|
return uniqTime.length == 0;
|
|
@@ -1896,37 +1896,37 @@ class AnnaFilterService {
|
|
|
1896
1896
|
if (this.sliderSet.has(key)) {
|
|
1897
1897
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1898
1898
|
}
|
|
1899
|
-
else if (key ===
|
|
1900
|
-
key ===
|
|
1901
|
-
key ===
|
|
1902
|
-
key ===
|
|
1903
|
-
key ===
|
|
1904
|
-
key ===
|
|
1905
|
-
key ==
|
|
1906
|
-
key ==
|
|
1907
|
-
key ==
|
|
1908
|
-
key ==
|
|
1909
|
-
key ===
|
|
1910
|
-
key ===
|
|
1911
|
-
key ===
|
|
1899
|
+
else if (key === "startDate" ||
|
|
1900
|
+
key === "endDate" ||
|
|
1901
|
+
key === "AirDate" ||
|
|
1902
|
+
key === "timeoutDate" ||
|
|
1903
|
+
key === "flightStartDate" ||
|
|
1904
|
+
key === "flightEndDate" ||
|
|
1905
|
+
key == "date" ||
|
|
1906
|
+
key == "Date" ||
|
|
1907
|
+
key == "revisionStartDate" ||
|
|
1908
|
+
key == "GeneratedOn" ||
|
|
1909
|
+
key === "Week" ||
|
|
1910
|
+
key === "ViolatedSpotDate" ||
|
|
1911
|
+
key === "ViolatingSpotDate") {
|
|
1912
1912
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1913
1913
|
}
|
|
1914
|
-
else if (key ===
|
|
1914
|
+
else if (key === "period") {
|
|
1915
1915
|
filteredData = filteredData.filter((obj) => this.getDataInTheDateRange(obj, value, key));
|
|
1916
1916
|
}
|
|
1917
|
-
else if (key ===
|
|
1918
|
-
key ===
|
|
1919
|
-
key ==
|
|
1920
|
-
key ===
|
|
1921
|
-
key ===
|
|
1922
|
-
key ===
|
|
1923
|
-
key ===
|
|
1924
|
-
key ==
|
|
1925
|
-
key ==
|
|
1926
|
-
key ==
|
|
1917
|
+
else if (key === "StartTimeForFilter" ||
|
|
1918
|
+
key === "EndTimeForFilter" ||
|
|
1919
|
+
key == "timeoutTime" ||
|
|
1920
|
+
key === "startTimeForFilter" ||
|
|
1921
|
+
key === "endTimeForFilter" ||
|
|
1922
|
+
key === "start_time_for_filter" ||
|
|
1923
|
+
key === "end_time_for_filter" ||
|
|
1924
|
+
key == "time" ||
|
|
1925
|
+
key == "OtherAvailableSpotsTableStartTime" ||
|
|
1926
|
+
key == "OtherAvailableSpotsTableEndTime") {
|
|
1927
1927
|
filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
|
|
1928
1928
|
}
|
|
1929
|
-
else if (key ===
|
|
1929
|
+
else if (key === "startEndTimeMulti" || key == "startEndTime" || key === "TimeBand") {
|
|
1930
1930
|
filteredData = filteredData.filter((obj) => this.returnDataForStartAndEndTimeRange(obj, value, key));
|
|
1931
1931
|
}
|
|
1932
1932
|
else if (value.length > 0) {
|
|
@@ -1937,9 +1937,9 @@ class AnnaFilterService {
|
|
|
1937
1937
|
isObjectInTheRange(obj, value, key) {
|
|
1938
1938
|
let objVal = obj[key];
|
|
1939
1939
|
let dayjsDate = dayjs(objVal);
|
|
1940
|
-
if (typeof value.fromDate ===
|
|
1941
|
-
value.fromDate = dayjs(this.dateTimeFormatService.convertNgbDateToMoment(this.dateTimeFormatService.convertToNgbDate(value.fromDate,
|
|
1942
|
-
value.toDate = dayjs(this.dateTimeFormatService.convertNgbDateToMoment(this.dateTimeFormatService.convertToNgbDate(value.toDate,
|
|
1940
|
+
if (typeof value.fromDate === "string" && typeof value.toDate === "string") {
|
|
1941
|
+
value.fromDate = dayjs(this.dateTimeFormatService.convertNgbDateToMoment(this.dateTimeFormatService.convertToNgbDate(value.fromDate, "DD/MM/YYYY")));
|
|
1942
|
+
value.toDate = dayjs(this.dateTimeFormatService.convertNgbDateToMoment(this.dateTimeFormatService.convertToNgbDate(value.toDate, "DD/MM/YYYY")));
|
|
1943
1943
|
}
|
|
1944
1944
|
let isDateSameAsStartOfTheRange = value.fromDate.isSame(objVal);
|
|
1945
1945
|
let isDateSameAsEndOfTheRange = value.toDate.isSame(objVal);
|
|
@@ -1951,19 +1951,19 @@ class AnnaFilterService {
|
|
|
1951
1951
|
let keyArr = [];
|
|
1952
1952
|
Object.keys(this.isFilterSortActive).forEach((key) => {
|
|
1953
1953
|
if (key.includes(activeKey)) {
|
|
1954
|
-
keyArr = key.split(
|
|
1954
|
+
keyArr = key.split(",");
|
|
1955
1955
|
this.isFilterSortActive[key] = this.isTooltipActive(keyArr, sortMap);
|
|
1956
1956
|
}
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
1959
|
updateStateOfAllTheKeys(sortMap) {
|
|
1960
1960
|
Object.keys(this.isFilterSortActive).forEach((key) => {
|
|
1961
|
-
let keyArr = key.split(
|
|
1961
|
+
let keyArr = key.split(",");
|
|
1962
1962
|
this.isFilterSortActive[key] = this.isTooltipActive(keyArr, sortMap);
|
|
1963
1963
|
});
|
|
1964
1964
|
}
|
|
1965
1965
|
incrementHour(value) {
|
|
1966
|
-
if (value ==
|
|
1966
|
+
if (value == "") {
|
|
1967
1967
|
value = 1;
|
|
1968
1968
|
}
|
|
1969
1969
|
else if (parseInt(value) < 12) {
|
|
@@ -1975,7 +1975,7 @@ class AnnaFilterService {
|
|
|
1975
1975
|
return value;
|
|
1976
1976
|
}
|
|
1977
1977
|
decrementHour(value) {
|
|
1978
|
-
if (value ==
|
|
1978
|
+
if (value == "") {
|
|
1979
1979
|
value = 12;
|
|
1980
1980
|
}
|
|
1981
1981
|
else if (parseInt(value) > 1) {
|
|
@@ -1990,32 +1990,32 @@ class AnnaFilterService {
|
|
|
1990
1990
|
// increment to nearest proper interval(15,30,45)
|
|
1991
1991
|
let min = parseInt(value);
|
|
1992
1992
|
if (min <= 14) {
|
|
1993
|
-
value =
|
|
1993
|
+
value = "15";
|
|
1994
1994
|
}
|
|
1995
1995
|
else if (min >= 15 && min <= 29) {
|
|
1996
|
-
value =
|
|
1996
|
+
value = "30";
|
|
1997
1997
|
}
|
|
1998
1998
|
else if (min >= 30 && min <= 44) {
|
|
1999
|
-
value =
|
|
1999
|
+
value = "45";
|
|
2000
2000
|
}
|
|
2001
2001
|
else if (min >= 45) {
|
|
2002
|
-
value =
|
|
2002
|
+
value = "00";
|
|
2003
2003
|
}
|
|
2004
2004
|
return value;
|
|
2005
2005
|
}
|
|
2006
2006
|
decrementMinute(value) {
|
|
2007
2007
|
let min = parseInt(value);
|
|
2008
2008
|
if (min > 0 && min <= 15) {
|
|
2009
|
-
value =
|
|
2009
|
+
value = "00";
|
|
2010
2010
|
}
|
|
2011
2011
|
else if (min >= 16 && min <= 30) {
|
|
2012
|
-
value =
|
|
2012
|
+
value = "15";
|
|
2013
2013
|
}
|
|
2014
2014
|
else if (min >= 31 && min <= 45) {
|
|
2015
|
-
value =
|
|
2015
|
+
value = "30";
|
|
2016
2016
|
}
|
|
2017
2017
|
else if (min > 45 || min == 0) {
|
|
2018
|
-
value =
|
|
2018
|
+
value = "45";
|
|
2019
2019
|
}
|
|
2020
2020
|
return value;
|
|
2021
2021
|
}
|
|
@@ -2038,7 +2038,7 @@ class AnnaFilterService {
|
|
|
2038
2038
|
createListForCheckboxFilter(header, optionData) {
|
|
2039
2039
|
let tooltipOptions = this.getTooltipModelFromOptionData(optionData, header);
|
|
2040
2040
|
this.selectUnselectListCheckbox(tooltipOptions, header);
|
|
2041
|
-
this.formatNullOptionToSpecifiedString(tooltipOptions,
|
|
2041
|
+
this.formatNullOptionToSpecifiedString(tooltipOptions, "-");
|
|
2042
2042
|
return tooltipOptions;
|
|
2043
2043
|
}
|
|
2044
2044
|
getTooltipModelFromOptionData(optionData, header) {
|
|
@@ -2147,7 +2147,7 @@ class AnnaFilterService {
|
|
|
2147
2147
|
let startIndex = item + index * 7; //Multiplying by 7 as there are 7char: <b></b>
|
|
2148
2148
|
let endIndex = startIndex + find.length;
|
|
2149
2149
|
let strToBeReplaced = str.substring(startIndex, endIndex);
|
|
2150
|
-
str = str.replace(strToBeReplaced,
|
|
2150
|
+
str = str.replace(strToBeReplaced, "<b>" + strToBeReplaced + "</b>");
|
|
2151
2151
|
});
|
|
2152
2152
|
return str;
|
|
2153
2153
|
}
|
|
@@ -2175,9 +2175,9 @@ class AnnaFilterService {
|
|
|
2175
2175
|
createRangeForTheDateFilter(optionData) {
|
|
2176
2176
|
let minMaxDate;
|
|
2177
2177
|
//When you want to use startDate and endDate combined as single column then use Period.
|
|
2178
|
-
if (this.selectedRadio ==
|
|
2179
|
-
this.selectedRadio ==
|
|
2180
|
-
this.selectedRadio ==
|
|
2178
|
+
if (this.selectedRadio == "period" ||
|
|
2179
|
+
this.selectedRadio == "buyerFlightDates" ||
|
|
2180
|
+
this.selectedRadio == "trafficFlightDates") {
|
|
2181
2181
|
minMaxDate = this.createStartEndDateRange(optionData);
|
|
2182
2182
|
}
|
|
2183
2183
|
else {
|
|
@@ -2186,8 +2186,8 @@ class AnnaFilterService {
|
|
|
2186
2186
|
return minMaxDate;
|
|
2187
2187
|
}
|
|
2188
2188
|
createStartEndDateRange(optionData) {
|
|
2189
|
-
let minStartDate = this.returnMinAndMaxDate(optionData,
|
|
2190
|
-
let maxEndDate = this.returnMinAndMaxDate(optionData,
|
|
2189
|
+
let minStartDate = this.returnMinAndMaxDate(optionData, "startDate");
|
|
2190
|
+
let maxEndDate = this.returnMinAndMaxDate(optionData, "endDate");
|
|
2191
2191
|
return [minStartDate[0], maxEndDate[1]];
|
|
2192
2192
|
}
|
|
2193
2193
|
getMinAndMaxDateRangeForCalendar(minMaxDate, parsingFormat) {
|
|
@@ -2265,13 +2265,13 @@ class AnnaFilterService {
|
|
|
2265
2265
|
getSliderTranslateFuncVal(header, currencySet) {
|
|
2266
2266
|
let translateFunc;
|
|
2267
2267
|
if (currencySet.has(header)) {
|
|
2268
|
-
translateFunc =
|
|
2268
|
+
translateFunc = "currency";
|
|
2269
2269
|
}
|
|
2270
|
-
else if (header ==
|
|
2271
|
-
translateFunc =
|
|
2270
|
+
else if (header == "postedAudPercent" || header == "parentRowShares" || header == "parentRowPutPercent") {
|
|
2271
|
+
translateFunc = "percent";
|
|
2272
2272
|
}
|
|
2273
2273
|
else {
|
|
2274
|
-
translateFunc =
|
|
2274
|
+
translateFunc = "normal";
|
|
2275
2275
|
}
|
|
2276
2276
|
return translateFunc;
|
|
2277
2277
|
}
|
|
@@ -2279,13 +2279,13 @@ class AnnaFilterService {
|
|
|
2279
2279
|
let minValue = this.returnMaxAndMinValue(optionsData, header, true);
|
|
2280
2280
|
let maxValue = this.returnMaxAndMinValue(optionsData, header, false);
|
|
2281
2281
|
let obj = this.setOptionValues(minValue, maxValue);
|
|
2282
|
-
if (translateFunc ===
|
|
2282
|
+
if (translateFunc === "normal") {
|
|
2283
2283
|
obj.translate = this.normalTranslateFunction;
|
|
2284
2284
|
}
|
|
2285
|
-
else if (translateFunc ===
|
|
2285
|
+
else if (translateFunc === "percent") {
|
|
2286
2286
|
obj.translate = this.percentTranslateFunction;
|
|
2287
2287
|
}
|
|
2288
|
-
else if (translateFunc ===
|
|
2288
|
+
else if (translateFunc === "currency") {
|
|
2289
2289
|
obj.translate = this.currencyTranslateFunction;
|
|
2290
2290
|
}
|
|
2291
2291
|
return obj;
|
|
@@ -2308,7 +2308,7 @@ class AnnaFilterService {
|
|
|
2308
2308
|
return options.floor <= val && val <= options.ceil;
|
|
2309
2309
|
}
|
|
2310
2310
|
getPreviousSelectedValueForSlider(clonedData) {
|
|
2311
|
-
let previousSliderData = { min:
|
|
2311
|
+
let previousSliderData = { min: "", max: "" };
|
|
2312
2312
|
if (this.tooltipSelectedMap.has(this.selectedRadio)) {
|
|
2313
2313
|
previousSliderData = this.tooltipSelectedMap.get(this.selectedRadio);
|
|
2314
2314
|
if (!this.initialValueMap.has(this.selectedRadio)) {
|
|
@@ -2359,13 +2359,13 @@ class AnnaFilterService {
|
|
|
2359
2359
|
selectedToTime = AnnaDateTimeFormatService.formatToTwelveHrs(selectedToTime, true);
|
|
2360
2360
|
}
|
|
2361
2361
|
else {
|
|
2362
|
-
selectedFromTime = [
|
|
2363
|
-
selectedToTime = [
|
|
2362
|
+
selectedFromTime = ["-", "-", "-"];
|
|
2363
|
+
selectedToTime = ["-", "-", "-"];
|
|
2364
2364
|
}
|
|
2365
2365
|
return [selectedFromTime, selectedToTime];
|
|
2366
2366
|
}
|
|
2367
2367
|
setInitialValueMapForTimeFilter(clonedData, key) {
|
|
2368
|
-
if (key ==
|
|
2368
|
+
if (key == "startEndTime" || key == "TimeBand") {
|
|
2369
2369
|
this.setInitialValueForStartAndEndTimeRange(clonedData, key);
|
|
2370
2370
|
}
|
|
2371
2371
|
else {
|
|
@@ -2375,13 +2375,13 @@ class AnnaFilterService {
|
|
|
2375
2375
|
//use for filter where we have start and end time range in one filter
|
|
2376
2376
|
//startEndTime: ["6 - 7A", "06: 00 : 00" , "07:00:00"]
|
|
2377
2377
|
setInitialValueForStartAndEndTimeRange(clonedData, key) {
|
|
2378
|
-
let includeMulti = clonedData.findIndex((obj) => obj[key][0] ==
|
|
2379
|
-
let includeZero = clonedData.findIndex((obj) => obj[key][0] ==
|
|
2380
|
-
let includeTimeRange = clonedData.findIndex((obj) => obj[key][0] !=
|
|
2381
|
-
let filteredStartTime = clonedData.filter((obj) => ![
|
|
2382
|
-
let filteredEndTime = clonedData.filter((obj) => ![
|
|
2383
|
-
let startTimeArr = map(filteredStartTime,
|
|
2384
|
-
let endTimeArr = map(filteredEndTime,
|
|
2378
|
+
let includeMulti = clonedData.findIndex((obj) => obj[key][0] == "<multi>") != -1;
|
|
2379
|
+
let includeZero = clonedData.findIndex((obj) => obj[key][0] == "0") != -1;
|
|
2380
|
+
let includeTimeRange = clonedData.findIndex((obj) => obj[key][0] != "0" && obj[key][0] != "<multi>") != -1;
|
|
2381
|
+
let filteredStartTime = clonedData.filter((obj) => !["", "-", null, "0", "<multi>"].includes(obj["startTime"]));
|
|
2382
|
+
let filteredEndTime = clonedData.filter((obj) => !["", "-", null, "0", "<multi>"].includes(obj["endTime"]));
|
|
2383
|
+
let startTimeArr = map(filteredStartTime, "startTime");
|
|
2384
|
+
let endTimeArr = map(filteredEndTime, "endTime");
|
|
2385
2385
|
startTimeArr.sort((a, b) => {
|
|
2386
2386
|
return this.dateTimeFormatService.sortByTimeAscending(a, b);
|
|
2387
2387
|
});
|
|
@@ -2400,10 +2400,10 @@ class AnnaFilterService {
|
|
|
2400
2400
|
//use for the filters where we have different filter for start and end time
|
|
2401
2401
|
//startTime: "06:00:00"
|
|
2402
2402
|
setInitialValueForStartOrEndTimeRange(clonedData, key) {
|
|
2403
|
-
let includeMulti = clonedData.findIndex((obj) => obj[key] ==
|
|
2404
|
-
let includeZero = clonedData.findIndex((obj) => obj[key] ==
|
|
2405
|
-
let includeTimeRange = clonedData.findIndex((obj) => obj[key] !=
|
|
2406
|
-
let data = clonedData.filter((obj) => ![
|
|
2403
|
+
let includeMulti = clonedData.findIndex((obj) => obj[key] == "<multi>") != -1;
|
|
2404
|
+
let includeZero = clonedData.findIndex((obj) => obj[key] == "0") != -1;
|
|
2405
|
+
let includeTimeRange = clonedData.findIndex((obj) => obj[key] != "0" && obj[key] != "<multi>") != -1;
|
|
2406
|
+
let data = clonedData.filter((obj) => !["", "-", null, "0", "<multi>"].includes(obj[key]));
|
|
2407
2407
|
let timeArr = map(data, key);
|
|
2408
2408
|
timeArr.sort((a, b) => {
|
|
2409
2409
|
return this.dateTimeFormatService.sortByTimeAscending(a, b);
|
|
@@ -2432,24 +2432,24 @@ class AnnaFilterService {
|
|
|
2432
2432
|
selectedTimeObj = this.initialValueMap.get(key);
|
|
2433
2433
|
}
|
|
2434
2434
|
let timeArr;
|
|
2435
|
-
if (key ==
|
|
2435
|
+
if (key == "startEndTime" || key == "TimeBand") {
|
|
2436
2436
|
timeArr = optionsData.map((item) => item[key][0]);
|
|
2437
2437
|
}
|
|
2438
2438
|
else {
|
|
2439
2439
|
timeArr = optionsData.map((item) => item[key]);
|
|
2440
2440
|
}
|
|
2441
|
-
if (timeArr.findIndex((val) => val ==
|
|
2441
|
+
if (timeArr.findIndex((val) => val == "0") != -1) {
|
|
2442
2442
|
showZeroTimeCheckbox = true;
|
|
2443
2443
|
zeroTimeCheckboxChecked = selectedTimeObj.includeZero;
|
|
2444
2444
|
}
|
|
2445
|
-
if (timeArr.findIndex((val) => val ==
|
|
2445
|
+
if (timeArr.findIndex((val) => val == "<multi>") != -1) {
|
|
2446
2446
|
showMultiTimeCheckbox = true;
|
|
2447
2447
|
multiTimeCheckboxChecked = selectedTimeObj.includeMulti;
|
|
2448
2448
|
}
|
|
2449
2449
|
if (showZeroTimeCheckbox || showMultiTimeCheckbox) {
|
|
2450
2450
|
showEnterTimeCheckbox = true;
|
|
2451
2451
|
}
|
|
2452
|
-
if (timeArr.findIndex((val) => val !=
|
|
2452
|
+
if (timeArr.findIndex((val) => val != "<multi>" && val != "0") != -1) {
|
|
2453
2453
|
enterTimeCheckboxChecked = selectedTimeObj?.includeTimeRange;
|
|
2454
2454
|
}
|
|
2455
2455
|
return {
|
|
@@ -2462,11 +2462,11 @@ class AnnaFilterService {
|
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
2464
|
checkIfStartTimeIsAfterEndTime(startTime, endTime) {
|
|
2465
|
-
let timeFormat =
|
|
2466
|
-
let startTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(startTime[0] +
|
|
2467
|
-
let startTime24HrFormat = startTime24HrFormatArr[0] +
|
|
2468
|
-
let endTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(endTime[0] +
|
|
2469
|
-
let endTime24HrFormat = endTime24HrFormatArr[0] +
|
|
2465
|
+
let timeFormat = "HH:mm:ss";
|
|
2466
|
+
let startTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(startTime[0] + ":" + startTime[1] + " " + startTime[2], true);
|
|
2467
|
+
let startTime24HrFormat = startTime24HrFormatArr[0] + ":" + startTime24HrFormatArr[1] + ":00";
|
|
2468
|
+
let endTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(endTime[0] + ":" + endTime[1] + " " + endTime[2], true);
|
|
2469
|
+
let endTime24HrFormat = endTime24HrFormatArr[0] + ":" + endTime24HrFormatArr[1] + ":00";
|
|
2470
2470
|
return dayjs(startTime24HrFormat, timeFormat).isAfter(dayjs(endTime24HrFormat, timeFormat));
|
|
2471
2471
|
}
|
|
2472
2472
|
getPreviousSelectedTimeFilter() {
|
|
@@ -2481,10 +2481,10 @@ class AnnaFilterService {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
getCurrentSelectedTimeFilter(startTime, endTime, includeMulti, includeZero, includeTimeRange) {
|
|
2483
2483
|
let currentSelectedTimeFilter;
|
|
2484
|
-
let fromTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(startTime[0] +
|
|
2485
|
-
let fromTime24HrFormat = fromTime24HrFormatArr[0] +
|
|
2486
|
-
let toTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(endTime[0] +
|
|
2487
|
-
let toTime24HrFormat = toTime24HrFormatArr[0] +
|
|
2484
|
+
let fromTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(startTime[0] + ":" + startTime[1] + " " + startTime[2], true);
|
|
2485
|
+
let fromTime24HrFormat = fromTime24HrFormatArr[0] + ":" + fromTime24HrFormatArr[1] + ":00";
|
|
2486
|
+
let toTime24HrFormatArr = this.dateTimeFormatService.convertTotwentyFourHrsFormat(endTime[0] + ":" + endTime[1] + " " + endTime[2], true);
|
|
2487
|
+
let toTime24HrFormat = toTime24HrFormatArr[0] + ":" + toTime24HrFormatArr[1] + ":00";
|
|
2488
2488
|
currentSelectedTimeFilter = {
|
|
2489
2489
|
fromTime: fromTime24HrFormat,
|
|
2490
2490
|
toTime: toTime24HrFormat,
|
|
@@ -2495,7 +2495,7 @@ class AnnaFilterService {
|
|
|
2495
2495
|
return currentSelectedTimeFilter;
|
|
2496
2496
|
}
|
|
2497
2497
|
incrementHourInput(arr) {
|
|
2498
|
-
if (arr[0] ==
|
|
2498
|
+
if (arr[0] == "") {
|
|
2499
2499
|
arr[0] = 1;
|
|
2500
2500
|
}
|
|
2501
2501
|
else if (parseInt(arr[0]) < 12) {
|
|
@@ -2506,7 +2506,7 @@ class AnnaFilterService {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
2508
|
decrementHourInput(arr) {
|
|
2509
|
-
if (arr[0] ==
|
|
2509
|
+
if (arr[0] == "") {
|
|
2510
2510
|
arr[0] = 12;
|
|
2511
2511
|
}
|
|
2512
2512
|
else if (parseInt(arr[0]) > 1) {
|
|
@@ -2520,31 +2520,31 @@ class AnnaFilterService {
|
|
|
2520
2520
|
// increment to nearest proper interval(15,30,45)
|
|
2521
2521
|
let min = parseInt(arr[1]);
|
|
2522
2522
|
if (min <= 14) {
|
|
2523
|
-
arr[1] =
|
|
2523
|
+
arr[1] = "15";
|
|
2524
2524
|
}
|
|
2525
2525
|
else if (min >= 15 && min <= 29) {
|
|
2526
|
-
arr[1] =
|
|
2526
|
+
arr[1] = "30";
|
|
2527
2527
|
}
|
|
2528
2528
|
else if (min >= 30 && min <= 44) {
|
|
2529
|
-
arr[1] =
|
|
2529
|
+
arr[1] = "45";
|
|
2530
2530
|
}
|
|
2531
2531
|
else if (min >= 45) {
|
|
2532
|
-
arr[1] =
|
|
2532
|
+
arr[1] = "00";
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
decrementMinuteInput(arr) {
|
|
2536
2536
|
let min = parseInt(arr[1]);
|
|
2537
2537
|
if (min > 0 && min <= 15) {
|
|
2538
|
-
arr[1] =
|
|
2538
|
+
arr[1] = "00";
|
|
2539
2539
|
}
|
|
2540
2540
|
else if (min >= 16 && min <= 30) {
|
|
2541
|
-
arr[1] =
|
|
2541
|
+
arr[1] = "15";
|
|
2542
2542
|
}
|
|
2543
2543
|
else if (min >= 31 && min <= 45) {
|
|
2544
|
-
arr[1] =
|
|
2544
|
+
arr[1] = "30";
|
|
2545
2545
|
}
|
|
2546
2546
|
else if (min > 45 || min == 0) {
|
|
2547
|
-
arr[1] =
|
|
2547
|
+
arr[1] = "45";
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
2550
|
incrementOrDecrementHour(increment, time) {
|
|
@@ -2564,10 +2564,10 @@ class AnnaFilterService {
|
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
2566
|
isHourValueInvalid(hr) {
|
|
2567
|
-
return hr.length == 0 || !+hr || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes(
|
|
2567
|
+
return hr.length == 0 || !+hr || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes(".");
|
|
2568
2568
|
}
|
|
2569
2569
|
isMinuteValueInvalid(min) {
|
|
2570
|
-
return (min.length != 2 || (!+min && min !=
|
|
2570
|
+
return (min.length != 2 || (!+min && min != "00") || 0 > parseInt(min) || parseInt(min) > 59 || min.includes("."));
|
|
2571
2571
|
}
|
|
2572
2572
|
//=============================================================SORT======================================================================//
|
|
2573
2573
|
updateSortMap(tempSortOrder, tableData, isLurAndCsrComponent) {
|
|
@@ -2577,12 +2577,12 @@ class AnnaFilterService {
|
|
|
2577
2577
|
return sortedTableData;
|
|
2578
2578
|
}
|
|
2579
2579
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterService, deps: [{ token: AnnaDateTimeFormatService }, { token: AnnaSortService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2580
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterService, providedIn:
|
|
2580
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterService, providedIn: "root" }); }
|
|
2581
2581
|
}
|
|
2582
2582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFilterService, decorators: [{
|
|
2583
2583
|
type: Injectable,
|
|
2584
2584
|
args: [{
|
|
2585
|
-
providedIn:
|
|
2585
|
+
providedIn: "root",
|
|
2586
2586
|
}]
|
|
2587
2587
|
}], ctorParameters: function () { return [{ type: AnnaDateTimeFormatService }, { type: AnnaSortService }]; } });
|
|
2588
2588
|
|
|
@@ -2596,22 +2596,22 @@ class AnnaSortComponent {
|
|
|
2596
2596
|
{
|
|
2597
2597
|
sortType: SortTypeEnum.ASC,
|
|
2598
2598
|
isOptionActive: false,
|
|
2599
|
-
text:
|
|
2599
|
+
text: "A to Z",
|
|
2600
2600
|
},
|
|
2601
2601
|
{
|
|
2602
2602
|
sortType: SortTypeEnum.DESC,
|
|
2603
2603
|
isOptionActive: false,
|
|
2604
|
-
text:
|
|
2604
|
+
text: "Z to A",
|
|
2605
2605
|
},
|
|
2606
2606
|
{
|
|
2607
2607
|
sortType: SortTypeEnum.DEFAULT,
|
|
2608
2608
|
isOptionActive: false,
|
|
2609
|
-
text:
|
|
2609
|
+
text: "Default",
|
|
2610
2610
|
},
|
|
2611
2611
|
];
|
|
2612
2612
|
}
|
|
2613
2613
|
ngOnChanges(changes) {
|
|
2614
|
-
if (changes[
|
|
2614
|
+
if (changes["sortObjectKey"] && changes["sortObjectKey"].currentValue) {
|
|
2615
2615
|
let sortType = this.annaSortService.columnSortState.get(this.sortObjectKey);
|
|
2616
2616
|
this.setSortType(sortType);
|
|
2617
2617
|
}
|
|
@@ -2637,7 +2637,7 @@ class AnnaSortComponent {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaSortComponent, decorators: [{
|
|
2639
2639
|
type: Component,
|
|
2640
|
-
args: [{ selector:
|
|
2640
|
+
args: [{ selector: "anna-core-sort-lib", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgFor, NgClass], template: "<p class=\"sort-container\">\r\n <button\r\n class=\"sort-btn\"\r\n *ngFor=\"let option of sortOptions; let i = index\"\r\n (click)=\"sortOptionChanged(i, option.sortType)\"\r\n [ngClass]=\"{ active: option.isOptionActive }\"\r\n >\r\n {{ option.text }}\r\n </button>\r\n</p>\r\n", styles: [".sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}\n"] }]
|
|
2641
2641
|
}], ctorParameters: function () { return [{ type: AnnaSortService }]; }, propDecorators: { sortObjectKey: [{
|
|
2642
2642
|
type: Input
|
|
2643
2643
|
}], sortOptionClicked: [{
|
|
@@ -2650,8 +2650,8 @@ class AnnaColumnTimeFilterComponent {
|
|
|
2650
2650
|
this.annaDateTimeFormatService = annaDateTimeFormatService;
|
|
2651
2651
|
this.annaFilterService = annaFilterService;
|
|
2652
2652
|
this.showClearAllFilter = true;
|
|
2653
|
-
this.startFromText =
|
|
2654
|
-
this.endToText =
|
|
2653
|
+
this.startFromText = "From";
|
|
2654
|
+
this.endToText = "To";
|
|
2655
2655
|
this.isSortAndFilterAbsent = false;
|
|
2656
2656
|
this.timeChanges = new EventEmitter();
|
|
2657
2657
|
this.filterAppliedToTable = new EventEmitter();
|
|
@@ -2863,7 +2863,7 @@ class AnnaColumnTimeFilterComponent {
|
|
|
2863
2863
|
let currentSelectedTimeFilter = this.annaFilterService.getCurrentSelectedTimeFilter(this.selectedFromTime, this.selectedToTime, this.multiTimeCheckboxChecked, this.zeroTimeCheckboxChecked, this.enterTimeCheckboxChecked);
|
|
2864
2864
|
let isFiltered = this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSelectedTimeFilter);
|
|
2865
2865
|
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSelectedTimeFilter);
|
|
2866
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData,
|
|
2866
|
+
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
2867
2867
|
if (!isFiltered) {
|
|
2868
2868
|
this.annaFilterService.tooltipSelectedMap.delete(this.annaFilterService.selectedRadio);
|
|
2869
2869
|
}
|
|
@@ -2877,7 +2877,7 @@ class AnnaColumnTimeFilterComponent {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
clearColumnFilter() {
|
|
2879
2879
|
this.annaFilterService.clearColumnFilter();
|
|
2880
|
-
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData,
|
|
2880
|
+
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData, ""));
|
|
2881
2881
|
this.annaSortService.noSortingAppliedData = this.tableData;
|
|
2882
2882
|
this.tableData = this.annaSortService.checkIfSortingIsApplied(this.tableData, this.isLurAndCsrComponent);
|
|
2883
2883
|
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
@@ -2892,7 +2892,7 @@ class AnnaColumnTimeFilterComponent {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaColumnTimeFilterComponent, decorators: [{
|
|
2894
2894
|
type: Component,
|
|
2895
|
-
args: [{ selector: 'anna-core-anna-column-time-filter', standalone: true, imports: [NgIf, NgFor, NgClass, AnnaSortComponent, FormsModule, MatButtonToggleModule], template: "<div\r\n class=\"radio-container\"\r\n *ngIf=\"showFilterHeaderTabs\"\r\n>\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p\r\n class=\"filter-tab\"\r\n [title]=\"data.label\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data, true)\"\r\n [ngClass]=\"{ active: annaFilterService.selectedRadio == data.key }\"\r\n *ngIf=\"filterTabObjects.length > 0\"\r\n >\r\n {{ data.label }}\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<anna-core-sort-lib\r\n *ngIf=\"showSortComponent\"\r\n [ngClass]=\"{ 'no-bottom-border': !showFilterComponent }\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\"\r\n [sortObjectKey]=\"annaFilterService.selectedRadio\"\r\n></anna-core-sort-lib>\r\n\r\n<ng-container *ngIf=\"showFilterComponent\">\r\n <button\r\n class=\"column-clear-all\"\r\n *ngIf=\"showClearAllFilter\"\r\n [disabled]=\"disableColumnClearAllBtn\"\r\n (click)=\"clearColumnFilter()\"\r\n >\r\n Clear filter\r\n </button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"showAllTimeRangeCheckboxes\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n style=\"padding: 0.5rem 0 0.5rem 0.5rem\"\r\n *ngIf=\"showMultiTimeCheckbox\"\r\n >\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n style=\"padding: 0.5rem 0 0.5rem 0.5rem\"\r\n *ngIf=\"showZeroTimeCheckbox\"\r\n >\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n style=\"padding: 0.5rem 0 0.5rem 0.5rem\"\r\n *ngIf=\"showEnterTimeCheckbox\"\r\n >\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>{{ startFromText }}</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input\r\n class=\"form-control numberInput\"\r\n [ngClass]=\"{ 'error-border': startTimeHourErr }\"\r\n [(ngModel)]=\"selectedFromTime[0]\"\r\n type=\"text\"\r\n pattern=\"[1-12]*\"\r\n (ngModelChange)=\"startTimeHourChange($event)\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeStartTimeHour(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n (click)=\"changeStartTimeHour(false)\"\r\n ></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input\r\n class=\"form-control numberInput\"\r\n [ngClass]=\"{ 'error-border': startTimeMinErr }\"\r\n [(ngModel)]=\"selectedFromTime[1]\"\r\n type=\"text\"\r\n pattern=\"[0-59]*\"\r\n (ngModelChange)=\"startTimeMinChange($event)\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeStartTimeMinute(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n style=\"position: relative; left: 0.25px\"\r\n (click)=\"changeStartTimeMinute(false)\"\r\n ></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group\r\n [(ngModel)]=\"selectedFromTime[2]\"\r\n (ngModelChange)=\"disableTimeFilterApplyButton()\"\r\n >\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>{{ endToText }}</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input\r\n class=\"form-control numberInput\"\r\n [(ngModel)]=\"selectedToTime[0]\"\r\n [ngClass]=\"{ 'error-border': endTimeHourErr }\"\r\n (ngModelChange)=\"endTimeHourChange($event)\"\r\n type=\"text\"\r\n pattern=\"[1-12]*\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeEndTimeHour(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n (click)=\"changeEndTimeHour(false)\"\r\n ></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input\r\n class=\"form-control numberInput\"\r\n [ngClass]=\"{ 'error-border': endTimeMinErr }\"\r\n [(ngModel)]=\"selectedToTime[1]\"\r\n (ngModelChange)=\"endTimeMinChange($event)\"\r\n type=\"text\"\r\n pattern=\"[0-59]*\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeEndTimeMinute(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n style=\"position: relative; left: 0.25px\"\r\n (click)=\"changeEndTimeMinute(false)\"\r\n ></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group\r\n [(ngModel)]=\"selectedToTime[2]\"\r\n (ngModelChange)=\"disableTimeFilterApplyButton()\"\r\n >\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"buttons-container\">\r\n <button\r\n class=\"button\"\r\n (click)=\"closeTimeFilter()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n</div>\r\n", styles: [":host ::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:30px;width:42px;padding:0 10px}:host ::ng-deep .mat-button-toggle-checked{background-color:#268bff;color:#fff!important}:host ::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0;border:none!important}::ng-deep .mat-button-toggle-disabled.mat-button-toggle-checked{background:#bdbdbd!important}::ng-deep .mat-button-toggle-disabled.mat-button-toggle-checked button{color:#fff;opacity:1}::ng-deep .mat-button-toggle-appearance-standard{opacity:.5;border:solid 1px #b3b3b3}::ng-deep .mat-button-toggle-appearance-standard button{opacity:1}::ng-deep .mat-button-toggle-appearance-standard.mat-button-toggle-checked{opacity:1}.sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}#no-filter-space{width:.875rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}.hidden{display:none}\n"] }]
|
|
2895
|
+
args: [{ selector: "anna-core-anna-column-time-filter", standalone: true, imports: [NgIf, NgFor, NgClass, AnnaSortComponent, FormsModule, MatButtonToggleModule], template: "<div\r\n class=\"radio-container\"\r\n *ngIf=\"showFilterHeaderTabs\"\r\n>\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p\r\n class=\"filter-tab\"\r\n [title]=\"data.label\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data, true)\"\r\n [ngClass]=\"{ active: annaFilterService.selectedRadio == data.key }\"\r\n *ngIf=\"filterTabObjects.length > 0\"\r\n >\r\n {{ data.label }}\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<anna-core-sort-lib\r\n *ngIf=\"showSortComponent\"\r\n [ngClass]=\"{ 'no-bottom-border': !showFilterComponent }\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\"\r\n [sortObjectKey]=\"annaFilterService.selectedRadio\"\r\n></anna-core-sort-lib>\r\n\r\n<ng-container *ngIf=\"showFilterComponent\">\r\n <button\r\n class=\"column-clear-all\"\r\n *ngIf=\"showClearAllFilter\"\r\n [disabled]=\"disableColumnClearAllBtn\"\r\n (click)=\"clearColumnFilter()\"\r\n >\r\n Clear filter\r\n </button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"showAllTimeRangeCheckboxes\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n style=\"padding: 0.5rem 0 0.5rem 0.5rem\"\r\n *ngIf=\"showMultiTimeCheckbox\"\r\n >\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n style=\"padding: 0.5rem 0 0.5rem 0.5rem\"\r\n *ngIf=\"showZeroTimeCheckbox\"\r\n >\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n style=\"padding: 0.5rem 0 0.5rem 0.5rem\"\r\n *ngIf=\"showEnterTimeCheckbox\"\r\n >\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>{{ startFromText }}</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input\r\n class=\"form-control numberInput\"\r\n [ngClass]=\"{ 'error-border': startTimeHourErr }\"\r\n [(ngModel)]=\"selectedFromTime[0]\"\r\n type=\"text\"\r\n pattern=\"[1-12]*\"\r\n (ngModelChange)=\"startTimeHourChange($event)\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeStartTimeHour(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n (click)=\"changeStartTimeHour(false)\"\r\n ></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input\r\n class=\"form-control numberInput\"\r\n [ngClass]=\"{ 'error-border': startTimeMinErr }\"\r\n [(ngModel)]=\"selectedFromTime[1]\"\r\n type=\"text\"\r\n pattern=\"[0-59]*\"\r\n (ngModelChange)=\"startTimeMinChange($event)\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeStartTimeMinute(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n style=\"position: relative; left: 0.25px\"\r\n (click)=\"changeStartTimeMinute(false)\"\r\n ></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group\r\n [(ngModel)]=\"selectedFromTime[2]\"\r\n (ngModelChange)=\"disableTimeFilterApplyButton()\"\r\n >\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>{{ endToText }}</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input\r\n class=\"form-control numberInput\"\r\n [(ngModel)]=\"selectedToTime[0]\"\r\n [ngClass]=\"{ 'error-border': endTimeHourErr }\"\r\n (ngModelChange)=\"endTimeHourChange($event)\"\r\n type=\"text\"\r\n pattern=\"[1-12]*\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeEndTimeHour(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n (click)=\"changeEndTimeHour(false)\"\r\n ></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input\r\n class=\"form-control numberInput\"\r\n [ngClass]=\"{ 'error-border': endTimeMinErr }\"\r\n [(ngModel)]=\"selectedToTime[1]\"\r\n (ngModelChange)=\"endTimeMinChange($event)\"\r\n type=\"text\"\r\n pattern=\"[0-59]*\"\r\n />\r\n <div class=\"arrow-container\">\r\n <i\r\n class=\"mdi mdi-menu-up upward\"\r\n (click)=\"changeEndTimeMinute(true)\"\r\n ></i>\r\n <i\r\n class=\"mdi mdi-menu-down downward\"\r\n style=\"position: relative; left: 0.25px\"\r\n (click)=\"changeEndTimeMinute(false)\"\r\n ></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group\r\n [(ngModel)]=\"selectedToTime[2]\"\r\n (ngModelChange)=\"disableTimeFilterApplyButton()\"\r\n >\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"buttons-container\">\r\n <button\r\n class=\"button\"\r\n (click)=\"closeTimeFilter()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n</div>\r\n", styles: [":host ::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:30px;width:42px;padding:0 10px}:host ::ng-deep .mat-button-toggle-checked{background-color:#268bff;color:#fff!important}:host ::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0;border:none!important}::ng-deep .mat-button-toggle-disabled.mat-button-toggle-checked{background:#bdbdbd!important}::ng-deep .mat-button-toggle-disabled.mat-button-toggle-checked button{color:#fff;opacity:1}::ng-deep .mat-button-toggle-appearance-standard{opacity:.5;border:solid 1px #b3b3b3}::ng-deep .mat-button-toggle-appearance-standard button{opacity:1}::ng-deep .mat-button-toggle-appearance-standard.mat-button-toggle-checked{opacity:1}.sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}#no-filter-space{width:.875rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}.hidden{display:none}\n"] }]
|
|
2896
2896
|
}], ctorParameters: function () { return [{ type: AnnaSortService }, { type: AnnaDateTimeFormatService }, { type: AnnaFilterService }]; }, propDecorators: { tableData: [{
|
|
2897
2897
|
type: Input
|
|
2898
2898
|
}], clonedTableData: [{
|
|
@@ -2973,7 +2973,7 @@ class AnnaColumnDateRangeFilterComponent {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
2975
|
getCalendarData() {
|
|
2976
|
-
const parsingFormat =
|
|
2976
|
+
const parsingFormat = "MM/DD/YYYY";
|
|
2977
2977
|
let optionData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
2978
2978
|
let minMaxDate = this.annaFilterService.createRangeForTheDateFilter(optionData);
|
|
2979
2979
|
this.selectRangeForTheDateFilter(minMaxDate, parsingFormat);
|
|
@@ -3058,13 +3058,13 @@ class AnnaColumnDateRangeFilterComponent {
|
|
|
3058
3058
|
let currentSelectedDate = this.annaFilterService.getCurrentSelectedDatesForCalendar(cloneDeep(this.calendarSelection), this.calendarMinEnabledDate, this.calendarMaxEnabledDate);
|
|
3059
3059
|
this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSelectedDate);
|
|
3060
3060
|
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSelectedDate);
|
|
3061
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData,
|
|
3061
|
+
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
3062
3062
|
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
3065
|
clearColumnFilter() {
|
|
3066
3066
|
this.annaFilterService.clearColumnFilter();
|
|
3067
|
-
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData,
|
|
3067
|
+
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData, ""));
|
|
3068
3068
|
this.annaSortService.noSortingAppliedData = this.tableData;
|
|
3069
3069
|
this.tableData = this.annaSortService.checkIfSortingIsApplied(this.tableData, this.isLurAndCsrComponent);
|
|
3070
3070
|
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
@@ -3079,7 +3079,7 @@ class AnnaColumnDateRangeFilterComponent {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaColumnDateRangeFilterComponent, decorators: [{
|
|
3081
3081
|
type: Component,
|
|
3082
|
-
args: [{ selector: 'anna-core-anna-column-date-range-filter', standalone: true, imports: [NgIf, NgFor, NgClass, AnnaSortComponent, AnnaCalendarFilterComponent], template: "<div\r\n class=\"radio-container\"\r\n *ngIf=\"showFilterHeaderTabs\"\r\n>\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p\r\n class=\"filter-tab\"\r\n [title]=\"data.label\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data, true)\"\r\n [ngClass]=\"{ active: annaFilterService.selectedRadio == data.key }\"\r\n *ngIf=\"filterTabObjects.length > 0\"\r\n >\r\n {{ data.label }}\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<anna-core-sort-lib\r\n *ngIf=\"showSortComponent\"\r\n [ngClass]=\"{ 'no-bottom-border': !showFilterComponent }\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\"\r\n [sortObjectKey]=\"annaFilterService.selectedRadio\"\r\n></anna-core-sort-lib>\r\n\r\n<ng-container *ngIf=\"showFilterComponent\">\r\n <div class=\"datepicker-container\">\r\n <button\r\n class=\"column-clear-all\"\r\n [disabled]=\"disableColumnClearAllBtn\"\r\n (click)=\"clearColumnFilter()\"\r\n >\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n class=\"filter-calendar\"\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (selectedDate)=\"calendarDateChanged($event)\"\r\n [label]=\"selectedLabel\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"buttons-container\">\r\n <button\r\n class=\"button\"\r\n (click)=\"cancelInDateFilter()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n (click)=\"applyDateFilter()\"\r\n [ngClass]=\"{ disabled: disableCalendarApplyBtn }\"\r\n [disabled]=\"disableCalendarApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n</div>\r\n", styles: [".sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}\n"] }]
|
|
3082
|
+
args: [{ selector: "anna-core-anna-column-date-range-filter", standalone: true, imports: [NgIf, NgFor, NgClass, AnnaSortComponent, AnnaCalendarFilterComponent], template: "<div\r\n class=\"radio-container\"\r\n *ngIf=\"showFilterHeaderTabs\"\r\n>\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p\r\n class=\"filter-tab\"\r\n [title]=\"data.label\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data, true)\"\r\n [ngClass]=\"{ active: annaFilterService.selectedRadio == data.key }\"\r\n *ngIf=\"filterTabObjects.length > 0\"\r\n >\r\n {{ data.label }}\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<anna-core-sort-lib\r\n *ngIf=\"showSortComponent\"\r\n [ngClass]=\"{ 'no-bottom-border': !showFilterComponent }\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\"\r\n [sortObjectKey]=\"annaFilterService.selectedRadio\"\r\n></anna-core-sort-lib>\r\n\r\n<ng-container *ngIf=\"showFilterComponent\">\r\n <div class=\"datepicker-container\">\r\n <button\r\n class=\"column-clear-all\"\r\n [disabled]=\"disableColumnClearAllBtn\"\r\n (click)=\"clearColumnFilter()\"\r\n >\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n class=\"filter-calendar\"\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (selectedDate)=\"calendarDateChanged($event)\"\r\n [label]=\"selectedLabel\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"buttons-container\">\r\n <button\r\n class=\"button\"\r\n (click)=\"cancelInDateFilter()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n (click)=\"applyDateFilter()\"\r\n [ngClass]=\"{ disabled: disableCalendarApplyBtn }\"\r\n [disabled]=\"disableCalendarApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n</div>\r\n", styles: [".sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}\n"] }]
|
|
3083
3083
|
}], ctorParameters: function () { return [{ type: AnnaDateTimeFormatService }, { type: AnnaSortService }, { type: AnnaFilterService }]; }, propDecorators: { tableData: [{
|
|
3084
3084
|
type: Input
|
|
3085
3085
|
}], clonedTableData: [{
|
|
@@ -3163,10 +3163,10 @@ class AnnaColumnSliderFilterComponent {
|
|
|
3163
3163
|
let optionsData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
3164
3164
|
this.options = this.annaFilterService.getSliderOptions(optionsData, translateFunc, key);
|
|
3165
3165
|
this.options.step = 1;
|
|
3166
|
-
this.sliderFilterTextBoxStep =
|
|
3167
|
-
if (key !==
|
|
3166
|
+
this.sliderFilterTextBoxStep = "1";
|
|
3167
|
+
if (key !== "WeekNumber") {
|
|
3168
3168
|
this.options.step = 0.01;
|
|
3169
|
-
this.sliderFilterTextBoxStep =
|
|
3169
|
+
this.sliderFilterTextBoxStep = "0.01";
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
3172
|
setSelectedRangeForSlider(key) {
|
|
@@ -3179,7 +3179,7 @@ class AnnaColumnSliderFilterComponent {
|
|
|
3179
3179
|
this.closeTooltip.emit();
|
|
3180
3180
|
}
|
|
3181
3181
|
minValueChanged(val) {
|
|
3182
|
-
if (val || val ==
|
|
3182
|
+
if (val || val == "0") {
|
|
3183
3183
|
this.sliderEnteredMinValue = +val;
|
|
3184
3184
|
this.sliderEnteredMaxValue = this.sliderMaxValue;
|
|
3185
3185
|
this.isMinTextBoxEmpty = false;
|
|
@@ -3233,7 +3233,7 @@ class AnnaColumnSliderFilterComponent {
|
|
|
3233
3233
|
this.sliderEnteredMaxValue = this.sliderMaxValue;
|
|
3234
3234
|
}
|
|
3235
3235
|
maxValueChanged(val) {
|
|
3236
|
-
if (val || val ==
|
|
3236
|
+
if (val || val == "0") {
|
|
3237
3237
|
this.sliderEnteredMaxValue = +val;
|
|
3238
3238
|
this.sliderEnteredMinValue = this.sliderMinValue;
|
|
3239
3239
|
this.isMaxTextBoxEmpty = false;
|
|
@@ -3340,7 +3340,7 @@ class AnnaColumnSliderFilterComponent {
|
|
|
3340
3340
|
let currentSliderData = this.annaFilterService.getCurrentSelectedValueForSlider(this.sliderEnteredMinValue, this.sliderEnteredMaxValue, this.options);
|
|
3341
3341
|
this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSliderData);
|
|
3342
3342
|
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSliderData);
|
|
3343
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData,
|
|
3343
|
+
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
3344
3344
|
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
@@ -3371,7 +3371,7 @@ class AnnaColumnSliderFilterComponent {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
clearColumnFilter() {
|
|
3373
3373
|
this.annaFilterService.clearColumnFilter();
|
|
3374
|
-
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData,
|
|
3374
|
+
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData, ""));
|
|
3375
3375
|
this.annaSortService.noSortingAppliedData = this.tableData;
|
|
3376
3376
|
this.tableData = this.annaSortService.checkIfSortingIsApplied(this.tableData, this.isLurAndCsrComponent);
|
|
3377
3377
|
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
@@ -3382,7 +3382,7 @@ class AnnaColumnSliderFilterComponent {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaColumnSliderFilterComponent, decorators: [{
|
|
3384
3384
|
type: Component,
|
|
3385
|
-
args: [{ selector: 'anna-core-anna-column-slider-filter', standalone: true, imports: [NgIf, NgFor, NgClass, AnnaSortComponent, FormsModule, NgxSliderModule], template: "<div\r\n class=\"radio-container\"\r\n *ngIf=\"showFilterHeaderTabs\"\r\n>\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p\r\n class=\"filter-tab\"\r\n [title]=\"data.label\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data, true)\"\r\n [ngClass]=\"{ active: annaFilterService.selectedRadio == data.key }\"\r\n *ngIf=\"filterTabObjects.length > 0\"\r\n >\r\n {{ data.label }}\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<anna-core-sort-lib\r\n *ngIf=\"showSortComponent\"\r\n [ngClass]=\"{ 'no-bottom-border': !showFilterComponent }\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\"\r\n [sortObjectKey]=\"annaFilterService.selectedRadio\"\r\n></anna-core-sort-lib>\r\n\r\n<ng-container *ngIf=\"showFilterComponent\">\r\n <button\r\n class=\"column-clear-all\"\r\n [disabled]=\"disableColumnClearAllBtn\"\r\n (click)=\"clearColumnFilter()\"\r\n >\r\n Clear filter\r\n </button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n [ngClass]=\"{ 'red-border': showSliderMinValueError }\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n [ngClass]=\"{ 'red-border': showSliderMaxValueError }\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n *ngIf=\"!showEmptySpaceForSlider\"\r\n [ngClass]=\"{\r\n 'show-min': sliderMinValue != options.floor,\r\n 'show-max': sliderMaxValue != options.ceil\r\n }\"\r\n class=\"filter-slider\"\r\n [(value)]=\"sliderEnteredMinValue\"\r\n [(highValue)]=\"sliderEnteredMaxValue\"\r\n [options]=\"options\"\r\n ></ngx-slider>\r\n <div\r\n *ngIf=\"showEmptySpaceForSlider\"\r\n class=\"slider-placeholder\"\r\n ></div>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"buttons-container\">\r\n <button\r\n class=\"button\"\r\n (click)=\"cancelSliderFilter()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n</div>\r\n", styles: [".sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}\n"] }]
|
|
3385
|
+
args: [{ selector: "anna-core-anna-column-slider-filter", standalone: true, imports: [NgIf, NgFor, NgClass, AnnaSortComponent, FormsModule, NgxSliderModule], template: "<div\r\n class=\"radio-container\"\r\n *ngIf=\"showFilterHeaderTabs\"\r\n>\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p\r\n class=\"filter-tab\"\r\n [title]=\"data.label\"\r\n (click)=\"populateTooltipDataBasedOnSelectedRadio(data, true)\"\r\n [ngClass]=\"{ active: annaFilterService.selectedRadio == data.key }\"\r\n *ngIf=\"filterTabObjects.length > 0\"\r\n >\r\n {{ data.label }}\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<anna-core-sort-lib\r\n *ngIf=\"showSortComponent\"\r\n [ngClass]=\"{ 'no-bottom-border': !showFilterComponent }\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\"\r\n [sortObjectKey]=\"annaFilterService.selectedRadio\"\r\n></anna-core-sort-lib>\r\n\r\n<ng-container *ngIf=\"showFilterComponent\">\r\n <button\r\n class=\"column-clear-all\"\r\n [disabled]=\"disableColumnClearAllBtn\"\r\n (click)=\"clearColumnFilter()\"\r\n >\r\n Clear filter\r\n </button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n [ngClass]=\"{ 'red-border': showSliderMinValueError }\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n [ngClass]=\"{ 'red-border': showSliderMaxValueError }\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n *ngIf=\"!showEmptySpaceForSlider\"\r\n [ngClass]=\"{\r\n 'show-min': sliderMinValue != options.floor,\r\n 'show-max': sliderMaxValue != options.ceil\r\n }\"\r\n class=\"filter-slider\"\r\n [(value)]=\"sliderEnteredMinValue\"\r\n [(highValue)]=\"sliderEnteredMaxValue\"\r\n [options]=\"options\"\r\n ></ngx-slider>\r\n <div\r\n *ngIf=\"showEmptySpaceForSlider\"\r\n class=\"slider-placeholder\"\r\n ></div>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"buttons-container\">\r\n <button\r\n class=\"button\"\r\n (click)=\"cancelSliderFilter()\"\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n</div>\r\n", styles: [".sort-btn{background:#fff;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:230px;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:pre;width:100%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1;width:50%}div.radio-container div.full-width{width:100%}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.checkbox-filter-buttons-container{padding:0 8px!important}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center;padding:0 12px}.buttons-container .button{padding:0 10px;width:100%;margin:8px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.buttons-container button:last-of-type{background-color:#268bff;color:#fff;margin-left:.5rem}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 8px .188rem .5rem}.search-box .search-bar-close{margin-left:auto;float:right}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8;width:calc(100% - 38px)}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}cdk-virtual-scroll-viewport.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}cdk-virtual-scroll-viewport.dropdown-data-container p.input{margin-left:0}cdk-virtual-scroll-viewport.dropdown-data-container p.input span.mi{padding-left:.4375rem}cdk-virtual-scroll-viewport.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar{width:.188rem}cdk-virtual-scroll-viewport.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3;background:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:0 .75rem}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container input.numberInput:focus{box-shadow:none;border-color:#c2cfd6}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;margin-top:.375rem;width:9px;height:18px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#000;cursor:pointer;max-height:9px;font-size:25px;width:10px}.time-container div.arrow-container i:before{width:0;height:0;pointer-events:none;position:relative;left:-9px;top:-11px}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.125rem;margin-left:.75rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a;font-weight:400}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:#fff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:283px!important;overflow-y:initial!important;padding:0!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important;padding:0!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important;padding:0!important}::ng-deep .non-edit-time-tooltip.bs-tooltip-start{padding:.4rem}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow{right:0;top:5px!important;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}::ng-deep .non-edit-time-tooltip.bs-tooltip-start .tooltip-arrow:before{border-left-color:#fff;left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height)}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}::ng-deep .ngx-slider-pointer-min:after{display:none}::ng-deep .ngx-slider-pointer-max:after{display:none}::ng-deep .ngx-slider span.ngx-slider-pointer{width:12px;height:12px;top:-5px;background-color:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bar{height:3px;background:#ededed}::ng-deep .ngx-slider span.ngx-slider-selection{background:#bdbdbd}::ng-deep .ngx-slider span.ngx-slider-bubble{bottom:-22px;font-size:12px;color:#333}::ng-deep .show-min.ngx-slider span.ngx-slider-model-value{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{background:#fff;box-shadow:none}::ng-deep .ngx-slider span.ngx-slider-combined{background:#fff;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003}::ng-deep .ngx-slider{top:10px!important;margin:5px 0 2px!important}::ng-deep .ngx-slider-animate{top:0!important}.sidebar-slider{margin-bottom:35px!important;margin-left:5px;margin-right:5px}.slider-placeholder{height:14px}::ng-deep .filter-calendar select.form-select:focus{border-color:#c2cfd6;box-shadow:none}::ng-deep .filter-calendar select.form-select{background-color:#fff}.no-data-case{padding-left:.4375rem!important;font-size:.875rem!important;margin-top:10px!important;cursor:pointer}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}\n"] }]
|
|
3386
3386
|
}], ctorParameters: function () { return [{ type: AnnaFilterService }, { type: AnnaSortService }]; }, propDecorators: { filterTabObjects: [{
|
|
3387
3387
|
type: Input
|
|
3388
3388
|
}], isLurAndCsrComponent: [{
|
|
@@ -3447,7 +3447,7 @@ class AnnaColumnCheckboxFilterComponent {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
getCheckboxData(header) {
|
|
3449
3449
|
let tooltipOptions = this.createListForCheckboxFilter(header);
|
|
3450
|
-
let [clonedTooltipOptions, updatedTooltipOptions, selectedItems, unselectedItems] = this.annaFilterService.getClonedTooltipAndTooltipOption(tooltipOptions,
|
|
3450
|
+
let [clonedTooltipOptions, updatedTooltipOptions, selectedItems, unselectedItems] = this.annaFilterService.getClonedTooltipAndTooltipOption(tooltipOptions, "label");
|
|
3451
3451
|
this.clonedTooltipOptions = clonedTooltipOptions;
|
|
3452
3452
|
this.tooltipOptions = updatedTooltipOptions;
|
|
3453
3453
|
this.heightOfCheckboxTooltipFilter = this.annaFilterService.getHeightOfCheckboxTooltipFilter(this.tooltipOptions.length, this.margin);
|
|
@@ -3552,7 +3552,7 @@ class AnnaColumnCheckboxFilterComponent {
|
|
|
3552
3552
|
let currentSelectedValue = this.annaFilterService.getCheckboxCurrentSelectedValue(this.searchItem, this.tooltipOptions);
|
|
3553
3553
|
this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSelectedValue);
|
|
3554
3554
|
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSelectedValue);
|
|
3555
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData,
|
|
3555
|
+
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
3556
3556
|
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
@@ -3601,8 +3601,8 @@ class AnnaColumnCheckboxFilterComponent {
|
|
|
3601
3601
|
this.toolTipdata = null;
|
|
3602
3602
|
}
|
|
3603
3603
|
clearSearchedItem() {
|
|
3604
|
-
this.searchItem =
|
|
3605
|
-
this.searchForTheItem(
|
|
3604
|
+
this.searchItem = "";
|
|
3605
|
+
this.searchForTheItem("");
|
|
3606
3606
|
}
|
|
3607
3607
|
storeSortTypeInTempVariable(event) {
|
|
3608
3608
|
this.tempSortOrder = event;
|
|
@@ -3613,7 +3613,7 @@ class AnnaColumnCheckboxFilterComponent {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaColumnCheckboxFilterComponent, decorators: [{
|
|
3615
3615
|
type: Component,
|
|
3616
|
-
args: [{ selector:
|
|
3616
|
+
args: [{ selector: "anna-core-anna-column-checkbox-filter", standalone: true, imports: [
|
|
3617
3617
|
NgIf,
|
|
3618
3618
|
NgFor,
|
|
3619
3619
|
NgClass,
|
|
@@ -3683,8 +3683,8 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3683
3683
|
this.editableInputEdited = new EventEmitter();
|
|
3684
3684
|
this.radioButtonMessageIconClicked = new EventEmitter();
|
|
3685
3685
|
this.numberOfSkeletonRows = Array(20).fill(0);
|
|
3686
|
-
this.noDataWidth =
|
|
3687
|
-
this.filterAlignment =
|
|
3686
|
+
this.noDataWidth = "50%";
|
|
3687
|
+
this.filterAlignment = "bottom auto";
|
|
3688
3688
|
this.disableColumnClearAllBtn = true;
|
|
3689
3689
|
this.margin = 5;
|
|
3690
3690
|
this.tableColumns = [];
|
|
@@ -3692,7 +3692,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3692
3692
|
this.isScrolledLeft = false;
|
|
3693
3693
|
this.rowBorderWidth = 2;
|
|
3694
3694
|
this.isScrollEnded = true;
|
|
3695
|
-
this.marginTop =
|
|
3695
|
+
this.marginTop = "";
|
|
3696
3696
|
this.start = 0;
|
|
3697
3697
|
this.end = this.limit + this.start;
|
|
3698
3698
|
this.isNoDataToDisplaySubject$ = new BehaviorSubject(false);
|
|
@@ -3713,8 +3713,8 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3713
3713
|
}
|
|
3714
3714
|
ngOnChanges(changes) {
|
|
3715
3715
|
if (changes &&
|
|
3716
|
-
changes[
|
|
3717
|
-
changes[
|
|
3716
|
+
changes["gtDimension"] &&
|
|
3717
|
+
changes["gtDimension"].currentValue &&
|
|
3718
3718
|
this.setTableHeightWhenRowSizeIsFixed) {
|
|
3719
3719
|
this.setTableHeight();
|
|
3720
3720
|
this.setTableBottomBorder();
|
|
@@ -3725,9 +3725,9 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3725
3725
|
this.isNoDataToDisplaySubject$.next(false);
|
|
3726
3726
|
this.setTableBottomBorder();
|
|
3727
3727
|
}
|
|
3728
|
-
else if (changes[
|
|
3729
|
-
changes[
|
|
3730
|
-
(changes[
|
|
3728
|
+
else if (changes["percentDone"] ||
|
|
3729
|
+
changes["downloadInProgress"] ||
|
|
3730
|
+
(changes["starredInProgress"] && changes["starredInProgress"].currentValue != undefined)) {
|
|
3731
3731
|
//no task will be performed
|
|
3732
3732
|
}
|
|
3733
3733
|
else {
|
|
@@ -3738,7 +3738,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3738
3738
|
(this.tableData.length == 2 && this.checkIfAllTheElementsAreZero())) {
|
|
3739
3739
|
this.tableData = Array(2).fill(0);
|
|
3740
3740
|
this.renderedData = cloneDeep(this.tableData);
|
|
3741
|
-
this.marginTop = -this.gtDimension.rowHeight - this.gtDimension.rowHeight / 2 +
|
|
3741
|
+
this.marginTop = -this.gtDimension.rowHeight - this.gtDimension.rowHeight / 2 + "px";
|
|
3742
3742
|
this.isNoDataToDisplaySubject$.next(true);
|
|
3743
3743
|
}
|
|
3744
3744
|
else {
|
|
@@ -3748,15 +3748,15 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3748
3748
|
this.setTableBottomBorder();
|
|
3749
3749
|
}
|
|
3750
3750
|
//setting table column here as well because while showing skeleton loader, we should show table headers.
|
|
3751
|
-
if (changes[
|
|
3752
|
-
!isEqual(changes[
|
|
3751
|
+
if (changes["tableHeaders"] &&
|
|
3752
|
+
!isEqual(changes["tableHeaders"].currentValue, changes["tableHeaders"].previousValue)) {
|
|
3753
3753
|
this.tableColumns = this.tableHeaders.filter((x) => x.visible).map((x) => x.headerInfo[0].objectKey);
|
|
3754
3754
|
this.annaSortService.columnSortState = new Map();
|
|
3755
3755
|
this.annaFilterService.initialValueMap = new Map();
|
|
3756
3756
|
// this.setColumnSortStateMap();
|
|
3757
3757
|
this.setActiveStateObject();
|
|
3758
3758
|
}
|
|
3759
|
-
if (changes[
|
|
3759
|
+
if (changes["totalRowInfo"] && changes["totalRowInfo"].currentValue) {
|
|
3760
3760
|
this.totalRowColumns = this.totalRowInfo.map((x) => x.colName);
|
|
3761
3761
|
}
|
|
3762
3762
|
this.cdRef.detectChanges();
|
|
@@ -3764,10 +3764,10 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3764
3764
|
setFilterAlignmentBasedOnScreenResolution() {
|
|
3765
3765
|
let viewportHeight = window.innerHeight;
|
|
3766
3766
|
if (viewportHeight < 740) {
|
|
3767
|
-
this.filterAlignment =
|
|
3767
|
+
this.filterAlignment = "left right";
|
|
3768
3768
|
}
|
|
3769
3769
|
else {
|
|
3770
|
-
this.filterAlignment =
|
|
3770
|
+
this.filterAlignment = "bottom left right";
|
|
3771
3771
|
}
|
|
3772
3772
|
}
|
|
3773
3773
|
setTableBottomBorder() {
|
|
@@ -3775,7 +3775,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3775
3775
|
this.tableData &&
|
|
3776
3776
|
this.tableData.length &&
|
|
3777
3777
|
this.maximumRowsWhichCanBeRenderedWithoutScroll < this.tableData.length) {
|
|
3778
|
-
this.tableBottomBorderClass =
|
|
3778
|
+
this.tableBottomBorderClass = "bottom-border";
|
|
3779
3779
|
}
|
|
3780
3780
|
else {
|
|
3781
3781
|
this.tableBottomBorderClass = null;
|
|
@@ -3815,202 +3815,202 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3815
3815
|
}
|
|
3816
3816
|
setTooltipRadioNames() {
|
|
3817
3817
|
this.tooltipRadioTextMap = new Map();
|
|
3818
|
-
this.tooltipRadioTextMap.set(
|
|
3819
|
-
this.tooltipRadioTextMap.set(
|
|
3820
|
-
this.tooltipRadioTextMap.set(
|
|
3821
|
-
this.tooltipRadioTextMap.set(
|
|
3822
|
-
this.tooltipRadioTextMap.set(
|
|
3823
|
-
this.tooltipRadioTextMap.set(
|
|
3824
|
-
this.tooltipRadioTextMap.set(
|
|
3825
|
-
this.tooltipRadioTextMap.set(
|
|
3826
|
-
this.tooltipRadioTextMap.set(
|
|
3827
|
-
this.tooltipRadioTextMap.set(
|
|
3828
|
-
this.tooltipRadioTextMap.set(
|
|
3829
|
-
this.tooltipRadioTextMap.set(
|
|
3830
|
-
this.tooltipRadioTextMap.set(
|
|
3831
|
-
this.tooltipRadioTextMap.set(
|
|
3832
|
-
this.tooltipRadioTextMap.set(
|
|
3833
|
-
this.tooltipRadioTextMap.set(
|
|
3834
|
-
this.tooltipRadioTextMap.set(
|
|
3835
|
-
this.tooltipRadioTextMap.set(
|
|
3836
|
-
this.tooltipRadioTextMap.set(
|
|
3837
|
-
this.tooltipRadioTextMap.set(
|
|
3838
|
-
this.tooltipRadioTextMap.set(
|
|
3839
|
-
this.tooltipRadioTextMap.set(
|
|
3840
|
-
this.tooltipRadioTextMap.set(
|
|
3841
|
-
this.tooltipRadioTextMap.set(
|
|
3842
|
-
this.tooltipRadioTextMap.set(
|
|
3843
|
-
this.tooltipRadioTextMap.set(
|
|
3844
|
-
this.tooltipRadioTextMap.set(
|
|
3845
|
-
this.tooltipRadioTextMap.set(
|
|
3846
|
-
this.tooltipRadioTextMap.set(
|
|
3847
|
-
this.tooltipRadioTextMap.set(
|
|
3848
|
-
this.tooltipRadioTextMap.set(
|
|
3849
|
-
this.tooltipRadioTextMap.set(
|
|
3850
|
-
this.tooltipRadioTextMap.set(
|
|
3851
|
-
this.tooltipRadioTextMap.set(
|
|
3852
|
-
this.tooltipRadioTextMap.set(
|
|
3853
|
-
this.tooltipRadioTextMap.set(
|
|
3854
|
-
this.tooltipRadioTextMap.set(
|
|
3855
|
-
this.tooltipRadioTextMap.set(
|
|
3856
|
-
this.tooltipRadioTextMap.set(
|
|
3857
|
-
this.tooltipRadioTextMap.set(
|
|
3858
|
-
this.tooltipRadioTextMap.set(
|
|
3859
|
-
this.tooltipRadioTextMap.set(
|
|
3860
|
-
this.tooltipRadioTextMap.set(
|
|
3861
|
-
this.tooltipRadioTextMap.set(
|
|
3862
|
-
this.tooltipRadioTextMap.set(
|
|
3863
|
-
this.tooltipRadioTextMap.set(
|
|
3864
|
-
this.tooltipRadioTextMap.set(
|
|
3865
|
-
this.tooltipRadioTextMap.set(
|
|
3866
|
-
this.tooltipRadioTextMap.set(
|
|
3867
|
-
this.tooltipRadioTextMap.set(
|
|
3868
|
-
this.tooltipRadioTextMap.set(
|
|
3869
|
-
this.tooltipRadioTextMap.set(
|
|
3870
|
-
this.tooltipRadioTextMap.set(
|
|
3871
|
-
this.tooltipRadioTextMap.set(
|
|
3872
|
-
this.tooltipRadioTextMap.set(
|
|
3873
|
-
this.tooltipRadioTextMap.set(
|
|
3874
|
-
this.tooltipRadioTextMap.set(
|
|
3875
|
-
this.tooltipRadioTextMap.set(
|
|
3876
|
-
this.tooltipRadioTextMap.set(
|
|
3877
|
-
this.tooltipRadioTextMap.set(
|
|
3878
|
-
this.tooltipRadioTextMap.set(
|
|
3879
|
-
this.tooltipRadioTextMap.set(
|
|
3880
|
-
this.tooltipRadioTextMap.set(
|
|
3881
|
-
this.tooltipRadioTextMap.set(
|
|
3882
|
-
this.tooltipRadioTextMap.set(
|
|
3883
|
-
this.tooltipRadioTextMap.set(
|
|
3884
|
-
this.tooltipRadioTextMap.set(
|
|
3885
|
-
this.tooltipRadioTextMap.set(
|
|
3886
|
-
this.tooltipRadioTextMap.set(
|
|
3887
|
-
this.tooltipRadioTextMap.set(
|
|
3888
|
-
this.tooltipRadioTextMap.set(
|
|
3889
|
-
this.tooltipRadioTextMap.set(
|
|
3890
|
-
this.tooltipRadioTextMap.set(
|
|
3891
|
-
this.tooltipRadioTextMap.set(
|
|
3892
|
-
this.tooltipRadioTextMap.set(
|
|
3893
|
-
this.tooltipRadioTextMap.set(
|
|
3894
|
-
this.tooltipRadioTextMap.set(
|
|
3895
|
-
this.tooltipRadioTextMap.set(
|
|
3896
|
-
this.tooltipRadioTextMap.set(
|
|
3897
|
-
this.tooltipRadioTextMap.set(
|
|
3898
|
-
this.tooltipRadioTextMap.set(
|
|
3899
|
-
this.tooltipRadioTextMap.set(
|
|
3900
|
-
this.tooltipRadioTextMap.set(
|
|
3901
|
-
this.tooltipRadioTextMap.set(
|
|
3902
|
-
this.tooltipRadioTextMap.set(
|
|
3903
|
-
this.tooltipRadioTextMap.set(
|
|
3904
|
-
this.tooltipRadioTextMap.set(
|
|
3905
|
-
this.tooltipRadioTextMap.set(
|
|
3906
|
-
this.tooltipRadioTextMap.set(
|
|
3907
|
-
this.tooltipRadioTextMap.set(
|
|
3908
|
-
this.tooltipRadioTextMap.set(
|
|
3909
|
-
this.tooltipRadioTextMap.set(
|
|
3910
|
-
this.tooltipRadioTextMap.set(
|
|
3911
|
-
this.tooltipRadioTextMap.set(
|
|
3912
|
-
this.tooltipRadioTextMap.set(
|
|
3913
|
-
this.tooltipRadioTextMap.set(
|
|
3914
|
-
this.tooltipRadioTextMap.set(
|
|
3915
|
-
this.tooltipRadioTextMap.set(
|
|
3916
|
-
this.tooltipRadioTextMap.set(
|
|
3917
|
-
this.tooltipRadioTextMap.set(
|
|
3918
|
-
this.tooltipRadioTextMap.set(
|
|
3919
|
-
this.tooltipRadioTextMap.set(
|
|
3920
|
-
this.tooltipRadioTextMap.set(
|
|
3921
|
-
this.tooltipRadioTextMap.set(
|
|
3922
|
-
this.tooltipRadioTextMap.set(
|
|
3923
|
-
this.tooltipRadioTextMap.set(
|
|
3924
|
-
this.tooltipRadioTextMap.set(
|
|
3925
|
-
this.tooltipRadioTextMap.set(
|
|
3926
|
-
this.tooltipRadioTextMap.set(
|
|
3927
|
-
this.tooltipRadioTextMap.set(
|
|
3928
|
-
this.tooltipRadioTextMap.set(
|
|
3929
|
-
this.tooltipRadioTextMap.set(
|
|
3930
|
-
this.tooltipRadioTextMap.set(
|
|
3931
|
-
this.tooltipRadioTextMap.set(
|
|
3932
|
-
this.tooltipRadioTextMap.set(
|
|
3933
|
-
this.tooltipRadioTextMap.set(
|
|
3934
|
-
this.tooltipRadioTextMap.set(
|
|
3935
|
-
this.tooltipRadioTextMap.set(
|
|
3936
|
-
this.tooltipRadioTextMap.set(
|
|
3937
|
-
this.tooltipRadioTextMap.set(
|
|
3938
|
-
this.tooltipRadioTextMap.set(
|
|
3939
|
-
this.tooltipRadioTextMap.set(
|
|
3940
|
-
this.tooltipRadioTextMap.set(
|
|
3941
|
-
this.tooltipRadioTextMap.set(
|
|
3942
|
-
this.tooltipRadioTextMap.set(
|
|
3943
|
-
this.tooltipRadioTextMap.set(
|
|
3944
|
-
this.tooltipRadioTextMap.set(
|
|
3945
|
-
this.tooltipRadioTextMap.set(
|
|
3946
|
-
this.tooltipRadioTextMap.set(
|
|
3947
|
-
this.tooltipRadioTextMap.set(
|
|
3948
|
-
this.tooltipRadioTextMap.set(
|
|
3949
|
-
this.tooltipRadioTextMap.set(
|
|
3950
|
-
this.tooltipRadioTextMap.set(
|
|
3951
|
-
this.tooltipRadioTextMap.set(
|
|
3952
|
-
this.tooltipRadioTextMap.set(
|
|
3953
|
-
this.tooltipRadioTextMap.set(
|
|
3954
|
-
this.tooltipRadioTextMap.set(
|
|
3955
|
-
this.tooltipRadioTextMap.set(
|
|
3956
|
-
this.tooltipRadioTextMap.set(
|
|
3957
|
-
this.tooltipRadioTextMap.set(
|
|
3958
|
-
this.tooltipRadioTextMap.set(
|
|
3959
|
-
this.tooltipRadioTextMap.set(
|
|
3960
|
-
this.tooltipRadioTextMap.set(
|
|
3961
|
-
this.tooltipRadioTextMap.set(
|
|
3962
|
-
this.tooltipRadioTextMap.set(
|
|
3963
|
-
this.tooltipRadioTextMap.set(
|
|
3964
|
-
this.tooltipRadioTextMap.set(
|
|
3965
|
-
this.tooltipRadioTextMap.set(
|
|
3966
|
-
this.tooltipRadioTextMap.set(
|
|
3967
|
-
this.tooltipRadioTextMap.set(
|
|
3968
|
-
this.tooltipRadioTextMap.set(
|
|
3969
|
-
this.tooltipRadioTextMap.set(
|
|
3970
|
-
this.tooltipRadioTextMap.set(
|
|
3971
|
-
this.tooltipRadioTextMap.set(
|
|
3972
|
-
this.tooltipRadioTextMap.set(
|
|
3973
|
-
this.tooltipRadioTextMap.set(
|
|
3974
|
-
this.tooltipRadioTextMap.set(
|
|
3975
|
-
this.tooltipRadioTextMap.set(
|
|
3976
|
-
this.tooltipRadioTextMap.set(
|
|
3977
|
-
this.tooltipRadioTextMap.set(
|
|
3978
|
-
this.tooltipRadioTextMap.set(
|
|
3979
|
-
this.tooltipRadioTextMap.set(
|
|
3980
|
-
this.tooltipRadioTextMap.set(
|
|
3981
|
-
this.tooltipRadioTextMap.set(
|
|
3982
|
-
this.tooltipRadioTextMap.set(
|
|
3983
|
-
this.tooltipRadioTextMap.set(
|
|
3984
|
-
this.tooltipRadioTextMap.set(
|
|
3985
|
-
this.tooltipRadioTextMap.set(
|
|
3986
|
-
this.tooltipRadioTextMap.set(
|
|
3987
|
-
this.tooltipRadioTextMap.set(
|
|
3988
|
-
this.tooltipRadioTextMap.set(
|
|
3989
|
-
this.tooltipRadioTextMap.set(
|
|
3990
|
-
this.tooltipRadioTextMap.set(
|
|
3991
|
-
this.tooltipRadioTextMap.set(
|
|
3992
|
-
this.tooltipRadioTextMap.set(
|
|
3993
|
-
this.tooltipRadioTextMap.set(
|
|
3994
|
-
this.tooltipRadioTextMap.set(
|
|
3995
|
-
this.tooltipRadioTextMap.set(
|
|
3996
|
-
this.tooltipRadioTextMap.set(
|
|
3997
|
-
this.tooltipRadioTextMap.set(
|
|
3998
|
-
this.tooltipRadioTextMap.set(
|
|
3818
|
+
this.tooltipRadioTextMap.set("StartTimeForFilter", "Start Time");
|
|
3819
|
+
this.tooltipRadioTextMap.set("EndTimeForFilter", "End Time");
|
|
3820
|
+
this.tooltipRadioTextMap.set("startTimeForFilter", "Start Time");
|
|
3821
|
+
this.tooltipRadioTextMap.set("endTimeForFilter", "End Time");
|
|
3822
|
+
this.tooltipRadioTextMap.set("start_time_for_filter", "Start Time");
|
|
3823
|
+
this.tooltipRadioTextMap.set("end_time_for_filter", "End Time");
|
|
3824
|
+
this.tooltipRadioTextMap.set("primaryAEName", "Primary AE");
|
|
3825
|
+
this.tooltipRadioTextMap.set("region", "Region");
|
|
3826
|
+
this.tooltipRadioTextMap.set("agencyName", "Agency");
|
|
3827
|
+
this.tooltipRadioTextMap.set("location", "Location");
|
|
3828
|
+
this.tooltipRadioTextMap.set("advertiserName", "Advertiser");
|
|
3829
|
+
this.tooltipRadioTextMap.set("productCode", "Product Code");
|
|
3830
|
+
this.tooltipRadioTextMap.set("flightStartDate", "Start Date");
|
|
3831
|
+
this.tooltipRadioTextMap.set("flightEndDate", "End Date");
|
|
3832
|
+
this.tooltipRadioTextMap.set("orderIdAndRevNumber", "STN Order#-Rev#");
|
|
3833
|
+
this.tooltipRadioTextMap.set("stationOrderNumber", "STN Order#");
|
|
3834
|
+
this.tooltipRadioTextMap.set("alternateOrderId", "Alt/Rep Order #");
|
|
3835
|
+
this.tooltipRadioTextMap.set("grp", "GRP");
|
|
3836
|
+
this.tooltipRadioTextMap.set("cpp", "CPP");
|
|
3837
|
+
this.tooltipRadioTextMap.set("imps", "IMPS");
|
|
3838
|
+
this.tooltipRadioTextMap.set("cpm", "CPM");
|
|
3839
|
+
this.tooltipRadioTextMap.set("offeredMGs", "Offered MG");
|
|
3840
|
+
this.tooltipRadioTextMap.set("outstandingPE", "O/S PE");
|
|
3841
|
+
this.tooltipRadioTextMap.set("offeredADUs", "Offered ADUs");
|
|
3842
|
+
this.tooltipRadioTextMap.set("udDeficitValue", "O/S Aud Delta");
|
|
3843
|
+
this.tooltipRadioTextMap.set("startEndTimeMulti", "Time");
|
|
3844
|
+
this.tooltipRadioTextMap.set("bookedValue", "Booked");
|
|
3845
|
+
this.tooltipRadioTextMap.set("bookedSpots", "Spots");
|
|
3846
|
+
this.tooltipRadioTextMap.set("UserCreditedValue", "User Credited");
|
|
3847
|
+
this.tooltipRadioTextMap.set("UserUnresolvedValue", "User Unresolved");
|
|
3848
|
+
this.tooltipRadioTextMap.set("BuyerAddedValue", "Buyer Added");
|
|
3849
|
+
this.tooltipRadioTextMap.set("BuyerDeletedValue", "Buyer Deleted");
|
|
3850
|
+
this.tooltipRadioTextMap.set("userChanges", "User Changes");
|
|
3851
|
+
this.tooltipRadioTextMap.set("buyerChanges", "Buyer Changes");
|
|
3852
|
+
this.tooltipRadioTextMap.set("userMG", "User MG");
|
|
3853
|
+
this.tooltipRadioTextMap.set("userADUs", "User ADUs");
|
|
3854
|
+
this.tooltipRadioTextMap.set("inventoryCode", "Inventory Code");
|
|
3855
|
+
this.tooltipRadioTextMap.set("program", "Program");
|
|
3856
|
+
this.tooltipRadioTextMap.set("agency", "Agency");
|
|
3857
|
+
this.tooltipRadioTextMap.set("advertiser", "Advertiser");
|
|
3858
|
+
this.tooltipRadioTextMap.set("startDate", "Start Date");
|
|
3859
|
+
this.tooltipRadioTextMap.set("endDate", "End Date");
|
|
3860
|
+
this.tooltipRadioTextMap.set("date", "Date");
|
|
3861
|
+
this.tooltipRadioTextMap.set("rcvPreempt", "$ Madegood PEs");
|
|
3862
|
+
this.tooltipRadioTextMap.set("osPreempt", "$ O/S PEs");
|
|
3863
|
+
this.tooltipRadioTextMap.set("rcvUnderDly", "Recovered UD");
|
|
3864
|
+
this.tooltipRadioTextMap.set("osUnderDly", "O/s Under Dly");
|
|
3865
|
+
this.tooltipRadioTextMap.set("primaryAe", "Primary AE");
|
|
3866
|
+
this.tooltipRadioTextMap.set("region", "Region");
|
|
3867
|
+
this.tooltipRadioTextMap.set("revCode1", "Rev code 1");
|
|
3868
|
+
this.tooltipRadioTextMap.set("orderNoRevNo", "STN Order#-Rev#");
|
|
3869
|
+
this.tooltipRadioTextMap.set("revCode2", "Rev code 2");
|
|
3870
|
+
this.tooltipRadioTextMap.set("revCode3", "Rev code 3");
|
|
3871
|
+
this.tooltipRadioTextMap.set("booked", "$ Booked");
|
|
3872
|
+
this.tooltipRadioTextMap.set("spots", "Spots");
|
|
3873
|
+
this.tooltipRadioTextMap.set("postedAudPercent", "Posted %");
|
|
3874
|
+
this.tooltipRadioTextMap.set("revision", "Revision");
|
|
3875
|
+
this.tooltipRadioTextMap.set("buyerOrderId", "ALT/REP Order#");
|
|
3876
|
+
this.tooltipRadioTextMap.set("demo", "Demo");
|
|
3877
|
+
this.tooltipRadioTextMap.set("postedAdu", "$ Posted ADUs");
|
|
3878
|
+
this.tooltipRadioTextMap.set("scheduledAdu", "$ Scheduled ADUs");
|
|
3879
|
+
this.tooltipRadioTextMap.set("audienceDeficit", "$ O/S Audience");
|
|
3880
|
+
this.tooltipRadioTextMap.set("postedAudPercent", "Posted Audience %");
|
|
3881
|
+
this.tooltipRadioTextMap.set("potentialUnitsValue", "POT Units");
|
|
3882
|
+
this.tooltipRadioTextMap.set("bookedUnitsValue", "Booked Eq Units");
|
|
3883
|
+
this.tooltipRadioTextMap.set("bookedAmountWithZeroRatingValue", "Total $ Booked");
|
|
3884
|
+
this.tooltipRadioTextMap.set("bookedAmountPercentageWithZeroRatingValue", "% Against All Demos");
|
|
3885
|
+
this.tooltipRadioTextMap.set("bookedAmountWithoutZeroRatingValue", "$Booked With Imps(’000)");
|
|
3886
|
+
this.tooltipRadioTextMap.set("bookedAmountPercentageWithoutZeroRatingValue", "% Against All Demos");
|
|
3887
|
+
this.tooltipRadioTextMap.set("totalBookedAmountValue", "Total $Booked");
|
|
3888
|
+
this.tooltipRadioTextMap.set("averageUnitRateValue", " AUR");
|
|
3889
|
+
this.tooltipRadioTextMap.set("totalBookedAmountWithRatingValue", "$Booked With Rating");
|
|
3890
|
+
this.tooltipRadioTextMap.set("averageUnitRateWithRatingValue", "AUR With Rating");
|
|
3891
|
+
this.tooltipRadioTextMap.set("totalBookedAmountWithImpressionValue", "$Booked With IMPS");
|
|
3892
|
+
this.tooltipRadioTextMap.set("averageUnitRateWithImpressionValue", "AUR With IMPS");
|
|
3893
|
+
this.tooltipRadioTextMap.set("bookedUnitsWithRatingValue", "Booked Units With Rating");
|
|
3894
|
+
this.tooltipRadioTextMap.set("postedUnitsWithRatingValue", "Posted Units With Rating");
|
|
3895
|
+
this.tooltipRadioTextMap.set("bookedUnitsWithImpressionValue", "Booked Units With IMPS");
|
|
3896
|
+
this.tooltipRadioTextMap.set("postedUnitsWithImpressionValue", "Posted Units With IMPS");
|
|
3897
|
+
this.tooltipRadioTextMap.set("bookedRatings", "Booked Rating");
|
|
3898
|
+
this.tooltipRadioTextMap.set("postedRatings", "POSTED Rating");
|
|
3899
|
+
this.tooltipRadioTextMap.set("PostedRating", "Posted RTG");
|
|
3900
|
+
this.tooltipRadioTextMap.set("bookedImpressions", "Booked IMP('000)");
|
|
3901
|
+
this.tooltipRadioTextMap.set("postedImpressions", "Posted IMP('000)");
|
|
3902
|
+
this.tooltipRadioTextMap.set("PostedImpressions", "Posted IMP('000)");
|
|
3903
|
+
this.tooltipRadioTextMap.set("bookedAverageRating", "Booked AU Rating");
|
|
3904
|
+
this.tooltipRadioTextMap.set("postedAverageRating", "Posted AU Rating");
|
|
3905
|
+
this.tooltipRadioTextMap.set("bookedAverageImpression", "Booked AU IMPS");
|
|
3906
|
+
this.tooltipRadioTextMap.set("postedAverageImpression", "Posted AU IMPS");
|
|
3907
|
+
this.tooltipRadioTextMap.set("bookedCppValue", "Booked CPP");
|
|
3908
|
+
this.tooltipRadioTextMap.set("bookedEffectiveCppValue", "Effective CPP");
|
|
3909
|
+
this.tooltipRadioTextMap.set("bookedCpmValue", "Booked CPM");
|
|
3910
|
+
this.tooltipRadioTextMap.set("bookedEffectiveCpmValue", "Effective CPM");
|
|
3911
|
+
this.tooltipRadioTextMap.set("orderSource", "Order Route");
|
|
3912
|
+
this.tooltipRadioTextMap.set("orderCategory", "Rev Category");
|
|
3913
|
+
this.tooltipRadioTextMap.set("cashOrTrade", "C/T");
|
|
3914
|
+
this.tooltipRadioTextMap.set("revisionStartDate", "Revision Start Date");
|
|
3915
|
+
this.tooltipRadioTextMap.set("name", "name");
|
|
3916
|
+
this.tooltipRadioTextMap.set("role", "role");
|
|
3917
|
+
this.tooltipRadioTextMap.set("stationCount", "stationCount");
|
|
3918
|
+
this.tooltipRadioTextMap.set("stationList", "stationList");
|
|
3919
|
+
this.tooltipRadioTextMap.set("approvedOn", "Approved On");
|
|
3920
|
+
this.tooltipRadioTextMap.set("approvedBy", "Approved By");
|
|
3921
|
+
this.tooltipRadioTextMap.set("ODImps", "Proj. OD IMPS");
|
|
3922
|
+
this.tooltipRadioTextMap.set("UDImps", "Proj. UD IMPS");
|
|
3923
|
+
this.tooltipRadioTextMap.set("ODGrp", "Proj. OD GRP");
|
|
3924
|
+
this.tooltipRadioTextMap.set("UDGrp", "Proj. UD GRP");
|
|
3925
|
+
this.tooltipRadioTextMap.set("udImpsPercent", "Proj. UD %");
|
|
3926
|
+
this.tooltipRadioTextMap.set("udGrpPercent", "Proj. UD GRP %");
|
|
3927
|
+
this.tooltipRadioTextMap.set("odImpsPercent", "Proj. OD %");
|
|
3928
|
+
this.tooltipRadioTextMap.set("odGrpPercent", "Proj. OD GRP %");
|
|
3929
|
+
this.tooltipRadioTextMap.set("RevisionNumber", "Revision #");
|
|
3930
|
+
this.tooltipRadioTextMap.set("RevisionType", "Revision Type");
|
|
3931
|
+
this.tooltipRadioTextMap.set("GeneratedOn", "Generated On");
|
|
3932
|
+
this.tooltipRadioTextMap.set("BookedValueForDisplay", "$ BOOKED");
|
|
3933
|
+
this.tooltipRadioTextMap.set("BookedValue", "$ Booked");
|
|
3934
|
+
this.tooltipRadioTextMap.set("BookedSpots", "Spots");
|
|
3935
|
+
this.tooltipRadioTextMap.set("BookedGRP", "GRP");
|
|
3936
|
+
this.tooltipRadioTextMap.set("BookedIMPSRevTab", "IMPS'(000)");
|
|
3937
|
+
this.tooltipRadioTextMap.set("BookedCPP", "CPP");
|
|
3938
|
+
this.tooltipRadioTextMap.set("BookedCPM", "CPM");
|
|
3939
|
+
this.tooltipRadioTextMap.set("MGsValueForDisplay", "$ MGS");
|
|
3940
|
+
this.tooltipRadioTextMap.set("MGsValue", "$ MGS");
|
|
3941
|
+
this.tooltipRadioTextMap.set("ADUsValueForDisplay", "$ ADUS");
|
|
3942
|
+
this.tooltipRadioTextMap.set("ADUsValue", "$ ADUS");
|
|
3943
|
+
this.tooltipRadioTextMap.set("BuyerChangesValueForDisplay", "$ Buyer Change");
|
|
3944
|
+
this.tooltipRadioTextMap.set("BuyerChangesValue", "$ Buyer Change");
|
|
3945
|
+
this.tooltipRadioTextMap.set("UserChangesValueForDisplay", "$ Seller User Change");
|
|
3946
|
+
this.tooltipRadioTextMap.set("UserChangesValue", "$ Seller User Change");
|
|
3947
|
+
this.tooltipRadioTextMap.set("SellerLine", "Seller Line #");
|
|
3948
|
+
this.tooltipRadioTextMap.set("BuyerLine", "Buy Line #");
|
|
3949
|
+
this.tooltipRadioTextMap.set("SpotStatus", "Spot Status");
|
|
3950
|
+
this.tooltipRadioTextMap.set("InventoryCode", "Inventory Code");
|
|
3951
|
+
this.tooltipRadioTextMap.set("BuyerProgramName", "Buyer Program Name");
|
|
3952
|
+
this.tooltipRadioTextMap.set("RevenueClass", "Revenue Class");
|
|
3953
|
+
this.tooltipRadioTextMap.set("WeeklyAUR", "Booked Avg. Rate");
|
|
3954
|
+
this.tooltipRadioTextMap.set("BookedRate", "Booked Rate");
|
|
3955
|
+
this.tooltipRadioTextMap.set("averageRate", "Average Rate");
|
|
3956
|
+
this.tooltipRadioTextMap.set("bookedAverageRate", "Booked AVG. Rate");
|
|
3957
|
+
this.tooltipRadioTextMap.set("dollarIMPSImpact", "$ IMPS Impact");
|
|
3958
|
+
this.tooltipRadioTextMap.set("dollarRTGImpact", "$ RTG IMPACT");
|
|
3959
|
+
this.tooltipRadioTextMap.set("IMPSImpact", "IMPS ('000) IMPACT");
|
|
3960
|
+
this.tooltipRadioTextMap.set("RTGImpact", "RTG Impact");
|
|
3961
|
+
this.tooltipRadioTextMap.set("inventoryFillPercentageSameWeek", "Inv Fill Same Week (LY)");
|
|
3962
|
+
this.tooltipRadioTextMap.set("inventoryFillPercentageFinal", "Inv Fill Final (LY)");
|
|
3963
|
+
this.tooltipRadioTextMap.set("projectedRTG", "Projected RTG");
|
|
3964
|
+
this.tooltipRadioTextMap.set("projectedIMPS", "Projected IMPS('000)");
|
|
3965
|
+
this.tooltipRadioTextMap.set("desiredCPM", "Desired CPM");
|
|
3966
|
+
this.tooltipRadioTextMap.set("desiredCPP", "Desired CPP");
|
|
3967
|
+
this.tooltipRadioTextMap.set("origin", "Origin");
|
|
3968
|
+
this.tooltipRadioTextMap.set("BookedRTG", "Booked RTG");
|
|
3969
|
+
this.tooltipRadioTextMap.set("BookedIMPS", "Booked IMPS('000)");
|
|
3970
|
+
this.tooltipRadioTextMap.set("IMPS", "IMP('000)");
|
|
3971
|
+
this.tooltipRadioTextMap.set("AURTG", "Avg RTG");
|
|
3972
|
+
this.tooltipRadioTextMap.set("AUIMPS", "Avg IMP('000)");
|
|
3973
|
+
this.tooltipRadioTextMap.set("PostedRatingsOrImpressions", "Posted RTG");
|
|
3974
|
+
this.tooltipRadioTextMap.set("ScheduleFlightWeek", "Schedule Week");
|
|
3975
|
+
this.tooltipRadioTextMap.set("ScheduledDay", "Scheduled Day");
|
|
3976
|
+
this.tooltipRadioTextMap.set("AirStatus", "Air Status");
|
|
3977
|
+
this.tooltipRadioTextMap.set("AirDateAndTime", "Air Date & Time");
|
|
3978
|
+
this.tooltipRadioTextMap.set("AirDate", "Air Date");
|
|
3979
|
+
this.tooltipRadioTextMap.set("NormalizedOrderedRating", "Normalized Booked RTG");
|
|
3980
|
+
this.tooltipRadioTextMap.set("NormalizedOrderedImpressions", "Normalized Booked IMP('000)");
|
|
3981
|
+
this.tooltipRadioTextMap.set("NormalizedPostedRating", "Normalized Posted RTG");
|
|
3982
|
+
this.tooltipRadioTextMap.set("NormalizedPostedImpressions", "Normalized Posted IMP('000)");
|
|
3983
|
+
this.tooltipRadioTextMap.set("AdId", "Ad-Id");
|
|
3984
|
+
this.tooltipRadioTextMap.set("displayimps", "IMPS");
|
|
3985
|
+
this.tooltipRadioTextMap.set("displayGrp", "GRP");
|
|
3986
|
+
this.tooltipRadioTextMap.set("bookedSpotsForDisplay", "Spots");
|
|
3987
|
+
this.tooltipRadioTextMap.set("displaySpots", "Spots");
|
|
3988
|
+
this.tooltipRadioTextMap.set("estimateNo", "Estimate#");
|
|
3989
|
+
this.tooltipRadioTextMap.set("primaryBuyer", "Primary Buyer");
|
|
3990
|
+
this.tooltipRadioTextMap.set("primaryBuyerName", "Primary Buyer");
|
|
3991
|
+
this.tooltipRadioTextMap.set("secondaryBuyerName", "Secondary Buyer");
|
|
3992
|
+
this.tooltipRadioTextMap.set("secondaryBuyer", "Secondary Buyer");
|
|
3993
|
+
this.tooltipRadioTextMap.set("timeoutDate", "Timeout Date");
|
|
3994
|
+
this.tooltipRadioTextMap.set("DisplaytSpotStatusBI", "Spot Status");
|
|
3995
|
+
this.tooltipRadioTextMap.set("LineSpot", "Line.Spot");
|
|
3996
|
+
this.tooltipRadioTextMap.set("LurWindowName", "Political Window");
|
|
3997
|
+
this.tooltipRadioTextMap.set("length", "Length");
|
|
3998
|
+
this.tooltipRadioTextMap.set("revClass", "Rev Class");
|
|
3999
3999
|
// this.tooltipRadioTextMap.set("udValue", "$ UD");
|
|
4000
4000
|
// this.tooltipRadioTextMap.set("odValue", "$ OD");
|
|
4001
|
-
this.tooltipRadioTextMap.set(
|
|
4002
|
-
this.tooltipRadioTextMap.set(
|
|
4003
|
-
this.tooltipRadioTextMap.set(
|
|
4004
|
-
this.tooltipRadioTextMap.set(
|
|
4005
|
-
this.tooltipRadioTextMap.set(
|
|
4006
|
-
this.tooltipRadioTextMap.set(
|
|
4007
|
-
this.tooltipRadioTextMap.set(
|
|
4008
|
-
this.tooltipRadioTextMap.set(
|
|
4009
|
-
this.tooltipRadioTextMap.set(
|
|
4010
|
-
this.tooltipRadioTextMap.set(
|
|
4011
|
-
this.tooltipRadioTextMap.set(
|
|
4012
|
-
this.tooltipRadioTextMap.set(
|
|
4013
|
-
this.tooltipRadioTextMap.set(
|
|
4001
|
+
this.tooltipRadioTextMap.set("udValue", "Proj. $ UD");
|
|
4002
|
+
this.tooltipRadioTextMap.set("odValue", "Proj. $ OD");
|
|
4003
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableInventoryCode", "Inventory Code");
|
|
4004
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableBuyerProgramName", "Buyer Program Name");
|
|
4005
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableStartTime", "Start Time");
|
|
4006
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableEndTime", "End Time");
|
|
4007
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableWeeklyAUR", "Booked Avg. Rate");
|
|
4008
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableDisplayRevenueClass", "Rev Class");
|
|
4009
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableActualWeekStartDate", "Week");
|
|
4010
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableWeekDay", "Day");
|
|
4011
|
+
this.tooltipRadioTextMap.set("OtherAvailableSpotsTableDisplayLength", "Length");
|
|
4012
|
+
this.tooltipRadioTextMap.set("ProjectedImpressions", "Projected IMP('000)");
|
|
4013
|
+
this.tooltipRadioTextMap.set("ProjectedRtg", "Projected RTG");
|
|
4014
4014
|
}
|
|
4015
4015
|
selectOrUnselectCheckbox(rowData, columnKeys, isCheckboxSelected) {
|
|
4016
4016
|
rowData[columnKeys] = !rowData[columnKeys];
|
|
@@ -4029,10 +4029,10 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4029
4029
|
this.toggleRowCheckbox.emit(rowData);
|
|
4030
4030
|
}
|
|
4031
4031
|
undoCreditedSpot(data) {
|
|
4032
|
-
this.undoIconClicked.emit({ data, mgOrCredit:
|
|
4032
|
+
this.undoIconClicked.emit({ data, mgOrCredit: "Credit" });
|
|
4033
4033
|
}
|
|
4034
4034
|
undoMgSpot(data) {
|
|
4035
|
-
this.undoIconClicked.emit({ data, mgOrCredit:
|
|
4035
|
+
this.undoIconClicked.emit({ data, mgOrCredit: "MakeGood" });
|
|
4036
4036
|
}
|
|
4037
4037
|
//Sort and Filter Logic begins!
|
|
4038
4038
|
closeTooltip() {
|
|
@@ -4064,9 +4064,9 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4064
4064
|
this.columnFilterOpened.emit();
|
|
4065
4065
|
}
|
|
4066
4066
|
this.showCheckboxesForTimeFilter =
|
|
4067
|
-
this.gtGeneralConfig.component ==
|
|
4068
|
-
this.gtGeneralConfig.component ==
|
|
4069
|
-
this.gtGeneralConfig.component ==
|
|
4067
|
+
this.gtGeneralConfig.component == "SPOTDETAILS" ||
|
|
4068
|
+
this.gtGeneralConfig.component == "EXCLUDEINVENTORYPOPUP" ||
|
|
4069
|
+
this.gtGeneralConfig.component == "RATING";
|
|
4070
4070
|
this.showFilterTooltipTabs = header.filterSortObjectKeys.length > 1;
|
|
4071
4071
|
this.bindValueFuncCalled = false;
|
|
4072
4072
|
}
|
|
@@ -4074,9 +4074,9 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4074
4074
|
checkIfUniqueValuePresentForTheHeader(header, enabledHeaders) {
|
|
4075
4075
|
header.filterSortObjectKeys.forEach((item) => {
|
|
4076
4076
|
let dataToCheck = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData, item);
|
|
4077
|
-
if (item ==
|
|
4078
|
-
let uniqStartDate = uniq(dataToCheck.map((u) => u[
|
|
4079
|
-
let uniqEndDate = uniq(dataToCheck.map((u) => u[
|
|
4077
|
+
if (item == "period") {
|
|
4078
|
+
let uniqStartDate = uniq(dataToCheck.map((u) => u["startDate"]));
|
|
4079
|
+
let uniqEndDate = uniq(dataToCheck.map((u) => u["endDate"]));
|
|
4080
4080
|
if (uniqStartDate.length > 1 || uniqEndDate.length > 1 || this.isTooltipActive([item])) {
|
|
4081
4081
|
enabledHeaders.push(item);
|
|
4082
4082
|
}
|
|
@@ -4090,12 +4090,12 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4090
4090
|
item) {
|
|
4091
4091
|
activeAndLastlyAppliedHeader = true;
|
|
4092
4092
|
}
|
|
4093
|
-
if (header.filter ==
|
|
4093
|
+
if (header.filter == "CHECKBOX" &&
|
|
4094
4094
|
(uniq(values).filter((n) => n != null).length > 1 || activeAndLastlyAppliedHeader)) {
|
|
4095
4095
|
enabledHeaders.push(item);
|
|
4096
4096
|
}
|
|
4097
|
-
else if (header.filter !=
|
|
4098
|
-
(uniq(values).filter((n) => n != null && n !=
|
|
4097
|
+
else if (header.filter != "CHECKBOX" &&
|
|
4098
|
+
(uniq(values).filter((n) => n != null && n != "-").length > 1 || activeAndLastlyAppliedHeader)) {
|
|
4099
4099
|
enabledHeaders.push(item);
|
|
4100
4100
|
}
|
|
4101
4101
|
}
|
|
@@ -4125,17 +4125,17 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4125
4125
|
item.disableTooltipIcon = false;
|
|
4126
4126
|
}
|
|
4127
4127
|
if (item.disableTooltipIcon) {
|
|
4128
|
-
if (key ==
|
|
4129
|
-
let uniqStartDate = uniq(this.tableData.map((u) => u[
|
|
4130
|
-
let uniqEndDate = uniq(this.tableData.map((u) => u[
|
|
4128
|
+
if (key == "period") {
|
|
4129
|
+
let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
|
|
4130
|
+
let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
|
|
4131
4131
|
item.disableTooltipIcon =
|
|
4132
4132
|
uniqStartDate.length > 1 || uniqEndDate.length > 1 ? false : true;
|
|
4133
4133
|
}
|
|
4134
4134
|
else {
|
|
4135
4135
|
values = this.tableData.map((u) => u[key]);
|
|
4136
|
-
if ((item.filter ==
|
|
4137
|
-
(item.filter !=
|
|
4138
|
-
uniq(values).filter((n) => n != null && n !=
|
|
4136
|
+
if ((item.filter == "CHECKBOX" && uniq(values).filter((n) => n != null).length > 1) ||
|
|
4137
|
+
(item.filter != "CHECKBOX" &&
|
|
4138
|
+
uniq(values).filter((n) => n != null && n != "-").length > 1)) {
|
|
4139
4139
|
item.disableTooltipIcon = false;
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
@@ -4159,19 +4159,19 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4159
4159
|
if (firstParagraphOffsetWidth > secondParagraphOffsetWidth) {
|
|
4160
4160
|
let diff = firstParagraphOffsetWidth - secondParagraphOffsetWidth;
|
|
4161
4161
|
if (childDivElements[0].children.length == 2) {
|
|
4162
|
-
childDivElements[0].children[1].style.marginLeft = 4 +
|
|
4162
|
+
childDivElements[0].children[1].style.marginLeft = 4 + "px";
|
|
4163
4163
|
}
|
|
4164
4164
|
if (childDivElements[1].children.length == 2) {
|
|
4165
|
-
childDivElements[1].children[1].style.marginLeft = diff + 4 +
|
|
4165
|
+
childDivElements[1].children[1].style.marginLeft = diff + 4 + "px";
|
|
4166
4166
|
}
|
|
4167
4167
|
}
|
|
4168
4168
|
else {
|
|
4169
4169
|
let diff = secondParagraphOffsetWidth - firstParagraphOffsetWidth;
|
|
4170
4170
|
if (childDivElements[0].children.length == 2) {
|
|
4171
|
-
childDivElements[0].children[1].style.marginLeft = diff + 4 +
|
|
4171
|
+
childDivElements[0].children[1].style.marginLeft = diff + 4 + "px";
|
|
4172
4172
|
}
|
|
4173
4173
|
if (childDivElements[1].children.length == 2) {
|
|
4174
|
-
childDivElements[1].children[1].style.marginLeft = 4 +
|
|
4174
|
+
childDivElements[1].children[1].style.marginLeft = 4 + "px";
|
|
4175
4175
|
}
|
|
4176
4176
|
}
|
|
4177
4177
|
}
|
|
@@ -4194,7 +4194,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4194
4194
|
this.hierarchyTooltip.open();
|
|
4195
4195
|
}
|
|
4196
4196
|
iconClicked(rowData, iconClass) {
|
|
4197
|
-
if (
|
|
4197
|
+
if ("orderId" in rowData && iconClass.includes("mdi-star")) {
|
|
4198
4198
|
this.selectedStarredOrderId = rowData.orderId;
|
|
4199
4199
|
}
|
|
4200
4200
|
this.gtIconClicked.emit({ data: rowData, iconClass: iconClass });
|
|
@@ -4222,7 +4222,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4222
4222
|
this.tableHeaders.forEach((item) => {
|
|
4223
4223
|
item.headerInfo.forEach((header) => {
|
|
4224
4224
|
if (header.showTooltipIcon) {
|
|
4225
|
-
let key = header.filterSortObjectKeys.join(
|
|
4225
|
+
let key = header.filterSortObjectKeys.join(",");
|
|
4226
4226
|
header.joinedFilterSortObjectKeys = key;
|
|
4227
4227
|
// ANNA-4113 fix
|
|
4228
4228
|
if (this.annaFilterService.resetFilterSortActiveStatus) {
|
|
@@ -4290,13 +4290,13 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4290
4290
|
}
|
|
4291
4291
|
mouseEnterOnStringTextActionType(rowData, tooltipKey) {
|
|
4292
4292
|
this.textActionTooltip = rowData[tooltipKey];
|
|
4293
|
-
this.notificationIconHover.emit({ rowData: rowData, type:
|
|
4293
|
+
this.notificationIconHover.emit({ rowData: rowData, type: "on-enter" });
|
|
4294
4294
|
}
|
|
4295
4295
|
mouseEnterOnStringTextActionTypeContainingTable(rowData, tooltipKey) {
|
|
4296
4296
|
this.tooltipContainingTable = rowData[tooltipKey];
|
|
4297
4297
|
}
|
|
4298
4298
|
mouseLeaveTextActionType(rowData) {
|
|
4299
|
-
this.notificationIconHoverLeave.emit({ rowData: rowData, type:
|
|
4299
|
+
this.notificationIconHoverLeave.emit({ rowData: rowData, type: "on-leave" });
|
|
4300
4300
|
}
|
|
4301
4301
|
mouseEnterOnTextActionType(rowData, tooltipKey) {
|
|
4302
4302
|
this.textActionTooltip = rowData[tooltipKey];
|
|
@@ -4305,10 +4305,10 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4305
4305
|
this.clickableDataClicked.emit({ data: Rowdata, id: id });
|
|
4306
4306
|
}
|
|
4307
4307
|
removeTooltipOnScroll() {
|
|
4308
|
-
const elements = document.getElementsByClassName(
|
|
4308
|
+
const elements = document.getElementsByClassName("remarks-info-tooltip");
|
|
4309
4309
|
// const tooltipElements = document.getElementsByClassName("tooltip");
|
|
4310
|
-
const gtTooltip = document.getElementsByClassName(
|
|
4311
|
-
document.querySelectorAll(
|
|
4310
|
+
const gtTooltip = document.getElementsByClassName("remove-on-scroll-class");
|
|
4311
|
+
document.querySelectorAll(".tooltip:not(.keep-on-scroll-tooltip)").forEach((e) => {
|
|
4312
4312
|
e.remove();
|
|
4313
4313
|
this.tooltip = null;
|
|
4314
4314
|
});
|
|
@@ -4323,8 +4323,8 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4323
4323
|
this.totalRowIconClicked.emit(colName);
|
|
4324
4324
|
}
|
|
4325
4325
|
changesMadeInEditableInputBox(event, editedObject, pasteEvent) {
|
|
4326
|
-
let enteredValue = pasteEvent ? event.clipboardData.getData(
|
|
4327
|
-
let dotIndex = editedObject.value.indexOf(
|
|
4326
|
+
let enteredValue = pasteEvent ? event.clipboardData.getData("text") : event.key;
|
|
4327
|
+
let dotIndex = editedObject.value.indexOf(".");
|
|
4328
4328
|
if (event.keyCode != 8 &&
|
|
4329
4329
|
event.keyCode != 46 &&
|
|
4330
4330
|
!(event.keyCode >= 37 && event.keyCode <= 40) &&
|
|
@@ -4362,7 +4362,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNonEditableGenericTableComponent, decorators: [{
|
|
4364
4364
|
type: Component,
|
|
4365
|
-
args: [{ selector:
|
|
4365
|
+
args: [{ selector: "anna-core-non-editable-generic-table-lib", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
4366
4366
|
NgClass,
|
|
4367
4367
|
NgStyle,
|
|
4368
4368
|
MatTableModule,
|
|
@@ -4474,7 +4474,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4474
4474
|
type: Output
|
|
4475
4475
|
}], viewChildTableHeaders: [{
|
|
4476
4476
|
type: ViewChildren,
|
|
4477
|
-
args: [
|
|
4477
|
+
args: ["tableHeader"]
|
|
4478
4478
|
}] } });
|
|
4479
4479
|
|
|
4480
4480
|
// Angular import statements
|
|
@@ -4519,7 +4519,7 @@ class AnnaGtHelperService {
|
|
|
4519
4519
|
this.router.navigate([], {
|
|
4520
4520
|
queryParams: { filters: JSON.stringify(latestQueryParams) },
|
|
4521
4521
|
relativeTo: this.route.parent,
|
|
4522
|
-
queryParamsHandling:
|
|
4522
|
+
queryParamsHandling: "merge",
|
|
4523
4523
|
});
|
|
4524
4524
|
}
|
|
4525
4525
|
else {
|
|
@@ -4531,18 +4531,18 @@ class AnnaGtHelperService {
|
|
|
4531
4531
|
prepareQueryParamsOnFilter() {
|
|
4532
4532
|
let query = {};
|
|
4533
4533
|
if (this.annaFilterService.appliedFiltersArray.length > 0) {
|
|
4534
|
-
query[
|
|
4535
|
-
query[
|
|
4534
|
+
query["appliedFilters"] = this.annaFilterService.appliedFiltersArray;
|
|
4535
|
+
query["selectedFilterData"] = JSON.stringify(Array.from(this.annaFilterService.tooltipSelectedMap));
|
|
4536
4536
|
}
|
|
4537
4537
|
if (this.checkIfSortingIsApplied()) {
|
|
4538
|
-
query[
|
|
4538
|
+
query["sortState"] = JSON.stringify(Array.from(this.annaSortService.columnSortState));
|
|
4539
4539
|
}
|
|
4540
4540
|
return query;
|
|
4541
4541
|
}
|
|
4542
4542
|
checkIfSortingIsApplied() {
|
|
4543
4543
|
let isSortingApplied = false;
|
|
4544
4544
|
for (let val of this.annaSortService.columnSortState.values()) {
|
|
4545
|
-
if (val ==
|
|
4545
|
+
if (val == "ASC" || val == "DESC") {
|
|
4546
4546
|
isSortingApplied = true;
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
@@ -4563,7 +4563,7 @@ class AnnaGtHelperService {
|
|
|
4563
4563
|
setDataAsPerPersistingFilter(isPersistingFilter, clonedTable, filters) {
|
|
4564
4564
|
let usersTable;
|
|
4565
4565
|
if (isPersistingFilter) {
|
|
4566
|
-
usersTable = this.annaFilterService.filterData(clonedTable,
|
|
4566
|
+
usersTable = this.annaFilterService.filterData(clonedTable, "");
|
|
4567
4567
|
this.annaSortService.noSortingAppliedData = cloneDeep(usersTable);
|
|
4568
4568
|
}
|
|
4569
4569
|
else {
|
|
@@ -4579,10 +4579,10 @@ class AnnaGtHelperService {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
callSort(usersTable) {
|
|
4581
4581
|
for (let [key, value] of this.annaSortService.columnSortState) {
|
|
4582
|
-
if (value ==
|
|
4582
|
+
if (value == "ASC") {
|
|
4583
4583
|
usersTable = this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(true, usersTable, key);
|
|
4584
4584
|
}
|
|
4585
|
-
else if (value ==
|
|
4585
|
+
else if (value == "DESC") {
|
|
4586
4586
|
usersTable = this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(false, usersTable, key);
|
|
4587
4587
|
}
|
|
4588
4588
|
}
|
|
@@ -4591,28 +4591,28 @@ class AnnaGtHelperService {
|
|
|
4591
4591
|
isSortingAppliedToTable() {
|
|
4592
4592
|
let isSortingApplied = false;
|
|
4593
4593
|
for (let val of this.annaSortService.columnSortState?.values()) {
|
|
4594
|
-
if (val ==
|
|
4594
|
+
if (val == "ASC" || val == "DESC") {
|
|
4595
4595
|
isSortingApplied = true;
|
|
4596
4596
|
}
|
|
4597
4597
|
}
|
|
4598
4598
|
return isSortingApplied;
|
|
4599
4599
|
}
|
|
4600
4600
|
updateQueryParamsFilter(key, value, operation, queryParamObj) {
|
|
4601
|
-
if (operation ==
|
|
4601
|
+
if (operation == "ADD") {
|
|
4602
4602
|
queryParamObj[key] = value;
|
|
4603
4603
|
}
|
|
4604
|
-
else if (operation ==
|
|
4604
|
+
else if (operation == "DELETE") {
|
|
4605
4605
|
delete queryParamObj[key];
|
|
4606
4606
|
}
|
|
4607
4607
|
return queryParamObj;
|
|
4608
4608
|
}
|
|
4609
4609
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGtHelperService, deps: [{ token: AnnaFilterService }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: AnnaSortService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4610
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGtHelperService, providedIn:
|
|
4610
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGtHelperService, providedIn: "root" }); }
|
|
4611
4611
|
}
|
|
4612
4612
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaGtHelperService, decorators: [{
|
|
4613
4613
|
type: Injectable,
|
|
4614
4614
|
args: [{
|
|
4615
|
-
providedIn:
|
|
4615
|
+
providedIn: "root",
|
|
4616
4616
|
}]
|
|
4617
4617
|
}], ctorParameters: function () { return [{ type: AnnaFilterService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: AnnaSortService }]; } });
|
|
4618
4618
|
|
|
@@ -4632,7 +4632,7 @@ function rangesEqual(r1, r2) {
|
|
|
4632
4632
|
* something that doesn't rely on requestAnimationFrame on environments
|
|
4633
4633
|
* that don't support it (e.g. server-side rendering).
|
|
4634
4634
|
*/
|
|
4635
|
-
const SCROLL_SCHEDULER = typeof requestAnimationFrame !==
|
|
4635
|
+
const SCROLL_SCHEDULER = typeof requestAnimationFrame !== "undefined" ? animationFrameScheduler : asapScheduler;
|
|
4636
4636
|
/**
|
|
4637
4637
|
* A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
|
|
4638
4638
|
* Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
|
|
@@ -4659,7 +4659,7 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4659
4659
|
this._detachedSubject = new Subject();
|
|
4660
4660
|
/** Emits when the rendered range changes. */
|
|
4661
4661
|
this._renderedRangeSubject = new Subject();
|
|
4662
|
-
this._orientation =
|
|
4662
|
+
this._orientation = "vertical";
|
|
4663
4663
|
// Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
|
|
4664
4664
|
// strategy lazily (i.e. only if the user is actually listening to the events). We do this because
|
|
4665
4665
|
// depending on how the strategy calculates the scrolled index, it may come at a cost to
|
|
@@ -4673,9 +4673,9 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4673
4673
|
*/
|
|
4674
4674
|
this._totalContentSize = 0;
|
|
4675
4675
|
/** A string representing the `style.width` property value to be used for the spacer element. */
|
|
4676
|
-
this._totalContentWidth =
|
|
4676
|
+
this._totalContentWidth = "";
|
|
4677
4677
|
/** A string representing the `style.height` property value to be used for the spacer element. */
|
|
4678
|
-
this._totalContentHeight =
|
|
4678
|
+
this._totalContentHeight = "";
|
|
4679
4679
|
/** The currently rendered range of indices. */
|
|
4680
4680
|
this._renderedRange = { start: 0, end: 0 };
|
|
4681
4681
|
/** The length of the data bound to this viewport (in number of items). */
|
|
@@ -4738,7 +4738,7 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4738
4738
|
/** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
|
|
4739
4739
|
attach(forOf) {
|
|
4740
4740
|
if (this._forOf) {
|
|
4741
|
-
throw Error(
|
|
4741
|
+
throw Error("CdkVirtualScrollViewport is already attached.");
|
|
4742
4742
|
}
|
|
4743
4743
|
// Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
|
|
4744
4744
|
// changes. Run outside the zone to avoid triggering change detection, since we're managing the
|
|
@@ -4830,7 +4830,7 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4830
4830
|
* @param offset The offset to scroll to.
|
|
4831
4831
|
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
4832
4832
|
*/
|
|
4833
|
-
scrollToOffset(offset, behavior =
|
|
4833
|
+
scrollToOffset(offset, behavior = "auto") {
|
|
4834
4834
|
const options = { behavior, top: offset };
|
|
4835
4835
|
this.scrollTo(options);
|
|
4836
4836
|
}
|
|
@@ -4839,7 +4839,7 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4839
4839
|
* @param index The index of the element to scroll to.
|
|
4840
4840
|
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
4841
4841
|
*/
|
|
4842
|
-
scrollToIndex(index, behavior =
|
|
4842
|
+
scrollToIndex(index, behavior = "auto") {
|
|
4843
4843
|
this._scrollStrategy.scrollToIndex(index, behavior);
|
|
4844
4844
|
}
|
|
4845
4845
|
/**
|
|
@@ -4849,7 +4849,7 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4849
4849
|
*/
|
|
4850
4850
|
// CHANGES@ANNALIB added override to functions
|
|
4851
4851
|
measureScrollOffset(from) {
|
|
4852
|
-
return from ? super.measureScrollOffset(from) : super.measureScrollOffset(
|
|
4852
|
+
return from ? super.measureScrollOffset(from) : super.measureScrollOffset("top");
|
|
4853
4853
|
}
|
|
4854
4854
|
/** Measure the combined size of all of the rendered items. */
|
|
4855
4855
|
measureRenderedContentSize() {
|
|
@@ -4912,7 +4912,7 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4912
4912
|
/** Calculates the `style.width` and `style.height` for the spacer element. */
|
|
4913
4913
|
_calculateSpacerSize() {
|
|
4914
4914
|
this._totalContentHeight = `${this._totalContentSize}px`;
|
|
4915
|
-
this._totalContentWidth =
|
|
4915
|
+
this._totalContentWidth = "";
|
|
4916
4916
|
}
|
|
4917
4917
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i1$1.Directionality, optional: true }, { token: i2$1.ScrollDispatcher }, { token: i2$1.ViewportRuler }, { token: AnnaGtHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4918
4918
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AnnaTableVirtualScrollViewportComponent, isStandalone: true, selector: "anna-table-virtual-scroll-viewport", inputs: { orientation: "orientation" }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.anna-table-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.anna-table-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "anna-table-virtual-scroll-viewport" }, providers: [
|
|
@@ -4928,10 +4928,10 @@ class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, decorators: [{
|
|
4930
4930
|
type: Component,
|
|
4931
|
-
args: [{ selector:
|
|
4932
|
-
class:
|
|
4933
|
-
|
|
4934
|
-
|
|
4931
|
+
args: [{ selector: "anna-table-virtual-scroll-viewport", host: {
|
|
4932
|
+
class: "anna-table-virtual-scroll-viewport",
|
|
4933
|
+
"[class.anna-table-virtual-scroll-orientation-horizontal]": 'orientation === "horizontal"',
|
|
4934
|
+
"[class.anna-table-virtual-scroll-orientation-vertical]": 'orientation !== "horizontal"',
|
|
4935
4935
|
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
4936
4936
|
{
|
|
4937
4937
|
provide: CdkScrollable,
|
|
@@ -4955,7 +4955,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4955
4955
|
type: Output
|
|
4956
4956
|
}], _contentWrapper: [{
|
|
4957
4957
|
type: ViewChild,
|
|
4958
|
-
args: [
|
|
4958
|
+
args: ["contentWrapper", { static: true }]
|
|
4959
4959
|
}] } });
|
|
4960
4960
|
|
|
4961
4961
|
/**
|
|
@@ -5103,7 +5103,7 @@ class AnnaFixedRowSizeTableVirtualScrollStrategyDirective {
|
|
|
5103
5103
|
if (this.headerRows != undefined || this.headerRowsQuery) {
|
|
5104
5104
|
this.handleChange();
|
|
5105
5105
|
}
|
|
5106
|
-
if (change[
|
|
5106
|
+
if (change["buffer"]?.previousValue != change["buffer"]?.currentValue) {
|
|
5107
5107
|
AnnaFilterService.bufferSize = this.buffer;
|
|
5108
5108
|
this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
|
|
5109
5109
|
}
|
|
@@ -5131,7 +5131,7 @@ class AnnaFixedRowSizeTableVirtualScrollStrategyDirective {
|
|
|
5131
5131
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, decorators: [{
|
|
5132
5132
|
type: Directive,
|
|
5133
5133
|
args: [{
|
|
5134
|
-
selector:
|
|
5134
|
+
selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]",
|
|
5135
5135
|
providers: [
|
|
5136
5136
|
{
|
|
5137
5137
|
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
@@ -5195,7 +5195,7 @@ class AnnaVirtualTableDirective {
|
|
|
5195
5195
|
this.renderedRange = { start: 0, end: 0 };
|
|
5196
5196
|
this.isNativeHtmlTable = false;
|
|
5197
5197
|
table.dataSource = this.virtualizedDataStream;
|
|
5198
|
-
this.isNativeHtmlTable = elementRef.nativeElement.tagName ===
|
|
5198
|
+
this.isNativeHtmlTable = elementRef.nativeElement.tagName === "TABLE";
|
|
5199
5199
|
this.dataStream.subscribe((data) => {
|
|
5200
5200
|
this.data = data;
|
|
5201
5201
|
this.onRenderedDataChange();
|
|
@@ -5280,7 +5280,7 @@ class AnnaVirtualTableDirective {
|
|
|
5280
5280
|
* I'm not actually sure if this works.
|
|
5281
5281
|
*/
|
|
5282
5282
|
measureRangeSize(range, orientation) {
|
|
5283
|
-
if (orientation ===
|
|
5283
|
+
if (orientation === "horizontal" || range.end < range.start) {
|
|
5284
5284
|
// virtual scrolling columns are not supported by this directive
|
|
5285
5285
|
return 0;
|
|
5286
5286
|
}
|
|
@@ -5309,7 +5309,7 @@ class AnnaVirtualTableDirective {
|
|
|
5309
5309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaVirtualTableDirective, decorators: [{
|
|
5310
5310
|
type: Directive,
|
|
5311
5311
|
args: [{
|
|
5312
|
-
selector:
|
|
5312
|
+
selector: "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]",
|
|
5313
5313
|
providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }],
|
|
5314
5314
|
standalone: true,
|
|
5315
5315
|
}]
|
|
@@ -5318,7 +5318,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5318
5318
|
args: [_COALESCED_STYLE_SCHEDULER]
|
|
5319
5319
|
}] }]; }, propDecorators: { dataSource: [{
|
|
5320
5320
|
type: Input,
|
|
5321
|
-
args: [
|
|
5321
|
+
args: ["appVirtualDataSource"]
|
|
5322
5322
|
}], headerRowDefs: [{
|
|
5323
5323
|
type: ContentChildren,
|
|
5324
5324
|
args: [CdkHeaderRowDef]
|
|
@@ -5334,7 +5334,7 @@ class AnnaTypeofDataPipe {
|
|
|
5334
5334
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaTypeofDataPipe, decorators: [{
|
|
5335
5335
|
type: Pipe,
|
|
5336
5336
|
args: [{
|
|
5337
|
-
name:
|
|
5337
|
+
name: "AnnatypeofData",
|
|
5338
5338
|
standalone: true,
|
|
5339
5339
|
}]
|
|
5340
5340
|
}] });
|
|
@@ -5349,7 +5349,7 @@ class AnnaReplaceCharPipe {
|
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
5351
|
replace(value, from, to) {
|
|
5352
|
-
return value.replace(new RegExp(from,
|
|
5352
|
+
return value.replace(new RegExp(from, "g"), to);
|
|
5353
5353
|
}
|
|
5354
5354
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaReplaceCharPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5355
5355
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AnnaReplaceCharPipe, isStandalone: true, name: "annaReplaceChar" }); }
|
|
@@ -5357,7 +5357,7 @@ class AnnaReplaceCharPipe {
|
|
|
5357
5357
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaReplaceCharPipe, decorators: [{
|
|
5358
5358
|
type: Pipe,
|
|
5359
5359
|
args: [{
|
|
5360
|
-
name:
|
|
5360
|
+
name: "annaReplaceChar",
|
|
5361
5361
|
standalone: true,
|
|
5362
5362
|
}]
|
|
5363
5363
|
}] });
|
|
@@ -5368,38 +5368,38 @@ class DigitOnlyDirective {
|
|
|
5368
5368
|
this.hasDecimalPoint = false;
|
|
5369
5369
|
this.hasNegativeSign = false;
|
|
5370
5370
|
this.navigationKeys = [
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5371
|
+
"Backspace",
|
|
5372
|
+
"Delete",
|
|
5373
|
+
"Tab",
|
|
5374
|
+
"Escape",
|
|
5375
|
+
"Enter",
|
|
5376
|
+
"Home",
|
|
5377
|
+
"End",
|
|
5378
|
+
"ArrowLeft",
|
|
5379
|
+
"ArrowRight",
|
|
5380
|
+
"Clear",
|
|
5381
|
+
"Copy",
|
|
5382
|
+
"Paste",
|
|
5383
5383
|
];
|
|
5384
5384
|
this.decimal = false;
|
|
5385
|
-
this.decimalSeparator =
|
|
5385
|
+
this.decimalSeparator = ".";
|
|
5386
5386
|
this.allowNegatives = false;
|
|
5387
5387
|
this.allowPaste = true;
|
|
5388
|
-
this.negativeSign =
|
|
5388
|
+
this.negativeSign = "-";
|
|
5389
5389
|
this.min = -Infinity;
|
|
5390
5390
|
this.max = Infinity;
|
|
5391
5391
|
this.regex = null;
|
|
5392
5392
|
this.inputElement = el.nativeElement;
|
|
5393
5393
|
}
|
|
5394
5394
|
ngOnChanges(changes) {
|
|
5395
|
-
if (changes[
|
|
5395
|
+
if (changes["pattern"]) {
|
|
5396
5396
|
this.regex = this.pattern ? RegExp(this.pattern) : null;
|
|
5397
5397
|
}
|
|
5398
|
-
if (changes[
|
|
5398
|
+
if (changes["min"]) {
|
|
5399
5399
|
const maybeMin = Number(this.min);
|
|
5400
5400
|
this.min = isNaN(maybeMin) ? -Infinity : maybeMin;
|
|
5401
5401
|
}
|
|
5402
|
-
if (changes[
|
|
5402
|
+
if (changes["max"]) {
|
|
5403
5403
|
const maybeMax = Number(this.max);
|
|
5404
5404
|
this.max = isNaN(maybeMax) ? Infinity : maybeMax;
|
|
5405
5405
|
}
|
|
@@ -5415,19 +5415,19 @@ class DigitOnlyDirective {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
onKeyDown(e) {
|
|
5417
5417
|
if (this.navigationKeys.indexOf(e.key) > -1 || // Allow: navigation keys: backspace, delete, arrows etc.
|
|
5418
|
-
((e.key ===
|
|
5419
|
-
((e.key ===
|
|
5420
|
-
((e.key ===
|
|
5421
|
-
((e.key ===
|
|
5422
|
-
((e.key ===
|
|
5423
|
-
((e.key ===
|
|
5424
|
-
((e.key ===
|
|
5425
|
-
((e.key ===
|
|
5418
|
+
((e.key === "a" || e.code === "KeyA") && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
5419
|
+
((e.key === "c" || e.code === "KeyC") && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
5420
|
+
((e.key === "v" || e.code === "KeyV") && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
5421
|
+
((e.key === "x" || e.code === "KeyX") && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
5422
|
+
((e.key === "a" || e.code === "KeyA") && e.metaKey === true) || // Allow: Cmd+A (Mac)
|
|
5423
|
+
((e.key === "c" || e.code === "KeyC") && e.metaKey === true) || // Allow: Cmd+C (Mac)
|
|
5424
|
+
((e.key === "v" || e.code === "KeyV") && e.metaKey === true) || // Allow: Cmd+V (Mac)
|
|
5425
|
+
((e.key === "x" || e.code === "KeyX") && e.metaKey === true) // Allow: Cmd+X (Mac)
|
|
5426
5426
|
) {
|
|
5427
5427
|
// let it happen, don't do anything
|
|
5428
5428
|
return;
|
|
5429
5429
|
}
|
|
5430
|
-
let newValue =
|
|
5430
|
+
let newValue = "";
|
|
5431
5431
|
if (this.decimal && e.key === this.decimalSeparator) {
|
|
5432
5432
|
newValue = this.forecastValue(e.key);
|
|
5433
5433
|
if (newValue.split(this.decimalSeparator).length > 2) {
|
|
@@ -5452,7 +5452,7 @@ class DigitOnlyDirective {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
}
|
|
5454
5454
|
// Ensure that it is a number and stop the keypress
|
|
5455
|
-
if (e.key ===
|
|
5455
|
+
if (e.key === " " || isNaN(Number(e.key))) {
|
|
5456
5456
|
e.preventDefault();
|
|
5457
5457
|
return;
|
|
5458
5458
|
}
|
|
@@ -5471,14 +5471,14 @@ class DigitOnlyDirective {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
onPaste(event) {
|
|
5473
5473
|
if (this.allowPaste === true) {
|
|
5474
|
-
let pastedInput =
|
|
5475
|
-
if (window[
|
|
5474
|
+
let pastedInput = "";
|
|
5475
|
+
if (window["clipboardData"]) {
|
|
5476
5476
|
// Browser is IE
|
|
5477
|
-
pastedInput = window[
|
|
5477
|
+
pastedInput = window["clipboardData"].getData("text");
|
|
5478
5478
|
}
|
|
5479
5479
|
else if (event.clipboardData && event.clipboardData.getData) {
|
|
5480
5480
|
// Other browsers
|
|
5481
|
-
pastedInput = event.clipboardData.getData(
|
|
5481
|
+
pastedInput = event.clipboardData.getData("text/plain");
|
|
5482
5482
|
}
|
|
5483
5483
|
this.pasteData(pastedInput);
|
|
5484
5484
|
event.preventDefault();
|
|
@@ -5490,7 +5490,7 @@ class DigitOnlyDirective {
|
|
|
5490
5490
|
}
|
|
5491
5491
|
}
|
|
5492
5492
|
onDrop(event) {
|
|
5493
|
-
const textData = event.dataTransfer?.getData(
|
|
5493
|
+
const textData = event.dataTransfer?.getData("text") ?? "";
|
|
5494
5494
|
this.inputElement.focus();
|
|
5495
5495
|
this.pasteData(textData);
|
|
5496
5496
|
event.preventDefault();
|
|
@@ -5502,15 +5502,15 @@ class DigitOnlyDirective {
|
|
|
5502
5502
|
!this.getSelection().includes(this.negativeSign)) {
|
|
5503
5503
|
return;
|
|
5504
5504
|
}
|
|
5505
|
-
const pasted = document.execCommand(
|
|
5505
|
+
const pasted = document.execCommand("insertText", false, sanitizedContent);
|
|
5506
5506
|
if (!pasted) {
|
|
5507
5507
|
if (this.inputElement.setRangeText) {
|
|
5508
5508
|
const { selectionStart: start, selectionEnd: end } = this.inputElement;
|
|
5509
|
-
this.inputElement.setRangeText(sanitizedContent, start ?? 0, end ?? 0,
|
|
5509
|
+
this.inputElement.setRangeText(sanitizedContent, start ?? 0, end ?? 0, "end");
|
|
5510
5510
|
// Angular's Reactive Form relies on "input" event, but on Firefox, the setRangeText method doesn't trigger it
|
|
5511
5511
|
// so we have to trigger it ourself.
|
|
5512
|
-
if (typeof window[
|
|
5513
|
-
this.inputElement.dispatchEvent(new Event(
|
|
5512
|
+
if (typeof window["InstallTrigger"] !== "undefined") {
|
|
5513
|
+
this.inputElement.dispatchEvent(new Event("input", { cancelable: true }));
|
|
5514
5514
|
}
|
|
5515
5515
|
}
|
|
5516
5516
|
else {
|
|
@@ -5533,39 +5533,39 @@ class DigitOnlyDirective {
|
|
|
5533
5533
|
const pos = startPos + myValue.length;
|
|
5534
5534
|
myField.focus();
|
|
5535
5535
|
myField.setSelectionRange(pos, pos);
|
|
5536
|
-
this.triggerEvent(myField,
|
|
5536
|
+
this.triggerEvent(myField, "input");
|
|
5537
5537
|
}
|
|
5538
5538
|
triggerEvent(el, type) {
|
|
5539
|
-
if (
|
|
5539
|
+
if ("createEvent" in document) {
|
|
5540
5540
|
// modern browsers, IE9+
|
|
5541
|
-
const e = document.createEvent(
|
|
5541
|
+
const e = document.createEvent("HTMLEvents");
|
|
5542
5542
|
e.initEvent(type, false, true);
|
|
5543
5543
|
el.dispatchEvent(e);
|
|
5544
5544
|
}
|
|
5545
5545
|
}
|
|
5546
5546
|
// end stack overflow code
|
|
5547
5547
|
sanitizeInput(input) {
|
|
5548
|
-
let result =
|
|
5548
|
+
let result = "";
|
|
5549
5549
|
let regex;
|
|
5550
5550
|
if (this.decimal && this.isValidDecimal(input)) {
|
|
5551
|
-
regex = new RegExp(`${this.getNegativeSignRegExp()}[^0-9${this.decimalSeparator}]`,
|
|
5551
|
+
regex = new RegExp(`${this.getNegativeSignRegExp()}[^0-9${this.decimalSeparator}]`, "g");
|
|
5552
5552
|
}
|
|
5553
5553
|
else {
|
|
5554
|
-
regex = new RegExp(`${this.getNegativeSignRegExp()}[^0-9]`,
|
|
5554
|
+
regex = new RegExp(`${this.getNegativeSignRegExp()}[^0-9]`, "g");
|
|
5555
5555
|
}
|
|
5556
|
-
result = input.replace(regex,
|
|
5556
|
+
result = input.replace(regex, "");
|
|
5557
5557
|
const maxLength = this.inputElement.maxLength;
|
|
5558
5558
|
if (maxLength > 0) {
|
|
5559
5559
|
// the input element has maxLength limit
|
|
5560
5560
|
const allowedLength = maxLength - this.inputElement.value.length + (result.includes(`${this.negativeSign}`) ? 1 : 0);
|
|
5561
|
-
result = allowedLength > 0 ? result.substring(0, allowedLength) :
|
|
5561
|
+
result = allowedLength > 0 ? result.substring(0, allowedLength) : "";
|
|
5562
5562
|
}
|
|
5563
5563
|
return result;
|
|
5564
5564
|
}
|
|
5565
5565
|
getNegativeSignRegExp() {
|
|
5566
5566
|
return this.allowNegatives && (!this.hasNegativeSign || this.getSelection().includes(this.negativeSign))
|
|
5567
5567
|
? `(?!^${this.negativeSign})`
|
|
5568
|
-
:
|
|
5568
|
+
: "";
|
|
5569
5569
|
}
|
|
5570
5570
|
isValidDecimal(string) {
|
|
5571
5571
|
if (!this.hasDecimalPoint) {
|
|
@@ -5600,7 +5600,7 @@ class DigitOnlyDirective {
|
|
|
5600
5600
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DigitOnlyDirective, decorators: [{
|
|
5601
5601
|
type: Directive,
|
|
5602
5602
|
args: [{
|
|
5603
|
-
selector:
|
|
5603
|
+
selector: "[digitOnly]",
|
|
5604
5604
|
standalone: true,
|
|
5605
5605
|
}]
|
|
5606
5606
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { decimal: [{
|
|
@@ -5621,16 +5621,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5621
5621
|
type: Input
|
|
5622
5622
|
}], onBeforeInput: [{
|
|
5623
5623
|
type: HostListener,
|
|
5624
|
-
args: [
|
|
5624
|
+
args: ["beforeinput", ["$event"]]
|
|
5625
5625
|
}], onKeyDown: [{
|
|
5626
5626
|
type: HostListener,
|
|
5627
|
-
args: [
|
|
5627
|
+
args: ["keydown", ["$event"]]
|
|
5628
5628
|
}], onPaste: [{
|
|
5629
5629
|
type: HostListener,
|
|
5630
|
-
args: [
|
|
5630
|
+
args: ["paste", ["$event"]]
|
|
5631
5631
|
}], onDrop: [{
|
|
5632
5632
|
type: HostListener,
|
|
5633
|
-
args: [
|
|
5633
|
+
args: ["drop", ["$event"]]
|
|
5634
5634
|
}] } });
|
|
5635
5635
|
|
|
5636
5636
|
class AnnaDateFormatterPipe {
|
|
@@ -5646,7 +5646,7 @@ class AnnaDateFormatterPipe {
|
|
|
5646
5646
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaDateFormatterPipe, decorators: [{
|
|
5647
5647
|
type: Pipe,
|
|
5648
5648
|
args: [{
|
|
5649
|
-
name:
|
|
5649
|
+
name: "AnnaDateFormatter",
|
|
5650
5650
|
standalone: true,
|
|
5651
5651
|
}]
|
|
5652
5652
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5657,21 +5657,21 @@ class AnnaConvertArrayToCommaSeperatedValue {
|
|
|
5657
5657
|
}
|
|
5658
5658
|
transform(value, textKeyName, selectedKeyName) {
|
|
5659
5659
|
if (value == undefined || value == null) {
|
|
5660
|
-
return
|
|
5660
|
+
return "-";
|
|
5661
5661
|
}
|
|
5662
5662
|
return this.converter(value, textKeyName, selectedKeyName);
|
|
5663
5663
|
}
|
|
5664
5664
|
replace(value, textKeyName, selectedKeyName) {
|
|
5665
|
-
let stringToDisplay =
|
|
5665
|
+
let stringToDisplay = "";
|
|
5666
5666
|
let anyValueSelected = false;
|
|
5667
5667
|
value.forEach((val) => {
|
|
5668
5668
|
if (selectedKeyName && val[selectedKeyName]) {
|
|
5669
|
-
stringToDisplay = stringToDisplay + val[textKeyName] +
|
|
5669
|
+
stringToDisplay = stringToDisplay + val[textKeyName] + ", ";
|
|
5670
5670
|
anyValueSelected = true;
|
|
5671
5671
|
}
|
|
5672
5672
|
});
|
|
5673
5673
|
if (!anyValueSelected)
|
|
5674
|
-
return
|
|
5674
|
+
return "-";
|
|
5675
5675
|
// remove last 2 characters i.e. comma
|
|
5676
5676
|
stringToDisplay = stringToDisplay.slice(0, -2);
|
|
5677
5677
|
return stringToDisplay;
|
|
@@ -5682,7 +5682,7 @@ class AnnaConvertArrayToCommaSeperatedValue {
|
|
|
5682
5682
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaConvertArrayToCommaSeperatedValue, decorators: [{
|
|
5683
5683
|
type: Pipe,
|
|
5684
5684
|
args: [{
|
|
5685
|
-
name:
|
|
5685
|
+
name: "annaConvertArrayToCSV",
|
|
5686
5686
|
standalone: true,
|
|
5687
5687
|
}]
|
|
5688
5688
|
}] });
|
|
@@ -5709,7 +5709,7 @@ class FixedRowsPopupTableDirective {
|
|
|
5709
5709
|
let tableHeightForPopup = this.tableDataLength < this.maxRowsRenderedWithoutScrollForPopup
|
|
5710
5710
|
? this.popupRowHeight * (this.tableDataLength ? this.tableDataLength : 1) + this.popupHeaderHeight
|
|
5711
5711
|
: totalPopupTableHeight;
|
|
5712
|
-
this.renderer.setStyle(this.el.nativeElement,
|
|
5712
|
+
this.renderer.setStyle(this.el.nativeElement, "height", `calc(${tableHeightForPopup}px)`);
|
|
5713
5713
|
}
|
|
5714
5714
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FixedRowsPopupTableDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5715
5715
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FixedRowsPopupTableDirective, isStandalone: true, selector: "[fixedRowsInPopupTable]", inputs: { popupRowHeight: "popupRowHeight", popupHeaderHeight: "popupHeaderHeight", tableDataLength: "tableDataLength" }, host: { listeners: { "window:resize": "onWindowResize()" } }, ngImport: i0 }); }
|
|
@@ -5717,7 +5717,7 @@ class FixedRowsPopupTableDirective {
|
|
|
5717
5717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FixedRowsPopupTableDirective, decorators: [{
|
|
5718
5718
|
type: Directive,
|
|
5719
5719
|
args: [{
|
|
5720
|
-
selector:
|
|
5720
|
+
selector: "[fixedRowsInPopupTable]",
|
|
5721
5721
|
standalone: true,
|
|
5722
5722
|
}]
|
|
5723
5723
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { popupRowHeight: [{
|
|
@@ -5728,7 +5728,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5728
5728
|
type: Input
|
|
5729
5729
|
}], onWindowResize: [{
|
|
5730
5730
|
type: HostListener,
|
|
5731
|
-
args: [
|
|
5731
|
+
args: ["window:resize"]
|
|
5732
5732
|
}] } });
|
|
5733
5733
|
|
|
5734
5734
|
class AnnaEstIconTemplateComponent {
|
|
@@ -5737,7 +5737,7 @@ class AnnaEstIconTemplateComponent {
|
|
|
5737
5737
|
}
|
|
5738
5738
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaEstIconTemplateComponent, decorators: [{
|
|
5739
5739
|
type: Component,
|
|
5740
|
-
args: [{ selector:
|
|
5740
|
+
args: [{ selector: "anna-core-anna-est-icon-template", standalone: true, imports: [], template: "<svg\r\n width=\"12\"\r\n height=\"12\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n>\r\n <path\r\n d=\"M0 0H14V14H0V0Z\"\r\n fill=\"url(#pattern0)\"\r\n />\r\n <defs>\r\n <pattern\r\n id=\"pattern0\"\r\n patternContentUnits=\"objectBoundingBox\"\r\n width=\"1\"\r\n height=\"1\"\r\n >\r\n <use\r\n xlink:href=\"#image0_866_172\"\r\n transform=\"scale(0.0430107 0.0434783)\"\r\n />\r\n </pattern>\r\n <image\r\n id=\"image0_866_172\"\r\n width=\"93\"\r\n height=\"23\"\r\n xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAAAXCAYAAABpskPJAAAAAXNSR0IArs4c6QAACrxJREFUaAWtWQt0VMUZnrm72WRNSAKWwiELIRwI1ojUHh5hl1rUWlpqC1QbiCgF8jqA2kJ5tGiTLYLUylPwSLKJiVgIBCiUWmhtEduTbIJaFM6hxyLyCAkHKJINeWf33uk3G+7u3Lt3H/Fwz9nM/56Zf/75/5kJJTF8jDHqctt2MEKfgfj7SQOkRfMebGyJQZUw5pRc7oo1sLGcUPZeosla+Ez2+dux6Koyb50aPdjX2V3KKHNIjGwrmNr8CuftPjNiYPttZQcl7HEi0TcL7U0lqk6sbcXJtPGyj1RhbomEsGVFjua/xKxbO3yYjyj7KKX3Q39zkePK+lh0pViEXO7h+YyRJfBgMn6z2tsUZyx6XKbCXTGVMeVlTGggYWROp9z9bo3bZo1Vn8t5u7pWM8JmQ//rjJJ1roa0bE5vb2fPwe7TjJDBTGHFpW7b7zm9P5/PS0sxt29iXmNgv2rX6Qfh/Ng+mTIXJDE/NogwZZ2r3jYtFs2oTudRjgn/UmeswNWQMURHM0QVwsaLDNj7toeR6hr2U5NIjwRTQh9Q+XAQJYqU4ceZMk6l+1uFrSytTVumoUVFWJYg8rUub2uygIcFyz4ckYW5zBAFFIW9JOLh4KhOL6sfMRMRMFZjgDGronj1C6ERiYRgsDNb3O7tkWREHhyNYA5+WEgaxLQQpWQTxpyjpcaOmbuVsLY1VrzKag3OEUYeU3dhCE8gRHU6UdivBPkgqLDF5W7boCChnxAji121aWv6qaUR51tQQwDCdwKTlV1lbtt39Ly7hZfXZaQjcHKN7DGZ/saILtIiOr0vR7HJooIAJymM9XMrC9oAFULWu9xp87XUu4GxeBg/zFPA3bCmt6EQ/y436+kc5ymntD79W0Y8lRbR6Uwh+ij3qYq8RVA9X/rxqBSR1l9YYbTc1TDi8Uh6SBmaLU8VLW6ki02QynrlY2+7bWlG/K9K4ycpbK98nb7GL1SWI+b2sE4vd6c/hFWbLhrH5BcBbw/QGEuhPd7nA3hsQCPEgoNkLI7J8kHeX2zqQSlkdk16wdHtfJDrh4Z3M3KsP4FhlsLXC27R19X1AsJZOH3RFipJRZp+KZtVXjc8UPw1PCBhna4oPl2U09OFjuZ3EHQ7RSOMKL/ozzELjvmIUqlAY4ORAbIiH62sHzlSpPcfplsQGFUaPcbGkZ7eQzVnsywa+ldAYCMJh7mloiqVyPaCKXlV2HufqXReVxSivKji+tbQ6SiQoyH4pCgsEbqB43EW8yY4vjvAY+Te7o6WxQE8BqDQcaWKSFKxVpQN7VW8x4yKs/70oqYb5BxNpHN7Y+xjCrCwf9PYZuwRj6e1CjtXk6Y0MjEgLZ7biGjcN4JfOxy4jVKnQiTT74Jk/8Byyk6OyhRpKmzodJmRlZhN8BxN6ef5jrz9XGnhpEvXcD54SzXgb5myor8XniL7lZcJpeVaO+Q+nHWPVF4cmaCh9wN5hH7gS01NeQqR94moxk8brrrhUS9PvWHSC98pyGbLRZt81+fbm25xWmb2qN3o81KAz4jEvD2Gp7MQp1d+OHIo4udnAWUAEiWv+lfzDlEiFj74QF5GJA7BhUdfXEQThnCmffRiROVRkYnFdnibfXv484FKVyNbxaO1OVln2y1xcTM0ToASiuuK0jrbC9H0jfgtLa3zsXDDVB7f7XzXqzhfbHhKv6jzXCfTM1QZtQ1MTCX09npx/sSR684HpzSlpKS8o+K8zXdcvIxmt0gDvKq/eZMPNCFpUA4i/mPRFpwzu6yu/HWR1l+4b0fG/QDj90diUJ9tKauzaVJnkBcewsJrjra4p1f6+xBULMNMlYTQawLJrPhkXW00KKTURAMFoU+ZbkDk9AqG/KCZWDYgkhSVjiiwtba2LlBxtUVNCeyIO7RWlcfb+ePPdFhJ/A8RORdFOhZ+KZwTeuuDEBbFn5uRogP9+3UZ09gusl/6jJmkmboaJMHAH0obRkzV9teHmaQE47xP2VlVvi/KTRtVXG0XZlzqphINRD+nw9gC3FJtqgxvQyL96uV2642r7Z9D+jiYLxbYG98UFVQ4b+rF/+JGeEDFecvP9SfYNO2lId66H7a+RAriA5BRQKtFHQ7Pd3xxAxX6+1xOy2Mbympt87S0IGaSJH9t6bNNPXGJ5pAXwqLsxlpK2bOwHVggLFoC8SlHXPXp3whaiwxdb+74+/Wr7f/DrnwP+XbWoomNF4w0UlOSd4rzQDBaFJmuFGU1TocAagUrUWSJP3F+lz+hYnvCXcYfNdP12HYBPiaTca7hgsZJRRPO3YyzmCZda2rr7lXYpMIpjf8wslY4+cI5MzH/CJPqUvlwJsWIKoGPU2lim29vPN7dqfzkRnN7S2KyNGrhQ5c8Il+FCxzNBzAPTRFEiAxUZN9f0V8glaryRq3sZWtwxS8qcjRNL7Rf0Z6OBAVeTwiVtgkkDmoeCDVOX7tv4I8hIJfktoREjM6IHy3IbjoDx7wr8nAbw9t5sAhynj8qGPXebO8+L8rq4TzH5Xos4jwxKhEEcWIB4zpiYW1r6zqlMNIW7X0fb+042pHNuj5HcPsizWtwenHuG8hfEy3Fc1sOi7LhYIvVtB2DvB3g6x4IA07nUY5fMbbO2oBwDAAuOngrD34I+0z808LolS/QV1A6FIJzDmHAPw/lRKQEj7cRxArsTSuQ4moiiISwnDyAZKUEgbA20q4XFft2HN0h0vBwuPjtk/fdy2nSKzVDBzurU7c7q1OQ89gDzjmemFZTNYiLDm6YIZeRl/ypCkK8de5JeQOpJ5F45MPOE7qcrxoS2iJ70w4s/msCyRB8/ejoeJ+XLUEfac49yZvUPg2FQeROsw2xzgfwr3AyKt1ZMzjJuTdlI6veLIOW5cxt1dQvVS5sG2/dggXuEPhJ3b4Of4qTenydN7CKTDLRp5AqLFiAaYJgTKAk6aOdZVU0pD/BlX+7N7UcDl9iksgk9JNNrn3yRixGC6dcWQ0nhRRdrqvgiMXbW603/o3ymCmZpEexw5ajr19zeqRvxpjzPZZ7zDOxBP8xkjP13Lm1+nqvIjoHU2p2IHRMa/cmTzSSD0fjtQx96A4hbGlF7dgBuPfQDjIkdVXJnNaDmOT7eDW4P5yhcPT8KY11cOhxkS8ryiI/zkgaUlBe8dzbHyF6n8YEnogWkVyPRyVulgswvg/8dnR/+mz4i+72kjmeE5BbjZL+sE7MEPVv/wQLP8NfNRTgRMqs1GQ64My95cbcvsBr6IqwsmEY1By3EbqdATYeCGXa+SSeVMg+cu3WaWd18i5M5FGr1aK5CAUUogCIiGJRRN1aKF6v4X+kFUgxO/HPhUOUSM9xh4qy4WB+P8AxcDY8cFqUMUvyp9wG+tiJXXQcqWUr2leJmYZcREQ9ES6acKHRZGYzsFjiiedmsn1Ck1+OSnMUWT6CtHseGSArcVBCXxCJRqLABdkXr0NEH+1tEnJVHiawFen9MqWWtNUzb7ZFsWXILrRfduPFbQ0W8UvY+6fZmrCMC5bkth6nkmUs6I2I+EdKcj2HDA2EIfKoTIhLegzsP3MHIUpW5U1u9i8CbFeYqOlh3DZuoc+JzhzPp2HMGJL9dij9HsZ2CgKNJok+m0P38xxOnHM9fzRb4jOxsBuGZY6xrJx+XczPhvaMiJZ74tZhbH/CDzdjaWuho+ng/wFBoBobOBQp5QAAAABJRU5ErkJggg==\"\r\n />\r\n </defs>\r\n</svg>\r\n" }]
|
|
5741
5741
|
}] });
|
|
5742
5742
|
|
|
5743
5743
|
// Angular import statements
|
|
@@ -5822,8 +5822,8 @@ class AnnaCoreModule {
|
|
|
5822
5822
|
radius: 100,
|
|
5823
5823
|
outerStrokeWidth: 16,
|
|
5824
5824
|
innerStrokeWidth: 8,
|
|
5825
|
-
outerStrokeColor:
|
|
5826
|
-
innerStrokeColor:
|
|
5825
|
+
outerStrokeColor: "#78C000",
|
|
5826
|
+
innerStrokeColor: "#C7E596",
|
|
5827
5827
|
animationDuration: 300,
|
|
5828
5828
|
}),
|
|
5829
5829
|
AnnaWeekCalendarComponent,
|
|
@@ -5851,8 +5851,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5851
5851
|
radius: 100,
|
|
5852
5852
|
outerStrokeWidth: 16,
|
|
5853
5853
|
innerStrokeWidth: 8,
|
|
5854
|
-
outerStrokeColor:
|
|
5855
|
-
innerStrokeColor:
|
|
5854
|
+
outerStrokeColor: "#78C000",
|
|
5855
|
+
innerStrokeColor: "#C7E596",
|
|
5856
5856
|
animationDuration: 300,
|
|
5857
5857
|
}),
|
|
5858
5858
|
AnnaNoDataComponent,
|
|
@@ -5936,38 +5936,38 @@ class AnnaNumberFormatService {
|
|
|
5936
5936
|
if (inputValue < 0) {
|
|
5937
5937
|
value = value * -1;
|
|
5938
5938
|
}
|
|
5939
|
-
if (digitsToRoundDecimalPoint == 0 && (unit ==
|
|
5939
|
+
if (digitsToRoundDecimalPoint == 0 && (unit == "M" || unit == "B" || unit == "K")) {
|
|
5940
5940
|
digitsToRoundDecimalPoint = 2;
|
|
5941
5941
|
}
|
|
5942
5942
|
return Number.isInteger(value) ? value.toString() + unit : value.toFixed(digitsToRoundDecimalPoint) + unit;
|
|
5943
5943
|
// return (Math.round(value, digitsToRoundDecimalPoint, MidpointRounding.AwayFromZero) + unit);
|
|
5944
5944
|
}
|
|
5945
5945
|
static GetValueInUnits(inputValue) {
|
|
5946
|
-
let unit =
|
|
5946
|
+
let unit = "";
|
|
5947
5947
|
let thousand = 1000;
|
|
5948
5948
|
let million = 1000000;
|
|
5949
5949
|
let billion = 1000000000;
|
|
5950
5950
|
if (inputValue >= thousand && inputValue < million) {
|
|
5951
5951
|
inputValue = inputValue / thousand;
|
|
5952
|
-
unit =
|
|
5952
|
+
unit = "K";
|
|
5953
5953
|
}
|
|
5954
5954
|
else if (inputValue >= million && inputValue < billion) {
|
|
5955
5955
|
inputValue = inputValue / million;
|
|
5956
|
-
unit =
|
|
5956
|
+
unit = "M";
|
|
5957
5957
|
}
|
|
5958
5958
|
else if (inputValue >= billion) {
|
|
5959
5959
|
inputValue = inputValue / billion;
|
|
5960
|
-
unit =
|
|
5960
|
+
unit = "B";
|
|
5961
5961
|
}
|
|
5962
5962
|
return [inputValue, unit];
|
|
5963
5963
|
}
|
|
5964
5964
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNumberFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5965
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNumberFormatService, providedIn:
|
|
5965
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNumberFormatService, providedIn: "root" }); }
|
|
5966
5966
|
}
|
|
5967
5967
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaNumberFormatService, decorators: [{
|
|
5968
5968
|
type: Injectable,
|
|
5969
5969
|
args: [{
|
|
5970
|
-
providedIn:
|
|
5970
|
+
providedIn: "root",
|
|
5971
5971
|
}]
|
|
5972
5972
|
}] });
|
|
5973
5973
|
|
|
@@ -5975,25 +5975,25 @@ class AnnaPersistingFilterService {
|
|
|
5975
5975
|
constructor() { }
|
|
5976
5976
|
storeKeyValueInLocalStorage(val, isFilterKey = true) {
|
|
5977
5977
|
let filterOrdering;
|
|
5978
|
-
if (!localStorage.getItem(
|
|
5978
|
+
if (!localStorage.getItem("filterOrdering")) {
|
|
5979
5979
|
filterOrdering = [];
|
|
5980
5980
|
}
|
|
5981
5981
|
else {
|
|
5982
|
-
filterOrdering = JSON.parse(localStorage.getItem(
|
|
5982
|
+
filterOrdering = JSON.parse(localStorage.getItem("filterOrdering"));
|
|
5983
5983
|
}
|
|
5984
5984
|
let filterOrderingSet = new Set(filterOrdering);
|
|
5985
5985
|
let hashCode = null;
|
|
5986
5986
|
let key = null;
|
|
5987
5987
|
try {
|
|
5988
5988
|
hashCode = hash(val);
|
|
5989
|
-
key = isFilterKey ?
|
|
5989
|
+
key = isFilterKey ? "filter_" + hashCode : hashCode;
|
|
5990
5990
|
localStorage.setItem(key, JSON.stringify(val));
|
|
5991
5991
|
if (isFilterKey) {
|
|
5992
5992
|
if (filterOrderingSet.has(key)) {
|
|
5993
5993
|
filterOrderingSet.delete(key);
|
|
5994
5994
|
}
|
|
5995
5995
|
filterOrderingSet.add(key);
|
|
5996
|
-
localStorage.setItem(
|
|
5996
|
+
localStorage.setItem("filterOrdering", JSON.stringify(Array.from(filterOrderingSet)));
|
|
5997
5997
|
}
|
|
5998
5998
|
}
|
|
5999
5999
|
catch (e) {
|
|
@@ -6003,14 +6003,14 @@ class AnnaPersistingFilterService {
|
|
|
6003
6003
|
}
|
|
6004
6004
|
filterOrdering.splice(0, filterOrdering.length / 2);
|
|
6005
6005
|
hashCode = hash(val);
|
|
6006
|
-
let key = isFilterKey ?
|
|
6006
|
+
let key = isFilterKey ? "filter_" + hashCode : hashCode;
|
|
6007
6007
|
localStorage.setItem(key, JSON.stringify(val));
|
|
6008
6008
|
if (isFilterKey) {
|
|
6009
6009
|
if (filterOrderingSet.has(key)) {
|
|
6010
6010
|
filterOrderingSet.delete(key);
|
|
6011
6011
|
}
|
|
6012
6012
|
filterOrderingSet.add(key);
|
|
6013
|
-
localStorage.setItem(
|
|
6013
|
+
localStorage.setItem("filterOrdering", JSON.stringify(Array.from(filterOrderingSet)));
|
|
6014
6014
|
}
|
|
6015
6015
|
}
|
|
6016
6016
|
return key;
|
|
@@ -6021,15 +6021,15 @@ class AnnaPersistingFilterService {
|
|
|
6021
6021
|
convertObjToQueryString(paramsObject) {
|
|
6022
6022
|
return Object.keys(paramsObject)
|
|
6023
6023
|
.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(paramsObject[key])}`)
|
|
6024
|
-
.join(
|
|
6024
|
+
.join("&");
|
|
6025
6025
|
}
|
|
6026
6026
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaPersistingFilterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6027
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaPersistingFilterService, providedIn:
|
|
6027
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaPersistingFilterService, providedIn: "root" }); }
|
|
6028
6028
|
}
|
|
6029
6029
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnaPersistingFilterService, decorators: [{
|
|
6030
6030
|
type: Injectable,
|
|
6031
6031
|
args: [{
|
|
6032
|
-
providedIn:
|
|
6032
|
+
providedIn: "root",
|
|
6033
6033
|
}]
|
|
6034
6034
|
}], ctorParameters: function () { return []; } });
|
|
6035
6035
|
|
|
@@ -6056,18 +6056,18 @@ class IconCellActionKey {
|
|
|
6056
6056
|
}
|
|
6057
6057
|
|
|
6058
6058
|
class Constants {
|
|
6059
|
-
static { this.SUCCESS_STRING =
|
|
6060
|
-
static { this.BACKEND_SERVER_URL =
|
|
6061
|
-
static { this.ERROR_MSG =
|
|
6062
|
-
static { this.NO_DATA_MSG =
|
|
6063
|
-
static { this.SERVER_ERROR =
|
|
6064
|
-
static { this.USER_ORIGIN =
|
|
6065
|
-
static { this.ACTIVE_USER_STATUS =
|
|
6066
|
-
static { this.DELETED_USER_STATUS =
|
|
6067
|
-
static { this.INACTIVE_USER_STATUS =
|
|
6068
|
-
static { this.OGAdminRole =
|
|
6069
|
-
static { this.ASARole =
|
|
6070
|
-
static { this.dollars =
|
|
6059
|
+
static { this.SUCCESS_STRING = "success"; }
|
|
6060
|
+
static { this.BACKEND_SERVER_URL = "/server/public/index.php/api"; }
|
|
6061
|
+
static { this.ERROR_MSG = "Error occurred please try again."; }
|
|
6062
|
+
static { this.NO_DATA_MSG = "No Data to display"; }
|
|
6063
|
+
static { this.SERVER_ERROR = "Server error. Please try Again"; }
|
|
6064
|
+
static { this.USER_ORIGIN = "ANNA"; }
|
|
6065
|
+
static { this.ACTIVE_USER_STATUS = "active"; }
|
|
6066
|
+
static { this.DELETED_USER_STATUS = "deleted"; }
|
|
6067
|
+
static { this.INACTIVE_USER_STATUS = "inactive"; }
|
|
6068
|
+
static { this.OGAdminRole = "Ownership Group Admin"; }
|
|
6069
|
+
static { this.ASARole = "Anna Station Admin"; }
|
|
6070
|
+
static { this.dollars = "$"; }
|
|
6071
6071
|
}
|
|
6072
6072
|
class ErrorCodes {
|
|
6073
6073
|
static { this.BAD_REQUEST = 400; }
|
|
@@ -6090,16 +6090,16 @@ var Days;
|
|
|
6090
6090
|
Days[Days["Su"] = 7] = "Su";
|
|
6091
6091
|
})(Days || (Days = {}));
|
|
6092
6092
|
class OrderSources {
|
|
6093
|
-
static { this.Medialine =
|
|
6094
|
-
static { this.Non_electronic =
|
|
6095
|
-
static { this.Others =
|
|
6096
|
-
static { this.WOC_unlinked =
|
|
6097
|
-
static { this.WOC_linked =
|
|
6098
|
-
static { this.WOZ =
|
|
6099
|
-
static { this.Darwin =
|
|
6093
|
+
static { this.Medialine = "Medialine"; }
|
|
6094
|
+
static { this.Non_electronic = "Non electronic"; }
|
|
6095
|
+
static { this.Others = "Others"; }
|
|
6096
|
+
static { this.WOC_unlinked = "WOC Unlinked"; }
|
|
6097
|
+
static { this.WOC_linked = "WOC Linked"; }
|
|
6098
|
+
static { this.WOZ = "WOZ"; }
|
|
6099
|
+
static { this.Darwin = "Darwin"; }
|
|
6100
6100
|
}
|
|
6101
6101
|
class ANNAIconNames {
|
|
6102
|
-
static { this.AutomationActivatedIconName =
|
|
6102
|
+
static { this.AutomationActivatedIconName = "anna-automation-activated-icon mdi mdi-cog-refresh"; }
|
|
6103
6103
|
}
|
|
6104
6104
|
|
|
6105
6105
|
/*
|