aeb-ui-kit 3.1.0 → 3.2.0-preview.634
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/comment/comment.component.mjs +4 -5
- package/esm2020/lib/datepicker/datepicker.component.mjs +4 -4
- package/esm2020/lib/dropdown/dropdown.component.mjs +3 -3
- package/esm2020/lib/field-slider/field-slider.component.mjs +3 -3
- package/esm2020/lib/file-attach/file-attach.component.mjs +2 -2
- package/esm2020/lib/form-field/error-message.directive.mjs +14 -0
- package/esm2020/lib/form-field/form-field.component.mjs +84 -51
- package/esm2020/lib/form-field/form-field.directive.mjs +84 -0
- package/esm2020/lib/form-field/form-field.module.mjs +15 -15
- package/esm2020/lib/form-field/icon.directive.mjs +3 -3
- package/esm2020/lib/new-button/new-button.component.mjs +2 -2
- package/esm2020/lib/slider/slider.component.mjs +3 -3
- package/esm2020/public-api.mjs +3 -3
- package/fesm2015/aeb-ui-kit.mjs +154 -160
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +151 -158
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/datepicker/datepicker.component.d.ts +2 -2
- package/lib/form-field/error-message.directive.d.ts +6 -0
- package/lib/form-field/form-field.component.d.ts +13 -13
- package/lib/form-field/form-field.directive.d.ts +22 -0
- package/lib/form-field/form-field.module.d.ts +5 -5
- package/lib/form-field/icon.directive.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/styles.css +9 -0
- package/esm2020/lib/form-field/input.directive.mjs +0 -69
- package/esm2020/lib/form-field/textarea.directive.mjs +0 -69
- package/lib/form-field/input.directive.d.ts +0 -26
- package/lib/form-field/textarea.directive.d.ts +0 -26
package/fesm2020/aeb-ui-kit.mjs
CHANGED
|
@@ -5,13 +5,13 @@ import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/commo
|
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
6
|
import { NG_VALUE_ACCESSOR, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { timer, map, takeUntil, fromEvent } from 'rxjs';
|
|
8
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
8
9
|
import * as i2 from '@angular/platform-browser';
|
|
9
10
|
import * as i1$2 from 'ngx-mask';
|
|
10
11
|
import { NgxMaskModule } from 'ngx-mask';
|
|
11
12
|
import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
|
|
12
13
|
import { ru } from 'date-fns/locale';
|
|
13
14
|
import '@angular/common/locales/global/ru';
|
|
14
|
-
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
15
15
|
import { debounceTime } from 'rxjs/operators';
|
|
16
16
|
|
|
17
17
|
class AccordionComponent {
|
|
@@ -375,92 +375,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
375
375
|
}]
|
|
376
376
|
}] });
|
|
377
377
|
|
|
378
|
-
class
|
|
379
|
-
constructor(
|
|
380
|
-
this._parentForm = _parentForm;
|
|
381
|
-
this._parentFormGroup = _parentFormGroup;
|
|
382
|
-
this.ngControl = ngControl;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
class InputDirective extends MatInputBase$1 {
|
|
386
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
387
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
388
|
-
this.ngControl = ngControl;
|
|
389
|
-
this.class = 'aeb-input';
|
|
390
|
-
this.error = false;
|
|
391
|
-
this._value = '';
|
|
392
|
-
}
|
|
393
|
-
get value() {
|
|
394
|
-
return this._value;
|
|
395
|
-
}
|
|
396
|
-
set value(value) {
|
|
397
|
-
this.isHasValue = Boolean(value);
|
|
398
|
-
this._value = value;
|
|
399
|
-
}
|
|
400
|
-
change(value) {
|
|
401
|
-
this.value = value;
|
|
402
|
-
}
|
|
403
|
-
focus() {
|
|
404
|
-
this.isFocused = true;
|
|
405
|
-
}
|
|
406
|
-
blur() {
|
|
407
|
-
this.isFocused = false;
|
|
408
|
-
}
|
|
378
|
+
class ErrorMessageDirective {
|
|
379
|
+
constructor() { }
|
|
409
380
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
381
|
+
ErrorMessageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ErrorMessageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
382
|
+
ErrorMessageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ErrorMessageDirective, selector: "[errorMessage]", ngImport: i0 });
|
|
383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ErrorMessageDirective, decorators: [{
|
|
413
384
|
type: Directive,
|
|
414
385
|
args: [{
|
|
415
|
-
selector: '
|
|
386
|
+
selector: '[errorMessage]'
|
|
416
387
|
}]
|
|
417
|
-
}], ctorParameters: function () { return [
|
|
418
|
-
type: Optional
|
|
419
|
-
}, {
|
|
420
|
-
type: Self
|
|
421
|
-
}] }, { type: i1$1.NgForm, decorators: [{
|
|
422
|
-
type: Optional
|
|
423
|
-
}] }, { type: i1$1.FormGroupDirective, decorators: [{
|
|
424
|
-
type: Optional
|
|
425
|
-
}] }]; }, propDecorators: { class: [{
|
|
426
|
-
type: HostBinding,
|
|
427
|
-
args: ['class']
|
|
428
|
-
}], error: [{
|
|
429
|
-
type: HostBinding,
|
|
430
|
-
args: ['attr.error']
|
|
431
|
-
}], value: [{
|
|
432
|
-
type: Input
|
|
433
|
-
}], change: [{
|
|
434
|
-
type: HostListener,
|
|
435
|
-
args: ['input', ['$event.target.value']]
|
|
436
|
-
}], focus: [{
|
|
437
|
-
type: HostListener,
|
|
438
|
-
args: ['focus']
|
|
439
|
-
}], blur: [{
|
|
440
|
-
type: HostListener,
|
|
441
|
-
args: ['blur']
|
|
442
|
-
}] } });
|
|
388
|
+
}], ctorParameters: function () { return []; } });
|
|
443
389
|
|
|
444
|
-
class
|
|
445
|
-
constructor(
|
|
446
|
-
this._parentForm = _parentForm;
|
|
447
|
-
this._parentFormGroup = _parentFormGroup;
|
|
448
|
-
this.ngControl = ngControl;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
class TextareaDirective extends MatInputBase {
|
|
452
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
453
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
390
|
+
class FormFieldDirective {
|
|
391
|
+
constructor(ngControl, elementRef) {
|
|
454
392
|
this.ngControl = ngControl;
|
|
393
|
+
this.elementRef = elementRef;
|
|
455
394
|
this.class = 'aeb-input';
|
|
456
|
-
this.
|
|
395
|
+
this.isFocused = false;
|
|
396
|
+
this.hasValue = false;
|
|
457
397
|
this._value = '';
|
|
458
398
|
}
|
|
399
|
+
get isDisabled() {
|
|
400
|
+
if (this.ngControl) {
|
|
401
|
+
return this.ngControl?.disabled || null;
|
|
402
|
+
}
|
|
403
|
+
else if (this.elementRef.nativeElement) {
|
|
404
|
+
return (this.elementRef.nativeElement
|
|
405
|
+
.disabled || null);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
459
408
|
get value() {
|
|
460
409
|
return this._value;
|
|
461
410
|
}
|
|
462
411
|
set value(value) {
|
|
463
|
-
this.
|
|
412
|
+
this.hasValue = Boolean(value);
|
|
464
413
|
this._value = value;
|
|
465
414
|
}
|
|
466
415
|
change(value) {
|
|
@@ -472,28 +421,40 @@ class TextareaDirective extends MatInputBase {
|
|
|
472
421
|
blur() {
|
|
473
422
|
this.isFocused = false;
|
|
474
423
|
}
|
|
424
|
+
disable() {
|
|
425
|
+
if (this.ngControl) {
|
|
426
|
+
this.ngControl.control.disable();
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
this.elementRef.nativeElement.disabled = true;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
enable() {
|
|
433
|
+
if (this.ngControl) {
|
|
434
|
+
this.ngControl.control.enable();
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
this.elementRef.nativeElement.disabled = false;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
475
440
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
441
|
+
FormFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldDirective, deps: [{ token: i1$1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
442
|
+
FormFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "class": "this.class", "attr.disabled": "this.isDisabled" } }, ngImport: i0 });
|
|
443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldDirective, decorators: [{
|
|
479
444
|
type: Directive,
|
|
480
445
|
args: [{
|
|
481
|
-
selector: 'textarea[aebTextarea]'
|
|
446
|
+
selector: 'input[aebInput], textarea[aebTextarea]'
|
|
482
447
|
}]
|
|
483
448
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
484
449
|
type: Optional
|
|
485
450
|
}, {
|
|
486
451
|
type: Self
|
|
487
|
-
}] }, { type:
|
|
488
|
-
type: Optional
|
|
489
|
-
}] }, { type: i1$1.FormGroupDirective, decorators: [{
|
|
490
|
-
type: Optional
|
|
491
|
-
}] }]; }, propDecorators: { class: [{
|
|
452
|
+
}] }, { type: i0.ElementRef }]; }, propDecorators: { class: [{
|
|
492
453
|
type: HostBinding,
|
|
493
454
|
args: ['class']
|
|
494
|
-
}],
|
|
455
|
+
}], isDisabled: [{
|
|
495
456
|
type: HostBinding,
|
|
496
|
-
args: ['attr.
|
|
457
|
+
args: ['attr.disabled']
|
|
497
458
|
}], value: [{
|
|
498
459
|
type: Input
|
|
499
460
|
}], change: [{
|
|
@@ -510,99 +471,131 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
510
471
|
class FormFieldComponent {
|
|
511
472
|
constructor() {
|
|
512
473
|
this.class = 'aeb-form-field';
|
|
513
|
-
this.
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
474
|
+
this.isInvalid = false;
|
|
475
|
+
this.showIcon = true;
|
|
476
|
+
this.showErrorMessage = true;
|
|
477
|
+
this._isDisabled = false;
|
|
478
|
+
}
|
|
479
|
+
set disabled(value) {
|
|
480
|
+
this._isDisabled = value;
|
|
481
|
+
if (this.formField === undefined) {
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
if (value) {
|
|
485
|
+
this.formField.disable();
|
|
518
486
|
}
|
|
519
487
|
else {
|
|
520
|
-
|
|
488
|
+
this.formField.enable();
|
|
521
489
|
}
|
|
522
490
|
}
|
|
523
|
-
get
|
|
524
|
-
return this.
|
|
491
|
+
get disabled() {
|
|
492
|
+
return this._isDisabled;
|
|
525
493
|
}
|
|
526
|
-
get
|
|
527
|
-
if (this.
|
|
528
|
-
|
|
529
|
-
return Boolean(this.input.ngControl.value);
|
|
530
|
-
}
|
|
531
|
-
return this.input.isHasValue;
|
|
494
|
+
get focused() {
|
|
495
|
+
if (this.formField) {
|
|
496
|
+
return this.formField.isFocused;
|
|
532
497
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
return this.
|
|
498
|
+
return false;
|
|
499
|
+
}
|
|
500
|
+
get hasValue() {
|
|
501
|
+
if (this.formField?.ngControl) {
|
|
502
|
+
return Boolean(this.formField.ngControl.value);
|
|
538
503
|
}
|
|
504
|
+
return this.formField?.hasValue || false;
|
|
539
505
|
}
|
|
540
506
|
get error() {
|
|
541
|
-
if (this.
|
|
507
|
+
if (this.isInvalid) {
|
|
542
508
|
return true;
|
|
543
509
|
}
|
|
544
|
-
if (this.
|
|
545
|
-
|
|
546
|
-
return this.input.ngControl.invalid && this.input.ngControl.touched;
|
|
547
|
-
}
|
|
548
|
-
return this.input.error;
|
|
510
|
+
if (this.formField?.ngControl) {
|
|
511
|
+
return (this.formField.ngControl.invalid && this.formField.ngControl.touched);
|
|
549
512
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
513
|
+
}
|
|
514
|
+
get isDisabled() {
|
|
515
|
+
if (this.disabled) {
|
|
516
|
+
return true;
|
|
517
|
+
}
|
|
518
|
+
if (this.formField) {
|
|
519
|
+
return this.formField.isDisabled;
|
|
555
520
|
}
|
|
556
521
|
}
|
|
557
|
-
|
|
522
|
+
get hasIcon() {
|
|
523
|
+
return this.showIcon;
|
|
524
|
+
}
|
|
525
|
+
get isFocused() {
|
|
526
|
+
if (this.formField) {
|
|
527
|
+
return this.formField.isFocused;
|
|
528
|
+
}
|
|
529
|
+
return false;
|
|
530
|
+
}
|
|
558
531
|
}
|
|
559
532
|
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
560
|
-
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FormFieldComponent, selector: "aeb-form-field", inputs: {
|
|
533
|
+
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FormFieldComponent, selector: "aeb-form-field", inputs: { isInvalid: "isInvalid", showIcon: "showIcon", showErrorMessage: "showErrorMessage", disabled: "disabled" }, host: { properties: { "class": "this.class", "class.focused": "this.focused", "class.has-value": "this.hasValue", "class.error": "this.error", "class.disabled": "this.isDisabled", "class.has-icon": "this.hasIcon" } }, queries: [{ propertyName: "formField", first: true, predicate: FormFieldDirective, descendants: true }], ngImport: i0, template: "<ng-content></ng-content>\n\n<div class=\"aeb-label\">\n <ng-content select=\"aeb-label\"></ng-content>\n</div>\n\n<ng-content *ngIf=\"showIcon\" select=\"[aebIcon]\"></ng-content>\n\n<div\n [@showErrorMessageVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n *ngIf=\"showErrorMessage && error && !disabled && !isFocused\"\n class=\"aeb-form-field--error-message\"\n>\n <ng-content select=\"[errorMessage]\"></ng-content>\n</div>\n", styles: [".aeb-form-field{--border-color-default: var(--color-mono-gray-light);--border-color-active: var(--color-blue-brand);--border-color-disabled: var(--color-mono-gray-light);--border-color-error: var(--color-red-neutral);--label-color-default: var(--color-mono-gray-soft);--label-color-active: var(--color-blue-brand);--label-color-disabled: var(--color-mono-gray-light);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--color-mono-clear);--input-text-color-default: var(--color-mono-brand-dark);--input-text-color-disabled: var(--color-mono-gray-light);--error-text-color: var(--color-red-neutral);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.error .aeb-input{border-color:var(--border-color-error)}.aeb-form-field.error .aeb-label{color:var(--label-color-error)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aeb-form-field.disabled .aeb-input{border:var(--border-skinny) solid var(--border-color-disabled);color:var(--input-text-color-disabled)}.aeb-form-field.disabled .aeb-label{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);line-height:18px;padding:16px 14px;font-size:var(--font-size-m);border:var(--border-skinny) solid var(--border-color-default);border-radius:var(--border-medium-rounded);background:transparent;box-shadow:none;transition:all ease-in-out .2s linear}.aeb-form-field .aeb-input:focus{outline:none}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-webkit-appearance:textfield;appearance:textfield}.aeb-form-field textarea{resize:vertical;cursor:auto;scroll-behavior:smooth}.aeb-form-field textarea.aeb-input{min-height:70px;scrollbar-color:var(--color-blue-soft) transparent;scrollbar-width:thin}@-moz-document url-prefix(){.aeb-form-field textarea.aeb-input{overflow:clip}}.aeb-form-field textarea.aeb-input::-webkit-scrollbar{width:16px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-thumb{border:6px solid rgba(0,0,0,0);background-color:var(--color-blue-soft);background-clip:padding-box;border-radius:9999px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-corner{background-color:transparent}.aeb-form-field textarea.aeb-input::-webkit-resizer{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI1IiB2aWV3Qm94PSIwIDAgNSA1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iTTMuMjc5NTMgNC44Mzg1NkMzLjA2NDI3IDUuMDUzODEgMi43MTUyNyA1LjA1MzgxIDIuNTAwMDEgNC44Mzg1NkMyLjI4NDc1IDQuNjIzMyAyLjI4NDc1IDQuMjc0MyAyLjUwMDAxIDQuMDU5MDVMNC4wNTkwNCAyLjUwMDAzQzQuMjc0MyAyLjI4NDc3IDQuNjIzMyAyLjI4NDc3IDQuODM4NTYgMi41MDAwM0M1LjA1MzgxIDIuNzE1MjggNS4wNTM4MSAzLjA2NDI4IDQuODM4NTYgMy4yNzk1NEwzLjI3OTUzIDQuODM4NTZaIiBmaWxsPSIjM0I0MDRBIi8+DQo8cGF0aCBkPSJNMC45NDA5NTkgNC4wNTlDMC43MjU3MDIgNC4yNzQyNSAwLjM3NjcgNC4yNzQyNSAwLjE2MTQ0MyA0LjA1OUMtMC4wNTM4MTQzIDMuODQzNzQgLTAuMDUzODE0NCAzLjQ5NDc0IDAuMTYxNDQzIDMuMjc5NDlMMy4yNzk1MSAwLjE2MTQ0MkMzLjQ5NDc2IC0wLjA1MzgxNCAzLjg0Mzc2IC0wLjA1MzgxNCA0LjA1OTAyIDAuMTYxNDQyQzQuMjc0MjggMC4zNzY2OTggNC4yNzQyOCAwLjcyNTY5NyA0LjA1OTAyIDAuOTQwOTUzTDAuOTQwOTU5IDQuMDU5WiIgZmlsbD0iIzNCNDA0QSIvPg0KPC9zdmc+DQo=);background-repeat:no-repeat;background-position:center}.aeb-form-field .aeb-label{display:inline-block;position:absolute;top:0;left:16px;max-width:calc(100% - 32px);padding-top:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--font-size-m);pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none}.aeb-form-field.focused .aeb-label,.aeb-form-field.has-value .aeb-label{margin-top:10px;padding:0 4px;line-height:14px;font-size:var(--font-size-xxs);background-color:var(--label-active-background-color);transform:translateY(-1rem)}.aeb-form-field.focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.focused .aeb-label{color:var(--label-color-active)}.aeb-form-field.has-icon .aeb-input{padding:16px 38px 16px 14px}.aeb-form-field.has-icon .aeb-label{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}body.dark .aeb-form-field,body.sd-dark .aeb-form-field{--border-color-default: var(--gray-primary-dark-theme);--border-color-active: var(--blue-primary-dark-theme);--border-color-disabled: var(--gray-primary-dark-theme);--border-color-error: var(--color-red-neutral);--label-color-default: var(--gray-primary-dark-theme);--label-color-active: var(--blue-primary-dark-theme);--label-color-disabled: var(--gray-primary-dark-theme);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--darkblue-primary-dark-theme);--input-text-color-default: var(--color-mono-clear);--input-text-color-disabled: var(--gray-primary-dark-theme);--error-text-color: var(--color-red-neutral)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
|
534
|
+
trigger('showErrorMessageVisibility', [
|
|
535
|
+
state('void', style({
|
|
536
|
+
'font-size': '0'
|
|
537
|
+
})),
|
|
538
|
+
state('visible', style({
|
|
539
|
+
'font-size': 'var(--font-size-xxs)'
|
|
540
|
+
})),
|
|
541
|
+
transition('void => visible', [animate('.1s')]),
|
|
542
|
+
transition('visible => void', [animate('.05s')])
|
|
543
|
+
])
|
|
544
|
+
], encapsulation: i0.ViewEncapsulation.None });
|
|
561
545
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
562
546
|
type: Component,
|
|
563
|
-
args: [{ selector: 'aeb-form-field', encapsulation: ViewEncapsulation.None,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
547
|
+
args: [{ selector: 'aeb-form-field', encapsulation: ViewEncapsulation.None, animations: [
|
|
548
|
+
trigger('showErrorMessageVisibility', [
|
|
549
|
+
state('void', style({
|
|
550
|
+
'font-size': '0'
|
|
551
|
+
})),
|
|
552
|
+
state('visible', style({
|
|
553
|
+
'font-size': 'var(--font-size-xxs)'
|
|
554
|
+
})),
|
|
555
|
+
transition('void => visible', [animate('.1s')]),
|
|
556
|
+
transition('visible => void', [animate('.05s')])
|
|
557
|
+
])
|
|
558
|
+
], template: "<ng-content></ng-content>\n\n<div class=\"aeb-label\">\n <ng-content select=\"aeb-label\"></ng-content>\n</div>\n\n<ng-content *ngIf=\"showIcon\" select=\"[aebIcon]\"></ng-content>\n\n<div\n [@showErrorMessageVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n *ngIf=\"showErrorMessage && error && !disabled && !isFocused\"\n class=\"aeb-form-field--error-message\"\n>\n <ng-content select=\"[errorMessage]\"></ng-content>\n</div>\n", styles: [".aeb-form-field{--border-color-default: var(--color-mono-gray-light);--border-color-active: var(--color-blue-brand);--border-color-disabled: var(--color-mono-gray-light);--border-color-error: var(--color-red-neutral);--label-color-default: var(--color-mono-gray-soft);--label-color-active: var(--color-blue-brand);--label-color-disabled: var(--color-mono-gray-light);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--color-mono-clear);--input-text-color-default: var(--color-mono-brand-dark);--input-text-color-disabled: var(--color-mono-gray-light);--error-text-color: var(--color-red-neutral);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.error .aeb-input{border-color:var(--border-color-error)}.aeb-form-field.error .aeb-label{color:var(--label-color-error)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aeb-form-field.disabled .aeb-input{border:var(--border-skinny) solid var(--border-color-disabled);color:var(--input-text-color-disabled)}.aeb-form-field.disabled .aeb-label{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);line-height:18px;padding:16px 14px;font-size:var(--font-size-m);border:var(--border-skinny) solid var(--border-color-default);border-radius:var(--border-medium-rounded);background:transparent;box-shadow:none;transition:all ease-in-out .2s linear}.aeb-form-field .aeb-input:focus{outline:none}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-webkit-appearance:textfield;appearance:textfield}.aeb-form-field textarea{resize:vertical;cursor:auto;scroll-behavior:smooth}.aeb-form-field textarea.aeb-input{min-height:70px;scrollbar-color:var(--color-blue-soft) transparent;scrollbar-width:thin}@-moz-document url-prefix(){.aeb-form-field textarea.aeb-input{overflow:clip}}.aeb-form-field textarea.aeb-input::-webkit-scrollbar{width:16px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-thumb{border:6px solid rgba(0,0,0,0);background-color:var(--color-blue-soft);background-clip:padding-box;border-radius:9999px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-corner{background-color:transparent}.aeb-form-field textarea.aeb-input::-webkit-resizer{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI1IiB2aWV3Qm94PSIwIDAgNSA1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iTTMuMjc5NTMgNC44Mzg1NkMzLjA2NDI3IDUuMDUzODEgMi43MTUyNyA1LjA1MzgxIDIuNTAwMDEgNC44Mzg1NkMyLjI4NDc1IDQuNjIzMyAyLjI4NDc1IDQuMjc0MyAyLjUwMDAxIDQuMDU5MDVMNC4wNTkwNCAyLjUwMDAzQzQuMjc0MyAyLjI4NDc3IDQuNjIzMyAyLjI4NDc3IDQuODM4NTYgMi41MDAwM0M1LjA1MzgxIDIuNzE1MjggNS4wNTM4MSAzLjA2NDI4IDQuODM4NTYgMy4yNzk1NEwzLjI3OTUzIDQuODM4NTZaIiBmaWxsPSIjM0I0MDRBIi8+DQo8cGF0aCBkPSJNMC45NDA5NTkgNC4wNTlDMC43MjU3MDIgNC4yNzQyNSAwLjM3NjcgNC4yNzQyNSAwLjE2MTQ0MyA0LjA1OUMtMC4wNTM4MTQzIDMuODQzNzQgLTAuMDUzODE0NCAzLjQ5NDc0IDAuMTYxNDQzIDMuMjc5NDlMMy4yNzk1MSAwLjE2MTQ0MkMzLjQ5NDc2IC0wLjA1MzgxNCAzLjg0Mzc2IC0wLjA1MzgxNCA0LjA1OTAyIDAuMTYxNDQyQzQuMjc0MjggMC4zNzY2OTggNC4yNzQyOCAwLjcyNTY5NyA0LjA1OTAyIDAuOTQwOTUzTDAuOTQwOTU5IDQuMDU5WiIgZmlsbD0iIzNCNDA0QSIvPg0KPC9zdmc+DQo=);background-repeat:no-repeat;background-position:center}.aeb-form-field .aeb-label{display:inline-block;position:absolute;top:0;left:16px;max-width:calc(100% - 32px);padding-top:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--font-size-m);pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none}.aeb-form-field.focused .aeb-label,.aeb-form-field.has-value .aeb-label{margin-top:10px;padding:0 4px;line-height:14px;font-size:var(--font-size-xxs);background-color:var(--label-active-background-color);transform:translateY(-1rem)}.aeb-form-field.focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.focused .aeb-label{color:var(--label-color-active)}.aeb-form-field.has-icon .aeb-input{padding:16px 38px 16px 14px}.aeb-form-field.has-icon .aeb-label{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}body.dark .aeb-form-field,body.sd-dark .aeb-form-field{--border-color-default: var(--gray-primary-dark-theme);--border-color-active: var(--blue-primary-dark-theme);--border-color-disabled: var(--gray-primary-dark-theme);--border-color-error: var(--color-red-neutral);--label-color-default: var(--gray-primary-dark-theme);--label-color-active: var(--blue-primary-dark-theme);--label-color-disabled: var(--gray-primary-dark-theme);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--darkblue-primary-dark-theme);--input-text-color-default: var(--color-mono-clear);--input-text-color-disabled: var(--gray-primary-dark-theme);--error-text-color: var(--color-red-neutral)}\n"] }]
|
|
559
|
+
}], propDecorators: { formField: [{
|
|
568
560
|
type: ContentChild,
|
|
569
|
-
args: [
|
|
561
|
+
args: [FormFieldDirective]
|
|
570
562
|
}], class: [{
|
|
571
563
|
type: HostBinding,
|
|
572
564
|
args: ['class']
|
|
573
|
-
}],
|
|
574
|
-
type: HostBinding,
|
|
575
|
-
args: ['class.center']
|
|
576
|
-
}, {
|
|
565
|
+
}], isInvalid: [{
|
|
577
566
|
type: Input
|
|
578
|
-
}],
|
|
567
|
+
}], showIcon: [{
|
|
568
|
+
type: Input
|
|
569
|
+
}], showErrorMessage: [{
|
|
570
|
+
type: Input
|
|
571
|
+
}], disabled: [{
|
|
579
572
|
type: Input
|
|
580
|
-
}], cssMod: [{
|
|
581
|
-
type: Input,
|
|
582
|
-
args: ['cssMod']
|
|
583
573
|
}], focused: [{
|
|
584
574
|
type: HostBinding,
|
|
585
575
|
args: ['class.focused']
|
|
586
|
-
}], svoi: [{
|
|
587
|
-
type: HostBinding,
|
|
588
|
-
args: ['class.aeb-form-field--svoi']
|
|
589
576
|
}], hasValue: [{
|
|
590
577
|
type: HostBinding,
|
|
591
578
|
args: ['class.has-value']
|
|
592
579
|
}], error: [{
|
|
593
580
|
type: HostBinding,
|
|
594
581
|
args: ['class.error']
|
|
582
|
+
}], isDisabled: [{
|
|
583
|
+
type: HostBinding,
|
|
584
|
+
args: ['class.disabled']
|
|
585
|
+
}], hasIcon: [{
|
|
586
|
+
type: HostBinding,
|
|
587
|
+
args: ['class.has-icon']
|
|
595
588
|
}] } });
|
|
596
589
|
|
|
597
590
|
class IconDirective {
|
|
598
591
|
constructor() { }
|
|
599
592
|
}
|
|
600
593
|
IconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
601
|
-
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: IconDirective, selector: "[
|
|
594
|
+
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: IconDirective, selector: "[aebIcon]", ngImport: i0 });
|
|
602
595
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: IconDirective, decorators: [{
|
|
603
596
|
type: Directive,
|
|
604
597
|
args: [{
|
|
605
|
-
selector: '[
|
|
598
|
+
selector: '[aebIcon]'
|
|
606
599
|
}]
|
|
607
600
|
}], ctorParameters: function () { return []; } });
|
|
608
601
|
|
|
@@ -622,32 +615,32 @@ class FormFieldModule {
|
|
|
622
615
|
}
|
|
623
616
|
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
624
617
|
FormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, declarations: [FormFieldComponent,
|
|
618
|
+
FormFieldDirective,
|
|
625
619
|
LabelDirective,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
620
|
+
IconDirective,
|
|
621
|
+
ErrorMessageDirective], imports: [CommonModule], exports: [FormFieldComponent,
|
|
622
|
+
FormFieldDirective,
|
|
629
623
|
LabelDirective,
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
IconDirective] });
|
|
624
|
+
IconDirective,
|
|
625
|
+
ErrorMessageDirective] });
|
|
633
626
|
FormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, imports: [CommonModule] });
|
|
634
627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, decorators: [{
|
|
635
628
|
type: NgModule,
|
|
636
629
|
args: [{
|
|
637
630
|
declarations: [
|
|
638
631
|
FormFieldComponent,
|
|
632
|
+
FormFieldDirective,
|
|
639
633
|
LabelDirective,
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
IconDirective
|
|
634
|
+
IconDirective,
|
|
635
|
+
ErrorMessageDirective
|
|
643
636
|
],
|
|
644
637
|
imports: [CommonModule],
|
|
645
638
|
exports: [
|
|
646
639
|
FormFieldComponent,
|
|
640
|
+
FormFieldDirective,
|
|
647
641
|
LabelDirective,
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
IconDirective
|
|
642
|
+
IconDirective,
|
|
643
|
+
ErrorMessageDirective
|
|
651
644
|
]
|
|
652
645
|
}]
|
|
653
646
|
}] });
|
|
@@ -759,10 +752,10 @@ class NewButtonComponent {
|
|
|
759
752
|
}
|
|
760
753
|
}
|
|
761
754
|
NewButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
762
|
-
NewButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NewButtonComponent, selector: "aeb-new-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-button": "this.isButton", "class.aeb-button-primary": "this.isPrimary", "class.aeb-button-solid": "this.isSolid", "class.aeb-button--fill": "this.isFill", "class.aeb-button-solid--disabled": "this.isSolidDisabled", "class.aeb-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-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-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;height:56px;font-size:var(--font-size-m);white-space:nowrap;
|
|
755
|
+
NewButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NewButtonComponent, selector: "aeb-new-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-button": "this.isButton", "class.aeb-button-primary": "this.isPrimary", "class.aeb-button-solid": "this.isSolid", "class.aeb-button--fill": "this.isFill", "class.aeb-button-solid--disabled": "this.isSolidDisabled", "class.aeb-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-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-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-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-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--color-blue-brand);background:var(--white);border:var(--border-skinny) solid var(--color-blue-brand)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:var(--border-skinny) solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}@media (hover: hover){.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-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-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-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-button-solid:focus{outline:none}@media (hover: hover){.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--color-mono-clear);background:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-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 });
|
|
763
756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, decorators: [{
|
|
764
757
|
type: Component,
|
|
765
|
-
args: [{ selector: 'aeb-new-button', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-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-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;height:56px;font-size:var(--font-size-m);white-space:nowrap;
|
|
758
|
+
args: [{ selector: 'aeb-new-button', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-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-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-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-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--color-blue-brand);background:var(--white);border:var(--border-skinny) solid var(--color-blue-brand)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:var(--border-skinny) solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}@media (hover: hover){.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-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-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-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-button-solid:focus{outline:none}@media (hover: hover){.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--color-mono-clear);background:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}}.aeb-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"] }]
|
|
766
759
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { label: [{
|
|
767
760
|
type: Input
|
|
768
761
|
}], fill: [{
|
|
@@ -1107,7 +1100,7 @@ class CommentComponent {
|
|
|
1107
1100
|
}
|
|
1108
1101
|
}
|
|
1109
1102
|
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 });
|
|
1110
|
-
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: ["center", "onError", "cssMod"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "directive", type: InputDirective, selector: "input[aebInput]", inputs: ["value"] }, { kind: "directive", type: TextareaDirective, selector: "textarea[aebTextarea]", inputs: ["value"] }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1103
|
+
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 });
|
|
1111
1104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommentComponent, decorators: [{
|
|
1112
1105
|
type: Component,
|
|
1113
1106
|
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-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"] }]
|
|
@@ -2140,7 +2133,7 @@ DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
2140
2133
|
useExisting: forwardRef(() => DatepickerComponent),
|
|
2141
2134
|
multi: true
|
|
2142
2135
|
}
|
|
2143
|
-
], viewQueries: [{ propertyName: "core", first: true, predicate: ["core"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <aeb-label class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </aeb-label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#27303E\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#27303E\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{ 'aeb-datepicker-core--disabled': !isOpen }\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-brand-dark)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative}.aeb-datepicker__field--onerror .aeb-datepicker__input{color:var(--color-red-neutral)!important;border:var(--border-skinny) solid var(--color-red-neutral)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--color-red-neutral)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;z-index:100;cursor:pointer}.aeb-datepicker-core{position:fixed}.aeb-datepicker-core--disabled{pointer-events:none;opacity:var(--100-total)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["
|
|
2136
|
+
], viewQueries: [{ propertyName: "core", first: true, predicate: ["core"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <aeb-label class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </aeb-label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#27303E\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#27303E\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{ 'aeb-datepicker-core--disabled': !isOpen }\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-brand-dark)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative}.aeb-datepicker__field--onerror .aeb-datepicker__input{color:var(--color-red-neutral)!important;border:var(--border-skinny) solid var(--color-red-neutral)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--color-red-neutral)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;z-index:100;cursor:pointer}.aeb-datepicker-core{position:fixed}.aeb-datepicker-core--disabled{pointer-events:none;opacity:var(--100-total)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "component", type: DatepickerCoreComponent, selector: "aeb-datepicker-core", inputs: ["date", "minDate", "maxDate", "excludedDates", "minYear", "maxYear", "withBackground", "align", "withoutDays"], outputs: ["dateChange", "woDaysMonth", "woDaysYear", "woDaysMonthSubInc"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2144
2137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
2145
2138
|
type: Component,
|
|
2146
2139
|
args: [{ selector: 'aeb-datepicker', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2419,7 +2412,7 @@ DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
2419
2412
|
useExisting: forwardRef(() => DropdownComponent),
|
|
2420
2413
|
multi: true
|
|
2421
2414
|
}
|
|
2422
|
-
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "inputField", first: true, predicate: ["inputField"], descendants: true }, { propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }, { propertyName: "option", predicate: ["option"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-dropdown--on-error': hasError,\n 'aeb-dropdown--disabled': disabled\n }\"\n (keyup.enter)=\"clickInput()\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--isOpen': isOpen\n }\"\n (click)=\"clickInput()\"\n #input\n (keyup.arrowdown)=\"arrowHandler('down', -1)\"\n >\n <aeb-form-field #field>\n <aeb-label>{{ label }}</aeb-label>\n <input\n #inputField\n aebInput\n type=\"text\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n [(ngModel)]=\"value\"\n (focus)=\"clickInput()\"\n />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--isOpen': isOpen\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.85718 9.42854L12 14.5714L17.1429 9.42854\"\n stroke=\"#94A8BE\"\n stroke-width=\"1.6\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n <ul *ngIf=\"isOpen\" class=\"aeb-dropdown__items\">\n <li\n #option\n *ngFor=\"let option of viewOptions; let i = index\"\n tabindex=\"0\"\n class=\"aeb-dropdown__option\"\n (click)=\"selectHandler(option)\"\n (keydown.enter)=\"selectHandler(option)\"\n (keyup.arrowdown)=\"arrowHandler('down', i)\"\n (keyup.arrowup)=\"arrowHandler('up', i)\"\n (mousemove)=\"mouseHandler('move', i)\"\n (mouseleave)=\"mouseHandler('leave', i)\"\n [ngClass]=\"{ 'aeb-dropdown__option--active': activeOption === i }\"\n [attr.aebDropdownOptionIndex]=\"i\"\n >\n {{ option.label }}\n </li>\n </ul>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown--disabled{pointer-events:none;opacity:var(--50-medium)}.aeb-dropdown--on-error .aeb-input{border-color:var(--color-red-neutral)!important}.aeb-dropdown--on-error .aeb-label{color:var(--color-red-neutral)!important}.aeb-dropdown--on-error .aeb-dropdown__icon svg path{stroke:var(--color-red-neutral)}.aeb-dropdown__input-wrapper{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:calc(50% - 12px);right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--isOpen svg{transform:rotate(180deg)}.aeb-dropdown__input--isOpen .aeb-input{border:var(--border-skinny) solid var(--color-blue-brand)!important}.aeb-dropdown__input--lock .aeb-label{font-size:var(--font-size-xxs)!important;transform:translateY(calc(var(--input-height) / -2 - 50%))!important}.aeb-dropdown__items{position:absolute;top:calc(100% - 8px);z-index:1;box-sizing:border-box;width:100%;padding-top:8px;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-clear);border:var(--border-skinny) solid var(--color-blue-brand);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--lightblue)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-clear);background-color:var(--color-mono-darker)}body.dark .aeb-dropdown__items{background-color:var(--color-mono-darker)}body.dark .aeb-dropdown__option{color:var(--color-mono-clear)}body.dark .aeb-dropdown__option--active{background-color:var(--color-mono-brand-dark)}\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: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["
|
|
2415
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "inputField", first: true, predicate: ["inputField"], descendants: true }, { propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }, { propertyName: "option", predicate: ["option"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-dropdown--on-error': hasError,\n 'aeb-dropdown--disabled': disabled\n }\"\n (keyup.enter)=\"clickInput()\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--isOpen': isOpen\n }\"\n (click)=\"clickInput()\"\n #input\n (keyup.arrowdown)=\"arrowHandler('down', -1)\"\n >\n <aeb-form-field #field>\n <aeb-label>{{ label }}</aeb-label>\n <input\n #inputField\n aebInput\n type=\"text\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n [(ngModel)]=\"value\"\n (focus)=\"clickInput()\"\n />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--isOpen': isOpen\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.85718 9.42854L12 14.5714L17.1429 9.42854\"\n stroke=\"#94A8BE\"\n stroke-width=\"1.6\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n <ul *ngIf=\"isOpen\" class=\"aeb-dropdown__items\">\n <li\n #option\n *ngFor=\"let option of viewOptions; let i = index\"\n tabindex=\"0\"\n class=\"aeb-dropdown__option\"\n (click)=\"selectHandler(option)\"\n (keydown.enter)=\"selectHandler(option)\"\n (keyup.arrowdown)=\"arrowHandler('down', i)\"\n (keyup.arrowup)=\"arrowHandler('up', i)\"\n (mousemove)=\"mouseHandler('move', i)\"\n (mouseleave)=\"mouseHandler('leave', i)\"\n [ngClass]=\"{ 'aeb-dropdown__option--active': activeOption === i }\"\n [attr.aebDropdownOptionIndex]=\"i\"\n >\n {{ option.label }}\n </li>\n </ul>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown--disabled{pointer-events:none;opacity:var(--50-medium)}.aeb-dropdown--on-error .aeb-input{border-color:var(--color-red-neutral)!important}.aeb-dropdown--on-error .aeb-label{color:var(--color-red-neutral)!important}.aeb-dropdown--on-error .aeb-dropdown__icon svg path{stroke:var(--color-red-neutral)}.aeb-dropdown__input-wrapper{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:calc(50% - 12px);right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--isOpen svg{transform:rotate(180deg)}.aeb-dropdown__input--isOpen .aeb-input{border:var(--border-skinny) solid var(--color-blue-brand)!important}.aeb-dropdown__input--lock .aeb-label{font-size:var(--font-size-xxs)!important;transform:translateY(calc(var(--input-height) / -2 - 50%))!important}.aeb-dropdown__items{position:absolute;top:calc(100% - 8px);z-index:1;box-sizing:border-box;width:100%;padding-top:8px;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-clear);border:var(--border-skinny) solid var(--color-blue-brand);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--lightblue)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-clear);background-color:var(--color-mono-darker)}body.dark .aeb-dropdown__items{background-color:var(--color-mono-darker)}body.dark .aeb-dropdown__option{color:var(--color-mono-clear)}body.dark .aeb-dropdown__option--active{background-color:var(--color-mono-brand-dark)}\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: "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: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2423
2416
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2424
2417
|
type: Component,
|
|
2425
2418
|
args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2688,7 +2681,7 @@ FieldSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
2688
2681
|
useExisting: forwardRef(() => FieldSliderComponent),
|
|
2689
2682
|
multi: true
|
|
2690
2683
|
}
|
|
2691
|
-
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<div class=\"field-slider\">\n <aeb-form-field class=\"field-slider__field-wrapper\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n #input\n aebInput\n aebNumbersOnly\n type=\"string\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"updateDisplayValue()\"\n />\n </aeb-form-field>\n <div class=\"field-slider__line-wrapper\" #slider>\n <div class=\"field-slider__line\">\n <div\n class=\"field-slider__line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n </div>\n <div class=\"field-slider__limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n </div>\n</div>\n", styles: [".field-slider{display:flex;flex-direction:column;align-items:center;width:100%;color:var(--color-mono-brand-dark)}.field-slider__field-wrapper{width:100%}.field-slider__field-wrapper input:focus{outline:none}.field-slider__line-wrapper{display:flex;align-items:center;width:calc(100% - 20px)}.field-slider__line{position:relative;top:-2px;width:100%;height:2px;background-color:var(--gray-primary);border-radius:2px}.field-slider__line-position{position:absolute;top:-2px;left:0;width:100%;height:calc(100% + 2px);background-color:var(--color-blue-brand);border-radius:2px}.field-slider__line-position:hover{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:hover:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:after{position:absolute;top:-3px;right:0;width:10px;height:10px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.field-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["
|
|
2684
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<div class=\"field-slider\">\n <aeb-form-field class=\"field-slider__field-wrapper\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n #input\n aebInput\n aebNumbersOnly\n type=\"string\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"updateDisplayValue()\"\n />\n </aeb-form-field>\n <div class=\"field-slider__line-wrapper\" #slider>\n <div class=\"field-slider__line\">\n <div\n class=\"field-slider__line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n </div>\n <div class=\"field-slider__limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n </div>\n</div>\n", styles: [".field-slider{display:flex;flex-direction:column;align-items:center;width:100%;color:var(--color-mono-brand-dark)}.field-slider__field-wrapper{width:100%}.field-slider__field-wrapper input:focus{outline:none}.field-slider__line-wrapper{display:flex;align-items:center;width:calc(100% - 20px)}.field-slider__line{position:relative;top:-2px;width:100%;height:2px;background-color:var(--gray-primary);border-radius:2px}.field-slider__line-position{position:absolute;top:-2px;left:0;width:100%;height:calc(100% + 2px);background-color:var(--color-blue-brand);border-radius:2px}.field-slider__line-position:hover{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:hover:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:after{position:absolute;top:-3px;right:0;width:10px;height:10px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.field-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NumbersOnlyDirective, selector: "[aebNumbersOnly]" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: ReplacePipe$1, name: "replace" }], encapsulation: i0.ViewEncapsulation.None });
|
|
2692
2685
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderComponent, decorators: [{
|
|
2693
2686
|
type: Component,
|
|
2694
2687
|
args: [{ selector: 'aeb-field-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2840,10 +2833,10 @@ class FileAttachComponent {
|
|
|
2840
2833
|
}
|
|
2841
2834
|
}
|
|
2842
2835
|
FileAttachComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2843
|
-
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%232F88F0%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");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 });
|
|
2836
|
+
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 });
|
|
2844
2837
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileAttachComponent, decorators: [{
|
|
2845
2838
|
type: Component,
|
|
2846
|
-
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%232F88F0%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");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"] }]
|
|
2839
|
+
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"] }]
|
|
2847
2840
|
}], propDecorators: { title: [{
|
|
2848
2841
|
type: Input
|
|
2849
2842
|
}], documentList: [{
|
|
@@ -4307,7 +4300,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
4307
4300
|
useExisting: forwardRef(() => SliderComponent),
|
|
4308
4301
|
multi: true
|
|
4309
4302
|
}
|
|
4310
|
-
], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<div class=\"slider\" [ngStyle]=\"{ marginBottom: isEditable ? '0' : '20px' }\">\n <ng-container *ngIf=\"!isEditable\">\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">\n {{ value | number : \"1.0-0\" | replace : \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </ng-container>\n</div>\n\n<aeb-form-field *ngIf=\"isEditable\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n type=\"number\"\n aebInput\n (input)=\"inputHandler($event)\"\n (blur)=\"onInputBlur()\"\n [(ngModel)]=\"value\"\n />\n</aeb-form-field>\n\n<div\n class=\"slider-line-wrapper\"\n [ngStyle]=\"{ height: isEditable ? '0' : '20px' }\"\n #slider\n>\n <div\n class=\"slider-line\"\n [ngStyle]=\"{\n width: isEditable ? '98%' : '100%',\n backgroundColor: isEditable ? 'transparent' : 'var(--lightgray)'\n }\"\n >\n <div\n class=\"slider-line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"slider-limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n</div>\n", styles: [".slider{display:flex;align-content:center;justify-content:space-between;color:var(--color-mono-brand-dark)}.label{font-size:var(--font-size-s);line-height:20px;color:var(--gray)}.value{font-size:var(--font-size-md);font-weight:700;color:var(--color-mono-brand-dark)}.slider-line-wrapper{display:flex;justify-content:center;align-items:center;width:100%}.slider-line{position:relative;width:100%;height:4px;border-radius:2px}.slider-line-position{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-brand);border-radius:2px}.slider-line-position:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.slider-line-position:hover{background-color:var(--color-turquoise-neutral)}.slider-line-position:hover:after{background-color:var(--color-turquoise-neutral)}.slider-line-position.pressed:after{top:-11px;right:-13px;width:26px;height:26px;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.slider-line-position.pressed{background-color:var(--color-turquoise-neutral)}.slider-limits{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray)}\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"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["
|
|
4303
|
+
], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<div class=\"slider\" [ngStyle]=\"{ marginBottom: isEditable ? '0' : '20px' }\">\n <ng-container *ngIf=\"!isEditable\">\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">\n {{ value | number : \"1.0-0\" | replace : \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </ng-container>\n</div>\n\n<aeb-form-field *ngIf=\"isEditable\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n type=\"number\"\n aebInput\n (input)=\"inputHandler($event)\"\n (blur)=\"onInputBlur()\"\n [(ngModel)]=\"value\"\n />\n</aeb-form-field>\n\n<div\n class=\"slider-line-wrapper\"\n [ngStyle]=\"{ height: isEditable ? '0' : '20px' }\"\n #slider\n>\n <div\n class=\"slider-line\"\n [ngStyle]=\"{\n width: isEditable ? '98%' : '100%',\n backgroundColor: isEditable ? 'transparent' : 'var(--lightgray)'\n }\"\n >\n <div\n class=\"slider-line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"slider-limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n</div>\n", styles: [".slider{display:flex;align-content:center;justify-content:space-between;color:var(--color-mono-brand-dark)}.label{font-size:var(--font-size-s);line-height:20px;color:var(--gray)}.value{font-size:var(--font-size-md);font-weight:700;color:var(--color-mono-brand-dark)}.slider-line-wrapper{display:flex;justify-content:center;align-items:center;width:100%}.slider-line{position:relative;width:100%;height:4px;border-radius:2px}.slider-line-position{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-brand);border-radius:2px}.slider-line-position:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.slider-line-position:hover{background-color:var(--color-turquoise-neutral)}.slider-line-position:hover:after{background-color:var(--color-turquoise-neutral)}.slider-line-position.pressed:after{top:-11px;right:-13px;width:26px;height:26px;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.slider-line-position.pressed{background-color:var(--color-turquoise-neutral)}.slider-limits{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray)}\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"] }, { 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: "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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: ReplacePipe, name: "replace" }], encapsulation: i0.ViewEncapsulation.None });
|
|
4311
4304
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderComponent, decorators: [{
|
|
4312
4305
|
type: Component,
|
|
4313
4306
|
args: [{ selector: 'aeb-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -5245,5 +5238,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5245
5238
|
* Generated bundle index. Do not edit.
|
|
5246
5239
|
*/
|
|
5247
5240
|
|
|
5248
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective,
|
|
5241
|
+
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, 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, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, 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 };
|
|
5249
5242
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|