aeb-ui-kit 4.0.1-preview.721 → 4.0.1-preview.729
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/button/button.component.mjs +2 -2
- package/esm2020/lib/comment/comment.component.mjs +5 -5
- package/esm2020/lib/datepicker/datepicker.component.mjs +5 -5
- package/esm2020/lib/dropdown/components/dropdown-container/dropdown-container.component.mjs +98 -0
- package/esm2020/lib/dropdown/dropdown.component.mjs +65 -119
- package/esm2020/lib/dropdown/dropdown.module.mjs +4 -3
- package/esm2020/lib/dropdown/dropdown.namespace.mjs +2 -0
- package/esm2020/lib/form-field/{error-message.directive.mjs → directives/error-message.directive.mjs} +2 -3
- package/esm2020/lib/form-field/directives/form-field.directive.mjs +86 -0
- package/esm2020/lib/form-field/directives/icon.directive.mjs +15 -0
- package/esm2020/lib/form-field/directives/label.directive.mjs +15 -0
- package/esm2020/lib/form-field/form-field.component.mjs +9 -9
- package/esm2020/lib/form-field/form-field.module.mjs +5 -5
- package/esm2020/lib/slider/slider.component.mjs +5 -5
- package/esm2020/public-api.mjs +6 -5
- package/fesm2015/aeb-ui-kit.mjs +205 -166
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +205 -164
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/datepicker/datepicker.component.d.ts +1 -1
- package/lib/dropdown/components/dropdown-container/dropdown-container.component.d.ts +28 -0
- package/lib/dropdown/dropdown.component.d.ts +24 -29
- package/lib/dropdown/dropdown.module.d.ts +6 -5
- package/lib/dropdown/dropdown.namespace.d.ts +6 -0
- package/lib/form-field/{error-message.directive.d.ts → directives/error-message.directive.d.ts} +0 -1
- package/lib/form-field/{form-field.directive.d.ts → directives/form-field.directive.d.ts} +1 -1
- package/lib/form-field/{icon.directive.d.ts → directives/icon.directive.d.ts} +2 -2
- package/lib/form-field/directives/label.directive.d.ts +6 -0
- package/lib/form-field/form-field.component.d.ts +2 -2
- package/lib/form-field/form-field.module.d.ts +4 -4
- package/package.json +1 -1
- package/public-api.d.ts +5 -4
- package/esm2020/lib/form-field/form-field.directive.mjs +0 -84
- package/esm2020/lib/form-field/icon.directive.mjs +0 -14
- package/esm2020/lib/form-field/label.directive.mjs +0 -14
- package/lib/form-field/label.directive.d.ts +0 -6
package/fesm2015/aeb-ui-kit.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as i1 from '@angular/common';
|
|
|
4
4
|
import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
6
|
import { NG_VALUE_ACCESSOR, FormsModule, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import { timer, map, takeUntil,
|
|
7
|
+
import { timer, map, takeUntil, Observable, BehaviorSubject, Subscription, withLatestFrom, filter, switchMap, take, startWith, mergeMap, iif, of, tap, Subject, fromEvent } from 'rxjs';
|
|
8
8
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
9
9
|
import * as i2 from '@angular/platform-browser';
|
|
10
10
|
import { provideNgxMask } from 'ngx-mask';
|
|
@@ -96,7 +96,7 @@ class ButtonComponent {
|
|
|
96
96
|
this.showIconLeft = false;
|
|
97
97
|
this.showIconRight = false;
|
|
98
98
|
this.isWarning = false;
|
|
99
|
-
this.size = '
|
|
99
|
+
this.size = 'M';
|
|
100
100
|
this.variant = 'primary';
|
|
101
101
|
this.isButton = true;
|
|
102
102
|
}
|
|
@@ -621,7 +621,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
621
621
|
}] });
|
|
622
622
|
|
|
623
623
|
class ErrorMessageDirective {
|
|
624
|
-
constructor() { }
|
|
625
624
|
}
|
|
626
625
|
ErrorMessageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ErrorMessageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
627
626
|
ErrorMessageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: { errorMessage: "errorMessage" }, ngImport: i0 });
|
|
@@ -630,7 +629,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
630
629
|
args: [{
|
|
631
630
|
selector: '[errorMessage]'
|
|
632
631
|
}]
|
|
633
|
-
}],
|
|
632
|
+
}], propDecorators: { errorMessage: [{
|
|
634
633
|
type: Input
|
|
635
634
|
}] } });
|
|
636
635
|
|
|
@@ -638,7 +637,6 @@ class FormFieldDirective {
|
|
|
638
637
|
constructor(ngControl, elementRef) {
|
|
639
638
|
this.ngControl = ngControl;
|
|
640
639
|
this.elementRef = elementRef;
|
|
641
|
-
this.class = 'aeb-input';
|
|
642
640
|
this.isFocused = false;
|
|
643
641
|
this.hasValue = false;
|
|
644
642
|
this._value = '';
|
|
@@ -669,6 +667,9 @@ class FormFieldDirective {
|
|
|
669
667
|
blur() {
|
|
670
668
|
this.isFocused = false;
|
|
671
669
|
}
|
|
670
|
+
get hostClasses() {
|
|
671
|
+
return ['aeb-input'];
|
|
672
|
+
}
|
|
672
673
|
disable() {
|
|
673
674
|
if (this.ngControl) {
|
|
674
675
|
this.ngControl.control.disable();
|
|
@@ -687,7 +688,7 @@ class FormFieldDirective {
|
|
|
687
688
|
}
|
|
688
689
|
}
|
|
689
690
|
FormFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormFieldDirective, deps: [{ token: i1$1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
690
|
-
FormFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "
|
|
691
|
+
FormFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.disabled": "this.isDisabled", "class": "this.hostClasses" } }, ngImport: i0 });
|
|
691
692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormFieldDirective, decorators: [{
|
|
692
693
|
type: Directive,
|
|
693
694
|
args: [{
|
|
@@ -699,10 +700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
699
700
|
}, {
|
|
700
701
|
type: Self
|
|
701
702
|
}] }, { type: i0.ElementRef }];
|
|
702
|
-
}, propDecorators: {
|
|
703
|
-
type: HostBinding,
|
|
704
|
-
args: ['class']
|
|
705
|
-
}], isDisabled: [{
|
|
703
|
+
}, propDecorators: { isDisabled: [{
|
|
706
704
|
type: HostBinding,
|
|
707
705
|
args: ['attr.disabled']
|
|
708
706
|
}], value: [{
|
|
@@ -716,6 +714,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
716
714
|
}], blur: [{
|
|
717
715
|
type: HostListener,
|
|
718
716
|
args: ['blur']
|
|
717
|
+
}], hostClasses: [{
|
|
718
|
+
type: HostBinding,
|
|
719
|
+
args: ['class']
|
|
720
|
+
}] } });
|
|
721
|
+
|
|
722
|
+
class IconDirective {
|
|
723
|
+
}
|
|
724
|
+
IconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
725
|
+
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: IconDirective, selector: "[aebIcon]", inputs: { aebIcon: "aebIcon" }, ngImport: i0 });
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IconDirective, decorators: [{
|
|
727
|
+
type: Directive,
|
|
728
|
+
args: [{
|
|
729
|
+
selector: '[aebIcon]'
|
|
730
|
+
}]
|
|
731
|
+
}], propDecorators: { aebIcon: [{
|
|
732
|
+
type: Input
|
|
733
|
+
}] } });
|
|
734
|
+
|
|
735
|
+
class LabelDirective {
|
|
736
|
+
}
|
|
737
|
+
LabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
738
|
+
LabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LabelDirective, selector: "[aebLabel]", inputs: { aebLabel: "aebLabel" }, ngImport: i0 });
|
|
739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelDirective, decorators: [{
|
|
740
|
+
type: Directive,
|
|
741
|
+
args: [{
|
|
742
|
+
selector: '[aebLabel]'
|
|
743
|
+
}]
|
|
744
|
+
}], propDecorators: { aebLabel: [{
|
|
745
|
+
type: Input
|
|
719
746
|
}] } });
|
|
720
747
|
|
|
721
748
|
class FormFieldComponent {
|
|
@@ -782,7 +809,7 @@ class FormFieldComponent {
|
|
|
782
809
|
}
|
|
783
810
|
}
|
|
784
811
|
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
785
|
-
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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=\"
|
|
812
|
+
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FormFieldComponent, selector: "aeb-form-field", inputs: { isInvalid: "isInvalid", showIcon: "showIcon", showErrorMessage: "showErrorMessage", disabled: "disabled" }, host: { properties: { "class": "this.class", "class.aeb-form-field--focused": "this.focused", "class.aeb-form-field--has-value": "this.hasValue", "class.aeb-form-field--error": "this.error", "class.aeb-form-field--disabled": "this.isDisabled", "class.aeb-form-field--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=\"[aebLabel]\"></ng-content>\n</div>\n\n<ng-content *ngIf=\"showIcon\" select=\"[aebIcon]\"></ng-content>\n\n<div\n [@showErrorMessageVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n *ngIf=\"showErrorMessage && error && !disabled && !isFocused\"\n class=\"aeb-form-field--error-message\"\n>\n <ng-content select=\"[errorMessage]\"></ng-content>\n</div>\n", styles: [".aeb-form-field{--border-color-default: var(--color-mono-gray-light);--border-color-active: var(--color-blue-brand);--border-color-disabled: var(--color-mono-gray-light);--border-color-error: var(--color-red-neutral);--label-color-default: var(--color-mono-gray-soft);--label-color-active: var(--color-blue-brand);--label-color-disabled: var(--color-mono-gray-light);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--color-mono-clear);--input-text-color-default: var(--color-mono-brand-dark);--input-text-color-disabled: var(--color-mono-gray-light);--error-text-color: var(--color-red-neutral);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.aeb-form-field--error .aeb-input{border-color:var(--border-color-error)}.aeb-form-field.aeb-form-field--error .aeb-label{color:var(--label-color-error)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);overflow-wrap:break-word}.aeb-form-field--error-message:has(*:empty){display:none}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-skinny) solid var(--border-color-disabled);color:var(--input-text-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);line-height:18px;padding:15px 14px;font-size:var(--font-size-m);border:var(--border-skinny) solid var(--border-color-default);border-radius:var(--border-medium-rounded);background:transparent;box-shadow:none;transition:all ease-in-out .2s linear}.aeb-form-field .aeb-input:focus{outline:none}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{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{appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{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:calc(var(--border-skinny) + 15px);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.aeb-form-field--focused .aeb-label,.aeb-form-field.aeb-form-field--has-value .aeb-label{margin-top:10px;padding:0 4px;line-height:14px;font-size:var(--font-size-xxs);background-color:var(--label-active-background-color);transform:translateY(-1rem)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label{color:var(--label-color-active)}.aeb-form-field.aeb-form-field--has-icon .aeb-input{padding-right:38px}.aeb-form-field.aeb-form-field--has-icon .aeb-label{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}body.dark .aeb-form-field,body.sd-dark .aeb-form-field{--border-color-default: var(--gray-primary-dark-theme);--border-color-active: var(--blue-primary-dark-theme);--border-color-disabled: var(--gray-primary-dark-theme);--border-color-error: var(--color-red-neutral);--label-color-default: var(--gray-primary-dark-theme);--label-color-active: var(--blue-primary-dark-theme);--label-color-disabled: var(--gray-primary-dark-theme);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--darkblue-primary-dark-theme);--input-text-color-default: var(--color-mono-clear);--input-text-color-disabled: var(--gray-primary-dark-theme);--error-text-color: var(--color-red-neutral)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
|
786
813
|
trigger('showErrorMessageVisibility', [
|
|
787
814
|
state('void', style({
|
|
788
815
|
'font-size': '0'
|
|
@@ -807,7 +834,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
807
834
|
transition('void => visible', [animate('.1s')]),
|
|
808
835
|
transition('visible => void', [animate('.05s')])
|
|
809
836
|
])
|
|
810
|
-
], template: "<ng-content></ng-content>\n\n<div class=\"aeb-label\">\n <ng-content select=\"
|
|
837
|
+
], template: "<ng-content></ng-content>\n\n<div class=\"aeb-label\">\n <ng-content select=\"[aebLabel]\"></ng-content>\n</div>\n\n<ng-content *ngIf=\"showIcon\" select=\"[aebIcon]\"></ng-content>\n\n<div\n [@showErrorMessageVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n *ngIf=\"showErrorMessage && error && !disabled && !isFocused\"\n class=\"aeb-form-field--error-message\"\n>\n <ng-content select=\"[errorMessage]\"></ng-content>\n</div>\n", styles: [".aeb-form-field{--border-color-default: var(--color-mono-gray-light);--border-color-active: var(--color-blue-brand);--border-color-disabled: var(--color-mono-gray-light);--border-color-error: var(--color-red-neutral);--label-color-default: var(--color-mono-gray-soft);--label-color-active: var(--color-blue-brand);--label-color-disabled: var(--color-mono-gray-light);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--color-mono-clear);--input-text-color-default: var(--color-mono-brand-dark);--input-text-color-disabled: var(--color-mono-gray-light);--error-text-color: var(--color-red-neutral);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.aeb-form-field--error .aeb-input{border-color:var(--border-color-error)}.aeb-form-field.aeb-form-field--error .aeb-label{color:var(--label-color-error)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);overflow-wrap:break-word}.aeb-form-field--error-message:has(*:empty){display:none}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-skinny) solid var(--border-color-disabled);color:var(--input-text-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);line-height:18px;padding:15px 14px;font-size:var(--font-size-m);border:var(--border-skinny) solid var(--border-color-default);border-radius:var(--border-medium-rounded);background:transparent;box-shadow:none;transition:all ease-in-out .2s linear}.aeb-form-field .aeb-input:focus{outline:none}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{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{appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{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:calc(var(--border-skinny) + 15px);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.aeb-form-field--focused .aeb-label,.aeb-form-field.aeb-form-field--has-value .aeb-label{margin-top:10px;padding:0 4px;line-height:14px;font-size:var(--font-size-xxs);background-color:var(--label-active-background-color);transform:translateY(-1rem)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label{color:var(--label-color-active)}.aeb-form-field.aeb-form-field--has-icon .aeb-input{padding-right:38px}.aeb-form-field.aeb-form-field--has-icon .aeb-label{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}body.dark .aeb-form-field,body.sd-dark .aeb-form-field{--border-color-default: var(--gray-primary-dark-theme);--border-color-active: var(--blue-primary-dark-theme);--border-color-disabled: var(--gray-primary-dark-theme);--border-color-error: var(--color-red-neutral);--label-color-default: var(--gray-primary-dark-theme);--label-color-active: var(--blue-primary-dark-theme);--label-color-disabled: var(--gray-primary-dark-theme);--label-color-error: var(--color-red-neutral);--label-active-background-color: var(--darkblue-primary-dark-theme);--input-text-color-default: var(--color-mono-clear);--input-text-color-disabled: var(--gray-primary-dark-theme);--error-text-color: var(--color-red-neutral)}\n"] }]
|
|
811
838
|
}], propDecorators: { formField: [{
|
|
812
839
|
type: ContentChild,
|
|
813
840
|
args: [FormFieldDirective]
|
|
@@ -824,45 +851,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
824
851
|
type: Input
|
|
825
852
|
}], focused: [{
|
|
826
853
|
type: HostBinding,
|
|
827
|
-
args: ['class.focused']
|
|
854
|
+
args: ['class.aeb-form-field--focused']
|
|
828
855
|
}], hasValue: [{
|
|
829
856
|
type: HostBinding,
|
|
830
|
-
args: ['class.has-value']
|
|
857
|
+
args: ['class.aeb-form-field--has-value']
|
|
831
858
|
}], error: [{
|
|
832
859
|
type: HostBinding,
|
|
833
|
-
args: ['class.error']
|
|
860
|
+
args: ['class.aeb-form-field--error']
|
|
834
861
|
}], isDisabled: [{
|
|
835
862
|
type: HostBinding,
|
|
836
|
-
args: ['class.disabled']
|
|
863
|
+
args: ['class.aeb-form-field--disabled']
|
|
837
864
|
}], hasIcon: [{
|
|
838
865
|
type: HostBinding,
|
|
839
|
-
args: ['class.has-icon']
|
|
866
|
+
args: ['class.aeb-form-field--has-icon']
|
|
840
867
|
}] } });
|
|
841
868
|
|
|
842
|
-
class IconDirective {
|
|
843
|
-
constructor() { }
|
|
844
|
-
}
|
|
845
|
-
IconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
846
|
-
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: IconDirective, selector: "[aebIcon]", ngImport: i0 });
|
|
847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IconDirective, decorators: [{
|
|
848
|
-
type: Directive,
|
|
849
|
-
args: [{
|
|
850
|
-
selector: '[aebIcon]'
|
|
851
|
-
}]
|
|
852
|
-
}], ctorParameters: function () { return []; } });
|
|
853
|
-
|
|
854
|
-
class LabelDirective {
|
|
855
|
-
constructor() { }
|
|
856
|
-
}
|
|
857
|
-
LabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
858
|
-
LabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LabelDirective, selector: "aeb-label", ngImport: i0 });
|
|
859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelDirective, decorators: [{
|
|
860
|
-
type: Directive,
|
|
861
|
-
args: [{
|
|
862
|
-
selector: 'aeb-label'
|
|
863
|
-
}]
|
|
864
|
-
}], ctorParameters: function () { return []; } });
|
|
865
|
-
|
|
866
869
|
class FormFieldModule {
|
|
867
870
|
}
|
|
868
871
|
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1347,10 +1350,10 @@ class CommentComponent {
|
|
|
1347
1350
|
}
|
|
1348
1351
|
}
|
|
1349
1352
|
CommentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommentComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1350
|
-
CommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CommentComponent, selector: "aeb-comment", inputs: { comment: "comment" }, outputs: { response: "response" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], ngImport: i0, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <aeb-old-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-old-button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-brand-dark)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-brand-dark)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-brand);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-brand-dark)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: OldButtonComponent, selector: "aeb-old-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1353
|
+
CommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CommentComponent, selector: "aeb-comment", inputs: { comment: "comment" }, outputs: { response: "response" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], ngImport: i0, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <aeb-old-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-old-button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-brand-dark)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-brand-dark)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-brand);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-brand-dark)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TooltipDirective, selector: "[aebTooltip]", inputs: ["tooltip-data", "position", "overflow"], outputs: ["clickOutside"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: OldButtonComponent, selector: "aeb-old-button", inputs: ["label", "fill", "showIcon", "iconSource", "disabledIconSource", "hoveredIconSource", "disabled", "leftIcon", "rightIcon", "size", "tabIndex", "solid"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "component", type: CommentComponent, selector: "aeb-comment", inputs: ["comment"], outputs: ["response"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1351
1354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommentComponent, decorators: [{
|
|
1352
1355
|
type: Component,
|
|
1353
|
-
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 <
|
|
1356
|
+
args: [{ selector: 'aeb-comment', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n alt=\"Avatar\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{ comment.firstName.slice(0, 1) }}{{ comment.lastName.slice(0, 1) }}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{ comment.group }}\n <ng-container *ngIf=\"comment.parentName\">\n <div class=\"aeb-comment__reply-icon\">\n <svg\n width=\"10\"\n height=\"8\"\n viewBox=\"0 0 10 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </div>\n <span class=\"aeb-comment__reply-host\">\n {{ comment.parentName }}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{ comment.fullName }}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\"\n stroke=\"#27303E\"\n />\n <path\n d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\"\n fill=\"#27303E\"\n />\n </svg>\n <div>\n <div class=\"aeb-comment__tooltip\">\n {{ comment.aboutAuthor }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{ comment.title }}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{ comment.content }}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{ comment.date }}\n </div>\n <div class=\"aeb-comment__comment-response\" (click)=\"responseHandler()\">\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <input aebInput type=\"text\" formControlName=\"title\" />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <label aebLabel>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</label>\n <textarea\n aebTextarea\n style=\"height: 140px\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <aeb-old-button\n [label]=\"'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'\"\n (click)=\"submitHandler()\"\n ></aeb-old-button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\u041E\u0442\u0432\u0435\u0442\u044B</div>\n <div class=\"aeb-comment__response-counter\">\n {{ comment.nestedComments.length }}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"\n comment.nestedComments && comment.nestedComments.length && isExpanded\n \"\n >\n <ng-container *ngFor=\"let nestedComment of comment.nestedComments\">\n <aeb-comment\n (response)=\"hoistHandler($event)\"\n [comment]=\"nestedComment\"\n >\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".aeb-comment{display:flex;width:100%;color:var(--color-mono-brand-dark)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--color-blue-brand);border-radius:50%}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{position:relative;bottom:1px;color:var(--color-mono-clear)}.aeb-comment__author-group{display:flex;align-items:center;margin-bottom:4px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)}.aeb-comment__reply-icon{position:relative;bottom:4px;margin-left:32px}.aeb-comment__reply-host{margin-left:8px;font-size:var(--font-size-xxs);color:var(--gray-primary)}.aeb-comment__author-name{display:flex;align-items:center;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-comment__author-info{position:relative;top:3px;margin-left:12px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{box-sizing:border-box;width:100%;padding:16px;background:var(--web-white);border-radius:8px}.aeb-comment__comment-header{margin-bottom:10px;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--color-mono-brand-dark)}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{margin-right:30px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__comment-response{font-size:var(--font-size-xs);color:var(--color-blue-brand);cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;align-items:center;margin-bottom:28px;cursor:pointer}.aeb-comment__responses{margin-right:15px;font-size:var(--font-size-xs);color:var(--color-mono-brand-dark)}.aeb-comment__response-counter{margin-right:12px;font-size:var(--font-size-xs);color:var(--gray-primary)}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{top:unset;bottom:3px;transform:none}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{display:flex;justify-content:flex-end;width:100%;margin-top:24px}.aeb-comment__response-form{margin-bottom:24px}\n"] }]
|
|
1354
1357
|
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { comment: [{
|
|
1355
1358
|
type: Input,
|
|
1356
1359
|
args: ['comment']
|
|
@@ -2380,7 +2383,7 @@ DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
2380
2383
|
useExisting: forwardRef(() => DatepickerComponent),
|
|
2381
2384
|
multi: true
|
|
2382
2385
|
}
|
|
2383
|
-
], 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 <
|
|
2386
|
+
], viewQueries: [{ propertyName: "core", first: true, predicate: ["core"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#27303E\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#27303E\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{ 'aeb-datepicker-core--disabled': !isOpen }\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-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: "[aebLabel]", inputs: ["aebLabel"] }, { 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 });
|
|
2384
2387
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
2385
2388
|
type: Component,
|
|
2386
2389
|
args: [{ selector: 'aeb-datepicker', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2389,7 +2392,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2389
2392
|
useExisting: forwardRef(() => DatepickerComponent),
|
|
2390
2393
|
multi: true
|
|
2391
2394
|
}
|
|
2392
|
-
], 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 <
|
|
2395
|
+
], template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#27303E\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#27303E\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{ 'aeb-datepicker-core--disabled': !isOpen }\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-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"] }]
|
|
2393
2396
|
}], ctorParameters: function () { return [{ type: DatepickerUtilsService }, { type: MaskUtilsService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
2394
2397
|
type: Input
|
|
2395
2398
|
}], hasError: [{
|
|
@@ -2465,21 +2468,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2465
2468
|
}]
|
|
2466
2469
|
}] });
|
|
2467
2470
|
|
|
2468
|
-
class
|
|
2471
|
+
class DropdownContainerComponent {
|
|
2469
2472
|
constructor() {
|
|
2473
|
+
this.options = [];
|
|
2474
|
+
this.filter = true;
|
|
2475
|
+
this.hasError = false;
|
|
2476
|
+
this.dropdownFieldValueChanges$ = new Observable();
|
|
2477
|
+
this.arrowKeyPress$ = new Observable();
|
|
2478
|
+
this.enterKeyPress$ = new Observable();
|
|
2479
|
+
this.isOpen$ = new Observable();
|
|
2480
|
+
this.selected = new EventEmitter();
|
|
2481
|
+
this.viewOptionsChange = new EventEmitter();
|
|
2482
|
+
this.viewOptions$ = new Observable();
|
|
2483
|
+
this.focusedOption$ = new BehaviorSubject(-1);
|
|
2484
|
+
this.subscriptions = new Subscription();
|
|
2485
|
+
this.viewOptionsLength = 0;
|
|
2486
|
+
}
|
|
2487
|
+
ngOnInit() {
|
|
2488
|
+
this.subscriptions.add(this.arrowKeyPress$.subscribe({
|
|
2489
|
+
next: (direction) => {
|
|
2490
|
+
this.handleArrowKeys(direction, this.focusedOption$.value);
|
|
2491
|
+
}
|
|
2492
|
+
}));
|
|
2493
|
+
this.subscriptions.add(this.enterKeyPress$
|
|
2494
|
+
.pipe(withLatestFrom(this.isOpen$, this.focusedOption$), filter(([, isOpen, focused]) => isOpen && focused !== -1), switchMap(() => this.viewOptions$.pipe(take(1))))
|
|
2495
|
+
.subscribe({
|
|
2496
|
+
next: (value) => {
|
|
2497
|
+
this.selectHandler(value.at(this.focusedOption$.value), this.focusedOption$.value);
|
|
2498
|
+
}
|
|
2499
|
+
}));
|
|
2500
|
+
this.viewOptions$ = this.dropdownFieldValueChanges$.pipe(startWith(''), mergeMap((value) => iif(() => this.filter, of(this.filterOptions(value)), of(this.options))), tap((options) => {
|
|
2501
|
+
this.viewOptionsLength = options.length;
|
|
2502
|
+
this.viewOptionsChange.emit([...options]);
|
|
2503
|
+
}));
|
|
2504
|
+
}
|
|
2505
|
+
ngOnDestroy() {
|
|
2506
|
+
this.subscriptions.unsubscribe();
|
|
2507
|
+
}
|
|
2508
|
+
selectHandler(item, index) {
|
|
2509
|
+
this.optionElementList.toArray().at(index).nativeElement.focus();
|
|
2510
|
+
this.selected.emit([item, index]);
|
|
2511
|
+
}
|
|
2512
|
+
handleArrowKeys(direction, index) {
|
|
2513
|
+
const indexVary = direction === 'down' ? 1 : -1;
|
|
2514
|
+
let nextOptionIndex = index + indexVary;
|
|
2515
|
+
if (nextOptionIndex === this.viewOptionsLength) {
|
|
2516
|
+
nextOptionIndex -= 1;
|
|
2517
|
+
}
|
|
2518
|
+
else if (nextOptionIndex < -1) {
|
|
2519
|
+
nextOptionIndex = -1;
|
|
2520
|
+
}
|
|
2521
|
+
this.focusedOption$.next(nextOptionIndex);
|
|
2522
|
+
}
|
|
2523
|
+
handleMouse(type, index) {
|
|
2524
|
+
if (type === 'move') {
|
|
2525
|
+
this.focusedOption$.next(index);
|
|
2526
|
+
}
|
|
2527
|
+
else if (type === 'leave') {
|
|
2528
|
+
this.focusedOption$.next(-1);
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
filterOptions(value) {
|
|
2532
|
+
const values = (this.options || []).filter((item) => item.label.slice(0, value.length).toLocaleLowerCase() ===
|
|
2533
|
+
value.toLocaleLowerCase());
|
|
2534
|
+
return values;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
DropdownContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2538
|
+
DropdownContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DropdownContainerComponent, selector: "aeb-dropdown-container", inputs: { options: "options", filter: "filter", hasError: "hasError", dropdownFieldValueChanges$: "dropdownFieldValueChanges$", arrowKeyPress$: "arrowKeyPress$", enterKeyPress$: "enterKeyPress$", isOpen$: "isOpen$" }, outputs: { selected: "selected", viewOptionsChange: "viewOptionsChange" }, viewQueries: [{ propertyName: "optionElementList", predicate: ["option"], descendants: true }], ngImport: i0, template: "<ul\n *ngIf=\"(isOpen$ | async) && viewOptions$ | async as viewOptions\"\n class=\"aeb-dropdown-container\"\n [ngClass]=\"{\n 'aeb-dropdown-container--empty': viewOptions.length === 0,\n 'aeb-dropdown-container--on-error': hasError\n }\"\n>\n <li\n #option\n *ngFor=\"let option of viewOptions; let i = index\"\n tabindex=\"{{ i }}\"\n class=\"aeb-dropdown-container__option\"\n (click)=\"selectHandler(option, i)\"\n (mousemove)=\"handleMouse('move', i)\"\n (mouseleave)=\"handleMouse('leave', i)\"\n [ngClass]=\"{\n 'aeb-dropdown__option--active': (focusedOption$ | async) === i\n }\"\n >\n {{ option.label }}\n </li>\n</ul>\n", styles: [".aeb-dropdown-container{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;border:var(--border-skinny) solid var(--color-blue-brand);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown-container--empty{border:none}.aeb-dropdown-container--on-error{border-color:var(--color-red-neutral)}.aeb-dropdown-container__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown-container__option--active{background-color:var(--lightblue)}.aeb-dropdown-container__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown-container__option{color:var(--color-mono-clear)}body.dark .aeb-dropdown-container__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: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownContainerComponent, decorators: [{
|
|
2540
|
+
type: Component,
|
|
2541
|
+
args: [{ selector: 'aeb-dropdown-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul\n *ngIf=\"(isOpen$ | async) && viewOptions$ | async as viewOptions\"\n class=\"aeb-dropdown-container\"\n [ngClass]=\"{\n 'aeb-dropdown-container--empty': viewOptions.length === 0,\n 'aeb-dropdown-container--on-error': hasError\n }\"\n>\n <li\n #option\n *ngFor=\"let option of viewOptions; let i = index\"\n tabindex=\"{{ i }}\"\n class=\"aeb-dropdown-container__option\"\n (click)=\"selectHandler(option, i)\"\n (mousemove)=\"handleMouse('move', i)\"\n (mouseleave)=\"handleMouse('leave', i)\"\n [ngClass]=\"{\n 'aeb-dropdown__option--active': (focusedOption$ | async) === i\n }\"\n >\n {{ option.label }}\n </li>\n</ul>\n", styles: [".aeb-dropdown-container{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;border:var(--border-skinny) solid var(--color-blue-brand);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown-container--empty{border:none}.aeb-dropdown-container--on-error{border-color:var(--color-red-neutral)}.aeb-dropdown-container__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown-container__option--active{background-color:var(--lightblue)}.aeb-dropdown-container__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown-container__option{color:var(--color-mono-clear)}body.dark .aeb-dropdown-container__option--active{background-color:var(--color-mono-brand-dark)}\n"] }]
|
|
2542
|
+
}], propDecorators: { optionElementList: [{
|
|
2543
|
+
type: ViewChildren,
|
|
2544
|
+
args: ['option']
|
|
2545
|
+
}], options: [{
|
|
2546
|
+
type: Input
|
|
2547
|
+
}], filter: [{
|
|
2548
|
+
type: Input
|
|
2549
|
+
}], hasError: [{
|
|
2550
|
+
type: Input
|
|
2551
|
+
}], dropdownFieldValueChanges$: [{
|
|
2552
|
+
type: Input
|
|
2553
|
+
}], arrowKeyPress$: [{
|
|
2554
|
+
type: Input
|
|
2555
|
+
}], enterKeyPress$: [{
|
|
2556
|
+
type: Input
|
|
2557
|
+
}], isOpen$: [{
|
|
2558
|
+
type: Input
|
|
2559
|
+
}], selected: [{
|
|
2560
|
+
type: Output
|
|
2561
|
+
}], viewOptionsChange: [{
|
|
2562
|
+
type: Output
|
|
2563
|
+
}] } });
|
|
2564
|
+
|
|
2565
|
+
class DropdownComponent {
|
|
2566
|
+
constructor(cdr) {
|
|
2567
|
+
this.cdr = cdr;
|
|
2470
2568
|
this.optionSelect = new EventEmitter();
|
|
2471
2569
|
this.inputChange = new EventEmitter();
|
|
2472
2570
|
this.label = '';
|
|
2473
2571
|
this.options = [];
|
|
2474
2572
|
this.filter = true;
|
|
2475
2573
|
this.hasError = false;
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2574
|
+
this.dropdownIsOpen$ = new BehaviorSubject(false);
|
|
2575
|
+
this.arrowKeyPress$ = new Subject();
|
|
2576
|
+
this.enterKeyPress$ = new Subject();
|
|
2577
|
+
this.viewOptionsLength = 0;
|
|
2480
2578
|
this._fieldValue = '';
|
|
2481
2579
|
this._value = '';
|
|
2482
|
-
this.
|
|
2580
|
+
this._disabled = false;
|
|
2483
2581
|
}
|
|
2484
2582
|
get fieldValue() {
|
|
2485
2583
|
return this._fieldValue;
|
|
@@ -2487,6 +2585,15 @@ class DropdownComponent {
|
|
|
2487
2585
|
get value() {
|
|
2488
2586
|
return this._value;
|
|
2489
2587
|
}
|
|
2588
|
+
set disabled(value) {
|
|
2589
|
+
if (value === true) {
|
|
2590
|
+
this.dropdownIsOpen$.next(false);
|
|
2591
|
+
}
|
|
2592
|
+
this._disabled = value;
|
|
2593
|
+
}
|
|
2594
|
+
get disabled() {
|
|
2595
|
+
return this._disabled;
|
|
2596
|
+
}
|
|
2490
2597
|
set fieldValue(vl) {
|
|
2491
2598
|
const match = (this.options || []).find((item) => item.value === vl);
|
|
2492
2599
|
if (match) {
|
|
@@ -2502,19 +2609,39 @@ class DropdownComponent {
|
|
|
2502
2609
|
}
|
|
2503
2610
|
this._value = value;
|
|
2504
2611
|
}
|
|
2505
|
-
|
|
2612
|
+
writeValue(value) {
|
|
2506
2613
|
if (this.disabled) {
|
|
2507
2614
|
return;
|
|
2508
2615
|
}
|
|
2509
|
-
|
|
2510
|
-
|
|
2616
|
+
this.fieldValue = value;
|
|
2617
|
+
this.onChange(value);
|
|
2618
|
+
this.onTouch();
|
|
2619
|
+
this.optionSelect.emit(this.selected);
|
|
2620
|
+
}
|
|
2621
|
+
registerOnChange(fn) {
|
|
2622
|
+
this.onChange = fn;
|
|
2623
|
+
}
|
|
2624
|
+
registerOnTouched(fn) {
|
|
2625
|
+
this.onTouch = fn;
|
|
2626
|
+
}
|
|
2627
|
+
setDisabledState(disabled) {
|
|
2628
|
+
this.disabled = disabled;
|
|
2629
|
+
}
|
|
2630
|
+
handleArrowKeys(direction) {
|
|
2631
|
+
this.arrowKeyPress$.next(direction);
|
|
2632
|
+
}
|
|
2633
|
+
handleEnterKey() {
|
|
2634
|
+
this.enterKeyPress$.next();
|
|
2635
|
+
}
|
|
2636
|
+
openHandler() {
|
|
2637
|
+
if (this.disabled) {
|
|
2638
|
+
return;
|
|
2511
2639
|
}
|
|
2512
|
-
this.
|
|
2640
|
+
this.dropdownIsOpen$.next(!this.dropdownIsOpen$.value);
|
|
2513
2641
|
}
|
|
2514
2642
|
clickOutsideHandler() {
|
|
2515
|
-
if (this.
|
|
2516
|
-
this.
|
|
2517
|
-
this.input.nativeElement.classList.remove('aeb-dropdown__input--lock');
|
|
2643
|
+
if (this.dropdownIsOpen$.value) {
|
|
2644
|
+
this.dropdownIsOpen$.next(false);
|
|
2518
2645
|
}
|
|
2519
2646
|
}
|
|
2520
2647
|
inputHandler(term) {
|
|
@@ -2525,131 +2652,55 @@ class DropdownComponent {
|
|
|
2525
2652
|
this.value = target.value;
|
|
2526
2653
|
this.inputChange.emit(this.value);
|
|
2527
2654
|
if (!this.value) {
|
|
2528
|
-
this.viewOptions = this.options;
|
|
2529
2655
|
return;
|
|
2530
2656
|
}
|
|
2531
|
-
if (this.value !== this.fieldValue) {
|
|
2532
|
-
this.selected = null;
|
|
2533
|
-
this.writeValue(null);
|
|
2534
|
-
}
|
|
2535
2657
|
const match = (this.options || []).find((item) => item.label === this.value);
|
|
2536
2658
|
if (match) {
|
|
2659
|
+
if (match.value !== this.fieldValue) {
|
|
2660
|
+
this.selected = null;
|
|
2661
|
+
this.writeValue(null);
|
|
2662
|
+
}
|
|
2537
2663
|
this.writeValue(match.value);
|
|
2538
2664
|
this.selected = match;
|
|
2539
2665
|
}
|
|
2540
|
-
this.filterOptions();
|
|
2541
2666
|
}
|
|
2542
2667
|
clickInput() {
|
|
2543
|
-
this.activeOption = -1;
|
|
2544
2668
|
if (this.disabled) {
|
|
2545
2669
|
return;
|
|
2546
2670
|
}
|
|
2547
|
-
if (!this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.input.nativeElement.classList.add('aeb-dropdown__input--lock');
|
|
2671
|
+
if (!this.dropdownIsOpen$.value) {
|
|
2672
|
+
this.dropdownIsOpen$.next(true);
|
|
2550
2673
|
}
|
|
2551
2674
|
}
|
|
2552
|
-
selectHandler(
|
|
2675
|
+
selectHandler(selectionData) {
|
|
2676
|
+
const [item] = selectionData;
|
|
2553
2677
|
this.value = item.label;
|
|
2554
2678
|
this.selected = item;
|
|
2555
|
-
this.filterOptions();
|
|
2556
2679
|
this.fieldValue = item.value;
|
|
2557
2680
|
this.writeValue(item.value);
|
|
2558
|
-
this.
|
|
2559
|
-
this.isOpen = false;
|
|
2560
|
-
}
|
|
2561
|
-
registerOnChange(fn) {
|
|
2562
|
-
this.onChange = fn;
|
|
2563
|
-
}
|
|
2564
|
-
registerOnTouched(fn) {
|
|
2565
|
-
this.onTouch = fn;
|
|
2566
|
-
}
|
|
2567
|
-
writeValue(value) {
|
|
2568
|
-
if (this.disabled) {
|
|
2569
|
-
return;
|
|
2570
|
-
}
|
|
2571
|
-
this.fieldValue = value;
|
|
2572
|
-
this.onChange(value);
|
|
2573
|
-
this.onTouch();
|
|
2574
|
-
if (!this.touched) {
|
|
2575
|
-
this.touched = true;
|
|
2576
|
-
}
|
|
2577
|
-
this.optionSelect.emit(this.selected);
|
|
2578
|
-
}
|
|
2579
|
-
setDisabledState(disabled) {
|
|
2580
|
-
this.disabled = disabled;
|
|
2581
|
-
}
|
|
2582
|
-
arrowHandler(direction, index) {
|
|
2583
|
-
var _a;
|
|
2584
|
-
const options = this.option.toArray();
|
|
2585
|
-
const length = options.length;
|
|
2586
|
-
const term = direction === 'down' ? 1 : -1;
|
|
2587
|
-
const option = (_a = options.filter((o) => {
|
|
2588
|
-
const attributes = o.nativeElement.attributes;
|
|
2589
|
-
return (attributes.aebDropdownOptionIndex.value === (index + term).toString());
|
|
2590
|
-
})[0]) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
2591
|
-
const inputField = this.inputField.nativeElement;
|
|
2592
|
-
if (index + term === length) {
|
|
2593
|
-
}
|
|
2594
|
-
else if (index > 0 || direction === 'down') {
|
|
2595
|
-
this.activeOption = index + term;
|
|
2596
|
-
option.focus();
|
|
2597
|
-
}
|
|
2598
|
-
else {
|
|
2599
|
-
this.activeOption = -1;
|
|
2600
|
-
inputField.focus();
|
|
2601
|
-
}
|
|
2602
|
-
}
|
|
2603
|
-
mouseHandler(type, index) {
|
|
2604
|
-
var _a;
|
|
2605
|
-
const options = this.option.toArray();
|
|
2606
|
-
const option = (_a = options.filter((o) => {
|
|
2607
|
-
const attributes = o.nativeElement.attributes;
|
|
2608
|
-
return attributes.aebDropdownOptionIndex.value === index.toString();
|
|
2609
|
-
})[0]) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
2610
|
-
const inputField = this.inputField.nativeElement;
|
|
2611
|
-
if (type === 'move') {
|
|
2612
|
-
this.activeOption = index;
|
|
2613
|
-
option.focus();
|
|
2614
|
-
}
|
|
2615
|
-
else if (type === 'leave') {
|
|
2616
|
-
this.activeOption = -1;
|
|
2617
|
-
inputField.focus();
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
|
-
ngOnInit() {
|
|
2621
|
-
this.viewOptions = this.options;
|
|
2681
|
+
this.dropdownIsOpen$.next(false);
|
|
2622
2682
|
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
}
|
|
2683
|
+
viewOptionsChangeHandler(options) {
|
|
2684
|
+
this.viewOptionsLength = options.length;
|
|
2685
|
+
this.cdr.detectChanges();
|
|
2627
2686
|
}
|
|
2628
2687
|
resetValue() {
|
|
2629
2688
|
this._value = '';
|
|
2630
2689
|
this.selected = null;
|
|
2631
2690
|
this.writeValue(null);
|
|
2632
|
-
this.viewOptions = this.options;
|
|
2633
|
-
}
|
|
2634
|
-
filterOptions() {
|
|
2635
|
-
if (!this.filter) {
|
|
2636
|
-
return;
|
|
2637
|
-
}
|
|
2638
|
-
this.viewOptions = (this.options || []).filter((item) => item.label.slice(0, this.value.length).toLocaleLowerCase() ===
|
|
2639
|
-
this.value.toLocaleLowerCase());
|
|
2640
2691
|
}
|
|
2641
2692
|
// eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
|
|
2642
2693
|
onChange(value) { }
|
|
2643
2694
|
onTouch() { }
|
|
2644
2695
|
}
|
|
2645
|
-
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2696
|
+
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2646
2697
|
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DropdownComponent, selector: "aeb-dropdown", inputs: { label: "label", options: "options", filter: "filter", hasError: "hasError", disabled: "disabled", fieldValue: "fieldValue", value: "value" }, outputs: { optionSelect: "optionSelect", inputChange: "inputChange" }, providers: [
|
|
2647
2698
|
{
|
|
2648
2699
|
provide: NG_VALUE_ACCESSOR,
|
|
2649
2700
|
useExisting: forwardRef(() => DropdownComponent),
|
|
2650
2701
|
multi: true
|
|
2651
2702
|
}
|
|
2652
|
-
],
|
|
2703
|
+
], 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 (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--is-open': dropdownIsOpen$ | async,\n 'aeb-dropdown__input--is-empty': viewOptionsLength === 0\n }\"\n (click)=\"clickInput()\"\n (keydown.arrowdown)=\"handleArrowKeys('down')\"\n (keydown.arrowup)=\"handleArrowKeys('up')\"\n (keydown.enter)=\"handleEnterKey()\"\n >\n <aeb-form-field #field>\n <label aebLabel>{{ label }}</label>\n <input\n aebInput\n type=\"text\"\n [(ngModel)]=\"value\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': this.dropdownIsOpen$ | async\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"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 <aeb-dropdown-container\n [options]=\"options\"\n [filter]=\"filter\"\n [dropdownFieldValueChanges$]=\"inputChange.asObservable()\"\n [isOpen$]=\"dropdownIsOpen$.asObservable()\"\n [arrowKeyPress$]=\"arrowKeyPress$.asObservable()\"\n [enterKeyPress$]=\"enterKeyPress$.asObservable()\"\n [hasError]=\"hasError\"\n (selected)=\"selectHandler($event)\"\n (viewOptionsChange)=\"viewOptionsChangeHandler($event)\"\n ></aeb-dropdown-container>\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:16px;right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}.aeb-dropdown__icon--is-open svg path{stroke:var(--color-blue-brand)}.aeb-dropdown__input--is-open:not(.aeb-dropdown__input--is-empty) .aeb-form-field .aeb-input{border:var(--border-skinny) solid var(--color-blue-brand);padding-bottom:17px;border-bottom:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.aeb-dropdown__items{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-clear);border:var(--border-skinny) solid var(--color-blue-brand);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__items--is-empty{border:none}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--lightblue)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-clear)}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: "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: "[aebLabel]", inputs: ["aebLabel"] }, { 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"] }, { kind: "component", type: DropdownContainerComponent, selector: "aeb-dropdown-container", inputs: ["options", "filter", "hasError", "dropdownFieldValueChanges$", "arrowKeyPress$", "enterKeyPress$", "isOpen$"], outputs: ["selected", "viewOptionsChange"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
2653
2704
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2654
2705
|
type: Component,
|
|
2655
2706
|
args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -2658,20 +2709,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2658
2709
|
useExisting: forwardRef(() => DropdownComponent),
|
|
2659
2710
|
multi: true
|
|
2660
2711
|
}
|
|
2661
|
-
], 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 (
|
|
2662
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2663
|
-
type: ViewChild,
|
|
2664
|
-
args: ['input']
|
|
2665
|
-
}], inputField: [{
|
|
2666
|
-
type: ViewChild,
|
|
2667
|
-
args: ['inputField']
|
|
2668
|
-
}], dropdown: [{
|
|
2669
|
-
type: ViewChild,
|
|
2670
|
-
args: ['dropdown']
|
|
2671
|
-
}], option: [{
|
|
2672
|
-
type: ViewChildren,
|
|
2673
|
-
args: ['option']
|
|
2674
|
-
}], optionSelect: [{
|
|
2712
|
+
], 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 (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--is-open': dropdownIsOpen$ | async,\n 'aeb-dropdown__input--is-empty': viewOptionsLength === 0\n }\"\n (click)=\"clickInput()\"\n (keydown.arrowdown)=\"handleArrowKeys('down')\"\n (keydown.arrowup)=\"handleArrowKeys('up')\"\n (keydown.enter)=\"handleEnterKey()\"\n >\n <aeb-form-field #field>\n <label aebLabel>{{ label }}</label>\n <input\n aebInput\n type=\"text\"\n [(ngModel)]=\"value\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': this.dropdownIsOpen$ | async\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"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 <aeb-dropdown-container\n [options]=\"options\"\n [filter]=\"filter\"\n [dropdownFieldValueChanges$]=\"inputChange.asObservable()\"\n [isOpen$]=\"dropdownIsOpen$.asObservable()\"\n [arrowKeyPress$]=\"arrowKeyPress$.asObservable()\"\n [enterKeyPress$]=\"enterKeyPress$.asObservable()\"\n [hasError]=\"hasError\"\n (selected)=\"selectHandler($event)\"\n (viewOptionsChange)=\"viewOptionsChangeHandler($event)\"\n ></aeb-dropdown-container>\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:16px;right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}.aeb-dropdown__icon--is-open svg path{stroke:var(--color-blue-brand)}.aeb-dropdown__input--is-open:not(.aeb-dropdown__input--is-empty) .aeb-form-field .aeb-input{border:var(--border-skinny) solid var(--color-blue-brand);padding-bottom:17px;border-bottom:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.aeb-dropdown__items{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-clear);border:var(--border-skinny) solid var(--color-blue-brand);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__items--is-empty{border:none}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--lightblue)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-clear)}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"] }]
|
|
2713
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { optionSelect: [{
|
|
2675
2714
|
type: Output
|
|
2676
2715
|
}], inputChange: [{
|
|
2677
2716
|
type: Output
|
|
@@ -2694,12 +2733,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2694
2733
|
class DropdownModule {
|
|
2695
2734
|
}
|
|
2696
2735
|
DropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2697
|
-
DropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent], imports: [CommonModule, FormFieldModule, ClickOutsideModule, FormsModule], exports: [DropdownComponent] });
|
|
2736
|
+
DropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent, DropdownContainerComponent], imports: [CommonModule, FormFieldModule, ClickOutsideModule, FormsModule], exports: [DropdownComponent] });
|
|
2698
2737
|
DropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownModule, imports: [CommonModule, FormFieldModule, ClickOutsideModule, FormsModule] });
|
|
2699
2738
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownModule, decorators: [{
|
|
2700
2739
|
type: NgModule,
|
|
2701
2740
|
args: [{
|
|
2702
|
-
declarations: [DropdownComponent],
|
|
2741
|
+
declarations: [DropdownComponent, DropdownContainerComponent],
|
|
2703
2742
|
imports: [CommonModule, FormFieldModule, ClickOutsideModule, FormsModule],
|
|
2704
2743
|
exports: [DropdownComponent]
|
|
2705
2744
|
}]
|
|
@@ -4658,7 +4697,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
4658
4697
|
useExisting: forwardRef(() => SliderComponent),
|
|
4659
4698
|
multi: true
|
|
4660
4699
|
}
|
|
4661
|
-
], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"mode === 'standard'\">\n <div class=\"aeb-slider__header\">\n <div class=\"aeb-slider__label\">{{ label }}</div>\n <div class=\"aeb-slider__value\">\n {{ value | number: \"1.0-0\" | replace: \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"mode === 'input'\">\n <aeb-form-field>\n <
|
|
4700
|
+
], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"mode === 'standard'\">\n <div class=\"aeb-slider__header\">\n <div class=\"aeb-slider__label\">{{ label }}</div>\n <div class=\"aeb-slider__value\">\n {{ value | number: \"1.0-0\" | replace: \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"mode === 'input'\">\n <aeb-form-field>\n <label aebLabel>{{ label }}</label>\n <input\n type=\"string\"\n aebInput\n aebNumbersOnly\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"onInputBlur()\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n />\n </aeb-form-field>\n</ng-container>\n<div class=\"aeb-slider__line__container\" #slider>\n <div class=\"aeb-slider__line__indicator\">\n <div\n class=\"aeb-slider__line\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ 'aeb-slider__line--pressed': isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"aeb-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: [".aeb-slider{--standard-value-color: var(--color-mono-brand-dark);--line-background-color: var(--color-blue-brand);display:block;color:var(--color-mono-brand-dark);padding:6px 0 8px}.aeb-slider__line{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--line-background-color);border-radius:2px}.aeb-slider__line:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--line-background-color);border-radius:var(--border-medium-rounded)}.aeb-slider__line:hover{background-color:var(--color-turquoise-neutral)}.aeb-slider__line:hover:after{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__container{margin-top:26px}.aeb-slider__line--pressed:after{top:-11px;right:-13px;width:26px;height:26px;transition:all .05s ease-in;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.aeb-slider__line--pressed{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__indicator{position:relative;width:100%;height:4px;border-radius:2px;background-color:var(--lightgray-secondary)}.aeb-slider__line__wrapper{display:flex;justify-content:center;align-items:center;width:100%}.aeb-slider--standard .aeb-slider__header{display:flex;justify-content:space-between;align-items:center}.aeb-slider--standard .aeb-slider__label{display:flex;align-items:center;font-size:var(--font-size-s);line-height:20px;color:var(--color-mono-gray-soft)}.aeb-slider--standard .aeb-slider__value{font-size:var(--font-size-md);font-weight:700;line-height:var(--line-height-medium);color:var(--standard-value-color)}.aeb-slider--standard .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--color-mono-gray-soft)}.aeb-slider--input .aeb-slider__field-wrapper{width:100%}.aeb-slider--input .aeb-slider__field-wrapper input:focus{outline:none}.aeb-slider--input .aeb-slider__line{border-top-left-radius:4px;border-bottom-left-radius:0}.aeb-slider--input .aeb-slider__line__indicator{position:absolute;background-color:transparent}.aeb-slider--input .aeb-slider__line__container{position:relative;margin-top:0;top:-4px;left:10px;width:calc(100% - 20px)}.aeb-slider--input .aeb-slider__line:after{width:10px;height:10px;top:-3px;right:-5px}.aeb-slider--input .aeb-slider__line--pressed:after{width:14px;height:14px;top:-5px;right:-7px;transition:all .05s ease-in}.aeb-slider--input .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding-bottom:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}body.dark .aeb-slider{--standard-value-color: var(--color-mono-clear);--line-background-color: var(--blue-primary-dark-theme)}\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: "[aebLabel]", inputs: ["aebLabel"] }, { 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, name: "replace" }], encapsulation: i0.ViewEncapsulation.None });
|
|
4662
4701
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SliderComponent, decorators: [{
|
|
4663
4702
|
type: Component,
|
|
4664
4703
|
args: [{ selector: 'aeb-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -4667,7 +4706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4667
4706
|
useExisting: forwardRef(() => SliderComponent),
|
|
4668
4707
|
multi: true
|
|
4669
4708
|
}
|
|
4670
|
-
], template: "<ng-container *ngIf=\"mode === 'standard'\">\n <div class=\"aeb-slider__header\">\n <div class=\"aeb-slider__label\">{{ label }}</div>\n <div class=\"aeb-slider__value\">\n {{ value | number: \"1.0-0\" | replace: \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"mode === 'input'\">\n <aeb-form-field>\n <
|
|
4709
|
+
], template: "<ng-container *ngIf=\"mode === 'standard'\">\n <div class=\"aeb-slider__header\">\n <div class=\"aeb-slider__label\">{{ label }}</div>\n <div class=\"aeb-slider__value\">\n {{ value | number: \"1.0-0\" | replace: \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"mode === 'input'\">\n <aeb-form-field>\n <label aebLabel>{{ label }}</label>\n <input\n type=\"string\"\n aebInput\n aebNumbersOnly\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"onInputBlur()\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n />\n </aeb-form-field>\n</ng-container>\n<div class=\"aeb-slider__line__container\" #slider>\n <div class=\"aeb-slider__line__indicator\">\n <div\n class=\"aeb-slider__line\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ 'aeb-slider__line--pressed': isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"aeb-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: [".aeb-slider{--standard-value-color: var(--color-mono-brand-dark);--line-background-color: var(--color-blue-brand);display:block;color:var(--color-mono-brand-dark);padding:6px 0 8px}.aeb-slider__line{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--line-background-color);border-radius:2px}.aeb-slider__line:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--line-background-color);border-radius:var(--border-medium-rounded)}.aeb-slider__line:hover{background-color:var(--color-turquoise-neutral)}.aeb-slider__line:hover:after{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__container{margin-top:26px}.aeb-slider__line--pressed:after{top:-11px;right:-13px;width:26px;height:26px;transition:all .05s ease-in;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.aeb-slider__line--pressed{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__indicator{position:relative;width:100%;height:4px;border-radius:2px;background-color:var(--lightgray-secondary)}.aeb-slider__line__wrapper{display:flex;justify-content:center;align-items:center;width:100%}.aeb-slider--standard .aeb-slider__header{display:flex;justify-content:space-between;align-items:center}.aeb-slider--standard .aeb-slider__label{display:flex;align-items:center;font-size:var(--font-size-s);line-height:20px;color:var(--color-mono-gray-soft)}.aeb-slider--standard .aeb-slider__value{font-size:var(--font-size-md);font-weight:700;line-height:var(--line-height-medium);color:var(--standard-value-color)}.aeb-slider--standard .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--color-mono-gray-soft)}.aeb-slider--input .aeb-slider__field-wrapper{width:100%}.aeb-slider--input .aeb-slider__field-wrapper input:focus{outline:none}.aeb-slider--input .aeb-slider__line{border-top-left-radius:4px;border-bottom-left-radius:0}.aeb-slider--input .aeb-slider__line__indicator{position:absolute;background-color:transparent}.aeb-slider--input .aeb-slider__line__container{position:relative;margin-top:0;top:-4px;left:10px;width:calc(100% - 20px)}.aeb-slider--input .aeb-slider__line:after{width:10px;height:10px;top:-3px;right:-5px}.aeb-slider--input .aeb-slider__line--pressed:after{width:14px;height:14px;top:-5px;right:-7px;transition:all .05s ease-in}.aeb-slider--input .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding-bottom:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}body.dark .aeb-slider{--standard-value-color: var(--color-mono-clear);--line-background-color: var(--blue-primary-dark-theme)}\n"] }]
|
|
4671
4710
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { slider: [{
|
|
4672
4711
|
type: ViewChild,
|
|
4673
4712
|
args: ['slider']
|