aeb-ui-kit 3.1.0-preview.622 → 3.1.0-preview.626
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/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/slider/slider.component.mjs +3 -3
- package/esm2020/public-api.mjs +3 -3
- package/fesm2015/aeb-ui-kit.mjs +150 -156
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +147 -154
- 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/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/fesm2015/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 {
|
|
@@ -376,94 +376,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
376
376
|
}]
|
|
377
377
|
}] });
|
|
378
378
|
|
|
379
|
-
class
|
|
380
|
-
constructor(
|
|
381
|
-
this._parentForm = _parentForm;
|
|
382
|
-
this._parentFormGroup = _parentFormGroup;
|
|
383
|
-
this.ngControl = ngControl;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
class InputDirective extends MatInputBase$1 {
|
|
387
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
388
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
389
|
-
this.ngControl = ngControl;
|
|
390
|
-
this.class = 'aeb-input';
|
|
391
|
-
this.error = false;
|
|
392
|
-
this._value = '';
|
|
393
|
-
}
|
|
394
|
-
get value() {
|
|
395
|
-
return this._value;
|
|
396
|
-
}
|
|
397
|
-
set value(value) {
|
|
398
|
-
this.isHasValue = Boolean(value);
|
|
399
|
-
this._value = value;
|
|
400
|
-
}
|
|
401
|
-
change(value) {
|
|
402
|
-
this.value = value;
|
|
403
|
-
}
|
|
404
|
-
focus() {
|
|
405
|
-
this.isFocused = true;
|
|
406
|
-
}
|
|
407
|
-
blur() {
|
|
408
|
-
this.isFocused = false;
|
|
409
|
-
}
|
|
379
|
+
class ErrorMessageDirective {
|
|
380
|
+
constructor() { }
|
|
410
381
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
382
|
+
ErrorMessageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ErrorMessageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
383
|
+
ErrorMessageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ErrorMessageDirective, selector: "[errorMessage]", ngImport: i0 });
|
|
384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ErrorMessageDirective, decorators: [{
|
|
414
385
|
type: Directive,
|
|
415
386
|
args: [{
|
|
416
|
-
selector: '
|
|
387
|
+
selector: '[errorMessage]'
|
|
417
388
|
}]
|
|
418
|
-
}], ctorParameters: function () {
|
|
419
|
-
return [{ type: i1$1.NgControl, decorators: [{
|
|
420
|
-
type: Optional
|
|
421
|
-
}, {
|
|
422
|
-
type: Self
|
|
423
|
-
}] }, { type: i1$1.NgForm, decorators: [{
|
|
424
|
-
type: Optional
|
|
425
|
-
}] }, { type: i1$1.FormGroupDirective, decorators: [{
|
|
426
|
-
type: Optional
|
|
427
|
-
}] }];
|
|
428
|
-
}, propDecorators: { class: [{
|
|
429
|
-
type: HostBinding,
|
|
430
|
-
args: ['class']
|
|
431
|
-
}], error: [{
|
|
432
|
-
type: HostBinding,
|
|
433
|
-
args: ['attr.error']
|
|
434
|
-
}], value: [{
|
|
435
|
-
type: Input
|
|
436
|
-
}], change: [{
|
|
437
|
-
type: HostListener,
|
|
438
|
-
args: ['input', ['$event.target.value']]
|
|
439
|
-
}], focus: [{
|
|
440
|
-
type: HostListener,
|
|
441
|
-
args: ['focus']
|
|
442
|
-
}], blur: [{
|
|
443
|
-
type: HostListener,
|
|
444
|
-
args: ['blur']
|
|
445
|
-
}] } });
|
|
389
|
+
}], ctorParameters: function () { return []; } });
|
|
446
390
|
|
|
447
|
-
class
|
|
448
|
-
constructor(
|
|
449
|
-
this._parentForm = _parentForm;
|
|
450
|
-
this._parentFormGroup = _parentFormGroup;
|
|
451
|
-
this.ngControl = ngControl;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
class TextareaDirective extends MatInputBase {
|
|
455
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
456
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
391
|
+
class FormFieldDirective {
|
|
392
|
+
constructor(ngControl, elementRef) {
|
|
457
393
|
this.ngControl = ngControl;
|
|
394
|
+
this.elementRef = elementRef;
|
|
458
395
|
this.class = 'aeb-input';
|
|
459
|
-
this.
|
|
396
|
+
this.isFocused = false;
|
|
397
|
+
this.hasValue = false;
|
|
460
398
|
this._value = '';
|
|
461
399
|
}
|
|
400
|
+
get isDisabled() {
|
|
401
|
+
var _a;
|
|
402
|
+
if (this.ngControl) {
|
|
403
|
+
return ((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.disabled) || null;
|
|
404
|
+
}
|
|
405
|
+
else if (this.elementRef.nativeElement) {
|
|
406
|
+
return (this.elementRef.nativeElement
|
|
407
|
+
.disabled || null);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
462
410
|
get value() {
|
|
463
411
|
return this._value;
|
|
464
412
|
}
|
|
465
413
|
set value(value) {
|
|
466
|
-
this.
|
|
414
|
+
this.hasValue = Boolean(value);
|
|
467
415
|
this._value = value;
|
|
468
416
|
}
|
|
469
417
|
change(value) {
|
|
@@ -475,30 +423,42 @@ class TextareaDirective extends MatInputBase {
|
|
|
475
423
|
blur() {
|
|
476
424
|
this.isFocused = false;
|
|
477
425
|
}
|
|
426
|
+
disable() {
|
|
427
|
+
if (this.ngControl) {
|
|
428
|
+
this.ngControl.control.disable();
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
this.elementRef.nativeElement.disabled = true;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
enable() {
|
|
435
|
+
if (this.ngControl) {
|
|
436
|
+
this.ngControl.control.enable();
|
|
437
|
+
}
|
|
438
|
+
else {
|
|
439
|
+
this.elementRef.nativeElement.disabled = false;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
478
442
|
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
|
443
|
+
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 });
|
|
444
|
+
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 });
|
|
445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldDirective, decorators: [{
|
|
482
446
|
type: Directive,
|
|
483
447
|
args: [{
|
|
484
|
-
selector: 'textarea[aebTextarea]'
|
|
448
|
+
selector: 'input[aebInput], textarea[aebTextarea]'
|
|
485
449
|
}]
|
|
486
450
|
}], ctorParameters: function () {
|
|
487
451
|
return [{ type: i1$1.NgControl, decorators: [{
|
|
488
452
|
type: Optional
|
|
489
453
|
}, {
|
|
490
454
|
type: Self
|
|
491
|
-
}] }, { type:
|
|
492
|
-
type: Optional
|
|
493
|
-
}] }, { type: i1$1.FormGroupDirective, decorators: [{
|
|
494
|
-
type: Optional
|
|
495
|
-
}] }];
|
|
455
|
+
}] }, { type: i0.ElementRef }];
|
|
496
456
|
}, propDecorators: { class: [{
|
|
497
457
|
type: HostBinding,
|
|
498
458
|
args: ['class']
|
|
499
|
-
}],
|
|
459
|
+
}], isDisabled: [{
|
|
500
460
|
type: HostBinding,
|
|
501
|
-
args: ['attr.
|
|
461
|
+
args: ['attr.disabled']
|
|
502
462
|
}], value: [{
|
|
503
463
|
type: Input
|
|
504
464
|
}], change: [{
|
|
@@ -515,99 +475,133 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
515
475
|
class FormFieldComponent {
|
|
516
476
|
constructor() {
|
|
517
477
|
this.class = 'aeb-form-field';
|
|
518
|
-
this.
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
478
|
+
this.isInvalid = false;
|
|
479
|
+
this.showIcon = true;
|
|
480
|
+
this.showErrorMessage = true;
|
|
481
|
+
this._isDisabled = false;
|
|
482
|
+
}
|
|
483
|
+
set disabled(value) {
|
|
484
|
+
this._isDisabled = value;
|
|
485
|
+
if (this.formField === undefined) {
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (value) {
|
|
489
|
+
this.formField.disable();
|
|
523
490
|
}
|
|
524
491
|
else {
|
|
525
|
-
|
|
492
|
+
this.formField.enable();
|
|
526
493
|
}
|
|
527
494
|
}
|
|
528
|
-
get
|
|
529
|
-
return this.
|
|
495
|
+
get disabled() {
|
|
496
|
+
return this._isDisabled;
|
|
530
497
|
}
|
|
531
|
-
get
|
|
532
|
-
if (this.
|
|
533
|
-
|
|
534
|
-
return Boolean(this.input.ngControl.value);
|
|
535
|
-
}
|
|
536
|
-
return this.input.isHasValue;
|
|
498
|
+
get focused() {
|
|
499
|
+
if (this.formField) {
|
|
500
|
+
return this.formField.isFocused;
|
|
537
501
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
504
|
+
get hasValue() {
|
|
505
|
+
var _a, _b;
|
|
506
|
+
if ((_a = this.formField) === null || _a === void 0 ? void 0 : _a.ngControl) {
|
|
507
|
+
return Boolean(this.formField.ngControl.value);
|
|
543
508
|
}
|
|
509
|
+
return ((_b = this.formField) === null || _b === void 0 ? void 0 : _b.hasValue) || false;
|
|
544
510
|
}
|
|
545
511
|
get error() {
|
|
546
|
-
|
|
512
|
+
var _a;
|
|
513
|
+
if (this.isInvalid) {
|
|
547
514
|
return true;
|
|
548
515
|
}
|
|
549
|
-
if (this.
|
|
550
|
-
|
|
551
|
-
return this.input.ngControl.invalid && this.input.ngControl.touched;
|
|
552
|
-
}
|
|
553
|
-
return this.input.error;
|
|
516
|
+
if ((_a = this.formField) === null || _a === void 0 ? void 0 : _a.ngControl) {
|
|
517
|
+
return (this.formField.ngControl.invalid && this.formField.ngControl.touched);
|
|
554
518
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
519
|
+
}
|
|
520
|
+
get isDisabled() {
|
|
521
|
+
if (this.disabled) {
|
|
522
|
+
return true;
|
|
523
|
+
}
|
|
524
|
+
if (this.formField) {
|
|
525
|
+
return this.formField.isDisabled;
|
|
560
526
|
}
|
|
561
527
|
}
|
|
562
|
-
|
|
528
|
+
get hasIcon() {
|
|
529
|
+
return this.showIcon;
|
|
530
|
+
}
|
|
531
|
+
get isFocused() {
|
|
532
|
+
if (this.formField) {
|
|
533
|
+
return this.formField.isFocused;
|
|
534
|
+
}
|
|
535
|
+
return false;
|
|
536
|
+
}
|
|
563
537
|
}
|
|
564
538
|
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
565
|
-
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FormFieldComponent, selector: "aeb-form-field", inputs: {
|
|
539
|
+
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{position:relative;display:flex;flex-direction:column;color:var(--color-mono-gray-soft)}.aeb-form-field.error .aeb-input{border-color:var(--color-red-neutral)}.aeb-form-field.error .aeb-label{color:var(--color-red-neutral)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--color-red-neutral);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aeb-form-field.disabled .aeb-input{border:var(--border-skinny) solid var(--color-mono-gray-light);color:var(--color-mono-gray-light)}.aeb-form-field.disabled .aeb-label{color:var(--color-mono-gray-light)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--color-mono-brand-dark);line-height:18px;padding:16px 14px;font-size:var(--font-size-m);border:var(--border-skinny) solid var(--gray-primary);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(--color-mono-clear);transform:translateY(-1rem)}.aeb-form-field.focused .aeb-input{border-color:var(--color-blue-brand)}.aeb-form-field.focused .aeb-label{color:var(--color-blue-brand)}.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}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
|
540
|
+
trigger('showErrorMessageVisibility', [
|
|
541
|
+
state('void', style({
|
|
542
|
+
'font-size': '0'
|
|
543
|
+
})),
|
|
544
|
+
state('visible', style({
|
|
545
|
+
'font-size': 'var(--font-size-xxs)'
|
|
546
|
+
})),
|
|
547
|
+
transition('void => visible', [animate('.1s')]),
|
|
548
|
+
transition('visible => void', [animate('.05s')])
|
|
549
|
+
])
|
|
550
|
+
], encapsulation: i0.ViewEncapsulation.None });
|
|
566
551
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
567
552
|
type: Component,
|
|
568
|
-
args: [{ selector: 'aeb-form-field', encapsulation: ViewEncapsulation.None,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
553
|
+
args: [{ selector: 'aeb-form-field', encapsulation: ViewEncapsulation.None, animations: [
|
|
554
|
+
trigger('showErrorMessageVisibility', [
|
|
555
|
+
state('void', style({
|
|
556
|
+
'font-size': '0'
|
|
557
|
+
})),
|
|
558
|
+
state('visible', style({
|
|
559
|
+
'font-size': 'var(--font-size-xxs)'
|
|
560
|
+
})),
|
|
561
|
+
transition('void => visible', [animate('.1s')]),
|
|
562
|
+
transition('visible => void', [animate('.05s')])
|
|
563
|
+
])
|
|
564
|
+
], 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{position:relative;display:flex;flex-direction:column;color:var(--color-mono-gray-soft)}.aeb-form-field.error .aeb-input{border-color:var(--color-red-neutral)}.aeb-form-field.error .aeb-label{color:var(--color-red-neutral)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--color-red-neutral);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aeb-form-field.disabled .aeb-input{border:var(--border-skinny) solid var(--color-mono-gray-light);color:var(--color-mono-gray-light)}.aeb-form-field.disabled .aeb-label{color:var(--color-mono-gray-light)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--color-mono-brand-dark);line-height:18px;padding:16px 14px;font-size:var(--font-size-m);border:var(--border-skinny) solid var(--gray-primary);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(--color-mono-clear);transform:translateY(-1rem)}.aeb-form-field.focused .aeb-input{border-color:var(--color-blue-brand)}.aeb-form-field.focused .aeb-label{color:var(--color-blue-brand)}.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}\n"] }]
|
|
565
|
+
}], propDecorators: { formField: [{
|
|
573
566
|
type: ContentChild,
|
|
574
|
-
args: [
|
|
567
|
+
args: [FormFieldDirective]
|
|
575
568
|
}], class: [{
|
|
576
569
|
type: HostBinding,
|
|
577
570
|
args: ['class']
|
|
578
|
-
}],
|
|
579
|
-
type: HostBinding,
|
|
580
|
-
args: ['class.center']
|
|
581
|
-
}, {
|
|
571
|
+
}], isInvalid: [{
|
|
582
572
|
type: Input
|
|
583
|
-
}],
|
|
573
|
+
}], showIcon: [{
|
|
574
|
+
type: Input
|
|
575
|
+
}], showErrorMessage: [{
|
|
576
|
+
type: Input
|
|
577
|
+
}], disabled: [{
|
|
584
578
|
type: Input
|
|
585
|
-
}], cssMod: [{
|
|
586
|
-
type: Input,
|
|
587
|
-
args: ['cssMod']
|
|
588
579
|
}], focused: [{
|
|
589
580
|
type: HostBinding,
|
|
590
581
|
args: ['class.focused']
|
|
591
|
-
}], svoi: [{
|
|
592
|
-
type: HostBinding,
|
|
593
|
-
args: ['class.aeb-form-field--svoi']
|
|
594
582
|
}], hasValue: [{
|
|
595
583
|
type: HostBinding,
|
|
596
584
|
args: ['class.has-value']
|
|
597
585
|
}], error: [{
|
|
598
586
|
type: HostBinding,
|
|
599
587
|
args: ['class.error']
|
|
588
|
+
}], isDisabled: [{
|
|
589
|
+
type: HostBinding,
|
|
590
|
+
args: ['class.disabled']
|
|
591
|
+
}], hasIcon: [{
|
|
592
|
+
type: HostBinding,
|
|
593
|
+
args: ['class.has-icon']
|
|
600
594
|
}] } });
|
|
601
595
|
|
|
602
596
|
class IconDirective {
|
|
603
597
|
constructor() { }
|
|
604
598
|
}
|
|
605
599
|
IconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
606
|
-
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: IconDirective, selector: "[
|
|
600
|
+
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: IconDirective, selector: "[aebIcon]", ngImport: i0 });
|
|
607
601
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: IconDirective, decorators: [{
|
|
608
602
|
type: Directive,
|
|
609
603
|
args: [{
|
|
610
|
-
selector: '[
|
|
604
|
+
selector: '[aebIcon]'
|
|
611
605
|
}]
|
|
612
606
|
}], ctorParameters: function () { return []; } });
|
|
613
607
|
|
|
@@ -627,32 +621,32 @@ class FormFieldModule {
|
|
|
627
621
|
}
|
|
628
622
|
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
629
623
|
FormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, declarations: [FormFieldComponent,
|
|
624
|
+
FormFieldDirective,
|
|
630
625
|
LabelDirective,
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
626
|
+
IconDirective,
|
|
627
|
+
ErrorMessageDirective], imports: [CommonModule], exports: [FormFieldComponent,
|
|
628
|
+
FormFieldDirective,
|
|
634
629
|
LabelDirective,
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
IconDirective] });
|
|
630
|
+
IconDirective,
|
|
631
|
+
ErrorMessageDirective] });
|
|
638
632
|
FormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, imports: [CommonModule] });
|
|
639
633
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FormFieldModule, decorators: [{
|
|
640
634
|
type: NgModule,
|
|
641
635
|
args: [{
|
|
642
636
|
declarations: [
|
|
643
637
|
FormFieldComponent,
|
|
638
|
+
FormFieldDirective,
|
|
644
639
|
LabelDirective,
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
IconDirective
|
|
640
|
+
IconDirective,
|
|
641
|
+
ErrorMessageDirective
|
|
648
642
|
],
|
|
649
643
|
imports: [CommonModule],
|
|
650
644
|
exports: [
|
|
651
645
|
FormFieldComponent,
|
|
646
|
+
FormFieldDirective,
|
|
652
647
|
LabelDirective,
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
IconDirective
|
|
648
|
+
IconDirective,
|
|
649
|
+
ErrorMessageDirective
|
|
656
650
|
]
|
|
657
651
|
}]
|
|
658
652
|
}] });
|
|
@@ -1107,7 +1101,7 @@ class CommentComponent {
|
|
|
1107
1101
|
}
|
|
1108
1102
|
}
|
|
1109
1103
|
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 });
|
|
1104
|
+
CommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CommentComponent, selector: "aeb-comment", inputs: { comment: "comment" }, outputs: { response: "response" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], ngImport: i0, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <aeb-new-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-new-button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-brand-dark)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-brand-dark)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-brand);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-brand-dark)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: NewButtonComponent, selector: "aeb-new-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1111
1105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommentComponent, decorators: [{
|
|
1112
1106
|
type: Component,
|
|
1113
1107
|
args: [{ selector: 'aeb-comment', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <aeb-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 +2134,7 @@ DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
2140
2134
|
useExisting: forwardRef(() => DatepickerComponent),
|
|
2141
2135
|
multi: true
|
|
2142
2136
|
}
|
|
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: ["
|
|
2137
|
+
], 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
2138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
2145
2139
|
type: Component,
|
|
2146
2140
|
args: [{ selector: 'aeb-datepicker', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2421,7 +2415,7 @@ DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
2421
2415
|
useExisting: forwardRef(() => DropdownComponent),
|
|
2422
2416
|
multi: true
|
|
2423
2417
|
}
|
|
2424
|
-
], 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: ["
|
|
2418
|
+
], 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 });
|
|
2425
2419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2426
2420
|
type: Component,
|
|
2427
2421
|
args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2690,7 +2684,7 @@ FieldSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
2690
2684
|
useExisting: forwardRef(() => FieldSliderComponent),
|
|
2691
2685
|
multi: true
|
|
2692
2686
|
}
|
|
2693
|
-
], 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: ["
|
|
2687
|
+
], 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 });
|
|
2694
2688
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderComponent, decorators: [{
|
|
2695
2689
|
type: Component,
|
|
2696
2690
|
args: [{ selector: 'aeb-field-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -4309,7 +4303,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
4309
4303
|
useExisting: forwardRef(() => SliderComponent),
|
|
4310
4304
|
multi: true
|
|
4311
4305
|
}
|
|
4312
|
-
], 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: ["
|
|
4306
|
+
], 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 });
|
|
4313
4307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderComponent, decorators: [{
|
|
4314
4308
|
type: Component,
|
|
4315
4309
|
args: [{ selector: 'aeb-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -5247,5 +5241,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5247
5241
|
* Generated bundle index. Do not edit.
|
|
5248
5242
|
*/
|
|
5249
5243
|
|
|
5250
|
-
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,
|
|
5244
|
+
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 };
|
|
5251
5245
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|