aeb-ui-kit 1.0.0-beta.4 → 1.1.0-0
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/README.md +24 -24
- package/aeb-ui-kit.d.ts +5 -5
- package/assets/fonts/LICENSE.txt +202 -202
- package/assets/images/arrow_down/arrow_down_blue.svg +3 -3
- package/assets/images/arrow_down/arrow_down_gray.svg +3 -3
- package/assets/images/arrow_down/arrow_down_turquoise.svg +3 -3
- package/assets/images/arrow_down/arrow_down_white.svg +3 -3
- package/assets/images/attach/passport_primary.svg +13 -13
- package/assets/images/attach/passport_secondary.svg +15 -15
- package/assets/images/button-icons/disabled/icon-download.svg +4 -0
- package/assets/images/button-icons/disabled/icon-edit.svg +5 -0
- package/assets/images/button-icons/hovered/icon-spinner.svg +9 -0
- package/assets/images/button-icons/icon-download.svg +4 -0
- package/assets/images/button-icons/icon-edit.svg +5 -0
- package/assets/images/clip.svg +3 -3
- package/assets/images/clip_blue.svg +3 -3
- package/assets/images/close.svg +4 -4
- package/assets/images/icon-add.svg +5 -5
- package/assets/images/icon-back.svg +3 -3
- package/assets/images/icon-blocked.svg +5 -5
- package/assets/images/icon-checked.svg +3 -3
- package/assets/images/icon-download.svg +4 -4
- package/assets/images/icon-edit.svg +5 -5
- package/assets/images/icon-failure.svg +5 -5
- package/assets/images/icon-more.svg +5 -5
- package/assets/images/icon-rework.svg +5 -5
- package/assets/images/icon-spinner.svg +9 -9
- package/assets/images/icon-subtract.svg +4 -4
- package/assets/images/icon-success.svg +4 -4
- package/assets/images/icon-time.svg +5 -5
- package/assets/images/icon-trash.svg +6 -6
- package/assets/images/info.svg +5 -5
- package/assets/images/nt-icon.svg +6 -6
- package/assets/images/visa/icon_failure.svg +5 -5
- package/assets/images/visa/icon_time.svg +5 -5
- package/assets/images/visa/success_icon.svg +4 -4
- package/esm2020/aeb-ui-kit.mjs +4 -4
- package/esm2020/extended-global.mjs +2 -0
- package/esm2020/index.mjs +2 -2
- package/esm2020/lib/accordion/accordion.component.mjs +36 -36
- package/esm2020/lib/accordion/accordion.module.mjs +22 -22
- package/esm2020/lib/action-bar/action-bar.component.mjs +21 -21
- package/esm2020/lib/action-bar/action-bar.module.mjs +22 -22
- package/esm2020/lib/aeb-ui-kit.module.mjs +234 -262
- package/esm2020/lib/checkbox/checkbox.component.mjs +103 -103
- package/esm2020/lib/checkbox/checkbox.module.mjs +18 -18
- package/esm2020/lib/click-outside/click-outside.directive.mjs +45 -45
- package/esm2020/lib/click-outside/click-outside.module.mjs +18 -18
- package/esm2020/lib/comment/comment.component.mjs +72 -71
- package/esm2020/lib/comment/comment.module.mjs +40 -40
- package/esm2020/lib/credit-item-card/credit-item-card.component.mjs +30 -30
- package/esm2020/lib/credit-item-card/credit-item-card.module.mjs +26 -26
- package/esm2020/lib/credit-item-card/models/IProductItemCard.mjs +2 -2
- package/esm2020/lib/datepicker/datepicker-core/datepicker-core.component.mjs +161 -161
- package/esm2020/lib/datepicker/datepicker-month/datepicker-month.component.mjs +61 -61
- package/esm2020/lib/datepicker/datepicker-tiles/datepicker-tiles.component.mjs +104 -104
- package/esm2020/lib/datepicker/datepicker.component.mjs +378 -378
- package/esm2020/lib/datepicker/datepicker.module.mjs +65 -65
- package/esm2020/lib/datepicker/pipes/date-to-str.pipe.mjs +17 -17
- package/esm2020/lib/datepicker/services/datepicker-utils.service.mjs +150 -150
- package/esm2020/lib/datepicker/services/mask-utils.service.mjs +60 -60
- package/esm2020/lib/field-slider/directives/numbers-only.directive.mjs +71 -71
- package/esm2020/lib/field-slider/field-slider.component.mjs +170 -170
- package/esm2020/lib/field-slider/field-slider.module.mjs +38 -38
- package/esm2020/lib/field-slider/pipes/replace.pipe.mjs +19 -19
- package/esm2020/lib/file-attach/directives/drag-and-drop.directive.mjs +49 -49
- package/esm2020/lib/file-attach/file-attach.component.mjs +73 -73
- package/esm2020/lib/file-attach/file-attach.module.mjs +20 -20
- package/esm2020/lib/filter-tags/filter-tag/filter-tag.component.mjs +30 -30
- package/esm2020/lib/filter-tags/filter-tags.component.mjs +37 -37
- package/esm2020/lib/filter-tags/filter-tags.module.mjs +23 -23
- package/esm2020/lib/footer/footer-bottom/footer-bottom.component.mjs +42 -42
- package/esm2020/lib/footer/footer-menu/footer-menu.component.mjs +58 -58
- package/esm2020/lib/footer/footer-top/footer-top.component.mjs +25 -25
- package/esm2020/lib/footer/footer.component.mjs +24 -24
- package/esm2020/lib/footer/footer.module.mjs +33 -33
- package/esm2020/lib/form-field/form-field.component.mjs +87 -87
- package/esm2020/lib/form-field/form-field.module.mjs +22 -22
- package/esm2020/lib/form-field/icon.directive.mjs +14 -14
- package/esm2020/lib/form-field/input.directive.mjs +69 -69
- package/esm2020/lib/form-field/label.directive.mjs +14 -14
- package/esm2020/lib/form-field/textarea.directive.mjs +69 -69
- package/esm2020/lib/header/header.component.mjs +22 -22
- package/esm2020/lib/header/header.module.mjs +19 -19
- package/esm2020/lib/header/logo.component.mjs +15 -15
- package/esm2020/lib/heading/breadcrumps/breadcrumps.component.mjs +25 -27
- package/esm2020/lib/heading/heading.component.mjs +13 -17
- package/esm2020/lib/heading/heading.module.mjs +24 -24
- package/esm2020/lib/heading/product-title/product-title.component.mjs +21 -25
- package/esm2020/lib/label/label.component.mjs +13 -13
- package/esm2020/lib/label/label.module.mjs +18 -18
- package/esm2020/lib/new-button/new-button.component.mjs +77 -60
- package/esm2020/lib/new-button/new-button.module.mjs +18 -18
- package/esm2020/lib/new-dropdown/new-dropdown.component.mjs +187 -185
- package/esm2020/lib/new-dropdown/new-dropdown.module.mjs +34 -34
- package/esm2020/lib/new-notifications/new-notifications.component.mjs +47 -35
- package/esm2020/lib/new-notifications/new-notifications.module.mjs +22 -22
- package/esm2020/lib/new-tooltip/new-tooltip.component.mjs +23 -23
- package/esm2020/lib/new-tooltip/new-tooltip.module.mjs +27 -27
- package/esm2020/lib/new-tooltip/services/domservice.service.mjs +41 -41
- package/esm2020/lib/new-tooltip/tooltip.directive.mjs +159 -159
- package/esm2020/lib/news-card/news-card.component.mjs +14 -15
- package/esm2020/lib/news-card/news-card.module.mjs +27 -22
- package/esm2020/lib/pagination/pagination.component.mjs +187 -187
- package/esm2020/lib/pagination/pagination.module.mjs +28 -28
- package/esm2020/lib/pop-up/pop-up.component.mjs +20 -27
- package/esm2020/lib/pop-up/pop-up.directive.mjs +67 -64
- package/esm2020/lib/pop-up/pop-up.module.mjs +23 -23
- package/esm2020/lib/radio-buttons/radio-buttons.component.mjs +81 -69
- package/esm2020/lib/radio-buttons/radio-buttons.module.mjs +22 -22
- package/esm2020/lib/search/highlight.pipe.mjs +16 -16
- package/esm2020/lib/search/search.component.mjs +67 -67
- package/esm2020/lib/search/search.module.mjs +27 -27
- package/esm2020/lib/select/option.component.mjs +27 -27
- package/esm2020/lib/select/select.component.mjs +114 -114
- package/esm2020/lib/select/select.module.mjs +20 -20
- package/esm2020/lib/sidebar/sidebar.component.mjs +31 -32
- package/esm2020/lib/sidebar/sidebar.module.mjs +18 -18
- package/esm2020/lib/slider/pipes/replace.pipe.mjs +19 -19
- package/esm2020/lib/slider/slider.component.mjs +141 -141
- package/esm2020/lib/slider/slider.module.mjs +23 -23
- package/esm2020/lib/spinner/spinner.component.mjs +13 -13
- package/esm2020/lib/spinner/spinner.module.mjs +18 -18
- package/esm2020/lib/table/table.component.mjs +30 -30
- package/esm2020/lib/table/table.model.mjs +2 -2
- package/esm2020/lib/table/table.module.mjs +19 -19
- package/esm2020/lib/table/table.pipe.mjs +22 -22
- package/esm2020/lib/tabs/tab.directive.mjs +19 -19
- package/esm2020/lib/tabs/tabs.component.mjs +78 -78
- package/esm2020/lib/tabs/tabs.module.mjs +23 -23
- package/esm2020/lib/tag-tab/tag-tab.component.mjs +20 -20
- package/esm2020/lib/tag-tab/tag-tab.module.mjs +18 -18
- package/esm2020/lib/visa/visa-item.component.mjs +16 -16
- package/esm2020/lib/visa/visa-span.directive.mjs +31 -31
- package/esm2020/lib/visa/visa.component.mjs +13 -13
- package/esm2020/lib/visa/visa.module.mjs +36 -36
- package/esm2020/lib/wizard/wizard-step.component.mjs +41 -41
- package/esm2020/lib/wizard/wizard.component.mjs +83 -83
- package/esm2020/lib/wizard/wizard.module.mjs +19 -19
- package/esm2020/public-api.mjs +96 -105
- package/extended-global.d.ts +9 -0
- package/fesm2015/aeb-ui-kit.mjs +4309 -4517
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +4310 -4518
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/lib/accordion/accordion.component.d.ts +13 -13
- package/lib/accordion/accordion.module.d.ts +8 -8
- package/lib/action-bar/action-bar.component.d.ts +10 -10
- package/lib/action-bar/action-bar.module.d.ts +8 -8
- package/lib/aeb-ui-kit.module.d.ts +38 -42
- package/lib/checkbox/checkbox.component.d.ts +32 -32
- package/lib/checkbox/checkbox.module.d.ts +8 -8
- package/lib/click-outside/click-outside.directive.d.ts +16 -16
- package/lib/click-outside/click-outside.module.d.ts +8 -8
- package/lib/comment/comment.component.d.ts +40 -39
- package/lib/comment/comment.module.d.ts +12 -12
- package/lib/credit-item-card/credit-item-card.component.d.ts +13 -13
- package/lib/credit-item-card/credit-item-card.module.d.ts +9 -9
- package/lib/credit-item-card/models/IProductItemCard.d.ts +16 -16
- package/lib/datepicker/datepicker-core/datepicker-core.component.d.ts +41 -41
- package/lib/datepicker/datepicker-month/datepicker-month.component.d.ts +22 -22
- package/lib/datepicker/datepicker-tiles/datepicker-tiles.component.d.ts +31 -31
- package/lib/datepicker/datepicker.component.d.ts +89 -93
- package/lib/datepicker/datepicker.module.d.ts +16 -16
- package/lib/datepicker/pipes/date-to-str.pipe.d.ts +7 -7
- package/lib/datepicker/services/datepicker-utils.service.d.ts +32 -32
- package/lib/datepicker/services/mask-utils.service.d.ts +10 -10
- package/lib/field-slider/directives/numbers-only.directive.d.ts +10 -10
- package/lib/field-slider/field-slider.component.d.ts +34 -34
- package/lib/field-slider/field-slider.module.d.ts +12 -12
- package/lib/field-slider/pipes/replace.pipe.d.ts +7 -7
- package/lib/file-attach/directives/drag-and-drop.directive.d.ts +12 -12
- package/lib/file-attach/file-attach.component.d.ts +28 -28
- package/lib/file-attach/file-attach.module.d.ts +10 -10
- package/lib/filter-tags/filter-tag/filter-tag.component.d.ts +12 -12
- package/lib/filter-tags/filter-tags.component.d.ts +17 -17
- package/lib/filter-tags/filter-tags.module.d.ts +9 -9
- package/lib/footer/footer-bottom/footer-bottom.component.d.ts +16 -16
- package/lib/footer/footer-menu/footer-menu.component.d.ts +16 -16
- package/lib/footer/footer-top/footer-top.component.d.ts +11 -11
- package/lib/footer/footer.component.d.ts +10 -10
- package/lib/footer/footer.module.d.ts +11 -11
- package/lib/form-field/form-field.component.d.ts +19 -19
- package/lib/form-field/form-field.module.d.ts +12 -12
- package/lib/form-field/icon.directive.d.ts +6 -6
- package/lib/form-field/input.directive.d.ts +25 -25
- package/lib/form-field/label.directive.d.ts +6 -6
- package/lib/form-field/textarea.directive.d.ts +25 -25
- package/lib/header/header.component.d.ts +9 -9
- package/lib/header/header.module.d.ts +9 -9
- package/lib/header/logo.component.d.ts +8 -8
- package/lib/heading/breadcrumps/breadcrumps.component.d.ts +9 -11
- package/lib/heading/heading.component.d.ts +6 -9
- package/lib/heading/heading.module.d.ts +10 -10
- package/lib/heading/product-title/product-title.component.d.ts +9 -11
- package/lib/label/label.component.d.ts +8 -8
- package/lib/label/label.module.d.ts +8 -8
- package/lib/new-button/new-button.component.d.ts +59 -41
- package/lib/new-button/new-button.module.d.ts +8 -8
- package/lib/new-dropdown/new-dropdown.component.d.ts +45 -45
- package/lib/new-dropdown/new-dropdown.module.d.ts +11 -11
- package/lib/new-notifications/new-notifications.component.d.ts +30 -22
- package/lib/new-notifications/new-notifications.module.d.ts +8 -8
- package/lib/new-tooltip/new-tooltip.component.d.ts +11 -11
- package/lib/new-tooltip/new-tooltip.module.d.ts +9 -9
- package/lib/new-tooltip/services/domservice.service.d.ts +15 -15
- package/lib/new-tooltip/tooltip.directive.d.ts +48 -50
- package/lib/news-card/news-card.component.d.ts +6 -7
- package/lib/news-card/news-card.module.d.ts +8 -8
- package/lib/pagination/pagination.component.d.ts +40 -40
- package/lib/pagination/pagination.module.d.ts +9 -9
- package/lib/pop-up/pop-up.component.d.ts +9 -12
- package/lib/pop-up/pop-up.directive.d.ts +20 -15
- package/lib/pop-up/pop-up.module.d.ts +9 -9
- package/lib/radio-buttons/radio-buttons.component.d.ts +43 -26
- package/lib/radio-buttons/radio-buttons.module.d.ts +8 -8
- package/lib/search/highlight.pipe.d.ts +7 -7
- package/lib/search/search.component.d.ts +27 -27
- package/lib/search/search.module.d.ts +10 -10
- package/lib/select/option.component.d.ts +13 -13
- package/lib/select/select.component.d.ts +45 -45
- package/lib/select/select.module.d.ts +10 -10
- package/lib/sidebar/sidebar.component.d.ts +12 -12
- package/lib/sidebar/sidebar.module.d.ts +8 -8
- package/lib/slider/pipes/replace.pipe.d.ts +7 -7
- package/lib/slider/slider.component.d.ts +35 -35
- package/lib/slider/slider.module.d.ts +9 -9
- package/lib/spinner/spinner.component.d.ts +8 -8
- package/lib/spinner/spinner.module.d.ts +8 -8
- package/lib/table/table.component.d.ts +12 -12
- package/lib/table/table.model.d.ts +31 -31
- package/lib/table/table.module.d.ts +9 -9
- package/lib/table/table.pipe.d.ts +7 -7
- package/lib/tabs/tab.directive.d.ts +9 -9
- package/lib/tabs/tabs.component.d.ts +24 -24
- package/lib/tabs/tabs.module.d.ts +9 -9
- package/lib/tag-tab/tag-tab.component.d.ts +7 -7
- package/lib/tag-tab/tag-tab.module.d.ts +8 -8
- package/lib/visa/visa-item.component.d.ts +9 -9
- package/lib/visa/visa-span.directive.d.ts +11 -11
- package/lib/visa/visa.component.d.ts +8 -8
- package/lib/visa/visa.module.d.ts +10 -10
- package/lib/wizard/wizard-step.component.d.ts +17 -17
- package/lib/wizard/wizard.component.d.ts +22 -22
- package/lib/wizard/wizard.module.d.ts +9 -9
- package/package.json +1 -1
- package/public-api.d.ts +92 -101
- package/esm2020/lib/button/button.component.mjs +0 -28
- package/esm2020/lib/button/button.module.mjs +0 -18
- package/esm2020/lib/dropdown/dropdown.component.mjs +0 -99
- package/esm2020/lib/dropdown/dropdown.module.mjs +0 -19
- package/esm2020/lib/notifications/notifications.component.mjs +0 -23
- package/esm2020/lib/notifications/notifications.module.mjs +0 -18
- package/esm2020/lib/tooltip/tooltip.component.mjs +0 -24
- package/esm2020/lib/tooltip/tooltip.module.mjs +0 -18
- package/lib/button/button.component.d.ts +0 -12
- package/lib/button/button.module.d.ts +0 -8
- package/lib/dropdown/dropdown.component.d.ts +0 -42
- package/lib/dropdown/dropdown.module.d.ts +0 -9
- package/lib/notifications/notifications.component.d.ts +0 -15
- package/lib/notifications/notifications.module.d.ts +0 -8
- package/lib/tooltip/tooltip.component.d.ts +0 -11
- package/lib/tooltip/tooltip.module.d.ts +0 -8
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../services/datepicker-utils.service";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "../pipes/date-to-str.pipe";
|
|
7
|
-
export class DatepickerMonthComponent {
|
|
8
|
-
constructor(utils) {
|
|
9
|
-
this.utils = utils;
|
|
10
|
-
this.setDate = new EventEmitter();
|
|
11
|
-
this.week = DatepickerUtilsService.weekLocal;
|
|
12
|
-
}
|
|
13
|
-
isToday(date) {
|
|
14
|
-
return this.utils.isToday(date);
|
|
15
|
-
}
|
|
16
|
-
emitDate(date) {
|
|
17
|
-
if (this.isDisabled(date))
|
|
18
|
-
return;
|
|
19
|
-
this.setDate.emit(date);
|
|
20
|
-
}
|
|
21
|
-
sameDate(date) {
|
|
22
|
-
return this.utils.isSameDay(this.date, date);
|
|
23
|
-
}
|
|
24
|
-
isExcluded(date) {
|
|
25
|
-
return !!this.excludedDates
|
|
26
|
-
.filter(item => this.utils.isSameDay(item, date))
|
|
27
|
-
.length;
|
|
28
|
-
}
|
|
29
|
-
isDisabled(date) {
|
|
30
|
-
return this.utils.isMinOverlap(this.minDate, date)
|
|
31
|
-
|| this.utils.isMaxOverlap(this.maxDate, date)
|
|
32
|
-
|| this.isExcluded(date);
|
|
33
|
-
}
|
|
34
|
-
ngOnInit() {
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
DatepickerMonthComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerMonthComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
-
DatepickerMonthComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DatepickerMonthComponent, selector: "aeb-datepicker-month", inputs: { month: "month", date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates" }, outputs: { setDate: "setDate" }, ngImport: i0, template: "<div class=\"aeb-datepicker-month__week\">\n <div\n *ngFor=\"let day of week\"\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\"\n >\n {{day}}\n </div>\n</div>\n<div *ngFor=\"let week of month\" class=\"aeb-datepicker-month__week\">\n <ng-container\n *ngFor=\"let day of week\"\n >\n <div\n *ngIf=\"!!day; else elseStub\"\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': isToday(day),\n 'aeb-datepicker-month__day--picked': sameDate(day),\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\n }\"\n (click)=\"emitDate(day)\"\n >\n {{day | dateToStr}}\n </div>\n <ng-template\n #elseStub\n >\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n >\n </div>\n </ng-template>\n </ng-container>\n</div>\n", styles: [".aeb-datepicker-month__week{width:-moz-fit-content;width:fit-content;display:flex;align-items:center}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{width:32px;height:28px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;box-sizing:border-box;border-radius:4px}.aeb-datepicker-month__day:hover{border:1px solid var(--blue)}.aeb-datepicker-month__day--stub{cursor:none;pointer-events:none}.aeb-datepicker-month__day--stub:hover{border:none}.aeb-datepicker-month__day--today{border:1px solid var(--gray-primary)}.aeb-datepicker-month__day--picked{border:none;background-color:var(--blue);color:#fff}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-month__day--disabled:hover{border:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:12px;color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:none}\n"], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "dateToStr": i3.DateToStrPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerMonthComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'aeb-datepicker-month', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-datepicker-month__week\">\n <div\n *ngFor=\"let day of week\"\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\"\n >\n {{day}}\n </div>\n</div>\n<div *ngFor=\"let week of month\" class=\"aeb-datepicker-month__week\">\n <ng-container\n *ngFor=\"let day of week\"\n >\n <div\n *ngIf=\"!!day; else elseStub\"\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': isToday(day),\n 'aeb-datepicker-month__day--picked': sameDate(day),\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\n }\"\n (click)=\"emitDate(day)\"\n >\n {{day | dateToStr}}\n </div>\n <ng-template\n #elseStub\n >\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n >\n </div>\n </ng-template>\n </ng-container>\n</div>\n", styles: [".aeb-datepicker-month__week{width:-moz-fit-content;width:fit-content;display:flex;align-items:center}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{width:32px;height:28px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;box-sizing:border-box;border-radius:4px}.aeb-datepicker-month__day:hover{border:1px solid var(--blue)}.aeb-datepicker-month__day--stub{cursor:none;pointer-events:none}.aeb-datepicker-month__day--stub:hover{border:none}.aeb-datepicker-month__day--today{border:1px solid var(--gray-primary)}.aeb-datepicker-month__day--picked{border:none;background-color:var(--blue);color:#fff}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-month__day--disabled:hover{border:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:12px;color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:none}\n"] }]
|
|
42
|
-
}], ctorParameters: function () { return [{ type: i1.DatepickerUtilsService }]; }, propDecorators: { month: [{
|
|
43
|
-
type: Input,
|
|
44
|
-
args: ['month']
|
|
45
|
-
}], setDate: [{
|
|
46
|
-
type: Output,
|
|
47
|
-
args: ['setDate']
|
|
48
|
-
}], date: [{
|
|
49
|
-
type: Input,
|
|
50
|
-
args: ['date']
|
|
51
|
-
}], minDate: [{
|
|
52
|
-
type: Input,
|
|
53
|
-
args: ['minDate']
|
|
54
|
-
}], maxDate: [{
|
|
55
|
-
type: Input,
|
|
56
|
-
args: ['maxDate']
|
|
57
|
-
}], excludedDates: [{
|
|
58
|
-
type: Input,
|
|
59
|
-
args: ['excludedDates']
|
|
60
|
-
}] } });
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../services/datepicker-utils.service";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "../pipes/date-to-str.pipe";
|
|
7
|
+
export class DatepickerMonthComponent {
|
|
8
|
+
constructor(utils) {
|
|
9
|
+
this.utils = utils;
|
|
10
|
+
this.setDate = new EventEmitter();
|
|
11
|
+
this.week = DatepickerUtilsService.weekLocal;
|
|
12
|
+
}
|
|
13
|
+
isToday(date) {
|
|
14
|
+
return this.utils.isToday(date);
|
|
15
|
+
}
|
|
16
|
+
emitDate(date) {
|
|
17
|
+
if (this.isDisabled(date))
|
|
18
|
+
return;
|
|
19
|
+
this.setDate.emit(date);
|
|
20
|
+
}
|
|
21
|
+
sameDate(date) {
|
|
22
|
+
return this.utils.isSameDay(this.date, date);
|
|
23
|
+
}
|
|
24
|
+
isExcluded(date) {
|
|
25
|
+
return !!this.excludedDates
|
|
26
|
+
.filter(item => this.utils.isSameDay(item, date))
|
|
27
|
+
.length;
|
|
28
|
+
}
|
|
29
|
+
isDisabled(date) {
|
|
30
|
+
return this.utils.isMinOverlap(this.minDate, date)
|
|
31
|
+
|| this.utils.isMaxOverlap(this.maxDate, date)
|
|
32
|
+
|| this.isExcluded(date);
|
|
33
|
+
}
|
|
34
|
+
ngOnInit() {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
DatepickerMonthComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerMonthComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
DatepickerMonthComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DatepickerMonthComponent, selector: "aeb-datepicker-month", inputs: { month: "month", date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates" }, outputs: { setDate: "setDate" }, ngImport: i0, template: "<div class=\"aeb-datepicker-month__week\">\r\n <div\r\n *ngFor=\"let day of week\"\r\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\"\r\n >\r\n {{day}}\r\n </div>\r\n</div>\r\n<div *ngFor=\"let week of month\" class=\"aeb-datepicker-month__week\">\r\n <ng-container\r\n *ngFor=\"let day of week\"\r\n >\r\n <div\r\n *ngIf=\"!!day; else elseStub\"\r\n class=\"aeb-datepicker-month__day\"\r\n [ngClass]=\"{\r\n 'aeb-datepicker-month__day--today': isToday(day),\r\n 'aeb-datepicker-month__day--picked': sameDate(day),\r\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\r\n }\"\r\n (click)=\"emitDate(day)\"\r\n >\r\n {{day | dateToStr}}\r\n </div>\r\n <ng-template\r\n #elseStub\r\n >\r\n <div\r\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\r\n >\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>\r\n", styles: [".aeb-datepicker-month__week{width:-moz-fit-content;width:fit-content;display:flex;align-items:center}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{width:32px;height:28px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;box-sizing:border-box;border-radius:4px}.aeb-datepicker-month__day:hover{border:1px solid var(--blue)}.aeb-datepicker-month__day--stub{cursor:none;pointer-events:none}.aeb-datepicker-month__day--stub:hover{border:none}.aeb-datepicker-month__day--today{border:1px solid var(--gray-primary)}.aeb-datepicker-month__day--picked{border:none;background-color:var(--blue);color:#fff}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-month__day--disabled:hover{border:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:12px;color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:none}\n"], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "dateToStr": i3.DateToStrPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerMonthComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: 'aeb-datepicker-month', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-datepicker-month__week\">\r\n <div\r\n *ngFor=\"let day of week\"\r\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\"\r\n >\r\n {{day}}\r\n </div>\r\n</div>\r\n<div *ngFor=\"let week of month\" class=\"aeb-datepicker-month__week\">\r\n <ng-container\r\n *ngFor=\"let day of week\"\r\n >\r\n <div\r\n *ngIf=\"!!day; else elseStub\"\r\n class=\"aeb-datepicker-month__day\"\r\n [ngClass]=\"{\r\n 'aeb-datepicker-month__day--today': isToday(day),\r\n 'aeb-datepicker-month__day--picked': sameDate(day),\r\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\r\n }\"\r\n (click)=\"emitDate(day)\"\r\n >\r\n {{day | dateToStr}}\r\n </div>\r\n <ng-template\r\n #elseStub\r\n >\r\n <div\r\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\r\n >\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>\r\n", styles: [".aeb-datepicker-month__week{width:-moz-fit-content;width:fit-content;display:flex;align-items:center}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{width:32px;height:28px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;box-sizing:border-box;border-radius:4px}.aeb-datepicker-month__day:hover{border:1px solid var(--blue)}.aeb-datepicker-month__day--stub{cursor:none;pointer-events:none}.aeb-datepicker-month__day--stub:hover{border:none}.aeb-datepicker-month__day--today{border:1px solid var(--gray-primary)}.aeb-datepicker-month__day--picked{border:none;background-color:var(--blue);color:#fff}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-month__day--disabled:hover{border:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:12px;color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:none}\n"] }]
|
|
42
|
+
}], ctorParameters: function () { return [{ type: i1.DatepickerUtilsService }]; }, propDecorators: { month: [{
|
|
43
|
+
type: Input,
|
|
44
|
+
args: ['month']
|
|
45
|
+
}], setDate: [{
|
|
46
|
+
type: Output,
|
|
47
|
+
args: ['setDate']
|
|
48
|
+
}], date: [{
|
|
49
|
+
type: Input,
|
|
50
|
+
args: ['date']
|
|
51
|
+
}], minDate: [{
|
|
52
|
+
type: Input,
|
|
53
|
+
args: ['minDate']
|
|
54
|
+
}], maxDate: [{
|
|
55
|
+
type: Input,
|
|
56
|
+
args: ['maxDate']
|
|
57
|
+
}], excludedDates: [{
|
|
58
|
+
type: Input,
|
|
59
|
+
args: ['excludedDates']
|
|
60
|
+
}] } });
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1tb250aC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvZGF0ZXBpY2tlci9kYXRlcGlja2VyLW1vbnRoL2RhdGVwa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wiXHJcbiAgICAgICAgY2xhc3M9XCJhZWItZGF0ZXBpY2tlci1tb250aF9fZGF5IGFlYi1kYXRlcGlja2VyLW1vbnRoX19kYXktLXdlZWtkXCJcclxuICAgID5cclxuICAgICAgICB7e2RheX19XHJcbiAgICA8L2Rpdj5cclxuPC9kaXY+XHJcbjxkaXYgKm5nRm9yPVwibGV0IHdlZWsgb2YgbW9udGhcIiBjbGFzcz1cImFlYi1kYXRlcGlja2VyLW1vbnRoX193ZWVrXCI+XHJcbiAgICA8bmctY29udGFpbmVyXHJcbiAgICAgICAgKm5nRm9yPVwibGV0IGRheSBvZiB3ZWVrXCJcclxuICAgID5cclxuICAgICAgICA8ZGl2XHJcbiAgICAgICAgICAgICpuZ0lmPVwiISFkYXk7IGVsc2UgZWxzZVN0dWJcIlxyXG4gICAgICAgICAgICBjbGFzcz1cImFlYi1kYXRlcGlja2VyLW1vbnRoX19kYXlcIlxyXG4gICAgICAgICAgICBbbmdDbGFzc109XCJ7XHJcbiAgICAgICAgICAgICAgICAnYWViLWRhdGVwaWNrZXItbW9udGhfX2RheS0tdG9kYXknOiBpc1RvZGF5KGRheSksXHJcbiAgICAgICAgICAgICAgICAnYWViLWRhdGVwaWNrZXItbW9udGhfX2RheS0tcGlja2VkJzogc2FtZURhdGUoZGF5KSxcclxuICAgICAgICAgICAgICAgICdhZWItZGF0ZXBpY2tlci1tb250aF9fZGF5LS1kaXNhYmxlZCc6IGlzRGlzYWJsZWQoZGF5KVxyXG4gICAgICAgICAgICB9XCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cImVtaXREYXRlKGRheSlcIlxyXG4gICAgICAgID5cclxuICAgICAgICAgICAge3tkYXkgfCBkYXRlVG9TdHJ9fVxyXG4gICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDxuZy10ZW1wbGF0ZVxyXG4gICAgICAgICAgICAjZWxzZVN0dWJcclxuICAgICAgICA+XHJcbiAgICAgICAgICAgIDxkaXZcclxuICAgICAgICAgICAgICAgIGNsYXNzPVwiYWViLWRhdGVwaWNrZXItbW9udGhfX2RheSBhZWItZGF0ZXBpY2tlci1tb250aF9fZGF5LS1zdHViXCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgPC9uZy1jb250YWluZXI+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../services/datepicker-utils.service";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
export class DatepickerTilesComponent {
|
|
7
|
-
constructor(utils) {
|
|
8
|
-
this.utils = utils;
|
|
9
|
-
this.isMonths = false;
|
|
10
|
-
this.isYears = false;
|
|
11
|
-
this.setYear = new EventEmitter();
|
|
12
|
-
this.setMonth = new EventEmitter();
|
|
13
|
-
this.woDays = false;
|
|
14
|
-
this.months = DatepickerUtilsService.monthsLocal;
|
|
15
|
-
}
|
|
16
|
-
emitMonth(month) {
|
|
17
|
-
this.setMonth.emit(month);
|
|
18
|
-
}
|
|
19
|
-
emitYear(year) {
|
|
20
|
-
this.setYear.emit(year);
|
|
21
|
-
}
|
|
22
|
-
scrollYears() {
|
|
23
|
-
if (this.isMonths)
|
|
24
|
-
return;
|
|
25
|
-
const diff = Math.abs(this.utils.yearsDiff(this.utils.startOfYear(this.date), this.utils.startOfYear(this.maxYear)));
|
|
26
|
-
const yearRowHeight = 54;
|
|
27
|
-
const steps = Math.floor(diff / 3);
|
|
28
|
-
const padding = 6;
|
|
29
|
-
const marginDelta = steps;
|
|
30
|
-
this.container.nativeElement.scrollTop = (yearRowHeight * steps) + marginDelta - padding;
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
this.years = this.utils.genYears(this.minYear, this.maxYear).reverse();
|
|
34
|
-
}
|
|
35
|
-
ngOnChanges(changes) {
|
|
36
|
-
if (changes.isYears && this.container) {
|
|
37
|
-
setTimeout(() => this.scrollYears());
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
isMonthDisabled(month) {
|
|
41
|
-
if (this.woDays) {
|
|
42
|
-
return this.utils.isMinOverlap(this.minDate, new Date(this.year, month))
|
|
43
|
-
|| this.utils.isMaxOverlap(this.maxDate, new Date(this.year, month));
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
isYearDisabled(year) {
|
|
50
|
-
if (this.woDays) {
|
|
51
|
-
return this.utils.isMinOverlap(this.minDate, new Date(year, 11, 31))
|
|
52
|
-
|| this.utils.isMaxOverlap(this.maxDate, new Date(year, 0));
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
DatepickerTilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerTilesComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
-
DatepickerTilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DatepickerTilesComponent, selector: "aeb-datepicker-tiles", inputs: { date: "date", isMonths: "isMonths", isYears: "isYears", year: "year", month: "month", minYear: "minYear", maxYear: "maxYear", minDate: "minDate", maxDate: "maxDate", woDays: "woDays" }, outputs: { setYear: "setYear", setMonth: "setMonth" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker-tiles\"\n #container\n>\n <div\n class=\"aeb-datepicker-tiles__scroll\"\n [ngClass]=\"{'aeb-datepicker-tiles__scroll--months': isMonths}\"\n >\n <div\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n *ngFor=\"let yearNum of years\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n <div\n [style.display]=\"isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n *ngFor=\"let monthNum of months; let i = index\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': i === month,\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n </div>\n</div>", styles: [".aeb-datepicker-tiles{min-width:275px;height:220px;position:relative;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{display:flex;flex-wrap:wrap;justify-content:space-between;position:absolute;width:100%}.aeb-datepicker-tiles__tile{width:84px;height:41px;display:flex;justify-content:center;align-items:center;border:1px solid var(--gray-primary);border-radius:4px;font-size:16px;box-sizing:unset!important}.aeb-datepicker-tiles__tile:hover{border:1px solid var(--blue);cursor:pointer}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{border:1px solid var(--blue);background-color:var(--blue);color:#fff}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-tiles__tile--disabled:hover{border:none}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerTilesComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{ selector: 'aeb-datepicker-tiles', template: "<div\n class=\"aeb-datepicker-tiles\"\n #container\n>\n <div\n class=\"aeb-datepicker-tiles__scroll\"\n [ngClass]=\"{'aeb-datepicker-tiles__scroll--months': isMonths}\"\n >\n <div\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n *ngFor=\"let yearNum of years\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n <div\n [style.display]=\"isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n *ngFor=\"let monthNum of months; let i = index\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': i === month,\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n </div>\n</div>", styles: [".aeb-datepicker-tiles{min-width:275px;height:220px;position:relative;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{display:flex;flex-wrap:wrap;justify-content:space-between;position:absolute;width:100%}.aeb-datepicker-tiles__tile{width:84px;height:41px;display:flex;justify-content:center;align-items:center;border:1px solid var(--gray-primary);border-radius:4px;font-size:16px;box-sizing:unset!important}.aeb-datepicker-tiles__tile:hover{border:1px solid var(--blue);cursor:pointer}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{border:1px solid var(--blue);background-color:var(--blue);color:#fff}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-tiles__tile--disabled:hover{border:none}\n"] }]
|
|
64
|
-
}], ctorParameters: function () { return [{ type: i1.DatepickerUtilsService }]; }, propDecorators: { container: [{
|
|
65
|
-
type: ViewChild,
|
|
66
|
-
args: ['container']
|
|
67
|
-
}], date: [{
|
|
68
|
-
type: Input,
|
|
69
|
-
args: ['date']
|
|
70
|
-
}], isMonths: [{
|
|
71
|
-
type: Input,
|
|
72
|
-
args: ['isMonths']
|
|
73
|
-
}], isYears: [{
|
|
74
|
-
type: Input,
|
|
75
|
-
args: ['isYears']
|
|
76
|
-
}], year: [{
|
|
77
|
-
type: Input,
|
|
78
|
-
args: ['year']
|
|
79
|
-
}], setYear: [{
|
|
80
|
-
type: Output,
|
|
81
|
-
args: ['setYear']
|
|
82
|
-
}], month: [{
|
|
83
|
-
type: Input,
|
|
84
|
-
args: ['month']
|
|
85
|
-
}], setMonth: [{
|
|
86
|
-
type: Output,
|
|
87
|
-
args: ['setMonth']
|
|
88
|
-
}], minYear: [{
|
|
89
|
-
type: Input,
|
|
90
|
-
args: ['minYear']
|
|
91
|
-
}], maxYear: [{
|
|
92
|
-
type: Input,
|
|
93
|
-
args: ['maxYear']
|
|
94
|
-
}], minDate: [{
|
|
95
|
-
type: Input,
|
|
96
|
-
args: ['minDate']
|
|
97
|
-
}], maxDate: [{
|
|
98
|
-
type: Input,
|
|
99
|
-
args: ['maxDate']
|
|
100
|
-
}], woDays: [{
|
|
101
|
-
type: Input,
|
|
102
|
-
args: ['woDays']
|
|
103
|
-
}] } });
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../services/datepicker-utils.service";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
export class DatepickerTilesComponent {
|
|
7
|
+
constructor(utils) {
|
|
8
|
+
this.utils = utils;
|
|
9
|
+
this.isMonths = false;
|
|
10
|
+
this.isYears = false;
|
|
11
|
+
this.setYear = new EventEmitter();
|
|
12
|
+
this.setMonth = new EventEmitter();
|
|
13
|
+
this.woDays = false;
|
|
14
|
+
this.months = DatepickerUtilsService.monthsLocal;
|
|
15
|
+
}
|
|
16
|
+
emitMonth(month) {
|
|
17
|
+
this.setMonth.emit(month);
|
|
18
|
+
}
|
|
19
|
+
emitYear(year) {
|
|
20
|
+
this.setYear.emit(year);
|
|
21
|
+
}
|
|
22
|
+
scrollYears() {
|
|
23
|
+
if (this.isMonths)
|
|
24
|
+
return;
|
|
25
|
+
const diff = Math.abs(this.utils.yearsDiff(this.utils.startOfYear(this.date), this.utils.startOfYear(this.maxYear)));
|
|
26
|
+
const yearRowHeight = 54;
|
|
27
|
+
const steps = Math.floor(diff / 3);
|
|
28
|
+
const padding = 6;
|
|
29
|
+
const marginDelta = steps;
|
|
30
|
+
this.container.nativeElement.scrollTop = (yearRowHeight * steps) + marginDelta - padding;
|
|
31
|
+
}
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
this.years = this.utils.genYears(this.minYear, this.maxYear).reverse();
|
|
34
|
+
}
|
|
35
|
+
ngOnChanges(changes) {
|
|
36
|
+
if (changes.isYears && this.container) {
|
|
37
|
+
setTimeout(() => this.scrollYears());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
isMonthDisabled(month) {
|
|
41
|
+
if (this.woDays) {
|
|
42
|
+
return this.utils.isMinOverlap(this.minDate, new Date(this.year, month))
|
|
43
|
+
|| this.utils.isMaxOverlap(this.maxDate, new Date(this.year, month));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
isYearDisabled(year) {
|
|
50
|
+
if (this.woDays) {
|
|
51
|
+
return this.utils.isMinOverlap(this.minDate, new Date(year, 11, 31))
|
|
52
|
+
|| this.utils.isMaxOverlap(this.maxDate, new Date(year, 0));
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
DatepickerTilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerTilesComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
DatepickerTilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DatepickerTilesComponent, selector: "aeb-datepicker-tiles", inputs: { date: "date", isMonths: "isMonths", isYears: "isYears", year: "year", month: "month", minYear: "minYear", maxYear: "maxYear", minDate: "minDate", maxDate: "maxDate", woDays: "woDays" }, outputs: { setYear: "setYear", setMonth: "setMonth" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\r\n class=\"aeb-datepicker-tiles\"\r\n #container\r\n>\r\n <div\r\n class=\"aeb-datepicker-tiles__scroll\"\r\n [ngClass]=\"{'aeb-datepicker-tiles__scroll--months': isMonths}\"\r\n >\r\n <div\r\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\r\n class=\"aeb-datepicker-tiles__tile\"\r\n *ngFor=\"let yearNum of years\"\r\n [ngClass]=\"{\r\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\r\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\r\n }\"\r\n (click)=\"emitYear(yearNum)\"\r\n >\r\n {{ yearNum }}\r\n </div>\r\n <div\r\n [style.display]=\"isMonths ? 'flex' : 'none'\"\r\n class=\"aeb-datepicker-tiles__tile\"\r\n *ngFor=\"let monthNum of months; let i = index\"\r\n [ngClass]=\"{\r\n 'aeb-datepicker-tiles__tile--active': i === month,\r\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\r\n }\"\r\n (click)=\"emitMonth(i)\"\r\n >\r\n {{ monthNum }}\r\n </div>\r\n </div>\r\n</div>", styles: [".aeb-datepicker-tiles{min-width:275px;height:220px;position:relative;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{display:flex;flex-wrap:wrap;justify-content:space-between;position:absolute;width:100%}.aeb-datepicker-tiles__tile{width:84px;height:41px;display:flex;justify-content:center;align-items:center;border:1px solid var(--gray-primary);border-radius:4px;font-size:16px;box-sizing:unset!important}.aeb-datepicker-tiles__tile:hover{border:1px solid var(--blue);cursor:pointer}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{border:1px solid var(--blue);background-color:var(--blue);color:#fff}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-tiles__tile--disabled:hover{border:none}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DatepickerTilesComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'aeb-datepicker-tiles', template: "<div\r\n class=\"aeb-datepicker-tiles\"\r\n #container\r\n>\r\n <div\r\n class=\"aeb-datepicker-tiles__scroll\"\r\n [ngClass]=\"{'aeb-datepicker-tiles__scroll--months': isMonths}\"\r\n >\r\n <div\r\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\r\n class=\"aeb-datepicker-tiles__tile\"\r\n *ngFor=\"let yearNum of years\"\r\n [ngClass]=\"{\r\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\r\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\r\n }\"\r\n (click)=\"emitYear(yearNum)\"\r\n >\r\n {{ yearNum }}\r\n </div>\r\n <div\r\n [style.display]=\"isMonths ? 'flex' : 'none'\"\r\n class=\"aeb-datepicker-tiles__tile\"\r\n *ngFor=\"let monthNum of months; let i = index\"\r\n [ngClass]=\"{\r\n 'aeb-datepicker-tiles__tile--active': i === month,\r\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\r\n }\"\r\n (click)=\"emitMonth(i)\"\r\n >\r\n {{ monthNum }}\r\n </div>\r\n </div>\r\n</div>", styles: [".aeb-datepicker-tiles{min-width:275px;height:220px;position:relative;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{display:flex;flex-wrap:wrap;justify-content:space-between;position:absolute;width:100%}.aeb-datepicker-tiles__tile{width:84px;height:41px;display:flex;justify-content:center;align-items:center;border:1px solid var(--gray-primary);border-radius:4px;font-size:16px;box-sizing:unset!important}.aeb-datepicker-tiles__tile:hover{border:1px solid var(--blue);cursor:pointer}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{border:1px solid var(--blue);background-color:var(--blue);color:#fff}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-tiles__tile--disabled:hover{border:none}\n"] }]
|
|
64
|
+
}], ctorParameters: function () { return [{ type: i1.DatepickerUtilsService }]; }, propDecorators: { container: [{
|
|
65
|
+
type: ViewChild,
|
|
66
|
+
args: ['container']
|
|
67
|
+
}], date: [{
|
|
68
|
+
type: Input,
|
|
69
|
+
args: ['date']
|
|
70
|
+
}], isMonths: [{
|
|
71
|
+
type: Input,
|
|
72
|
+
args: ['isMonths']
|
|
73
|
+
}], isYears: [{
|
|
74
|
+
type: Input,
|
|
75
|
+
args: ['isYears']
|
|
76
|
+
}], year: [{
|
|
77
|
+
type: Input,
|
|
78
|
+
args: ['year']
|
|
79
|
+
}], setYear: [{
|
|
80
|
+
type: Output,
|
|
81
|
+
args: ['setYear']
|
|
82
|
+
}], month: [{
|
|
83
|
+
type: Input,
|
|
84
|
+
args: ['month']
|
|
85
|
+
}], setMonth: [{
|
|
86
|
+
type: Output,
|
|
87
|
+
args: ['setMonth']
|
|
88
|
+
}], minYear: [{
|
|
89
|
+
type: Input,
|
|
90
|
+
args: ['minYear']
|
|
91
|
+
}], maxYear: [{
|
|
92
|
+
type: Input,
|
|
93
|
+
args: ['maxYear']
|
|
94
|
+
}], minDate: [{
|
|
95
|
+
type: Input,
|
|
96
|
+
args: ['minDate']
|
|
97
|
+
}], maxDate: [{
|
|
98
|
+
type: Input,
|
|
99
|
+
args: ['maxDate']
|
|
100
|
+
}], woDays: [{
|
|
101
|
+
type: Input,
|
|
102
|
+
args: ['woDays']
|
|
103
|
+
}] } });
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci10aWxlcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvZGF0ZXBpY2tlci9kYXRlcGlja2VyLXRpbGVzL2RhdGVwaWNrZXItdGlsZXMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL2RhdGVwaWNrZXIvZGF0ZXBpY2tlci10aWxlcy9kYXRlcGlja2VyLXRpbGVzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWMsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFxQixNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQzs7OztBQU85RSxNQUFNLE9BQU8sd0JB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fX3RpbGUtLWRpc2FibGVkJzogaXNZZWFyRGlzYWJsZWQoeWVhck51bSlcclxuICAgICAgICAgICAgfVwiXHJcbiAgICAgICAgICAgIChjbGljayk9XCJlbWl0WWVhcih5ZWFyTnVtKVwiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgICB7eyB5ZWFyTnVtIH19XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgPGRpdlxyXG4gICAgICAgICAgICBbc3R5bGUuZGlzcGxheV09XCJpc01vbnRocyA/ICdmbGV4JyA6ICdub25lJ1wiXHJcbiAgICAgICAgICAgIGNsYXNzPVwiYWViLWRhdGVwaWNrZXItdGlsZXNfX3RpbGVcIlxyXG4gICAgICAgICAgICAqbmdGb3I9XCJsZXQgbW9udGhOdW0gb2YgbW9udGhzOyBsZXQgaSA9IGluZGV4XCJcclxuICAgICAgICAgICAgW25nQ2xhc3NdPVwie1xyXG4gICAgICAgICAgICAgICAgJ2FlYi1kYXRlcGlja2VyLXRpbGVzX190aWxlLS1hY3RpdmUnOiBpID09PSBtb250aCxcclxuICAgICAgICAgICAgICAgICdhZWItZGF0ZXBpY2tlci10aWxlc19fdGlsZS0tZGlzYWJsZWQnOiBpc01vbnRoRGlzYWJsZWQoaSlcclxuICAgICAgICAgICAgfVwiXHJcbiAgICAgICAgICAgIChjbGljayk9XCJlbWl0TW9udGgoaSlcIlxyXG4gICAgICAgID5cclxuICAgICAgICAgICAge3sgbW9udGhOdW0gfX1cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvZGl2PlxyXG48L2Rpdj4iXX0=
|