aeb-ui-kit 8.0.0-preview.911 → 8.0.0-preview.915
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/accordion/accordion.component.mjs +3 -3
- package/esm2022/lib/accordion/accordion.module.mjs +4 -4
- package/esm2022/lib/action-bar/action-bar.component.mjs +3 -3
- package/esm2022/lib/action-bar/action-bar.module.mjs +4 -4
- package/esm2022/lib/aeb-ui-kit.module.mjs +4 -4
- package/esm2022/lib/button/button.component.mjs +3 -3
- package/esm2022/lib/button/button.module.mjs +4 -4
- package/esm2022/lib/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/lib/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/lib/checkbox-old/checkbox-group-old/checkbox-group-old.component.mjs +3 -3
- package/esm2022/lib/checkbox-old/checkbox-old.component.mjs +3 -3
- package/esm2022/lib/checkbox-old/checkbox-old.module.mjs +4 -4
- package/esm2022/lib/click-outside/click-outside.directive.mjs +4 -4
- package/esm2022/lib/code-input/code-input.component.mjs +3 -3
- package/esm2022/lib/code-input/code-input.module.mjs +4 -4
- package/esm2022/lib/comment/comment.component.mjs +3 -3
- package/esm2022/lib/comment/comment.module.mjs +4 -4
- package/esm2022/lib/credit-item-card/credit-item-card.component.mjs +3 -3
- package/esm2022/lib/credit-item-card/credit-item-card.module.mjs +4 -4
- package/esm2022/lib/datepicker/datepicker-core/datepicker-core.component.mjs +3 -3
- package/esm2022/lib/datepicker/datepicker-month/datepicker-month.component.mjs +3 -3
- package/esm2022/lib/datepicker/datepicker-tiles/datepicker-tiles.component.mjs +3 -3
- package/esm2022/lib/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/lib/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/lib/datepicker/pipes/date-to-str.pipe.mjs +3 -3
- package/esm2022/lib/datepicker/services/datepicker-utils.service.mjs +3 -3
- package/esm2022/lib/datepicker/services/mask-utils.service.mjs +3 -3
- package/esm2022/lib/dropdown/components/dropdown-container/dropdown-container.component.mjs +3 -3
- package/esm2022/lib/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/lib/dropdown/dropdown.module.mjs +4 -4
- package/esm2022/lib/file-attach/components/attach-button/attach-button.component.mjs +3 -3
- package/esm2022/lib/file-attach/components/default-body/default-body.component.mjs +3 -3
- package/esm2022/lib/file-attach/components/salary-portal-body/salary-portal-body.component.mjs +3 -3
- package/esm2022/lib/file-attach/directives/drag-and-drop.directive.mjs +3 -3
- package/esm2022/lib/file-attach/file-attach.component.mjs +3 -3
- package/esm2022/lib/file-attach/file-attach.module.mjs +4 -4
- package/esm2022/lib/filter-tags/filter-tag/filter-tag.component.mjs +3 -3
- package/esm2022/lib/filter-tags/filter-tags.component.mjs +3 -3
- package/esm2022/lib/filter-tags/filter-tags.module.mjs +4 -4
- package/esm2022/lib/footer/abstract/base-content-projectable.component.mjs +3 -3
- package/esm2022/lib/footer/footer-bottom/footer-bottom.component.mjs +3 -3
- package/esm2022/lib/footer/footer-menu/footer-menu.component.mjs +3 -3
- package/esm2022/lib/footer/footer-top/footer-top.component.mjs +3 -3
- package/esm2022/lib/footer/footer.component.mjs +3 -3
- package/esm2022/lib/footer/footer.module.mjs +4 -4
- package/esm2022/lib/form-field/directives/error-message.directive.mjs +3 -3
- package/esm2022/lib/form-field/directives/form-field.directive.mjs +3 -3
- package/esm2022/lib/form-field/directives/icon.directive.mjs +3 -3
- package/esm2022/lib/form-field/directives/label.directive.mjs +3 -3
- package/esm2022/lib/form-field/form-field.component.mjs +3 -3
- package/esm2022/lib/form-field/form-field.module.mjs +4 -4
- package/esm2022/lib/header/header.component.mjs +3 -3
- package/esm2022/lib/header/header.module.mjs +4 -4
- package/esm2022/lib/header/logo.component.mjs +3 -3
- package/esm2022/lib/heading/breadcrumps/breadcrumps.component.mjs +3 -3
- package/esm2022/lib/heading/heading.component.mjs +3 -3
- package/esm2022/lib/heading/heading.module.mjs +4 -4
- package/esm2022/lib/heading/product-title/product-title.component.mjs +3 -3
- package/esm2022/lib/label/label.component.mjs +3 -3
- package/esm2022/lib/label/label.module.mjs +4 -4
- package/esm2022/lib/modal/modal.component.mjs +3 -3
- package/esm2022/lib/modal/modal.module.mjs +4 -4
- package/esm2022/lib/news-card/news-card.component.mjs +3 -3
- package/esm2022/lib/news-card/news-card.module.mjs +4 -4
- package/esm2022/lib/notifications/notification/notification.component.mjs +3 -3
- package/esm2022/lib/notifications/notifications.component.mjs +3 -3
- package/esm2022/lib/notifications/notifications.module.mjs +4 -4
- package/esm2022/lib/old-button/old-button.component.mjs +3 -3
- package/esm2022/lib/old-button/old-button.module.mjs +4 -4
- package/esm2022/lib/pagination/pagination.component.mjs +3 -3
- package/esm2022/lib/pagination/pagination.module.mjs +4 -4
- package/esm2022/lib/pop-up/pop-up.component.mjs +3 -3
- package/esm2022/lib/pop-up/pop-up.directive.mjs +3 -3
- package/esm2022/lib/pop-up/pop-up.module.mjs +4 -4
- package/esm2022/lib/radio-buttons/radio-buttons.component.mjs +3 -3
- package/esm2022/lib/radio-buttons/radio-buttons.module.mjs +4 -4
- package/esm2022/lib/radio-buttons-old/radio-buttons-old.component.mjs +3 -3
- package/esm2022/lib/radio-buttons-old/radio-buttons-old.module.mjs +4 -4
- package/esm2022/lib/response/response.component.mjs +3 -3
- package/esm2022/lib/response/response.module.mjs +4 -4
- package/esm2022/lib/search/highlight.pipe.mjs +3 -3
- package/esm2022/lib/search/search.component.mjs +3 -3
- package/esm2022/lib/search/search.module.mjs +4 -4
- package/esm2022/lib/select/select.component.mjs +29 -10
- package/esm2022/lib/select/select.module.mjs +4 -4
- package/esm2022/lib/sidebar/sidebar.component.mjs +3 -3
- package/esm2022/lib/sidebar/sidebar.module.mjs +4 -4
- package/esm2022/lib/slider/directives/numbers-only.directive.mjs +3 -3
- package/esm2022/lib/slider/pipes/replace.pipe.mjs +3 -3
- package/esm2022/lib/slider/slider.component.mjs +3 -3
- package/esm2022/lib/slider/slider.module.mjs +4 -4
- package/esm2022/lib/spinner/spinner.component.mjs +3 -3
- package/esm2022/lib/spinner/spinner.module.mjs +4 -4
- package/esm2022/lib/stepper/stepper-step.component.mjs +3 -3
- package/esm2022/lib/stepper/stepper.component.mjs +3 -3
- package/esm2022/lib/stepper/stepper.module.mjs +4 -4
- package/esm2022/lib/table/table.component.mjs +3 -3
- package/esm2022/lib/table/table.module.mjs +4 -4
- package/esm2022/lib/table/table.pipe.mjs +3 -3
- package/esm2022/lib/tabs/tab.directive.mjs +3 -3
- package/esm2022/lib/tabs/tabs.component.mjs +3 -3
- package/esm2022/lib/tabs/tabs.module.mjs +4 -4
- package/esm2022/lib/tag-tab/tag-tab.component.mjs +3 -3
- package/esm2022/lib/tag-tab/tag-tab.module.mjs +4 -4
- package/esm2022/lib/tooltip/services/domservice.service.mjs +3 -3
- package/esm2022/lib/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/lib/tooltip/tooltip.directive.mjs +3 -3
- package/esm2022/lib/tooltip/tooltip.module.mjs +4 -4
- package/esm2022/lib/visa/visa-item.component.mjs +3 -3
- package/esm2022/lib/visa/visa-span.directive.mjs +6 -6
- package/esm2022/lib/visa/visa.component.mjs +3 -3
- package/esm2022/lib/visa/visa.module.mjs +4 -4
- package/esm2022/public-api.mjs +1 -3
- package/fesm2022/aeb-ui-kit.mjs +403 -620
- package/fesm2022/aeb-ui-kit.mjs.map +1 -1
- package/lib/select/select.component.d.ts +4 -1
- package/package.json +6 -6
- package/public-api.d.ts +0 -2
- package/esm2022/lib/pagination-old/pagination-old.component.mjs +0 -226
- package/esm2022/lib/pagination-old/pagination-old.module.mjs +0 -19
- package/lib/pagination-old/pagination-old.component.d.ts +0 -46
- package/lib/pagination-old/pagination-old.module.d.ts +0 -9
|
@@ -54,10 +54,10 @@ export class CommentComponent {
|
|
|
54
54
|
content: ['', [Validators.required]]
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.1", type: CommentComponent, selector: "aeb-comment", inputs: { comment: "comment" }, outputs: { response: "response" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], ngImport: i0, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <label errorMessage>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C</label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <label errorMessage>\u041F\u043E\u043B\u0435 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C</label>\n <label aebLabel>\u041F\u043E\u043B\u0435 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <button aebButton (click)=\"submitHandler()\" [disabled]>\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-900)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-500);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-0)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-900)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-500);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-900)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "iconSource", "showIconLeft", "showIconRight", "isWarning", "size", "variant"] }, { kind: "component", type: i5.FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: i6.FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: i7.LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: i8.ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage"] }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CommentComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
58
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: CommentComponent, selector: "aeb-comment", inputs: { comment: "comment" }, outputs: { response: "response" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], ngImport: i0, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <label errorMessage>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C</label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <label errorMessage>\u041F\u043E\u043B\u0435 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C</label>\n <label aebLabel>\u041F\u043E\u043B\u0435 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <button aebButton (click)=\"submitHandler()\" [disabled]>\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-900)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-500);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-0)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-900)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-500);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-900)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "iconSource", "showIconLeft", "showIconRight", "isWarning", "size", "variant"] }, { kind: "component", type: i5.FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: i6.FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: i7.LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: i8.ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage"] }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CommentComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{ selector: 'aeb-comment', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <label errorMessage>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C</label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <label errorMessage>\u041F\u043E\u043B\u0435 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C</label>\n <label aebLabel>\u041F\u043E\u043B\u0435 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <button aebButton (click)=\"submitHandler()\" [disabled]>\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-900)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-500);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-0)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-900)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-500);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-900)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"] }]
|
|
63
63
|
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { comment: [{
|
|
@@ -7,19 +7,19 @@ import { TooltipModule } from '../tooltip/tooltip.module';
|
|
|
7
7
|
import { CommentComponent } from './comment.component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export class CommentModule {
|
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CommentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: CommentModule, declarations: [CommentComponent], imports: [CommonModule,
|
|
12
12
|
TooltipModule,
|
|
13
13
|
ReactiveFormsModule,
|
|
14
14
|
ButtonModule,
|
|
15
15
|
FormFieldModule], exports: [CommentComponent] }); }
|
|
16
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
16
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CommentModule, imports: [CommonModule,
|
|
17
17
|
TooltipModule,
|
|
18
18
|
ReactiveFormsModule,
|
|
19
19
|
ButtonModule,
|
|
20
20
|
FormFieldModule] }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CommentModule, decorators: [{
|
|
23
23
|
type: NgModule,
|
|
24
24
|
args: [{
|
|
25
25
|
declarations: [CommentComponent],
|
|
@@ -7,10 +7,10 @@ export class CreditItemCardComponent {
|
|
|
7
7
|
this.buttonClickEvent = new EventEmitter();
|
|
8
8
|
this.infoClickEvent = new EventEmitter();
|
|
9
9
|
}
|
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CreditItemCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: CreditItemCardComponent, selector: "aeb-credit-item-card", inputs: { cardInfo: "cardInfo" }, outputs: { buttonClickEvent: "buttonClickEvent", infoClickEvent: "infoClickEvent" }, ngImport: i0, template: "<div\n class=\"credit-item-card\"\n [style.background-image]=\"'url(' + cardInfo.image + ')'\"\n [style.background-color]=\"cardInfo.backgroundColor\"\n>\n <div\n class=\"credit-item-card__info-icon\"\n (click)=\"infoClickEvent.emit()\"\n ></div>\n <div\n class=\"credit-item-card__title-wrapper\"\n (click)=\"buttonClickEvent.emit()\"\n >\n <div class=\"credit-item-card__title\">\u00AB{{ cardInfo?.title }}\u00BB</div>\n <div class=\"credit-item-card__title-text\">{{ cardInfo?.caption }}</div>\n </div>\n <div class=\"credit-item-card__details-wrapper\">\n <div class=\"credit-item-card__credit-details\">\n <div\n *ngIf=\"cardInfo?.details?.time\"\n class=\"credit-item-card__credit-details-item\"\n >\n <div class=\"credit-item-card__credit-details-item-title\">\n \u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430\n </div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\n \u0434\u043E {{ cardInfo?.details?.time }} {{ cardInfo?.details?.timeMeasure }}\n </div>\n </div>\n <div\n *ngIf=\"cardInfo?.details?.rate\"\n class=\"credit-item-card__credit-details-item\"\n >\n <div class=\"credit-item-card__credit-details-item-title\">\u0421\u0442\u0430\u0432\u043A\u0430</div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\n {{ cardInfo?.details?.rate }} %\n </div>\n </div>\n <div\n *ngIf=\"cardInfo?.details?.amount\"\n class=\"credit-item-card__credit-details-item\"\n >\n <div class=\"ccredit-item-card__credit-details-item-title\">\n \u0421\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430\n </div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\n \u0434\u043E {{ cardInfo?.details?.amount }}\n {{ cardInfo?.details?.amountMeasure }}\n </div>\n </div>\n </div>\n </div>\n <div class=\"credit-item-card__button-wrapper\">\n <button aebButton (click)=\"buttonClickEvent.emit()\">\n \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\n </button>\n </div>\n</div>\n", styles: [".credit-item-card{position:relative;box-sizing:border-box;width:100%;height:359px;padding:32px;color:var(--color-mono-900);zoom:98%;background-repeat:no-repeat;background-position:right;background-size:contain;border-radius:8px}@media screen and (max-width: 767px){.credit-item-card{zoom:54%}}@media screen and (max-width: 374px){.credit-item-card{zoom:48%}}.credit-item-card__info-icon{position:absolute;right:38px;width:27px;height:27px;cursor:pointer;background:url('data:image/svg+xml,<svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z\" fill=\"white\" stroke=\"%2394A8BE\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M24 32V24\" stroke=\"%2394A8BE\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M24 16H24.02\" stroke=\"%2394A8BE\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;background-size:cover}.credit-item-card__title-wrapper{display:inline-flex;flex-direction:column;align-items:flex-start;cursor:pointer}.credit-item-card__title{display:inline-block;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);line-height:42px}.credit-item-card__title-text{display:inline-block;font-size:var(--font-size-m);line-height:42px}.credit-item-card__details-wrapper{width:375px;margin-top:48px}.credit-item-card__button-wrapper{margin-top:16px}.credit-item-card__credit-details{display:flex;justify-content:space-between;width:100%;height:90px}.credit-item-card__credit-details-item{display:flex;flex-direction:column;align-items:flex-start}.credit-item-card__credit-details-item-title{font-size:var(--font-size-s);line-height:20px}.credit-item-card__credit-details-item-separator{width:50px;height:2px;margin-top:16px;background-color:var(--color-mono-900)}.credit-item-card__credit-details-item-value{font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:52px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "iconSource", "showIconLeft", "showIconRight", "isWarning", "size", "variant"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
12
12
|
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CreditItemCardComponent, decorators: [{
|
|
14
14
|
type: Component,
|
|
15
15
|
args: [{ selector: 'aeb-credit-item-card', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"credit-item-card\"\n [style.background-image]=\"'url(' + cardInfo.image + ')'\"\n [style.background-color]=\"cardInfo.backgroundColor\"\n>\n <div\n class=\"credit-item-card__info-icon\"\n (click)=\"infoClickEvent.emit()\"\n ></div>\n <div\n class=\"credit-item-card__title-wrapper\"\n (click)=\"buttonClickEvent.emit()\"\n >\n <div class=\"credit-item-card__title\">\u00AB{{ cardInfo?.title }}\u00BB</div>\n <div class=\"credit-item-card__title-text\">{{ cardInfo?.caption }}</div>\n </div>\n <div class=\"credit-item-card__details-wrapper\">\n <div class=\"credit-item-card__credit-details\">\n <div\n *ngIf=\"cardInfo?.details?.time\"\n class=\"credit-item-card__credit-details-item\"\n >\n <div class=\"credit-item-card__credit-details-item-title\">\n \u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430\n </div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\n \u0434\u043E {{ cardInfo?.details?.time }} {{ cardInfo?.details?.timeMeasure }}\n </div>\n </div>\n <div\n *ngIf=\"cardInfo?.details?.rate\"\n class=\"credit-item-card__credit-details-item\"\n >\n <div class=\"credit-item-card__credit-details-item-title\">\u0421\u0442\u0430\u0432\u043A\u0430</div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\n {{ cardInfo?.details?.rate }} %\n </div>\n </div>\n <div\n *ngIf=\"cardInfo?.details?.amount\"\n class=\"credit-item-card__credit-details-item\"\n >\n <div class=\"ccredit-item-card__credit-details-item-title\">\n \u0421\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430\n </div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\n \u0434\u043E {{ cardInfo?.details?.amount }}\n {{ cardInfo?.details?.amountMeasure }}\n </div>\n </div>\n </div>\n </div>\n <div class=\"credit-item-card__button-wrapper\">\n <button aebButton (click)=\"buttonClickEvent.emit()\">\n \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\n </button>\n </div>\n</div>\n", styles: [".credit-item-card{position:relative;box-sizing:border-box;width:100%;height:359px;padding:32px;color:var(--color-mono-900);zoom:98%;background-repeat:no-repeat;background-position:right;background-size:contain;border-radius:8px}@media screen and (max-width: 767px){.credit-item-card{zoom:54%}}@media screen and (max-width: 374px){.credit-item-card{zoom:48%}}.credit-item-card__info-icon{position:absolute;right:38px;width:27px;height:27px;cursor:pointer;background:url('data:image/svg+xml,<svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z\" fill=\"white\" stroke=\"%2394A8BE\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M24 32V24\" stroke=\"%2394A8BE\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M24 16H24.02\" stroke=\"%2394A8BE\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;background-size:cover}.credit-item-card__title-wrapper{display:inline-flex;flex-direction:column;align-items:flex-start;cursor:pointer}.credit-item-card__title{display:inline-block;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);line-height:42px}.credit-item-card__title-text{display:inline-block;font-size:var(--font-size-m);line-height:42px}.credit-item-card__details-wrapper{width:375px;margin-top:48px}.credit-item-card__button-wrapper{margin-top:16px}.credit-item-card__credit-details{display:flex;justify-content:space-between;width:100%;height:90px}.credit-item-card__credit-details-item{display:flex;flex-direction:column;align-items:flex-start}.credit-item-card__credit-details-item-title{font-size:var(--font-size-s);line-height:20px}.credit-item-card__credit-details-item-separator{width:50px;height:2px;margin-top:16px;background-color:var(--color-mono-900)}.credit-item-card__credit-details-item-value{font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:52px}\n"] }]
|
|
16
16
|
}], propDecorators: { cardInfo: [{
|
|
@@ -4,11 +4,11 @@ import { ButtonModule } from '../button/button.module';
|
|
|
4
4
|
import { CreditItemCardComponent } from './credit-item-card.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export class CreditItemCardModule {
|
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CreditItemCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: CreditItemCardModule, declarations: [CreditItemCardComponent], imports: [CommonModule, ButtonModule], exports: [CreditItemCardComponent] }); }
|
|
9
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CreditItemCardModule, imports: [CommonModule, ButtonModule] }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: CreditItemCardModule, decorators: [{
|
|
12
12
|
type: NgModule,
|
|
13
13
|
args: [{
|
|
14
14
|
declarations: [CreditItemCardComponent],
|
|
@@ -113,10 +113,10 @@ export class DatepickerCoreComponent {
|
|
|
113
113
|
startOfYear(year) {
|
|
114
114
|
return new Date(year, 0, 1);
|
|
115
115
|
}
|
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerCoreComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
117
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DatepickerCoreComponent, selector: "aeb-datepicker-core", inputs: { date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates", minYear: "minYear", maxYear: "maxYear", withBackground: "withBackground", align: "align", withoutDays: "withoutDays" }, outputs: { dateChange: "dateChange", woDaysMonth: "woDaysMonth", woDaysYear: "woDaysYear", woDaysMonthSubInc: "woDaysMonthSubInc" }, providers: [{ provide: LOCALE_ID, useValue: 'ru' }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{\n 'aeb-datepicker-core--with-background': withBackground,\n 'aeb-datepicker-core--left': align === 'left',\n 'aeb-datepicker-core--right': align === 'right'\n }\"\n #container\n>\n <div class=\"aeb-datepicker-core__controls\">\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"subMonth()\">\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date: \"LLLL\" | titlecase }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowMonths }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__btn\" (click)=\"showYearsHandler()\">\n {{ firstDay() | date: \"yyyy\" }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowYears }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-datepicker-core__arrow aeb-datepicker-core__arrow--right\"\n (click)=\"addMonth()\"\n >\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__calendar\">\n <div [style.display]=\"!isShowYears && !isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-month\n [month]=\"month\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n (setDate)=\"setDate($event)\"\n >\n </aeb-datepicker-month>\n </div>\n <div [style.display]=\"isShowYears ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [year]=\"currentYear\"\n [date]=\"startOfYear(currentYear)\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setYear)=\"setYear($event)\"\n [isYears]=\"isShowYears\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n <div [style.display]=\"isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [isMonths]=\"isShowMonths\"\n [month]=\"currentMonth\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setMonth)=\"setMonth($event)\"\n [year]=\"currentYear\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n </div>\n</div>\n", styles: [".aeb-datepicker-core{position:fixed;z-index:9999;-webkit-user-select:none;user-select:none}.aeb-datepicker-core--with-background{padding:10px;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--gray-primary);border-radius:var(--border-medium-rounded)}.aeb-datepicker-core__calendar{width:100%;min-height:220px}.aeb-datepicker-core__controls{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.aeb-datepicker-core__arrow{cursor:pointer}.aeb-datepicker-core__arrow--right{margin-bottom:10px;transform:rotate(180deg)}.aeb-datepicker-core__btn{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:72px;padding:6px 10px;margin-right:20px;font-size:var(--font-size-xs);cursor:pointer;border:var(--border-skinny) solid var(--gray-primary);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-core__btn--month{width:112px;margin-right:10px;margin-left:20px}.aeb-datepicker-core__arrow-icon{position:relative;bottom:2px;box-sizing:border-box}.aeb-datepicker-core__arrow-icon--active{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.DatepickerMonthComponent, selector: "aeb-datepicker-month", inputs: ["month", "date", "minDate", "maxDate", "excludedDates"], outputs: ["setDate"] }, { kind: "component", type: i4.DatepickerTilesComponent, selector: "aeb-datepicker-tiles", inputs: ["date", "isMonths", "isYears", "year", "month", "minYear", "maxYear", "minDate", "maxDate", "woDays"], outputs: ["setYear", "setMonth"] }, { kind: "pipe", type: i2.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i2.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerCoreComponent, decorators: [{
|
|
120
120
|
type: Component,
|
|
121
121
|
args: [{ selector: 'aeb-datepicker-core', providers: [{ provide: LOCALE_ID, useValue: 'ru' }], encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{\n 'aeb-datepicker-core--with-background': withBackground,\n 'aeb-datepicker-core--left': align === 'left',\n 'aeb-datepicker-core--right': align === 'right'\n }\"\n #container\n>\n <div class=\"aeb-datepicker-core__controls\">\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"subMonth()\">\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date: \"LLLL\" | titlecase }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowMonths }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__btn\" (click)=\"showYearsHandler()\">\n {{ firstDay() | date: \"yyyy\" }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowYears }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-datepicker-core__arrow aeb-datepicker-core__arrow--right\"\n (click)=\"addMonth()\"\n >\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__calendar\">\n <div [style.display]=\"!isShowYears && !isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-month\n [month]=\"month\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n (setDate)=\"setDate($event)\"\n >\n </aeb-datepicker-month>\n </div>\n <div [style.display]=\"isShowYears ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [year]=\"currentYear\"\n [date]=\"startOfYear(currentYear)\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setYear)=\"setYear($event)\"\n [isYears]=\"isShowYears\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n <div [style.display]=\"isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [isMonths]=\"isShowMonths\"\n [month]=\"currentMonth\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setMonth)=\"setMonth($event)\"\n [year]=\"currentYear\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n </div>\n</div>\n", styles: [".aeb-datepicker-core{position:fixed;z-index:9999;-webkit-user-select:none;user-select:none}.aeb-datepicker-core--with-background{padding:10px;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--gray-primary);border-radius:var(--border-medium-rounded)}.aeb-datepicker-core__calendar{width:100%;min-height:220px}.aeb-datepicker-core__controls{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.aeb-datepicker-core__arrow{cursor:pointer}.aeb-datepicker-core__arrow--right{margin-bottom:10px;transform:rotate(180deg)}.aeb-datepicker-core__btn{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:72px;padding:6px 10px;margin-right:20px;font-size:var(--font-size-xs);cursor:pointer;border:var(--border-skinny) solid var(--gray-primary);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-core__btn--month{width:112px;margin-right:10px;margin-left:20px}.aeb-datepicker-core__arrow-icon{position:relative;bottom:2px;box-sizing:border-box}.aeb-datepicker-core__arrow-icon--active{transform:rotate(180deg)}\n"] }]
|
|
122
122
|
}], ctorParameters: () => [{ type: i1.DatepickerUtilsService }], propDecorators: { date: [{
|
|
@@ -33,10 +33,10 @@ export class DatepickerMonthComponent {
|
|
|
33
33
|
this.utils.isMaxOverlap(this.maxDate, date) ||
|
|
34
34
|
this.isExcluded(date));
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerMonthComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", 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{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--gray-primary)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3.DateToStrPipe, name: "dateToStr" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerMonthComponent, decorators: [{
|
|
40
40
|
type: Component,
|
|
41
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{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--gray-primary)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"] }]
|
|
42
42
|
}], ctorParameters: () => [{ type: i1.DatepickerUtilsService }], propDecorators: { month: [{
|
|
@@ -60,10 +60,10 @@ export class DatepickerTilesComponent {
|
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
64
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerTilesComponent, deps: [{ token: i1.DatepickerUtilsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", 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{position:relative;min-width:275px;height:220px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{position:absolute;display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.aeb-datepicker-tiles__tile{box-sizing:unset!important;display:flex;align-items:center;justify-content:center;width:84px;height:41px;font-size:var(--font-size-s);border:var(--border-thin) solid var(--gray-primary);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-tiles__tile:hover{cursor:pointer;border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);pointer-events:none;cursor:none}.aeb-datepicker-tiles__tile--disabled:hover{border:var(--no-border)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerTilesComponent, decorators: [{
|
|
67
67
|
type: Component,
|
|
68
68
|
args: [{ selector: 'aeb-datepicker-tiles', encapsulation: ViewEncapsulation.None, 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{position:relative;min-width:275px;height:220px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{position:absolute;display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.aeb-datepicker-tiles__tile{box-sizing:unset!important;display:flex;align-items:center;justify-content:center;width:84px;height:41px;font-size:var(--font-size-s);border:var(--border-thin) solid var(--gray-primary);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-tiles__tile:hover{cursor:pointer;border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);pointer-events:none;cursor:none}.aeb-datepicker-tiles__tile--disabled:hover{border:var(--no-border)}\n"] }]
|
|
69
69
|
}], ctorParameters: () => [{ type: i1.DatepickerUtilsService }], propDecorators: { container: [{
|
|
@@ -354,8 +354,8 @@ export class DatepickerComponent {
|
|
|
354
354
|
onTouch() {
|
|
355
355
|
// ignore
|
|
356
356
|
}
|
|
357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
358
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerComponent, deps: [{ token: i1.DatepickerUtilsService }, { token: i2.MaskUtilsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
358
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DatepickerComponent, selector: "aeb-datepicker", inputs: { date: "date", hasError: "hasError", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates", minYear: "minYear", maxYear: "maxYear", withBackground: "withBackground", align: "align", placeholder: "placeholder", collapseOnChange: "collapseOnChange", withoutDays: "withoutDays" }, outputs: { dateChange: "dateChange" }, providers: [
|
|
359
359
|
{
|
|
360
360
|
provide: NG_VALUE_ACCESSOR,
|
|
361
361
|
useExisting: forwardRef(() => DatepickerComponent),
|
|
@@ -363,7 +363,7 @@ export class DatepickerComponent {
|
|
|
363
363
|
}
|
|
364
364
|
], viewQueries: [{ propertyName: "core", first: true, predicate: ["core"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#27303E\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#27303E\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{ 'aeb-datepicker-core--disabled': !isOpen }\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-900)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative}.aeb-datepicker__field--onerror .aeb-datepicker__input{color:var(--color-red-500)!important;border:var(--border-skinny) solid var(--color-red-500)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--color-red-500)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;z-index:100;cursor:pointer}.aeb-datepicker-core{position:fixed}.aeb-datepicker-core--disabled{pointer-events:none;opacity:var(--100-total)}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i4.FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: i5.FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: i6.LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "component", type: i9.DatepickerCoreComponent, selector: "aeb-datepicker-core", inputs: ["date", "minDate", "maxDate", "excludedDates", "minYear", "maxYear", "withBackground", "align", "withoutDays"], outputs: ["dateChange", "woDaysMonth", "woDaysYear", "woDaysMonthSubInc"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
365
365
|
}
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
367
367
|
type: Component,
|
|
368
368
|
args: [{ selector: 'aeb-datepicker', encapsulation: ViewEncapsulation.None, providers: [
|
|
369
369
|
{
|
|
@@ -14,8 +14,8 @@ const maskConfig = {
|
|
|
14
14
|
validation: false
|
|
15
15
|
};
|
|
16
16
|
export class DatepickerModule {
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
18
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DatepickerModule, declarations: [DatepickerComponent,
|
|
19
19
|
DatepickerCoreComponent,
|
|
20
20
|
DatepickerMonthComponent,
|
|
21
21
|
DateToStrPipe,
|
|
@@ -24,9 +24,9 @@ export class DatepickerModule {
|
|
|
24
24
|
DatepickerMonthComponent,
|
|
25
25
|
DateToStrPipe,
|
|
26
26
|
DatepickerTilesComponent] }); }
|
|
27
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
27
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerModule, providers: [provideNgxMask(maskConfig)], imports: [CommonModule, FormFieldModule, FormsModule] }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerModule, decorators: [{
|
|
30
30
|
type: NgModule,
|
|
31
31
|
args: [{
|
|
32
32
|
declarations: [
|
|
@@ -5,10 +5,10 @@ export class DateToStrPipe {
|
|
|
5
5
|
transform(value) {
|
|
6
6
|
return value ? `${getDate(value)}` : '';
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DateToStrPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DateToStrPipe, name: "dateToStr" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DateToStrPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
14
|
name: 'dateToStr'
|
|
@@ -151,10 +151,10 @@ export class DatepickerUtilsService {
|
|
|
151
151
|
const regExp = /(0[1-9]|1[0-9]|2[0-9]|3[0-2])\.(0[1-9]|1[0-2])\.(\d{4})/;
|
|
152
152
|
return !!term.match(regExp);
|
|
153
153
|
}
|
|
154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
155
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
155
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerUtilsService, providedIn: 'root' }); }
|
|
156
156
|
}
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DatepickerUtilsService, decorators: [{
|
|
158
158
|
type: Injectable,
|
|
159
159
|
args: [{
|
|
160
160
|
providedIn: 'root'
|
|
@@ -59,10 +59,10 @@ export class MaskUtilsService {
|
|
|
59
59
|
? `01.${newInput.filter((item) => !!item).join('')}`
|
|
60
60
|
: newInput.filter((item) => !!item).join('');
|
|
61
61
|
}
|
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
63
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: MaskUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
63
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: MaskUtilsService, providedIn: 'root' }); }
|
|
64
64
|
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: MaskUtilsService, decorators: [{
|
|
66
66
|
type: Injectable,
|
|
67
67
|
args: [{
|
|
68
68
|
providedIn: 'root'
|
|
@@ -85,10 +85,10 @@ export class DropdownContainerComponent {
|
|
|
85
85
|
value.toLocaleLowerCase());
|
|
86
86
|
return values;
|
|
87
87
|
}
|
|
88
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
89
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DropdownContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DropdownContainerComponent, selector: "aeb-dropdown-container", inputs: { options: "options", filter: "filter", hasError: "hasError", dropdownFieldValueChanges$: "dropdownFieldValueChanges$", arrowKeyPress$: "arrowKeyPress$", enterKeyPress$: "enterKeyPress$", isOpen$: "isOpen$" }, outputs: { selected: "selected", viewOptionsChange: "viewOptionsChange" }, viewQueries: [{ propertyName: "optionElementList", predicate: ["option"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ul\n *ngIf=\"(isOpen$ | async) && viewOptions$ | async as viewOptions\"\n class=\"aeb-dropdown-container\"\n [ngClass]=\"{\n 'aeb-dropdown-container--empty': viewOptions.length === 0,\n 'aeb-dropdown-container--on-error': hasError\n }\"\n>\n <li\n #option\n *ngFor=\"let option of viewOptions; let i = index\"\n tabindex=\"{{ i }}\"\n class=\"aeb-dropdown-container__option\"\n (click)=\"selectHandler(option, i)\"\n (mousemove)=\"handleMouse('move', i)\"\n (mouseleave)=\"handleMouse('leave', i)\"\n [ngClass]=\"{\n 'aeb-dropdown__option--active': (focusedOption$ | async) === i\n }\"\n >\n <p [title]=\"option.label\">{{ option.label }}</p>\n <small *ngIf=\"option.additional\" [title]=\"option.additional\">{{\n option.additional\n }}</small>\n </li>\n</ul>\n", styles: [".aeb-dropdown-container{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px;background-color:var(--color-mono-0)}.aeb-dropdown-container--empty{border:none}.aeb-dropdown-container--on-error{border-color:var(--color-red-500)}.aeb-dropdown-container__option{box-sizing:border-box;width:100%;height:56px;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none;color:var(--color-mono-900)}.aeb-dropdown-container__option--active{background-color:var(--lightblue)}.aeb-dropdown-container__option:last-child{border-radius:0 0 10px 10px}.aeb-dropdown-container__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-container__option:has(small){padding:10px 16px}.aeb-dropdown-container__option:has(small) small{display:block;margin-top:4px;line-height:16px;font-size:var(--font-size-xs);color:var(--color-mono-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.dark .aeb-dropdown-container{background-color:#1e2632}body.dark .aeb-dropdown-container__option{color:var(--color-mono-0)}body.dark .aeb-dropdown-container__option--active{background-color:var(--color-mono-900)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
90
90
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DropdownContainerComponent, decorators: [{
|
|
92
92
|
type: Component,
|
|
93
93
|
args: [{ selector: 'aeb-dropdown-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul\n *ngIf=\"(isOpen$ | async) && viewOptions$ | async as viewOptions\"\n class=\"aeb-dropdown-container\"\n [ngClass]=\"{\n 'aeb-dropdown-container--empty': viewOptions.length === 0,\n 'aeb-dropdown-container--on-error': hasError\n }\"\n>\n <li\n #option\n *ngFor=\"let option of viewOptions; let i = index\"\n tabindex=\"{{ i }}\"\n class=\"aeb-dropdown-container__option\"\n (click)=\"selectHandler(option, i)\"\n (mousemove)=\"handleMouse('move', i)\"\n (mouseleave)=\"handleMouse('leave', i)\"\n [ngClass]=\"{\n 'aeb-dropdown__option--active': (focusedOption$ | async) === i\n }\"\n >\n <p [title]=\"option.label\">{{ option.label }}</p>\n <small *ngIf=\"option.additional\" [title]=\"option.additional\">{{\n option.additional\n }}</small>\n </li>\n</ul>\n", styles: [".aeb-dropdown-container{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px;background-color:var(--color-mono-0)}.aeb-dropdown-container--empty{border:none}.aeb-dropdown-container--on-error{border-color:var(--color-red-500)}.aeb-dropdown-container__option{box-sizing:border-box;width:100%;height:56px;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none;color:var(--color-mono-900)}.aeb-dropdown-container__option--active{background-color:var(--lightblue)}.aeb-dropdown-container__option:last-child{border-radius:0 0 10px 10px}.aeb-dropdown-container__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-container__option:has(small){padding:10px 16px}.aeb-dropdown-container__option:has(small) small{display:block;margin-top:4px;line-height:16px;font-size:var(--font-size-xs);color:var(--color-mono-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.dark .aeb-dropdown-container{background-color:#1e2632}body.dark .aeb-dropdown-container__option{color:var(--color-mono-0)}body.dark .aeb-dropdown-container__option--active{background-color:var(--color-mono-900)}\n"] }]
|
|
94
94
|
}], propDecorators: { optionElementList: [{
|
|
@@ -261,10 +261,10 @@ export class DropdownComponent {
|
|
|
261
261
|
// eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
|
|
262
262
|
onChange(value) { }
|
|
263
263
|
onTouch() { }
|
|
264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
265
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DropdownComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DropdownComponent, selector: "aeb-dropdown", inputs: { label: "label", options: "options", filter: "filter", hasError: "hasError", errorMessageText: "errorMessageText", validateOnDirty: "validateOnDirty", valueAsDropdownElement: "valueAsDropdownElement", disabled: "disabled", fieldValue: "fieldValue", value: "value" }, outputs: { optionSelect: "optionSelect", inputChange: "inputChange" }, viewQueries: [{ propertyName: "formFieldRef", first: true, predicate: FormFieldComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-dropdown--on-error': hasError$ | async,\n 'aeb-dropdown--disabled': disabled\n }\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--is-open': dropdownIsOpen$ | async,\n 'aeb-dropdown__input--is-empty': viewOptionsLength === 0\n }\"\n (keydown.arrowdown)=\"handleArrowKeys('down')\"\n (keydown.arrowup)=\"handleArrowKeys('up')\"\n (keydown.enter)=\"handleEnterKey()\"\n >\n <aeb-form-field [isInvalid]=\"hasError$ | async\">\n <label aebLabel>{{ label }}</label>\n <input\n aebInput\n type=\"text\"\n [(ngModel)]=\"value\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n (blur)=\"inputBlured$.next()\"\n />\n <aeb-dropdown-container\n [options]=\"options\"\n [filter]=\"filter\"\n [dropdownFieldValueChanges$]=\"inputChange.asObservable()\"\n [isOpen$]=\"dropdownIsOpen$.asObservable()\"\n [arrowKeyPress$]=\"arrowKeyPress$.asObservable()\"\n [enterKeyPress$]=\"enterKeyPress$.asObservable()\"\n [hasError]=\"hasError$ | async\"\n (selected)=\"selectHandler($event)\"\n (viewOptionsChange)=\"viewOptionsChangeHandler($event)\"\n ></aeb-dropdown-container>\n <label [errorMessage]>{{ errorMessageText }}</label>\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': this.dropdownIsOpen$ | async\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#94A8BE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown--disabled{pointer-events:none;opacity:var(--50-medium)}.aeb-dropdown--on-error .aeb-input{border-color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-label__container{color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-dropdown__icon svg path{stroke:var(--color-red-500)}.aeb-dropdown__input-wrapper{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}.aeb-dropdown__icon--is-open svg path{stroke:var(--color-blue-500)}.aeb-dropdown__input--is-open:not(.aeb-dropdown__input--is-empty) .aeb-form-field .aeb-input{border:var(--border-skinny) solid var(--color-blue-500);padding-bottom:17px;border-bottom:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.aeb-dropdown__items{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__items--is-empty{border:none}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--lightblue)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-0)}body.dark .aeb-dropdown__items{background-color:var(--color-mono-1000)}body.dark .aeb-dropdown__option{color:var(--color-mono-0)}body.dark .aeb-dropdown__option--active{background-color:var(--color-mono-900)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: i4.FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: i5.LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: i6.ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage"] }, { kind: "directive", type: i7.ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i8.DropdownContainerComponent, selector: "aeb-dropdown-container", inputs: ["options", "filter", "hasError", "dropdownFieldValueChanges$", "arrowKeyPress$", "enterKeyPress$", "isOpen$"], outputs: ["selected", "viewOptionsChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
266
266
|
}
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
268
268
|
type: Component,
|
|
269
269
|
args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-dropdown--on-error': hasError$ | async,\n 'aeb-dropdown--disabled': disabled\n }\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--is-open': dropdownIsOpen$ | async,\n 'aeb-dropdown__input--is-empty': viewOptionsLength === 0\n }\"\n (keydown.arrowdown)=\"handleArrowKeys('down')\"\n (keydown.arrowup)=\"handleArrowKeys('up')\"\n (keydown.enter)=\"handleEnterKey()\"\n >\n <aeb-form-field [isInvalid]=\"hasError$ | async\">\n <label aebLabel>{{ label }}</label>\n <input\n aebInput\n type=\"text\"\n [(ngModel)]=\"value\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n (blur)=\"inputBlured$.next()\"\n />\n <aeb-dropdown-container\n [options]=\"options\"\n [filter]=\"filter\"\n [dropdownFieldValueChanges$]=\"inputChange.asObservable()\"\n [isOpen$]=\"dropdownIsOpen$.asObservable()\"\n [arrowKeyPress$]=\"arrowKeyPress$.asObservable()\"\n [enterKeyPress$]=\"enterKeyPress$.asObservable()\"\n [hasError]=\"hasError$ | async\"\n (selected)=\"selectHandler($event)\"\n (viewOptionsChange)=\"viewOptionsChangeHandler($event)\"\n ></aeb-dropdown-container>\n <label [errorMessage]>{{ errorMessageText }}</label>\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': this.dropdownIsOpen$ | async\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#94A8BE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown--disabled{pointer-events:none;opacity:var(--50-medium)}.aeb-dropdown--on-error .aeb-input{border-color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-label__container{color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-dropdown__icon svg path{stroke:var(--color-red-500)}.aeb-dropdown__input-wrapper{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}.aeb-dropdown__icon--is-open svg path{stroke:var(--color-blue-500)}.aeb-dropdown__input--is-open:not(.aeb-dropdown__input--is-empty) .aeb-form-field .aeb-input{border:var(--border-skinny) solid var(--color-blue-500);padding-bottom:17px;border-bottom:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.aeb-dropdown__items{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__items--is-empty{border:none}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--lightblue)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-0)}body.dark .aeb-dropdown__items{background-color:var(--color-mono-1000)}body.dark .aeb-dropdown__option{color:var(--color-mono-0)}body.dark .aeb-dropdown__option--active{background-color:var(--color-mono-900)}\n"] }]
|
|
270
270
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|