@smartsoft001/angular 1.2.16 → 1.2.18

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.
@@ -4700,10 +4700,10 @@ class DateRangeModalComponent {
4700
4700
  }
4701
4701
  }
4702
4702
  /** @nocollapse */ DateRangeModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateRangeModalComponent, deps: [{ token: i3.UntypedFormBuilder }, { token: i2.ModalController }, { token: i2.NavParams }, { token: UIService }, { token: i0.ChangeDetectorRef }, { token: i2.DomController }, { token: CalendarService }, { token: i0.NgZone }, { token: StyleService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
4703
- /** @nocollapse */ DateRangeModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DateRangeModalComponent, selector: "smart-date-range-modal", inputs: { showFilterBtns: "showFilterBtns", restrictSelectionTo: "restrictSelectionTo" }, providers: [CalendarService], viewQueries: [{ propertyName: "scrollMe", first: true, predicate: ["scrollMe"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"heading-container\" padding>\n <div>\n <!-- <p>Selected Date Range</p>-->\n <span style=\"font-size: 12px;\">\n &nbsp;{{dateForm.value.dateFrom ? dateForm.value.dateFrom + ' - ' + dateForm.value.dateTo : ''}}\n </span>\n </div>\n <div id=\"dismiss-div\" (click)=\"dismissPage()\">\n <ion-icon name=\"close-outline\"></ion-icon>\n </div>\n <div id='border-bottom'></div>\n</div>\n\n<div class=\"grid-filter-btns\" *ngIf=\"showFilterBtns\">\n <div (click)=\"selectToday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Today'}\">\n {{ 'CALENDAR.Today' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastSevenDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastSevenDays'}\">\n {{ 'CALENDAR.LastSevenDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectThisMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='ThisMonth'}\">\n {{ 'CALENDAR.ThisMonth' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectYesterday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Yesterday'}\">\n {{ 'CALENDAR.Yesterday' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastThirtyDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastThirtyDays'}\">\n {{ 'CALENDAR.LastThirtyDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastMonth'}\">\n {{ 'CALENDAR.LastMonth' | translate }}\n </span>\n </div>\n\n</div>\n\n<div class=\"day-of-week sizeOf-div\" style=\"background: #fbfcfc; color: #a6aaaf;\">\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sun' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Mon' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Tue' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Wed' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Thu' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Fri' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sat' | translate }}</div>\n</div>\n\n<ion-content #scrollMe>\n <ion-refresher slot=\"fixed\" (ionRefresh)=\"loadDataPrev($event)\">\n <ion-refresher-content\n pullingIcon=\"chevron-down-circle-outline\"\n refreshingSpinner=\"circles\">\n </ion-refresher-content>\n </ion-refresher>\n\n <ng-container *ngFor=\"let month of calendar\">\n <p class=\"heading-month-year\">\n {{ ('CALENDAR.MONTH.' + month.monthName) | translate }} {{month.year}}\n </p>\n <div class=\"date-grid\">\n <div *ngFor=\"let day of month.dates\" class=\"sizeOf-div span-day\" [ngClass]=\"{\n 'selection-start': isSelectionStart(day) ,\n 'selection-end': isSelectionEnd(day) ,\n 'in-range': isInRange(day) ,\n 'same-date':isStartAndEndDateSame()\n }\" id=\"dateRef\" (click)=\"subject$.next({date:day,event:$event})\">\n {{day?.date()}}\n </div>\n </div>\n </ng-container>\n <ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadDataNext($event)\">\n <ion-infinite-scroll-content loadingSpinner=\"bubbles\"></ion-infinite-scroll-content>\n </ion-infinite-scroll>\n</ion-content>\n<ion-footer>\n <ion-toolbar>\n <ion-button style=\"margin: 0 1.2rem;\" expand=\"block\" (click)=\"applyDates()\" [disabled]=\"restrictSelectionTo && !isSelectionInRestrictedRange()\">\n {{ 'select' | translate }}\n </ion-button>\n </ion-toolbar>\n</ion-footer>", styles: [".heading-container{padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--ion-color-tertiary);color:#fff}.heading-container #dismiss-div{position:absolute;right:0px;top:5px;font-size:22px;width:50px;padding:0 10px;text-align:center}.heading-container #dismiss-div:active{opacity:.5}.heading-container p{font-size:16px;margin-bottom:10px}.heading-container #border-bottom{height:2px;background:rgba(255,255,255,.16);width:60%;margin-top:10px}.day-of-week,.date-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-row-gap:10px;grid-column-gap:1px;align-items:center}.day-of-week{border-bottom:.1rem solid #ededed}.sizeOf-div{height:30px;text-align:center}.heading-month-year{margin-left:0;padding:1.2rem;font-size:16px;font-weight:500;color:var(--ion-color-primary);background-color:#fdfdfd;border-top:.1rem solid #efefef;border-bottom:.1rem solid #efefef}.span-day{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#36485b}.grid-filter-btns{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:repeat(3,1fr);width:100%;margin:0 auto;grid-column-gap:10px;grid-row-gap:20px;padding:20px;background-color:var(--ion-color-tertiary)}.span-filter{margin:0;padding:7px;height:auto;color:#fff;border-radius:15px;font-size:.8em;text-align:center}.selected-filter{background:white;color:var(--ion-color-tertiary)}@media (max-width: 320px){.span-filter{font-size:3.5vw}}.selection-start{background-color:var(--ion-color-tertiary);color:#fff;border-top-left-radius:25%;border-bottom-left-radius:25%}.selection-end{background-color:var(--ion-color-tertiary);color:#fff;border-top-right-radius:25%;border-bottom-right-radius:25%}.same-date{border-radius:25%}.in-range{font-weight:700;background-color:#e9eaea}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i2.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: i2.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { kind: "component", type: i2.IonRefresher, selector: "ion-refresher", inputs: ["closeDuration", "disabled", "pullFactor", "pullMax", "pullMin", "snapbackDuration"] }, { kind: "component", type: i2.IonRefresherContent, selector: "ion-refresher-content", inputs: ["pullingIcon", "pullingText", "refreshingSpinner", "refreshingText"] }, { kind: "component", type: i2.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4703
+ /** @nocollapse */ DateRangeModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DateRangeModalComponent, selector: "smart-date-range-modal", inputs: { showFilterBtns: "showFilterBtns", restrictSelectionTo: "restrictSelectionTo" }, providers: [CalendarService], viewQueries: [{ propertyName: "scrollMe", first: true, predicate: ["scrollMe"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"heading-container\" padding>\n <div>\n <!-- <p>Selected Date Range</p>-->\n <span style=\"font-size: 12px;\">\n &nbsp;{{dateForm.value.dateFrom ? dateForm.value.dateFrom + ' - ' + dateForm.value.dateTo : ''}}\n </span>\n </div>\n <div id=\"dismiss-div\" (click)=\"dismissPage()\">\n <ion-icon name=\"close-outline\"></ion-icon>\n </div>\n <div id='border-bottom'></div>\n</div>\n\n<div class=\"grid-filter-btns\" *ngIf=\"showFilterBtns\">\n <div (click)=\"selectToday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Today'}\">\n {{ 'CALENDAR.Today' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastSevenDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastSevenDays'}\">\n {{ 'CALENDAR.LastSevenDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectThisMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='ThisMonth'}\">\n {{ 'CALENDAR.ThisMonth' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectYesterday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Yesterday'}\">\n {{ 'CALENDAR.Yesterday' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastThirtyDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastThirtyDays'}\">\n {{ 'CALENDAR.LastThirtyDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastMonth'}\">\n {{ 'CALENDAR.LastMonth' | translate }}\n </span>\n </div>\n\n</div>\n\n<div class=\"day-of-week sizeOf-div\" style=\"background: #fbfcfc; color: #a6aaaf;\">\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sun' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Mon' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Tue' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Wed' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Thu' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Fri' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sat' | translate }}</div>\n</div>\n\n<ion-content #scrollMe>\n <ion-refresher slot=\"fixed\" (ionRefresh)=\"loadDataPrev($event)\">\n <ion-refresher-content\n pullingIcon=\"chevron-down-circle-outline\"\n refreshingSpinner=\"circles\">\n </ion-refresher-content>\n </ion-refresher>\n\n <ng-container *ngFor=\"let month of calendar\">\n <p class=\"heading-month-year\">\n {{ ('CALENDAR.MONTH.' + month.monthName) | translate }} {{month.year}}\n </p>\n <div class=\"date-grid\">\n <div *ngFor=\"let day of month.dates\" class=\"sizeOf-div span-day\" [ngClass]=\"{\n 'selection-start': isSelectionStart(day) ,\n 'selection-end': isSelectionEnd(day) ,\n 'in-range': isInRange(day) ,\n 'same-date':isStartAndEndDateSame()\n }\" id=\"dateRef\" (click)=\"subject$.next({date:day,event:$event})\">\n {{day?.date()}}\n </div>\n </div>\n </ng-container>\n <ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadDataNext($event)\">\n <ion-infinite-scroll-content loadingSpinner=\"bubbles\"></ion-infinite-scroll-content>\n </ion-infinite-scroll>\n</ion-content>\n<ion-footer>\n <ion-toolbar>\n <ion-button style=\"margin: 0 1.2rem;\" expand=\"block\" (click)=\"applyDates()\" [disabled]=\"restrictSelectionTo && !isSelectionInRestrictedRange()\">\n {{ 'select' | translate }}\n </ion-button>\n </ion-toolbar>\n</ion-footer>", styles: [".heading-container{padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--ion-color-tertiary);color:#fff}.heading-container #dismiss-div{position:absolute;right:0;top:5px;font-size:22px;width:50px;padding:0 10px;text-align:center}.heading-container #dismiss-div:active{opacity:.5}.heading-container p{font-size:16px;margin-bottom:10px}.heading-container #border-bottom{height:2px;background:rgba(255,255,255,.16);width:60%;margin-top:10px}.day-of-week,.date-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-row-gap:10px;grid-column-gap:1px;align-items:center}.day-of-week{border-bottom:.1rem solid #ededed}.sizeOf-div{height:30px;text-align:center}.heading-month-year{margin-left:0;padding:1.2rem;font-size:16px;font-weight:500;color:var(--ion-color-primary);background-color:#fdfdfd;border-top:.1rem solid #efefef;border-bottom:.1rem solid #efefef}.span-day{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#36485b}.grid-filter-btns{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:repeat(3,1fr);width:100%;margin:0 auto;grid-column-gap:10px;grid-row-gap:20px;padding:20px;background-color:var(--ion-color-tertiary)}.span-filter{margin:0;padding:7px;height:auto;color:#fff;border-radius:15px;font-size:.8em;text-align:center}.selected-filter{background:white;color:var(--ion-color-tertiary)}@media (max-width: 320px){.span-filter{font-size:3.5vw}}.selection-start{background-color:var(--ion-color-tertiary);color:#fff;border-top-left-radius:25%;border-bottom-left-radius:25%}.selection-end{background-color:var(--ion-color-tertiary);color:#fff;border-top-right-radius:25%;border-bottom-right-radius:25%}.same-date{border-radius:25%}.in-range{font-weight:700;background-color:#e9eaea}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i2.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: i2.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { kind: "component", type: i2.IonRefresher, selector: "ion-refresher", inputs: ["closeDuration", "disabled", "pullFactor", "pullMax", "pullMin", "snapbackDuration"] }, { kind: "component", type: i2.IonRefresherContent, selector: "ion-refresher-content", inputs: ["pullingIcon", "pullingText", "refreshingSpinner", "refreshingText"] }, { kind: "component", type: i2.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4704
4704
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateRangeModalComponent, decorators: [{
4705
4705
  type: Component,
4706
- args: [{ selector: "smart-date-range-modal", providers: [CalendarService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"heading-container\" padding>\n <div>\n <!-- <p>Selected Date Range</p>-->\n <span style=\"font-size: 12px;\">\n &nbsp;{{dateForm.value.dateFrom ? dateForm.value.dateFrom + ' - ' + dateForm.value.dateTo : ''}}\n </span>\n </div>\n <div id=\"dismiss-div\" (click)=\"dismissPage()\">\n <ion-icon name=\"close-outline\"></ion-icon>\n </div>\n <div id='border-bottom'></div>\n</div>\n\n<div class=\"grid-filter-btns\" *ngIf=\"showFilterBtns\">\n <div (click)=\"selectToday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Today'}\">\n {{ 'CALENDAR.Today' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastSevenDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastSevenDays'}\">\n {{ 'CALENDAR.LastSevenDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectThisMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='ThisMonth'}\">\n {{ 'CALENDAR.ThisMonth' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectYesterday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Yesterday'}\">\n {{ 'CALENDAR.Yesterday' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastThirtyDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastThirtyDays'}\">\n {{ 'CALENDAR.LastThirtyDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastMonth'}\">\n {{ 'CALENDAR.LastMonth' | translate }}\n </span>\n </div>\n\n</div>\n\n<div class=\"day-of-week sizeOf-div\" style=\"background: #fbfcfc; color: #a6aaaf;\">\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sun' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Mon' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Tue' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Wed' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Thu' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Fri' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sat' | translate }}</div>\n</div>\n\n<ion-content #scrollMe>\n <ion-refresher slot=\"fixed\" (ionRefresh)=\"loadDataPrev($event)\">\n <ion-refresher-content\n pullingIcon=\"chevron-down-circle-outline\"\n refreshingSpinner=\"circles\">\n </ion-refresher-content>\n </ion-refresher>\n\n <ng-container *ngFor=\"let month of calendar\">\n <p class=\"heading-month-year\">\n {{ ('CALENDAR.MONTH.' + month.monthName) | translate }} {{month.year}}\n </p>\n <div class=\"date-grid\">\n <div *ngFor=\"let day of month.dates\" class=\"sizeOf-div span-day\" [ngClass]=\"{\n 'selection-start': isSelectionStart(day) ,\n 'selection-end': isSelectionEnd(day) ,\n 'in-range': isInRange(day) ,\n 'same-date':isStartAndEndDateSame()\n }\" id=\"dateRef\" (click)=\"subject$.next({date:day,event:$event})\">\n {{day?.date()}}\n </div>\n </div>\n </ng-container>\n <ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadDataNext($event)\">\n <ion-infinite-scroll-content loadingSpinner=\"bubbles\"></ion-infinite-scroll-content>\n </ion-infinite-scroll>\n</ion-content>\n<ion-footer>\n <ion-toolbar>\n <ion-button style=\"margin: 0 1.2rem;\" expand=\"block\" (click)=\"applyDates()\" [disabled]=\"restrictSelectionTo && !isSelectionInRestrictedRange()\">\n {{ 'select' | translate }}\n </ion-button>\n </ion-toolbar>\n</ion-footer>", styles: [".heading-container{padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--ion-color-tertiary);color:#fff}.heading-container #dismiss-div{position:absolute;right:0px;top:5px;font-size:22px;width:50px;padding:0 10px;text-align:center}.heading-container #dismiss-div:active{opacity:.5}.heading-container p{font-size:16px;margin-bottom:10px}.heading-container #border-bottom{height:2px;background:rgba(255,255,255,.16);width:60%;margin-top:10px}.day-of-week,.date-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-row-gap:10px;grid-column-gap:1px;align-items:center}.day-of-week{border-bottom:.1rem solid #ededed}.sizeOf-div{height:30px;text-align:center}.heading-month-year{margin-left:0;padding:1.2rem;font-size:16px;font-weight:500;color:var(--ion-color-primary);background-color:#fdfdfd;border-top:.1rem solid #efefef;border-bottom:.1rem solid #efefef}.span-day{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#36485b}.grid-filter-btns{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:repeat(3,1fr);width:100%;margin:0 auto;grid-column-gap:10px;grid-row-gap:20px;padding:20px;background-color:var(--ion-color-tertiary)}.span-filter{margin:0;padding:7px;height:auto;color:#fff;border-radius:15px;font-size:.8em;text-align:center}.selected-filter{background:white;color:var(--ion-color-tertiary)}@media (max-width: 320px){.span-filter{font-size:3.5vw}}.selection-start{background-color:var(--ion-color-tertiary);color:#fff;border-top-left-radius:25%;border-bottom-left-radius:25%}.selection-end{background-color:var(--ion-color-tertiary);color:#fff;border-top-right-radius:25%;border-bottom-right-radius:25%}.same-date{border-radius:25%}.in-range{font-weight:700;background-color:#e9eaea}\n"] }]
4706
+ args: [{ selector: "smart-date-range-modal", providers: [CalendarService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"heading-container\" padding>\n <div>\n <!-- <p>Selected Date Range</p>-->\n <span style=\"font-size: 12px;\">\n &nbsp;{{dateForm.value.dateFrom ? dateForm.value.dateFrom + ' - ' + dateForm.value.dateTo : ''}}\n </span>\n </div>\n <div id=\"dismiss-div\" (click)=\"dismissPage()\">\n <ion-icon name=\"close-outline\"></ion-icon>\n </div>\n <div id='border-bottom'></div>\n</div>\n\n<div class=\"grid-filter-btns\" *ngIf=\"showFilterBtns\">\n <div (click)=\"selectToday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Today'}\">\n {{ 'CALENDAR.Today' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastSevenDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastSevenDays'}\">\n {{ 'CALENDAR.LastSevenDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectThisMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='ThisMonth'}\">\n {{ 'CALENDAR.ThisMonth' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectYesterday()\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='Yesterday'}\">\n {{ 'CALENDAR.Yesterday' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastThirtyDays()\" style=\"text-align: center;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastThirtyDays'}\">\n {{ 'CALENDAR.LastThirtyDays' | translate }}\n </span>\n </div>\n\n <div (click)=\"selectLastMonth()\" style=\"text-align: right;\">\n <span class=\"span-filter\" [ngClass]=\"{'selected-filter': selectedButtonName==='LastMonth'}\">\n {{ 'CALENDAR.LastMonth' | translate }}\n </span>\n </div>\n\n</div>\n\n<div class=\"day-of-week sizeOf-div\" style=\"background: #fbfcfc; color: #a6aaaf;\">\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sun' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Mon' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Tue' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Wed' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Thu' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Fri' | translate }}</div>\n <div>{{ 'CALENDAR.DAY_OF_WEEK.Sat' | translate }}</div>\n</div>\n\n<ion-content #scrollMe>\n <ion-refresher slot=\"fixed\" (ionRefresh)=\"loadDataPrev($event)\">\n <ion-refresher-content\n pullingIcon=\"chevron-down-circle-outline\"\n refreshingSpinner=\"circles\">\n </ion-refresher-content>\n </ion-refresher>\n\n <ng-container *ngFor=\"let month of calendar\">\n <p class=\"heading-month-year\">\n {{ ('CALENDAR.MONTH.' + month.monthName) | translate }} {{month.year}}\n </p>\n <div class=\"date-grid\">\n <div *ngFor=\"let day of month.dates\" class=\"sizeOf-div span-day\" [ngClass]=\"{\n 'selection-start': isSelectionStart(day) ,\n 'selection-end': isSelectionEnd(day) ,\n 'in-range': isInRange(day) ,\n 'same-date':isStartAndEndDateSame()\n }\" id=\"dateRef\" (click)=\"subject$.next({date:day,event:$event})\">\n {{day?.date()}}\n </div>\n </div>\n </ng-container>\n <ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadDataNext($event)\">\n <ion-infinite-scroll-content loadingSpinner=\"bubbles\"></ion-infinite-scroll-content>\n </ion-infinite-scroll>\n</ion-content>\n<ion-footer>\n <ion-toolbar>\n <ion-button style=\"margin: 0 1.2rem;\" expand=\"block\" (click)=\"applyDates()\" [disabled]=\"restrictSelectionTo && !isSelectionInRestrictedRange()\">\n {{ 'select' | translate }}\n </ion-button>\n </ion-toolbar>\n</ion-footer>", styles: [".heading-container{padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--ion-color-tertiary);color:#fff}.heading-container #dismiss-div{position:absolute;right:0;top:5px;font-size:22px;width:50px;padding:0 10px;text-align:center}.heading-container #dismiss-div:active{opacity:.5}.heading-container p{font-size:16px;margin-bottom:10px}.heading-container #border-bottom{height:2px;background:rgba(255,255,255,.16);width:60%;margin-top:10px}.day-of-week,.date-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-row-gap:10px;grid-column-gap:1px;align-items:center}.day-of-week{border-bottom:.1rem solid #ededed}.sizeOf-div{height:30px;text-align:center}.heading-month-year{margin-left:0;padding:1.2rem;font-size:16px;font-weight:500;color:var(--ion-color-primary);background-color:#fdfdfd;border-top:.1rem solid #efefef;border-bottom:.1rem solid #efefef}.span-day{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#36485b}.grid-filter-btns{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:repeat(3,1fr);width:100%;margin:0 auto;grid-column-gap:10px;grid-row-gap:20px;padding:20px;background-color:var(--ion-color-tertiary)}.span-filter{margin:0;padding:7px;height:auto;color:#fff;border-radius:15px;font-size:.8em;text-align:center}.selected-filter{background:white;color:var(--ion-color-tertiary)}@media (max-width: 320px){.span-filter{font-size:3.5vw}}.selection-start{background-color:var(--ion-color-tertiary);color:#fff;border-top-left-radius:25%;border-bottom-left-radius:25%}.selection-end{background-color:var(--ion-color-tertiary);color:#fff;border-top-right-radius:25%;border-bottom-right-radius:25%}.same-date{border-radius:25%}.in-range{font-weight:700;background-color:#e9eaea}\n"] }]
4707
4707
  }], ctorParameters: function () { return [{ type: i3.UntypedFormBuilder }, { type: i2.ModalController }, { type: i2.NavParams }, { type: UIService }, { type: i0.ChangeDetectorRef }, { type: i2.DomController }, { type: CalendarService }, { type: i0.NgZone }, { type: StyleService }, { type: i0.ElementRef }]; }, propDecorators: { showFilterBtns: [{
4708
4708
  type: Input
4709
4709
  }], restrictSelectionTo: [{