aeb-ui-kit 3.2.0-preview.634 → 3.2.0-preview.641
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/esm2020/lib/aeb-ui-kit.module.mjs +24 -10
- package/esm2020/lib/button/button.component.mjs +105 -0
- package/esm2020/lib/button/button.module.mjs +18 -0
- package/esm2020/lib/checkbox/checkbox.component.mjs +14 -15
- package/esm2020/lib/checkbox/checkbox.module.mjs +7 -8
- package/esm2020/lib/checkbox-old/checkbox-group-old/checkbox-group-old.component.mjs +47 -0
- package/esm2020/lib/checkbox-old/checkbox-old.component.mjs +110 -0
- package/esm2020/lib/checkbox-old/checkbox-old.module.mjs +20 -0
- package/esm2020/lib/comment/comment.component.mjs +4 -4
- package/esm2020/lib/comment/comment.module.mjs +5 -5
- package/esm2020/lib/credit-item-card/credit-item-card.component.mjs +4 -4
- package/esm2020/lib/credit-item-card/credit-item-card.module.mjs +5 -5
- package/esm2020/lib/file-attach/file-attach.component.mjs +4 -4
- package/esm2020/lib/file-attach/file-attach.module.mjs +5 -5
- package/esm2020/lib/old-button/old-button.component.mjs +170 -0
- package/esm2020/lib/{new-button/new-button.module.mjs → old-button/old-button.module.mjs} +9 -9
- package/esm2020/lib/pagination/pagination.module.mjs +5 -5
- package/esm2020/public-api.mjs +8 -4
- package/fesm2015/aeb-ui-kit.mjs +335 -86
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +335 -86
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/aeb-ui-kit.module.d.ts +38 -36
- package/lib/button/button.component.d.ts +33 -0
- package/lib/button/button.module.d.ts +8 -0
- package/lib/checkbox/checkbox.component.d.ts +2 -2
- package/lib/checkbox/checkbox.module.d.ts +3 -4
- package/lib/{checkbox/checkbox-group/checkbox-group.component.d.ts → checkbox-old/checkbox-group-old/checkbox-group-old.component.d.ts} +7 -7
- package/lib/checkbox-old/checkbox-old.component.d.ts +31 -0
- package/lib/checkbox-old/checkbox-old.module.d.ts +10 -0
- package/lib/comment/comment.module.d.ts +2 -2
- package/lib/credit-item-card/credit-item-card.module.d.ts +2 -2
- package/lib/file-attach/file-attach.module.d.ts +2 -2
- package/lib/{new-button/new-button.component.d.ts → old-button/old-button.component.d.ts} +16 -13
- package/lib/old-button/old-button.module.d.ts +8 -0
- package/lib/pagination/pagination.module.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +7 -3
- package/esm2020/lib/checkbox/checkbox-group/checkbox-group.component.mjs +0 -45
- package/esm2020/lib/new-button/new-button.component.mjs +0 -170
- package/lib/new-button/new-button.module.d.ts +0 -8
package/fesm2015/aeb-ui-kit.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, Output,
|
|
2
|
+
import { Component, ViewEncapsulation, Input, ViewChild, NgModule, ChangeDetectionStrategy, HostBinding, HostListener, EventEmitter, forwardRef, Output, Directive, Optional, Self, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, ViewChildren, inject, ChangeDetectorRef, ContentChildren } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
|
-
import { NG_VALUE_ACCESSOR, FormControl, Validators,
|
|
6
|
+
import { NG_VALUE_ACCESSOR, FormsModule, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { timer, map, takeUntil, fromEvent } from 'rxjs';
|
|
8
8
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
9
9
|
import * as i2 from '@angular/platform-browser';
|
|
@@ -90,12 +90,129 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
90
90
|
}]
|
|
91
91
|
}] });
|
|
92
92
|
|
|
93
|
+
class ButtonComponent {
|
|
94
|
+
constructor(buttonElement, cdr) {
|
|
95
|
+
this.buttonElement = buttonElement;
|
|
96
|
+
this.cdr = cdr;
|
|
97
|
+
this.fill = false;
|
|
98
|
+
this.showIconLeft = false;
|
|
99
|
+
this.showIconRight = false;
|
|
100
|
+
this.size = 'L';
|
|
101
|
+
this.variant = 'primary';
|
|
102
|
+
this.isButton = true;
|
|
103
|
+
}
|
|
104
|
+
get isPrimary() {
|
|
105
|
+
return this.variant === 'primary';
|
|
106
|
+
}
|
|
107
|
+
get isSecondary() {
|
|
108
|
+
return this.variant === 'secondary';
|
|
109
|
+
}
|
|
110
|
+
get isTertiary() {
|
|
111
|
+
return this.variant === 'tertiary';
|
|
112
|
+
}
|
|
113
|
+
get isOutline() {
|
|
114
|
+
return this.variant === 'outline';
|
|
115
|
+
}
|
|
116
|
+
get isTertiaryWithLeftIcon() {
|
|
117
|
+
return this.variant === 'tertiary' && this.showIconLeft;
|
|
118
|
+
}
|
|
119
|
+
get isFill() {
|
|
120
|
+
return this.fill;
|
|
121
|
+
}
|
|
122
|
+
get isIconOnly() {
|
|
123
|
+
return (this.showIconLeft &&
|
|
124
|
+
!this.showIconRight &&
|
|
125
|
+
!this.buttonElement.nativeElement.textContent);
|
|
126
|
+
}
|
|
127
|
+
get isLarge() {
|
|
128
|
+
return this.size === 'L';
|
|
129
|
+
}
|
|
130
|
+
get isMedium() {
|
|
131
|
+
return this.size === 'M';
|
|
132
|
+
}
|
|
133
|
+
get isSmall() {
|
|
134
|
+
return this.size === 'S';
|
|
135
|
+
}
|
|
136
|
+
onLeave() {
|
|
137
|
+
this.buttonElement.nativeElement.blur();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ButtonComponent, selector: "button[aeb-button]", inputs: { fill: "fill", iconSource: "iconSource", showIconLeft: "showIconLeft", showIconRight: "showIconRight", size: "size", variant: "variant" }, host: { listeners: { "mouseleave": "onLeave()" }, properties: { "class.aeb-button": "this.isButton", "class.aeb-button--primary": "this.isPrimary", "class.aeb-button--secondary": "this.isSecondary", "class.aeb-button--tertiary": "this.isTertiary", "class.aeb-button--outline": "this.isOutline", "class.aeb-button--tertiary--has-left-icon": "this.isTertiaryWithLeftIcon", "class.aeb-button--fill": "this.isFill", "class.aeb-button--icon-only": "this.isIconOnly", "class.aeb-button--large": "this.isLarge", "class.aeb-button--medium": "this.isMedium", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div\n *ngIf=\"showIconLeft && iconSource?.left\"\n class=\"aeb-button__icon--left__wrapper\"\n>\n <img\n class=\"aeb-button__icon aeb-button__icon--left\"\n src=\"{{ iconSource.left }}\"\n alt=\"left-icon\"\n />\n</div>\n<div class=\"aeb-button__label\"><ng-content></ng-content></div>\n<img\n *ngIf=\"showIconRight && iconSource?.right\"\n class=\"aeb-button__icon aeb-button__icon--right\"\n src=\"{{ iconSource.right }}\"\n alt=\"right-icon\"\n/>\n", styles: [".aeb-button{--filter-color-mono-clear: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7411%) hue-rotate(237deg) brightness(111%) contrast(100%);--filter-color-blue-light: brightness(0) saturate(100%) invert(80%) sepia(5%) saturate(1644%) hue-rotate(184deg) brightness(109%) contrast(97%);--filter-color-blue-light-medium: brightness(0) saturate(100%) invert(68%) sepia(24%) saturate(506%) hue-rotate(173deg) brightness(102%) contrast(107%);--filter-color-blue-brand-light: brightness(0) saturate(100%) invert(57%) sepia(10%) saturate(3291%) hue-rotate(175deg) brightness(94%) contrast(101%);--filter-color-blue-brand: brightness(0) saturate(100%) invert(52%) sepia(55%) saturate(4999%) hue-rotate(195deg) brightness(98%) contrast(91%);--filter-color-blue-brand-dark: brightness(0) saturate(100%) invert(46%) sepia(14%) saturate(2219%) hue-rotate(172deg) brightness(95%) contrast(110%);--filter-color-blue-dark: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(6758%) hue-rotate(180deg) brightness(90%) contrast(87%);--filter-color-red-soft: brightness(0) saturate(100%) invert(83%) sepia(31%) saturate(95%) hue-rotate(296deg) brightness(107%) contrast(98%);--filter-color-red-light-neutral: brightness(0) saturate(100%) invert(50%) sepia(42%) saturate(1314%) hue-rotate(310deg) brightness(106%) contrast(104%);--filter-color-red-neutral: brightness(0) saturate(100%) invert(39%) sepia(74%) saturate(5844%) hue-rotate(334deg) brightness(106%) contrast(101%);--filter-color-red-medium: brightness(0) saturate(100%) invert(91%) sepia(56%) saturate(2290%) hue-rotate(286deg) brightness(90%) contrast(125%);--filter-color-red-dark-neutral: brightness(0) saturate(100%) invert(45%) sepia(66%) saturate(7154%) hue-rotate(331deg) brightness(90%) contrast(93%);--filter-color-red-darker: brightness(0) saturate(100%) invert(27%) sepia(54%) saturate(1956%) hue-rotate(318deg) brightness(91%) contrast(96%);--filter-color-red-darkness: brightness(0) saturate(100%) invert(20%) sepia(23%) saturate(3848%) hue-rotate(314deg) brightness(97%) contrast(95%);--filter-color-mono-gray-darker: brightness(0) saturate(100%) invert(41%) sepia(6%) saturate(1258%) hue-rotate(175deg) brightness(92%) contrast(90%);--filter-color-mono-gray-dark: brightness(0) saturate(100%) invert(57%) sepia(6%) saturate(840%) hue-rotate(175deg) brightness(88%) contrast(86%);--filter-color-mono-gray-total: brightness(0) saturate(100%) invert(25%) sepia(31%) saturate(337%) hue-rotate(176deg) brightness(96%) contrast(92%);box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:var(--border-base-rounded);cursor:pointer;-webkit-user-select:none;user-select:none;height:auto;font-size:var(--font-size-m);font-family:Roboto,sans-serif;line-height:24px;-webkit-tap-highlight-color:transparent}.aeb-button:focus{outline:none}.aeb-button:disabled{pointer-events:none}.aeb-button__icon{width:24px;height:24px;pointer-events:none}.aeb-button__icon--left__wrapper{display:flex}.aeb-button__label{line-height:24px}.aeb-button--fill{width:100%}.aeb-button--icon-only.aeb-button{gap:0}.aeb-button--icon-only.aeb-button--small{padding:2px;border-radius:8px}.aeb-button--icon-only.aeb-button--small.aeb-button--tertiary .aeb-button__icon--left__wrapper{border-radius:var(--border-medium-rounded)}.aeb-button--icon-only.aeb-button--medium{padding:10px}.aeb-button--icon-only.aeb-button--large{padding:14px}.aeb-button--primary{background:var(--color-blue-brand);border:var(--border-skinny) solid var(--color-blue-brand);color:var(--color-mono-clear)}.aeb-button--primary .aeb-button__icon{filter:var(--filter-color-mono-clear)}.aeb-button--primary.aeb-button--warning{background:var(--color-red-neutral);border:var(--border-skinny) solid var(--color-red-neutral)}@media (hover: hover){.aeb-button--primary:hover,.aeb-button--primary:focus{background:var(--color-blue-brand-dark);border:var(--border-skinny) solid var(--color-blue-brand-dark)}.aeb-button--primary:hover.aeb-button--warning,.aeb-button--primary:focus.aeb-button--warning{background:var(--color-red-dark-neutral);border:var(--border-skinny) solid var(--color-red-dark-neutral)}}.aeb-button--primary:active{background:var(--color-blue-dark);border:var(--border-skinny) solid var(--color-blue-dark)}.aeb-button--primary:active.aeb-button--warning{background:var(--color-red-darker);border:var(--border-skinny) solid var(--color-red-darker)}.aeb-button--primary:disabled{background:var(--color-blue-light);border:var(--border-skinny) solid var(--color-blue-light);cursor:not-allowed}.aeb-button--primary:disabled.aeb-button--warning{background:var(--color-red-medium);border:var(--border-skinny) solid var(--color-red-medium)}.aeb-button--secondary{background:var(--color-blue-soft);border:var(--border-skinny) solid var(--color-blue-soft);color:var(--color-blue-brand)}.aeb-button--secondary .aeb-button__icon{filter:var(--filter-color-blue-brand)}.aeb-button--secondary.aeb-button--warning{background:var(--color-red-soft);border:var(--border-skinny) solid var(--color-red-soft);color:var(--color-red-neutral)}.aeb-button--secondary.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}@media (hover: hover){.aeb-button--secondary:hover,.aeb-button--secondary:focus{border:var(--border-skinny) solid var(--color-blue-light);background:var(--color-blue-light)}.aeb-button--secondary:hover.aeb-button--warning,.aeb-button--secondary:focus.aeb-button--warning{background:var(--color-red-light);border:var(--border-skinny) solid var(--color-red-light)}}.aeb-button--secondary:active{border:var(--border-skinny) solid var(--color-blue-soft);background:var(--color-blue-soft)}.aeb-button--secondary:active.aeb-button--warning{background:var(--color-red-soft);border:var(--border-skinny) solid var(--color-red-soft)}.aeb-button--secondary:disabled{border:var(--border-skinny) solid var(--color-blue-soft);background:var(--color-blue-soft);color:var(--color-blue-light-medium)}.aeb-button--secondary:disabled .aeb-button__icon{filter:var(--filter-color-blue-light-medium)}.aeb-button--secondary:disabled.aeb-button--warning{background:var(--color-red-soft);border:var(--border-skinny) solid var(--color-red-soft);color:var(--color-red-medium)}.aeb-button--secondary:disabled.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-medium)}.aeb-button--outline{border:var(--border-skinny) solid var(--color-blue-brand);background:transparent;color:var(--color-blue-brand)}.aeb-button--outline .aeb-button__icon{filter:var(--filter-color-blue-brand)}.aeb-button--outline.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-neutral);color:var(--color-red-neutral)}.aeb-button--outline.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}@media (hover: hover){.aeb-button--outline:hover,.aeb-button--outline:focus{border:var(--border-skinny) solid var(--color-blue-brand-dark);color:var(--color-blue-brand-dark)}.aeb-button--outline:hover .aeb-button__icon,.aeb-button--outline:focus .aeb-button__icon{filter:var(--filter-color-blue-brand-dark)}.aeb-button--outline:hover.aeb-button--warning,.aeb-button--outline:focus.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-dark-neutral);color:var(--color-red-dark-neutral)}.aeb-button--outline:hover.aeb-button--warning .aeb-button__icon,.aeb-button--outline:focus.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-dark-neutral)}}.aeb-button--outline:active{border:var(--border-skinny) solid var(--color-blue-dark);color:var(--color-blue-dark)}.aeb-button--outline:active .aeb-button__icon{filter:var(--filter-color-blue-dark)}.aeb-button--outline:active.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-darker);color:var(--color-red-darker)}.aeb-button--outline:active.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-darker)}.aeb-button--outline:disabled{border:var(--border-skinny) solid var(--color-blue-light);color:var(--color-blue-light)}.aeb-button--outline:disabled .aeb-button__icon{filter:var(--filter-color-blue-light)}.aeb-button--outline:disabled.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-medium);color:var(--color-red-medium)}.aeb-button--outline:disabled.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-medium)}.aeb-button--tertiary{background:transparent;border-color:transparent;color:var(--color-blue-brand)}.aeb-button--tertiary .aeb-button__icon{filter:var(--filter-color-blue-brand)}.aeb-button--tertiary .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-soft);background-color:var(--color-blue-soft);border-radius:var(--border-base-rounded)}.aeb-button--tertiary.aeb-button--small .aeb-button__icon--left__wrapper{padding:2px;border-radius:var(--border-fully-rounded) var(--border-medium-rounded) var(--border-medium-rounded) var(--border-fully-rounded)}.aeb-button--tertiary.aeb-button--medium .aeb-button__icon--left__wrapper{padding:10px}.aeb-button--tertiary.aeb-button--large .aeb-button__icon--left__wrapper{padding:14px}.aeb-button--tertiary--has-left-icon.aeb-button--small,.aeb-button--tertiary--has-left-icon.aeb-button--medium,.aeb-button--tertiary--has-left-icon.aeb-button--large{padding-top:0;padding-bottom:0}.aeb-button--tertiary.aeb-button--warning{color:var(--color-red-neutral)}.aeb-button--tertiary.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-soft);background-color:var(--color-red-soft);border-radius:var(--border-base-rounded)}.aeb-button--tertiary.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}@media (hover: hover){.aeb-button--tertiary:hover .aeb-button__icon--left__wrapper,.aeb-button--tertiary:focus .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-light);background-color:var(--color-blue-light)}.aeb-button--tertiary:hover.aeb-button--warning .aeb-button__icon--left__wrapper,.aeb-button--tertiary:focus.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-light);background-color:var(--color-red-light)}.aeb-button--tertiary:hover.aeb-button--warning .aeb-button__icon,.aeb-button--tertiary:focus.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}}.aeb-button--tertiary:active .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-soft);background-color:var(--color-blue-soft)}.aeb-button--tertiary:active.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-soft);background-color:var(--color-red-soft)}.aeb-button--tertiary:active.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}.aeb-button--tertiary:disabled{color:var(--color-blue-light-medium)}.aeb-button--tertiary:disabled .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-soft);background-color:var(--color-blue-soft)}.aeb-button--tertiary:disabled .aeb-button__icon{filter:var(--filter-color-blue-light-medium)}.aeb-button--tertiary:disabled.aeb-button--warning{color:var(--color-red-medium)}.aeb-button--tertiary:disabled.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-soft);background-color:var(--color-red-soft)}.aeb-button--tertiary:disabled.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-medium)}.aeb-button--small{padding:2px 22px;border-radius:var(--border-rounded)}.aeb-button--medium{padding:10px 22px}.aeb-button--large{padding:14px 22px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
143
|
+
type: Component,
|
|
144
|
+
args: [{ selector: 'button[aeb-button]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n *ngIf=\"showIconLeft && iconSource?.left\"\n class=\"aeb-button__icon--left__wrapper\"\n>\n <img\n class=\"aeb-button__icon aeb-button__icon--left\"\n src=\"{{ iconSource.left }}\"\n alt=\"left-icon\"\n />\n</div>\n<div class=\"aeb-button__label\"><ng-content></ng-content></div>\n<img\n *ngIf=\"showIconRight && iconSource?.right\"\n class=\"aeb-button__icon aeb-button__icon--right\"\n src=\"{{ iconSource.right }}\"\n alt=\"right-icon\"\n/>\n", styles: [".aeb-button{--filter-color-mono-clear: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7411%) hue-rotate(237deg) brightness(111%) contrast(100%);--filter-color-blue-light: brightness(0) saturate(100%) invert(80%) sepia(5%) saturate(1644%) hue-rotate(184deg) brightness(109%) contrast(97%);--filter-color-blue-light-medium: brightness(0) saturate(100%) invert(68%) sepia(24%) saturate(506%) hue-rotate(173deg) brightness(102%) contrast(107%);--filter-color-blue-brand-light: brightness(0) saturate(100%) invert(57%) sepia(10%) saturate(3291%) hue-rotate(175deg) brightness(94%) contrast(101%);--filter-color-blue-brand: brightness(0) saturate(100%) invert(52%) sepia(55%) saturate(4999%) hue-rotate(195deg) brightness(98%) contrast(91%);--filter-color-blue-brand-dark: brightness(0) saturate(100%) invert(46%) sepia(14%) saturate(2219%) hue-rotate(172deg) brightness(95%) contrast(110%);--filter-color-blue-dark: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(6758%) hue-rotate(180deg) brightness(90%) contrast(87%);--filter-color-red-soft: brightness(0) saturate(100%) invert(83%) sepia(31%) saturate(95%) hue-rotate(296deg) brightness(107%) contrast(98%);--filter-color-red-light-neutral: brightness(0) saturate(100%) invert(50%) sepia(42%) saturate(1314%) hue-rotate(310deg) brightness(106%) contrast(104%);--filter-color-red-neutral: brightness(0) saturate(100%) invert(39%) sepia(74%) saturate(5844%) hue-rotate(334deg) brightness(106%) contrast(101%);--filter-color-red-medium: brightness(0) saturate(100%) invert(91%) sepia(56%) saturate(2290%) hue-rotate(286deg) brightness(90%) contrast(125%);--filter-color-red-dark-neutral: brightness(0) saturate(100%) invert(45%) sepia(66%) saturate(7154%) hue-rotate(331deg) brightness(90%) contrast(93%);--filter-color-red-darker: brightness(0) saturate(100%) invert(27%) sepia(54%) saturate(1956%) hue-rotate(318deg) brightness(91%) contrast(96%);--filter-color-red-darkness: brightness(0) saturate(100%) invert(20%) sepia(23%) saturate(3848%) hue-rotate(314deg) brightness(97%) contrast(95%);--filter-color-mono-gray-darker: brightness(0) saturate(100%) invert(41%) sepia(6%) saturate(1258%) hue-rotate(175deg) brightness(92%) contrast(90%);--filter-color-mono-gray-dark: brightness(0) saturate(100%) invert(57%) sepia(6%) saturate(840%) hue-rotate(175deg) brightness(88%) contrast(86%);--filter-color-mono-gray-total: brightness(0) saturate(100%) invert(25%) sepia(31%) saturate(337%) hue-rotate(176deg) brightness(96%) contrast(92%);box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:var(--border-base-rounded);cursor:pointer;-webkit-user-select:none;user-select:none;height:auto;font-size:var(--font-size-m);font-family:Roboto,sans-serif;line-height:24px;-webkit-tap-highlight-color:transparent}.aeb-button:focus{outline:none}.aeb-button:disabled{pointer-events:none}.aeb-button__icon{width:24px;height:24px;pointer-events:none}.aeb-button__icon--left__wrapper{display:flex}.aeb-button__label{line-height:24px}.aeb-button--fill{width:100%}.aeb-button--icon-only.aeb-button{gap:0}.aeb-button--icon-only.aeb-button--small{padding:2px;border-radius:8px}.aeb-button--icon-only.aeb-button--small.aeb-button--tertiary .aeb-button__icon--left__wrapper{border-radius:var(--border-medium-rounded)}.aeb-button--icon-only.aeb-button--medium{padding:10px}.aeb-button--icon-only.aeb-button--large{padding:14px}.aeb-button--primary{background:var(--color-blue-brand);border:var(--border-skinny) solid var(--color-blue-brand);color:var(--color-mono-clear)}.aeb-button--primary .aeb-button__icon{filter:var(--filter-color-mono-clear)}.aeb-button--primary.aeb-button--warning{background:var(--color-red-neutral);border:var(--border-skinny) solid var(--color-red-neutral)}@media (hover: hover){.aeb-button--primary:hover,.aeb-button--primary:focus{background:var(--color-blue-brand-dark);border:var(--border-skinny) solid var(--color-blue-brand-dark)}.aeb-button--primary:hover.aeb-button--warning,.aeb-button--primary:focus.aeb-button--warning{background:var(--color-red-dark-neutral);border:var(--border-skinny) solid var(--color-red-dark-neutral)}}.aeb-button--primary:active{background:var(--color-blue-dark);border:var(--border-skinny) solid var(--color-blue-dark)}.aeb-button--primary:active.aeb-button--warning{background:var(--color-red-darker);border:var(--border-skinny) solid var(--color-red-darker)}.aeb-button--primary:disabled{background:var(--color-blue-light);border:var(--border-skinny) solid var(--color-blue-light);cursor:not-allowed}.aeb-button--primary:disabled.aeb-button--warning{background:var(--color-red-medium);border:var(--border-skinny) solid var(--color-red-medium)}.aeb-button--secondary{background:var(--color-blue-soft);border:var(--border-skinny) solid var(--color-blue-soft);color:var(--color-blue-brand)}.aeb-button--secondary .aeb-button__icon{filter:var(--filter-color-blue-brand)}.aeb-button--secondary.aeb-button--warning{background:var(--color-red-soft);border:var(--border-skinny) solid var(--color-red-soft);color:var(--color-red-neutral)}.aeb-button--secondary.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}@media (hover: hover){.aeb-button--secondary:hover,.aeb-button--secondary:focus{border:var(--border-skinny) solid var(--color-blue-light);background:var(--color-blue-light)}.aeb-button--secondary:hover.aeb-button--warning,.aeb-button--secondary:focus.aeb-button--warning{background:var(--color-red-light);border:var(--border-skinny) solid var(--color-red-light)}}.aeb-button--secondary:active{border:var(--border-skinny) solid var(--color-blue-soft);background:var(--color-blue-soft)}.aeb-button--secondary:active.aeb-button--warning{background:var(--color-red-soft);border:var(--border-skinny) solid var(--color-red-soft)}.aeb-button--secondary:disabled{border:var(--border-skinny) solid var(--color-blue-soft);background:var(--color-blue-soft);color:var(--color-blue-light-medium)}.aeb-button--secondary:disabled .aeb-button__icon{filter:var(--filter-color-blue-light-medium)}.aeb-button--secondary:disabled.aeb-button--warning{background:var(--color-red-soft);border:var(--border-skinny) solid var(--color-red-soft);color:var(--color-red-medium)}.aeb-button--secondary:disabled.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-medium)}.aeb-button--outline{border:var(--border-skinny) solid var(--color-blue-brand);background:transparent;color:var(--color-blue-brand)}.aeb-button--outline .aeb-button__icon{filter:var(--filter-color-blue-brand)}.aeb-button--outline.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-neutral);color:var(--color-red-neutral)}.aeb-button--outline.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}@media (hover: hover){.aeb-button--outline:hover,.aeb-button--outline:focus{border:var(--border-skinny) solid var(--color-blue-brand-dark);color:var(--color-blue-brand-dark)}.aeb-button--outline:hover .aeb-button__icon,.aeb-button--outline:focus .aeb-button__icon{filter:var(--filter-color-blue-brand-dark)}.aeb-button--outline:hover.aeb-button--warning,.aeb-button--outline:focus.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-dark-neutral);color:var(--color-red-dark-neutral)}.aeb-button--outline:hover.aeb-button--warning .aeb-button__icon,.aeb-button--outline:focus.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-dark-neutral)}}.aeb-button--outline:active{border:var(--border-skinny) solid var(--color-blue-dark);color:var(--color-blue-dark)}.aeb-button--outline:active .aeb-button__icon{filter:var(--filter-color-blue-dark)}.aeb-button--outline:active.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-darker);color:var(--color-red-darker)}.aeb-button--outline:active.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-darker)}.aeb-button--outline:disabled{border:var(--border-skinny) solid var(--color-blue-light);color:var(--color-blue-light)}.aeb-button--outline:disabled .aeb-button__icon{filter:var(--filter-color-blue-light)}.aeb-button--outline:disabled.aeb-button--warning{border:var(--border-skinny) solid var(--color-red-medium);color:var(--color-red-medium)}.aeb-button--outline:disabled.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-medium)}.aeb-button--tertiary{background:transparent;border-color:transparent;color:var(--color-blue-brand)}.aeb-button--tertiary .aeb-button__icon{filter:var(--filter-color-blue-brand)}.aeb-button--tertiary .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-soft);background-color:var(--color-blue-soft);border-radius:var(--border-base-rounded)}.aeb-button--tertiary.aeb-button--small .aeb-button__icon--left__wrapper{padding:2px;border-radius:var(--border-fully-rounded) var(--border-medium-rounded) var(--border-medium-rounded) var(--border-fully-rounded)}.aeb-button--tertiary.aeb-button--medium .aeb-button__icon--left__wrapper{padding:10px}.aeb-button--tertiary.aeb-button--large .aeb-button__icon--left__wrapper{padding:14px}.aeb-button--tertiary--has-left-icon.aeb-button--small,.aeb-button--tertiary--has-left-icon.aeb-button--medium,.aeb-button--tertiary--has-left-icon.aeb-button--large{padding-top:0;padding-bottom:0}.aeb-button--tertiary.aeb-button--warning{color:var(--color-red-neutral)}.aeb-button--tertiary.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-soft);background-color:var(--color-red-soft);border-radius:var(--border-base-rounded)}.aeb-button--tertiary.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}@media (hover: hover){.aeb-button--tertiary:hover .aeb-button__icon--left__wrapper,.aeb-button--tertiary:focus .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-light);background-color:var(--color-blue-light)}.aeb-button--tertiary:hover.aeb-button--warning .aeb-button__icon--left__wrapper,.aeb-button--tertiary:focus.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-light);background-color:var(--color-red-light)}.aeb-button--tertiary:hover.aeb-button--warning .aeb-button__icon,.aeb-button--tertiary:focus.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}}.aeb-button--tertiary:active .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-soft);background-color:var(--color-blue-soft)}.aeb-button--tertiary:active.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-soft);background-color:var(--color-red-soft)}.aeb-button--tertiary:active.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-neutral)}.aeb-button--tertiary:disabled{color:var(--color-blue-light-medium)}.aeb-button--tertiary:disabled .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-blue-soft);background-color:var(--color-blue-soft)}.aeb-button--tertiary:disabled .aeb-button__icon{filter:var(--filter-color-blue-light-medium)}.aeb-button--tertiary:disabled.aeb-button--warning{color:var(--color-red-medium)}.aeb-button--tertiary:disabled.aeb-button--warning .aeb-button__icon--left__wrapper{border:var(--border-skinny) solid var(--color-red-soft);background-color:var(--color-red-soft)}.aeb-button--tertiary:disabled.aeb-button--warning .aeb-button__icon{filter:var(--filter-color-red-medium)}.aeb-button--small{padding:2px 22px;border-radius:var(--border-rounded)}.aeb-button--medium{padding:10px 22px}.aeb-button--large{padding:14px 22px}\n"] }]
|
|
145
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fill: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], iconSource: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], showIconLeft: [{
|
|
150
|
+
type: Input
|
|
151
|
+
}], showIconRight: [{
|
|
152
|
+
type: Input
|
|
153
|
+
}], size: [{
|
|
154
|
+
type: Input
|
|
155
|
+
}], variant: [{
|
|
156
|
+
type: Input
|
|
157
|
+
}], isButton: [{
|
|
158
|
+
type: HostBinding,
|
|
159
|
+
args: ['class.aeb-button']
|
|
160
|
+
}], isPrimary: [{
|
|
161
|
+
type: HostBinding,
|
|
162
|
+
args: ['class.aeb-button--primary']
|
|
163
|
+
}], isSecondary: [{
|
|
164
|
+
type: HostBinding,
|
|
165
|
+
args: ['class.aeb-button--secondary']
|
|
166
|
+
}], isTertiary: [{
|
|
167
|
+
type: HostBinding,
|
|
168
|
+
args: ['class.aeb-button--tertiary']
|
|
169
|
+
}], isOutline: [{
|
|
170
|
+
type: HostBinding,
|
|
171
|
+
args: ['class.aeb-button--outline']
|
|
172
|
+
}], isTertiaryWithLeftIcon: [{
|
|
173
|
+
type: HostBinding,
|
|
174
|
+
args: ['class.aeb-button--tertiary--has-left-icon']
|
|
175
|
+
}], isFill: [{
|
|
176
|
+
type: HostBinding,
|
|
177
|
+
args: ['class.aeb-button--fill']
|
|
178
|
+
}], isIconOnly: [{
|
|
179
|
+
type: HostBinding,
|
|
180
|
+
args: ['class.aeb-button--icon-only']
|
|
181
|
+
}], isLarge: [{
|
|
182
|
+
type: HostBinding,
|
|
183
|
+
args: ['class.aeb-button--large']
|
|
184
|
+
}], isMedium: [{
|
|
185
|
+
type: HostBinding,
|
|
186
|
+
args: ['class.aeb-button--medium']
|
|
187
|
+
}], isSmall: [{
|
|
188
|
+
type: HostBinding,
|
|
189
|
+
args: ['class.aeb-button--small']
|
|
190
|
+
}], onLeave: [{
|
|
191
|
+
type: HostListener,
|
|
192
|
+
args: ['mouseleave']
|
|
193
|
+
}] } });
|
|
194
|
+
|
|
195
|
+
class ButtonModule {
|
|
196
|
+
}
|
|
197
|
+
ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
198
|
+
ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule], exports: [ButtonComponent] });
|
|
199
|
+
ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonModule, imports: [CommonModule] });
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonModule, decorators: [{
|
|
201
|
+
type: NgModule,
|
|
202
|
+
args: [{
|
|
203
|
+
declarations: [ButtonComponent],
|
|
204
|
+
imports: [CommonModule],
|
|
205
|
+
exports: [ButtonComponent]
|
|
206
|
+
}]
|
|
207
|
+
}] });
|
|
208
|
+
|
|
93
209
|
class CheckboxComponent {
|
|
94
210
|
constructor(renderer) {
|
|
95
211
|
this.renderer = renderer;
|
|
96
212
|
this.isChecked = false;
|
|
97
213
|
this.isDisabled = false;
|
|
98
214
|
this.isValid = true;
|
|
215
|
+
this.hasText = true;
|
|
99
216
|
this.name = null;
|
|
100
217
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
101
218
|
this.change = new EventEmitter();
|
|
@@ -112,11 +229,8 @@ class CheckboxComponent {
|
|
|
112
229
|
get checkboxError() {
|
|
113
230
|
return !this.isValid;
|
|
114
231
|
}
|
|
115
|
-
get checkboxCheckedDisabled() {
|
|
116
|
-
return this.isChecked && this.isDisabled;
|
|
117
|
-
}
|
|
118
232
|
handleChange(event) {
|
|
119
|
-
event.
|
|
233
|
+
event.preventDefault();
|
|
120
234
|
this.isChecked = !this.isChecked;
|
|
121
235
|
this._onTouched();
|
|
122
236
|
this._onChangeFn(this.isChecked);
|
|
@@ -127,6 +241,7 @@ class CheckboxComponent {
|
|
|
127
241
|
return;
|
|
128
242
|
}
|
|
129
243
|
this.isChecked = !!value;
|
|
244
|
+
this.change.emit(this.isChecked);
|
|
130
245
|
}
|
|
131
246
|
registerOnChange(fn) {
|
|
132
247
|
this._onChangeFn = fn;
|
|
@@ -148,13 +263,13 @@ class CheckboxComponent {
|
|
|
148
263
|
}
|
|
149
264
|
}
|
|
150
265
|
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
151
|
-
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxComponent, selector: "aeb-checkbox", inputs: { id: "id", isChecked: "isChecked", isDisabled: "isDisabled", isValid: "isValid", name: "name" }, outputs: { change: "change" }, host: { properties: { "class.aeb-checkbox": "this.checkBoxClass", "class.aeb-checkbox
|
|
266
|
+
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxComponent, selector: "aeb-checkbox", inputs: { id: "id", isChecked: "isChecked", isDisabled: "isDisabled", isValid: "isValid", hasText: "hasText", name: "name" }, outputs: { change: "change" }, host: { properties: { "class.aeb-checkbox": "this.checkBoxClass", "class.aeb-checkbox--checked": "this.checkboxChecked", "class.aeb-checkbox--disabled": "this.checkboxDisabled", "class.aeb-checkbox--error": "this.checkboxError" } }, providers: [
|
|
152
267
|
{
|
|
153
268
|
provide: NG_VALUE_ACCESSOR,
|
|
154
269
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
155
270
|
multi: true
|
|
156
271
|
}
|
|
157
|
-
], viewQueries: [{ propertyName: "checkboxInput", first: true, predicate: ["checkbox"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [attr.for]=\"id\"
|
|
272
|
+
], viewQueries: [{ propertyName: "checkboxInput", first: true, predicate: ["checkbox"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [attr.for]=\"id\">\n <input\n #checkbox\n type=\"checkbox\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (click)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox__indicator\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <rect width=\"24\" height=\"24\" rx=\"4\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.2857 16L6 12.1538L7.2 11.0769L10.2857 13.8462L16.8 8L18 9.07692L10.2857 16Z\"\n fill=\"white\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox__label\" *ngIf=\"hasText\">\n <ng-content></ng-content>\n </div>\n</label>\n", styles: [".aeb-checkbox{--checkbox-color-default: var(--color-blue-brand);--checkbox-color-hover: var(--color-blue-brand-dark);--checkbox-color-active: var(--color-blue-dark);--checkbox-color-disabled: var(--color-blue-light);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-brand-dark);--text-color-alternate: var(--color-mono-gray-darker);display:block;box-sizing:border-box;width:-moz-fit-content;width:fit-content;-webkit-tap-highlight-color:transparent}.aeb-checkbox label{display:flex;align-items:flex-start;justify-content:flex-start;cursor:pointer;gap:12px}.aeb-checkbox__indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:24px;height:24px;background-color:transparent;border:var(--border-skinny) solid var(--checkbox-color-default);border-radius:var(--border-lightly-rounded)}.aeb-checkbox__indicator>svg{opacity:var(--100-total)}.aeb-checkbox__label{font:var(--web-tp-body-16-r);line-height:20px;color:var(--text-color-default);-webkit-user-select:none;user-select:none;align-self:center}.aeb-checkbox--checked .aeb-checkbox__indicator{border:none;border-width:0}.aeb-checkbox--checked .aeb-checkbox__indicator>svg{opacity:var(--0-zero)}.aeb-checkbox--checked .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-default)}.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error)}.aeb-checkbox--error .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox--disabled{pointer-events:none}.aeb-checkbox--disabled label{cursor:default}.aeb-checkbox--disabled .aeb-checkbox__indicator{border-color:var(--checkbox-color-disabled)}.aeb-checkbox--disabled .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--error .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-error)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--disabled .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-disabled)}@media (hover: hover){.aeb-checkbox:hover .aeb-checkbox__indicator{border-color:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-hover)}.aeb-checkbox:hover.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-hover)}}.aeb-checkbox:active .aeb-checkbox__indicator{border-color:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-active)}.aeb-checkbox:active.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-active)}body.dark .aeb-checkbox{--checkbox-color-default: var(--color-blue-brand-light);--checkbox-color-hover: var(--color-blue-brand);--checkbox-color-active: var(--color-blue-brand-dark);--checkbox-color-disabled: var(--color-mono-brand-dark);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-clear);--text-color-alternate: var(--color-mono-gray-soft)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
158
273
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
159
274
|
type: Component,
|
|
160
275
|
args: [{ selector: 'aeb-checkbox', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -163,7 +278,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
163
278
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
164
279
|
multi: true
|
|
165
280
|
}
|
|
166
|
-
], template: "<label [attr.for]=\"id\"
|
|
281
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [attr.for]=\"id\">\n <input\n #checkbox\n type=\"checkbox\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (click)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox__indicator\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <rect width=\"24\" height=\"24\" rx=\"4\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.2857 16L6 12.1538L7.2 11.0769L10.2857 13.8462L16.8 8L18 9.07692L10.2857 16Z\"\n fill=\"white\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox__label\" *ngIf=\"hasText\">\n <ng-content></ng-content>\n </div>\n</label>\n", styles: [".aeb-checkbox{--checkbox-color-default: var(--color-blue-brand);--checkbox-color-hover: var(--color-blue-brand-dark);--checkbox-color-active: var(--color-blue-dark);--checkbox-color-disabled: var(--color-blue-light);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-brand-dark);--text-color-alternate: var(--color-mono-gray-darker);display:block;box-sizing:border-box;width:-moz-fit-content;width:fit-content;-webkit-tap-highlight-color:transparent}.aeb-checkbox label{display:flex;align-items:flex-start;justify-content:flex-start;cursor:pointer;gap:12px}.aeb-checkbox__indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:24px;height:24px;background-color:transparent;border:var(--border-skinny) solid var(--checkbox-color-default);border-radius:var(--border-lightly-rounded)}.aeb-checkbox__indicator>svg{opacity:var(--100-total)}.aeb-checkbox__label{font:var(--web-tp-body-16-r);line-height:20px;color:var(--text-color-default);-webkit-user-select:none;user-select:none;align-self:center}.aeb-checkbox--checked .aeb-checkbox__indicator{border:none;border-width:0}.aeb-checkbox--checked .aeb-checkbox__indicator>svg{opacity:var(--0-zero)}.aeb-checkbox--checked .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-default)}.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error)}.aeb-checkbox--error .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox--disabled{pointer-events:none}.aeb-checkbox--disabled label{cursor:default}.aeb-checkbox--disabled .aeb-checkbox__indicator{border-color:var(--checkbox-color-disabled)}.aeb-checkbox--disabled .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--error .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-error)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--disabled .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-disabled)}@media (hover: hover){.aeb-checkbox:hover .aeb-checkbox__indicator{border-color:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-hover)}.aeb-checkbox:hover.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-hover)}}.aeb-checkbox:active .aeb-checkbox__indicator{border-color:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-active)}.aeb-checkbox:active.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-active)}body.dark .aeb-checkbox{--checkbox-color-default: var(--color-blue-brand-light);--checkbox-color-hover: var(--color-blue-brand);--checkbox-color-active: var(--color-blue-brand-dark);--checkbox-color-disabled: var(--color-mono-brand-dark);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-clear);--text-color-alternate: var(--color-mono-gray-soft)}\n"] }]
|
|
167
282
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { checkboxInput: [{
|
|
168
283
|
type: ViewChild,
|
|
169
284
|
args: ['checkbox', { static: true }]
|
|
@@ -175,6 +290,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
175
290
|
type: Input
|
|
176
291
|
}], isValid: [{
|
|
177
292
|
type: Input
|
|
293
|
+
}], hasText: [{
|
|
294
|
+
type: Input
|
|
178
295
|
}], name: [{
|
|
179
296
|
type: Input
|
|
180
297
|
}], change: [{
|
|
@@ -184,16 +301,134 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
184
301
|
args: ['class.aeb-checkbox']
|
|
185
302
|
}], checkboxChecked: [{
|
|
186
303
|
type: HostBinding,
|
|
187
|
-
args: ['class.aeb-checkbox
|
|
304
|
+
args: ['class.aeb-checkbox--checked']
|
|
188
305
|
}], checkboxDisabled: [{
|
|
189
306
|
type: HostBinding,
|
|
190
|
-
args: ['class.aeb-checkbox
|
|
307
|
+
args: ['class.aeb-checkbox--disabled']
|
|
191
308
|
}], checkboxError: [{
|
|
192
309
|
type: HostBinding,
|
|
193
|
-
args: ['class.aeb-checkbox
|
|
194
|
-
}]
|
|
310
|
+
args: ['class.aeb-checkbox--error']
|
|
311
|
+
}] } });
|
|
312
|
+
|
|
313
|
+
class CheckboxModule {
|
|
314
|
+
}
|
|
315
|
+
CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
316
|
+
CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent], imports: [CommonModule, FormsModule], exports: [CheckboxComponent] });
|
|
317
|
+
CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, imports: [CommonModule, FormsModule] });
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, decorators: [{
|
|
319
|
+
type: NgModule,
|
|
320
|
+
args: [{
|
|
321
|
+
declarations: [CheckboxComponent],
|
|
322
|
+
imports: [CommonModule, FormsModule],
|
|
323
|
+
exports: [CheckboxComponent]
|
|
324
|
+
}]
|
|
325
|
+
}] });
|
|
326
|
+
|
|
327
|
+
class CheckboxOldComponent {
|
|
328
|
+
constructor(renderer) {
|
|
329
|
+
this.renderer = renderer;
|
|
330
|
+
this.isChecked = false;
|
|
331
|
+
this.isDisabled = false;
|
|
332
|
+
this.isValid = true;
|
|
333
|
+
this.name = null;
|
|
334
|
+
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
335
|
+
this.change = new EventEmitter();
|
|
336
|
+
this.checkBoxOldClass = true;
|
|
337
|
+
this._onChangeFn = () => { };
|
|
338
|
+
this._onTouched = () => { };
|
|
339
|
+
}
|
|
340
|
+
get checkboxOldChecked() {
|
|
341
|
+
return this.isChecked;
|
|
342
|
+
}
|
|
343
|
+
get checkboxOldDisabled() {
|
|
344
|
+
return this.isDisabled;
|
|
345
|
+
}
|
|
346
|
+
get checkboxOldError() {
|
|
347
|
+
return !this.isValid;
|
|
348
|
+
}
|
|
349
|
+
get checkboxOldCheckedDisabled() {
|
|
350
|
+
return this.isChecked && this.isDisabled;
|
|
351
|
+
}
|
|
352
|
+
handleChange(event) {
|
|
353
|
+
console.log('dds');
|
|
354
|
+
event.stopPropagation();
|
|
355
|
+
this.isChecked = !this.isChecked;
|
|
356
|
+
this._onTouched();
|
|
357
|
+
this._onChangeFn(this.isChecked);
|
|
358
|
+
this.change.emit(event.target.checked);
|
|
359
|
+
}
|
|
360
|
+
writeValue(value) {
|
|
361
|
+
if (value === null || value === '') {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
this.isChecked = !!value;
|
|
365
|
+
}
|
|
366
|
+
registerOnChange(fn) {
|
|
367
|
+
this._onChangeFn = fn;
|
|
368
|
+
}
|
|
369
|
+
registerOnTouched(fn) {
|
|
370
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
371
|
+
this._onTouched = fn;
|
|
372
|
+
}
|
|
373
|
+
setDisabledState(isDisabled) {
|
|
374
|
+
this.isDisabled = isDisabled;
|
|
375
|
+
this.renderer.setProperty(this.checkboxOldInput.nativeElement, 'disabled', isDisabled);
|
|
376
|
+
}
|
|
377
|
+
ngOnChanges(changes) {
|
|
378
|
+
if (changes.isChecked) {
|
|
379
|
+
this._onTouched();
|
|
380
|
+
this._onChangeFn(changes.isChecked.currentValue);
|
|
381
|
+
this.change.emit(changes.isChecked.currentValue);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
CheckboxOldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
386
|
+
CheckboxOldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxOldComponent, selector: "aeb-checkbox-old", inputs: { id: "id", isChecked: "isChecked", isDisabled: "isDisabled", isValid: "isValid", name: "name" }, outputs: { change: "change" }, host: { properties: { "class.aeb-checkbox-old": "this.checkBoxOldClass", "class.aeb-checkbox-old-checked": "this.checkboxOldChecked", "class.aeb-checkbox-old-disabled": "this.checkboxOldDisabled", "class.aeb-checkbox-old-error": "this.checkboxOldError", "class.aeb-checkbox-old-checked-disabled": "this.checkboxOldCheckedDisabled" } }, providers: [
|
|
387
|
+
{
|
|
388
|
+
provide: NG_VALUE_ACCESSOR,
|
|
389
|
+
useExisting: forwardRef(() => CheckboxOldComponent),
|
|
390
|
+
multi: true
|
|
391
|
+
}
|
|
392
|
+
], viewQueries: [{ propertyName: "checkboxOldInput", first: true, predicate: ["checkbox-old"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-old-layout\">\n <div class=\"aeb-checkbox-old-container\">\n <input\n #checkboxOld\n type=\"checkbox-old\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (click)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-old-indicator\">\n <svg\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9 16L4 11.1923L5.4 9.84615L9 13.3077L16.6 6L18 7.34615L9 16V16Z\"\n fill=\"#EEEEEE\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox-old-label\">\n <ng-content></ng-content>\n </div>\n </div>\n</label>\n", styles: [".aeb-checkbox-old-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-old-layout{display:flex;color:var(--darkblue);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:22px;height:22px;background-color:var(--white);border:2px solid var(--gray-primary);border-radius:4px}.aeb-checkbox-old-indicator>svg{opacity:0}@media (hover: hover){.aeb-checkbox-old-indicator:hover{border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-indicator:active{position:relative;padding:2px;background-image:var(--active-gradient);border:none}.aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:#fff;border-radius:2px}}.aeb-checkbox-old-label{margin-top:1px;margin-left:12px;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:var(--darkblue);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator{background-color:var(--blue);border-color:var(--blue)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator>svg{opacity:1}@media (hover: hover){.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:hover{background-color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:hover{background-image:var(--active-gradient);border:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator{border:2px solid var(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:hover{border:2px solid var(--gray-primary)}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active{background:white!important;border:2px solid var(--gray-primary)!important}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-label{opacity:.6}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator{background:var(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active{background:var(--gray-primary)!important;border:none!important}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-error .aeb-checkbox-old-indicator{color:var(--red)!important;border-color:var(--red)!important}.aeb-checkbox-old-error .aeb-checkbox-old-label{color:var(--red)!important}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldComponent, decorators: [{
|
|
394
|
+
type: Component,
|
|
395
|
+
args: [{ selector: 'aeb-checkbox-old', encapsulation: ViewEncapsulation.None, providers: [
|
|
396
|
+
{
|
|
397
|
+
provide: NG_VALUE_ACCESSOR,
|
|
398
|
+
useExisting: forwardRef(() => CheckboxOldComponent),
|
|
399
|
+
multi: true
|
|
400
|
+
}
|
|
401
|
+
], template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-old-layout\">\n <div class=\"aeb-checkbox-old-container\">\n <input\n #checkboxOld\n type=\"checkbox-old\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (click)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-old-indicator\">\n <svg\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9 16L4 11.1923L5.4 9.84615L9 13.3077L16.6 6L18 7.34615L9 16V16Z\"\n fill=\"#EEEEEE\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox-old-label\">\n <ng-content></ng-content>\n </div>\n </div>\n</label>\n", styles: [".aeb-checkbox-old-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-old-layout{display:flex;color:var(--darkblue);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:22px;height:22px;background-color:var(--white);border:2px solid var(--gray-primary);border-radius:4px}.aeb-checkbox-old-indicator>svg{opacity:0}@media (hover: hover){.aeb-checkbox-old-indicator:hover{border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-indicator:active{position:relative;padding:2px;background-image:var(--active-gradient);border:none}.aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:#fff;border-radius:2px}}.aeb-checkbox-old-label{margin-top:1px;margin-left:12px;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:var(--darkblue);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator{background-color:var(--blue);border-color:var(--blue)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator>svg{opacity:1}@media (hover: hover){.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:hover{background-color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:hover{background-image:var(--active-gradient);border:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator{border:2px solid var(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:hover{border:2px solid var(--gray-primary)}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active{background:white!important;border:2px solid var(--gray-primary)!important}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-label{opacity:.6}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator{background:var(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active{background:var(--gray-primary)!important;border:none!important}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-error .aeb-checkbox-old-indicator{color:var(--red)!important;border-color:var(--red)!important}.aeb-checkbox-old-error .aeb-checkbox-old-label{color:var(--red)!important}\n"] }]
|
|
402
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { checkboxOldInput: [{
|
|
403
|
+
type: ViewChild,
|
|
404
|
+
args: ['checkbox-old', { static: true }]
|
|
405
|
+
}], id: [{
|
|
406
|
+
type: Input
|
|
407
|
+
}], isChecked: [{
|
|
408
|
+
type: Input
|
|
409
|
+
}], isDisabled: [{
|
|
410
|
+
type: Input
|
|
411
|
+
}], isValid: [{
|
|
412
|
+
type: Input
|
|
413
|
+
}], name: [{
|
|
414
|
+
type: Input
|
|
415
|
+
}], change: [{
|
|
416
|
+
type: Output
|
|
417
|
+
}], checkBoxOldClass: [{
|
|
418
|
+
type: HostBinding,
|
|
419
|
+
args: ['class.aeb-checkbox-old']
|
|
420
|
+
}], checkboxOldChecked: [{
|
|
421
|
+
type: HostBinding,
|
|
422
|
+
args: ['class.aeb-checkbox-old-checked']
|
|
423
|
+
}], checkboxOldDisabled: [{
|
|
424
|
+
type: HostBinding,
|
|
425
|
+
args: ['class.aeb-checkbox-old-disabled']
|
|
426
|
+
}], checkboxOldError: [{
|
|
195
427
|
type: HostBinding,
|
|
196
|
-
args: ['class.aeb-checkbox-
|
|
428
|
+
args: ['class.aeb-checkbox-old-error']
|
|
429
|
+
}], checkboxOldCheckedDisabled: [{
|
|
430
|
+
type: HostBinding,
|
|
431
|
+
args: ['class.aeb-checkbox-old-checked-disabled']
|
|
197
432
|
}] } });
|
|
198
433
|
|
|
199
434
|
/**
|
|
@@ -202,51 +437,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
202
437
|
* работа с элементами формы (установка значения, валидация, включение/выключение) должна осуществляться
|
|
203
438
|
* через поле `checkboxFormGroup`, а не через поля объектов `checkboxArray`
|
|
204
439
|
*/
|
|
205
|
-
class
|
|
440
|
+
class CheckboxGroupOldComponent {
|
|
206
441
|
constructor(formBuilder) {
|
|
207
442
|
this.formBuilder = formBuilder;
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
443
|
+
this.checkboxOldArray = [];
|
|
444
|
+
this.checkboxOldFormGroup = this.formBuilder.group({});
|
|
210
445
|
}
|
|
211
446
|
ngOnInit() {
|
|
212
|
-
this.
|
|
213
|
-
const
|
|
214
|
-
value:
|
|
215
|
-
disabled:
|
|
216
|
-
},
|
|
217
|
-
|
|
447
|
+
this.checkboxOldArray.forEach((checkBoxOld) => {
|
|
448
|
+
const checkboxOldControl = new FormControl({
|
|
449
|
+
value: checkBoxOld.checked,
|
|
450
|
+
disabled: checkBoxOld.disabled
|
|
451
|
+
}, checkBoxOld.required
|
|
452
|
+
? Validators.requiredTrue
|
|
453
|
+
: Validators.nullValidator);
|
|
454
|
+
this.checkboxOldFormGroup.addControl(checkBoxOld.name, checkboxOldControl);
|
|
218
455
|
});
|
|
219
456
|
}
|
|
220
|
-
isControlValid(
|
|
457
|
+
isControlValid(checkboxOld) {
|
|
221
458
|
var _a;
|
|
222
|
-
if (
|
|
223
|
-
!this.
|
|
224
|
-
!this.
|
|
459
|
+
if (checkboxOld.checkValidationAfterUncheck &&
|
|
460
|
+
!this.checkboxOldFormGroup.get(checkboxOld.name).dirty &&
|
|
461
|
+
!this.checkboxOldFormGroup.get(checkboxOld.name).touched) {
|
|
225
462
|
return true;
|
|
226
463
|
}
|
|
227
|
-
return (_a = this.
|
|
464
|
+
return (_a = this.checkboxOldFormGroup.get(checkboxOld.name)) === null || _a === void 0 ? void 0 : _a.valid;
|
|
228
465
|
}
|
|
229
466
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
467
|
+
CheckboxGroupOldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxGroupOldComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
468
|
+
CheckboxGroupOldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxGroupOldComponent, selector: "aeb-checkbox-group", inputs: { checkboxOldArray: "checkboxOldArray" }, ngImport: i0, template: "<div class=\"aeb-checkbox-group-old__header\">\u0413\u0440\u0443\u043F\u043F\u0430 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u043E\u0432</div>\n<form [formGroup]=\"checkboxOldFormGroup\">\n <aeb-checkbox-old\n class=\"aeb-checkbox-layout\"\n *ngFor=\"let data of checkboxOldArray\"\n [id]=\"data.id\"\n [name]=\"data.name\"\n [required]=\"data.required\"\n [isValid]=\"isControlValid(data)\"\n formControlName=\"{{ data.name }}\"\n >\n {{ data.label }}\n </aeb-checkbox-old>\n</form>\n", styles: [".aeb-checkbox-group-old__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-checkbox-layout{margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: CheckboxOldComponent, selector: "aeb-checkbox-old", inputs: ["id", "isChecked", "isDisabled", "isValid", "name"], outputs: ["change"] }] });
|
|
469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxGroupOldComponent, decorators: [{
|
|
233
470
|
type: Component,
|
|
234
|
-
args: [{ selector: 'aeb-checkbox-group',
|
|
235
|
-
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: {
|
|
471
|
+
args: [{ selector: 'aeb-checkbox-group', template: "<div class=\"aeb-checkbox-group-old__header\">\u0413\u0440\u0443\u043F\u043F\u0430 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u043E\u0432</div>\n<form [formGroup]=\"checkboxOldFormGroup\">\n <aeb-checkbox-old\n class=\"aeb-checkbox-layout\"\n *ngFor=\"let data of checkboxOldArray\"\n [id]=\"data.id\"\n [name]=\"data.name\"\n [required]=\"data.required\"\n [isValid]=\"isControlValid(data)\"\n formControlName=\"{{ data.name }}\"\n >\n {{ data.label }}\n </aeb-checkbox-old>\n</form>\n", styles: [".aeb-checkbox-group-old__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-checkbox-layout{margin-bottom:16px}\n"] }]
|
|
472
|
+
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { checkboxOldArray: [{
|
|
236
473
|
type: Input
|
|
237
474
|
}] } });
|
|
238
475
|
|
|
239
|
-
class
|
|
476
|
+
class CheckboxOldModule {
|
|
240
477
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
478
|
+
CheckboxOldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
479
|
+
CheckboxOldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, declarations: [CheckboxOldComponent, CheckboxGroupOldComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CheckboxOldComponent, CheckboxGroupOldComponent] });
|
|
480
|
+
CheckboxOldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] });
|
|
481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, decorators: [{
|
|
245
482
|
type: NgModule,
|
|
246
483
|
args: [{
|
|
247
|
-
declarations: [
|
|
484
|
+
declarations: [CheckboxOldComponent, CheckboxGroupOldComponent],
|
|
248
485
|
imports: [CommonModule, FormsModule, ReactiveFormsModule],
|
|
249
|
-
exports: [
|
|
486
|
+
exports: [CheckboxOldComponent, CheckboxGroupOldComponent]
|
|
250
487
|
}]
|
|
251
488
|
}] });
|
|
252
489
|
|
|
@@ -651,7 +888,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
651
888
|
}]
|
|
652
889
|
}] });
|
|
653
890
|
|
|
654
|
-
class
|
|
891
|
+
class OldButtonComponent {
|
|
655
892
|
constructor(buttonElement) {
|
|
656
893
|
this.buttonElement = buttonElement;
|
|
657
894
|
/**
|
|
@@ -757,11 +994,11 @@ class NewButtonComponent {
|
|
|
757
994
|
return this.iconSource ? this.iconSource[side] : undefined;
|
|
758
995
|
}
|
|
759
996
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
997
|
+
OldButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OldButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
998
|
+
OldButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: OldButtonComponent, selector: "aeb-old-button", inputs: { label: "label", fill: "fill", showIcon: "showIcon", iconSource: "iconSource", disabledIconSource: "disabledIconSource", hoveredIconSource: "hoveredIconSource", disabled: "disabled", leftIcon: "leftIcon", rightIcon: "rightIcon", size: "size", tabIndex: "tabIndex", solid: "solid" }, host: { listeners: { "mouseover": "onOver()", "mouseleave": "onLeave()" }, properties: { "tabIndex": "this.tabIndex", "class.aeb-old-button": "this.isButton", "class.aeb-old-button-primary": "this.isPrimary", "class.aeb-old-button-solid": "this.isSolid", "class.aeb-old-button--fill": "this.isFill", "class.aeb-old-button-solid--disabled": "this.isSolidDisabled", "class.aeb-old-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-old-button--small": "this.isSmall" } }, ngImport: i0, template: "<div\n class=\"aeb-old-button__label-wrapper\"\n *ngIf=\"label || showIcon; else content\"\n>\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-old-button__label-image\"\n [ngClass]=\"{\n 'aeb-old-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-old-button__label-image\"\n [ngClass]=\"{\n 'aeb-old-button__label-image--right':\n label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-old-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-old-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:var(--font-size-m);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--border-medium-rounded);-webkit-tap-highlight-color:transparent}.aeb-old-button--small{height:40px}.aeb-old-button--fill{width:100%}.aeb-old-button--fill .aeb-old-button__label-wrapper{justify-content:space-between;width:100%}.aeb-old-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-old-button__label-wrapper--small{padding:0 16px}.aeb-old-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-old-button__label-image--left{margin-right:8px}.aeb-old-button__label-image--right{margin-left:8px}.aeb-old-button-primary{color:var(--color-blue-brand);background:var(--white);border:var(--border-skinny) solid var(--color-blue-brand)}.aeb-old-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:var(--border-skinny) solid var(--gray-primary)}.aeb-old-button-primary:focus{outline:none}@media (hover: hover){.aeb-old-button-primary:hover,.aeb-old-button-primary:focus{color:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-old-button-primary:active{color:var(--color-turquoise-neutral);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:var(--border-medium-rounded)}.aeb-old-button-solid{color:var(--color-mono-clear);background:var(--color-blue-brand);background-image:unset;border:var(--border-skinny) solid var(--color-blue-brand)}.aeb-old-button-solid--disabled{color:var(--color-mono-clear);pointer-events:none;cursor:default;background:var(--gray-primary);border:var(--border-skinny) solid var(--gray-primary)}.aeb-old-button-solid:focus{outline:none}@media (hover: hover){.aeb-old-button-solid:hover,.aeb-old-button-solid:focus{color:var(--color-mono-clear);background:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-old-button-solid:active{color:var(--color-mono-clear);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:var(--border-skinny) solid #02d1c5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OldButtonComponent, decorators: [{
|
|
763
1000
|
type: Component,
|
|
764
|
-
args: [{ selector: 'aeb-
|
|
1001
|
+
args: [{ selector: 'aeb-old-button', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aeb-old-button__label-wrapper\"\n *ngIf=\"label || showIcon; else content\"\n>\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-old-button__label-image\"\n [ngClass]=\"{\n 'aeb-old-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-old-button__label-image\"\n [ngClass]=\"{\n 'aeb-old-button__label-image--right':\n label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-old-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-old-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:var(--font-size-m);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--border-medium-rounded);-webkit-tap-highlight-color:transparent}.aeb-old-button--small{height:40px}.aeb-old-button--fill{width:100%}.aeb-old-button--fill .aeb-old-button__label-wrapper{justify-content:space-between;width:100%}.aeb-old-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-old-button__label-wrapper--small{padding:0 16px}.aeb-old-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-old-button__label-image--left{margin-right:8px}.aeb-old-button__label-image--right{margin-left:8px}.aeb-old-button-primary{color:var(--color-blue-brand);background:var(--white);border:var(--border-skinny) solid var(--color-blue-brand)}.aeb-old-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:var(--border-skinny) solid var(--gray-primary)}.aeb-old-button-primary:focus{outline:none}@media (hover: hover){.aeb-old-button-primary:hover,.aeb-old-button-primary:focus{color:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-old-button-primary:active{color:var(--color-turquoise-neutral);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:var(--border-medium-rounded)}.aeb-old-button-solid{color:var(--color-mono-clear);background:var(--color-blue-brand);background-image:unset;border:var(--border-skinny) solid var(--color-blue-brand)}.aeb-old-button-solid--disabled{color:var(--color-mono-clear);pointer-events:none;cursor:default;background:var(--gray-primary);border:var(--border-skinny) solid var(--gray-primary)}.aeb-old-button-solid:focus{outline:none}@media (hover: hover){.aeb-old-button-solid:hover,.aeb-old-button-solid:focus{color:var(--color-mono-clear);background:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-old-button-solid:active{color:var(--color-mono-clear);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:var(--border-skinny) solid #02d1c5}\n"] }]
|
|
765
1002
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { label: [{
|
|
766
1003
|
type: Input
|
|
767
1004
|
}], fill: [{
|
|
@@ -789,25 +1026,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
789
1026
|
args: ['tabIndex']
|
|
790
1027
|
}], isButton: [{
|
|
791
1028
|
type: HostBinding,
|
|
792
|
-
args: ['class.aeb-button']
|
|
1029
|
+
args: ['class.aeb-old-button']
|
|
793
1030
|
}], isPrimary: [{
|
|
794
1031
|
type: HostBinding,
|
|
795
|
-
args: ['class.aeb-button-primary']
|
|
1032
|
+
args: ['class.aeb-old-button-primary']
|
|
796
1033
|
}], isSolid: [{
|
|
797
1034
|
type: HostBinding,
|
|
798
|
-
args: ['class.aeb-button-solid']
|
|
1035
|
+
args: ['class.aeb-old-button-solid']
|
|
799
1036
|
}], isFill: [{
|
|
800
1037
|
type: HostBinding,
|
|
801
|
-
args: ['class.aeb-button--fill']
|
|
1038
|
+
args: ['class.aeb-old-button--fill']
|
|
802
1039
|
}], isSolidDisabled: [{
|
|
803
1040
|
type: HostBinding,
|
|
804
|
-
args: ['class.aeb-button-solid--disabled']
|
|
1041
|
+
args: ['class.aeb-old-button-solid--disabled']
|
|
805
1042
|
}], isPrimaryDisabled: [{
|
|
806
1043
|
type: HostBinding,
|
|
807
|
-
args: ['class.aeb-button-primary--disabled']
|
|
1044
|
+
args: ['class.aeb-old-button-primary--disabled']
|
|
808
1045
|
}], isSmall: [{
|
|
809
1046
|
type: HostBinding,
|
|
810
|
-
args: ['class.aeb-button--small']
|
|
1047
|
+
args: ['class.aeb-old-button--small']
|
|
811
1048
|
}], solid: [{
|
|
812
1049
|
type: Input
|
|
813
1050
|
}], onOver: [{
|
|
@@ -818,17 +1055,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
818
1055
|
args: ['mouseleave']
|
|
819
1056
|
}] } });
|
|
820
1057
|
|
|
821
|
-
class
|
|
1058
|
+
class OldButtonModule {
|
|
822
1059
|
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
1060
|
+
OldButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OldButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1061
|
+
OldButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: OldButtonModule, declarations: [OldButtonComponent], imports: [CommonModule], exports: [OldButtonComponent] });
|
|
1062
|
+
OldButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OldButtonModule, imports: [CommonModule] });
|
|
1063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OldButtonModule, decorators: [{
|
|
827
1064
|
type: NgModule,
|
|
828
1065
|
args: [{
|
|
829
|
-
declarations: [
|
|
1066
|
+
declarations: [OldButtonComponent],
|
|
830
1067
|
imports: [CommonModule],
|
|
831
|
-
exports: [
|
|
1068
|
+
exports: [OldButtonComponent]
|
|
832
1069
|
}]
|
|
833
1070
|
}] });
|
|
834
1071
|
|
|
@@ -1101,10 +1338,10 @@ class CommentComponent {
|
|
|
1101
1338
|
}
|
|
1102
1339
|
}
|
|
1103
1340
|
CommentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommentComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1104
|
-
CommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-new-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-new-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-brand-dark)}.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-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.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-brand-dark)}.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-brand);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-brand-dark)}.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: 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: "directive", type: TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: NewButtonComponent, selector: "aeb-new-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1341
|
+
CommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-old-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-old-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-brand-dark)}.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-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.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-brand-dark)}.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-brand);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-brand-dark)}.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: 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: "directive", type: TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: OldButtonComponent, selector: "aeb-old-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1105
1342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommentComponent, decorators: [{
|
|
1106
1343
|
type: Component,
|
|
1107
|
-
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 <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-
|
|
1344
|
+
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 <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-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 <aeb-old-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-old-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-brand-dark)}.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-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.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-brand-dark)}.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-brand);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-brand-dark)}.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"] }]
|
|
1108
1345
|
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { comment: [{
|
|
1109
1346
|
type: Input,
|
|
1110
1347
|
args: ['comment']
|
|
@@ -1121,12 +1358,12 @@ CommentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
|
1121
1358
|
CommentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CommentModule, declarations: [CommentComponent], imports: [CommonModule,
|
|
1122
1359
|
TooltipModule,
|
|
1123
1360
|
ReactiveFormsModule,
|
|
1124
|
-
|
|
1361
|
+
OldButtonModule,
|
|
1125
1362
|
FormFieldModule], exports: [CommentComponent] });
|
|
1126
1363
|
CommentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommentModule, imports: [CommonModule,
|
|
1127
1364
|
TooltipModule,
|
|
1128
1365
|
ReactiveFormsModule,
|
|
1129
|
-
|
|
1366
|
+
OldButtonModule,
|
|
1130
1367
|
FormFieldModule] });
|
|
1131
1368
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommentModule, decorators: [{
|
|
1132
1369
|
type: NgModule,
|
|
@@ -1136,7 +1373,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1136
1373
|
CommonModule,
|
|
1137
1374
|
TooltipModule,
|
|
1138
1375
|
ReactiveFormsModule,
|
|
1139
|
-
|
|
1376
|
+
OldButtonModule,
|
|
1140
1377
|
FormFieldModule
|
|
1141
1378
|
],
|
|
1142
1379
|
exports: [CommentComponent]
|
|
@@ -1150,10 +1387,10 @@ class CreditItemCardComponent {
|
|
|
1150
1387
|
}
|
|
1151
1388
|
}
|
|
1152
1389
|
CreditItemCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1153
|
-
CreditItemCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CreditItemCardComponent, selector: "aeb-credit-item-card", inputs: { cardInfo: "cardInfo" }, outputs: { buttonClickEvent: "buttonClickEvent", infoClickEvent: "infoClickEvent" }, ngImport: i0, template: "<div
|
|
1390
|
+
CreditItemCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 <aeb-old-button\n [label]=\"'\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442'\"\n (click)=\"buttonClickEvent.emit()\"\n ></aeb-old-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-brand-dark);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,%3Csvg width%3D%2248%22 height%3D%2248%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M24 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%22 fill%3D%22white%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M24 32V24%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M24 16H24.02%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");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-brand-dark)}.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: OldButtonComponent, selector: "aeb-old-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1154
1391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardComponent, decorators: [{
|
|
1155
1392
|
type: Component,
|
|
1156
|
-
args: [{ selector: 'aeb-credit-item-card', encapsulation: ViewEncapsulation.None, template: "<div
|
|
1393
|
+
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 <aeb-old-button\n [label]=\"'\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442'\"\n (click)=\"buttonClickEvent.emit()\"\n ></aeb-old-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-brand-dark);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,%3Csvg width%3D%2248%22 height%3D%2248%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M24 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%22 fill%3D%22white%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M24 32V24%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M24 16H24.02%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");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-brand-dark)}.credit-item-card__credit-details-item-value{font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:52px}\n"] }]
|
|
1157
1394
|
}], propDecorators: { cardInfo: [{
|
|
1158
1395
|
type: Input
|
|
1159
1396
|
}], buttonClickEvent: [{
|
|
@@ -1165,13 +1402,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1165
1402
|
class CreditItemCardModule {
|
|
1166
1403
|
}
|
|
1167
1404
|
CreditItemCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1168
|
-
CreditItemCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardModule, declarations: [CreditItemCardComponent], imports: [CommonModule,
|
|
1169
|
-
CreditItemCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardModule, imports: [CommonModule,
|
|
1405
|
+
CreditItemCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardModule, declarations: [CreditItemCardComponent], imports: [CommonModule, OldButtonModule], exports: [CreditItemCardComponent] });
|
|
1406
|
+
CreditItemCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardModule, imports: [CommonModule, OldButtonModule] });
|
|
1170
1407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CreditItemCardModule, decorators: [{
|
|
1171
1408
|
type: NgModule,
|
|
1172
1409
|
args: [{
|
|
1173
1410
|
declarations: [CreditItemCardComponent],
|
|
1174
|
-
imports: [CommonModule,
|
|
1411
|
+
imports: [CommonModule, OldButtonModule],
|
|
1175
1412
|
exports: [CreditItemCardComponent]
|
|
1176
1413
|
}]
|
|
1177
1414
|
}] });
|
|
@@ -2836,10 +3073,10 @@ class FileAttachComponent {
|
|
|
2836
3073
|
}
|
|
2837
3074
|
}
|
|
2838
3075
|
FileAttachComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2839
|
-
FileAttachComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FileAttachComponent, selector: "aeb-file-attach", inputs: { title: "title", documentList: "documentList", showDocumentList: "showDocumentList", layoutMod: "layoutMod", attachmentDescription: "attachmentDescription", requirement: "requirement" }, outputs: { changeListEvent: "changeListEvent", requirementViolatedError: "requirementViolatedError" }, ngImport: i0, template: "<div\n class=\"attach\"\n [ngClass]=\"{\n 'attach--file-in-focus': isFileInFocus,\n 'attach--salary-portal': layoutMod === 'salaryPortal',\n 'attach--simple': layoutMod === 'simple'\n }\"\n aebDragAndDrop\n (fileChooseEvent$)=\"dropFile($event)\"\n (fileInFocusEvent$)=\"checkFileInFocus($event)\"\n>\n <div class=\"attach__title\" *ngIf=\"layoutMod !== 'simple'\">{{ title }}</div>\n <ng-container *ngIf=\"layoutMod === 'default'\">\n <div\n *ngFor=\"let description of attachmentDescription\"\n class=\"attach__desc-wrapper\"\n >\n <div class=\"attach__desc-item\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.left.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.left.text }}</div>\n </div>\n <div class=\"attach__desc-item\" *ngIf=\"description.right\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.right.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.right.text }}</div>\n </div>\n </div>\n </ng-container>\n <div\n *ngIf=\"showDocumentList && layoutMod === 'default'\"\n class=\"attach__doclist\"\n >\n {{ documentList }}\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__upload-icon\">\n <svg\n width=\"70\"\n height=\"60\"\n viewBox=\"0 0 70 60\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M56.9299 17.0405C56.1814 12.5554 53.979 8.46218 50.6107 5.356C46.8682 1.90145 42.0029 0 36.9361 0C33.0208 0 29.2063 1.13216 25.9387 3.26585C23.2182 5.03667 20.9583 7.43163 19.3605 10.2475C18.6695 10.1169 17.9498 10.0443 17.2301 10.0443C11.1125 10.0443 6.13202 15.0665 6.13202 21.2353C6.13202 22.0336 6.21838 22.8029 6.36233 23.5577C2.40387 26.4607 0 31.1345 0 36.1131C0 40.1337 1.48262 44.0382 4.18877 47.1299C6.96689 50.2941 10.6375 52.1665 14.5527 52.3843C14.5959 52.3843 14.6247 52.3843 14.6679 52.3843H27.0471C28.1267 52.3843 28.9903 51.5134 28.9903 50.4247C28.9903 49.3361 28.1267 48.4652 27.0471 48.4652H14.7255C8.83817 48.1024 3.88649 42.4561 3.88649 36.0985C3.88649 31.9908 6.07444 28.1589 9.60107 26.0833C10.4215 25.6043 10.767 24.6027 10.4503 23.7028C10.1625 22.919 10.0185 22.0917 10.0185 21.2063C10.0185 17.2001 13.2572 13.9343 17.2301 13.9343C18.0794 13.9343 18.9143 14.0794 19.6915 14.3697C20.6416 14.7181 21.6924 14.2827 22.1242 13.3682C24.816 7.6058 30.6313 3.88999 36.9504 3.88999C45.4431 3.88999 52.4532 10.3056 53.2593 18.8113C53.3457 19.6967 54.0078 20.4079 54.8715 20.5531C61.277 21.6562 66.1135 27.6218 66.1135 34.4293C66.1135 41.6432 60.4853 47.9137 53.5472 48.4507H42.9385C41.8589 48.4507 40.9953 49.3216 40.9953 50.4102C40.9953 51.4988 41.8589 52.3697 42.9385 52.3697H53.6192C53.6623 52.3697 53.7055 52.3697 53.7631 52.3697C58.1534 52.0504 62.2558 50.0183 65.3074 46.6218C68.3447 43.2544 70 38.9289 70 34.4293C69.9856 26.2865 64.4725 19.0435 56.9299 17.0405Z\"\n fill=\"#F0F0F0\"\n />\n <path\n d=\"M46.6828 36.5255C47.4469 35.8634 47.4469 34.8014 46.6828 34.1393L36.3754 25.2068C36.015 24.8944 35.5104 24.707 35.0059 24.707C34.5013 24.707 33.9967 24.8819 33.6363 25.2068L23.3289 34.1393C22.5648 34.8014 22.5648 35.8634 23.3289 36.5255C23.7037 36.8503 24.2083 37.0252 24.6984 37.0252C25.1886 37.0252 25.6931 36.8628 26.0679 36.5255L33.0597 30.4663V58.3134C33.0597 59.2504 33.9247 60 35.0059 60C36.0871 60 36.952 59.2504 36.952 58.3134V30.4663L43.9438 36.5255C44.6934 37.1876 45.9188 37.1876 46.6828 36.5255Z\"\n fill=\"#F0F0F0\"\n />\n </svg>\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__info-txt\">\n \u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430\n </div>\n <div\n [ngClass]=\"{\n 'attach__button-wrapper--simple': layoutMod === 'simple',\n 'attach__button-wrapper': layoutMod !== 'simple'\n }\"\n >\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__btn-left\">\u0438\u043B\u0438</div>\n <aeb-new-button\n class=\"attach__images\"\n [label]=\"'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B'\"\n [solid]=\"false\"\n [showIcon]=\"true\"\n [iconSource]=\"{ left: './images/clip.svg', right: '' }\"\n [hoveredIconSource]=\"{ left: './images/clip_blue.svg', right: '' }\"\n (click)=\"fileInput.click()\"\n >\n </aeb-new-button>\n <input\n #fileInput\n type=\"file\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n />\n <div class=\"attach__file-message\">\n <span *ngIf=\"files?.length === 0 && requirement !== undefined\">\n {{ requirement.text }}\n </span>\n <span *ngIf=\"files?.length > 0\">\n {{ files?.length === 1 ? \"\u0412\u044B\u0431\u0440\u0430\u043D\" : \"\u0412\u044B\u0431\u0440\u0430\u043D\u043E\" }} {{ files.length }}\n {{ getCaseByNumber([\"\u0444\u0430\u0439\u043B\", \"\u0444\u0430\u0439\u043B\u0430\", \"\u0444\u0430\u0439\u043B\u043E\u0432\"]) }}\n </span>\n <div\n *ngIf=\"files?.length > 0\"\n class=\"attach__remove-icon\"\n (click)=\"clearFileList()\"\n >\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=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n</div>\n", styles: [".attach{box-sizing:border-box;width:-moz-fit-content;width:fit-content;padding:24px;color:var(--color-mono-brand-dark);border:var(--border-skinny) dashed var(--gray-primary);border-radius:var(--border-medium-rounded)}.attach--file-in-focus{border:var(--border-skinny) dashed var(--color-blue-brand)}.attach__title{font-size:var(--font-size-m);line-height:20px}.attach__desc-wrapper{display:flex;flex-wrap:wrap;margin-top:22px}.attach__desc-item{display:flex;align-items:center;max-width:488px}.attach__desc-icon{width:52px;height:52px;background-repeat:no-repeat;background-size:cover}.attach__desc-icon--primary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01463 45.3318C0.679025 45.4371 0.340873 45.546 0 45.6586L-1.6159e-06 8.69112C8.78378 5.55828 16.8649 5.55828 26 8.69112C34.7838 5.55828 42.8649 5.55828 52 8.69111L52 45.6586C51.6594 45.5301 51.3213 45.4068 50.9854 45.2887C42.6355 42.3535 35.6708 42.6173 27.0146 45.3318C26.679 45.4371 26.3409 45.546 26 45.6586C25.6594 45.5301 25.3213 45.4068 24.9854 45.2887C16.6355 42.3535 9.67078 42.6173 1.01463 45.3318ZM25.3659 44.5009C17.0216 41.6407 9.5896 41.6409 1.01463 44.2847L1.01463 9.39704C9.09486 6.65387 16.9544 6.64308 25.3659 9.39704L25.3659 44.5009ZM50.9854 44.2299C42.6411 41.3698 35.2091 41.8572 26.6341 44.5009L26.6341 9.39704C34.7144 6.65387 42.574 6.65188 50.9854 9.40584L50.9854 44.2299Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M34.2439 40.3538C34.5926 40.3068 34.9306 40.2638 35.2585 40.2248C41.1672 39.5207 43.844 40.077 47.8146 41.0424C48.0035 41.0883 48.1952 41.1351 48.3904 41.1828C48.5347 41.2181 48.681 41.2538 48.8293 41.2899L48.8293 30.0565L48.726 30.026C44.2124 28.6953 41.334 27.8467 34.2439 29.1203L34.2439 40.3538ZM35.2585 39.2191C38.2835 38.8647 40.5098 38.834 42.5176 39.0283C44.3509 39.2057 45.9803 39.5699 47.8146 40.0139L47.8146 30.8001C45.8531 30.2254 44.244 29.7862 42.3944 29.5947C40.5023 29.3987 38.3207 29.4599 35.2585 29.9598L35.2585 39.2191Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M4.43901 38.6829L4.43901 12.6829L5.7073 12.6829L5.7073 38.6829L4.43901 38.6829Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M31.7073 26L31.7073 10.7805L32.9756 10.7805L32.9756 26L31.7073 26Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M37.4146 24.4399L37.4146 11.9583L38.4293 11.9583L38.4293 24.4399L37.4146 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M40.5854 23.8157L40.5854 11.3341L41.6 11.3341L41.6 23.8157L40.5854 23.8157Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M43.7561 24.4399L43.7561 15.7028L44.7707 15.7028L44.7707 24.4399L43.7561 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M7.60973 34.4252L7.60973 16.9509L8.62436 16.9509L8.62436 34.4252L7.60973 34.4252Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M19.2781 25.3758C19.2781 23.687 17.8869 22.3179 16.1708 22.3179C14.4546 22.3179 13.0634 23.687 13.0634 25.3758C13.0634 27.0647 14.4546 28.4338 16.1708 28.4338C17.8869 28.4338 19.2781 27.0647 19.2781 25.3758ZM20.2927 25.3758C20.2927 23.1355 18.4473 21.3193 16.1708 21.3193C13.8943 21.3193 12.0488 23.1355 12.0488 25.3758C12.0488 27.6162 13.8943 29.4324 16.1708 29.4324C18.4473 29.4324 20.2927 27.6162 20.2927 25.3758Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M41.5366 32.5529C42.7624 32.5529 43.7561 33.5308 43.7561 34.7372C43.7561 35.9435 42.7624 36.9215 41.5366 36.9215C40.3108 36.9215 39.3171 35.9435 39.3171 34.7372C39.3171 33.5308 40.3108 32.5529 41.5366 32.5529Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M48.1951 30.0566C46.8496 30.0566 45.5593 30.5826 44.6079 31.5189C43.6564 32.4552 43.122 33.7251 43.122 35.0492C43.122 36.3734 43.6564 37.6433 44.6079 38.5796C45.5593 39.5159 46.8496 40.0419 48.1951 40.0419L48.1951 30.0566Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-icon--secondary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01464 45.3265C0.679027 45.4334 0.340875 45.5441 1.64196e-06 45.6585L0 8.0948C8.78378 4.91143 16.8649 4.91143 26 8.0948C34.7838 4.91143 42.8649 4.91143 52 8.0948V45.6585C51.6594 45.5279 51.3213 45.4027 50.9854 45.2827C42.6355 42.3002 35.6708 42.5682 27.0146 45.3265C26.679 45.4334 26.3409 45.5441 26 45.6585C25.6594 45.5279 25.3213 45.4027 24.9854 45.2827C16.6355 42.3002 9.67078 42.5682 1.01464 45.3265ZM25.5014 44.3902C17.1571 41.4839 9.58961 41.5761 1.01464 44.2624L1.01463 8.81211C9.09486 6.0247 17.09 6.02268 25.5014 8.82105V44.3902ZM50.9854 44.2068C42.6411 41.3005 35.0942 41.7038 26.5193 44.3902V8.82105C34.5995 6.03364 42.574 6.02268 50.9854 8.82105V44.2068Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 20.6097C29.8229 20.5407 30.1613 20.4749 30.5023 20.4122C36.2246 19.3609 42.7023 19.2144 47.8145 20.3603C48.1591 20.4375 48.4976 20.5206 48.8291 20.6097L48.8291 10.7842C43.2935 8.80158 35.5742 8.80479 29.4877 10.7842L29.4877 20.6097ZM30.5023 19.381C36.1912 18.3575 42.6253 18.203 47.8145 19.3214L47.8145 11.5123C42.7778 9.91067 36.0293 9.90932 30.5023 11.5324L30.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M3.48767 20.6097C3.8229 20.5407 4.16126 20.4749 4.5023 20.4122C10.2246 19.3609 16.7023 19.2144 21.8145 20.3603C22.1591 20.4375 22.4976 20.5206 22.8291 20.6097L22.8291 10.7842C17.2935 8.80158 9.57424 8.80479 3.48767 10.7842L3.48767 20.6097ZM4.5023 19.381C10.1912 18.3575 16.6253 18.203 21.8145 19.3214L21.8145 11.5123C16.7778 9.91067 10.0293 9.90932 4.5023 11.5324L4.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 35.0918C29.8588 35.0154 30.2338 34.9428 30.612 34.8742C36.2663 33.8486 42.6426 33.7058 47.7048 34.818C48.0874 34.902 48.4625 34.9932 48.8291 35.0918L48.8291 25.2662C43.2935 23.2836 35.5742 23.2868 29.4877 25.2662L29.4877 35.0918ZM30.612 33.732C36.2304 32.7362 42.5606 32.585 47.7048 33.668L47.7048 26.0747C42.723 24.512 36.0771 24.5104 30.612 26.0967L30.612 33.732Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 11.7317H19.3415V12.7463H6.65854V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 11.7317H45.3415V12.7463H32.6585V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 26.3171H45.3415V27.3318H32.6585V26.3171Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 15.5365H19.3415V16.5511H6.65854V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 15.5365H45.3415V16.5511H32.6585V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 30.1219H45.3415V31.1366H32.6585V30.1219Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M8.56107 13.6342H16.805V14.6488H8.56107V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 13.6342H42.805V14.6488H34.5611V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 28.2195H42.805V29.2341H34.5611V28.2195Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-title{max-width:175px;margin-right:16px;margin-left:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__doclist{max-width:488px;margin-top:22px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__button-wrapper{display:flex;align-items:center;margin-top:16px}@media screen and (max-width: 767px){.attach__button-wrapper{flex-direction:column;align-items:flex-start}}.attach__file-message{display:flex;align-items:center;margin-left:20px;font-size:var(--font-size-xs);line-height:16px}@media screen and (max-width: 767px){.attach__file-message{margin-top:20px;margin-left:0}}.attach__remove-icon{width:16px;height:16px;margin-left:25px;cursor:pointer}.attach__remove-icon:hover svg path{stroke:var(--color-blue-brand)}.attach__images:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2222%22 height%3D%2222%22 viewBox%3D%220 0 22 22%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263%22 stroke%3D%22%2300B1E9%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.attach--salary-portal{display:flex;flex-direction:column;align-items:center;justify-content:center}.attach--salary-portal .attach__upload-icon{margin-top:16px}.attach--salary-portal .attach__info-txt{margin-top:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.attach--salary-portal .attach__btn-left{margin-right:20px;font-size:var(--font-size-xs);color:var(--gray-primary)}.attach--simple{box-sizing:border-box;width:100%;padding:0;color:var(--color-mono-brand-dark);border:var(--no-border)}.attach__button-wrapper--simple{display:flex;align-items:center}@media screen and (max-width: 767px){.attach__button-wrapper--simple{flex-direction:column;align-items:flex-start}}\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: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: NewButtonComponent, selector: "aeb-new-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "directive", type: DragAndDropDirective, selector: "[aebDragAndDrop]", outputs: ["fileChooseEvent$", "fileInFocusEvent$"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
3076
|
+
FileAttachComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FileAttachComponent, selector: "aeb-file-attach", inputs: { title: "title", documentList: "documentList", showDocumentList: "showDocumentList", layoutMod: "layoutMod", attachmentDescription: "attachmentDescription", requirement: "requirement" }, outputs: { changeListEvent: "changeListEvent", requirementViolatedError: "requirementViolatedError" }, ngImport: i0, template: "<div\n class=\"attach\"\n [ngClass]=\"{\n 'attach--file-in-focus': isFileInFocus,\n 'attach--salary-portal': layoutMod === 'salaryPortal',\n 'attach--simple': layoutMod === 'simple'\n }\"\n aebDragAndDrop\n (fileChooseEvent$)=\"dropFile($event)\"\n (fileInFocusEvent$)=\"checkFileInFocus($event)\"\n>\n <div class=\"attach__title\" *ngIf=\"layoutMod !== 'simple'\">{{ title }}</div>\n <ng-container *ngIf=\"layoutMod === 'default'\">\n <div\n *ngFor=\"let description of attachmentDescription\"\n class=\"attach__desc-wrapper\"\n >\n <div class=\"attach__desc-item\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.left.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.left.text }}</div>\n </div>\n <div class=\"attach__desc-item\" *ngIf=\"description.right\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.right.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.right.text }}</div>\n </div>\n </div>\n </ng-container>\n <div\n *ngIf=\"showDocumentList && layoutMod === 'default'\"\n class=\"attach__doclist\"\n >\n {{ documentList }}\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__upload-icon\">\n <svg\n width=\"70\"\n height=\"60\"\n viewBox=\"0 0 70 60\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M56.9299 17.0405C56.1814 12.5554 53.979 8.46218 50.6107 5.356C46.8682 1.90145 42.0029 0 36.9361 0C33.0208 0 29.2063 1.13216 25.9387 3.26585C23.2182 5.03667 20.9583 7.43163 19.3605 10.2475C18.6695 10.1169 17.9498 10.0443 17.2301 10.0443C11.1125 10.0443 6.13202 15.0665 6.13202 21.2353C6.13202 22.0336 6.21838 22.8029 6.36233 23.5577C2.40387 26.4607 0 31.1345 0 36.1131C0 40.1337 1.48262 44.0382 4.18877 47.1299C6.96689 50.2941 10.6375 52.1665 14.5527 52.3843C14.5959 52.3843 14.6247 52.3843 14.6679 52.3843H27.0471C28.1267 52.3843 28.9903 51.5134 28.9903 50.4247C28.9903 49.3361 28.1267 48.4652 27.0471 48.4652H14.7255C8.83817 48.1024 3.88649 42.4561 3.88649 36.0985C3.88649 31.9908 6.07444 28.1589 9.60107 26.0833C10.4215 25.6043 10.767 24.6027 10.4503 23.7028C10.1625 22.919 10.0185 22.0917 10.0185 21.2063C10.0185 17.2001 13.2572 13.9343 17.2301 13.9343C18.0794 13.9343 18.9143 14.0794 19.6915 14.3697C20.6416 14.7181 21.6924 14.2827 22.1242 13.3682C24.816 7.6058 30.6313 3.88999 36.9504 3.88999C45.4431 3.88999 52.4532 10.3056 53.2593 18.8113C53.3457 19.6967 54.0078 20.4079 54.8715 20.5531C61.277 21.6562 66.1135 27.6218 66.1135 34.4293C66.1135 41.6432 60.4853 47.9137 53.5472 48.4507H42.9385C41.8589 48.4507 40.9953 49.3216 40.9953 50.4102C40.9953 51.4988 41.8589 52.3697 42.9385 52.3697H53.6192C53.6623 52.3697 53.7055 52.3697 53.7631 52.3697C58.1534 52.0504 62.2558 50.0183 65.3074 46.6218C68.3447 43.2544 70 38.9289 70 34.4293C69.9856 26.2865 64.4725 19.0435 56.9299 17.0405Z\"\n fill=\"#F0F0F0\"\n />\n <path\n d=\"M46.6828 36.5255C47.4469 35.8634 47.4469 34.8014 46.6828 34.1393L36.3754 25.2068C36.015 24.8944 35.5104 24.707 35.0059 24.707C34.5013 24.707 33.9967 24.8819 33.6363 25.2068L23.3289 34.1393C22.5648 34.8014 22.5648 35.8634 23.3289 36.5255C23.7037 36.8503 24.2083 37.0252 24.6984 37.0252C25.1886 37.0252 25.6931 36.8628 26.0679 36.5255L33.0597 30.4663V58.3134C33.0597 59.2504 33.9247 60 35.0059 60C36.0871 60 36.952 59.2504 36.952 58.3134V30.4663L43.9438 36.5255C44.6934 37.1876 45.9188 37.1876 46.6828 36.5255Z\"\n fill=\"#F0F0F0\"\n />\n </svg>\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__info-txt\">\n \u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430\n </div>\n <div\n [ngClass]=\"{\n 'attach__button-wrapper--simple': layoutMod === 'simple',\n 'attach__button-wrapper': layoutMod !== 'simple'\n }\"\n >\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__btn-left\">\u0438\u043B\u0438</div>\n <aeb-old-button\n class=\"attach__images\"\n [label]=\"'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B'\"\n [solid]=\"false\"\n [showIcon]=\"true\"\n [iconSource]=\"{ left: './images/clip.svg', right: '' }\"\n [hoveredIconSource]=\"{ left: './images/clip_blue.svg', right: '' }\"\n (click)=\"fileInput.click()\"\n >\n </aeb-old-button>\n <input\n #fileInput\n type=\"file\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n />\n <div class=\"attach__file-message\">\n <span *ngIf=\"files?.length === 0 && requirement !== undefined\">\n {{ requirement.text }}\n </span>\n <span *ngIf=\"files?.length > 0\">\n {{ files?.length === 1 ? \"\u0412\u044B\u0431\u0440\u0430\u043D\" : \"\u0412\u044B\u0431\u0440\u0430\u043D\u043E\" }} {{ files.length }}\n {{ getCaseByNumber([\"\u0444\u0430\u0439\u043B\", \"\u0444\u0430\u0439\u043B\u0430\", \"\u0444\u0430\u0439\u043B\u043E\u0432\"]) }}\n </span>\n <div\n *ngIf=\"files?.length > 0\"\n class=\"attach__remove-icon\"\n (click)=\"clearFileList()\"\n >\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=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n</div>\n", styles: [".attach{box-sizing:border-box;width:-moz-fit-content;width:fit-content;padding:24px;color:var(--color-mono-brand-dark);border:var(--border-skinny) dashed var(--gray-primary);border-radius:var(--border-medium-rounded)}.attach--file-in-focus{border:var(--border-skinny) dashed var(--color-blue-brand)}.attach__title{font-size:var(--font-size-m);line-height:20px}.attach__desc-wrapper{display:flex;flex-wrap:wrap;margin-top:22px}.attach__desc-item{display:flex;align-items:center;max-width:488px}.attach__desc-icon{width:52px;height:52px;background-repeat:no-repeat;background-size:cover}.attach__desc-icon--primary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01463 45.3318C0.679025 45.4371 0.340873 45.546 0 45.6586L-1.6159e-06 8.69112C8.78378 5.55828 16.8649 5.55828 26 8.69112C34.7838 5.55828 42.8649 5.55828 52 8.69111L52 45.6586C51.6594 45.5301 51.3213 45.4068 50.9854 45.2887C42.6355 42.3535 35.6708 42.6173 27.0146 45.3318C26.679 45.4371 26.3409 45.546 26 45.6586C25.6594 45.5301 25.3213 45.4068 24.9854 45.2887C16.6355 42.3535 9.67078 42.6173 1.01463 45.3318ZM25.3659 44.5009C17.0216 41.6407 9.5896 41.6409 1.01463 44.2847L1.01463 9.39704C9.09486 6.65387 16.9544 6.64308 25.3659 9.39704L25.3659 44.5009ZM50.9854 44.2299C42.6411 41.3698 35.2091 41.8572 26.6341 44.5009L26.6341 9.39704C34.7144 6.65387 42.574 6.65188 50.9854 9.40584L50.9854 44.2299Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M34.2439 40.3538C34.5926 40.3068 34.9306 40.2638 35.2585 40.2248C41.1672 39.5207 43.844 40.077 47.8146 41.0424C48.0035 41.0883 48.1952 41.1351 48.3904 41.1828C48.5347 41.2181 48.681 41.2538 48.8293 41.2899L48.8293 30.0565L48.726 30.026C44.2124 28.6953 41.334 27.8467 34.2439 29.1203L34.2439 40.3538ZM35.2585 39.2191C38.2835 38.8647 40.5098 38.834 42.5176 39.0283C44.3509 39.2057 45.9803 39.5699 47.8146 40.0139L47.8146 30.8001C45.8531 30.2254 44.244 29.7862 42.3944 29.5947C40.5023 29.3987 38.3207 29.4599 35.2585 29.9598L35.2585 39.2191Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M4.43901 38.6829L4.43901 12.6829L5.7073 12.6829L5.7073 38.6829L4.43901 38.6829Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M31.7073 26L31.7073 10.7805L32.9756 10.7805L32.9756 26L31.7073 26Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M37.4146 24.4399L37.4146 11.9583L38.4293 11.9583L38.4293 24.4399L37.4146 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M40.5854 23.8157L40.5854 11.3341L41.6 11.3341L41.6 23.8157L40.5854 23.8157Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M43.7561 24.4399L43.7561 15.7028L44.7707 15.7028L44.7707 24.4399L43.7561 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M7.60973 34.4252L7.60973 16.9509L8.62436 16.9509L8.62436 34.4252L7.60973 34.4252Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M19.2781 25.3758C19.2781 23.687 17.8869 22.3179 16.1708 22.3179C14.4546 22.3179 13.0634 23.687 13.0634 25.3758C13.0634 27.0647 14.4546 28.4338 16.1708 28.4338C17.8869 28.4338 19.2781 27.0647 19.2781 25.3758ZM20.2927 25.3758C20.2927 23.1355 18.4473 21.3193 16.1708 21.3193C13.8943 21.3193 12.0488 23.1355 12.0488 25.3758C12.0488 27.6162 13.8943 29.4324 16.1708 29.4324C18.4473 29.4324 20.2927 27.6162 20.2927 25.3758Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M41.5366 32.5529C42.7624 32.5529 43.7561 33.5308 43.7561 34.7372C43.7561 35.9435 42.7624 36.9215 41.5366 36.9215C40.3108 36.9215 39.3171 35.9435 39.3171 34.7372C39.3171 33.5308 40.3108 32.5529 41.5366 32.5529Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M48.1951 30.0566C46.8496 30.0566 45.5593 30.5826 44.6079 31.5189C43.6564 32.4552 43.122 33.7251 43.122 35.0492C43.122 36.3734 43.6564 37.6433 44.6079 38.5796C45.5593 39.5159 46.8496 40.0419 48.1951 40.0419L48.1951 30.0566Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-icon--secondary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01464 45.3265C0.679027 45.4334 0.340875 45.5441 1.64196e-06 45.6585L0 8.0948C8.78378 4.91143 16.8649 4.91143 26 8.0948C34.7838 4.91143 42.8649 4.91143 52 8.0948V45.6585C51.6594 45.5279 51.3213 45.4027 50.9854 45.2827C42.6355 42.3002 35.6708 42.5682 27.0146 45.3265C26.679 45.4334 26.3409 45.5441 26 45.6585C25.6594 45.5279 25.3213 45.4027 24.9854 45.2827C16.6355 42.3002 9.67078 42.5682 1.01464 45.3265ZM25.5014 44.3902C17.1571 41.4839 9.58961 41.5761 1.01464 44.2624L1.01463 8.81211C9.09486 6.0247 17.09 6.02268 25.5014 8.82105V44.3902ZM50.9854 44.2068C42.6411 41.3005 35.0942 41.7038 26.5193 44.3902V8.82105C34.5995 6.03364 42.574 6.02268 50.9854 8.82105V44.2068Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 20.6097C29.8229 20.5407 30.1613 20.4749 30.5023 20.4122C36.2246 19.3609 42.7023 19.2144 47.8145 20.3603C48.1591 20.4375 48.4976 20.5206 48.8291 20.6097L48.8291 10.7842C43.2935 8.80158 35.5742 8.80479 29.4877 10.7842L29.4877 20.6097ZM30.5023 19.381C36.1912 18.3575 42.6253 18.203 47.8145 19.3214L47.8145 11.5123C42.7778 9.91067 36.0293 9.90932 30.5023 11.5324L30.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M3.48767 20.6097C3.8229 20.5407 4.16126 20.4749 4.5023 20.4122C10.2246 19.3609 16.7023 19.2144 21.8145 20.3603C22.1591 20.4375 22.4976 20.5206 22.8291 20.6097L22.8291 10.7842C17.2935 8.80158 9.57424 8.80479 3.48767 10.7842L3.48767 20.6097ZM4.5023 19.381C10.1912 18.3575 16.6253 18.203 21.8145 19.3214L21.8145 11.5123C16.7778 9.91067 10.0293 9.90932 4.5023 11.5324L4.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 35.0918C29.8588 35.0154 30.2338 34.9428 30.612 34.8742C36.2663 33.8486 42.6426 33.7058 47.7048 34.818C48.0874 34.902 48.4625 34.9932 48.8291 35.0918L48.8291 25.2662C43.2935 23.2836 35.5742 23.2868 29.4877 25.2662L29.4877 35.0918ZM30.612 33.732C36.2304 32.7362 42.5606 32.585 47.7048 33.668L47.7048 26.0747C42.723 24.512 36.0771 24.5104 30.612 26.0967L30.612 33.732Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 11.7317H19.3415V12.7463H6.65854V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 11.7317H45.3415V12.7463H32.6585V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 26.3171H45.3415V27.3318H32.6585V26.3171Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 15.5365H19.3415V16.5511H6.65854V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 15.5365H45.3415V16.5511H32.6585V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 30.1219H45.3415V31.1366H32.6585V30.1219Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M8.56107 13.6342H16.805V14.6488H8.56107V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 13.6342H42.805V14.6488H34.5611V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 28.2195H42.805V29.2341H34.5611V28.2195Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-title{max-width:175px;margin-right:16px;margin-left:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__doclist{max-width:488px;margin-top:22px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__button-wrapper{display:flex;align-items:center;margin-top:16px}@media screen and (max-width: 767px){.attach__button-wrapper{flex-direction:column;align-items:flex-start}}.attach__file-message{display:flex;align-items:center;margin-left:20px;font-size:var(--font-size-xs);line-height:16px}@media screen and (max-width: 767px){.attach__file-message{margin-top:20px;margin-left:0}}.attach__remove-icon{width:16px;height:16px;margin-left:25px;cursor:pointer}.attach__remove-icon:hover svg path{stroke:var(--color-blue-brand)}.attach__images:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2222%22 height%3D%2222%22 viewBox%3D%220 0 22 22%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263%22 stroke%3D%22%2300B1E9%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.attach--salary-portal{display:flex;flex-direction:column;align-items:center;justify-content:center}.attach--salary-portal .attach__upload-icon{margin-top:16px}.attach--salary-portal .attach__info-txt{margin-top:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.attach--salary-portal .attach__btn-left{margin-right:20px;font-size:var(--font-size-xs);color:var(--gray-primary)}.attach--simple{box-sizing:border-box;width:100%;padding:0;color:var(--color-mono-brand-dark);border:var(--no-border)}.attach__button-wrapper--simple{display:flex;align-items:center}@media screen and (max-width: 767px){.attach__button-wrapper--simple{flex-direction:column;align-items:flex-start}}\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: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: OldButtonComponent, selector: "aeb-old-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "directive", type: DragAndDropDirective, selector: "[aebDragAndDrop]", outputs: ["fileChooseEvent$", "fileInFocusEvent$"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2840
3077
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachComponent, decorators: [{
|
|
2841
3078
|
type: Component,
|
|
2842
|
-
args: [{ selector: 'aeb-file-attach', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"attach\"\n [ngClass]=\"{\n 'attach--file-in-focus': isFileInFocus,\n 'attach--salary-portal': layoutMod === 'salaryPortal',\n 'attach--simple': layoutMod === 'simple'\n }\"\n aebDragAndDrop\n (fileChooseEvent$)=\"dropFile($event)\"\n (fileInFocusEvent$)=\"checkFileInFocus($event)\"\n>\n <div class=\"attach__title\" *ngIf=\"layoutMod !== 'simple'\">{{ title }}</div>\n <ng-container *ngIf=\"layoutMod === 'default'\">\n <div\n *ngFor=\"let description of attachmentDescription\"\n class=\"attach__desc-wrapper\"\n >\n <div class=\"attach__desc-item\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.left.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.left.text }}</div>\n </div>\n <div class=\"attach__desc-item\" *ngIf=\"description.right\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.right.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.right.text }}</div>\n </div>\n </div>\n </ng-container>\n <div\n *ngIf=\"showDocumentList && layoutMod === 'default'\"\n class=\"attach__doclist\"\n >\n {{ documentList }}\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__upload-icon\">\n <svg\n width=\"70\"\n height=\"60\"\n viewBox=\"0 0 70 60\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M56.9299 17.0405C56.1814 12.5554 53.979 8.46218 50.6107 5.356C46.8682 1.90145 42.0029 0 36.9361 0C33.0208 0 29.2063 1.13216 25.9387 3.26585C23.2182 5.03667 20.9583 7.43163 19.3605 10.2475C18.6695 10.1169 17.9498 10.0443 17.2301 10.0443C11.1125 10.0443 6.13202 15.0665 6.13202 21.2353C6.13202 22.0336 6.21838 22.8029 6.36233 23.5577C2.40387 26.4607 0 31.1345 0 36.1131C0 40.1337 1.48262 44.0382 4.18877 47.1299C6.96689 50.2941 10.6375 52.1665 14.5527 52.3843C14.5959 52.3843 14.6247 52.3843 14.6679 52.3843H27.0471C28.1267 52.3843 28.9903 51.5134 28.9903 50.4247C28.9903 49.3361 28.1267 48.4652 27.0471 48.4652H14.7255C8.83817 48.1024 3.88649 42.4561 3.88649 36.0985C3.88649 31.9908 6.07444 28.1589 9.60107 26.0833C10.4215 25.6043 10.767 24.6027 10.4503 23.7028C10.1625 22.919 10.0185 22.0917 10.0185 21.2063C10.0185 17.2001 13.2572 13.9343 17.2301 13.9343C18.0794 13.9343 18.9143 14.0794 19.6915 14.3697C20.6416 14.7181 21.6924 14.2827 22.1242 13.3682C24.816 7.6058 30.6313 3.88999 36.9504 3.88999C45.4431 3.88999 52.4532 10.3056 53.2593 18.8113C53.3457 19.6967 54.0078 20.4079 54.8715 20.5531C61.277 21.6562 66.1135 27.6218 66.1135 34.4293C66.1135 41.6432 60.4853 47.9137 53.5472 48.4507H42.9385C41.8589 48.4507 40.9953 49.3216 40.9953 50.4102C40.9953 51.4988 41.8589 52.3697 42.9385 52.3697H53.6192C53.6623 52.3697 53.7055 52.3697 53.7631 52.3697C58.1534 52.0504 62.2558 50.0183 65.3074 46.6218C68.3447 43.2544 70 38.9289 70 34.4293C69.9856 26.2865 64.4725 19.0435 56.9299 17.0405Z\"\n fill=\"#F0F0F0\"\n />\n <path\n d=\"M46.6828 36.5255C47.4469 35.8634 47.4469 34.8014 46.6828 34.1393L36.3754 25.2068C36.015 24.8944 35.5104 24.707 35.0059 24.707C34.5013 24.707 33.9967 24.8819 33.6363 25.2068L23.3289 34.1393C22.5648 34.8014 22.5648 35.8634 23.3289 36.5255C23.7037 36.8503 24.2083 37.0252 24.6984 37.0252C25.1886 37.0252 25.6931 36.8628 26.0679 36.5255L33.0597 30.4663V58.3134C33.0597 59.2504 33.9247 60 35.0059 60C36.0871 60 36.952 59.2504 36.952 58.3134V30.4663L43.9438 36.5255C44.6934 37.1876 45.9188 37.1876 46.6828 36.5255Z\"\n fill=\"#F0F0F0\"\n />\n </svg>\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__info-txt\">\n \u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430\n </div>\n <div\n [ngClass]=\"{\n 'attach__button-wrapper--simple': layoutMod === 'simple',\n 'attach__button-wrapper': layoutMod !== 'simple'\n }\"\n >\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__btn-left\">\u0438\u043B\u0438</div>\n <aeb-new-button\n class=\"attach__images\"\n [label]=\"'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B'\"\n [solid]=\"false\"\n [showIcon]=\"true\"\n [iconSource]=\"{ left: './images/clip.svg', right: '' }\"\n [hoveredIconSource]=\"{ left: './images/clip_blue.svg', right: '' }\"\n (click)=\"fileInput.click()\"\n >\n </aeb-new-button>\n <input\n #fileInput\n type=\"file\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n />\n <div class=\"attach__file-message\">\n <span *ngIf=\"files?.length === 0 && requirement !== undefined\">\n {{ requirement.text }}\n </span>\n <span *ngIf=\"files?.length > 0\">\n {{ files?.length === 1 ? \"\u0412\u044B\u0431\u0440\u0430\u043D\" : \"\u0412\u044B\u0431\u0440\u0430\u043D\u043E\" }} {{ files.length }}\n {{ getCaseByNumber([\"\u0444\u0430\u0439\u043B\", \"\u0444\u0430\u0439\u043B\u0430\", \"\u0444\u0430\u0439\u043B\u043E\u0432\"]) }}\n </span>\n <div\n *ngIf=\"files?.length > 0\"\n class=\"attach__remove-icon\"\n (click)=\"clearFileList()\"\n >\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=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n</div>\n", styles: [".attach{box-sizing:border-box;width:-moz-fit-content;width:fit-content;padding:24px;color:var(--color-mono-brand-dark);border:var(--border-skinny) dashed var(--gray-primary);border-radius:var(--border-medium-rounded)}.attach--file-in-focus{border:var(--border-skinny) dashed var(--color-blue-brand)}.attach__title{font-size:var(--font-size-m);line-height:20px}.attach__desc-wrapper{display:flex;flex-wrap:wrap;margin-top:22px}.attach__desc-item{display:flex;align-items:center;max-width:488px}.attach__desc-icon{width:52px;height:52px;background-repeat:no-repeat;background-size:cover}.attach__desc-icon--primary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01463 45.3318C0.679025 45.4371 0.340873 45.546 0 45.6586L-1.6159e-06 8.69112C8.78378 5.55828 16.8649 5.55828 26 8.69112C34.7838 5.55828 42.8649 5.55828 52 8.69111L52 45.6586C51.6594 45.5301 51.3213 45.4068 50.9854 45.2887C42.6355 42.3535 35.6708 42.6173 27.0146 45.3318C26.679 45.4371 26.3409 45.546 26 45.6586C25.6594 45.5301 25.3213 45.4068 24.9854 45.2887C16.6355 42.3535 9.67078 42.6173 1.01463 45.3318ZM25.3659 44.5009C17.0216 41.6407 9.5896 41.6409 1.01463 44.2847L1.01463 9.39704C9.09486 6.65387 16.9544 6.64308 25.3659 9.39704L25.3659 44.5009ZM50.9854 44.2299C42.6411 41.3698 35.2091 41.8572 26.6341 44.5009L26.6341 9.39704C34.7144 6.65387 42.574 6.65188 50.9854 9.40584L50.9854 44.2299Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M34.2439 40.3538C34.5926 40.3068 34.9306 40.2638 35.2585 40.2248C41.1672 39.5207 43.844 40.077 47.8146 41.0424C48.0035 41.0883 48.1952 41.1351 48.3904 41.1828C48.5347 41.2181 48.681 41.2538 48.8293 41.2899L48.8293 30.0565L48.726 30.026C44.2124 28.6953 41.334 27.8467 34.2439 29.1203L34.2439 40.3538ZM35.2585 39.2191C38.2835 38.8647 40.5098 38.834 42.5176 39.0283C44.3509 39.2057 45.9803 39.5699 47.8146 40.0139L47.8146 30.8001C45.8531 30.2254 44.244 29.7862 42.3944 29.5947C40.5023 29.3987 38.3207 29.4599 35.2585 29.9598L35.2585 39.2191Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M4.43901 38.6829L4.43901 12.6829L5.7073 12.6829L5.7073 38.6829L4.43901 38.6829Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M31.7073 26L31.7073 10.7805L32.9756 10.7805L32.9756 26L31.7073 26Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M37.4146 24.4399L37.4146 11.9583L38.4293 11.9583L38.4293 24.4399L37.4146 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M40.5854 23.8157L40.5854 11.3341L41.6 11.3341L41.6 23.8157L40.5854 23.8157Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M43.7561 24.4399L43.7561 15.7028L44.7707 15.7028L44.7707 24.4399L43.7561 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M7.60973 34.4252L7.60973 16.9509L8.62436 16.9509L8.62436 34.4252L7.60973 34.4252Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M19.2781 25.3758C19.2781 23.687 17.8869 22.3179 16.1708 22.3179C14.4546 22.3179 13.0634 23.687 13.0634 25.3758C13.0634 27.0647 14.4546 28.4338 16.1708 28.4338C17.8869 28.4338 19.2781 27.0647 19.2781 25.3758ZM20.2927 25.3758C20.2927 23.1355 18.4473 21.3193 16.1708 21.3193C13.8943 21.3193 12.0488 23.1355 12.0488 25.3758C12.0488 27.6162 13.8943 29.4324 16.1708 29.4324C18.4473 29.4324 20.2927 27.6162 20.2927 25.3758Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M41.5366 32.5529C42.7624 32.5529 43.7561 33.5308 43.7561 34.7372C43.7561 35.9435 42.7624 36.9215 41.5366 36.9215C40.3108 36.9215 39.3171 35.9435 39.3171 34.7372C39.3171 33.5308 40.3108 32.5529 41.5366 32.5529Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M48.1951 30.0566C46.8496 30.0566 45.5593 30.5826 44.6079 31.5189C43.6564 32.4552 43.122 33.7251 43.122 35.0492C43.122 36.3734 43.6564 37.6433 44.6079 38.5796C45.5593 39.5159 46.8496 40.0419 48.1951 40.0419L48.1951 30.0566Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-icon--secondary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01464 45.3265C0.679027 45.4334 0.340875 45.5441 1.64196e-06 45.6585L0 8.0948C8.78378 4.91143 16.8649 4.91143 26 8.0948C34.7838 4.91143 42.8649 4.91143 52 8.0948V45.6585C51.6594 45.5279 51.3213 45.4027 50.9854 45.2827C42.6355 42.3002 35.6708 42.5682 27.0146 45.3265C26.679 45.4334 26.3409 45.5441 26 45.6585C25.6594 45.5279 25.3213 45.4027 24.9854 45.2827C16.6355 42.3002 9.67078 42.5682 1.01464 45.3265ZM25.5014 44.3902C17.1571 41.4839 9.58961 41.5761 1.01464 44.2624L1.01463 8.81211C9.09486 6.0247 17.09 6.02268 25.5014 8.82105V44.3902ZM50.9854 44.2068C42.6411 41.3005 35.0942 41.7038 26.5193 44.3902V8.82105C34.5995 6.03364 42.574 6.02268 50.9854 8.82105V44.2068Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 20.6097C29.8229 20.5407 30.1613 20.4749 30.5023 20.4122C36.2246 19.3609 42.7023 19.2144 47.8145 20.3603C48.1591 20.4375 48.4976 20.5206 48.8291 20.6097L48.8291 10.7842C43.2935 8.80158 35.5742 8.80479 29.4877 10.7842L29.4877 20.6097ZM30.5023 19.381C36.1912 18.3575 42.6253 18.203 47.8145 19.3214L47.8145 11.5123C42.7778 9.91067 36.0293 9.90932 30.5023 11.5324L30.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M3.48767 20.6097C3.8229 20.5407 4.16126 20.4749 4.5023 20.4122C10.2246 19.3609 16.7023 19.2144 21.8145 20.3603C22.1591 20.4375 22.4976 20.5206 22.8291 20.6097L22.8291 10.7842C17.2935 8.80158 9.57424 8.80479 3.48767 10.7842L3.48767 20.6097ZM4.5023 19.381C10.1912 18.3575 16.6253 18.203 21.8145 19.3214L21.8145 11.5123C16.7778 9.91067 10.0293 9.90932 4.5023 11.5324L4.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 35.0918C29.8588 35.0154 30.2338 34.9428 30.612 34.8742C36.2663 33.8486 42.6426 33.7058 47.7048 34.818C48.0874 34.902 48.4625 34.9932 48.8291 35.0918L48.8291 25.2662C43.2935 23.2836 35.5742 23.2868 29.4877 25.2662L29.4877 35.0918ZM30.612 33.732C36.2304 32.7362 42.5606 32.585 47.7048 33.668L47.7048 26.0747C42.723 24.512 36.0771 24.5104 30.612 26.0967L30.612 33.732Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 11.7317H19.3415V12.7463H6.65854V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 11.7317H45.3415V12.7463H32.6585V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 26.3171H45.3415V27.3318H32.6585V26.3171Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 15.5365H19.3415V16.5511H6.65854V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 15.5365H45.3415V16.5511H32.6585V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 30.1219H45.3415V31.1366H32.6585V30.1219Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M8.56107 13.6342H16.805V14.6488H8.56107V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 13.6342H42.805V14.6488H34.5611V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 28.2195H42.805V29.2341H34.5611V28.2195Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-title{max-width:175px;margin-right:16px;margin-left:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__doclist{max-width:488px;margin-top:22px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__button-wrapper{display:flex;align-items:center;margin-top:16px}@media screen and (max-width: 767px){.attach__button-wrapper{flex-direction:column;align-items:flex-start}}.attach__file-message{display:flex;align-items:center;margin-left:20px;font-size:var(--font-size-xs);line-height:16px}@media screen and (max-width: 767px){.attach__file-message{margin-top:20px;margin-left:0}}.attach__remove-icon{width:16px;height:16px;margin-left:25px;cursor:pointer}.attach__remove-icon:hover svg path{stroke:var(--color-blue-brand)}.attach__images:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2222%22 height%3D%2222%22 viewBox%3D%220 0 22 22%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263%22 stroke%3D%22%2300B1E9%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.attach--salary-portal{display:flex;flex-direction:column;align-items:center;justify-content:center}.attach--salary-portal .attach__upload-icon{margin-top:16px}.attach--salary-portal .attach__info-txt{margin-top:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.attach--salary-portal .attach__btn-left{margin-right:20px;font-size:var(--font-size-xs);color:var(--gray-primary)}.attach--simple{box-sizing:border-box;width:100%;padding:0;color:var(--color-mono-brand-dark);border:var(--no-border)}.attach__button-wrapper--simple{display:flex;align-items:center}@media screen and (max-width: 767px){.attach__button-wrapper--simple{flex-direction:column;align-items:flex-start}}\n"] }]
|
|
3079
|
+
args: [{ selector: 'aeb-file-attach', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"attach\"\n [ngClass]=\"{\n 'attach--file-in-focus': isFileInFocus,\n 'attach--salary-portal': layoutMod === 'salaryPortal',\n 'attach--simple': layoutMod === 'simple'\n }\"\n aebDragAndDrop\n (fileChooseEvent$)=\"dropFile($event)\"\n (fileInFocusEvent$)=\"checkFileInFocus($event)\"\n>\n <div class=\"attach__title\" *ngIf=\"layoutMod !== 'simple'\">{{ title }}</div>\n <ng-container *ngIf=\"layoutMod === 'default'\">\n <div\n *ngFor=\"let description of attachmentDescription\"\n class=\"attach__desc-wrapper\"\n >\n <div class=\"attach__desc-item\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.left.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.left.text }}</div>\n </div>\n <div class=\"attach__desc-item\" *ngIf=\"description.right\">\n <div\n class=\"attach__desc-icon attach__desc-icon--primary\"\n [ngStyle]=\"{\n 'background-image': 'url(' + description.right.iconURL + ')'\n }\"\n ></div>\n <div class=\"attach__desc-title\">{{ description.right.text }}</div>\n </div>\n </div>\n </ng-container>\n <div\n *ngIf=\"showDocumentList && layoutMod === 'default'\"\n class=\"attach__doclist\"\n >\n {{ documentList }}\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__upload-icon\">\n <svg\n width=\"70\"\n height=\"60\"\n viewBox=\"0 0 70 60\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M56.9299 17.0405C56.1814 12.5554 53.979 8.46218 50.6107 5.356C46.8682 1.90145 42.0029 0 36.9361 0C33.0208 0 29.2063 1.13216 25.9387 3.26585C23.2182 5.03667 20.9583 7.43163 19.3605 10.2475C18.6695 10.1169 17.9498 10.0443 17.2301 10.0443C11.1125 10.0443 6.13202 15.0665 6.13202 21.2353C6.13202 22.0336 6.21838 22.8029 6.36233 23.5577C2.40387 26.4607 0 31.1345 0 36.1131C0 40.1337 1.48262 44.0382 4.18877 47.1299C6.96689 50.2941 10.6375 52.1665 14.5527 52.3843C14.5959 52.3843 14.6247 52.3843 14.6679 52.3843H27.0471C28.1267 52.3843 28.9903 51.5134 28.9903 50.4247C28.9903 49.3361 28.1267 48.4652 27.0471 48.4652H14.7255C8.83817 48.1024 3.88649 42.4561 3.88649 36.0985C3.88649 31.9908 6.07444 28.1589 9.60107 26.0833C10.4215 25.6043 10.767 24.6027 10.4503 23.7028C10.1625 22.919 10.0185 22.0917 10.0185 21.2063C10.0185 17.2001 13.2572 13.9343 17.2301 13.9343C18.0794 13.9343 18.9143 14.0794 19.6915 14.3697C20.6416 14.7181 21.6924 14.2827 22.1242 13.3682C24.816 7.6058 30.6313 3.88999 36.9504 3.88999C45.4431 3.88999 52.4532 10.3056 53.2593 18.8113C53.3457 19.6967 54.0078 20.4079 54.8715 20.5531C61.277 21.6562 66.1135 27.6218 66.1135 34.4293C66.1135 41.6432 60.4853 47.9137 53.5472 48.4507H42.9385C41.8589 48.4507 40.9953 49.3216 40.9953 50.4102C40.9953 51.4988 41.8589 52.3697 42.9385 52.3697H53.6192C53.6623 52.3697 53.7055 52.3697 53.7631 52.3697C58.1534 52.0504 62.2558 50.0183 65.3074 46.6218C68.3447 43.2544 70 38.9289 70 34.4293C69.9856 26.2865 64.4725 19.0435 56.9299 17.0405Z\"\n fill=\"#F0F0F0\"\n />\n <path\n d=\"M46.6828 36.5255C47.4469 35.8634 47.4469 34.8014 46.6828 34.1393L36.3754 25.2068C36.015 24.8944 35.5104 24.707 35.0059 24.707C34.5013 24.707 33.9967 24.8819 33.6363 25.2068L23.3289 34.1393C22.5648 34.8014 22.5648 35.8634 23.3289 36.5255C23.7037 36.8503 24.2083 37.0252 24.6984 37.0252C25.1886 37.0252 25.6931 36.8628 26.0679 36.5255L33.0597 30.4663V58.3134C33.0597 59.2504 33.9247 60 35.0059 60C36.0871 60 36.952 59.2504 36.952 58.3134V30.4663L43.9438 36.5255C44.6934 37.1876 45.9188 37.1876 46.6828 36.5255Z\"\n fill=\"#F0F0F0\"\n />\n </svg>\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__info-txt\">\n \u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430\n </div>\n <div\n [ngClass]=\"{\n 'attach__button-wrapper--simple': layoutMod === 'simple',\n 'attach__button-wrapper': layoutMod !== 'simple'\n }\"\n >\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__btn-left\">\u0438\u043B\u0438</div>\n <aeb-old-button\n class=\"attach__images\"\n [label]=\"'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B'\"\n [solid]=\"false\"\n [showIcon]=\"true\"\n [iconSource]=\"{ left: './images/clip.svg', right: '' }\"\n [hoveredIconSource]=\"{ left: './images/clip_blue.svg', right: '' }\"\n (click)=\"fileInput.click()\"\n >\n </aeb-old-button>\n <input\n #fileInput\n type=\"file\"\n (change)=\"chooseFile($event)\"\n style=\"display: none\"\n />\n <div class=\"attach__file-message\">\n <span *ngIf=\"files?.length === 0 && requirement !== undefined\">\n {{ requirement.text }}\n </span>\n <span *ngIf=\"files?.length > 0\">\n {{ files?.length === 1 ? \"\u0412\u044B\u0431\u0440\u0430\u043D\" : \"\u0412\u044B\u0431\u0440\u0430\u043D\u043E\" }} {{ files.length }}\n {{ getCaseByNumber([\"\u0444\u0430\u0439\u043B\", \"\u0444\u0430\u0439\u043B\u0430\", \"\u0444\u0430\u0439\u043B\u043E\u0432\"]) }}\n </span>\n <div\n *ngIf=\"files?.length > 0\"\n class=\"attach__remove-icon\"\n (click)=\"clearFileList()\"\n >\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=\"M5 10.7609L11.0268 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M11.0268 10.7609L5 4.73413\"\n stroke=\"#27303E\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n</div>\n", styles: [".attach{box-sizing:border-box;width:-moz-fit-content;width:fit-content;padding:24px;color:var(--color-mono-brand-dark);border:var(--border-skinny) dashed var(--gray-primary);border-radius:var(--border-medium-rounded)}.attach--file-in-focus{border:var(--border-skinny) dashed var(--color-blue-brand)}.attach__title{font-size:var(--font-size-m);line-height:20px}.attach__desc-wrapper{display:flex;flex-wrap:wrap;margin-top:22px}.attach__desc-item{display:flex;align-items:center;max-width:488px}.attach__desc-icon{width:52px;height:52px;background-repeat:no-repeat;background-size:cover}.attach__desc-icon--primary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01463 45.3318C0.679025 45.4371 0.340873 45.546 0 45.6586L-1.6159e-06 8.69112C8.78378 5.55828 16.8649 5.55828 26 8.69112C34.7838 5.55828 42.8649 5.55828 52 8.69111L52 45.6586C51.6594 45.5301 51.3213 45.4068 50.9854 45.2887C42.6355 42.3535 35.6708 42.6173 27.0146 45.3318C26.679 45.4371 26.3409 45.546 26 45.6586C25.6594 45.5301 25.3213 45.4068 24.9854 45.2887C16.6355 42.3535 9.67078 42.6173 1.01463 45.3318ZM25.3659 44.5009C17.0216 41.6407 9.5896 41.6409 1.01463 44.2847L1.01463 9.39704C9.09486 6.65387 16.9544 6.64308 25.3659 9.39704L25.3659 44.5009ZM50.9854 44.2299C42.6411 41.3698 35.2091 41.8572 26.6341 44.5009L26.6341 9.39704C34.7144 6.65387 42.574 6.65188 50.9854 9.40584L50.9854 44.2299Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M34.2439 40.3538C34.5926 40.3068 34.9306 40.2638 35.2585 40.2248C41.1672 39.5207 43.844 40.077 47.8146 41.0424C48.0035 41.0883 48.1952 41.1351 48.3904 41.1828C48.5347 41.2181 48.681 41.2538 48.8293 41.2899L48.8293 30.0565L48.726 30.026C44.2124 28.6953 41.334 27.8467 34.2439 29.1203L34.2439 40.3538ZM35.2585 39.2191C38.2835 38.8647 40.5098 38.834 42.5176 39.0283C44.3509 39.2057 45.9803 39.5699 47.8146 40.0139L47.8146 30.8001C45.8531 30.2254 44.244 29.7862 42.3944 29.5947C40.5023 29.3987 38.3207 29.4599 35.2585 29.9598L35.2585 39.2191Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M4.43901 38.6829L4.43901 12.6829L5.7073 12.6829L5.7073 38.6829L4.43901 38.6829Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M31.7073 26L31.7073 10.7805L32.9756 10.7805L32.9756 26L31.7073 26Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M37.4146 24.4399L37.4146 11.9583L38.4293 11.9583L38.4293 24.4399L37.4146 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M40.5854 23.8157L40.5854 11.3341L41.6 11.3341L41.6 23.8157L40.5854 23.8157Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M43.7561 24.4399L43.7561 15.7028L44.7707 15.7028L44.7707 24.4399L43.7561 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M7.60973 34.4252L7.60973 16.9509L8.62436 16.9509L8.62436 34.4252L7.60973 34.4252Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M19.2781 25.3758C19.2781 23.687 17.8869 22.3179 16.1708 22.3179C14.4546 22.3179 13.0634 23.687 13.0634 25.3758C13.0634 27.0647 14.4546 28.4338 16.1708 28.4338C17.8869 28.4338 19.2781 27.0647 19.2781 25.3758ZM20.2927 25.3758C20.2927 23.1355 18.4473 21.3193 16.1708 21.3193C13.8943 21.3193 12.0488 23.1355 12.0488 25.3758C12.0488 27.6162 13.8943 29.4324 16.1708 29.4324C18.4473 29.4324 20.2927 27.6162 20.2927 25.3758Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M41.5366 32.5529C42.7624 32.5529 43.7561 33.5308 43.7561 34.7372C43.7561 35.9435 42.7624 36.9215 41.5366 36.9215C40.3108 36.9215 39.3171 35.9435 39.3171 34.7372C39.3171 33.5308 40.3108 32.5529 41.5366 32.5529Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M48.1951 30.0566C46.8496 30.0566 45.5593 30.5826 44.6079 31.5189C43.6564 32.4552 43.122 33.7251 43.122 35.0492C43.122 36.3734 43.6564 37.6433 44.6079 38.5796C45.5593 39.5159 46.8496 40.0419 48.1951 40.0419L48.1951 30.0566Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-icon--secondary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01464 45.3265C0.679027 45.4334 0.340875 45.5441 1.64196e-06 45.6585L0 8.0948C8.78378 4.91143 16.8649 4.91143 26 8.0948C34.7838 4.91143 42.8649 4.91143 52 8.0948V45.6585C51.6594 45.5279 51.3213 45.4027 50.9854 45.2827C42.6355 42.3002 35.6708 42.5682 27.0146 45.3265C26.679 45.4334 26.3409 45.5441 26 45.6585C25.6594 45.5279 25.3213 45.4027 24.9854 45.2827C16.6355 42.3002 9.67078 42.5682 1.01464 45.3265ZM25.5014 44.3902C17.1571 41.4839 9.58961 41.5761 1.01464 44.2624L1.01463 8.81211C9.09486 6.0247 17.09 6.02268 25.5014 8.82105V44.3902ZM50.9854 44.2068C42.6411 41.3005 35.0942 41.7038 26.5193 44.3902V8.82105C34.5995 6.03364 42.574 6.02268 50.9854 8.82105V44.2068Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 20.6097C29.8229 20.5407 30.1613 20.4749 30.5023 20.4122C36.2246 19.3609 42.7023 19.2144 47.8145 20.3603C48.1591 20.4375 48.4976 20.5206 48.8291 20.6097L48.8291 10.7842C43.2935 8.80158 35.5742 8.80479 29.4877 10.7842L29.4877 20.6097ZM30.5023 19.381C36.1912 18.3575 42.6253 18.203 47.8145 19.3214L47.8145 11.5123C42.7778 9.91067 36.0293 9.90932 30.5023 11.5324L30.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M3.48767 20.6097C3.8229 20.5407 4.16126 20.4749 4.5023 20.4122C10.2246 19.3609 16.7023 19.2144 21.8145 20.3603C22.1591 20.4375 22.4976 20.5206 22.8291 20.6097L22.8291 10.7842C17.2935 8.80158 9.57424 8.80479 3.48767 10.7842L3.48767 20.6097ZM4.5023 19.381C10.1912 18.3575 16.6253 18.203 21.8145 19.3214L21.8145 11.5123C16.7778 9.91067 10.0293 9.90932 4.5023 11.5324L4.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 35.0918C29.8588 35.0154 30.2338 34.9428 30.612 34.8742C36.2663 33.8486 42.6426 33.7058 47.7048 34.818C48.0874 34.902 48.4625 34.9932 48.8291 35.0918L48.8291 25.2662C43.2935 23.2836 35.5742 23.2868 29.4877 25.2662L29.4877 35.0918ZM30.612 33.732C36.2304 32.7362 42.5606 32.585 47.7048 33.668L47.7048 26.0747C42.723 24.512 36.0771 24.5104 30.612 26.0967L30.612 33.732Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 11.7317H19.3415V12.7463H6.65854V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 11.7317H45.3415V12.7463H32.6585V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 26.3171H45.3415V27.3318H32.6585V26.3171Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 15.5365H19.3415V16.5511H6.65854V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 15.5365H45.3415V16.5511H32.6585V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 30.1219H45.3415V31.1366H32.6585V30.1219Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M8.56107 13.6342H16.805V14.6488H8.56107V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 13.6342H42.805V14.6488H34.5611V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 28.2195H42.805V29.2341H34.5611V28.2195Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__desc-title{max-width:175px;margin-right:16px;margin-left:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__doclist{max-width:488px;margin-top:22px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}.attach__button-wrapper{display:flex;align-items:center;margin-top:16px}@media screen and (max-width: 767px){.attach__button-wrapper{flex-direction:column;align-items:flex-start}}.attach__file-message{display:flex;align-items:center;margin-left:20px;font-size:var(--font-size-xs);line-height:16px}@media screen and (max-width: 767px){.attach__file-message{margin-top:20px;margin-left:0}}.attach__remove-icon{width:16px;height:16px;margin-left:25px;cursor:pointer}.attach__remove-icon:hover svg path{stroke:var(--color-blue-brand)}.attach__images:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2222%22 height%3D%2222%22 viewBox%3D%220 0 22 22%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263%22 stroke%3D%22%2300B1E9%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.attach--salary-portal{display:flex;flex-direction:column;align-items:center;justify-content:center}.attach--salary-portal .attach__upload-icon{margin-top:16px}.attach--salary-portal .attach__info-txt{margin-top:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.attach--salary-portal .attach__btn-left{margin-right:20px;font-size:var(--font-size-xs);color:var(--gray-primary)}.attach--simple{box-sizing:border-box;width:100%;padding:0;color:var(--color-mono-brand-dark);border:var(--no-border)}.attach__button-wrapper--simple{display:flex;align-items:center}@media screen and (max-width: 767px){.attach__button-wrapper--simple{flex-direction:column;align-items:flex-start}}\n"] }]
|
|
2843
3080
|
}], propDecorators: { title: [{
|
|
2844
3081
|
type: Input
|
|
2845
3082
|
}], documentList: [{
|
|
@@ -2861,13 +3098,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
2861
3098
|
class FileAttachModule {
|
|
2862
3099
|
}
|
|
2863
3100
|
FileAttachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2864
|
-
FileAttachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FileAttachModule, declarations: [FileAttachComponent, DragAndDropDirective], imports: [CommonModule,
|
|
2865
|
-
FileAttachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachModule, imports: [CommonModule,
|
|
3101
|
+
FileAttachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FileAttachModule, declarations: [FileAttachComponent, DragAndDropDirective], imports: [CommonModule, OldButtonModule], exports: [FileAttachComponent] });
|
|
3102
|
+
FileAttachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachModule, imports: [CommonModule, OldButtonModule] });
|
|
2866
3103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachModule, decorators: [{
|
|
2867
3104
|
type: NgModule,
|
|
2868
3105
|
args: [{
|
|
2869
3106
|
declarations: [FileAttachComponent, DragAndDropDirective],
|
|
2870
|
-
imports: [CommonModule,
|
|
3107
|
+
imports: [CommonModule, OldButtonModule],
|
|
2871
3108
|
exports: [FileAttachComponent]
|
|
2872
3109
|
}]
|
|
2873
3110
|
}] });
|
|
@@ -3790,13 +4027,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
3790
4027
|
class PaginationModule {
|
|
3791
4028
|
}
|
|
3792
4029
|
PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3793
|
-
PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [CommonModule,
|
|
3794
|
-
PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, imports: [CommonModule,
|
|
4030
|
+
PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [CommonModule, OldButtonModule, SelectModule, ReactiveFormsModule], exports: [PaginationComponent] });
|
|
4031
|
+
PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, imports: [CommonModule, OldButtonModule, SelectModule, ReactiveFormsModule] });
|
|
3795
4032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PaginationModule, decorators: [{
|
|
3796
4033
|
type: NgModule,
|
|
3797
4034
|
args: [{
|
|
3798
4035
|
declarations: [PaginationComponent],
|
|
3799
|
-
imports: [CommonModule,
|
|
4036
|
+
imports: [CommonModule, OldButtonModule, SelectModule, ReactiveFormsModule],
|
|
3800
4037
|
exports: [PaginationComponent]
|
|
3801
4038
|
}]
|
|
3802
4039
|
}] });
|
|
@@ -4783,9 +5020,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4783
5020
|
class AebUiKitModule {
|
|
4784
5021
|
}
|
|
4785
5022
|
AebUiKitModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4786
|
-
AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [
|
|
4787
|
-
|
|
5023
|
+
AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [ButtonModule,
|
|
5024
|
+
CodeInputModule,
|
|
5025
|
+
OldButtonModule,
|
|
4788
5026
|
CheckboxModule,
|
|
5027
|
+
CheckboxOldModule,
|
|
4789
5028
|
HeaderModule,
|
|
4790
5029
|
SidebarModule,
|
|
4791
5030
|
SliderModule,
|
|
@@ -4817,8 +5056,10 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
4817
5056
|
DropdownModule,
|
|
4818
5057
|
TableModule,
|
|
4819
5058
|
ModalModule,
|
|
4820
|
-
ResponseModule], exports: [
|
|
5059
|
+
ResponseModule], exports: [ButtonModule,
|
|
5060
|
+
OldButtonModule,
|
|
4821
5061
|
CheckboxModule,
|
|
5062
|
+
CheckboxOldModule,
|
|
4822
5063
|
HeaderModule,
|
|
4823
5064
|
SidebarModule,
|
|
4824
5065
|
SliderModule,
|
|
@@ -4851,9 +5092,11 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
4851
5092
|
TableModule,
|
|
4852
5093
|
ModalModule,
|
|
4853
5094
|
ResponseModule] });
|
|
4854
|
-
AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [
|
|
4855
|
-
|
|
5095
|
+
AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [ButtonModule,
|
|
5096
|
+
CodeInputModule,
|
|
5097
|
+
OldButtonModule,
|
|
4856
5098
|
CheckboxModule,
|
|
5099
|
+
CheckboxOldModule,
|
|
4857
5100
|
HeaderModule,
|
|
4858
5101
|
SidebarModule,
|
|
4859
5102
|
SliderModule,
|
|
@@ -4885,8 +5128,10 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
4885
5128
|
DropdownModule,
|
|
4886
5129
|
TableModule,
|
|
4887
5130
|
ModalModule,
|
|
4888
|
-
ResponseModule,
|
|
5131
|
+
ResponseModule, ButtonModule,
|
|
5132
|
+
OldButtonModule,
|
|
4889
5133
|
CheckboxModule,
|
|
5134
|
+
CheckboxOldModule,
|
|
4890
5135
|
HeaderModule,
|
|
4891
5136
|
SidebarModule,
|
|
4892
5137
|
SliderModule,
|
|
@@ -4924,9 +5169,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4924
5169
|
args: [{
|
|
4925
5170
|
declarations: [],
|
|
4926
5171
|
imports: [
|
|
5172
|
+
ButtonModule,
|
|
4927
5173
|
CodeInputModule,
|
|
4928
|
-
|
|
5174
|
+
OldButtonModule,
|
|
4929
5175
|
CheckboxModule,
|
|
5176
|
+
CheckboxOldModule,
|
|
4930
5177
|
HeaderModule,
|
|
4931
5178
|
SidebarModule,
|
|
4932
5179
|
SliderModule,
|
|
@@ -4961,8 +5208,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4961
5208
|
ResponseModule
|
|
4962
5209
|
],
|
|
4963
5210
|
exports: [
|
|
4964
|
-
|
|
5211
|
+
ButtonModule,
|
|
5212
|
+
OldButtonModule,
|
|
4965
5213
|
CheckboxModule,
|
|
5214
|
+
CheckboxOldModule,
|
|
4966
5215
|
HeaderModule,
|
|
4967
5216
|
SidebarModule,
|
|
4968
5217
|
SliderModule,
|
|
@@ -5241,5 +5490,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5241
5490
|
* Generated bundle index. Do not edit.
|
|
5242
5491
|
*/
|
|
5243
5492
|
|
|
5244
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent,
|
|
5493
|
+
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonModule, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
|
|
5245
5494
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|